@hybridcore/ui 1.6.0 → 1.6.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 (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. package/dist/utils-BDNynJcd.js +0 -365
@@ -6,33 +6,31 @@ import { DatePickerWithCustomRangeRoot as He, DatePickerWithCustomRangeToggle as
6
6
  import { a as y, _ as H } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
7
7
  import V from "dayjs";
8
8
  import { c as G, a as K } from "./_commonjsHelpers-BVfed4GL.js";
9
- import { b as Ne, P as qe, u as z, a as ue, i as De, c as Me, d as ge, e as Ue, f as Ze, g as J, h as Qe, s as de, j as Je, v as ce, k as Ge, r as B, C as Ke, l as Te, m as Pe, n as Xe, o as et, p as tt, D as ot } from "./useMobilePicker-BLg3Blg8.js";
9
+ import { b as Ne, P as qe, u as z, a as ue, i as De, c as Me, d as ge, e as Ue, f as Ze, g as J, h as Qe, s as de, j as Je, v as ce, k as Ge, r as B, C as Ke, l as Te, m as Pe, n as Xe, o as et, p as tt, D as ot } from "./useMobilePicker-B-M3dnTn.js";
10
10
  import * as I from "react";
11
11
  import { P as e } from "./index-C__OZmYy.js";
12
- import { g as rt, u as X, a as nt } from "./useThemeProps-BzzHcQyd.js";
13
- import { g as at } from "./createTheme-DYxDnE9u.js";
14
- import { s as Oe } from "./styled-eZwjUruw.js";
15
- import { T as st } from "./Typography-CxbneZy_.js";
16
- import { T as it } from "./TextField-1yCesIbH.js";
12
+ import { g as nt, b as rt, s as Oe, u as X, a as at } from "./styled-Bsjp3kFh.js";
13
+ import { T as st } from "./Typography-B-Z5Y0Xq.js";
14
+ import { T as it } from "./TextField-DSDIEEKu.js";
17
15
  var xe = { exports: {} };
18
16
  (function(h, d) {
19
17
  (function(l, u) {
20
18
  h.exports = u();
21
19
  })(G, function() {
22
20
  var l = "week", u = "year";
23
- return function(t, o, r) {
21
+ return function(t, o, n) {
24
22
  var a = o.prototype;
25
- a.week = function(n) {
26
- if (n === void 0 && (n = null), n !== null) return this.add(7 * (n - this.week()), "day");
23
+ a.week = function(r) {
24
+ if (r === void 0 && (r = null), r !== null) return this.add(7 * (r - this.week()), "day");
27
25
  var c = this.$locale().yearStart || 1;
28
26
  if (this.month() === 11 && this.date() > 25) {
29
- var s = r(this).startOf(u).add(1, u).date(c), b = r(this).endOf(l);
27
+ var s = n(this).startOf(u).add(1, u).date(c), b = n(this).endOf(l);
30
28
  if (s.isBefore(b)) return 1;
31
29
  }
32
- var D = r(this).startOf(u).date(c).startOf(l).subtract(1, "millisecond"), O = this.diff(D, l, !0);
33
- return O < 0 ? r(this).startOf("week").week() : Math.ceil(O);
34
- }, a.weeks = function(n) {
35
- return n === void 0 && (n = null), this.week(n);
30
+ var D = n(this).startOf(u).date(c).startOf(l).subtract(1, "millisecond"), O = this.diff(D, l, !0);
31
+ return O < 0 ? n(this).startOf("week").week() : Math.ceil(O);
32
+ }, a.weeks = function(r) {
33
+ return r === void 0 && (r = null), this.week(r);
36
34
  };
37
35
  };
38
36
  });
@@ -44,7 +42,7 @@ var ve = { exports: {} };
44
42
  (function(l, u) {
45
43
  h.exports = u();
46
44
  })(G, function() {
47
- var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, t = /\d/, o = /\d\d/, r = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, n = {}, c = function(i) {
45
+ var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, t = /\d/, o = /\d\d/, n = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, r = {}, c = function(i) {
48
46
  return (i = +i) + (i > 68 ? 1900 : 2e3);
49
47
  }, s = function(i) {
50
48
  return function(f) {
@@ -57,10 +55,10 @@ var ve = { exports: {} };
57
55
  return m === 0 ? 0 : p[0] === "+" ? -m : m;
58
56
  }(i);
59
57
  }], D = function(i) {
60
- var f = n[i];
58
+ var f = r[i];
61
59
  return f && (f.indexOf ? f : f.s.concat(f.f));
62
60
  }, O = function(i, f) {
63
- var p, m = n.meridiem;
61
+ var p, m = r.meridiem;
64
62
  if (m) {
65
63
  for (var g = 1; g <= 24; g += 1) if (i.indexOf(m(g, 0, f)) > -1) {
66
64
  p = g > 12;
@@ -80,10 +78,10 @@ var ve = { exports: {} };
80
78
  this.milliseconds = 10 * +i;
81
79
  }], SSS: [/\d{3}/, function(i) {
82
80
  this.milliseconds = +i;
83
- }], s: [r, s("seconds")], ss: [r, s("seconds")], m: [r, s("minutes")], mm: [r, s("minutes")], H: [r, s("hours")], h: [r, s("hours")], HH: [r, s("hours")], hh: [r, s("hours")], D: [r, s("day")], DD: [o, s("day")], Do: [a, function(i) {
84
- var f = n.ordinal, p = i.match(/\d+/);
81
+ }], s: [n, s("seconds")], ss: [n, s("seconds")], m: [n, s("minutes")], mm: [n, s("minutes")], H: [n, s("hours")], h: [n, s("hours")], HH: [n, s("hours")], hh: [n, s("hours")], D: [n, s("day")], DD: [o, s("day")], Do: [a, function(i) {
82
+ var f = r.ordinal, p = i.match(/\d+/);
85
83
  if (this.day = p[0], f) for (var m = 1; m <= 31; m += 1) f(m).replace(/\[|\]/g, "") === i && (this.day = m);
86
- }], w: [r, s("week")], ww: [o, s("week")], M: [r, s("month")], MM: [o, s("month")], MMM: [a, function(i) {
84
+ }], w: [n, s("week")], ww: [o, s("week")], M: [n, s("month")], MM: [o, s("month")], MMM: [a, function(i) {
87
85
  var f = D("months"), p = (D("monthsShort") || f.map(function(m) {
88
86
  return m.slice(0, 3);
89
87
  })).indexOf(i) + 1;
@@ -98,7 +96,7 @@ var ve = { exports: {} };
98
96
  }], YYYY: [/\d{4}/, s("year")], Z: b, ZZ: b };
99
97
  function v(i) {
100
98
  var f, p;
101
- f = i, p = n && n.formats;
99
+ f = i, p = r && r.formats;
102
100
  for (var m = (i = f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(A, S, k) {
103
101
  var w = k && k.toUpperCase();
104
102
  return S || p[k] || l[k] || p[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(C, R, _) {
@@ -135,17 +133,17 @@ var ve = { exports: {} };
135
133
  var F = P[1];
136
134
  if (typeof F == "string") {
137
135
  var A = P[2] === !0, S = P[3] === !0, k = A || S, w = P[2];
138
- S && (w = P[2]), n = this.$locale(), !A && w && (n = p.Ls[w]), this.$d = function(N, W, $, q) {
136
+ S && (w = P[2]), r = this.$locale(), !A && w && (r = p.Ls[w]), this.$d = function(N, W, $, q) {
139
137
  try {
140
138
  if (["x", "X"].indexOf(W) > -1) return new Date((W === "X" ? 1e3 : 1) * N);
141
- var x = v(W)(N), ee = x.year, U = x.month, Re = x.day, je = x.hours, Ae = x.minutes, _e = x.seconds, $e = x.milliseconds, fe = x.zone, pe = x.week, te = /* @__PURE__ */ new Date(), oe = Re || (ee || U ? 1 : te.getDate()), re = ee || te.getFullYear(), Z = 0;
139
+ var x = v(W)(N), ee = x.year, U = x.month, Re = x.day, je = x.hours, Ae = x.minutes, _e = x.seconds, $e = x.milliseconds, fe = x.zone, pe = x.week, te = /* @__PURE__ */ new Date(), oe = Re || (ee || U ? 1 : te.getDate()), ne = ee || te.getFullYear(), Z = 0;
142
140
  ee && !U || (Z = U > 0 ? U - 1 : te.getMonth());
143
- var Q, ne = je || 0, ae = Ae || 0, se = _e || 0, ie = $e || 0;
144
- return fe ? new Date(Date.UTC(re, Z, oe, ne, ae, se, ie + 60 * fe.offset * 1e3)) : $ ? new Date(Date.UTC(re, Z, oe, ne, ae, se, ie)) : (Q = new Date(re, Z, oe, ne, ae, se, ie), pe && (Q = q(Q).week(pe).toDate()), Q);
141
+ var Q, re = je || 0, ae = Ae || 0, se = _e || 0, ie = $e || 0;
142
+ return fe ? new Date(Date.UTC(ne, Z, oe, re, ae, se, ie + 60 * fe.offset * 1e3)) : $ ? new Date(Date.UTC(ne, Z, oe, re, ae, se, ie)) : (Q = new Date(ne, Z, oe, re, ae, se, ie), pe && (Q = q(Q).week(pe).toDate()), Q);
145
143
  } catch {
146
144
  return /* @__PURE__ */ new Date("");
147
145
  }
148
- }(j, F, L, p), this.init(), w && w !== !0 && (this.$L = this.locale(w).$L), k && j != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), n = {};
146
+ }(j, F, L, p), this.init(), w && w !== !0 && (this.$L = this.locale(w).$L), k && j != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), r = {};
149
147
  } else if (F instanceof Array) for (var C = F.length, R = 1; R <= C; R += 1) {
150
148
  P[1] = F[R - 1];
151
149
  var _ = p.apply(this, P);
@@ -169,9 +167,9 @@ var we = { exports: {} };
169
167
  })(G, function() {
170
168
  var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
171
169
  return function(u, t, o) {
172
- var r = t.prototype, a = r.format;
173
- o.en.formats = l, r.format = function(n) {
174
- n === void 0 && (n = "YYYY-MM-DDTHH:mm:ssZ");
170
+ var n = t.prototype, a = n.format;
171
+ o.en.formats = l, n.format = function(r) {
172
+ r === void 0 && (r = "YYYY-MM-DDTHH:mm:ssZ");
175
173
  var c = this.$locale().formats, s = function(b, D) {
176
174
  return b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, Y, v) {
177
175
  var i = v && v.toUpperCase();
@@ -179,7 +177,7 @@ var we = { exports: {} };
179
177
  return p || m.slice(1);
180
178
  });
181
179
  });
182
- }(n, c === void 0 ? {} : c);
180
+ }(r, c === void 0 ? {} : c);
183
181
  return a.call(this, s);
184
182
  };
185
183
  };
@@ -193,8 +191,8 @@ var ke = { exports: {} };
193
191
  h.exports = u();
194
192
  })(G, function() {
195
193
  return function(l, u, t) {
196
- u.prototype.isBetween = function(o, r, a, n) {
197
- var c = t(o), s = t(r), b = (n = n || "()")[0] === "(", D = n[1] === ")";
194
+ u.prototype.isBetween = function(o, n, a, r) {
195
+ var c = t(o), s = t(n), b = (r = r || "()")[0] === "(", D = r[1] === ")";
198
196
  return (b ? this.isAfter(c, a) : !this.isBefore(c, a)) && (D ? this.isBefore(s, a) : !this.isAfter(s, a)) || (b ? this.isBefore(c, a) : !this.isAfter(c, a)) && (D ? this.isAfter(s, a) : !this.isBefore(s, a));
199
197
  };
200
198
  };
@@ -327,52 +325,52 @@ class gt {
327
325
  end: "]"
328
326
  }, this.formatTokenMap = bt, this.getLocaleFormats = () => {
329
327
  var t;
330
- const o = (t = this.rawDayJsInstance.Ls) != null ? t : V.Ls, r = this.locale || "en";
331
- let a = o[r];
328
+ const o = (t = this.rawDayJsInstance.Ls) != null ? t : V.Ls, n = this.locale || "en";
329
+ let a = o[n];
332
330
  return a === void 0 && (yt(), a = o.en), a.formats;
333
331
  }, this.date = (t) => t === null ? null : this.dayjs(t), this.toJsDate = (t) => t.toDate(), this.parseISO = (t) => this.dayjs(t), this.toISO = (t) => t.toISOString(), this.parse = (t, o) => t === "" ? null : this.dayjs(t, o, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || "en", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || ""), this.expandFormat = (t) => {
334
- const o = this.getLocaleFormats(), r = (a) => a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (n, c, s) => c || s.slice(1));
335
- return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (a, n, c) => {
332
+ const o = this.getLocaleFormats(), n = (a) => a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (r, c, s) => c || s.slice(1));
333
+ return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (a, r, c) => {
336
334
  const s = c && c.toUpperCase();
337
- return n || o[c] || r(o[s]);
335
+ return r || o[c] || n(o[s]);
338
336
  });
339
- }, this.getFormatHelperText = (t) => this.expandFormat(t).replace(/a/gi, "(a|p)m").toLocaleLowerCase(), this.isNull = (t) => t === null, this.isValid = (t) => this.dayjs(t).isValid(), this.format = (t, o) => this.formatByString(t, this.formats[o]), this.formatByString = (t, o) => this.dayjs(t).format(o), this.formatNumber = (t) => t, this.getDiff = (t, o, r) => t.diff(o, r), this.isEqual = (t, o) => t === null && o === null ? !0 : this.dayjs(t).isSame(o), this.isSameYear = (t, o) => t.isSame(o, "year"), this.isSameMonth = (t, o) => t.isSame(o, "month"), this.isSameDay = (t, o) => t.isSame(o, "day"), this.isSameHour = (t, o) => t.isSame(o, "hour"), this.isAfter = (t, o) => t.isAfter(o), this.isAfterYear = (t, o) => t.isAfter(o, "year"), this.isAfterDay = (t, o) => t.isAfter(o, "day"), this.isBefore = (t, o) => t.isBefore(o), this.isBeforeYear = (t, o) => t.isBefore(o, "year"), this.isBeforeDay = (t, o) => t.isBefore(o, "day"), this.isWithinRange = (t, [o, r]) => t.isBetween(o, r, null, "[]"), this.startOfYear = (t) => t.startOf("year"), this.startOfMonth = (t) => t.startOf("month"), this.startOfWeek = (t) => t.startOf("week"), this.startOfDay = (t) => t.startOf("day"), this.endOfYear = (t) => t.endOf("year"), this.endOfMonth = (t) => t.endOf("month"), this.endOfWeek = (t) => t.endOf("week"), this.endOfDay = (t) => t.endOf("day"), this.addYears = (t, o) => o < 0 ? t.subtract(Math.abs(o), "year") : t.add(o, "year"), this.addMonths = (t, o) => o < 0 ? t.subtract(Math.abs(o), "month") : t.add(o, "month"), this.addWeeks = (t, o) => o < 0 ? t.subtract(Math.abs(o), "week") : t.add(o, "week"), this.addDays = (t, o) => o < 0 ? t.subtract(Math.abs(o), "day") : t.add(o, "day"), this.addHours = (t, o) => o < 0 ? t.subtract(Math.abs(o), "hour") : t.add(o, "hour"), this.addMinutes = (t, o) => o < 0 ? t.subtract(Math.abs(o), "minute") : t.add(o, "minute"), this.addSeconds = (t, o) => o < 0 ? t.subtract(Math.abs(o), "second") : t.add(o, "second"), this.getYear = (t) => t.year(), this.getMonth = (t) => t.month(), this.getDate = (t) => t.date(), this.getHours = (t) => t.hour(), this.getMinutes = (t) => t.minute(), this.getSeconds = (t) => t.second(), this.setYear = (t, o) => t.set("year", o), this.setMonth = (t, o) => t.set("month", o), this.setDate = (t, o) => t.set("date", o), this.setHours = (t, o) => t.set("hour", o), this.setMinutes = (t, o) => t.set("minute", o), this.setSeconds = (t, o) => t.set("second", o), this.getDaysInMonth = (t) => t.daysInMonth(), this.getNextMonth = (t) => t.add(1, "month"), this.getPreviousMonth = (t) => t.subtract(1, "month"), this.getMonthArray = (t) => {
340
- const r = [t.startOf("year")];
341
- for (; r.length < 12; ) {
342
- const a = r[r.length - 1];
343
- r.push(this.getNextMonth(a));
337
+ }, this.getFormatHelperText = (t) => this.expandFormat(t).replace(/a/gi, "(a|p)m").toLocaleLowerCase(), this.isNull = (t) => t === null, this.isValid = (t) => this.dayjs(t).isValid(), this.format = (t, o) => this.formatByString(t, this.formats[o]), this.formatByString = (t, o) => this.dayjs(t).format(o), this.formatNumber = (t) => t, this.getDiff = (t, o, n) => t.diff(o, n), this.isEqual = (t, o) => t === null && o === null ? !0 : this.dayjs(t).isSame(o), this.isSameYear = (t, o) => t.isSame(o, "year"), this.isSameMonth = (t, o) => t.isSame(o, "month"), this.isSameDay = (t, o) => t.isSame(o, "day"), this.isSameHour = (t, o) => t.isSame(o, "hour"), this.isAfter = (t, o) => t.isAfter(o), this.isAfterYear = (t, o) => t.isAfter(o, "year"), this.isAfterDay = (t, o) => t.isAfter(o, "day"), this.isBefore = (t, o) => t.isBefore(o), this.isBeforeYear = (t, o) => t.isBefore(o, "year"), this.isBeforeDay = (t, o) => t.isBefore(o, "day"), this.isWithinRange = (t, [o, n]) => t.isBetween(o, n, null, "[]"), this.startOfYear = (t) => t.startOf("year"), this.startOfMonth = (t) => t.startOf("month"), this.startOfWeek = (t) => t.startOf("week"), this.startOfDay = (t) => t.startOf("day"), this.endOfYear = (t) => t.endOf("year"), this.endOfMonth = (t) => t.endOf("month"), this.endOfWeek = (t) => t.endOf("week"), this.endOfDay = (t) => t.endOf("day"), this.addYears = (t, o) => o < 0 ? t.subtract(Math.abs(o), "year") : t.add(o, "year"), this.addMonths = (t, o) => o < 0 ? t.subtract(Math.abs(o), "month") : t.add(o, "month"), this.addWeeks = (t, o) => o < 0 ? t.subtract(Math.abs(o), "week") : t.add(o, "week"), this.addDays = (t, o) => o < 0 ? t.subtract(Math.abs(o), "day") : t.add(o, "day"), this.addHours = (t, o) => o < 0 ? t.subtract(Math.abs(o), "hour") : t.add(o, "hour"), this.addMinutes = (t, o) => o < 0 ? t.subtract(Math.abs(o), "minute") : t.add(o, "minute"), this.addSeconds = (t, o) => o < 0 ? t.subtract(Math.abs(o), "second") : t.add(o, "second"), this.getYear = (t) => t.year(), this.getMonth = (t) => t.month(), this.getDate = (t) => t.date(), this.getHours = (t) => t.hour(), this.getMinutes = (t) => t.minute(), this.getSeconds = (t) => t.second(), this.setYear = (t, o) => t.set("year", o), this.setMonth = (t, o) => t.set("month", o), this.setDate = (t, o) => t.set("date", o), this.setHours = (t, o) => t.set("hour", o), this.setMinutes = (t, o) => t.set("minute", o), this.setSeconds = (t, o) => t.set("second", o), this.getDaysInMonth = (t) => t.daysInMonth(), this.getNextMonth = (t) => t.add(1, "month"), this.getPreviousMonth = (t) => t.subtract(1, "month"), this.getMonthArray = (t) => {
338
+ const n = [t.startOf("year")];
339
+ for (; n.length < 12; ) {
340
+ const a = n[n.length - 1];
341
+ n.push(this.getNextMonth(a));
344
342
  }
345
- return r;
343
+ return n;
346
344
  }, this.mergeDateAndTime = (t, o) => t.hour(o.hour()).minute(o.minute()).second(o.second()), this.getWeekdays = () => {
347
345
  const t = this.dayjs().startOf("week");
348
346
  return [0, 1, 2, 3, 4, 5, 6].map((o) => this.formatByString(t.add(o, "day"), "dd"));
349
347
  }, this.getWeekArray = (t) => {
350
- const o = t.startOf("month").startOf("week"), r = t.endOf("month").endOf("week");
351
- let a = 0, n = o;
348
+ const o = t.startOf("month").startOf("week"), n = t.endOf("month").endOf("week");
349
+ let a = 0, r = o;
352
350
  const c = [];
353
- for (; n.isBefore(r); ) {
351
+ for (; r.isBefore(n); ) {
354
352
  const s = Math.floor(a / 7);
355
- c[s] = c[s] || [], c[s].push(n), n = n.add(1, "day"), a += 1;
353
+ c[s] = c[s] || [], c[s].push(r), r = r.add(1, "day"), a += 1;
356
354
  }
357
355
  return c;
358
356
  }, this.getWeekNumber = (t) => t.week(), this.getYearRange = (t, o) => {
359
- const r = t.startOf("year"), a = o.endOf("year"), n = [];
360
- let c = r;
357
+ const n = t.startOf("year"), a = o.endOf("year"), r = [];
358
+ let c = n;
361
359
  for (; c.isBefore(a); )
362
- n.push(c), c = c.add(1, "year");
363
- return n;
360
+ r.push(c), c = c.add(1, "year");
361
+ return r;
364
362
  }, this.getMeridiemText = (t) => t === "am" ? "AM" : "PM", this.rawDayJsInstance = u || V, this.dayjs = Mt(this.rawDayJsInstance, d), this.locale = d, this.formats = y({}, Dt, l), V.extend(ut);
365
363
  }
366
364
  }
367
365
  function Tt(h) {
368
- return at("MuiDatePickerToolbar", h);
366
+ return rt("MuiDatePickerToolbar", h);
369
367
  }
370
- rt("MuiDatePickerToolbar", ["root", "title"]);
368
+ nt("MuiDatePickerToolbar", ["root", "title"]);
371
369
  const Pt = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceholder", "views"], Ot = (h) => {
372
370
  const {
373
371
  classes: d
374
372
  } = h;
375
- return nt({
373
+ return at({
376
374
  root: ["root"],
377
375
  title: ["title"]
378
376
  }, Tt, d);
@@ -395,10 +393,10 @@ const Pt = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceho
395
393
  }), {
396
394
  value: t,
397
395
  isLandscape: o,
398
- toolbarFormat: r,
396
+ toolbarFormat: n,
399
397
  toolbarPlaceholder: a = "––",
400
- views: n
401
- } = u, c = H(u, Pt), s = z(), b = ue(), D = Ot(u), O = I.useMemo(() => t ? r ? s.formatByString(t, r) : De(n) ? s.format(t, "year") : Me(n) ? s.format(t, "month") : /en/.test(s.getCurrentLocaleCode()) ? s.format(t, "normalDateWithWeekday") : s.format(t, "normalDate") : a, [t, r, a, s, n]), Y = u;
398
+ views: r
399
+ } = u, c = H(u, Pt), s = z(), b = ue(), D = Ot(u), O = I.useMemo(() => t ? n ? s.formatByString(t, n) : De(r) ? s.format(t, "year") : Me(r) ? s.format(t, "month") : /en/.test(s.getCurrentLocaleCode()) ? s.format(t, "normalDateWithWeekday") : s.format(t, "normalDate") : a, [t, n, a, s, r]), Y = u;
402
400
  return /* @__PURE__ */ M(xt, y({
403
401
  ref: l,
404
402
  toolbarTitle: b.datePickerToolbarTitle,
@@ -470,31 +468,31 @@ const Le = (h, {
470
468
  };
471
469
  function Fe(h, d) {
472
470
  var l, u, t, o;
473
- const r = z(), a = ge(), n = X({
471
+ const n = z(), a = ge(), r = X({
474
472
  props: h,
475
473
  name: d
476
474
  }), c = I.useMemo(() => {
477
475
  var b;
478
- return ((b = n.localeText) == null ? void 0 : b.toolbarTitle) == null ? n.localeText : y({}, n.localeText, {
479
- datePickerToolbarTitle: n.localeText.toolbarTitle
476
+ return ((b = r.localeText) == null ? void 0 : b.toolbarTitle) == null ? r.localeText : y({}, r.localeText, {
477
+ datePickerToolbarTitle: r.localeText.toolbarTitle
480
478
  });
481
- }, [n.localeText]), s = (l = n.slots) != null ? l : Ue(n.components);
482
- return y({}, n, {
479
+ }, [r.localeText]), s = (l = r.slots) != null ? l : Ue(r.components);
480
+ return y({}, r, {
483
481
  localeText: c
484
482
  }, Ze({
485
- views: n.views,
486
- openTo: n.openTo,
483
+ views: r.views,
484
+ openTo: r.openTo,
487
485
  defaultViews: ["year", "day"],
488
486
  defaultOpenTo: "day"
489
487
  }), {
490
- disableFuture: (u = n.disableFuture) != null ? u : !1,
491
- disablePast: (t = n.disablePast) != null ? t : !1,
492
- minDate: J(r, n.minDate, a.minDate),
493
- maxDate: J(r, n.maxDate, a.maxDate),
488
+ disableFuture: (u = r.disableFuture) != null ? u : !1,
489
+ disablePast: (t = r.disablePast) != null ? t : !1,
490
+ minDate: J(n, r.minDate, a.minDate),
491
+ maxDate: J(n, r.maxDate, a.maxDate),
494
492
  slots: y({
495
493
  toolbar: Ye
496
494
  }, s),
497
- slotProps: (o = n.slotProps) != null ? o : n.componentsProps
495
+ slotProps: (o = r.slotProps) != null ? o : r.componentsProps
498
496
  });
499
497
  }
500
498
  const wt = ["value", "defaultValue", "format", "formatDensity", "shouldRespectLeadingZeros", "onChange", "readOnly", "onError", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"], kt = (h) => {
@@ -515,9 +513,9 @@ const wt = ["value", "defaultValue", "format", "formatDensity", "shouldRespectLe
515
513
  value: u,
516
514
  defaultValue: t,
517
515
  format: o,
518
- formatDensity: r,
516
+ formatDensity: n,
519
517
  shouldRespectLeadingZeros: a,
520
- onChange: n,
518
+ onChange: r,
521
519
  readOnly: c,
522
520
  onError: s,
523
521
  shouldDisableDate: b,
@@ -538,9 +536,9 @@ const wt = ["value", "defaultValue", "format", "formatDensity", "shouldRespectLe
538
536
  value: u,
539
537
  defaultValue: t,
540
538
  format: o,
541
- formatDensity: r,
539
+ formatDensity: n,
542
540
  shouldRespectLeadingZeros: a,
543
- onChange: n,
541
+ onChange: r,
544
542
  readOnly: c,
545
543
  onError: s,
546
544
  shouldDisableDate: b,
@@ -561,19 +559,19 @@ const wt = ["value", "defaultValue", "format", "formatDensity", "shouldRespectLe
561
559
  });
562
560
  }, Lt = ["components", "componentsProps", "slots", "slotProps", "InputProps", "inputProps"], Ft = ["inputRef"], St = ["ref", "onPaste", "inputMode", "readOnly"], he = /* @__PURE__ */ I.forwardRef(function(d, l) {
563
561
  var u, t, o;
564
- const r = X({
562
+ const n = X({
565
563
  props: d,
566
564
  name: "MuiDateField"
567
565
  }), {
568
566
  components: a,
569
- componentsProps: n,
567
+ componentsProps: r,
570
568
  slots: c,
571
569
  slotProps: s,
572
570
  InputProps: b,
573
571
  inputProps: D
574
- } = r, O = H(r, Lt), Y = r, v = (u = (t = c == null ? void 0 : c.textField) != null ? t : a == null ? void 0 : a.TextField) != null ? u : it, i = Ge({
572
+ } = n, O = H(n, Lt), Y = n, v = (u = (t = c == null ? void 0 : c.textField) != null ? t : a == null ? void 0 : a.TextField) != null ? u : it, i = Ge({
575
573
  elementType: v,
576
- externalSlotProps: (o = s == null ? void 0 : s.textField) != null ? o : n == null ? void 0 : n.textField,
574
+ externalSlotProps: (o = s == null ? void 0 : s.textField) != null ? o : r == null ? void 0 : r.textField,
577
575
  externalForwardedProps: O,
578
576
  ownerState: Y
579
577
  }), {
@@ -852,13 +850,13 @@ process.env.NODE_ENV !== "production" && (he.propTypes = {
852
850
  });
853
851
  const Se = /* @__PURE__ */ I.forwardRef(function(d, l) {
854
852
  var u, t;
855
- const o = ue(), r = z(), a = Fe(d, "MuiDesktopDatePicker"), n = y({
853
+ const o = ue(), n = z(), a = Fe(d, "MuiDesktopDatePicker"), r = y({
856
854
  day: B,
857
855
  month: B,
858
856
  year: B
859
857
  }, a.viewRenderers), c = y({}, a, {
860
- viewRenderers: n,
861
- format: Le(r, a),
858
+ viewRenderers: r,
859
+ format: Le(n, a),
862
860
  yearsPerRow: (u = a.yearsPerRow) != null ? u : 4,
863
861
  slots: y({
864
862
  openPickerIcon: Ke,
@@ -1191,31 +1189,31 @@ Se.propTypes = {
1191
1189
  };
1192
1190
  const Ce = /* @__PURE__ */ I.forwardRef(function(d, l) {
1193
1191
  var u;
1194
- const t = ue(), o = z(), r = Fe(d, "MuiMobileDatePicker"), a = y({
1192
+ const t = ue(), o = z(), n = Fe(d, "MuiMobileDatePicker"), a = y({
1195
1193
  day: B,
1196
1194
  month: B,
1197
1195
  year: B
1198
- }, r.viewRenderers), n = y({}, r, {
1196
+ }, n.viewRenderers), r = y({}, n, {
1199
1197
  viewRenderers: a,
1200
- format: Le(o, r),
1198
+ format: Le(o, n),
1201
1199
  slots: y({
1202
1200
  field: he
1203
- }, r.slots),
1204
- slotProps: y({}, r.slotProps, {
1201
+ }, n.slots),
1202
+ slotProps: y({}, n.slotProps, {
1205
1203
  field: (s) => {
1206
1204
  var b;
1207
- return y({}, Te((b = r.slotProps) == null ? void 0 : b.field, s), Pe(r), {
1205
+ return y({}, Te((b = n.slotProps) == null ? void 0 : b.field, s), Pe(n), {
1208
1206
  ref: l
1209
1207
  });
1210
1208
  },
1211
1209
  toolbar: y({
1212
1210
  hidden: !1
1213
- }, (u = r.slotProps) == null ? void 0 : u.toolbar)
1211
+ }, (u = n.slotProps) == null ? void 0 : u.toolbar)
1214
1212
  })
1215
1213
  }), {
1216
1214
  renderPicker: c
1217
1215
  } = et({
1218
- props: n,
1216
+ props: r,
1219
1217
  valueManager: de,
1220
1218
  valueType: "date",
1221
1219
  getOpenDialogAriaText: t.openDatePickerDialogue,
@@ -1850,7 +1848,7 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
1850
1848
  */
1851
1849
  yearsPerRow: e.oneOf([3, 4])
1852
1850
  });
1853
- function Qt(h) {
1851
+ function Ut(h) {
1854
1852
  const { state: d, actions: l, ownerState: u, sx: t, other: o } = We(h);
1855
1853
  return /* @__PURE__ */ M(Ie, { dateAdapter: gt, children: /* @__PURE__ */ E(
1856
1854
  He,
@@ -1872,16 +1870,16 @@ function Qt(h) {
1872
1870
  ]
1873
1871
  }
1874
1872
  ),
1875
- d.filterType === "relative" && /* @__PURE__ */ M(Be, { children: d.presets.map(([r, a]) => /* @__PURE__ */ M(
1873
+ d.filterType === "relative" && /* @__PURE__ */ M(Be, { children: d.presets.map(([n, a]) => /* @__PURE__ */ M(
1876
1874
  Ee,
1877
1875
  {
1878
1876
  size: "small",
1879
1877
  variant: "outlined",
1880
- active: d.activePreset === r,
1881
- onClick: () => l.handlePresetSelect(r),
1878
+ active: d.activePreset === n,
1879
+ onClick: () => l.handlePresetSelect(n),
1882
1880
  children: a
1883
1881
  },
1884
- r
1882
+ n
1885
1883
  )) }),
1886
1884
  d.filterType === "custom" && /* @__PURE__ */ E(ze, { children: [
1887
1885
  /* @__PURE__ */ E(ye, { flex: 1, children: [
@@ -1930,5 +1928,5 @@ function Qt(h) {
1930
1928
  }
1931
1929
  export {
1932
1930
  gt as A,
1933
- Qt as D
1931
+ Ut as D
1934
1932
  };
@@ -11,13 +11,11 @@ import { GeometryPicker as me } from "./components/geometry-picker/index.js";
11
11
  import { PhoneInput as he } from "./components/phone-input/index.js";
12
12
  import B from "./components/instance-form/components/TopLabelWrapper.js";
13
13
  import ue from "./components/instance-form/components/composite-matrix/index.js";
14
- import { B as m } from "./Box-p6OtTUEo.js";
15
- import { T as H } from "./TextField-1yCesIbH.js";
16
- import { F as re } from "./FormControlLabel-C8SPv14J.js";
17
- import { C as oe } from "./Checkbox-CWRMFTBp.js";
18
- import { F as se, I as Ie } from "./FormControl-BLbrq4C7.js";
19
- import { S as fe } from "./Select-BgYwkZgI.js";
20
- import { M as ge } from "./MenuItem-xZx_w7zA.js";
14
+ import { B as m, M as re } from "./MenuItem-DrE50M_p.js";
15
+ import { T as H, S as oe } from "./TextField-DSDIEEKu.js";
16
+ import { F as se, C as Ie } from "./FormControlLabel-BkRfrhNy.js";
17
+ import { F as fe } from "./FormControl-BCurCxRj.js";
18
+ import { I as ge } from "./InputLabel-rEwwnD4_.js";
21
19
  import { Container as we, Values as xe, MiniButton as Ce } from "./components/instance-form/components/composite-list/styled.js";
22
20
  function Ve({
23
21
  property: r,
@@ -368,10 +366,10 @@ function Te({
368
366
  /* @__PURE__ */ n(m, { width: "68%", children: d })
369
367
  ] }),
370
368
  children: /* @__PURE__ */ n(
371
- re,
369
+ se,
372
370
  {
373
371
  control: /* @__PURE__ */ n(
374
- oe,
372
+ Ie,
375
373
  {
376
374
  name: e.propertyId,
377
375
  checked: !!(l ?? e.defaultValue ?? !1),
@@ -404,16 +402,16 @@ function Te({
404
402
  (W = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : W.description
405
403
  ),
406
404
  children: /* @__PURE__ */ u(
407
- se,
405
+ fe,
408
406
  {
409
407
  fullWidth: !0,
410
408
  variant: f,
411
409
  size: s,
412
410
  required: e.required,
413
411
  children: [
414
- c === "default" && /* @__PURE__ */ n(Ie, { id: `${e.propertyId}-label`, children: e.name }),
412
+ c === "default" && /* @__PURE__ */ n(ge, { id: `${e.propertyId}-label`, children: e.name }),
415
413
  /* @__PURE__ */ n(
416
- fe,
414
+ oe,
417
415
  {
418
416
  label: c === "default" ? e.name : void 0,
419
417
  name: e.name,
@@ -426,7 +424,7 @@ function Te({
426
424
  tabIndex: a[e.propertyId].order
427
425
  }
428
426
  },
429
- children: d.map((h, L) => /* @__PURE__ */ n(ge, { value: h, children: h }, L))
427
+ children: d.map((h, L) => /* @__PURE__ */ n(re, { value: h, children: h }, L))
430
428
  }
431
429
  )
432
430
  ]
@@ -0,0 +1,26 @@
1
+ import * as n from "react";
2
+ function o(u, i = 166) {
3
+ let t;
4
+ function e(...l) {
5
+ const a = () => {
6
+ u.apply(this, l);
7
+ };
8
+ clearTimeout(t), t = setTimeout(a, i);
9
+ }
10
+ return e.clear = () => {
11
+ clearTimeout(t);
12
+ }, e;
13
+ }
14
+ function m(u, i) {
15
+ var t, e;
16
+ return /* @__PURE__ */ n.isValidElement(u) && i.indexOf(
17
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
18
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
19
+ // eslint-disable-next-line no-underscore-dangle
20
+ (t = u.type.muiName) != null ? t : (e = u.type) == null || (e = e._payload) == null || (e = e.value) == null ? void 0 : e.muiName
21
+ ) !== -1;
22
+ }
23
+ export {
24
+ o as d,
25
+ m as i
26
+ };