@proximus/lavender-progress-stepper 1.4.20-alpha.10 → 1.4.20-alpha.12
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/dist/ProgressStepper.d.ts +4 -4
- package/dist/ProgressStepperBase.d.ts +25 -0
- package/dist/ProgressStepperItem.d.ts +6 -23
- package/dist/ProgressStepperLink.d.ts +20 -0
- package/dist/custom-elements.json +563 -59
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +133 -71
- package/dist/vscode.html-custom-data.json +40 -6
- package/dist/web-types.json +82 -13
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WithExtraAttributes } from '@proximus/lavender-common';
|
|
2
2
|
export declare const progressStepperDirectionValues: string[];
|
|
3
3
|
export declare const progressStepperDirectionAttributes: string[];
|
|
4
4
|
/**
|
|
5
5
|
* @summary Displays the progression of a user through a sequence of steps.
|
|
6
|
-
* @slot - `px-progress-stepper-item` elements.
|
|
6
|
+
* @slot - `px-progress-stepper-item` and `px-progress-stepper-link` elements.
|
|
7
7
|
* @attr {"default" | "vertical" | "horizontal"} direction - Layout direction of the stepper for all breakpoints. Defaults to `horizontal`.
|
|
8
8
|
* @attr {"default" | "vertical" | "horizontal"} direction--mobile - Layout direction on mobile. Overrides `direction`.
|
|
9
9
|
* @attr {"default" | "vertical" | "horizontal"} direction--tablet - Layout direction on tablet. Overrides `direction`.
|
|
10
10
|
* @attr {"default" | "vertical" | "horizontal"} direction--laptop - Layout direction on laptop. Overrides `direction`.
|
|
11
11
|
* @attr {"default" | "vertical" | "horizontal"} direction--desktop - Layout direction on desktop. Overrides `direction`.
|
|
12
12
|
* @attr {string} icon-from - Name of the `px-icon-set` used for the items icons. Defaults to `lavender`.
|
|
13
|
+
* @attr {string} aria-label - Navigation label when steps contain links.
|
|
13
14
|
*/
|
|
14
|
-
export declare class ProgressStepper extends
|
|
15
|
+
export declare class ProgressStepper extends WithExtraAttributes {
|
|
15
16
|
#private;
|
|
16
|
-
static nativeName: string;
|
|
17
17
|
protected static readonly template: HTMLTemplateElement;
|
|
18
18
|
constructor();
|
|
19
19
|
static get observedAttributes(): string[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import '@proximus/lavender-icon';
|
|
2
|
+
import '@proximus/lavender-span';
|
|
3
|
+
import { WithExtraAttributes } from '@proximus/lavender-common';
|
|
4
|
+
export declare const progressStepperItemStateValues: string[];
|
|
5
|
+
export declare abstract class ProgressStepperBase extends WithExtraAttributes {
|
|
6
|
+
protected static createItemTemplate(titleTag: 'span' | 'a'): HTMLTemplateElement;
|
|
7
|
+
protected constructor(template: HTMLTemplateElement);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
10
|
+
updateState(attrName: string, newValue: string, attrValues: string[]): void;
|
|
11
|
+
protected applyAriaCurrent(): void;
|
|
12
|
+
get $el(): HTMLLIElement;
|
|
13
|
+
get $title(): HTMLElement | null;
|
|
14
|
+
get $indicatorNumber(): HTMLElement | null;
|
|
15
|
+
get $icon(): HTMLElement | null;
|
|
16
|
+
get $shownSR(): HTMLElement | null;
|
|
17
|
+
get state(): string | null;
|
|
18
|
+
set state(value: string | null);
|
|
19
|
+
get item(): string | null;
|
|
20
|
+
set item(value: string | null);
|
|
21
|
+
get iconFrom(): string | null;
|
|
22
|
+
set iconFrom(value: string | null);
|
|
23
|
+
get completedLabel(): string | null;
|
|
24
|
+
set completedLabel(value: string | null);
|
|
25
|
+
}
|
|
@@ -1,33 +1,16 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
1
|
+
import { ProgressStepperBase } from './ProgressStepperBase';
|
|
2
|
+
export { progressStepperItemStateValues } from './ProgressStepperBase';
|
|
3
3
|
export declare const PROGRESS_STEPPER_ITEM_CONNECTED_EVENT = "px-progress-stepper-item-connected";
|
|
4
|
-
export declare const progressStepperItemStateValues: string[];
|
|
5
4
|
/**
|
|
6
|
-
* @summary A
|
|
7
|
-
* @slot title - Title of the step.
|
|
5
|
+
* @summary A non-clickable step of a `px-progress-stepper`.
|
|
6
|
+
* @slot title - Title of the step.
|
|
8
7
|
* @slot helper - Helper text displayed below the title.
|
|
9
8
|
* @attr {"upcoming" | "current" | "completed"} state - State of the step. Defaults to `upcoming`.
|
|
10
|
-
* @attr {string} href - Makes the title a link pointing to this URL.
|
|
11
9
|
* @attr {string} icon-from - Name of the `px-icon-set` used for the check icon. Defaults to `lavender`.
|
|
10
|
+
* @attr {string} completed-label - Screen-reader text for a completed step.
|
|
12
11
|
*/
|
|
13
|
-
export declare class ProgressStepperItem extends
|
|
14
|
-
#private;
|
|
15
|
-
static nativeName: string;
|
|
12
|
+
export declare class ProgressStepperItem extends ProgressStepperBase {
|
|
16
13
|
protected static readonly template: HTMLTemplateElement;
|
|
17
14
|
constructor();
|
|
18
|
-
static get observedAttributes(): string[];
|
|
19
15
|
connectedCallback(): void;
|
|
20
|
-
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
21
|
-
updateState(attrName: string, newValue: string, attrValues: string[]): void;
|
|
22
|
-
get $title(): HTMLElement | null;
|
|
23
|
-
get $indicatorNumber(): HTMLElement | null;
|
|
24
|
-
get $icon(): HTMLElement | null;
|
|
25
|
-
get state(): string | null;
|
|
26
|
-
set state(value: string | null);
|
|
27
|
-
get href(): string | null;
|
|
28
|
-
set href(value: string | null);
|
|
29
|
-
get item(): string | null;
|
|
30
|
-
set item(value: string | null);
|
|
31
|
-
get iconFrom(): string | null;
|
|
32
|
-
set iconFrom(value: string | null);
|
|
33
16
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ProgressStepperBase } from './ProgressStepperBase';
|
|
2
|
+
export declare const PROGRESS_STEPPER_LINK_CONNECTED_EVENT = "px-progress-stepper-link-connected";
|
|
3
|
+
/**
|
|
4
|
+
* @summary A clickable step of a `px-progress-stepper`.
|
|
5
|
+
* @slot title - Title of the step, rendered as a link.
|
|
6
|
+
* @slot helper - Helper text displayed below the title.
|
|
7
|
+
* @attr {string} href - URL of the step.
|
|
8
|
+
* @attr {"upcoming" | "current" | "completed"} state - State of the step. Defaults to `upcoming`.
|
|
9
|
+
* @attr {string} icon-from - Name of the `px-icon-set` used for the check icon. Defaults to `lavender`.
|
|
10
|
+
* @attr {string} completed-label - Screen-reader text for a completed step.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ProgressStepperLink extends ProgressStepperBase {
|
|
13
|
+
protected static readonly template: HTMLTemplateElement;
|
|
14
|
+
constructor();
|
|
15
|
+
static get observedAttributes(): string[];
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
18
|
+
get href(): string | null;
|
|
19
|
+
set href(value: string | null);
|
|
20
|
+
}
|