@hybridcore/ui 1.6.0 → 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-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- 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-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- 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/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- 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/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- 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/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- 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 +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- 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 -85
- 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 -11
- 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/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- 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/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- 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/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- 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-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- 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 -14
- 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 -23
- 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 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- 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 +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- 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-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- 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-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- 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/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.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 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.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 "../../../../Box-
|
|
8
|
-
import { T as
|
|
9
|
-
import { B as
|
|
10
|
-
import { D as f, a as y } from "../../../../DialogContent-
|
|
11
|
-
import {
|
|
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,22 +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,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { B as M } from "../../../../Box-
|
|
10
|
-
import { B as y } from "../../../../Button-
|
|
11
|
-
var p = {}, q =
|
|
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;
|
|
12
13
|
Object.defineProperty(p, "__esModule", {
|
|
13
14
|
value: !0
|
|
14
15
|
});
|
|
15
|
-
var w = p.default = void 0, N = q(
|
|
16
|
+
var w = p.default = void 0, N = q(g()), W = V;
|
|
16
17
|
w = p.default = (0, N.default)(/* @__PURE__ */ (0, W.jsx)("path", {
|
|
17
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"
|
|
18
19
|
}), "Save");
|
|
19
|
-
function
|
|
20
|
+
function L({
|
|
20
21
|
defaultValues: x = {
|
|
21
22
|
owner: "",
|
|
22
23
|
ownerType: h[0],
|
|
@@ -29,7 +30,7 @@ function A({
|
|
|
29
30
|
onSubmit: E,
|
|
30
31
|
onCancel: O
|
|
31
32
|
}) {
|
|
32
|
-
const [r, f] =
|
|
33
|
+
const [r, f] = i.useState(x), [I, _] = i.useState([]), [l, s] = i.useState({
|
|
33
34
|
termValue: !1,
|
|
34
35
|
score: !1
|
|
35
36
|
}), n = (e) => {
|
|
@@ -48,9 +49,9 @@ function A({
|
|
|
48
49
|
}
|
|
49
50
|
E(r);
|
|
50
51
|
};
|
|
51
|
-
return
|
|
52
|
-
}), [r.termValue]),
|
|
53
|
-
}), [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(() => {
|
|
54
55
|
if (r.ownerType === "PROPERTY") {
|
|
55
56
|
const e = R("properties");
|
|
56
57
|
_(e);
|
|
@@ -60,8 +61,8 @@ function A({
|
|
|
60
61
|
owner: ""
|
|
61
62
|
})), () => {
|
|
62
63
|
};
|
|
63
|
-
}, [r.ownerType]), /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
}, [r.ownerType]), /* @__PURE__ */ o(S, { children: [
|
|
65
|
+
/* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
65
66
|
/* @__PURE__ */ t(u, { id: "owner-type-select-label", children: "Owner Type" }),
|
|
66
67
|
/* @__PURE__ */ t(
|
|
67
68
|
d,
|
|
@@ -76,7 +77,7 @@ function A({
|
|
|
76
77
|
}
|
|
77
78
|
)
|
|
78
79
|
] }),
|
|
79
|
-
r.ownerType === "PROPERTY" && /* @__PURE__ */
|
|
80
|
+
r.ownerType === "PROPERTY" && /* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
80
81
|
/* @__PURE__ */ t(u, { id: "owner-select-label", children: "Owner" }),
|
|
81
82
|
/* @__PURE__ */ t(
|
|
82
83
|
d,
|
|
@@ -91,7 +92,7 @@ function A({
|
|
|
91
92
|
}
|
|
92
93
|
)
|
|
93
94
|
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
95
96
|
/* @__PURE__ */ t(u, { id: "type-select-label", children: "Type" }),
|
|
96
97
|
/* @__PURE__ */ t(
|
|
97
98
|
d,
|
|
@@ -106,7 +107,7 @@ function A({
|
|
|
106
107
|
}
|
|
107
108
|
)
|
|
108
109
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
110
111
|
/* @__PURE__ */ t(u, { id: "term-match-select-label", children: "Term Match" }),
|
|
111
112
|
/* @__PURE__ */ t(
|
|
112
113
|
d,
|
|
@@ -155,7 +156,7 @@ function A({
|
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ o(M, { display: "flex", justifyContent: "flex-end", children: [
|
|
159
160
|
/* @__PURE__ */ t(y, { variant: "contained", onClick: O, sx: { marginRight: 2 }, children: "Cancel" }),
|
|
160
161
|
/* @__PURE__ */ t(
|
|
161
162
|
y,
|
|
@@ -170,5 +171,5 @@ function A({
|
|
|
170
171
|
] });
|
|
171
172
|
}
|
|
172
173
|
export {
|
|
173
|
-
|
|
174
|
+
L as default
|
|
174
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
|
+
};
|