@hortiview/default-components 1.0.1 → 1.2.0

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 (38) hide show
  1. package/README.md +22 -0
  2. package/dist/HealthCheckFailed-BfzG8Esl.js +46 -0
  3. package/dist/Iconify-DQUxnnUE.js +81 -0
  4. package/dist/{LoadingSpinner-BxqY1o89.js → LoadingSpinner-BCdWKiWZ.js} +8 -7
  5. package/dist/assets/GenericTable.css +1 -0
  6. package/dist/{component-DsB0poTj-B4NF-JCy.js → component-DsB0poTj-CmUZ4Kqw.js} +113 -73
  7. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +527 -3443
  8. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +5 -5
  9. package/dist/components/GenericTable/GenericTable.d.ts +12 -0
  10. package/dist/components/GenericTable/GenericTable.js +29900 -0
  11. package/dist/components/HealthChecks/DataBaseHealthCheck.js +4 -4
  12. package/dist/components/HealthChecks/DefaultHealthCheck.js +6 -6
  13. package/dist/components/HealthChecks/HealthCheck.test.js +5960 -7065
  14. package/dist/components/HealthChecks/IotServiceHealthCheck.js +4 -4
  15. package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
  16. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +6 -6
  17. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +24 -6
  18. package/dist/context-f4Bcf4Hs.js +19 -0
  19. package/dist/{i18n-DIprVS_u.js → i18n-BhmFdUcK.js} +208 -250
  20. package/dist/i18n.js +3 -2
  21. package/dist/i18nInstance-l1IFPZ5d.js +48 -0
  22. package/dist/index.es-25EARqhH-By1Ap282.js +2944 -0
  23. package/dist/{HealthCheckFailed-j1XFU5px.js → index.es-6TJ1S8Jr-BFJPMGBn.js} +224 -257
  24. package/dist/index.es-D-CKRzIB-C6Z-ohcV.js +959 -0
  25. package/dist/locales/en-US.js +10 -8
  26. package/dist/locales/en-US.json.d.ts +15 -10
  27. package/dist/locales/es-MX.js +8 -6
  28. package/dist/locales/es-MX.json.d.ts +5 -2
  29. package/dist/locales/tr-TR.js +9 -7
  30. package/dist/locales/tr-TR.json.d.ts +5 -2
  31. package/dist/main.d.ts +1 -0
  32. package/dist/main.js +14 -12
  33. package/dist/{useTranslation-Bh0VR1ML.js → useTranslation-B6E1rHIA.js} +1259 -1106
  34. package/package.json +12 -12
  35. package/dist/InternationalizationWrapper-BtWuzVFG.js +0 -41
  36. package/dist/index.es-D-CKRzIB-Cv9zF1oG.js +0 -1029
  37. /package/dist/assets/{index.css → Iconify.css} +0 -0
  38. /package/dist/assets/{i18n.css → i18nInstance.css} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "../../i18n-DIprVS_u.js";
3
- import { N as i } from "../../HealthCheckFailed-j1XFU5px.js";
4
- import { I as o } from "../../InternationalizationWrapper-BtWuzVFG.js";
5
- import { u as a } from "../../useTranslation-Bh0VR1ML.js";
2
+ import "../../i18nInstance-l1IFPZ5d.js";
3
+ import { N as i } from "../../HealthCheckFailed-BfzG8Esl.js";
4
+ import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
+ import { u as a } from "../../useTranslation-B6E1rHIA.js";
6
6
  const p = ({ ...r }) => {
7
7
  const { t } = a();
8
8
  return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "../../i18n-DIprVS_u.js";
3
- import { N as e } from "../../HealthCheckFailed-j1XFU5px.js";
4
- import { I as a } from "../../InternationalizationWrapper-BtWuzVFG.js";
5
- import { u as i } from "../../useTranslation-Bh0VR1ML.js";
2
+ import "../../i18nInstance-l1IFPZ5d.js";
3
+ import { N as e } from "../../HealthCheckFailed-BfzG8Esl.js";
4
+ import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
+ import { u as i } from "../../useTranslation-B6E1rHIA.js";
6
6
  const f = ({ isOutlined: o }) => {
7
7
  const { t } = i();
8
8
  return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
@@ -1,11 +1,11 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import "../../i18n-DIprVS_u.js";
3
- import { p as r } from "../../LoadingSpinner-BxqY1o89.js";
4
- import { I as a } from "../../InternationalizationWrapper-BtWuzVFG.js";
5
- import { u as t } from "../../useTranslation-Bh0VR1ML.js";
2
+ import "../../i18nInstance-l1IFPZ5d.js";
3
+ import { p as r } from "../../LoadingSpinner-BCdWKiWZ.js";
4
+ import { InternationalizationWrapper as t } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
+ import { u as a } from "../../useTranslation-B6E1rHIA.js";
6
6
  const g = ({ ...i }) => {
7
- const { t: e } = t();
8
- return /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(
7
+ const { t: e } = a();
8
+ return /* @__PURE__ */ n(t, { children: /* @__PURE__ */ n(
9
9
  r,
10
10
  {
11
11
  ...i,
@@ -1,8 +1,26 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "../../i18n-DIprVS_u.js";
4
- import { I as r, u as p } from "../../InternationalizationWrapper-BtWuzVFG.js";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { useMemo as i, createElement as m, useEffect as s } from "react";
3
+ import { i as t } from "../../i18n-BhmFdUcK.js";
4
+ import { I as p } from "../../context-f4Bcf4Hs.js";
5
+ function f({
6
+ i18n: e,
7
+ defaultNS: o,
8
+ children: n
9
+ }) {
10
+ const r = i(() => ({
11
+ i18n: e,
12
+ defaultNS: o
13
+ }), [e, o]);
14
+ return m(p.Provider, {
15
+ value: r
16
+ }, n);
17
+ }
18
+ const I = ({ children: e }) => /* @__PURE__ */ a(f, { i18n: t, children: e }), l = (e) => {
19
+ s(() => {
20
+ t.changeLanguage(e);
21
+ }, [e]);
22
+ };
5
23
  export {
6
- r as InternationalizationWrapper,
7
- p as useChangeDefaultComponentsLanguage
24
+ I as InternationalizationWrapper,
25
+ l as useChangeDefaultComponentsLanguage
8
26
  };
@@ -0,0 +1,19 @@
1
+ import { createContext as a } from "react";
2
+ const r = a();
3
+ class o {
4
+ constructor() {
5
+ this.usedNamespaces = {};
6
+ }
7
+ addUsedNamespaces(s) {
8
+ s.forEach((e) => {
9
+ this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
10
+ });
11
+ }
12
+ getUsedNamespaces() {
13
+ return Object.keys(this.usedNamespaces);
14
+ }
15
+ }
16
+ export {
17
+ r as I,
18
+ o as R
19
+ };