@beweco/aurora-ui 0.1.17 → 0.1.20
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 +49 -17
- 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,CA0OlD,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,16 @@ export type ScheduleRowProps = {
|
|
|
34
71
|
*/
|
|
35
72
|
daySchedule: DaySchedule;
|
|
36
73
|
/**
|
|
37
|
-
* @property {
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* @property {
|
|
43
|
-
*
|
|
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.
|
|
76
|
+
*/
|
|
77
|
+
translations?: Partial<ScheduleRowTranslations>;
|
|
78
|
+
/**
|
|
79
|
+
* @property {boolean} [showCopyToAll=false] - Controls the visibility of the "Copy to all" button.
|
|
80
|
+
* When true, displays the button that allows copying the schedule to all days.
|
|
81
|
+
* When false or undefined, the button is hidden.
|
|
44
82
|
*/
|
|
45
|
-
|
|
46
|
-
from: string;
|
|
47
|
-
to: string;
|
|
48
|
-
open: string;
|
|
49
|
-
closed: string;
|
|
50
|
-
copyToAll: string;
|
|
51
|
-
addTimeSlot: string;
|
|
52
|
-
};
|
|
83
|
+
showCopyToAll?: boolean;
|
|
53
84
|
/**
|
|
54
85
|
* @function onChange
|
|
55
86
|
* @description Callback function that is invoked when the schedule is modified.
|
|
@@ -60,9 +91,10 @@ export type ScheduleRowProps = {
|
|
|
60
91
|
/**
|
|
61
92
|
* @function onCopyToAll
|
|
62
93
|
* @description Callback function that is invoked when the "Copy to all" button is clicked.
|
|
63
|
-
*
|
|
94
|
+
* Only called when showCopyToAll is true.
|
|
95
|
+
* @param {string} day - The day of the week to copy from.
|
|
64
96
|
* @returns {void}
|
|
65
97
|
*/
|
|
66
|
-
onCopyToAll
|
|
98
|
+
onCopyToAll?: (day: string) => void;
|
|
67
99
|
};
|
|
68
100
|
//# sourceMappingURL=schedule-row.types.d.ts.map
|
|
@@ -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;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC"}
|