@ascentgl/ads-ui 0.0.9 → 0.0.11
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/esm2022/lib/components/avatar/avatar.component.mjs +3 -3
- package/esm2022/lib/components/divider/divider.component.mjs +4 -4
- package/esm2022/lib/components/error-page/error-page.component.mjs +2 -2
- package/esm2022/lib/components/nav-bar/nav-menu/public-api.mjs +2 -1
- package/esm2022/lib/components/nav-bar/side-nav-bar/public-api.mjs +2 -1
- package/esm2022/lib/components/nav-bar/side-nav-bar/side-nav-bar.component.mjs +13 -4
- package/esm2022/lib/components/progress-indicators/progress-indicator-spinner/progress-indicator-spinner.component.mjs +2 -2
- package/esm2022/lib/components/steppers/vertical-stepper/public-api.mjs +1 -2
- package/esm2022/lib/components/steppers/vertical-stepper/vertical-step.type.mjs +1 -5
- package/esm2022/lib/components/steppers/vertical-stepper/vertical-stepper.component.mjs +11 -108
- package/esm2022/lib/components/steppers/vertical-stepper/vertical-stepper.module.mjs +4 -12
- package/esm2022/lib/components/tags/create-tag/create-tag.component.mjs +2 -2
- package/esm2022/src/lib/components/avatar/avatar.component.mjs +3 -3
- package/esm2022/src/lib/components/divider/divider.component.mjs +4 -4
- package/esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/progress-indicator-spinner.component.mjs +2 -2
- 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-divider.mjs +3 -3
- package/fesm2022/ascentgl-ads-ui-src-lib-components-divider.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.mjs +37 -233
- package/fesm2022/ascentgl-ads-ui.mjs.map +1 -1
- package/lib/components/divider/divider.component.d.ts +3 -3
- package/lib/components/nav-bar/nav-menu/public-api.d.ts +1 -0
- package/lib/components/nav-bar/side-nav-bar/public-api.d.ts +1 -0
- package/lib/components/nav-bar/side-nav-bar/side-nav-bar.component.d.ts +2 -0
- package/lib/components/steppers/vertical-stepper/public-api.d.ts +0 -1
- package/lib/components/steppers/vertical-stepper/vertical-step.type.d.ts +2 -30
- package/lib/components/steppers/vertical-stepper/vertical-stepper.component.d.ts +6 -47
- package/lib/components/steppers/vertical-stepper/vertical-stepper.module.d.ts +1 -2
- package/package.json +42 -42
- package/src/assets/sass/ads-ui/base/_reset.scss +8 -30
- package/src/lib/components/divider/divider.component.d.ts +3 -3
- package/esm2022/lib/components/steppers/vertical-stepper/vertical-helpers.mjs +0 -98
- package/lib/components/steppers/vertical-stepper/vertical-helpers.d.ts +0 -24
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export type DividerStyle = {
|
|
4
4
|
margin: string | number;
|
|
5
5
|
'background-color': string;
|
|
6
6
|
};
|
|
7
|
-
export declare class DividerComponent implements
|
|
7
|
+
export declare class DividerComponent implements OnInit {
|
|
8
8
|
/**
|
|
9
9
|
* The divider left and right margin
|
|
10
10
|
*/
|
|
@@ -18,7 +18,7 @@ export declare class DividerComponent implements OnChanges {
|
|
|
18
18
|
/** @ignore */
|
|
19
19
|
private colors;
|
|
20
20
|
/** @ignore */
|
|
21
|
-
|
|
21
|
+
ngOnInit(): void;
|
|
22
22
|
/** @ignore */
|
|
23
23
|
private setDividerStyle;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
@@ -1,43 +1,15 @@
|
|
|
1
1
|
import { adsIcon } from '@ascentgl/ads-icons/icons';
|
|
2
|
-
export type VerticalStepBase = {
|
|
3
|
-
title: string;
|
|
4
|
-
date?: Date;
|
|
5
|
-
icon?: adsIcon;
|
|
6
|
-
status?: VerticalStepStatus;
|
|
7
|
-
};
|
|
8
|
-
export type VerticalStepWithStatus = VerticalStepBase & {
|
|
9
|
-
status: VerticalStepStatus;
|
|
10
|
-
};
|
|
11
2
|
export type VerticalStep = {
|
|
12
3
|
title: string;
|
|
13
4
|
date?: Date;
|
|
14
5
|
icon: adsIcon;
|
|
15
6
|
status: VerticalStepStatus;
|
|
16
7
|
onClick?: (step: VerticalStep) => void;
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
export type VerticalStyle = {
|
|
20
|
-
circle: VerticalCircleStyle;
|
|
21
|
-
lineBefore: VerticalLineStyle;
|
|
22
|
-
lineAfter: VerticalLineStyle;
|
|
23
|
-
skipped: VerticalCircleStyle;
|
|
24
|
-
};
|
|
25
|
-
export type VerticalCircleStyle = {
|
|
26
|
-
width: string;
|
|
27
|
-
height: string;
|
|
28
|
-
'border-radius': string;
|
|
29
|
-
};
|
|
30
|
-
export type VerticalLineStyle = {
|
|
31
|
-
width: string;
|
|
32
|
-
top: string;
|
|
8
|
+
tooltip?: string;
|
|
33
9
|
};
|
|
34
10
|
export declare enum VerticalStepStatus {
|
|
35
11
|
Completed = "completed",
|
|
36
12
|
Current = "current",
|
|
37
13
|
Future = "future",
|
|
38
|
-
|
|
39
|
-
Rejected = "rejected",
|
|
40
|
-
Alert = "alert",
|
|
41
|
-
Disabled = "disabled",
|
|
42
|
-
DisabledRejected = "disabled-rejected"
|
|
14
|
+
Disabled = "disabled"
|
|
43
15
|
}
|
|
@@ -1,58 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VerticalStep, VerticalStepStatus
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { VerticalStep, VerticalStepStatus } from './vertical-step.type';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AdsVerticalStepperComponent implements OnInit
|
|
5
|
-
private element;
|
|
6
|
-
private renderer;
|
|
7
|
-
private window;
|
|
8
|
-
constructor(element: ElementRef, renderer: Renderer2, window: Window);
|
|
9
|
-
/**
|
|
10
|
-
* The unique ID for the vertical stepper
|
|
11
|
-
*/
|
|
12
|
-
id: string;
|
|
4
|
+
export declare class AdsVerticalStepperComponent implements OnInit {
|
|
13
5
|
/**
|
|
14
6
|
* The steps to display
|
|
15
7
|
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The size of the icons
|
|
19
|
-
*/
|
|
20
|
-
iconSize: 'sm' | 'md' | 'lg';
|
|
21
|
-
/**
|
|
22
|
-
* Whether the viewport is mobile
|
|
23
|
-
*/
|
|
24
|
-
isMobile: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Enable tooltip
|
|
27
|
-
*/
|
|
28
|
-
enableTooltip: boolean;
|
|
29
|
-
isLinear: boolean;
|
|
30
|
-
/** @ignore */
|
|
31
|
-
stepElements: QueryList<ElementRef>;
|
|
8
|
+
steps: import("@angular/core").InputSignal<VerticalStep[]>;
|
|
32
9
|
/** @ignore */
|
|
33
10
|
focusedStepIndex: number;
|
|
34
11
|
/** @ignore */
|
|
35
|
-
|
|
36
|
-
/** @ignore */
|
|
37
|
-
style: VerticalStyle;
|
|
38
|
-
/** @ignore */
|
|
39
|
-
private iconMap;
|
|
40
|
-
/** @ignore */
|
|
41
|
-
private shouldScroll;
|
|
42
|
-
/** @ignore */
|
|
43
|
-
private stepWidth;
|
|
44
|
-
/** @ignore */
|
|
45
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
protected readonly VerticalStepStatus: typeof VerticalStepStatus;
|
|
46
13
|
/** @ignore */
|
|
47
14
|
ngOnInit(): void;
|
|
48
|
-
/** @ignore */
|
|
49
|
-
private centerFocusedStep;
|
|
50
|
-
/** @ignore */
|
|
51
|
-
private resetStepperScrollState;
|
|
52
|
-
/** @ignore */
|
|
53
|
-
private setCircleSize;
|
|
54
|
-
/** @ignore */
|
|
55
|
-
private setStepperScrollState;
|
|
56
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdsVerticalStepperComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AdsVerticalStepperComponent, "ads-vertical-stepper", never, { "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdsVerticalStepperComponent, "ads-vertical-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
58
17
|
}
|
|
@@ -3,9 +3,8 @@ import * as i1 from "./vertical-stepper.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/material/tooltip";
|
|
5
5
|
import * as i4 from "@ascentgl/ads-icons";
|
|
6
|
-
import * as i5 from "@ascentgl/ads-utils";
|
|
7
6
|
export declare class AdsVerticalStepperModule {
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdsVerticalStepperModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdsVerticalStepperModule, [typeof i1.AdsVerticalStepperComponent], [typeof i2.CommonModule, typeof i3.MatTooltipModule, typeof i4.AdsIconModule
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdsVerticalStepperModule, [typeof i1.AdsVerticalStepperComponent], [typeof i2.CommonModule, typeof i3.MatTooltipModule, typeof i4.AdsIconModule], [typeof i1.AdsVerticalStepperComponent]>;
|
|
10
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdsVerticalStepperModule>;
|
|
11
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ascentgl/ads-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@ascentgl/ads-icons": ">=0.0.0",
|
|
6
6
|
"@ascentgl/ads-utils": ">=0.0.0",
|
|
@@ -53,6 +53,12 @@
|
|
|
53
53
|
"esm": "./esm2022/src/lib/components/drag-and-drop-list/ascentgl-ads-ui-src-lib-components-drag-and-drop-list.mjs",
|
|
54
54
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-drag-and-drop-list.mjs"
|
|
55
55
|
},
|
|
56
|
+
"./src/lib/components/footer": {
|
|
57
|
+
"types": "./src/lib/components/footer/index.d.ts",
|
|
58
|
+
"esm2022": "./esm2022/src/lib/components/footer/ascentgl-ads-ui-src-lib-components-footer.mjs",
|
|
59
|
+
"esm": "./esm2022/src/lib/components/footer/ascentgl-ads-ui-src-lib-components-footer.mjs",
|
|
60
|
+
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer.mjs"
|
|
61
|
+
},
|
|
56
62
|
"./src/lib/components/header": {
|
|
57
63
|
"types": "./src/lib/components/header/index.d.ts",
|
|
58
64
|
"esm2022": "./esm2022/src/lib/components/header/ascentgl-ads-ui-src-lib-components-header.mjs",
|
|
@@ -65,23 +71,17 @@
|
|
|
65
71
|
"esm": "./esm2022/src/lib/components/pagination/ascentgl-ads-ui-src-lib-components-pagination.mjs",
|
|
66
72
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-pagination.mjs"
|
|
67
73
|
},
|
|
68
|
-
"./src/lib/components/shell-layout": {
|
|
69
|
-
"types": "./src/lib/components/shell-layout/index.d.ts",
|
|
70
|
-
"esm2022": "./esm2022/src/lib/components/shell-layout/ascentgl-ads-ui-src-lib-components-shell-layout.mjs",
|
|
71
|
-
"esm": "./esm2022/src/lib/components/shell-layout/ascentgl-ads-ui-src-lib-components-shell-layout.mjs",
|
|
72
|
-
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-shell-layout.mjs"
|
|
73
|
-
},
|
|
74
74
|
"./src/lib/components/splash-page": {
|
|
75
75
|
"types": "./src/lib/components/splash-page/index.d.ts",
|
|
76
76
|
"esm2022": "./esm2022/src/lib/components/splash-page/ascentgl-ads-ui-src-lib-components-splash-page.mjs",
|
|
77
77
|
"esm": "./esm2022/src/lib/components/splash-page/ascentgl-ads-ui-src-lib-components-splash-page.mjs",
|
|
78
78
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-splash-page.mjs"
|
|
79
79
|
},
|
|
80
|
-
"./src/lib/components/
|
|
81
|
-
"types": "./src/lib/components/
|
|
82
|
-
"esm2022": "./esm2022/src/lib/components/
|
|
83
|
-
"esm": "./esm2022/src/lib/components/
|
|
84
|
-
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-
|
|
80
|
+
"./src/lib/components/shell-layout": {
|
|
81
|
+
"types": "./src/lib/components/shell-layout/index.d.ts",
|
|
82
|
+
"esm2022": "./esm2022/src/lib/components/shell-layout/ascentgl-ads-ui-src-lib-components-shell-layout.mjs",
|
|
83
|
+
"esm": "./esm2022/src/lib/components/shell-layout/ascentgl-ads-ui-src-lib-components-shell-layout.mjs",
|
|
84
|
+
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-shell-layout.mjs"
|
|
85
85
|
},
|
|
86
86
|
"./src/lib/components/buttons/button-container": {
|
|
87
87
|
"types": "./src/lib/components/buttons/button-container/index.d.ts",
|
|
@@ -95,6 +95,18 @@
|
|
|
95
95
|
"esm": "./esm2022/src/lib/components/error-page/error-page-code/ascentgl-ads-ui-src-lib-components-error-page-error-page-code.mjs",
|
|
96
96
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-error-page-error-page-code.mjs"
|
|
97
97
|
},
|
|
98
|
+
"./src/lib/components/footer/container": {
|
|
99
|
+
"types": "./src/lib/components/footer/container/index.d.ts",
|
|
100
|
+
"esm2022": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
|
|
101
|
+
"esm": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
|
|
102
|
+
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs"
|
|
103
|
+
},
|
|
104
|
+
"./src/lib/components/logo/primary-logo": {
|
|
105
|
+
"types": "./src/lib/components/logo/primary-logo/index.d.ts",
|
|
106
|
+
"esm2022": "./esm2022/src/lib/components/logo/primary-logo/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs",
|
|
107
|
+
"esm": "./esm2022/src/lib/components/logo/primary-logo/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs",
|
|
108
|
+
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs"
|
|
109
|
+
},
|
|
98
110
|
"./src/lib/components/header/container": {
|
|
99
111
|
"types": "./src/lib/components/header/container/index.d.ts",
|
|
100
112
|
"esm2022": "./esm2022/src/lib/components/header/container/ascentgl-ads-ui-src-lib-components-header-container.mjs",
|
|
@@ -107,12 +119,6 @@
|
|
|
107
119
|
"esm": "./esm2022/src/lib/components/header/org-display-text/ascentgl-ads-ui-src-lib-components-header-org-display-text.mjs",
|
|
108
120
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-header-org-display-text.mjs"
|
|
109
121
|
},
|
|
110
|
-
"./src/lib/components/logo/primary-logo": {
|
|
111
|
-
"types": "./src/lib/components/logo/primary-logo/index.d.ts",
|
|
112
|
-
"esm2022": "./esm2022/src/lib/components/logo/primary-logo/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs",
|
|
113
|
-
"esm": "./esm2022/src/lib/components/logo/primary-logo/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs",
|
|
114
|
-
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs"
|
|
115
|
-
},
|
|
116
122
|
"./src/lib/components/pagination/container": {
|
|
117
123
|
"types": "./src/lib/components/pagination/container/index.d.ts",
|
|
118
124
|
"esm2022": "./esm2022/src/lib/components/pagination/container/ascentgl-ads-ui-src-lib-components-pagination-container.mjs",
|
|
@@ -137,24 +143,12 @@
|
|
|
137
143
|
"esm": "./esm2022/src/lib/components/progress-indicators/progress-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs",
|
|
138
144
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs"
|
|
139
145
|
},
|
|
140
|
-
"./src/lib/components/widgets/widget-bar": {
|
|
141
|
-
"types": "./src/lib/components/widgets/widget-bar/index.d.ts",
|
|
142
|
-
"esm2022": "./esm2022/src/lib/components/widgets/widget-bar/ascentgl-ads-ui-src-lib-components-widgets-widget-bar.mjs",
|
|
143
|
-
"esm": "./esm2022/src/lib/components/widgets/widget-bar/ascentgl-ads-ui-src-lib-components-widgets-widget-bar.mjs",
|
|
144
|
-
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-bar.mjs"
|
|
145
|
-
},
|
|
146
146
|
"./src/lib/components/tags/tag-container": {
|
|
147
147
|
"types": "./src/lib/components/tags/tag-container/index.d.ts",
|
|
148
148
|
"esm2022": "./esm2022/src/lib/components/tags/tag-container/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs",
|
|
149
149
|
"esm": "./esm2022/src/lib/components/tags/tag-container/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs",
|
|
150
150
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs"
|
|
151
151
|
},
|
|
152
|
-
"./src/lib/components/widgets/widget-container": {
|
|
153
|
-
"types": "./src/lib/components/widgets/widget-container/index.d.ts",
|
|
154
|
-
"esm2022": "./esm2022/src/lib/components/widgets/widget-container/ascentgl-ads-ui-src-lib-components-widgets-widget-container.mjs",
|
|
155
|
-
"esm": "./esm2022/src/lib/components/widgets/widget-container/ascentgl-ads-ui-src-lib-components-widgets-widget-container.mjs",
|
|
156
|
-
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-container.mjs"
|
|
157
|
-
},
|
|
158
152
|
"./src/lib/components/widgets/widget-actions": {
|
|
159
153
|
"types": "./src/lib/components/widgets/widget-actions/index.d.ts",
|
|
160
154
|
"esm2022": "./esm2022/src/lib/components/widgets/widget-actions/ascentgl-ads-ui-src-lib-components-widgets-widget-actions.mjs",
|
|
@@ -167,24 +161,36 @@
|
|
|
167
161
|
"esm": "./esm2022/src/lib/components/widgets/widget-footer/ascentgl-ads-ui-src-lib-components-widgets-widget-footer.mjs",
|
|
168
162
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-footer.mjs"
|
|
169
163
|
},
|
|
164
|
+
"./src/lib/components/widgets/widget-bar": {
|
|
165
|
+
"types": "./src/lib/components/widgets/widget-bar/index.d.ts",
|
|
166
|
+
"esm2022": "./esm2022/src/lib/components/widgets/widget-bar/ascentgl-ads-ui-src-lib-components-widgets-widget-bar.mjs",
|
|
167
|
+
"esm": "./esm2022/src/lib/components/widgets/widget-bar/ascentgl-ads-ui-src-lib-components-widgets-widget-bar.mjs",
|
|
168
|
+
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-bar.mjs"
|
|
169
|
+
},
|
|
170
|
+
"./src/lib/components/widgets/widget-container": {
|
|
171
|
+
"types": "./src/lib/components/widgets/widget-container/index.d.ts",
|
|
172
|
+
"esm2022": "./esm2022/src/lib/components/widgets/widget-container/ascentgl-ads-ui-src-lib-components-widgets-widget-container.mjs",
|
|
173
|
+
"esm": "./esm2022/src/lib/components/widgets/widget-container/ascentgl-ads-ui-src-lib-components-widgets-widget-container.mjs",
|
|
174
|
+
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-container.mjs"
|
|
175
|
+
},
|
|
170
176
|
"./src/lib/components/widgets/widget-header": {
|
|
171
177
|
"types": "./src/lib/components/widgets/widget-header/index.d.ts",
|
|
172
178
|
"esm2022": "./esm2022/src/lib/components/widgets/widget-header/ascentgl-ads-ui-src-lib-components-widgets-widget-header.mjs",
|
|
173
179
|
"esm": "./esm2022/src/lib/components/widgets/widget-header/ascentgl-ads-ui-src-lib-components-widgets-widget-header.mjs",
|
|
174
180
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-header.mjs"
|
|
175
181
|
},
|
|
176
|
-
"./src/lib/components/widgets/widget-preview": {
|
|
177
|
-
"types": "./src/lib/components/widgets/widget-preview/index.d.ts",
|
|
178
|
-
"esm2022": "./esm2022/src/lib/components/widgets/widget-preview/ascentgl-ads-ui-src-lib-components-widgets-widget-preview.mjs",
|
|
179
|
-
"esm": "./esm2022/src/lib/components/widgets/widget-preview/ascentgl-ads-ui-src-lib-components-widgets-widget-preview.mjs",
|
|
180
|
-
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-preview.mjs"
|
|
181
|
-
},
|
|
182
182
|
"./src/lib/components/widgets/widget-thumbnail": {
|
|
183
183
|
"types": "./src/lib/components/widgets/widget-thumbnail/index.d.ts",
|
|
184
184
|
"esm2022": "./esm2022/src/lib/components/widgets/widget-thumbnail/ascentgl-ads-ui-src-lib-components-widgets-widget-thumbnail.mjs",
|
|
185
185
|
"esm": "./esm2022/src/lib/components/widgets/widget-thumbnail/ascentgl-ads-ui-src-lib-components-widgets-widget-thumbnail.mjs",
|
|
186
186
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-thumbnail.mjs"
|
|
187
187
|
},
|
|
188
|
+
"./src/lib/components/widgets/widget-preview": {
|
|
189
|
+
"types": "./src/lib/components/widgets/widget-preview/index.d.ts",
|
|
190
|
+
"esm2022": "./esm2022/src/lib/components/widgets/widget-preview/ascentgl-ads-ui-src-lib-components-widgets-widget-preview.mjs",
|
|
191
|
+
"esm": "./esm2022/src/lib/components/widgets/widget-preview/ascentgl-ads-ui-src-lib-components-widgets-widget-preview.mjs",
|
|
192
|
+
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-preview.mjs"
|
|
193
|
+
},
|
|
188
194
|
"./src/lib/components/widgets/widget-thumbnail-container": {
|
|
189
195
|
"types": "./src/lib/components/widgets/widget-thumbnail-container/index.d.ts",
|
|
190
196
|
"esm2022": "./esm2022/src/lib/components/widgets/widget-thumbnail-container/ascentgl-ads-ui-src-lib-components-widgets-widget-thumbnail-container.mjs",
|
|
@@ -196,12 +202,6 @@
|
|
|
196
202
|
"esm2022": "./esm2022/src/lib/components/widgets/widget-title/ascentgl-ads-ui-src-lib-components-widgets-widget-title.mjs",
|
|
197
203
|
"esm": "./esm2022/src/lib/components/widgets/widget-title/ascentgl-ads-ui-src-lib-components-widgets-widget-title.mjs",
|
|
198
204
|
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-widgets-widget-title.mjs"
|
|
199
|
-
},
|
|
200
|
-
"./src/lib/components/footer/container": {
|
|
201
|
-
"types": "./src/lib/components/footer/container/index.d.ts",
|
|
202
|
-
"esm2022": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
|
|
203
|
-
"esm": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
|
|
204
|
-
"default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs"
|
|
205
205
|
}
|
|
206
206
|
},
|
|
207
207
|
"sideEffects": false,
|
|
@@ -1,41 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
scrollbar-width: none; /* Disable scrollbar Firefox */
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
body {
|
|
8
|
-
overflow: scroll;
|
|
9
|
-
padding: 0;
|
|
10
|
-
margin: 0;
|
|
11
|
-
-ms-overflow-style: none; /* Disable scrollbar IE 10+ */
|
|
12
|
-
overflow-x: hidden;
|
|
13
|
-
scrollbar-width: none; /* Disable scrollbar Firefox */
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
body::-webkit-scrollbar {
|
|
17
|
-
width: 0; /* Remove scrollbar space */
|
|
18
|
-
background: transparent; /* make scrollbar invisible */
|
|
19
|
-
}
|
|
1
|
+
@import '../abstracts/functions';
|
|
2
|
+
@import '../abstracts/variables';
|
|
20
3
|
|
|
21
4
|
::-webkit-scrollbar {
|
|
22
5
|
width: 10px;
|
|
23
|
-
|
|
24
|
-
background-color: color(light-30);
|
|
25
|
-
border-radius: 100px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
::-webkit-scrollbar-track {
|
|
29
|
-
border-radius: 100px;
|
|
6
|
+
background-color: transparent;
|
|
30
7
|
}
|
|
31
8
|
|
|
32
9
|
::-webkit-scrollbar-thumb {
|
|
33
|
-
width:
|
|
34
|
-
background: color(
|
|
10
|
+
width: 10px;
|
|
11
|
+
background: color(muted);
|
|
12
|
+
border: 1px solid color(light);
|
|
35
13
|
border-radius: 100px;
|
|
36
|
-
opacity: 50%;
|
|
37
14
|
}
|
|
38
15
|
|
|
39
16
|
::-webkit-scrollbar-thumb:hover {
|
|
40
|
-
background: color(
|
|
17
|
+
background: color(medium-30);
|
|
18
|
+
border-color: color(medium-30);
|
|
41
19
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export type DividerStyle = {
|
|
4
4
|
margin: string | number;
|
|
5
5
|
'background-color': string;
|
|
6
6
|
};
|
|
7
|
-
export declare class DividerComponent implements
|
|
7
|
+
export declare class DividerComponent implements OnInit {
|
|
8
8
|
/**
|
|
9
9
|
* The divider left and right margin
|
|
10
10
|
*/
|
|
@@ -18,7 +18,7 @@ export declare class DividerComponent implements OnChanges {
|
|
|
18
18
|
/** @ignore */
|
|
19
19
|
private colors;
|
|
20
20
|
/** @ignore */
|
|
21
|
-
|
|
21
|
+
ngOnInit(): void;
|
|
22
22
|
/** @ignore */
|
|
23
23
|
private setDividerStyle;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { VerticalStepStatus } from './vertical-step.type';
|
|
2
|
-
/**
|
|
3
|
-
* Sets a steps status based on multiple criteria
|
|
4
|
-
* @param currentStep VerticalStep
|
|
5
|
-
* @param index number
|
|
6
|
-
* @param steps VrticalStep[]
|
|
7
|
-
* @returns VerticalStep
|
|
8
|
-
*/
|
|
9
|
-
export function setVerticalStepStatus(currentStep, index, steps) {
|
|
10
|
-
// if step already has a status use it
|
|
11
|
-
if (currentStep.status) {
|
|
12
|
-
return currentStep;
|
|
13
|
-
}
|
|
14
|
-
// if step is not the first, and previous step is rejected or disabled/rejected all other steps after it
|
|
15
|
-
// should be disabled/rejected
|
|
16
|
-
if ((index > 0 && getPreviousVerticalStepStatus(index, steps) === VerticalStepStatus.Rejected) ||
|
|
17
|
-
getPreviousVerticalStepStatus(index, steps) === VerticalStepStatus.DisabledRejected) {
|
|
18
|
-
currentStep.status = VerticalStepStatus.DisabledRejected;
|
|
19
|
-
// if step has a date, that step has been completed
|
|
20
|
-
}
|
|
21
|
-
else if (currentStep.date) {
|
|
22
|
-
currentStep.status = VerticalStepStatus.Completed;
|
|
23
|
-
// if step is not the first, and previous step has a date or if step is the first and the next step does
|
|
24
|
-
// not have a date then step is current
|
|
25
|
-
}
|
|
26
|
-
else if ((index > 0 && steps[index - 1]?.date) ||
|
|
27
|
-
(index === 0 && !steps[index + 1]?.date) ||
|
|
28
|
-
getPreviousVerticalStepStatus(index, steps) === VerticalStepStatus.Skipped) {
|
|
29
|
-
currentStep.status = VerticalStepStatus.Current;
|
|
30
|
-
// step is a future step
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
currentStep.status = VerticalStepStatus.Future;
|
|
34
|
-
}
|
|
35
|
-
return currentStep;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Takes a step and sets its itcon based on the steps status.
|
|
39
|
-
* Status must be set prior to running this function.
|
|
40
|
-
* @param currentStep VerticalStep
|
|
41
|
-
* @returns VerticalStep
|
|
42
|
-
*/
|
|
43
|
-
export function setVerticalStepIcon(currentStep) {
|
|
44
|
-
switch (currentStep.status) {
|
|
45
|
-
case VerticalStepStatus.Completed:
|
|
46
|
-
currentStep.icon = 'check';
|
|
47
|
-
break;
|
|
48
|
-
case VerticalStepStatus.Skipped:
|
|
49
|
-
currentStep.icon = 'stepper_circle';
|
|
50
|
-
break;
|
|
51
|
-
case VerticalStepStatus.Disabled:
|
|
52
|
-
currentStep.icon = 'minus';
|
|
53
|
-
break;
|
|
54
|
-
case VerticalStepStatus.Alert:
|
|
55
|
-
currentStep.icon = 'exclamation';
|
|
56
|
-
break;
|
|
57
|
-
case VerticalStepStatus.Rejected:
|
|
58
|
-
case VerticalStepStatus.DisabledRejected:
|
|
59
|
-
currentStep.icon = 'cross';
|
|
60
|
-
break;
|
|
61
|
-
default:
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
return currentStep;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Returns the status of the previous step
|
|
68
|
-
* @param index number
|
|
69
|
-
* @param steps VerticalStep
|
|
70
|
-
* @returns VerticalStepStatus
|
|
71
|
-
*/
|
|
72
|
-
export function getPreviousVerticalStepStatus(index, steps) {
|
|
73
|
-
return steps[index - 1] && steps[index - 1].status;
|
|
74
|
-
}
|
|
75
|
-
export function getVerticalStepperSampleData() {
|
|
76
|
-
return [
|
|
77
|
-
{
|
|
78
|
-
title: 'Details',
|
|
79
|
-
icon: 'warehouse',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
title: 'Route',
|
|
83
|
-
icon: 'location_filled',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
title: 'Cargo',
|
|
87
|
-
icon: 'truck_dolly',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: 'Email Alerts',
|
|
91
|
-
icon: 'mail_envelope',
|
|
92
|
-
},
|
|
93
|
-
{ title: 'Submit', icon: 'check' },
|
|
94
|
-
]
|
|
95
|
-
.map(setVerticalStepStatus)
|
|
96
|
-
.map(setVerticalStepIcon);
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVydGljYWwtaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3V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pbF9lbnZlbG9wZScsXG4gICAgfSxcbiAgICB7IHRpdGxlOiAnU3VibWl0JywgaWNvbjogPGFkc0ljb24+J2NoZWNrJyB9LFxuICBdXG4gICAgLm1hcChzZXRWZXJ0aWNhbFN0ZXBTdGF0dXMpXG4gICAgLm1hcChzZXRWZXJ0aWNhbFN0ZXBJY29uKTtcbn1cbiJdfQ==
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { VerticalStep, VerticalStepStatus, VerticalStepBase, VerticalStepWithStatus } from './vertical-step.type';
|
|
2
|
-
/**
|
|
3
|
-
* Sets a steps status based on multiple criteria
|
|
4
|
-
* @param currentStep VerticalStep
|
|
5
|
-
* @param index number
|
|
6
|
-
* @param steps VrticalStep[]
|
|
7
|
-
* @returns VerticalStep
|
|
8
|
-
*/
|
|
9
|
-
export declare function setVerticalStepStatus(currentStep: VerticalStepBase, index: number, steps: VerticalStepBase[]): VerticalStepWithStatus;
|
|
10
|
-
/**
|
|
11
|
-
* Takes a step and sets its itcon based on the steps status.
|
|
12
|
-
* Status must be set prior to running this function.
|
|
13
|
-
* @param currentStep VerticalStep
|
|
14
|
-
* @returns VerticalStep
|
|
15
|
-
*/
|
|
16
|
-
export declare function setVerticalStepIcon(currentStep: VerticalStepWithStatus): VerticalStep;
|
|
17
|
-
/**
|
|
18
|
-
* Returns the status of the previous step
|
|
19
|
-
* @param index number
|
|
20
|
-
* @param steps VerticalStep
|
|
21
|
-
* @returns VerticalStepStatus
|
|
22
|
-
*/
|
|
23
|
-
export declare function getPreviousVerticalStepStatus(index: number, steps: VerticalStepBase[]): VerticalStepStatus | undefined;
|
|
24
|
-
export declare function getVerticalStepperSampleData(): VerticalStep[];
|