@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 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 a } from "./react-components/forms/EFWMessageBarManager/EFWMessageBarManager.js";
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 u } from "./react-components/buttons/EFWDrawerButton/EFWDrawerButton.js";
6
- import { EFWGroupButton as i } from "./react-components/buttons/EFWGroupButton/EFWGroupButton.js";
7
- import { EFWField as L } from "./react-components/fields/_shared/EFWField/EFWField.js";
8
- import { EFWAttachment as s } from "./react-components/fields/Attachments/EFWAttachments.js";
9
- import { getAttachmentsFormattedValue as g } from "./react-components/fields/Attachments/EFWAttachments.utils.js";
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 B, getDatePickerFormattedValue as C, ptLocalizedStrings as S } from "./react-components/fields/DatePicker/EFWDatePicker.utils.js";
13
- import { EFWDatePickerField as N } from "./react-components/fields/DatePicker/EFWDatePickerField.js";
14
- import { EFWInput as b } from "./react-components/fields/Input/EFWInput.js";
15
- import { getInputFormattedValue as k } from "./react-components/fields/Input/EFWInput.utils.js";
16
- import { EFWInputField as R } from "./react-components/fields/Input/EFWInputField.js";
17
- import { EFWNumberInput as w } from "./react-components/fields/NumberInput/EFWNumberInput.js";
18
- import { getNumberInputFormattedValue as M } from "./react-components/fields/NumberInput/EFWNumberInput.utils.js";
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 v } from "./react-components/fields/Switch/EFWSwitch.js";
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 Ee } from "./react-components/fields/TextArea/EFWTextAreaField.js";
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 fe } from "./react-components/forms/EFWForm/EFWForm.hooks.js";
31
- import { EFWForm as Te } from "./react-components/forms/EFWForm/EFWForm.js";
32
- import { EFWConversionError as We, EFWValuesToFlat as Le, flatToEFWValues as ne } from "./react-components/forms/EFWForm/EFWForm.flatConverter.js";
33
- import { EFWFormMessageBarGroup as _e } from "./react-components/forms/EFWFormMessageBarGroup/EFWFormMessageBarGroup.js";
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 Ae, useButtonsLocaleText as Oe, useFieldsLocaleText as Pe, useFormLocaleText as De, usePorygonLocaleText as Be, useTableLocaleText as Ce } from "./react-components/i18n/PorygonI18nProvider.js";
36
- import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as Ie, DEFAULT_EFW_FIELDS_LOCALE_TEXT as Ne, DEFAULT_EFW_FORM_LOCALE_TEXT as Ve, DEFAULT_EFW_TABLE_LOCALE_TEXT as be } from "./react-components/i18n/defaultLocaleText.js";
37
- import { PORYGON_LOCALES as ke, PORYGON_LOCALE_EN as Ge, PORYGON_LOCALE_ES as Re, PORYGON_LOCALE_PT_BR as Ue } from "./react-components/i18n/localePresets.js";
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 Ye } from "./react-components/tables/EFWTable/hooks/useDefaultFilterButton/useDefaultFilterButton.js";
41
- import { EFWTableEmpty as je, EFWTableOverlay as qe } from "./react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.js";
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
- Ie as DEFAULT_EFW_BUTTONS_LOCALE_TEXT,
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
- s as EFWAttachment,
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
- We as EFWConversionError,
55
+ ie as EFWConversionError,
51
56
  O as EFWDatePicker,
52
- N as EFWDatePickerField,
53
- u as EFWDrawerButton,
54
- L as EFWField,
55
- Te as EFWForm,
56
- _e as EFWFormMessageBarGroup,
57
- i as EFWGroupButton,
58
- b as EFWInput,
59
- R as EFWInputField,
60
- a as EFWMessageBarManager,
61
- w as EFWNumberInput,
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
- v as EFWSwitch,
68
+ Y as EFWSwitch,
64
69
  J as EFWSwitchField,
65
70
  ye as EFWTable,
66
- je as EFWTableEmpty,
67
- qe as EFWTableOverlay,
71
+ He as EFWTableEmpty,
72
+ Je as EFWTableOverlay,
68
73
  Q as EFWTagPicker,
69
74
  re as EFWTagPickerField,
70
75
  te as EFWTextArea,
71
- Ee as EFWTextAreaField,
72
- Le as EFWValuesToFlat,
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
- Re as PORYGON_LOCALE_ES,
76
- Ue as PORYGON_LOCALE_PT_BR,
77
- Ae as PorygonI18nProvider,
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
- B as esLocalizedStrings,
80
- ne as flatToEFWValues,
86
+ P as esLocalizedStrings,
87
+ _e as flatToEFWValues,
81
88
  o as formatFileSize,
82
- g as getAttachmentsFormattedValue,
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
- k as getInputFormattedValue,
88
- M as getNumberInputFormattedValue,
94
+ R as getInputFormattedValue,
95
+ w as getNumberInputFormattedValue,
89
96
  q as getSwitchFormattedValue,
90
97
  $ as getTagPickerFormattedValue,
91
98
  me as getTextAreaFormattedValue,
92
- S as ptLocalizedStrings,
99
+ B as ptLocalizedStrings,
93
100
  Oe as useButtonsLocaleText,
94
- Ye as useDefaultFilterButton,
101
+ je as useDefaultFilterButton,
95
102
  ce as useDrawer,
96
103
  l as useEFWButton,
97
- Pe as useFieldsLocaleText,
98
- fe as useFormController,
104
+ Se as useFieldsLocaleText,
105
+ Te as useFormController,
99
106
  De as useFormLocaleText,
100
- Be as usePorygonLocaleText,
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 T } from "react/jsx-runtime";
2
- import { createContext as E, useContext as p, useMemo as i } from "react";
3
- import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as u, DEFAULT_EFW_FIELDS_LOCALE_TEXT as s, DEFAULT_EFW_TABLE_LOCALE_TEXT as A, DEFAULT_EFW_FORM_LOCALE_TEXT as _ } from "./defaultLocaleText.js";
4
- const f = E({}), P = (e, t) => {
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 n = {}, l = [
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 l) {
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
- n[o] = r;
21
+ s[o] = r;
22
22
  continue;
23
23
  }
24
24
  if (!r) {
25
- n[o] = a;
25
+ s[o] = a;
26
26
  continue;
27
27
  }
28
- const d = {}, L = a, x = r;
28
+ const f = {}, T = a, E = r;
29
29
  for (const b of ["labels", "validationMessages"]) {
30
- const m = L[b], g = x[b];
31
- !m && !g || (d[b] = { ...m, ...g });
30
+ const L = T[b], d = E[b];
31
+ !L && !d || (f[b] = { ...L, ...d });
32
32
  }
33
- n[o] = d;
33
+ s[o] = f;
34
34
  }
35
- return n;
36
- }, v = (e, t) => {
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 n = {}, l = ["button", "groupButton", "drawer"];
41
- for (const o of l) {
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
- n[o] = r;
45
+ s[o] = r;
46
46
  continue;
47
47
  }
48
48
  if (!r) {
49
- n[o] = a;
49
+ s[o] = a;
50
50
  continue;
51
51
  }
52
- n[o] = {
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 n;
61
- }, C = ({ children: e, localeText: t }) => {
62
- const n = p(f), l = i(() => ({
63
- form: {
64
- ...n.form,
65
- ...t?.form
66
- },
67
- table: {
68
- ...n.table,
69
- ...t?.table
70
- },
71
- fields: P(n.fields, t?.fields),
72
- buttons: v(n.buttons, t?.buttons)
73
- }), [n.form, n.table, n.fields, n.buttons, t?.form, t?.table, t?.fields, t?.buttons]);
74
- return /* @__PURE__ */ T(f.Provider, { value: l, children: e });
75
- }, c = () => p(f), y = (e) => {
76
- const t = c();
77
- return i(() => ({
78
- ..._,
79
- ...t.form ?? {},
80
- ...e ?? {}
81
- }), [t.form, e]);
82
- }, I = () => {
83
- const e = c();
84
- return i(() => {
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: { ...s.input.labels, ...t.input?.labels },
89
- validationMessages: { ...s.input.validationMessages, ...t.input?.validationMessages }
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: { ...s.numberInput.labels, ...t.numberInput?.labels },
93
- validationMessages: { ...s.numberInput.validationMessages, ...t.numberInput?.validationMessages }
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: { ...s.textArea.labels, ...t.textArea?.labels },
97
- validationMessages: { ...s.textArea.validationMessages, ...t.textArea?.validationMessages }
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: { ...s.switch.labels, ...t.switch?.labels }
155
+ labels: {
156
+ ...n.switch.labels,
157
+ ...t.switch?.labels
158
+ }
101
159
  },
102
160
  tagPicker: {
103
- labels: { ...s.tagPicker.labels, ...t.tagPicker?.labels }
161
+ labels: {
162
+ ...n.tagPicker.labels,
163
+ ...t.tagPicker?.labels
164
+ }
104
165
  },
105
166
  datePicker: {
106
- labels: { ...s.datePicker.labels, ...t.datePicker?.labels },
107
- calendarStrings: t.datePicker?.calendarStrings ?? s.datePicker.calendarStrings
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: { ...s.attachments.labels, ...t.attachments?.labels }
174
+ labels: {
175
+ ...n.attachments.labels,
176
+ ...t.attachments?.labels
177
+ }
111
178
  }
112
- } : s;
179
+ } : n;
113
180
  }, [e.fields]);
114
- }, h = () => {
115
- const e = c();
116
- return i(() => {
181
+ }, B = () => {
182
+ const e = u();
183
+ return l(() => {
117
184
  const t = e.buttons;
118
185
  return t ? {
119
186
  button: {
120
- labels: { ...u.button.labels, ...t.button?.labels }
187
+ labels: {
188
+ ...c.button.labels,
189
+ ...t.button?.labels
190
+ }
121
191
  },
122
192
  groupButton: {
123
- labels: { ...u.groupButton.labels, ...t.groupButton?.labels }
193
+ labels: {
194
+ ...c.groupButton.labels,
195
+ ...t.groupButton?.labels
196
+ }
124
197
  },
125
198
  drawer: {
126
- labels: { ...u.drawer.labels, ...t.drawer?.labels }
199
+ labels: {
200
+ ...c.drawer.labels,
201
+ ...t.drawer?.labels
202
+ }
127
203
  }
128
- } : u;
204
+ } : c;
129
205
  }, [e.buttons]);
130
- }, w = (e) => {
131
- const t = c();
132
- return i(() => ({
133
- ...A,
134
- ...t.table ?? {},
135
- ...e ?? {}
136
- }), [t.table, e]);
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
- C as PorygonI18nProvider,
140
- h as useButtonsLocaleText,
141
- I as useFieldsLocaleText,
142
- y as useFormLocaleText,
143
- c as usePorygonLocaleText,
144
- w as useTableLocaleText
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
- }, u = {
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
- }, p = {
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
- u as DEFAULT_EFW_BUTTONS_LOCALE_TEXT,
173
- m as DEFAULT_EFW_FIELDS_LOCALE_TEXT,
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
- p as DEFAULT_EFW_TABLE_LOCALE_TEXT
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 _, useButtonsLocaleText as T, useFieldsLocaleText as e, useFormLocaleText as o, usePorygonLocaleText as O, useTableLocaleText as A } from "./PorygonI18nProvider.js";
2
- import { DEFAULT_EFW_BUTTONS_LOCALE_TEXT as r, DEFAULT_EFW_FIELDS_LOCALE_TEXT as t, DEFAULT_EFW_FORM_LOCALE_TEXT as x, DEFAULT_EFW_TABLE_LOCALE_TEXT as C } from "./defaultLocaleText.js";
3
- import { PORYGON_LOCALES as l, PORYGON_LOCALE_EN as s, PORYGON_LOCALE_ES as a, PORYGON_LOCALE_PT_BR as u } from "./localePresets.js";
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
- r as DEFAULT_EFW_BUTTONS_LOCALE_TEXT,
6
- t as DEFAULT_EFW_FIELDS_LOCALE_TEXT,
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
- l as PORYGON_LOCALES,
10
- s as PORYGON_LOCALE_EN,
11
- a as PORYGON_LOCALE_ES,
12
- u as PORYGON_LOCALE_PT_BR,
13
- _ as PorygonI18nProvider,
14
- T as useButtonsLocaleText,
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
  };