@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
|
@@ -4,6 +4,9 @@ import { ArdSnackbarRef } from './snackbar-ref';
|
|
|
4
4
|
import { _ArdSimpleSnackbarComponent } from './snackbar.component';
|
|
5
5
|
import { ArdSnackbarOptions } from './snackbar.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Service for opening snackbars. Provides methods for opening snackbars with either a simple message and action, or with a custom component. Manages a queue of snackbars to be displayed, and handles the display and dismissal of snackbars according to the specified options. Also provides methods for retrieving and clearing the snackbar queue.
|
|
9
|
+
*/
|
|
7
10
|
export declare class ArdiumSnackbarService implements OnDestroy {
|
|
8
11
|
private readonly _snackbarQueue;
|
|
9
12
|
private _openedSnackbar?;
|
|
@@ -11,14 +14,38 @@ export declare class ArdiumSnackbarService implements OnDestroy {
|
|
|
11
14
|
private readonly _animationLength;
|
|
12
15
|
private readonly _overlay;
|
|
13
16
|
private readonly _injector;
|
|
17
|
+
/**
|
|
18
|
+
* Opens a snackbar with the given message, action and options.
|
|
19
|
+
* @param message The message to display in the snackbar.
|
|
20
|
+
* @param action The label for the snackbar action. If provided, the snackbar will have an action button with this label.
|
|
21
|
+
* When the action button is clicked, the snackbar will emit a close event with `withAction` set to `true`.
|
|
22
|
+
* @param options Additional options for configuring the snackbar.
|
|
23
|
+
* @returns A reference to the opened snackbar.
|
|
24
|
+
*/
|
|
14
25
|
open(message: string, action?: string, options?: ArdSnackbarOptions): ArdSnackbarRef<_ArdSimpleSnackbarComponent>;
|
|
26
|
+
/**
|
|
27
|
+
* Opens a snackbar with a custom component, passing the given options.
|
|
28
|
+
* @param component The component to display inside the snackbar. This component will be instantiated and inserted into the snackbar overlay.
|
|
29
|
+
* @param options Additional options for configuring the snackbar, such as data to pass to the component, placement, styling, etc.
|
|
30
|
+
* @returns A reference to the opened snackbar, with the generic type of the component instance. You can use this reference to subscribe to open/close events, and to close the snackbar programmatically.
|
|
31
|
+
*/
|
|
15
32
|
openFromComponent<T>(component: ComponentType<T>, options: ArdSnackbarOptions): ArdSnackbarRef<T>;
|
|
16
33
|
private _handleQueue;
|
|
17
34
|
private _mergeOptions;
|
|
18
35
|
private _openNext;
|
|
19
36
|
private _createOverlay;
|
|
37
|
+
/**
|
|
38
|
+
* Dismisses the currently opened snackbar, if any. If `withAction` is true, it indicates that the snackbar is being dismissed as a result of the user clicking the action button (if it has one). This will cause the snackbar to emit a close event with `withAction` set to true, allowing you to differentiate between automatic dismissal and user-initiated dismissal via the action button.
|
|
39
|
+
* @param withAction Optional boolean indicating whether the dismissal is due to the user clicking the action button. Defaults to false. If true, the snackbar's close event will emit with `withAction` set to true, allowing you to handle this case differently if needed.
|
|
40
|
+
*/
|
|
20
41
|
dismissCurrent(withAction?: boolean): void;
|
|
42
|
+
/**
|
|
43
|
+
* Returns an array of references to the snackbars currently in the queue, in the order they will be opened. Note that this does not include the currently opened snackbar, if any.
|
|
44
|
+
*/
|
|
21
45
|
getQueue(): ArdSnackbarRef<unknown>[];
|
|
46
|
+
/**
|
|
47
|
+
* Clears all pending snackbars from the queue. Does not affect the currently opened snackbar, if any. Use with caution, as this will remove all pending snackbars that have not yet been displayed, and they will not be shown at all.
|
|
48
|
+
*/
|
|
22
49
|
clearQueue(): void;
|
|
23
50
|
/**
|
|
24
51
|
* @deprecated Internal implementation detail, do not use directly.
|
|
@@ -33,16 +33,52 @@ export interface ArdSnackbarData {
|
|
|
33
33
|
message: string;
|
|
34
34
|
action?: string;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Options for configuring the behavior and appearance of a snackbar.
|
|
38
|
+
*/
|
|
36
39
|
export interface ArdSnackbarOptions {
|
|
40
|
+
/**
|
|
41
|
+
* Message and action text data to be passed to the snackbar component
|
|
42
|
+
*/
|
|
37
43
|
data?: ArdSnackbarData;
|
|
44
|
+
/**
|
|
45
|
+
* Placement options for the snackbar. If not provided, the snackbar will be centered at the bottom of the screen.
|
|
46
|
+
*/
|
|
38
47
|
placement?: {
|
|
48
|
+
/**
|
|
49
|
+
* The alignment of the snackbar in relation to the origin element. If not provided, it will default to 'bottom-center'.
|
|
50
|
+
*/
|
|
39
51
|
align?: ArdSnackbarAlignment;
|
|
52
|
+
/**
|
|
53
|
+
* The origin element to which the snackbar is attached. If not provided, it will default to 'document.body'.
|
|
54
|
+
*/
|
|
40
55
|
origin?: ArdSnackbarOrigin;
|
|
56
|
+
/**
|
|
57
|
+
* The relation of the snackbar to the origin element. If not provided, it will default to 'outside'.
|
|
58
|
+
*/
|
|
41
59
|
originRelation?: ArdSnackbarOriginRelation;
|
|
42
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Duration in milliseconds for which the snackbar should be visible. If not provided, it will default to 3000ms. Set to `Infinity` for a persistent snackbar that must be dismissed manually.
|
|
63
|
+
*/
|
|
43
64
|
duration?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Color of the snackbar. This will apply a corresponding color class to the snackbar element, which can be used to style the snackbar based on the chosen color. If not provided, it will default to 'primary'.
|
|
67
|
+
*/
|
|
44
68
|
color?: ComponentColor;
|
|
69
|
+
/**
|
|
70
|
+
* Type of the snackbar, which can be used to apply specific styles or icons based on the type. If not provided, it will default to 'none'.
|
|
71
|
+
*/
|
|
45
72
|
type?: ArdSnackbarType;
|
|
73
|
+
/**
|
|
74
|
+
* Defines how the snackbar should behave when there are multiple snackbars in the queue. If not provided, it will default to 'default'.
|
|
75
|
+
* - 'default': New snackbars will be added to the end of the queue and displayed after the currently opened snackbar is dismissed.
|
|
76
|
+
* - 'skip': The new snackbar will be added to the start of the queue and displayed after the current snackbar is dismissed.
|
|
77
|
+
* - 'overwrite': If there is already an opened snackbar, it will be immediately dismissed and replaced with the new snackbar.
|
|
78
|
+
*/
|
|
46
79
|
queueHandling?: ArdSnackbarQueueHandling;
|
|
80
|
+
/**
|
|
81
|
+
* Additional CSS class or classes to apply to the snackbar panel.
|
|
82
|
+
*/
|
|
47
83
|
panelClass?: string | string[];
|
|
48
84
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NumberLike } from '@ardium-ui/devkit';
|
|
1
2
|
import { StarColor, StarFillMode } from './../star.types';
|
|
2
3
|
import { ArdRatingDisplayStarTemplateDirective } from './rating-display.directives';
|
|
3
4
|
import { ArdRatingDisplayStarTemplateContext } from './rating-display.types';
|
|
@@ -7,7 +8,7 @@ export declare class ArdiumRatingDisplayComponent {
|
|
|
7
8
|
protected readonly _DEFAULTS: import("./rating-display.defaults").ArdRatingDisplayDefaults;
|
|
8
9
|
readonly color: import("@angular/core").InputSignal<StarColor>;
|
|
9
10
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
10
|
-
readonly max: import("@angular/core").InputSignalWithTransform<number,
|
|
11
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
11
12
|
readonly value: import("@angular/core").InputSignalWithTransform<number | StarFillMode[], string | number | StarFillMode[]>;
|
|
12
13
|
readonly starArray: import("@angular/core").Signal<StarFillMode[]>;
|
|
13
14
|
readonly starTemplate: import("@angular/core").Signal<ArdRatingDisplayStarTemplateDirective | undefined>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
-
import {
|
|
2
|
+
import { NumberLike } from '@ardium-ui/devkit';
|
|
3
|
+
import { _FormFieldComponentBase } from '../../_internal/form-field-component';
|
|
4
|
+
import { ArdFormFieldControl } from '../../form-field';
|
|
3
5
|
import { ArdiumStarButtonComponent } from '../star-button/star-button.component';
|
|
4
6
|
import { StarColor } from '../star.types';
|
|
5
7
|
import { ArdRatingInputDefaults } from './rating-input.defaults';
|
|
6
8
|
import { ArdRatingInputStarButtonTemplateDirective } from './rating-input.directives';
|
|
7
9
|
import { ArdRatingInputStarButtonTemplateContext } from './rating-input.types';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ArdiumRatingInputComponent extends
|
|
11
|
+
export declare class ArdiumRatingInputComponent extends _FormFieldComponentBase implements ControlValueAccessor, ArdFormFieldControl {
|
|
10
12
|
readonly wrapperClasses: import("@angular/core").InputSignal<string>;
|
|
11
13
|
protected readonly _DEFAULTS: ArdRatingInputDefaults;
|
|
12
14
|
readonly color: import("@angular/core").InputSignal<StarColor>;
|
|
@@ -14,7 +16,7 @@ export declare class ArdiumRatingInputComponent extends _NgModelComponentBase im
|
|
|
14
16
|
readonly highlightEvent: import("@angular/core").OutputEmitterRef<number>;
|
|
15
17
|
readonly value: import("@angular/core").ModelSignal<number | null>;
|
|
16
18
|
constructor(defaults: ArdRatingInputDefaults);
|
|
17
|
-
readonly max: import("@angular/core").InputSignalWithTransform<number,
|
|
19
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
18
20
|
readonly starButtonInstances: import("@angular/core").Signal<readonly ArdiumStarButtonComponent[]>;
|
|
19
21
|
private readonly _highlightedStarIndex;
|
|
20
22
|
readonly starArray: import("@angular/core").Signal<number[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { _FormFieldComponentDefaults } from '../../_internal/form-field-component';
|
|
3
3
|
import { StarColor } from '../star.types';
|
|
4
|
-
export interface ArdRatingInputDefaults extends
|
|
4
|
+
export interface ArdRatingInputDefaults extends _FormFieldComponentDefaults {
|
|
5
5
|
color: StarColor;
|
|
6
6
|
max: number;
|
|
7
7
|
}
|
|
@@ -8,13 +8,16 @@ import { ArdStarButtonStarTemplateDirective } from './star-button.directives';
|
|
|
8
8
|
import { ArdStarButtonStarTemplateContext } from './star-button.types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class ArdiumStarButtonComponent extends _BooleanComponentBase implements ControlValueAccessor {
|
|
11
|
-
readonly wrapperClasses: import("@angular/core").InputSignal<string>;
|
|
12
11
|
protected readonly _DEFAULTS: ArdStarButtonDefaults;
|
|
13
12
|
constructor(defaults: ArdStarButtonDefaults);
|
|
13
|
+
protected readonly _componentId = "107";
|
|
14
|
+
protected readonly _componentName = "start-button";
|
|
15
|
+
readonly wrapperClasses: import("@angular/core").InputSignal<string>;
|
|
14
16
|
readonly clickStrategy: import("@angular/core").InputSignal<ClickStrategy>;
|
|
15
17
|
readonly color: import("@angular/core").InputSignal<StarColor>;
|
|
16
18
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
17
19
|
readonly starFillState: import("@angular/core").Signal<StarFillMode>;
|
|
20
|
+
readonly starFillInternal: import("@angular/core").Signal<StarFillMode>;
|
|
18
21
|
onClick(): void;
|
|
19
22
|
readonly starTemplate: import("@angular/core").Signal<ArdStarButtonStarTemplateDirective | undefined>;
|
|
20
23
|
readonly starTemplateContext: import("@angular/core").Signal<ArdStarButtonStarTemplateContext>;
|
package/lib/tabber/index.d.ts
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ArdiumTabComponent {
|
|
3
|
-
protected readonly _DEFAULTS: import("
|
|
4
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean,
|
|
5
|
+
export declare class ArdiumTabComponent implements OnDestroy {
|
|
6
|
+
protected readonly _DEFAULTS: import("../tabber.defaults").ArdTabberDefaults;
|
|
7
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
8
|
+
readonly pointerEventsWhenDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
9
|
+
readonly tabTitle: import("@angular/core").InputSignal<string>;
|
|
5
10
|
readonly selected: import("@angular/core").WritableSignal<boolean>;
|
|
6
11
|
set _selected(v: any);
|
|
7
12
|
setSelected(state: boolean): void;
|
|
8
|
-
get _selectedHostAttribute(): boolean;
|
|
9
13
|
private _emitChange;
|
|
10
14
|
readonly focused: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
-
readonly _label: import("@angular/core").InputSignal<string | null>;
|
|
12
|
-
readonly label: import("@angular/core").Signal<string
|
|
13
|
-
|
|
15
|
+
readonly _label: import("@angular/core").InputSignal<string | TemplateRef<any> | null>;
|
|
16
|
+
readonly label: import("@angular/core").Signal<string | TemplateRef<any>>;
|
|
17
|
+
_isTabIdInitialized: boolean;
|
|
18
|
+
readonly tabId: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
14
19
|
readonly focusEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
15
20
|
readonly blurEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
16
21
|
readonly selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
22
|
+
readonly selectedChangeInternal$: Subject<boolean>;
|
|
23
|
+
private _selectedChangeSub;
|
|
24
|
+
ngOnDestroy(): void;
|
|
17
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTabComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTabComponent, "ard-tab", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "_selected": { "alias": "selected"; "required": false; }; "_label": { "alias": "label"; "required": false; "isSignal": true; }; "tabId": { "alias": "tabId"; "required": true; "isSignal": true; }; }, { "focusEvent": "
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTabComponent, "ard-tab", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "pointerEventsWhenDisabled": { "alias": "pointerEventsWhenDisabled"; "required": false; "isSignal": true; }; "tabTitle": { "alias": "tabTitle"; "required": false; "isSignal": true; }; "_selected": { "alias": "selected"; "required": false; }; "_label": { "alias": "label"; "required": false; "isSignal": true; }; "tabId": { "alias": "tabId"; "required": true; "isSignal": true; }; }, { "focusEvent": "focus"; "blurEvent": "blur"; "selectedChange": "selectedChange"; }, never, ["*"], false, never>;
|
|
19
27
|
}
|
|
@@ -1,28 +1,44 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
3
|
import { OneAxisAlignment } from '../types/alignment.types';
|
|
3
4
|
import { ComponentColor } from '../types/colors.types';
|
|
4
5
|
import { ArdiumTabComponent } from './tab/tab.component';
|
|
6
|
+
import { ArdTabberLabelTemplateDirective } from './tabber.directives';
|
|
7
|
+
import { TabberLabelContext } from './tabber.types';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ArdiumTabberComponent implements AfterContentInit {
|
|
9
|
+
export declare class ArdiumTabberComponent implements AfterContentInit, OnChanges {
|
|
7
10
|
protected readonly _DEFAULTS: import("./tabber.defaults").ArdTabberDefaults;
|
|
8
11
|
readonly tabs: import("@angular/core").Signal<readonly ArdiumTabComponent[]>;
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
12
|
+
readonly selectedTabId: import("@angular/core").ModelSignal<string | null>;
|
|
13
|
+
readonly selectedTab: import("@angular/core").Signal<ArdiumTabComponent | null>;
|
|
14
|
+
readonly focusedTabId: import("@angular/core").WritableSignal<string | null>;
|
|
15
|
+
readonly focusedTab: import("@angular/core").Signal<ArdiumTabComponent | null>;
|
|
16
|
+
private _selectedTabIdToCheck;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
private _validateSelectedTabId;
|
|
11
19
|
readonly initialTab: import("@angular/core").InputSignal<string | undefined>;
|
|
12
20
|
ngAfterContentInit(): void;
|
|
13
|
-
|
|
21
|
+
selectTab(tab: ArdiumTabComponent): void;
|
|
22
|
+
private _unselectSpecificTab;
|
|
23
|
+
private _unselectCurrentTab;
|
|
24
|
+
private _selectNewTab;
|
|
14
25
|
onTabFocus(tab: ArdiumTabComponent): void;
|
|
15
26
|
onTabBlur(tab: ArdiumTabComponent): void;
|
|
16
27
|
readonly focusEvent: import("@angular/core").OutputEmitterRef<string>;
|
|
17
28
|
readonly blurEvent: import("@angular/core").OutputEmitterRef<string>;
|
|
18
|
-
readonly changeTab: import("@angular/core").OutputEmitterRef<string>;
|
|
19
29
|
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
20
30
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
21
|
-
readonly stretchTabs: import("@angular/core").InputSignalWithTransform<boolean,
|
|
22
|
-
readonly uniformTabWidths: import("@angular/core").InputSignalWithTransform<boolean,
|
|
31
|
+
readonly stretchTabs: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
32
|
+
readonly uniformTabWidths: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
23
33
|
readonly tabAlignment: import("@angular/core").InputSignal<OneAxisAlignment>;
|
|
24
34
|
readonly tabContainerClasses: import("@angular/core").Signal<string>;
|
|
25
35
|
readonly tabIndex: import("@angular/core").InputSignal<string | number>;
|
|
36
|
+
readonly labelTemplate: import("@angular/core").Signal<ArdTabberLabelTemplateDirective | undefined>;
|
|
37
|
+
readonly tabsWithTemplates: import("@angular/core").Signal<{
|
|
38
|
+
tab: ArdiumTabComponent;
|
|
39
|
+
template: TemplateRef<any> | null;
|
|
40
|
+
templateContext: TabberLabelContext | null;
|
|
41
|
+
}[]>;
|
|
26
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTabberComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTabberComponent, "ard-tabber", never, { "initialTab": { "alias": "initialTab"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "uniformTabWidths": { "alias": "uniformTabWidths"; "required": false; "isSignal": true; }; "tabAlignment": { "alias": "tabAlignment"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; }, { "
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTabberComponent, "ard-tabber", never, { "selectedTabId": { "alias": "selectedTab"; "required": false; "isSignal": true; }; "initialTab": { "alias": "initialTab"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "uniformTabWidths": { "alias": "uniformTabWidths"; "required": false; "isSignal": true; }; "tabAlignment": { "alias": "tabAlignment"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; }, { "selectedTabId": "selectedTabChange"; "focusEvent": "focus"; "blurEvent": "blur"; }, ["tabs", "labelTemplate"], ["*"], false, never>;
|
|
28
44
|
}
|
|
@@ -2,6 +2,8 @@ import { InjectionToken, Provider } from '@angular/core';
|
|
|
2
2
|
import { OneAxisAlignment } from './../types/alignment.types';
|
|
3
3
|
import { ComponentColor } from './../types/colors.types';
|
|
4
4
|
export interface ArdTabberDefaults {
|
|
5
|
+
tabDisabled: boolean;
|
|
6
|
+
tabPointerEventsWhenDisabled: boolean;
|
|
5
7
|
color: ComponentColor;
|
|
6
8
|
stretchTabs: boolean;
|
|
7
9
|
uniformTabWidths: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { TabberLabelContext } from './tabber.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ArdTabberLabelTemplateDirective {
|
|
5
|
+
template: TemplateRef<TabberLabelContext>;
|
|
6
|
+
constructor(template: TemplateRef<TabberLabelContext>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdTabberLabelTemplateDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdTabberLabelTemplateDirective, "ng-template[ard-tabber-label-tmp]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./tabber.component";
|
|
3
3
|
import * as i2 from "./tab/tab.component";
|
|
4
|
-
import * as i3 from "
|
|
4
|
+
import * as i3 from "./tabber.directives";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
5
6
|
export declare class ArdiumTabberModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTabberModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumTabberModule, [typeof i1.ArdiumTabberComponent, typeof i2.ArdiumTabComponent], [typeof
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumTabberModule, [typeof i1.ArdiumTabberComponent, typeof i2.ArdiumTabComponent, typeof i3.ArdTabberLabelTemplateDirective], [typeof i4.CommonModule], [typeof i1.ArdiumTabberComponent, typeof i2.ArdiumTabComponent, typeof i3.ArdTabberLabelTemplateDirective]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumTabberModule>;
|
|
9
10
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { BooleanLike, NumberLike } from '@ardium-ui/devkit';
|
|
2
3
|
import { _FocusableComponentBase } from '../_internal/focusable-component';
|
|
3
4
|
import { ProgressBarMode } from '../progress-bar';
|
|
4
5
|
import { CurrentItemsFormatFn, PaginationAlign } from '../table-pagination/table-pagination.types';
|
|
@@ -15,15 +16,15 @@ export declare class ArdiumTableComponent extends _FocusableComponentBase implem
|
|
|
15
16
|
private readonly _itemStorage;
|
|
16
17
|
readonly rowDisabledFrom: import("@angular/core").InputSignal<string>;
|
|
17
18
|
readonly rowBoldFrom: import("@angular/core").InputSignal<string>;
|
|
18
|
-
readonly invertRowDisabled: import("@angular/core").InputSignalWithTransform<boolean,
|
|
19
|
-
readonly invertRowBold: import("@angular/core").InputSignalWithTransform<boolean,
|
|
20
|
-
readonly selectableRows: import("@angular/core").InputSignalWithTransform<boolean,
|
|
19
|
+
readonly invertRowDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
20
|
+
readonly invertRowBold: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
21
|
+
readonly selectableRows: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
21
22
|
readonly maxSelectedItems: import("@angular/core").InputSignalWithTransform<Nullable<number>, any>;
|
|
22
|
-
readonly clickableRows: import("@angular/core").InputSignalWithTransform<boolean,
|
|
23
|
+
readonly clickableRows: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
23
24
|
readonly caption: import("@angular/core").InputSignal<Nullable<string>>;
|
|
24
|
-
readonly isLoading: import("@angular/core").InputSignalWithTransform<boolean,
|
|
25
|
-
readonly loadingProgress: import("@angular/core").InputSignalWithTransform<number,
|
|
26
|
-
readonly loadingProgressBuffer: import("@angular/core").InputSignalWithTransform<number,
|
|
25
|
+
readonly isLoading: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
26
|
+
readonly loadingProgress: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
27
|
+
readonly loadingProgressBuffer: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
27
28
|
readonly loadingBarMode: import("@angular/core").InputSignal<ProgressBarMode>;
|
|
28
29
|
readonly loadingBarColor: import("@angular/core").InputSignal<ComponentColor>;
|
|
29
30
|
readonly appearance: import("@angular/core").InputSignal<TableAppearance>;
|
|
@@ -31,11 +32,11 @@ export declare class ArdiumTableComponent extends _FocusableComponentBase implem
|
|
|
31
32
|
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
32
33
|
readonly align: import("@angular/core").InputSignal<TableAlignType>;
|
|
33
34
|
readonly headerAlign: import("@angular/core").InputSignal<TableAlignType>;
|
|
34
|
-
readonly compact: import("@angular/core").InputSignalWithTransform<boolean,
|
|
35
|
-
readonly zebra: import("@angular/core").InputSignalWithTransform<boolean,
|
|
36
|
-
readonly stickyHeader: import("@angular/core").InputSignalWithTransform<boolean,
|
|
35
|
+
readonly compact: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
36
|
+
readonly zebra: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
37
|
+
readonly stickyHeader: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
37
38
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
38
|
-
readonly paginated: import("@angular/core").InputSignalWithTransform<boolean,
|
|
39
|
+
readonly paginated: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
39
40
|
readonly paginationStrategy: import("@angular/core").InputSignal<TablePaginationStrategy>;
|
|
40
41
|
readonly paginationOptions: import("@angular/core").InputSignalWithTransform<number[] | {
|
|
41
42
|
value: number;
|
|
@@ -49,9 +50,9 @@ export declare class ArdiumTableComponent extends _FocusableComponentBase implem
|
|
|
49
50
|
readonly paginationAlign: import("@angular/core").InputSignal<PaginationAlign>;
|
|
50
51
|
readonly itemsPerPageText: import("@angular/core").InputSignal<string>;
|
|
51
52
|
readonly currentItemsFormatFn: import("@angular/core").InputSignal<CurrentItemsFormatFn>;
|
|
52
|
-
readonly pageFillRemaining: import("@angular/core").InputSignalWithTransform<boolean,
|
|
53
|
-
readonly paginationDisabled: import("@angular/core").InputSignalWithTransform<boolean,
|
|
54
|
-
readonly useFirstLastButtons: import("@angular/core").InputSignalWithTransform<boolean,
|
|
53
|
+
readonly pageFillRemaining: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
54
|
+
readonly paginationDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
55
|
+
readonly useFirstLastButtons: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
55
56
|
readonly itemsPerPage: import("@angular/core").ModelSignal<number>;
|
|
56
57
|
readonly page: import("@angular/core").ModelSignal<number>;
|
|
57
58
|
readonly isDefinedTotalItems: import("@angular/core").Signal<boolean>;
|
|
@@ -63,7 +64,7 @@ export declare class ArdiumTableComponent extends _FocusableComponentBase implem
|
|
|
63
64
|
private _data;
|
|
64
65
|
set data(v: any[]);
|
|
65
66
|
get data(): any[];
|
|
66
|
-
readonly treatDataSourceAsString: import("@angular/core").InputSignalWithTransform<boolean,
|
|
67
|
+
readonly treatDataSourceAsString: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
67
68
|
readonly checkboxTemplate: import("@angular/core").Signal<TemplateRef<TableCheckboxContext> | undefined>;
|
|
68
69
|
readonly headerCheckboxTemplate: import("@angular/core").Signal<TemplateRef<TableHeaderCheckboxContext> | undefined>;
|
|
69
70
|
readonly captionTemplate: import("@angular/core").Signal<TemplateRef<TableCaptionContext> | undefined>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
2
3
|
import { _FocusableComponentBase } from '../_internal/focusable-component';
|
|
3
4
|
import { ComponentColor } from '../types/colors.types';
|
|
4
5
|
import { ArdTablePaginationDefaults } from './table-pagination.defaults';
|
|
@@ -21,10 +22,10 @@ export declare class ArdiumTablePaginationComponent extends _FocusableComponentB
|
|
|
21
22
|
ngOnInit(): void;
|
|
22
23
|
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
23
24
|
readonly align: import("@angular/core").InputSignal<PaginationAlign>;
|
|
24
|
-
readonly compact: import("@angular/core").InputSignalWithTransform<boolean,
|
|
25
|
+
readonly compact: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
25
26
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
26
|
-
readonly useFirstLastButtons: import("@angular/core").InputSignalWithTransform<boolean,
|
|
27
|
-
readonly isLoading: import("@angular/core").InputSignalWithTransform<boolean,
|
|
27
|
+
readonly useFirstLastButtons: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
28
|
+
readonly isLoading: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
28
29
|
readonly itemsPerPageText: import("@angular/core").InputSignal<string>;
|
|
29
30
|
readonly currentItemsFormatFn: import("@angular/core").InputSignal<CurrentItemsFormatFn>;
|
|
30
31
|
readonly getCurrentItemsContext: import("@angular/core").Signal<import("../_internal/models/pagination.model").PaginationCurrentItemsContext>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { BooleanLike } from '@ardium-ui/devkit';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class ArdiumTextListComponent {
|
|
3
4
|
readonly values: import("@angular/core").InputSignal<any[]>;
|
|
4
5
|
readonly separator: import("@angular/core").InputSignal<string>;
|
|
5
|
-
readonly filter: import("@angular/core").InputSignalWithTransform<boolean,
|
|
6
|
+
readonly filter: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTextListComponent, never>;
|
|
7
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTextListComponent, "ard-text-list", never, { "values": { "alias": "values"; "required": true; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
8
9
|
}
|
|
@@ -5,7 +5,13 @@ export declare const SimpleOneAxisAlignment: {
|
|
|
5
5
|
export type SimpleOneAxisAlignment = (typeof SimpleOneAxisAlignment)[keyof typeof SimpleOneAxisAlignment];
|
|
6
6
|
export declare const OneAxisAlignment: {
|
|
7
7
|
readonly Left: "left";
|
|
8
|
-
readonly
|
|
8
|
+
readonly Center: "center";
|
|
9
9
|
readonly Right: "right";
|
|
10
10
|
};
|
|
11
11
|
export type OneAxisAlignment = (typeof OneAxisAlignment)[keyof typeof OneAxisAlignment];
|
|
12
|
+
export declare const OneAxisAlignmentOrientational: {
|
|
13
|
+
readonly Start: "start";
|
|
14
|
+
readonly Center: "center";
|
|
15
|
+
readonly End: "end";
|
|
16
|
+
};
|
|
17
|
+
export type OneAxisAlignmentOrientational = (typeof OneAxisAlignmentOrientational)[keyof typeof OneAxisAlignmentOrientational];
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
import { Nullable } from './utility.types';
|
|
3
|
-
export interface OptionContext<T extends ArdSimplestStorageItem> {
|
|
1
|
+
export type OptionContext<T extends ArdSimplestStorageItem> = {
|
|
4
2
|
$implicit: T;
|
|
5
3
|
item: T;
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
} & {
|
|
5
|
+
[K in keyof Omit<T, 'filtered'>]: T[K];
|
|
6
|
+
};
|
|
8
7
|
export interface ArdSimplestStorageItem {
|
|
9
|
-
readonly itemData:
|
|
8
|
+
readonly itemData: object;
|
|
10
9
|
readonly index: number;
|
|
11
|
-
readonly value:
|
|
12
|
-
readonly label:
|
|
13
|
-
readonly selected:
|
|
14
|
-
readonly highlighted:
|
|
10
|
+
readonly value: any;
|
|
11
|
+
readonly label: string;
|
|
12
|
+
readonly selected: boolean;
|
|
13
|
+
readonly highlighted: boolean;
|
|
15
14
|
}
|
|
16
15
|
export interface ArdOptionSimple extends ArdSimplestStorageItem {
|
|
17
|
-
readonly disabled:
|
|
16
|
+
readonly disabled: boolean;
|
|
18
17
|
}
|
|
19
18
|
export interface ArdOption extends ArdOptionSimple {
|
|
19
|
+
readonly filtered: boolean;
|
|
20
|
+
readonly isExactMatch: boolean;
|
|
20
21
|
readonly group: unknown;
|
|
21
|
-
readonly highlighted_recently:
|
|
22
|
+
readonly highlighted_recently: boolean;
|
|
22
23
|
}
|
|
23
24
|
export interface ArdOptionGroup {
|
|
24
|
-
readonly label:
|
|
25
|
-
readonly disabled:
|
|
26
|
-
readonly
|
|
27
|
-
readonly selected: WritableSignal<Nullable<boolean>>;
|
|
28
|
-
readonly children: WritableSignal<ArdOption[]>;
|
|
25
|
+
readonly label: string;
|
|
26
|
+
readonly disabled: boolean;
|
|
27
|
+
readonly children: ArdOption[];
|
|
29
28
|
}
|
|
30
29
|
export declare const ArdPanelPosition: {
|
|
31
30
|
readonly Top: "top";
|
|
@@ -34,6 +33,18 @@ export declare const ArdPanelPosition: {
|
|
|
34
33
|
};
|
|
35
34
|
export type ArdPanelPosition = (typeof ArdPanelPosition)[keyof typeof ArdPanelPosition];
|
|
36
35
|
export type ArdItemGroupMap = Map<any, ArdOptionGroup>;
|
|
36
|
+
/**
|
|
37
|
+
* Function used to determine the group label for an item, based on the item's data.
|
|
38
|
+
*/
|
|
37
39
|
export type GroupByFn = (item: any) => any;
|
|
38
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Function used to search for items based on a search term.
|
|
42
|
+
*
|
|
43
|
+
* Should return a tuple where the first value is a boolean indicating if the item matches the search term,
|
|
44
|
+
* and the second value is a boolean indicating if the match is an exact match (used for auto-highlighting).
|
|
45
|
+
*/
|
|
46
|
+
export type SearchFn = (searchTerm: string, item: ArdOption) => [boolean, boolean];
|
|
47
|
+
/**
|
|
48
|
+
* Function used to compare a value with an option's value to determine if they are considered equal.
|
|
49
|
+
*/
|
|
39
50
|
export type CompareWithFn = (value: any, optionValue: any) => boolean;
|
|
@@ -31,6 +31,7 @@ export declare const DecorationElementAppearance: {
|
|
|
31
31
|
readonly Outlined: "outlined";
|
|
32
32
|
readonly OutlinedStrong: "outlined-strong";
|
|
33
33
|
readonly Filled: "filled";
|
|
34
|
+
readonly FilledStrong: "filled-strong";
|
|
34
35
|
};
|
|
35
36
|
export type DecorationElementAppearance = (typeof DecorationElementAppearance)[keyof typeof DecorationElementAppearance];
|
|
36
37
|
export declare const PanelVariant: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ardium-ui/ui",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.91",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"first-last": "^1.1.1",
|
|
13
13
|
"more-rounding": "^4.2.2",
|
|
14
14
|
"resolve-object-path": "^2.0.0",
|
|
15
|
-
"
|
|
15
|
+
"lodash": "^4.17.23",
|
|
16
|
+
"@ardium-ui/devkit": "8.0.2-alpha.2",
|
|
16
17
|
"simple-bool": "^3.0.1",
|
|
17
18
|
"take-chance": "^4.3.2",
|
|
18
19
|
"color": "^4.2.3"
|