@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
package/dist/index-DPKUmQnz.js
DELETED
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as u, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { KeyboardArrowUp as U, KeyboardArrowDown as J, Add as Q, LockOutlined as X } from "@mui/icons-material";
|
|
3
|
-
import { Box as S, Typography as I, FormControl as Z, FormLabel as z, FormGroup as P, FormControlLabel as y, Checkbox as O, Button as _, Chip as p, Dialog as ee, DialogTitle as ne, DialogContent as ae, DialogActions as de, InputAdornment as le, Tooltip as ce } from "@mui/material";
|
|
4
|
-
import K from "dayjs";
|
|
5
|
-
import C from "lodash";
|
|
6
|
-
import { useState as G } from "react";
|
|
7
|
-
import te from "./hooks/useToggle.js";
|
|
8
|
-
import { ConditionalWrapper as o } from "./components/conditional-wrapper/index.js";
|
|
9
|
-
import { DateTimePicker as ie } from "./components/date-time-picker/index.js";
|
|
10
|
-
import { GeometryPicker as me } from "./components/geometry-picker/index.js";
|
|
11
|
-
import { PhoneInput as he } from "./components/phone-input/index.js";
|
|
12
|
-
import B from "./components/instance-form/components/TopLabelWrapper.js";
|
|
13
|
-
import ue from "./components/instance-form/components/composite-matrix/index.js";
|
|
14
|
-
import { B as m, M as re } from "./MenuItem-DrE50M_p.js";
|
|
15
|
-
import { T as H, S as oe } from "./TextField-DSDIEEKu.js";
|
|
16
|
-
import { F as se, C as Ie } from "./FormControlLabel-BkRfrhNy.js";
|
|
17
|
-
import { F as fe } from "./FormControl-BCurCxRj.js";
|
|
18
|
-
import { I as ge } from "./InputLabel-rEwwnD4_.js";
|
|
19
|
-
import { Container as we, Values as xe, MiniButton as Ce } from "./components/instance-form/components/composite-list/styled.js";
|
|
20
|
-
function Ve({
|
|
21
|
-
property: r,
|
|
22
|
-
mapboxAccessToken: e,
|
|
23
|
-
value: l,
|
|
24
|
-
variant: f = "outlined",
|
|
25
|
-
labelPosition: c = "default",
|
|
26
|
-
size: s = "medium",
|
|
27
|
-
onChange: T
|
|
28
|
-
}) {
|
|
29
|
-
var b, k, A;
|
|
30
|
-
const a = te(!1), [g, F] = G(), [V, N] = G(!1), M = 10, $ = (t) => {
|
|
31
|
-
F(C.get(t, r.propertyId));
|
|
32
|
-
}, j = () => {
|
|
33
|
-
T([...l || [], g]), F(""), a.action.close();
|
|
34
|
-
}, q = (t) => () => {
|
|
35
|
-
if (l) {
|
|
36
|
-
const i = [...l];
|
|
37
|
-
i.splice(t, 1), T(i);
|
|
38
|
-
}
|
|
39
|
-
}, v = (t) => {
|
|
40
|
-
const { value: i, checked: x } = t.target;
|
|
41
|
-
let w = C.isArray(l) ? l : [];
|
|
42
|
-
x ? w.push(i) : w = w.filter((W) => W !== i), T(w);
|
|
43
|
-
};
|
|
44
|
-
if (((k = (b = r.dataTypeInfo) == null ? void 0 : b.innerType) == null ? void 0 : k.type) === "enum") {
|
|
45
|
-
const { enumValues: t } = r.dataTypeInfo.innerType;
|
|
46
|
-
return /* @__PURE__ */ n(
|
|
47
|
-
o,
|
|
48
|
-
{
|
|
49
|
-
condition: c === "left",
|
|
50
|
-
wrapper: (i) => /* @__PURE__ */ u(S, { display: "flex", alignItems: "center", children: [
|
|
51
|
-
/* @__PURE__ */ n(I, { width: "32%", children: r.name }),
|
|
52
|
-
/* @__PURE__ */ n(S, { width: "68%", children: i })
|
|
53
|
-
] }),
|
|
54
|
-
children: /* @__PURE__ */ u(E, { children: [
|
|
55
|
-
/* @__PURE__ */ u(Z, { fullWidth: !0, component: "fieldset", variant: f, children: [
|
|
56
|
-
c === "default" && /* @__PURE__ */ n(z, { component: "legend", sx: { mb: 1 }, children: r.name }),
|
|
57
|
-
/* @__PURE__ */ n(P, { children: t && t.length > 0 ? t.slice(0, V ? 9999 : M).map((i, x) => /* @__PURE__ */ n(
|
|
58
|
-
y,
|
|
59
|
-
{
|
|
60
|
-
label: i,
|
|
61
|
-
control: /* @__PURE__ */ n(
|
|
62
|
-
O,
|
|
63
|
-
{
|
|
64
|
-
name: r.propertyId,
|
|
65
|
-
value: i,
|
|
66
|
-
size: "small",
|
|
67
|
-
checked: C.isArray(l) ? l.includes(i) : !1,
|
|
68
|
-
onChange: v
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
componentsProps: {
|
|
72
|
-
typography: {
|
|
73
|
-
variant: "body2"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
x
|
|
78
|
-
)) : /* @__PURE__ */ n(I, { variant: "caption", mb: 1, children: "No enum values!" }) })
|
|
79
|
-
] }),
|
|
80
|
-
C.isArray(t) && t.length > M && /* @__PURE__ */ u(
|
|
81
|
-
_,
|
|
82
|
-
{
|
|
83
|
-
size: "small",
|
|
84
|
-
sx: { p: 0, textTransform: "none" },
|
|
85
|
-
endIcon: V ? /* @__PURE__ */ n(U, {}) : /* @__PURE__ */ n(J, {}),
|
|
86
|
-
onClick: () => N((i) => !i),
|
|
87
|
-
children: [
|
|
88
|
-
"Show ",
|
|
89
|
-
V ? "Less" : "More"
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
] })
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
return /* @__PURE__ */ u(E, { children: [
|
|
98
|
-
/* @__PURE__ */ n(
|
|
99
|
-
o,
|
|
100
|
-
{
|
|
101
|
-
condition: c === "left",
|
|
102
|
-
wrapper: (t) => /* @__PURE__ */ u(S, { display: "flex", alignItems: "center", children: [
|
|
103
|
-
/* @__PURE__ */ n(I, { width: "32%", children: r.name }),
|
|
104
|
-
/* @__PURE__ */ n(S, { width: "68%", children: t })
|
|
105
|
-
] }),
|
|
106
|
-
children: /* @__PURE__ */ u(we, { variant: f, children: [
|
|
107
|
-
c === "default" && /* @__PURE__ */ n(I, { children: r.name }),
|
|
108
|
-
/* @__PURE__ */ n(xe, { children: C.isArray(l) && l.map((t, i) => {
|
|
109
|
-
var x, w;
|
|
110
|
-
return /* @__PURE__ */ n(
|
|
111
|
-
p,
|
|
112
|
-
{
|
|
113
|
-
label: ((w = (x = r.dataTypeInfo) == null ? void 0 : x.innerType) == null ? void 0 : w.type) === "date" ? K(t).format("DD/MM/YYYY HH:mm:ss") : t,
|
|
114
|
-
size: s,
|
|
115
|
-
onDelete: q(i)
|
|
116
|
-
},
|
|
117
|
-
i
|
|
118
|
-
);
|
|
119
|
-
}) }),
|
|
120
|
-
/* @__PURE__ */ n(
|
|
121
|
-
Ce,
|
|
122
|
-
{
|
|
123
|
-
startIcon: /* @__PURE__ */ n(Q, {}),
|
|
124
|
-
variant: "text",
|
|
125
|
-
onClick: a.action.open,
|
|
126
|
-
children: "Add"
|
|
127
|
-
}
|
|
128
|
-
)
|
|
129
|
-
] })
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
/* @__PURE__ */ u(
|
|
133
|
-
ee,
|
|
134
|
-
{
|
|
135
|
-
open: a.state.isOpen,
|
|
136
|
-
onClose: a.action.close,
|
|
137
|
-
maxWidth: "sm",
|
|
138
|
-
fullWidth: !0,
|
|
139
|
-
children: [
|
|
140
|
-
/* @__PURE__ */ n(ne, { children: "Add List Value" }),
|
|
141
|
-
/* @__PURE__ */ n(ae, { children: (A = r.dataTypeInfo) != null && A.innerType ? /* @__PURE__ */ n(
|
|
142
|
-
Te,
|
|
143
|
-
{
|
|
144
|
-
mapboxAccessToken: e,
|
|
145
|
-
property: {
|
|
146
|
-
...r,
|
|
147
|
-
name: "Value",
|
|
148
|
-
type: r.dataTypeInfo.innerType.type
|
|
149
|
-
},
|
|
150
|
-
value: g,
|
|
151
|
-
onChange: $
|
|
152
|
-
}
|
|
153
|
-
) : null }),
|
|
154
|
-
/* @__PURE__ */ u(de, { children: [
|
|
155
|
-
/* @__PURE__ */ n(
|
|
156
|
-
_,
|
|
157
|
-
{
|
|
158
|
-
variant: "contained",
|
|
159
|
-
color: "inherit",
|
|
160
|
-
onClick: a.action.close,
|
|
161
|
-
children: "Cancel"
|
|
162
|
-
}
|
|
163
|
-
),
|
|
164
|
-
/* @__PURE__ */ n(_, { variant: "contained", color: "primary", onClick: j, children: "Ok" })
|
|
165
|
-
] })
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
] });
|
|
170
|
-
}
|
|
171
|
-
function Te({
|
|
172
|
-
mapboxAccessToken: r,
|
|
173
|
-
property: e,
|
|
174
|
-
value: l,
|
|
175
|
-
variant: f = "outlined",
|
|
176
|
-
labelPosition: c = "top",
|
|
177
|
-
size: s = "medium",
|
|
178
|
-
defaultExtent: T,
|
|
179
|
-
fieldOptions: a,
|
|
180
|
-
onChange: g
|
|
181
|
-
}) {
|
|
182
|
-
var v, b, k, A, t, i, x, w, W;
|
|
183
|
-
const F = (d) => {
|
|
184
|
-
const L = d.target.value.split(",").map((Y) => Y.trimStart());
|
|
185
|
-
g({
|
|
186
|
-
[e.propertyId]: L
|
|
187
|
-
});
|
|
188
|
-
}, V = (d) => {
|
|
189
|
-
const { name: h, type: L, checked: Y, value: R } = d.target;
|
|
190
|
-
let D = R;
|
|
191
|
-
e.type === "double" && (D = D.replace(",", "."), D = D.replace(/[^\d.-]+/g, "")), g({
|
|
192
|
-
[h]: L === "checkbox" ? Y : D
|
|
193
|
-
});
|
|
194
|
-
}, N = (d) => {
|
|
195
|
-
g({
|
|
196
|
-
[e.propertyId]: d
|
|
197
|
-
});
|
|
198
|
-
}, M = (d) => {
|
|
199
|
-
g({
|
|
200
|
-
[e.propertyId]: d.target.value
|
|
201
|
-
});
|
|
202
|
-
}, $ = (d) => (h) => {
|
|
203
|
-
g({
|
|
204
|
-
[d]: h
|
|
205
|
-
});
|
|
206
|
-
}, j = (d) => (h) => {
|
|
207
|
-
g({
|
|
208
|
-
[d]: h
|
|
209
|
-
});
|
|
210
|
-
}, q = (d) => (h) => {
|
|
211
|
-
g({
|
|
212
|
-
[d]: h
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
if (a && a[e.propertyId] && a[e.propertyId].component)
|
|
216
|
-
return a[e.propertyId].component;
|
|
217
|
-
if ([
|
|
218
|
-
"string",
|
|
219
|
-
"integer",
|
|
220
|
-
"double",
|
|
221
|
-
"text",
|
|
222
|
-
"long",
|
|
223
|
-
"byte",
|
|
224
|
-
"bank-account"
|
|
225
|
-
].includes(e.type))
|
|
226
|
-
return /* @__PURE__ */ n(
|
|
227
|
-
o,
|
|
228
|
-
{
|
|
229
|
-
condition: c === "left",
|
|
230
|
-
wrapper: (d) => /* @__PURE__ */ u(m, { display: "flex", alignItems: "center", children: [
|
|
231
|
-
/* @__PURE__ */ n(I, { width: "32%", children: e.name }),
|
|
232
|
-
/* @__PURE__ */ n(m, { width: "68%", children: d })
|
|
233
|
-
] }),
|
|
234
|
-
children: /* @__PURE__ */ n(
|
|
235
|
-
o,
|
|
236
|
-
{
|
|
237
|
-
condition: c === "top",
|
|
238
|
-
wrapper: B(
|
|
239
|
-
e == null ? void 0 : e.name,
|
|
240
|
-
e == null ? void 0 : e.required,
|
|
241
|
-
(v = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : v.description
|
|
242
|
-
),
|
|
243
|
-
children: /* @__PURE__ */ n(
|
|
244
|
-
H,
|
|
245
|
-
{
|
|
246
|
-
label: c === "default" ? e.name : void 0,
|
|
247
|
-
placeholder: ((b = a == null ? void 0 : a[e.propertyId]) == null ? void 0 : b.placeholder) ?? "",
|
|
248
|
-
name: e.propertyId,
|
|
249
|
-
required: e.required,
|
|
250
|
-
value: l ?? e.defaultValue ?? "",
|
|
251
|
-
defaultValue: l,
|
|
252
|
-
onChange: V,
|
|
253
|
-
variant: f,
|
|
254
|
-
type: "text",
|
|
255
|
-
multiline: e.type === "text",
|
|
256
|
-
disabled: !e.editable,
|
|
257
|
-
fullWidth: !0,
|
|
258
|
-
inputProps: {
|
|
259
|
-
maxLength: ((k = a == null ? void 0 : a[e.propertyId]) == null ? void 0 : k.maxChar) ?? 1e5
|
|
260
|
-
},
|
|
261
|
-
InputProps: {
|
|
262
|
-
size: s,
|
|
263
|
-
...a && a[e.propertyId] && {
|
|
264
|
-
tabIndex: a[e.propertyId].order
|
|
265
|
-
},
|
|
266
|
-
...e.privacyPreservationMethod === "ENCRYPTION" ? {
|
|
267
|
-
endAdornment: /* @__PURE__ */ n(le, { position: "end", children: /* @__PURE__ */ n(ce, { title: "Encrypted Field", children: /* @__PURE__ */ n(X, {}) }) })
|
|
268
|
-
} : {}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
)
|
|
272
|
-
}
|
|
273
|
-
)
|
|
274
|
-
}
|
|
275
|
-
);
|
|
276
|
-
if (e.type === "date") {
|
|
277
|
-
const d = l !== void 0 ? K(l).format() : l;
|
|
278
|
-
return /* @__PURE__ */ n(
|
|
279
|
-
o,
|
|
280
|
-
{
|
|
281
|
-
condition: c === "left",
|
|
282
|
-
wrapper: (h) => /* @__PURE__ */ u(m, { display: "flex", alignItems: "center", children: [
|
|
283
|
-
/* @__PURE__ */ n(I, { width: "32%", children: e.name }),
|
|
284
|
-
/* @__PURE__ */ n(m, { width: "68%", children: h })
|
|
285
|
-
] }),
|
|
286
|
-
children: /* @__PURE__ */ n(
|
|
287
|
-
o,
|
|
288
|
-
{
|
|
289
|
-
condition: c === "top",
|
|
290
|
-
wrapper: B(
|
|
291
|
-
e.name,
|
|
292
|
-
e == null ? void 0 : e.required,
|
|
293
|
-
(A = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : A.description
|
|
294
|
-
),
|
|
295
|
-
children: /* @__PURE__ */ n(
|
|
296
|
-
ie,
|
|
297
|
-
{
|
|
298
|
-
label: c === "default" ? e.name : void 0,
|
|
299
|
-
value: d,
|
|
300
|
-
variant: f,
|
|
301
|
-
size: s,
|
|
302
|
-
name: e.propertyId,
|
|
303
|
-
onChange: N,
|
|
304
|
-
...a && a[e.propertyId] && {
|
|
305
|
-
minDate: a[e.propertyId].minDate
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
)
|
|
309
|
-
}
|
|
310
|
-
)
|
|
311
|
-
}
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
if (e.type === "list") {
|
|
315
|
-
let d = "";
|
|
316
|
-
return e.defaultValue && (d = C.isArray(e.defaultValue) ? l.join(", ") : e.defaultValue), l && (d = C.isArray(l) ? l.join(",") : l), /* @__PURE__ */ n(
|
|
317
|
-
o,
|
|
318
|
-
{
|
|
319
|
-
condition: c === "left",
|
|
320
|
-
wrapper: (h) => /* @__PURE__ */ u(m, { display: "flex", alignItems: "center", children: [
|
|
321
|
-
/* @__PURE__ */ n(I, { width: "32%", children: e.name }),
|
|
322
|
-
/* @__PURE__ */ n(m, { width: "68%", children: h })
|
|
323
|
-
] }),
|
|
324
|
-
children: /* @__PURE__ */ n(
|
|
325
|
-
o,
|
|
326
|
-
{
|
|
327
|
-
condition: c === "top",
|
|
328
|
-
wrapper: B(
|
|
329
|
-
e.name,
|
|
330
|
-
e == null ? void 0 : e.required,
|
|
331
|
-
(t = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : t.description
|
|
332
|
-
),
|
|
333
|
-
children: /* @__PURE__ */ n(
|
|
334
|
-
H,
|
|
335
|
-
{
|
|
336
|
-
label: c === "default" ? e.name : void 0,
|
|
337
|
-
name: e.propertyId,
|
|
338
|
-
value: d,
|
|
339
|
-
onChange: F,
|
|
340
|
-
variant: f,
|
|
341
|
-
disabled: !e.editable,
|
|
342
|
-
required: e.required,
|
|
343
|
-
fullWidth: !0,
|
|
344
|
-
helperText: s === "small" ? null : "Add list values with the comma (,) separated string",
|
|
345
|
-
InputProps: {
|
|
346
|
-
size: s,
|
|
347
|
-
placeholder: s === "small" ? "Add list values with the comma (,) separated string" : "",
|
|
348
|
-
...a && a[e.propertyId] && {
|
|
349
|
-
tabIndex: a[e.propertyId].order
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
)
|
|
354
|
-
}
|
|
355
|
-
)
|
|
356
|
-
}
|
|
357
|
-
);
|
|
358
|
-
}
|
|
359
|
-
if (e.type === "boolean")
|
|
360
|
-
return /* @__PURE__ */ n(
|
|
361
|
-
o,
|
|
362
|
-
{
|
|
363
|
-
condition: c === "left",
|
|
364
|
-
wrapper: (d) => /* @__PURE__ */ u(m, { display: "flex", alignItems: "center", children: [
|
|
365
|
-
/* @__PURE__ */ n(I, { width: "32%", children: e.name }),
|
|
366
|
-
/* @__PURE__ */ n(m, { width: "68%", children: d })
|
|
367
|
-
] }),
|
|
368
|
-
children: /* @__PURE__ */ n(
|
|
369
|
-
se,
|
|
370
|
-
{
|
|
371
|
-
control: /* @__PURE__ */ n(
|
|
372
|
-
Ie,
|
|
373
|
-
{
|
|
374
|
-
name: e.propertyId,
|
|
375
|
-
checked: !!(l ?? e.defaultValue ?? !1),
|
|
376
|
-
onChange: V,
|
|
377
|
-
size: s
|
|
378
|
-
}
|
|
379
|
-
),
|
|
380
|
-
label: c === "default" ? e.name : void 0
|
|
381
|
-
}
|
|
382
|
-
)
|
|
383
|
-
}
|
|
384
|
-
);
|
|
385
|
-
if (e.type === "enum") {
|
|
386
|
-
let d = [];
|
|
387
|
-
return (i = e.dataTypeInfo) != null && i.enumValues && (d = e.dataTypeInfo.enumValues), (w = (x = e.dataTypeInfo) == null ? void 0 : x.innerType) != null && w.enumValues && (d = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ n(
|
|
388
|
-
o,
|
|
389
|
-
{
|
|
390
|
-
condition: c === "left",
|
|
391
|
-
wrapper: (h) => /* @__PURE__ */ u(m, { display: "flex", alignItems: "center", children: [
|
|
392
|
-
/* @__PURE__ */ n(I, { width: "32%", children: e.name }),
|
|
393
|
-
/* @__PURE__ */ n(m, { width: "68%", children: h })
|
|
394
|
-
] }),
|
|
395
|
-
children: /* @__PURE__ */ n(
|
|
396
|
-
o,
|
|
397
|
-
{
|
|
398
|
-
condition: c === "top",
|
|
399
|
-
wrapper: B(
|
|
400
|
-
e.name,
|
|
401
|
-
e == null ? void 0 : e.required,
|
|
402
|
-
(W = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : W.description
|
|
403
|
-
),
|
|
404
|
-
children: /* @__PURE__ */ u(
|
|
405
|
-
fe,
|
|
406
|
-
{
|
|
407
|
-
fullWidth: !0,
|
|
408
|
-
variant: f,
|
|
409
|
-
size: s,
|
|
410
|
-
required: e.required,
|
|
411
|
-
children: [
|
|
412
|
-
c === "default" && /* @__PURE__ */ n(ge, { id: `${e.propertyId}-label`, children: e.name }),
|
|
413
|
-
/* @__PURE__ */ n(
|
|
414
|
-
oe,
|
|
415
|
-
{
|
|
416
|
-
label: c === "default" ? e.name : void 0,
|
|
417
|
-
name: e.name,
|
|
418
|
-
labelId: `${e.propertyId}-label`,
|
|
419
|
-
id: e.propertyId,
|
|
420
|
-
value: l ?? "",
|
|
421
|
-
onChange: M,
|
|
422
|
-
inputProps: {
|
|
423
|
-
...a && a[e.propertyId] && {
|
|
424
|
-
tabIndex: a[e.propertyId].order
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
children: d.map((h, L) => /* @__PURE__ */ n(re, { value: h, children: h }, L))
|
|
428
|
-
}
|
|
429
|
-
)
|
|
430
|
-
]
|
|
431
|
-
}
|
|
432
|
-
)
|
|
433
|
-
}
|
|
434
|
-
)
|
|
435
|
-
}
|
|
436
|
-
);
|
|
437
|
-
}
|
|
438
|
-
return e.type === "geometry" ? /* @__PURE__ */ n(
|
|
439
|
-
o,
|
|
440
|
-
{
|
|
441
|
-
condition: c === "left",
|
|
442
|
-
wrapper: (d) => /* @__PURE__ */ u(m, { display: "flex", alignItems: "center", children: [
|
|
443
|
-
/* @__PURE__ */ n(I, { width: "32%", children: e.name }),
|
|
444
|
-
/* @__PURE__ */ n(m, { width: "68%", children: d })
|
|
445
|
-
] }),
|
|
446
|
-
children: /* @__PURE__ */ n(m, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
|
|
447
|
-
me,
|
|
448
|
-
{
|
|
449
|
-
mapboxAccessToken: r,
|
|
450
|
-
label: c === "default" ? e.name : void 0,
|
|
451
|
-
value: l ?? e.defaultValue ?? "",
|
|
452
|
-
defaultExtent: T,
|
|
453
|
-
variant: f,
|
|
454
|
-
onChange: $(e.propertyId)
|
|
455
|
-
}
|
|
456
|
-
) })
|
|
457
|
-
}
|
|
458
|
-
) : e.type === "phone-number" ? /* @__PURE__ */ n(
|
|
459
|
-
o,
|
|
460
|
-
{
|
|
461
|
-
condition: c === "left",
|
|
462
|
-
wrapper: (d) => /* @__PURE__ */ u(m, { display: "flex", alignItems: "center", children: [
|
|
463
|
-
/* @__PURE__ */ n(I, { width: "32%", children: e.name }),
|
|
464
|
-
/* @__PURE__ */ n(m, { width: "68%", children: d })
|
|
465
|
-
] }),
|
|
466
|
-
children: /* @__PURE__ */ n(m, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
|
|
467
|
-
he,
|
|
468
|
-
{
|
|
469
|
-
label: c === "default" ? e.name : void 0,
|
|
470
|
-
placeholder: "Enter phone number",
|
|
471
|
-
value: l ?? e.defaultValue ?? "",
|
|
472
|
-
onChange: j(e.propertyId)
|
|
473
|
-
}
|
|
474
|
-
) })
|
|
475
|
-
}
|
|
476
|
-
) : e.type === "composite-list" ? /* @__PURE__ */ n(m, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
|
|
477
|
-
Ve,
|
|
478
|
-
{
|
|
479
|
-
property: e,
|
|
480
|
-
value: l ?? e.defaultValue ?? "",
|
|
481
|
-
variant: f,
|
|
482
|
-
labelPosition: c,
|
|
483
|
-
size: s,
|
|
484
|
-
mapboxAccessToken: r,
|
|
485
|
-
onChange: q(e.propertyId)
|
|
486
|
-
}
|
|
487
|
-
) }) : e.type === "composite-matrix" ? /* @__PURE__ */ n(m, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
|
|
488
|
-
ue,
|
|
489
|
-
{
|
|
490
|
-
property: e,
|
|
491
|
-
value: l ?? e.defaultValue ?? "",
|
|
492
|
-
variant: f,
|
|
493
|
-
size: s,
|
|
494
|
-
onChange: q(e.propertyId)
|
|
495
|
-
}
|
|
496
|
-
) }) : /* @__PURE__ */ n(E, {});
|
|
497
|
-
}
|
|
498
|
-
export {
|
|
499
|
-
Ve as C,
|
|
500
|
-
Te as V
|
|
501
|
-
};
|
package/dist/index-kCJ_Zvl8.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import o from "react";
|
|
3
|
-
import f from "./components/map/logic.js";
|
|
4
|
-
import a from "./components/map/styled.js";
|
|
5
|
-
import './assets/index.css';const u = (e, i) => {
|
|
6
|
-
var t, r;
|
|
7
|
-
const { refs: s, action: m } = f(e);
|
|
8
|
-
return o.useImperativeHandle(i, () => m), /* @__PURE__ */ n(
|
|
9
|
-
a.Container,
|
|
10
|
-
{
|
|
11
|
-
sx: {
|
|
12
|
-
// position: 'relative',
|
|
13
|
-
cursor: ((t = e.options) == null ? void 0 : t.cursor) || "default"
|
|
14
|
-
},
|
|
15
|
-
children: /* @__PURE__ */ n(
|
|
16
|
-
a.Container,
|
|
17
|
-
{
|
|
18
|
-
id: e.id || "map",
|
|
19
|
-
ref: s.mapContainer,
|
|
20
|
-
cssPosition: (r = e.options) == null ? void 0 : r.cssPosition,
|
|
21
|
-
onContextMenu: (c) => c.preventDefault(),
|
|
22
|
-
className: "map"
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
}, l = o.memo(o.forwardRef(u)), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
|
-
__proto__: null,
|
|
29
|
-
default: l
|
|
30
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
31
|
-
export {
|
|
32
|
-
l as M,
|
|
33
|
-
x as i
|
|
34
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as n from "react";
|
|
2
|
-
function o(u, i = 166) {
|
|
3
|
-
let t;
|
|
4
|
-
function e(...l) {
|
|
5
|
-
const a = () => {
|
|
6
|
-
u.apply(this, l);
|
|
7
|
-
};
|
|
8
|
-
clearTimeout(t), t = setTimeout(a, i);
|
|
9
|
-
}
|
|
10
|
-
return e.clear = () => {
|
|
11
|
-
clearTimeout(t);
|
|
12
|
-
}, e;
|
|
13
|
-
}
|
|
14
|
-
function m(u, i) {
|
|
15
|
-
var t, e;
|
|
16
|
-
return /* @__PURE__ */ n.isValidElement(u) && i.indexOf(
|
|
17
|
-
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
18
|
-
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
19
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
20
|
-
(t = u.type.muiName) != null ? t : (e = u.type) == null || (e = e._payload) == null || (e = e.value) == null ? void 0 : e.muiName
|
|
21
|
-
) !== -1;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
o as d,
|
|
25
|
-
m as i
|
|
26
|
-
};
|