shirkasoft-ui-components 1.14.0 → 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.
- package/README.md +4 -8
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +363 -69
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +905 -843
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1440
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -300
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -314
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -327
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -819
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +1916 -1698
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -402
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +95 -134
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components.mjs +0 -9
- package/package.json +5 -5
- package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
- package/types/shirkasoft-ui-components-button.d.ts +142 -49
- package/types/shirkasoft-ui-components-chart.d.ts +59 -44
- package/types/shirkasoft-ui-components-config.d.ts +193 -204
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
- package/types/shirkasoft-ui-components-date-picker.d.ts +527 -398
- package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
- package/types/shirkasoft-ui-components-file-upload.d.ts +176 -112
- package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
- package/types/shirkasoft-ui-components-knob.d.ts +144 -78
- package/types/shirkasoft-ui-components-loading.d.ts +155 -64
- package/types/shirkasoft-ui-components-modal.d.ts +134 -136
- package/types/shirkasoft-ui-components-notification.d.ts +63 -59
- package/types/shirkasoft-ui-components-price-input.d.ts +198 -113
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
- package/types/shirkasoft-ui-components-select.d.ts +301 -196
- package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
- package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
- package/types/shirkasoft-ui-components-table.d.ts +849 -660
- package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
- package/types/shirkasoft-ui-components-tag.d.ts +54 -23
- package/types/shirkasoft-ui-components-text-field.d.ts +231 -127
- package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
- package/types/shirkasoft-ui-components-theme.d.ts +56 -64
- package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
- package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
- package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
- package/types/shirkasoft-ui-components-utils.d.ts +15 -16
- package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
- package/types/shirkasoft-ui-components.d.ts +1 -2
- package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Shirkasoft UI Components.
|
|
6
7
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
@@ -8,172 +9,346 @@ import * as shirkasoft_ui_components_icons from 'shirkasoft-ui-components/icons'
|
|
|
8
9
|
*/
|
|
9
10
|
/** A chip shown under a sub item (time, pricing model, quantity, etc). */
|
|
10
11
|
interface TimelineMeta {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
icon: string | any;
|
|
13
|
+
label?: string;
|
|
14
|
+
value: string;
|
|
14
15
|
}
|
|
15
16
|
/** A row inside a timeline item (e.g. an activity of a tour day). */
|
|
16
17
|
interface TimelineSubItem {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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;
|
|
34
35
|
}
|
|
35
36
|
/** A single event in the timeline (e.g. a tour day). */
|
|
36
37
|
interface TimelineItem {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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[];
|
|
49
50
|
}
|
|
50
51
|
/** A button rendered in the header. */
|
|
51
52
|
interface TimelineAction {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
label: string;
|
|
54
|
+
icon: string | any;
|
|
55
|
+
onClick: () => void;
|
|
56
|
+
class?: string;
|
|
57
|
+
isVisible?: () => boolean;
|
|
58
|
+
isDisabled?: () => boolean;
|
|
58
59
|
}
|
|
59
60
|
/** An action rendered in the item card footer. */
|
|
60
61
|
interface TimelineItemAction {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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;
|
|
67
68
|
}
|
|
68
69
|
/** An action rendered on hover over a sub item. */
|
|
69
70
|
interface TimelineSubItemAction {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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;
|
|
75
76
|
}
|
|
76
77
|
type TimelineAlignment = 'left' | 'alternate' | 'split';
|
|
77
78
|
type TimelineMarkerSize = 'sm' | 'md' | 'lg';
|
|
78
|
-
declare const DEFAULT_MARKER_GRADIENTS: string[];
|
|
79
|
+
export declare const DEFAULT_MARKER_GRADIENTS: string[];
|
|
79
80
|
/** Supplier-type style palette used by the original wac-app timeline. */
|
|
80
|
-
declare const DEFAULT_SUPPLIER_ICON_COLORS: Record<string, {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
export declare const DEFAULT_SUPPLIER_ICON_COLORS: Record<string, {
|
|
82
|
+
bg: string;
|
|
83
|
+
text: string;
|
|
83
84
|
}>;
|
|
84
85
|
/** Maps a sub-item `type` to its icon data (`IconNode`). */
|
|
85
|
-
declare const DEFAULT_SUPPLIER_TYPE_ICONS: Record<string, any>;
|
|
86
|
-
declare class TimelineComponent {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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>;
|
|
176
353
|
}
|
|
177
|
-
|
|
178
|
-
export { DEFAULT_MARKER_GRADIENTS, DEFAULT_SUPPLIER_ICON_COLORS, DEFAULT_SUPPLIER_TYPE_ICONS, TimelineComponent };
|
|
179
|
-
export type { TimelineAction, TimelineAlignment, TimelineItem, TimelineItemAction, TimelineMarkerSize, TimelineMeta, TimelineSubItem, TimelineSubItemAction };
|
|
354
|
+
export type { TimelineAction, TimelineAlignment, TimelineItem, TimelineItemAction, TimelineMarkerSize, TimelineMeta, TimelineSubItem, TimelineSubItemAction };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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";
|
|
5
7
|
/**
|
|
6
8
|
* Shirkasoft UI Components.
|
|
7
9
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
@@ -14,48 +16,70 @@ import { FormCheckboxControl } from '@angular/forms/signals';
|
|
|
14
16
|
* It also implements the Angular Signal Forms `FormCheckboxControl` contract
|
|
15
17
|
* through its `checked` model, so it works with `[formField]` as well.
|
|
16
18
|
*/
|
|
17
|
-
declare class ToggleComponent implements ControlValueAccessor, FormCheckboxControl {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
+
}
|