@beweco/aurora-ui 0.1.17 → 0.1.19
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/assets/css/styles.css +1 -1
- package/dist/index.cjs.js +125 -16
- package/dist/index.esm.js +125 -17
- package/dist/types/components/schedule-row/index.d.ts +2 -1
- package/dist/types/components/schedule-row/index.d.ts.map +1 -1
- package/dist/types/components/schedule-row/schedule-row.constants.d.ts +34 -0
- package/dist/types/components/schedule-row/schedule-row.constants.d.ts.map +1 -0
- package/dist/types/components/schedule-row/schedule-row.d.ts +31 -0
- package/dist/types/components/schedule-row/schedule-row.d.ts.map +1 -1
- package/dist/types/components/schedule-row/schedule-row.types.d.ts +41 -16
- package/dist/types/components/schedule-row/schedule-row.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-row.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"schedule-row.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,sBAAsB,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuOlD,CAAC"}
|
|
@@ -20,6 +20,43 @@ export interface DaySchedule {
|
|
|
20
20
|
isOpen: boolean;
|
|
21
21
|
timeSlots: TimeSlot[];
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @interface ScheduleRowTranslations
|
|
25
|
+
* @description Translation strings for the ScheduleRow component.
|
|
26
|
+
* Supports internationalization (i18n) without imposing any specific system.
|
|
27
|
+
* @property {string} from - Label for the "from" time field (default: "Desde").
|
|
28
|
+
* @property {string} to - Label for the "to" time field (default: "Hasta").
|
|
29
|
+
* @property {string} open - Label for the open status chip (default: "Abierto").
|
|
30
|
+
* @property {string} closed - Label for the closed status chip (default: "Cerrado").
|
|
31
|
+
* @property {string} copyToAll - Label for the copy to all button (default: "Copiar a todos").
|
|
32
|
+
* @property {string} addTimeSlot - Label for the add time slot button (default: "Agregar horario").
|
|
33
|
+
*/
|
|
34
|
+
export interface ScheduleRowTranslations {
|
|
35
|
+
/**
|
|
36
|
+
* Label for the "from" time input field
|
|
37
|
+
*/
|
|
38
|
+
from: string;
|
|
39
|
+
/**
|
|
40
|
+
* Label for the "to" time input field
|
|
41
|
+
*/
|
|
42
|
+
to: string;
|
|
43
|
+
/**
|
|
44
|
+
* Label displayed when the day is open/active
|
|
45
|
+
*/
|
|
46
|
+
open: string;
|
|
47
|
+
/**
|
|
48
|
+
* Label displayed when the day is closed/inactive
|
|
49
|
+
*/
|
|
50
|
+
closed: string;
|
|
51
|
+
/**
|
|
52
|
+
* Label for the button that copies the current schedule to all other days
|
|
53
|
+
*/
|
|
54
|
+
copyToAll: string;
|
|
55
|
+
/**
|
|
56
|
+
* Label for the button that adds a new time slot
|
|
57
|
+
*/
|
|
58
|
+
addTimeSlot: string;
|
|
59
|
+
}
|
|
23
60
|
/**
|
|
24
61
|
* @interface ScheduleRowProps
|
|
25
62
|
* @description Props for the ScheduleRow component.
|
|
@@ -34,22 +71,10 @@ export type ScheduleRowProps = {
|
|
|
34
71
|
*/
|
|
35
72
|
daySchedule: DaySchedule;
|
|
36
73
|
/**
|
|
37
|
-
* @property {
|
|
38
|
-
*
|
|
39
|
-
* @property {string} translations.to - Label for the "to" time input.
|
|
40
|
-
* @property {string} translations.open - Text to display when the schedule is open.
|
|
41
|
-
* @property {string} translations.closed - Text to display when the schedule is closed.
|
|
42
|
-
* @property {string} translations.copyToAll - Label for the "Copy to all" button.
|
|
43
|
-
* @property {string} translations.addTimeSlot - Label for the "Add time slot" button.
|
|
74
|
+
* @property {Partial<ScheduleRowTranslations>} [translations] - An object containing translated strings for the component.
|
|
75
|
+
* Allows full internationalization support. If not provided, uses default Spanish translations.
|
|
44
76
|
*/
|
|
45
|
-
translations
|
|
46
|
-
from: string;
|
|
47
|
-
to: string;
|
|
48
|
-
open: string;
|
|
49
|
-
closed: string;
|
|
50
|
-
copyToAll: string;
|
|
51
|
-
addTimeSlot: string;
|
|
52
|
-
};
|
|
77
|
+
translations?: Partial<ScheduleRowTranslations>;
|
|
53
78
|
/**
|
|
54
79
|
* @function onChange
|
|
55
80
|
* @description Callback function that is invoked when the schedule is modified.
|
|
@@ -60,7 +85,7 @@ export type ScheduleRowProps = {
|
|
|
60
85
|
/**
|
|
61
86
|
* @function onCopyToAll
|
|
62
87
|
* @description Callback function that is invoked when the "Copy to all" button is clicked.
|
|
63
|
-
* @param {
|
|
88
|
+
* @param {string} day - The day of the week to copy from.
|
|
64
89
|
* @returns {void}
|
|
65
90
|
*/
|
|
66
91
|
onCopyToAll: (day: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-row.types.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED
|
|
1
|
+
{"version":3,"file":"schedule-row.types.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAuB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAChD;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C;;;;;OAKG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC"}
|