@ardium-ui/ui 5.0.0-alpha.10 → 5.0.0-alpha.101
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 +5898 -2890
- 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 +3 -3
- package/lib/_internal/form-field-component.d.ts +1 -1
- 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 +2 -3
- package/lib/_internal/utils/date.utils.d.ts +16 -0
- 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 +9 -6
- package/lib/buttons/_button-base.defaults.d.ts +3 -2
- package/lib/buttons/button/button.component.d.ts +10 -5
- package/lib/buttons/button/button.defaults.d.ts +1 -2
- package/lib/buttons/button/button.directive.d.ts +23 -0
- package/lib/buttons/button/button.module.d.ts +3 -2
- package/lib/buttons/button/index.d.ts +1 -0
- package/lib/buttons/button-group/button-group.component.d.ts +25 -0
- package/lib/buttons/button-group/button-group.defaults.d.ts +7 -0
- package/lib/buttons/button-group/button-group.module.d.ts +8 -0
- package/lib/buttons/button-group/index.d.ts +3 -0
- package/lib/buttons/fab/fab.component.d.ts +3 -1
- package/lib/buttons/icon-button/icon-button.component.d.ts +2 -1
- package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
- package/lib/calendar/abstract-calendar.d.ts +135 -0
- package/lib/calendar/calendar.component.d.ts +9 -97
- 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 +33 -5
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/range-calendar.component.d.ts +17 -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 +5 -4
- 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/deletable-chip/deletable-chip.component.d.ts +1 -0
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +2 -0
- package/lib/dialog/dialog.component.d.ts +5 -1
- package/lib/dialog/dialog.types.d.ts +1 -0
- package/lib/divider/divider.component.d.ts +2 -4
- 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.types.d.ts +1 -1
- package/lib/file-inputs/file-input/file-input.component.d.ts +3 -3
- package/lib/file-inputs/file-input/file-input.directives.d.ts +3 -3
- package/lib/file-inputs/file-input/file-input.module.d.ts +1 -1
- package/lib/file-inputs/file-input-base.d.ts +0 -1
- 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/form-field-base.d.ts +3 -1
- package/lib/form-field/form-field-child.token.d.ts +5 -5
- package/lib/form-field/form-field-native-inputs.d.ts +3 -9
- 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/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +2 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +1 -0
- package/lib/grid/grid.component.d.ts +63 -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 +20 -0
- package/lib/grid/index.d.ts +4 -0
- package/lib/inputs/_simple-input-base.d.ts +6 -2
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +2 -2
- package/lib/inputs/date-input/abstract-date-input.d.ts +111 -0
- package/lib/inputs/date-input/date-input.component.d.ts +21 -83
- 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 +32 -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 +46 -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/hex-input/hex-input.component.d.ts +1 -2
- 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 +12 -6
- 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 +4 -4
- package/lib/modal/modal.component.d.ts +3 -1
- package/lib/modal/modal.defaults.d.ts +2 -0
- package/lib/radio/radio/radio.component.d.ts +8 -3
- package/lib/radio/radio-group.component.d.ts +3 -2
- package/lib/search-functions.d.ts +1 -1
- package/lib/select/select.component.d.ts +28 -22
- 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 +30 -23
- 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/stack/index.d.ts +3 -0
- package/lib/stack/stack.component.d.ts +26 -0
- package/lib/stack/stack.defaults.d.ts +14 -0
- package/lib/stack/stack.module.d.ts +7 -0
- package/lib/star/rating-input/rating-input.component.d.ts +3 -2
- 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 +14 -7
- package/lib/tabber/tabber.component.d.ts +22 -7
- 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/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-group.css +19 -0
- package/prebuilt-themes/default/buttons/button-group.css.map +1 -0
- package/prebuilt-themes/default/buttons/button.css +332 -301
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +316 -299
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +301 -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 +98 -65
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +355 -362
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +418 -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 +109 -88
- 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 -102
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +148 -128
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +192 -132
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +102 -137
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +142 -63
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +126 -110
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +394 -325
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +159 -117
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +146 -107
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +224 -169
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +126 -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 -72
- 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 +258 -225
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +438 -414
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +311 -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 +425 -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 +281 -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 +4 -1
- package/themes/_variables.scss +2 -1
- package/themes/default/_clear-button.scss +5 -0
- package/themes/default/_coloring.scss +7 -0
- package/themes/default/_mixins.scss +10 -8
- package/themes/default/badge.scss +115 -80
- package/themes/default/buttons/_button-mixins.scss +44 -33
- package/themes/default/buttons/button-group.scss +19 -0
- package/themes/default/buttons/button.scss +97 -63
- package/themes/default/buttons/fab.scss +76 -49
- package/themes/default/buttons/icon-button.scss +72 -45
- package/themes/default/calendar.scss +257 -163
- package/themes/default/card.scss +167 -121
- package/themes/default/checkbox-list.scss +101 -62
- package/themes/default/checkbox.scss +70 -88
- package/themes/default/chips.scss +216 -147
- package/themes/default/color-display.scss +40 -28
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +125 -100
- 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 +71 -66
- package/themes/default/form-field.scss +136 -106
- package/themes/default/inputs/_shared.scss +61 -12
- package/themes/default/inputs/autocomplete-input.scss +104 -31
- package/themes/default/inputs/color-input.scss +34 -32
- package/themes/default/inputs/date-input.scss +90 -20
- package/themes/default/inputs/digit-input.scss +111 -77
- package/themes/default/inputs/file-input.scss +162 -81
- package/themes/default/inputs/hex-input.scss +70 -16
- package/themes/default/inputs/input.scss +57 -6
- package/themes/default/inputs/number-input.scss +175 -98
- package/themes/default/inputs/password-input.scss +102 -29
- package/themes/default/kbd-shortcut.scss +16 -8
- package/themes/default/kbd.scss +35 -16
- package/themes/default/modal.scss +109 -74
- package/themes/default/progress-bar.scss +126 -102
- package/themes/default/progress-circle.scss +49 -41
- package/themes/default/radio.scss +129 -89
- package/themes/default/segment.scss +283 -255
- package/themes/default/select.scss +265 -197
- package/themes/default/slide-toggle.scss +193 -116
- package/themes/default/slider.scss +250 -187
- package/themes/default/snackbar.scss +52 -32
- package/themes/default/spinner.scss +24 -14
- package/themes/default/stars.scss +115 -67
- 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
|
@@ -7,17 +7,18 @@ export declare class ArdiumSliderComponent extends _AbstractSlider<number> {
|
|
|
7
7
|
readonly componentName = "slider";
|
|
8
8
|
protected readonly _DEFAULTS: ArdSliderDefaults;
|
|
9
9
|
constructor(defaults: ArdSliderDefaults);
|
|
10
|
-
protected _value: number
|
|
11
|
-
_tooltipValue: string
|
|
12
|
-
|
|
13
|
-
getTooltipContext(): SliderTooltipContext;
|
|
10
|
+
protected readonly _value: import("@angular/core").WritableSignal<number>;
|
|
11
|
+
protected readonly _tooltipValue: import("@angular/core").Signal<string>;
|
|
12
|
+
readonly tooltipContext: import("@angular/core").Signal<SliderTooltipContext>;
|
|
14
13
|
writeValue(v: any): void;
|
|
14
|
+
cleanupValueAfterMinMaxStepChange(): void;
|
|
15
15
|
reset(): void;
|
|
16
16
|
increment(steps?: number): void;
|
|
17
17
|
decrement(steps?: number): void;
|
|
18
18
|
onTrackHitboxPointerDown(event: MouseEvent | TouchEvent): void;
|
|
19
19
|
onPointerMove(event: MouseEvent | TouchEvent): void;
|
|
20
20
|
protected _percentValueToValue(percent: number): number;
|
|
21
|
+
protected readonly _handlePositions: import("@angular/core").Signal<[number, number]>;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumSliderComponent, never>;
|
|
22
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumSliderComponent, "ard-slider", never, {}, {}, never, never, false, never>;
|
|
23
24
|
}
|
|
@@ -15,14 +15,14 @@ export declare const SliderDecorationPosition: {
|
|
|
15
15
|
export type SliderDecorationPosition = (typeof SliderDecorationPosition)[keyof typeof SliderDecorationPosition];
|
|
16
16
|
export interface SliderLabelObject {
|
|
17
17
|
label: string | number;
|
|
18
|
-
|
|
18
|
+
value: number;
|
|
19
19
|
}
|
|
20
20
|
export interface _InternalSliderLabelObject {
|
|
21
21
|
label: string;
|
|
22
22
|
positionPercent: string;
|
|
23
23
|
}
|
|
24
24
|
export interface SliderRange<T = number> {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
from: T;
|
|
26
|
+
to: T;
|
|
27
27
|
}
|
|
28
28
|
export type SliderTooltipFormatFn = (value: number) => string | number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { OverlayRef } from '@angular/cdk/overlay';
|
|
1
2
|
import { ComponentType } from '@angular/cdk/portal';
|
|
2
3
|
import { InjectionToken } from '@angular/core';
|
|
3
4
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
-
import { ArdSnackbarData, ArdSnackbarOptions, ArdSnackbarType } from './snackbar.types';
|
|
5
|
-
import { OverlayRef } from '@angular/cdk/overlay';
|
|
6
5
|
import { ComponentColor } from '../types/colors.types';
|
|
6
|
+
import { ArdSnackbarData, ArdSnackbarOptions, ArdSnackbarType } from './snackbar.types';
|
|
7
7
|
export declare const ARD_SNACKBAR_DATA: InjectionToken<ArdSnackbarData>;
|
|
8
8
|
export declare const ARD_SNACKBAR_COLOR: InjectionToken<ComponentColor>;
|
|
9
9
|
export declare const ARD_SNACKBAR_TYPE: InjectionToken<ArdSnackbarType>;
|
|
@@ -17,20 +17,53 @@ export declare class _ArdSnackbarRefInternal<T> {
|
|
|
17
17
|
private readonly _onOpen;
|
|
18
18
|
private readonly _onCloseStart;
|
|
19
19
|
markAsOpened(): void;
|
|
20
|
-
markAsStartingToClose(): void;
|
|
20
|
+
markAsStartingToClose(withAction?: boolean): void;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Reference to an opened snackbar.
|
|
24
|
+
* Provides methods for closing the snackbar programmatically, and observables for subscribing to open, close, and action events.
|
|
25
|
+
*/
|
|
22
26
|
export declare class ArdSnackbarRef<T = unknown> {
|
|
23
27
|
private readonly dismiss;
|
|
24
28
|
private readonly _onOpen;
|
|
25
29
|
private readonly _onCloseStart;
|
|
26
30
|
constructor(dismiss: (withAction?: boolean) => void, _onOpen: Subject<void>, _onCloseStart: BehaviorSubject<boolean>);
|
|
27
31
|
private readonly _onClose;
|
|
32
|
+
private readonly _onAction;
|
|
33
|
+
/**
|
|
34
|
+
* Observable that emits when the snackbar is opened. Completes after emitting the first value.
|
|
35
|
+
*/
|
|
28
36
|
readonly onOpen: import("rxjs").Observable<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Observable that emits when the snackbar is closed and all animations have finished. Emits a boolean value indicating whether the snackbar was closed as a result of the user clicking the action button (true) or not (false). Completes after emitting the first value.
|
|
39
|
+
*/
|
|
29
40
|
readonly onClose: import("rxjs").Observable<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* Observable that emits when the snackbar action is triggered, before the snackbar starts closing. Completes when the snackbar is closed, regardless of whether any value was emitted.
|
|
43
|
+
*/
|
|
44
|
+
readonly onAction: import("rxjs").Observable<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Observable that emits when the snackbar starts the closing process. Emits a boolean value indicating whether the closing was triggered by the user clicking the action button (true) or not (false). Completes after emitting the first value.
|
|
47
|
+
*/
|
|
30
48
|
readonly onCloseStart: import("rxjs").Observable<boolean>;
|
|
31
|
-
|
|
49
|
+
/**
|
|
50
|
+
* The instance of the component rendered inside the snackbar.
|
|
51
|
+
*/
|
|
52
|
+
readonly instance: T;
|
|
53
|
+
/**
|
|
54
|
+
* Closes the snackbar, optionally indicating that the action was triggered.
|
|
55
|
+
* @param withAction A boolean value indicating whether the snackbar is being closed as a result of the user clicking the action button (true) or not (false).
|
|
56
|
+
*/
|
|
32
57
|
close(withAction?: boolean): void;
|
|
58
|
+
/**
|
|
59
|
+
* Marks the snackbar as closed after the closing animation has finished.
|
|
60
|
+
* @param withAction
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
33
63
|
markAsClosed(withAction?: boolean): void;
|
|
34
64
|
private _isClosed;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates whether the snackbar has been closed and the closing animation has finished.
|
|
67
|
+
*/
|
|
35
68
|
get isClosed(): boolean;
|
|
36
69
|
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ArdBreakpointsConfig } from '../breakpoints/breakpoints';
|
|
2
|
+
import { ArdGridAlign, ArdGridDirection, ArdGridJustify, ArdGridWrap } from '../grid';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ArdiumStackComponent {
|
|
5
|
+
private readonly _componentId;
|
|
6
|
+
protected readonly _DEFAULTS: import("./stack.defaults").ArdStackDefaults;
|
|
7
|
+
private readonly _breakpointService;
|
|
8
|
+
readonly direction: import("@angular/core").InputSignalWithTransform<Required<ArdBreakpointsConfig<ArdGridDirection>>, string | ArdBreakpointsConfig<ArdGridDirection>>;
|
|
9
|
+
readonly justifyContent: import("@angular/core").InputSignalWithTransform<Required<ArdBreakpointsConfig<ArdGridJustify>>, string | ArdBreakpointsConfig<ArdGridJustify>>;
|
|
10
|
+
readonly alignItems: import("@angular/core").InputSignalWithTransform<Required<ArdBreakpointsConfig<ArdGridAlign>>, string | ArdBreakpointsConfig<ArdGridAlign>>;
|
|
11
|
+
readonly spacing: import("@angular/core").InputSignalWithTransform<Required<ArdBreakpointsConfig<string | number>>, string | number | ArdBreakpointsConfig<string | number>>;
|
|
12
|
+
readonly columnSpacing: import("@angular/core").InputSignalWithTransform<ArdBreakpointsConfig<string | number> | null, string | number | ArdBreakpointsConfig<string | number> | null>;
|
|
13
|
+
readonly rowSpacing: import("@angular/core").InputSignalWithTransform<ArdBreakpointsConfig<string | number> | null, string | number | ArdBreakpointsConfig<string | number> | null>;
|
|
14
|
+
readonly wrap: import("@angular/core").InputSignalWithTransform<Required<ArdBreakpointsConfig<ArdGridWrap>>, string | ArdBreakpointsConfig<ArdGridWrap>>;
|
|
15
|
+
readonly finalColumnSpacing: import("@angular/core").Signal<ArdBreakpointsConfig<string | number>>;
|
|
16
|
+
readonly finalRowSpacing: import("@angular/core").Signal<ArdBreakpointsConfig<string | number>>;
|
|
17
|
+
readonly currentDirection: import("@angular/core").Signal<ArdGridDirection | undefined>;
|
|
18
|
+
readonly currentJustifyContent: import("@angular/core").Signal<ArdGridJustify | undefined>;
|
|
19
|
+
readonly currentAlignItems: import("@angular/core").Signal<ArdGridAlign | undefined>;
|
|
20
|
+
readonly currentColumnSpacing: import("@angular/core").Signal<string | number | undefined>;
|
|
21
|
+
readonly currentRowSpacing: import("@angular/core").Signal<string | number | undefined>;
|
|
22
|
+
readonly currentWrap: import("@angular/core").Signal<ArdGridWrap | undefined>;
|
|
23
|
+
readonly currentStyle: import("@angular/core").Signal<string>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumStackComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumStackComponent, "ard-stack", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "justifyContent": { "alias": "justifyContent"; "required": false; "isSignal": true; }; "alignItems": { "alias": "alignItems"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "columnSpacing": { "alias": "columnSpacing"; "required": false; "isSignal": true; }; "rowSpacing": { "alias": "rowSpacing"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
import { ArdBreakpointsConfig } from '../breakpoints';
|
|
3
|
+
import { ArdGridAlign, ArdGridDirection, ArdGridJustify, ArdGridWrap } from '../grid';
|
|
4
|
+
export interface ArdStackDefaults {
|
|
5
|
+
direction: ArdGridDirection | ArdBreakpointsConfig<ArdGridDirection>;
|
|
6
|
+
justifyContent: ArdGridJustify | ArdBreakpointsConfig<ArdGridJustify>;
|
|
7
|
+
alignItems: ArdGridAlign | ArdBreakpointsConfig<ArdGridAlign>;
|
|
8
|
+
spacing: number | string | ArdBreakpointsConfig<number | string>;
|
|
9
|
+
columnSpacing: null | number | string | ArdBreakpointsConfig<number | string>;
|
|
10
|
+
rowSpacing: null | number | string | ArdBreakpointsConfig<number | string>;
|
|
11
|
+
wrap: ArdGridWrap | ArdBreakpointsConfig<ArdGridWrap>;
|
|
12
|
+
}
|
|
13
|
+
export declare const ARD_STACK_DEFAULTS: InjectionToken<ArdStackDefaults>;
|
|
14
|
+
export declare function provideStackDefaults(config: Partial<ArdStackDefaults>): Provider;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stack.component";
|
|
3
|
+
export declare class ArdiumStackModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumStackModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumStackModule, [typeof i1.ArdiumStackComponent], never, [typeof i1.ArdiumStackComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumStackModule>;
|
|
7
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import { NumberLike } from '@ardium-ui/devkit';
|
|
3
|
-
import {
|
|
3
|
+
import { _FormFieldComponentBase } from '../../_internal/form-field-component';
|
|
4
|
+
import { ArdFormFieldControl } from '../../form-field';
|
|
4
5
|
import { ArdiumStarButtonComponent } from '../star-button/star-button.component';
|
|
5
6
|
import { StarColor } from '../star.types';
|
|
6
7
|
import { ArdRatingInputDefaults } from './rating-input.defaults';
|
|
7
8
|
import { ArdRatingInputStarButtonTemplateDirective } from './rating-input.directives';
|
|
8
9
|
import { ArdRatingInputStarButtonTemplateContext } from './rating-input.types';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class ArdiumRatingInputComponent extends
|
|
11
|
+
export declare class ArdiumRatingInputComponent extends _FormFieldComponentBase implements ControlValueAccessor, ArdFormFieldControl {
|
|
11
12
|
readonly wrapperClasses: import("@angular/core").InputSignal<string>;
|
|
12
13
|
protected readonly _DEFAULTS: ArdRatingInputDefaults;
|
|
13
14
|
readonly color: import("@angular/core").InputSignal<StarColor>;
|
|
@@ -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,20 +1,27 @@
|
|
|
1
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
1
2
|
import { BooleanLike } from '@ardium-ui/devkit';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ArdiumTabComponent {
|
|
4
|
-
protected readonly _DEFAULTS: import("
|
|
5
|
+
export declare class ArdiumTabComponent implements OnDestroy {
|
|
6
|
+
protected readonly _DEFAULTS: import("../tabber.defaults").ArdTabberDefaults;
|
|
5
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>;
|
|
6
10
|
readonly selected: import("@angular/core").WritableSignal<boolean>;
|
|
7
11
|
set _selected(v: any);
|
|
8
12
|
setSelected(state: boolean): void;
|
|
9
|
-
get _selectedHostAttribute(): boolean;
|
|
10
13
|
private _emitChange;
|
|
11
14
|
readonly focused: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
-
readonly _label: import("@angular/core").InputSignal<string | null>;
|
|
13
|
-
readonly label: import("@angular/core").Signal<string
|
|
14
|
-
|
|
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>;
|
|
15
19
|
readonly focusEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
16
20
|
readonly blurEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
17
21
|
readonly selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
22
|
+
readonly selectedChangeInternal$: Subject<boolean>;
|
|
23
|
+
private _selectedChangeSub;
|
|
24
|
+
ngOnDestroy(): void;
|
|
18
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTabComponent, never>;
|
|
19
|
-
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>;
|
|
20
27
|
}
|
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { BooleanLike } from '@ardium-ui/devkit';
|
|
3
3
|
import { OneAxisAlignment } from '../types/alignment.types';
|
|
4
4
|
import { ComponentColor } from '../types/colors.types';
|
|
5
5
|
import { ArdiumTabComponent } from './tab/tab.component';
|
|
6
|
+
import { ArdTabberLabelTemplateDirective } from './tabber.directives';
|
|
7
|
+
import { TabberLabelContext } from './tabber.types';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ArdiumTabberComponent implements AfterContentInit {
|
|
9
|
+
export declare class ArdiumTabberComponent implements AfterContentInit, OnChanges {
|
|
8
10
|
protected readonly _DEFAULTS: import("./tabber.defaults").ArdTabberDefaults;
|
|
9
11
|
readonly tabs: import("@angular/core").Signal<readonly ArdiumTabComponent[]>;
|
|
10
|
-
readonly
|
|
11
|
-
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;
|
|
12
19
|
readonly initialTab: import("@angular/core").InputSignal<string | undefined>;
|
|
13
20
|
ngAfterContentInit(): void;
|
|
14
|
-
|
|
21
|
+
selectTab(tab: ArdiumTabComponent): void;
|
|
22
|
+
private _unselectSpecificTab;
|
|
23
|
+
private _unselectCurrentTab;
|
|
24
|
+
private _selectNewTab;
|
|
15
25
|
onTabFocus(tab: ArdiumTabComponent): void;
|
|
16
26
|
onTabBlur(tab: ArdiumTabComponent): void;
|
|
17
27
|
readonly focusEvent: import("@angular/core").OutputEmitterRef<string>;
|
|
18
28
|
readonly blurEvent: import("@angular/core").OutputEmitterRef<string>;
|
|
19
|
-
readonly changeTab: import("@angular/core").OutputEmitterRef<string>;
|
|
20
29
|
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
21
30
|
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
22
31
|
readonly stretchTabs: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
@@ -24,6 +33,12 @@ export declare class ArdiumTabberComponent implements AfterContentInit {
|
|
|
24
33
|
readonly tabAlignment: import("@angular/core").InputSignal<OneAxisAlignment>;
|
|
25
34
|
readonly tabContainerClasses: import("@angular/core").Signal<string>;
|
|
26
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
|
+
}[]>;
|
|
27
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTabberComponent, never>;
|
|
28
|
-
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>;
|
|
29
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
|
}
|
|
@@ -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.101",
|
|
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.1.0",
|
|
16
17
|
"simple-bool": "^3.0.1",
|
|
17
18
|
"take-chance": "^4.3.2",
|
|
18
19
|
"color": "^4.2.3"
|