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.
Files changed (149) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/components/combo/themes/shared/combo.common.css.js +1 -1
  3. package/components/combo/themes/shared/combo.common.css.js.map +1 -1
  4. package/components/combo/types.js.map +1 -1
  5. package/components/common/definitions/defineAllComponents.js +4 -0
  6. package/components/common/definitions/defineAllComponents.js.map +1 -1
  7. package/components/common/mixins/forms/form-transformers.js.map +1 -1
  8. package/components/common/util.d.ts +11 -1
  9. package/components/common/util.js +3 -0
  10. package/components/common/util.js.map +1 -1
  11. package/components/date-picker/date-picker.js.map +1 -1
  12. package/components/file-input/file-input.js.map +1 -1
  13. package/components/highlight/highlight.d.ts +130 -0
  14. package/components/highlight/highlight.js +77 -0
  15. package/components/highlight/highlight.js.map +1 -0
  16. package/components/highlight/service.d.ts +58 -0
  17. package/components/highlight/service.js +132 -0
  18. package/components/highlight/service.js.map +1 -0
  19. package/components/highlight/themes/dark/highlight.bootstrap.css.js +3 -0
  20. package/components/highlight/themes/dark/highlight.bootstrap.css.js.map +1 -0
  21. package/components/highlight/themes/dark/highlight.fluent.css.d.ts +1 -0
  22. package/components/highlight/themes/dark/highlight.fluent.css.js +3 -0
  23. package/components/highlight/themes/dark/highlight.fluent.css.js.map +1 -0
  24. package/components/highlight/themes/dark/highlight.indigo.css.d.ts +1 -0
  25. package/components/highlight/themes/dark/highlight.indigo.css.js +3 -0
  26. package/components/highlight/themes/dark/highlight.indigo.css.js.map +1 -0
  27. package/components/highlight/themes/dark/highlight.material.css.d.ts +1 -0
  28. package/components/highlight/themes/dark/highlight.material.css.js +3 -0
  29. package/components/highlight/themes/dark/highlight.material.css.js.map +1 -0
  30. package/components/highlight/themes/dark/highlight.shared.css.d.ts +1 -0
  31. package/components/highlight/themes/dark/highlight.shared.css.js +3 -0
  32. package/components/highlight/themes/dark/highlight.shared.css.js.map +1 -0
  33. package/components/highlight/themes/light/highlight.bootstrap.css.d.ts +1 -0
  34. package/components/highlight/themes/light/highlight.bootstrap.css.js +3 -0
  35. package/components/highlight/themes/light/highlight.bootstrap.css.js.map +1 -0
  36. package/components/highlight/themes/light/highlight.fluent.css.d.ts +1 -0
  37. package/components/highlight/themes/light/highlight.fluent.css.js +3 -0
  38. package/components/highlight/themes/light/highlight.fluent.css.js.map +1 -0
  39. package/components/highlight/themes/light/highlight.indigo.css.d.ts +1 -0
  40. package/components/highlight/themes/light/highlight.indigo.css.js +3 -0
  41. package/components/highlight/themes/light/highlight.indigo.css.js.map +1 -0
  42. package/components/highlight/themes/light/highlight.material.css.d.ts +1 -0
  43. package/components/highlight/themes/light/highlight.material.css.js +3 -0
  44. package/components/highlight/themes/light/highlight.material.css.js.map +1 -0
  45. package/components/highlight/themes/light/highlight.shared.css.d.ts +1 -0
  46. package/components/highlight/themes/light/highlight.shared.css.js +3 -0
  47. package/components/highlight/themes/light/highlight.shared.css.js.map +1 -0
  48. package/components/highlight/themes/shared/highlight.common.css.d.ts +1 -0
  49. package/components/highlight/themes/shared/highlight.common.css.js +3 -0
  50. package/components/highlight/themes/shared/highlight.common.css.js.map +1 -0
  51. package/components/highlight/themes/themes.d.ts +2 -0
  52. package/components/highlight/themes/themes.js +47 -0
  53. package/components/highlight/themes/themes.js.map +1 -0
  54. package/components/splitter/splitter.d.ts +240 -0
  55. package/components/splitter/splitter.js +608 -0
  56. package/components/splitter/splitter.js.map +1 -0
  57. package/components/splitter/themes/dark/splitter.bootstrap.css.d.ts +1 -0
  58. package/components/splitter/themes/dark/splitter.bootstrap.css.js +3 -0
  59. package/components/splitter/themes/dark/splitter.bootstrap.css.js.map +1 -0
  60. package/components/splitter/themes/dark/splitter.fluent.css.d.ts +1 -0
  61. package/components/splitter/themes/dark/splitter.fluent.css.js +3 -0
  62. package/components/splitter/themes/dark/splitter.fluent.css.js.map +1 -0
  63. package/components/splitter/themes/dark/splitter.indigo.css.d.ts +1 -0
  64. package/components/splitter/themes/dark/splitter.indigo.css.js +3 -0
  65. package/components/splitter/themes/dark/splitter.indigo.css.js.map +1 -0
  66. package/components/splitter/themes/dark/splitter.material.css.d.ts +1 -0
  67. package/components/splitter/themes/dark/splitter.material.css.js +3 -0
  68. package/components/splitter/themes/dark/splitter.material.css.js.map +1 -0
  69. package/components/splitter/themes/dark/splitter.shared.css.d.ts +1 -0
  70. package/components/splitter/themes/dark/splitter.shared.css.js +3 -0
  71. package/components/splitter/themes/dark/splitter.shared.css.js.map +1 -0
  72. package/components/splitter/themes/light/splitter.bootstrap.css.d.ts +1 -0
  73. package/components/splitter/themes/light/splitter.bootstrap.css.js +3 -0
  74. package/components/splitter/themes/light/splitter.bootstrap.css.js.map +1 -0
  75. package/components/splitter/themes/light/splitter.fluent.css.d.ts +1 -0
  76. package/components/splitter/themes/light/splitter.fluent.css.js +3 -0
  77. package/components/splitter/themes/light/splitter.fluent.css.js.map +1 -0
  78. package/components/splitter/themes/light/splitter.indigo.css.d.ts +1 -0
  79. package/components/splitter/themes/light/splitter.indigo.css.js +3 -0
  80. package/components/splitter/themes/light/splitter.indigo.css.js.map +1 -0
  81. package/components/splitter/themes/light/splitter.material.css.d.ts +1 -0
  82. package/components/splitter/themes/light/splitter.material.css.js +3 -0
  83. package/components/splitter/themes/light/splitter.material.css.js.map +1 -0
  84. package/components/splitter/themes/light/splitter.shared.css.d.ts +1 -0
  85. package/components/splitter/themes/light/splitter.shared.css.js +3 -0
  86. package/components/splitter/themes/light/splitter.shared.css.js.map +1 -0
  87. package/components/splitter/themes/shared/splitter.common.css.d.ts +1 -0
  88. package/components/splitter/themes/shared/splitter.common.css.js +3 -0
  89. package/components/splitter/themes/shared/splitter.common.css.js.map +1 -0
  90. package/components/splitter/themes/shared/splitter.indigo.css.d.ts +1 -0
  91. package/components/splitter/themes/shared/splitter.indigo.css.js +3 -0
  92. package/components/splitter/themes/shared/splitter.indigo.css.js.map +1 -0
  93. package/components/splitter/themes/splitter.base.css.d.ts +1 -0
  94. package/components/splitter/themes/splitter.base.css.js +3 -0
  95. package/components/splitter/themes/splitter.base.css.js.map +1 -0
  96. package/components/splitter/themes/themes.d.ts +2 -0
  97. package/components/splitter/themes/themes.js +48 -0
  98. package/components/splitter/themes/themes.js.map +1 -0
  99. package/components/splitter/types.d.ts +39 -0
  100. package/components/splitter/types.js +2 -0
  101. package/components/splitter/types.js.map +1 -0
  102. package/components/stepper/{animations.d.ts → common/animations.d.ts} +2 -2
  103. package/components/stepper/{animations.js → common/animations.js} +2 -2
  104. package/components/stepper/common/animations.js.map +1 -0
  105. package/components/stepper/common/context.d.ts +9 -0
  106. package/components/stepper/common/context.js +3 -0
  107. package/components/stepper/common/context.js.map +1 -0
  108. package/components/stepper/common/state.d.ts +67 -0
  109. package/components/stepper/common/state.js +134 -0
  110. package/components/stepper/common/state.js.map +1 -0
  111. package/components/stepper/common/types.js +2 -0
  112. package/components/stepper/common/types.js.map +1 -0
  113. package/components/stepper/step.d.ts +101 -55
  114. package/components/stepper/step.js +145 -160
  115. package/components/stepper/step.js.map +1 -1
  116. package/components/stepper/stepper.d.ts +98 -53
  117. package/components/stepper/stepper.js +168 -308
  118. package/components/stepper/stepper.js.map +1 -1
  119. package/components/stepper/themes/step/shared/step.bootstrap.css.js +1 -1
  120. package/components/stepper/themes/step/shared/step.bootstrap.css.js.map +1 -1
  121. package/components/stepper/themes/step/shared/step.common.css.js +1 -1
  122. package/components/stepper/themes/step/shared/step.common.css.js.map +1 -1
  123. package/components/stepper/themes/step/shared/step.indigo.css.js +1 -1
  124. package/components/stepper/themes/step/shared/step.indigo.css.js.map +1 -1
  125. package/components/stepper/themes/step/themes.js +2 -3
  126. package/components/stepper/themes/step/themes.js.map +1 -1
  127. package/components/tabs/themes/tabs.base.css.js +1 -1
  128. package/components/tabs/themes/tabs.base.css.js.map +1 -1
  129. package/components/textarea/textarea.js.map +1 -1
  130. package/components/types.d.ts +1 -0
  131. package/components/types.js.map +1 -1
  132. package/components/visually-hidden/visually-hidden.d.ts +49 -0
  133. package/components/visually-hidden/visually-hidden.js +26 -0
  134. package/components/visually-hidden/visually-hidden.js.map +1 -0
  135. package/custom-elements.json +2681 -379
  136. package/igniteui-webcomponents.css-data.json +2 -2
  137. package/igniteui-webcomponents.html-data.json +1 -1
  138. package/index.d.ts +6 -2
  139. package/index.js +2 -0
  140. package/index.js.map +1 -1
  141. package/package.json +3 -1
  142. package/web-types.json +3 -3
  143. package/components/stepper/animations.js.map +0 -1
  144. package/components/stepper/stepper.common.js +0 -2
  145. package/components/stepper/stepper.common.js.map +0 -1
  146. package/components/stepper/themes/step/shared/step.fluent.css.js +0 -3
  147. package/components/stepper/themes/step/shared/step.fluent.css.js.map +0 -1
  148. /package/components/{stepper/themes/step/shared/step.fluent.css.d.ts → highlight/themes/dark/highlight.bootstrap.css.d.ts} +0 -0
  149. /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
- * IgxStepper provides a wizard-like workflow by dividing content into logical steps.
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 steps.
12
- * It supports horizontal and vertical orientation as well as keyboard navigation and provides API methods to control the active step.
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 the step components inside default slot.
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
- * @fires igcActiveStepChanging - Emitted when the active step is about to change.
19
- * @fires igcActiveStepChanged - Emitted when the active step is changed.
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
- protected static styles: import("lit").CSSResult;
59
+ static styles: import("lit").CSSResult;
24
60
  static register(): void;
25
- private readonly keyDownHandlers;
26
- private activeStep;
27
- private _shouldUpdateLinearState;
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: Array<IgcStepComponent>;
30
- /** Gets/Sets the orientation of the stepper.
67
+ get steps(): readonly IgcStepComponent[];
68
+ /**
69
+ * The orientation of the stepper.
31
70
  *
32
- * @remarks
33
- * Default value is `horizontal`.
71
+ * @attr orientation
72
+ * @default 'horizontal'
34
73
  */
35
74
  orientation: StepperOrientation;
36
- /** Get/Set the type of the steps.
75
+ /**
76
+ * The visual type of the steps.
37
77
  *
38
- * @remarks
39
- * Default value is `full`.
78
+ * @attr step-type
79
+ * @default 'full'
40
80
  */
41
81
  stepType: StepperStepType;
42
82
  /**
43
- * Get/Set whether the stepper is linear.
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
- * Get/Set whether the content is displayed above the steps.
93
+ * Whether the content is displayed above the steps.
51
94
  *
52
- * @remarks
53
- * Default value is `false` and the content is below the steps.
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
- * Get/Set the position of the steps title.
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 horizontally orientated the title is positioned on the right side of the indicator.
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
- connectedCallback(): void;
89
- private activateFirstStep;
90
- private animateSteps;
91
- private activateStep;
92
- private changeActiveStep;
93
- private moveToNextStep;
94
- private handleKeydown;
95
- private onHomeKey;
96
- private onEndKey;
97
- private onArrowDownKeyDown;
98
- private onArrowUpKeyDown;
99
- private onArrowRightKeyDown;
100
- private onArrowLeftKeyDown;
101
- private getNextStep;
102
- private getPreviousStep;
103
- private updateStepsLinearDisabled;
104
- private updateAnimation;
105
- private syncProperties;
106
- private stepsChanged;
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. */