@corp-products/ui-components 1.0.3 → 2.0.1

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 (75) hide show
  1. package/README.md +63 -2
  2. package/fesm2022/corp-products-ui-components.mjs +227 -187
  3. package/fesm2022/corp-products-ui-components.mjs.map +1 -1
  4. package/index.d.ts +394 -13
  5. package/package.json +6 -6
  6. package/esm2022/corp-products-ui-components.mjs +0 -5
  7. package/esm2022/index.mjs +0 -14
  8. package/esm2022/lib/app-accordion/app-accordion.component.mjs +0 -35
  9. package/esm2022/lib/app-button/app-button.component.mjs +0 -43
  10. package/esm2022/lib/app-button/app-button.mjs +0 -2
  11. package/esm2022/lib/app-button/index.mjs +0 -3
  12. package/esm2022/lib/app-dropdown-menu/app-dropdown-menu.component.mjs +0 -54
  13. package/esm2022/lib/app-dropdown-menu/app-dropdown-menu.mjs +0 -2
  14. package/esm2022/lib/app-dropdown-menu/index.mjs +0 -3
  15. package/esm2022/lib/app-dropdown-menu/menu-popup.pipe.mjs +0 -23
  16. package/esm2022/lib/app-tabs/app-tab.interface.mjs +0 -2
  17. package/esm2022/lib/app-tabs/app-tabs.component.mjs +0 -57
  18. package/esm2022/lib/app-tabs/index.mjs +0 -3
  19. package/esm2022/lib/confirmation-dialog/confirmation-dialog.component.mjs +0 -44
  20. package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +0 -31
  21. package/esm2022/lib/dynamic-form/dynamic-form.interface.mjs +0 -6
  22. package/esm2022/lib/form-components/@utils/form-utils.mjs +0 -11
  23. package/esm2022/lib/form-components/@utils/validations/error-keys.enum.mjs +0 -27
  24. package/esm2022/lib/form-components/@utils/validations/form-validation.service.mjs +0 -50
  25. package/esm2022/lib/form-components/@utils/validations/index.mjs +0 -4
  26. package/esm2022/lib/form-components/@utils/validations/validation-message.pipe.mjs +0 -30
  27. package/esm2022/lib/form-components/components/auto-complete/auto-complete.component.mjs +0 -59
  28. package/esm2022/lib/form-components/components/base-input.component.mjs +0 -57
  29. package/esm2022/lib/form-components/components/date-picker/date-picker.component.mjs +0 -58
  30. package/esm2022/lib/form-components/components/input/input.component.mjs +0 -48
  31. package/esm2022/lib/form-components/components/select/select.component.mjs +0 -72
  32. package/esm2022/lib/form-components/components/select-button/select-button.component.mjs +0 -29
  33. package/esm2022/lib/form-components/components/switcher/switch.component.mjs +0 -34
  34. package/esm2022/lib/form-components/index.mjs +0 -10
  35. package/esm2022/lib/form-components/interfaces/index.mjs +0 -2
  36. package/esm2022/lib/form-components/interfaces/label-value.mjs +0 -2
  37. package/esm2022/lib/ico-moon-icon/ico-moon-icon.component.mjs +0 -41
  38. package/esm2022/lib/read-more/read-more.component.mjs +0 -30
  39. package/esm2022/lib/side-bar/side-bar.component.mjs +0 -51
  40. package/esm2022/lib/user-autocomplete-card/user-autocomplete-card.component.mjs +0 -32
  41. package/esm2022/lib/user-info/user-info.component.mjs +0 -15
  42. package/lib/app-accordion/app-accordion.component.d.ts +0 -11
  43. package/lib/app-button/app-button.component.d.ts +0 -18
  44. package/lib/app-button/app-button.d.ts +0 -4
  45. package/lib/app-button/index.d.ts +0 -2
  46. package/lib/app-dropdown-menu/app-dropdown-menu.component.d.ts +0 -20
  47. package/lib/app-dropdown-menu/app-dropdown-menu.d.ts +0 -15
  48. package/lib/app-dropdown-menu/index.d.ts +0 -2
  49. package/lib/app-dropdown-menu/menu-popup.pipe.d.ts +0 -8
  50. package/lib/app-tabs/app-tab.interface.d.ts +0 -23
  51. package/lib/app-tabs/app-tabs.component.d.ts +0 -18
  52. package/lib/app-tabs/index.d.ts +0 -2
  53. package/lib/confirmation-dialog/confirmation-dialog.component.d.ts +0 -19
  54. package/lib/dynamic-form/dynamic-form.component.d.ts +0 -16
  55. package/lib/dynamic-form/dynamic-form.interface.d.ts +0 -44
  56. package/lib/form-components/@utils/form-utils.d.ts +0 -4
  57. package/lib/form-components/@utils/validations/error-keys.enum.d.ts +0 -24
  58. package/lib/form-components/@utils/validations/form-validation.service.d.ts +0 -11
  59. package/lib/form-components/@utils/validations/index.d.ts +0 -3
  60. package/lib/form-components/@utils/validations/validation-message.pipe.d.ts +0 -9
  61. package/lib/form-components/components/auto-complete/auto-complete.component.d.ts +0 -18
  62. package/lib/form-components/components/base-input.component.d.ts +0 -21
  63. package/lib/form-components/components/date-picker/date-picker.component.d.ts +0 -21
  64. package/lib/form-components/components/input/input.component.d.ts +0 -17
  65. package/lib/form-components/components/select/select.component.d.ts +0 -23
  66. package/lib/form-components/components/select-button/select-button.component.d.ts +0 -13
  67. package/lib/form-components/components/switcher/switch.component.d.ts +0 -11
  68. package/lib/form-components/index.d.ts +0 -9
  69. package/lib/form-components/interfaces/index.d.ts +0 -1
  70. package/lib/form-components/interfaces/label-value.d.ts +0 -4
  71. package/lib/ico-moon-icon/ico-moon-icon.component.d.ts +0 -9
  72. package/lib/read-more/read-more.component.d.ts +0 -10
  73. package/lib/side-bar/side-bar.component.d.ts +0 -18
  74. package/lib/user-autocomplete-card/user-autocomplete-card.component.d.ts +0 -12
  75. package/lib/user-info/user-info.component.d.ts +0 -7
package/index.d.ts CHANGED
@@ -1,13 +1,394 @@
1
- export * from './lib/app-button';
2
- export * from './lib/app-tabs';
3
- export * from './lib/app-dropdown-menu';
4
- export * from './lib/side-bar/side-bar.component';
5
- export * from './lib/ico-moon-icon/ico-moon-icon.component';
6
- export * from './lib/user-info/user-info.component';
7
- export * from './lib/confirmation-dialog/confirmation-dialog.component';
8
- export * from './lib/read-more/read-more.component';
9
- export * from './lib/app-accordion/app-accordion.component';
10
- export * from './lib/dynamic-form/dynamic-form.interface';
11
- export * from './lib/dynamic-form/dynamic-form.component';
12
- export * from './lib/form-components';
13
- export * from './lib/user-autocomplete-card/user-autocomplete-card.component';
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, TemplateRef, OnInit, OnDestroy, PipeTransform } from '@angular/core';
3
+ import { ActivatedRoute, Router, Params } from '@angular/router';
4
+ import { DialogService, DynamicDialogConfig } from 'primeng/dynamicdialog';
5
+ import { FormControl, FormGroup, ValidationErrors } from '@angular/forms';
6
+ import { Subject } from 'rxjs';
7
+ import { SelectChangeEvent } from 'primeng/select';
8
+ import { AutoCompleteSelectEvent, AutoCompleteCompleteEvent } from 'primeng/autocomplete';
9
+ import { SelectButtonChangeEvent } from 'primeng/selectbutton';
10
+
11
+ type AppButtonSeverity = 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast';
12
+ type AppButtonSize = 'large' | 'small';
13
+ type AppButtonIconPos = 'left' | 'right' | 'top' | 'bottom';
14
+ type AppButtonVariant = 'outlined' | 'text' | undefined;
15
+
16
+ declare class AppButtonComponent {
17
+ title: string;
18
+ class: string;
19
+ icon: string;
20
+ size: AppButtonSize;
21
+ style: AppButtonSeverity;
22
+ iconPos: AppButtonIconPos;
23
+ variant: AppButtonVariant;
24
+ disabled: boolean;
25
+ text: boolean;
26
+ rounded: boolean;
27
+ clickEmitter: EventEmitter<void>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppButtonComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppButtonComponent, "app-button", never, { "title": { "alias": "title"; "required": false; }; "class": { "alias": "class"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "style": { "alias": "style"; "required": false; }; "iconPos": { "alias": "iconPos"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "clickEmitter": "clickEmitter"; }, never, never, true, never>;
30
+ }
31
+
32
+ interface Tab {
33
+ title: string;
34
+ iconName?: string;
35
+ iconPathCount?: number;
36
+ disabled?: boolean;
37
+ count?: number;
38
+ permissionKey?: string;
39
+ }
40
+ interface RoutedTab extends Tab {
41
+ link: string;
42
+ }
43
+ interface TemplateTab extends Tab {
44
+ contentTemplate: TemplateRef<unknown>;
45
+ }
46
+ type AppTabs = ({
47
+ isRouted: true;
48
+ items: RoutedTab[];
49
+ } | {
50
+ isRouted: false;
51
+ items: TemplateTab[];
52
+ });
53
+
54
+ declare class AppTabsComponent implements OnInit {
55
+ private route;
56
+ private router;
57
+ tabs: AppTabs;
58
+ tabsStyle: "basic" | "primary_light" | "primary";
59
+ responsive: boolean;
60
+ activeTabIndex: number;
61
+ constructor(route: ActivatedRoute, router: Router);
62
+ ngOnInit(): void;
63
+ private updateActiveTab;
64
+ onTabChange(index: number): void;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTabsComponent, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppTabsComponent, "app-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "tabsStyle": { "alias": "tabsStyle"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; }, {}, never, never, true, never>;
67
+ }
68
+
69
+ interface DropdownMenuItem {
70
+ title: string;
71
+ routerLink?: string;
72
+ queryParams?: Params;
73
+ callback?: () => void;
74
+ icon?: string;
75
+ show?: boolean;
76
+ permissionKey?: string;
77
+ permissionAction?: string;
78
+ iconPosition?: AppButtonIconPos;
79
+ textColor?: DropdownTextColor;
80
+ }
81
+ type DropdownTextColor = 'white' | 'purple' | 'green';
82
+
83
+ declare class AppDropdownMenuComponent implements OnInit {
84
+ buttonTitle: string;
85
+ menuItems: DropdownMenuItem[];
86
+ popupMenuStyle: "white" | "purple";
87
+ buttonIcon: string;
88
+ buttonClass: string;
89
+ buttonStyle: AppButtonSeverity;
90
+ buttonIconPosition: AppButtonIconPos;
91
+ router: Router;
92
+ showMenu: boolean;
93
+ ngOnInit(): void;
94
+ onMenuItemClick(item: DropdownMenuItem): void;
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppDropdownMenuComponent, never>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppDropdownMenuComponent, "app-dropdown-menu", never, { "buttonTitle": { "alias": "buttonTitle"; "required": true; }; "menuItems": { "alias": "menuItems"; "required": true; }; "popupMenuStyle": { "alias": "popupMenuStyle"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "buttonIconPosition": { "alias": "buttonIconPosition"; "required": false; }; }, {}, never, never, true, never>;
97
+ }
98
+
99
+ declare class SideBarComponent {
100
+ show: boolean;
101
+ title: string;
102
+ closable: boolean;
103
+ dismissible: boolean;
104
+ closeOnEscape: boolean;
105
+ sidebarSize: "sm" | "md" | "lg" | "xl";
106
+ styleClass: string;
107
+ hide: EventEmitter<boolean>;
108
+ onShow: EventEmitter<boolean>;
109
+ contentTemplate: TemplateRef<unknown>;
110
+ footerTemplate: TemplateRef<unknown>;
111
+ hideSidebar(): void;
112
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideBarComponent, never>;
113
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideBarComponent, "app-side-bar", never, { "show": { "alias": "show"; "required": false; }; "title": { "alias": "title"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; }; "sidebarSize": { "alias": "sidebarSize"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; }, { "hide": "hide"; "onShow": "onShow"; }, never, ["*"], true, never>;
114
+ }
115
+
116
+ declare class IcoMoonIconComponent {
117
+ iconName: string;
118
+ iconClass: string;
119
+ iconPathCount: number;
120
+ get getPathCount(): number[];
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<IcoMoonIconComponent, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<IcoMoonIconComponent, "app-ico-moon-card", never, { "iconName": { "alias": "iconName"; "required": true; }; "iconClass": { "alias": "iconClass"; "required": false; }; "iconPathCount": { "alias": "iconPathCount"; "required": false; }; }, {}, never, never, true, never>;
123
+ }
124
+
125
+ declare class UserInfoComponent {
126
+ profileImage: string;
127
+ name: string;
128
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserInfoComponent, never>;
129
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserInfoComponent, "user-info", never, { "profileImage": { "alias": "profileImage"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
130
+ }
131
+
132
+ declare abstract class BaseInputComponent implements OnInit, OnDestroy {
133
+ control: FormControl;
134
+ name: string;
135
+ label?: string;
136
+ placeholder: string;
137
+ inputId: string;
138
+ readonly: boolean;
139
+ disabled: boolean;
140
+ hint?: string;
141
+ protected destroy$: Subject<void>;
142
+ get required(): boolean;
143
+ get isInvalid(): boolean;
144
+ ngOnInit(): void;
145
+ ngOnDestroy(): void;
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseInputComponent, never>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseInputComponent, "ng-component", never, { "control": { "alias": "control"; "required": true; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, never, true, never>;
148
+ }
149
+
150
+ declare class InputComponent extends BaseInputComponent {
151
+ type: "text" | "textarea";
152
+ contentType: "text" | "email" | "number";
153
+ prefix: string;
154
+ rows: number;
155
+ cols: number;
156
+ autoResize: boolean;
157
+ basicInput: boolean;
158
+ noStyle: boolean;
159
+ hideOptionalLabel: boolean;
160
+ inputDirection: "ltr" | "rtl" | "inherit";
161
+ constructor();
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
163
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "stc-input", never, { "type": { "alias": "type"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "noStyle": { "alias": "noStyle"; "required": false; }; "hideOptionalLabel": { "alias": "hideOptionalLabel"; "required": false; }; "inputDirection": { "alias": "inputDirection"; "required": false; }; }, {}, never, never, true, never>;
164
+ }
165
+
166
+ declare class SelectComponent extends BaseInputComponent {
167
+ selectedItemTemplate: TemplateRef<unknown> | null;
168
+ optionTemplate: TemplateRef<unknown> | null;
169
+ options: unknown[];
170
+ optionLabel: string;
171
+ checkmark: boolean;
172
+ showClear: boolean;
173
+ editable: boolean;
174
+ filter: boolean;
175
+ multiple: boolean;
176
+ filterBy: string;
177
+ selectedItemsLabel: string;
178
+ basicInput: boolean;
179
+ change: EventEmitter<any>;
180
+ constructor();
181
+ onChange(e: SelectChangeEvent): void;
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
183
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "stc-select", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "checkmark": { "alias": "checkmark"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "filterBy": { "alias": "filterBy"; "required": false; }; "selectedItemsLabel": { "alias": "selectedItemsLabel"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
184
+ }
185
+
186
+ declare class DatePickerComponent extends BaseInputComponent {
187
+ showIcon: boolean;
188
+ showClear: boolean;
189
+ basicInput: boolean;
190
+ isTimeOnly: boolean;
191
+ minDate: Date | undefined | null;
192
+ maxDate: Date | undefined | null;
193
+ hourFormat: '12' | '24';
194
+ nowTime: Date;
195
+ selectionMode: 'single' | 'range';
196
+ onAfterClearDate: EventEmitter<void>;
197
+ constructor();
198
+ selectCurrentTime(e: any): void;
199
+ clearButtonClick(e: any): void;
200
+ afterClearDate(): void;
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
202
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "stc-date-picker", never, { "showIcon": { "alias": "showIcon"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "isTimeOnly": { "alias": "isTimeOnly"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "hourFormat": { "alias": "hourFormat"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; }, { "onAfterClearDate": "onAfterClearDate"; }, never, never, true, never>;
203
+ }
204
+
205
+ declare class AutoCompleteComponent extends BaseInputComponent {
206
+ selectedItemTemplate: TemplateRef<unknown> | null;
207
+ onSearch: EventEmitter<string>;
208
+ selectOption: EventEmitter<AutoCompleteSelectEvent>;
209
+ items: any[];
210
+ minLengthToSearch: number;
211
+ delay: number;
212
+ basicInput: boolean;
213
+ constructor();
214
+ search(event: AutoCompleteCompleteEvent): void;
215
+ onSelect(event: AutoCompleteSelectEvent): void;
216
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, never>;
217
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "stc-auto-complete", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; "minLengthToSearch": { "alias": "minLengthToSearch"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; }, { "onSearch": "onSearch"; "selectOption": "selectOption"; }, never, never, true, never>;
218
+ }
219
+
220
+ interface LabelValue<T> {
221
+ label: string;
222
+ value: T | any;
223
+ }
224
+
225
+ declare class SelectButtonComponent extends BaseInputComponent {
226
+ onChange: EventEmitter<any>;
227
+ options: LabelValue<any>[];
228
+ title: string;
229
+ changeValue(e: SelectButtonChangeEvent): void;
230
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectButtonComponent, never>;
231
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectButtonComponent, "stc-select-button", never, { "options": { "alias": "options"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
232
+ }
233
+
234
+ declare class SwitchComponent {
235
+ label: string;
236
+ key: string;
237
+ checked: boolean;
238
+ onChange: EventEmitter<string>;
239
+ sendUpdatedValue(value: any): void;
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
241
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "stc-switch", never, { "label": { "alias": "label"; "required": false; }; "key": { "alias": "key"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
242
+ }
243
+
244
+ declare class FormUtils {
245
+ static getFormControl(controlName: string, form: FormGroup): FormControl;
246
+ }
247
+
248
+ declare enum BasicErrorKeysEnum {
249
+ required = "REQUIRED",
250
+ email = "EMAIL",
251
+ pattern = "PATTERN",
252
+ invalidArFormat = "INVALID_AR_FORMAT",
253
+ invalidLink = "INVALID_LINK",
254
+ endDateBeforeStartDate = "END_DATE_BEFORE_START_DATE",
255
+ startDateEqualsEndDate = "START_DATE_EQUALS_END_DATE",
256
+ endTimeBeforeStartTime = "END_TIME_BEFORE_START_TIME",
257
+ startTimeEqualsEndTime = "START_TIME_EQUALS_END_TIME",
258
+ integer = "INTEGER",
259
+ positiveNumber = "POSITIVE_NUMBER",
260
+ fileSelected = "FILE_SELECTED",
261
+ default = "DEFAULT"
262
+ }
263
+ declare enum ErrorsWithValuesKeysEnum {
264
+ minlength = "MIN_LENGTH",
265
+ maxlength = "MAX_LENGTH",
266
+ min = "MIN",
267
+ max = "MAX",
268
+ maxSize = "MAX_SIZE",
269
+ maxFiles = "MAX_FILES",
270
+ allowedTypes = "ALLOWED_TYPES"
271
+ }
272
+
273
+ declare class ValidationErrorsPipe implements PipeTransform {
274
+ private formValidationService;
275
+ transform(errors: ValidationErrors | null, allowedKeys?: string[]): string[];
276
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorsPipe, never>;
277
+ static ɵpipe: i0.ɵɵPipeDeclaration<ValidationErrorsPipe, "validationErrors", true>;
278
+ }
279
+
280
+ declare class FormValidationService {
281
+ private translate;
282
+ private getTranslation;
283
+ getErrorMessage(errorKey: string, errorValue: any): string;
284
+ private isBasicErrorKey;
285
+ private isErrorWithValueKey;
286
+ private getErrorWithValueMessage;
287
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormValidationService, never>;
288
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormValidationService>;
289
+ }
290
+
291
+ type InputType = "text" | "textarea";
292
+ type InputContentType = "text" | "email" | "password" | "number";
293
+ interface Dropdown<T = unknown> {
294
+ id?: string;
295
+ keyValue: T;
296
+ label: string;
297
+ hidden?: boolean;
298
+ disabled?: boolean;
299
+ }
300
+ interface InputsMapData {
301
+ label: string;
302
+ rowSize?: "half" | "full";
303
+ fieldType: FormFieldTypeEnum;
304
+ inputId?: string;
305
+ dateRange?: DateRangeInterface;
306
+ isTimeOnly?: boolean;
307
+ showIcon?: boolean;
308
+ selectButtonOptions?: LabelValue<any>[];
309
+ }
310
+ interface InputsMap {
311
+ [key: string]: InputsMapData;
312
+ }
313
+ interface DynamicFormData {
314
+ isActive?: boolean;
315
+ formGroup: FormGroup | null;
316
+ inputsMap: InputsMap | null;
317
+ title?: string;
318
+ isReadOnlyForm?: boolean;
319
+ formValidationErrorsKeys?: string[];
320
+ }
321
+ interface DateRangeInterface {
322
+ min?: Date | null;
323
+ max?: Date | null;
324
+ notBeforeDateInput?: string;
325
+ notAfterDateInput?: string;
326
+ notBeforeOrSameDateInput?: string;
327
+ notAfterOrSameDateInput?: string;
328
+ }
329
+ declare enum FormFieldTypeEnum {
330
+ DATE_PICKER = "date-picker",
331
+ SELECT_BUTTON = "select-button"
332
+ }
333
+
334
+ declare class ConfirmationDialogComponent implements OnInit, OnDestroy {
335
+ router: Router;
336
+ dialogService: DialogService;
337
+ dynamicDialogConfig: DynamicDialogConfig<any, any>;
338
+ private readonly _ref;
339
+ private readonly _subscription;
340
+ dialogFormData: DynamicFormData;
341
+ ngOnInit(): void;
342
+ ngOnDestroy(): void;
343
+ submit(): void;
344
+ close(): void;
345
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
346
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
347
+ }
348
+
349
+ declare class ReadMoreComponent {
350
+ text: string;
351
+ styleClass: string;
352
+ maxCharacters: number;
353
+ isExpanded: boolean;
354
+ toggleReadMore(): void;
355
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReadMoreComponent, never>;
356
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReadMoreComponent, "app-read-more", never, { "text": { "alias": "text"; "required": true; }; "styleClass": { "alias": "styleClass"; "required": false; }; "maxCharacters": { "alias": "maxCharacters"; "required": false; }; }, {}, never, never, true, never>;
357
+ }
358
+
359
+ declare class AppAccordionComponent {
360
+ iconName: string;
361
+ iconClass: string;
362
+ iconPathCount: number;
363
+ title: string;
364
+ contentBorderTop: boolean;
365
+ accordionPanelBorder: boolean;
366
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppAccordionComponent, never>;
367
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppAccordionComponent, "app-accordion", never, { "iconName": { "alias": "iconName"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "iconPathCount": { "alias": "iconPathCount"; "required": false; }; "title": { "alias": "title"; "required": true; }; "contentBorderTop": { "alias": "contentBorderTop"; "required": false; }; "accordionPanelBorder": { "alias": "accordionPanelBorder"; "required": false; }; }, {}, never, ["*"], true, never>;
368
+ }
369
+
370
+ declare class DynamicFormComponent implements OnInit {
371
+ dynamicFormData: DynamicFormData;
372
+ inputsNames: string[];
373
+ formGroup: FormGroup;
374
+ inputsMap: InputsMap;
375
+ readonly fieldType: typeof FormFieldTypeEnum;
376
+ getFormControl: typeof FormUtils.getFormControl;
377
+ ngOnInit(): void;
378
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
379
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "dynamicFormData": { "alias": "dynamicFormData"; "required": true; }; }, {}, never, never, true, never>;
380
+ }
381
+
382
+ declare class UserAutocompleteCardComponent {
383
+ select: EventEmitter<any>;
384
+ delete: EventEmitter<any>;
385
+ userData: any;
386
+ explicitRole: string;
387
+ showDeleteAction: boolean;
388
+ onDelete(): void;
389
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserAutocompleteCardComponent, never>;
390
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserAutocompleteCardComponent, "app-user-autocomplete-card", never, { "userData": { "alias": "userData"; "required": true; }; "explicitRole": { "alias": "explicitRole"; "required": false; }; "showDeleteAction": { "alias": "showDeleteAction"; "required": false; }; }, { "select": "select"; "delete": "delete"; }, never, never, true, never>;
391
+ }
392
+
393
+ export { AppAccordionComponent, AppButtonComponent, AppDropdownMenuComponent, AppTabsComponent, AutoCompleteComponent, BasicErrorKeysEnum, ConfirmationDialogComponent, DatePickerComponent, DynamicFormComponent, ErrorsWithValuesKeysEnum, FormFieldTypeEnum, FormUtils, FormValidationService, IcoMoonIconComponent, InputComponent, ReadMoreComponent, SelectButtonComponent, SelectComponent, SideBarComponent, SwitchComponent, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe };
394
+ export type { AppButtonIconPos, AppButtonSeverity, AppButtonSize, AppButtonVariant, AppTabs, DateRangeInterface, Dropdown, DropdownMenuItem, DropdownTextColor, DynamicFormData, InputContentType, InputType, InputsMap, InputsMapData, LabelValue, RoutedTab, TemplateTab };
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@corp-products/ui-components",
3
- "version": "1.0.3",
3
+ "version": "2.0.1",
4
4
  "author": "shireen Omar",
5
5
  "description": "shared UI components across our apps",
6
6
  "peerDependencies": {
7
- "@angular/common": ">=17.0.0 <20.0.0",
8
- "@angular/core": ">=17.0.0 <20.0.0",
9
- "primeng": ">=17.0.0 <19.0.0"
7
+ "@angular/common": ">=17.0.0 <21.0.0",
8
+ "@angular/core": ">=17.0.0 <21.0.0",
9
+ "@angular/animations": ">=17.0.0 <21.0.0",
10
+ "primeng": ">=17.0.0 <21.0.0",
11
+ "@ngx-translate/core": "^15.0.0"
10
12
  },
11
13
  "keywords": [
12
14
  "angular",
@@ -25,8 +27,6 @@
25
27
  },
26
28
  ".": {
27
29
  "types": "./index.d.ts",
28
- "esm2022": "./esm2022/corp-products-ui-components.mjs",
29
- "esm": "./esm2022/corp-products-ui-components.mjs",
30
30
  "default": "./fesm2022/corp-products-ui-components.mjs"
31
31
  }
32
32
  },
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29ycC1wcm9kdWN0cy11aS1jb21wb25lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy91aS1jb21wb25lbnRzL3NyYy9jb3JwLXByb2R1Y3RzLXVpLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
package/esm2022/index.mjs DELETED
@@ -1,14 +0,0 @@
1
- export * from './lib/app-button';
2
- export * from './lib/app-tabs';
3
- export * from './lib/app-dropdown-menu';
4
- export * from './lib/side-bar/side-bar.component';
5
- export * from './lib/ico-moon-icon/ico-moon-icon.component';
6
- export * from './lib/user-info/user-info.component';
7
- export * from './lib/confirmation-dialog/confirmation-dialog.component';
8
- export * from './lib/read-more/read-more.component';
9
- export * from './lib/app-accordion/app-accordion.component';
10
- export * from './lib/dynamic-form/dynamic-form.interface';
11
- export * from './lib/dynamic-form/dynamic-form.component';
12
- export * from './lib/form-components';
13
- export * from './lib/user-autocomplete-card/user-autocomplete-card.component';
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL3VpLWNvbXBvbmVudHMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsY0FBYyw2Q0FBNkMsQ0FBQztBQUM1RCxjQUFjLHFDQUFxQyxDQUFDO0FBQ3BELGNBQWMseURBQXlELENBQUM7QUFDeEUsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLDZDQUE2QyxDQUFDO0FBQzVELGNBQWMsMkNBQTJDLENBQUM7QUFDMUQsY0FBYywyQ0FBMkMsQ0FBQztBQUMxRCxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsK0RBQStELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9hcHAtYnV0dG9uJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvYXBwLXRhYnMnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9hcHAtZHJvcGRvd24tbWVudSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NpZGUtYmFyL3NpZGUtYmFyLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ljby1tb29uLWljb24vaWNvLW1vb24taWNvbi5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi91c2VyLWluZm8vdXNlci1pbmZvLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbmZpcm1hdGlvbi1kaWFsb2cvY29uZmlybWF0aW9uLWRpYWxvZy5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9yZWFkLW1vcmUvcmVhZC1tb3JlLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2FwcC1hY2NvcmRpb24vYXBwLWFjY29yZGlvbi5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9keW5hbWljLWZvcm0vZHluYW1pYy1mb3JtLmludGVyZmFjZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2R5bmFtaWMtZm9ybS9keW5hbWljLWZvcm0uY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvZm9ybS1jb21wb25lbnRzJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdXNlci1hdXRvY29tcGxldGUtY2FyZC91c2VyLWF1dG9jb21wbGV0ZS1jYXJkLmNvbXBvbmVudCc7XHJcbiJdfQ==
@@ -1,35 +0,0 @@
1
- import { Component, Input } from "@angular/core";
2
- import { CommonModule } from "@angular/common";
3
- import { IcoMoonIconComponent } from '../ico-moon-icon/ico-moon-icon.component';
4
- import { AccordionModule } from 'primeng/accordion';
5
- import { DividerModule } from 'primeng/divider';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@angular/common";
8
- import * as i2 from "primeng/accordion";
9
- export class AppAccordionComponent {
10
- constructor() {
11
- this.iconPathCount = 0;
12
- this.contentBorderTop = true;
13
- this.accordionPanelBorder = true;
14
- }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AppAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AppAccordionComponent, isStandalone: true, selector: "app-accordion", inputs: { iconName: "iconName", iconClass: "iconClass", iconPathCount: "iconPathCount", title: "title", contentBorderTop: "contentBorderTop", accordionPanelBorder: "accordionPanelBorder" }, ngImport: i0, template: "<p-accordion value=\"0\">\r\n <p-accordion-panel value=\"0\" [class.!border-0]=\"!accordionPanelBorder\">\r\n <p-accordion-header>\r\n <span class=\"flex items-center gap-2 w-full\">\r\n <app-ico-moon-card [iconClass]=\"'text-[24px] text-secondary'\" [iconName]=\"'font-icon-'+iconName\" />\r\n <span class=\"font-bold whitespace-nowrap\">{{title}}</span>\r\n </span>\r\n </p-accordion-header>\r\n <p-accordion-content>\r\n <div [ngClass]=\"{'border-t-2 border-gray-light pt-2': contentBorderTop, }\">\r\n <ng-content></ng-content>\r\n </div>\r\n </p-accordion-content>\r\n </p-accordion-panel>\r\n</p-accordion>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: DividerModule }, { kind: "ngmodule", type: AccordionModule }, { kind: "component", type: i2.Accordion, selector: "p-accordion", inputs: ["value", "multiple", "style", "styleClass", "expandIcon", "collapseIcon", "selectOnFocus", "transitionOptions", "activeIndex", "headerAriaLevel"], outputs: ["valueChange", "activeIndexChange", "onClose", "onOpen"] }, { kind: "component", type: i2.AccordionPanel, selector: "p-accordion-panel, p-accordionpanel", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: i2.AccordionHeader, selector: "p-accordion-header, p-accordionheader" }, { kind: "component", type: i2.AccordionContent, selector: "p-accordion-content, p-accordioncontent" }, { kind: "component", type: IcoMoonIconComponent, selector: "app-ico-moon-card", inputs: ["iconName", "iconClass", "iconPathCount"] }] }); }
17
- }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AppAccordionComponent, decorators: [{
19
- type: Component,
20
- args: [{ selector: "app-accordion", standalone: true, imports: [CommonModule, DividerModule, AccordionModule, IcoMoonIconComponent], template: "<p-accordion value=\"0\">\r\n <p-accordion-panel value=\"0\" [class.!border-0]=\"!accordionPanelBorder\">\r\n <p-accordion-header>\r\n <span class=\"flex items-center gap-2 w-full\">\r\n <app-ico-moon-card [iconClass]=\"'text-[24px] text-secondary'\" [iconName]=\"'font-icon-'+iconName\" />\r\n <span class=\"font-bold whitespace-nowrap\">{{title}}</span>\r\n </span>\r\n </p-accordion-header>\r\n <p-accordion-content>\r\n <div [ngClass]=\"{'border-t-2 border-gray-light pt-2': contentBorderTop, }\">\r\n <ng-content></ng-content>\r\n </div>\r\n </p-accordion-content>\r\n </p-accordion-panel>\r\n</p-accordion>\r\n" }]
21
- }], propDecorators: { iconName: [{
22
- type: Input
23
- }], iconClass: [{
24
- type: Input
25
- }], iconPathCount: [{
26
- type: Input
27
- }], title: [{
28
- type: Input,
29
- args: [{ required: true }]
30
- }], contentBorderTop: [{
31
- type: Input
32
- }], accordionPanelBorder: [{
33
- type: Input
34
- }] } });
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLWFjY29yZGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3VpLWNvbXBvbmVudHMvc3JjL2xpYi9hcHAtYWNjb3JkaW9uL2FwcC1hY2Nvcm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from '@angular/common';
2
- import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
3
- import { RouterModule } from '@angular/router';
4
- import { ButtonModule } from 'primeng/button';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "primeng/button";
7
- export class AppButtonComponent {
8
- constructor() {
9
- this.disabled = false;
10
- this.text = false;
11
- this.rounded = false;
12
- this.clickEmitter = new EventEmitter();
13
- }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AppButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AppButtonComponent, isStandalone: true, selector: "app-button", inputs: { title: "title", class: "class", icon: "icon", size: "size", style: "style", iconPos: "iconPos", variant: "variant", disabled: "disabled", text: "text", rounded: "rounded" }, outputs: { clickEmitter: "clickEmitter" }, ngImport: i0, template: "<p-button\r\n (click)=\"clickEmitter.emit()\"\r\n [class]=\"class\"\r\n [disabled]=\"disabled\"\r\n [iconPos]=\"iconPos\"\r\n [icon]=\"icon\"\r\n [label]=\"title\"\r\n [rounded]=\"rounded\"\r\n [severity]=\"style\"\r\n [styleClass]=\"'w-full'\"\r\n [text]=\"text\"\r\n [variant]=\"variant\">\r\n</p-button>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CommonModule }], encapsulation: i0.ViewEncapsulation.None }); }
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AppButtonComponent, decorators: [{
18
- type: Component,
19
- args: [{ imports: [RouterModule, ButtonModule, CommonModule], selector: 'app-button', standalone: true, encapsulation: ViewEncapsulation.None, template: "<p-button\r\n (click)=\"clickEmitter.emit()\"\r\n [class]=\"class\"\r\n [disabled]=\"disabled\"\r\n [iconPos]=\"iconPos\"\r\n [icon]=\"icon\"\r\n [label]=\"title\"\r\n [rounded]=\"rounded\"\r\n [severity]=\"style\"\r\n [styleClass]=\"'w-full'\"\r\n [text]=\"text\"\r\n [variant]=\"variant\">\r\n</p-button>\r\n" }]
20
- }], propDecorators: { title: [{
21
- type: Input
22
- }], class: [{
23
- type: Input
24
- }], icon: [{
25
- type: Input
26
- }], size: [{
27
- type: Input
28
- }], style: [{
29
- type: Input
30
- }], iconPos: [{
31
- type: Input
32
- }], variant: [{
33
- type: Input
34
- }], disabled: [{
35
- type: Input
36
- }], text: [{
37
- type: Input
38
- }], rounded: [{
39
- type: Input
40
- }], clickEmitter: [{
41
- type: Output
42
- }] } });
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3VpLWNvbXBvbmVudHMvc3JjL2xpYi9hcHAtYnV0dG9uL2FwcC1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS1jb21wb25lbnRzL3NyYy9saWIvYXBwLWJ1dHRvbi9hcHAtYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLGlCQUFpQixF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cidcclxuICB8ICdoZWxwJ1xyXG4gIHwgJ3ByaW1hcnknXHJcbiAgfCAnc2Vjb25kYXJ5J1xyXG4gIHwgJ2NvbnRyYXN0JztcclxuXHJcbmV4cG9ydCB0eXBlIEFwcEJ1dHRvblNpemUgPSAnbGFyZ2UnIHwgJ3NtYWxsJztcclxuXHJcbmV4cG9ydCB0eXBlIEFwcEJ1dHRvbkljb25Qb3MgPSAnbGVmdCcgfCAncmlnaHQnIHwgJ3RvcCcgfCAnYm90dG9tJztcclxuXHJcbmV4cG9ydCB0eXBlIEFwcEJ1dHRvblZhcmlhbnQgPSAnb3V0bGluZWQnIHwgJ3RleHQnIHwgdW5kZWZpbmVkO1xyXG4iXX0=
@@ -1,3 +0,0 @@
1
- export * from './app-button';
2
- export * from './app-button.component';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3VpLWNvbXBvbmVudHMvc3JjL2xpYi9hcHAtYnV0dG9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FwcC1idXR0b24nO1xyXG5leHBvcnQgKiBmcm9tICcuL2FwcC1idXR0b24uY29tcG9uZW50JztcclxuIl19