@aaamb/ngx-design-system 1.0.0 → 1.1.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/styles/selectors.css
CHANGED
|
@@ -100,3 +100,12 @@
|
|
|
100
100
|
.ant-select-selection-search-input {
|
|
101
101
|
height: 1.5rem !important;
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(
|
|
105
|
+
.ant-select-customize-input
|
|
106
|
+
):not(.ant-pagination-size-changer)
|
|
107
|
+
.ant-select-selector {
|
|
108
|
+
border-color: #f63d44 !important;
|
|
109
|
+
border-right-width: 1px;
|
|
110
|
+
background-color: #fef2f2 !important;
|
|
111
|
+
}
|
|
@@ -211,14 +211,24 @@ type AdsSingleSelectorOption = {
|
|
|
211
211
|
value: AdsSingleSelectorValue;
|
|
212
212
|
disabled?: boolean;
|
|
213
213
|
};
|
|
214
|
-
type
|
|
214
|
+
type AdsSingleSelectorOptionGroup = {
|
|
215
|
+
label: string;
|
|
216
|
+
children: AdsSingleSelectorOption[];
|
|
217
|
+
};
|
|
218
|
+
type AdsSingleSelectorOptionOrGroup = AdsSingleSelectorOption | AdsSingleSelectorOptionGroup;
|
|
219
|
+
type AdsSingleSelectorAsyncOptions = Promise<AdsSingleSelectorOptionOrGroup[]> | Observable<AdsSingleSelectorOptionOrGroup[]>;
|
|
215
220
|
type AdsMultipleSelectorValue = string | number;
|
|
216
221
|
type AdsMultipleSelectorOption = {
|
|
217
222
|
label: string;
|
|
218
223
|
value: AdsMultipleSelectorValue;
|
|
219
224
|
disabled?: boolean;
|
|
220
225
|
};
|
|
221
|
-
type
|
|
226
|
+
type AdsMultipleSelectorOptionGroup = {
|
|
227
|
+
label: string;
|
|
228
|
+
children: AdsMultipleSelectorOption[];
|
|
229
|
+
};
|
|
230
|
+
type AdsMultipleSelectorOptionOrGroup = AdsMultipleSelectorOption | AdsMultipleSelectorOptionGroup;
|
|
231
|
+
type AdsMultipleSelectorAsyncOptions = Promise<AdsMultipleSelectorOptionOrGroup[]> | Observable<AdsMultipleSelectorOptionOrGroup[]>;
|
|
222
232
|
type AdsSideNavFooterButton = {
|
|
223
233
|
icon: AdsIconName;
|
|
224
234
|
text: string;
|
|
@@ -441,6 +451,8 @@ declare class InputComponent implements ControlValueAccessor {
|
|
|
441
451
|
private scheduleTextAreaResize;
|
|
442
452
|
private resizeTextArea;
|
|
443
453
|
private sanitizeCardNumber;
|
|
454
|
+
private sanitizeNumericPreserveDot;
|
|
455
|
+
private sanitizeOutput;
|
|
444
456
|
detectPaymentCardBrand(value?: string): PaymentCardBrand;
|
|
445
457
|
paymentCardIconName(): AdsIconName;
|
|
446
458
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
@@ -731,6 +743,7 @@ declare class SideNavComponent {
|
|
|
731
743
|
isPathActive(path: string): boolean;
|
|
732
744
|
optionButtonClasses(option: AdsSideNavOption): string;
|
|
733
745
|
childButtonClasses(path: string, collapsed: boolean): string;
|
|
746
|
+
private isRouteActive;
|
|
734
747
|
private normalizeRoute;
|
|
735
748
|
private currentActivePath;
|
|
736
749
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SideNavComponent, never>;
|
|
@@ -743,9 +756,12 @@ declare class SingleSelectorComponent implements ControlValueAccessor {
|
|
|
743
756
|
disabled: _angular_core.InputSignal<boolean>;
|
|
744
757
|
allowClear: _angular_core.InputSignal<boolean>;
|
|
745
758
|
loading: _angular_core.InputSignal<boolean>;
|
|
746
|
-
options: _angular_core.InputSignal<
|
|
759
|
+
options: _angular_core.InputSignal<AdsSingleSelectorOptionOrGroup[]>;
|
|
747
760
|
asyncOptions: _angular_core.InputSignal<AdsSingleSelectorAsyncOptions>;
|
|
748
761
|
value: _angular_core.InputSignal<AdsSingleSelectorValue>;
|
|
762
|
+
errorMessage: _angular_core.InputSignal<string>;
|
|
763
|
+
labelIconName: _angular_core.InputSignal<"search" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "chart_bars" | "chart_grid" | "book" | "bookmark" | "branchs" | "building" | "calendar" | "calendar_check" | "chat" | "error" | "check" | "check_list" | "controller_frame" | "copy" | "delete" | "delete_trash" | "device_add" | "document" | "document_upload" | "download_rounded" | "edit" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "ia_agent" | "info" | "lightbulb" | "medical_user" | "menu_list" | "microphone" | "minus" | "move_down" | "open" | "paper_edit" | "pause" | "people" | "play" | "plus" | "queue_play" | "receipt" | "replay" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "warning" | "icon_card" | "mastercard" | "visa" | "amex" | "discover" | "dolar_sign">;
|
|
764
|
+
onLabelButtonClick: _angular_core.OutputEmitterRef<void>;
|
|
749
765
|
valueChange: _angular_core.OutputEmitterRef<AdsSingleSelectorValue>;
|
|
750
766
|
private cvaMode;
|
|
751
767
|
private cvaDisabled;
|
|
@@ -753,7 +769,7 @@ declare class SingleSelectorComponent implements ControlValueAccessor {
|
|
|
753
769
|
private optionsSubscription;
|
|
754
770
|
private asyncRequestId;
|
|
755
771
|
currentValue: _angular_core.WritableSignal<AdsSingleSelectorValue>;
|
|
756
|
-
resolvedOptions: _angular_core.WritableSignal<
|
|
772
|
+
resolvedOptions: _angular_core.WritableSignal<AdsSingleSelectorOptionOrGroup[]>;
|
|
757
773
|
private onChange;
|
|
758
774
|
private onTouched;
|
|
759
775
|
readonly filterOption: NzFilterOptionType;
|
|
@@ -772,8 +788,13 @@ declare class SingleSelectorComponent implements ControlValueAccessor {
|
|
|
772
788
|
private finishAsyncOptionsRequest;
|
|
773
789
|
private cancelAsyncOptionsSubscription;
|
|
774
790
|
private isPromise;
|
|
791
|
+
onLabelClicked(): void;
|
|
792
|
+
isOptionGroup(item: AdsSingleSelectorOptionOrGroup): item is {
|
|
793
|
+
label: string;
|
|
794
|
+
children: AdsSingleSelectorOption[];
|
|
795
|
+
};
|
|
775
796
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SingleSelectorComponent, never>;
|
|
776
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SingleSelectorComponent, "ads-single-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
797
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SingleSelectorComponent, "ads-single-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "labelIconName": { "alias": "labelIconName"; "required": false; "isSignal": true; }; }, { "onLabelButtonClick": "onLabelButtonClick"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
777
798
|
}
|
|
778
799
|
|
|
779
800
|
declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestroy {
|
|
@@ -782,11 +803,14 @@ declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestr
|
|
|
782
803
|
disabled: _angular_core.InputSignal<boolean>;
|
|
783
804
|
allowClear: _angular_core.InputSignal<boolean>;
|
|
784
805
|
loading: _angular_core.InputSignal<boolean>;
|
|
785
|
-
options: _angular_core.InputSignal<
|
|
806
|
+
options: _angular_core.InputSignal<AdsMultipleSelectorOptionOrGroup[]>;
|
|
786
807
|
asyncOptions: _angular_core.InputSignal<AdsMultipleSelectorAsyncOptions>;
|
|
787
808
|
value: _angular_core.InputSignal<AdsMultipleSelectorValue[]>;
|
|
788
809
|
itemName: _angular_core.InputSignal<string>;
|
|
789
810
|
pluralItemName: _angular_core.InputSignal<string>;
|
|
811
|
+
errorMessage: _angular_core.InputSignal<string>;
|
|
812
|
+
labelIconName: _angular_core.InputSignal<"search" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "chart_bars" | "chart_grid" | "book" | "bookmark" | "branchs" | "building" | "calendar" | "calendar_check" | "chat" | "error" | "check" | "check_list" | "controller_frame" | "copy" | "delete" | "delete_trash" | "device_add" | "document" | "document_upload" | "download_rounded" | "edit" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "ia_agent" | "info" | "lightbulb" | "medical_user" | "menu_list" | "microphone" | "minus" | "move_down" | "open" | "paper_edit" | "pause" | "people" | "play" | "plus" | "queue_play" | "receipt" | "replay" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "warning" | "icon_card" | "mastercard" | "visa" | "amex" | "discover" | "dolar_sign">;
|
|
813
|
+
onLabelButtonClick: _angular_core.OutputEmitterRef<void>;
|
|
790
814
|
valueChange: _angular_core.OutputEmitterRef<AdsMultipleSelectorValue[]>;
|
|
791
815
|
private cvaMode;
|
|
792
816
|
private cvaDisabled;
|
|
@@ -795,7 +819,7 @@ declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestr
|
|
|
795
819
|
private asyncRequestId;
|
|
796
820
|
private baseOptions;
|
|
797
821
|
currentValue: _angular_core.WritableSignal<AdsMultipleSelectorValue[]>;
|
|
798
|
-
resolvedOptions: _angular_core.WritableSignal<
|
|
822
|
+
resolvedOptions: _angular_core.WritableSignal<AdsMultipleSelectorOptionOrGroup[]>;
|
|
799
823
|
private onChange;
|
|
800
824
|
private onTouched;
|
|
801
825
|
readonly filterOption: NzFilterOptionType;
|
|
@@ -817,8 +841,13 @@ declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestr
|
|
|
817
841
|
private normalizeValues;
|
|
818
842
|
private cancelAsyncOptionsSubscription;
|
|
819
843
|
private isPromise;
|
|
844
|
+
onLabelClicked(): void;
|
|
845
|
+
isOptionGroup(item: AdsMultipleSelectorOptionOrGroup): item is {
|
|
846
|
+
label: string;
|
|
847
|
+
children: AdsMultipleSelectorOption[];
|
|
848
|
+
};
|
|
820
849
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultipleSelectorComponent, never>;
|
|
821
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultipleSelectorComponent, "ads-multiple-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "itemName": { "alias": "itemName"; "required": false; "isSignal": true; }; "pluralItemName": { "alias": "pluralItemName"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
850
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultipleSelectorComponent, "ads-multiple-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "itemName": { "alias": "itemName"; "required": false; "isSignal": true; }; "pluralItemName": { "alias": "pluralItemName"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "labelIconName": { "alias": "labelIconName"; "required": false; "isSignal": true; }; }, { "onLabelButtonClick": "onLabelButtonClick"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
822
851
|
}
|
|
823
852
|
|
|
824
853
|
declare class MainModalComponent {
|
|
@@ -1045,4 +1074,4 @@ declare class TableComponent {
|
|
|
1045
1074
|
}
|
|
1046
1075
|
|
|
1047
1076
|
export { ButtonComponent, CheckboxComponent, DatepickerSelectorComponent, DelicateConfirmationModalComponent, FeedbackModalComponent, FilterButtonComponent, HelpModalComponent, ICONS, IconComponent, InformationModalComponent, InputComponent, InputDatepickerComponent, InputRangepickerComponent, MainModalComponent, MultipleSelectorComponent, NotificationModalComponent, SideNavComponent, SingleSelectorComponent, SnackbarComponent, StateComponent, TableComponent, TabsComponent, containerShapes, stateBackgroundColors, stateBorderColors, stateTextColors };
|
|
1048
|
-
export type { AdsButtonColor, AdsButtonType, AdsButtonVariant, AdsCheckboxAppearance, AdsCheckboxLabelColor, AdsCheckboxLabelPosition, AdsFilterButtonOption, AdsFilterButtonRow, AdsFilterButtonSortDirection, AdsFilterButtonSortRow, AdsFilterButtonValueType, AdsIconName, AdsInputType, AdsMainModalAction, AdsMainModalActionsAlign, AdsMultipleSelectorAsyncOptions, AdsMultipleSelectorOption, AdsMultipleSelectorValue, AdsSideNavChildOption, AdsSideNavFooterButton, AdsSideNavOption, AdsSideNavRoute, AdsSingleSelectorAsyncOptions, AdsSingleSelectorOption, AdsSingleSelectorValue, FeedbackPayload, FeedbackResponseType, PaymentCardBrand, PickerMode, PickerOption, SnackbarAlert, SnackbarAlertType, StoryTable, StoryTableCell, StoryTableCellContext, StoryTableColumn, StoryTableHeader, StoryTableRow, StoryTableRowData, Tab, TableActionButton, TableDragDropEvent, TablePropertyType, TableSortCriterion, TableSortDirection, TableStateStyle, TableStateStylesMap };
|
|
1077
|
+
export type { AdsButtonColor, AdsButtonType, AdsButtonVariant, AdsCheckboxAppearance, AdsCheckboxLabelColor, AdsCheckboxLabelPosition, AdsFilterButtonOption, AdsFilterButtonRow, AdsFilterButtonSortDirection, AdsFilterButtonSortRow, AdsFilterButtonValueType, AdsIconName, AdsInputType, AdsMainModalAction, AdsMainModalActionsAlign, AdsMultipleSelectorAsyncOptions, AdsMultipleSelectorOption, AdsMultipleSelectorOptionGroup, AdsMultipleSelectorOptionOrGroup, AdsMultipleSelectorValue, AdsSideNavChildOption, AdsSideNavFooterButton, AdsSideNavOption, AdsSideNavRoute, AdsSingleSelectorAsyncOptions, AdsSingleSelectorOption, AdsSingleSelectorOptionGroup, AdsSingleSelectorOptionOrGroup, AdsSingleSelectorValue, FeedbackPayload, FeedbackResponseType, PaymentCardBrand, PickerMode, PickerOption, SnackbarAlert, SnackbarAlertType, StoryTable, StoryTableCell, StoryTableCellContext, StoryTableColumn, StoryTableHeader, StoryTableRow, StoryTableRowData, Tab, TableActionButton, TableDragDropEvent, TablePropertyType, TableSortCriterion, TableSortDirection, TableStateStyle, TableStateStylesMap };
|