@plitzi/sdk-elements 0.38.11 → 0.38.12
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/CHANGELOG.md +112 -0
- package/dist/Element/ElementWords.d.ts +6 -2
- package/dist/Element/ElementWords.mjs +18 -11
- package/dist/Element/JsxManager.mjs +8 -8
- package/dist/Element/PluginManager.mjs +4 -4
- package/dist/Element/ReplicaProvider.mjs +9 -9
- package/dist/Element/RootElement.mjs +60 -60
- package/dist/Element/helpers/declaredAttributes.d.ts +10 -0
- package/dist/Element/helpers/declaredAttributes.mjs +22 -0
- package/dist/Element/hocs/withElement.mjs +101 -100
- package/dist/Element/hooks/useEditableContent.d.ts +12 -0
- package/dist/Element/hooks/useEditableContent.mjs +21 -0
- package/dist/Element/hooks/useElementDataSource.mjs +9 -9
- package/dist/Element/hooks/useElementVisible.mjs +1 -1
- package/dist/Element/hooks/useInternalItems.mjs +22 -23
- package/dist/Element/hooks/useIntervalTriggers.d.ts +2 -3
- package/dist/Element/hooks/useKeyTriggers.d.ts +2 -3
- package/dist/Element/hooks/usePluginTrigger.d.ts +21 -0
- package/dist/Element/hooks/usePluginTrigger.mjs +18 -0
- package/dist/Element/hooks/useRootElementInteractions.d.ts +2 -4
- package/dist/Element/hooks/useRootElementInteractions.mjs +79 -76
- package/dist/Element/hooks/useScrollInteractions.d.ts +2 -3
- package/dist/canvas/useAnimationFrame.mjs +1 -1
- package/dist/dataSource/GlobalSources.mjs +1 -1
- package/dist/dataSource/pathFields.mjs +1 -1
- package/dist/dataSource/sourceStore.d.ts +7 -0
- package/dist/dataSource/sourceStore.mjs +5 -0
- package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +1 -1
- package/dist/elements/advanced/BlockHtml/declaration.d.ts +2 -27
- package/dist/elements/advanced/BlockHtml/declaration.mjs +2 -25
- package/dist/elements/advanced/BlockHtml/index.d.ts +2 -25
- package/dist/elements/advanced/BlockJsx/Settings.mjs +37 -37
- package/dist/elements/advanced/BlockJsx/declaration.d.ts +2 -27
- package/dist/elements/advanced/BlockJsx/declaration.mjs +2 -25
- package/dist/elements/advanced/BlockJsx/index.d.ts +2 -25
- package/dist/elements/advanced/Custom/Custom.mjs +52 -42
- package/dist/elements/advanced/Custom/Settings.mjs +41 -40
- package/dist/elements/advanced/Custom/declaration.d.ts +2 -26
- package/dist/elements/advanced/Custom/declaration.mjs +2 -22
- package/dist/elements/advanced/Custom/index.d.ts +2 -24
- package/dist/elements/advanced/NodeHtml/Settings.mjs +3 -3
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +19 -44
- package/dist/elements/advanced/NodeHtml/declaration.mjs +2 -23
- package/dist/elements/advanced/NodeHtml/index.d.ts +19 -42
- package/dist/elements/advanced/PlitziSdk/Settings.mjs +4 -4
- package/dist/elements/advanced/Reference/Reference.mjs +1 -1
- package/dist/elements/advanced/Reference/declaration.d.ts +3 -27
- package/dist/elements/advanced/Reference/declaration.mjs +2 -22
- package/dist/elements/advanced/Reference/index.d.ts +3 -25
- package/dist/elements/basic/Button/Button.mjs +24 -31
- package/dist/elements/basic/Button/declaration.d.ts +4 -27
- package/dist/elements/basic/Button/declaration.mjs +2 -25
- package/dist/elements/basic/Button/index.d.ts +4 -25
- package/dist/elements/basic/Dropdown/Dropdown.mjs +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +3 -19
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +2 -16
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +3 -17
- package/dist/elements/basic/Dropdown/declaration.d.ts +3 -26
- package/dist/elements/basic/Dropdown/declaration.mjs +16 -41
- package/dist/elements/basic/Dropdown/index.d.ts +5 -42
- package/dist/elements/basic/Dropdown/useDropdown.mjs +23 -29
- package/dist/elements/basic/Heading/Heading.mjs +15 -17
- package/dist/elements/basic/Heading/Settings.mjs +4 -4
- package/dist/elements/basic/Heading/declaration.d.ts +2 -27
- package/dist/elements/basic/Heading/declaration.mjs +2 -23
- package/dist/elements/basic/Heading/index.d.ts +2 -25
- package/dist/elements/basic/Link/Link.mjs +52 -59
- package/dist/elements/basic/Link/Settings.mjs +52 -51
- package/dist/elements/basic/Link/declaration.d.ts +6 -26
- package/dist/elements/basic/Link/declaration.mjs +8 -32
- package/dist/elements/basic/Link/index.d.ts +6 -24
- package/dist/elements/basic/Markdown/Markdown.mjs +1 -1
- package/dist/elements/basic/Markdown/declaration.d.ts +2 -25
- package/dist/elements/basic/Markdown/declaration.mjs +2 -25
- package/dist/elements/basic/Markdown/index.d.ts +2 -23
- package/dist/elements/basic/Paragraph/Paragraph.mjs +15 -17
- package/dist/elements/basic/Paragraph/declaration.d.ts +2 -27
- package/dist/elements/basic/Paragraph/declaration.mjs +5 -28
- package/dist/elements/basic/Paragraph/index.d.ts +2 -25
- package/dist/elements/basic/RichText/RichText.mjs +1 -1
- package/dist/elements/basic/RichText/Settings.mjs +4 -4
- package/dist/elements/basic/RichText/declaration.d.ts +4 -27
- package/dist/elements/basic/RichText/declaration.mjs +2 -23
- package/dist/elements/basic/RichText/index.d.ts +4 -25
- package/dist/elements/basic/Text/Text.mjs +16 -18
- package/dist/elements/basic/Text/declaration.d.ts +3 -28
- package/dist/elements/basic/Text/declaration.mjs +2 -25
- package/dist/elements/basic/Text/index.d.ts +3 -26
- package/dist/elements/basic/ThemeToggle/Settings.d.ts +6 -0
- package/dist/elements/basic/ThemeToggle/Settings.mjs +49 -0
- package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +40 -39
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +3 -26
- package/dist/elements/basic/ThemeToggle/declaration.mjs +2 -23
- package/dist/elements/basic/ThemeToggle/index.d.ts +3 -24
- package/dist/elements/declarations/index.d.ts +139 -1061
- package/dist/elements/form/Form/Form.mjs +65 -64
- package/dist/elements/form/Form/declaration.d.ts +3 -28
- package/dist/elements/form/Form/declaration.mjs +2 -25
- package/dist/elements/form/Form/index.d.ts +17 -25
- package/dist/elements/form/FormControl/FormControl.mjs +106 -105
- package/dist/elements/form/FormControl/declaration.d.ts +2 -22
- package/dist/elements/form/FormControl/declaration.mjs +4 -23
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +1 -1
- package/dist/elements/form/FormControl/index.d.ts +16 -20
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +1 -1
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +3 -25
- package/dist/elements/internal/LayoutContainer/declaration.mjs +3 -23
- package/dist/elements/internal/LayoutContainer/index.d.ts +3 -23
- package/dist/elements/internal/Loading/Settings.d.ts +2 -0
- package/dist/elements/internal/Loading/Settings.mjs +5 -0
- package/dist/elements/internal/Loading/declaration.d.ts +2 -24
- package/dist/elements/internal/Loading/declaration.mjs +3 -25
- package/dist/elements/internal/Loading/index.d.ts +2 -22
- package/dist/elements/internal/NotFound/NotFound.mjs +1 -1
- package/dist/elements/internal/NotFound/Settings.d.ts +2 -0
- package/dist/elements/internal/NotFound/Settings.mjs +5 -0
- package/dist/elements/internal/NotFound/declaration.d.ts +2 -24
- package/dist/elements/internal/NotFound/declaration.mjs +7 -29
- package/dist/elements/internal/NotFound/index.d.ts +2 -22
- package/dist/elements/internal/Page/Page.mjs +17 -16
- package/dist/elements/internal/Page/Settings.mjs +102 -101
- package/dist/elements/internal/Page/declaration.d.ts +3 -23
- package/dist/elements/internal/Page/declaration.mjs +14 -32
- package/dist/elements/internal/Page/index.d.ts +3 -21
- package/dist/elements/media/Embed/Embed.mjs +1 -1
- package/dist/elements/media/Embed/Settings.mjs +7 -7
- package/dist/elements/media/Embed/declaration.d.ts +2 -27
- package/dist/elements/media/Embed/declaration.mjs +10 -33
- package/dist/elements/media/Embed/index.d.ts +2 -25
- package/dist/elements/media/FontAwesome/Settings.mjs +8 -8
- package/dist/elements/media/FontAwesome/declaration.d.ts +2 -27
- package/dist/elements/media/FontAwesome/declaration.mjs +5 -28
- package/dist/elements/media/FontAwesome/index.d.ts +2 -25
- package/dist/elements/media/Image/Image.mjs +1 -1
- package/dist/elements/media/Image/Settings.mjs +47 -46
- package/dist/elements/media/Image/declaration.d.ts +2 -27
- package/dist/elements/media/Image/declaration.mjs +7 -30
- package/dist/elements/media/Image/index.d.ts +2 -25
- package/dist/elements/media/Svg/Settings.mjs +4 -4
- package/dist/elements/media/Svg/Svg.mjs +1 -1
- package/dist/elements/media/Svg/declaration.d.ts +3 -27
- package/dist/elements/media/Svg/declaration.mjs +2 -22
- package/dist/elements/media/Svg/index.d.ts +3 -25
- package/dist/elements/media/Video/Settings.mjs +7 -7
- package/dist/elements/media/Video/Video.mjs +1 -1
- package/dist/elements/media/Video/declaration.d.ts +2 -27
- package/dist/elements/media/Video/declaration.mjs +6 -29
- package/dist/elements/media/Video/index.d.ts +2 -25
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +151 -150
- package/dist/elements/provider/ApiContainer/Settings.mjs +135 -134
- package/dist/elements/provider/ApiContainer/declaration.d.ts +3 -28
- package/dist/elements/provider/ApiContainer/declaration.mjs +2 -23
- package/dist/elements/provider/ApiContainer/index.d.ts +3 -26
- package/dist/elements/provider/Channel/Channel.mjs +40 -39
- package/dist/elements/provider/Channel/declaration.d.ts +3 -28
- package/dist/elements/provider/Channel/declaration.mjs +3 -24
- package/dist/elements/provider/Channel/index.d.ts +3 -26
- package/dist/elements/settings.mjs +70 -62
- package/dist/elements/structure/Carousel/Carousel.mjs +36 -35
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +3 -25
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +6 -28
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +3 -23
- package/dist/elements/structure/Carousel/Settings.mjs +40 -39
- package/dist/elements/structure/Carousel/declaration.d.ts +4 -29
- package/dist/elements/structure/Carousel/declaration.mjs +2 -25
- package/dist/elements/structure/Carousel/index.d.ts +6 -51
- package/dist/elements/structure/Container/Settings.mjs +40 -39
- package/dist/elements/structure/Container/declaration.d.ts +3 -28
- package/dist/elements/structure/Container/declaration.mjs +2 -23
- package/dist/elements/structure/Container/index.d.ts +3 -26
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +8 -8
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +54 -173
- package/dist/elements/structure/DialogContainer/Settings.mjs +24 -23
- package/dist/elements/structure/DialogContainer/declaration.d.ts +8 -31
- package/dist/elements/structure/DialogContainer/declaration.mjs +2 -23
- package/dist/elements/structure/DialogContainer/index.d.ts +8 -29
- package/dist/elements/structure/List/ListItem/declaration.d.ts +4 -26
- package/dist/elements/structure/List/ListItem/declaration.mjs +3 -25
- package/dist/elements/structure/List/ListItem/index.d.ts +4 -24
- package/dist/elements/structure/List/Settings.mjs +6 -6
- package/dist/elements/structure/List/declaration.d.ts +3 -28
- package/dist/elements/structure/List/declaration.mjs +2 -23
- package/dist/elements/structure/List/index.d.ts +6 -51
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +13 -12
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +6 -6
- package/dist/elements/structure/ModalContainer/ModalContainer.mjs +27 -121
- package/dist/elements/structure/ModalContainer/Settings.mjs +15 -14
- package/dist/elements/structure/ModalContainer/declaration.d.ts +3 -26
- package/dist/elements/structure/ModalContainer/declaration.mjs +2 -23
- package/dist/elements/structure/ModalContainer/index.d.ts +3 -24
- package/dist/elements/structure/Overlay/OverlayShell.d.ts +24 -0
- package/dist/elements/structure/Overlay/OverlayShell.mjs +64 -0
- package/dist/elements/structure/Overlay/metadataOf.d.ts +8 -0
- package/dist/elements/structure/{ModalContainer/metadataFromText.mjs → Overlay/metadataOf.mjs} +5 -2
- package/dist/elements/structure/{ModalContainer → Overlay}/useModalDialog.mjs +1 -1
- package/dist/elements/structure/Overlay/useOverlay.d.ts +40 -0
- package/dist/elements/structure/Overlay/useOverlay.mjs +83 -0
- package/dist/elements/structure/Pagination/Pagination.mjs +28 -27
- package/dist/elements/structure/Pagination/Settings.mjs +10 -10
- package/dist/elements/structure/Pagination/declaration.d.ts +3 -26
- package/dist/elements/structure/Pagination/declaration.mjs +2 -23
- package/dist/elements/structure/Pagination/index.d.ts +3 -24
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.mjs +10 -32
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +4 -22
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +3 -17
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +4 -20
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.mjs +10 -34
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +4 -22
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +3 -17
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +4 -20
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +4 -26
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +7 -27
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +4 -24
- package/dist/elements/structure/TabContainer/declaration.d.ts +4 -26
- package/dist/elements/structure/TabContainer/declaration.mjs +3 -23
- package/dist/elements/structure/TabContainer/index.d.ts +15 -89
- package/dist/elements/structure/TabContainer/useTabItems.d.ts +7 -0
- package/dist/elements/structure/TabContainer/useTabItems.mjs +35 -0
- package/dist/elements/useSettingsUpdate.d.ts +12 -0
- package/dist/elements/useSettingsUpdate.mjs +8 -0
- package/dist/index.d.ts +163 -984
- package/package.json +57 -13
- package/dist/elements/structure/ModalContainer/metadataFromText.d.ts +0 -7
- /package/dist/elements/structure/{ModalContainer → Overlay}/useModalDialog.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import { DialogContainerProps } from './DialogContainer';
|
|
|
2
2
|
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type DialogContainerAttributes = AuthorableAttributes<DialogContainerProps>;
|
|
5
|
-
declare const declaration: {
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
|
|
6
6
|
readonly type: "dialogContainer";
|
|
7
7
|
readonly sourceType: "dialogContainer";
|
|
8
8
|
readonly triggers: {
|
|
@@ -95,13 +95,10 @@ declare const declaration: {
|
|
|
95
95
|
};
|
|
96
96
|
readonly definition: {
|
|
97
97
|
readonly label: "Dialog Container";
|
|
98
|
-
readonly type: "dialogContainer";
|
|
99
98
|
readonly description: "A native <dialog> container shown or hidden through interactions (e.g. an onClick open/close).";
|
|
100
|
-
readonly items:
|
|
101
|
-
readonly bindings: {};
|
|
99
|
+
readonly items: [];
|
|
102
100
|
readonly loadStrategy: "lazy";
|
|
103
101
|
readonly styleSelectors: {
|
|
104
|
-
readonly base: "";
|
|
105
102
|
readonly backgroundContainer: "";
|
|
106
103
|
readonly rootContainer: "";
|
|
107
104
|
readonly headerContainer: "";
|
|
@@ -112,31 +109,12 @@ declare const declaration: {
|
|
|
112
109
|
readonly acceptButton: "";
|
|
113
110
|
readonly cancelButton: "";
|
|
114
111
|
};
|
|
115
|
-
readonly initialState: {
|
|
116
|
-
readonly visibility: true;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
readonly builder: {
|
|
120
|
-
readonly canDelete: true;
|
|
121
|
-
readonly canSelect: true;
|
|
122
|
-
readonly canDragDrop: true;
|
|
123
|
-
readonly canMove: true;
|
|
124
|
-
readonly canSnippet: true;
|
|
125
|
-
readonly itemsAllowed: readonly [];
|
|
126
|
-
readonly itemsNotAllowed: readonly [];
|
|
127
112
|
};
|
|
128
113
|
readonly market: {
|
|
129
114
|
readonly category: "structure";
|
|
130
|
-
readonly owner: "Plitzi";
|
|
131
|
-
readonly verified: true;
|
|
132
|
-
readonly license: "MIT";
|
|
133
|
-
readonly website: "https://plitzi.com";
|
|
134
|
-
readonly backgroundColor: "#4422ee";
|
|
135
115
|
readonly icon: "fa-regular fa-message";
|
|
136
116
|
};
|
|
137
117
|
readonly defaultStyle: {
|
|
138
|
-
readonly name: "Dialog Container";
|
|
139
|
-
readonly displayMode: "desktop";
|
|
140
118
|
readonly style: {
|
|
141
119
|
readonly base: {
|
|
142
120
|
readonly default: {
|
|
@@ -282,14 +260,13 @@ declare const declaration: {
|
|
|
282
260
|
};
|
|
283
261
|
readonly subTypes: {};
|
|
284
262
|
};
|
|
285
|
-
readonly settings: {};
|
|
286
263
|
};
|
|
287
264
|
readonly initialItems: readonly ["container"];
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
265
|
+
}, Partial<{
|
|
266
|
+
autoHideAfterClick?: boolean | undefined;
|
|
267
|
+
headerLabel?: string | undefined;
|
|
268
|
+
acceptButtonLabel?: string | undefined;
|
|
269
|
+
acceptButtonLabelLoading?: string | undefined;
|
|
270
|
+
rejectButtonLabel?: string | undefined;
|
|
294
271
|
}>>;
|
|
295
272
|
export default declaration;
|
|
@@ -113,13 +113,10 @@ var t = { default: {
|
|
|
113
113
|
},
|
|
114
114
|
definition: {
|
|
115
115
|
label: "Dialog Container",
|
|
116
|
-
type: "dialogContainer",
|
|
117
116
|
description: "A native <dialog> container shown or hidden through interactions (e.g. an onClick open/close).",
|
|
118
117
|
items: [],
|
|
119
|
-
bindings: {},
|
|
120
118
|
loadStrategy: "lazy",
|
|
121
119
|
styleSelectors: {
|
|
122
|
-
base: "",
|
|
123
120
|
backgroundContainer: "",
|
|
124
121
|
rootContainer: "",
|
|
125
122
|
headerContainer: "",
|
|
@@ -129,30 +126,13 @@ var t = { default: {
|
|
|
129
126
|
footerContainer: "",
|
|
130
127
|
acceptButton: "",
|
|
131
128
|
cancelButton: ""
|
|
132
|
-
}
|
|
133
|
-
initialState: { visibility: !0 }
|
|
134
|
-
},
|
|
135
|
-
builder: {
|
|
136
|
-
canDelete: !0,
|
|
137
|
-
canSelect: !0,
|
|
138
|
-
canDragDrop: !0,
|
|
139
|
-
canMove: !0,
|
|
140
|
-
canSnippet: !0,
|
|
141
|
-
itemsAllowed: [],
|
|
142
|
-
itemsNotAllowed: []
|
|
129
|
+
}
|
|
143
130
|
},
|
|
144
131
|
market: {
|
|
145
132
|
category: "structure",
|
|
146
|
-
owner: "Plitzi",
|
|
147
|
-
verified: !0,
|
|
148
|
-
license: "MIT",
|
|
149
|
-
website: "https://plitzi.com",
|
|
150
|
-
backgroundColor: "#4422ee",
|
|
151
133
|
icon: "fa-regular fa-message"
|
|
152
134
|
},
|
|
153
135
|
defaultStyle: {
|
|
154
|
-
name: "Dialog Container",
|
|
155
|
-
displayMode: "desktop",
|
|
156
136
|
style: {
|
|
157
137
|
base: { default: {
|
|
158
138
|
position: "fixed",
|
|
@@ -222,8 +202,7 @@ var t = { default: {
|
|
|
222
202
|
} }
|
|
223
203
|
},
|
|
224
204
|
subTypes: {}
|
|
225
|
-
}
|
|
226
|
-
settings: {}
|
|
205
|
+
}
|
|
227
206
|
},
|
|
228
207
|
initialItems: ["container"]
|
|
229
208
|
});
|
|
@@ -94,13 +94,10 @@ declare const DialogContainer: {
|
|
|
94
94
|
};
|
|
95
95
|
readonly definition: {
|
|
96
96
|
readonly label: "Dialog Container";
|
|
97
|
-
readonly type: "dialogContainer";
|
|
98
97
|
readonly description: "A native <dialog> container shown or hidden through interactions (e.g. an onClick open/close).";
|
|
99
|
-
readonly items:
|
|
100
|
-
readonly bindings: {};
|
|
98
|
+
readonly items: [];
|
|
101
99
|
readonly loadStrategy: "lazy";
|
|
102
100
|
readonly styleSelectors: {
|
|
103
|
-
readonly base: "";
|
|
104
101
|
readonly backgroundContainer: "";
|
|
105
102
|
readonly rootContainer: "";
|
|
106
103
|
readonly headerContainer: "";
|
|
@@ -111,31 +108,12 @@ declare const DialogContainer: {
|
|
|
111
108
|
readonly acceptButton: "";
|
|
112
109
|
readonly cancelButton: "";
|
|
113
110
|
};
|
|
114
|
-
readonly initialState: {
|
|
115
|
-
readonly visibility: true;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
readonly builder: {
|
|
119
|
-
readonly canDelete: true;
|
|
120
|
-
readonly canSelect: true;
|
|
121
|
-
readonly canDragDrop: true;
|
|
122
|
-
readonly canMove: true;
|
|
123
|
-
readonly canSnippet: true;
|
|
124
|
-
readonly itemsAllowed: readonly [];
|
|
125
|
-
readonly itemsNotAllowed: readonly [];
|
|
126
111
|
};
|
|
127
112
|
readonly market: {
|
|
128
113
|
readonly category: "structure";
|
|
129
|
-
readonly owner: "Plitzi";
|
|
130
|
-
readonly verified: true;
|
|
131
|
-
readonly license: "MIT";
|
|
132
|
-
readonly website: "https://plitzi.com";
|
|
133
|
-
readonly backgroundColor: "#4422ee";
|
|
134
114
|
readonly icon: "fa-regular fa-message";
|
|
135
115
|
};
|
|
136
116
|
readonly defaultStyle: {
|
|
137
|
-
readonly name: "Dialog Container";
|
|
138
|
-
readonly displayMode: "desktop";
|
|
139
117
|
readonly style: {
|
|
140
118
|
readonly base: {
|
|
141
119
|
readonly default: {
|
|
@@ -281,14 +259,15 @@ declare const DialogContainer: {
|
|
|
281
259
|
};
|
|
282
260
|
readonly subTypes: {};
|
|
283
261
|
};
|
|
284
|
-
readonly settings: {};
|
|
285
262
|
};
|
|
286
263
|
readonly initialItems: readonly ["container"];
|
|
264
|
+
} & {
|
|
265
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
287
266
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
267
|
+
autoHideAfterClick?: boolean | undefined;
|
|
268
|
+
headerLabel?: string | undefined;
|
|
269
|
+
acceptButtonLabel?: string | undefined;
|
|
270
|
+
acceptButtonLabelLoading?: string | undefined;
|
|
271
|
+
rejectButtonLabel?: string | undefined;
|
|
293
272
|
}>>;
|
|
294
273
|
export default DialogContainer;
|
|
@@ -2,51 +2,29 @@ import { ListItemProps } from './ListItem';
|
|
|
2
2
|
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type ListItemAttributes = AuthorableAttributes<ListItemProps>;
|
|
5
|
-
declare const declaration: {
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
|
|
6
6
|
readonly type: "listItem";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {};
|
|
9
9
|
readonly definition: {
|
|
10
10
|
readonly label: "List Item";
|
|
11
|
-
readonly type: "listItem";
|
|
12
11
|
readonly description: "The List Item element lets you add more items to existing List elements. You can then add any content you would like to them, including links, images, etc.";
|
|
13
|
-
readonly items:
|
|
14
|
-
readonly bindings: {};
|
|
15
|
-
readonly styleSelectors: {
|
|
16
|
-
readonly base: "";
|
|
17
|
-
};
|
|
18
|
-
readonly initialState: {
|
|
19
|
-
readonly visibility: true;
|
|
20
|
-
};
|
|
12
|
+
readonly items: [];
|
|
21
13
|
};
|
|
22
14
|
readonly builder: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly canSelect: true;
|
|
25
|
-
readonly canDragDrop: true;
|
|
26
|
-
readonly canMove: true;
|
|
27
|
-
readonly canSnippet: true;
|
|
28
|
-
readonly itemsAllowed: readonly [];
|
|
29
|
-
readonly itemsNotAllowed: readonly ["listItem"];
|
|
15
|
+
readonly itemsNotAllowed: ["listItem"];
|
|
30
16
|
};
|
|
31
17
|
readonly market: {
|
|
32
18
|
readonly category: "structure";
|
|
33
|
-
readonly owner: "Plitzi";
|
|
34
|
-
readonly verified: true;
|
|
35
|
-
readonly license: "MIT";
|
|
36
|
-
readonly website: "https://plitzi.com";
|
|
37
|
-
readonly backgroundColor: "#4422ee";
|
|
38
19
|
readonly icon: "fa-solid fa-grip-lines";
|
|
39
20
|
};
|
|
40
21
|
readonly defaultStyle: {
|
|
41
|
-
readonly name: "List Item";
|
|
42
|
-
readonly displayMode: "desktop";
|
|
43
22
|
readonly style: {
|
|
44
23
|
readonly base: {
|
|
45
24
|
readonly default: {};
|
|
46
25
|
};
|
|
47
26
|
};
|
|
48
27
|
};
|
|
49
|
-
readonly settings: {};
|
|
50
28
|
};
|
|
51
|
-
}
|
|
29
|
+
}, unknown>;
|
|
52
30
|
export default declaration;
|
|
@@ -6,37 +6,15 @@ var t = e()({
|
|
|
6
6
|
attributes: {},
|
|
7
7
|
definition: {
|
|
8
8
|
label: "List Item",
|
|
9
|
-
type: "listItem",
|
|
10
9
|
description: "The List Item element lets you add more items to existing List elements. You can then add any content you would like to them, including links, images, etc.",
|
|
11
|
-
items: []
|
|
12
|
-
bindings: {},
|
|
13
|
-
styleSelectors: { base: "" },
|
|
14
|
-
initialState: { visibility: !0 }
|
|
15
|
-
},
|
|
16
|
-
builder: {
|
|
17
|
-
canDelete: !0,
|
|
18
|
-
canSelect: !0,
|
|
19
|
-
canDragDrop: !0,
|
|
20
|
-
canMove: !0,
|
|
21
|
-
canSnippet: !0,
|
|
22
|
-
itemsAllowed: [],
|
|
23
|
-
itemsNotAllowed: ["listItem"]
|
|
10
|
+
items: []
|
|
24
11
|
},
|
|
12
|
+
builder: { itemsNotAllowed: ["listItem"] },
|
|
25
13
|
market: {
|
|
26
14
|
category: "structure",
|
|
27
|
-
owner: "Plitzi",
|
|
28
|
-
verified: !0,
|
|
29
|
-
license: "MIT",
|
|
30
|
-
website: "https://plitzi.com",
|
|
31
|
-
backgroundColor: "#4422ee",
|
|
32
15
|
icon: "fa-solid fa-grip-lines"
|
|
33
16
|
},
|
|
34
|
-
defaultStyle: {
|
|
35
|
-
name: "List Item",
|
|
36
|
-
displayMode: "desktop",
|
|
37
|
-
style: { base: { default: {} } }
|
|
38
|
-
},
|
|
39
|
-
settings: {}
|
|
17
|
+
defaultStyle: { style: { base: { default: {} } } }
|
|
40
18
|
}
|
|
41
19
|
});
|
|
42
20
|
//#endregion
|
|
@@ -7,45 +7,25 @@ declare const ListItem: {
|
|
|
7
7
|
readonly attributes: {};
|
|
8
8
|
readonly definition: {
|
|
9
9
|
readonly label: "List Item";
|
|
10
|
-
readonly type: "listItem";
|
|
11
10
|
readonly description: "The List Item element lets you add more items to existing List elements. You can then add any content you would like to them, including links, images, etc.";
|
|
12
|
-
readonly items:
|
|
13
|
-
readonly bindings: {};
|
|
14
|
-
readonly styleSelectors: {
|
|
15
|
-
readonly base: "";
|
|
16
|
-
};
|
|
17
|
-
readonly initialState: {
|
|
18
|
-
readonly visibility: true;
|
|
19
|
-
};
|
|
11
|
+
readonly items: [];
|
|
20
12
|
};
|
|
21
13
|
readonly builder: {
|
|
22
|
-
readonly
|
|
23
|
-
readonly canSelect: true;
|
|
24
|
-
readonly canDragDrop: true;
|
|
25
|
-
readonly canMove: true;
|
|
26
|
-
readonly canSnippet: true;
|
|
27
|
-
readonly itemsAllowed: readonly [];
|
|
28
|
-
readonly itemsNotAllowed: readonly ["listItem"];
|
|
14
|
+
readonly itemsNotAllowed: ["listItem"];
|
|
29
15
|
};
|
|
30
16
|
readonly market: {
|
|
31
17
|
readonly category: "structure";
|
|
32
|
-
readonly owner: "Plitzi";
|
|
33
|
-
readonly verified: true;
|
|
34
|
-
readonly license: "MIT";
|
|
35
|
-
readonly website: "https://plitzi.com";
|
|
36
|
-
readonly backgroundColor: "#4422ee";
|
|
37
18
|
readonly icon: "fa-solid fa-grip-lines";
|
|
38
19
|
};
|
|
39
20
|
readonly defaultStyle: {
|
|
40
|
-
readonly name: "List Item";
|
|
41
|
-
readonly displayMode: "desktop";
|
|
42
21
|
readonly style: {
|
|
43
22
|
readonly base: {
|
|
44
23
|
readonly default: {};
|
|
45
24
|
};
|
|
46
25
|
};
|
|
47
26
|
};
|
|
48
|
-
readonly settings: {};
|
|
49
27
|
};
|
|
28
|
+
} & {
|
|
29
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
50
30
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
51
31
|
export default ListItem;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "../../useSettingsUpdate.mjs";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import r from "@plitzi/plitzi-ui/Input";
|
|
4
4
|
import i from "@plitzi/plitzi-ui/Select";
|
|
5
5
|
//#region src/elements/structure/List/Settings.tsx
|
|
6
6
|
var a = ({ subType: a = "ul", source: o = "none", itemKey: s = "", label: c = "", onUpdate: l }) => {
|
|
7
|
-
let u = e(
|
|
7
|
+
let u = e(l);
|
|
8
8
|
return /* @__PURE__ */ n("div", {
|
|
9
9
|
className: "flex flex-col gap-4 py-2",
|
|
10
10
|
children: [
|
|
11
11
|
/* @__PURE__ */ n(i, {
|
|
12
12
|
label: "Source",
|
|
13
13
|
value: o,
|
|
14
|
-
onChange: u("source"),
|
|
14
|
+
onChange: u.text("source"),
|
|
15
15
|
size: "xs",
|
|
16
16
|
children: [/* @__PURE__ */ t("option", {
|
|
17
17
|
value: "none",
|
|
@@ -27,12 +27,12 @@ var a = ({ subType: a = "ul", source: o = "none", itemKey: s = "", label: c = ""
|
|
|
27
27
|
placeholder: "id",
|
|
28
28
|
value: s,
|
|
29
29
|
title: "The field of each item that names it, so a row stays with its item when the list is filtered.",
|
|
30
|
-
onChange: u("itemKey")
|
|
30
|
+
onChange: u.text("itemKey")
|
|
31
31
|
}),
|
|
32
32
|
/* @__PURE__ */ n(i, {
|
|
33
33
|
label: "List Type",
|
|
34
34
|
value: a,
|
|
35
|
-
onChange: u("subType"),
|
|
35
|
+
onChange: u.text("subType"),
|
|
36
36
|
size: "xs",
|
|
37
37
|
children: [/* @__PURE__ */ t("option", {
|
|
38
38
|
value: "ul",
|
|
@@ -46,7 +46,7 @@ var a = ({ subType: a = "ul", source: o = "none", itemKey: s = "", label: c = ""
|
|
|
46
46
|
value: c,
|
|
47
47
|
label: "List Name",
|
|
48
48
|
placeholder: "e.g. Kinds of capsule, Search results",
|
|
49
|
-
onChange: u("label"),
|
|
49
|
+
onChange: u.text("label"),
|
|
50
50
|
size: "xs"
|
|
51
51
|
})
|
|
52
52
|
]
|
|
@@ -2,7 +2,7 @@ import { ListProps } from './List';
|
|
|
2
2
|
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type ListAttributes = AuthorableAttributes<ListProps>;
|
|
5
|
-
declare const declaration: {
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
|
|
6
6
|
readonly type: "list";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly subType: readonly string[];
|
|
@@ -17,38 +17,14 @@ declare const declaration: {
|
|
|
17
17
|
};
|
|
18
18
|
readonly definition: {
|
|
19
19
|
readonly label: "List";
|
|
20
|
-
readonly type: "list";
|
|
21
20
|
readonly description: string;
|
|
22
|
-
readonly items:
|
|
23
|
-
readonly bindings: {};
|
|
24
|
-
readonly styleSelectors: {
|
|
25
|
-
readonly base: "";
|
|
26
|
-
};
|
|
27
|
-
readonly initialState: {
|
|
28
|
-
readonly visibility: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
readonly builder: {
|
|
32
|
-
readonly canDelete: true;
|
|
33
|
-
readonly canSelect: true;
|
|
34
|
-
readonly canDragDrop: true;
|
|
35
|
-
readonly canMove: true;
|
|
36
|
-
readonly canSnippet: true;
|
|
37
|
-
readonly itemsAllowed: readonly [];
|
|
38
|
-
readonly itemsNotAllowed: readonly [];
|
|
21
|
+
readonly items: [];
|
|
39
22
|
};
|
|
40
23
|
readonly market: {
|
|
41
24
|
readonly category: "structure";
|
|
42
|
-
readonly owner: "Plitzi";
|
|
43
|
-
readonly verified: true;
|
|
44
|
-
readonly license: "MIT";
|
|
45
|
-
readonly website: "https://plitzi.com";
|
|
46
|
-
readonly backgroundColor: "#4422ee";
|
|
47
25
|
readonly icon: "fa-solid fa-list";
|
|
48
26
|
};
|
|
49
27
|
readonly defaultStyle: {
|
|
50
|
-
readonly name: "List";
|
|
51
|
-
readonly displayMode: "desktop";
|
|
52
28
|
readonly style: {
|
|
53
29
|
readonly base: {
|
|
54
30
|
readonly default: {
|
|
@@ -87,10 +63,9 @@ declare const declaration: {
|
|
|
87
63
|
};
|
|
88
64
|
};
|
|
89
65
|
};
|
|
90
|
-
readonly settings: {};
|
|
91
66
|
};
|
|
92
67
|
readonly initialItems: readonly ["listItem", "listItem", "listItem"];
|
|
93
|
-
}
|
|
68
|
+
}, Partial<{
|
|
94
69
|
source?: "none" | "controlled" | undefined;
|
|
95
70
|
label?: string | undefined;
|
|
96
71
|
items?: unknown[] | undefined;
|
|
@@ -15,34 +15,14 @@ var n = e()({
|
|
|
15
15
|
},
|
|
16
16
|
definition: {
|
|
17
17
|
label: "List",
|
|
18
|
-
type: "list",
|
|
19
18
|
description: "Repeats a template (its row: a listItem, or a container with subType \"li\") once per entry of a data array — the way to render a dynamic collection, as a <ul> (subType \"ol\" for a numbered one). Bind its items to a data source (e.g. an apiContainer response).",
|
|
20
|
-
items: []
|
|
21
|
-
bindings: {},
|
|
22
|
-
styleSelectors: { base: "" },
|
|
23
|
-
initialState: { visibility: !0 }
|
|
24
|
-
},
|
|
25
|
-
builder: {
|
|
26
|
-
canDelete: !0,
|
|
27
|
-
canSelect: !0,
|
|
28
|
-
canDragDrop: !0,
|
|
29
|
-
canMove: !0,
|
|
30
|
-
canSnippet: !0,
|
|
31
|
-
itemsAllowed: [],
|
|
32
|
-
itemsNotAllowed: []
|
|
19
|
+
items: []
|
|
33
20
|
},
|
|
34
21
|
market: {
|
|
35
22
|
category: "structure",
|
|
36
|
-
owner: "Plitzi",
|
|
37
|
-
verified: !0,
|
|
38
|
-
license: "MIT",
|
|
39
|
-
website: "https://plitzi.com",
|
|
40
|
-
backgroundColor: "#4422ee",
|
|
41
23
|
icon: "fa-solid fa-list"
|
|
42
24
|
},
|
|
43
25
|
defaultStyle: {
|
|
44
|
-
name: "List",
|
|
45
|
-
displayMode: "desktop",
|
|
46
26
|
style: { base: { default: {
|
|
47
27
|
"margin-top": "0px",
|
|
48
28
|
"margin-bottom": "10px",
|
|
@@ -68,8 +48,7 @@ var n = e()({
|
|
|
68
48
|
} } }
|
|
69
49
|
}
|
|
70
50
|
}
|
|
71
|
-
}
|
|
72
|
-
settings: {}
|
|
51
|
+
}
|
|
73
52
|
},
|
|
74
53
|
initialItems: [
|
|
75
54
|
"listItem",
|
|
@@ -12,46 +12,26 @@ declare const List: {
|
|
|
12
12
|
readonly attributes: {};
|
|
13
13
|
readonly definition: {
|
|
14
14
|
readonly label: "List Item";
|
|
15
|
-
readonly type: "listItem";
|
|
16
15
|
readonly description: "The List Item element lets you add more items to existing List elements. You can then add any content you would like to them, including links, images, etc.";
|
|
17
|
-
readonly items:
|
|
18
|
-
readonly bindings: {};
|
|
19
|
-
readonly styleSelectors: {
|
|
20
|
-
readonly base: "";
|
|
21
|
-
};
|
|
22
|
-
readonly initialState: {
|
|
23
|
-
readonly visibility: true;
|
|
24
|
-
};
|
|
16
|
+
readonly items: [];
|
|
25
17
|
};
|
|
26
18
|
readonly builder: {
|
|
27
|
-
readonly
|
|
28
|
-
readonly canSelect: true;
|
|
29
|
-
readonly canDragDrop: true;
|
|
30
|
-
readonly canMove: true;
|
|
31
|
-
readonly canSnippet: true;
|
|
32
|
-
readonly itemsAllowed: readonly [];
|
|
33
|
-
readonly itemsNotAllowed: readonly ["listItem"];
|
|
19
|
+
readonly itemsNotAllowed: ["listItem"];
|
|
34
20
|
};
|
|
35
21
|
readonly market: {
|
|
36
22
|
readonly category: "structure";
|
|
37
|
-
readonly owner: "Plitzi";
|
|
38
|
-
readonly verified: true;
|
|
39
|
-
readonly license: "MIT";
|
|
40
|
-
readonly website: "https://plitzi.com";
|
|
41
|
-
readonly backgroundColor: "#4422ee";
|
|
42
23
|
readonly icon: "fa-solid fa-grip-lines";
|
|
43
24
|
};
|
|
44
25
|
readonly defaultStyle: {
|
|
45
|
-
readonly name: "List Item";
|
|
46
|
-
readonly displayMode: "desktop";
|
|
47
26
|
readonly style: {
|
|
48
27
|
readonly base: {
|
|
49
28
|
readonly default: {};
|
|
50
29
|
};
|
|
51
30
|
};
|
|
52
31
|
};
|
|
53
|
-
readonly settings: {};
|
|
54
32
|
};
|
|
33
|
+
} & {
|
|
34
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
55
35
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
56
36
|
};
|
|
57
37
|
type: "list";
|
|
@@ -68,38 +48,14 @@ declare const List: {
|
|
|
68
48
|
};
|
|
69
49
|
readonly definition: {
|
|
70
50
|
readonly label: "List";
|
|
71
|
-
readonly type: "list";
|
|
72
51
|
readonly description: string;
|
|
73
|
-
readonly items:
|
|
74
|
-
readonly bindings: {};
|
|
75
|
-
readonly styleSelectors: {
|
|
76
|
-
readonly base: "";
|
|
77
|
-
};
|
|
78
|
-
readonly initialState: {
|
|
79
|
-
readonly visibility: true;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
readonly builder: {
|
|
83
|
-
readonly canDelete: true;
|
|
84
|
-
readonly canSelect: true;
|
|
85
|
-
readonly canDragDrop: true;
|
|
86
|
-
readonly canMove: true;
|
|
87
|
-
readonly canSnippet: true;
|
|
88
|
-
readonly itemsAllowed: readonly [];
|
|
89
|
-
readonly itemsNotAllowed: readonly [];
|
|
52
|
+
readonly items: [];
|
|
90
53
|
};
|
|
91
54
|
readonly market: {
|
|
92
55
|
readonly category: "structure";
|
|
93
|
-
readonly owner: "Plitzi";
|
|
94
|
-
readonly verified: true;
|
|
95
|
-
readonly license: "MIT";
|
|
96
|
-
readonly website: "https://plitzi.com";
|
|
97
|
-
readonly backgroundColor: "#4422ee";
|
|
98
56
|
readonly icon: "fa-solid fa-list";
|
|
99
57
|
};
|
|
100
58
|
readonly defaultStyle: {
|
|
101
|
-
readonly name: "List";
|
|
102
|
-
readonly displayMode: "desktop";
|
|
103
59
|
readonly style: {
|
|
104
60
|
readonly base: {
|
|
105
61
|
readonly default: {
|
|
@@ -138,8 +94,7 @@ declare const List: {
|
|
|
138
94
|
};
|
|
139
95
|
};
|
|
140
96
|
};
|
|
141
|
-
|
|
142
|
-
};
|
|
97
|
+
} & import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
143
98
|
initialItems: readonly ["listItem", "listItem", "listItem"];
|
|
144
99
|
__attributes: Partial<{
|
|
145
100
|
source?: "none" | "controlled" | undefined;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import e from "../../declaration.mjs";
|
|
2
2
|
import t from "../../../../../Element/hooks/useElement.mjs";
|
|
3
3
|
import { RootElement as n } from "../../../../../Element/RootElement.mjs";
|
|
4
|
-
import
|
|
5
|
-
import i from "./
|
|
6
|
-
import
|
|
7
|
-
import s from "
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import r from "../../../../../dataSource/sourceStore.mjs";
|
|
5
|
+
import { rowKeys as i } from "./rowKeys.mjs";
|
|
6
|
+
import a from "./ListControlledItem.mjs";
|
|
7
|
+
import { useCallback as o, useMemo as s } from "react";
|
|
8
|
+
import c from "@plitzi/sdk-shared/hooks/usePlitzi";
|
|
9
|
+
import { get as l } from "@plitzi/plitzi-ui/helpers";
|
|
10
|
+
import { StoreProvider as u } from "@plitzi/nexus/react";
|
|
11
|
+
import { getPathsFromObject as d } from "@plitzi/sdk-shared/helpers/utils";
|
|
11
12
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
12
13
|
import m from "clsx";
|
|
13
14
|
import h from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
|
|
14
15
|
import g from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
|
|
15
16
|
//#region src/elements/structure/List/modes/ListControlled/ListControlled.tsx
|
|
16
17
|
var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x = [], itemKey: S, label: C = "" }) => {
|
|
17
|
-
let { id: w, definition: { label: T } } = t(), E = h(e.sourceType, w), { settings: { previewMode: D } } =
|
|
18
|
-
item:
|
|
18
|
+
let { id: w, definition: { label: T } } = t(), E = h(e.sourceType, w), { settings: { previewMode: D } } = c(), O = s(() => Array.isArray(x) ? x : [], [x]), k = s(() => i(O, S), [O, S]), A = o(() => d({
|
|
19
|
+
item: l(O, "0", {}),
|
|
19
20
|
index: 0
|
|
20
21
|
}).reduce((e, t) => [...e, {
|
|
21
22
|
path: t,
|
|
22
23
|
name: t
|
|
23
|
-
}], []), [O]), j =
|
|
24
|
+
}], []), [O]), j = s(() => r(E, { items: O }), [E, O]);
|
|
24
25
|
return g({
|
|
25
26
|
id: w,
|
|
26
27
|
source: E,
|
|
@@ -31,7 +32,7 @@ var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x =
|
|
|
31
32
|
tag: y,
|
|
32
33
|
"aria-label": C || void 0,
|
|
33
34
|
className: m("plitzi-component__controlled-list", v, { "controlled-list--build-mode": !D }),
|
|
34
|
-
children: [/* @__PURE__ */ f(
|
|
35
|
+
children: [/* @__PURE__ */ f(u, {
|
|
35
36
|
inherit: "live",
|
|
36
37
|
name: `List:${w}`,
|
|
37
38
|
value: j,
|
|
@@ -41,7 +42,7 @@ var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x =
|
|
|
41
42
|
className: "controlled-list-item__counter",
|
|
42
43
|
children: `List Item - ${t + 1}`
|
|
43
44
|
})
|
|
44
|
-
}, t) : /* @__PURE__ */ f(
|
|
45
|
+
}, t) : /* @__PURE__ */ f(a, {
|
|
45
46
|
index: t,
|
|
46
47
|
isTemplate: t !== 0 && !D,
|
|
47
48
|
record: e,
|