@ardium-ui/ui 5.0.0-alpha.9 → 5.0.0-alpha.91
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/ardium-ui-ui.mjs +5065 -2572
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/boolean-component.d.ts +13 -1
- package/lib/_internal/disablable-component.d.ts +2 -1
- package/lib/_internal/focusable-component.d.ts +2 -1
- package/lib/_internal/form-field-component.d.ts +3 -2
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +21 -21
- package/lib/_internal/item-storages/simple-item-storage.d.ts +15 -12
- package/lib/_internal/item-storages/simplest-item-storage.d.ts +1 -1
- package/lib/_internal/ngmodel-component.d.ts +8 -9
- package/lib/_internal/selectable-list-component.d.ts +6 -6
- package/lib/_internal/utils/date.utils.d.ts +16 -0
- package/lib/badge/badge.directive.d.ts +3 -2
- package/lib/breakpoints/breakpoint.service.d.ts +12 -0
- package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
- package/lib/breakpoints/breakpoints.d.ts +13 -0
- package/lib/breakpoints/index.d.ts +2 -0
- package/lib/buttons/_button-base.d.ts +12 -8
- package/lib/buttons/_button-base.defaults.d.ts +3 -2
- package/lib/buttons/button/button.component.d.ts +5 -5
- package/lib/buttons/button/button.defaults.d.ts +0 -2
- package/lib/buttons/button/button.directive.d.ts +17 -0
- package/lib/buttons/button/button.module.d.ts +3 -2
- package/lib/buttons/button/index.d.ts +1 -0
- package/lib/buttons/fab/fab.component.d.ts +3 -1
- package/lib/buttons/icon-button/icon-button.component.d.ts +6 -4
- package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
- package/lib/calendar/abstract-calendar.d.ts +128 -0
- package/lib/calendar/calendar.component.d.ts +8 -96
- package/lib/calendar/calendar.defaults.d.ts +16 -1
- package/lib/calendar/calendar.internal-directives.d.ts +24 -8
- package/lib/calendar/calendar.internal-types.d.ts +1 -0
- package/lib/calendar/calendar.module.d.ts +4 -9
- package/lib/calendar/calendar.types.d.ts +21 -5
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/range-calendar.component.d.ts +16 -0
- package/lib/calendar/range-calendar.directives.d.ts +51 -0
- package/lib/calendar/range-calendar.module.d.ts +10 -0
- package/lib/calendar/views/calendar-views.module.d.ts +13 -0
- package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
- package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
- package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
- package/lib/calendar/views/years-view/years-view.component.d.ts +16 -3
- package/lib/checkbox/checkbox.component.d.ts +5 -2
- package/lib/checkbox/checkbox.types.d.ts +2 -0
- package/lib/checkbox-list/checkbox-list.component.d.ts +9 -7
- package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
- package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
- package/lib/chip/chip.component.d.ts +2 -1
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +5 -2
- package/lib/dialog/dialog.component.d.ts +13 -8
- package/lib/dialog/dialog.types.d.ts +1 -0
- package/lib/divider/divider.component.d.ts +2 -3
- package/lib/divider/divider.defaults.d.ts +5 -0
- package/lib/divider/divider.directive.d.ts +18 -0
- package/lib/divider/divider.module.d.ts +3 -2
- package/lib/divider/divider.types.d.ts +5 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
- package/lib/dropdown-panel/dropdown-panel.types.d.ts +1 -1
- package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
- package/lib/file-inputs/file-input-base.d.ts +4 -5
- package/lib/form-field/auto-error/auto-error.component.d.ts +19 -0
- package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
- package/lib/form-field/error/error.directive.d.ts +3 -2
- package/lib/form-field/form-field-base.d.ts +5 -2
- package/lib/form-field/form-field-child.token.d.ts +5 -5
- package/lib/form-field/form-field-native-inputs.d.ts +6 -11
- package/lib/form-field/form-field.component.d.ts +1 -1
- package/lib/form-field/form-field.defaults.d.ts +1 -0
- package/lib/form-field/form-field.module.d.ts +5 -4
- package/lib/form-field/hint/hint.directive.d.ts +3 -2
- package/lib/form-field/hint-error/hint-error.directive.d.ts +3 -2
- package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +2 -0
- package/lib/form-field/label/label.component.d.ts +3 -2
- package/lib/form-field-frame/form-field-frame.component.d.ts +5 -3
- package/lib/grid/grid.component.d.ts +51 -0
- package/lib/grid/grid.defaults.d.ts +16 -0
- package/lib/grid/grid.module.d.ts +7 -0
- package/lib/grid/grid.types.d.ts +38 -0
- package/lib/grid/grid.utils.d.ts +11 -0
- package/lib/grid/index.d.ts +4 -0
- package/lib/icon/icon.component.d.ts +2 -1
- package/lib/inputs/_simple-input-base.d.ts +9 -4
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
- package/lib/inputs/date-input/abstract-date-input.d.ts +110 -0
- package/lib/inputs/date-input/date-input.component.d.ts +19 -81
- package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
- package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
- package/lib/inputs/date-input/date-input.module.d.ts +5 -4
- package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
- package/lib/inputs/date-input/date-input.types.d.ts +5 -4
- package/lib/inputs/date-input/date-range-input.component.d.ts +30 -0
- package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
- package/lib/inputs/date-input/index.d.ts +7 -1
- package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +45 -0
- package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
- package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
- package/lib/inputs/hex-input/hex-input.component.d.ts +5 -5
- package/lib/inputs/input-types.d.ts +9 -0
- package/lib/inputs/input-utils.d.ts +13 -2
- package/lib/inputs/number-input/number-input.component.d.ts +20 -13
- package/lib/inputs/number-input/number-input.defaults.d.ts +6 -0
- package/lib/inputs/number-input/number-input.directives.d.ts +12 -0
- package/lib/inputs/number-input/number-input.module.d.ts +1 -1
- package/lib/inputs/number-input/number-input.types.d.ts +6 -0
- package/lib/inputs/password-input/password-input.component.d.ts +6 -5
- package/lib/kbd/kbd.component.d.ts +2 -1
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
- package/lib/modal/modal.component.d.ts +9 -6
- package/lib/modal/modal.defaults.d.ts +2 -0
- package/lib/option/option.component.d.ts +2 -1
- package/lib/progress-bar/progress-bar.component.d.ts +4 -3
- package/lib/progress-circle/progress-circle.component.d.ts +5 -4
- package/lib/radio/radio/radio.component.d.ts +8 -3
- package/lib/radio/radio-group.component.d.ts +2 -2
- package/lib/search-functions.d.ts +1 -1
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +45 -39
- package/lib/select/select.defaults.d.ts +4 -2
- package/lib/select/select.directive.d.ts +6 -0
- package/lib/select/select.module.d.ts +1 -1
- package/lib/select/select.types.d.ts +6 -2
- package/lib/slide-toggle/slide-toggle.component.d.ts +2 -0
- package/lib/slider/abstract-slider.d.ts +37 -29
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/range-slider/range-slider.component.d.ts +12 -9
- package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
- package/lib/slider/slider.component.d.ts +5 -4
- package/lib/slider/slider.types.d.ts +3 -3
- package/lib/snackbar/snackbar-ref.d.ts +37 -4
- package/lib/snackbar/snackbar.service.d.ts +27 -0
- package/lib/snackbar/snackbar.types.d.ts +36 -0
- package/lib/star/rating-display/rating-display.component.d.ts +2 -1
- package/lib/star/rating-input/rating-input.component.d.ts +5 -3
- package/lib/star/rating-input/rating-input.defaults.d.ts +2 -2
- package/lib/star/star-button/star-button.component.d.ts +4 -1
- package/lib/star/star-button/star-button.types.d.ts +1 -0
- package/lib/tabber/index.d.ts +2 -1
- package/lib/tabber/tab/tab.component.d.ts +16 -8
- package/lib/tabber/tabber.component.d.ts +25 -9
- package/lib/tabber/tabber.defaults.d.ts +2 -0
- package/lib/tabber/tabber.directives.d.ts +9 -0
- package/lib/tabber/tabber.module.d.ts +3 -2
- package/lib/tabber/tabber.types.d.ts +5 -0
- package/lib/table/table.component.d.ts +16 -15
- package/lib/table-pagination/table-pagination.component.d.ts +4 -3
- package/lib/text-list/text-list.component.d.ts +2 -1
- package/lib/types/alignment.types.d.ts +7 -1
- package/lib/types/item-storage.types.d.ts +29 -18
- package/lib/types/theming.types.d.ts +1 -0
- package/package.json +3 -2
- package/prebuilt-themes/default/badge.css +234 -205
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css +324 -301
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +317 -299
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +299 -287
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +390 -308
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css +151 -127
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +89 -62
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +349 -362
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +412 -359
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +34 -26
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/color-picker.css +105 -103
- package/prebuilt-themes/default/color-picker.css.map +1 -1
- package/prebuilt-themes/default/core.css +108 -86
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +19 -15
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css +84 -8
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +42 -34
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +329 -276
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +102 -98
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +148 -118
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -132
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +99 -137
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +132 -63
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +120 -110
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +385 -325
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +150 -117
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +137 -107
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +214 -164
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +120 -71
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +14 -9
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +26 -15
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +96 -71
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-bar.css +250 -228
- package/prebuilt-themes/default/progress-bar.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +178 -164
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +246 -223
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +432 -414
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +302 -270
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +319 -261
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +399 -351
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +189 -169
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +161 -148
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +271 -246
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +250 -207
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css +57 -45
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +464 -432
- package/prebuilt-themes/default/table.css.map +1 -1
- package/public-api.d.ts +2 -1
- package/themes/_variables.scss +2 -1
- package/themes/default/_coloring.scss +7 -0
- package/themes/default/_mixins.scss +5 -5
- package/themes/default/badge.scss +115 -80
- package/themes/default/buttons/_button-mixins.scss +43 -33
- package/themes/default/buttons/button.scss +90 -63
- package/themes/default/buttons/fab.scss +74 -49
- package/themes/default/buttons/icon-button.scss +70 -45
- package/themes/default/calendar.scss +257 -163
- package/themes/default/card.scss +167 -121
- package/themes/default/checkbox-list.scss +90 -62
- package/themes/default/checkbox.scss +64 -91
- package/themes/default/chips.scss +203 -143
- package/themes/default/color-display.scss +40 -28
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +123 -97
- package/themes/default/dialog.scss +22 -13
- package/themes/default/divider.scss +109 -7
- package/themes/default/dropdown-panel.scss +49 -34
- package/themes/default/file-drop-area.scss +197 -138
- package/themes/default/form-field-frame.scss +73 -63
- package/themes/default/form-field.scss +136 -98
- package/themes/default/inputs/_shared.scss +52 -12
- package/themes/default/inputs/autocomplete-input.scss +102 -31
- package/themes/default/inputs/color-input.scss +34 -32
- package/themes/default/inputs/date-input.scss +88 -20
- package/themes/default/inputs/digit-input.scss +103 -79
- package/themes/default/inputs/file-input.scss +160 -81
- package/themes/default/inputs/hex-input.scss +68 -16
- package/themes/default/inputs/input.scss +55 -6
- package/themes/default/inputs/number-input.scss +167 -92
- package/themes/default/inputs/password-input.scss +100 -29
- package/themes/default/kbd-shortcut.scss +16 -8
- package/themes/default/kbd.scss +35 -16
- package/themes/default/modal.scss +109 -73
- package/themes/default/progress-bar.scss +126 -102
- package/themes/default/progress-circle.scss +49 -41
- package/themes/default/radio.scss +110 -87
- package/themes/default/segment.scss +282 -267
- package/themes/default/select.scss +255 -197
- package/themes/default/slide-toggle.scss +193 -116
- package/themes/default/slider.scss +230 -187
- package/themes/default/snackbar.scss +52 -32
- package/themes/default/spinner.scss +24 -14
- package/themes/default/stars.scss +99 -68
- package/themes/default/tabber.scss +109 -67
- package/themes/default/table-pagination.scss +60 -44
- package/themes/default/table.scss +379 -343
- package/lib/statebox/index.d.ts +0 -4
- package/lib/statebox/statebox.component.d.ts +0 -26
- package/lib/statebox/statebox.defaults.d.ts +0 -10
- package/lib/statebox/statebox.module.d.ts +0 -8
- package/lib/statebox/statebox.types.d.ts +0 -26
- package/lib/tabber/tab/tab.defaults.d.ts +0 -6
- package/prebuilt-themes/default/calendar-OLD.css +0 -294
- package/prebuilt-themes/default/calendar-OLD.css.map +0 -1
- package/prebuilt-themes/default/inputs/search-bar.css +0 -118
- package/prebuilt-themes/default/inputs/search-bar.css.map +0 -1
- package/prebuilt-themes/default/statebox.css +0 -235
- package/prebuilt-themes/default/statebox.css.map +0 -1
- package/themes/default/calendar-OLD.scss +0 -183
- package/themes/default/inputs/search-bar.scss +0 -19
- package/themes/default/statebox.scss +0 -109
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
3
|
import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface _BooleanComponentDefaults extends _NgModelComponentDefaults {
|
|
6
|
+
reverseSelected: boolean;
|
|
5
7
|
}
|
|
6
8
|
export declare const _booleanComponentDefaults: _BooleanComponentDefaults;
|
|
7
9
|
/**
|
|
@@ -9,6 +11,8 @@ export declare const _booleanComponentDefaults: _BooleanComponentDefaults;
|
|
|
9
11
|
*/
|
|
10
12
|
export declare abstract class _BooleanComponentBase extends _NgModelComponentBase implements ControlValueAccessor {
|
|
11
13
|
protected readonly _DEFAULTS: _BooleanComponentDefaults;
|
|
14
|
+
protected abstract readonly _componentId: string;
|
|
15
|
+
protected abstract readonly _componentName: string;
|
|
12
16
|
writeValue(v: any): void;
|
|
13
17
|
/**
|
|
14
18
|
* Emits all select-state-related events.
|
|
@@ -36,6 +40,14 @@ export declare abstract class _BooleanComponentBase extends _NgModelComponentBas
|
|
|
36
40
|
* The event emitter responsible for firing `selectedChange` events. Fired when the `selected` state is changed.
|
|
37
41
|
*/
|
|
38
42
|
readonly selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* The reverse of the `selected` state. Coercible into a boolean. Useful for cases where the "selected" state is semantically reversed, e.g. "disabled".
|
|
45
|
+
*/
|
|
46
|
+
readonly reverseSelected: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
47
|
+
/**
|
|
48
|
+
* The "selected" state, accounting for the `reverseSelected` input.
|
|
49
|
+
*/
|
|
50
|
+
readonly selectedAccountingForReverse: import("@angular/core").Signal<boolean>;
|
|
39
51
|
/**
|
|
40
52
|
* Toggles the selected state. Emits all appropriate events.
|
|
41
53
|
*/
|
|
@@ -49,5 +61,5 @@ export declare abstract class _BooleanComponentBase extends _NgModelComponentBas
|
|
|
49
61
|
*/
|
|
50
62
|
unselect(): void;
|
|
51
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<_BooleanComponentBase, never>;
|
|
52
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_BooleanComponentBase, never, never, { "_selected": { "alias": "selected"; "required": false; }; }, { "selectEvent": "select"; "unselectEvent": "unselect"; "changeEvent": "change"; "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
64
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_BooleanComponentBase, never, never, { "_selected": { "alias": "selected"; "required": false; }; "reverseSelected": { "alias": "reverseSelected"; "required": false; "isSignal": true; }; }, { "selectEvent": "select"; "unselectEvent": "unselect"; "changeEvent": "change"; "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
53
65
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export interface _DisablableComponentDefaults {
|
|
3
4
|
readonly: boolean;
|
|
@@ -10,7 +11,7 @@ export declare abstract class _DisablableComponentBase {
|
|
|
10
11
|
/**
|
|
11
12
|
* Whether the component is read-only. Defines the `readonly` host attribute and `ard-readonly` host class. Coercible into a boolean.
|
|
12
13
|
*/
|
|
13
|
-
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean,
|
|
14
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
14
15
|
/**
|
|
15
16
|
* Whether the component is disabled. Defines the `disabled` host attribute and `ard-disabled` host class. Coercible into a boolean.
|
|
16
17
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NumberLike } from '@ardium-ui/devkit';
|
|
1
2
|
import { _DisablableComponentBase, _DisablableComponentDefaults } from './disablable-component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface _FocusableComponentDefaults extends _DisablableComponentDefaults {
|
|
@@ -27,7 +28,7 @@ export declare abstract class _FocusableComponentBase extends _DisablableCompone
|
|
|
27
28
|
* The component's overall tab index. If the component is disabled, it is always `-1`. Coercible into a number, defaults to `0`.
|
|
28
29
|
*/
|
|
29
30
|
readonly tabIndex: import("@angular/core").Signal<number>;
|
|
30
|
-
readonly _tabIndex: import("@angular/core").InputSignalWithTransform<number,
|
|
31
|
+
readonly _tabIndex: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
31
32
|
/**
|
|
32
33
|
* The event emitter responsible for firing `focus` events.
|
|
33
34
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
3
|
import { ArdFormFieldControl } from '../form-field/form-field-child.token';
|
|
3
4
|
import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -14,8 +15,8 @@ export declare const _formFieldComponentDefaults: _FormFieldComponentDefaults;
|
|
|
14
15
|
export declare abstract class _FormFieldComponentBase extends _NgModelComponentBase implements ControlValueAccessor, ArdFormFieldControl {
|
|
15
16
|
protected readonly _DEFAULTS: _FormFieldComponentDefaults;
|
|
16
17
|
readonly _required: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
|
|
17
|
-
|
|
18
|
-
readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean,
|
|
18
|
+
readonly required: import("@angular/core").Signal<boolean>;
|
|
19
|
+
readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<_FormFieldComponentBase, never>;
|
|
20
21
|
static ɵdir: i0.ɵɵDirectiveDeclaration<_FormFieldComponentBase, never, never, { "_required": { "alias": "required"; "required": false; "isSignal": true; }; "isSuccess": { "alias": "isSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { AddCustomFn } from '../../select/select.types';
|
|
3
4
|
import { ArdOption, ArdOptionGroup, CompareWithFn, GroupByFn, SearchFn } from '../../types/item-storage.types';
|
|
4
5
|
import { Nullable } from '../../types/utility.types';
|
|
@@ -12,56 +13,57 @@ export interface ItemStorageHost {
|
|
|
12
13
|
readonly childrenFrom: Signal<string>;
|
|
13
14
|
readonly itemsAlreadyGrouped: Signal<Nullable<boolean>>;
|
|
14
15
|
readonly hideSelected: Signal<boolean>;
|
|
16
|
+
readonly deferValueWrites: Signal<boolean>;
|
|
15
17
|
readonly searchCaseSensitive: Signal<boolean>;
|
|
16
|
-
readonly searchFn: Signal<SearchFn>;
|
|
18
|
+
readonly searchFn: Signal<SearchFn | null>;
|
|
17
19
|
readonly compareWith: Signal<Nullable<CompareWithFn>>;
|
|
18
20
|
readonly multiselectable: Signal<boolean>;
|
|
19
|
-
readonly sortMultipleValues: Signal<boolean>;
|
|
20
21
|
readonly maxSelectedItems: Signal<Nullable<number>>;
|
|
21
22
|
readonly addCustom: Signal<boolean | AddCustomFn<any> | AddCustomFn<Promise<any>>>;
|
|
22
23
|
readonly _componentId: string;
|
|
23
24
|
}
|
|
24
25
|
export declare class ItemStorage {
|
|
25
26
|
private readonly _ardParentComp;
|
|
26
|
-
private readonly _groups;
|
|
27
27
|
private readonly _items;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
readonly filteredItems: Signal<ArdOption[]>;
|
|
29
|
+
readonly selectedItems: Signal<ArdOption[]>;
|
|
30
|
+
readonly highlightedItems: Signal<ArdOption[]>;
|
|
31
|
+
private readonly _lastHighlightedItem;
|
|
31
32
|
private readonly _recentlyHighlightedItem;
|
|
32
|
-
private readonly
|
|
33
|
+
private readonly _groups;
|
|
34
|
+
private _updateItems;
|
|
35
|
+
private _updateItemsFromArray;
|
|
33
36
|
constructor(_ardParentComp: ItemStorageHost);
|
|
34
37
|
readonly groups: Signal<ArdOptionGroup[]>;
|
|
35
38
|
readonly items: Signal<ArdOption[]>;
|
|
36
|
-
readonly filteredItems: Signal<ArdOption[]>;
|
|
37
|
-
readonly highlightedItems: Signal<ArdOption[]>;
|
|
38
|
-
readonly selectedItems: Signal<ArdOption[]>;
|
|
39
39
|
readonly lastSelectedItem: Signal<ArdOption>;
|
|
40
40
|
readonly value: Signal<any[]>;
|
|
41
41
|
private _itemsToValue;
|
|
42
42
|
readonly isNoItemsToSelect: Signal<boolean>;
|
|
43
43
|
readonly isNoItemsFound: Signal<boolean>;
|
|
44
|
+
readonly isAnyItemExactMatch: Signal<boolean>;
|
|
44
45
|
readonly isAnyItemSelected: Signal<boolean>;
|
|
45
46
|
readonly isAnyItemHighlighted: Signal<boolean>;
|
|
47
|
+
readonly itemsLeftUntilLimit: Signal<number>;
|
|
46
48
|
readonly isItemLimitReached: Signal<boolean>;
|
|
49
|
+
private readonly _highlightableItems;
|
|
47
50
|
setItems(items: any[]): void;
|
|
51
|
+
updateItemFromOptionComponent(itemValue: any, updatedItem: Partial<ArdOption>): void;
|
|
48
52
|
private _addSingleItem;
|
|
49
53
|
private _primitiveItemsMapFn;
|
|
50
54
|
private _ungroupAlreadyGroupedItems;
|
|
51
55
|
private _setItemsMapFn;
|
|
52
|
-
private _populateGroups;
|
|
53
|
-
private _addToGroup;
|
|
54
56
|
private _createEmptyGroupMap;
|
|
55
57
|
private _isWriteValueValid;
|
|
56
|
-
private
|
|
57
|
-
|
|
58
|
-
handleWriteValue(ngModel: any[]): void;
|
|
58
|
+
private _valueToWriteAfterItemsLoad;
|
|
59
|
+
handleWriteValue(ngModel: any): Promise<void>;
|
|
59
60
|
findItemByValue(valueToFind: any): ArdOption | undefined;
|
|
60
|
-
addCustomOption(value: string, fn: AddCustomFn<any> | AddCustomFn<Promise<any>>): Promise<ArdOption | null>;
|
|
61
|
-
clearAllSelected(
|
|
61
|
+
addCustomOption(value: string, fn: AddCustomFn<any> | AddCustomFn<Promise<any>> | AddCustomFn<Observable<any>>): Promise<ArdOption | null>;
|
|
62
|
+
clearAllSelected(): any[];
|
|
62
63
|
clearLastSelected(): ArdOption;
|
|
63
64
|
selectItem(...items: ArdOption[]): [any[], any[], any[]];
|
|
64
65
|
unselectItem(...items: ArdOption[]): any[];
|
|
66
|
+
toggleItem(item: ArdOption): void;
|
|
65
67
|
clearAllHighlights(): void;
|
|
66
68
|
highlightGroup(group: ArdOptionGroup): ArdOption;
|
|
67
69
|
highlightSingleItem(item: ArdOption): ArdOption | null;
|
|
@@ -69,11 +71,9 @@ export declare class ItemStorage {
|
|
|
69
71
|
unhighlightItem(...items: ArdOption[]): void;
|
|
70
72
|
highlightFirstItem(): ArdOption | null;
|
|
71
73
|
highlightLastItem(): ArdOption | null;
|
|
72
|
-
private _getHiglightableItems;
|
|
73
74
|
highlightAllItems(): void;
|
|
74
|
-
|
|
75
|
-
setRecentlyHighlighted(item: ArdOption): void;
|
|
75
|
+
setRecentlyHighlighted(itemToSet: ArdOption): void;
|
|
76
76
|
highlightNextItem(offset: number, hasShift?: boolean): ArdOption | null;
|
|
77
|
-
filter(filterTerm: string):
|
|
77
|
+
filter(filterTerm: string): void;
|
|
78
78
|
resetFiltered(): ArdOption[];
|
|
79
79
|
}
|
|
@@ -22,21 +22,19 @@ export interface SimpleItemStorageHost {
|
|
|
22
22
|
export declare class SimpleItemStorage {
|
|
23
23
|
private readonly _ardParentComp;
|
|
24
24
|
private readonly _items;
|
|
25
|
-
private readonly _highlightedItems;
|
|
26
|
-
private readonly _selectedItems;
|
|
27
25
|
constructor(_ardParentComp: SimpleItemStorageHost);
|
|
28
26
|
/**
|
|
29
27
|
* Gets all items.
|
|
30
28
|
*/
|
|
31
29
|
readonly items: Signal<ArdOptionSimple[]>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets all currently highlighted items.
|
|
34
|
-
*/
|
|
35
|
-
readonly highlightedItems: Signal<ArdOptionSimple[]>;
|
|
36
30
|
/**
|
|
37
31
|
* Gets all currently selected items.
|
|
38
32
|
*/
|
|
39
33
|
readonly selectedItems: Signal<ArdOptionSimple[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets all currently highlighted items.
|
|
36
|
+
*/
|
|
37
|
+
readonly highlightedItems: Signal<ArdOptionSimple[]>;
|
|
40
38
|
/**
|
|
41
39
|
* Gets the values of the currently selected items.
|
|
42
40
|
*/
|
|
@@ -47,16 +45,25 @@ export declare class SimpleItemStorage {
|
|
|
47
45
|
* @returns An array of item values.
|
|
48
46
|
*/
|
|
49
47
|
private _itemsToValue;
|
|
48
|
+
private _updateItems;
|
|
49
|
+
private _updateItemsFromArray;
|
|
50
50
|
/**
|
|
51
51
|
* Returns true if at least one item is highlighted, otherwise false.
|
|
52
52
|
*/
|
|
53
53
|
readonly isAnyItemHighlighted: Signal<boolean>;
|
|
54
|
+
/**
|
|
55
|
+
* Finds all highlightable items. An item is considered highlightable if it is **not** disabled.
|
|
56
|
+
* @returns An array of all highlightable items.
|
|
57
|
+
*/
|
|
58
|
+
private readonly _highlightableItems;
|
|
59
|
+
readonly itemsLeftUntilLimit: Signal<number>;
|
|
54
60
|
/**
|
|
55
61
|
* Returns true if the parent component defines the limit of concurrently selectable items and the amount of currently selected items matches that limit. Otherwise returns false.
|
|
56
62
|
*
|
|
57
63
|
* **TLDR**: true if `maxSelectedItems` is defined and the number of selected items matches that value.
|
|
58
64
|
*/
|
|
59
65
|
readonly isItemLimitReached: Signal<boolean>;
|
|
66
|
+
private _areItemsInitialized;
|
|
60
67
|
/**
|
|
61
68
|
* Sets the component's items. Takes into account the values defined by the parent component for `valueFrom`, `labelFrom`, and `disabledFrom`.
|
|
62
69
|
* @param items An array of items to be set as the component's items.
|
|
@@ -65,11 +72,12 @@ export declare class SimpleItemStorage {
|
|
|
65
72
|
setItems(items: unknown[]): void;
|
|
66
73
|
private _primitiveItemsMapFn;
|
|
67
74
|
private _setItemsMapFn;
|
|
75
|
+
private _valueBeforeItemsSet;
|
|
68
76
|
/**
|
|
69
77
|
* Writes a new value to the item storage. Selects the correct items based on the provided values, warning the user if the value is not found.
|
|
70
78
|
* @param ngModel The value of the ngModel to set.
|
|
71
79
|
*/
|
|
72
|
-
writeValue(ngModel: any
|
|
80
|
+
writeValue(ngModel: any): void;
|
|
73
81
|
private _validateSingleElementType;
|
|
74
82
|
/**
|
|
75
83
|
* Validates that all values of the value to be written are able to be accurately compared against the storage items.
|
|
@@ -156,9 +164,4 @@ export declare class SimpleItemStorage {
|
|
|
156
164
|
* @returns The item highlighted.
|
|
157
165
|
*/
|
|
158
166
|
highlightNextItem(offset: number, hasShift?: boolean): ArdOptionSimple | null;
|
|
159
|
-
/**
|
|
160
|
-
* Finds all highlightable items. An item is considered highlightable if it is **not** disabled.
|
|
161
|
-
* @returns An array of all highlightable items.
|
|
162
|
-
*/
|
|
163
|
-
private readonly highlightableItems;
|
|
164
167
|
}
|
|
@@ -18,7 +18,7 @@ export declare class SimplestItemStorage {
|
|
|
18
18
|
/**
|
|
19
19
|
* Gets all items.
|
|
20
20
|
*/
|
|
21
|
-
readonly items:
|
|
21
|
+
readonly items: import("@ardium-ui/devkit").ArraySignal<ArdSimplestStorageItem>;
|
|
22
22
|
/**
|
|
23
23
|
* The currently highlighted item.
|
|
24
24
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ControlValueAccessor
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Nullable } from '../types/utility.types';
|
|
3
4
|
import { _FocusableComponentBase, _FocusableComponentDefaults } from './focusable-component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export interface _NgModelComponentDefaults extends _FocusableComponentDefaults {
|
|
@@ -41,19 +42,17 @@ export declare abstract class _NgModelComponentBase extends _FocusableComponentB
|
|
|
41
42
|
* @param v The new value to write.
|
|
42
43
|
*/
|
|
43
44
|
protected abstract _emitChange(): void;
|
|
44
|
-
readonly wasTouched: import("@angular/core").WritableSignal<boolean>;
|
|
45
45
|
onFocus(event: FocusEvent): void;
|
|
46
46
|
protected _shouldEmitTouched: boolean;
|
|
47
47
|
onBlur(event: FocusEvent): void;
|
|
48
|
-
protected
|
|
49
|
-
|
|
48
|
+
protected _emitTouched(): void;
|
|
49
|
+
readonly control: import("@ardium-ui/devkit").TrackedFormControl<any>;
|
|
50
50
|
ngOnInit(): void;
|
|
51
|
-
protected _ngControl: NgControl | null;
|
|
52
51
|
readonly htmlId: import("@angular/core").InputSignal<string>;
|
|
52
|
+
readonly htmlName: import("@angular/core").InputSignal<Nullable<string>>;
|
|
53
53
|
readonly _hasError: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
|
|
54
|
-
|
|
55
|
-
readonly hasError: Signal<boolean>;
|
|
54
|
+
readonly hasError: import("@angular/core").Signal<boolean>;
|
|
56
55
|
ngOnDestroy(): void;
|
|
57
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<_NgModelComponentBase, never>;
|
|
58
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_NgModelComponentBase, never, never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "_hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_NgModelComponentBase, never, never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "htmlName": { "alias": "htmlName"; "required": false; "isSignal": true; }; "_hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
59
58
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
3
|
import { ArdFormFieldControl } from '../form-field/form-field-child.token';
|
|
3
4
|
import { ArdOptionSimple, CompareWithFn, OptionContext } from '../types/item-storage.types';
|
|
4
5
|
import { Nullable } from '../types/utility.types';
|
|
@@ -30,13 +31,13 @@ export declare abstract class _SelectableListComponentBase extends _FormFieldCom
|
|
|
30
31
|
readonly compareWith: import("@angular/core").InputSignal<Nullable<CompareWithFn>>;
|
|
31
32
|
get items(): any[];
|
|
32
33
|
set items(value: any);
|
|
33
|
-
readonly multiselectable: import("@angular/core").InputSignalWithTransform<boolean,
|
|
34
|
+
readonly multiselectable: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
34
35
|
get _multiselectableHostAttribute(): boolean;
|
|
35
36
|
readonly singleselectable: import("@angular/core").Signal<boolean>;
|
|
36
|
-
readonly requireValue: import("@angular/core").InputSignalWithTransform<boolean,
|
|
37
|
+
readonly requireValue: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
37
38
|
readonly isValueRequired: import("@angular/core").Signal<boolean>;
|
|
38
39
|
get _requireValueHostAttribute(): boolean;
|
|
39
|
-
readonly invertDisabled: import("@angular/core").InputSignalWithTransform<boolean,
|
|
40
|
+
readonly invertDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
40
41
|
readonly maxSelectedItems: import("@angular/core").InputSignalWithTransform<Nullable<number>, any>;
|
|
41
42
|
setDisabledState(state: boolean): void;
|
|
42
43
|
writeValue(ngModel: any[]): void;
|
|
@@ -50,10 +51,9 @@ export declare abstract class _SelectableListComponentBase extends _FormFieldCom
|
|
|
50
51
|
readonly highlightedItems: import("@angular/core").Signal<ArdOptionSimple[]>;
|
|
51
52
|
readonly firstHighlightedItem: import("@angular/core").Signal<Nullable<ArdOptionSimple>>;
|
|
52
53
|
readonly isItemLimitReached: import("@angular/core").Signal<boolean>;
|
|
53
|
-
|
|
54
|
+
readonly optionContextGenerator: import("@angular/core").Signal<(item: ArdOptionSimple) => OptionContext<ArdOptionSimple>>;
|
|
54
55
|
set value(newValue: any);
|
|
55
56
|
readonly valueChange: import("@angular/core").OutputEmitterRef<any>;
|
|
56
|
-
readonly changeEvent: import("@angular/core").OutputEmitterRef<any>;
|
|
57
57
|
readonly addEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
58
58
|
readonly removeEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
59
59
|
toggleItem(item: ArdOptionSimple): void;
|
|
@@ -72,5 +72,5 @@ export declare abstract class _SelectableListComponentBase extends _FormFieldCom
|
|
|
72
72
|
private _highlightLast;
|
|
73
73
|
private _highlightAll;
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<_SelectableListComponentBase, never>;
|
|
75
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_SelectableListComponentBase, never, never, { "valueFrom": { "alias": "valueFrom"; "required": false; "isSignal": true; }; "labelFrom": { "alias": "labelFrom"; "required": false; "isSignal": true; }; "disabledFrom": { "alias": "disabledFrom"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; }; "multiselectable": { "alias": "multiselectable"; "required": false; "isSignal": true; }; "requireValue": { "alias": "requireValue"; "required": false; "isSignal": true; }; "invertDisabled": { "alias": "invertDisabled"; "required": false; "isSignal": true; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_SelectableListComponentBase, never, never, { "valueFrom": { "alias": "valueFrom"; "required": false; "isSignal": true; }; "labelFrom": { "alias": "labelFrom"; "required": false; "isSignal": true; }; "disabledFrom": { "alias": "disabledFrom"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; }; "multiselectable": { "alias": "multiselectable"; "required": false; "isSignal": true; }; "requireValue": { "alias": "requireValue"; "required": false; "isSignal": true; }; "invertDisabled": { "alias": "invertDisabled"; "required": false; "isSignal": true; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "addEvent": "add"; "removeEvent": "remove"; }, never, never, true, never>;
|
|
76
76
|
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
export declare function getUTCDate(): Date;
|
|
2
2
|
export declare function getUTCDate(year: number, monthIndex: number, day: number): Date;
|
|
3
3
|
export declare function getUTCDate(year: number, monthIndex: number, day: number, hour: number, minute: number, second: number, millisecond: number): Date;
|
|
4
|
+
export declare function createDate(year: number, month: number, date: number, UTC: boolean): Date;
|
|
5
|
+
export declare function getDateComponents(date: null, UTC: boolean): {
|
|
6
|
+
year: null;
|
|
7
|
+
month: null;
|
|
8
|
+
date: null;
|
|
9
|
+
};
|
|
10
|
+
export declare function getDateComponents(date: Date, UTC: boolean): {
|
|
11
|
+
year: number;
|
|
12
|
+
month: number;
|
|
13
|
+
date: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function getDateComponents(date: Date | null, UTC: boolean): {
|
|
16
|
+
year: number | null;
|
|
17
|
+
month: number | null;
|
|
18
|
+
date: number | null;
|
|
19
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
3
|
import { ComponentColor } from '../types/colors.types';
|
|
3
4
|
import { FormElementVariant } from '../types/theming.types';
|
|
4
5
|
import { BadgePosition, BadgeSize } from './badge.types';
|
|
@@ -13,8 +14,8 @@ export declare class ArdiumBadgeDirective implements OnChanges, AfterViewInit, O
|
|
|
13
14
|
readonly size: import("@angular/core").InputSignal<BadgeSize>;
|
|
14
15
|
readonly position: import("@angular/core").InputSignalWithTransform<BadgePosition, BadgePosition>;
|
|
15
16
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
16
|
-
readonly hidden: import("@angular/core").InputSignalWithTransform<boolean,
|
|
17
|
-
readonly overlap: import("@angular/core").InputSignalWithTransform<boolean,
|
|
17
|
+
readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
18
|
+
readonly overlap: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
18
19
|
private readonly _elementClasses;
|
|
19
20
|
private _createBadgeElement;
|
|
20
21
|
private readonly _badgeElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ArdiumBreakpointService implements OnDestroy {
|
|
4
|
+
private readonly _destroyed;
|
|
5
|
+
readonly breakpointMap: Map<string, string>;
|
|
6
|
+
readonly breakpoints: string[];
|
|
7
|
+
readonly currentBreakpoint: import("@angular/core").WritableSignal<string | null>;
|
|
8
|
+
constructor();
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumBreakpointService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ArdiumBreakpointService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ArdGridSize } from '../grid';
|
|
2
|
+
import { ArdBreakpointsConfig } from './breakpoints';
|
|
3
|
+
export declare function parseNumberOrBreakpointConfig(value: number | string | ArdBreakpointsConfig<number>, breakpoints: string[]): Required<ArdBreakpointsConfig<number>>;
|
|
4
|
+
export declare function parseSizeOrBreakpointConfig(value: number | ArdGridSize | string | ArdBreakpointsConfig<number | ArdGridSize>, breakpoints: string[]): Required<ArdBreakpointsConfig<number | ArdGridSize>>;
|
|
5
|
+
export declare function parseBooleanOrBreakpointConfig(value: boolean | string | ArdBreakpointsConfig<boolean>, breakpoints: string[]): Required<ArdBreakpointsConfig<boolean>>;
|
|
6
|
+
export declare function parseCSSUnitOrBreakpointConfig(value: null | number | string | ArdBreakpointsConfig<string | number>, breakpoints: string[]): Required<ArdBreakpointsConfig<string>> | null;
|
|
7
|
+
export declare function parseEnumOrBreakpointConfig<T>(value: T | string | ArdBreakpointsConfig<T>, breakpoints: string[], isEnumValue: (val: any) => val is T): Required<ArdBreakpointsConfig<T>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ArdBreakpointsConfig<T> {
|
|
2
|
+
xs?: T;
|
|
3
|
+
sm?: T;
|
|
4
|
+
md?: T;
|
|
5
|
+
lg?: T;
|
|
6
|
+
xl?: T;
|
|
7
|
+
'2xl'?: T;
|
|
8
|
+
[key: string]: T | undefined;
|
|
9
|
+
}
|
|
10
|
+
export type ArdBreakpoints = Required<ArdBreakpointsConfig<string>>;
|
|
11
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
12
|
+
export declare const ARD_BREAKPOINTS: InjectionToken<Map<string, string>>;
|
|
13
|
+
export declare function provideBreakpoints(config?: Partial<ArdBreakpoints>): Provider[];
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { BooleanLike, NumberLike } from '@ardium-ui/devkit';
|
|
3
3
|
import { ButtonType } from '../types/button.types';
|
|
4
4
|
import { ComponentColor } from '../types/colors.types';
|
|
5
5
|
import { _ButtonBaseDefaults } from './_button-base.defaults';
|
|
6
6
|
import { ButtonAppearance } from './general-button.types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare abstract class _ButtonBase
|
|
9
|
-
readonly wrapperClasses: import("@angular/core").InputSignal<string>;
|
|
8
|
+
export declare abstract class _ButtonBase {
|
|
10
9
|
protected readonly _DEFAULTS: _ButtonBaseDefaults;
|
|
11
|
-
|
|
10
|
+
readonly wrapperClasses: import("@angular/core").InputSignal<string>;
|
|
11
|
+
constructor(_DEFAULTS: _ButtonBaseDefaults);
|
|
12
12
|
readonly type: import("@angular/core").InputSignal<ButtonType>;
|
|
13
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
13
14
|
readonly appearance: import("@angular/core").InputSignal<ButtonAppearance>;
|
|
14
15
|
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
15
|
-
readonly lightColoring: import("@angular/core").InputSignalWithTransform<boolean,
|
|
16
|
-
readonly compact: import("@angular/core").InputSignalWithTransform<boolean,
|
|
17
|
-
readonly
|
|
16
|
+
readonly lightColoring: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
17
|
+
readonly compact: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
18
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
19
|
+
readonly tabIndex: Signal<number>;
|
|
20
|
+
readonly _tabIndex: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
21
|
+
readonly pointerEventsWhenDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
18
22
|
abstract readonly ngClasses: Signal<string>;
|
|
19
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<_ButtonBase, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_ButtonBase, never, never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "lightColoring": { "alias": "lightColoring"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "pointerEventsWhenDisabled": { "alias": "pointerEventsWhenDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_ButtonBase, never, never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "lightColoring": { "alias": "lightColoring"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "_tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "pointerEventsWhenDisabled": { "alias": "pointerEventsWhenDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
25
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _FocusableComponentDefaults } from '../_internal/focusable-component';
|
|
2
1
|
import { ButtonType } from '../types/button.types';
|
|
3
2
|
import { ComponentColor } from './../types/colors.types';
|
|
4
3
|
import { ButtonAppearance } from './general-button.types';
|
|
5
|
-
export interface _SimpleButtonDefaults
|
|
4
|
+
export interface _SimpleButtonDefaults {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
tabIndex: number;
|
|
6
7
|
color: ComponentColor;
|
|
7
8
|
lightColoring: boolean;
|
|
8
9
|
compact: boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
2
|
import { _ButtonBase } from '../_button-base';
|
|
3
3
|
import { ButtonVariant } from '../general-button.types';
|
|
4
4
|
import { ArdButtonDefaults } from './button.defaults';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ArdiumButtonComponent extends _ButtonBase {
|
|
7
7
|
protected readonly _DEFAULTS: ArdButtonDefaults;
|
|
8
|
-
readonly icon: import("@angular/core").InputSignal<string>;
|
|
9
8
|
constructor(defaults: ArdButtonDefaults);
|
|
9
|
+
readonly focusEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
10
|
+
readonly blurEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
10
11
|
readonly variant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
11
|
-
readonly
|
|
12
|
-
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
12
|
+
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
13
13
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumButtonComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumButtonComponent, "ard-button", never, { "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumButtonComponent, "ard-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, { "focusEvent": "focus"; "blurEvent": "blur"; }, never, ["*"], false, never>;
|
|
16
16
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { InjectionToken, Provider } from '@angular/core';
|
|
2
2
|
import { _ButtonBaseDefaults } from '../_button-base.defaults';
|
|
3
3
|
import { ButtonVariant } from '../general-button.types';
|
|
4
|
-
import { SimpleOneAxisAlignment } from './../../types/alignment.types';
|
|
5
4
|
export interface ArdButtonDefaults extends _ButtonBaseDefaults {
|
|
6
5
|
variant: ButtonVariant;
|
|
7
|
-
alignIcon: SimpleOneAxisAlignment;
|
|
8
6
|
vertical: boolean;
|
|
9
7
|
}
|
|
10
8
|
export declare const ARD_BUTTON_DEFAULTS: InjectionToken<ArdButtonDefaults>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
|
+
import { _ButtonBase } from '../_button-base';
|
|
3
|
+
import { ButtonVariant } from '../general-button.types';
|
|
4
|
+
import { ArdButtonDefaults } from './button.defaults';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ArdiumButtonDirective extends _ButtonBase {
|
|
7
|
+
protected readonly _DEFAULTS: ArdButtonDefaults;
|
|
8
|
+
constructor(defaults: ArdButtonDefaults);
|
|
9
|
+
private readonly _hostEl;
|
|
10
|
+
private readonly _renderer;
|
|
11
|
+
handleClick(event: Event): void;
|
|
12
|
+
readonly variant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
13
|
+
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
14
|
+
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumButtonDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumButtonDirective, "button[ard-button], a[ard-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./button.component";
|
|
3
|
-
import * as i2 from "
|
|
3
|
+
import * as i2 from "./button.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
4
5
|
export declare class ArdiumButtonModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumButtonModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumButtonModule, [typeof i1.ArdiumButtonComponent], [typeof
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumButtonModule, [typeof i1.ArdiumButtonComponent, typeof i2.ArdiumButtonDirective], [typeof i3.CommonModule], [typeof i1.ArdiumButtonComponent, typeof i2.ArdiumButtonDirective]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumButtonModule>;
|
|
8
9
|
}
|
|
@@ -4,8 +4,10 @@ import { ArdFabDefaults } from './fab.defaults';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ArdiumFabComponent extends _ButtonBase {
|
|
6
6
|
constructor(defaults: ArdFabDefaults);
|
|
7
|
+
readonly focusEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
8
|
+
readonly blurEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
7
9
|
readonly size: import("@angular/core").InputSignal<FabSize>;
|
|
8
10
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFabComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFabComponent, "ard-fab", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFabComponent, "ard-fab", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "focusEvent": "focus"; "blurEvent": "blur"; }, never, ["*"], false, never>;
|
|
11
13
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
1
2
|
import { _FocusableComponentBase } from '../../_internal/focusable-component';
|
|
2
3
|
import { ButtonType } from '../../types/button.types';
|
|
3
4
|
import { ComponentColor } from '../../types/colors.types';
|
|
@@ -8,11 +9,12 @@ export declare class ArdiumIconButtonComponent extends _FocusableComponentBase {
|
|
|
8
9
|
constructor(defaults: ArdIconButtonDefaults);
|
|
9
10
|
readonly wrapperClasses: import("@angular/core").InputSignal<string>;
|
|
10
11
|
readonly type: import("@angular/core").InputSignal<ButtonType>;
|
|
12
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
11
13
|
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
12
|
-
readonly lightColoring: import("@angular/core").InputSignalWithTransform<boolean,
|
|
13
|
-
readonly compact: import("@angular/core").InputSignalWithTransform<boolean,
|
|
14
|
-
readonly pointerEventsWhenDisabled: import("@angular/core").InputSignalWithTransform<boolean,
|
|
14
|
+
readonly lightColoring: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
15
|
+
readonly compact: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
16
|
+
readonly pointerEventsWhenDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
15
17
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumIconButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumIconButtonComponent, "ard-icon-button", never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "lightColoring": { "alias": "lightColoring"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "pointerEventsWhenDisabled": { "alias": "pointerEventsWhenDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumIconButtonComponent, "ard-icon-button", never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "lightColoring": { "alias": "lightColoring"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "pointerEventsWhenDisabled": { "alias": "pointerEventsWhenDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
|
18
20
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
import { _FocusableComponentDefaults } from '../../_internal/focusable-component';
|
|
2
3
|
import { _SimpleButtonDefaults } from '../_button-base.defaults';
|
|
3
|
-
export interface ArdIconButtonDefaults extends _SimpleButtonDefaults {
|
|
4
|
+
export interface ArdIconButtonDefaults extends _SimpleButtonDefaults, _FocusableComponentDefaults {
|
|
4
5
|
}
|
|
5
6
|
export declare const ARD_ICON_BUTTON_DEFAULTS: InjectionToken<ArdIconButtonDefaults>;
|
|
6
7
|
export declare function provideIconButtonDefaults(config: Partial<ArdIconButtonDefaults>): Provider;
|