svelte-multistyle-ui 0.0.15-alpha → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -3
- package/cli/bin.js +94 -92
- package/cli/emit.js +242 -225
- package/cli/fixtures/sample.expected.svelte +2 -1
- package/cli/generate.js +507 -499
- package/cli/registry.js +105 -100
- package/cli/schema.js +16 -0
- package/dist/actions/dialog.d.ts +11 -0
- package/dist/actions/dialog.js +118 -0
- package/dist/components/Accordion.svelte +11 -5
- package/dist/components/Accordion.svelte.d.ts +8 -12
- package/dist/components/Alert.svelte +11 -5
- package/dist/components/Alert.svelte.d.ts +8 -16
- package/dist/components/Avatar.svelte +13 -3
- package/dist/components/Avatar.svelte.d.ts +8 -14
- package/dist/components/Breadcrumb.svelte +9 -3
- package/dist/components/Breadcrumb.svelte.d.ts +8 -8
- package/dist/components/Button.svelte +11 -3
- package/dist/components/Button.svelte.d.ts +8 -20
- package/dist/components/ButtonGroup.svelte +10 -4
- package/dist/components/ButtonGroup.svelte.d.ts +8 -16
- package/dist/components/Card.svelte +9 -3
- package/dist/components/Card.svelte.d.ts +8 -12
- package/dist/components/Carousel.svelte +17 -9
- package/dist/components/Carousel.svelte.d.ts +8 -16
- package/dist/components/Checkbox.svelte +10 -4
- package/dist/components/Checkbox.svelte.d.ts +8 -14
- package/dist/components/Chip.svelte +10 -4
- package/dist/components/Chip.svelte.d.ts +8 -20
- package/dist/components/CodeEditor.svelte +139 -129
- package/dist/components/CodeEditor.svelte.d.ts +8 -16
- package/dist/components/Column.svelte +48 -38
- package/dist/components/Column.svelte.d.ts +8 -12
- package/dist/components/CommandPalette.svelte +14 -5
- package/dist/components/CommandPalette.svelte.d.ts +8 -12
- package/dist/components/CrudView.svelte +1604 -0
- package/dist/components/CrudView.svelte.d.ts +17 -0
- package/dist/components/DatePicker.svelte +42 -10
- package/dist/components/DatePicker.svelte.d.ts +8 -24
- package/dist/components/Divider.svelte +9 -3
- package/dist/components/Divider.svelte.d.ts +8 -10
- package/dist/components/Drawer.svelte +19 -3
- package/dist/components/Drawer.svelte.d.ts +8 -14
- package/dist/components/DropdownMenu.svelte +32 -5
- package/dist/components/DropdownMenu.svelte.d.ts +8 -18
- package/dist/components/FAB.svelte +10 -4
- package/dist/components/FAB.svelte.d.ts +8 -14
- package/dist/components/FileUpload.svelte +47 -8
- package/dist/components/FileUpload.svelte.d.ts +8 -14
- package/dist/components/FilterBar.svelte +768 -0
- package/dist/components/FilterBar.svelte.d.ts +17 -0
- package/dist/components/GraphEditor.svelte +725 -723
- package/dist/components/GraphEditor.svelte.d.ts +8 -8
- package/dist/components/Grid.svelte +61 -51
- package/dist/components/Grid.svelte.d.ts +8 -18
- package/dist/components/IconButton.svelte +12 -4
- package/dist/components/IconButton.svelte.d.ts +8 -22
- package/dist/components/InlineEdit.svelte +6 -3
- package/dist/components/InlineEdit.svelte.d.ts +10 -10
- package/dist/components/Input.svelte +18 -4
- package/dist/components/Input.svelte.d.ts +8 -62
- package/dist/components/Modal.svelte +14 -5
- package/dist/components/Modal.svelte.d.ts +8 -16
- package/dist/components/MultiSelect.svelte +22 -204
- package/dist/components/MultiSelect.svelte.d.ts +8 -16
- package/dist/components/Pagination.svelte +19 -4
- package/dist/components/Pagination.svelte.d.ts +8 -12
- package/dist/components/Popover.svelte +15 -4
- package/dist/components/Popover.svelte.d.ts +8 -16
- package/dist/components/ProgressBar.svelte +79 -73
- package/dist/components/ProgressBar.svelte.d.ts +8 -14
- package/dist/components/Radio.svelte +10 -4
- package/dist/components/Radio.svelte.d.ts +8 -14
- package/dist/components/Rating.svelte +30 -6
- package/dist/components/Rating.svelte.d.ts +8 -18
- package/dist/components/Row.svelte +49 -39
- package/dist/components/Row.svelte.d.ts +8 -14
- package/dist/components/Select.svelte +252 -32
- package/dist/components/Select.svelte.d.ts +8 -16
- package/dist/components/Skeleton.svelte +9 -3
- package/dist/components/Skeleton.svelte.d.ts +8 -12
- package/dist/components/Slider.svelte +14 -6
- package/dist/components/Slider.svelte.d.ts +8 -18
- package/dist/components/SortableList.svelte +136 -130
- package/dist/components/SortableList.svelte.d.ts +6 -14
- package/dist/components/Spinner.svelte +9 -3
- package/dist/components/Spinner.svelte.d.ts +8 -8
- package/dist/components/Stepper.svelte +101 -93
- package/dist/components/Stepper.svelte.d.ts +8 -10
- package/dist/components/Table.svelte +9 -3
- package/dist/components/Table.svelte.d.ts +8 -12
- package/dist/components/Tabs.svelte +29 -5
- package/dist/components/Tabs.svelte.d.ts +8 -10
- package/dist/components/TextEditor.svelte +191 -182
- package/dist/components/TextEditor.svelte.d.ts +8 -18
- package/dist/components/Textarea.svelte +24 -7
- package/dist/components/Textarea.svelte.d.ts +8 -24
- package/dist/components/Toast.svelte +52 -16
- package/dist/components/Toast.svelte.d.ts +8 -12
- package/dist/components/Toggle.svelte +10 -4
- package/dist/components/Toggle.svelte.d.ts +8 -14
- package/dist/components/Tooltip.svelte +14 -4
- package/dist/components/Tooltip.svelte.d.ts +8 -12
- package/dist/components/charts/BarChart.svelte +7 -5
- package/dist/components/charts/BarChart.svelte.d.ts +8 -22
- package/dist/components/charts/BubbleChart.svelte +7 -5
- package/dist/components/charts/BubbleChart.svelte.d.ts +8 -22
- package/dist/components/charts/Chart.svelte +273 -248
- package/dist/components/charts/Chart.svelte.d.ts +8 -30
- package/dist/components/charts/ComboChart.svelte +7 -5
- package/dist/components/charts/ComboChart.svelte.d.ts +8 -22
- package/dist/components/charts/DoughnutChart.svelte +7 -5
- package/dist/components/charts/DoughnutChart.svelte.d.ts +8 -22
- package/dist/components/charts/LineChart.svelte +7 -5
- package/dist/components/charts/LineChart.svelte.d.ts +8 -22
- package/dist/components/charts/MermaidChart.svelte +106 -0
- package/dist/components/charts/MermaidChart.svelte.d.ts +20 -0
- package/dist/components/charts/PieChart.svelte +7 -5
- package/dist/components/charts/PieChart.svelte.d.ts +8 -22
- package/dist/components/charts/PolarAreaChart.svelte +7 -5
- package/dist/components/charts/PolarAreaChart.svelte.d.ts +8 -22
- package/dist/components/charts/RadarChart.svelte +7 -5
- package/dist/components/charts/RadarChart.svelte.d.ts +8 -22
- package/dist/components/charts/ScatterChart.svelte +7 -5
- package/dist/components/charts/ScatterChart.svelte.d.ts +8 -22
- package/dist/components/charts/StackedBarChart.svelte +20 -18
- package/dist/components/charts/StackedBarChart.svelte.d.ts +8 -22
- package/dist/components/charts/StackedLineChart.svelte +23 -21
- package/dist/components/charts/StackedLineChart.svelte.d.ts +8 -22
- package/dist/components/charts/chart-config.d.ts +5 -5
- package/dist/components/charts/chart-config.js +722 -733
- package/dist/components/charts/index.d.ts +12 -0
- package/dist/components/charts/index.js +12 -0
- package/dist/components/charts/mermaid-chart-styles.css +27 -0
- package/dist/components/checkbox-styles.css +122 -117
- package/dist/components/crudview-styles.css +1057 -0
- package/dist/components/fileupload-styles.css +121 -117
- package/dist/components/filterbar-styles.css +655 -0
- package/dist/components/graph/FlowNode.svelte +82 -79
- package/dist/components/graph/FlowNode.svelte.d.ts +8 -28
- package/dist/components/graph/GraphNode.svelte +72 -69
- package/dist/components/graph/GraphNode.svelte.d.ts +8 -22
- package/dist/components/prism-manual.d.ts +0 -0
- package/dist/components/prism-manual.js +4 -0
- package/dist/components/radio-styles.css +118 -113
- package/dist/components/rating-styles.css +70 -65
- package/dist/components/select-styles.css +239 -11
- package/dist/components/slider-styles.css +85 -81
- package/dist/components/text-editor-core/dom-utils.d.ts +1 -1
- package/dist/components/text-editor-core/editor-core.d.ts +9 -9
- package/dist/components/text-editor-core/editor-core.js +854 -808
- package/dist/components/text-editor-core/sanitizer.d.ts +4 -1
- package/dist/components/text-editor-core/sanitizer.js +236 -161
- package/dist/components/text-editor-core/selection-engine.d.ts +3 -3
- package/dist/components/theme.css +59 -49
- package/dist/components/toast-styles.css +8 -8
- package/dist/components/toggle-styles.css +126 -121
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/config.svelte.d.ts +5 -4
- package/dist/config.svelte.js +124 -81
- package/dist/graph/geometry.d.ts +1 -1
- package/dist/graph/node-types.d.ts +1 -1
- package/dist/index.d.ts +4 -11
- package/dist/index.js +9 -12
- package/dist/themes/generator.js +175 -173
- package/dist/themes/presets.d.ts +21 -21
- package/dist/themes/presets.js +6 -6
- package/dist/utils/dbmr.d.ts +27 -0
- package/dist/utils/dbmr.js +381 -0
- package/dist/utils/filter.d.ts +103 -0
- package/dist/utils/filter.js +621 -0
- package/package.json +114 -85
- package/dist/components/multiselect-styles.css +0 -364
package/cli/registry.js
CHANGED
|
@@ -1,100 +1,105 @@
|
|
|
1
|
-
// Component registry for the YAML -> Svelte page generator.
|
|
2
|
-
// Keyed by the export name from src/lib/index.js. Every shipped component has
|
|
3
|
-
// exactly one entry. If a new component is exported from index.js, add a matching
|
|
4
|
-
// entry here and run `pnpm gen:sample` to verify the registry-completeness check.
|
|
5
|
-
//
|
|
6
|
-
// Entry shape:
|
|
7
|
-
// importName JS identifier emitted in the import statement (= key)
|
|
8
|
-
// kind "leaf" (no children) | "children" (implicit children snippet)
|
|
9
|
-
// | "container" (layout box wrapping children) | "multi-snippet"
|
|
10
|
-
// bindable prop names that are $bindable(...) in the component
|
|
11
|
-
// primaryBindable the prop used by the `bind: varName` shorthand
|
|
12
|
-
// listProps props whose YAML value is a sequence (documentation/validation)
|
|
13
|
-
// objectProps props whose YAML value is a map (documentation/validation)
|
|
14
|
-
// snippets named snippet props for multi-snippet kind
|
|
15
|
-
// chart forwards chart data/series/labels/options to the Chart base
|
|
16
|
-
//
|
|
17
|
-
// Note: emit.js treats ANY array prop as an inline JS array literal and ANY object
|
|
18
|
-
// prop as an inline JS object literal, so listProps/objectProps are advisory unless
|
|
19
|
-
// future validation needs them. They are kept for clarity and future strict checks.
|
|
20
|
-
|
|
21
|
-
/** @type {Record<string, any>} */
|
|
22
|
-
const registry = {
|
|
23
|
-
// ---------------- Form ----------------
|
|
24
|
-
Input: { importName: "Input", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
25
|
-
Textarea: { importName: "Textarea", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
26
|
-
InlineEdit: { importName: "InlineEdit", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
27
|
-
TextEditor: { importName: "TextEditor", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
28
|
-
CodeEditor: { importName: "CodeEditor", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
29
|
-
Select: { importName: "Select", kind: "leaf", bindable: ["value"],
|
|
30
|
-
MultiSelect: { importName: "MultiSelect", kind: "leaf", bindable: ["selected"], primaryBindable: "selected", listProps: ["options"] },
|
|
31
|
-
Checkbox: { importName: "Checkbox", kind: "leaf", bindable: ["checked"], primaryBindable: "checked" },
|
|
32
|
-
Radio: { importName: "Radio", kind: "leaf", bindable: ["group"], primaryBindable: "group" },
|
|
33
|
-
Toggle: { importName: "Toggle", kind: "leaf", bindable: ["checked"], primaryBindable: "checked" },
|
|
34
|
-
Slider: { importName: "Slider", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
35
|
-
FileUpload: { importName: "FileUpload", kind: "leaf" },
|
|
36
|
-
DatePicker: { importName: "DatePicker", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
37
|
-
ButtonGroup: { importName: "ButtonGroup", kind: "leaf", bindable: ["value"], primaryBindable: "value", listProps: ["items"] },
|
|
38
|
-
SortableList: { importName: "SortableList", kind: "children", bindable: ["items"], primaryBindable: "items", listProps: ["items"] },
|
|
39
|
-
|
|
40
|
-
// ---------------- Buttons ----------------
|
|
41
|
-
Button: { importName: "Button", kind: "children" }, // onclick is a passthrough scalar prop, NOT bindable
|
|
42
|
-
IconButton: { importName: "IconButton", kind: "children" },
|
|
43
|
-
FAB: { importName: "FAB", kind: "children" },
|
|
44
|
-
|
|
45
|
-
// ---------------- Layout ----------------
|
|
46
|
-
Carousel: { importName: "Carousel", kind: "leaf", listProps: ["slides"] },
|
|
47
|
-
GraphEditor: { importName: "GraphEditor", kind: "leaf", bindable: ["graph"], primaryBindable: "graph", objectProps: ["graph"] },
|
|
48
|
-
Card: { importName: "Card", kind: "container" },
|
|
49
|
-
Row: { importName: "Row", kind: "container" },
|
|
50
|
-
Column: { importName: "Column", kind: "container" },
|
|
51
|
-
Grid: { importName: "Grid", kind: "container" },
|
|
52
|
-
Divider: { importName: "Divider", kind: "leaf" },
|
|
53
|
-
Accordion: { importName: "Accordion", kind: "leaf", listProps: ["items"] },
|
|
54
|
-
DropdownMenu: { importName: "DropdownMenu", kind: "children", listProps: ["items"] },
|
|
55
|
-
|
|
56
|
-
// ---------------- Navigation ----------------
|
|
57
|
-
Tabs: { importName: "Tabs", kind: "leaf", bindable: ["active"], primaryBindable: "active", listProps: ["tabs"] },
|
|
58
|
-
Breadcrumb: { importName: "Breadcrumb", kind: "leaf", listProps: ["items"] },
|
|
59
|
-
Pagination: { importName: "Pagination", kind: "leaf", bindable: ["current"], primaryBindable: "current" },
|
|
60
|
-
Stepper: { importName: "Stepper", kind: "leaf", listProps: ["steps"] },
|
|
61
|
-
|
|
62
|
-
// ---------------- Data Display ----------------
|
|
63
|
-
Avatar: { importName: "Avatar", kind: "leaf" },
|
|
64
|
-
Chip: { importName: "Chip", kind: "children" },
|
|
65
|
-
Tooltip: { importName: "Tooltip", kind: "children" },
|
|
66
|
-
ProgressBar: { importName: "ProgressBar", kind: "leaf" },
|
|
67
|
-
Table: { importName: "Table", kind: "leaf", listProps: ["data"] }, // columns derived at runtime from data[0]
|
|
68
|
-
Spinner: { importName: "Spinner", kind: "leaf" },
|
|
69
|
-
Skeleton: { importName: "Skeleton", kind: "leaf" },
|
|
70
|
-
|
|
71
|
-
// ---------------- Feedback ----------------
|
|
72
|
-
Alert: { importName: "Alert", kind: "children" },
|
|
73
|
-
Rating: { importName: "Rating", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
74
|
-
Toast: { importName: "Toast", kind: "leaf", bindable: ["toasts"], primaryBindable: "toasts", listProps: ["toasts"] },
|
|
75
|
-
|
|
76
|
-
// ---------------- Overlays ----------------
|
|
77
|
-
Modal: { importName: "Modal", kind: "children", bindable: ["open"], primaryBindable: "open" },
|
|
78
|
-
Drawer: { importName: "Drawer", kind: "children", bindable: ["open"], primaryBindable: "open" },
|
|
79
|
-
CommandPalette:{ importName: "CommandPalette",kind: "leaf", bindable: ["open"], primaryBindable: "open", listProps: ["groups"] },
|
|
80
|
-
Popover: { importName: "Popover", kind: "multi-snippet", snippets: ["children", "content"], bindable: ["open"], primaryBindable: "open" },
|
|
81
|
-
|
|
82
|
-
// ----------------
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
// Component registry for the YAML -> Svelte page generator.
|
|
2
|
+
// Keyed by the export name from src/lib/index.js. Every shipped component has
|
|
3
|
+
// exactly one entry. If a new component is exported from index.js, add a matching
|
|
4
|
+
// entry here and run `pnpm gen:sample` to verify the registry-completeness check.
|
|
5
|
+
//
|
|
6
|
+
// Entry shape:
|
|
7
|
+
// importName JS identifier emitted in the import statement (= key)
|
|
8
|
+
// kind "leaf" (no children) | "children" (implicit children snippet)
|
|
9
|
+
// | "container" (layout box wrapping children) | "multi-snippet"
|
|
10
|
+
// bindable prop names that are $bindable(...) in the component
|
|
11
|
+
// primaryBindable the prop used by the `bind: varName` shorthand
|
|
12
|
+
// listProps props whose YAML value is a sequence (documentation/validation)
|
|
13
|
+
// objectProps props whose YAML value is a map (documentation/validation)
|
|
14
|
+
// snippets named snippet props for multi-snippet kind
|
|
15
|
+
// chart forwards chart data/series/labels/options to the Chart base
|
|
16
|
+
//
|
|
17
|
+
// Note: emit.js treats ANY array prop as an inline JS array literal and ANY object
|
|
18
|
+
// prop as an inline JS object literal, so listProps/objectProps are advisory unless
|
|
19
|
+
// future validation needs them. They are kept for clarity and future strict checks.
|
|
20
|
+
|
|
21
|
+
/** @type {Record<string, any>} */
|
|
22
|
+
const registry = {
|
|
23
|
+
// ---------------- Form ----------------
|
|
24
|
+
Input: { importName: "Input", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
25
|
+
Textarea: { importName: "Textarea", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
26
|
+
InlineEdit: { importName: "InlineEdit", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
27
|
+
TextEditor: { importName: "TextEditor", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
28
|
+
CodeEditor: { importName: "CodeEditor", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
29
|
+
Select: { importName: "Select", kind: "leaf", bindable: ["value", "selected"], primaryBindable: "value", listProps: ["options"] },
|
|
30
|
+
MultiSelect: { importName: "MultiSelect", kind: "leaf", bindable: ["selected"], primaryBindable: "selected", listProps: ["options"] },
|
|
31
|
+
Checkbox: { importName: "Checkbox", kind: "leaf", bindable: ["checked"], primaryBindable: "checked" },
|
|
32
|
+
Radio: { importName: "Radio", kind: "leaf", bindable: ["group"], primaryBindable: "group" },
|
|
33
|
+
Toggle: { importName: "Toggle", kind: "leaf", bindable: ["checked"], primaryBindable: "checked" },
|
|
34
|
+
Slider: { importName: "Slider", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
35
|
+
FileUpload: { importName: "FileUpload", kind: "leaf" },
|
|
36
|
+
DatePicker: { importName: "DatePicker", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
37
|
+
ButtonGroup: { importName: "ButtonGroup", kind: "leaf", bindable: ["value"], primaryBindable: "value", listProps: ["items"] },
|
|
38
|
+
SortableList: { importName: "SortableList", kind: "children", bindable: ["items"], primaryBindable: "items", listProps: ["items"] },
|
|
39
|
+
|
|
40
|
+
// ---------------- Buttons ----------------
|
|
41
|
+
Button: { importName: "Button", kind: "children" }, // onclick is a passthrough scalar prop, NOT bindable
|
|
42
|
+
IconButton: { importName: "IconButton", kind: "children" },
|
|
43
|
+
FAB: { importName: "FAB", kind: "children" },
|
|
44
|
+
|
|
45
|
+
// ---------------- Layout ----------------
|
|
46
|
+
Carousel: { importName: "Carousel", kind: "leaf", listProps: ["slides"] },
|
|
47
|
+
GraphEditor: { importName: "GraphEditor", kind: "leaf", bindable: ["graph"], primaryBindable: "graph", objectProps: ["graph"] },
|
|
48
|
+
Card: { importName: "Card", kind: "container" },
|
|
49
|
+
Row: { importName: "Row", kind: "container" },
|
|
50
|
+
Column: { importName: "Column", kind: "container" },
|
|
51
|
+
Grid: { importName: "Grid", kind: "container" },
|
|
52
|
+
Divider: { importName: "Divider", kind: "leaf" },
|
|
53
|
+
Accordion: { importName: "Accordion", kind: "leaf", listProps: ["items"] },
|
|
54
|
+
DropdownMenu: { importName: "DropdownMenu", kind: "children", listProps: ["items"] },
|
|
55
|
+
|
|
56
|
+
// ---------------- Navigation ----------------
|
|
57
|
+
Tabs: { importName: "Tabs", kind: "leaf", bindable: ["active"], primaryBindable: "active", listProps: ["tabs"] },
|
|
58
|
+
Breadcrumb: { importName: "Breadcrumb", kind: "leaf", listProps: ["items"] },
|
|
59
|
+
Pagination: { importName: "Pagination", kind: "leaf", bindable: ["current"], primaryBindable: "current" },
|
|
60
|
+
Stepper: { importName: "Stepper", kind: "leaf", listProps: ["steps"] },
|
|
61
|
+
|
|
62
|
+
// ---------------- Data Display ----------------
|
|
63
|
+
Avatar: { importName: "Avatar", kind: "leaf" },
|
|
64
|
+
Chip: { importName: "Chip", kind: "children" },
|
|
65
|
+
Tooltip: { importName: "Tooltip", kind: "children" },
|
|
66
|
+
ProgressBar: { importName: "ProgressBar", kind: "leaf" },
|
|
67
|
+
Table: { importName: "Table", kind: "leaf", listProps: ["data"] }, // columns derived at runtime from data[0]
|
|
68
|
+
Spinner: { importName: "Spinner", kind: "leaf" },
|
|
69
|
+
Skeleton: { importName: "Skeleton", kind: "leaf" },
|
|
70
|
+
|
|
71
|
+
// ---------------- Feedback ----------------
|
|
72
|
+
Alert: { importName: "Alert", kind: "children" },
|
|
73
|
+
Rating: { importName: "Rating", kind: "leaf", bindable: ["value"], primaryBindable: "value" },
|
|
74
|
+
Toast: { importName: "Toast", kind: "leaf", bindable: ["toasts"], primaryBindable: "toasts", listProps: ["toasts"] },
|
|
75
|
+
|
|
76
|
+
// ---------------- Overlays ----------------
|
|
77
|
+
Modal: { importName: "Modal", kind: "children", bindable: ["open"], primaryBindable: "open" },
|
|
78
|
+
Drawer: { importName: "Drawer", kind: "children", bindable: ["open"], primaryBindable: "open" },
|
|
79
|
+
CommandPalette:{ importName: "CommandPalette",kind: "leaf", bindable: ["open"], primaryBindable: "open", listProps: ["groups"] },
|
|
80
|
+
Popover: { importName: "Popover", kind: "multi-snippet", snippets: ["children", "content"], bindable: ["open"], primaryBindable: "open" },
|
|
81
|
+
|
|
82
|
+
// ---------------- Aggregate & Filter ----------------
|
|
83
|
+
FilterBar: { importName: "FilterBar", kind: "leaf", bindable: ["filters", "search", "activeView", "conjunction"], primaryBindable: "filters", listProps: ["fields", "views", "filters"] },
|
|
84
|
+
CrudView: { importName: "CrudView", kind: "leaf", bindable: ["data", "items", "selected", "currentPage", "filters", "search"], primaryBindable: "data", listProps: ["columns", "data", "items", "filterFields", "views", "actions"] },
|
|
85
|
+
|
|
86
|
+
// ---------------- Charts (all forward to Chart base) ----------------
|
|
87
|
+
BarChart: { importName: "BarChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
88
|
+
LineChart: { importName: "LineChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
89
|
+
PieChart: { importName: "PieChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
90
|
+
DoughnutChart: { importName: "DoughnutChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
91
|
+
RadarChart: { importName: "RadarChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
92
|
+
PolarAreaChart: { importName: "PolarAreaChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
93
|
+
ScatterChart: { importName: "ScatterChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
94
|
+
BubbleChart: { importName: "BubbleChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
95
|
+
StackedBarChart: { importName: "StackedBarChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
96
|
+
StackedLineChart:{ importName: "StackedLineChart",kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
97
|
+
ComboChart: { importName: "ComboChart", kind: "leaf", chart: true, listProps: ["data", "series", "labels"], objectProps: ["options"] },
|
|
98
|
+
MermaidChart: { importName: "MermaidChart", kind: "leaf" },
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// Exported component names — used by the registry-completeness check to diff
|
|
102
|
+
// against src/lib/index.js. Keep in sync with index.js when adding components.
|
|
103
|
+
export const registryKeys = Object.keys(registry);
|
|
104
|
+
|
|
105
|
+
export { registry };
|
package/cli/schema.js
CHANGED
|
@@ -99,6 +99,7 @@ function walkNode(node, stateNames, errors, warnings, depth) {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
validateBind(node, entry, stateNames, errors);
|
|
102
|
+
validateProps(node, errors);
|
|
102
103
|
|
|
103
104
|
if ((node.children != null || node.text != null) && entry.kind === "leaf") {
|
|
104
105
|
warnings.push(`Component "${node.component}" takes no children; ignoring.`);
|
|
@@ -118,6 +119,17 @@ function walkNode(node, stateNames, errors, warnings, depth) {
|
|
|
118
119
|
if (Array.isArray(node.children)) walkBody(node.children, stateNames, errors, warnings, depth + 1);
|
|
119
120
|
}
|
|
120
121
|
|
|
122
|
+
const VALID_KEY_RE = /^[A-Za-z_$][\w$-]*$/;
|
|
123
|
+
|
|
124
|
+
function validateProps(node, errors) {
|
|
125
|
+
if (!node.props || typeof node.props !== "object") return;
|
|
126
|
+
for (const k of Object.keys(node.props)) {
|
|
127
|
+
if (!VALID_KEY_RE.test(k)) {
|
|
128
|
+
errors.push(`Invalid prop name "${k}" on ${node.component}; must match /^[A-Za-z_$][\\w$-]*$/.`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
121
133
|
function validateBind(node, entry, stateNames, errors) {
|
|
122
134
|
const bind = node.bind;
|
|
123
135
|
if (bind == null) return;
|
|
@@ -131,6 +143,10 @@ function validateBind(node, entry, stateNames, errors) {
|
|
|
131
143
|
}
|
|
132
144
|
if (typeof bind === "object" && !Array.isArray(bind)) {
|
|
133
145
|
for (const [prop, refName] of Object.entries(bind)) {
|
|
146
|
+
if (!VALID_KEY_RE.test(prop)) {
|
|
147
|
+
errors.push(`Invalid bind prop name "${prop}" on ${node.component}.`);
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
134
150
|
if (typeof refName !== "string") {
|
|
135
151
|
errors.push(`bind.${prop} must be a variable name string.`);
|
|
136
152
|
continue;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {HTMLElement} node
|
|
3
|
+
* @param {{ onclose?: () => void, lockScroll?: boolean }} [params]
|
|
4
|
+
*/
|
|
5
|
+
export function dialog(node: HTMLElement, params?: {
|
|
6
|
+
onclose?: () => void;
|
|
7
|
+
lockScroll?: boolean;
|
|
8
|
+
}): {
|
|
9
|
+
update(nextParams: any): void;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared accessible dialog action:
|
|
3
|
+
* - Escape to close
|
|
4
|
+
* - Focus trap (Tab / Shift+Tab)
|
|
5
|
+
* - Focus restoration on unmount
|
|
6
|
+
* - Reference-counted body scroll lock
|
|
7
|
+
*/
|
|
8
|
+
let scrollLockCount = 0;
|
|
9
|
+
let previousBodyOverflow = "";
|
|
10
|
+
|
|
11
|
+
const FOCUSABLE_SELECTOR = [
|
|
12
|
+
"a[href]",
|
|
13
|
+
"button:not([disabled])",
|
|
14
|
+
"input:not([disabled]):not([type='hidden'])",
|
|
15
|
+
"select:not([disabled])",
|
|
16
|
+
"textarea:not([disabled])",
|
|
17
|
+
"[tabindex]:not([tabindex='-1'])",
|
|
18
|
+
].join(",");
|
|
19
|
+
|
|
20
|
+
function getFocusable(root) {
|
|
21
|
+
return Array.from(root.querySelectorAll(FOCUSABLE_SELECTOR)).filter(
|
|
22
|
+
(el) => el.offsetParent !== null || el === document.activeElement
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param {HTMLElement} node
|
|
28
|
+
* @param {{ onclose?: () => void, lockScroll?: boolean }} [params]
|
|
29
|
+
*/
|
|
30
|
+
export function dialog(node, params = {}) {
|
|
31
|
+
let currentParams = params || {};
|
|
32
|
+
const previouslyFocused =
|
|
33
|
+
typeof document !== "undefined" ? document.activeElement : null;
|
|
34
|
+
|
|
35
|
+
const shouldLock = currentParams.lockScroll !== false;
|
|
36
|
+
if (shouldLock && typeof document !== "undefined") {
|
|
37
|
+
if (scrollLockCount === 0) {
|
|
38
|
+
previousBodyOverflow = document.body.style.overflow;
|
|
39
|
+
document.body.style.overflow = "hidden";
|
|
40
|
+
}
|
|
41
|
+
scrollLockCount++;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Move focus into the dialog if it isn't already inside
|
|
45
|
+
if (typeof requestAnimationFrame !== "undefined") {
|
|
46
|
+
requestAnimationFrame(() => {
|
|
47
|
+
if (!node.isConnected) return;
|
|
48
|
+
if (!node.contains(document.activeElement)) {
|
|
49
|
+
const focusables = getFocusable(node);
|
|
50
|
+
if (focusables.length > 0) {
|
|
51
|
+
focusables[0].focus();
|
|
52
|
+
} else {
|
|
53
|
+
if (!node.hasAttribute("tabindex")) node.setAttribute("tabindex", "-1");
|
|
54
|
+
node.focus();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
let closed = false;
|
|
61
|
+
function triggerClose() {
|
|
62
|
+
if (closed) return;
|
|
63
|
+
closed = true;
|
|
64
|
+
currentParams.onclose?.();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function handleKeydown(e) {
|
|
68
|
+
if (e.key === "Escape") {
|
|
69
|
+
if (e.defaultPrevented) return;
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
e.stopPropagation();
|
|
72
|
+
triggerClose();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (e.key === "Tab") {
|
|
77
|
+
const focusables = getFocusable(node);
|
|
78
|
+
if (focusables.length === 0) {
|
|
79
|
+
e.preventDefault();
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const first = focusables[0];
|
|
83
|
+
const last = focusables[focusables.length - 1];
|
|
84
|
+
if (e.shiftKey) {
|
|
85
|
+
if (document.activeElement === first || !node.contains(document.activeElement)) {
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
last.focus();
|
|
88
|
+
}
|
|
89
|
+
} else {
|
|
90
|
+
if (document.activeElement === last || !node.contains(document.activeElement)) {
|
|
91
|
+
e.preventDefault();
|
|
92
|
+
first.focus();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
document.addEventListener("keydown", handleKeydown);
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
update(nextParams) {
|
|
102
|
+
currentParams = nextParams || {};
|
|
103
|
+
closed = false;
|
|
104
|
+
},
|
|
105
|
+
destroy() {
|
|
106
|
+
document.removeEventListener("keydown", handleKeydown);
|
|
107
|
+
if (shouldLock && typeof document !== "undefined") {
|
|
108
|
+
scrollLockCount = Math.max(0, scrollLockCount - 1);
|
|
109
|
+
if (scrollLockCount === 0) {
|
|
110
|
+
document.body.style.overflow = previousBodyOverflow;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (previouslyFocused && typeof previouslyFocused.focus === "function" && previouslyFocused.isConnected) {
|
|
114
|
+
previouslyFocused.focus();
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import "./accordion-styles.css";
|
|
3
|
-
import {
|
|
3
|
+
import { getMultistyleDefaults } from "../config.js";
|
|
4
4
|
import { cn } from "../utils/cn.js";
|
|
5
5
|
|
|
6
|
+
/** @type {{ style?: string, theme?: string, class?: string, [key: string]: any }} */
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
let {
|
|
7
10
|
style: styleProp,
|
|
8
11
|
theme: themeProp,
|
|
@@ -13,8 +16,11 @@
|
|
|
13
16
|
...rest
|
|
14
17
|
} = $props();
|
|
15
18
|
|
|
16
|
-
const
|
|
17
|
-
|
|
19
|
+
const _cfg = getMultistyleDefaults();
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
const style = $derived(styleProp ?? _cfg.style);
|
|
23
|
+
const theme = $derived(themeProp ?? _cfg.theme);
|
|
18
24
|
|
|
19
25
|
const styleClass = $derived(`s-accordion-${style}`);
|
|
20
26
|
const themeClass = $derived(`theme-${theme}`);
|
|
@@ -38,7 +44,7 @@
|
|
|
38
44
|
<div class={cn("s-accordion", styleClass, themeClass, className)} {...rest}>
|
|
39
45
|
{#each items as item}
|
|
40
46
|
<div class="s-accordion-item" class:open={openItems.has(item.id)}>
|
|
41
|
-
<button
|
|
47
|
+
<button type="button"
|
|
42
48
|
class="s-accordion-header"
|
|
43
49
|
onclick={() => toggle(item.id)}
|
|
44
50
|
aria-expanded={openItems.has(item.id)}
|
|
@@ -50,7 +56,7 @@
|
|
|
50
56
|
height="18"
|
|
51
57
|
viewBox="0 0 24 24"
|
|
52
58
|
fill="none"
|
|
53
|
-
stroke="
|
|
59
|
+
stroke="currentColor"
|
|
54
60
|
stroke-width="2"
|
|
55
61
|
>
|
|
56
62
|
<path d="M6 9l6 6 6-6" />
|
|
@@ -4,18 +4,14 @@ type Accordion = {
|
|
|
4
4
|
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
5
|
};
|
|
6
6
|
declare const Accordion: import("svelte").Component<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
current?: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
style?: string;
|
|
9
|
+
theme?: string;
|
|
12
10
|
class?: string;
|
|
13
|
-
}
|
|
11
|
+
}, {}, "">;
|
|
14
12
|
type $$ComponentProps = {
|
|
15
|
-
style
|
|
16
|
-
theme
|
|
17
|
-
items?: any[];
|
|
18
|
-
multiple?: boolean;
|
|
19
|
-
current?: string;
|
|
13
|
+
style?: string;
|
|
14
|
+
theme?: string;
|
|
20
15
|
class?: string;
|
|
21
|
-
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import "./alert-styles.css";
|
|
3
|
-
import {
|
|
3
|
+
import { getMultistyleDefaults, iconClass } from "../config.js";
|
|
4
4
|
import { slide } from "svelte/transition";
|
|
5
5
|
import { cn } from "../utils/cn.js";
|
|
6
6
|
|
|
7
|
+
/** @type {{ style?: string, theme?: string, class?: string, [key: string]: any }} */
|
|
8
|
+
|
|
9
|
+
|
|
7
10
|
let {
|
|
8
11
|
style: styleProp,
|
|
9
12
|
theme: themeProp,
|
|
@@ -16,8 +19,11 @@
|
|
|
16
19
|
...rest
|
|
17
20
|
} = $props();
|
|
18
21
|
|
|
19
|
-
const
|
|
20
|
-
|
|
22
|
+
const _cfg = getMultistyleDefaults();
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
const style = $derived(styleProp ?? _cfg.style);
|
|
26
|
+
const theme = $derived(themeProp ?? _cfg.theme);
|
|
21
27
|
|
|
22
28
|
const styleClass = $derived(`s-alert-${style}`);
|
|
23
29
|
const themeClass = $derived(`theme-${theme}`);
|
|
@@ -39,7 +45,7 @@
|
|
|
39
45
|
{#if visible}
|
|
40
46
|
<div
|
|
41
47
|
class={cn("s-alert", styleClass, themeClass, `s-alert-${preset}`, className)}
|
|
42
|
-
role="alert"
|
|
48
|
+
role={preset === "error" ? "alert" : "status"}
|
|
43
49
|
transition:slide={{ duration: 200 }}
|
|
44
50
|
{...rest}
|
|
45
51
|
>
|
|
@@ -53,7 +59,7 @@
|
|
|
53
59
|
<div class="s-alert-body">{@render children?.()}</div>
|
|
54
60
|
</div>
|
|
55
61
|
{#if dismissible}
|
|
56
|
-
<button
|
|
62
|
+
<button type="button"
|
|
57
63
|
class="s-alert-dismiss"
|
|
58
64
|
onclick={() => (visible = false)}
|
|
59
65
|
aria-label="Dismiss">×</button
|
|
@@ -4,22 +4,14 @@ type Alert = {
|
|
|
4
4
|
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
5
|
};
|
|
6
6
|
declare const Alert: import("svelte").Component<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
title?: string;
|
|
11
|
-
icon: any;
|
|
12
|
-
children: any;
|
|
13
|
-
dismissible?: boolean;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
style?: string;
|
|
9
|
+
theme?: string;
|
|
14
10
|
class?: string;
|
|
15
|
-
}
|
|
11
|
+
}, {}, "">;
|
|
16
12
|
type $$ComponentProps = {
|
|
17
|
-
style
|
|
18
|
-
theme
|
|
19
|
-
preset?: string;
|
|
20
|
-
title?: string;
|
|
21
|
-
icon: any;
|
|
22
|
-
children: any;
|
|
23
|
-
dismissible?: boolean;
|
|
13
|
+
style?: string;
|
|
14
|
+
theme?: string;
|
|
24
15
|
class?: string;
|
|
25
|
-
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import "./avatar-styles.css";
|
|
3
|
-
import {
|
|
3
|
+
import { getMultistyleDefaults } from "../config.js";
|
|
4
4
|
import { cn } from "../utils/cn.js";
|
|
5
5
|
|
|
6
|
+
/** @type {{ style?: string, theme?: string, class?: string, [key: string]: any }} */
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
let {
|
|
7
10
|
style: styleProp,
|
|
8
11
|
theme: themeProp,
|
|
@@ -14,14 +17,21 @@
|
|
|
14
17
|
...rest
|
|
15
18
|
} = $props();
|
|
16
19
|
|
|
17
|
-
const
|
|
18
|
-
|
|
20
|
+
const _cfg = getMultistyleDefaults();
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
const style = $derived(styleProp ?? _cfg.style);
|
|
24
|
+
const theme = $derived(themeProp ?? _cfg.theme);
|
|
19
25
|
|
|
20
26
|
const styleClass = $derived(`s-avatar-${style}`);
|
|
21
27
|
const themeClass = $derived(`theme-${theme}`);
|
|
22
28
|
const sizeClass = $derived(`avatar-${size}`);
|
|
23
29
|
|
|
24
30
|
let imgError = $state(false);
|
|
31
|
+
$effect(() => {
|
|
32
|
+
src;
|
|
33
|
+
imgError = false;
|
|
34
|
+
});
|
|
25
35
|
</script>
|
|
26
36
|
|
|
27
37
|
<div class={cn("s-avatar", styleClass, themeClass, sizeClass, className)} {...rest}>
|
|
@@ -4,20 +4,14 @@ type Avatar = {
|
|
|
4
4
|
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
5
|
};
|
|
6
6
|
declare const Avatar: import("svelte").Component<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
alt?: string;
|
|
11
|
-
size?: string;
|
|
12
|
-
fallback?: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
style?: string;
|
|
9
|
+
theme?: string;
|
|
13
10
|
class?: string;
|
|
14
|
-
}
|
|
11
|
+
}, {}, "">;
|
|
15
12
|
type $$ComponentProps = {
|
|
16
|
-
style
|
|
17
|
-
theme
|
|
18
|
-
src?: string;
|
|
19
|
-
alt?: string;
|
|
20
|
-
size?: string;
|
|
21
|
-
fallback?: string;
|
|
13
|
+
style?: string;
|
|
14
|
+
theme?: string;
|
|
22
15
|
class?: string;
|
|
23
|
-
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import "./breadcrumb-styles.css";
|
|
3
|
-
import {
|
|
3
|
+
import { getMultistyleDefaults } from "../config.js";
|
|
4
4
|
import { cn } from "../utils/cn.js";
|
|
5
5
|
|
|
6
|
+
/** @type {{ style?: string, theme?: string, class?: string, [key: string]: any }} */
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
let { style: styleProp, theme: themeProp, items = [], class: className = "", ...rest } = $props();
|
|
7
10
|
|
|
8
|
-
const
|
|
9
|
-
|
|
11
|
+
const _cfg = getMultistyleDefaults();
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const style = $derived(styleProp ?? _cfg.style);
|
|
15
|
+
const theme = $derived(themeProp ?? _cfg.theme);
|
|
10
16
|
|
|
11
17
|
const styleClass = $derived(`s-breadcrumb-${style}`);
|
|
12
18
|
const themeClass = $derived(`theme-${theme}`);
|
|
@@ -4,14 +4,14 @@ type Breadcrumb = {
|
|
|
4
4
|
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
5
|
};
|
|
6
6
|
declare const Breadcrumb: import("svelte").Component<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
style?: string;
|
|
9
|
+
theme?: string;
|
|
10
10
|
class?: string;
|
|
11
|
-
}
|
|
11
|
+
}, {}, "">;
|
|
12
12
|
type $$ComponentProps = {
|
|
13
|
-
style
|
|
14
|
-
theme
|
|
15
|
-
items?: any[];
|
|
13
|
+
style?: string;
|
|
14
|
+
theme?: string;
|
|
16
15
|
class?: string;
|
|
17
|
-
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|