@ssa-ui-kit/core 2.5.0 → 2.7.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/dist/components/CollapsibleNavBar/CollapsibleNavBarCustomIconSVG.d.ts +6 -0
- package/dist/components/CollapsibleNavBar/CollapsibleNavBarItemContext.d.ts +10 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarBase.d.ts → components/CollapsibleNavBarBase.d.ts} +2 -3
- package/dist/components/CollapsibleNavBar/components/CollapsibleNavBarLink.d.ts +7 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarList.d.ts → components/CollapsibleNavBarList.d.ts} +2 -3
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarWrapper.d.ts → components/CollapsibleNavBarWrapper.d.ts} +2 -3
- package/dist/components/CollapsibleNavBar/components/CollapsibleNavToggle.d.ts +3 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavToggleWrapper.d.ts → components/CollapsibleNavToggleWrapper.d.ts} +1 -2
- package/dist/components/CollapsibleNavBar/{NavBarAccordionContent.d.ts → components/ItemWithSubmenu/AccordionContent.d.ts} +1 -1
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/AccordionContentItem.d.ts +8 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarItem.d.ts → components/ItemWithSubmenu/CollapsibleNavBarItem.d.ts} +1 -2
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/ItemAccordionTitle.d.ts +9 -0
- package/dist/components/CollapsibleNavBar/{NavBarItemWithSubMenu.d.ts → components/ItemWithSubmenu/ItemWithSubMenu.d.ts} +2 -2
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/index.d.ts +5 -0
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/styles.d.ts +6 -0
- package/dist/components/CollapsibleNavBar/{NavBarItemWithoutSubMenu.d.ts → components/ItemWithoutSubmenu/ItemWithoutSubMenu.d.ts} +2 -2
- package/dist/components/CollapsibleNavBar/components/ItemWithoutSubmenu/index.d.ts +1 -0
- package/dist/components/CollapsibleNavBar/components/NavBarItem.d.ts +8 -0
- package/dist/components/CollapsibleNavBar/{TriggerIcon.d.ts → components/TriggerIcon.d.ts} +1 -1
- package/dist/components/CollapsibleNavBar/components/index.d.ts +12 -0
- package/dist/components/CollapsibleNavBar/index.d.ts +2 -0
- package/dist/components/CollapsibleNavBar/stories/CustomIcon.d.ts +1 -0
- package/dist/components/CollapsibleNavBar/styles.d.ts +0 -4
- package/dist/components/JsonSchemaForm/index.d.ts +12 -0
- package/dist/components/JsonSchemaForm/templates/ArrayFieldItemTemplate.d.ts +2 -0
- package/dist/components/JsonSchemaForm/templates/ArrayFieldTemplate.d.ts +2 -0
- package/dist/components/JsonSchemaForm/templates/BaseInputTemplate.d.ts +2 -0
- package/dist/components/JsonSchemaForm/templates/FieldTemplate.d.ts +2 -0
- package/dist/components/JsonSchemaForm/templates/IconButton.d.ts +8 -0
- package/dist/components/JsonSchemaForm/templates/ObjectFieldTemplate.d.ts +2 -0
- package/dist/components/JsonSchemaForm/templates/SubmitButton.d.ts +2 -0
- package/dist/components/JsonSchemaForm/templates/TitleFieldTemplate.d.ts +2 -0
- package/dist/components/JsonSchemaForm/templates/index.d.ts +4 -0
- package/dist/components/JsonSchemaForm/widgets/CheckboxWidget.d.ts +2 -0
- package/dist/components/JsonSchemaForm/widgets/CheckboxesWidget.d.ts +2 -0
- package/dist/components/JsonSchemaForm/widgets/PasswordWidget.d.ts +2 -0
- package/dist/components/JsonSchemaForm/widgets/RadioWidget.d.ts +2 -0
- package/dist/components/JsonSchemaForm/widgets/RangeWidget.d.ts +2 -0
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.d.ts +2 -0
- package/dist/components/JsonSchemaForm/widgets/index.d.ts +4 -0
- package/dist/components/NavBar/types.d.ts +5 -2
- package/dist/components/RadioGroup/types.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +1171 -193
- package/dist/index.js.map +1 -1
- package/package.json +8 -3
- package/dist/components/CollapsibleNavBar/CollapsibleNavBarLink.d.ts +0 -8
- package/dist/components/CollapsibleNavBar/CollapsibleNavToggle.d.ts +0 -4
- package/dist/components/DateRangePicker/helpers/ClassnameArray.d.ts +0 -3
- package/dist/components/DateRangePicker/helpers/index.d.ts +0 -1
- /package/dist/components/CollapsibleNavBar/{CollapsibleNavContentToggle.d.ts → components/CollapsibleNavContentToggle.d.ts} +0 -0
- /package/dist/components/CollapsibleNavBar/{NavBarPopover.d.ts → components/NavBarPopover.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -82,6 +82,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
82
82
|
Checkbox: () => (/* reexport */ Checkbox_Checkbox),
|
|
83
83
|
CollapsibleNavBar: () => (/* reexport */ CollapsibleNavBar),
|
|
84
84
|
CollapsibleNavBarContext: () => (/* reexport */ CollapsibleNavBarContext),
|
|
85
|
+
CollapsibleNavBarCustomIconSVG: () => (/* reexport */ CollapsibleNavBarCustomIconSVG),
|
|
86
|
+
CollapsibleNavBarItemContext: () => (/* reexport */ CollapsibleNavBarItemContext),
|
|
87
|
+
CollapsibleNavBarItemProvider: () => (/* reexport */ CollapsibleNavBarItemProvider),
|
|
85
88
|
CollapsibleNavBarProvider: () => (/* reexport */ CollapsibleNavBarProvider),
|
|
86
89
|
ColorPicker: () => (/* reexport */ ColorPicker_ColorPicker),
|
|
87
90
|
DatePicker: () => (/* reexport */ DatePicker),
|
|
@@ -111,6 +114,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
111
114
|
ImageItem: () => (/* reexport */ ImageItem),
|
|
112
115
|
Indicator: () => (/* reexport */ Indicator_Indicator),
|
|
113
116
|
Input: () => (/* reexport */ Input_Input),
|
|
117
|
+
JsonSchema: () => (/* reexport */ JsonSchemaForm_namespaceObject),
|
|
114
118
|
Label: () => (/* reexport */ Label_Label),
|
|
115
119
|
LargeTab: () => (/* reexport */ LargeTab_LargeTab),
|
|
116
120
|
Link: () => (/* reexport */ Link),
|
|
@@ -235,6 +239,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
235
239
|
styles: () => (/* reexport */ Tooltip_styles_namespaceObject),
|
|
236
240
|
useAccordionGroupContext: () => (/* reexport */ useAccordionGroupContext),
|
|
237
241
|
useCollapsibleNavBarContext: () => (/* reexport */ useCollapsibleNavBarContext),
|
|
242
|
+
useCollapsibleNavBarItemContext: () => (/* reexport */ useCollapsibleNavBarItemContext),
|
|
238
243
|
useDrawer: () => (/* reexport */ useDrawer),
|
|
239
244
|
useFieldContext: () => (/* reexport */ useFieldContext),
|
|
240
245
|
useFilterMultiSelect: () => (/* reexport */ useFilterMultiSelect),
|
|
@@ -926,6 +931,20 @@ __webpack_require__.d(colorPalettes_namespaceObject, {
|
|
|
926
931
|
getBalancePalette: () => (getBalancePalette)
|
|
927
932
|
});
|
|
928
933
|
|
|
934
|
+
// NAMESPACE OBJECT: ./src/components/JsonSchemaForm/index.ts
|
|
935
|
+
var JsonSchemaForm_namespaceObject = {};
|
|
936
|
+
__webpack_require__.r(JsonSchemaForm_namespaceObject);
|
|
937
|
+
__webpack_require__.d(JsonSchemaForm_namespaceObject, {
|
|
938
|
+
Form: () => (JsonSchemaForm_Form),
|
|
939
|
+
Templates: () => (templates),
|
|
940
|
+
Theme: () => (Theme),
|
|
941
|
+
Widgets: () => (widgets),
|
|
942
|
+
generateForm: () => (generateForm),
|
|
943
|
+
generateTemplates: () => (generateTemplates),
|
|
944
|
+
generateTheme: () => (generateTheme),
|
|
945
|
+
generateWidgets: () => (generateWidgets)
|
|
946
|
+
});
|
|
947
|
+
|
|
929
948
|
;// ./src/themes/main.ts
|
|
930
949
|
const main = {
|
|
931
950
|
colors: {
|
|
@@ -4052,7 +4071,7 @@ function DropdownOptions_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tri
|
|
|
4052
4071
|
|
|
4053
4072
|
const DropdownOptionsBase = /*#__PURE__*/base_default()("ul", true ? {
|
|
4054
4073
|
target: "e1qg2z4z0"
|
|
4055
|
-
} : 0)("position:absolute;width:100%;list-style:none;margin:4px 0 0;padding:0;background:#fff;border-radius:8px;overflow:hidden auto;z-index:2;filter:", ({
|
|
4074
|
+
} : 0)("position:absolute;width:100%;min-width:max-content;list-style:none;margin:4px 0 0;padding:0;background:#fff;border-radius:8px;overflow:hidden auto;z-index:2;filter:", ({
|
|
4056
4075
|
theme
|
|
4057
4076
|
}) => `drop-shadow(-4px 4px 14px ${theme.colors.greyDarker14})`, ";backdrop-filter:", ({
|
|
4058
4077
|
theme
|
|
@@ -7998,13 +8017,9 @@ const CardList = ({
|
|
|
7998
8017
|
|
|
7999
8018
|
;// ./src/components/CollapsibleNavBar/styles.ts
|
|
8000
8019
|
|
|
8001
|
-
const AccordionTitleWrapper = navBarTheme => theme => /*#__PURE__*/(0,react_namespaceObject.css)("cursor:pointer;align-items:center;", theme.mediaQueries.md, "{display:flex;justify-content:center;}& div.icon-wrapper{width:100%;gap:0;}& div.icon-wrapper:not(.active):hover>button svg path,& div.icon-wrapper.active>button svg path{stroke:", navBarTheme === 'default' ? '#fff' : theme.colors.greyDarker80, ";fill:none;}& .trigger-icon{height:22px;}&:has(+ div > a.active){& div:nth-of-type(2) button{font-weight:900;}}" + ( true ? "" : 0), true ? "" : 0);
|
|
8002
|
-
const styles_AccordionTitle = navBarTheme => theme => /*#__PURE__*/(0,react_namespaceObject.css)("padding:0 14px 0 20px;color:", navBarTheme === 'default' ? theme.colors.white : theme.colors.greyDarker, ";svg path{stroke:", navBarTheme === 'light' && theme.colors.greyDropdownFocused, ";}", theme.mediaQueries.md, "{display:none;}" + ( true ? "" : 0), true ? "" : 0);
|
|
8003
|
-
const styles_AccordionContent = theme => /*#__PURE__*/(0,react_namespaceObject.css)("display:flex;align-items:flex-start;width:100%;padding-left:45px;overflow:hidden;perspective:1px;", theme.mediaQueries.md, "{display:none;}", theme.mediaQueries.lg, "{display:none;}" + ( true ? "" : 0), true ? "" : 0);
|
|
8004
|
-
const AccordionContentPopover = theme => /*#__PURE__*/(0,react_namespaceObject.css)("display:flex;", theme.mediaQueries.md, "{display:flex;}", theme.mediaQueries.lg, "{display:flex;}" + ( true ? "" : 0), true ? "" : 0);
|
|
8005
8020
|
const LogoWrapper = theme => /*#__PURE__*/(0,react_namespaceObject.css)("position:relative;", theme.mediaQueries.md, "{justify-content:center;}", theme.mediaQueries.lg, "{justify-content:flex-start;}" + ( true ? "" : 0), true ? "" : 0);
|
|
8006
8021
|
const ContentToggle = (navBarTheme, isChecked) => theme => /*#__PURE__*/(0,react_namespaceObject.css)("display:none;position:absolute;cursor:pointer;right:-17px;width:34px;height:34px;background:", navBarTheme === 'default' ? theme.colors.greyLighter : theme.colors.greyFocused, ";border-radius:12px;justify-content:center;align-items:center;& input{display:none;}& svg{cursor:pointer;}", theme.mediaQueries.lg, "{display:flex;}", theme.mediaQueries.xlg, "{display:flex;right:", isChecked ? '-32px' : '-17px', ";}" + ( true ? "" : 0), true ? "" : 0);
|
|
8007
|
-
;// ./src/components/CollapsibleNavBar/CollapsibleNavBarBase.ts
|
|
8022
|
+
;// ./src/components/CollapsibleNavBar/components/CollapsibleNavBarBase.ts
|
|
8008
8023
|
|
|
8009
8024
|
|
|
8010
8025
|
|
|
@@ -8025,7 +8040,7 @@ const backgroundByTheme = (theme, navBarTheme) => /*#__PURE__*/(0,react_namespac
|
|
|
8025
8040
|
#e1e4ea 87.68%
|
|
8026
8041
|
);`, ";" + ( true ? "" : 0), true ? "" : 0);
|
|
8027
8042
|
const CollapsibleNavBarBase = /*#__PURE__*/base_default()(NavBar_NavBarBase, true ? {
|
|
8028
|
-
target: "
|
|
8043
|
+
target: "e1rgi4fo0"
|
|
8029
8044
|
} : 0)("padding:15px 0 0 15px;position:absolute;& li{", popupIconsToggle(false), ";}&.opened{", ({
|
|
8030
8045
|
theme,
|
|
8031
8046
|
...rest
|
|
@@ -8046,41 +8061,17 @@ const CollapsibleNavBarBase = /*#__PURE__*/base_default()(NavBar_NavBarBase, tr
|
|
|
8046
8061
|
}) => theme.mediaQueries.md, "{width:85px;padding:0;position:static;z-index:0;min-width:unset;& li{", staticIconsToggle(false), " ", popupIconsToggle(true), ";}}", ({
|
|
8047
8062
|
theme
|
|
8048
8063
|
}) => theme.mediaQueries.lg, "{&.opened{min-width:240px;width:291px;&>div:nth-of-type(2){width:240px;padding-left:29.5px;& img{margin-left:0;}& li{justify-content:flex-start;& button{display:flex;}", staticIconsToggle(true), " ", popupIconsToggle(false), " &>a>span{display:block;}& div>div>div:nth-of-type(2){display:flex;}}}}}" + ( true ? "" : 0));
|
|
8049
|
-
|
|
8050
|
-
;// ./src/components/CollapsibleNavBar/CollapsibleNavBarWrapper.ts
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
const CollapsibleNavBarWrapper = /*#__PURE__*/base_default()(NavBar_NavBarWrapper, true ? {
|
|
8054
|
-
target: "e17jwp1e0"
|
|
8055
|
-
} : 0)("transform:none;transition:unset;position:static;display:none;width:100%;", ({
|
|
8056
|
-
theme
|
|
8057
|
-
}) => theme.mediaQueries.md, "{background:", ({
|
|
8058
|
-
navBarTheme
|
|
8059
|
-
}) => navBarTheme === 'light' && '#F4F5F9', ";display:flex;flex-direction:column;align-items:center;height:100%;min-height:100vh;width:85px;border-radius:0;padding-top:35px;}" + ( true ? "" : 0));
|
|
8060
|
-
/* harmony default export */ const CollapsibleNavBar_CollapsibleNavBarWrapper = (CollapsibleNavBarWrapper);
|
|
8061
|
-
;// ./src/components/CollapsibleNavBar/CollapsibleNavBarList.ts
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
const CollapsibleNavBarList = /*#__PURE__*/base_default()(NavBar_NavBarList, true ? {
|
|
8065
|
-
target: "em9v5k50"
|
|
8066
|
-
} : 0)("height:auto;padding:0 0 0 15px;margin:14px 0 0 0;", ({
|
|
8067
|
-
theme
|
|
8068
|
-
}) => theme.mediaQueries.md, "{margin-top:90px;width:100%;padding:0;}", ({
|
|
8069
|
-
theme
|
|
8070
|
-
}) => theme.mediaQueries.lg, "{margin-top:84px;}" + ( true ? "" : 0));
|
|
8071
|
-
/* harmony default export */ const CollapsibleNavBar_CollapsibleNavBarList = (CollapsibleNavBarList);
|
|
8072
|
-
;// ./src/components/CollapsibleNavBar/CollapsibleNavToggleWrapper.ts
|
|
8064
|
+
;// ./src/components/CollapsibleNavBar/components/CollapsibleNavToggleWrapper.ts
|
|
8073
8065
|
|
|
8074
8066
|
|
|
8075
8067
|
const CollapsibleNavToggleWrapper = /*#__PURE__*/base_default()(NavBar_NavToggleWrapper, true ? {
|
|
8076
|
-
target: "
|
|
8068
|
+
target: "ehcphl10"
|
|
8077
8069
|
} : 0)("border-radius:50%;background:", ({
|
|
8078
8070
|
theme
|
|
8079
8071
|
}) => theme.colors.greyLighter, ";height:40px;width:40px;", ({
|
|
8080
8072
|
theme
|
|
8081
8073
|
}) => theme.mediaQueries.md, "{display:none;}" + ( true ? "" : 0));
|
|
8082
|
-
|
|
8083
|
-
;// ./src/components/CollapsibleNavBar/CollapsibleNavToggle.tsx
|
|
8074
|
+
;// ./src/components/CollapsibleNavBar/components/CollapsibleNavToggle.tsx
|
|
8084
8075
|
function CollapsibleNavToggle_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8085
8076
|
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
8086
8077
|
|
|
@@ -8095,7 +8086,7 @@ const CollapsibleNavToggle = ({
|
|
|
8095
8086
|
id
|
|
8096
8087
|
}) => {
|
|
8097
8088
|
return (0,jsx_runtime_namespaceObject.jsx)(external_react_namespaceObject.Fragment, {
|
|
8098
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(
|
|
8089
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavToggleWrapper, {
|
|
8099
8090
|
children: (0,jsx_runtime_namespaceObject.jsxs)("label", {
|
|
8100
8091
|
htmlFor: id,
|
|
8101
8092
|
css: CollapsibleNavToggle_ref,
|
|
@@ -8104,7 +8095,16 @@ const CollapsibleNavToggle = ({
|
|
|
8104
8095
|
})
|
|
8105
8096
|
});
|
|
8106
8097
|
};
|
|
8107
|
-
|
|
8098
|
+
;// ./src/components/CollapsibleNavBar/components/CollapsibleNavBarWrapper.ts
|
|
8099
|
+
|
|
8100
|
+
|
|
8101
|
+
const CollapsibleNavBarWrapper = /*#__PURE__*/base_default()(NavBar_NavBarWrapper, true ? {
|
|
8102
|
+
target: "e3hlx7p0"
|
|
8103
|
+
} : 0)("transform:none;transition:unset;position:static;display:none;width:100%;", ({
|
|
8104
|
+
theme
|
|
8105
|
+
}) => theme.mediaQueries.md, "{background:", ({
|
|
8106
|
+
navBarTheme
|
|
8107
|
+
}) => navBarTheme === 'light' && '#F4F5F9', ";display:flex;flex-direction:column;align-items:center;height:100%;min-height:100vh;width:85px;border-radius:0;padding-top:35px;}" + ( true ? "" : 0));
|
|
8108
8108
|
;// ./src/components/CollapsibleNavBar/CollapsibleNavBarContext.tsx
|
|
8109
8109
|
|
|
8110
8110
|
|
|
@@ -8125,7 +8125,7 @@ const CollapsibleNavBarProvider = ({
|
|
|
8125
8125
|
const useCollapsibleNavBarContext = () => {
|
|
8126
8126
|
return (0,external_react_namespaceObject.useContext)(CollapsibleNavBarContext);
|
|
8127
8127
|
};
|
|
8128
|
-
;// ./src/components/CollapsibleNavBar/CollapsibleNavContentToggle.tsx
|
|
8128
|
+
;// ./src/components/CollapsibleNavBar/components/CollapsibleNavContentToggle.tsx
|
|
8129
8129
|
function CollapsibleNavContentToggle_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8130
8130
|
|
|
8131
8131
|
|
|
@@ -8157,20 +8157,35 @@ const NavContentToggle = ({
|
|
|
8157
8157
|
})
|
|
8158
8158
|
});
|
|
8159
8159
|
};
|
|
8160
|
-
;// ./src/components/CollapsibleNavBar/
|
|
8160
|
+
;// ./src/components/CollapsibleNavBar/components/CollapsibleNavBarList.ts
|
|
8161
|
+
|
|
8162
|
+
|
|
8163
|
+
const CollapsibleNavBarList = /*#__PURE__*/base_default()(NavBar_NavBarList, true ? {
|
|
8164
|
+
target: "evfcnpp0"
|
|
8165
|
+
} : 0)("height:auto;padding:0 0 0 15px;margin:14px 0 0 0;", ({
|
|
8166
|
+
theme
|
|
8167
|
+
}) => theme.mediaQueries.md, "{margin-top:90px;width:100%;padding:0;}", ({
|
|
8168
|
+
theme
|
|
8169
|
+
}) => theme.mediaQueries.lg, "{margin-top:84px;}" + ( true ? "" : 0));
|
|
8170
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithSubmenu/CollapsibleNavBarItem.ts
|
|
8161
8171
|
|
|
8162
8172
|
|
|
8163
8173
|
const CollapsibleNavBarItem = /*#__PURE__*/base_default()(NavBar_NavBarItem, true ? {
|
|
8164
|
-
target: "
|
|
8165
|
-
} : 0)("align-items:flex-start;justify-content:flex-start;height:auto;min-height:24px;padding:12px 0;&:first-of-type{padding-top:0;}&:last-of-type{padding-bottom:0;}
|
|
8174
|
+
target: "e1alsxm0"
|
|
8175
|
+
} : 0)("align-items:flex-start;justify-content:flex-start;width:100%;height:auto;min-height:24px;padding:12px 0;&:first-of-type{padding-top:0;}&:last-of-type{padding-bottom:0;}&>a{height:26px;}", ({
|
|
8166
8176
|
theme
|
|
8167
8177
|
}) => theme.mediaQueries.md, "{justify-content:center;padding:20px 0;width:100%;}" + ( true ? "" : 0));
|
|
8168
|
-
|
|
8169
|
-
|
|
8178
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithSubmenu/styles.ts
|
|
8179
|
+
|
|
8180
|
+
const AccordionTitleWrapper = navBarTheme => theme => /*#__PURE__*/(0,react_namespaceObject.css)("cursor:pointer;align-items:center;", theme.mediaQueries.md, "{display:flex;justify-content:center;}& div.icon-wrapper{width:100%;gap:0;}& div.icon-wrapper:not(.active):hover>button svg path,& div.icon-wrapper.active>button svg path{stroke:", navBarTheme === 'default' ? '#fff' : theme.colors.greyDarker80, ";fill:none;}& .trigger-icon{height:22px;}&:has(+ div > a.active){& div:nth-of-type(2) button{font-weight:900;}}" + ( true ? "" : 0), true ? "" : 0);
|
|
8181
|
+
const styles_AccordionTitle = navBarTheme => theme => /*#__PURE__*/(0,react_namespaceObject.css)("padding:0 14px 0 20px;color:", navBarTheme === 'default' ? theme.colors.white : theme.colors.greyDarker, ";svg path{stroke:", navBarTheme === 'light' && theme.colors.greyDropdownFocused, ";}", theme.mediaQueries.md, "{display:none;}" + ( true ? "" : 0), true ? "" : 0);
|
|
8182
|
+
const styles_AccordionContent = theme => /*#__PURE__*/(0,react_namespaceObject.css)("display:flex;align-items:flex-start;width:100%;padding-left:45px;overflow:hidden;perspective:1px;", theme.mediaQueries.md, "{display:none;}", theme.mediaQueries.lg, "{display:none;}" + ( true ? "" : 0), true ? "" : 0);
|
|
8183
|
+
const AccordionContentPopover = theme => /*#__PURE__*/(0,react_namespaceObject.css)("display:flex;", theme.mediaQueries.md, "{display:flex;}", theme.mediaQueries.lg, "{display:flex;}" + ( true ? "" : 0), true ? "" : 0);
|
|
8184
|
+
;// ./src/components/CollapsibleNavBar/components/CollapsibleNavBarLink.ts
|
|
8170
8185
|
|
|
8171
8186
|
|
|
8172
8187
|
const CollapsibleNavBarLink = /*#__PURE__*/base_default()(external_react_router_dom_namespaceObject.NavLink, true ? {
|
|
8173
|
-
target: "
|
|
8188
|
+
target: "e1sy8kzd0"
|
|
8174
8189
|
} : 0)("cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:20px;color:", ({
|
|
8175
8190
|
theme,
|
|
8176
8191
|
navbartheme
|
|
@@ -8189,54 +8204,62 @@ const CollapsibleNavBarLink = /*#__PURE__*/base_default()(external_react_router_
|
|
|
8189
8204
|
theme,
|
|
8190
8205
|
navbartheme,
|
|
8191
8206
|
...rest
|
|
8192
|
-
}) => navbartheme === 'light' && !rest['data-customicon'] && theme.colors.greyDropdownFocused, ";}}&.active{
|
|
8193
|
-
navbartheme,
|
|
8207
|
+
}) => navbartheme === 'light' && !rest['data-customicon'] && theme.colors.greyDropdownFocused, ";}}&.active,&:not(.active):hover{backdrop-filter:blur(0);filter:", ({
|
|
8194
8208
|
theme
|
|
8195
|
-
}) =>
|
|
8209
|
+
}) => `drop-shadow(-4px 4px 14px ${theme.colors.white})`, ";color:", ({
|
|
8196
8210
|
theme,
|
|
8197
8211
|
navbartheme
|
|
8198
8212
|
}) => navbartheme === 'default' ? theme.colors.white80 : theme.colors.greyDarker80, ";&>span{font-weight:900;color:", ({
|
|
8199
8213
|
theme,
|
|
8200
8214
|
navbartheme
|
|
8201
|
-
}) => navbartheme === 'default' ? theme.colors.white80 : theme.colors.greyDarker80, ";}div>svg{
|
|
8202
|
-
theme
|
|
8203
|
-
}) => theme.colors.white, ");& path{fill:", ({
|
|
8215
|
+
}) => navbartheme === 'default' ? theme.colors.white80 : theme.colors.greyDarker80, ";}div>svg{& path{fill:", ({
|
|
8204
8216
|
theme,
|
|
8205
8217
|
navbartheme,
|
|
8206
8218
|
...rest
|
|
8207
|
-
}) => !rest['data-customicon'] && navbartheme === 'default' ? theme.colors.white : theme.colors.greyDarker, ";}& circle{stroke:", ({
|
|
8219
|
+
}) => !rest['data-customicon'] && (navbartheme === 'default' ? theme.colors.white : theme.colors.greyDarker), ";}& circle{stroke:", ({
|
|
8208
8220
|
theme,
|
|
8209
8221
|
navbartheme,
|
|
8210
8222
|
...rest
|
|
8211
|
-
}) => !rest['data-customicon'] && navbartheme === 'default' ? theme.colors.white : theme.colors.greyDarker, ";}}}
|
|
8223
|
+
}) => !rest['data-customicon'] && (navbartheme === 'default' ? theme.colors.white : theme.colors.greyDarker), ";}}}&.active{cursor:default;font-weight:900;filter:", ({
|
|
8224
|
+
navbartheme,
|
|
8212
8225
|
theme
|
|
8213
|
-
}) => `drop-shadow(-4px 4px 14px ${theme.colors.white})`, ";
|
|
8214
|
-
theme,
|
|
8215
|
-
navbartheme
|
|
8216
|
-
}) => navbartheme === 'default' ? theme.colors.white : theme.colors.greyDarker, ";div>svg{filter:", ({
|
|
8226
|
+
}) => navbartheme === 'default' ? `drop-shadow(-4px 4px 14px ${theme.colors.white})` : `drop-shadow(-4px 4px 14px ${theme.colors.greyDropdownFocused})`, ";div>svg{filter:drop-shadow(-4px 4px 14px ", ({
|
|
8217
8227
|
theme
|
|
8218
|
-
}) =>
|
|
8219
|
-
|
|
8220
|
-
navbartheme
|
|
8221
|
-
}) => navbartheme === 'default' ? theme.colors.white : theme.colors.greyDarker, ";}& circle{stroke:", ({
|
|
8222
|
-
theme,
|
|
8223
|
-
navbartheme
|
|
8224
|
-
}) => navbartheme === 'default' ? theme.colors.white : theme.colors.greyDarker, ";}}}" + ( true ? "" : 0));
|
|
8225
|
-
/* harmony default export */ const CollapsibleNavBar_CollapsibleNavBarLink = (CollapsibleNavBarLink);
|
|
8226
|
-
;// ./src/components/CollapsibleNavBar/NavBarAccordionContent.tsx
|
|
8227
|
-
|
|
8228
|
-
function NavBarAccordionContent_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8228
|
+
}) => theme.colors.white, ");}}" + ( true ? "" : 0));
|
|
8229
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithSubmenu/AccordionContentItem.tsx
|
|
8229
8230
|
|
|
8231
|
+
function AccordionContentItem_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8230
8232
|
|
|
8231
8233
|
|
|
8232
8234
|
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
target: "e1gb8tyr0"
|
|
8235
|
+
const AccordionContentItem_Link = /*#__PURE__*/base_default()(CollapsibleNavBarLink, true ? {
|
|
8236
|
+
target: "e1yzdzuu0"
|
|
8236
8237
|
} : 0)( true ? {
|
|
8237
8238
|
name: "17eotse",
|
|
8238
8239
|
styles: "width:100%;padding:4.8px 0;&:first-of-type{padding-top:15px;}&:not(.active):hover{filter:initial;}"
|
|
8239
8240
|
} : 0);
|
|
8241
|
+
const NavBarAccordionContentItem = ({
|
|
8242
|
+
prefix = '',
|
|
8243
|
+
subMenuItem,
|
|
8244
|
+
onClick
|
|
8245
|
+
}) => {
|
|
8246
|
+
const {
|
|
8247
|
+
theme
|
|
8248
|
+
} = useCollapsibleNavBarContext();
|
|
8249
|
+
const isExternalLink = subMenuItem.path.includes('://');
|
|
8250
|
+
return (0,jsx_runtime_namespaceObject.jsx)(AccordionContentItem_Link, {
|
|
8251
|
+
onClick: onClick,
|
|
8252
|
+
end: true,
|
|
8253
|
+
to: isExternalLink ? subMenuItem.path : '/' + prefix + subMenuItem.path,
|
|
8254
|
+
navbartheme: theme,
|
|
8255
|
+
children: subMenuItem.title
|
|
8256
|
+
});
|
|
8257
|
+
};
|
|
8258
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithSubmenu/AccordionContent.tsx
|
|
8259
|
+
|
|
8260
|
+
|
|
8261
|
+
|
|
8262
|
+
|
|
8240
8263
|
const NavBarAccordionContent = ({
|
|
8241
8264
|
items,
|
|
8242
8265
|
accordionUniqueName,
|
|
@@ -8244,24 +8267,38 @@ const NavBarAccordionContent = ({
|
|
|
8244
8267
|
isPopover,
|
|
8245
8268
|
onClick,
|
|
8246
8269
|
...rest
|
|
8247
|
-
}) => {
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8270
|
+
}) => (0,jsx_runtime_namespaceObject.jsx)(AccordionContent, {
|
|
8271
|
+
...rest,
|
|
8272
|
+
css: [styles_AccordionContent, isPopover && AccordionContentPopover, true ? "" : 0, true ? "" : 0],
|
|
8273
|
+
children: items.map(subMenuItem => {
|
|
8274
|
+
const submenuKey = `${accordionUniqueName}-link-${subMenuItem.title.replace(' ', '').toLowerCase()}`;
|
|
8275
|
+
return (0,jsx_runtime_namespaceObject.jsx)(NavBarAccordionContentItem, {
|
|
8276
|
+
prefix: prefix,
|
|
8277
|
+
subMenuItem: subMenuItem,
|
|
8278
|
+
onClick: onClick
|
|
8279
|
+
}, submenuKey);
|
|
8280
|
+
})
|
|
8281
|
+
});
|
|
8282
|
+
;// ./src/components/CollapsibleNavBar/CollapsibleNavBarItemContext.tsx
|
|
8283
|
+
|
|
8284
|
+
|
|
8285
|
+
const CollapsibleNavBarItemContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({
|
|
8286
|
+
isActive: false,
|
|
8287
|
+
isHover: false
|
|
8288
|
+
});
|
|
8289
|
+
const CollapsibleNavBarItemProvider = ({
|
|
8290
|
+
children,
|
|
8291
|
+
isActive,
|
|
8292
|
+
isHover
|
|
8293
|
+
}) => (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarItemContext.Provider, {
|
|
8294
|
+
value: {
|
|
8295
|
+
isActive,
|
|
8296
|
+
isHover
|
|
8297
|
+
},
|
|
8298
|
+
children: children
|
|
8299
|
+
});
|
|
8300
|
+
const useCollapsibleNavBarItemContext = () => {
|
|
8301
|
+
return (0,external_react_namespaceObject.useContext)(CollapsibleNavBarItemContext);
|
|
8265
8302
|
};
|
|
8266
8303
|
;// ./src/components/Popover/hooks/usePopover.tsx
|
|
8267
8304
|
|
|
@@ -8503,7 +8540,7 @@ const PopoverDescription = /*#__PURE__*/external_react_namespaceObject.forwardRe
|
|
|
8503
8540
|
id: id
|
|
8504
8541
|
});
|
|
8505
8542
|
});
|
|
8506
|
-
;// ./src/components/CollapsibleNavBar/NavBarPopover.tsx
|
|
8543
|
+
;// ./src/components/CollapsibleNavBar/components/NavBarPopover.tsx
|
|
8507
8544
|
|
|
8508
8545
|
function NavBarPopover_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8509
8546
|
|
|
@@ -8618,7 +8655,7 @@ const CollapsibleNavBarPopover = ({
|
|
|
8618
8655
|
})]
|
|
8619
8656
|
});
|
|
8620
8657
|
};
|
|
8621
|
-
;// ./src/components/CollapsibleNavBar/TriggerIcon.tsx
|
|
8658
|
+
;// ./src/components/CollapsibleNavBar/components/TriggerIcon.tsx
|
|
8622
8659
|
function TriggerIcon_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8623
8660
|
|
|
8624
8661
|
|
|
@@ -8650,9 +8687,8 @@ const TriggerIcon = ({
|
|
|
8650
8687
|
})
|
|
8651
8688
|
});
|
|
8652
8689
|
};
|
|
8653
|
-
;// ./src/components/CollapsibleNavBar/
|
|
8690
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithSubmenu/ItemAccordionTitle.tsx
|
|
8654
8691
|
|
|
8655
|
-
function NavBarItemWithSubMenu_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8656
8692
|
|
|
8657
8693
|
|
|
8658
8694
|
|
|
@@ -8664,47 +8700,118 @@ function NavBarItemWithSubMenu_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You ha
|
|
|
8664
8700
|
|
|
8665
8701
|
|
|
8666
8702
|
|
|
8667
|
-
const
|
|
8668
|
-
target: "
|
|
8703
|
+
const ItemAccordionTitle_Link = CollapsibleNavBarLink.withComponent('div', true ? {
|
|
8704
|
+
target: "e69hc760"
|
|
8669
8705
|
} : 0);
|
|
8670
|
-
|
|
8706
|
+
const ItemAccordionTitle = ({
|
|
8707
|
+
data,
|
|
8708
|
+
item,
|
|
8709
|
+
accordionUniqueName,
|
|
8710
|
+
useMatchPattern
|
|
8711
|
+
}) => {
|
|
8712
|
+
const {
|
|
8713
|
+
theme
|
|
8714
|
+
} = useCollapsibleNavBarContext();
|
|
8715
|
+
const linkRef = (0,external_react_namespaceObject.useRef)(null);
|
|
8716
|
+
const classNamesList = Array.from(linkRef.current?.classList || []);
|
|
8717
|
+
const [isActive, setIsActive] = (0,external_react_namespaceObject.useState)(classNamesList.includes('active'));
|
|
8718
|
+
const [isHover, setIsHover] = (0,external_react_namespaceObject.useState)(false);
|
|
8719
|
+
const {
|
|
8720
|
+
pathname
|
|
8721
|
+
} = (0,external_react_router_dom_namespaceObject.useLocation)();
|
|
8722
|
+
const matchPattern = useMatchPattern ? useMatchPattern(item.prefix) : item.prefix + ':id';
|
|
8723
|
+
const match = (0,external_react_router_dom_namespaceObject.useMatch)(matchPattern);
|
|
8724
|
+
(0,external_react_namespaceObject.useEffect)(() => {
|
|
8725
|
+
const classNamesList = Array.from(linkRef.current?.classList || []);
|
|
8726
|
+
setIsActive(classNamesList.includes('active'));
|
|
8727
|
+
}, [pathname]);
|
|
8728
|
+
const handleMouseEnter = () => {
|
|
8729
|
+
setIsHover(true);
|
|
8730
|
+
};
|
|
8731
|
+
const handleMouseLeave = () => {
|
|
8732
|
+
setIsHover(false);
|
|
8733
|
+
};
|
|
8734
|
+
const Icon = () => (0,jsx_runtime_namespaceObject.jsx)(TriggerIcon, {
|
|
8735
|
+
iconName: item.iconName,
|
|
8736
|
+
iconSize: item.iconSize,
|
|
8737
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
8738
|
+
...item.css
|
|
8739
|
+
}, true ? "" : 0, true ? "" : 0)
|
|
8740
|
+
});
|
|
8741
|
+
return (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarItemProvider, {
|
|
8742
|
+
isActive: isActive,
|
|
8743
|
+
isHover: isHover,
|
|
8744
|
+
children: (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
8745
|
+
onClick: data.onClick,
|
|
8746
|
+
css: AccordionTitleWrapper(theme),
|
|
8747
|
+
onMouseEnter: handleMouseEnter,
|
|
8748
|
+
onMouseLeave: handleMouseLeave,
|
|
8749
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(ItemAccordionTitle_Link, {
|
|
8750
|
+
to: "",
|
|
8751
|
+
navbartheme: theme,
|
|
8752
|
+
className: isActive || match ? ' active' : '',
|
|
8753
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarPopover, {
|
|
8754
|
+
triggerIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon, {}),
|
|
8755
|
+
title: data.title,
|
|
8756
|
+
content: (0,jsx_runtime_namespaceObject.jsx)(NavBarAccordionContent, {
|
|
8757
|
+
items: item.items,
|
|
8758
|
+
accordionUniqueName: accordionUniqueName,
|
|
8759
|
+
prefix: item.prefix,
|
|
8760
|
+
id: accordionUniqueName,
|
|
8761
|
+
isOpened: true,
|
|
8762
|
+
isPopover: true,
|
|
8763
|
+
useMatchPattern: useMatchPattern
|
|
8764
|
+
})
|
|
8765
|
+
})
|
|
8766
|
+
}), (0,jsx_runtime_namespaceObject.jsxs)(ItemAccordionTitle_Link, {
|
|
8767
|
+
to: "",
|
|
8768
|
+
className: `icon-wrapper${isActive ? ' active' : ''}`,
|
|
8769
|
+
navbartheme: theme
|
|
8770
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8771
|
+
,
|
|
8772
|
+
ref: linkRef,
|
|
8773
|
+
children: [item.CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(item.CustomIcon, {}) : (0,jsx_runtime_namespaceObject.jsx)(Icon, {}), (0,jsx_runtime_namespaceObject.jsx)(AccordionTitle, {
|
|
8774
|
+
...data,
|
|
8775
|
+
css: styles_AccordionTitle(theme)
|
|
8776
|
+
})]
|
|
8777
|
+
})]
|
|
8778
|
+
})
|
|
8779
|
+
});
|
|
8780
|
+
};
|
|
8781
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithSubmenu/ItemWithSubMenu.tsx
|
|
8782
|
+
|
|
8783
|
+
function ItemWithSubMenu_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8784
|
+
|
|
8785
|
+
|
|
8786
|
+
|
|
8787
|
+
|
|
8788
|
+
|
|
8789
|
+
|
|
8790
|
+
|
|
8791
|
+
var ItemWithSubMenu_ref = true ? {
|
|
8671
8792
|
name: "1d3w5wq",
|
|
8672
8793
|
styles: "width:100%"
|
|
8673
8794
|
} : 0;
|
|
8674
|
-
const
|
|
8795
|
+
const Item = ({
|
|
8675
8796
|
item,
|
|
8676
8797
|
useMatchPattern,
|
|
8677
8798
|
onClick
|
|
8678
8799
|
}) => {
|
|
8679
8800
|
const {
|
|
8680
|
-
subMenuMaxWidth
|
|
8681
|
-
theme
|
|
8801
|
+
subMenuMaxWidth
|
|
8682
8802
|
} = useCollapsibleNavBarContext();
|
|
8683
8803
|
const {
|
|
8684
|
-
iconName,
|
|
8685
|
-
iconSize,
|
|
8686
8804
|
title,
|
|
8687
8805
|
items,
|
|
8688
|
-
prefix = ''
|
|
8689
|
-
css,
|
|
8690
|
-
CustomIcon
|
|
8806
|
+
prefix = ''
|
|
8691
8807
|
} = item;
|
|
8692
|
-
const uniqName =
|
|
8808
|
+
const uniqName = (0,external_react_namespaceObject.useId)();
|
|
8693
8809
|
const accordionUniqName = uniqName + 'accordion';
|
|
8694
|
-
const matchPattern = useMatchPattern ? useMatchPattern(prefix) : prefix + ':id';
|
|
8695
|
-
const match = (0,external_react_router_dom_namespaceObject.useMatch)(matchPattern);
|
|
8696
|
-
const Icon = () => (0,jsx_runtime_namespaceObject.jsx)(TriggerIcon, {
|
|
8697
|
-
iconName: iconName,
|
|
8698
|
-
iconSize: iconSize,
|
|
8699
|
-
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
8700
|
-
...css
|
|
8701
|
-
}, true ? "" : 0, true ? "" : 0)
|
|
8702
|
-
});
|
|
8703
8810
|
return (0,jsx_runtime_namespaceObject.jsx)(AccordionGroupContextProvider, {
|
|
8704
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(
|
|
8811
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarItem, {
|
|
8705
8812
|
children: (0,jsx_runtime_namespaceObject.jsx)(AccordionGroup, {
|
|
8706
8813
|
size: "small",
|
|
8707
|
-
css:
|
|
8814
|
+
css: ItemWithSubMenu_ref,
|
|
8708
8815
|
children: (0,jsx_runtime_namespaceObject.jsx)(Accordion, {
|
|
8709
8816
|
id: accordionUniqName,
|
|
8710
8817
|
title: title,
|
|
@@ -8725,49 +8832,34 @@ const NavBarItemWithSubMenu = ({
|
|
|
8725
8832
|
onClick: onClick,
|
|
8726
8833
|
...props
|
|
8727
8834
|
}),
|
|
8728
|
-
renderTitle: data => (0,jsx_runtime_namespaceObject.
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
className: match ? ' active' : '',
|
|
8734
|
-
navbartheme: theme,
|
|
8735
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarPopover, {
|
|
8736
|
-
triggerIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon, {}),
|
|
8737
|
-
title: data.title,
|
|
8738
|
-
content: (0,jsx_runtime_namespaceObject.jsx)(NavBarAccordionContent, {
|
|
8739
|
-
items: items,
|
|
8740
|
-
accordionUniqueName: accordionUniqName,
|
|
8741
|
-
prefix: prefix,
|
|
8742
|
-
id: accordionUniqName,
|
|
8743
|
-
isOpened: true,
|
|
8744
|
-
isPopover: true
|
|
8745
|
-
})
|
|
8746
|
-
})
|
|
8747
|
-
}), (0,jsx_runtime_namespaceObject.jsxs)(NavBarItemWithSubMenu_Link, {
|
|
8748
|
-
to: "",
|
|
8749
|
-
className: `icon-wrapper${match ? ' active' : ''}`,
|
|
8750
|
-
navbartheme: theme,
|
|
8751
|
-
children: [CustomIcon ? (0,jsx_runtime_namespaceObject.jsx)(CustomIcon, {}) : (0,jsx_runtime_namespaceObject.jsx)(Icon, {}), (0,jsx_runtime_namespaceObject.jsx)(AccordionTitle, {
|
|
8752
|
-
...data,
|
|
8753
|
-
css: styles_AccordionTitle(theme)
|
|
8754
|
-
})]
|
|
8755
|
-
})]
|
|
8835
|
+
renderTitle: data => (0,jsx_runtime_namespaceObject.jsx)(ItemAccordionTitle, {
|
|
8836
|
+
data: data,
|
|
8837
|
+
item: item,
|
|
8838
|
+
useMatchPattern: useMatchPattern,
|
|
8839
|
+
accordionUniqueName: accordionUniqName
|
|
8756
8840
|
})
|
|
8757
8841
|
})
|
|
8758
8842
|
})
|
|
8759
8843
|
})
|
|
8760
8844
|
}, uniqName);
|
|
8761
8845
|
};
|
|
8762
|
-
;// ./src/components/CollapsibleNavBar/
|
|
8846
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithSubmenu/index.ts
|
|
8763
8847
|
|
|
8764
8848
|
|
|
8765
8849
|
|
|
8766
8850
|
|
|
8767
8851
|
|
|
8852
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithoutSubmenu/ItemWithoutSubMenu.tsx
|
|
8768
8853
|
|
|
8769
8854
|
|
|
8770
|
-
|
|
8855
|
+
|
|
8856
|
+
|
|
8857
|
+
|
|
8858
|
+
|
|
8859
|
+
|
|
8860
|
+
|
|
8861
|
+
|
|
8862
|
+
const ItemWithoutSubMenu_Item = ({
|
|
8771
8863
|
item,
|
|
8772
8864
|
onClick
|
|
8773
8865
|
}) => {
|
|
@@ -8783,6 +8875,27 @@ const NavBarItemWithoutSubMenu = ({
|
|
|
8783
8875
|
CustomIcon
|
|
8784
8876
|
} = item;
|
|
8785
8877
|
const isExternalLink = path.includes('://');
|
|
8878
|
+
const linkRef = (0,external_react_namespaceObject.useRef)(null);
|
|
8879
|
+
const classNamesList = Array.from(linkRef.current?.classList || []);
|
|
8880
|
+
const [isActive, setIsActive] = (0,external_react_namespaceObject.useState)(classNamesList.includes('active'));
|
|
8881
|
+
const [isHover, setIsHover] = (0,external_react_namespaceObject.useState)(false);
|
|
8882
|
+
const {
|
|
8883
|
+
pathname
|
|
8884
|
+
} = (0,external_react_router_dom_namespaceObject.useLocation)();
|
|
8885
|
+
(0,external_react_namespaceObject.useEffect)(() => {
|
|
8886
|
+
const classNamesList = Array.from(linkRef.current?.classList || []);
|
|
8887
|
+
setIsActive(classNamesList.includes('active'));
|
|
8888
|
+
}, [pathname]);
|
|
8889
|
+
const handleMouseEnter = () => {
|
|
8890
|
+
setIsHover(true);
|
|
8891
|
+
};
|
|
8892
|
+
const handleMouseLeave = () => {
|
|
8893
|
+
setIsHover(false);
|
|
8894
|
+
};
|
|
8895
|
+
(0,external_react_namespaceObject.useEffect)(() => {
|
|
8896
|
+
const classNamesList = Array.from(linkRef.current?.classList || []);
|
|
8897
|
+
setIsActive(classNamesList.includes('active'));
|
|
8898
|
+
}, [pathname]);
|
|
8786
8899
|
const Icon = () => (0,jsx_runtime_namespaceObject.jsx)(TriggerIcon, {
|
|
8787
8900
|
iconName: iconName,
|
|
8788
8901
|
iconSize: iconSize,
|
|
@@ -8791,21 +8904,47 @@ const NavBarItemWithoutSubMenu = ({
|
|
|
8791
8904
|
...css
|
|
8792
8905
|
}, true ? "" : 0, true ? "" : 0)
|
|
8793
8906
|
});
|
|
8794
|
-
return (0,jsx_runtime_namespaceObject.jsx)(
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8907
|
+
return (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarItemProvider, {
|
|
8908
|
+
isActive: isActive,
|
|
8909
|
+
isHover: isHover,
|
|
8910
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarItem, {
|
|
8911
|
+
children: (0,jsx_runtime_namespaceObject.jsxs)(CollapsibleNavBarLink, {
|
|
8912
|
+
to: isExternalLink ? path : '/' + path,
|
|
8913
|
+
end: true,
|
|
8914
|
+
onClick: onClick,
|
|
8915
|
+
ref: linkRef,
|
|
8916
|
+
navbartheme: theme,
|
|
8917
|
+
"data-customicon": !!CustomIcon,
|
|
8918
|
+
onMouseEnter: handleMouseEnter,
|
|
8919
|
+
onMouseLeave: handleMouseLeave,
|
|
8920
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarPopover, {
|
|
8921
|
+
triggerIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon, {}),
|
|
8922
|
+
title: title
|
|
8923
|
+
}), (0,jsx_runtime_namespaceObject.jsx)(Icon, {}), (0,jsx_runtime_namespaceObject.jsx)("span", {
|
|
8924
|
+
children: title
|
|
8925
|
+
})]
|
|
8926
|
+
})
|
|
8927
|
+
}, path)
|
|
8928
|
+
});
|
|
8929
|
+
};
|
|
8930
|
+
;// ./src/components/CollapsibleNavBar/components/ItemWithoutSubmenu/index.ts
|
|
8931
|
+
|
|
8932
|
+
;// ./src/components/CollapsibleNavBar/components/NavBarItem.tsx
|
|
8933
|
+
|
|
8934
|
+
|
|
8935
|
+
const NavBarItem_NavBarItem = ({
|
|
8936
|
+
item,
|
|
8937
|
+
useMatchPattern,
|
|
8938
|
+
onClick
|
|
8939
|
+
}) => {
|
|
8940
|
+
return 'items' in item ? (0,jsx_runtime_namespaceObject.jsx)(Item, {
|
|
8941
|
+
item: item,
|
|
8942
|
+
onClick: onClick,
|
|
8943
|
+
useMatchPattern: useMatchPattern
|
|
8944
|
+
}) : (0,jsx_runtime_namespaceObject.jsx)(ItemWithoutSubMenu_Item, {
|
|
8945
|
+
item: item,
|
|
8946
|
+
onClick: onClick
|
|
8947
|
+
});
|
|
8809
8948
|
};
|
|
8810
8949
|
;// ./src/consts.ts
|
|
8811
8950
|
const SCREEN_SIZES = {
|
|
@@ -8834,12 +8973,6 @@ const SCREEN_SIZES = {
|
|
|
8834
8973
|
|
|
8835
8974
|
|
|
8836
8975
|
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
8976
|
/**
|
|
8844
8977
|
* UI Component that shows the collapsible navigation bar
|
|
8845
8978
|
*/
|
|
@@ -8873,7 +9006,7 @@ const CollapsibleNavBar = ({
|
|
|
8873
9006
|
return (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarProvider, {
|
|
8874
9007
|
theme: theme,
|
|
8875
9008
|
subMenuMaxWidth: subMenuMaxWidth,
|
|
8876
|
-
children: (0,jsx_runtime_namespaceObject.jsxs)(
|
|
9009
|
+
children: (0,jsx_runtime_namespaceObject.jsxs)(CollapsibleNavBarBase, {
|
|
8877
9010
|
className: className + (isChecked ? ' opened' : ''),
|
|
8878
9011
|
"data-theme": theme,
|
|
8879
9012
|
children: [(0,jsx_runtime_namespaceObject.jsx)("input", {
|
|
@@ -8883,9 +9016,9 @@ const CollapsibleNavBar = ({
|
|
|
8883
9016
|
onChange: () => {
|
|
8884
9017
|
onToggle(!isChecked);
|
|
8885
9018
|
}
|
|
8886
|
-
}), (0,jsx_runtime_namespaceObject.jsx)(
|
|
9019
|
+
}), (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavToggle, {
|
|
8887
9020
|
id: toggleId
|
|
8888
|
-
}), (0,jsx_runtime_namespaceObject.jsxs)(
|
|
9021
|
+
}), (0,jsx_runtime_namespaceObject.jsxs)(CollapsibleNavBarWrapper, {
|
|
8889
9022
|
navBarTheme: theme,
|
|
8890
9023
|
children: [(0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
8891
9024
|
css: LogoWrapper,
|
|
@@ -8893,7 +9026,7 @@ const CollapsibleNavBar = ({
|
|
|
8893
9026
|
id: toggleId,
|
|
8894
9027
|
isChecked: isChecked
|
|
8895
9028
|
})]
|
|
8896
|
-
}), (0,jsx_runtime_namespaceObject.jsx)(
|
|
9029
|
+
}), (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBarList, {
|
|
8897
9030
|
navBarTheme: theme,
|
|
8898
9031
|
children: items.map(item => {
|
|
8899
9032
|
const {
|
|
@@ -8901,13 +9034,10 @@ const CollapsibleNavBar = ({
|
|
|
8901
9034
|
title
|
|
8902
9035
|
} = item;
|
|
8903
9036
|
const keyName = iconName + title.replace(' ', '').toLowerCase();
|
|
8904
|
-
return
|
|
8905
|
-
item: item,
|
|
9037
|
+
return (0,jsx_runtime_namespaceObject.jsx)(NavBarItem_NavBarItem, {
|
|
8906
9038
|
onClick: handleCloseMobileMenu,
|
|
8907
|
-
useMatchPattern: useMatchPattern
|
|
8908
|
-
|
|
8909
|
-
item: item,
|
|
8910
|
-
onClick: handleCloseMobileMenu
|
|
9039
|
+
useMatchPattern: useMatchPattern,
|
|
9040
|
+
item: item
|
|
8911
9041
|
}, keyName);
|
|
8912
9042
|
})
|
|
8913
9043
|
})]
|
|
@@ -8915,9 +9045,46 @@ const CollapsibleNavBar = ({
|
|
|
8915
9045
|
})
|
|
8916
9046
|
});
|
|
8917
9047
|
};
|
|
9048
|
+
;// ./src/components/CollapsibleNavBar/CollapsibleNavBarCustomIconSVG.tsx
|
|
9049
|
+
|
|
9050
|
+
|
|
9051
|
+
|
|
9052
|
+
|
|
9053
|
+
|
|
9054
|
+
const CustomIconSVGStyled = /*#__PURE__*/base_default()("svg", true ? {
|
|
9055
|
+
target: "etmtuj80"
|
|
9056
|
+
} : 0)("&.is-active>path,&:hover>path,&:not(.is-active):hover>path,&:not(.is-active).is-hover>path{fill:", ({
|
|
9057
|
+
theme
|
|
9058
|
+
}) => theme.colors.white, ";}" + ( true ? "" : 0));
|
|
9059
|
+
const CollapsibleNavBarCustomIconSVG = ({
|
|
9060
|
+
className,
|
|
9061
|
+
css,
|
|
9062
|
+
children,
|
|
9063
|
+
...rest
|
|
9064
|
+
}) => {
|
|
9065
|
+
const {
|
|
9066
|
+
isActive,
|
|
9067
|
+
isHover
|
|
9068
|
+
} = useCollapsibleNavBarItemContext();
|
|
9069
|
+
const classNames = new utils_namespaceObject.ClassnameArray();
|
|
9070
|
+
classNames.push('svg-icon');
|
|
9071
|
+
classNames.toggle('is-active', isActive);
|
|
9072
|
+
classNames.toggle('is-hover', isHover);
|
|
9073
|
+
if (className) {
|
|
9074
|
+
classNames.push(className);
|
|
9075
|
+
}
|
|
9076
|
+
return (0,jsx_runtime_namespaceObject.jsx)(CustomIconSVGStyled, {
|
|
9077
|
+
className: classNames.join(' '),
|
|
9078
|
+
css: css,
|
|
9079
|
+
...rest,
|
|
9080
|
+
children: children
|
|
9081
|
+
});
|
|
9082
|
+
};
|
|
8918
9083
|
;// ./src/components/CollapsibleNavBar/index.ts
|
|
8919
9084
|
|
|
8920
9085
|
|
|
9086
|
+
|
|
9087
|
+
|
|
8921
9088
|
;// ./src/components/DatePicker/constants.ts
|
|
8922
9089
|
const DEFAULT_MASK_FORMAT = 'mm/dd/yyyy';
|
|
8923
9090
|
const DEFAULT_MASK = '__/__/____';
|
|
@@ -10344,22 +10511,6 @@ const DateRangePickerContext = /*#__PURE__*/(0,external_react_namespaceObject.cr
|
|
|
10344
10511
|
|
|
10345
10512
|
|
|
10346
10513
|
const useDateRangePickerContext = () => (0,external_react_namespaceObject.useContext)(DateRangePickerContext);
|
|
10347
|
-
;// ./src/components/DateRangePicker/helpers/ClassnameArray.ts
|
|
10348
|
-
class ClassnameArray extends Array {
|
|
10349
|
-
toggle(className, condition) {
|
|
10350
|
-
const index = this.indexOf(className);
|
|
10351
|
-
if (condition) {
|
|
10352
|
-
if (index === -1) {
|
|
10353
|
-
this.push(className);
|
|
10354
|
-
}
|
|
10355
|
-
} else {
|
|
10356
|
-
if (index > -1) {
|
|
10357
|
-
this.splice(index, 1);
|
|
10358
|
-
}
|
|
10359
|
-
}
|
|
10360
|
-
return this;
|
|
10361
|
-
}
|
|
10362
|
-
}
|
|
10363
10514
|
;// ./src/components/DateRangePicker/hooks/useRangeHighlighting.ts
|
|
10364
10515
|
|
|
10365
10516
|
|
|
@@ -10377,7 +10528,7 @@ const useRangeHighlighting = () => {
|
|
|
10377
10528
|
isCalendarFirstDateSelected,
|
|
10378
10529
|
isCalendarSecondDateSelected
|
|
10379
10530
|
}) => {
|
|
10380
|
-
const classNames = new ClassnameArray();
|
|
10531
|
+
const classNames = new utils_namespaceObject.ClassnameArray();
|
|
10381
10532
|
let isHoverRangeHighlightFrom = false;
|
|
10382
10533
|
let isHoverRangeHighlightTo = false;
|
|
10383
10534
|
if (hoveredDate !== null) {
|
|
@@ -16866,7 +17017,834 @@ const WithVisibleUpToLG = (Component, styles) => {
|
|
|
16866
17017
|
};
|
|
16867
17018
|
;// ./src/components/WithVisibleUpToLG/index.ts
|
|
16868
17019
|
|
|
16869
|
-
;//
|
|
17020
|
+
;// external "@rjsf/core"
|
|
17021
|
+
const core_namespaceObject = require("@rjsf/core");
|
|
17022
|
+
;// external "@rjsf/utils"
|
|
17023
|
+
const external_rjsf_utils_namespaceObject = require("@rjsf/utils");
|
|
17024
|
+
;// ./src/components/JsonSchemaForm/templates/SubmitButton.tsx
|
|
17025
|
+
function SubmitButton_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17026
|
+
|
|
17027
|
+
|
|
17028
|
+
|
|
17029
|
+
var SubmitButton_ref = true ? {
|
|
17030
|
+
name: "xda5ep",
|
|
17031
|
+
styles: "margin-top:12px"
|
|
17032
|
+
} : 0;
|
|
17033
|
+
const SubmitButton = ({
|
|
17034
|
+
uiSchema
|
|
17035
|
+
}) => {
|
|
17036
|
+
const {
|
|
17037
|
+
submitText,
|
|
17038
|
+
norender,
|
|
17039
|
+
props: submitButtonProps
|
|
17040
|
+
} = (0,external_rjsf_utils_namespaceObject.getSubmitButtonOptions)(uiSchema);
|
|
17041
|
+
if (norender) {
|
|
17042
|
+
return null;
|
|
17043
|
+
}
|
|
17044
|
+
return (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
|
|
17045
|
+
type: "submit",
|
|
17046
|
+
css: SubmitButton_ref,
|
|
17047
|
+
...submitButtonProps,
|
|
17048
|
+
"data-testid": "rjsf-submit-button",
|
|
17049
|
+
children: submitText
|
|
17050
|
+
});
|
|
17051
|
+
};
|
|
17052
|
+
;// ./src/components/JsonSchemaForm/templates/IconButton.tsx
|
|
17053
|
+
|
|
17054
|
+
|
|
17055
|
+
|
|
17056
|
+
|
|
17057
|
+
const IconButton = props => {
|
|
17058
|
+
const {
|
|
17059
|
+
iconType = 'button',
|
|
17060
|
+
icon,
|
|
17061
|
+
onClick,
|
|
17062
|
+
...otherProps
|
|
17063
|
+
} = props;
|
|
17064
|
+
return (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
|
|
17065
|
+
onClick: onClick,
|
|
17066
|
+
type: iconType,
|
|
17067
|
+
startIcon: icon,
|
|
17068
|
+
...otherProps
|
|
17069
|
+
});
|
|
17070
|
+
};
|
|
17071
|
+
const AddButton = props => {
|
|
17072
|
+
const {
|
|
17073
|
+
registry: {
|
|
17074
|
+
translateString
|
|
17075
|
+
}
|
|
17076
|
+
} = props;
|
|
17077
|
+
return (0,jsx_runtime_namespaceObject.jsx)(IconButton, {
|
|
17078
|
+
title: translateString(external_rjsf_utils_namespaceObject.TranslatableString.AddItemButton),
|
|
17079
|
+
...props,
|
|
17080
|
+
variant: "tertiary",
|
|
17081
|
+
icon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17082
|
+
name: "plus",
|
|
17083
|
+
size: 16
|
|
17084
|
+
})
|
|
17085
|
+
});
|
|
17086
|
+
};
|
|
17087
|
+
const RemoveButton = props => {
|
|
17088
|
+
const {
|
|
17089
|
+
registry: {
|
|
17090
|
+
translateString
|
|
17091
|
+
}
|
|
17092
|
+
} = props;
|
|
17093
|
+
return (0,jsx_runtime_namespaceObject.jsx)(IconButton, {
|
|
17094
|
+
title: translateString(external_rjsf_utils_namespaceObject.TranslatableString.RemoveButton),
|
|
17095
|
+
...props,
|
|
17096
|
+
variant: "tertiary",
|
|
17097
|
+
icon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17098
|
+
name: "cross",
|
|
17099
|
+
size: 14
|
|
17100
|
+
})
|
|
17101
|
+
});
|
|
17102
|
+
};
|
|
17103
|
+
const CopyButton = props => {
|
|
17104
|
+
const {
|
|
17105
|
+
registry: {
|
|
17106
|
+
translateString
|
|
17107
|
+
}
|
|
17108
|
+
} = props;
|
|
17109
|
+
return (0,jsx_runtime_namespaceObject.jsx)(IconButton, {
|
|
17110
|
+
title: translateString(external_rjsf_utils_namespaceObject.TranslatableString.CopyButton),
|
|
17111
|
+
...props,
|
|
17112
|
+
variant: "tertiary",
|
|
17113
|
+
icon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17114
|
+
name: "copy",
|
|
17115
|
+
size: 16
|
|
17116
|
+
})
|
|
17117
|
+
});
|
|
17118
|
+
};
|
|
17119
|
+
const MoveDownButton = props => {
|
|
17120
|
+
const {
|
|
17121
|
+
registry: {
|
|
17122
|
+
translateString
|
|
17123
|
+
}
|
|
17124
|
+
} = props;
|
|
17125
|
+
return (0,jsx_runtime_namespaceObject.jsx)(IconButton, {
|
|
17126
|
+
title: translateString(external_rjsf_utils_namespaceObject.TranslatableString.MoveDownButton),
|
|
17127
|
+
...props,
|
|
17128
|
+
variant: "tertiary",
|
|
17129
|
+
icon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17130
|
+
name: "arrow-down",
|
|
17131
|
+
size: 16
|
|
17132
|
+
})
|
|
17133
|
+
});
|
|
17134
|
+
};
|
|
17135
|
+
const MoveUpButton = props => {
|
|
17136
|
+
const {
|
|
17137
|
+
registry: {
|
|
17138
|
+
translateString
|
|
17139
|
+
}
|
|
17140
|
+
} = props;
|
|
17141
|
+
return (0,jsx_runtime_namespaceObject.jsx)(IconButton, {
|
|
17142
|
+
title: translateString(external_rjsf_utils_namespaceObject.TranslatableString.MoveUpButton),
|
|
17143
|
+
...props,
|
|
17144
|
+
variant: "tertiary",
|
|
17145
|
+
icon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17146
|
+
name: "arrow-up",
|
|
17147
|
+
size: 16
|
|
17148
|
+
})
|
|
17149
|
+
});
|
|
17150
|
+
};
|
|
17151
|
+
;// ./src/components/JsonSchemaForm/templates/BaseInputTemplate.tsx
|
|
17152
|
+
function BaseInputTemplate_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17153
|
+
|
|
17154
|
+
|
|
17155
|
+
|
|
17156
|
+
|
|
17157
|
+
var BaseInputTemplate_ref = true ? {
|
|
17158
|
+
name: "1ni3g9k",
|
|
17159
|
+
styles: "border:0 !important"
|
|
17160
|
+
} : 0;
|
|
17161
|
+
const BaseInputTemplate = props => {
|
|
17162
|
+
const {
|
|
17163
|
+
id,
|
|
17164
|
+
value,
|
|
17165
|
+
name,
|
|
17166
|
+
disabled,
|
|
17167
|
+
schema,
|
|
17168
|
+
type,
|
|
17169
|
+
options,
|
|
17170
|
+
placeholder,
|
|
17171
|
+
onChange,
|
|
17172
|
+
onChangeOverride,
|
|
17173
|
+
onBlur,
|
|
17174
|
+
onFocus
|
|
17175
|
+
} = props;
|
|
17176
|
+
const inputProps = (0,external_rjsf_utils_namespaceObject.getInputProps)(schema, type, options, false);
|
|
17177
|
+
const handleChange = onChangeOverride ? onChangeOverride : ({
|
|
17178
|
+
target
|
|
17179
|
+
}) => onChange(target.value === '' ? options.emptyValue : target.value);
|
|
17180
|
+
const handleBlur = ({
|
|
17181
|
+
target
|
|
17182
|
+
}) => onBlur(id, target && target.value);
|
|
17183
|
+
const handleFocus = ({
|
|
17184
|
+
target
|
|
17185
|
+
}) => onFocus(id, target && target.value);
|
|
17186
|
+
const register = fieldName => ({
|
|
17187
|
+
onBlur: handleBlur,
|
|
17188
|
+
onChange: handleChange,
|
|
17189
|
+
name: fieldName,
|
|
17190
|
+
ref: () => {}
|
|
17191
|
+
});
|
|
17192
|
+
return (0,jsx_runtime_namespaceObject.jsx)(FieldControl, {
|
|
17193
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(Input_Input, {
|
|
17194
|
+
register: register,
|
|
17195
|
+
inputProps: {
|
|
17196
|
+
id,
|
|
17197
|
+
value: value ?? '',
|
|
17198
|
+
onFocus: handleFocus
|
|
17199
|
+
},
|
|
17200
|
+
disabled: disabled,
|
|
17201
|
+
name: name,
|
|
17202
|
+
placeholder: placeholder,
|
|
17203
|
+
css: BaseInputTemplate_ref,
|
|
17204
|
+
...inputProps
|
|
17205
|
+
})
|
|
17206
|
+
});
|
|
17207
|
+
};
|
|
17208
|
+
;// ./src/components/JsonSchemaForm/templates/ArrayFieldItemTemplate.tsx
|
|
17209
|
+
function ArrayFieldItemTemplate_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17210
|
+
|
|
17211
|
+
|
|
17212
|
+
var ArrayFieldItemTemplate_ref = true ? {
|
|
17213
|
+
name: "82a6rk",
|
|
17214
|
+
styles: "flex:1"
|
|
17215
|
+
} : 0;
|
|
17216
|
+
var ArrayFieldItemTemplate_ref2 = true ? {
|
|
17217
|
+
name: "490tlg",
|
|
17218
|
+
styles: "display:flex;gap:4px"
|
|
17219
|
+
} : 0;
|
|
17220
|
+
const ArrayFieldItemTemplate = props => {
|
|
17221
|
+
const {
|
|
17222
|
+
children,
|
|
17223
|
+
disabled,
|
|
17224
|
+
hasCopy,
|
|
17225
|
+
hasMoveDown,
|
|
17226
|
+
hasMoveUp,
|
|
17227
|
+
hasRemove,
|
|
17228
|
+
hasToolbar,
|
|
17229
|
+
index,
|
|
17230
|
+
onCopyIndexClick,
|
|
17231
|
+
onDropIndexClick,
|
|
17232
|
+
onReorderClick,
|
|
17233
|
+
readonly,
|
|
17234
|
+
registry,
|
|
17235
|
+
uiSchema
|
|
17236
|
+
} = props;
|
|
17237
|
+
const {
|
|
17238
|
+
CopyButton,
|
|
17239
|
+
MoveDownButton,
|
|
17240
|
+
MoveUpButton,
|
|
17241
|
+
RemoveButton
|
|
17242
|
+
} = registry.templates.ButtonTemplates;
|
|
17243
|
+
const {
|
|
17244
|
+
toolbarAlign = 'top'
|
|
17245
|
+
} = registry.formContext;
|
|
17246
|
+
const buttonCss = {
|
|
17247
|
+
width: '32px',
|
|
17248
|
+
height: '32px',
|
|
17249
|
+
justifyContent: 'center'
|
|
17250
|
+
};
|
|
17251
|
+
return (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
17252
|
+
alignItems: toolbarAlign,
|
|
17253
|
+
style: {
|
|
17254
|
+
gap: 8
|
|
17255
|
+
},
|
|
17256
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
17257
|
+
css: ArrayFieldItemTemplate_ref,
|
|
17258
|
+
children: children
|
|
17259
|
+
}), hasToolbar && (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
17260
|
+
css: ArrayFieldItemTemplate_ref2,
|
|
17261
|
+
children: [(hasMoveUp || hasMoveDown) && (0,jsx_runtime_namespaceObject.jsx)(MoveUpButton, {
|
|
17262
|
+
disabled: disabled || readonly || !hasMoveUp,
|
|
17263
|
+
onClick: onReorderClick(index, index - 1),
|
|
17264
|
+
css: buttonCss,
|
|
17265
|
+
uiSchema: uiSchema,
|
|
17266
|
+
registry: registry
|
|
17267
|
+
}), (hasMoveUp || hasMoveDown) && (0,jsx_runtime_namespaceObject.jsx)(MoveDownButton, {
|
|
17268
|
+
disabled: disabled || readonly || !hasMoveDown,
|
|
17269
|
+
onClick: onReorderClick(index, index + 1),
|
|
17270
|
+
css: buttonCss,
|
|
17271
|
+
uiSchema: uiSchema,
|
|
17272
|
+
registry: registry
|
|
17273
|
+
}), hasCopy && (0,jsx_runtime_namespaceObject.jsx)(CopyButton, {
|
|
17274
|
+
disabled: disabled || readonly,
|
|
17275
|
+
onClick: onCopyIndexClick(index),
|
|
17276
|
+
css: buttonCss,
|
|
17277
|
+
uiSchema: uiSchema,
|
|
17278
|
+
registry: registry
|
|
17279
|
+
}), hasRemove && (0,jsx_runtime_namespaceObject.jsx)(RemoveButton, {
|
|
17280
|
+
disabled: disabled || readonly,
|
|
17281
|
+
onClick: onDropIndexClick(index),
|
|
17282
|
+
css: buttonCss,
|
|
17283
|
+
uiSchema: uiSchema,
|
|
17284
|
+
registry: registry
|
|
17285
|
+
})]
|
|
17286
|
+
})]
|
|
17287
|
+
});
|
|
17288
|
+
};
|
|
17289
|
+
;// ./src/components/JsonSchemaForm/templates/ArrayFieldTemplate.tsx
|
|
17290
|
+
function ArrayFieldTemplate_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17291
|
+
|
|
17292
|
+
|
|
17293
|
+
|
|
17294
|
+
var ArrayFieldTemplate_ref = true ? {
|
|
17295
|
+
name: "um7lt0",
|
|
17296
|
+
styles: "gap:8px;width:100%"
|
|
17297
|
+
} : 0;
|
|
17298
|
+
var ArrayFieldTemplate_ref2 = true ? {
|
|
17299
|
+
name: "rnnx2x",
|
|
17300
|
+
styles: "font-size:12px"
|
|
17301
|
+
} : 0;
|
|
17302
|
+
const ArrayFieldTemplate = props => {
|
|
17303
|
+
const {
|
|
17304
|
+
canAdd,
|
|
17305
|
+
disabled,
|
|
17306
|
+
idSchema,
|
|
17307
|
+
items,
|
|
17308
|
+
onAddClick,
|
|
17309
|
+
readonly,
|
|
17310
|
+
registry,
|
|
17311
|
+
required,
|
|
17312
|
+
schema,
|
|
17313
|
+
title,
|
|
17314
|
+
uiSchema
|
|
17315
|
+
} = props;
|
|
17316
|
+
const uiOptions = (0,external_rjsf_utils_namespaceObject.getUiOptions)(uiSchema);
|
|
17317
|
+
const ArrayFieldDescriptionTemplate = (0,external_rjsf_utils_namespaceObject.getTemplate)('ArrayFieldDescriptionTemplate', registry, uiOptions);
|
|
17318
|
+
const ArrayFieldItemTemplate = (0,external_rjsf_utils_namespaceObject.getTemplate)('ArrayFieldItemTemplate', registry, uiOptions);
|
|
17319
|
+
const ArrayFieldTitleTemplate = (0,external_rjsf_utils_namespaceObject.getTemplate)('ArrayFieldTitleTemplate', registry, uiOptions);
|
|
17320
|
+
const {
|
|
17321
|
+
ButtonTemplates: {
|
|
17322
|
+
AddButton
|
|
17323
|
+
}
|
|
17324
|
+
} = registry.templates;
|
|
17325
|
+
return (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
17326
|
+
direction: "column",
|
|
17327
|
+
alignItems: "flex-start",
|
|
17328
|
+
css: ArrayFieldTemplate_ref,
|
|
17329
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(ArrayFieldTitleTemplate, {
|
|
17330
|
+
idSchema: idSchema,
|
|
17331
|
+
required: required,
|
|
17332
|
+
title: uiOptions.title || title,
|
|
17333
|
+
schema: schema,
|
|
17334
|
+
uiSchema: uiSchema,
|
|
17335
|
+
registry: registry
|
|
17336
|
+
}), (uiOptions.description || schema.description) && (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
17337
|
+
css: ArrayFieldTemplate_ref2,
|
|
17338
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(ArrayFieldDescriptionTemplate, {
|
|
17339
|
+
description: uiOptions.description || schema.description,
|
|
17340
|
+
idSchema: idSchema,
|
|
17341
|
+
schema: schema,
|
|
17342
|
+
uiSchema: uiSchema,
|
|
17343
|
+
registry: registry
|
|
17344
|
+
})
|
|
17345
|
+
}), items && items.map(({
|
|
17346
|
+
key,
|
|
17347
|
+
...itemProps
|
|
17348
|
+
}) => (0,jsx_runtime_namespaceObject.jsx)(ArrayFieldItemTemplate, {
|
|
17349
|
+
...itemProps
|
|
17350
|
+
}, key)), canAdd && (0,jsx_runtime_namespaceObject.jsx)(AddButton, {
|
|
17351
|
+
disabled: disabled || readonly,
|
|
17352
|
+
onClick: onAddClick,
|
|
17353
|
+
uiSchema: uiSchema,
|
|
17354
|
+
registry: registry
|
|
17355
|
+
})]
|
|
17356
|
+
});
|
|
17357
|
+
};
|
|
17358
|
+
;// ./src/components/JsonSchemaForm/templates/TitleFieldTemplate.tsx
|
|
17359
|
+
|
|
17360
|
+
function TitleFieldTemplate_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17361
|
+
var TitleFieldTemplate_ref = true ? {
|
|
17362
|
+
name: "16ceglb",
|
|
17363
|
+
styles: "font-weight:600"
|
|
17364
|
+
} : 0;
|
|
17365
|
+
const TitleFieldTemplate = ({
|
|
17366
|
+
id,
|
|
17367
|
+
title
|
|
17368
|
+
}) => {
|
|
17369
|
+
return title ? (0,jsx_runtime_namespaceObject.jsx)("label", {
|
|
17370
|
+
htmlFor: id,
|
|
17371
|
+
title: typeof title === 'string' ? title : '',
|
|
17372
|
+
css: TitleFieldTemplate_ref,
|
|
17373
|
+
children: title
|
|
17374
|
+
}) : null;
|
|
17375
|
+
};
|
|
17376
|
+
;// ./src/components/JsonSchemaForm/templates/ObjectFieldTemplate.tsx
|
|
17377
|
+
function ObjectFieldTemplate_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17378
|
+
|
|
17379
|
+
|
|
17380
|
+
|
|
17381
|
+
var ObjectFieldTemplate_ref = true ? {
|
|
17382
|
+
name: "rnnx2x",
|
|
17383
|
+
styles: "font-size:12px"
|
|
17384
|
+
} : 0;
|
|
17385
|
+
const ObjectFieldTemplate = props => {
|
|
17386
|
+
const {
|
|
17387
|
+
disabled,
|
|
17388
|
+
description,
|
|
17389
|
+
idSchema,
|
|
17390
|
+
onAddClick,
|
|
17391
|
+
readonly,
|
|
17392
|
+
registry,
|
|
17393
|
+
required,
|
|
17394
|
+
schema,
|
|
17395
|
+
title,
|
|
17396
|
+
uiSchema,
|
|
17397
|
+
properties,
|
|
17398
|
+
formData
|
|
17399
|
+
} = props;
|
|
17400
|
+
const uiOptions = (0,external_rjsf_utils_namespaceObject.getUiOptions)(uiSchema);
|
|
17401
|
+
const TitleFieldTemplate = (0,external_rjsf_utils_namespaceObject.getTemplate)('TitleFieldTemplate', registry, uiOptions);
|
|
17402
|
+
const DescriptionFieldTemplate = (0,external_rjsf_utils_namespaceObject.getTemplate)('DescriptionFieldTemplate', registry, uiOptions);
|
|
17403
|
+
const {
|
|
17404
|
+
ButtonTemplates: {
|
|
17405
|
+
AddButton
|
|
17406
|
+
}
|
|
17407
|
+
} = registry.templates;
|
|
17408
|
+
return (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
17409
|
+
id: idSchema.$id,
|
|
17410
|
+
direction: "column",
|
|
17411
|
+
alignItems: "stretch",
|
|
17412
|
+
className: "form-group",
|
|
17413
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(TitleFieldTemplate, {
|
|
17414
|
+
id: (0,external_rjsf_utils_namespaceObject.titleId)(idSchema),
|
|
17415
|
+
title: title,
|
|
17416
|
+
required: required,
|
|
17417
|
+
schema: schema,
|
|
17418
|
+
uiSchema: uiSchema,
|
|
17419
|
+
registry: registry
|
|
17420
|
+
}), description && (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
17421
|
+
css: ObjectFieldTemplate_ref,
|
|
17422
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(DescriptionFieldTemplate, {
|
|
17423
|
+
id: (0,external_rjsf_utils_namespaceObject.descriptionId)(idSchema),
|
|
17424
|
+
description: description,
|
|
17425
|
+
schema: schema,
|
|
17426
|
+
uiSchema: uiSchema,
|
|
17427
|
+
registry: registry
|
|
17428
|
+
})
|
|
17429
|
+
}), properties.filter(e => !e.hidden).map(element => element.content), (0,external_rjsf_utils_namespaceObject.canExpand)(schema, uiSchema, formData) && (0,jsx_runtime_namespaceObject.jsx)(AddButton, {
|
|
17430
|
+
disabled: disabled || readonly,
|
|
17431
|
+
onClick: onAddClick(schema),
|
|
17432
|
+
uiSchema: uiSchema,
|
|
17433
|
+
registry: registry
|
|
17434
|
+
})]
|
|
17435
|
+
});
|
|
17436
|
+
};
|
|
17437
|
+
;// ./src/components/JsonSchemaForm/templates/FieldTemplate.tsx
|
|
17438
|
+
|
|
17439
|
+
|
|
17440
|
+
|
|
17441
|
+
const FieldTemplate = props => {
|
|
17442
|
+
const {
|
|
17443
|
+
id,
|
|
17444
|
+
classNames,
|
|
17445
|
+
style,
|
|
17446
|
+
label,
|
|
17447
|
+
displayLabel,
|
|
17448
|
+
disabled,
|
|
17449
|
+
rawErrors,
|
|
17450
|
+
registry,
|
|
17451
|
+
uiSchema,
|
|
17452
|
+
children,
|
|
17453
|
+
readonly,
|
|
17454
|
+
required,
|
|
17455
|
+
schema,
|
|
17456
|
+
rawHelp,
|
|
17457
|
+
help,
|
|
17458
|
+
onDropPropertyClick,
|
|
17459
|
+
onKeyChange
|
|
17460
|
+
} = props;
|
|
17461
|
+
const uiOptions = (0,external_rjsf_utils_namespaceObject.getUiOptions)(uiSchema);
|
|
17462
|
+
const WrapIfAdditionalTemplate = (0,external_rjsf_utils_namespaceObject.getTemplate)('WrapIfAdditionalTemplate', registry, uiOptions);
|
|
17463
|
+
const status = rawErrors && rawErrors.length > 0 ? 'error' : 'basic';
|
|
17464
|
+
return (0,jsx_runtime_namespaceObject.jsx)(WrapIfAdditionalTemplate, {
|
|
17465
|
+
classNames: classNames,
|
|
17466
|
+
style: style,
|
|
17467
|
+
disabled: disabled,
|
|
17468
|
+
id: id,
|
|
17469
|
+
label: label,
|
|
17470
|
+
onDropPropertyClick: onDropPropertyClick,
|
|
17471
|
+
onKeyChange: onKeyChange,
|
|
17472
|
+
readonly: readonly,
|
|
17473
|
+
required: required,
|
|
17474
|
+
schema: schema,
|
|
17475
|
+
uiSchema: uiSchema,
|
|
17476
|
+
registry: registry,
|
|
17477
|
+
children: (0,jsx_runtime_namespaceObject.jsxs)(FieldRoot, {
|
|
17478
|
+
status: status,
|
|
17479
|
+
disabled: disabled,
|
|
17480
|
+
asChild: true,
|
|
17481
|
+
children: [displayLabel && (0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
|
|
17482
|
+
htmlFor: id,
|
|
17483
|
+
children: label
|
|
17484
|
+
}), children, (0,jsx_runtime_namespaceObject.jsx)(FieldError, {
|
|
17485
|
+
children: rawErrors?.join(', ')
|
|
17486
|
+
}), rawHelp && (0,jsx_runtime_namespaceObject.jsx)(FieldDescription, {
|
|
17487
|
+
children: help
|
|
17488
|
+
})]
|
|
17489
|
+
})
|
|
17490
|
+
});
|
|
17491
|
+
};
|
|
17492
|
+
;// ./src/components/JsonSchemaForm/templates/index.ts
|
|
17493
|
+
|
|
17494
|
+
|
|
17495
|
+
|
|
17496
|
+
|
|
17497
|
+
|
|
17498
|
+
|
|
17499
|
+
|
|
17500
|
+
|
|
17501
|
+
function generateTemplates() {
|
|
17502
|
+
return {
|
|
17503
|
+
ArrayFieldItemTemplate: ArrayFieldItemTemplate,
|
|
17504
|
+
ArrayFieldTemplate: ArrayFieldTemplate,
|
|
17505
|
+
BaseInputTemplate: BaseInputTemplate,
|
|
17506
|
+
ButtonTemplates: {
|
|
17507
|
+
SubmitButton: SubmitButton,
|
|
17508
|
+
AddButton: AddButton,
|
|
17509
|
+
RemoveButton: RemoveButton,
|
|
17510
|
+
CopyButton: CopyButton,
|
|
17511
|
+
MoveDownButton: MoveDownButton,
|
|
17512
|
+
MoveUpButton: MoveUpButton
|
|
17513
|
+
},
|
|
17514
|
+
TitleFieldTemplate: TitleFieldTemplate,
|
|
17515
|
+
ObjectFieldTemplate: ObjectFieldTemplate,
|
|
17516
|
+
FieldTemplate: FieldTemplate
|
|
17517
|
+
};
|
|
17518
|
+
}
|
|
17519
|
+
/* harmony default export */ const templates = (generateTemplates());
|
|
17520
|
+
;// ./src/components/JsonSchemaForm/widgets/CheckboxWidget.tsx
|
|
17521
|
+
function CheckboxWidget_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17522
|
+
|
|
17523
|
+
|
|
17524
|
+
|
|
17525
|
+
var CheckboxWidget_ref = true ? {
|
|
17526
|
+
name: "1ykowef",
|
|
17527
|
+
styles: "margin-bottom:0"
|
|
17528
|
+
} : 0;
|
|
17529
|
+
const CheckboxWidget = props => {
|
|
17530
|
+
const {
|
|
17531
|
+
id,
|
|
17532
|
+
value,
|
|
17533
|
+
label,
|
|
17534
|
+
hideLabel,
|
|
17535
|
+
onChange
|
|
17536
|
+
} = props;
|
|
17537
|
+
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
17538
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(Checkbox_Checkbox, {
|
|
17539
|
+
id: id,
|
|
17540
|
+
initialState: value,
|
|
17541
|
+
onChange: onChange,
|
|
17542
|
+
text: (0,external_rjsf_utils_namespaceObject.labelValue)(label, hideLabel, ''),
|
|
17543
|
+
css: CheckboxWidget_ref
|
|
17544
|
+
})
|
|
17545
|
+
});
|
|
17546
|
+
};
|
|
17547
|
+
;// ./src/components/JsonSchemaForm/widgets/CheckboxesWidget.tsx
|
|
17548
|
+
|
|
17549
|
+
|
|
17550
|
+
|
|
17551
|
+
|
|
17552
|
+
const CheckboxesWidget = props => {
|
|
17553
|
+
const {
|
|
17554
|
+
id,
|
|
17555
|
+
options,
|
|
17556
|
+
value,
|
|
17557
|
+
readonly,
|
|
17558
|
+
disabled,
|
|
17559
|
+
onChange,
|
|
17560
|
+
onBlur,
|
|
17561
|
+
onFocus
|
|
17562
|
+
} = props;
|
|
17563
|
+
const {
|
|
17564
|
+
enumOptions = [],
|
|
17565
|
+
enumDisabled = [],
|
|
17566
|
+
inline = false,
|
|
17567
|
+
emptyValue
|
|
17568
|
+
} = options;
|
|
17569
|
+
const selectedIndexes = (0,external_rjsf_utils_namespaceObject.enumOptionsIndexForValue)(value, enumOptions, true);
|
|
17570
|
+
const [selectedOptions, setSelectedOptions] = (0,external_react_namespaceObject.useState)(selectedIndexes);
|
|
17571
|
+
const handleChange = nextValue => {
|
|
17572
|
+
const newSelectedOptions = [...selectedOptions];
|
|
17573
|
+
const index = newSelectedOptions.indexOf(String(nextValue));
|
|
17574
|
+
if (index > -1) {
|
|
17575
|
+
newSelectedOptions.splice(index, 1);
|
|
17576
|
+
} else {
|
|
17577
|
+
newSelectedOptions.push(String(nextValue));
|
|
17578
|
+
}
|
|
17579
|
+
setSelectedOptions(newSelectedOptions);
|
|
17580
|
+
onChange((0,external_rjsf_utils_namespaceObject.enumOptionsValueForIndex)(newSelectedOptions, enumOptions, emptyValue));
|
|
17581
|
+
};
|
|
17582
|
+
const handleBlur = ({
|
|
17583
|
+
target
|
|
17584
|
+
}) => onBlur(id, (0,external_rjsf_utils_namespaceObject.enumOptionsValueForIndex)(target.value, enumOptions, emptyValue));
|
|
17585
|
+
const handleFocus = ({
|
|
17586
|
+
target
|
|
17587
|
+
}) => onFocus(id, (0,external_rjsf_utils_namespaceObject.enumOptionsValueForIndex)(target.value, enumOptions, emptyValue));
|
|
17588
|
+
const divProps = {
|
|
17589
|
+
id,
|
|
17590
|
+
onBlur: !readonly ? handleBlur : undefined,
|
|
17591
|
+
onFocus: !readonly ? handleFocus : undefined
|
|
17592
|
+
};
|
|
17593
|
+
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
17594
|
+
...divProps,
|
|
17595
|
+
children: Array.isArray(enumOptions) && enumOptions.map((option, i) => (0,jsx_runtime_namespaceObject.jsxs)(external_react_namespaceObject.Fragment, {
|
|
17596
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(Checkbox_Checkbox, {
|
|
17597
|
+
id: (0,external_rjsf_utils_namespaceObject.optionId)(id, i),
|
|
17598
|
+
onChange: () => handleChange(i),
|
|
17599
|
+
isDisabled: disabled || Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1,
|
|
17600
|
+
initialState: selectedOptions.includes(String(i)),
|
|
17601
|
+
name: id,
|
|
17602
|
+
text: option.label
|
|
17603
|
+
}), !inline && (0,jsx_runtime_namespaceObject.jsx)("br", {})]
|
|
17604
|
+
}, i))
|
|
17605
|
+
});
|
|
17606
|
+
};
|
|
17607
|
+
;// ./src/components/JsonSchemaForm/widgets/RadioWidget.tsx
|
|
17608
|
+
|
|
17609
|
+
function RadioWidget_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17610
|
+
|
|
17611
|
+
|
|
17612
|
+
|
|
17613
|
+
|
|
17614
|
+
|
|
17615
|
+
const RadioWidget = props => {
|
|
17616
|
+
const {
|
|
17617
|
+
id,
|
|
17618
|
+
name,
|
|
17619
|
+
disabled,
|
|
17620
|
+
options,
|
|
17621
|
+
value,
|
|
17622
|
+
required,
|
|
17623
|
+
onChange
|
|
17624
|
+
} = props;
|
|
17625
|
+
const {
|
|
17626
|
+
enumOptions = [],
|
|
17627
|
+
enumDisabled = [],
|
|
17628
|
+
inline = false,
|
|
17629
|
+
emptyValue
|
|
17630
|
+
} = options;
|
|
17631
|
+
const selectedIndex = (0,external_rjsf_utils_namespaceObject.enumOptionsIndexForValue)(value, enumOptions);
|
|
17632
|
+
const handleChange = nextValue => onChange((0,external_rjsf_utils_namespaceObject.enumOptionsValueForIndex)(nextValue, enumOptions, emptyValue));
|
|
17633
|
+
return (0,jsx_runtime_namespaceObject.jsx)(RadioGroup_RadioGroup, {
|
|
17634
|
+
name: name,
|
|
17635
|
+
onChange: handleChange,
|
|
17636
|
+
initialState: selectedIndex,
|
|
17637
|
+
isRequired: required,
|
|
17638
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
17639
|
+
[`> label`]: {
|
|
17640
|
+
display: inline ? 'inline-flex' : 'flex'
|
|
17641
|
+
}
|
|
17642
|
+
}, true ? "" : 0, true ? "" : 0),
|
|
17643
|
+
children: Array.isArray(enumOptions) ? enumOptions.map((option, i) => (0,jsx_runtime_namespaceObject.jsx)(Radio_Radio, {
|
|
17644
|
+
id: (0,external_rjsf_utils_namespaceObject.optionId)(id, i),
|
|
17645
|
+
name: id,
|
|
17646
|
+
isDisabled: disabled || Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1,
|
|
17647
|
+
text: option.label,
|
|
17648
|
+
className: /*#__PURE__*/(0,css_namespaceObject.css)( true ? {
|
|
17649
|
+
name: "1ykowef",
|
|
17650
|
+
styles: "margin-bottom:0"
|
|
17651
|
+
} : 0),
|
|
17652
|
+
value: String(i)
|
|
17653
|
+
}, i)) : undefined
|
|
17654
|
+
});
|
|
17655
|
+
};
|
|
17656
|
+
;// ./src/components/JsonSchemaForm/widgets/SelectWidget.tsx
|
|
17657
|
+
|
|
17658
|
+
|
|
17659
|
+
|
|
17660
|
+
const SelectWidget = props => {
|
|
17661
|
+
const {
|
|
17662
|
+
disabled,
|
|
17663
|
+
options,
|
|
17664
|
+
placeholder,
|
|
17665
|
+
onChange,
|
|
17666
|
+
onChangeOverride,
|
|
17667
|
+
value
|
|
17668
|
+
} = props;
|
|
17669
|
+
const {
|
|
17670
|
+
enumOptions = [],
|
|
17671
|
+
enumDisabled = []
|
|
17672
|
+
} = options;
|
|
17673
|
+
const selectedIndex = (0,external_rjsf_utils_namespaceObject.enumOptionsIndexForValue)(value, enumOptions);
|
|
17674
|
+
const handleChange = onChangeOverride ? onChangeOverride : ({
|
|
17675
|
+
value
|
|
17676
|
+
}) => onChange((0,external_rjsf_utils_namespaceObject.enumOptionsValueForIndex)(value, enumOptions));
|
|
17677
|
+
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
17678
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(Dropdown_Dropdown, {
|
|
17679
|
+
isDisabled: disabled,
|
|
17680
|
+
onChange: handleChange,
|
|
17681
|
+
placeholder: placeholder,
|
|
17682
|
+
selectedItem: selectedIndex ? {
|
|
17683
|
+
value: selectedIndex,
|
|
17684
|
+
label: enumOptions[Number(selectedIndex)].label
|
|
17685
|
+
} : undefined,
|
|
17686
|
+
children: Array.isArray(enumOptions) && enumOptions.map((option, i) => (0,jsx_runtime_namespaceObject.jsx)(DropdownOption_DropdownOption, {
|
|
17687
|
+
value: String(i),
|
|
17688
|
+
label: option.label,
|
|
17689
|
+
isDisabled: disabled || Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1
|
|
17690
|
+
}, i))
|
|
17691
|
+
})
|
|
17692
|
+
});
|
|
17693
|
+
};
|
|
17694
|
+
;// ./src/components/JsonSchemaForm/widgets/PasswordWidget.tsx
|
|
17695
|
+
function PasswordWidget_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17696
|
+
|
|
17697
|
+
|
|
17698
|
+
|
|
17699
|
+
|
|
17700
|
+
|
|
17701
|
+
|
|
17702
|
+
var PasswordWidget_ref = true ? {
|
|
17703
|
+
name: "1ni3g9k",
|
|
17704
|
+
styles: "border:0 !important"
|
|
17705
|
+
} : 0;
|
|
17706
|
+
const PasswordWidget = props => {
|
|
17707
|
+
const {
|
|
17708
|
+
id,
|
|
17709
|
+
value,
|
|
17710
|
+
name,
|
|
17711
|
+
disabled,
|
|
17712
|
+
options,
|
|
17713
|
+
placeholder,
|
|
17714
|
+
onChange,
|
|
17715
|
+
onChangeOverride,
|
|
17716
|
+
onBlur,
|
|
17717
|
+
onFocus
|
|
17718
|
+
} = props;
|
|
17719
|
+
const [visible, toggleVisibility] = (0,hooks_namespaceObject.useToggle)();
|
|
17720
|
+
const handleChange = onChangeOverride ? onChangeOverride : ({
|
|
17721
|
+
target
|
|
17722
|
+
}) => onChange(target.value === '' ? options.emptyValue : target.value);
|
|
17723
|
+
const handleBlur = ({
|
|
17724
|
+
target
|
|
17725
|
+
}) => onBlur(id, target && target.value);
|
|
17726
|
+
const handleFocus = ({
|
|
17727
|
+
target
|
|
17728
|
+
}) => onFocus(id, target && target.value);
|
|
17729
|
+
const register = fieldName => ({
|
|
17730
|
+
onBlur: handleBlur,
|
|
17731
|
+
onChange: handleChange,
|
|
17732
|
+
name: fieldName,
|
|
17733
|
+
ref: () => {}
|
|
17734
|
+
});
|
|
17735
|
+
return (0,jsx_runtime_namespaceObject.jsx)(FieldControl, {
|
|
17736
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(Input_Input, {
|
|
17737
|
+
register: register,
|
|
17738
|
+
inputProps: {
|
|
17739
|
+
id,
|
|
17740
|
+
value: value ?? '',
|
|
17741
|
+
onFocus: handleFocus
|
|
17742
|
+
},
|
|
17743
|
+
disabled: disabled,
|
|
17744
|
+
name: name,
|
|
17745
|
+
placeholder: placeholder,
|
|
17746
|
+
css: PasswordWidget_ref,
|
|
17747
|
+
type: visible ? 'text' : 'password',
|
|
17748
|
+
endElement: (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
|
|
17749
|
+
variant: "tertiary",
|
|
17750
|
+
endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17751
|
+
name: visible ? 'invisible' : 'visible',
|
|
17752
|
+
size: 16
|
|
17753
|
+
}),
|
|
17754
|
+
onClick: () => toggleVisibility()
|
|
17755
|
+
})
|
|
17756
|
+
})
|
|
17757
|
+
});
|
|
17758
|
+
};
|
|
17759
|
+
;// ./src/components/JsonSchemaForm/widgets/RangeWidget.tsx
|
|
17760
|
+
function RangeWidget_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17761
|
+
|
|
17762
|
+
|
|
17763
|
+
var RangeWidget_ref = true ? {
|
|
17764
|
+
name: "1d3w5wq",
|
|
17765
|
+
styles: "width:100%"
|
|
17766
|
+
} : 0;
|
|
17767
|
+
const RangeWidget = props => {
|
|
17768
|
+
const {
|
|
17769
|
+
id,
|
|
17770
|
+
disabled,
|
|
17771
|
+
options,
|
|
17772
|
+
onChangeOverride,
|
|
17773
|
+
value,
|
|
17774
|
+
schema,
|
|
17775
|
+
onChange,
|
|
17776
|
+
onBlur,
|
|
17777
|
+
onFocus
|
|
17778
|
+
} = props;
|
|
17779
|
+
const {
|
|
17780
|
+
min,
|
|
17781
|
+
max,
|
|
17782
|
+
step
|
|
17783
|
+
} = (0,external_rjsf_utils_namespaceObject.rangeSpec)(schema);
|
|
17784
|
+
const emptyValue = options.emptyValue || '';
|
|
17785
|
+
const handleChange = nextValue => onChangeOverride ? onChangeOverride : onChange(nextValue === '' ? emptyValue : nextValue);
|
|
17786
|
+
const handleBlur = () => onBlur(id, value);
|
|
17787
|
+
const handleFocus = () => onFocus(id, value);
|
|
17788
|
+
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
17789
|
+
children: (0,jsx_runtime_namespaceObject.jsx)("input", {
|
|
17790
|
+
id: id,
|
|
17791
|
+
type: "range",
|
|
17792
|
+
min: min,
|
|
17793
|
+
max: max,
|
|
17794
|
+
step: step,
|
|
17795
|
+
disabled: disabled,
|
|
17796
|
+
onChange: e => handleChange(e.target.value),
|
|
17797
|
+
onBlur: handleBlur,
|
|
17798
|
+
onFocus: handleFocus,
|
|
17799
|
+
css: RangeWidget_ref
|
|
17800
|
+
})
|
|
17801
|
+
});
|
|
17802
|
+
};
|
|
17803
|
+
;// ./src/components/JsonSchemaForm/widgets/index.ts
|
|
17804
|
+
|
|
17805
|
+
|
|
17806
|
+
|
|
17807
|
+
|
|
17808
|
+
|
|
17809
|
+
|
|
17810
|
+
function generateWidgets() {
|
|
17811
|
+
return {
|
|
17812
|
+
CheckboxWidget: CheckboxWidget,
|
|
17813
|
+
CheckboxesWidget: CheckboxesWidget,
|
|
17814
|
+
RadioWidget: RadioWidget,
|
|
17815
|
+
PasswordWidget: PasswordWidget,
|
|
17816
|
+
SelectWidget: SelectWidget,
|
|
17817
|
+
RangeWidget: RangeWidget
|
|
17818
|
+
};
|
|
17819
|
+
}
|
|
17820
|
+
/* harmony default export */ const widgets = (generateWidgets());
|
|
17821
|
+
;// ./src/components/JsonSchemaForm/index.ts
|
|
17822
|
+
|
|
17823
|
+
function JsonSchemaForm_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17824
|
+
|
|
17825
|
+
|
|
17826
|
+
|
|
17827
|
+
function generateTheme() {
|
|
17828
|
+
return {
|
|
17829
|
+
templates: generateTemplates(),
|
|
17830
|
+
widgets: generateWidgets()
|
|
17831
|
+
};
|
|
17832
|
+
}
|
|
17833
|
+
const Theme = generateTheme();
|
|
17834
|
+
function generateForm() {
|
|
17835
|
+
return (0,core_namespaceObject.withTheme)(generateTheme());
|
|
17836
|
+
}
|
|
17837
|
+
const UnstyledForm = generateForm();
|
|
17838
|
+
const JsonSchemaForm_Form = /*#__PURE__*/base_default()(UnstyledForm, true ? {
|
|
17839
|
+
target: "e1yfg9n10"
|
|
17840
|
+
} : 0)( true ? {
|
|
17841
|
+
name: "173skgr",
|
|
17842
|
+
styles: ".form-group{margin-bottom:16px;}.form-group:last-child{margin-bottom:0;}"
|
|
17843
|
+
} : 0);
|
|
17844
|
+
|
|
17845
|
+
;// ./src/components/index.ts
|
|
17846
|
+
|
|
17847
|
+
|
|
16870
17848
|
|
|
16871
17849
|
|
|
16872
17850
|
|