shirkasoft-ui-components 1.13.18 → 2.0.0

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.
Files changed (98) hide show
  1. package/README.md +415 -42
  2. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
  3. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/shirkasoft-ui-components-button.mjs +367 -73
  5. package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
  7. package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
  8. package/fesm2022/shirkasoft-ui-components-config.mjs +976 -0
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
  10. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
  11. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
  12. package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1400
  13. package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
  14. package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
  15. package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
  16. package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -293
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
  21. package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
  22. package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
  23. package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
  24. package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -303
  25. package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
  26. package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
  27. package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
  28. package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -277
  29. package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
  30. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
  31. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
  32. package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -814
  33. package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
  34. package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
  35. package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
  36. package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
  37. package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
  38. package/fesm2022/shirkasoft-ui-components-table.mjs +1918 -1676
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
  53. package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
  54. package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
  55. package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/shirkasoft-ui-components-utils.mjs +97 -125
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +37 -7
  62. package/src/baseline.css +2472 -0
  63. package/src/theme.css +15 -543
  64. package/src/themes/ocean.css +56 -0
  65. package/src/themes/sunset.css +55 -0
  66. package/src/themes/violet.css +25 -0
  67. package/src/tokens.css +612 -0
  68. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  69. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  70. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  71. package/types/shirkasoft-ui-components-config.d.ts +357 -0
  72. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
  73. package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
  74. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
  75. package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
  76. package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
  77. package/types/shirkasoft-ui-components-knob.d.ts +151 -64
  78. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  79. package/types/shirkasoft-ui-components-modal.d.ts +134 -132
  80. package/types/shirkasoft-ui-components-notification.d.ts +63 -58
  81. package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
  82. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  83. package/types/shirkasoft-ui-components-select.d.ts +301 -192
  84. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
  85. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  86. package/types/shirkasoft-ui-components-table.d.ts +849 -649
  87. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  88. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  89. package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
  90. package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
  91. package/types/shirkasoft-ui-components-theme.d.ts +80 -0
  92. package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
  93. package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
  94. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  95. package/types/shirkasoft-ui-components-utils.d.ts +26 -17
  96. package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
  97. package/types/shirkasoft-ui-components.d.ts +1 -2
  98. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1,5 +1,7 @@
1
- import * as _angular_core from '@angular/core';
2
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
3
5
  /**
4
6
  * Shirkasoft UI Components.
5
7
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -7,172 +9,346 @@ import * as _angular_core from '@angular/core';
7
9
  */
8
10
  /** A chip shown under a sub item (time, pricing model, quantity, etc). */
9
11
  interface TimelineMeta {
10
- icon: string | any;
11
- label?: string;
12
- value: string;
12
+ icon: string | any;
13
+ label?: string;
14
+ value: string;
13
15
  }
14
16
  /** A row inside a timeline item (e.g. an activity of a tour day). */
15
17
  interface TimelineSubItem {
16
- id: string | number;
17
- title: string;
18
- subtitle?: string;
19
- /** Used to look up icon / color in `iconMap` and `iconColors`. */
20
- type?: string;
21
- /** Overrides the resolved icon (name or component). */
22
- icon?: string | any;
23
- /** Hex background for the icon box (fallback). */
24
- color?: string;
25
- /** Hex text color for the icon (fallback). */
26
- colorText?: string;
27
- /** Custom CSS classes for the icon box (takes precedence over inline colors). */
28
- iconClass?: string;
29
- optional?: boolean;
30
- optionalLabel?: string;
31
- meta?: TimelineMeta[];
32
- price?: string | number;
18
+ id: string | number;
19
+ title: string;
20
+ subtitle?: string;
21
+ /** Used to look up icon / color in `iconMap` and `iconColors`. */
22
+ type?: string;
23
+ /** Overrides the resolved icon (registered name or `IconNode` data). */
24
+ icon?: string | any;
25
+ /** Hex background for the icon box (fallback). */
26
+ color?: string;
27
+ /** Hex text color for the icon (fallback). */
28
+ colorText?: string;
29
+ /** Custom CSS classes for the icon box (takes precedence over inline colors). */
30
+ iconClass?: string;
31
+ optional?: boolean;
32
+ optionalLabel?: string;
33
+ meta?: TimelineMeta[];
34
+ price?: string | number;
33
35
  }
34
36
  /** A single event in the timeline (e.g. a tour day). */
35
37
  interface TimelineItem {
36
- id: string | number;
37
- /** Text shown inside the marker (falls back to the auto index). */
38
- markerText?: string | number;
39
- title?: string;
40
- subtitle?: string;
41
- description?: string;
42
- /** Small pill shown above the title (e.g. "Día 1"). */
43
- badge?: string | number;
44
- badgeIcon?: string | any;
45
- /** CSS classes for the marker (falls back to the cycled gradient palette). */
46
- color?: string;
47
- subItems?: TimelineSubItem[];
38
+ id: string | number;
39
+ /** Text shown inside the marker (falls back to the auto index). */
40
+ markerText?: string | number;
41
+ title?: string;
42
+ subtitle?: string;
43
+ description?: string;
44
+ /** Small pill shown above the title (e.g. "Día 1"). */
45
+ badge?: string | number;
46
+ badgeIcon?: string | any;
47
+ /** CSS classes for the marker (falls back to the cycled gradient palette). */
48
+ color?: string;
49
+ subItems?: TimelineSubItem[];
48
50
  }
49
51
  /** A button rendered in the header. */
50
52
  interface TimelineAction {
51
- label: string;
52
- icon: string | any;
53
- onClick: () => void;
54
- class?: string;
55
- isVisible?: () => boolean;
56
- isDisabled?: () => boolean;
53
+ label: string;
54
+ icon: string | any;
55
+ onClick: () => void;
56
+ class?: string;
57
+ isVisible?: () => boolean;
58
+ isDisabled?: () => boolean;
57
59
  }
58
60
  /** An action rendered in the item card footer. */
59
61
  interface TimelineItemAction {
60
- label: string | ((item: TimelineItem) => string);
61
- icon: string | any | ((item: TimelineItem) => string | any);
62
- onClick: (item: TimelineItem) => void;
63
- class?: string | ((item: TimelineItem) => string);
64
- isVisible?: (item: TimelineItem) => boolean;
65
- isDisabled?: (item: TimelineItem) => boolean;
62
+ label: string | ((item: TimelineItem) => string);
63
+ icon: string | any | ((item: TimelineItem) => string | any);
64
+ onClick: (item: TimelineItem) => void;
65
+ class?: string | ((item: TimelineItem) => string);
66
+ isVisible?: (item: TimelineItem) => boolean;
67
+ isDisabled?: (item: TimelineItem) => boolean;
66
68
  }
67
69
  /** An action rendered on hover over a sub item. */
68
70
  interface TimelineSubItemAction {
69
- label: string | ((item: TimelineItem, subItem: TimelineSubItem) => string);
70
- icon: string | any | ((item: TimelineItem, subItem: TimelineSubItem) => string | any);
71
- onClick: (item: TimelineItem, subItem: TimelineSubItem) => void;
72
- isVisible?: (item: TimelineItem, subItem: TimelineSubItem) => boolean;
73
- isDisabled?: (item: TimelineItem, subItem: TimelineSubItem) => boolean;
71
+ label: string | ((item: TimelineItem, subItem: TimelineSubItem) => string);
72
+ icon: string | any | ((item: TimelineItem, subItem: TimelineSubItem) => string | any);
73
+ onClick: (item: TimelineItem, subItem: TimelineSubItem) => void;
74
+ isVisible?: (item: TimelineItem, subItem: TimelineSubItem) => boolean;
75
+ isDisabled?: (item: TimelineItem, subItem: TimelineSubItem) => boolean;
74
76
  }
75
77
  type TimelineAlignment = 'left' | 'alternate' | 'split';
76
78
  type TimelineMarkerSize = 'sm' | 'md' | 'lg';
77
- declare const DEFAULT_MARKER_GRADIENTS: string[];
79
+ export declare const DEFAULT_MARKER_GRADIENTS: string[];
78
80
  /** Supplier-type style palette used by the original wac-app timeline. */
79
- declare const DEFAULT_SUPPLIER_ICON_COLORS: Record<string, {
80
- bg: string;
81
- text: string;
81
+ export declare const DEFAULT_SUPPLIER_ICON_COLORS: Record<string, {
82
+ bg: string;
83
+ text: string;
82
84
  }>;
83
- /** Maps a sub-item `type` to a lucide icon component. */
84
- declare const DEFAULT_SUPPLIER_TYPE_ICONS: Record<string, any>;
85
- declare class TimelineComponent {
86
- protected getIcon: (name: any) => any;
87
- /** Timeline data. */
88
- items: _angular_core.InputSignal<TimelineItem[]>;
89
- /** 'left' = line and markers on the left; 'alternate' = cards alternate around a centered line on lg+; 'split' = markers centered with days on the left and activities on the right. */
90
- alignment: _angular_core.InputSignal<TimelineAlignment>;
91
- /** Shows/hides the vertical connector line. */
92
- showLine: _angular_core.InputSignal<boolean>;
93
- /** Marker diameter. */
94
- markerSize: _angular_core.InputSignal<TimelineMarkerSize>;
95
- /** Gradient classes cycled across markers when the item has no `color`. */
96
- markerGradients: _angular_core.InputSignal<string[]>;
97
- /** Shows the info column on the opposite side of the card (alternate mode, lg+). */
98
- showOpposite: _angular_core.InputSignal<boolean>;
99
- /** Shows the item description. */
100
- showDescription: _angular_core.InputSignal<boolean>;
101
- /** Shows meta chips inside sub items. */
102
- showSubItemMeta: _angular_core.InputSignal<boolean>;
103
- /** Shows the price of each sub item. */
104
- showSubItemPrice: _angular_core.InputSignal<boolean>;
105
- /** Auto-append "N {subItemCountLabel}" under the title when the item has no subtitle. */
106
- showSubItemCount: _angular_core.InputSignal<boolean>;
107
- subItemCountLabel: _angular_core.InputSignal<string>;
108
- showHeader: _angular_core.InputSignal<boolean>;
109
- headerTitle: _angular_core.InputSignal<string>;
110
- /** Convenience "add" button in the header. */
111
- showAddItem: _angular_core.InputSignal<boolean>;
112
- addItemLabel: _angular_core.InputSignal<string>;
113
- addItemIcon: _angular_core.InputSignal<string>;
114
- addItemTooltip: _angular_core.InputSignal<string>;
115
- headerActions: _angular_core.InputSignal<TimelineAction[]>;
116
- /** Renders "+ Añadir sub-elemento" in each card footer. */
117
- showAddSubItem: _angular_core.InputSignal<boolean>;
118
- addSubItemLabel: _angular_core.InputSignal<string>;
119
- addSubItemTooltip: _angular_core.InputSignal<string>;
120
- itemActions: _angular_core.InputSignal<TimelineItemAction[]>;
121
- subItemActions: _angular_core.InputSignal<TimelineSubItemAction[]>;
122
- /** Maps a sub-item `type` to a lucide icon (name or component). */
123
- iconMap: _angular_core.InputSignal<{
124
- [type: string]: any;
125
- }>;
126
- /** Maps a sub-item `type` to its icon-box colors. */
127
- iconColors: _angular_core.InputSignal<{
128
- [type: string]: {
129
- bg: string;
130
- text: string;
131
- };
132
- }>;
133
- /** Icon used when nothing matches. */
134
- fallbackIcon: _angular_core.InputSignal<any>;
135
- showEmptyState: _angular_core.InputSignal<boolean>;
136
- emptyMessage: _angular_core.InputSignal<string>;
137
- emptyIcon: _angular_core.InputSignal<any>;
138
- editTooltip: _angular_core.InputSignal<string>;
139
- deleteTooltip: _angular_core.InputSignal<string>;
140
- optionalLabel: _angular_core.InputSignal<string>;
141
- noSubItemsMessage: _angular_core.InputSignal<string>;
142
- /** Custom content templates: keys 'marker', 'opposite', 'content', 'description', 'subItem', 'empty'. */
143
- customTemplates: _angular_core.InputSignal<{
144
- [key: string]: any;
145
- }>;
146
- addItem: _angular_core.OutputEmitterRef<void>;
147
- addSubItem: _angular_core.OutputEmitterRef<TimelineItem>;
148
- itemClick: _angular_core.OutputEmitterRef<TimelineItem>;
149
- subItemClick: _angular_core.OutputEmitterRef<{
150
- item: TimelineItem;
151
- subItem: TimelineSubItem;
152
- }>;
153
- markerText(item: TimelineItem, index: number): string | number;
154
- markerClass(item: TimelineItem, index: number): string;
155
- markerColumnClass(): string;
156
- alternateMarkerColumnClass(): string;
157
- lineClass(): string;
158
- subItemIconName(sub: TimelineSubItem): string;
159
- subItemStyle(sub: TimelineSubItem): {
160
- [key: string]: string;
161
- } | undefined;
162
- isHeaderActionVisible(action: TimelineAction): boolean;
163
- isHeaderActionDisabled(action: TimelineAction): boolean;
164
- getItemActionLabel(action: TimelineItemAction, item: TimelineItem): string;
165
- getItemActionIconName(action: TimelineItemAction, item: TimelineItem): any;
166
- getItemActionClass(action: TimelineItemAction, item: TimelineItem): string;
167
- isItemActionVisible(action: TimelineItemAction, item: TimelineItem): boolean;
168
- isItemActionDisabled(action: TimelineItemAction, item: TimelineItem): boolean;
169
- getSubItemActionLabel(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): string;
170
- getSubItemActionIconName(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): any;
171
- isSubItemActionVisible(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): boolean;
172
- isSubItemActionDisabled(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): boolean;
173
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimelineComponent, never>;
174
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimelineComponent, "shk-timeline", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "showLine": { "alias": "showLine"; "required": false; "isSignal": true; }; "markerSize": { "alias": "markerSize"; "required": false; "isSignal": true; }; "markerGradients": { "alias": "markerGradients"; "required": false; "isSignal": true; }; "showOpposite": { "alias": "showOpposite"; "required": false; "isSignal": true; }; "showDescription": { "alias": "showDescription"; "required": false; "isSignal": true; }; "showSubItemMeta": { "alias": "showSubItemMeta"; "required": false; "isSignal": true; }; "showSubItemPrice": { "alias": "showSubItemPrice"; "required": false; "isSignal": true; }; "showSubItemCount": { "alias": "showSubItemCount"; "required": false; "isSignal": true; }; "subItemCountLabel": { "alias": "subItemCountLabel"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "headerTitle": { "alias": "headerTitle"; "required": false; "isSignal": true; }; "showAddItem": { "alias": "showAddItem"; "required": false; "isSignal": true; }; "addItemLabel": { "alias": "addItemLabel"; "required": false; "isSignal": true; }; "addItemIcon": { "alias": "addItemIcon"; "required": false; "isSignal": true; }; "addItemTooltip": { "alias": "addItemTooltip"; "required": false; "isSignal": true; }; "headerActions": { "alias": "headerActions"; "required": false; "isSignal": true; }; "showAddSubItem": { "alias": "showAddSubItem"; "required": false; "isSignal": true; }; "addSubItemLabel": { "alias": "addSubItemLabel"; "required": false; "isSignal": true; }; "addSubItemTooltip": { "alias": "addSubItemTooltip"; "required": false; "isSignal": true; }; "itemActions": { "alias": "itemActions"; "required": false; "isSignal": true; }; "subItemActions": { "alias": "subItemActions"; "required": false; "isSignal": true; }; "iconMap": { "alias": "iconMap"; "required": false; "isSignal": true; }; "iconColors": { "alias": "iconColors"; "required": false; "isSignal": true; }; "fallbackIcon": { "alias": "fallbackIcon"; "required": false; "isSignal": true; }; "showEmptyState": { "alias": "showEmptyState"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "emptyIcon": { "alias": "emptyIcon"; "required": false; "isSignal": true; }; "editTooltip": { "alias": "editTooltip"; "required": false; "isSignal": true; }; "deleteTooltip": { "alias": "deleteTooltip"; "required": false; "isSignal": true; }; "optionalLabel": { "alias": "optionalLabel"; "required": false; "isSignal": true; }; "noSubItemsMessage": { "alias": "noSubItemsMessage"; "required": false; "isSignal": true; }; "customTemplates": { "alias": "customTemplates"; "required": false; "isSignal": true; }; }, { "addItem": "addItem"; "addSubItem": "addSubItem"; "itemClick": "itemClick"; "subItemClick": "subItemClick"; }, never, never, true, never>;
85
+ /** Maps a sub-item `type` to its icon data (`IconNode`). */
86
+ export declare const DEFAULT_SUPPLIER_TYPE_ICONS: Record<string, any>;
87
+ export declare class TimelineComponent {
88
+ protected getIcon: (name: any) => import("shirkasoft-ui-components/icons").IconNode | null;
89
+ /** Timeline data. */
90
+ items: import("@angular/core").InputSignal<TimelineItem[]>;
91
+ /** 'left' = line and markers on the left; 'alternate' = cards alternate around a centered line on lg+; 'split' = markers centered with days on the left and activities on the right. */
92
+ alignment: import("@angular/core").InputSignal<TimelineAlignment>;
93
+ /** Shows/hides the vertical connector line. */
94
+ showLine: import("@angular/core").InputSignal<boolean>;
95
+ /** Marker diameter. */
96
+ markerSize: import("@angular/core").InputSignal<TimelineMarkerSize>;
97
+ /** Gradient classes cycled across markers when the item has no `color`. */
98
+ markerGradients: import("@angular/core").InputSignal<string[]>;
99
+ /** Shows the info column on the opposite side of the card (alternate mode, lg+). */
100
+ showOpposite: import("@angular/core").InputSignal<boolean>;
101
+ /** Shows the item description. */
102
+ showDescription: import("@angular/core").InputSignal<boolean>;
103
+ /** Shows meta chips inside sub items. */
104
+ showSubItemMeta: import("@angular/core").InputSignal<boolean>;
105
+ /** Shows the price of each sub item. */
106
+ showSubItemPrice: import("@angular/core").InputSignal<boolean>;
107
+ /** Auto-append "N {subItemCountLabel}" under the title when the item has no subtitle. */
108
+ showSubItemCount: import("@angular/core").InputSignal<boolean>;
109
+ subItemCountLabel: import("@angular/core").InputSignal<string>;
110
+ showHeader: import("@angular/core").InputSignal<boolean>;
111
+ headerTitle: import("@angular/core").InputSignal<string>;
112
+ /** Convenience "add" button in the header. */
113
+ showAddItem: import("@angular/core").InputSignal<boolean>;
114
+ addItemLabel: import("@angular/core").InputSignal<string>;
115
+ addItemIcon: import("@angular/core").InputSignal<string>;
116
+ addItemTooltip: import("@angular/core").InputSignal<string>;
117
+ headerActions: import("@angular/core").InputSignal<TimelineAction[]>;
118
+ /** Renders "+ Añadir sub-elemento" in each card footer. */
119
+ showAddSubItem: import("@angular/core").InputSignal<boolean>;
120
+ addSubItemLabel: import("@angular/core").InputSignal<string>;
121
+ addSubItemTooltip: import("@angular/core").InputSignal<string>;
122
+ itemActions: import("@angular/core").InputSignal<TimelineItemAction[]>;
123
+ subItemActions: import("@angular/core").InputSignal<TimelineSubItemAction[]>;
124
+ /** Maps a sub-item `type` to an icon (registered name or `IconNode` data). */
125
+ iconMap: import("@angular/core").InputSignal<{
126
+ [type: string]: any;
127
+ }>;
128
+ /** Maps a sub-item `type` to its icon-box colors. */
129
+ iconColors: import("@angular/core").InputSignal<{
130
+ [type: string]: {
131
+ bg: string;
132
+ text: string;
133
+ };
134
+ }>;
135
+ /** Icon used when nothing matches. */
136
+ fallbackIcon: import("@angular/core").InputSignal<any>;
137
+ showEmptyState: import("@angular/core").InputSignal<boolean>;
138
+ emptyMessage: import("@angular/core").InputSignal<string>;
139
+ emptyIcon: import("@angular/core").InputSignal<any>;
140
+ editTooltip: import("@angular/core").InputSignal<string>;
141
+ deleteTooltip: import("@angular/core").InputSignal<string>;
142
+ optionalLabel: import("@angular/core").InputSignal<string>;
143
+ noSubItemsMessage: import("@angular/core").InputSignal<string>;
144
+ /** Custom content templates: keys 'marker', 'opposite', 'content', 'description', 'subItem', 'empty'. */
145
+ customTemplates: import("@angular/core").InputSignal<{
146
+ [key: string]: any;
147
+ }>;
148
+ addItem: import("@angular/core").OutputEmitterRef<void>;
149
+ addSubItem: import("@angular/core").OutputEmitterRef<TimelineItem>;
150
+ itemClick: import("@angular/core").OutputEmitterRef<TimelineItem>;
151
+ subItemClick: import("@angular/core").OutputEmitterRef<{
152
+ item: TimelineItem;
153
+ subItem: TimelineSubItem;
154
+ }>;
155
+ markerText(item: TimelineItem, index: number): string | number;
156
+ markerClass(item: TimelineItem, index: number): string;
157
+ markerColumnClass(): string;
158
+ alternateMarkerColumnClass(): string;
159
+ lineClass(): string;
160
+ subItemIconName(sub: TimelineSubItem): string;
161
+ subItemStyle(sub: TimelineSubItem): {
162
+ [key: string]: string;
163
+ } | undefined;
164
+ isHeaderActionVisible(action: TimelineAction): boolean;
165
+ isHeaderActionDisabled(action: TimelineAction): boolean;
166
+ getItemActionLabel(action: TimelineItemAction, item: TimelineItem): string;
167
+ getItemActionIconName(action: TimelineItemAction, item: TimelineItem): any;
168
+ getItemActionClass(action: TimelineItemAction, item: TimelineItem): string;
169
+ isItemActionVisible(action: TimelineItemAction, item: TimelineItem): boolean;
170
+ isItemActionDisabled(action: TimelineItemAction, item: TimelineItem): boolean;
171
+ getSubItemActionLabel(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): string;
172
+ getSubItemActionIconName(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): any;
173
+ isSubItemActionVisible(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): boolean;
174
+ isSubItemActionDisabled(action: TimelineSubItemAction, item: TimelineItem, sub: TimelineSubItem): boolean;
175
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimelineComponent, never>;
176
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent, "shk-timeline", never, {
177
+ "items": {
178
+ "alias": "items";
179
+ "required": false;
180
+ "isSignal": true;
181
+ };
182
+ "alignment": {
183
+ "alias": "alignment";
184
+ "required": false;
185
+ "isSignal": true;
186
+ };
187
+ "showLine": {
188
+ "alias": "showLine";
189
+ "required": false;
190
+ "isSignal": true;
191
+ };
192
+ "markerSize": {
193
+ "alias": "markerSize";
194
+ "required": false;
195
+ "isSignal": true;
196
+ };
197
+ "markerGradients": {
198
+ "alias": "markerGradients";
199
+ "required": false;
200
+ "isSignal": true;
201
+ };
202
+ "showOpposite": {
203
+ "alias": "showOpposite";
204
+ "required": false;
205
+ "isSignal": true;
206
+ };
207
+ "showDescription": {
208
+ "alias": "showDescription";
209
+ "required": false;
210
+ "isSignal": true;
211
+ };
212
+ "showSubItemMeta": {
213
+ "alias": "showSubItemMeta";
214
+ "required": false;
215
+ "isSignal": true;
216
+ };
217
+ "showSubItemPrice": {
218
+ "alias": "showSubItemPrice";
219
+ "required": false;
220
+ "isSignal": true;
221
+ };
222
+ "showSubItemCount": {
223
+ "alias": "showSubItemCount";
224
+ "required": false;
225
+ "isSignal": true;
226
+ };
227
+ "subItemCountLabel": {
228
+ "alias": "subItemCountLabel";
229
+ "required": false;
230
+ "isSignal": true;
231
+ };
232
+ "showHeader": {
233
+ "alias": "showHeader";
234
+ "required": false;
235
+ "isSignal": true;
236
+ };
237
+ "headerTitle": {
238
+ "alias": "headerTitle";
239
+ "required": false;
240
+ "isSignal": true;
241
+ };
242
+ "showAddItem": {
243
+ "alias": "showAddItem";
244
+ "required": false;
245
+ "isSignal": true;
246
+ };
247
+ "addItemLabel": {
248
+ "alias": "addItemLabel";
249
+ "required": false;
250
+ "isSignal": true;
251
+ };
252
+ "addItemIcon": {
253
+ "alias": "addItemIcon";
254
+ "required": false;
255
+ "isSignal": true;
256
+ };
257
+ "addItemTooltip": {
258
+ "alias": "addItemTooltip";
259
+ "required": false;
260
+ "isSignal": true;
261
+ };
262
+ "headerActions": {
263
+ "alias": "headerActions";
264
+ "required": false;
265
+ "isSignal": true;
266
+ };
267
+ "showAddSubItem": {
268
+ "alias": "showAddSubItem";
269
+ "required": false;
270
+ "isSignal": true;
271
+ };
272
+ "addSubItemLabel": {
273
+ "alias": "addSubItemLabel";
274
+ "required": false;
275
+ "isSignal": true;
276
+ };
277
+ "addSubItemTooltip": {
278
+ "alias": "addSubItemTooltip";
279
+ "required": false;
280
+ "isSignal": true;
281
+ };
282
+ "itemActions": {
283
+ "alias": "itemActions";
284
+ "required": false;
285
+ "isSignal": true;
286
+ };
287
+ "subItemActions": {
288
+ "alias": "subItemActions";
289
+ "required": false;
290
+ "isSignal": true;
291
+ };
292
+ "iconMap": {
293
+ "alias": "iconMap";
294
+ "required": false;
295
+ "isSignal": true;
296
+ };
297
+ "iconColors": {
298
+ "alias": "iconColors";
299
+ "required": false;
300
+ "isSignal": true;
301
+ };
302
+ "fallbackIcon": {
303
+ "alias": "fallbackIcon";
304
+ "required": false;
305
+ "isSignal": true;
306
+ };
307
+ "showEmptyState": {
308
+ "alias": "showEmptyState";
309
+ "required": false;
310
+ "isSignal": true;
311
+ };
312
+ "emptyMessage": {
313
+ "alias": "emptyMessage";
314
+ "required": false;
315
+ "isSignal": true;
316
+ };
317
+ "emptyIcon": {
318
+ "alias": "emptyIcon";
319
+ "required": false;
320
+ "isSignal": true;
321
+ };
322
+ "editTooltip": {
323
+ "alias": "editTooltip";
324
+ "required": false;
325
+ "isSignal": true;
326
+ };
327
+ "deleteTooltip": {
328
+ "alias": "deleteTooltip";
329
+ "required": false;
330
+ "isSignal": true;
331
+ };
332
+ "optionalLabel": {
333
+ "alias": "optionalLabel";
334
+ "required": false;
335
+ "isSignal": true;
336
+ };
337
+ "noSubItemsMessage": {
338
+ "alias": "noSubItemsMessage";
339
+ "required": false;
340
+ "isSignal": true;
341
+ };
342
+ "customTemplates": {
343
+ "alias": "customTemplates";
344
+ "required": false;
345
+ "isSignal": true;
346
+ };
347
+ }, {
348
+ "addItem": "addItem";
349
+ "addSubItem": "addSubItem";
350
+ "itemClick": "itemClick";
351
+ "subItemClick": "subItemClick";
352
+ }, never, never, true, never>;
175
353
  }
176
-
177
- export { DEFAULT_MARKER_GRADIENTS, DEFAULT_SUPPLIER_ICON_COLORS, DEFAULT_SUPPLIER_TYPE_ICONS, TimelineComponent };
178
- export type { TimelineAction, TimelineAlignment, TimelineItem, TimelineItemAction, TimelineMarkerSize, TimelineMeta, TimelineSubItem, TimelineSubItemAction };
354
+ export type { TimelineAction, TimelineAlignment, TimelineItem, TimelineItemAction, TimelineMarkerSize, TimelineMeta, TimelineSubItem, TimelineSubItemAction };
@@ -1,6 +1,9 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { ControlValueAccessor } from "@angular/forms";
5
+ import { FormCheckboxControl } from "@angular/forms/signals";
6
+ import * as i0 from "@angular/core";
4
7
  /**
5
8
  * Shirkasoft UI Components.
6
9
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -9,46 +12,74 @@ import { ControlValueAccessor } from '@angular/forms';
9
12
  /**
10
13
  * Switch / checkbox component that implements ControlValueAccessor so it can
11
14
  * be used with reactive and template-driven forms.
15
+ *
16
+ * It also implements the Angular Signal Forms `FormCheckboxControl` contract
17
+ * through its `checked` model, so it works with `[formField]` as well.
12
18
  */
13
- declare class ToggleComponent implements ControlValueAccessor {
14
- /** Text displayed next to the control. */
15
- label: _angular_core.InputSignal<string>;
16
- /** Visual style: 'toggle' (switch) or 'checkbox'. Defaults to 'toggle'. */
17
- mode: _angular_core.InputSignal<"toggle" | "checkbox">;
18
- /** Manually controlled checked state (supports one-way binding). */
19
- checked: _angular_core.InputSignal<boolean | undefined>;
20
- /** Emitted with the new value when the user toggles the control. */
21
- checkedChange: _angular_core.OutputEmitterRef<boolean>;
22
- /** Disables the control (also settable through reactive forms). */
23
- disabled: _angular_core.InputSignal<boolean>;
24
- /** Internal controlled/reactive value. */
25
- _value: _angular_core.WritableSignal<boolean>;
26
- /** Reactive disabled state. */
27
- _disabled: _angular_core.WritableSignal<boolean>;
28
- /** Disabled through the `disabled` input or the form control. */
29
- isDisabled: _angular_core.Signal<boolean>;
30
- /** Callback notified with the new value on change (ControlValueAccessor). */
31
- private onChange;
32
- /** Callback notified when the control loses focus or is touched. */
33
- private onTouched;
34
- constructor();
35
- /** Sets the value from the form control. */
36
- writeValue(value: any): void;
37
- /** Registers the callback invoked on value changes (ControlValueAccessor). */
38
- registerOnChange(fn: any): void;
39
- /** Registers the callback invoked when the control is touched. */
40
- registerOnTouched(fn: any): void;
41
- /** Reflects the disabled state of the form control. */
42
- setDisabledState(isDisabled: boolean): void;
43
- /**
44
- * Inverts the current value (unless disabled), notifies the form control,
45
- * marks the control as touched and emits `checkedChange`.
46
- */
47
- /** Space/Enter toggles the focused switch or checkbox. */
48
- onKeydown(event: KeyboardEvent): void;
49
- toggle(): void;
50
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToggleComponent, never>;
51
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToggleComponent, "shk-toggle", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
52
- }
53
-
54
- export { ToggleComponent };
19
+ export declare class ToggleComponent implements ControlValueAccessor, FormCheckboxControl {
20
+ /** Text displayed next to the control. */
21
+ label: import("@angular/core").InputSignal<string>;
22
+ /** Visual style: 'toggle' (switch) or 'checkbox'. Defaults to 'toggle'. */
23
+ mode: import("@angular/core").InputSignal<"toggle" | "checkbox">;
24
+ /**
25
+ * Checked state. Two-way bindable with `[(checked)]`; also the model that
26
+ * Signal Forms binds to. The implicit `checkedChange` output fires with the
27
+ * new value whenever the user toggles the control.
28
+ */
29
+ checked: import("@angular/core").ModelSignal<boolean>;
30
+ /** Disables the control (also settable through reactive forms). */
31
+ disabled: import("@angular/core").InputSignal<boolean>;
32
+ /** Emitted on blur so Signal Forms can mark the field as touched. */
33
+ touch: import("@angular/core").OutputEmitterRef<void>;
34
+ /** Reactive disabled state. */
35
+ _disabled: import("@angular/core").WritableSignal<boolean>;
36
+ /** Disabled through the `disabled` input or the form control. */
37
+ isDisabled: import("@angular/core").Signal<boolean>;
38
+ /** Callback notified with the new value on change (ControlValueAccessor). */
39
+ private onChange;
40
+ /** Callback notified when the control loses focus or is touched. */
41
+ private onTouched;
42
+ /** Sets the value from the form control. */
43
+ writeValue(value: any): void;
44
+ /** Registers the callback invoked on value changes (ControlValueAccessor). */
45
+ registerOnChange(fn: any): void;
46
+ /** Registers the callback invoked when the control is touched. */
47
+ registerOnTouched(fn: any): void;
48
+ /** Reflects the disabled state of the form control. */
49
+ setDisabledState(isDisabled: boolean): void;
50
+ /** Marks the control as touched when focus leaves it. */
51
+ onBlur(): void;
52
+ /** Space/Enter toggles the focused switch or checkbox. */
53
+ onKeydown(event: KeyboardEvent): void;
54
+ /**
55
+ * Inverts the current value (unless disabled), notifies the form control and
56
+ * marks the control as touched. The `checked` model emits `checkedChange`.
57
+ */
58
+ toggle(): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "shk-toggle", never, {
61
+ "label": {
62
+ "alias": "label";
63
+ "required": false;
64
+ "isSignal": true;
65
+ };
66
+ "mode": {
67
+ "alias": "mode";
68
+ "required": false;
69
+ "isSignal": true;
70
+ };
71
+ "checked": {
72
+ "alias": "checked";
73
+ "required": false;
74
+ "isSignal": true;
75
+ };
76
+ "disabled": {
77
+ "alias": "disabled";
78
+ "required": false;
79
+ "isSignal": true;
80
+ };
81
+ }, {
82
+ "checked": "checkedChange";
83
+ "touch": "touch";
84
+ }, never, never, true, never>;
85
+ }