@hortiview/default-components 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/dist/{Iconify-Cjdr-ccS.js → Iconify-CUZc8WnW.js} +17 -16
  3. package/dist/InfoCard-CFmkh7DJ.js +58 -0
  4. package/dist/{LoadingSpinner-FRQEZvxs.js → LoadingSpinner-DVBQ1tGJ.js} +178 -192
  5. package/dist/OfflineView-DHtzNLwt-BmxTfGZq.js +46 -0
  6. package/dist/assets/InfoCard.css +1 -0
  7. package/dist/assets/OfflineView-DHtzNLwt.css +1 -0
  8. package/dist/{component-DsB0poTj-BDGiEcbP.js → component-DsB0poTj-CeLHB9Ok.js} +3 -3
  9. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +1337 -505
  10. package/dist/components/DefaultFormSelect/DefaultFormSelect.js +25 -25
  11. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
  12. package/dist/components/GenericTable/GenericTable.js +11524 -9875
  13. package/dist/components/HealthChecks/DataBaseHealthCheck.d.ts +2 -2
  14. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  15. package/dist/components/HealthChecks/DefaultHealthCheck.d.ts +2 -2
  16. package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
  17. package/dist/components/HealthChecks/IotServiceHealthCheck.d.ts +2 -2
  18. package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
  19. package/dist/components/HealthChecks/PlatformHealthCheck.d.ts +2 -2
  20. package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
  21. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
  22. package/dist/components/OfflineView/OfflineView.js +2 -2
  23. package/dist/index.es-0QJC9VS2-CNPew9LK.js +360 -0
  24. package/dist/{index.es--yyG47az-DBKBm3yD.js → index.es-BGordhUK-C36NK84Q.js} +400 -365
  25. package/dist/index.es-Bg8hxXM8-BlFd894m.js +1083 -0
  26. package/dist/index.es-Bo1Rhtyb-B650l9Yk.js +79 -0
  27. package/dist/index.es-CK4oZMKs-Da8pin7D.js +14077 -0
  28. package/dist/{index.es-U5-b20Gv-ChQ_O81C.js → index.es-Cq04gn3U-Bvzrqtm6.js} +369 -535
  29. package/dist/{omit-1Eom1PmQ-BLY9iMqj.js → index.es-DENZVv7_-PUEN9sIa.js} +495 -869
  30. package/dist/index.es-IXyb5F6n-B5afcHX8.js +452 -0
  31. package/dist/isTypedArray-Dw_IY7Zq-BZ-4N8-Z.js +210 -0
  32. package/dist/main.d.ts +3 -2
  33. package/dist/main.js +8 -8
  34. package/dist/slicedToArray-BWk2gTCn-Cfzj7tjm.js +432 -0
  35. package/dist/useHelperText-3ahu6tTS.js +391 -0
  36. package/dist/useTranslation-CVaIJbcK.js +5277 -0
  37. package/package.json +4 -4
  38. package/dist/HealthCheckFailed-CqLYAwpc.js +0 -47
  39. package/dist/OfflineView-HbuDPpQL-kqlzfoUS.js +0 -46
  40. package/dist/assets/HealthCheckFailed.css +0 -1
  41. package/dist/assets/OfflineView-HbuDPpQL.css +0 -1
  42. package/dist/index.es-Bx1E5MPK-CaV59rEP.js +0 -344
  43. package/dist/index.es-CzUKBF7E-C0X-mcdY.js +0 -13567
  44. package/dist/index.es-D-ph6ImM-CWxTa_iD.js +0 -63
  45. package/dist/index.es-DDo_AHL0-VqD9ikmU.js +0 -1033
  46. package/dist/index.es-Kg9soDed-BkTwDySy.js +0 -440
  47. package/dist/useHelperText-DD9_Dtkk.js +0 -21
  48. package/dist/useTranslation-B_ODv8uN.js +0 -4306
@@ -1,10 +1,10 @@
1
- import { jsx as o, Fragment as I, jsxs as U } from "react/jsx-runtime";
2
- import { a as b, v as j } from "../../useHelperText-DD9_Dtkk.js";
3
- import { g as W, U as X, u as Y } from "../../useTranslation-B_ODv8uN.js";
1
+ import { jsx as o, Fragment as I, jsxs as j } from "react/jsx-runtime";
2
+ import { a as g, v as U } from "../../useHelperText-3ahu6tTS.js";
3
+ import { d as W, ao as X, u as Y } from "../../useTranslation-CVaIJbcK.js";
4
4
  import { useEffect as z, useMemo as N } from "react";
5
5
  import { useFormContext as Z, Controller as A } from "react-hook-form";
6
- import { I as k, t as G, V as J } from "../../index.es-CzUKBF7E-C0X-mcdY.js";
7
- import { n as Q, f as R } from "../../index.es--yyG47az-DBKBm3yD.js";
6
+ import { I as k, l as G, V as J } from "../../index.es-CK4oZMKs-Da8pin7D.js";
7
+ import { O as Q, D as R } from "../../index.es-BGordhUK-C36NK84Q.js";
8
8
  import { InternationalizationWrapper as ee } from "../InternationalizationWrapper/InternationalizationWrapper.js";
9
9
  import '../../assets/DefaultFormSelect.css';const te = "_customPortal_8wq49_1", le = "_customSelect_8wq49_7", K = {
10
10
  customPortal: te,
@@ -68,26 +68,26 @@ const ie = /* @__PURE__ */ W(ae), ne = ({ value: e, textKey: t, valueKey: l }) =
68
68
  searchable: M = !0,
69
69
  noOptionsMessage: S = "",
70
70
  rules: p,
71
- menuPosition: $ = "auto",
71
+ menuPosition: D = "auto",
72
72
  ...a
73
73
  }) => {
74
74
  const {
75
75
  control: T,
76
76
  getFieldState: F,
77
77
  formState: { errors: q, isValidating: C }
78
- } = Z(), w = N(
79
- () => !C && b(q, e) !== void 0,
78
+ } = Z(), $ = N(
79
+ () => !C && g(q, e) !== void 0,
80
80
  [q, e, C]
81
- ), D = N(
81
+ ), w = N(
82
82
  () => {
83
- var g;
84
- return (g = p == null ? void 0 : p.required) == null ? void 0 : g.message;
83
+ var y;
84
+ return (y = p == null ? void 0 : p.required) == null ? void 0 : y.message;
85
85
  },
86
86
  [p]
87
- ), { helperText: H, helperTextPersistent: B } = j({
87
+ ), { helperText: H, helperTextPersistent: O } = U({
88
88
  propertyName: e,
89
89
  helperText: a.helperText,
90
- requiredText: D,
90
+ requiredText: w,
91
91
  hasCharacterCount: !1
92
92
  });
93
93
  return c ? /* @__PURE__ */ o(A, { name: e, control: T, render: () => /* @__PURE__ */ o(I, {}) }) : /* @__PURE__ */ o(
@@ -102,32 +102,32 @@ const ie = /* @__PURE__ */ W(ae), ne = ({ value: e, textKey: t, valueKey: l }) =
102
102
  name: e,
103
103
  rules: p,
104
104
  control: T,
105
- render: ({ field: { ref: g, onChange: y, value: f, ...E } }) => {
105
+ render: ({ field: { ref: y, onChange: b, value: f, ...B } }) => {
106
106
  let m = l;
107
- ie(l) && b(l[0], "options") !== void 0 && (m = l.flatMap((i) => b(i, "options") ?? []));
107
+ ie(l) && g(l[0], "options") !== void 0 && (m = l.flatMap((i) => g(i, "options") ?? []));
108
108
  const h = r ? m == null ? void 0 : m.filter(
109
109
  (i) => f == null ? void 0 : f.includes(i[n])
110
- ) : m == null ? void 0 : m.find((i) => i[n] === f), O = r && a.multiDisplayType === "text" && a.fixedHeightInput, v = F(e).invalid, V = `
110
+ ) : m == null ? void 0 : m.find((i) => i[n] === f), E = r && a.multiDisplayType === "text" && a.fixedHeightInput, v = F(e).invalid, V = `
111
111
  ${d.formSelect}
112
112
  ${v ? d.invalidHelperText : ""}
113
113
  ${v ? d.invalidDropdownIcon : ""}
114
114
  ${v ? d.invalidBorder : ""}
115
115
  ${v ? d.invalidPlaceholder : ""}
116
- ${O ? d.multiText : ""}
116
+ ${E ? d.multiText : ""}
117
117
  ${u ? d.disabled : ""}`;
118
- return /* @__PURE__ */ U(I, { children: [
118
+ return /* @__PURE__ */ j(I, { children: [
119
119
  /* @__PURE__ */ o(
120
120
  oe,
121
121
  {
122
- ...E,
122
+ ...B,
123
123
  ...a,
124
124
  value: h ?? [],
125
125
  label: t,
126
126
  variant: "outlined",
127
127
  helperText: H,
128
- helperTextPersistent: B,
128
+ helperTextPersistent: O,
129
129
  options: l,
130
- valid: !w,
130
+ valid: !$,
131
131
  "data-testid": a["data-testid"] ?? `select-${e}`,
132
132
  multiSelect: !(l != null && l.length) && S ? !1 : r,
133
133
  className: V,
@@ -137,20 +137,20 @@ const ie = /* @__PURE__ */ W(ae), ne = ({ value: e, textKey: t, valueKey: l }) =
137
137
  onChange: (i) => {
138
138
  var P;
139
139
  if (i == null) {
140
- y(i);
140
+ b(i);
141
141
  return;
142
142
  }
143
143
  if (r) {
144
- y(i.map((L) => L[n]));
144
+ b(i.map((L) => L[n]));
145
145
  return;
146
146
  }
147
- y(i[n]), (P = a == null ? void 0 : a.onChange) == null || P.call(a, i);
147
+ b(i[n]), (P = a == null ? void 0 : a.onChange) == null || P.call(a, i);
148
148
  },
149
149
  hoisted: x,
150
150
  noOptionsMessage: S,
151
151
  searchable: M,
152
152
  clearable: _,
153
- menuPosition: $
153
+ menuPosition: D
154
154
  }
155
155
  ),
156
156
  /* @__PURE__ */ o(
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { p as t } from "../../LoadingSpinner-FRQEZvxs.js";
2
+ import { N as t } from "../../LoadingSpinner-DVBQ1tGJ.js";
3
3
  import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as a } from "../../useTranslation-B_ODv8uN.js";
4
+ import { u as a } from "../../useTranslation-CVaIJbcK.js";
5
5
  const l = ({ ...n }) => {
6
6
  const { t: r } = a();
7
7
  return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(t, { ...n, text: r("loadingSpinner.baseMessage"), impatienceMessage: null }) });