@ascentgl/ads-ui 22.12.0 → 22.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/fesm2022/ascentgl-ads-ui-src-lib-components-avatar.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-avatar.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-drag-and-drop-list.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-drag-and-drop-list.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-error-page-error-page-code.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-footer.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-footer.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-header-container.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-header-container.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-header.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-header.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-shell-layout.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-shell-layout.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-splash-page.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-splash-page.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs +2 -2
- package/fesm2022/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs.map +1 -1
- package/fesm2022/ascentgl-ads-ui.mjs +311 -270
- package/fesm2022/ascentgl-ads-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/sass/ads-ui/abstracts/_functions.scss +18 -18
- package/src/assets/sass/ads-ui/abstracts/_mixins.scss +90 -90
- package/src/assets/sass/ads-ui/abstracts/_variables.scss +137 -137
- package/src/assets/sass/ads-ui/base/_reset.scss +19 -19
- package/src/assets/sass/ads-ui/base/_typography.scss +179 -179
- package/src/assets/sass/ads-ui/base/_utilities.scss +104 -104
- package/src/assets/sass/ads-ui/main.scss +8 -8
- package/src/assets/sass/ads-ui/overrides/_angular-material.scss +8 -8
- package/src/assets/sass/ads-ui/overrides/angular-material/_bottom-sheet.scss +12 -12
- package/src/assets/sass/ads-ui/overrides/angular-material/_datetimepicker.scss +248 -248
- package/src/assets/sass/ads-ui/overrides/angular-material/_dropdown.scss +60 -60
- package/src/assets/sass/ads-ui/overrides/angular-material/_html.scss +14 -14
- package/src/assets/sass/ads-ui/overrides/angular-material/_mat-list.scss +47 -47
- package/src/assets/sass/ads-ui/overrides/angular-material/_menu.scss +89 -89
- package/src/assets/sass/ads-ui/overrides/angular-material/_search-dropdown-modal.scss +34 -34
- package/src/assets/sass/ads-ui/overrides/angular-material/_snackbar.scss +51 -40
- package/src/assets/sass/ads-ui/overrides/angular-material/_tooltip.scss +76 -76
- package/src/assets/sass/ads-ui/themes/_ads-palette.scss +98 -98
- package/types/ascentgl-ads-ui.d.ts +47 -14
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
$primary: (
|
|
2
|
-
50: #e0e9f1,
|
|
3
|
-
100: #b3c8db,
|
|
4
|
-
200: #80a4c3,
|
|
5
|
-
300: #4d80ab,
|
|
6
|
-
400: #266499,
|
|
7
|
-
500: #5756b3,
|
|
8
|
-
600: #00427f,
|
|
9
|
-
700: #003974,
|
|
10
|
-
800: #00316a,
|
|
11
|
-
900: #002157,
|
|
12
|
-
A100: #89aaff,
|
|
13
|
-
A200: #5685ff,
|
|
14
|
-
A400: #2361ff,
|
|
15
|
-
A700: #094fff,
|
|
16
|
-
contrast: (
|
|
17
|
-
50: #000,
|
|
18
|
-
100: #000,
|
|
19
|
-
200: #000,
|
|
20
|
-
300: #fff,
|
|
21
|
-
400: #fff,
|
|
22
|
-
500: #fff,
|
|
23
|
-
600: #fff,
|
|
24
|
-
700: #fff,
|
|
25
|
-
800: #fff,
|
|
26
|
-
900: #fff,
|
|
27
|
-
A100: #000,
|
|
28
|
-
A200: #000,
|
|
29
|
-
A400: #fff,
|
|
30
|
-
A700: #fff,
|
|
31
|
-
),
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
$accent: (
|
|
35
|
-
50: #e0f3f9,
|
|
36
|
-
100: #b3e0f0,
|
|
37
|
-
200: #80cce6,
|
|
38
|
-
300: #4db8db,
|
|
39
|
-
400: #26a8d4,
|
|
40
|
-
500: #09c,
|
|
41
|
-
600: #0091c7,
|
|
42
|
-
700: #0086c0,
|
|
43
|
-
800: #007cb9,
|
|
44
|
-
900: #006bad,
|
|
45
|
-
A100: #d7edff,
|
|
46
|
-
A200: #a4d7ff,
|
|
47
|
-
A400: #71c0ff,
|
|
48
|
-
A700: #58b5ff,
|
|
49
|
-
contrast: (
|
|
50
|
-
50: #000,
|
|
51
|
-
100: #000,
|
|
52
|
-
200: #000,
|
|
53
|
-
300: #000,
|
|
54
|
-
400: #000,
|
|
55
|
-
500: #fff,
|
|
56
|
-
600: #fff,
|
|
57
|
-
700: #fff,
|
|
58
|
-
800: #fff,
|
|
59
|
-
900: #fff,
|
|
60
|
-
A100: #000,
|
|
61
|
-
A200: #000,
|
|
62
|
-
A400: #000,
|
|
63
|
-
A700: #000,
|
|
64
|
-
),
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
$warn: (
|
|
68
|
-
50: #f7e0e2,
|
|
69
|
-
100: #ebb3b8,
|
|
70
|
-
200: #de8088,
|
|
71
|
-
300: #d04d58,
|
|
72
|
-
400: #c62635,
|
|
73
|
-
500: #bc0011,
|
|
74
|
-
600: #b6000f,
|
|
75
|
-
700: #ad000c,
|
|
76
|
-
800: #a5000a,
|
|
77
|
-
900: #970005,
|
|
78
|
-
A100: #ffc2c2,
|
|
79
|
-
A200: #ff8f90,
|
|
80
|
-
A400: #ff5c5d,
|
|
81
|
-
A700: #ff4244,
|
|
82
|
-
contrast: (
|
|
83
|
-
50: #000,
|
|
84
|
-
100: #000,
|
|
85
|
-
200: #000,
|
|
86
|
-
300: #000,
|
|
87
|
-
400: #000,
|
|
88
|
-
500: #fff,
|
|
89
|
-
600: #fff,
|
|
90
|
-
700: #fff,
|
|
91
|
-
800: #fff,
|
|
92
|
-
900: #fff,
|
|
93
|
-
A100: #000,
|
|
94
|
-
A200: #000,
|
|
95
|
-
A400: #000,
|
|
96
|
-
A700: #000,
|
|
97
|
-
),
|
|
98
|
-
);
|
|
1
|
+
$primary: (
|
|
2
|
+
50: #e0e9f1,
|
|
3
|
+
100: #b3c8db,
|
|
4
|
+
200: #80a4c3,
|
|
5
|
+
300: #4d80ab,
|
|
6
|
+
400: #266499,
|
|
7
|
+
500: #5756b3,
|
|
8
|
+
600: #00427f,
|
|
9
|
+
700: #003974,
|
|
10
|
+
800: #00316a,
|
|
11
|
+
900: #002157,
|
|
12
|
+
A100: #89aaff,
|
|
13
|
+
A200: #5685ff,
|
|
14
|
+
A400: #2361ff,
|
|
15
|
+
A700: #094fff,
|
|
16
|
+
contrast: (
|
|
17
|
+
50: #000,
|
|
18
|
+
100: #000,
|
|
19
|
+
200: #000,
|
|
20
|
+
300: #fff,
|
|
21
|
+
400: #fff,
|
|
22
|
+
500: #fff,
|
|
23
|
+
600: #fff,
|
|
24
|
+
700: #fff,
|
|
25
|
+
800: #fff,
|
|
26
|
+
900: #fff,
|
|
27
|
+
A100: #000,
|
|
28
|
+
A200: #000,
|
|
29
|
+
A400: #fff,
|
|
30
|
+
A700: #fff,
|
|
31
|
+
),
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
$accent: (
|
|
35
|
+
50: #e0f3f9,
|
|
36
|
+
100: #b3e0f0,
|
|
37
|
+
200: #80cce6,
|
|
38
|
+
300: #4db8db,
|
|
39
|
+
400: #26a8d4,
|
|
40
|
+
500: #09c,
|
|
41
|
+
600: #0091c7,
|
|
42
|
+
700: #0086c0,
|
|
43
|
+
800: #007cb9,
|
|
44
|
+
900: #006bad,
|
|
45
|
+
A100: #d7edff,
|
|
46
|
+
A200: #a4d7ff,
|
|
47
|
+
A400: #71c0ff,
|
|
48
|
+
A700: #58b5ff,
|
|
49
|
+
contrast: (
|
|
50
|
+
50: #000,
|
|
51
|
+
100: #000,
|
|
52
|
+
200: #000,
|
|
53
|
+
300: #000,
|
|
54
|
+
400: #000,
|
|
55
|
+
500: #fff,
|
|
56
|
+
600: #fff,
|
|
57
|
+
700: #fff,
|
|
58
|
+
800: #fff,
|
|
59
|
+
900: #fff,
|
|
60
|
+
A100: #000,
|
|
61
|
+
A200: #000,
|
|
62
|
+
A400: #000,
|
|
63
|
+
A700: #000,
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
$warn: (
|
|
68
|
+
50: #f7e0e2,
|
|
69
|
+
100: #ebb3b8,
|
|
70
|
+
200: #de8088,
|
|
71
|
+
300: #d04d58,
|
|
72
|
+
400: #c62635,
|
|
73
|
+
500: #bc0011,
|
|
74
|
+
600: #b6000f,
|
|
75
|
+
700: #ad000c,
|
|
76
|
+
800: #a5000a,
|
|
77
|
+
900: #970005,
|
|
78
|
+
A100: #ffc2c2,
|
|
79
|
+
A200: #ff8f90,
|
|
80
|
+
A400: #ff5c5d,
|
|
81
|
+
A700: #ff4244,
|
|
82
|
+
contrast: (
|
|
83
|
+
50: #000,
|
|
84
|
+
100: #000,
|
|
85
|
+
200: #000,
|
|
86
|
+
300: #000,
|
|
87
|
+
400: #000,
|
|
88
|
+
500: #fff,
|
|
89
|
+
600: #fff,
|
|
90
|
+
700: #fff,
|
|
91
|
+
800: #fff,
|
|
92
|
+
900: #fff,
|
|
93
|
+
A100: #000,
|
|
94
|
+
A200: #000,
|
|
95
|
+
A400: #000,
|
|
96
|
+
A700: #000,
|
|
97
|
+
),
|
|
98
|
+
);
|
|
@@ -159,7 +159,7 @@ declare class AdsButtonComponent {
|
|
|
159
159
|
/** Whether the button is a smaller version */
|
|
160
160
|
size: i0.InputSignal<Size>;
|
|
161
161
|
/** Sets the "type" attribute on the button */
|
|
162
|
-
type: i0.InputSignal<"
|
|
162
|
+
type: i0.InputSignal<"reset" | "submit" | "button">;
|
|
163
163
|
/** Makes the button take 100% width of its container */
|
|
164
164
|
fullWidth: i0.InputSignal<boolean>;
|
|
165
165
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonComponent, never>;
|
|
@@ -1925,8 +1925,6 @@ declare class AdsDatepickerComponent extends AdsDatetimepickerComponent implemen
|
|
|
1925
1925
|
/** @ignore */
|
|
1926
1926
|
private elementRef;
|
|
1927
1927
|
/** @ignore */
|
|
1928
|
-
private readonly overlayContainerRef;
|
|
1929
|
-
/** @ignore */
|
|
1930
1928
|
private intersectionObserver?;
|
|
1931
1929
|
/** @ignore - Cleanup for scroll passthrough (pointerdown + scroll listeners) */
|
|
1932
1930
|
private scrollPassthroughCleanup?;
|
|
@@ -1943,12 +1941,26 @@ declare class AdsDatepickerComponent extends AdsDatetimepickerComponent implemen
|
|
|
1943
1941
|
* Disabling pointer events on the backdrop lets the browser handle scrolling
|
|
1944
1942
|
* natively (preserving momentum / inertia). A document-level pointerdown
|
|
1945
1943
|
* listener replaces the lost backdrop click-to-close behaviour.
|
|
1944
|
+
*
|
|
1945
|
+
* Everything here is scoped to *this* picker's own overlay via {@link getPopupRef}. Reading the
|
|
1946
|
+
* shared `OverlayContainer` instead returns whichever overlay was created first, so a picker used
|
|
1947
|
+
* inside a dialog silently operated on the dialog's backdrop and pane: the dialog lost its
|
|
1948
|
+
* click-outside behavior, and — because a calendar cell is not inside the dialog's pane — the
|
|
1949
|
+
* pointerdown listener treated every click on the calendar as "outside" and closed the picker
|
|
1950
|
+
* before it could select a date.
|
|
1946
1951
|
*/
|
|
1947
1952
|
onOpened(): void;
|
|
1948
1953
|
/** @ignore */
|
|
1949
1954
|
onClosed(): void;
|
|
1950
1955
|
/** @ignore */
|
|
1951
1956
|
private setupScrollPassthrough;
|
|
1957
|
+
/**
|
|
1958
|
+
* @ignore - This picker's own calendar overlay, or undefined while it is closed.
|
|
1959
|
+
* `_popupRef` is private in `MatDatetimepickerComponent`, hence the cast; it is the only handle on
|
|
1960
|
+
* the overlay this picker created, and the only safe one — the `OverlayContainer` is shared by
|
|
1961
|
+
* every overlay on the page.
|
|
1962
|
+
*/
|
|
1963
|
+
private getPopupRef;
|
|
1952
1964
|
/** @ignore - Walk up the DOM to find the first ancestor with overflow-y: auto|scroll */
|
|
1953
1965
|
private findScrollableAncestor;
|
|
1954
1966
|
/** @ignore - Override to dispatch change event on blur when input was modified programmatically */
|
|
@@ -2100,6 +2112,12 @@ declare class AdsSliderComponent extends AdsCheckboxComponent {
|
|
|
2100
2112
|
static ɵcmp: i0.ɵɵComponentDeclaration<AdsSliderComponent, "ads-slider", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "tickInterval": { "alias": "tickInterval"; "required": false; }; "invert": { "alias": "invert"; "required": false; }; "thumbLabel": { "alias": "thumbLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
2101
2113
|
}
|
|
2102
2114
|
|
|
2115
|
+
declare enum PanelClass {
|
|
2116
|
+
Success = "success",
|
|
2117
|
+
Error = "error",
|
|
2118
|
+
Warning = "warning",
|
|
2119
|
+
Primary = "primary"
|
|
2120
|
+
}
|
|
2103
2121
|
type SnackBarData = {
|
|
2104
2122
|
id?: string;
|
|
2105
2123
|
message: string;
|
|
@@ -2109,29 +2127,49 @@ type SnackBarData = {
|
|
|
2109
2127
|
onButtonClick?: () => void;
|
|
2110
2128
|
/**
|
|
2111
2129
|
* Optional duration in milliseconds to auto-close the snackbar.
|
|
2112
|
-
* If not set
|
|
2130
|
+
* If not set, the 'success' and 'warning' panel classes default to 5000ms.
|
|
2131
|
+
* Set to 0 to disable auto-close for any panel class.
|
|
2113
2132
|
*/
|
|
2114
2133
|
autoCloseDuration?: number;
|
|
2134
|
+
/**
|
|
2135
|
+
* Optional override for the leading status icon. Each panel class renders a
|
|
2136
|
+
* predefined icon; set this to display a different one from the icon registry.
|
|
2137
|
+
*/
|
|
2138
|
+
icon?: adsIcon;
|
|
2139
|
+
/** Hide the leading status icon entirely. */
|
|
2140
|
+
hideIcon?: boolean;
|
|
2141
|
+
};
|
|
2142
|
+
/** Leading status icon configuration for a panel class. */
|
|
2143
|
+
type SnackbarIcon = {
|
|
2144
|
+
name: adsIcon;
|
|
2145
|
+
color?: string;
|
|
2146
|
+
stroke?: keyof IconThemes;
|
|
2147
|
+
/** Rotate the glyph 180° (used to turn the information icon into a caution mark). */
|
|
2148
|
+
rotated?: boolean;
|
|
2115
2149
|
};
|
|
2116
2150
|
declare class AdsSnackbarComponent implements AfterViewInit, OnDestroy {
|
|
2117
2151
|
private elementRef;
|
|
2118
2152
|
data: SnackBarData;
|
|
2119
2153
|
snackBarRef: MatSnackBarRef<any>;
|
|
2154
|
+
private registry;
|
|
2120
2155
|
readonly defaultButtonCaption = "Close";
|
|
2121
2156
|
protected readonly PanelClass: typeof PanelClass;
|
|
2122
2157
|
private autoCloseTimeoutId?;
|
|
2123
2158
|
/** @ignore */
|
|
2124
2159
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
2160
|
+
/** @ignore */
|
|
2161
|
+
get panelClass(): PanelClass;
|
|
2125
2162
|
get buttonPanelClass(): Variant;
|
|
2163
|
+
/** Resolved leading status icon for the current panel class, or null when hidden. */
|
|
2164
|
+
get icon(): SnackbarIcon | null;
|
|
2165
|
+
/** Resolved auto-close duration in ms, or null when the snackbar should not auto-close. */
|
|
2166
|
+
get autoCloseDuration(): number | null;
|
|
2167
|
+
/** Whether the countdown progress bar should be shown (only while auto-closing). */
|
|
2168
|
+
get showProgressBar(): boolean;
|
|
2126
2169
|
/** @ignore */
|
|
2127
2170
|
get id(): string;
|
|
2128
2171
|
/** @ignore */
|
|
2129
2172
|
ngAfterViewInit(): void;
|
|
2130
|
-
/**
|
|
2131
|
-
* Sets up the auto-close timer if required.
|
|
2132
|
-
* If autoCloseDuration is 0, null, or undefined, disables auto-close even for 'success'.
|
|
2133
|
-
*/
|
|
2134
|
-
private setupAutoCloseTimer;
|
|
2135
2173
|
/** @ignore */
|
|
2136
2174
|
ngOnDestroy(): void;
|
|
2137
2175
|
/** @ignore */
|
|
@@ -2139,11 +2177,6 @@ declare class AdsSnackbarComponent implements AfterViewInit, OnDestroy {
|
|
|
2139
2177
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdsSnackbarComponent, never>;
|
|
2140
2178
|
static ɵcmp: i0.ɵɵComponentDeclaration<AdsSnackbarComponent, "ads-snackbar", never, {}, {}, never, never, true, never>;
|
|
2141
2179
|
}
|
|
2142
|
-
declare enum PanelClass {
|
|
2143
|
-
Success = "success",
|
|
2144
|
-
Error = "error",
|
|
2145
|
-
Primary = "primary"
|
|
2146
|
-
}
|
|
2147
2180
|
|
|
2148
2181
|
interface IViewportService {
|
|
2149
2182
|
isMatched(breakpoints: string | string[]): boolean;
|