@momentum-ui/web-components 2.13.18 → 2.13.19

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 (123) hide show
  1. package/dist/chunks/md-10.js +1 -1
  2. package/dist/chunks/md-12.js +1 -1
  3. package/dist/chunks/md-13.js +2 -2
  4. package/dist/chunks/md-14.js +1 -1
  5. package/dist/chunks/md-15.js +1 -1
  6. package/dist/chunks/md-16.js +1 -1
  7. package/dist/chunks/md-17.js +1 -1
  8. package/dist/chunks/md-18.js +1 -1
  9. package/dist/chunks/md-19.js +1 -1
  10. package/dist/chunks/md-20.js +1 -1
  11. package/dist/chunks/md-21.js +5 -5
  12. package/dist/chunks/md-22.js +1 -1
  13. package/dist/chunks/md-23.js +1 -1
  14. package/dist/chunks/md-24.js +1 -1
  15. package/dist/chunks/md-26.js +1 -1
  16. package/dist/chunks/md-27.js +2 -2
  17. package/dist/chunks/md-28.js +1 -1
  18. package/dist/chunks/md-29.js +31 -24
  19. package/dist/chunks/md-30.js +1 -1
  20. package/dist/chunks/md-31.js +1 -1
  21. package/dist/chunks/md-32.js +1 -1
  22. package/dist/chunks/md-33.js +4 -4
  23. package/dist/chunks/md-34.js +1 -1
  24. package/dist/chunks/md-35.js +1 -1
  25. package/dist/chunks/md-36.js +1 -1
  26. package/dist/chunks/md-37.js +1 -1
  27. package/dist/chunks/md-38.js +1 -1
  28. package/dist/chunks/md-39.js +1 -1
  29. package/dist/chunks/md-40.js +1 -1
  30. package/dist/chunks/md-41.js +1 -1
  31. package/dist/chunks/md-42.js +2 -2
  32. package/dist/chunks/md-43.js +1 -1
  33. package/dist/chunks/md-44.js +1 -1
  34. package/dist/chunks/md-45.js +1 -1
  35. package/dist/chunks/md-46.js +1 -1
  36. package/dist/chunks/md-47.js +1 -1
  37. package/dist/chunks/md-48.js +1 -1
  38. package/dist/chunks/md-49.js +1 -1
  39. package/dist/chunks/md-50.js +1 -1
  40. package/dist/chunks/md-51.js +1 -1
  41. package/dist/chunks/md-53.js +1 -1
  42. package/dist/chunks/md-54.js +1 -1
  43. package/dist/chunks/md-55.js +1 -1
  44. package/dist/chunks/md-56.js +1 -1
  45. package/dist/chunks/md-57.js +3 -3
  46. package/dist/chunks/md-58.js +1 -1
  47. package/dist/chunks/md-59.js +1 -1
  48. package/dist/chunks/md-6.js +1 -1
  49. package/dist/chunks/md-60.js +1 -1
  50. package/dist/chunks/md-61.js +1 -1
  51. package/dist/chunks/md-62.js +1 -1
  52. package/dist/chunks/md-63.js +1 -1
  53. package/dist/chunks/md-64.js +118 -25
  54. package/dist/chunks/md-65.js +1 -1
  55. package/dist/chunks/md-66.js +1 -1
  56. package/dist/chunks/md-69.js +1 -1
  57. package/dist/chunks/md-7.js +2 -2
  58. package/dist/chunks/md-71.js +1 -1
  59. package/dist/chunks/md-72.js +1 -1
  60. package/dist/chunks/md-73.js +1 -1
  61. package/dist/chunks/md-74.js +1 -1
  62. package/dist/chunks/md-75.js +1 -1
  63. package/dist/chunks/md-76.js +1 -1
  64. package/dist/chunks/md-77.js +1 -1
  65. package/dist/chunks/md-78.js +1 -1
  66. package/dist/chunks/md-79.js +1 -1
  67. package/dist/chunks/md-8.js +1 -1
  68. package/dist/chunks/md-80.js +1 -1
  69. package/dist/chunks/md-81.js +1 -1
  70. package/dist/chunks/md-82.js +1 -1
  71. package/dist/chunks/md-83.js +1 -1
  72. package/dist/chunks/md-84.js +1 -1
  73. package/dist/chunks/md-85.js +1 -1
  74. package/dist/chunks/md-86.js +1 -1
  75. package/dist/chunks/md-9.js +1 -1
  76. package/dist/comp/md-alert-banner-entry.js +1 -1
  77. package/dist/comp/md-avatar-entry.js +1 -1
  78. package/dist/comp/md-badge-entry.js +1 -1
  79. package/dist/comp/md-breadcrumb-entry.js +1 -1
  80. package/dist/comp/md-button-entry.js +1 -1
  81. package/dist/comp/md-card-entry.js +1 -1
  82. package/dist/comp/md-chat-message-entry.js +1 -1
  83. package/dist/comp/md-combobox-entry.js +1 -1
  84. package/dist/comp/md-date-range-picker-entry.js +1 -1
  85. package/dist/comp/md-date-time-picker-entry.js +1 -1
  86. package/dist/comp/md-datepicker-calendar-entry.js +1 -1
  87. package/dist/comp/md-datepicker-day-entry.js +1 -1
  88. package/dist/comp/md-datepicker-entry.js +1 -1
  89. package/dist/comp/md-datepicker-month-entry.js +1 -1
  90. package/dist/comp/md-datepicker-week-entry.js +1 -1
  91. package/dist/comp/md-dropdown-entry.js +1 -1
  92. package/dist/comp/md-dropdown.js +1 -0
  93. package/dist/comp/md-editable-field-entry.js +1 -1
  94. package/dist/comp/md-favorite-entry.js +1 -1
  95. package/dist/comp/md-floating-minimize-entry.js +1 -1
  96. package/dist/comp/md-floating-modal-entry.js +1 -1
  97. package/dist/comp/md-help-text-entry.js +1 -1
  98. package/dist/comp/md-input-entry.js +1 -1
  99. package/dist/comp/md-label-entry.js +1 -1
  100. package/dist/comp/md-list-entry.js +1 -1
  101. package/dist/comp/md-list-item-entry.js +1 -1
  102. package/dist/comp/md-loading-entry.js +1 -1
  103. package/dist/comp/md-meeting-alert-entry.js +1 -1
  104. package/dist/comp/md-menu-item-entry.js +1 -1
  105. package/dist/comp/md-phone-input-entry.js +1 -1
  106. package/dist/comp/md-progress-bar-entry.js +1 -1
  107. package/dist/comp/md-slider-entry.js +1 -1
  108. package/dist/comp/md-spinner-entry.js +1 -1
  109. package/dist/comp/md-tab-entry.js +1 -1
  110. package/dist/comp/md-table-entry.js +1 -1
  111. package/dist/comp/md-tabs-entry.js +1 -1
  112. package/dist/comp/md-theme-entry.js +1 -1
  113. package/dist/comp/md-timepicker-entry.js +1 -1
  114. package/dist/comp/md-toggle-switch-entry.js +1 -1
  115. package/dist/comp/md-tooltip-entry.js +1 -1
  116. package/dist/index-entry.js +2 -2
  117. package/dist/index.js +1 -1
  118. package/dist/types/components/combobox/ComboBox.d.ts +1 -1
  119. package/dist/types/components/dropdown/Dropdown.d.ts +69 -0
  120. package/dist/types/components/help-text/HelpText.d.ts +1 -1
  121. package/dist/types/components/timepicker/TimePicker.d.ts +1 -1
  122. package/dist/types/components/tooltip/Tooltip.d.ts +1 -0
  123. package/package.json +3 -3
@@ -12,13 +12,30 @@ export declare namespace Dropdown {
12
12
  [key: string]: string;
13
13
  };
14
14
  type Option = string | OptionMember;
15
+ type RenderOptionMember = {
16
+ key: string;
17
+ value: string;
18
+ option?: Option;
19
+ };
15
20
  export type EventDetail = {
16
21
  "dropdown-focus-in": undefined;
17
22
  "dropdown-focus-out": undefined;
18
23
  "dropdown-selected": {
19
24
  option: Option;
20
25
  };
26
+ "dropdown-selection-removed": undefined;
27
+ };
28
+ export type MessageType = "error" | "success" | "warning";
29
+ export type Message = {
30
+ type: MessageType;
31
+ message: string;
32
+ id?: string;
33
+ ariaLive?: "off" | "assertive" | "polite";
21
34
  };
35
+ export class MessageController {
36
+ determineMessageType(array: Dropdown.Message[]): MessageType;
37
+ filterMessagesByType(array: Dropdown.Message[], value: string): string[];
38
+ }
22
39
  const ELEMENT_base: typeof LitElement & import("../../mixins/FocusMixin").AnyConstructor<import("../../mixins/FocusMixin").FocusClass>;
23
40
  export class ELEMENT extends ELEMENT_base {
24
41
  title: string;
@@ -30,24 +47,66 @@ export declare namespace Dropdown {
30
47
  customTabIndex: number;
31
48
  allowUnselected: boolean;
32
49
  visibleOptions: number;
50
+ newMomentum: boolean;
51
+ compact: boolean;
52
+ searchable: boolean;
53
+ searchItem: boolean;
54
+ inputValue: string;
55
+ placeholder: string;
56
+ readOnly: boolean;
57
+ autofocus: boolean;
58
+ leftIcon: string;
59
+ trimSpace: boolean;
60
+ resultsTextLocalization: string;
61
+ helpText: string;
62
+ messageArr: Dropdown.Message[];
63
+ htmlId: string;
64
+ clearAriaLabel: string;
65
+ clearIconHeight: string;
66
+ arrowAriaLabel: string;
67
+ popupChevronAriaHidden: string;
68
+ ariaLabel: string;
69
+ searchResultAriaLabel: string;
70
+ ariaLabelForDropdown: string;
33
71
  private renderOptions;
34
72
  private selectedKey;
35
73
  private expanded;
36
74
  private focusedIndex;
37
75
  label: HTMLLabelElement;
76
+ input?: HTMLInputElement;
38
77
  optionsList: HTMLUListElement;
39
78
  optionsListItems?: HTMLLIElement[];
79
+ private readonly messageController;
40
80
  private lastMaxHeight;
41
81
  connectedCallback(): void;
42
82
  disconnectedCallback(): void;
43
83
  protected firstUpdated(changedProperties: PropertyValues): void;
44
84
  protected updated(changedProperties: PropertyValues): void;
85
+ private notifySearchResultCount;
86
+ private setInitialValue;
87
+ private getOptionValue;
88
+ private getOptionId;
89
+ private isOptionObject;
45
90
  updateRenderOptions(): void;
46
91
  updateListDOM(): Promise<void>;
47
92
  resizeDropdownList(): Promise<void>;
48
93
  protected handleFocusIn(event: Event): void;
49
94
  protected handleFocusOut(event: Event): void;
50
95
  static get styles(): import("lit-element").CSSResult[];
96
+ get filteredOptions(): RenderOptionMember[] | {
97
+ key: string;
98
+ value: string;
99
+ disabled: boolean;
100
+ }[];
101
+ get messageType(): Dropdown.MessageType | null;
102
+ get messages(): string[] | null;
103
+ private setVisualListbox;
104
+ private updateOnNextFrame;
105
+ private setInputValue;
106
+ private shouldChangeButton;
107
+ toggleVisualListBox(e: any): void;
108
+ handleRemoveAll(event: MouseEvent): void;
109
+ private removeAllSelected;
51
110
  setupEvents(): void;
52
111
  teardownEvents(): void;
53
112
  expand(): void;
@@ -62,6 +121,7 @@ export declare namespace Dropdown {
62
121
  focusNext(): void;
63
122
  focusPrev(): void;
64
123
  focusToIndex(n: number): void;
124
+ focusToIndexWithOption(o: RenderOptionMember): void;
65
125
  focusReset(): void;
66
126
  scrollToIndex(n: number): Promise<void>;
67
127
  getOptionKeyValuePair(option: Option): {
@@ -70,8 +130,17 @@ export declare namespace Dropdown {
70
130
  };
71
131
  get labelTitle(): string;
72
132
  get dropDownClassMap(): {
133
+ [x: string]: boolean;
73
134
  "md-dropdown__expanded": boolean;
135
+ "md-new-dropdown": boolean;
74
136
  };
137
+ handleInput(event: Event): void;
138
+ private notifyInputValueChanged;
139
+ helpTextTemplate(): {};
140
+ messagesTemplate(): {};
141
+ iconTemplate(): import("lit-element").TemplateResult;
142
+ clearButtonTemplate(): import("lit-element").TemplateResult;
143
+ arrowButtonTemplate(): import("lit-element").TemplateResult;
75
144
  render(): import("lit-element").TemplateResult;
76
145
  }
77
146
  export {};
@@ -17,7 +17,7 @@ export declare namespace HelpText {
17
17
  [x: string]: boolean;
18
18
  };
19
19
  static get styles(): import("lit-element").CSSResult[];
20
- getIconName(): "" | "check-circle-badge-filled" | "clear-filled" | "warning-filled" | "priority-badge-filled";
20
+ getIconName(): "" | "check-circle-badge-filled" | "error-legacy-badge-filled" | "warning-badge-filled" | "info-badge-filled";
21
21
  render(): import("lit-element").TemplateResult;
22
22
  }
23
23
  }
@@ -37,7 +37,7 @@ export declare namespace TimePicker {
37
37
  handleTimeBlur(event: CustomEvent, unit: TimePicker.TimeUnit): void;
38
38
  static get styles(): import("lit-element").CSSResult[];
39
39
  formatTimeUnit: (unit: TimePicker.TimeUnit) => void;
40
- messageType: (isValid: boolean) => "" | "error";
40
+ messageType: (isValid: boolean) => "error" | "";
41
41
  generateTimeBox: (unit: TimePicker.TimeUnit) => import("lit-element").TemplateResult;
42
42
  generateAmPmComboBox: () => import("lit-element").TemplateResult;
43
43
  render(): import("lit-element").TemplateResult;
@@ -27,6 +27,7 @@ export declare namespace Tooltip {
27
27
  reference: HTMLDivElement;
28
28
  private slotContent;
29
29
  private _keyDownListener;
30
+ private _wheelListener;
30
31
  connectedCallback(): void;
31
32
  disconnectedCallback(): void;
32
33
  protected handleFocusIn(event: Event): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.13.18",
3
+ "version": "2.13.19",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",
@@ -13,8 +13,8 @@
13
13
  "@interactjs/interact": "1.10.3",
14
14
  "@interactjs/modifiers": "1.10.3",
15
15
  "@interactjs/utils": "1.10.3",
16
- "@momentum-design/icons": "0.0.160",
17
- "@momentum-design/tokens": "0.0.84",
16
+ "@momentum-design/icons": "0.0.161",
17
+ "@momentum-design/tokens": "0.0.91",
18
18
  "@popperjs/core": "^2.4.4",
19
19
  "country-codes-list": "1.6.8",
20
20
  "country-flags-svg": "1.1.4",