@hybridcore/ui 1.2.0 → 1.3.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 (56) hide show
  1. package/dist/{ButtonBase-C7CHOX3y.js → ButtonBase-DZH9mTSs.js} +3 -3
  2. package/dist/{CardContent-DDFwwGfd.js → CardContent-CUZ9jH0z.js} +3 -3
  3. package/dist/{Checkbox-DP6_qp1v.js → Checkbox-RTVyZJPK.js} +6 -6
  4. package/dist/{Collapse-9egEADkh.js → Collapse-9zKUPtnk.js} +6 -6
  5. package/dist/{DialogContent-MMUsECN2.js → DialogContent-ijWcBrtC.js} +9 -9
  6. package/dist/{FormControl-Cj5nc-Nv.js → FormControl-C0mOl3mC.js} +6 -6
  7. package/dist/{FormControlLabel-j_atSYQA.js → FormControlLabel-BK6N5zeb.js} +11 -11
  8. package/dist/{IconButton-2FRFauye.js → IconButton-D7MS15zj.js} +4 -4
  9. package/dist/{Input-BY_yKOrF.js → Input-CIRMXtVU.js} +5 -5
  10. package/dist/{List-CgBXAAKA.js → List-D26ubZNL.js} +3 -3
  11. package/dist/{ListItem-BFDUUjHt.js → ListItem-B0ZWvhCF.js} +5 -5
  12. package/dist/{MenuItem-BejUFNIP.js → MenuItem-CI7xGSGZ.js} +6 -6
  13. package/dist/{OutlinedInput-CnzESIDi.js → OutlinedInput-aT_qMbXR.js} +5 -5
  14. package/dist/{Paper-k37cShvn.js → Paper-DuVFfsLZ.js} +4 -4
  15. package/dist/{Select-BGt6e73I.js → Select-B625rLnY.js} +14 -14
  16. package/dist/{Typography-Bjo-B13o.js → Typography-CJu4IM_v.js} +3 -3
  17. package/dist/{chainPropTypes-BmidnkZm.js → chainPropTypes-DHF53jrt.js} +2 -2
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +9 -9
  21. package/dist/components/confirm/dialog.js +5 -5
  22. package/dist/components/container/index.js +6 -6
  23. package/dist/components/context-menu/index.js +9 -9
  24. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  25. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  26. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  27. package/dist/components/date-time-picker/index.js +4 -4
  28. package/dist/components/geometry-picker/index.js +2 -2
  29. package/dist/components/icon-button/index.js +1 -1
  30. package/dist/components/map/styled.js +1 -1
  31. package/dist/components/search-input/index.js +3 -3
  32. package/dist/components/template-property-filters/index.js +481 -49
  33. package/dist/components/template-property-filters/property.js +10 -7017
  34. package/dist/components/tree-select/index.js +4 -4
  35. package/dist/components/treeview-filter/index.js +9 -9
  36. package/dist/components/treeview-filter/item/index.js +1 -1
  37. package/dist/components/treeview-filter/item-label/index.js +2 -2
  38. package/dist/{createSvgIcon-DAR6Hwv8.js → createSvgIcon-CpwgcuKn.js} +4 -4
  39. package/dist/{createSvgIcon-R_PakhKf.js → createSvgIcon-uzHr0c0Y.js} +3 -3
  40. package/dist/{createTheme-oOCi1S_n.js → createTheme-BynOz6vJ.js} +126 -123
  41. package/dist/{exactProp-DhXxfU8X.js → exactProp-BgztuVaT.js} +2 -2
  42. package/dist/{index-DHnXB0CB.js → index-C5fnQULf.js} +10 -10
  43. package/dist/{index-C7W2wuUG.js → index-CEj0z7vR.js} +6 -6
  44. package/dist/{listItemTextClasses-CaI8l2PD.js → listItemTextClasses-Lb51gZ03.js} +2 -2
  45. package/dist/main.d.ts +20 -0
  46. package/dist/main.js +33 -29
  47. package/dist/property-DyLBS7uO.js +7020 -0
  48. package/dist/{resolveComponentProps-BwtY1IP3.js → resolveComponentProps-D6QBz-nM.js} +1 -1
  49. package/dist/{styled-Wx2vv4j8.js → styled-B02_UC50.js} +1 -1
  50. package/dist/{styled-CHMAYxVs.js → styled-C3GYAbYC.js} +1 -1
  51. package/dist/{useTheme-CD5DEi5n.js → useTheme-BYHXX22B.js} +2 -2
  52. package/dist/{useTheme-BI40KZ7w.js → useTheme-rmCSkfoY.js} +1 -1
  53. package/dist/{useThemeProps-DT5EdhcP.js → useThemeProps-CR6NzUGU.js} +2 -2
  54. package/dist/{useThemeProps-D4or2IlT.js → useThemeProps-DzfjJKh1.js} +3 -3
  55. package/dist/{utils-BEaBPoDF.js → utils-CIiFkdEJ.js} +2 -2
  56. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  import { jsxs as h, Fragment as P, jsx as n } from "react/jsx-runtime";
2
2
  import T from "lodash";
3
3
  import v from "dayjs";
4
- import { Typography as F, Chip as B, Dialog as S, DialogTitle as j, DialogContent as N, DialogActions as W, Button as w, InputAdornment as Y, Tooltip as O, Stack as _ } from "@mui/material";
4
+ import { Typography as F, Chip as B, Dialog as S, DialogTitle as j, DialogContent as N, DialogActions as W, Button as D, InputAdornment as Y, Tooltip as O, Stack as _ } from "@mui/material";
5
5
  import { Container as y, Values as E, MiniButton as G } from "./components/data-management/instance-form/components/composite-list/styled.js";
6
6
  import { Add as H, LockOutlined as R } from "@mui/icons-material";
7
7
  import $ from "./hooks/useToggle.js";
8
8
  import { GeometryPicker as q } from "./components/geometry-picker/index.js";
9
9
  import { PhoneInput as J } from "./components/phone-input/index.js";
10
10
  import { DateTimePicker as K } from "./components/date-time-picker/index.js";
11
- import { T as D, F as Q } from "./FormControlLabel-j_atSYQA.js";
12
- import { B as x, C as U } from "./Checkbox-DP6_qp1v.js";
13
- import { F as X, I as Z } from "./FormControl-Cj5nc-Nv.js";
14
- import { S as M } from "./Select-BGt6e73I.js";
15
- import { M as z } from "./MenuItem-BejUFNIP.js";
11
+ import { T as w, F as Q } from "./FormControlLabel-BK6N5zeb.js";
12
+ import { B as x, C as U } from "./Checkbox-RTVyZJPK.js";
13
+ import { F as X, I as Z } from "./FormControl-C0mOl3mC.js";
14
+ import { S as M } from "./Select-B625rLnY.js";
15
+ import { M as z } from "./MenuItem-CI7xGSGZ.js";
16
16
  import { useState as ee } from "react";
17
17
  function ne({
18
18
  property: m,
@@ -82,7 +82,7 @@ function ne({
82
82
  ) : null }),
83
83
  /* @__PURE__ */ h(W, { children: [
84
84
  /* @__PURE__ */ n(
85
- w,
85
+ D,
86
86
  {
87
87
  variant: "contained",
88
88
  color: "inherit",
@@ -90,7 +90,7 @@ function ne({
90
90
  children: "Cancel"
91
91
  }
92
92
  ),
93
- /* @__PURE__ */ n(w, { variant: "contained", color: "primary", onClick: k, children: "Ok" })
93
+ /* @__PURE__ */ n(D, { variant: "contained", color: "primary", onClick: k, children: "Ok" })
94
94
  ] })
95
95
  ]
96
96
  }
@@ -151,7 +151,7 @@ function te({
151
151
  "bank-account"
152
152
  ].includes(e.type))
153
153
  return /* @__PURE__ */ n(
154
- D,
154
+ w,
155
155
  {
156
156
  label: e.name,
157
157
  name: e.propertyId,
@@ -191,7 +191,7 @@ function te({
191
191
  if (e.type === "list") {
192
192
  let t = "";
193
193
  return e.defaultValue && (t = T.isArray(e.defaultValue) ? l.join(", ") : e.defaultValue), l && (t = T.isArray(l) ? l.join(",") : l), /* @__PURE__ */ n(
194
- D,
194
+ w,
195
195
  {
196
196
  label: e.name,
197
197
  name: e.propertyId,
@@ -2,12 +2,12 @@ import { jsx as T, jsxs as ae } from "react/jsx-runtime";
2
2
  import xe from "./components/treeview-filter/item-label/index.js";
3
3
  import se from "lodash";
4
4
  import * as l from "react";
5
- import { P as o } from "./createTheme-oOCi1S_n.js";
6
- import { b as Ie, a as Te, e as he } from "./ButtonBase-C7CHOX3y.js";
7
- import { g as Ee, a as ve } from "./chainPropTypes-BmidnkZm.js";
8
- import { g as De, s as W } from "./styled-Wx2vv4j8.js";
9
- import { a as $, u as Ne } from "./useThemeProps-D4or2IlT.js";
10
- import { C as ie } from "./Collapse-9egEADkh.js";
5
+ import { P as o } from "./createTheme-BynOz6vJ.js";
6
+ import { b as Ie, a as Te, e as he } from "./ButtonBase-DZH9mTSs.js";
7
+ import { g as Ee, a as ve } from "./chainPropTypes-DHF53jrt.js";
8
+ import { g as De, s as W } from "./styled-B02_UC50.js";
9
+ import { a as $, u as Ne } from "./useThemeProps-DzfjJKh1.js";
10
+ import { C as ie } from "./Collapse-9zKUPtnk.js";
11
11
  import { u as Oe } from "./unsupportedProp-BuVD30Gh.js";
12
12
  import { o as Se } from "./ownerDocument-CUrv0DIK.js";
13
13
  function ce(e) {
@@ -1,5 +1,5 @@
1
- import { g as s } from "./chainPropTypes-BmidnkZm.js";
2
- import { g as e } from "./styled-Wx2vv4j8.js";
1
+ import { g as s } from "./chainPropTypes-DHF53jrt.js";
2
+ import { g as e } from "./styled-B02_UC50.js";
3
3
  function n(t) {
4
4
  return e("MuiListItemIcon", t);
5
5
  }
package/dist/main.d.ts CHANGED
@@ -59,6 +59,8 @@ declare interface CardProps {
59
59
  stats?: default_2.ReactNode;
60
60
  }
61
61
 
62
+ export declare const CollapsibleCard: FC<Props_10>;
63
+
62
64
  export declare const ConditionalWrapper: React.FC<ConditionalWrapperProps>;
63
65
 
64
66
  declare interface ConditionalWrapperProps {
@@ -464,6 +466,22 @@ declare interface Props {
464
466
  children?: default_2.ReactNode;
465
467
  }
466
468
 
469
+ declare interface Props_10 {
470
+ header: React.ReactNode;
471
+ content: React.ReactNode;
472
+ expanded?: boolean;
473
+ defaultExpanded?: boolean;
474
+ actions?: React.ReactNode;
475
+ sx?: SxProps_2;
476
+ onChange?(event: React.SyntheticEvent, newExpanded: boolean): void;
477
+ }
478
+
479
+ declare interface Props_11 {
480
+ values: FV.TemplateFilter[];
481
+ templates: Map<string | number, ONTOLOGY.TemplateType>;
482
+ onChange(values: FV.TemplateFilter[]): void;
483
+ }
484
+
467
485
  declare interface Props_2 {
468
486
  open: boolean;
469
487
  buttons: ButtonType[];
@@ -682,6 +700,8 @@ declare interface SubmitButton {
682
700
  onClick?(): void;
683
701
  }
684
702
 
703
+ export declare const TemplatePropertyFilters: FC<Props_11>;
704
+
685
705
  export declare const TreeSelect: FC<TreeSelectProps>;
686
706
 
687
707
  declare interface TreeSelectProps {
package/dist/main.js CHANGED
@@ -1,43 +1,47 @@
1
1
  import { Access as e } from "./components/access/index.js";
2
- import { Card as m } from "./components/card/index.js";
2
+ import { Card as p } from "./components/card/index.js";
3
3
  import { ConditionalWrapper as f } from "./components/conditional-wrapper/index.js";
4
- import { alert as n, confirm as i } from "./components/confirm/index.js";
4
+ import { alert as i, confirm as n } from "./components/confirm/index.js";
5
5
  import { Container as c } from "./components/container/index.js";
6
- import { ContextMenu as u } from "./components/context-menu/index.js";
7
- import { InstanceForm as P } from "./components/data-management/instance-form/index.js";
8
- import { DisseminationList as y } from "./components/data-security-selectors/dissemination-list/index.js";
6
+ import { ContextMenu as s } from "./components/context-menu/index.js";
7
+ import { InstanceForm as C } from "./components/data-management/instance-form/index.js";
8
+ import { DisseminationList as d } from "./components/data-security-selectors/dissemination-list/index.js";
9
9
  import { SecurityLevel as I } from "./components/data-security-selectors/security-level/index.js";
10
- import { DateTimePicker as L } from "./components/date-time-picker/index.js";
11
- import { GeometryPicker as T } from "./components/geometry-picker/index.js";
12
- import { IconButton as k } from "./components/icon-button/index.js";
13
- import { KeyProtectionMenu as F } from "./components/key-protection/menu.js";
14
- import { S as g } from "./utils-Bq0ye5vf.js";
15
- import { Loading as w } from "./components/loading/index.js";
16
- import { i as B } from "./index-JrtqxUdI.js";
17
- import { PhoneInput as U } from "./components/phone-input/index.js";
18
- import { SearchInput as W } from "./components/search-input/index.js";
10
+ import { DateTimePicker as T } from "./components/date-time-picker/index.js";
11
+ import { GeometryPicker as L } from "./components/geometry-picker/index.js";
12
+ import { IconButton as h } from "./components/icon-button/index.js";
13
+ import { KeyProtectionMenu as D } from "./components/key-protection/menu.js";
14
+ import { S as b } from "./utils-Bq0ye5vf.js";
15
+ import { Loading as v } from "./components/loading/index.js";
16
+ import { i as A } from "./index-JrtqxUdI.js";
17
+ import { PhoneInput as G } from "./components/phone-input/index.js";
18
+ import { SearchInput as V } from "./components/search-input/index.js";
19
19
  import { TreeSelect as j } from "./components/tree-select/index.js";
20
20
  import { TreeViewFilter as z } from "./components/treeview-filter/index.js";
21
+ import { CollapsibleCard as H } from "./components/collapsible-card/index.js";
22
+ import { TemplatePropertyFilters as N } from "./components/template-property-filters/index.js";
21
23
  export {
22
24
  e as Access,
23
- m as Card,
25
+ p as Card,
26
+ H as CollapsibleCard,
24
27
  f as ConditionalWrapper,
25
28
  c as Container,
26
- u as ContextMenu,
27
- L as DateTimePicker,
28
- y as DisseminationList,
29
- T as GeometryPicker,
30
- k as IconButton,
31
- P as InstanceForm,
32
- g as KeyProductionUtils,
33
- F as KeyProtectionMenu,
34
- w as Loading,
35
- B as Map,
36
- U as PhoneInput,
37
- W as SearchInput,
29
+ s as ContextMenu,
30
+ T as DateTimePicker,
31
+ d as DisseminationList,
32
+ L as GeometryPicker,
33
+ h as IconButton,
34
+ C as InstanceForm,
35
+ b as KeyProductionUtils,
36
+ D as KeyProtectionMenu,
37
+ v as Loading,
38
+ A as Map,
39
+ G as PhoneInput,
40
+ V as SearchInput,
38
41
  I as SecurityLevel,
42
+ N as TemplatePropertyFilters,
39
43
  j as TreeSelect,
40
44
  z as TreeViewFilter,
41
- n as alert,
42
- i as confirm
45
+ i as alert,
46
+ n as confirm
43
47
  };