@hybridcore/ui 1.6.1 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/Button-C5yquWAB.js +357 -0
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
- package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
- package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/logic.js +1 -1
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +18 -15
- package/dist/components/data-security-selectors/security-level/logic.js +18 -63
- package/dist/components/data-security-selectors/security-level/styled.js +23 -17
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -86
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -9
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/styled.js +1106 -1034
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -308
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +1 -1
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
- package/dist/main.d.ts +1054 -330
- package/dist/main.js +163 -130
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-CMg08YSA.js +0 -739
- package/dist/Add-DuVVJeQU.js +0 -380
- package/dist/ButtonBase-sObABYY2.js +0 -965
- package/dist/FormControl-BCurCxRj.js +0 -1294
- package/dist/FormControlLabel-BkRfrhNy.js +0 -601
- package/dist/InputAdornment-C7PEvvYr.js +0 -155
- package/dist/Modal-DlB6GH-f.js +0 -1659
- package/dist/Paper-q9kKjAKx.js +0 -527
- package/dist/TextField-DSDIEEKu.js +0 -3161
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-quqpGCFu.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -47
- package/dist/components/key-protection/logic.js +0 -40
- package/dist/components/key-protection/styled.js +0 -45
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/createSvgIcon-BM3-TsGy.js +0 -70
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-DPKUmQnz.js +0 -501
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isMuiElement-BkJ72LB3.js +0 -26
- package/dist/property-list-form-DL_dEoNn.js +0 -381
- package/dist/styled-Bsjp3kFh.js +0 -668
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/utils-Cxu-fHjQ.js +0 -115
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { jsx as n, jsxs as I, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { KeyboardArrowUp as J, KeyboardArrowDown as Q, Add as X, LockOutlined as Z } from "@mui/icons-material";
|
|
3
|
+
import { FormControl as R, FormGroup as O, FormControlLabel as _, Checkbox as K, Chip as ee, Dialog as ne, DialogTitle as te, DialogContent as re, DialogActions as ae, Button as z, TextField as B, InputAdornment as oe, Tooltip as le, InputLabel as ie, Select as de, MenuItem as pe } from "@mui/material";
|
|
4
|
+
import $ from "dayjs";
|
|
5
|
+
import C from "lodash";
|
|
6
|
+
import { ConditionalWrapper as p } from "./components/conditional-wrapper/index.js";
|
|
7
|
+
import { DateTimePicker as ce } from "./components/date-time-picker/index.js";
|
|
8
|
+
import { GeometryPicker as ue } from "./components/geometry-picker/index.js";
|
|
9
|
+
import { PhoneInput as me } from "./components/phone-input/index.js";
|
|
10
|
+
import { leftLayoutWrapper as y } from "./components/instance-form/helpers.js";
|
|
11
|
+
import { CompositeListEnumLabel as se, CompositeListEnumEmpty as he, CompositeListShowMoreButton as fe, CompositeListContainer as ye, CompositeListLabel as Ie, CompositeListValues as Ce, CompositeListMiniButton as ge, VariableFullWidth as M } from "./components/instance-form/styled.js";
|
|
12
|
+
import { useState as G } from "react";
|
|
13
|
+
import be from "./hooks/useToggle.js";
|
|
14
|
+
import b from "./components/instance-form/components/TopLabelWrapper.js";
|
|
15
|
+
import { CompositeMatrix as ve } from "./components/instance-form/components/composite-matrix/index.js";
|
|
16
|
+
const H = 10, Ve = (P) => {
|
|
17
|
+
var k, V, w;
|
|
18
|
+
const {
|
|
19
|
+
property: l,
|
|
20
|
+
mapboxAccessToken: e,
|
|
21
|
+
value: a,
|
|
22
|
+
variant: s = "outlined",
|
|
23
|
+
labelPosition: r = "default",
|
|
24
|
+
size: u = "medium",
|
|
25
|
+
onChange: v
|
|
26
|
+
} = P, t = be(!1), [m, L] = G(), [g, q] = G(!1), D = (i) => {
|
|
27
|
+
L(C.get(i, l.propertyId));
|
|
28
|
+
}, S = () => {
|
|
29
|
+
v([...a ?? [], m]), L(""), t.action.close();
|
|
30
|
+
}, W = (i) => () => {
|
|
31
|
+
if (!a) return;
|
|
32
|
+
const d = [...a];
|
|
33
|
+
d.splice(i, 1), v(d);
|
|
34
|
+
}, E = (i) => {
|
|
35
|
+
const { value: d, checked: f } = i.target;
|
|
36
|
+
let h = C.isArray(a) ? a : [];
|
|
37
|
+
f ? h.push(d) : h = h.filter((A) => A !== d), v(h);
|
|
38
|
+
};
|
|
39
|
+
if (((V = (k = l.dataTypeInfo) == null ? void 0 : k.innerType) == null ? void 0 : V.type) === "enum") {
|
|
40
|
+
const { enumValues: i } = l.dataTypeInfo.innerType;
|
|
41
|
+
return /* @__PURE__ */ n(
|
|
42
|
+
p,
|
|
43
|
+
{
|
|
44
|
+
condition: r === "left",
|
|
45
|
+
wrapper: y(l.name),
|
|
46
|
+
children: /* @__PURE__ */ n(
|
|
47
|
+
p,
|
|
48
|
+
{
|
|
49
|
+
condition: r === "top",
|
|
50
|
+
wrapper: b(l.name, l == null ? void 0 : l.required),
|
|
51
|
+
children: /* @__PURE__ */ I(Y, { children: [
|
|
52
|
+
/* @__PURE__ */ I(R, { fullWidth: !0, component: "fieldset", variant: s, children: [
|
|
53
|
+
r === "default" && /* @__PURE__ */ n(se, { children: l.name }),
|
|
54
|
+
/* @__PURE__ */ n(O, { children: i && i.length > 0 ? i.slice(0, g ? 9999 : H).map((d, f) => /* @__PURE__ */ n(
|
|
55
|
+
_,
|
|
56
|
+
{
|
|
57
|
+
label: d,
|
|
58
|
+
control: /* @__PURE__ */ n(
|
|
59
|
+
K,
|
|
60
|
+
{
|
|
61
|
+
name: l.propertyId,
|
|
62
|
+
value: d,
|
|
63
|
+
size: "small",
|
|
64
|
+
checked: C.isArray(a) ? a.includes(d) : !1,
|
|
65
|
+
onChange: E
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
componentsProps: {
|
|
69
|
+
typography: { variant: "body2" }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
f
|
|
73
|
+
)) : /* @__PURE__ */ n(he, { variant: "caption", children: "No enum values!" }) })
|
|
74
|
+
] }),
|
|
75
|
+
C.isArray(i) && i.length > H && /* @__PURE__ */ I(
|
|
76
|
+
fe,
|
|
77
|
+
{
|
|
78
|
+
size: "small",
|
|
79
|
+
endIcon: g ? /* @__PURE__ */ n(J, {}) : /* @__PURE__ */ n(Q, {}),
|
|
80
|
+
onClick: () => q((d) => !d),
|
|
81
|
+
children: [
|
|
82
|
+
"Show ",
|
|
83
|
+
g ? "Less" : "More"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] })
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
return /* @__PURE__ */ I(Y, { children: [
|
|
94
|
+
/* @__PURE__ */ n(
|
|
95
|
+
p,
|
|
96
|
+
{
|
|
97
|
+
condition: r === "left",
|
|
98
|
+
wrapper: y(l.name),
|
|
99
|
+
children: /* @__PURE__ */ n(
|
|
100
|
+
p,
|
|
101
|
+
{
|
|
102
|
+
condition: r === "top",
|
|
103
|
+
wrapper: b(l.name, l == null ? void 0 : l.required),
|
|
104
|
+
children: /* @__PURE__ */ I(ye, { ownerState: { variant: s }, children: [
|
|
105
|
+
r === "default" && /* @__PURE__ */ n(Ie, { children: l.name }),
|
|
106
|
+
/* @__PURE__ */ n(Ce, { children: C.isArray(a) && a.map((i, d) => {
|
|
107
|
+
var f, h;
|
|
108
|
+
return /* @__PURE__ */ n(
|
|
109
|
+
ee,
|
|
110
|
+
{
|
|
111
|
+
label: ((h = (f = l.dataTypeInfo) == null ? void 0 : f.innerType) == null ? void 0 : h.type) === "date" ? $(i).format("DD/MM/YYYY HH:mm:ss") : i,
|
|
112
|
+
size: u,
|
|
113
|
+
onDelete: W(d)
|
|
114
|
+
},
|
|
115
|
+
d
|
|
116
|
+
);
|
|
117
|
+
}) }),
|
|
118
|
+
/* @__PURE__ */ n(
|
|
119
|
+
ge,
|
|
120
|
+
{
|
|
121
|
+
ownerState: { variant: "text" },
|
|
122
|
+
startIcon: /* @__PURE__ */ n(X, {}),
|
|
123
|
+
variant: "text",
|
|
124
|
+
onClick: t.action.open,
|
|
125
|
+
children: "Add"
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] })
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ I(
|
|
134
|
+
ne,
|
|
135
|
+
{
|
|
136
|
+
open: t.state.isOpen,
|
|
137
|
+
onClose: t.action.close,
|
|
138
|
+
maxWidth: "sm",
|
|
139
|
+
fullWidth: !0,
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ n(te, { children: "Add List Value" }),
|
|
142
|
+
/* @__PURE__ */ n(re, { children: (w = l.dataTypeInfo) != null && w.innerType ? /* @__PURE__ */ n(
|
|
143
|
+
we,
|
|
144
|
+
{
|
|
145
|
+
mapboxAccessToken: e,
|
|
146
|
+
property: {
|
|
147
|
+
...l,
|
|
148
|
+
name: "Value",
|
|
149
|
+
type: l.dataTypeInfo.innerType.type
|
|
150
|
+
},
|
|
151
|
+
value: m,
|
|
152
|
+
onChange: D
|
|
153
|
+
}
|
|
154
|
+
) : null }),
|
|
155
|
+
/* @__PURE__ */ I(ae, { children: [
|
|
156
|
+
/* @__PURE__ */ n(
|
|
157
|
+
z,
|
|
158
|
+
{
|
|
159
|
+
variant: "contained",
|
|
160
|
+
color: "inherit",
|
|
161
|
+
onClick: t.action.close,
|
|
162
|
+
children: "Cancel"
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
/* @__PURE__ */ n(z, { variant: "contained", color: "primary", onClick: S, children: "Ok" })
|
|
166
|
+
] })
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
] });
|
|
171
|
+
}, we = (P) => {
|
|
172
|
+
var V, w, i, d, f, h, A, N, j;
|
|
173
|
+
const {
|
|
174
|
+
mapboxAccessToken: l,
|
|
175
|
+
property: e,
|
|
176
|
+
value: a,
|
|
177
|
+
variant: s = "outlined",
|
|
178
|
+
labelPosition: r = "top",
|
|
179
|
+
size: u = "medium",
|
|
180
|
+
defaultExtent: v,
|
|
181
|
+
fieldOptions: t,
|
|
182
|
+
onChange: m
|
|
183
|
+
} = P, L = (o) => {
|
|
184
|
+
const T = o.target.value.split(",").map((F) => F.trimStart());
|
|
185
|
+
m({ [e.propertyId]: T });
|
|
186
|
+
}, g = (o) => {
|
|
187
|
+
const { name: c, type: T, checked: F, value: U } = o.target;
|
|
188
|
+
let x = U;
|
|
189
|
+
e.type === "double" && (x = String(x).replace(",", "."), x = x.replace(/[^\d.-]+/g, "")), m({
|
|
190
|
+
[c]: T === "checkbox" ? F : x
|
|
191
|
+
});
|
|
192
|
+
}, q = (o) => {
|
|
193
|
+
m({ [e.propertyId]: o });
|
|
194
|
+
}, D = (o) => {
|
|
195
|
+
m({ [e.propertyId]: o.target.value });
|
|
196
|
+
}, S = (o) => (c) => {
|
|
197
|
+
m({ [o]: c });
|
|
198
|
+
}, W = (o) => (c) => {
|
|
199
|
+
m({ [o]: c });
|
|
200
|
+
}, E = (o) => (c) => {
|
|
201
|
+
m({ [o]: c });
|
|
202
|
+
}, k = (o) => (c) => {
|
|
203
|
+
m({ [o]: c });
|
|
204
|
+
};
|
|
205
|
+
if (t && t[e.propertyId] && t[e.propertyId].component)
|
|
206
|
+
return t[e.propertyId].component;
|
|
207
|
+
if ([
|
|
208
|
+
"string",
|
|
209
|
+
"integer",
|
|
210
|
+
"double",
|
|
211
|
+
"text",
|
|
212
|
+
"long",
|
|
213
|
+
"byte",
|
|
214
|
+
"bank-account"
|
|
215
|
+
].includes(e.type))
|
|
216
|
+
return /* @__PURE__ */ n(
|
|
217
|
+
p,
|
|
218
|
+
{
|
|
219
|
+
condition: r === "left",
|
|
220
|
+
wrapper: y(e.name),
|
|
221
|
+
children: /* @__PURE__ */ n(
|
|
222
|
+
p,
|
|
223
|
+
{
|
|
224
|
+
condition: r === "top",
|
|
225
|
+
wrapper: b(
|
|
226
|
+
e == null ? void 0 : e.name,
|
|
227
|
+
e == null ? void 0 : e.required,
|
|
228
|
+
(V = t == null ? void 0 : t[e == null ? void 0 : e.propertyId]) == null ? void 0 : V.description
|
|
229
|
+
),
|
|
230
|
+
children: /* @__PURE__ */ n(
|
|
231
|
+
B,
|
|
232
|
+
{
|
|
233
|
+
label: r === "default" ? e.name : void 0,
|
|
234
|
+
placeholder: ((w = t == null ? void 0 : t[e.propertyId]) == null ? void 0 : w.placeholder) ?? "",
|
|
235
|
+
name: e.propertyId,
|
|
236
|
+
required: e.required,
|
|
237
|
+
value: a ?? e.defaultValue ?? "",
|
|
238
|
+
defaultValue: a,
|
|
239
|
+
onChange: g,
|
|
240
|
+
variant: s,
|
|
241
|
+
type: "text",
|
|
242
|
+
multiline: e.type === "text",
|
|
243
|
+
disabled: !e.editable,
|
|
244
|
+
fullWidth: !0,
|
|
245
|
+
inputProps: {
|
|
246
|
+
maxLength: ((i = t == null ? void 0 : t[e.propertyId]) == null ? void 0 : i.maxChar) ?? 1e5
|
|
247
|
+
},
|
|
248
|
+
InputProps: {
|
|
249
|
+
size: u,
|
|
250
|
+
...t && t[e.propertyId] && {
|
|
251
|
+
tabIndex: t[e.propertyId].order
|
|
252
|
+
},
|
|
253
|
+
...e.privacyPreservationMethod === "ENCRYPTION" ? {
|
|
254
|
+
endAdornment: /* @__PURE__ */ n(oe, { position: "end", children: /* @__PURE__ */ n(le, { title: "Encrypted Field", children: /* @__PURE__ */ n(Z, {}) }) })
|
|
255
|
+
} : {}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
if (e.type === "date") {
|
|
264
|
+
const o = a !== void 0 ? $(a).format() : a;
|
|
265
|
+
return /* @__PURE__ */ n(
|
|
266
|
+
p,
|
|
267
|
+
{
|
|
268
|
+
condition: r === "left",
|
|
269
|
+
wrapper: y(e.name),
|
|
270
|
+
children: /* @__PURE__ */ n(
|
|
271
|
+
p,
|
|
272
|
+
{
|
|
273
|
+
condition: r === "top",
|
|
274
|
+
wrapper: b(
|
|
275
|
+
e.name,
|
|
276
|
+
e == null ? void 0 : e.required,
|
|
277
|
+
(d = t == null ? void 0 : t[e == null ? void 0 : e.propertyId]) == null ? void 0 : d.description
|
|
278
|
+
),
|
|
279
|
+
children: /* @__PURE__ */ n(
|
|
280
|
+
ce,
|
|
281
|
+
{
|
|
282
|
+
label: r === "default" ? e.name : void 0,
|
|
283
|
+
value: o,
|
|
284
|
+
variant: s,
|
|
285
|
+
size: u,
|
|
286
|
+
name: e.propertyId,
|
|
287
|
+
onChange: q,
|
|
288
|
+
...t && t[e.propertyId] && {
|
|
289
|
+
minDate: t[e.propertyId].minDate
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
}
|
|
294
|
+
)
|
|
295
|
+
}
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
if (e.type === "list") {
|
|
299
|
+
let o = "";
|
|
300
|
+
return e.defaultValue && (o = C.isArray(e.defaultValue) ? a.join(", ") : e.defaultValue), a && (o = C.isArray(a) ? a.join(",") : a), /* @__PURE__ */ n(
|
|
301
|
+
p,
|
|
302
|
+
{
|
|
303
|
+
condition: r === "left",
|
|
304
|
+
wrapper: y(e.name),
|
|
305
|
+
children: /* @__PURE__ */ n(
|
|
306
|
+
p,
|
|
307
|
+
{
|
|
308
|
+
condition: r === "top",
|
|
309
|
+
wrapper: b(
|
|
310
|
+
e.name,
|
|
311
|
+
e == null ? void 0 : e.required,
|
|
312
|
+
(f = t == null ? void 0 : t[e == null ? void 0 : e.propertyId]) == null ? void 0 : f.description
|
|
313
|
+
),
|
|
314
|
+
children: /* @__PURE__ */ n(
|
|
315
|
+
B,
|
|
316
|
+
{
|
|
317
|
+
label: r === "default" ? e.name : void 0,
|
|
318
|
+
name: e.propertyId,
|
|
319
|
+
value: o,
|
|
320
|
+
onChange: L,
|
|
321
|
+
variant: s,
|
|
322
|
+
disabled: !e.editable,
|
|
323
|
+
required: e.required,
|
|
324
|
+
fullWidth: !0,
|
|
325
|
+
helperText: u === "small" ? null : "Add list values with the comma (,) separated string",
|
|
326
|
+
InputProps: {
|
|
327
|
+
size: u,
|
|
328
|
+
placeholder: u === "small" ? "Add list values with the comma (,) separated string" : "",
|
|
329
|
+
...t && t[e.propertyId] && {
|
|
330
|
+
tabIndex: t[e.propertyId].order
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
}
|
|
336
|
+
)
|
|
337
|
+
}
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
if (e.type === "boolean")
|
|
341
|
+
return /* @__PURE__ */ n(
|
|
342
|
+
p,
|
|
343
|
+
{
|
|
344
|
+
condition: r === "left",
|
|
345
|
+
wrapper: y(e.name),
|
|
346
|
+
children: /* @__PURE__ */ n(
|
|
347
|
+
_,
|
|
348
|
+
{
|
|
349
|
+
control: /* @__PURE__ */ n(
|
|
350
|
+
K,
|
|
351
|
+
{
|
|
352
|
+
name: e.propertyId,
|
|
353
|
+
checked: !!(a ?? e.defaultValue ?? !1),
|
|
354
|
+
onChange: g,
|
|
355
|
+
size: u
|
|
356
|
+
}
|
|
357
|
+
),
|
|
358
|
+
label: r === "left" ? void 0 : e.name
|
|
359
|
+
}
|
|
360
|
+
)
|
|
361
|
+
}
|
|
362
|
+
);
|
|
363
|
+
if (e.type === "enum") {
|
|
364
|
+
let o = [];
|
|
365
|
+
return (h = e.dataTypeInfo) != null && h.enumValues && (o = e.dataTypeInfo.enumValues), (N = (A = e.dataTypeInfo) == null ? void 0 : A.innerType) != null && N.enumValues && (o = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ n(
|
|
366
|
+
p,
|
|
367
|
+
{
|
|
368
|
+
condition: r === "left",
|
|
369
|
+
wrapper: y(e.name),
|
|
370
|
+
children: /* @__PURE__ */ n(
|
|
371
|
+
p,
|
|
372
|
+
{
|
|
373
|
+
condition: r === "top",
|
|
374
|
+
wrapper: b(
|
|
375
|
+
e.name,
|
|
376
|
+
e == null ? void 0 : e.required,
|
|
377
|
+
(j = t == null ? void 0 : t[e == null ? void 0 : e.propertyId]) == null ? void 0 : j.description
|
|
378
|
+
),
|
|
379
|
+
children: /* @__PURE__ */ I(
|
|
380
|
+
R,
|
|
381
|
+
{
|
|
382
|
+
fullWidth: !0,
|
|
383
|
+
variant: s,
|
|
384
|
+
size: u,
|
|
385
|
+
required: e.required,
|
|
386
|
+
children: [
|
|
387
|
+
r === "default" && /* @__PURE__ */ n(ie, { id: `${e.propertyId}-label`, children: e.name }),
|
|
388
|
+
/* @__PURE__ */ n(
|
|
389
|
+
de,
|
|
390
|
+
{
|
|
391
|
+
label: r === "default" ? e.name : void 0,
|
|
392
|
+
name: e.name,
|
|
393
|
+
labelId: `${e.propertyId}-label`,
|
|
394
|
+
id: e.propertyId,
|
|
395
|
+
value: a ?? "",
|
|
396
|
+
onChange: D,
|
|
397
|
+
inputProps: {
|
|
398
|
+
...t && t[e.propertyId] && {
|
|
399
|
+
tabIndex: t[e.propertyId].order
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
children: o.map((c, T) => /* @__PURE__ */ n(pe, { value: c, children: c }, T))
|
|
403
|
+
}
|
|
404
|
+
)
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
)
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
}
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
return e.type === "geometry" ? /* @__PURE__ */ n(
|
|
414
|
+
p,
|
|
415
|
+
{
|
|
416
|
+
condition: r === "left",
|
|
417
|
+
wrapper: y(e.name),
|
|
418
|
+
children: /* @__PURE__ */ n(M, { children: /* @__PURE__ */ n(
|
|
419
|
+
ue,
|
|
420
|
+
{
|
|
421
|
+
mapboxAccessToken: l,
|
|
422
|
+
label: r === "default" ? e.name : void 0,
|
|
423
|
+
value: a ?? e.defaultValue ?? "",
|
|
424
|
+
defaultExtent: v,
|
|
425
|
+
variant: s,
|
|
426
|
+
onChange: S(e.propertyId)
|
|
427
|
+
}
|
|
428
|
+
) })
|
|
429
|
+
}
|
|
430
|
+
) : e.type === "phone-number" ? /* @__PURE__ */ n(
|
|
431
|
+
p,
|
|
432
|
+
{
|
|
433
|
+
condition: r === "left",
|
|
434
|
+
wrapper: y(e.name),
|
|
435
|
+
children: /* @__PURE__ */ n(M, { children: /* @__PURE__ */ n(
|
|
436
|
+
me,
|
|
437
|
+
{
|
|
438
|
+
label: r === "default" ? e.name : void 0,
|
|
439
|
+
placeholder: "Enter phone number",
|
|
440
|
+
value: a ?? e.defaultValue ?? "",
|
|
441
|
+
onChange: W(e.propertyId)
|
|
442
|
+
}
|
|
443
|
+
) })
|
|
444
|
+
}
|
|
445
|
+
) : e.type === "composite-list" ? /* @__PURE__ */ n(M, { children: /* @__PURE__ */ n(
|
|
446
|
+
Ve,
|
|
447
|
+
{
|
|
448
|
+
property: e,
|
|
449
|
+
value: a ?? e.defaultValue ?? "",
|
|
450
|
+
variant: s,
|
|
451
|
+
labelPosition: r,
|
|
452
|
+
size: u,
|
|
453
|
+
mapboxAccessToken: l,
|
|
454
|
+
onChange: E(e.propertyId)
|
|
455
|
+
}
|
|
456
|
+
) }) : e.type === "composite-matrix" ? /* @__PURE__ */ n(M, { children: /* @__PURE__ */ n(
|
|
457
|
+
ve,
|
|
458
|
+
{
|
|
459
|
+
property: e,
|
|
460
|
+
value: a ?? e.defaultValue ?? "",
|
|
461
|
+
variant: s,
|
|
462
|
+
size: u,
|
|
463
|
+
onChange: k(e.propertyId)
|
|
464
|
+
}
|
|
465
|
+
) }) : null;
|
|
466
|
+
};
|
|
467
|
+
export {
|
|
468
|
+
Ve as C,
|
|
469
|
+
we as V
|
|
470
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
var P = { exports: {} }, e = {};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-is.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var d;
|
|
12
|
+
function y() {
|
|
13
|
+
if (d) return e;
|
|
14
|
+
d = 1;
|
|
15
|
+
var n = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), u = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), C = Symbol.for("react.client.reference");
|
|
16
|
+
function o(r) {
|
|
17
|
+
if (typeof r == "object" && r !== null) {
|
|
18
|
+
var m = r.$$typeof;
|
|
19
|
+
switch (m) {
|
|
20
|
+
case n:
|
|
21
|
+
switch (r = r.type, r) {
|
|
22
|
+
case T:
|
|
23
|
+
case i:
|
|
24
|
+
case s:
|
|
25
|
+
case E:
|
|
26
|
+
case c:
|
|
27
|
+
case S:
|
|
28
|
+
return r;
|
|
29
|
+
default:
|
|
30
|
+
switch (r = r && r.$$typeof, r) {
|
|
31
|
+
case u:
|
|
32
|
+
case a:
|
|
33
|
+
case _:
|
|
34
|
+
case l:
|
|
35
|
+
return r;
|
|
36
|
+
case f:
|
|
37
|
+
return r;
|
|
38
|
+
default:
|
|
39
|
+
return m;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
case R:
|
|
43
|
+
return m;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return e.ContextConsumer = f, e.ContextProvider = u, e.Element = n, e.ForwardRef = a, e.Fragment = T, e.Lazy = _, e.Memo = l, e.Portal = R, e.Profiler = i, e.StrictMode = s, e.Suspense = E, e.SuspenseList = c, e.isContextConsumer = function(r) {
|
|
48
|
+
return o(r) === f;
|
|
49
|
+
}, e.isContextProvider = function(r) {
|
|
50
|
+
return o(r) === u;
|
|
51
|
+
}, e.isElement = function(r) {
|
|
52
|
+
return typeof r == "object" && r !== null && r.$$typeof === n;
|
|
53
|
+
}, e.isForwardRef = function(r) {
|
|
54
|
+
return o(r) === a;
|
|
55
|
+
}, e.isFragment = function(r) {
|
|
56
|
+
return o(r) === T;
|
|
57
|
+
}, e.isLazy = function(r) {
|
|
58
|
+
return o(r) === _;
|
|
59
|
+
}, e.isMemo = function(r) {
|
|
60
|
+
return o(r) === l;
|
|
61
|
+
}, e.isPortal = function(r) {
|
|
62
|
+
return o(r) === R;
|
|
63
|
+
}, e.isProfiler = function(r) {
|
|
64
|
+
return o(r) === i;
|
|
65
|
+
}, e.isStrictMode = function(r) {
|
|
66
|
+
return o(r) === s;
|
|
67
|
+
}, e.isSuspense = function(r) {
|
|
68
|
+
return o(r) === E;
|
|
69
|
+
}, e.isSuspenseList = function(r) {
|
|
70
|
+
return o(r) === c;
|
|
71
|
+
}, e.isValidElementType = function(r) {
|
|
72
|
+
return typeof r == "string" || typeof r == "function" || r === T || r === i || r === s || r === E || r === c || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === l || r.$$typeof === u || r.$$typeof === f || r.$$typeof === a || r.$$typeof === C || r.getModuleId !== void 0);
|
|
73
|
+
}, e.typeOf = o, e;
|
|
74
|
+
}
|
|
75
|
+
var t = {};
|
|
76
|
+
/**
|
|
77
|
+
* @license React
|
|
78
|
+
* react-is.development.js
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/
|
|
85
|
+
var A;
|
|
86
|
+
function p() {
|
|
87
|
+
return A || (A = 1, process.env.NODE_ENV !== "production" && function() {
|
|
88
|
+
function n(r) {
|
|
89
|
+
if (typeof r == "object" && r !== null) {
|
|
90
|
+
var m = r.$$typeof;
|
|
91
|
+
switch (m) {
|
|
92
|
+
case R:
|
|
93
|
+
switch (r = r.type, r) {
|
|
94
|
+
case s:
|
|
95
|
+
case f:
|
|
96
|
+
case i:
|
|
97
|
+
case c:
|
|
98
|
+
case l:
|
|
99
|
+
case C:
|
|
100
|
+
return r;
|
|
101
|
+
default:
|
|
102
|
+
switch (r = r && r.$$typeof, r) {
|
|
103
|
+
case a:
|
|
104
|
+
case E:
|
|
105
|
+
case S:
|
|
106
|
+
case _:
|
|
107
|
+
return r;
|
|
108
|
+
case u:
|
|
109
|
+
return r;
|
|
110
|
+
default:
|
|
111
|
+
return m;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
case T:
|
|
115
|
+
return m;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
var R = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), u = Symbol.for("react.consumer"), a = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), C = Symbol.for("react.view_transition"), o = Symbol.for("react.client.reference");
|
|
120
|
+
t.ContextConsumer = u, t.ContextProvider = a, t.Element = R, t.ForwardRef = E, t.Fragment = s, t.Lazy = S, t.Memo = _, t.Portal = T, t.Profiler = f, t.StrictMode = i, t.Suspense = c, t.SuspenseList = l, t.isContextConsumer = function(r) {
|
|
121
|
+
return n(r) === u;
|
|
122
|
+
}, t.isContextProvider = function(r) {
|
|
123
|
+
return n(r) === a;
|
|
124
|
+
}, t.isElement = function(r) {
|
|
125
|
+
return typeof r == "object" && r !== null && r.$$typeof === R;
|
|
126
|
+
}, t.isForwardRef = function(r) {
|
|
127
|
+
return n(r) === E;
|
|
128
|
+
}, t.isFragment = function(r) {
|
|
129
|
+
return n(r) === s;
|
|
130
|
+
}, t.isLazy = function(r) {
|
|
131
|
+
return n(r) === S;
|
|
132
|
+
}, t.isMemo = function(r) {
|
|
133
|
+
return n(r) === _;
|
|
134
|
+
}, t.isPortal = function(r) {
|
|
135
|
+
return n(r) === T;
|
|
136
|
+
}, t.isProfiler = function(r) {
|
|
137
|
+
return n(r) === f;
|
|
138
|
+
}, t.isStrictMode = function(r) {
|
|
139
|
+
return n(r) === i;
|
|
140
|
+
}, t.isSuspense = function(r) {
|
|
141
|
+
return n(r) === c;
|
|
142
|
+
}, t.isSuspenseList = function(r) {
|
|
143
|
+
return n(r) === l;
|
|
144
|
+
}, t.isValidElementType = function(r) {
|
|
145
|
+
return typeof r == "string" || typeof r == "function" || r === s || r === f || r === i || r === c || r === l || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === _ || r.$$typeof === a || r.$$typeof === u || r.$$typeof === E || r.$$typeof === o || r.getModuleId !== void 0);
|
|
146
|
+
}, t.typeOf = n;
|
|
147
|
+
}()), t;
|
|
148
|
+
}
|
|
149
|
+
process.env.NODE_ENV === "production" ? P.exports = y() : P.exports = p();
|
|
150
|
+
var Y = P.exports;
|
|
151
|
+
export {
|
|
152
|
+
Y as r
|
|
153
|
+
};
|