@envisiongroup/porygon 1.0.1 → 1.0.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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +64 -56
- package/dist/react-components/i18n/PorygonI18nProvider.d.ts +3 -2
- package/dist/react-components/i18n/PorygonI18nProvider.js +169 -76
- package/dist/react-components/i18n/defaultLocaleText.d.ts +2 -1
- package/dist/react-components/i18n/defaultLocaleText.js +14 -5
- package/dist/react-components/i18n/index.d.ts +4 -4
- package/dist/react-components/i18n/index.js +14 -12
- package/dist/react-components/i18n/localePresets.js +53 -34
- package/dist/react-components/i18n/porygonI18n.types.d.ts +15 -0
- package/dist/react-components/tables/EFWTable/EFWTable.js +821 -461
- package/dist/react-components/timeline/EFWTimeline/EFWTimeline.d.ts +24 -0
- package/dist/react-components/timeline/EFWTimeline/EFWTimeline.js +392 -0
- package/dist/react-components/timeline/EFWTimeline/EFWTimeline.types.d.ts +208 -0
- package/dist/react-components/timeline/EFWTimeline/EFWTimeline.utils.d.ts +30 -0
- package/dist/react-components/timeline/EFWTimeline/EFWTimeline.utils.js +45 -0
- package/dist/react-components/timeline/EFWTimeline/index.d.ts +3 -0
- package/dist/react-components/timeline/EFWTimeline/index.js +8 -0
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,3 +16,4 @@ export * from './react-components/forms/EFWMessageBarManager/EFWMessageBarManage
|
|
|
16
16
|
export * from './react-components/hooks/useDrawer';
|
|
17
17
|
export * from './react-components/i18n';
|
|
18
18
|
export * from './react-components/tables/EFWTable';
|
|
19
|
+
export * from './react-components/timeline/EFWTimeline';
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { formatFileSize as o, getErrorMessage as t, getFileIconUrl as F } from "./react-components/commons/utils.js";
|
|
2
|
-
import { EFWMessageBarManager as
|
|
2
|
+
import { EFWMessageBarManager as E } from "./react-components/forms/EFWMessageBarManager/EFWMessageBarManager.js";
|
|
3
3
|
import { EFWButton as p } from "./react-components/buttons/EFWButton/EFWButton.js";
|
|
4
4
|
import { useEFWButton as l } from "./react-components/buttons/EFWButton/EFWButton.hooks.js";
|
|
5
|
-
import { EFWDrawerButton as
|
|
6
|
-
import { EFWGroupButton as
|
|
7
|
-
import { EFWField as
|
|
8
|
-
import { EFWAttachment as
|
|
9
|
-
import { getAttachmentsFormattedValue as
|
|
5
|
+
import { EFWDrawerButton as f } from "./react-components/buttons/EFWDrawerButton/EFWDrawerButton.js";
|
|
6
|
+
import { EFWGroupButton as u } from "./react-components/buttons/EFWGroupButton/EFWGroupButton.js";
|
|
7
|
+
import { EFWField as W } from "./react-components/fields/_shared/EFWField/EFWField.js";
|
|
8
|
+
import { EFWAttachment as n } from "./react-components/fields/Attachments/EFWAttachments.js";
|
|
9
|
+
import { getAttachmentsFormattedValue as A } from "./react-components/fields/Attachments/EFWAttachments.utils.js";
|
|
10
10
|
import { EFWAttachmentsField as d } from "./react-components/fields/Attachments/EFWAttachmentsField.js";
|
|
11
11
|
import { EFWDatePicker as O } from "./react-components/fields/DatePicker/EFWDatePicker.js";
|
|
12
|
-
import { enLocalizedStrings as D, esLocalizedStrings as
|
|
13
|
-
import { EFWDatePickerField as
|
|
14
|
-
import { EFWInput as
|
|
15
|
-
import { getInputFormattedValue as
|
|
16
|
-
import { EFWInputField as
|
|
17
|
-
import { EFWNumberInput as
|
|
18
|
-
import { getNumberInputFormattedValue as
|
|
12
|
+
import { enLocalizedStrings as D, esLocalizedStrings as P, getDatePickerFormattedValue as C, ptLocalizedStrings as B } from "./react-components/fields/DatePicker/EFWDatePicker.utils.js";
|
|
13
|
+
import { EFWDatePickerField as U } from "./react-components/fields/DatePicker/EFWDatePickerField.js";
|
|
14
|
+
import { EFWInput as V } from "./react-components/fields/Input/EFWInput.js";
|
|
15
|
+
import { getInputFormattedValue as R } from "./react-components/fields/Input/EFWInput.utils.js";
|
|
16
|
+
import { EFWInputField as k } from "./react-components/fields/Input/EFWInputField.js";
|
|
17
|
+
import { EFWNumberInput as M } from "./react-components/fields/NumberInput/EFWNumberInput.js";
|
|
18
|
+
import { getNumberInputFormattedValue as w } from "./react-components/fields/NumberInput/EFWNumberInput.utils.js";
|
|
19
19
|
import { EFWNumberInputField as X } from "./react-components/fields/NumberInput/EFWNumberInputField.js";
|
|
20
|
-
import { EFWSwitch as
|
|
20
|
+
import { EFWSwitch as Y } from "./react-components/fields/Switch/EFWSwitch.js";
|
|
21
21
|
import { getSwitchFormattedValue as q } from "./react-components/fields/Switch/EFWSwitch.utils.js";
|
|
22
22
|
import { EFWSwitchField as J } from "./react-components/fields/Switch/EFWSwitchField.js";
|
|
23
23
|
import { EFWTagPicker as Q } from "./react-components/fields/TagPicker/EFWTagPicker.js";
|
|
@@ -25,79 +25,87 @@ import { getTagPickerFormattedValue as $ } from "./react-components/fields/TagPi
|
|
|
25
25
|
import { EFWTagPickerField as re } from "./react-components/fields/TagPicker/EFWTagPickerField.js";
|
|
26
26
|
import { EFWTextArea as te } from "./react-components/fields/TextArea/EFWTextArea.js";
|
|
27
27
|
import { getTextAreaFormattedValue as me } from "./react-components/fields/TextArea/EFWTextArea.utils.js";
|
|
28
|
-
import { EFWTextAreaField as
|
|
28
|
+
import { EFWTextAreaField as ae } from "./react-components/fields/TextArea/EFWTextAreaField.js";
|
|
29
29
|
import { getFormFieldDisplayText as xe } from "./react-components/forms/EFWForm/EFWForm.converter.js";
|
|
30
|
-
import { useFormController as
|
|
31
|
-
import { EFWForm as
|
|
32
|
-
import { EFWConversionError as
|
|
33
|
-
import { EFWFormMessageBarGroup as
|
|
30
|
+
import { useFormController as Te } from "./react-components/forms/EFWForm/EFWForm.hooks.js";
|
|
31
|
+
import { EFWForm as Le } from "./react-components/forms/EFWForm/EFWForm.js";
|
|
32
|
+
import { EFWConversionError as ie, EFWValuesToFlat as We, flatToEFWValues as _e } from "./react-components/forms/EFWForm/EFWForm.flatConverter.js";
|
|
33
|
+
import { EFWFormMessageBarGroup as se } from "./react-components/forms/EFWFormMessageBarGroup/EFWFormMessageBarGroup.js";
|
|
34
34
|
import { useDrawer as ce } from "./react-components/hooks/useDrawer/useDrawer.js";
|
|
35
|
-
import { PorygonI18nProvider as
|
|
36
|
-
import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as
|
|
37
|
-
import { PORYGON_LOCALES as ke, PORYGON_LOCALE_EN as Ge, PORYGON_LOCALE_ES as
|
|
35
|
+
import { PorygonI18nProvider as ge, useButtonsLocaleText as Oe, useFieldsLocaleText as Se, useFormLocaleText as De, usePorygonLocaleText as Pe, useTableLocaleText as Ce, useTimelineLocaleText as Be } from "./react-components/i18n/PorygonI18nProvider.js";
|
|
36
|
+
import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as Ue, DEFAULT_EFW_FIELDS_LOCALE_TEXT as Ne, DEFAULT_EFW_FORM_LOCALE_TEXT as Ve, DEFAULT_EFW_TABLE_LOCALE_TEXT as be, DEFAULT_EFW_TIMELINE_LOCALE_TEXT as Re } from "./react-components/i18n/defaultLocaleText.js";
|
|
37
|
+
import { PORYGON_LOCALES as ke, PORYGON_LOCALE_EN as Ge, PORYGON_LOCALE_ES as Me, PORYGON_LOCALE_PT_BR as ve } from "./react-components/i18n/localePresets.js";
|
|
38
38
|
import { EFWTable as ye } from "./react-components/tables/EFWTable/EFWTable.js";
|
|
39
39
|
import { useTableController as ze } from "./react-components/tables/EFWTable/hooks/useTableController/useTableController.js";
|
|
40
|
-
import { useDefaultFilterButton as
|
|
41
|
-
import { EFWTableEmpty as
|
|
40
|
+
import { useDefaultFilterButton as je } from "./react-components/tables/EFWTable/hooks/useDefaultFilterButton/useDefaultFilterButton.js";
|
|
41
|
+
import { EFWTableEmpty as He, EFWTableOverlay as Je } from "./react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.js";
|
|
42
|
+
import { EFWTimeline as Qe } from "./react-components/timeline/EFWTimeline/EFWTimeline.js";
|
|
43
|
+
import { DEFAULT_STATUS_COLORS as $e, DEFAULT_STATUS_LABELS as er, deriveStatusFromActive as rr } from "./react-components/timeline/EFWTimeline/EFWTimeline.utils.js";
|
|
42
44
|
export {
|
|
43
|
-
|
|
45
|
+
Ue as DEFAULT_EFW_BUTTONS_LOCALE_TEXT,
|
|
44
46
|
Ne as DEFAULT_EFW_FIELDS_LOCALE_TEXT,
|
|
45
47
|
Ve as DEFAULT_EFW_FORM_LOCALE_TEXT,
|
|
46
48
|
be as DEFAULT_EFW_TABLE_LOCALE_TEXT,
|
|
47
|
-
|
|
49
|
+
Re as DEFAULT_EFW_TIMELINE_LOCALE_TEXT,
|
|
50
|
+
$e as DEFAULT_STATUS_COLORS,
|
|
51
|
+
er as DEFAULT_STATUS_LABELS,
|
|
52
|
+
n as EFWAttachment,
|
|
48
53
|
d as EFWAttachmentsField,
|
|
49
54
|
p as EFWButton,
|
|
50
|
-
|
|
55
|
+
ie as EFWConversionError,
|
|
51
56
|
O as EFWDatePicker,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
U as EFWDatePickerField,
|
|
58
|
+
f as EFWDrawerButton,
|
|
59
|
+
W as EFWField,
|
|
60
|
+
Le as EFWForm,
|
|
61
|
+
se as EFWFormMessageBarGroup,
|
|
62
|
+
u as EFWGroupButton,
|
|
63
|
+
V as EFWInput,
|
|
64
|
+
k as EFWInputField,
|
|
65
|
+
E as EFWMessageBarManager,
|
|
66
|
+
M as EFWNumberInput,
|
|
62
67
|
X as EFWNumberInputField,
|
|
63
|
-
|
|
68
|
+
Y as EFWSwitch,
|
|
64
69
|
J as EFWSwitchField,
|
|
65
70
|
ye as EFWTable,
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
He as EFWTableEmpty,
|
|
72
|
+
Je as EFWTableOverlay,
|
|
68
73
|
Q as EFWTagPicker,
|
|
69
74
|
re as EFWTagPickerField,
|
|
70
75
|
te as EFWTextArea,
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
ae as EFWTextAreaField,
|
|
77
|
+
Qe as EFWTimeline,
|
|
78
|
+
We as EFWValuesToFlat,
|
|
73
79
|
ke as PORYGON_LOCALES,
|
|
74
80
|
Ge as PORYGON_LOCALE_EN,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
Me as PORYGON_LOCALE_ES,
|
|
82
|
+
ve as PORYGON_LOCALE_PT_BR,
|
|
83
|
+
ge as PorygonI18nProvider,
|
|
84
|
+
rr as deriveStatusFromActive,
|
|
78
85
|
D as enLocalizedStrings,
|
|
79
|
-
|
|
80
|
-
|
|
86
|
+
P as esLocalizedStrings,
|
|
87
|
+
_e as flatToEFWValues,
|
|
81
88
|
o as formatFileSize,
|
|
82
|
-
|
|
89
|
+
A as getAttachmentsFormattedValue,
|
|
83
90
|
C as getDatePickerFormattedValue,
|
|
84
91
|
t as getErrorMessage,
|
|
85
92
|
F as getFileIconUrl,
|
|
86
93
|
xe as getFormFieldDisplayText,
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
R as getInputFormattedValue,
|
|
95
|
+
w as getNumberInputFormattedValue,
|
|
89
96
|
q as getSwitchFormattedValue,
|
|
90
97
|
$ as getTagPickerFormattedValue,
|
|
91
98
|
me as getTextAreaFormattedValue,
|
|
92
|
-
|
|
99
|
+
B as ptLocalizedStrings,
|
|
93
100
|
Oe as useButtonsLocaleText,
|
|
94
|
-
|
|
101
|
+
je as useDefaultFilterButton,
|
|
95
102
|
ce as useDrawer,
|
|
96
103
|
l as useEFWButton,
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
Se as useFieldsLocaleText,
|
|
105
|
+
Te as useFormController,
|
|
99
106
|
De as useFormLocaleText,
|
|
100
|
-
|
|
107
|
+
Pe as usePorygonLocaleText,
|
|
101
108
|
ze as useTableController,
|
|
102
|
-
Ce as useTableLocaleText
|
|
109
|
+
Ce as useTableLocaleText,
|
|
110
|
+
Be as useTimelineLocaleText
|
|
103
111
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { EFWFormLocaleText, EFWFieldsLocaleText, EFWButtonsLocaleText, EFWTableLocaleText, PorygonLocaleText } from './porygonI18n.types';
|
|
2
|
+
import { EFWFormLocaleText, EFWFieldsLocaleText, EFWButtonsLocaleText, EFWTableLocaleText, EFWTimelineLocaleText, PorygonLocaleText, DeepPartial } from './porygonI18n.types';
|
|
3
3
|
|
|
4
4
|
export interface PorygonI18nProviderProps {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
localeText?: PorygonLocaleText;
|
|
7
7
|
}
|
|
8
|
-
export declare const PorygonI18nProvider: ({ children, localeText }: PorygonI18nProviderProps) => React.ReactElement;
|
|
8
|
+
export declare const PorygonI18nProvider: ({ children, localeText, }: PorygonI18nProviderProps) => React.ReactElement;
|
|
9
9
|
export declare const usePorygonLocaleText: () => PorygonLocaleText;
|
|
10
10
|
export declare const useFormLocaleText: (localeText?: Partial<EFWFormLocaleText>) => EFWFormLocaleText;
|
|
11
11
|
export declare const useFieldsLocaleText: () => EFWFieldsLocaleText;
|
|
12
12
|
export declare const useButtonsLocaleText: () => EFWButtonsLocaleText;
|
|
13
13
|
export declare const useTableLocaleText: (localeText?: Partial<EFWTableLocaleText>) => EFWTableLocaleText;
|
|
14
|
+
export declare const useTimelineLocaleText: (localeText?: DeepPartial<EFWTimelineLocaleText>) => EFWTimelineLocaleText;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as _, useContext as g, useMemo as l } from "react";
|
|
3
|
+
import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as c, DEFAULT_EFW_FIELDS_LOCALE_TEXT as n, DEFAULT_EFW_TABLE_LOCALE_TEXT as A, DEFAULT_EFW_FORM_LOCALE_TEXT as F, DEFAULT_EFW_TIMELINE_LOCALE_TEXT as p } from "./defaultLocaleText.js";
|
|
4
|
+
const m = _({}), P = (e, t) => {
|
|
5
5
|
if (!e && !t) return;
|
|
6
6
|
if (!e) return t;
|
|
7
7
|
if (!t) return e;
|
|
8
|
-
const
|
|
8
|
+
const s = {}, i = [
|
|
9
9
|
"input",
|
|
10
10
|
"numberInput",
|
|
11
11
|
"textArea",
|
|
@@ -14,42 +14,42 @@ const f = E({}), P = (e, t) => {
|
|
|
14
14
|
"datePicker",
|
|
15
15
|
"attachments"
|
|
16
16
|
];
|
|
17
|
-
for (const o of
|
|
17
|
+
for (const o of i) {
|
|
18
18
|
const a = e[o], r = t[o];
|
|
19
19
|
if (!a && !r) continue;
|
|
20
20
|
if (!a) {
|
|
21
|
-
|
|
21
|
+
s[o] = r;
|
|
22
22
|
continue;
|
|
23
23
|
}
|
|
24
24
|
if (!r) {
|
|
25
|
-
|
|
25
|
+
s[o] = a;
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const f = {}, T = a, E = r;
|
|
29
29
|
for (const b of ["labels", "validationMessages"]) {
|
|
30
|
-
const
|
|
31
|
-
!
|
|
30
|
+
const L = T[b], d = E[b];
|
|
31
|
+
!L && !d || (f[b] = { ...L, ...d });
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
s[o] = f;
|
|
34
34
|
}
|
|
35
|
-
return
|
|
36
|
-
},
|
|
35
|
+
return s;
|
|
36
|
+
}, M = (e, t) => {
|
|
37
37
|
if (!e && !t) return;
|
|
38
38
|
if (!e) return t;
|
|
39
39
|
if (!t) return e;
|
|
40
|
-
const
|
|
41
|
-
for (const o of
|
|
40
|
+
const s = {}, i = ["button", "groupButton", "drawer"];
|
|
41
|
+
for (const o of i) {
|
|
42
42
|
const a = e[o], r = t[o];
|
|
43
43
|
if (!(!a && !r)) {
|
|
44
44
|
if (!a) {
|
|
45
|
-
|
|
45
|
+
s[o] = r;
|
|
46
46
|
continue;
|
|
47
47
|
}
|
|
48
48
|
if (!r) {
|
|
49
|
-
|
|
49
|
+
s[o] = a;
|
|
50
50
|
continue;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
s[o] = {
|
|
53
53
|
labels: {
|
|
54
54
|
...a.labels ?? {},
|
|
55
55
|
...r.labels ?? {}
|
|
@@ -57,89 +57,182 @@ const f = E({}), P = (e, t) => {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
return
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
...
|
|
65
|
-
...t
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
60
|
+
return s;
|
|
61
|
+
}, k = (e, t) => {
|
|
62
|
+
if (!(!e && !t))
|
|
63
|
+
return e ? t ? {
|
|
64
|
+
...e,
|
|
65
|
+
...t,
|
|
66
|
+
statusLabels: { ...e.statusLabels, ...t.statusLabels }
|
|
67
|
+
} : e : t;
|
|
68
|
+
}, y = ({
|
|
69
|
+
children: e,
|
|
70
|
+
localeText: t
|
|
71
|
+
}) => {
|
|
72
|
+
const s = g(m), i = l(
|
|
73
|
+
() => ({
|
|
74
|
+
form: {
|
|
75
|
+
...s.form,
|
|
76
|
+
...t?.form
|
|
77
|
+
},
|
|
78
|
+
table: {
|
|
79
|
+
...s.table,
|
|
80
|
+
...t?.table
|
|
81
|
+
},
|
|
82
|
+
fields: P(
|
|
83
|
+
s.fields,
|
|
84
|
+
t?.fields
|
|
85
|
+
),
|
|
86
|
+
buttons: M(
|
|
87
|
+
s.buttons,
|
|
88
|
+
t?.buttons
|
|
89
|
+
),
|
|
90
|
+
timeline: k(
|
|
91
|
+
s.timeline,
|
|
92
|
+
t?.timeline
|
|
93
|
+
)
|
|
94
|
+
}),
|
|
95
|
+
[
|
|
96
|
+
s.form,
|
|
97
|
+
s.table,
|
|
98
|
+
s.fields,
|
|
99
|
+
s.buttons,
|
|
100
|
+
s.timeline,
|
|
101
|
+
t?.form,
|
|
102
|
+
t?.table,
|
|
103
|
+
t?.fields,
|
|
104
|
+
t?.buttons,
|
|
105
|
+
t?.timeline
|
|
106
|
+
]
|
|
107
|
+
);
|
|
108
|
+
return /* @__PURE__ */ x(m.Provider, { value: i, children: e });
|
|
109
|
+
}, u = () => g(m), h = (e) => {
|
|
110
|
+
const t = u();
|
|
111
|
+
return l(
|
|
112
|
+
() => ({
|
|
113
|
+
...F,
|
|
114
|
+
...t.form ?? {},
|
|
115
|
+
...e ?? {}
|
|
116
|
+
}),
|
|
117
|
+
[t.form, e]
|
|
118
|
+
);
|
|
119
|
+
}, w = () => {
|
|
120
|
+
const e = u();
|
|
121
|
+
return l(() => {
|
|
85
122
|
const t = e.fields;
|
|
86
123
|
return t ? {
|
|
87
124
|
input: {
|
|
88
|
-
labels: {
|
|
89
|
-
|
|
125
|
+
labels: {
|
|
126
|
+
...n.input.labels,
|
|
127
|
+
...t.input?.labels
|
|
128
|
+
},
|
|
129
|
+
validationMessages: {
|
|
130
|
+
...n.input.validationMessages,
|
|
131
|
+
...t.input?.validationMessages
|
|
132
|
+
}
|
|
90
133
|
},
|
|
91
134
|
numberInput: {
|
|
92
|
-
labels: {
|
|
93
|
-
|
|
135
|
+
labels: {
|
|
136
|
+
...n.numberInput.labels,
|
|
137
|
+
...t.numberInput?.labels
|
|
138
|
+
},
|
|
139
|
+
validationMessages: {
|
|
140
|
+
...n.numberInput.validationMessages,
|
|
141
|
+
...t.numberInput?.validationMessages
|
|
142
|
+
}
|
|
94
143
|
},
|
|
95
144
|
textArea: {
|
|
96
|
-
labels: {
|
|
97
|
-
|
|
145
|
+
labels: {
|
|
146
|
+
...n.textArea.labels,
|
|
147
|
+
...t.textArea?.labels
|
|
148
|
+
},
|
|
149
|
+
validationMessages: {
|
|
150
|
+
...n.textArea.validationMessages,
|
|
151
|
+
...t.textArea?.validationMessages
|
|
152
|
+
}
|
|
98
153
|
},
|
|
99
154
|
switch: {
|
|
100
|
-
labels: {
|
|
155
|
+
labels: {
|
|
156
|
+
...n.switch.labels,
|
|
157
|
+
...t.switch?.labels
|
|
158
|
+
}
|
|
101
159
|
},
|
|
102
160
|
tagPicker: {
|
|
103
|
-
labels: {
|
|
161
|
+
labels: {
|
|
162
|
+
...n.tagPicker.labels,
|
|
163
|
+
...t.tagPicker?.labels
|
|
164
|
+
}
|
|
104
165
|
},
|
|
105
166
|
datePicker: {
|
|
106
|
-
labels: {
|
|
107
|
-
|
|
167
|
+
labels: {
|
|
168
|
+
...n.datePicker.labels,
|
|
169
|
+
...t.datePicker?.labels
|
|
170
|
+
},
|
|
171
|
+
calendarStrings: t.datePicker?.calendarStrings ?? n.datePicker.calendarStrings
|
|
108
172
|
},
|
|
109
173
|
attachments: {
|
|
110
|
-
labels: {
|
|
174
|
+
labels: {
|
|
175
|
+
...n.attachments.labels,
|
|
176
|
+
...t.attachments?.labels
|
|
177
|
+
}
|
|
111
178
|
}
|
|
112
|
-
} :
|
|
179
|
+
} : n;
|
|
113
180
|
}, [e.fields]);
|
|
114
|
-
},
|
|
115
|
-
const e =
|
|
116
|
-
return
|
|
181
|
+
}, B = () => {
|
|
182
|
+
const e = u();
|
|
183
|
+
return l(() => {
|
|
117
184
|
const t = e.buttons;
|
|
118
185
|
return t ? {
|
|
119
186
|
button: {
|
|
120
|
-
labels: {
|
|
187
|
+
labels: {
|
|
188
|
+
...c.button.labels,
|
|
189
|
+
...t.button?.labels
|
|
190
|
+
}
|
|
121
191
|
},
|
|
122
192
|
groupButton: {
|
|
123
|
-
labels: {
|
|
193
|
+
labels: {
|
|
194
|
+
...c.groupButton.labels,
|
|
195
|
+
...t.groupButton?.labels
|
|
196
|
+
}
|
|
124
197
|
},
|
|
125
198
|
drawer: {
|
|
126
|
-
labels: {
|
|
199
|
+
labels: {
|
|
200
|
+
...c.drawer.labels,
|
|
201
|
+
...t.drawer?.labels
|
|
202
|
+
}
|
|
127
203
|
}
|
|
128
|
-
} :
|
|
204
|
+
} : c;
|
|
129
205
|
}, [e.buttons]);
|
|
130
|
-
},
|
|
131
|
-
const t =
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
206
|
+
}, O = (e) => {
|
|
207
|
+
const t = u();
|
|
208
|
+
return l(
|
|
209
|
+
() => ({
|
|
210
|
+
...A,
|
|
211
|
+
...t.table ?? {},
|
|
212
|
+
...e ?? {}
|
|
213
|
+
}),
|
|
214
|
+
[t.table, e]
|
|
215
|
+
);
|
|
216
|
+
}, S = (e) => {
|
|
217
|
+
const t = u();
|
|
218
|
+
return l(() => {
|
|
219
|
+
const s = t.timeline;
|
|
220
|
+
return {
|
|
221
|
+
noTimestamp: e?.noTimestamp ?? s?.noTimestamp ?? p.noTimestamp,
|
|
222
|
+
statusLabels: {
|
|
223
|
+
...p.statusLabels,
|
|
224
|
+
...s?.statusLabels,
|
|
225
|
+
...e?.statusLabels
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}, [t.timeline, e]);
|
|
137
229
|
};
|
|
138
230
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
231
|
+
y as PorygonI18nProvider,
|
|
232
|
+
B as useButtonsLocaleText,
|
|
233
|
+
w as useFieldsLocaleText,
|
|
234
|
+
h as useFormLocaleText,
|
|
235
|
+
u as usePorygonLocaleText,
|
|
236
|
+
O as useTableLocaleText,
|
|
237
|
+
S as useTimelineLocaleText
|
|
145
238
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EFWFormLocaleText, EFWFieldsLocaleText, EFWButtonsLocaleText, EFWTableLocaleText } from './porygonI18n.types';
|
|
1
|
+
import { EFWFormLocaleText, EFWFieldsLocaleText, EFWButtonsLocaleText, EFWTableLocaleText, EFWTimelineLocaleText } from './porygonI18n.types';
|
|
2
2
|
|
|
3
3
|
export declare const DEFAULT_EFW_FORM_LOCALE_TEXT: EFWFormLocaleText;
|
|
4
|
+
export declare const DEFAULT_EFW_TIMELINE_LOCALE_TEXT: EFWTimelineLocaleText;
|
|
4
5
|
export declare const DEFAULT_EFW_FIELDS_LOCALE_TEXT: EFWFieldsLocaleText;
|
|
5
6
|
export declare const DEFAULT_EFW_BUTTONS_LOCALE_TEXT: EFWButtonsLocaleText;
|
|
6
7
|
export declare const DEFAULT_EFW_TABLE_LOCALE_TEXT: EFWTableLocaleText;
|
|
@@ -6,6 +6,14 @@ const c = {
|
|
|
6
6
|
requiredFieldsNotification: "Por favor complete todos los campos indicados como requeridos e inténtelo nuevamente.",
|
|
7
7
|
unsupportedFieldType: (e) => `Tipo de campo no soportado: ${e}`
|
|
8
8
|
}, m = {
|
|
9
|
+
noTimestamp: "Sin fecha registrada",
|
|
10
|
+
statusLabels: {
|
|
11
|
+
done: "Completada",
|
|
12
|
+
current: "En curso",
|
|
13
|
+
error: "Con error",
|
|
14
|
+
pending: "Pendiente"
|
|
15
|
+
}
|
|
16
|
+
}, u = {
|
|
9
17
|
input: {
|
|
10
18
|
labels: {
|
|
11
19
|
placeholder: "",
|
|
@@ -76,7 +84,7 @@ const c = {
|
|
|
76
84
|
maxFileSizeExceededMessage: (e, a) => `Existe un adjunto que excede el peso máximo de ${a} (${e} bytes).`
|
|
77
85
|
}
|
|
78
86
|
}
|
|
79
|
-
},
|
|
87
|
+
}, p = {
|
|
80
88
|
button: {
|
|
81
89
|
labels: {
|
|
82
90
|
loadingText: "Procesando...",
|
|
@@ -97,7 +105,7 @@ const c = {
|
|
|
97
105
|
loadingContentText: "Cargando contenido..."
|
|
98
106
|
}
|
|
99
107
|
}
|
|
100
|
-
},
|
|
108
|
+
}, E = {
|
|
101
109
|
addButtonLabel: "Nuevo",
|
|
102
110
|
addDrawerTitle: "Nuevo elemento",
|
|
103
111
|
addDrawerDescription: /* @__PURE__ */ o(r, { children: [
|
|
@@ -169,8 +177,9 @@ const c = {
|
|
|
169
177
|
resizeColumnAriaLabel: "Redimensionar columna"
|
|
170
178
|
};
|
|
171
179
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
180
|
+
p as DEFAULT_EFW_BUTTONS_LOCALE_TEXT,
|
|
181
|
+
u as DEFAULT_EFW_FIELDS_LOCALE_TEXT,
|
|
174
182
|
c as DEFAULT_EFW_FORM_LOCALE_TEXT,
|
|
175
|
-
|
|
183
|
+
E as DEFAULT_EFW_TABLE_LOCALE_TEXT,
|
|
184
|
+
m as DEFAULT_EFW_TIMELINE_LOCALE_TEXT
|
|
176
185
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PorygonI18nProvider, usePorygonLocaleText, useFormLocaleText, useFieldsLocaleText, useButtonsLocaleText, useTableLocaleText } from './PorygonI18nProvider';
|
|
2
|
-
export { DEFAULT_EFW_FORM_LOCALE_TEXT, DEFAULT_EFW_FIELDS_LOCALE_TEXT, DEFAULT_EFW_BUTTONS_LOCALE_TEXT, DEFAULT_EFW_TABLE_LOCALE_TEXT } from './defaultLocaleText';
|
|
3
|
-
export { PORYGON_LOCALE_ES, PORYGON_LOCALE_EN, PORYGON_LOCALE_PT_BR, PORYGON_LOCALES } from './localePresets';
|
|
4
|
-
export type { EFWFormLocaleText, EFWFormExtendedLocaleText, EFWFieldsLocaleText, EFWButtonsLocaleText, EFWTableLocaleText, EFWTableExtendedLocaleText, PorygonLocaleText, PorygonResolvedLocaleText, PorygonLocalePresetCode, DeepPartial, } from './porygonI18n.types';
|
|
1
|
+
export { PorygonI18nProvider, usePorygonLocaleText, useFormLocaleText, useFieldsLocaleText, useButtonsLocaleText, useTableLocaleText, useTimelineLocaleText, } from './PorygonI18nProvider';
|
|
2
|
+
export { DEFAULT_EFW_FORM_LOCALE_TEXT, DEFAULT_EFW_FIELDS_LOCALE_TEXT, DEFAULT_EFW_BUTTONS_LOCALE_TEXT, DEFAULT_EFW_TABLE_LOCALE_TEXT, DEFAULT_EFW_TIMELINE_LOCALE_TEXT, } from './defaultLocaleText';
|
|
3
|
+
export { PORYGON_LOCALE_ES, PORYGON_LOCALE_EN, PORYGON_LOCALE_PT_BR, PORYGON_LOCALES, } from './localePresets';
|
|
4
|
+
export type { EFWFormLocaleText, EFWFormExtendedLocaleText, EFWFieldsLocaleText, EFWButtonsLocaleText, EFWTableLocaleText, EFWTableExtendedLocaleText, EFWTimelineLocaleText, PorygonLocaleText, PorygonResolvedLocaleText, PorygonLocalePresetCode, DeepPartial, } from './porygonI18n.types';
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { PorygonI18nProvider as
|
|
2
|
-
import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as
|
|
3
|
-
import { PORYGON_LOCALES as
|
|
1
|
+
import { PorygonI18nProvider as T, useButtonsLocaleText as _, useFieldsLocaleText as e, useFormLocaleText as o, usePorygonLocaleText as O, useTableLocaleText as A, useTimelineLocaleText as F } from "./PorygonI18nProvider.js";
|
|
2
|
+
import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as t, DEFAULT_EFW_FIELDS_LOCALE_TEXT as l, DEFAULT_EFW_FORM_LOCALE_TEXT as x, DEFAULT_EFW_TABLE_LOCALE_TEXT as C, DEFAULT_EFW_TIMELINE_LOCALE_TEXT as s } from "./defaultLocaleText.js";
|
|
3
|
+
import { PORYGON_LOCALES as a, PORYGON_LOCALE_EN as u, PORYGON_LOCALE_ES as N, PORYGON_LOCALE_PT_BR as c } from "./localePresets.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
t as DEFAULT_EFW_BUTTONS_LOCALE_TEXT,
|
|
6
|
+
l as DEFAULT_EFW_FIELDS_LOCALE_TEXT,
|
|
7
7
|
x as DEFAULT_EFW_FORM_LOCALE_TEXT,
|
|
8
8
|
C as DEFAULT_EFW_TABLE_LOCALE_TEXT,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
T as
|
|
9
|
+
s as DEFAULT_EFW_TIMELINE_LOCALE_TEXT,
|
|
10
|
+
a as PORYGON_LOCALES,
|
|
11
|
+
u as PORYGON_LOCALE_EN,
|
|
12
|
+
N as PORYGON_LOCALE_ES,
|
|
13
|
+
c as PORYGON_LOCALE_PT_BR,
|
|
14
|
+
T as PorygonI18nProvider,
|
|
15
|
+
_ as useButtonsLocaleText,
|
|
15
16
|
e as useFieldsLocaleText,
|
|
16
17
|
o as useFormLocaleText,
|
|
17
18
|
O as usePorygonLocaleText,
|
|
18
|
-
A as useTableLocaleText
|
|
19
|
+
A as useTableLocaleText,
|
|
20
|
+
F as useTimelineLocaleText
|
|
19
21
|
};
|