@hybridcore/ui 1.3.7 → 1.4.1

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.
Files changed (126) hide show
  1. package/dist/AccordionDetails-CGs6GZQK.js +454 -0
  2. package/dist/Add-eepk2WTM.js +379 -0
  3. package/dist/Box-BPyg-Ybm.js +70 -0
  4. package/dist/Button-DLwB_sKd.js +354 -0
  5. package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
  6. package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
  7. package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
  8. package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
  9. package/dist/Delete-OHEw9lDi.js +22 -0
  10. package/dist/DialogContent-CxOSq6h9.js +519 -0
  11. package/dist/FormControlLabel-D9KFjcIx.js +193 -0
  12. package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
  13. package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
  14. package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
  15. package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
  16. package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
  17. package/dist/ListItem-CZbZ91vp.js +428 -0
  18. package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
  19. package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
  20. package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
  21. package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
  22. package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
  23. package/dist/Tabs-BzelDJKy.js +787 -0
  24. package/dist/TextField-D87qTh1k.js +457 -0
  25. package/dist/Typography-Bm7PFqUT.js +176 -0
  26. package/dist/assets/index.css +1 -1
  27. package/dist/assets/index2.css +1 -1
  28. package/dist/components/card/index.js +341 -179
  29. package/dist/components/card/styled.js +1 -1
  30. package/dist/components/collapsible-card/style.js +20 -466
  31. package/dist/components/confirm/dialog.js +8 -149
  32. package/dist/components/confirm/index.js +1 -1
  33. package/dist/components/container/index.js +7 -7
  34. package/dist/components/context-menu/index.js +191 -604
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  36. package/dist/components/data-security-selectors/security-level/index.js +42 -40
  37. package/dist/components/date-time-picker/index.js +18 -19
  38. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  39. package/dist/components/geometry-picker/edit/index.js +16 -16
  40. package/dist/components/geometry-picker/geometry/index.js +35 -35
  41. package/dist/components/geometry-picker/index.js +3 -3
  42. package/dist/components/geometry-picker/kml/index.js +14 -14
  43. package/dist/components/geometry-picker/map/index.js +1 -1
  44. package/dist/components/geometry-picker/map/logic.js +38 -37
  45. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
  46. package/dist/components/geometry-picker/parser/logic.js +33 -32
  47. package/dist/components/icon-button/index.js +1 -1
  48. package/dist/components/icon-button/styled.js +0 -2
  49. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
  50. package/dist/components/instance-form/components/variable/index.js +19 -0
  51. package/dist/components/instance-form/components/variables/index.js +40 -0
  52. package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
  53. package/dist/components/instance-hierarchy-table/index.js +58 -0
  54. package/dist/components/instance-hierarchy-table/styled.js +29 -0
  55. package/dist/components/instance-table/index.js +125 -0
  56. package/dist/components/instance-table/styled.js +13 -0
  57. package/dist/components/map/helpers/ol.js +1 -1
  58. package/dist/components/map/index.js +1 -1
  59. package/dist/components/map/logic.js +1 -1
  60. package/dist/components/map/styled.js +1 -1
  61. package/dist/components/phone-input/index.js +1 -1
  62. package/dist/components/property-mapping/index.js +558 -0
  63. package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
  64. package/dist/components/range-selector/components/date-range/index.js +9 -0
  65. package/dist/components/range-selector/components/geometry-range/index.js +26 -0
  66. package/dist/components/range-selector/components/number-range/index.js +86 -0
  67. package/dist/components/range-selector/components/string-range/index.js +31 -0
  68. package/dist/components/range-selector/index.js +59 -0
  69. package/dist/components/search-input/index.js +4 -4
  70. package/dist/components/tabs/appleTabs.style.js +55 -0
  71. package/dist/components/tabs/index.js +93 -0
  72. package/dist/components/tabs/tab-panel.js +18 -0
  73. package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
  74. package/dist/components/template-form/components/property-list/index.js +72 -0
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
  76. package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
  77. package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
  78. package/dist/components/template-form/components/property-list/types.js +8 -0
  79. package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
  80. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
  81. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
  82. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
  83. package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
  84. package/dist/components/template-form/components/select-icon/index.js +186 -0
  85. package/dist/components/template-form/components/select-icon/styled.js +76 -0
  86. package/dist/components/template-form/index.js +338 -0
  87. package/dist/components/template-property-filters/property.js +48 -46
  88. package/dist/components/tree-select/index.js +16 -15
  89. package/dist/components/tree-select/styled.js +2 -2
  90. package/dist/components/treeview-filter/index.js +8 -8
  91. package/dist/components/treeview-filter/item/index.js +1 -1
  92. package/dist/components/treeview-filter/item-label/index.js +18 -17
  93. package/dist/constants/index.js +41 -0
  94. package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
  95. package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
  96. package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
  97. package/dist/dialog-v5-nL5yy.js +153 -0
  98. package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
  99. package/dist/extendSxProp-qqdkfHzS.js +30 -0
  100. package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
  101. package/dist/index-C1fczHEW.js +11042 -0
  102. package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
  103. package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
  104. package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
  105. package/dist/main.d.ts +562 -78
  106. package/dist/main.js +157 -157
  107. package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
  108. package/dist/property-list-form-BfP9gzSo.js +391 -0
  109. package/dist/requirePropFactory-BjhhI-AW.js +18 -0
  110. package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
  111. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  112. package/dist/useControlled-BYdyS7Pn.js +31 -0
  113. package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
  114. package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
  115. package/dist/utils/ontology.js +52 -30
  116. package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
  117. package/package.json +2 -1
  118. package/dist/DialogContent-BCYm_d1s.js +0 -864
  119. package/dist/FormControlLabel-DENNVXWL.js +0 -639
  120. package/dist/Typography-Dg-ROiTA.js +0 -201
  121. package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
  122. package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
  123. package/dist/createSvgIcon-B2WT0K4k.js +0 -87
  124. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
  125. package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
  126. package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
@@ -1,201 +0,0 @@
1
- import { a as f, _ as p } from "./extends-Cyw62AD_.js";
2
- import * as B from "react";
3
- import { d as C, i as O, a as d, P as r } from "./createStyled-B96gjom1.js";
4
- import { g as W, u as j, c as _, a as M } from "./useThemeProps-DeftUmqJ.js";
5
- import { g as N, s as R } from "./styled-cPJbqF0E.js";
6
- import { jsx as $ } from "react/jsx-runtime";
7
- const U = ["sx"], A = (o) => {
8
- var t, a;
9
- const n = {
10
- systemProps: {},
11
- otherProps: {}
12
- }, s = (t = o == null || (a = o.theme) == null ? void 0 : a.unstable_sxConfig) != null ? t : C;
13
- return Object.keys(o).forEach((e) => {
14
- s[e] ? n.systemProps[e] = o[e] : n.otherProps[e] = o[e];
15
- }), n;
16
- };
17
- function E(o) {
18
- const {
19
- sx: t
20
- } = o, a = f(o, U), {
21
- systemProps: n,
22
- otherProps: s
23
- } = A(a);
24
- let e;
25
- return Array.isArray(t) ? e = [n, ...t] : typeof t == "function" ? e = (...l) => {
26
- const i = t(...l);
27
- return O(i) ? p({}, n, i) : n;
28
- } : e = p({}, n, t), p({}, s, {
29
- sx: e
30
- });
31
- }
32
- function D(o) {
33
- return N("MuiTypography", o);
34
- }
35
- W("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
36
- const L = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], S = (o) => {
37
- const {
38
- align: t,
39
- gutterBottom: a,
40
- noWrap: n,
41
- paragraph: s,
42
- variant: e,
43
- classes: l
44
- } = o, i = {
45
- root: ["root", e, o.align !== "inherit" && `align${d(t)}`, a && "gutterBottom", n && "noWrap", s && "paragraph"]
46
- };
47
- return M(i, D, l);
48
- }, V = R("span", {
49
- name: "MuiTypography",
50
- slot: "Root",
51
- overridesResolver: (o, t) => {
52
- const {
53
- ownerState: a
54
- } = o;
55
- return [t.root, a.variant && t[a.variant], a.align !== "inherit" && t[`align${d(a.align)}`], a.noWrap && t.noWrap, a.gutterBottom && t.gutterBottom, a.paragraph && t.paragraph];
56
- }
57
- })(({
58
- theme: o,
59
- ownerState: t
60
- }) => p({
61
- margin: 0
62
- }, t.variant && o.typography[t.variant], t.align !== "inherit" && {
63
- textAlign: t.align
64
- }, t.noWrap && {
65
- overflow: "hidden",
66
- textOverflow: "ellipsis",
67
- whiteSpace: "nowrap"
68
- }, t.gutterBottom && {
69
- marginBottom: "0.35em"
70
- }, t.paragraph && {
71
- marginBottom: 16
72
- })), y = {
73
- h1: "h1",
74
- h2: "h2",
75
- h3: "h3",
76
- h4: "h4",
77
- h5: "h5",
78
- h6: "h6",
79
- subtitle1: "h6",
80
- subtitle2: "h6",
81
- body1: "p",
82
- body2: "p",
83
- inherit: "p"
84
- }, k = {
85
- primary: "primary.main",
86
- textPrimary: "text.primary",
87
- secondary: "secondary.main",
88
- textSecondary: "text.secondary",
89
- error: "error.main"
90
- }, w = (o) => k[o] || o, z = /* @__PURE__ */ B.forwardRef(function(t, a) {
91
- const n = j({
92
- props: t,
93
- name: "MuiTypography"
94
- }), s = w(n.color), e = E(p({}, n, {
95
- color: s
96
- })), {
97
- align: l = "inherit",
98
- className: i,
99
- component: h,
100
- gutterBottom: b = !1,
101
- noWrap: x = !1,
102
- paragraph: g = !1,
103
- variant: c = "body1",
104
- variantMapping: m = y
105
- } = e, v = f(e, L), u = p({}, e, {
106
- align: l,
107
- color: s,
108
- className: i,
109
- component: h,
110
- gutterBottom: b,
111
- noWrap: x,
112
- paragraph: g,
113
- variant: c,
114
- variantMapping: m
115
- }), T = h || (g ? "p" : m[c] || y[c]) || "span", P = S(u);
116
- return /* @__PURE__ */ $(V, p({
117
- as: T,
118
- ref: a,
119
- ownerState: u,
120
- className: _(P.root, i)
121
- }, v));
122
- });
123
- process.env.NODE_ENV !== "production" && (z.propTypes = {
124
- // ----------------------------- Warning --------------------------------
125
- // | These PropTypes are generated from the TypeScript type definitions |
126
- // | To update them edit the d.ts file and run "yarn proptypes" |
127
- // ----------------------------------------------------------------------
128
- /**
129
- * Set the text-align on the component.
130
- * @default 'inherit'
131
- */
132
- align: r.oneOf(["center", "inherit", "justify", "left", "right"]),
133
- /**
134
- * The content of the component.
135
- */
136
- children: r.node,
137
- /**
138
- * Override or extend the styles applied to the component.
139
- */
140
- classes: r.object,
141
- /**
142
- * @ignore
143
- */
144
- className: r.string,
145
- /**
146
- * The component used for the root node.
147
- * Either a string to use a HTML element or a component.
148
- */
149
- component: r.elementType,
150
- /**
151
- * If `true`, the text will have a bottom margin.
152
- * @default false
153
- */
154
- gutterBottom: r.bool,
155
- /**
156
- * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
157
- *
158
- * Note that text overflow can only happen with block or inline-block level elements
159
- * (the element needs to have a width in order to overflow).
160
- * @default false
161
- */
162
- noWrap: r.bool,
163
- /**
164
- * If `true`, the element will be a paragraph element.
165
- * @default false
166
- */
167
- paragraph: r.bool,
168
- /**
169
- * The system prop that allows defining system overrides as well as additional CSS styles.
170
- */
171
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
172
- /**
173
- * Applies the theme typography styles.
174
- * @default 'body1'
175
- */
176
- variant: r.oneOfType([r.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), r.string]),
177
- /**
178
- * The component maps the variant prop to a range of different HTML element types.
179
- * For instance, subtitle1 to `<h6>`.
180
- * If you wish to change that mapping, you can provide your own.
181
- * Alternatively, you can use the `component` prop.
182
- * @default {
183
- * h1: 'h1',
184
- * h2: 'h2',
185
- * h3: 'h3',
186
- * h4: 'h4',
187
- * h5: 'h5',
188
- * h6: 'h6',
189
- * subtitle1: 'h6',
190
- * subtitle2: 'h6',
191
- * body1: 'p',
192
- * body2: 'p',
193
- * inherit: 'p',
194
- * }
195
- */
196
- variantMapping: r.object
197
- });
198
- export {
199
- z as T,
200
- E as e
201
- };
@@ -1,17 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "lodash";
3
- import "dayjs";
4
- import { V as b } from "../../../../../index-CJVcedWy.js";
5
- import "@mui/material";
6
- import "@mui/icons-material";
7
- import "../../../../geometry-picker/index.js";
8
- import "../../../../phone-input/index.js";
9
- import "../../../../date-time-picker/index.js";
10
- import "../../../../../FormControlLabel-DENNVXWL.js";
11
- import "../../../../../Checkbox-BFWhj3s-.js";
12
- import "../../../../../FormControl-BMRUQKHh.js";
13
- import "../../../../../Select-NDq3WyLt.js";
14
- import "../../../../../MenuItem-DstAFfik.js";
15
- export {
16
- b as default
17
- };
@@ -1,41 +0,0 @@
1
- import { jsx as t, Fragment as i } from "react/jsx-runtime";
2
- import f from "react";
3
- import { V as m } from "../../../../../index-CJVcedWy.js";
4
- import c from "lodash";
5
- function b({
6
- template: o,
7
- value: n,
8
- mapboxAccessToken: a,
9
- variant: s = "outlined",
10
- onChange: u
11
- }) {
12
- if (o === void 0) return /* @__PURE__ */ t(i, {});
13
- const l = f.useMemo(() => {
14
- let r = o.properties.filter((e) => e.visible);
15
- return r = c.orderBy(r, "id"), r;
16
- }, [o]), p = (r) => {
17
- const e = {
18
- target: {
19
- value: { ...n, ...r }
20
- }
21
- };
22
- u(e);
23
- };
24
- return /* @__PURE__ */ t(i, { children: l.map((r, e) => {
25
- const d = n[r.propertyId];
26
- return /* @__PURE__ */ t(
27
- m,
28
- {
29
- property: r,
30
- value: d,
31
- mapboxAccessToken: a,
32
- variant: s,
33
- onChange: p
34
- },
35
- e
36
- );
37
- }) });
38
- }
39
- export {
40
- b as default
41
- };
@@ -1,87 +0,0 @@
1
- import { a as h, k as g } from "./createStyled-B96gjom1.js";
2
- import { c as b, u as E } from "./createSvgIcon-BNrb7rDY.js";
3
- import { C as y } from "./styled-cPJbqF0E.js";
4
- import { c as C, u as N } from "./useId-BHG98T5I.js";
5
- import { d as S } from "./debounce-46wSf_lW.js";
6
- import { o as I } from "./ownerWindow-niciwP7I.js";
7
- import { _ as $ } from "./extends-Cyw62AD_.js";
8
- import { s as x, u as T, b as q, a as P, c as w } from "./ButtonBase-D6qhsxB0.js";
9
- import { i as D } from "./isMuiElement-CxT3_ACP.js";
10
- import { o as O } from "./ownerDocument-CUrv0DIK.js";
11
- import { u as R } from "./Collapse-D_TjnyE5.js";
12
- function M(e, t) {
13
- return process.env.NODE_ENV === "production" ? () => null : (r, s, u, o, n) => {
14
- const a = u || "<<anonymous>>", i = n || s;
15
- return typeof r[s] < "u" ? new Error(`The ${o} \`${i}\` of \`${a}\` is deprecated. ${t}`) : null;
16
- };
17
- }
18
- function j(e, t) {
19
- if (process.env.NODE_ENV === "production")
20
- return () => null;
21
- const r = t ? $({}, t.propTypes) : null;
22
- return (u) => (o, n, a, i, l, ...v) => {
23
- const f = l || n, p = r == null ? void 0 : r[f];
24
- if (p) {
25
- const m = p(o, n, a, i, l, ...v);
26
- if (m)
27
- return m;
28
- }
29
- return typeof o[n] < "u" && !o[u] ? new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${u}\` prop.`) : null;
30
- };
31
- }
32
- const k = {
33
- configure: (e) => {
34
- 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(`
35
- `)), y.configure(e);
36
- }
37
- }, F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38
- __proto__: null,
39
- capitalize: h,
40
- createChainedFunction: C,
41
- createSvgIcon: b,
42
- debounce: S,
43
- deprecatedPropType: M,
44
- isMuiElement: D,
45
- ownerDocument: O,
46
- ownerWindow: I,
47
- requirePropFactory: j,
48
- setRef: x,
49
- unstable_ClassNameGenerator: k,
50
- unstable_useEnhancedEffect: T,
51
- unstable_useId: N,
52
- unsupportedProp: R,
53
- useControlled: E,
54
- useEventCallback: q,
55
- useForkRef: P,
56
- useIsFocusVisible: w
57
- }, Symbol.toStringTag, { value: "Module" }));
58
- var _ = { exports: {} };
59
- (function(e) {
60
- function t(r) {
61
- return r && r.__esModule ? r : {
62
- default: r
63
- };
64
- }
65
- e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
66
- })(_);
67
- var Q = _.exports, c = {};
68
- const G = /* @__PURE__ */ g(F);
69
- var d;
70
- function X() {
71
- return d || (d = 1, function(e) {
72
- "use client";
73
- Object.defineProperty(e, "__esModule", {
74
- value: !0
75
- }), Object.defineProperty(e, "default", {
76
- enumerable: !0,
77
- get: function() {
78
- return t.createSvgIcon;
79
- }
80
- });
81
- var t = G;
82
- }(c)), c;
83
- }
84
- export {
85
- Q as i,
86
- X as r
87
- };
@@ -1,12 +1,3 @@
1
- function i(r, e) {
2
- if (r == null) return {};
3
- var t = {};
4
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5
- if (e.includes(n)) continue;
6
- t[n] = r[n];
7
- }
8
- return t;
9
- }
10
1
  function a() {
11
2
  return a = Object.assign ? Object.assign.bind() : function(r) {
12
3
  for (var e = 1; e < arguments.length; e++) {
@@ -16,6 +7,15 @@ function a() {
16
7
  return r;
17
8
  }, a.apply(null, arguments);
18
9
  }
10
+ function i(r, e) {
11
+ if (r == null) return {};
12
+ var t = {};
13
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
14
+ if (e.includes(n)) continue;
15
+ t[n] = r[n];
16
+ }
17
+ return t;
18
+ }
19
19
  export {
20
20
  a as _,
21
21
  i as a