@plitzi/sdk-elements 0.33.2 → 0.34.1
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 +56 -0
- package/dist/Component/ComponentProvider.mjs +20 -20
- package/dist/Component/index.mjs +3 -3
- package/dist/Element/ElementContext.d.ts +16 -4
- package/dist/Element/JsxManager.mjs +6 -7
- package/dist/Element/PluginRemote.d.ts +1 -2
- package/dist/Element/PluginRemote.mjs +14 -12
- package/dist/Element/RootElement.d.ts +1 -1
- package/dist/Element/RootElement.mjs +8 -6
- package/dist/Element/ServerStaticShell.d.ts +10 -10
- package/dist/Element/ServerStaticShell.mjs +8 -8
- package/dist/Element/helpers/elementConstants.mjs +35 -0
- package/dist/Element/helpers/elementUtils.d.ts +8 -1
- package/dist/Element/helpers/elementUtils.mjs +7 -34
- package/dist/Element/helpers/getInteractions.d.ts +1 -1
- package/dist/Element/helpers/getInteractions.mjs +61 -64
- package/dist/Element/helpers/loadComponent.d.ts +1 -1
- package/dist/Element/helpers/loadComponent.mjs +19 -19
- package/dist/Element/helpers/pluginSelector.d.ts +0 -1
- package/dist/Element/helpers/pluginSelector.mjs +2 -6
- package/dist/Element/helpers/renderStaticTag.d.ts +6 -2
- package/dist/Element/helpers/renderStaticTag.mjs +5 -4
- package/dist/Element/hocs/withElement.mjs +80 -77
- package/dist/Element/hooks/useElementInteractions.mjs +29 -18
- package/dist/Element/hooks/useElementInternal.d.ts +3 -1
- package/dist/Element/hooks/useElementInternal.mjs +82 -58
- package/dist/Element/hooks/useElementState.mjs +3 -2
- package/dist/Element/hooks/useInternalItems.d.ts +3 -1
- package/dist/Element/hooks/useInternalItems.mjs +47 -44
- package/dist/Element/hooks/useRootElementInteractions.mjs +30 -30
- package/dist/Element/hooks/useRscData.d.ts +10 -0
- package/dist/Element/hooks/useRscData.mjs +9 -5
- package/dist/components/ElementAdvancedEditor.mjs +19 -19
- package/dist/dataSource/GlobalSources.mjs +60 -51
- package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +9 -9
- package/dist/elements/advanced/BlockHtml/declaration.d.ts +55 -0
- package/dist/elements/advanced/BlockHtml/declaration.mjs +42 -0
- package/dist/elements/advanced/BlockHtml/index.d.ts +39 -36
- package/dist/elements/advanced/BlockHtml/index.mjs +3 -38
- package/dist/elements/advanced/BlockJsx/BlockJsx.mjs +8 -8
- package/dist/elements/advanced/BlockJsx/Settings.mjs +8 -8
- package/dist/elements/advanced/BlockJsx/declaration.d.ts +59 -0
- package/dist/elements/advanced/BlockJsx/declaration.mjs +47 -0
- package/dist/elements/advanced/BlockJsx/index.d.ts +40 -39
- package/dist/elements/advanced/BlockJsx/index.mjs +3 -43
- package/dist/elements/advanced/Custom/Custom.d.ts +1 -2
- package/dist/elements/advanced/Custom/Custom.mjs +32 -33
- package/dist/elements/advanced/Custom/Settings.d.ts +1 -2
- package/dist/elements/advanced/Custom/Settings.mjs +44 -53
- package/dist/elements/advanced/Custom/declaration.d.ts +63 -0
- package/dist/elements/advanced/Custom/declaration.mjs +48 -0
- package/dist/elements/advanced/Custom/index.d.ts +47 -45
- package/dist/elements/advanced/Custom/index.mjs +3 -49
- package/dist/elements/advanced/NodeHtml/NodeHtml.mjs +6 -6
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +353 -0
- package/dist/elements/advanced/NodeHtml/declaration.mjs +48 -0
- package/dist/elements/advanced/NodeHtml/index.d.ts +325 -49
- package/dist/elements/advanced/NodeHtml/index.mjs +4 -49
- package/dist/elements/advanced/Reference/Reference.mjs +13 -13
- package/dist/elements/advanced/Reference/declaration.d.ts +60 -0
- package/dist/elements/advanced/Reference/declaration.mjs +47 -0
- package/dist/elements/advanced/Reference/index.d.ts +44 -43
- package/dist/elements/advanced/Reference/index.mjs +4 -48
- package/dist/elements/basic/Button/Button.mjs +8 -8
- package/dist/elements/basic/Button/declaration.d.ts +127 -0
- package/dist/elements/basic/Button/declaration.mjs +101 -0
- package/dist/elements/basic/Button/index.d.ts +98 -98
- package/dist/elements/basic/Button/index.mjs +3 -103
- package/dist/elements/basic/Dropdown/Dropdown.mjs +13 -13
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.mjs +7 -7
- package/dist/elements/basic/Dropdown/DropdownPopup/Settings.mjs +5 -0
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +67 -0
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +60 -0
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +52 -54
- package/dist/elements/basic/Dropdown/DropdownPopup/index.mjs +4 -60
- package/dist/elements/basic/Dropdown/declaration.d.ts +86 -0
- package/dist/elements/basic/Dropdown/declaration.mjs +70 -0
- package/dist/elements/basic/Dropdown/index.d.ts +131 -124
- package/dist/elements/basic/Dropdown/index.mjs +7 -70
- package/dist/elements/basic/Dropdown/useDropdown.mjs +1 -1
- package/dist/elements/basic/Heading/Heading.mjs +8 -8
- package/dist/elements/basic/Heading/declaration.d.ts +149 -0
- package/dist/elements/basic/Heading/declaration.mjs +113 -0
- package/dist/elements/basic/Heading/index.d.ts +108 -104
- package/dist/elements/basic/Heading/index.mjs +4 -110
- package/dist/elements/basic/Link/Link.d.ts +8 -1
- package/dist/elements/basic/Link/Link.mjs +33 -31
- package/dist/elements/basic/Link/declaration.d.ts +66 -0
- package/dist/elements/basic/Link/declaration.mjs +52 -0
- package/dist/elements/basic/Link/index.d.ts +49 -45
- package/dist/elements/basic/Link/index.mjs +4 -51
- package/dist/elements/basic/Markdown/Markdown.mjs +6 -6
- package/dist/elements/basic/Markdown/declaration.d.ts +58 -0
- package/dist/elements/basic/Markdown/declaration.mjs +45 -0
- package/dist/elements/basic/Markdown/index.d.ts +41 -38
- package/dist/elements/basic/Markdown/index.mjs +4 -42
- package/dist/elements/basic/Paragraph/Paragraph.mjs +8 -8
- package/dist/elements/basic/Paragraph/declaration.d.ts +58 -0
- package/dist/elements/basic/Paragraph/declaration.mjs +45 -0
- package/dist/elements/basic/Paragraph/index.d.ts +41 -38
- package/dist/elements/basic/Paragraph/index.mjs +4 -42
- package/dist/elements/basic/RichText/RichText.mjs +8 -8
- package/dist/elements/basic/RichText/declaration.d.ts +61 -0
- package/dist/elements/basic/RichText/declaration.mjs +48 -0
- package/dist/elements/basic/RichText/index.d.ts +45 -44
- package/dist/elements/basic/RichText/index.mjs +4 -49
- package/dist/elements/basic/Text/Text.mjs +8 -8
- package/dist/elements/basic/Text/declaration.d.ts +59 -0
- package/dist/elements/basic/Text/declaration.mjs +46 -0
- package/dist/elements/basic/Text/index.d.ts +42 -39
- package/dist/elements/basic/Text/index.mjs +4 -43
- package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +31 -0
- package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +114 -0
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +71 -0
- package/dist/elements/basic/ThemeToggle/declaration.mjs +58 -0
- package/dist/elements/basic/ThemeToggle/index.d.ts +70 -0
- package/dist/elements/basic/ThemeToggle/index.mjs +6 -0
- package/dist/elements/declarations/index.d.ts +3098 -0
- package/dist/elements/declarations/index.mjs +75 -0
- package/dist/elements/form/Form/Form.d.ts +4 -0
- package/dist/elements/form/Form/Form.mjs +131 -100
- package/dist/elements/form/Form/declaration.d.ts +64 -0
- package/dist/elements/form/Form/declaration.mjs +49 -0
- package/dist/elements/form/Form/index.d.ts +44 -39
- package/dist/elements/form/Form/index.mjs +11 -48
- package/dist/elements/form/FormControl/FormControl.d.ts +21 -3
- package/dist/elements/form/FormControl/FormControl.mjs +142 -116
- package/dist/elements/form/FormControl/Settings.d.ts +7 -1
- package/dist/elements/form/FormControl/Settings.mjs +78 -33
- package/dist/elements/form/FormControl/declaration.d.ts +497 -0
- package/dist/elements/form/FormControl/declaration.mjs +197 -0
- package/dist/elements/form/FormControl/helpers/validateField.d.ts +27 -0
- package/dist/elements/form/FormControl/helpers/validateField.mjs +16 -0
- package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +6 -0
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +73 -50
- package/dist/elements/form/FormControl/index.d.ts +186 -180
- package/dist/elements/form/FormControl/index.mjs +10 -186
- package/dist/elements/form/FormControl/inputs/Input.d.ts +3 -1
- package/dist/elements/form/FormControl/inputs/Input.mjs +16 -15
- package/dist/elements/form/FormControl/inputs/Select.mjs +16 -9
- package/dist/elements/form/FormControl/inputs/Textarea.d.ts +3 -1
- package/dist/elements/form/FormControl/inputs/Textarea.mjs +10 -9
- package/dist/elements/index.d.ts +3 -1
- package/dist/elements/index.mjs +36 -34
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +18 -18
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +57 -0
- package/dist/elements/internal/LayoutContainer/declaration.mjs +44 -0
- package/dist/elements/internal/LayoutContainer/index.d.ts +41 -39
- package/dist/elements/internal/LayoutContainer/index.mjs +4 -42
- package/dist/elements/internal/Loading/Loading.mjs +8 -8
- package/dist/elements/internal/Loading/declaration.d.ts +51 -0
- package/dist/elements/internal/Loading/declaration.mjs +42 -0
- package/dist/elements/internal/Loading/index.d.ts +36 -36
- package/dist/elements/internal/Loading/index.mjs +4 -40
- package/dist/elements/internal/NotFound/NotFound.mjs +8 -8
- package/dist/elements/internal/NotFound/declaration.d.ts +51 -0
- package/dist/elements/internal/NotFound/declaration.mjs +42 -0
- package/dist/elements/internal/NotFound/index.d.ts +36 -36
- package/dist/elements/internal/NotFound/index.mjs +3 -39
- package/dist/elements/internal/Page/Page.mjs +26 -22
- package/dist/elements/internal/Page/declaration.d.ts +80 -0
- package/dist/elements/internal/Page/declaration.mjs +65 -0
- package/dist/elements/internal/Page/index.d.ts +63 -57
- package/dist/elements/internal/Page/index.mjs +4 -63
- package/dist/elements/media/FontAwesome/FontAwesome.mjs +10 -18
- package/dist/elements/media/FontAwesome/declaration.d.ts +62 -0
- package/dist/elements/media/FontAwesome/declaration.mjs +49 -0
- package/dist/elements/media/FontAwesome/index.d.ts +45 -40
- package/dist/elements/media/FontAwesome/index.mjs +4 -46
- package/dist/elements/media/Image/Image.d.ts +1 -1
- package/dist/elements/media/Image/Image.mjs +21 -21
- package/dist/elements/media/Image/declaration.d.ts +65 -0
- package/dist/elements/media/Image/declaration.mjs +51 -0
- package/dist/elements/media/Image/index.d.ts +48 -43
- package/dist/elements/media/Image/index.mjs +4 -49
- package/dist/elements/media/Video/Video.mjs +8 -8
- package/dist/elements/media/Video/declaration.d.ts +67 -0
- package/dist/elements/media/Video/declaration.mjs +52 -0
- package/dist/elements/media/Video/index.d.ts +50 -44
- package/dist/elements/media/Video/index.mjs +4 -50
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +10 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +95 -114
- package/dist/elements/provider/ApiContainer/Settings.d.ts +3 -2
- package/dist/elements/provider/ApiContainer/Settings.mjs +156 -119
- package/dist/elements/provider/ApiContainer/declaration.d.ts +77 -0
- package/dist/elements/provider/ApiContainer/declaration.mjs +60 -0
- package/dist/elements/provider/ApiContainer/hooks/useApi.d.ts +10 -0
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +35 -30
- package/dist/elements/provider/ApiContainer/hooks/useProviderWrite.mjs +22 -15
- package/dist/elements/provider/ApiContainer/index.d.ts +53 -55
- package/dist/elements/provider/ApiContainer/index.mjs +4 -60
- package/dist/elements/structure/Container/Container.mjs +5 -5
- package/dist/elements/structure/Container/declaration.d.ts +57 -0
- package/dist/elements/structure/Container/declaration.mjs +44 -0
- package/dist/elements/structure/Container/index.d.ts +41 -42
- package/dist/elements/structure/Container/index.mjs +3 -44
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +65 -66
- package/dist/elements/structure/DialogContainer/declaration.d.ts +155 -0
- package/dist/elements/structure/DialogContainer/declaration.mjs +130 -0
- package/dist/elements/structure/DialogContainer/index.d.ts +124 -116
- package/dist/elements/structure/DialogContainer/index.mjs +4 -126
- package/dist/elements/structure/List/List.mjs +9 -9
- package/dist/elements/structure/List/ListItem/ListItem.mjs +5 -5
- package/dist/elements/structure/List/ListItem/declaration.d.ts +52 -0
- package/dist/elements/structure/List/ListItem/declaration.mjs +43 -0
- package/dist/elements/structure/List/ListItem/index.d.ts +37 -40
- package/dist/elements/structure/List/ListItem/index.mjs +4 -44
- package/dist/elements/structure/List/declaration.d.ts +90 -0
- package/dist/elements/structure/List/declaration.mjs +73 -0
- package/dist/elements/structure/List/index.d.ts +116 -117
- package/dist/elements/structure/List/index.mjs +7 -75
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +30 -29
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.d.ts +3 -2
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +2 -2
- package/dist/elements/structure/ModalContainer/ModalContainer.mjs +47 -46
- package/dist/elements/structure/ModalContainer/declaration.d.ts +151 -0
- package/dist/elements/structure/ModalContainer/declaration.mjs +128 -0
- package/dist/elements/structure/ModalContainer/index.d.ts +117 -112
- package/dist/elements/structure/ModalContainer/index.mjs +4 -124
- package/dist/elements/structure/Pagination/Pagination.mjs +9 -9
- package/dist/elements/structure/Pagination/declaration.d.ts +76 -0
- package/dist/elements/structure/Pagination/declaration.mjs +58 -0
- package/dist/elements/structure/Pagination/index.d.ts +59 -51
- package/dist/elements/structure/Pagination/index.mjs +4 -57
- package/dist/elements/structure/TabContainer/TabContainer.mjs +8 -8
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.mjs +8 -8
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +54 -0
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +49 -0
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +39 -42
- package/dist/elements/structure/TabContainer/TabContainerBody/index.mjs +4 -50
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.mjs +8 -8
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +54 -0
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +49 -0
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +39 -42
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.mjs +4 -50
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.mjs +7 -7
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +53 -0
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +48 -0
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +38 -41
- package/dist/elements/structure/TabContainer/TabContainerItem/index.mjs +4 -49
- package/dist/elements/structure/TabContainer/declaration.d.ts +54 -0
- package/dist/elements/structure/TabContainer/declaration.mjs +45 -0
- package/dist/elements/structure/TabContainer/index.d.ts +163 -174
- package/dist/elements/structure/TabContainer/index.mjs +11 -51
- package/dist/index.d.ts +2618 -2200
- package/dist/index.mjs +38 -36
- package/package.json +182 -14
|
@@ -1,106 +1,6 @@
|
|
|
1
1
|
import e from "./Button.mjs";
|
|
2
|
+
import t from "./declaration.mjs";
|
|
2
3
|
//#region src/elements/basic/Button/index.ts
|
|
3
|
-
var
|
|
4
|
-
type: "button",
|
|
5
|
-
content: {
|
|
6
|
-
attributes: {
|
|
7
|
-
contentPlacement: "after",
|
|
8
|
-
content: "Button",
|
|
9
|
-
subType: "button",
|
|
10
|
-
disabled: !1
|
|
11
|
-
},
|
|
12
|
-
definition: {
|
|
13
|
-
label: "Button",
|
|
14
|
-
type: "button",
|
|
15
|
-
items: [],
|
|
16
|
-
bindings: {},
|
|
17
|
-
styleSelectors: { base: "" },
|
|
18
|
-
initialState: { visibility: !0 }
|
|
19
|
-
},
|
|
20
|
-
builder: {
|
|
21
|
-
canDelete: !0,
|
|
22
|
-
canSelect: !0,
|
|
23
|
-
canDragDrop: !0,
|
|
24
|
-
canMove: !0,
|
|
25
|
-
canTemplate: !0,
|
|
26
|
-
itemsAllowed: [],
|
|
27
|
-
itemsNotAllowed: []
|
|
28
|
-
},
|
|
29
|
-
market: {
|
|
30
|
-
category: "basic",
|
|
31
|
-
owner: "Plitzi",
|
|
32
|
-
verified: !0,
|
|
33
|
-
license: "MIT",
|
|
34
|
-
website: "https://plitzi.com",
|
|
35
|
-
backgroundColor: "#4422ee",
|
|
36
|
-
icon: "fa-solid fa-stop"
|
|
37
|
-
},
|
|
38
|
-
defaultStyle: {
|
|
39
|
-
name: "Button",
|
|
40
|
-
displayMode: "desktop",
|
|
41
|
-
style: { base: { default: {} } },
|
|
42
|
-
subTypes: {
|
|
43
|
-
button: {
|
|
44
|
-
name: "Default Button",
|
|
45
|
-
displayMode: "desktop",
|
|
46
|
-
style: { base: { default: {
|
|
47
|
-
"min-height": "30px",
|
|
48
|
-
"min-width": "30px",
|
|
49
|
-
"padding-top": "6px",
|
|
50
|
-
"padding-left": "12px",
|
|
51
|
-
"padding-right": "12px",
|
|
52
|
-
"padding-bottom": "6px",
|
|
53
|
-
cursor: "pointer",
|
|
54
|
-
"font-size": "16px",
|
|
55
|
-
"line-height": "24px",
|
|
56
|
-
"border-top-left-radius": "4px",
|
|
57
|
-
"border-top-right-radius": "4px",
|
|
58
|
-
"border-bottom-left-radius": "4px",
|
|
59
|
-
"border-bottom-right-radius": "4px"
|
|
60
|
-
} } }
|
|
61
|
-
},
|
|
62
|
-
reset: {
|
|
63
|
-
name: "Reset Button",
|
|
64
|
-
displayMode: "desktop",
|
|
65
|
-
style: { base: { default: {
|
|
66
|
-
"min-height": "30px",
|
|
67
|
-
"min-width": "30px",
|
|
68
|
-
"padding-top": "6px",
|
|
69
|
-
"padding-left": "12px",
|
|
70
|
-
"padding-right": "12px",
|
|
71
|
-
"padding-bottom": "6px",
|
|
72
|
-
cursor: "pointer",
|
|
73
|
-
"font-size": "16px",
|
|
74
|
-
"line-height": "24px",
|
|
75
|
-
"border-top-left-radius": "4px",
|
|
76
|
-
"border-top-right-radius": "4px",
|
|
77
|
-
"border-bottom-left-radius": "4px",
|
|
78
|
-
"border-bottom-right-radius": "4px"
|
|
79
|
-
} } }
|
|
80
|
-
},
|
|
81
|
-
submit: {
|
|
82
|
-
name: "Submit Button",
|
|
83
|
-
displayMode: "desktop",
|
|
84
|
-
style: { base: { default: {
|
|
85
|
-
"min-height": "30px",
|
|
86
|
-
"min-width": "30px",
|
|
87
|
-
"padding-top": "6px",
|
|
88
|
-
"padding-left": "12px",
|
|
89
|
-
"padding-right": "12px",
|
|
90
|
-
"padding-bottom": "6px",
|
|
91
|
-
cursor: "pointer",
|
|
92
|
-
"font-size": "16px",
|
|
93
|
-
"line-height": "24px",
|
|
94
|
-
"border-top-left-radius": "4px",
|
|
95
|
-
"border-top-right-radius": "4px",
|
|
96
|
-
"border-bottom-left-radius": "4px",
|
|
97
|
-
"border-bottom-right-radius": "4px"
|
|
98
|
-
} } }
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
settings: {}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
4
|
+
var n = Object.assign(e, t);
|
|
105
5
|
//#endregion
|
|
106
|
-
export {
|
|
6
|
+
export { n as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import e from "../../../Element/
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "
|
|
1
|
+
import e from "../../../Element/hocs/withElement.mjs";
|
|
2
|
+
import t from "../../../Element/hooks/useElement.mjs";
|
|
3
|
+
import { RootElement as n } from "../../../Element/RootElement.mjs";
|
|
4
|
+
import r from "./DropdownContext.mjs";
|
|
5
|
+
import i from "./useDropdown.mjs";
|
|
6
6
|
import { useCallback as a, useMemo as o, useRef as s } from "react";
|
|
7
7
|
import c from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
import d from "clsx";
|
|
10
10
|
//#region src/elements/basic/Dropdown/Dropdown.tsx
|
|
11
|
-
var f = ({ ref:
|
|
12
|
-
let { setElementState: S, definition: { styleSelectors: C } } =
|
|
11
|
+
var f = ({ ref: e, children: f, className: p = "", popupPlacement: m = "bottom", openPopup: h = !1, backgroundDisabled: g = !1, closeOnClickBackground: _ = !0, closeOnClickPopup: v = !0, containerTopOffset: y = 5, containerLeftOffset: b = 5, disabled: x = !1 }) => {
|
|
12
|
+
let { setElementState: S, definition: { styleSelectors: C } } = t(), { settings: { previewMode: w }, utils: { getWindow: T } } = c(), E = s(null), D = s(null), O = o(() => T(), [T]), k = a((e) => {
|
|
13
13
|
_ && (e.stopPropagation(), e.preventDefault(), S((e) => ({
|
|
14
14
|
...e,
|
|
15
15
|
openPopup: !1
|
|
@@ -19,8 +19,8 @@ var f = ({ ref: i, children: f, className: p = "", popupPlacement: m = "bottom",
|
|
|
19
19
|
...t,
|
|
20
20
|
openPopup: e
|
|
21
21
|
}));
|
|
22
|
-
}, [S]), [, , j, M, , N] =
|
|
23
|
-
ref:
|
|
22
|
+
}, [S]), [, , j, M, , N] = i({
|
|
23
|
+
ref: e,
|
|
24
24
|
popupRef: E,
|
|
25
25
|
open: h,
|
|
26
26
|
disabled: !w || x,
|
|
@@ -40,11 +40,11 @@ var f = ({ ref: i, children: f, className: p = "", popupPlacement: m = "bottom",
|
|
|
40
40
|
h,
|
|
41
41
|
N
|
|
42
42
|
]);
|
|
43
|
-
return /* @__PURE__ */ u(
|
|
44
|
-
ref:
|
|
43
|
+
return /* @__PURE__ */ u(n, {
|
|
44
|
+
ref: e,
|
|
45
45
|
className: d("plitzi-component__dropdown", p, { "container--empty--skip": !w && !f }),
|
|
46
46
|
onClick: j,
|
|
47
|
-
children: [/* @__PURE__ */ l(
|
|
47
|
+
children: [/* @__PURE__ */ l(r, {
|
|
48
48
|
value: P,
|
|
49
49
|
children: f
|
|
50
50
|
}), h && g && w && /* @__PURE__ */ l("div", {
|
|
@@ -53,6 +53,6 @@ var f = ({ ref: i, children: f, className: p = "", popupPlacement: m = "bottom",
|
|
|
53
53
|
onClick: k
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
|
-
}, p =
|
|
56
|
+
}, p = e(f);
|
|
57
57
|
//#endregion
|
|
58
58
|
export { f as Dropdown, p as default };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
1
|
+
import e from "../../../../Element/hocs/withElement.mjs";
|
|
2
|
+
import { RootElement as t } from "../../../../Element/RootElement.mjs";
|
|
3
|
+
import n from "../DropdownContext.mjs";
|
|
4
4
|
import { use as r, useImperativeHandle as i } from "react";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
import o from "clsx";
|
|
7
7
|
//#region src/elements/basic/Dropdown/DropdownPopup/DropdownPopup.tsx
|
|
8
|
-
var s = ({ ref:
|
|
9
|
-
let { popupRef: l, openPopup: u, parameters: d, onClick: f } = r(
|
|
10
|
-
return i(
|
|
8
|
+
var s = ({ ref: e, className: s = "", children: c }) => {
|
|
9
|
+
let { popupRef: l, openPopup: u, parameters: d, onClick: f } = r(n);
|
|
10
|
+
return i(e, () => l.current ?? null, [l]), /* @__PURE__ */ a(t, {
|
|
11
11
|
ref: l,
|
|
12
12
|
className: o("plitzi-component__dropdown-popup", s, { "popup-container--no-visible": !u || !d }),
|
|
13
13
|
style: d,
|
|
14
14
|
onClick: f,
|
|
15
15
|
children: c
|
|
16
16
|
});
|
|
17
|
-
}, c =
|
|
17
|
+
}, c = e(s);
|
|
18
18
|
//#endregion
|
|
19
19
|
export { s as DropdownPopup, c as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DropdownPopupProps } from './DropdownPopup';
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
|
+
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
|
+
export type DropdownPopupAttributes = AuthorableAttributes<DropdownPopupProps>;
|
|
5
|
+
declare const declaration: {
|
|
6
|
+
readonly type: "dropdownPopup";
|
|
7
|
+
readonly content: {
|
|
8
|
+
readonly attributes: {};
|
|
9
|
+
readonly definition: {
|
|
10
|
+
readonly label: "Dropdown Popup";
|
|
11
|
+
readonly type: "dropdownPopup";
|
|
12
|
+
readonly description: "The floating panel revealed by a dropdown.";
|
|
13
|
+
readonly items: readonly [];
|
|
14
|
+
readonly bindings: {};
|
|
15
|
+
readonly styleSelectors: {
|
|
16
|
+
readonly base: "";
|
|
17
|
+
};
|
|
18
|
+
readonly initialState: {};
|
|
19
|
+
};
|
|
20
|
+
readonly builder: {
|
|
21
|
+
readonly canDelete: false;
|
|
22
|
+
readonly canSelect: true;
|
|
23
|
+
readonly canDragDrop: false;
|
|
24
|
+
readonly canMove: false;
|
|
25
|
+
readonly canTemplate: false;
|
|
26
|
+
readonly itemsAllowed: readonly [];
|
|
27
|
+
readonly itemsNotAllowed: readonly [];
|
|
28
|
+
};
|
|
29
|
+
readonly market: {
|
|
30
|
+
readonly category: "basic";
|
|
31
|
+
readonly owner: "Plitzi";
|
|
32
|
+
readonly verified: true;
|
|
33
|
+
readonly license: "MIT";
|
|
34
|
+
readonly website: "https://plitzi.com";
|
|
35
|
+
readonly backgroundColor: "#4422ee";
|
|
36
|
+
readonly icon: "";
|
|
37
|
+
};
|
|
38
|
+
readonly defaultStyle: {
|
|
39
|
+
readonly name: "Dropdown Popup";
|
|
40
|
+
readonly displayMode: "desktop";
|
|
41
|
+
readonly style: {
|
|
42
|
+
readonly base: {
|
|
43
|
+
readonly default: {
|
|
44
|
+
readonly 'background-color': "white";
|
|
45
|
+
readonly 'padding-right': "4px";
|
|
46
|
+
readonly 'padding-bottom': "4px";
|
|
47
|
+
readonly 'padding-left': "4px";
|
|
48
|
+
readonly 'padding-top': "4px";
|
|
49
|
+
readonly position: "fixed";
|
|
50
|
+
readonly display: "flex";
|
|
51
|
+
readonly 'flex-direction': "column";
|
|
52
|
+
readonly 'border-top-right-radius': "4px";
|
|
53
|
+
readonly 'border-bottom-right-radius': "4px";
|
|
54
|
+
readonly 'border-bottom-left-radius': "4px";
|
|
55
|
+
readonly 'border-top-left-radius': "4px";
|
|
56
|
+
readonly 'box-shadow': "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 4px 11px";
|
|
57
|
+
readonly 'z-index': 100;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly subTypes: {};
|
|
62
|
+
};
|
|
63
|
+
readonly settings: {};
|
|
64
|
+
};
|
|
65
|
+
readonly initialItems: readonly [];
|
|
66
|
+
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
67
|
+
export default declaration;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
|
|
2
|
+
//#region src/elements/basic/Dropdown/DropdownPopup/declaration.ts
|
|
3
|
+
var t = e()({
|
|
4
|
+
type: "dropdownPopup",
|
|
5
|
+
content: {
|
|
6
|
+
attributes: {},
|
|
7
|
+
definition: {
|
|
8
|
+
label: "Dropdown Popup",
|
|
9
|
+
type: "dropdownPopup",
|
|
10
|
+
description: "The floating panel revealed by a dropdown.",
|
|
11
|
+
items: [],
|
|
12
|
+
bindings: {},
|
|
13
|
+
styleSelectors: { base: "" },
|
|
14
|
+
initialState: {}
|
|
15
|
+
},
|
|
16
|
+
builder: {
|
|
17
|
+
canDelete: !1,
|
|
18
|
+
canSelect: !0,
|
|
19
|
+
canDragDrop: !1,
|
|
20
|
+
canMove: !1,
|
|
21
|
+
canTemplate: !1,
|
|
22
|
+
itemsAllowed: [],
|
|
23
|
+
itemsNotAllowed: []
|
|
24
|
+
},
|
|
25
|
+
market: {
|
|
26
|
+
category: "basic",
|
|
27
|
+
owner: "Plitzi",
|
|
28
|
+
verified: !0,
|
|
29
|
+
license: "MIT",
|
|
30
|
+
website: "https://plitzi.com",
|
|
31
|
+
backgroundColor: "#4422ee",
|
|
32
|
+
icon: ""
|
|
33
|
+
},
|
|
34
|
+
defaultStyle: {
|
|
35
|
+
name: "Dropdown Popup",
|
|
36
|
+
displayMode: "desktop",
|
|
37
|
+
style: { base: { default: {
|
|
38
|
+
"background-color": "white",
|
|
39
|
+
"padding-right": "4px",
|
|
40
|
+
"padding-bottom": "4px",
|
|
41
|
+
"padding-left": "4px",
|
|
42
|
+
"padding-top": "4px",
|
|
43
|
+
position: "fixed",
|
|
44
|
+
display: "flex",
|
|
45
|
+
"flex-direction": "column",
|
|
46
|
+
"border-top-right-radius": "4px",
|
|
47
|
+
"border-bottom-right-radius": "4px",
|
|
48
|
+
"border-bottom-left-radius": "4px",
|
|
49
|
+
"border-top-left-radius": "4px",
|
|
50
|
+
"box-shadow": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 4px 11px",
|
|
51
|
+
"z-index": 100
|
|
52
|
+
} } },
|
|
53
|
+
subTypes: {}
|
|
54
|
+
},
|
|
55
|
+
settings: {}
|
|
56
|
+
},
|
|
57
|
+
initialItems: []
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { t as default };
|
|
@@ -2,67 +2,65 @@ declare const DropdownPopup: {
|
|
|
2
2
|
(props: import('../../../../Element/hocs/withElement').WithElementProps<import('./DropdownPopup').DropdownPopupProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
|
-
type:
|
|
6
|
-
content: {
|
|
7
|
-
attributes: {};
|
|
8
|
-
definition: {
|
|
9
|
-
label:
|
|
10
|
-
type:
|
|
11
|
-
description:
|
|
12
|
-
items:
|
|
13
|
-
bindings: {};
|
|
14
|
-
styleSelectors: {
|
|
15
|
-
base:
|
|
5
|
+
readonly type: "dropdownPopup";
|
|
6
|
+
readonly content: {
|
|
7
|
+
readonly attributes: {};
|
|
8
|
+
readonly definition: {
|
|
9
|
+
readonly label: "Dropdown Popup";
|
|
10
|
+
readonly type: "dropdownPopup";
|
|
11
|
+
readonly description: "The floating panel revealed by a dropdown.";
|
|
12
|
+
readonly items: readonly [];
|
|
13
|
+
readonly bindings: {};
|
|
14
|
+
readonly styleSelectors: {
|
|
15
|
+
readonly base: "";
|
|
16
16
|
};
|
|
17
|
-
initialState: {};
|
|
17
|
+
readonly initialState: {};
|
|
18
18
|
};
|
|
19
|
-
builder: {
|
|
20
|
-
canDelete:
|
|
21
|
-
canSelect:
|
|
22
|
-
canDragDrop:
|
|
23
|
-
canMove:
|
|
24
|
-
canTemplate:
|
|
25
|
-
itemsAllowed:
|
|
26
|
-
itemsNotAllowed:
|
|
19
|
+
readonly builder: {
|
|
20
|
+
readonly canDelete: false;
|
|
21
|
+
readonly canSelect: true;
|
|
22
|
+
readonly canDragDrop: false;
|
|
23
|
+
readonly canMove: false;
|
|
24
|
+
readonly canTemplate: false;
|
|
25
|
+
readonly itemsAllowed: readonly [];
|
|
26
|
+
readonly itemsNotAllowed: readonly [];
|
|
27
27
|
};
|
|
28
|
-
market: {
|
|
29
|
-
category:
|
|
30
|
-
owner:
|
|
31
|
-
verified:
|
|
32
|
-
license:
|
|
33
|
-
website:
|
|
34
|
-
backgroundColor:
|
|
35
|
-
icon:
|
|
28
|
+
readonly market: {
|
|
29
|
+
readonly category: "basic";
|
|
30
|
+
readonly owner: "Plitzi";
|
|
31
|
+
readonly verified: true;
|
|
32
|
+
readonly license: "MIT";
|
|
33
|
+
readonly website: "https://plitzi.com";
|
|
34
|
+
readonly backgroundColor: "#4422ee";
|
|
35
|
+
readonly icon: "";
|
|
36
36
|
};
|
|
37
|
-
defaultStyle: {
|
|
38
|
-
name:
|
|
39
|
-
displayMode:
|
|
40
|
-
style: {
|
|
41
|
-
base: {
|
|
42
|
-
default: {
|
|
43
|
-
'background-color':
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'padding-
|
|
47
|
-
'padding-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
'
|
|
53
|
-
'border-
|
|
54
|
-
'border-
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'box-shadow': string;
|
|
58
|
-
'z-index': number;
|
|
37
|
+
readonly defaultStyle: {
|
|
38
|
+
readonly name: "Dropdown Popup";
|
|
39
|
+
readonly displayMode: "desktop";
|
|
40
|
+
readonly style: {
|
|
41
|
+
readonly base: {
|
|
42
|
+
readonly default: {
|
|
43
|
+
readonly 'background-color': "white";
|
|
44
|
+
readonly 'padding-right': "4px";
|
|
45
|
+
readonly 'padding-bottom': "4px";
|
|
46
|
+
readonly 'padding-left': "4px";
|
|
47
|
+
readonly 'padding-top': "4px";
|
|
48
|
+
readonly position: "fixed";
|
|
49
|
+
readonly display: "flex";
|
|
50
|
+
readonly 'flex-direction': "column";
|
|
51
|
+
readonly 'border-top-right-radius': "4px";
|
|
52
|
+
readonly 'border-bottom-right-radius': "4px";
|
|
53
|
+
readonly 'border-bottom-left-radius': "4px";
|
|
54
|
+
readonly 'border-top-left-radius': "4px";
|
|
55
|
+
readonly 'box-shadow': "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 4px 11px";
|
|
56
|
+
readonly 'z-index': 100;
|
|
59
57
|
};
|
|
60
58
|
};
|
|
61
59
|
};
|
|
62
|
-
subTypes: {};
|
|
60
|
+
readonly subTypes: {};
|
|
63
61
|
};
|
|
64
|
-
settings: {};
|
|
62
|
+
readonly settings: {};
|
|
65
63
|
};
|
|
66
|
-
initialItems:
|
|
67
|
-
}
|
|
64
|
+
readonly initialItems: readonly [];
|
|
65
|
+
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
68
66
|
export default DropdownPopup;
|
|
@@ -1,62 +1,6 @@
|
|
|
1
|
-
import e from "./
|
|
1
|
+
import e from "./declaration.mjs";
|
|
2
|
+
import t from "./DropdownPopup.mjs";
|
|
2
3
|
//#region src/elements/basic/Dropdown/DropdownPopup/index.ts
|
|
3
|
-
var
|
|
4
|
-
type: "dropdownPopup",
|
|
5
|
-
content: {
|
|
6
|
-
attributes: {},
|
|
7
|
-
definition: {
|
|
8
|
-
label: "Dropdown Popup",
|
|
9
|
-
type: "dropdownPopup",
|
|
10
|
-
description: "",
|
|
11
|
-
items: [],
|
|
12
|
-
bindings: {},
|
|
13
|
-
styleSelectors: { base: "" },
|
|
14
|
-
initialState: {}
|
|
15
|
-
},
|
|
16
|
-
builder: {
|
|
17
|
-
canDelete: !1,
|
|
18
|
-
canSelect: !0,
|
|
19
|
-
canDragDrop: !1,
|
|
20
|
-
canMove: !1,
|
|
21
|
-
canTemplate: !1,
|
|
22
|
-
itemsAllowed: [],
|
|
23
|
-
itemsNotAllowed: []
|
|
24
|
-
},
|
|
25
|
-
market: {
|
|
26
|
-
category: "basic",
|
|
27
|
-
owner: "Plitzi",
|
|
28
|
-
verified: !0,
|
|
29
|
-
license: "MIT",
|
|
30
|
-
website: "https://plitzi.com",
|
|
31
|
-
backgroundColor: "#4422ee",
|
|
32
|
-
icon: ""
|
|
33
|
-
},
|
|
34
|
-
defaultStyle: {
|
|
35
|
-
name: "Dropdown Popup",
|
|
36
|
-
displayMode: "desktop",
|
|
37
|
-
style: { base: { default: {
|
|
38
|
-
"background-color": "white",
|
|
39
|
-
"min-height": "50px",
|
|
40
|
-
"min-width": "50px",
|
|
41
|
-
"padding-right": "4px",
|
|
42
|
-
"padding-bottom": "4px",
|
|
43
|
-
"padding-left": "4px",
|
|
44
|
-
"padding-top": "4px",
|
|
45
|
-
position: "fixed",
|
|
46
|
-
display: "flex",
|
|
47
|
-
"flex-direction": "column",
|
|
48
|
-
"border-top-right-radius": "4px",
|
|
49
|
-
"border-bottom-right-radius": "4px",
|
|
50
|
-
"border-bottom-left-radius": "4px",
|
|
51
|
-
"border-top-left-radius": "4px",
|
|
52
|
-
"box-shadow": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 4px 11px",
|
|
53
|
-
"z-index": 100
|
|
54
|
-
} } },
|
|
55
|
-
subTypes: {}
|
|
56
|
-
},
|
|
57
|
-
settings: {}
|
|
58
|
-
},
|
|
59
|
-
initialItems: []
|
|
60
|
-
});
|
|
4
|
+
var n = Object.assign(t, e);
|
|
61
5
|
//#endregion
|
|
62
|
-
export {
|
|
6
|
+
export { n as default };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { DropdownProps } from './Dropdown';
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
|
+
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
|
+
export type DropdownAttributes = AuthorableAttributes<DropdownProps>;
|
|
5
|
+
declare const declaration: {
|
|
6
|
+
readonly type: "dropdown";
|
|
7
|
+
readonly content: {
|
|
8
|
+
readonly attributes: {
|
|
9
|
+
readonly popupPlacement: "bottom";
|
|
10
|
+
readonly openPopup: false;
|
|
11
|
+
readonly backgroundDisabled: false;
|
|
12
|
+
readonly closeOnClickBackground: true;
|
|
13
|
+
readonly closeOnClickPopup: true;
|
|
14
|
+
readonly containerTopOffset: 5;
|
|
15
|
+
readonly containerLeftOffset: 5;
|
|
16
|
+
readonly disabled: false;
|
|
17
|
+
};
|
|
18
|
+
readonly definition: {
|
|
19
|
+
readonly label: "Dropdown";
|
|
20
|
+
readonly type: "dropdown";
|
|
21
|
+
readonly description: "A trigger that toggles an attached popup panel (dropdownPopup) — menus, selects, flyouts.";
|
|
22
|
+
readonly items: readonly [];
|
|
23
|
+
readonly bindings: {};
|
|
24
|
+
readonly styleSelectors: {
|
|
25
|
+
readonly base: "";
|
|
26
|
+
readonly backgroundContainer: "";
|
|
27
|
+
};
|
|
28
|
+
readonly initialState: {
|
|
29
|
+
readonly visibility: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly builder: {
|
|
33
|
+
readonly canDelete: true;
|
|
34
|
+
readonly canSelect: true;
|
|
35
|
+
readonly canDragDrop: true;
|
|
36
|
+
readonly canMove: true;
|
|
37
|
+
readonly canTemplate: true;
|
|
38
|
+
readonly itemsAllowed: readonly [];
|
|
39
|
+
readonly itemsNotAllowed: readonly [];
|
|
40
|
+
};
|
|
41
|
+
readonly market: {
|
|
42
|
+
readonly category: "basic";
|
|
43
|
+
readonly owner: "Plitzi";
|
|
44
|
+
readonly verified: true;
|
|
45
|
+
readonly license: "MIT";
|
|
46
|
+
readonly website: "https://plitzi.com";
|
|
47
|
+
readonly backgroundColor: "#4422ee";
|
|
48
|
+
readonly icon: "fa-solid fa-angle-down";
|
|
49
|
+
};
|
|
50
|
+
readonly defaultStyle: {
|
|
51
|
+
readonly name: "Dropdown";
|
|
52
|
+
readonly displayMode: "desktop";
|
|
53
|
+
readonly style: {
|
|
54
|
+
readonly base: {
|
|
55
|
+
readonly default: {
|
|
56
|
+
readonly cursor: "pointer";
|
|
57
|
+
readonly 'user-select': "none";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly backgroundContainer: {
|
|
61
|
+
readonly default: {
|
|
62
|
+
readonly top: 0;
|
|
63
|
+
readonly bottom: 0;
|
|
64
|
+
readonly left: 0;
|
|
65
|
+
readonly right: 0;
|
|
66
|
+
readonly position: "fixed";
|
|
67
|
+
readonly cursor: "default";
|
|
68
|
+
readonly 'z-index': 50;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly settings: {};
|
|
74
|
+
};
|
|
75
|
+
readonly initialItems: readonly ["dropdownPopup"];
|
|
76
|
+
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
77
|
+
disabled?: boolean | undefined;
|
|
78
|
+
closeOnClickPopup?: boolean | undefined;
|
|
79
|
+
popupPlacement?: "left" | "right" | "top" | "bottom" | undefined;
|
|
80
|
+
openPopup?: boolean | undefined;
|
|
81
|
+
backgroundDisabled?: boolean | undefined;
|
|
82
|
+
closeOnClickBackground?: boolean | undefined;
|
|
83
|
+
containerTopOffset?: number | undefined;
|
|
84
|
+
containerLeftOffset?: number | undefined;
|
|
85
|
+
}>>;
|
|
86
|
+
export default declaration;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
|
|
2
|
+
//#region src/elements/basic/Dropdown/declaration.ts
|
|
3
|
+
var t = e()({
|
|
4
|
+
type: "dropdown",
|
|
5
|
+
content: {
|
|
6
|
+
attributes: {
|
|
7
|
+
popupPlacement: "bottom",
|
|
8
|
+
openPopup: !1,
|
|
9
|
+
backgroundDisabled: !1,
|
|
10
|
+
closeOnClickBackground: !0,
|
|
11
|
+
closeOnClickPopup: !0,
|
|
12
|
+
containerTopOffset: 5,
|
|
13
|
+
containerLeftOffset: 5,
|
|
14
|
+
disabled: !1
|
|
15
|
+
},
|
|
16
|
+
definition: {
|
|
17
|
+
label: "Dropdown",
|
|
18
|
+
type: "dropdown",
|
|
19
|
+
description: "A trigger that toggles an attached popup panel (dropdownPopup) — menus, selects, flyouts.",
|
|
20
|
+
items: [],
|
|
21
|
+
bindings: {},
|
|
22
|
+
styleSelectors: {
|
|
23
|
+
base: "",
|
|
24
|
+
backgroundContainer: ""
|
|
25
|
+
},
|
|
26
|
+
initialState: { visibility: !0 }
|
|
27
|
+
},
|
|
28
|
+
builder: {
|
|
29
|
+
canDelete: !0,
|
|
30
|
+
canSelect: !0,
|
|
31
|
+
canDragDrop: !0,
|
|
32
|
+
canMove: !0,
|
|
33
|
+
canTemplate: !0,
|
|
34
|
+
itemsAllowed: [],
|
|
35
|
+
itemsNotAllowed: []
|
|
36
|
+
},
|
|
37
|
+
market: {
|
|
38
|
+
category: "basic",
|
|
39
|
+
owner: "Plitzi",
|
|
40
|
+
verified: !0,
|
|
41
|
+
license: "MIT",
|
|
42
|
+
website: "https://plitzi.com",
|
|
43
|
+
backgroundColor: "#4422ee",
|
|
44
|
+
icon: "fa-solid fa-angle-down"
|
|
45
|
+
},
|
|
46
|
+
defaultStyle: {
|
|
47
|
+
name: "Dropdown",
|
|
48
|
+
displayMode: "desktop",
|
|
49
|
+
style: {
|
|
50
|
+
base: { default: {
|
|
51
|
+
cursor: "pointer",
|
|
52
|
+
"user-select": "none"
|
|
53
|
+
} },
|
|
54
|
+
backgroundContainer: { default: {
|
|
55
|
+
top: 0,
|
|
56
|
+
bottom: 0,
|
|
57
|
+
left: 0,
|
|
58
|
+
right: 0,
|
|
59
|
+
position: "fixed",
|
|
60
|
+
cursor: "default",
|
|
61
|
+
"z-index": 50
|
|
62
|
+
} }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
settings: {}
|
|
66
|
+
},
|
|
67
|
+
initialItems: ["dropdownPopup"]
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
export { t as default };
|