Skip to content

Commit 423166e

Browse files
ca-dJakob VogelsangJakobVogelsang
authored
feat(wizards/fcda): add data(FCDA) to existing DataSets (#338)
* feat(foundation): add object/array depth utility function This function returns the (possibly infinite) depth of the nested Array/Object given as the first argument, or zero if not given an Array or Object as an argument. * feat: add finder-list component This adds a finder-list component modeled after the previous finder-pane but with the "getContents" method renamed to "read" and an additional boolean attribute "multi" which may be set to allow simultaneous selection of multiple entries at every level of the hierarchy. * refactor(menu/Help): replace finder-pane with finder-list * refactor: remove finder-pane * feat(finder-list): add methods to overwrite list item text and search field label * test(finder-list): update snapshots * chore(package): upgrade lockfile * fix(finder-list): fix getPaths with provided depth * test(finder-list): getTitle and getDisplayString * fix(finder-list): don't display leaf node content * feat(filtered-list): add abbr to search field (#339) * feat(wizards/fcda): add create FCDAs capability (#345) * feat(wizard/foundation): add function for data model navigation * feat(wizards/fcda): add create wizard based in finder-list * test(wizards/fcda): refactor unit tests * feat(wizarding/dataset): add ADD FCDA button to edit wizard * test(wizards/fcda): add integration test * refactor(wizards/fcda): change create function name Co-authored-by: Jakob Vogelsang <[email protected]> Co-authored-by: Jakob Vogelsang <[email protected]>
1 parent 81b9486 commit 423166e

24 files changed

+25840
-4230
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# `create wizard for FCDA element`
2+
3+
## `with a valid SCL file`
4+
5+
#### `looks like the last snapshot`
6+
7+
```html
8+
<mwc-dialog
9+
defaultaction="close"
10+
heading="[wizard.title.add]"
11+
open=""
12+
>
13+
<div id="wizard-content">
14+
<finder-list multi="">
15+
</finder-list>
16+
</div>
17+
<mwc-button
18+
dialogaction="close"
19+
label="[cancel]"
20+
slot="secondaryAction"
21+
style="--mdc-theme-primary: var(--mdc-theme-error)"
22+
>
23+
</mwc-button>
24+
<mwc-button
25+
dialoginitialfocus=""
26+
icon="add"
27+
label="add"
28+
slot="primaryAction"
29+
trailingicon=""
30+
>
31+
</mwc-button>
32+
</mwc-dialog>
33+
34+
```
35+

__snapshots__/dataset wizards.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `dataset wizards`
22

3-
## `editDataSetWizard`
3+
## `include a dataset edit wizard`
44

55
#### `looks like the latest snapshot`
66

@@ -25,6 +25,11 @@
2525
required=""
2626
>
2727
</wizard-textfield>
28+
<mwc-button
29+
icon="add"
30+
label="[wizard.title.add]"
31+
>
32+
</mwc-button>
2833
<filtered-list multi="">
2934
<mwc-check-list-item
3035
aria-disabled="false"

__snapshots__/filtered-list.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
```html
66
<div id="tfcontainer">
7-
<mwc-textfield
8-
icontrailing="search"
9-
label=""
10-
outlined=""
11-
>
12-
</mwc-textfield>
7+
<abbr title="[filter]">
8+
<mwc-textfield
9+
icontrailing="search"
10+
label=""
11+
outlined=""
12+
>
13+
</mwc-textfield>
14+
</abbr>
1315
<mwc-formfield class="checkall">
1416
<mwc-checkbox>
1517
</mwc-checkbox>

0 commit comments

Comments
 (0)