@hortiview/default-components 1.4.4 → 1.5.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.
- package/README.md +51 -0
- package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.d.ts +11 -0
- package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.js +11 -0
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +12 -1496
- package/dist/components/DefaultFormSelect/DefaultFormSelect.js +9 -178
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +6 -6
- package/dist/components/GenericTable/GenericTable.js +12 -18731
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -4
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +5 -5
- package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +9 -9
- package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +4 -4
- package/dist/components/OfflineView/OfflineView.js +9 -9
- package/dist/i18n.js +1696 -5
- package/dist/{i18nInstance-D_96ADqd.js → i18nInstance-CYqpK5II.js} +2 -2
- package/dist/locales/en-US.js +16 -14
- package/dist/locales/en-US.json.d.ts +3 -0
- package/dist/locales/es-MX.js +16 -14
- package/dist/locales/es-MX.json.d.ts +3 -0
- package/dist/locales/tr-TR.js +17 -15
- package/dist/locales/tr-TR.json.d.ts +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +24 -22
- package/dist/useTranslation-DGtUf8nl.js +101 -0
- package/package.json +3 -32
- package/dist/Iconify-aUog1Oez.js +0 -83
- package/dist/InfoCard-BxjAQiFE.js +0 -58
- package/dist/LoadingSpinner-DBMjIfY1.js +0 -502
- package/dist/OfflineView-NUM9WE0F-BI9rnget.js +0 -46
- package/dist/assets/DefaultFormNumber.css +0 -1
- package/dist/assets/DefaultFormSelect.css +0 -1
- package/dist/assets/GenericTable.css +0 -1
- package/dist/assets/Iconify.css +0 -1
- package/dist/assets/InfoCard.css +0 -1
- package/dist/assets/LoadingSpinner.css +0 -1
- package/dist/assets/OfflineView-NUM9WE0F.css +0 -1
- package/dist/component-DsB0poTj-DgsYK0_R.js +0 -570
- package/dist/correct-is-regexp-logic-BBlm4UpN-CvII841s.js +0 -493
- package/dist/i18n-CCQpJsQK.js +0 -1707
- package/dist/index.es-B0QNuIUR-Bte5aF5M.js +0 -360
- package/dist/index.es-CIsLNz4j-ZEEcPmTs.js +0 -79
- package/dist/index.es-CvHDFF6V-CjZvA03R.js +0 -2004
- package/dist/index.es-DiONypF4-eT98Y3u_.js +0 -844
- package/dist/index.es-DnEIFMjv-DuuORGfo.js +0 -1044
- package/dist/index.es-NEYPxnlS-C8xQv2De.js +0 -860
- package/dist/index.es-fV9oWpEf-BXuhoGtE.js +0 -14374
- package/dist/isTypedArray-Dw_IY7Zq-wj3MphCb.js +0 -210
- package/dist/slicedToArray-h0Nnkd_P-C4SkVJMK.js +0 -432
- package/dist/useHelperText-B7OMZXvE.js +0 -391
- package/dist/useTranslation-B_lNCuLm.js +0 -5343
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { InfoCard as r } from "@hortiview/shared-components";
|
|
3
3
|
import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as i } from "../../useTranslation-
|
|
4
|
+
import { u as i } from "../../useTranslation-DGtUf8nl.js";
|
|
5
5
|
const m = ({ ...e }) => {
|
|
6
6
|
const { t } = i();
|
|
7
7
|
return /* @__PURE__ */ a(o, { children: /* @__PURE__ */ a(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { InfoCard as o } from "@hortiview/shared-components";
|
|
3
3
|
import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as i } from "../../useTranslation-
|
|
5
|
-
const
|
|
4
|
+
import { u as i } from "../../useTranslation-DGtUf8nl.js";
|
|
5
|
+
const m = ({ ...r }) => {
|
|
6
6
|
const { t } = i();
|
|
7
7
|
return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
|
|
8
8
|
o,
|
|
@@ -15,5 +15,5 @@ const p = ({ ...r }) => {
|
|
|
15
15
|
) });
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
m as DefaultHealthCheck
|
|
19
19
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { InternationalizationWrapper as
|
|
4
|
-
import { u as a } from "../../useTranslation-
|
|
2
|
+
import { InfoCard as o } from "@hortiview/shared-components";
|
|
3
|
+
import { InternationalizationWrapper as i } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
+
import { u as a } from "../../useTranslation-DGtUf8nl.js";
|
|
5
5
|
const m = ({ ...r }) => {
|
|
6
6
|
const { t } = a();
|
|
7
|
-
return /* @__PURE__ */ e(
|
|
8
|
-
|
|
7
|
+
return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
8
|
+
o,
|
|
9
9
|
{
|
|
10
10
|
...r,
|
|
11
11
|
title: t("healthCheck.iotService"),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { InfoCard as e } from "@hortiview/shared-components";
|
|
3
3
|
import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as l } from "../../useTranslation-
|
|
5
|
-
const
|
|
4
|
+
import { u as l } from "../../useTranslation-DGtUf8nl.js";
|
|
5
|
+
const f = ({ isOutlined: o }) => {
|
|
6
6
|
const { t } = l();
|
|
7
7
|
return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
|
|
8
8
|
e,
|
|
@@ -15,5 +15,5 @@ const h = ({ isOutlined: o }) => {
|
|
|
15
15
|
) });
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
f as PlatformHealthCheck
|
|
19
19
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { LoadingSpinner as r } from "@hortiview/shared-components";
|
|
3
3
|
import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as
|
|
5
|
-
const
|
|
6
|
-
const { t:
|
|
7
|
-
return /* @__PURE__ */
|
|
4
|
+
import { u as o } from "../../useTranslation-DGtUf8nl.js";
|
|
5
|
+
const g = ({ ...i }) => {
|
|
6
|
+
const { t: n } = o();
|
|
7
|
+
return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
|
|
8
8
|
r,
|
|
9
9
|
{
|
|
10
10
|
...i,
|
|
11
|
-
text:
|
|
12
|
-
impatienceMessage:
|
|
11
|
+
text: n("loadingSpinner.baseMessage"),
|
|
12
|
+
impatienceMessage: n("loadingSpinner.impatienceMessage")
|
|
13
13
|
}
|
|
14
14
|
) });
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
g as ImpatienceLoadingSpinner
|
|
18
18
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
2
|
+
import { useMemo as m, createElement as i, useEffect as s } from "react";
|
|
3
|
+
import t from "../../i18n.js";
|
|
4
4
|
import { I as p } from "../../context-f4Bcf4Hs.js";
|
|
5
5
|
function f({
|
|
6
6
|
i18n: e,
|
|
7
7
|
defaultNS: o,
|
|
8
8
|
children: n
|
|
9
9
|
}) {
|
|
10
|
-
const r =
|
|
10
|
+
const r = m(() => ({
|
|
11
11
|
i18n: e,
|
|
12
12
|
defaultNS: o
|
|
13
13
|
}), [e, o]);
|
|
14
|
-
return
|
|
14
|
+
return i(p.Provider, {
|
|
15
15
|
value: r
|
|
16
16
|
}, n);
|
|
17
17
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { OfflineView as o } from "@hortiview/shared-components";
|
|
3
3
|
import { InternationalizationWrapper as r } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as n } from "../../useTranslation-
|
|
5
|
-
const
|
|
6
|
-
const { t } = n();
|
|
7
|
-
return /* @__PURE__ */
|
|
4
|
+
import { u as n } from "../../useTranslation-DGtUf8nl.js";
|
|
5
|
+
const m = ({ ...e }) => {
|
|
6
|
+
const { t: i } = n();
|
|
7
|
+
return /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
8
8
|
o,
|
|
9
9
|
{
|
|
10
10
|
...e,
|
|
11
|
-
title:
|
|
12
|
-
subtitle:
|
|
11
|
+
title: i("offlineView.title"),
|
|
12
|
+
subtitle: i("offlineView.subtitle")
|
|
13
13
|
}
|
|
14
14
|
) });
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
m as OfflineView
|
|
18
18
|
};
|