@hybridcore/ui 1.6.25 → 1.6.27
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 +1 -0
- package/dist/{AccordionSummary-c6-Buzbq.js → AccordionSummary-B6-hHjCC.js} +3 -3
- package/dist/{Add-CB4mPrke.js → Add-eXYPgCCB.js} +1 -1
- package/dist/{Alert-BsT46Tgd.js → Alert-OoSOUjZM.js} +2 -2
- package/dist/{Button-BMUZn0cT.js → Button-gZFgy23t.js} +1 -1
- package/dist/{ButtonBase-DG5J0YgP.js → ButtonBase-Dgg9dzM8.js} +2 -2
- package/dist/{Delete-ofipLwkd.js → Delete-B8COyxKI.js} +1 -1
- package/dist/{IconButton-SJfF1cr9.js → IconButton-CQwROBzr.js} +1 -1
- package/dist/IconCheck-BcUcbvno.js +19 -0
- package/dist/{MenuItem-BjnnhDbD.js → MenuItem-BAKBPyZx.js} +3 -3
- package/dist/{Modal-Djf5pMjD.js → Modal-DVdqH5dj.js} +1 -1
- package/dist/{Select-nL91eUH9.js → Select-B4zhu5G_.js} +2 -2
- package/dist/{SwitchBase-BcJAJYsB.js → SwitchBase-BqUrfIHp.js} +1 -1
- package/dist/{TextField-Db63_GNb.js → TextField-Cx5T7iJn.js} +4 -3
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/forecast-cone/index.js +1 -1
- package/dist/components/collapsible-card/index.js +1 -1
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +2 -2
- package/dist/components/color-picker/styled.js +1 -1
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-list/index.js +139 -0
- package/dist/components/data-list/logic.js +224 -0
- package/dist/components/data-list/styled.js +260 -0
- package/dist/components/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +3 -2
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/status-indicator/logic.js +28 -41
- package/dist/components/template-form/components/default-value-input/index.js +120 -0
- package/dist/components/template-form/components/default-value-input/logic.js +76 -0
- package/dist/components/template-form/components/property-list/index.js +5 -5
- package/dist/components/template-form/components/property-list/property-list-columns.js +2 -2
- package/dist/components/template-form/components/property-list/property-list-form.js +245 -240
- package/dist/components/template-form/components/property-list/property-list-logic.js +59 -42
- package/dist/components/template-form/components/recognition-property-list/index.js +5 -5
- 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 +5 -5
- package/dist/components/template-form/index.js +39 -37
- package/dist/components/template-form/logic.js +24 -23
- package/dist/components/template-property-filters/property.js +23 -20
- package/dist/createSvgIcon-Bi-IzY8I.js +83 -0
- package/dist/{dialog-CNxZ7uox.js → dialog-DwmnOp5c.js} +2 -2
- package/dist/{index-BQ4_OA4b.js → index-Dvh8D1yM.js} +26 -25
- package/dist/isMuiElement-CxT3_ACP.js +13 -0
- package/dist/main.d.ts +270 -50
- package/dist/main.js +117 -115
- package/dist/{styled-DObpn_Bi.js → styled-C5WQOj4E.js} +1 -1
- package/dist/{useIsFocusVisible-BHPF-Pml.js → useIsFocusVisible-CVnvB5M2.js} +1 -1
- package/dist/{useSlot-gpKOd92R.js → useSlot-BOHuz6Wu.js} +1 -1
- package/dist/{useTimeout-CM6EsHyp.js → useTimeout-D5vWrF1x.js} +2 -2
- package/dist/utils/ontology.js +49 -43
- package/package.json +1 -1
- package/dist/createSvgIcon-jKAqRXE2.js +0 -93
package/dist/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { h as n } from "./helpers-D4uXfBfO.js";
|
|
|
6
6
|
import { Card as s } from "./components/card/index.js";
|
|
7
7
|
import { CardAlternate as C } from "./components/card-alternate/index.js";
|
|
8
8
|
import { ChartWrapper as T } from "./components/charts/chart-wrapper/index.js";
|
|
9
|
-
import { CandlestickChart as
|
|
9
|
+
import { CandlestickChart as D } from "./components/charts/candlestick/index.js";
|
|
10
10
|
import { ForecastConeChart as L } from "./components/charts/forecast-cone/index.js";
|
|
11
11
|
import { ColumnLineMix as I } from "./components/charts/column-line-mix/index.js";
|
|
12
12
|
import { DonutChart as y } from "./components/charts/donut-chart/index.js";
|
|
@@ -32,70 +32,71 @@ import { CollapsibleCard as nr } from "./components/collapsible-card/index.js";
|
|
|
32
32
|
import { ConditionalWrapper as sr } from "./components/conditional-wrapper/index.js";
|
|
33
33
|
import { alert as Cr, confirm as Pr } from "./components/confirm/index.js";
|
|
34
34
|
import { HCNotificationProvider as ur } from "./components/notification/index.js";
|
|
35
|
-
import { Container as
|
|
35
|
+
import { Container as hr } from "./components/container/index.js";
|
|
36
36
|
import { ContextMenu as Sr } from "./components/context-menu/index.js";
|
|
37
37
|
import { DataGrid as gr } from "./components/data-grid/index.js";
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
38
|
+
import { DataList as Fr } from "./components/data-list/index.js";
|
|
39
|
+
import { DataMap as Ar } from "./components/data-map/index.js";
|
|
40
|
+
import { DisseminationList as kr } from "./components/data-security-selectors/dissemination-list/index.js";
|
|
41
|
+
import { SecurityLevel as Mr } from "./components/data-security-selectors/security-level/index.js";
|
|
42
|
+
import { DatePickerWithCustomRange as wr } from "./components/date-picker-with-custom-range/index.js";
|
|
43
|
+
import { DEFAULT_RELATIVE_PRESET_LABELS as Hr } from "./components/date-picker-with-custom-range/logic.js";
|
|
44
|
+
import { DateTimePicker as Br } from "./components/date-time-picker/index.js";
|
|
45
|
+
import { Divider as _r } from "./components/divider/index.js";
|
|
46
|
+
import { DateRangePicker as Ur } from "./components/date-range-picker/index.js";
|
|
47
|
+
import { DocumentViewer as jr } from "./components/document-viewer/index.js";
|
|
48
|
+
import { DurationSelect as Xr } from "./components/duration-select/index.js";
|
|
49
|
+
import { EditableText as qr } from "./components/editable-text/index.js";
|
|
50
|
+
import { GeometryPicker as Kr } from "./components/geometry-picker/index.js";
|
|
51
|
+
import { Geometry as Zr } from "./components/geometry-picker/geometry/index.js";
|
|
52
|
+
import { Parser as ro } from "./components/geometry-picker/parser/index.js";
|
|
53
|
+
import { HeatMap as eo } from "./components/heat-map/index.js";
|
|
54
|
+
import { IconButton as mo } from "./components/icon-button/index.js";
|
|
55
|
+
import { InstanceForm as ao } from "./components/instance-form/index.js";
|
|
56
|
+
import { InstanceHierarchyTable as fo } from "./components/instance-hierarchy-table/index.js";
|
|
57
|
+
import { InstanceTable as lo } from "./components/instance-table/index.js";
|
|
58
|
+
import { InstanceVariableList as co } from "./components/instance-variable-list/index.js";
|
|
59
|
+
import { LinearIndicator as Co } from "./components/linear-indicator/index.js";
|
|
60
|
+
import { Loading as To } from "./components/loading/index.js";
|
|
61
|
+
import { Map as Do } from "./components/map/index.js";
|
|
62
|
+
import { MetricCard as Lo } from "./components/metric-card/index.js";
|
|
63
|
+
import { ObjectProfileCard as Io } from "./components/object-profile-card/index.js";
|
|
64
|
+
import { PaginatedList as yo } from "./components/paginated-list/index.js";
|
|
65
|
+
import { StatusIndicator as bo } from "./components/status-indicator/index.js";
|
|
66
|
+
import { PhoneInput as Vo } from "./components/phone-input/index.js";
|
|
67
|
+
import { Placeholder as vo } from "./components/placeholder/index.js";
|
|
68
|
+
import { PositionalTooltip as Ro } from "./components/positional-tooltip/index.js";
|
|
69
|
+
import { PrrMap as Eo } from "./components/prr-map/index.js";
|
|
70
|
+
import { RangeSelector as Go } from "./components/range-selector/index.js";
|
|
71
|
+
import { RasterGridMap as Wo } from "./components/raster-grid-map/index.js";
|
|
72
|
+
import { SearchInput as Oo } from "./components/search-input/index.js";
|
|
73
|
+
import { ScrollDrag as No } from "./components/scroll-drag/index.js";
|
|
74
|
+
import { SimplePivotTable as zo } from "./components/simple-pivot-table/index.js";
|
|
75
|
+
import { SortableList as Yo } from "./components/sortable-list/index.js";
|
|
76
|
+
import { StatsBox as Jo } from "./components/stats-box/index.js";
|
|
77
|
+
import { StaticText as Qo } from "./components/static-text/index.js";
|
|
78
|
+
import { Tabs as $o } from "./components/tabs/index.js";
|
|
79
|
+
import { TextOverflow as oe } from "./components/text-overflow/index.js";
|
|
80
|
+
import { TemplateFilters as te } from "./components/template-filters/index.js";
|
|
81
|
+
import { TemplateForm as pe } from "./components/template-form/index.js";
|
|
82
|
+
import { TemplatePropertyFilters as xe } from "./components/template-property-filters/index.js";
|
|
83
|
+
import { Property as ie } from "./components/template-property-filters/property.js";
|
|
84
|
+
import { TimelineWidget as ne } from "./components/timeline/index.js";
|
|
85
|
+
import { ToggleViewButton as se } from "./components/toggle-view-button/index.js";
|
|
86
|
+
import { TreeSelect as Ce } from "./components/tree-select/index.js";
|
|
87
|
+
import { TreeViewFilter as Te } from "./components/treeview-filter/index.js";
|
|
88
|
+
import { Uploader as De } from "./components/uploader/index.js";
|
|
89
|
+
import { VisuallyHiddenInput as Le } from "./components/visually-hidden-input/styled.js";
|
|
90
|
+
import { Widget as Ie } from "./components/widget/styled.js";
|
|
91
|
+
import { FlexCol as ye } from "./components/flex-col/index.js";
|
|
92
|
+
import { FlexRow as be } from "./components/flex-row/index.js";
|
|
93
|
+
import { notify as Ve, removeNotification as ke } from "./components/notification/store.js";
|
|
93
94
|
export {
|
|
94
95
|
i as Access,
|
|
95
96
|
n as AccessUtils,
|
|
96
97
|
x as AdapterDayjs,
|
|
97
98
|
xr as Button,
|
|
98
|
-
|
|
99
|
+
D as CandlestickChart,
|
|
99
100
|
s as Card,
|
|
100
101
|
C as CardAlternate,
|
|
101
102
|
T as ChartWrapper,
|
|
@@ -103,89 +104,90 @@ export {
|
|
|
103
104
|
ir as ColorPicker,
|
|
104
105
|
I as ColumnLineMix,
|
|
105
106
|
sr as ConditionalWrapper,
|
|
106
|
-
|
|
107
|
+
hr as Container,
|
|
107
108
|
Sr as ContextMenu,
|
|
108
|
-
|
|
109
|
+
Hr as DEFAULT_RELATIVE_PRESET_LABELS,
|
|
109
110
|
pr as DEFAULT_VIRIDIS_COOL,
|
|
110
111
|
gr as DataGrid,
|
|
111
|
-
Fr as
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
Fr as DataList,
|
|
113
|
+
Ar as DataMap,
|
|
114
|
+
wr as DatePickerWithCustomRange,
|
|
115
|
+
Ur as DateRangePicker,
|
|
116
|
+
Br as DateTimePicker,
|
|
117
|
+
kr as DisseminationList,
|
|
118
|
+
_r as Divider,
|
|
119
|
+
jr as DocumentViewer,
|
|
118
120
|
y as DonutChart,
|
|
119
121
|
b as DrillDownTreemap,
|
|
120
122
|
V as DrillDownVoronoiTreemap,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
Xr as DurationSelect,
|
|
124
|
+
qr as EditableText,
|
|
125
|
+
ye as FlexCol,
|
|
126
|
+
be as FlexRow,
|
|
125
127
|
L as ForecastConeChart,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
Zr as GeometryDraw,
|
|
129
|
+
ro as GeometryParser,
|
|
130
|
+
Kr as GeometryPicker,
|
|
129
131
|
ur as HCNotificationProvider,
|
|
130
|
-
|
|
132
|
+
eo as HeatMap,
|
|
131
133
|
v as Heatmap,
|
|
132
134
|
R as HighlightLineChart,
|
|
133
135
|
E as Histogram,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
mo as IconButton,
|
|
137
|
+
ao as InstanceForm,
|
|
138
|
+
fo as InstanceHierarchyTable,
|
|
139
|
+
lo as InstanceTable,
|
|
140
|
+
co as InstanceVariableList,
|
|
139
141
|
G as LineChart,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
Co as LinearIndicator,
|
|
143
|
+
To as Loading,
|
|
142
144
|
p as LocalizationProvider,
|
|
143
145
|
W as LogaritmicScale,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
Do as Map,
|
|
147
|
+
Lo as MetricCard,
|
|
146
148
|
O as MultipleValueAxes,
|
|
147
149
|
N as NestedPie,
|
|
148
|
-
|
|
150
|
+
Io as ObjectProfileCard,
|
|
149
151
|
z as PackedCircles,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
yo as PaginatedList,
|
|
153
|
+
Vo as PhoneInput,
|
|
152
154
|
Y as PieChart,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
155
|
+
vo as Placeholder,
|
|
156
|
+
Ro as PositionalTooltip,
|
|
157
|
+
ie as PropertyFilterInput,
|
|
158
|
+
Eo as PrrMap,
|
|
159
|
+
Go as RangeSelector,
|
|
160
|
+
Wo as RasterGridMap,
|
|
161
|
+
No as ScrollDrag,
|
|
162
|
+
Oo as SearchInput,
|
|
163
|
+
Mr as SecurityLevel,
|
|
164
|
+
zo as SimplePivotTable,
|
|
165
|
+
Yo as SortableList,
|
|
164
166
|
J as StackedAreaRadar,
|
|
165
167
|
Q as StackedColumnChart,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
168
|
+
Qo as StaticText,
|
|
169
|
+
Jo as StatsBox,
|
|
170
|
+
bo as StatusIndicator,
|
|
171
|
+
$o as Tabs,
|
|
172
|
+
te as TemplateFilters,
|
|
173
|
+
pe as TemplateForm,
|
|
174
|
+
xe as TemplatePropertyFilters,
|
|
175
|
+
oe as TextOverflow,
|
|
174
176
|
e as ThemeProvider,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
ne as TimelineWidget,
|
|
178
|
+
se as ToggleViewButton,
|
|
179
|
+
Ce as TreeSelect,
|
|
180
|
+
Te as TreeViewFilter,
|
|
181
|
+
De as Uploader,
|
|
182
|
+
Le as VisuallyHiddenInput,
|
|
183
|
+
Ie as Widget,
|
|
182
184
|
$ as XYChart,
|
|
183
185
|
Cr as alert,
|
|
184
186
|
Pr as confirm,
|
|
185
187
|
t as createTheme,
|
|
186
188
|
or as formatValue,
|
|
187
189
|
er as humanizeLabel,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
Ve as notify,
|
|
191
|
+
ke as removeNotification,
|
|
190
192
|
tr as resolveConditionalStyle
|
|
191
193
|
};
|
|
@@ -4,7 +4,7 @@ import * as d from "react";
|
|
|
4
4
|
import { P as e } from "./index-CblbdqjE.js";
|
|
5
5
|
import { c as F } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
import { s as f, r as I, g as H, a as G, b as u, d as V, u as W, c as q } from "./styled-Ckq8ALHh.js";
|
|
7
|
-
import { S as L } from "./SwitchBase-
|
|
7
|
+
import { S as L } from "./SwitchBase-BqUrfIHp.js";
|
|
8
8
|
import { c as z } from "./createSvgIcon-Bx0mTP6n.js";
|
|
9
9
|
import { jsx as s, jsxs as Z } from "react/jsx-runtime";
|
|
10
10
|
import { c as A } from "./createChainedFunction-C0nujS3O.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as s, a as n } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
2
|
import { r as v, m as b, a as j } from "./Paper-BFDcMa0t.js";
|
|
3
|
-
import { u as k } from "./useTimeout-
|
|
3
|
+
import { u as k } from "./useTimeout-D5vWrF1x.js";
|
|
4
4
|
const E = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], L = ["component", "slots", "slotProps"], N = ["component"];
|
|
5
5
|
function z(o, e) {
|
|
6
6
|
const {
|
package/dist/utils/ontology.js
CHANGED
|
@@ -1,59 +1,65 @@
|
|
|
1
|
-
import
|
|
1
|
+
import y from "lodash";
|
|
2
2
|
import { OBJECT_FALLBACK_ICON as p, EVENT_FALLBACK_ICON as g } from "../constants/index.js";
|
|
3
|
-
const N = (n,
|
|
4
|
-
const
|
|
5
|
-
for (const
|
|
6
|
-
(
|
|
7
|
-
const
|
|
8
|
-
const
|
|
3
|
+
const N = (n, t = !0) => {
|
|
4
|
+
const o = [], e = n.values();
|
|
5
|
+
for (const i of e)
|
|
6
|
+
(i.parent === null || !n.has(i.parent)) && o.push(i.templateKey);
|
|
7
|
+
const r = (i) => {
|
|
8
|
+
const c = [], s = n.get(i);
|
|
9
9
|
if (s && s.childrenKeys)
|
|
10
|
-
for (const
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
for (const h of s.childrenKeys) {
|
|
11
|
+
const l = r(h), u = n.get(h);
|
|
12
|
+
u && (l.length && (u.children = l), c.push(u));
|
|
13
13
|
}
|
|
14
|
-
return
|
|
15
|
-
},
|
|
16
|
-
return
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
const s =
|
|
20
|
-
|
|
14
|
+
return c;
|
|
15
|
+
}, f = [];
|
|
16
|
+
return o.forEach((i) => {
|
|
17
|
+
const c = n.get(i);
|
|
18
|
+
if (c) {
|
|
19
|
+
const s = r(i);
|
|
20
|
+
c.children = s, t && c.parent === null ? f.push(...c.children) : f.push(c);
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
const i = [];
|
|
25
|
-
for (const t in n)
|
|
26
|
-
if (i.push(n[t]), n[t].children) {
|
|
27
|
-
const e = y(n[t].children);
|
|
28
|
-
i.push(...e);
|
|
29
|
-
}
|
|
30
|
-
return i;
|
|
31
|
-
}, C = (n, i) => {
|
|
22
|
+
}), y.uniqBy(f, "id");
|
|
23
|
+
}, E = (n) => {
|
|
32
24
|
const t = [];
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
for (const o in n)
|
|
26
|
+
if (t.push(n[o]), n[o].children) {
|
|
27
|
+
const e = E(n[o].children);
|
|
28
|
+
t.push(...e);
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}, T = (n, t) => {
|
|
32
|
+
const o = [];
|
|
33
|
+
if (t && n && t.parent) {
|
|
34
|
+
const e = n.get(t.parent);
|
|
35
35
|
if (e) {
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
36
|
+
o.unshift(e);
|
|
37
|
+
const r = T(n, e);
|
|
38
|
+
o.unshift(...r);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
return
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
return o;
|
|
42
|
+
}, d = ["true", "1", "yes"], _ = ["false", "0", "no"], O = (n) => typeof n == "boolean" ? n : typeof n == "number" ? n !== 0 : typeof n != "string" ? !!n : d.includes(n.trim().toLowerCase()), A = (n) => {
|
|
43
|
+
if (n == null) return "";
|
|
44
|
+
const t = String(n).trim().toLowerCase();
|
|
45
|
+
return d.includes(t) ? "true" : _.includes(t) ? "false" : "";
|
|
46
|
+
}, B = (n, t, o) => {
|
|
47
|
+
const e = n == null ? void 0 : n.get(t);
|
|
48
|
+
let r = p;
|
|
45
49
|
if (e)
|
|
46
|
-
if (e.icon)
|
|
50
|
+
if (e.icon) r = e.icon;
|
|
47
51
|
else {
|
|
48
52
|
if (!e.icon && e.parent)
|
|
49
|
-
return
|
|
50
|
-
e.type === "EVENT" ?
|
|
53
|
+
return B(n, e.parent, o);
|
|
54
|
+
e.type === "EVENT" ? r = g : e.type === "OBJECT" && (r = p);
|
|
51
55
|
}
|
|
52
|
-
return
|
|
56
|
+
return o && (r = r.replace("ontology-icon/", `ontology-icon/${o}/`), r = r.replace(".svg", ".png")), r;
|
|
53
57
|
};
|
|
54
58
|
export {
|
|
55
|
-
|
|
59
|
+
E as flattenNestedTemplates,
|
|
56
60
|
N as getNestedChildrenFromMap,
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
B as getPageIcon,
|
|
62
|
+
T as getTemplateHierarchy,
|
|
63
|
+
O as parseBooleanValue,
|
|
64
|
+
A as toBooleanText
|
|
59
65
|
};
|
package/package.json
CHANGED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { a as h } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
-
import { c as y } from "./createSvgIcon-Bx0mTP6n.js";
|
|
3
|
-
import { C as _, b as g } from "./styled-Ckq8ALHh.js";
|
|
4
|
-
import { d as E } from "./debounce-46wSf_lW.js";
|
|
5
|
-
import { o as N, a as b } from "./ownerWindow-wg6foiOE.js";
|
|
6
|
-
import { a as S } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
7
|
-
import { s as $, a as C, c as I, u as T } from "./useTimeout-CM6EsHyp.js";
|
|
8
|
-
import { c as O } from "./createChainedFunction-C0nujS3O.js";
|
|
9
|
-
import * as P from "react";
|
|
10
|
-
import { u as w } from "./useId-BW-oWmul.js";
|
|
11
|
-
import { u as F } from "./useControlled-BYdyS7Pn.js";
|
|
12
|
-
import { u as V } from "./useIsFocusVisible-BHPF-Pml.js";
|
|
13
|
-
var c = {};
|
|
14
|
-
function j(e, r) {
|
|
15
|
-
return process.env.NODE_ENV === "production" ? () => null : (o, t, u, n, a) => {
|
|
16
|
-
const s = u || "<<anonymous>>", i = a || t;
|
|
17
|
-
return typeof o[t] < "u" ? new Error(`The ${n} \`${i}\` of \`${s}\` is deprecated. ${r}`) : null;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function q(e, r) {
|
|
21
|
-
var o, t;
|
|
22
|
-
return /* @__PURE__ */ P.isValidElement(e) && r.indexOf(
|
|
23
|
-
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
24
|
-
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
25
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
26
|
-
(o = e.type.muiName) != null ? o : (t = e.type) == null || (t = t._payload) == null || (t = t.value) == null ? void 0 : t.muiName
|
|
27
|
-
) !== -1;
|
|
28
|
-
}
|
|
29
|
-
function D(e, r) {
|
|
30
|
-
if (process.env.NODE_ENV === "production")
|
|
31
|
-
return () => null;
|
|
32
|
-
const o = r ? S({}, r.propTypes) : null;
|
|
33
|
-
return (u) => (n, a, s, i, l, ...v) => {
|
|
34
|
-
const m = l || a, f = o == null ? void 0 : o[m];
|
|
35
|
-
if (f) {
|
|
36
|
-
const p = f(n, a, s, i, l, ...v);
|
|
37
|
-
if (p)
|
|
38
|
-
return p;
|
|
39
|
-
}
|
|
40
|
-
return typeof n[a] < "u" && !n[u] ? new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${u}\` prop.`) : null;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function R(e, r, o, t, u) {
|
|
44
|
-
if (process.env.NODE_ENV === "production")
|
|
45
|
-
return null;
|
|
46
|
-
const n = u || r;
|
|
47
|
-
return typeof e[r] < "u" ? new Error(`The prop \`${n}\` is not supported. Please remove it.`) : null;
|
|
48
|
-
}
|
|
49
|
-
const k = {
|
|
50
|
-
configure: (e) => {
|
|
51
|
-
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
52
|
-
`)), _.configure(e);
|
|
53
|
-
}
|
|
54
|
-
}, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
55
|
-
__proto__: null,
|
|
56
|
-
capitalize: g,
|
|
57
|
-
createChainedFunction: O,
|
|
58
|
-
createSvgIcon: y,
|
|
59
|
-
debounce: E,
|
|
60
|
-
deprecatedPropType: j,
|
|
61
|
-
isMuiElement: q,
|
|
62
|
-
ownerDocument: N,
|
|
63
|
-
ownerWindow: b,
|
|
64
|
-
requirePropFactory: D,
|
|
65
|
-
setRef: $,
|
|
66
|
-
unstable_ClassNameGenerator: k,
|
|
67
|
-
unstable_useEnhancedEffect: C,
|
|
68
|
-
unstable_useId: w,
|
|
69
|
-
unsupportedProp: R,
|
|
70
|
-
useControlled: F,
|
|
71
|
-
useEventCallback: I,
|
|
72
|
-
useForkRef: T,
|
|
73
|
-
useIsFocusVisible: V
|
|
74
|
-
}, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ h(G);
|
|
75
|
-
var d;
|
|
76
|
-
function Q() {
|
|
77
|
-
return d || (d = 1, function(e) {
|
|
78
|
-
"use client";
|
|
79
|
-
Object.defineProperty(e, "__esModule", {
|
|
80
|
-
value: !0
|
|
81
|
-
}), Object.defineProperty(e, "default", {
|
|
82
|
-
enumerable: !0,
|
|
83
|
-
get: function() {
|
|
84
|
-
return r.createSvgIcon;
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
var r = M;
|
|
88
|
-
}(c)), c;
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
q as i,
|
|
92
|
-
Q as r
|
|
93
|
-
};
|