@aaamb/ngx-design-system 1.3.6 → 1.3.8
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/fesm2022/aaamb-ngx-design-system.mjs +4075 -0
- package/fesm2022/aaamb-ngx-design-system.mjs.map +1 -0
- package/package.json +14 -58
- package/styles/compiled.css +2 -0
- package/types/aaamb-ngx-design-system.d.ts +1142 -0
- package/.editorconfig +0 -17
- package/.nvmrc +0 -1
- package/.postcssrc.json +0 -5
- package/.storybook/main.ts +0 -20
- package/.storybook/preview.ts +0 -23
- package/.storybook/storybook.css +0 -1
- package/.storybook/tsconfig.json +0 -19
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/CHANGELOG.md +0 -10
- package/LOCAL_DEVELOPMENT.md +0 -129
- package/angular.json +0 -74
- package/bitbucket-pipelines.yml +0 -41
- package/iac/bin/app.ts +0 -42
- package/iac/cdk.json +0 -82
- package/iac/lib/config/environments.ts +0 -19
- package/iac/lib/config/types.ts +0 -13
- package/iac/lib/stacks/certificate-stack.ts +0 -34
- package/iac/lib/stacks/frontend-stack.ts +0 -120
- package/iac/lib/stacks/index.ts +0 -2
- package/iac/package-lock.json +0 -726
- package/iac/package.json +0 -25
- package/iac/tsconfig.json +0 -24
- package/ng-package.json +0 -8
- package/src/components/button/button-green.stories.ts +0 -101
- package/src/components/button/button-text.stories.ts +0 -105
- package/src/components/button/button-white.stories.ts +0 -105
- package/src/components/button/button.component.stories.ts +0 -91
- package/src/components/button/button.component.ts +0 -93
- package/src/components/checkbox/checkbox.component.html +0 -30
- package/src/components/checkbox/checkbox.component.stories.ts +0 -183
- package/src/components/checkbox/checkbox.component.ts +0 -211
- package/src/components/datepicker-selector/datepicker-selector.component.html +0 -103
- package/src/components/datepicker-selector/datepicker-selector.component.stories.ts +0 -69
- package/src/components/datepicker-selector/datepicker-selector.component.ts +0 -287
- package/src/components/error-message/error-message.component.html +0 -3
- package/src/components/error-message/error-message.component.ts +0 -13
- package/src/components/filter-button/filter-button.component.html +0 -286
- package/src/components/filter-button/filter-button.component.stories.ts +0 -123
- package/src/components/filter-button/filter-button.component.ts +0 -582
- package/src/components/icon/icon.component.ts +0 -20
- package/src/components/icon/icon.html +0 -1333
- package/src/components/icon/icon.stories.ts +0 -49
- package/src/components/icon/icons-list.stories.ts +0 -42
- package/src/components/input/input.component.stories.ts +0 -101
- package/src/components/input/input.component.ts +0 -317
- package/src/components/input/input.html +0 -160
- package/src/components/input-datepicker/input-datepicker.component.ts +0 -356
- package/src/components/input-datepicker/input-datepicker.html +0 -69
- package/src/components/input-datepicker/input-datepicker.stories.ts +0 -99
- package/src/components/input-rangepicker/input-rangepicker.component.ts +0 -365
- package/src/components/input-rangepicker/input-rangepicker.html +0 -54
- package/src/components/input-rangepicker/input-rangepicker.stories.ts +0 -88
- package/src/components/input-weekpicker/input-weekpicker.component.ts +0 -417
- package/src/components/input-weekpicker/input-weekpicker.html +0 -54
- package/src/components/input-weekpicker/input-weekpicker.stories.ts +0 -103
- package/src/components/label/label.component.html +0 -20
- package/src/components/label/label.component.ts +0 -22
- package/src/components/modals/delicate-confirmation-modal/delicate-confirmation-modal.component.html +0 -32
- package/src/components/modals/delicate-confirmation-modal/delicate-confirmation-modal.component.stories.ts +0 -57
- package/src/components/modals/delicate-confirmation-modal/delicate-confirmation-modal.component.ts +0 -48
- package/src/components/modals/feedback-modal/feedback-modal.component.html +0 -118
- package/src/components/modals/feedback-modal/feedback-modal.component.stories.ts +0 -93
- package/src/components/modals/feedback-modal/feedback-modal.component.ts +0 -187
- package/src/components/modals/help-modal/help-modal.component.html +0 -32
- package/src/components/modals/help-modal/help-modal.component.stories.ts +0 -76
- package/src/components/modals/help-modal/help-modal.component.ts +0 -54
- package/src/components/modals/information-modal/information-modal.component.html +0 -24
- package/src/components/modals/information-modal/information-modal.component.stories.ts +0 -62
- package/src/components/modals/information-modal/information-modal.component.ts +0 -35
- package/src/components/modals/main-modal/main-modal.component.html +0 -85
- package/src/components/modals/main-modal/main-modal.component.stories.ts +0 -127
- package/src/components/modals/main-modal/main-modal.component.ts +0 -85
- package/src/components/modals/notification-modal/notification-modal.component.html +0 -22
- package/src/components/modals/notification-modal/notification-modal.component.stories.ts +0 -59
- package/src/components/modals/notification-modal/notification-modal.component.ts +0 -37
- package/src/components/selectors/multiple-selector/multiple-selector.component.html +0 -51
- package/src/components/selectors/multiple-selector/multiple-selector.component.stories.ts +0 -306
- package/src/components/selectors/multiple-selector/multiple-selector.component.ts +0 -308
- package/src/components/selectors/single-selector/single-selector.component.html +0 -46
- package/src/components/selectors/single-selector/single-selector.component.stories.ts +0 -294
- package/src/components/selectors/single-selector/single-selector.component.ts +0 -239
- package/src/components/side-nav/side-nav.component.stories.ts +0 -157
- package/src/components/side-nav/side-nav.component.ts +0 -306
- package/src/components/snackbar/snackbar.component.ts +0 -150
- package/src/components/snackbar/snackbar.html +0 -21
- package/src/components/snackbar/snackbar.stories.ts +0 -51
- package/src/components/state/state.component.ts +0 -30
- package/src/components/state/state.html +0 -13
- package/src/components/state/state.stories.ts +0 -74
- package/src/components/table/table.component.html +0 -441
- package/src/components/table/table.component.scss +0 -28
- package/src/components/table/table.component.stories.ts +0 -655
- package/src/components/table/table.component.ts +0 -475
- package/src/components/tabs/tabs.component.stories.ts +0 -114
- package/src/components/tabs/tabs.component.ts +0 -69
- package/src/core/types.ts +0 -486
- package/src/public-api.ts +0 -23
- package/tsconfig.json +0 -37
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.spec.json +0 -13
package/src/core/types.ts
DELETED
|
@@ -1,486 +0,0 @@
|
|
|
1
|
-
import type { Observable } from 'rxjs';
|
|
2
|
-
|
|
3
|
-
// =========================
|
|
4
|
-
// Button Component
|
|
5
|
-
// =========================
|
|
6
|
-
export type AdsButtonVariant = 'primary' | 'secondary';
|
|
7
|
-
export type AdsButtonColor = 'green' | 'white' | 'text';
|
|
8
|
-
export type AdsButtonType = 'button' | 'submit' | 'reset';
|
|
9
|
-
|
|
10
|
-
// =========================
|
|
11
|
-
// Input Component
|
|
12
|
-
// =========================
|
|
13
|
-
export type AdsInputType =
|
|
14
|
-
| 'text'
|
|
15
|
-
| 'text_area'
|
|
16
|
-
| 'number'
|
|
17
|
-
| 'cellphone'
|
|
18
|
-
| 'password'
|
|
19
|
-
| 'rate'
|
|
20
|
-
| 'search'
|
|
21
|
-
| 'payment_card';
|
|
22
|
-
|
|
23
|
-
// =========================
|
|
24
|
-
// Icon Component
|
|
25
|
-
// =========================
|
|
26
|
-
export const ICONS = {
|
|
27
|
-
add_square: 'add_square',
|
|
28
|
-
administrator_solid: 'administrator_solid',
|
|
29
|
-
arrow_right: 'arrow_right',
|
|
30
|
-
blood_type: 'blood_type',
|
|
31
|
-
chart_bars: 'chart_bars',
|
|
32
|
-
chart_grid: 'chart_grid',
|
|
33
|
-
book: 'book',
|
|
34
|
-
bookmark: 'bookmark',
|
|
35
|
-
branchs: 'branchs',
|
|
36
|
-
building: 'building',
|
|
37
|
-
calendar: 'calendar',
|
|
38
|
-
calendar_check: 'calendar_check',
|
|
39
|
-
chat: 'chat',
|
|
40
|
-
error: 'error',
|
|
41
|
-
check: 'check',
|
|
42
|
-
check_list: 'check_list',
|
|
43
|
-
controller_frame: 'controller_frame',
|
|
44
|
-
copy: 'copy',
|
|
45
|
-
delete: 'delete',
|
|
46
|
-
delete_trash: 'delete_trash',
|
|
47
|
-
device_add: 'device_add',
|
|
48
|
-
document: 'document',
|
|
49
|
-
document_upload: 'document_upload',
|
|
50
|
-
download_rounded: 'download_rounded',
|
|
51
|
-
edit: 'edit',
|
|
52
|
-
edit_calendar: 'edit_calendar',
|
|
53
|
-
eye: 'eye',
|
|
54
|
-
folder_management: 'folder_management',
|
|
55
|
-
group: 'group',
|
|
56
|
-
hamburger: 'hamburger',
|
|
57
|
-
hide: 'hide',
|
|
58
|
-
history_rounded: 'history_rounded',
|
|
59
|
-
home: 'home',
|
|
60
|
-
home_solid: 'home_solid',
|
|
61
|
-
ia_agent: 'ia_agent',
|
|
62
|
-
info: 'info',
|
|
63
|
-
lightbulb: 'lightbulb',
|
|
64
|
-
medical_user: 'medical_user',
|
|
65
|
-
menu_list: 'menu_list',
|
|
66
|
-
microphone: 'microphone',
|
|
67
|
-
minus: 'minus',
|
|
68
|
-
move_down: 'move_down',
|
|
69
|
-
open: 'open',
|
|
70
|
-
paper_edit: 'paper_edit',
|
|
71
|
-
pause: 'pause',
|
|
72
|
-
people: 'people',
|
|
73
|
-
play: 'play',
|
|
74
|
-
plus: 'plus',
|
|
75
|
-
queue_play: 'queue_play',
|
|
76
|
-
receipt: 'receipt',
|
|
77
|
-
replay: 'replay',
|
|
78
|
-
reset_settings: 'reset_settings',
|
|
79
|
-
scanner: 'scanner',
|
|
80
|
-
search: 'search',
|
|
81
|
-
settings: 'settings',
|
|
82
|
-
sharp: 'sharp',
|
|
83
|
-
sorting: 'sorting',
|
|
84
|
-
stop: 'stop',
|
|
85
|
-
table: 'table',
|
|
86
|
-
tune: 'tune',
|
|
87
|
-
upload_file: 'upload_file',
|
|
88
|
-
upload_rounded: 'upload_rounded',
|
|
89
|
-
user: 'user',
|
|
90
|
-
user_key: 'user_key',
|
|
91
|
-
users: 'users',
|
|
92
|
-
vital_sign: 'vital_sign',
|
|
93
|
-
warning: 'warning',
|
|
94
|
-
dolar_sign: 'dollar_sign',
|
|
95
|
-
icon_card: 'icon_card',
|
|
96
|
-
mastercard: 'mastercard',
|
|
97
|
-
visa: 'visa',
|
|
98
|
-
amex: 'amex',
|
|
99
|
-
discover: 'discover',
|
|
100
|
-
toggle_active: 'toggle_active',
|
|
101
|
-
toggle_inactive: 'toggle_inactive',
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export type AdsIconName = keyof typeof ICONS;
|
|
105
|
-
|
|
106
|
-
// =========================
|
|
107
|
-
// Shared Visual State Tokens
|
|
108
|
-
// =========================
|
|
109
|
-
export enum containerShapes {
|
|
110
|
-
ROUNDED = 'rounded',
|
|
111
|
-
SQUARE = 'square',
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export enum stateBorderColors {
|
|
115
|
-
NEUTRAL = 'border-neutral-disabled-bg',
|
|
116
|
-
BORDER_AQUA1 = 'border-aqua-1',
|
|
117
|
-
BORDER_AQUA2 = 'border-aqua-2',
|
|
118
|
-
BORDER_AQUA3 = 'border-aqua-3',
|
|
119
|
-
BORDER_AQUA4 = 'border-aqua-4',
|
|
120
|
-
BORDER_AQUA5 = 'border-aqua-5',
|
|
121
|
-
BORDER_AQUA6 = 'border-aqua-6',
|
|
122
|
-
BORDER_AQUA7 = 'border-aqua-7',
|
|
123
|
-
BORDER_RED1 = 'border-red-1',
|
|
124
|
-
BORDER_RED2 = 'border-red-2',
|
|
125
|
-
BORDER_RED3 = 'border-red-3',
|
|
126
|
-
BORDER_RED4 = 'border-red-4',
|
|
127
|
-
BORDER_RED5 = 'border-red-5',
|
|
128
|
-
BORDER_RED6 = 'border-red-6',
|
|
129
|
-
BORDER_GREEN1 = 'border-green-1',
|
|
130
|
-
BORDER_GREEN2 = 'border-green-2',
|
|
131
|
-
BORDER_GREEN3 = 'border-green-3',
|
|
132
|
-
BORDER_GREEN4 = 'border-green-4',
|
|
133
|
-
BORDER_GREEN5 = 'border-green-5',
|
|
134
|
-
BORDER_GREEN6 = 'border-green-6',
|
|
135
|
-
BORDER_YELLOW1 = 'border-yellow-1',
|
|
136
|
-
BORDER_YELLOW2 = 'border-yellow-2',
|
|
137
|
-
BORDER_PURPLE1 = 'border-purple-1',
|
|
138
|
-
BORDER_PURPLE2 = 'border-purple-2',
|
|
139
|
-
BORDER_PURPLE3 = 'border-purple-3',
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export enum stateBackgroundColors {
|
|
143
|
-
NEUTRAL = 'bg-neutral-disabled-bg',
|
|
144
|
-
BG_AQUA1 = 'bg-aqua-1',
|
|
145
|
-
BG_AQUA2 = 'bg-aqua-2',
|
|
146
|
-
BG_AQUA3 = 'bg-aqua-3',
|
|
147
|
-
BG_AQUA4 = 'bg-aqua-4',
|
|
148
|
-
BG_AQUA5 = 'bg-aqua-5',
|
|
149
|
-
BG_AQUA6 = 'bg-aqua-6',
|
|
150
|
-
BG_AQUA7 = 'bg-aqua-7',
|
|
151
|
-
BG_RED1 = 'bg-red-1',
|
|
152
|
-
BG_RED2 = 'bg-red-2',
|
|
153
|
-
BG_RED3 = 'bg-red-3',
|
|
154
|
-
BG_RED4 = 'bg-red-4',
|
|
155
|
-
BG_RED5 = 'bg-red-5',
|
|
156
|
-
BG_RED6 = 'bg-red-6',
|
|
157
|
-
BG_GREEN1 = 'bg-green-1',
|
|
158
|
-
BG_GREEN2 = 'bg-green-2',
|
|
159
|
-
BG_GREEN3 = 'bg-green-3',
|
|
160
|
-
BG_GREEN4 = 'bg-green-4',
|
|
161
|
-
BG_GREEN5 = 'bg-green-5',
|
|
162
|
-
BG_GREEN6 = 'bg-green-6',
|
|
163
|
-
BG_YELLOW1 = 'bg-yellow-1',
|
|
164
|
-
BG_YELLOW2 = 'bg-yellow-2',
|
|
165
|
-
BG_PURPLE1 = 'bg-purple-1',
|
|
166
|
-
BG_PURPLE2 = 'bg-purple-2',
|
|
167
|
-
BG_PURPLE3 = 'bg-purple-3',
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export enum stateTextColors {
|
|
171
|
-
WHITE = 'text-white-base',
|
|
172
|
-
BLACK = 'text-aqua-base',
|
|
173
|
-
TEXT_AQUA1 = 'text-aqua-1',
|
|
174
|
-
TEXT_AQUA2 = 'text-aqua-2',
|
|
175
|
-
TEXT_AQUA3 = 'text-aqua-3',
|
|
176
|
-
TEXT_AQUA4 = 'text-aqua-4',
|
|
177
|
-
TEXT_AQUA5 = 'text-aqua-5',
|
|
178
|
-
TEXT_AQUA6 = 'text-aqua-6',
|
|
179
|
-
TEXT_AQUA7 = 'text-aqua-7',
|
|
180
|
-
TEXT_RED1 = 'text-red-1',
|
|
181
|
-
TEXT_RED2 = 'text-red-2',
|
|
182
|
-
TEXT_RED3 = 'text-red-3',
|
|
183
|
-
TEXT_RED4 = 'text-red-4',
|
|
184
|
-
TEXT_RED5 = 'text-red-5',
|
|
185
|
-
TEXT_RED6 = 'text-red-6',
|
|
186
|
-
TEXT_GREEN1 = 'text-green-1',
|
|
187
|
-
TEXT_GREEN2 = 'text-green-2',
|
|
188
|
-
TEXT_GREEN3 = 'text-green-3',
|
|
189
|
-
TEXT_GREEN4 = 'text-green-4',
|
|
190
|
-
TEXT_GREEN5 = 'text-green-5',
|
|
191
|
-
TEXT_GREEN6 = 'text-green-6',
|
|
192
|
-
TEXT_YELLOW1 = 'text-yellow-1',
|
|
193
|
-
TEXT_YELLOW2 = 'text-yellow-2',
|
|
194
|
-
TEXT_PURPLE1 = 'text-purple-1',
|
|
195
|
-
TEXT_PURPLE2 = 'text-purple-2',
|
|
196
|
-
TEXT_PURPLE3 = 'text-purple-3',
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// =========================
|
|
200
|
-
// Snackbar Component
|
|
201
|
-
// =========================
|
|
202
|
-
export type SnackbarAlertType = 'error' | 'info' | 'warning' | 'success';
|
|
203
|
-
|
|
204
|
-
export type SnackbarAlert = {
|
|
205
|
-
id: number;
|
|
206
|
-
type: SnackbarAlertType;
|
|
207
|
-
message: string;
|
|
208
|
-
icon?: AdsIconName;
|
|
209
|
-
remainingMs: number;
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
// =========================
|
|
213
|
-
// Main Modal Component
|
|
214
|
-
// =========================
|
|
215
|
-
export type AdsMainModalAction = {
|
|
216
|
-
id?: string;
|
|
217
|
-
text: string;
|
|
218
|
-
variant?: AdsButtonVariant;
|
|
219
|
-
color?: AdsButtonColor;
|
|
220
|
-
buttonType?: AdsButtonType;
|
|
221
|
-
disabled?: boolean;
|
|
222
|
-
callback?: () => void;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export type AdsMainModalActionsAlign = 'start' | 'center' | 'end';
|
|
226
|
-
|
|
227
|
-
// =========================
|
|
228
|
-
// Checkbox Component
|
|
229
|
-
// =========================
|
|
230
|
-
export type AdsCheckboxAppearance = 'square' | 'toggle' | 'radio';
|
|
231
|
-
export type AdsCheckboxLabelPosition = 'left' | 'right';
|
|
232
|
-
export type AdsCheckboxLabelColor = 'green' | 'white';
|
|
233
|
-
|
|
234
|
-
// =========================
|
|
235
|
-
// Input Payment Card Component
|
|
236
|
-
// =========================
|
|
237
|
-
export type PaymentCardBrand =
|
|
238
|
-
| 'visa'
|
|
239
|
-
| 'mastercard'
|
|
240
|
-
| 'amex'
|
|
241
|
-
| 'discover'
|
|
242
|
-
| 'icon_card';
|
|
243
|
-
|
|
244
|
-
// =========================
|
|
245
|
-
// Datepicker Selector Component
|
|
246
|
-
// =========================
|
|
247
|
-
export type PickerMode =
|
|
248
|
-
| 'annually'
|
|
249
|
-
| 'monthly'
|
|
250
|
-
| 'weekly'
|
|
251
|
-
| 'quarterly'
|
|
252
|
-
| 'daily';
|
|
253
|
-
|
|
254
|
-
export type PickerOption = {
|
|
255
|
-
mode: PickerMode;
|
|
256
|
-
label: string;
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
// =========================
|
|
260
|
-
// Feedback Modal Component
|
|
261
|
-
// =========================
|
|
262
|
-
export type FeedbackPayload = {
|
|
263
|
-
subject: string;
|
|
264
|
-
category: string;
|
|
265
|
-
description: string;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
export type FeedbackResponseType = 'success' | 'error';
|
|
269
|
-
|
|
270
|
-
// =========================
|
|
271
|
-
// Single Selector Component
|
|
272
|
-
// =========================
|
|
273
|
-
export type AdsSingleSelectorValue = string | number | boolean | null;
|
|
274
|
-
|
|
275
|
-
export type AdsSingleSelectorOption = {
|
|
276
|
-
label: string;
|
|
277
|
-
value: AdsSingleSelectorValue;
|
|
278
|
-
disabled?: boolean;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
export type AdsSingleSelectorOptionGroup = {
|
|
282
|
-
label: string;
|
|
283
|
-
children: AdsSingleSelectorOption[];
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
export type AdsSingleSelectorOptionOrGroup =
|
|
287
|
-
| AdsSingleSelectorOption
|
|
288
|
-
| AdsSingleSelectorOptionGroup;
|
|
289
|
-
|
|
290
|
-
export type AdsSingleSelectorAsyncOptions =
|
|
291
|
-
| Promise<AdsSingleSelectorOptionOrGroup[]>
|
|
292
|
-
| Observable<AdsSingleSelectorOptionOrGroup[]>;
|
|
293
|
-
|
|
294
|
-
// =========================
|
|
295
|
-
// Multiple Selector Component
|
|
296
|
-
// =========================
|
|
297
|
-
export type AdsMultipleSelectorValue = string | number;
|
|
298
|
-
|
|
299
|
-
export type AdsMultipleSelectorOption = {
|
|
300
|
-
label: string;
|
|
301
|
-
value: AdsMultipleSelectorValue;
|
|
302
|
-
disabled?: boolean;
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
export type AdsMultipleSelectorOptionGroup = {
|
|
306
|
-
label: string;
|
|
307
|
-
children: AdsMultipleSelectorOption[];
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
export type AdsMultipleSelectorOptionOrGroup =
|
|
311
|
-
| AdsMultipleSelectorOption
|
|
312
|
-
| AdsMultipleSelectorOptionGroup;
|
|
313
|
-
|
|
314
|
-
export type AdsMultipleSelectorAsyncOptions =
|
|
315
|
-
| Promise<AdsMultipleSelectorOptionOrGroup[]>
|
|
316
|
-
| Observable<AdsMultipleSelectorOptionOrGroup[]>;
|
|
317
|
-
|
|
318
|
-
// =========================
|
|
319
|
-
// Side Nav Component
|
|
320
|
-
// =========================
|
|
321
|
-
export type AdsSideNavFooterButton = {
|
|
322
|
-
icon: AdsIconName;
|
|
323
|
-
text: string;
|
|
324
|
-
callback: () => void;
|
|
325
|
-
disabled?: boolean;
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
export type AdsSideNavRoute = string | string[] | readonly string[];
|
|
329
|
-
|
|
330
|
-
export type AdsSideNavChildOption = {
|
|
331
|
-
name: string;
|
|
332
|
-
url: string;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
export type AdsSideNavOption = {
|
|
336
|
-
icon?: AdsIconName;
|
|
337
|
-
name: string;
|
|
338
|
-
url?: AdsSideNavRoute;
|
|
339
|
-
children?: AdsSideNavChildOption[];
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
// =========================
|
|
343
|
-
// Filter Button Component
|
|
344
|
-
// =========================
|
|
345
|
-
export type AdsFilterButtonValueType =
|
|
346
|
-
| 'text'
|
|
347
|
-
| 'number'
|
|
348
|
-
| 'date'
|
|
349
|
-
| 'boolean'
|
|
350
|
-
| 'status'
|
|
351
|
-
| 'codes'
|
|
352
|
-
| 'custom';
|
|
353
|
-
|
|
354
|
-
export type AdsFilterButtonOption = AdsSingleSelectorOption & {
|
|
355
|
-
valueType?: AdsFilterButtonValueType;
|
|
356
|
-
customOptions?: AdsSingleSelectorOption[];
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
export type AdsFilterButtonRow = {
|
|
360
|
-
column: AdsSingleSelectorValue | null;
|
|
361
|
-
value: string;
|
|
362
|
-
valueType: AdsFilterButtonValueType;
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
export type AdsFilterButtonSortDirection = 'ASC' | 'DESC';
|
|
366
|
-
|
|
367
|
-
export type AdsFilterButtonSortRow = {
|
|
368
|
-
column: AdsSingleSelectorValue | null;
|
|
369
|
-
direction: AdsFilterButtonSortDirection;
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
// =========================
|
|
373
|
-
// Tabs Component
|
|
374
|
-
// =========================
|
|
375
|
-
export interface Tab {
|
|
376
|
-
id: string;
|
|
377
|
-
name: string;
|
|
378
|
-
description?: string;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
// =========================
|
|
382
|
-
// Table Component
|
|
383
|
-
// =========================
|
|
384
|
-
export type TableDragDropEvent = {
|
|
385
|
-
previousIndex: number;
|
|
386
|
-
currentIndex: number;
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
export type TableActionButton<T = any> = {
|
|
390
|
-
icon: string;
|
|
391
|
-
tooltip: string | ((row: T) => string);
|
|
392
|
-
callback: (row: T) => void;
|
|
393
|
-
condition?: (row: T) => boolean;
|
|
394
|
-
disabled?: (row: T) => boolean;
|
|
395
|
-
type?: 'icon' | 'image';
|
|
396
|
-
imagePath?: string;
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
export type TableSortDirection = 'ASC' | 'DESC';
|
|
400
|
-
|
|
401
|
-
export type TableSortCriterion = {
|
|
402
|
-
field: string;
|
|
403
|
-
direction: TableSortDirection;
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
export type TablePropertyType =
|
|
407
|
-
| 'text'
|
|
408
|
-
| 'number'
|
|
409
|
-
| 'currency'
|
|
410
|
-
| 'date'
|
|
411
|
-
| 'boolean'
|
|
412
|
-
| 'status';
|
|
413
|
-
|
|
414
|
-
export type TableStateStyle = {
|
|
415
|
-
text?: string;
|
|
416
|
-
borderColor: stateBorderColors;
|
|
417
|
-
bgColor: stateBackgroundColors;
|
|
418
|
-
textColor: stateTextColors;
|
|
419
|
-
shape?: containerShapes;
|
|
420
|
-
boldText?: boolean;
|
|
421
|
-
fullWidth?: boolean;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
export type TableStateStylesMap = Record<string, TableStateStyle>;
|
|
425
|
-
|
|
426
|
-
// =========================
|
|
427
|
-
// Table Storybook Types
|
|
428
|
-
// =========================
|
|
429
|
-
export type StoryTableRowData = {
|
|
430
|
-
id: number;
|
|
431
|
-
patient: string;
|
|
432
|
-
encounter: string;
|
|
433
|
-
amount: string;
|
|
434
|
-
status: string;
|
|
435
|
-
active: boolean;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export type StoryTableColumn = {
|
|
439
|
-
id: string;
|
|
440
|
-
header: string;
|
|
441
|
-
size: number;
|
|
442
|
-
meta: {
|
|
443
|
-
originalProperty: string;
|
|
444
|
-
isSortable: boolean;
|
|
445
|
-
propertyType: TablePropertyType;
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
export type StoryTableCellContext = {
|
|
450
|
-
getValue: () => unknown;
|
|
451
|
-
row: StoryTableRow;
|
|
452
|
-
column: StoryTableColumn;
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
export type StoryTableCell = {
|
|
456
|
-
id: string;
|
|
457
|
-
column: {
|
|
458
|
-
columnDef: {
|
|
459
|
-
cell: (context: StoryTableCellContext) => string;
|
|
460
|
-
meta: StoryTableColumn['meta'];
|
|
461
|
-
};
|
|
462
|
-
};
|
|
463
|
-
getContext: () => StoryTableCellContext;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export type StoryTableRow = {
|
|
467
|
-
original: StoryTableRowData;
|
|
468
|
-
getVisibleCells: () => StoryTableCell[];
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
export type StoryTableHeader = {
|
|
472
|
-
id: string;
|
|
473
|
-
getSize: () => number;
|
|
474
|
-
column: {
|
|
475
|
-
columnDef: {
|
|
476
|
-
header: string;
|
|
477
|
-
meta: StoryTableColumn['meta'];
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
export type StoryTable = {
|
|
483
|
-
getHeaderGroups: () => Array<{ headers: StoryTableHeader[] }>;
|
|
484
|
-
getRowModel: () => { rows: StoryTableRow[] };
|
|
485
|
-
getState: () => { columnSizing: Record<string, number> };
|
|
486
|
-
};
|
package/src/public-api.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export * from './core/types';
|
|
2
|
-
export * from './components/button/button.component';
|
|
3
|
-
export * from './components/icon/icon.component';
|
|
4
|
-
export * from './components/checkbox/checkbox.component';
|
|
5
|
-
export * from './components/input/input.component';
|
|
6
|
-
export * from './components/state/state.component';
|
|
7
|
-
export * from './components/snackbar/snackbar.component';
|
|
8
|
-
export * from './components/input-datepicker/input-datepicker.component';
|
|
9
|
-
export * from './components/input-rangepicker/input-rangepicker.component';
|
|
10
|
-
export * from './components/input-weekpicker/input-weekpicker.component';
|
|
11
|
-
export * from './components/datepicker-selector/datepicker-selector.component';
|
|
12
|
-
export * from './components/filter-button/filter-button.component';
|
|
13
|
-
export * from './components/tabs/tabs.component';
|
|
14
|
-
export * from './components/side-nav/side-nav.component';
|
|
15
|
-
export * from './components/selectors/single-selector/single-selector.component';
|
|
16
|
-
export * from './components/selectors/multiple-selector/multiple-selector.component';
|
|
17
|
-
export * from './components/modals/main-modal/main-modal.component';
|
|
18
|
-
export * from './components/modals/delicate-confirmation-modal/delicate-confirmation-modal.component';
|
|
19
|
-
export * from './components/modals/information-modal/information-modal.component';
|
|
20
|
-
export * from './components/modals/notification-modal/notification-modal.component';
|
|
21
|
-
export * from './components/modals/help-modal/help-modal.component';
|
|
22
|
-
export * from './components/modals/feedback-modal/feedback-modal.component';
|
|
23
|
-
export * from './components/table/table.component';
|
package/tsconfig.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compileOnSave": false,
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"strict": true,
|
|
5
|
-
"noImplicitOverride": true,
|
|
6
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
7
|
-
"noImplicitReturns": true,
|
|
8
|
-
"paths": {
|
|
9
|
-
"ngx-aaamb-design-system": [
|
|
10
|
-
"./dist/ngx-aaamb-design-system"
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
"noFallthroughCasesInSwitch": true,
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"isolatedModules": true,
|
|
16
|
-
"experimentalDecorators": true,
|
|
17
|
-
"importHelpers": true,
|
|
18
|
-
"target": "ES2022",
|
|
19
|
-
"module": "preserve"
|
|
20
|
-
},
|
|
21
|
-
"angularCompilerOptions": {
|
|
22
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
23
|
-
"strictInjectionParameters": true,
|
|
24
|
-
"strictInputAccessModifiers": true,
|
|
25
|
-
"typeCheckHostBindings": true,
|
|
26
|
-
"strictTemplates": true
|
|
27
|
-
},
|
|
28
|
-
"files": [],
|
|
29
|
-
"references": [
|
|
30
|
-
{
|
|
31
|
-
"path": "./tsconfig.lib.json"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "./tsconfig.spec.json"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "./out-tsc/lib",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"inlineSources": true,
|
|
8
|
-
"types": []
|
|
9
|
-
},
|
|
10
|
-
"include": [
|
|
11
|
-
"src/**/*.ts"
|
|
12
|
-
],
|
|
13
|
-
"exclude": [
|
|
14
|
-
"**/*.spec.ts",
|
|
15
|
-
"**/*.stories.ts"
|
|
16
|
-
]
|
|
17
|
-
}
|
package/tsconfig.lib.prod.json
DELETED