igniteui-webcomponents 7.0.1 → 7.1.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/CHANGELOG.md +14 -0
- package/components/combo/themes/shared/combo.common.css.js +1 -1
- package/components/combo/themes/shared/combo.common.css.js.map +1 -1
- package/components/combo/types.js.map +1 -1
- package/components/common/definitions/defineAllComponents.js +4 -0
- package/components/common/definitions/defineAllComponents.js.map +1 -1
- package/components/common/mixins/forms/form-transformers.js.map +1 -1
- package/components/common/util.d.ts +11 -1
- package/components/common/util.js +3 -0
- package/components/common/util.js.map +1 -1
- package/components/date-picker/date-picker.js.map +1 -1
- package/components/file-input/file-input.js.map +1 -1
- package/components/highlight/highlight.d.ts +130 -0
- package/components/highlight/highlight.js +77 -0
- package/components/highlight/highlight.js.map +1 -0
- package/components/highlight/service.d.ts +58 -0
- package/components/highlight/service.js +132 -0
- package/components/highlight/service.js.map +1 -0
- package/components/highlight/themes/dark/highlight.bootstrap.css.js +3 -0
- package/components/highlight/themes/dark/highlight.bootstrap.css.js.map +1 -0
- package/components/highlight/themes/dark/highlight.fluent.css.d.ts +1 -0
- package/components/highlight/themes/dark/highlight.fluent.css.js +3 -0
- package/components/highlight/themes/dark/highlight.fluent.css.js.map +1 -0
- package/components/highlight/themes/dark/highlight.indigo.css.d.ts +1 -0
- package/components/highlight/themes/dark/highlight.indigo.css.js +3 -0
- package/components/highlight/themes/dark/highlight.indigo.css.js.map +1 -0
- package/components/highlight/themes/dark/highlight.material.css.d.ts +1 -0
- package/components/highlight/themes/dark/highlight.material.css.js +3 -0
- package/components/highlight/themes/dark/highlight.material.css.js.map +1 -0
- package/components/highlight/themes/dark/highlight.shared.css.d.ts +1 -0
- package/components/highlight/themes/dark/highlight.shared.css.js +3 -0
- package/components/highlight/themes/dark/highlight.shared.css.js.map +1 -0
- package/components/highlight/themes/light/highlight.bootstrap.css.d.ts +1 -0
- package/components/highlight/themes/light/highlight.bootstrap.css.js +3 -0
- package/components/highlight/themes/light/highlight.bootstrap.css.js.map +1 -0
- package/components/highlight/themes/light/highlight.fluent.css.d.ts +1 -0
- package/components/highlight/themes/light/highlight.fluent.css.js +3 -0
- package/components/highlight/themes/light/highlight.fluent.css.js.map +1 -0
- package/components/highlight/themes/light/highlight.indigo.css.d.ts +1 -0
- package/components/highlight/themes/light/highlight.indigo.css.js +3 -0
- package/components/highlight/themes/light/highlight.indigo.css.js.map +1 -0
- package/components/highlight/themes/light/highlight.material.css.d.ts +1 -0
- package/components/highlight/themes/light/highlight.material.css.js +3 -0
- package/components/highlight/themes/light/highlight.material.css.js.map +1 -0
- package/components/highlight/themes/light/highlight.shared.css.d.ts +1 -0
- package/components/highlight/themes/light/highlight.shared.css.js +3 -0
- package/components/highlight/themes/light/highlight.shared.css.js.map +1 -0
- package/components/highlight/themes/shared/highlight.common.css.d.ts +1 -0
- package/components/highlight/themes/shared/highlight.common.css.js +3 -0
- package/components/highlight/themes/shared/highlight.common.css.js.map +1 -0
- package/components/highlight/themes/themes.d.ts +2 -0
- package/components/highlight/themes/themes.js +47 -0
- package/components/highlight/themes/themes.js.map +1 -0
- package/components/splitter/splitter.d.ts +240 -0
- package/components/splitter/splitter.js +608 -0
- package/components/splitter/splitter.js.map +1 -0
- package/components/splitter/themes/dark/splitter.bootstrap.css.d.ts +1 -0
- package/components/splitter/themes/dark/splitter.bootstrap.css.js +3 -0
- package/components/splitter/themes/dark/splitter.bootstrap.css.js.map +1 -0
- package/components/splitter/themes/dark/splitter.fluent.css.d.ts +1 -0
- package/components/splitter/themes/dark/splitter.fluent.css.js +3 -0
- package/components/splitter/themes/dark/splitter.fluent.css.js.map +1 -0
- package/components/splitter/themes/dark/splitter.indigo.css.d.ts +1 -0
- package/components/splitter/themes/dark/splitter.indigo.css.js +3 -0
- package/components/splitter/themes/dark/splitter.indigo.css.js.map +1 -0
- package/components/splitter/themes/dark/splitter.material.css.d.ts +1 -0
- package/components/splitter/themes/dark/splitter.material.css.js +3 -0
- package/components/splitter/themes/dark/splitter.material.css.js.map +1 -0
- package/components/splitter/themes/dark/splitter.shared.css.d.ts +1 -0
- package/components/splitter/themes/dark/splitter.shared.css.js +3 -0
- package/components/splitter/themes/dark/splitter.shared.css.js.map +1 -0
- package/components/splitter/themes/light/splitter.bootstrap.css.d.ts +1 -0
- package/components/splitter/themes/light/splitter.bootstrap.css.js +3 -0
- package/components/splitter/themes/light/splitter.bootstrap.css.js.map +1 -0
- package/components/splitter/themes/light/splitter.fluent.css.d.ts +1 -0
- package/components/splitter/themes/light/splitter.fluent.css.js +3 -0
- package/components/splitter/themes/light/splitter.fluent.css.js.map +1 -0
- package/components/splitter/themes/light/splitter.indigo.css.d.ts +1 -0
- package/components/splitter/themes/light/splitter.indigo.css.js +3 -0
- package/components/splitter/themes/light/splitter.indigo.css.js.map +1 -0
- package/components/splitter/themes/light/splitter.material.css.d.ts +1 -0
- package/components/splitter/themes/light/splitter.material.css.js +3 -0
- package/components/splitter/themes/light/splitter.material.css.js.map +1 -0
- package/components/splitter/themes/light/splitter.shared.css.d.ts +1 -0
- package/components/splitter/themes/light/splitter.shared.css.js +3 -0
- package/components/splitter/themes/light/splitter.shared.css.js.map +1 -0
- package/components/splitter/themes/shared/splitter.common.css.d.ts +1 -0
- package/components/splitter/themes/shared/splitter.common.css.js +3 -0
- package/components/splitter/themes/shared/splitter.common.css.js.map +1 -0
- package/components/splitter/themes/shared/splitter.indigo.css.d.ts +1 -0
- package/components/splitter/themes/shared/splitter.indigo.css.js +3 -0
- package/components/splitter/themes/shared/splitter.indigo.css.js.map +1 -0
- package/components/splitter/themes/splitter.base.css.d.ts +1 -0
- package/components/splitter/themes/splitter.base.css.js +3 -0
- package/components/splitter/themes/splitter.base.css.js.map +1 -0
- package/components/splitter/themes/themes.d.ts +2 -0
- package/components/splitter/themes/themes.js +48 -0
- package/components/splitter/themes/themes.js.map +1 -0
- package/components/splitter/types.d.ts +39 -0
- package/components/splitter/types.js +2 -0
- package/components/splitter/types.js.map +1 -0
- package/components/stepper/{animations.d.ts → common/animations.d.ts} +2 -2
- package/components/stepper/{animations.js → common/animations.js} +2 -2
- package/components/stepper/common/animations.js.map +1 -0
- package/components/stepper/common/context.d.ts +9 -0
- package/components/stepper/common/context.js +3 -0
- package/components/stepper/common/context.js.map +1 -0
- package/components/stepper/common/state.d.ts +67 -0
- package/components/stepper/common/state.js +134 -0
- package/components/stepper/common/state.js.map +1 -0
- package/components/stepper/common/types.js +2 -0
- package/components/stepper/common/types.js.map +1 -0
- package/components/stepper/step.d.ts +101 -55
- package/components/stepper/step.js +145 -160
- package/components/stepper/step.js.map +1 -1
- package/components/stepper/stepper.d.ts +98 -53
- package/components/stepper/stepper.js +168 -308
- package/components/stepper/stepper.js.map +1 -1
- package/components/stepper/themes/step/shared/step.bootstrap.css.js +1 -1
- package/components/stepper/themes/step/shared/step.bootstrap.css.js.map +1 -1
- package/components/stepper/themes/step/shared/step.common.css.js +1 -1
- package/components/stepper/themes/step/shared/step.common.css.js.map +1 -1
- package/components/stepper/themes/step/shared/step.indigo.css.js +1 -1
- package/components/stepper/themes/step/shared/step.indigo.css.js.map +1 -1
- package/components/stepper/themes/step/themes.js +2 -3
- package/components/stepper/themes/step/themes.js.map +1 -1
- package/components/tabs/themes/tabs.base.css.js +1 -1
- package/components/tabs/themes/tabs.base.css.js.map +1 -1
- package/components/textarea/textarea.js.map +1 -1
- package/components/types.d.ts +1 -0
- package/components/types.js.map +1 -1
- package/components/visually-hidden/visually-hidden.d.ts +49 -0
- package/components/visually-hidden/visually-hidden.js +26 -0
- package/components/visually-hidden/visually-hidden.js.map +1 -0
- package/custom-elements.json +2681 -379
- package/igniteui-webcomponents.css-data.json +2 -2
- package/igniteui-webcomponents.html-data.json +1 -1
- package/index.d.ts +6 -2
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +3 -1
- package/web-types.json +3 -3
- package/components/stepper/animations.js.map +0 -1
- package/components/stepper/stepper.common.js +0 -2
- package/components/stepper/stepper.common.js.map +0 -1
- package/components/stepper/themes/step/shared/step.fluent.css.js +0 -3
- package/components/stepper/themes/step/shared/step.fluent.css.js.map +0 -1
- /package/components/{stepper/themes/step/shared/step.fluent.css.d.ts → highlight/themes/dark/highlight.bootstrap.css.d.ts} +0 -0
- /package/components/stepper/{stepper.common.d.ts → common/types.d.ts} +0 -0
|
@@ -1,109 +1,154 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
2
2
|
import type { Constructor } from '../common/mixins/constructor.js';
|
|
3
3
|
import type { HorizontalTransitionAnimation, StepperOrientation, StepperStepType, StepperTitlePosition, StepperVerticalAnimation } from '../types.js';
|
|
4
|
+
import type { IgcStepperComponentEventMap } from './common/types.js';
|
|
4
5
|
import IgcStepComponent from './step.js';
|
|
5
|
-
import type { IgcStepperComponentEventMap } from './stepper.common.js';
|
|
6
6
|
declare const IgcStepperComponent_base: Constructor<import("../common/mixins/event-emitter.js").EventEmitterInterface<IgcStepperComponentEventMap>> & Constructor<LitElement>;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* A stepper component that provides a wizard-like workflow by dividing content into logical steps.
|
|
9
9
|
*
|
|
10
10
|
* @remarks
|
|
11
|
-
* The stepper component allows the user to navigate between multiple
|
|
12
|
-
* It supports horizontal and vertical orientation
|
|
11
|
+
* The stepper component allows the user to navigate between multiple `igc-step` elements.
|
|
12
|
+
* It supports horizontal and vertical orientation, linear and non-linear navigation,
|
|
13
|
+
* keyboard navigation, and provides API methods to control the active step.
|
|
14
|
+
*
|
|
15
|
+
* In linear mode, the user can only advance to the next step if the current step is valid
|
|
16
|
+
* (not marked as `invalid`).
|
|
13
17
|
*
|
|
14
18
|
* @element igc-stepper
|
|
15
19
|
*
|
|
16
|
-
* @slot - Renders
|
|
20
|
+
* @slot - Renders `igc-step` components inside the default slot.
|
|
21
|
+
*
|
|
22
|
+
* @fires igcActiveStepChanging - Emitted when the active step is about to change. Cancelable.
|
|
23
|
+
* @fires igcActiveStepChanged - Emitted after the active step has changed.
|
|
17
24
|
*
|
|
18
|
-
* @
|
|
19
|
-
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```html
|
|
27
|
+
* <igc-stepper>
|
|
28
|
+
* <igc-step>
|
|
29
|
+
* <span slot="title">Step 1</span>
|
|
30
|
+
* <p>Step 1 content</p>
|
|
31
|
+
* </igc-step>
|
|
32
|
+
* <igc-step>
|
|
33
|
+
* <span slot="title">Step 2</span>
|
|
34
|
+
* <p>Step 2 content</p>
|
|
35
|
+
* </igc-step>
|
|
36
|
+
* </igc-stepper>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @example Linear stepper with vertical orientation
|
|
40
|
+
* ```html
|
|
41
|
+
* <igc-stepper orientation="vertical" linear>
|
|
42
|
+
* <igc-step complete>
|
|
43
|
+
* <span slot="title">Completed step</span>
|
|
44
|
+
* <p>This step is already complete.</p>
|
|
45
|
+
* </igc-step>
|
|
46
|
+
* <igc-step active>
|
|
47
|
+
* <span slot="title">Current step</span>
|
|
48
|
+
* <p>Fill in the details to proceed.</p>
|
|
49
|
+
* </igc-step>
|
|
50
|
+
* <igc-step>
|
|
51
|
+
* <span slot="title">Next step</span>
|
|
52
|
+
* <p>Upcoming content.</p>
|
|
53
|
+
* </igc-step>
|
|
54
|
+
* </igc-stepper>
|
|
55
|
+
* ```
|
|
20
56
|
*/
|
|
21
57
|
export default class IgcStepperComponent extends IgcStepperComponent_base {
|
|
22
58
|
static readonly tagName = "igc-stepper";
|
|
23
|
-
|
|
59
|
+
static styles: import("lit").CSSResult;
|
|
24
60
|
static register(): void;
|
|
25
|
-
private readonly
|
|
26
|
-
private
|
|
27
|
-
private
|
|
61
|
+
private readonly _state;
|
|
62
|
+
private readonly _contextProvider;
|
|
63
|
+
private readonly _internals;
|
|
64
|
+
private readonly _slots;
|
|
65
|
+
private get _isHorizontal();
|
|
28
66
|
/** Returns all of the stepper's steps. */
|
|
29
|
-
steps:
|
|
30
|
-
/**
|
|
67
|
+
get steps(): readonly IgcStepComponent[];
|
|
68
|
+
/**
|
|
69
|
+
* The orientation of the stepper.
|
|
31
70
|
*
|
|
32
|
-
* @
|
|
33
|
-
*
|
|
71
|
+
* @attr orientation
|
|
72
|
+
* @default 'horizontal'
|
|
34
73
|
*/
|
|
35
74
|
orientation: StepperOrientation;
|
|
36
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* The visual type of the steps.
|
|
37
77
|
*
|
|
38
|
-
* @
|
|
39
|
-
*
|
|
78
|
+
* @attr step-type
|
|
79
|
+
* @default 'full'
|
|
40
80
|
*/
|
|
41
81
|
stepType: StepperStepType;
|
|
42
82
|
/**
|
|
43
|
-
*
|
|
83
|
+
* Whether the stepper is linear.
|
|
44
84
|
*
|
|
45
85
|
* @remarks
|
|
46
86
|
* If the stepper is in linear mode and if the active step is valid only then the user is able to move forward.
|
|
87
|
+
*
|
|
88
|
+
* @attr linear
|
|
89
|
+
* @default false
|
|
47
90
|
*/
|
|
48
91
|
linear: boolean;
|
|
49
92
|
/**
|
|
50
|
-
*
|
|
93
|
+
* Whether the content is displayed above the steps.
|
|
51
94
|
*
|
|
52
|
-
* @
|
|
53
|
-
*
|
|
95
|
+
* @attr content-top
|
|
96
|
+
* @default false
|
|
54
97
|
*/
|
|
55
98
|
contentTop: boolean;
|
|
56
99
|
/**
|
|
57
100
|
* The animation type when in vertical mode.
|
|
101
|
+
*
|
|
58
102
|
* @attr vertical-animation
|
|
103
|
+
* @default 'grow'
|
|
59
104
|
*/
|
|
60
105
|
verticalAnimation: StepperVerticalAnimation;
|
|
61
106
|
/**
|
|
62
107
|
* The animation type when in horizontal mode.
|
|
108
|
+
*
|
|
63
109
|
* @attr horizontal-animation
|
|
110
|
+
* @default 'slide'
|
|
64
111
|
*/
|
|
65
112
|
horizontalAnimation: HorizontalTransitionAnimation;
|
|
66
113
|
/**
|
|
67
|
-
* The animation duration in either vertical or horizontal mode.
|
|
114
|
+
* The animation duration in either vertical or horizontal mode in milliseconds.
|
|
115
|
+
*
|
|
68
116
|
* @attr animation-duration
|
|
117
|
+
* @default 320
|
|
69
118
|
*/
|
|
70
119
|
animationDuration: number;
|
|
71
120
|
/**
|
|
72
|
-
*
|
|
121
|
+
* The position of the steps title.
|
|
73
122
|
*
|
|
74
123
|
* @remarks
|
|
75
|
-
* The default value is auto.
|
|
76
124
|
* When the stepper is horizontally orientated the title is positioned below the indicator.
|
|
77
|
-
* When the stepper is
|
|
125
|
+
* When the stepper is vertically orientated the title is positioned on the right side of the indicator.
|
|
126
|
+
*
|
|
127
|
+
* @attr title-position
|
|
128
|
+
* @default 'auto'
|
|
78
129
|
*/
|
|
79
130
|
titlePosition: StepperTitlePosition;
|
|
80
|
-
protected orientationChange(): void;
|
|
81
|
-
protected stepTypeChange(): void;
|
|
82
|
-
protected titlePositionChange(): void;
|
|
83
|
-
protected contentTopChange(): void;
|
|
84
|
-
protected linearChange(): void;
|
|
85
|
-
protected animationTypeChange(): void;
|
|
86
|
-
protected animationDurationChange(): void;
|
|
87
131
|
constructor();
|
|
88
|
-
|
|
89
|
-
private
|
|
90
|
-
private
|
|
91
|
-
private
|
|
92
|
-
private
|
|
93
|
-
private
|
|
94
|
-
private
|
|
95
|
-
private
|
|
96
|
-
private
|
|
97
|
-
private
|
|
98
|
-
private
|
|
99
|
-
private
|
|
100
|
-
private
|
|
101
|
-
private
|
|
102
|
-
private
|
|
103
|
-
private
|
|
104
|
-
private
|
|
105
|
-
private
|
|
106
|
-
private
|
|
132
|
+
protected update(properties: PropertyValues<this>): void;
|
|
133
|
+
private _skipKeyboard;
|
|
134
|
+
private _handleHomeKey;
|
|
135
|
+
private _handleEndKey;
|
|
136
|
+
private _handleArrowDown;
|
|
137
|
+
private _handleArrowUp;
|
|
138
|
+
private _handleArrowLeft;
|
|
139
|
+
private _handleArrowRight;
|
|
140
|
+
private _handleInteraction;
|
|
141
|
+
private _handleSlotChange;
|
|
142
|
+
private _syncStepperAttributes;
|
|
143
|
+
private _animateSteps;
|
|
144
|
+
private _emitChanging;
|
|
145
|
+
private _emitChanged;
|
|
146
|
+
private _activateStep;
|
|
147
|
+
private _moveToNextStep;
|
|
148
|
+
private _getNextStep;
|
|
149
|
+
private _getPreviousStep;
|
|
150
|
+
private _getActiveStepComponent;
|
|
151
|
+
private _getStepHeader;
|
|
107
152
|
/** Activates the step at a given index. */
|
|
108
153
|
navigateTo(index: number): void;
|
|
109
154
|
/** Activates the next enabled step. */
|