@momentum-ui/web-components 3.2.1 → 3.2.2

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 (196) hide show
  1. package/dist/4700.js +1 -1
  2. package/dist/5584.js +1 -1
  3. package/dist/7557.js +1 -1
  4. package/dist/8441.js +1 -1
  5. package/dist/953.js +1 -1
  6. package/dist/9938.js +1 -1
  7. package/dist/comp/md-coachmark-popover-entry.js +3 -3
  8. package/dist/comp/md-menu-overlay-entry.js +2 -2
  9. package/dist/comp/md-popover-entry.js +2 -2
  10. package/dist/esm/405.js +1 -1
  11. package/dist/esm/4700.js +1 -1
  12. package/dist/esm/5584.js +1 -1
  13. package/dist/esm/7557.js +1 -1
  14. package/dist/esm/8441.js +1 -1
  15. package/dist/esm/953.js +1 -1
  16. package/dist/esm/9938.js +1 -1
  17. package/dist/esm/comp/md-coachmark-popover-entry.js +2 -2
  18. package/dist/index-entry.js +1 -1
  19. package/dist/types/[sandbox]/examples/AdvanceList/components/ErrorLoader/ErrorLoader.d.ts +2 -2
  20. package/dist/types/[sandbox]/examples/AdvanceList/components/ParentComponentError.d.ts +1 -1
  21. package/dist/types/[sandbox]/examples/AdvanceList/components/ParentComponentGeneric.d.ts +2 -2
  22. package/dist/types/[sandbox]/examples/AdvanceList/components/ParentComponentPreSelect.d.ts +2 -2
  23. package/dist/types/[sandbox]/examples/AdvanceList/components/ParentComponentWithMdOverlay.d.ts +6 -6
  24. package/dist/types/[sandbox]/examples/accordion.d.ts +3 -3
  25. package/dist/types/[sandbox]/examples/advance-list.d.ts +1 -1
  26. package/dist/types/[sandbox]/examples/alert-banner.d.ts +4 -4
  27. package/dist/types/[sandbox]/examples/alert.d.ts +3 -3
  28. package/dist/types/[sandbox]/examples/audio-player.d.ts +1 -1
  29. package/dist/types/[sandbox]/examples/avatar.d.ts +3 -3
  30. package/dist/types/[sandbox]/examples/badge.d.ts +3 -3
  31. package/dist/types/[sandbox]/examples/breadcrumb.d.ts +1 -1
  32. package/dist/types/[sandbox]/examples/button-group.d.ts +3 -3
  33. package/dist/types/[sandbox]/examples/button.d.ts +6 -6
  34. package/dist/types/[sandbox]/examples/card-ai.d.ts +1 -1
  35. package/dist/types/[sandbox]/examples/card-v2.d.ts +2 -2
  36. package/dist/types/[sandbox]/examples/card.d.ts +2 -2
  37. package/dist/types/[sandbox]/examples/chat-message.d.ts +6 -6
  38. package/dist/types/[sandbox]/examples/checkbox.d.ts +2 -2
  39. package/dist/types/[sandbox]/examples/chip.d.ts +2 -2
  40. package/dist/types/[sandbox]/examples/coachmark.d.ts +6 -6
  41. package/dist/types/[sandbox]/examples/code-editor.d.ts +1 -1
  42. package/dist/types/[sandbox]/examples/colorTable.d.ts +1 -1
  43. package/dist/types/[sandbox]/examples/combobox.d.ts +3 -3
  44. package/dist/types/[sandbox]/examples/country-code-picker.d.ts +2 -2
  45. package/dist/types/[sandbox]/examples/date-range-picker.d.ts +6 -6
  46. package/dist/types/[sandbox]/examples/date-time-picker.d.ts +1 -1
  47. package/dist/types/[sandbox]/examples/datepicker.d.ts +6 -6
  48. package/dist/types/[sandbox]/examples/draggable.d.ts +5 -5
  49. package/dist/types/[sandbox]/examples/editable-field.d.ts +3 -3
  50. package/dist/types/[sandbox]/examples/favorite.d.ts +1 -1
  51. package/dist/types/[sandbox]/examples/floating-button-bar.d.ts +1 -1
  52. package/dist/types/[sandbox]/examples/floating-modal.d.ts +2 -2
  53. package/dist/types/[sandbox]/examples/form.d.ts +3 -3
  54. package/dist/types/[sandbox]/examples/grabber.d.ts +3 -3
  55. package/dist/types/[sandbox]/examples/icon.d.ts +1 -1
  56. package/dist/types/[sandbox]/examples/input-file.d.ts +1 -1
  57. package/dist/types/[sandbox]/examples/input.d.ts +2 -2
  58. package/dist/types/[sandbox]/examples/label.d.ts +1 -1
  59. package/dist/types/[sandbox]/examples/link.d.ts +1 -1
  60. package/dist/types/[sandbox]/examples/list-v2.d.ts +5 -5
  61. package/dist/types/[sandbox]/examples/list.d.ts +2 -2
  62. package/dist/types/[sandbox]/examples/loading.d.ts +1 -1
  63. package/dist/types/[sandbox]/examples/meeting-alert.d.ts +3 -3
  64. package/dist/types/[sandbox]/examples/menu-item.d.ts +3 -3
  65. package/dist/types/[sandbox]/examples/menu-overlay.d.ts +12 -12
  66. package/dist/types/[sandbox]/examples/modal.d.ts +16 -16
  67. package/dist/types/[sandbox]/examples/pagination.d.ts +1 -1
  68. package/dist/types/[sandbox]/examples/phone-input.d.ts +2 -2
  69. package/dist/types/[sandbox]/examples/popover.d.ts +10 -10
  70. package/dist/types/[sandbox]/examples/presence.d.ts +1 -1
  71. package/dist/types/[sandbox]/examples/progress-bar.d.ts +1 -1
  72. package/dist/types/[sandbox]/examples/radio-group.d.ts +4 -4
  73. package/dist/types/[sandbox]/examples/skeleton.d.ts +1 -1
  74. package/dist/types/[sandbox]/examples/slider.d.ts +1 -1
  75. package/dist/types/[sandbox]/examples/spinner.d.ts +1 -1
  76. package/dist/types/[sandbox]/examples/table-advanced.d.ts +1 -1
  77. package/dist/types/[sandbox]/examples/table.d.ts +3 -3
  78. package/dist/types/[sandbox]/examples/tabs.d.ts +16 -16
  79. package/dist/types/[sandbox]/examples/task-item.d.ts +4 -4
  80. package/dist/types/[sandbox]/examples/timepicker.d.ts +2 -2
  81. package/dist/types/[sandbox]/examples/toggle-switch.d.ts +1 -1
  82. package/dist/types/[sandbox]/examples/tooltip.d.ts +4 -4
  83. package/dist/types/[sandbox]/sandbox.d.ts +2 -2
  84. package/dist/types/[sandbox]/sandbox.mock.d.ts +1 -1
  85. package/dist/types/components/accordion/Accordion.test.d.ts +1 -1
  86. package/dist/types/components/accordion/AccordionItem.d.ts +1 -1
  87. package/dist/types/components/advance-list/AdvanceList.d.ts +1 -1
  88. package/dist/types/components/advance-list/AdvanceList.stories.d.ts +2 -2
  89. package/dist/types/components/advance-list/AdvanceList.test.d.ts +2 -2
  90. package/dist/types/components/alert/Alert.stories.d.ts +1 -1
  91. package/dist/types/components/alert-banner/AlertBanner.stories.d.ts +1 -1
  92. package/dist/types/components/audio-player/AudioPlayer.stories.d.ts +1 -1
  93. package/dist/types/components/avatar/Avatar.d.ts +3 -3
  94. package/dist/types/components/avatar/Avatar.stories.d.ts +2 -2
  95. package/dist/types/components/badge/Badge.d.ts +1 -1
  96. package/dist/types/components/badge/Badge.stories.d.ts +2 -2
  97. package/dist/types/components/badge/Badge.test.d.ts +1 -1
  98. package/dist/types/components/breadcrumb/Breadcrumb.stories.d.ts +1 -1
  99. package/dist/types/components/button/Button.d.ts +2 -2
  100. package/dist/types/components/button/Button.stories.d.ts +3 -3
  101. package/dist/types/components/button/Button.test.d.ts +1 -1
  102. package/dist/types/components/button-group/ButtonGroup.d.ts +1 -1
  103. package/dist/types/components/button-group/ButtonGroup.stories.d.ts +2 -2
  104. package/dist/types/components/button-group/ButtonGroup.test.d.ts +1 -1
  105. package/dist/types/components/card/Card.stories.d.ts +3 -3
  106. package/dist/types/components/card/Card.test.d.ts +1 -1
  107. package/dist/types/components/card-ai/CardAi.stories.d.ts +1 -1
  108. package/dist/types/components/chat-message/ChatMessage.stories.d.ts +2 -2
  109. package/dist/types/components/checkbox/Checkbox.d.ts +1 -1
  110. package/dist/types/components/checkbox/Checkbox.stories.d.ts +2 -2
  111. package/dist/types/components/chip/Chip.d.ts +3 -3
  112. package/dist/types/components/chip/Chip.stories.d.ts +2 -2
  113. package/dist/types/components/chip/Chip.test.d.ts +1 -1
  114. package/dist/types/components/coachmark/Coachmark.d.ts +1 -1
  115. package/dist/types/components/coachmark/Coachmark.stories.d.ts +1 -1
  116. package/dist/types/components/coachmark/Coachmark.test.d.ts +1 -1
  117. package/dist/types/components/combobox/ComboBox.d.ts +5 -5
  118. package/dist/types/components/combobox/ComboBox.stories.d.ts +2 -2
  119. package/dist/types/components/combobox/ComboBox.test.d.ts +1 -1
  120. package/dist/types/components/country-code-picker/CountryCodePicker.stories.d.ts +1 -1
  121. package/dist/types/components/date-range-picker/DateRangePicker.stories.d.ts +1 -1
  122. package/dist/types/components/date-time-picker/DateTimePicker.stories.d.ts +2 -2
  123. package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +1 -1
  124. package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +1 -1
  125. package/dist/types/components/datepicker/datepicker-month/DatePickerMonth.d.ts +1 -1
  126. package/dist/types/components/datepicker/datepicker-week/DatePickerWeek.d.ts +1 -1
  127. package/dist/types/components/draggable/Draggable.stories.d.ts +3 -3
  128. package/dist/types/components/draggable/DraggableItem.d.ts +1 -1
  129. package/dist/types/components/draggable/DraggableItem.test.d.ts +1 -1
  130. package/dist/types/components/dropdown/Dropdown.d.ts +3 -3
  131. package/dist/types/components/dropdown/Dropdown.stories.d.ts +1 -1
  132. package/dist/types/components/dropdown/Dropdown.test.d.ts +2 -2
  133. package/dist/types/components/editable-textfield/EditableTextfield.d.ts +2 -2
  134. package/dist/types/components/editable-textfield/EditableTextfield.stories.d.ts +1 -1
  135. package/dist/types/components/favorite/Favorite.d.ts +1 -1
  136. package/dist/types/components/favorite/Favorite.stories.d.ts +1 -1
  137. package/dist/types/components/favorite/Favorite.test.d.ts +1 -1
  138. package/dist/types/components/floating-button-bar/FloatingButtonBar.stories.d.ts +1 -1
  139. package/dist/types/components/floating-modal/FloatingMinimizedModal.d.ts +1 -1
  140. package/dist/types/components/floating-modal/FloatingModal.d.ts +1 -1
  141. package/dist/types/components/floating-modal/FloatingModal.stories.d.ts +3 -3
  142. package/dist/types/components/form/Form.stories.d.ts +2 -2
  143. package/dist/types/components/form/Form.test.d.ts +2 -2
  144. package/dist/types/components/grabber/Grabber.d.ts +1 -1
  145. package/dist/types/components/grabber/Grabber.stories.d.ts +1 -1
  146. package/dist/types/components/grabber/Grabber.test.d.ts +1 -1
  147. package/dist/types/components/icon/Icon.stories.d.ts +1 -1
  148. package/dist/types/components/input/Input.d.ts +6 -6
  149. package/dist/types/components/input/Input.stories.d.ts +2 -2
  150. package/dist/types/components/label/Label.stories.d.ts +2 -2
  151. package/dist/types/components/link/Link.stories.d.ts +1 -1
  152. package/dist/types/components/list/List.stories.d.ts +2 -2
  153. package/dist/types/components/list/ListItem.d.ts +1 -1
  154. package/dist/types/components/list-v2/list-item-v2.stories.d.ts +3 -3
  155. package/dist/types/components/list-v2/list-item-v2.test.d.ts +1 -1
  156. package/dist/types/components/list-v2/list-v2.stories.d.ts +5 -5
  157. package/dist/types/components/loading/Loading.stories.d.ts +1 -1
  158. package/dist/types/components/meeting-alert/MeetingAlert.stories.d.ts +1 -1
  159. package/dist/types/components/menu/Menu.d.ts +1 -1
  160. package/dist/types/components/menu/Menu.stories.d.ts +3 -3
  161. package/dist/types/components/menu/Menu.test.d.ts +1 -1
  162. package/dist/types/components/menu-overlay/MenuOverlay.d.ts +1 -1
  163. package/dist/types/components/menu-overlay/MenuOverlay.stories.d.ts +4 -4
  164. package/dist/types/components/menu-overlay/MenuOverlay.test.d.ts +2 -2
  165. package/dist/types/components/modal/Modal.d.ts +1 -1
  166. package/dist/types/components/modal/Modal.stories.d.ts +1 -1
  167. package/dist/types/components/phone-input/PhoneInput.stories.d.ts +1 -1
  168. package/dist/types/components/popover/Popover.d.ts +1 -1
  169. package/dist/types/components/progress-bar/ProgressBar.stories.d.ts +1 -1
  170. package/dist/types/components/radio/Radio.d.ts +2 -2
  171. package/dist/types/components/radio/RadioGroup.stories.d.ts +2 -2
  172. package/dist/types/components/slider/Slider.d.ts +1 -1
  173. package/dist/types/components/slider/Slider.stories.d.ts +1 -1
  174. package/dist/types/components/spinner/Spinner.stories.d.ts +1 -1
  175. package/dist/types/components/table/Table.stories.d.ts +1 -1
  176. package/dist/types/components/table-advanced/TableAdvanced.d.ts +1 -1
  177. package/dist/types/components/table-advanced/TableAdvanced.stories.d.ts +1 -1
  178. package/dist/types/components/tabs/Tab.d.ts +1 -1
  179. package/dist/types/components/tabs/TabPanel.d.ts +1 -1
  180. package/dist/types/components/tabs/Tabs.stories.d.ts +4 -4
  181. package/dist/types/components/tabs/Tabs.test.d.ts +1 -1
  182. package/dist/types/components/taskitem/TaskItem.stories.d.ts +2 -2
  183. package/dist/types/components/taskitem/TaskItem.utils.d.ts +1 -1
  184. package/dist/types/components/timepicker/TimePicker.d.ts +1 -1
  185. package/dist/types/components/toggle-switch/ToggleSwitch.d.ts +1 -1
  186. package/dist/types/components/toggle-switch/ToggleSwitch.stories.d.ts +1 -1
  187. package/dist/types/components/tooltip/Tooltip.d.ts +1 -1
  188. package/dist/types/components/tooltip/Tooltip.stories.d.ts +3 -3
  189. package/dist/types/components/tooltip/Tooltip.test.d.ts +2 -2
  190. package/dist/types/internal-components/color-table/ColorTable.d.ts +2 -2
  191. package/dist/types/internal-components/color-table/ColorTable.stories.d.ts +1 -1
  192. package/dist/types/managers/ThemeManager.d.ts +1 -1
  193. package/dist/types/mixins/FocusMixin.d.ts +16 -3
  194. package/dist/types/mixins/FocusTrapMixin.d.ts +25 -12
  195. package/dist/types/mixins/FocusTrapMixin.test.d.ts +2 -2
  196. package/package.json +1 -1
@@ -61,7 +61,7 @@ export declare namespace Input {
61
61
  srcEvent: MouseEvent;
62
62
  expanded: boolean;
63
63
  }
64
- const ELEMENT_base: typeof LitElement & import("@/mixins/FocusMixin").AnyConstructor<import("@/mixins/FocusMixin").FocusClass>;
64
+ const ELEMENT_base: import("../../mixins/FocusMixin").FocusMixinReturnType<typeof LitElement>;
65
65
  export class ELEMENT extends ELEMENT_base {
66
66
  ariaDescribedBy: string;
67
67
  ariaInvalid: Input.AriaInvalidType;
@@ -161,15 +161,15 @@ export declare namespace Input {
161
161
  get ariaExpandedValue(): "true" | "false" | undefined;
162
162
  get hasRightIcon(): boolean;
163
163
  inputTemplate(): import("lit-html").TemplateResult<1>;
164
- inputLeftTemplate(): import("lit-html").TemplateResult<1> | typeof nothing;
164
+ inputLeftTemplate(): typeof nothing | import("lit-html").TemplateResult<1>;
165
165
  private get inputRightTemplateClassMap();
166
166
  inputRightTemplate(): import("lit-html").TemplateResult<1> | undefined;
167
167
  private get comboBoxButtonTemplate();
168
168
  private characterCountLabelTemplate;
169
- secondaryLabelTemplate(): import("lit-html").TemplateResult<1> | typeof nothing;
170
- helpTextTemplate(): import("lit-html").TemplateResult<1> | typeof nothing;
171
- messagesTemplate(): import("lit-html").TemplateResult<1> | typeof nothing;
172
- labelTemplate(): import("lit-html").TemplateResult<1> | typeof nothing;
169
+ secondaryLabelTemplate(): typeof nothing | import("lit-html").TemplateResult<1>;
170
+ helpTextTemplate(): typeof nothing | import("lit-html").TemplateResult<1>;
171
+ messagesTemplate(): typeof nothing | import("lit-html").TemplateResult<1>;
172
+ labelTemplate(): typeof nothing | import("lit-html").TemplateResult<1>;
173
173
  static get styles(): import("lit").CSSResult[];
174
174
  render(): import("lit-html").TemplateResult<1>;
175
175
  }
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/icon/Icon";
9
- import "@/components/input/Input";
8
+ import "../../components/icon/Icon";
9
+ import "../../components/input/Input";
10
10
  import { Meta, StoryObj } from "@storybook/web-components";
11
11
  export declare const Input: StoryObj;
12
12
  export declare const NewMomentumMessages: StoryObj;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/input/Input";
9
- import "@/components/label/Label";
8
+ import "../../components/input/Input";
9
+ import "../../components/label/Label";
10
10
  import { StoryObj } from "@storybook/web-components";
11
11
  declare const _default: {
12
12
  title: string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/link/Link";
8
+ import "../../components/link/Link";
9
9
  import { Meta, StoryObj } from "@storybook/web-components";
10
10
  export declare const Link: StoryObj;
11
11
  declare const meta: Meta;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/list/List";
9
- import "@/components/list/ListItem";
8
+ import "../../components/list/List";
9
+ import "../../components/list/ListItem";
10
10
  import { Meta, StoryObj } from "@storybook/web-components";
11
11
  export declare const List: StoryObj;
12
12
  declare const meta: Meta;
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from "lit";
2
2
  export declare namespace ListItem {
3
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
3
+ const ELEMENT_base: import("../../mixins/FocusMixin").FocusMixinReturnType<typeof LitElement>;
4
4
  export class ELEMENT extends ELEMENT_base {
5
5
  role: "listitem" | "option" | "menuitem";
6
6
  tabIndex: number;
@@ -1,6 +1,6 @@
1
- import "@/components/button/Button";
2
- import "@/components/chip/Chip";
3
- import "@/components/menu-overlay/MenuOverlay";
1
+ import "../../components/button/Button";
2
+ import "../../components/chip/Chip";
3
+ import "../../components/menu-overlay/MenuOverlay";
4
4
  import { StoryObj } from "@storybook/web-components";
5
5
  import "./list-item-v2";
6
6
  import { ListItemV2 } from "./list-item-v2";
@@ -1,2 +1,2 @@
1
- import "@/components/button/Button";
1
+ import "../../components/button/Button";
2
2
  import "./list-item-v2";
@@ -1,8 +1,8 @@
1
- import "@/components/avatar/Avatar";
2
- import "@/components/checkbox/Checkbox";
3
- import "@/components/chip/Chip";
4
- import "@/components/icon/Icon";
5
- import "@/components/input/Input";
1
+ import "../../components/avatar/Avatar";
2
+ import "../../components/checkbox/Checkbox";
3
+ import "../../components/chip/Chip";
4
+ import "../../components/icon/Icon";
5
+ import "../../components/input/Input";
6
6
  import { StoryObj } from "@storybook/web-components";
7
7
  import "./list-item-v2";
8
8
  import "./list-v2";
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/loading/Loading";
8
+ import "../../components/loading/Loading";
9
9
  import type { Meta, StoryObj } from "@storybook/web-components";
10
10
  declare const meta: Meta;
11
11
  export declare const Loading: StoryObj;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/meeting-alert/MeetingAlert";
8
+ import "../../components/meeting-alert/MeetingAlert";
9
9
  import { Meta, StoryObj } from "@storybook/web-components";
10
10
  declare const meta: Meta;
11
11
  export default meta;
@@ -9,7 +9,7 @@ import { LitElement } from "lit";
9
9
  import { MenuItem } from "./MenuItem";
10
10
  export declare const MORE_MENU_ITEM_COPY_ID_PREFIX = "more-menu-item-";
11
11
  export declare namespace Menu {
12
- const ELEMENT_base: typeof LitElement & import("@/mixins/RovingTabIndexMixin").AnyConstructor<import("@/mixins/RovingTabIndexMixin").RovingTabIndexInterface & import("@/mixins/SlottedMixin").SlotableInterface & import("@/mixins/SlottedMixin").SlotableClass & import("@/mixins/RovingTabIndexMixin").RovingTabIndexClass> & import("@/mixins/SlottedMixin").AnyConstructor<import("@/mixins/SlottedMixin").SlotableClass & import("@/mixins/SlottedMixin").SlotableInterface>;
12
+ const ELEMENT_base: typeof LitElement & import("../../mixins/RovingTabIndexMixin").AnyConstructor<import("../../mixins/RovingTabIndexMixin").RovingTabIndexInterface & import("../../mixins/SlottedMixin").SlotableInterface & import("../../mixins/SlottedMixin").SlotableClass & import("../../mixins/RovingTabIndexMixin").RovingTabIndexClass> & import("../../mixins/SlottedMixin").AnyConstructor<import("../../mixins/SlottedMixin").SlotableClass & import("../../mixins/SlottedMixin").SlotableInterface>;
13
13
  export class ELEMENT extends ELEMENT_base {
14
14
  justified: boolean;
15
15
  direction: string;
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/icon/Icon";
9
- import "@/components/menu/Menu";
10
- import "@/components/menu/MenuItem";
8
+ import "../../components/icon/Icon";
9
+ import "../../components/menu/Menu";
10
+ import "../../components/menu/MenuItem";
11
11
  import { StoryObj } from "@storybook/web-components";
12
12
  declare const _default: {
13
13
  title: string;
@@ -1,2 +1,2 @@
1
- import "@/components/icon/Icon";
1
+ import "../../components/icon/Icon";
2
2
  import "./Menu";
@@ -18,7 +18,7 @@ export declare namespace MenuOverlay {
18
18
  export type Size = (typeof menuOverlaySize)[number];
19
19
  export type Placement = (typeof menuOverlayPlacement)[number];
20
20
  export type Role = (typeof menuOverlayRole)[number];
21
- const ELEMENT_base: typeof LitElement & import("@/mixins/FocusTrapMixin").AnyConstructor<import("@/mixins/FocusTrapMixin").FocusTrapClass & import("@/mixins/FocusTrapMixin").FocusTrapInterface & import("../../mixins/FocusMixin").FocusClass>;
21
+ const ELEMENT_base: import("../../mixins/FocusTrapMixin").FocusTrapMixinReturnType<typeof LitElement>;
22
22
  export class ELEMENT extends ELEMENT_base {
23
23
  private _isOpen;
24
24
  private static readonly activeOverlay;
@@ -5,10 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/button/Button";
9
- import "@/components/checkbox/Checkbox";
10
- import "@/components/input/Input";
11
- import "@/components/menu-overlay/MenuOverlay";
8
+ import "../../components/button/Button";
9
+ import "../../components/checkbox/Checkbox";
10
+ import "../../components/input/Input";
11
+ import "../../components/menu-overlay/MenuOverlay";
12
12
  import { StoryObj } from "@storybook/web-components";
13
13
  declare const _default: {
14
14
  title: string;
@@ -1,2 +1,2 @@
1
- import "@/components/button/Button";
2
- import "@/components/input/Input";
1
+ import "../../components/button/Button";
2
+ import "../../components/input/Input";
@@ -20,7 +20,7 @@ export declare const modalAlignment: readonly ["leading", "center"];
20
20
  export declare namespace Modal {
21
21
  export type Type = (typeof modalType)[number];
22
22
  export type Alignment = (typeof modalAlignment)[number];
23
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusTrapMixin").AnyConstructor<import("../../mixins/FocusTrapMixin").FocusTrapClass & import("../../mixins/FocusTrapMixin").FocusTrapInterface & import("../../mixins/FocusMixin").FocusClass>;
23
+ const ELEMENT_base: import("../../mixins/FocusTrapMixin").FocusTrapMixinReturnType<typeof LitElement>;
24
24
  export class ELEMENT extends ELEMENT_base {
25
25
  show: boolean;
26
26
  headerLabel: string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/modal/Modal";
8
+ import "../../components/modal/Modal";
9
9
  import { Meta, StoryObj } from "@storybook/web-components";
10
10
  export declare const Modal: StoryObj;
11
11
  declare const meta: Meta;
@@ -1,4 +1,4 @@
1
- import "@/components/phone-input/PhoneInput";
1
+ import "../../components/phone-input/PhoneInput";
2
2
  import { Args } from "@storybook/web-components";
3
3
  declare const _default: {
4
4
  title: string;
@@ -15,7 +15,7 @@ export declare class PopoverController implements IPopoverController {
15
15
  toggle(): void;
16
16
  isVisible(): boolean;
17
17
  }
18
- declare const Popover_base: typeof LitElement & import("@/mixins/FocusTrapMixin").AnyConstructor<import("@/mixins/FocusTrapMixin").FocusTrapClass & import("@/mixins/FocusTrapMixin").FocusTrapInterface & import("../../mixins/FocusMixin").FocusClass>;
18
+ declare const Popover_base: import("../../mixins/FocusTrapMixin").FocusTrapMixinReturnType<typeof LitElement>;
19
19
  /**
20
20
  * Popover component is a lightweight floating UI element that displays additional content when triggered.
21
21
  * It can be used for tooltips, dropdowns, or contextual menus.
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/progress-bar/ProgressBar";
8
+ import "../../components/progress-bar/ProgressBar";
9
9
  import { Meta, StoryObj } from "@storybook/web-components";
10
10
  export declare const ProgressBar: StoryObj;
11
11
  declare const meta: Meta;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { LitElement, nothing } from "lit";
9
9
  export declare namespace Radio {
10
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
10
+ const ELEMENT_base: import("../../mixins/FocusMixin").FocusMixinReturnType<typeof LitElement>;
11
11
  export class ELEMENT extends ELEMENT_base {
12
12
  tabIndex: number;
13
13
  label: string;
@@ -23,7 +23,7 @@ export declare namespace Radio {
23
23
  private get inputAriaLabel();
24
24
  static get styles(): import("lit").CSSResult[];
25
25
  private get helpTextClassMap();
26
- messagesTemplate(): import("lit-html").TemplateResult<1> | typeof nothing;
26
+ messagesTemplate(): typeof nothing | import("lit-html").TemplateResult<1>;
27
27
  render(): import("lit-html").TemplateResult<1>;
28
28
  }
29
29
  export {};
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/radio/Radio";
9
- import "@/components/radio/RadioGroup";
8
+ import "../../components/radio/Radio";
9
+ import "../../components/radio/RadioGroup";
10
10
  import { StoryObj } from "@storybook/web-components";
11
11
  declare const _default: {
12
12
  title: string;
@@ -7,7 +7,7 @@ export declare namespace Slider {
7
7
  oldValue: number;
8
8
  newValue: number;
9
9
  }
10
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
10
+ const ELEMENT_base: import("../../mixins/FocusMixin").FocusMixinReturnType<typeof LitElement>;
11
11
  export class ELEMENT extends ELEMENT_base {
12
12
  private _disabled;
13
13
  private _now;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/slider/Slider";
8
+ import "../../components/slider/Slider";
9
9
  import { StoryObj } from "@storybook/web-components";
10
10
  declare const _default: {
11
11
  title: string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/spinner/Spinner";
8
+ import "../../components/spinner/Spinner";
9
9
  import { StoryObj } from "@storybook/web-components";
10
10
  declare const _default: {
11
11
  title: string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/table/Table";
8
+ import "../../components/table/Table";
9
9
  import { StoryObj } from "@storybook/web-components";
10
10
  declare const _default: {
11
11
  title: string;
@@ -12,7 +12,7 @@ import { LitElement, nothing, PropertyValues, TemplateResult } from "lit";
12
12
  import { Evt, TemplateCallback, TemplateInfo } from "./src/decorators";
13
13
  import { Filter } from "./src/filter";
14
14
  export declare namespace TableAdvanced {
15
- const ELEMENT_base: typeof LitElement & import("@/mixins/FocusTrapMixin").AnyConstructor<import("@/mixins/FocusTrapMixin").FocusTrapClass & import("@/mixins/FocusTrapMixin").FocusTrapInterface & import("../../mixins/FocusMixin").FocusClass>;
15
+ const ELEMENT_base: import("../../mixins/FocusTrapMixin").FocusTrapMixinReturnType<typeof LitElement>;
16
16
  /**
17
17
  * @element md-table-advanced
18
18
  * @fires md-table-advanced-change
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/table-advanced/TableAdvanced";
8
+ import "../../components/table-advanced/TableAdvanced";
9
9
  import { Args, Meta } from "@storybook/web-components";
10
10
  export declare const TableAdvanced: (args: Args) => import("lit-html").TemplateResult<1>;
11
11
  declare const meta: Meta;
@@ -24,7 +24,7 @@ export type TabKeyDownEvent = {
24
24
  srcEvent: KeyboardEvent;
25
25
  };
26
26
  export declare namespace Tab {
27
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
27
+ const ELEMENT_base: import("../../mixins/FocusMixin").FocusMixinReturnType<typeof LitElement>;
28
28
  export class ELEMENT extends ELEMENT_base {
29
29
  tabIndex: number;
30
30
  ariaLabel: string;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { LitElement, PropertyValues } from "lit";
9
9
  export declare namespace TabPanel {
10
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
10
+ const ELEMENT_base: import("../../mixins/FocusMixin").FocusMixinReturnType<typeof LitElement>;
11
11
  export class ELEMENT extends ELEMENT_base {
12
12
  selected: boolean;
13
13
  name: string;
@@ -5,10 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/tabs/Tab";
9
- import "@/components/tabs/TabPanel";
10
- import "@/components/tabs/Tabs";
11
- import "@/components/tooltip/Tooltip";
8
+ import "../../components/tabs/Tab";
9
+ import "../../components/tabs/TabPanel";
10
+ import "../../components/tabs/Tabs";
11
+ import "../../components/tooltip/Tooltip";
12
12
  import { StoryObj } from "@storybook/web-components";
13
13
  export declare const Example: StoryObj;
14
14
  export declare const HorizontalTab: StoryObj;
@@ -1,3 +1,3 @@
1
- import "@/components/input/Input";
1
+ import "../../components/input/Input";
2
2
  import "./Tab";
3
3
  import "./TabPanel";
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/badge/Badge";
9
- import "@/components/taskitem/TaskItem";
8
+ import "../../components/badge/Badge";
9
+ import "../../components/taskitem/TaskItem";
10
10
  import { StoryObj } from "@storybook/web-components";
11
11
  import "../link/Link";
12
12
  import "../chip/Chip";
@@ -6,5 +6,5 @@ export declare const getChannelAvatar: (selected: boolean, status: string | null
6
6
  export declare const renderTaskType: (mediaType: string, selected: boolean, status: string | null, iconSrc: string) => TemplateResult<1>;
7
7
  export declare const renderStatus: (status: string) => TemplateResult<1>;
8
8
  export declare const renderLegacyTaskType: (mediaType: string, selected: boolean, iconSrc: string) => TemplateResult<1>;
9
- export declare const renderChatCount: (quantity: number, isRestyle: boolean, element: HTMLElement) => TemplateResult<1> | typeof nothing;
9
+ export declare const renderChatCount: (quantity: number, isRestyle: boolean, element: HTMLElement) => typeof nothing | TemplateResult<1>;
10
10
  export {};
@@ -2,7 +2,7 @@ import "../combobox/ComboBox";
2
2
  import "../input/Input";
3
3
  import { LitElement, PropertyValues } from "lit";
4
4
  import { DateTime } from "luxon";
5
- import { TIME_UNIT } from "@/constants";
5
+ import { TIME_UNIT } from "../../constants";
6
6
  export declare const timeUnits: readonly [TIME_UNIT.HOUR, TIME_UNIT.MINUTE, TIME_UNIT.SECOND, TIME_UNIT.AM_PM];
7
7
  export declare const timeSpecificity: TIME_UNIT[];
8
8
  export declare namespace TimePicker {
@@ -10,7 +10,7 @@ import { LitElement } from "lit";
10
10
  export declare const alignLabel: readonly ["left", "right"];
11
11
  export declare namespace ToggleSwitch {
12
12
  export type alignLabel = (typeof alignLabel)[number];
13
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
13
+ const ELEMENT_base: import("../../mixins/FocusMixin").FocusMixinReturnType<typeof LitElement>;
14
14
  export class ELEMENT extends ELEMENT_base {
15
15
  htmlId: string;
16
16
  label: string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/toggle-switch/ToggleSwitch";
8
+ import "../../components/toggle-switch/ToggleSwitch";
9
9
  import { Meta, StoryObj } from "@storybook/web-components";
10
10
  export declare const ToggleSwitch: StoryObj;
11
11
  declare const meta: Meta;
@@ -18,7 +18,7 @@ export type TooltipEvent = {
18
18
  export declare namespace Tooltip {
19
19
  export type Placement = PlacementType;
20
20
  export type Strategy = StrategyType;
21
- const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass> & import("../../mixins/ResizeMixin").AnyConstructor<import("../../mixins/ResizeMixin").ResizeClass>;
21
+ const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClassInterface & import("../../mixins/FocusMixin").FocusClass> & import("../../mixins/ResizeMixin").AnyConstructor<import("../../mixins/ResizeMixin").ResizeClass>;
22
22
  export class ELEMENT extends ELEMENT_base {
23
23
  message: string;
24
24
  placement: Tooltip.Placement;
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/components/button/Button";
9
- import "@/components/theme/Theme";
10
- import "@/components/tooltip/Tooltip";
8
+ import "../../components/button/Button";
9
+ import "../../components/theme/Theme";
10
+ import "../../components/tooltip/Tooltip";
11
11
  import { Meta, StoryObj } from "@storybook/web-components";
12
12
  export declare const Tooltip: StoryObj;
13
13
  declare const meta: Meta;
@@ -1,3 +1,3 @@
1
- import "@/components/icon/Icon";
2
- import "@/components/theme/Theme";
1
+ import "../../components/icon/Icon";
2
+ import "../../components/theme/Theme";
3
3
  import "./Tooltip";
@@ -1,9 +1,9 @@
1
- import "@/components/table-advanced/TableAdvanced";
1
+ import "../../components/table-advanced/TableAdvanced";
2
2
  import { LitElement, nothing, PropertyValues } from "lit";
3
3
  export declare class ColorTableSandbox extends LitElement {
4
4
  private colorTokenTableData;
5
5
  firstUpdated(changedProperties: PropertyValues): void;
6
- renderColorTable(): import("lit-html").TemplateResult<1> | typeof nothing;
6
+ renderColorTable(): typeof nothing | import("lit-html").TemplateResult<1>;
7
7
  static get styles(): import("lit").CSSResult[];
8
8
  render(): import("lit-html").TemplateResult<1>;
9
9
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import "@/internal-components/color-table/ColorTable";
8
+ import "../../internal-components/color-table/ColorTable";
9
9
  import { Meta, StoryObj } from "@storybook/web-components";
10
10
  export declare const ColorTable: StoryObj;
11
11
  declare const meta: Meta;
@@ -1,4 +1,4 @@
1
- import { ThemeName, BackgroundMode } from "@/components/theme/Theme";
1
+ import { ThemeName, BackgroundMode } from "../components/theme/Theme";
2
2
  /**
3
3
  * ThemeManager is a class that manages the global theme state.
4
4
  * It provides observable properties that can be observed by other classes
@@ -28,17 +28,30 @@
28
28
  * }
29
29
  * */
30
30
  import { LitElement } from "lit";
31
- export type AnyConstructor<A = LitElement> = new (...input: any[]) => A;
31
+ export type AnyConstructor<A = LitElement> = new (...args: any[]) => A;
32
32
  export type FocusEventDetail = {
33
33
  sourceEvent: Event;
34
34
  };
35
+ /**
36
+ * Interface describing the public properties added by FocusMixin.
37
+ * Protected methods are intentionally omitted to allow subclasses to override with protected visibility.
38
+ */
39
+ export interface FocusClassInterface {
40
+ autofocus: boolean;
41
+ }
42
+ /**
43
+ * Abstract class used internally for super calls within the mixin implementation.
44
+ * Also used in tests via bracket notation to access protected methods.
45
+ */
35
46
  export declare abstract class FocusClass extends LitElement {
47
+ autofocus: boolean;
36
48
  protected setFocus?(force: boolean): void;
37
49
  protected handleFocusIn?(event: Event): void;
38
50
  protected handleFocusOut?(event: Event): void;
39
51
  protected getDeepActiveElement?(): Element;
40
52
  protected isElementFocused?(element: HTMLElement): boolean;
41
- protected manageAutoFocus?(element?: Element): void;
53
+ protected manageAutoFocus?(element?: HTMLElement): void;
42
54
  protected getActiveElement?(): Element | null;
43
55
  }
44
- export declare const FocusMixin: <T extends AnyConstructor<FocusClass>>(base: T) => T & AnyConstructor<FocusClass>;
56
+ export type FocusMixinReturnType<T extends AnyConstructor<LitElement>> = T & AnyConstructor<FocusClassInterface & FocusClass>;
57
+ export declare const FocusMixin: <T extends AnyConstructor<LitElement>>(base: T) => FocusMixinReturnType<T>;
@@ -1,20 +1,33 @@
1
1
  import { LitElement } from "lit";
2
- import { FocusClass } from "./FocusMixin";
2
+ import { FocusClass, FocusClassInterface, FocusMixinReturnType } from "./FocusMixin";
3
3
  export type AnyConstructor<A = LitElement> = new (...args: any[]) => A;
4
- export declare abstract class FocusTrapClass extends LitElement {
5
- protected deactivateFocusTrap?(): void;
6
- protected activateFocusTrap?(): void;
7
- protected focusableElements?: HTMLElement[];
8
- protected initialFocusComplete?: boolean;
9
- protected setFocusableElements?(): void;
10
- protected setInitialFocus?(prefferableElement?: HTMLElement | number, ignoreAutoFocus?: boolean): void;
11
- protected setFocusOnTrigger?(triggerEleement?: HTMLElement): void;
12
- protected setFocusOnDeepestNestedElement?(element?: HTMLElement): void;
4
+ /**
5
+ * Interface describing the public properties added by FocusTrapMixin.
6
+ * Protected methods are intentionally omitted to allow subclasses to override with protected visibility.
7
+ */
8
+ export interface FocusTrapClassInterface extends FocusClassInterface {
9
+ activeFocusTrap: boolean;
10
+ preventClickOutside: boolean;
11
+ preventScroll: boolean;
12
+ focusTrapIndex: number;
13
13
  }
14
- export interface FocusTrapInterface {
14
+ /**
15
+ * Abstract class used internally for super calls within the mixin implementation.
16
+ * Also used in tests via bracket notation to access protected methods.
17
+ */
18
+ export declare abstract class FocusTrapClass extends FocusClass {
15
19
  activeFocusTrap: boolean;
16
20
  preventClickOutside: boolean;
17
21
  preventScroll: boolean;
18
22
  focusTrapIndex: number;
23
+ protected focusableElements?: HTMLElement[];
24
+ protected initialFocusComplete?: boolean;
25
+ protected deactivateFocusTrap?(): void;
26
+ protected activateFocusTrap?(): void;
27
+ protected setFocusableElements?(): void;
28
+ protected setInitialFocus?(prefferableElement?: HTMLElement | number, ignoreAutoFocus?: boolean): void;
29
+ protected setFocusOnTrigger?(triggerElement?: HTMLElement): void;
30
+ protected setFocusOnDeepestNestedElement?(element?: HTMLElement): void;
19
31
  }
20
- export declare const FocusTrapMixin: <T extends AnyConstructor<FocusClass & FocusTrapClass>>(base: T) => T & AnyConstructor<FocusTrapClass & FocusTrapInterface & FocusClass>;
32
+ export type FocusTrapMixinReturnType<T extends AnyConstructor<LitElement>> = FocusMixinReturnType<T> & AnyConstructor<FocusTrapClassInterface & FocusTrapClass>;
33
+ export declare const FocusTrapMixin: <T extends AnyConstructor<LitElement>>(base: T) => FocusTrapMixinReturnType<T>;
@@ -1,2 +1,2 @@
1
- import "@/components/combobox/ComboBox";
2
- import "@/components/input/Input";
1
+ import "../components/combobox/ComboBox";
2
+ import "../components/input/Input";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",