@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.
@@ -1,12 +1,12 @@
1
1
  import { jsxs as t, Fragment as o, jsx as r } from "react/jsx-runtime";
2
2
  import { Text as l } from "@fluentui/react-components";
3
- import { DEFAULT_EFW_TABLE_LOCALE_TEXT as i, DEFAULT_EFW_BUTTONS_LOCALE_TEXT as d, DEFAULT_EFW_FIELDS_LOCALE_TEXT as n, DEFAULT_EFW_FORM_LOCALE_TEXT as s } from "./defaultLocaleText.js";
4
- import { enLocalizedStrings as c, ptLocalizedStrings as m } from "../fields/DatePicker/EFWDatePicker.utils.js";
5
- const u = {
3
+ import { DEFAULT_EFW_TIMELINE_LOCALE_TEXT as i, DEFAULT_EFW_TABLE_LOCALE_TEXT as n, DEFAULT_EFW_BUTTONS_LOCALE_TEXT as d, DEFAULT_EFW_FIELDS_LOCALE_TEXT as s, DEFAULT_EFW_FORM_LOCALE_TEXT as c } from "./defaultLocaleText.js";
4
+ import { enLocalizedStrings as m, ptLocalizedStrings as u } from "../fields/DatePicker/EFWDatePicker.utils.js";
5
+ const p = {
6
6
  requiredFieldError: "This field is required",
7
7
  requiredFieldsNotification: "Please complete all required fields and try again.",
8
8
  unsupportedFieldType: (e) => `Unsupported field type: ${e}`
9
- }, p = {
9
+ }, E = {
10
10
  input: {
11
11
  labels: {
12
12
  placeholder: "",
@@ -66,7 +66,7 @@ const u = {
66
66
  placeholder: "DD/MM/YYYY",
67
67
  emptyState: "No data available"
68
68
  },
69
- calendarStrings: c
69
+ calendarStrings: m
70
70
  },
71
71
  attachments: {
72
72
  labels: {
@@ -77,7 +77,7 @@ const u = {
77
77
  maxFileSizeExceededMessage: (e, a) => `An attachment exceeds the maximum size of ${a}.`
78
78
  }
79
79
  }
80
- }, E = {
80
+ }, L = {
81
81
  button: {
82
82
  labels: {
83
83
  loadingText: "Processing...",
@@ -98,7 +98,7 @@ const u = {
98
98
  loadingContentText: "Loading content..."
99
99
  }
100
100
  }
101
- }, L = {
101
+ }, T = {
102
102
  addButtonLabel: "Create",
103
103
  addDrawerTitle: "Create item",
104
104
  addDrawerDescription: /* @__PURE__ */ t(o, { children: [
@@ -170,11 +170,19 @@ const u = {
170
170
  loadingMoreAriaLabel: "Loading more rows",
171
171
  loadingMoreSpinnerLabel: "Loading more...",
172
172
  resizeColumnAriaLabel: "Resize column"
173
- }, T = {
173
+ }, g = {
174
+ noTimestamp: "No date recorded",
175
+ statusLabels: {
176
+ done: "Completed",
177
+ current: "In progress",
178
+ error: "Error",
179
+ pending: "Pending"
180
+ }
181
+ }, h = {
174
182
  requiredFieldError: "Este campo é obrigatório",
175
183
  requiredFieldsNotification: "Por favor, preencha todos os campos obrigatórios e tente novamente.",
176
184
  unsupportedFieldType: (e) => `Tipo de campo não suportado: ${e}`
177
- }, g = {
185
+ }, b = {
178
186
  input: {
179
187
  labels: {
180
188
  placeholder: "",
@@ -234,7 +242,7 @@ const u = {
234
242
  placeholder: "DD/MM/YYYY",
235
243
  emptyState: "Sem dados disponíveis"
236
244
  },
237
- calendarStrings: m
245
+ calendarStrings: u
238
246
  },
239
247
  attachments: {
240
248
  labels: {
@@ -245,7 +253,7 @@ const u = {
245
253
  maxFileSizeExceededMessage: (e, a) => `Existe um anexo que excede o tamanho máximo de ${a}.`
246
254
  }
247
255
  }
248
- }, h = {
256
+ }, v = {
249
257
  button: {
250
258
  labels: {
251
259
  loadingText: "Processando...",
@@ -266,7 +274,7 @@ const u = {
266
274
  loadingContentText: "Carregando conteúdo..."
267
275
  }
268
276
  }
269
- }, v = {
277
+ }, f = {
270
278
  addButtonLabel: "Novo",
271
279
  addDrawerTitle: "Novo item",
272
280
  addDrawerDescription: /* @__PURE__ */ t(o, { children: [
@@ -338,29 +346,40 @@ const u = {
338
346
  loadingMoreAriaLabel: "Carregando mais itens",
339
347
  loadingMoreSpinnerLabel: "Carregando mais...",
340
348
  resizeColumnAriaLabel: "Redimensionar coluna"
341
- }, b = {
342
- form: s,
343
- fields: n,
344
- buttons: d,
345
- table: i
346
- }, f = {
347
- form: u,
348
- fields: p,
349
- buttons: E,
350
- table: L
351
349
  }, S = {
352
- form: T,
353
- fields: g,
354
- buttons: h,
355
- table: v
356
- }, C = {
357
- "es-ES": b,
358
- "en-EN": f,
359
- "pt-BR": S
350
+ noTimestamp: "Sem data registrada",
351
+ statusLabels: {
352
+ done: "Concluída",
353
+ current: "Em andamento",
354
+ error: "Com erro",
355
+ pending: "Pendente"
356
+ }
357
+ }, _ = {
358
+ form: c,
359
+ fields: s,
360
+ buttons: d,
361
+ table: n,
362
+ timeline: i
363
+ }, x = {
364
+ form: p,
365
+ fields: E,
366
+ buttons: L,
367
+ table: T,
368
+ timeline: g
369
+ }, A = {
370
+ form: h,
371
+ fields: b,
372
+ buttons: v,
373
+ table: f,
374
+ timeline: S
375
+ }, O = {
376
+ "es-ES": _,
377
+ "en-EN": x,
378
+ "pt-BR": A
360
379
  };
361
380
  export {
362
- C as PORYGON_LOCALES,
363
- f as PORYGON_LOCALE_EN,
364
- b as PORYGON_LOCALE_ES,
365
- S as PORYGON_LOCALE_PT_BR
381
+ O as PORYGON_LOCALES,
382
+ x as PORYGON_LOCALE_EN,
383
+ _ as PORYGON_LOCALE_ES,
384
+ A as PORYGON_LOCALE_PT_BR
366
385
  };
@@ -9,6 +9,7 @@ import { EFWAttachmentsLabels } from '../fields/Attachments/EFWAttachments.types
9
9
  import { EFWButtonLabels } from '../buttons/EFWButton/EFWButton.types';
10
10
  import { EFWGroupButtonLabels } from '../buttons/EFWGroupButton/EFWGroupButton.types';
11
11
  import { UseDrawerLabels } from '../hooks/useDrawer/useDrawer.types';
12
+ import { EFWTimelineKnownStatus } from '../timeline/EFWTimeline/EFWTimeline.types';
12
13
 
13
14
  /**
14
15
  * Tipo utilitario que hace opcionales todas las propiedades de un objeto de forma recursiva.
@@ -154,11 +155,24 @@ export interface EFWTableExtendedLocaleText extends EFWTableLocaleText {
154
155
  fields?: DeepPartial<EFWFieldsLocaleText>;
155
156
  buttons?: DeepPartial<EFWButtonsLocaleText>;
156
157
  }
158
+ /**
159
+ * Textos localizables de `EFWTimeline`: el texto para timestamps vacíos y los
160
+ * labels de badge de los estados conocidos (`done`, `current`, `error`,
161
+ * `pending`). Los estados de dominio propio siguen definiéndose por instancia
162
+ * vía la prop `statusLabels`.
163
+ */
164
+ export interface EFWTimelineLocaleText {
165
+ /** Texto cuando `timestamp` es `null`/vacío. */
166
+ noTimestamp: string;
167
+ /** Labels de badge para los estados conocidos. */
168
+ statusLabels: Record<EFWTimelineKnownStatus, string>;
169
+ }
157
170
  export interface PorygonResolvedLocaleText {
158
171
  form: EFWFormLocaleText;
159
172
  table: EFWTableLocaleText;
160
173
  fields: EFWFieldsLocaleText;
161
174
  buttons: EFWButtonsLocaleText;
175
+ timeline: EFWTimelineLocaleText;
162
176
  }
163
177
  export type PorygonLocalePresetCode = 'es-ES' | 'en-EN' | 'pt-BR';
164
178
  export interface PorygonLocaleText {
@@ -166,4 +180,5 @@ export interface PorygonLocaleText {
166
180
  table?: Partial<EFWTableLocaleText>;
167
181
  fields?: DeepPartial<EFWFieldsLocaleText>;
168
182
  buttons?: DeepPartial<EFWButtonsLocaleText>;
183
+ timeline?: DeepPartial<EFWTimelineLocaleText>;
169
184
  }