@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
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { DataGrid as a } from "@mui/x-data-grid";
|
|
3
|
-
import { A as n, a as d, d as s } from "../../../../Add-
|
|
3
|
+
import { A as n, a as d, d as s } from "../../../../Add-CqcD1PWb.js";
|
|
4
4
|
import m from "./recognition-property-list-columns.js";
|
|
5
5
|
import c from "./recognition-property-list-form.js";
|
|
6
6
|
import p from "./recognition-property-list-logic.js";
|
|
7
|
-
import { B as g } from "../../../../
|
|
8
|
-
import { T as
|
|
9
|
-
import { B as
|
|
10
|
-
import { D as f, a as y } from "../../../../DialogContent-
|
|
11
|
-
import { a as b } from "../../../../dialog-
|
|
12
|
-
|
|
7
|
+
import { B as g } from "../../../../Box-DqUMmZjL.js";
|
|
8
|
+
import { T as h } from "../../../../Typography-DgsSLCFC.js";
|
|
9
|
+
import { B as u } from "../../../../Button-C5yquWAB.js";
|
|
10
|
+
import { D as f, a as y } from "../../../../DialogContent-BvVjD9z3.js";
|
|
11
|
+
import { a as b } from "../../../../dialog-BYRnCztH.js";
|
|
12
|
+
const L = (i) => {
|
|
13
13
|
const { state: l, action: t } = p(i);
|
|
14
14
|
return /* @__PURE__ */ r(g, { children: [
|
|
15
|
-
/* @__PURE__ */ e(
|
|
15
|
+
/* @__PURE__ */ e(h, { variant: "h6", marginY: 2, children: "Recognition Property List" }),
|
|
16
16
|
i.list.length > 0 ? /* @__PURE__ */ e(
|
|
17
17
|
a,
|
|
18
18
|
{
|
|
@@ -29,7 +29,7 @@ function L(i) {
|
|
|
29
29
|
"Add least one recognition property before save the template!"
|
|
30
30
|
] }),
|
|
31
31
|
/* @__PURE__ */ e(
|
|
32
|
-
|
|
32
|
+
u,
|
|
33
33
|
{
|
|
34
34
|
color: "primary",
|
|
35
35
|
onClick: t.handleOnAddClick,
|
|
@@ -63,7 +63,7 @@ function L(i) {
|
|
|
63
63
|
}
|
|
64
64
|
)
|
|
65
65
|
] });
|
|
66
|
-
}
|
|
66
|
+
};
|
|
67
67
|
export {
|
|
68
|
-
L as
|
|
68
|
+
L as RecognitionPropertyList
|
|
69
69
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { d as o, a as l } from "../../../../Delete-
|
|
3
|
-
import { I as d } from "../../../../IconButton-
|
|
2
|
+
import { d as o, a as l } from "../../../../Delete-BdyYpINH.js";
|
|
3
|
+
import { I as d } from "../../../../IconButton-BoGwbvrP.js";
|
|
4
4
|
const h = (r) => [
|
|
5
5
|
{ field: "ownerType", headerName: "Owner Type", width: 120 },
|
|
6
6
|
{ field: "owner", headerName: "Owner", width: 120 },
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import V, { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import V, { jsxs as o, Fragment as S, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { i as C } from "../../../../generateUtilityClasses-C3ivN9Ie.js";
|
|
4
|
+
import { r as g } from "../../../../createSvgIcon-DuDuASu1.js";
|
|
4
5
|
import { RECOGNITION_PROPERTY_OWNER_TYPE as h, RECOGNITION_PROPERTY_TYPE as T, RECOGNITION_PROPERTY_TERM_MATCH as v } from "../../../../constants/index.js";
|
|
5
|
-
import { F as c } from "../../../../
|
|
6
|
-
import { I as u } from "../../../../InputLabel-
|
|
7
|
-
import { S as d
|
|
8
|
-
import { M as m
|
|
9
|
-
import { B as
|
|
10
|
-
|
|
6
|
+
import { F as c, T as b } from "../../../../TextField-e2oKaUN1.js";
|
|
7
|
+
import { I as u } from "../../../../InputLabel-Dd8RrneV.js";
|
|
8
|
+
import { S as d } from "../../../../Select-DHUl_uG3.js";
|
|
9
|
+
import { M as m } from "../../../../MenuItem-DwqJqzuM.js";
|
|
10
|
+
import { B as M } from "../../../../Box-DqUMmZjL.js";
|
|
11
|
+
import { B as y } from "../../../../Button-C5yquWAB.js";
|
|
12
|
+
var p = {}, q = C;
|
|
11
13
|
Object.defineProperty(p, "__esModule", {
|
|
12
14
|
value: !0
|
|
13
15
|
});
|
|
14
|
-
var w = p.default = void 0, N = q(
|
|
16
|
+
var w = p.default = void 0, N = q(g()), W = V;
|
|
15
17
|
w = p.default = (0, N.default)(/* @__PURE__ */ (0, W.jsx)("path", {
|
|
16
18
|
d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
|
|
17
19
|
}), "Save");
|
|
18
|
-
function
|
|
20
|
+
function L({
|
|
19
21
|
defaultValues: x = {
|
|
20
22
|
owner: "",
|
|
21
23
|
ownerType: h[0],
|
|
@@ -28,7 +30,7 @@ function $({
|
|
|
28
30
|
onSubmit: E,
|
|
29
31
|
onCancel: O
|
|
30
32
|
}) {
|
|
31
|
-
const [r, f] =
|
|
33
|
+
const [r, f] = i.useState(x), [I, _] = i.useState([]), [l, s] = i.useState({
|
|
32
34
|
termValue: !1,
|
|
33
35
|
score: !1
|
|
34
36
|
}), n = (e) => {
|
|
@@ -47,9 +49,9 @@ function $({
|
|
|
47
49
|
}
|
|
48
50
|
E(r);
|
|
49
51
|
};
|
|
50
|
-
return
|
|
51
|
-
}), [r.termValue]),
|
|
52
|
-
}), [r.score]),
|
|
52
|
+
return i.useEffect(() => (l.termValue && r.termValue && s({ ...l, termValue: !1 }), () => {
|
|
53
|
+
}), [r.termValue]), i.useEffect(() => (l.score && r.score && s({ ...l, score: !1 }), () => {
|
|
54
|
+
}), [r.score]), i.useEffect(() => {
|
|
53
55
|
if (r.ownerType === "PROPERTY") {
|
|
54
56
|
const e = R("properties");
|
|
55
57
|
_(e);
|
|
@@ -59,8 +61,8 @@ function $({
|
|
|
59
61
|
owner: ""
|
|
60
62
|
})), () => {
|
|
61
63
|
};
|
|
62
|
-
}, [r.ownerType]), /* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
+
}, [r.ownerType]), /* @__PURE__ */ o(S, { children: [
|
|
65
|
+
/* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
64
66
|
/* @__PURE__ */ t(u, { id: "owner-type-select-label", children: "Owner Type" }),
|
|
65
67
|
/* @__PURE__ */ t(
|
|
66
68
|
d,
|
|
@@ -75,7 +77,7 @@ function $({
|
|
|
75
77
|
}
|
|
76
78
|
)
|
|
77
79
|
] }),
|
|
78
|
-
r.ownerType === "PROPERTY" && /* @__PURE__ */
|
|
80
|
+
r.ownerType === "PROPERTY" && /* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
79
81
|
/* @__PURE__ */ t(u, { id: "owner-select-label", children: "Owner" }),
|
|
80
82
|
/* @__PURE__ */ t(
|
|
81
83
|
d,
|
|
@@ -90,7 +92,7 @@ function $({
|
|
|
90
92
|
}
|
|
91
93
|
)
|
|
92
94
|
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
94
96
|
/* @__PURE__ */ t(u, { id: "type-select-label", children: "Type" }),
|
|
95
97
|
/* @__PURE__ */ t(
|
|
96
98
|
d,
|
|
@@ -105,7 +107,7 @@ function $({
|
|
|
105
107
|
}
|
|
106
108
|
)
|
|
107
109
|
] }),
|
|
108
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
109
111
|
/* @__PURE__ */ t(u, { id: "term-match-select-label", children: "Term Match" }),
|
|
110
112
|
/* @__PURE__ */ t(
|
|
111
113
|
d,
|
|
@@ -154,7 +156,7 @@ function $({
|
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
158
|
),
|
|
157
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ o(M, { display: "flex", justifyContent: "flex-end", children: [
|
|
158
160
|
/* @__PURE__ */ t(y, { variant: "contained", onClick: O, sx: { marginRight: 2 }, children: "Cancel" }),
|
|
159
161
|
/* @__PURE__ */ t(
|
|
160
162
|
y,
|
|
@@ -169,5 +171,5 @@ function $({
|
|
|
169
171
|
] });
|
|
170
172
|
}
|
|
171
173
|
export {
|
|
172
|
-
|
|
174
|
+
L as default
|
|
173
175
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as C, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { AddPhotoAlternate as I, Delete as W, Search as j, CheckBox as E, CloudUpload as P, Add as _ } from "@mui/icons-material";
|
|
3
|
-
import { IconButton as S, Dialog as N, DialogContent as O, Box as u, TextField as q, InputAdornment as z, Button as
|
|
4
|
-
import
|
|
3
|
+
import { IconButton as S, Dialog as N, DialogContent as O, Box as u, TextField as q, InputAdornment as z, Button as a, DialogActions as G } from "@mui/material";
|
|
4
|
+
import d from "react";
|
|
5
5
|
import H from "../../../../hooks/useToggle.js";
|
|
6
6
|
import { Tabs as J } from "../../../tabs/index.js";
|
|
7
7
|
import i from "./styled.js";
|
|
8
|
-
|
|
9
|
-
value:
|
|
8
|
+
const Z = ({
|
|
9
|
+
value: s,
|
|
10
10
|
list: A,
|
|
11
11
|
newIcon: o,
|
|
12
12
|
loading: m,
|
|
13
13
|
onChange: f,
|
|
14
14
|
onFileUpload: y
|
|
15
|
-
}) {
|
|
16
|
-
const { state: b, action: g } = H(!1), [x, k] =
|
|
17
|
-
|
|
15
|
+
}) => {
|
|
16
|
+
const { state: b, action: g } = H(!1), [x, k] = d.useState(""), [l, r] = d.useState(null), [p, B] = d.useState();
|
|
17
|
+
d.useEffect(() => (o && r(o), () => {
|
|
18
18
|
}), [o]);
|
|
19
19
|
const F = (t) => {
|
|
20
20
|
k(t.target.value);
|
|
21
21
|
}, U = (t) => () => {
|
|
22
22
|
r(t);
|
|
23
23
|
}, v = () => {
|
|
24
|
-
l && (f(l),
|
|
24
|
+
l && (f(l), h());
|
|
25
25
|
}, D = () => {
|
|
26
26
|
r(null), f("");
|
|
27
|
-
},
|
|
27
|
+
}, h = () => {
|
|
28
28
|
g.close(), r(null);
|
|
29
29
|
}, R = (t) => {
|
|
30
30
|
t.target.files && B(t.target.files[0]);
|
|
31
31
|
}, T = () => {
|
|
32
|
-
|
|
32
|
+
p && y(p);
|
|
33
33
|
};
|
|
34
34
|
return /* @__PURE__ */ n(C, { children: [
|
|
35
35
|
/* @__PURE__ */ n(i.Container, { children: [
|
|
36
|
-
|
|
36
|
+
s ? /* @__PURE__ */ e(i.Img, { src: s }) : /* @__PURE__ */ e(I, { color: "action" }),
|
|
37
37
|
/* @__PURE__ */ n(i.Actions, { children: [
|
|
38
38
|
/* @__PURE__ */ e(
|
|
39
39
|
S,
|
|
@@ -44,7 +44,7 @@ function Z({
|
|
|
44
44
|
children: /* @__PURE__ */ e(I, {})
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
!!
|
|
47
|
+
!!s && /* @__PURE__ */ e(
|
|
48
48
|
S,
|
|
49
49
|
{
|
|
50
50
|
title: "Remove Icon",
|
|
@@ -59,7 +59,7 @@ function Z({
|
|
|
59
59
|
N,
|
|
60
60
|
{
|
|
61
61
|
open: b.isOpen,
|
|
62
|
-
onClose:
|
|
62
|
+
onClose: h,
|
|
63
63
|
maxWidth: "sm",
|
|
64
64
|
fullWidth: !0,
|
|
65
65
|
scroll: "paper",
|
|
@@ -85,15 +85,15 @@ function Z({
|
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
87
|
A.filter((t) => {
|
|
88
|
-
const
|
|
89
|
-
return !(
|
|
88
|
+
const c = t.split("/ontology-icon/");
|
|
89
|
+
return !(c[1] && c[1].includes("/"));
|
|
90
90
|
}).filter((t) => {
|
|
91
91
|
if (x) {
|
|
92
92
|
if (t.search(new RegExp(x, "i")) !== -1)
|
|
93
93
|
return !0;
|
|
94
94
|
} else return !0;
|
|
95
95
|
return !1;
|
|
96
|
-
}).map((t,
|
|
96
|
+
}).map((t, c) => /* @__PURE__ */ n(
|
|
97
97
|
i.SelectButton,
|
|
98
98
|
{
|
|
99
99
|
variant: l === t ? "outlined" : "text",
|
|
@@ -104,7 +104,7 @@ function Z({
|
|
|
104
104
|
l === t ? /* @__PURE__ */ e(E, {}) : null
|
|
105
105
|
]
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
c
|
|
108
108
|
))
|
|
109
109
|
] })
|
|
110
110
|
},
|
|
@@ -117,7 +117,7 @@ function Z({
|
|
|
117
117
|
p: 1,
|
|
118
118
|
display: "inline-block",
|
|
119
119
|
className: "iconSelection",
|
|
120
|
-
children: /* @__PURE__ */ e(
|
|
120
|
+
children: /* @__PURE__ */ e(a, { variant: "outlined", color: "secondary", children: /* @__PURE__ */ e(
|
|
121
121
|
"img",
|
|
122
122
|
{
|
|
123
123
|
src: o,
|
|
@@ -144,13 +144,13 @@ function Z({
|
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ e(
|
|
147
|
-
|
|
147
|
+
a,
|
|
148
148
|
{
|
|
149
149
|
onClick: T,
|
|
150
150
|
variant: "contained",
|
|
151
151
|
color: "primary",
|
|
152
152
|
startIcon: /* @__PURE__ */ e(P, {}),
|
|
153
|
-
disabled: m ||
|
|
153
|
+
disabled: m || p === null,
|
|
154
154
|
children: m ? "Uploading..." : "Upload!"
|
|
155
155
|
}
|
|
156
156
|
)
|
|
@@ -163,9 +163,9 @@ function Z({
|
|
|
163
163
|
}
|
|
164
164
|
) }),
|
|
165
165
|
/* @__PURE__ */ n(G, { style: { padding: "5px 15px 15px 15px" }, children: [
|
|
166
|
-
/* @__PURE__ */ e(
|
|
166
|
+
/* @__PURE__ */ e(a, { onClick: h, variant: "contained", children: "Cancel" }),
|
|
167
167
|
/* @__PURE__ */ e(
|
|
168
|
-
|
|
168
|
+
a,
|
|
169
169
|
{
|
|
170
170
|
onClick: v,
|
|
171
171
|
color: "primary",
|
|
@@ -180,7 +180,7 @@ function Z({
|
|
|
180
180
|
}
|
|
181
181
|
)
|
|
182
182
|
] });
|
|
183
|
-
}
|
|
183
|
+
};
|
|
184
184
|
export {
|
|
185
|
-
Z as
|
|
185
|
+
Z as SelectIcon
|
|
186
186
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxs as p, jsx as e, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { TemplateFormLeftLayout as n, TemplateFormLeftLabel as a, TemplateFormLeftContent as l, TemplateFormTopLabel as L } from "./styled.js";
|
|
3
|
+
const i = ({
|
|
4
|
+
label: r,
|
|
5
|
+
required: m,
|
|
6
|
+
labelPosition: o,
|
|
7
|
+
children: t
|
|
8
|
+
}) => o === "left" ? /* @__PURE__ */ p(n, { children: [
|
|
9
|
+
/* @__PURE__ */ e(a, { required: m, children: r }),
|
|
10
|
+
/* @__PURE__ */ e(l, { children: t })
|
|
11
|
+
] }) : o === "top" ? /* @__PURE__ */ p(f, { children: [
|
|
12
|
+
/* @__PURE__ */ e(L, { required: m, children: r }),
|
|
13
|
+
t
|
|
14
|
+
] }) : /* @__PURE__ */ e(f, { children: t });
|
|
15
|
+
export {
|
|
16
|
+
i as LabeledField
|
|
17
|
+
};
|