@vonage/vivid 4.14.1 → 4.14.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 (66) hide show
  1. package/custom-elements.json +22 -174
  2. package/lib/divider/divider.d.ts +1 -1
  3. package/lib/divider/divider.template.d.ts +1 -1
  4. package/package.json +1 -1
  5. package/shared/affix.js +1 -1
  6. package/shared/definition.js +1 -1
  7. package/shared/definition11.js +1 -1
  8. package/shared/definition16.cjs +1 -2
  9. package/shared/definition16.js +2 -3
  10. package/shared/definition17.cjs +9 -7
  11. package/shared/definition17.js +9 -7
  12. package/shared/definition22.cjs +2 -1
  13. package/shared/definition22.js +2 -1
  14. package/shared/definition24.js +1 -1
  15. package/shared/definition27.cjs +1 -1
  16. package/shared/definition27.js +1 -1
  17. package/shared/definition29.js +1 -1
  18. package/shared/definition30.js +1 -1
  19. package/shared/definition31.js +1 -1
  20. package/shared/definition33.js +1 -1
  21. package/shared/definition34.cjs +88 -19
  22. package/shared/definition34.js +72 -3
  23. package/shared/definition35.cjs +2 -201
  24. package/shared/definition35.js +4 -201
  25. package/shared/definition4.js +1 -1
  26. package/shared/definition42.cjs +3 -3
  27. package/shared/definition42.js +3 -3
  28. package/shared/definition43.cjs +9 -9
  29. package/shared/definition43.js +5 -5
  30. package/shared/definition47.js +1 -1
  31. package/shared/definition50.js +1 -1
  32. package/shared/definition51.cjs +39 -17
  33. package/shared/definition51.js +24 -2
  34. package/shared/definition53.js +1 -1
  35. package/shared/definition59.js +1 -1
  36. package/shared/definition7.js +1 -1
  37. package/shared/definition8.js +1 -1
  38. package/shared/foundation-element.cjs +1417 -0
  39. package/shared/foundation-element.js +1414 -0
  40. package/shared/key-codes2.cjs +0 -1469
  41. package/shared/key-codes2.js +1 -1464
  42. package/shared/listbox.cjs +3 -3
  43. package/shared/listbox.js +1 -1
  44. package/shared/option.cjs +205 -0
  45. package/shared/option.js +202 -0
  46. package/shared/start-end.cjs +52 -0
  47. package/shared/start-end.js +50 -0
  48. package/shared/text-anchor.js +1 -1
  49. package/shared/text-field2.js +1 -1
  50. package/styles/core/all.css +1 -1
  51. package/styles/core/theme.css +1 -1
  52. package/styles/core/typography.css +1 -1
  53. package/styles/tokens/theme-dark.css +4 -4
  54. package/styles/tokens/theme-light.css +4 -4
  55. package/styles/tokens/vivid-2-compat.css +1 -1
  56. package/lib/listbox/definition.d.ts +0 -2
  57. package/lib/listbox/listbox.d.ts +0 -14
  58. package/lib/listbox/listbox.template.d.ts +0 -2
  59. package/listbox/index.cjs +0 -54
  60. package/listbox/index.js +0 -52
  61. package/shared/aria-global2.cjs +0 -75
  62. package/shared/aria-global2.js +0 -73
  63. package/shared/listbox2.cjs +0 -1267
  64. package/shared/listbox2.js +0 -1264
  65. package/shared/strings2.cjs +0 -37
  66. package/shared/strings2.js +0 -33
@@ -4,19 +4,88 @@ import { a as attr, n as nullableNumberConverter, o as observable, D as DOM, V a
4
4
  import { i as iconDefinition } from './definition27.js';
5
5
  import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
6
6
  import { F as FormAssociated$1 } from './form-associated.js';
7
- import { F as FoundationElement, _ as __decorate, S as StartEnd } from './key-codes2.js';
7
+ import { _ as __decorate, F as FoundationElement } from './foundation-element.js';
8
8
  import { a as applyMixins } from './apply-mixins2.js';
9
9
  import { F as FormAssociated } from './form-associated2.js';
10
- import { A as ARIAGlobalStatesAndProperties } from './aria-global2.js';
10
+ import { S as StartEnd } from './start-end.js';
11
11
  import { f as keyArrowDown, e as keyArrowUp } from './key-codes.js';
12
12
  import { e as errorText, f as formElements, F as FormElementSuccessText, a as FormElementHelperText, b as FormElementCharCount, g as getFeedbackTemplate } from './form-elements.js';
13
- import { A as AffixIcon } from './affix.js';
13
+ import { b as AffixIcon } from './affix.js';
14
14
  import { L as Localized } from './localized.js';
15
15
  import { S as Shape } from './enums.js';
16
16
  import { w as when } from './when.js';
17
17
  import { r as ref } from './ref.js';
18
18
  import { c as classNames } from './class-names.js';
19
19
 
20
+ /**
21
+ * Some states and properties are applicable to all host language elements regardless of whether a role is applied.
22
+ * The following global states and properties are supported by all roles and by all base markup elements.
23
+ * {@link https://www.w3.org/TR/wai-aria-1.1/#global_states}
24
+ *
25
+ * This is intended to be used as a mixin. Be sure you extend FASTElement.
26
+ *
27
+ * @public
28
+ */
29
+ class ARIAGlobalStatesAndProperties {
30
+ }
31
+ __decorate([
32
+ attr({ attribute: "aria-atomic" })
33
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", void 0);
34
+ __decorate([
35
+ attr({ attribute: "aria-busy" })
36
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", void 0);
37
+ __decorate([
38
+ attr({ attribute: "aria-controls" })
39
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaControls", void 0);
40
+ __decorate([
41
+ attr({ attribute: "aria-current" })
42
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", void 0);
43
+ __decorate([
44
+ attr({ attribute: "aria-describedby" })
45
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", void 0);
46
+ __decorate([
47
+ attr({ attribute: "aria-details" })
48
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", void 0);
49
+ __decorate([
50
+ attr({ attribute: "aria-disabled" })
51
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", void 0);
52
+ __decorate([
53
+ attr({ attribute: "aria-errormessage" })
54
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", void 0);
55
+ __decorate([
56
+ attr({ attribute: "aria-flowto" })
57
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", void 0);
58
+ __decorate([
59
+ attr({ attribute: "aria-haspopup" })
60
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", void 0);
61
+ __decorate([
62
+ attr({ attribute: "aria-hidden" })
63
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", void 0);
64
+ __decorate([
65
+ attr({ attribute: "aria-invalid" })
66
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", void 0);
67
+ __decorate([
68
+ attr({ attribute: "aria-keyshortcuts" })
69
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", void 0);
70
+ __decorate([
71
+ attr({ attribute: "aria-label" })
72
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", void 0);
73
+ __decorate([
74
+ attr({ attribute: "aria-labelledby" })
75
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", void 0);
76
+ __decorate([
77
+ attr({ attribute: "aria-live" })
78
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaLive", void 0);
79
+ __decorate([
80
+ attr({ attribute: "aria-owns" })
81
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", void 0);
82
+ __decorate([
83
+ attr({ attribute: "aria-relevant" })
84
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", void 0);
85
+ __decorate([
86
+ attr({ attribute: "aria-roledescription" })
87
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
88
+
20
89
  class _TextField extends FoundationElement {
21
90
  }
22
91
  /**
@@ -2,208 +2,11 @@
2
2
 
3
3
  const definition = require('./definition27.cjs');
4
4
  const vividElement = require('./vivid-element.cjs');
5
- const applyMixins = require('./apply-mixins.cjs');
5
+ const option = require('./option.cjs');
6
6
  const affix = require('./affix.cjs');
7
- const ariaGlobal = require('./aria-global.cjs');
8
- const dom = require('./dom.cjs');
9
7
  const when = require('./when.cjs');
10
8
  const classNames = require('./class-names.cjs');
11
9
 
12
- var __defProp = Object.defineProperty;
13
- var __decorateClass = (decorators, target, key, kind) => {
14
- var result = void 0 ;
15
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
16
- if (decorator = decorators[i])
17
- result = (decorator(target, key, result) ) || result;
18
- if (result) __defProp(target, key, result);
19
- return result;
20
- };
21
- function isListboxOption(el) {
22
- return dom.isHTMLElement(el) && (el.getAttribute("role") === "option" || el instanceof HTMLOptionElement);
23
- }
24
- class ListboxOption extends vividElement.VividElement {
25
- constructor(text, value, defaultSelected, selected) {
26
- super();
27
- this.defaultSelected = false;
28
- /**
29
- * Tracks whether the "selected" property has been changed.
30
- * @internal
31
- */
32
- this.dirtySelected = false;
33
- this.selected = this.defaultSelected;
34
- /**
35
- * Track whether the value has been changed from the initial value
36
- */
37
- this.dirtyValue = false;
38
- this._highlighted = false;
39
- this._displayCheckmark = false;
40
- this._matchedRange = null;
41
- if (text) {
42
- this.text = text;
43
- }
44
- if (value) {
45
- this.initialValue = value;
46
- }
47
- if (defaultSelected) {
48
- this.defaultSelected = defaultSelected;
49
- }
50
- if (selected) {
51
- this.selected = selected;
52
- }
53
- this.proxy = new Option(
54
- this.text,
55
- // @ts-expect-error Propery is used before it is assigned
56
- this.initialValue,
57
- this.defaultSelected,
58
- this.selected
59
- );
60
- this.proxy.disabled = this.disabled;
61
- }
62
- /**
63
- * Updates the ariaChecked property when the checked property changes.
64
- *
65
- * @param _ - the previous checked value
66
- * @param next - the current checked value
67
- *
68
- * @public
69
- */
70
- checkedChanged(_, next) {
71
- if (typeof next === "boolean") {
72
- this.ariaChecked = next ? "true" : "false";
73
- return;
74
- }
75
- this.ariaChecked = null;
76
- }
77
- defaultSelectedChanged() {
78
- if (!this.dirtySelected) {
79
- this.selected = this.defaultSelected;
80
- if (this.proxy instanceof HTMLOptionElement) {
81
- this.proxy.selected = this.defaultSelected;
82
- }
83
- }
84
- }
85
- disabledChanged() {
86
- this.ariaDisabled = this.disabled ? "true" : "false";
87
- if (this.proxy instanceof HTMLOptionElement) {
88
- this.proxy.disabled = this.disabled;
89
- }
90
- }
91
- selectedAttributeChanged() {
92
- this.defaultSelected = this.selectedAttribute;
93
- if (this.proxy instanceof HTMLOptionElement) {
94
- this.proxy.defaultSelected = this.defaultSelected;
95
- }
96
- }
97
- selectedChanged() {
98
- this.ariaSelected = this.selected ? "true" : "false";
99
- if (!this.dirtySelected) {
100
- this.dirtySelected = true;
101
- }
102
- if (this.proxy instanceof HTMLOptionElement) {
103
- this.proxy.selected = this.selected;
104
- }
105
- }
106
- initialValueChanged() {
107
- if (!this.dirtyValue) {
108
- this.value = this.initialValue;
109
- this.dirtyValue = false;
110
- }
111
- }
112
- get label() {
113
- return this._label ?? this.text;
114
- }
115
- set label(value) {
116
- this._label = value;
117
- }
118
- set text(value) {
119
- this._text = value;
120
- }
121
- get text() {
122
- return this._text ?? "";
123
- }
124
- set value(next) {
125
- const newValue = `${next ?? ""}`;
126
- this._value = newValue;
127
- this.dirtyValue = true;
128
- if (this.proxy instanceof HTMLOptionElement) {
129
- this.proxy.value = newValue;
130
- }
131
- vividElement.Observable.notify(this, "value");
132
- }
133
- get value() {
134
- vividElement.Observable.track(this, "value");
135
- return this._value ?? this.text;
136
- }
137
- get form() {
138
- return null;
139
- }
140
- /**
141
- * @internal
142
- */
143
- get _matchedRangeSafe() {
144
- return this._matchedRange ?? { from: 0, to: 0 };
145
- }
146
- }
147
- __decorateClass([
148
- vividElement.observable
149
- ], ListboxOption.prototype, "checked");
150
- __decorateClass([
151
- vividElement.observable
152
- ], ListboxOption.prototype, "defaultSelected");
153
- // @ts-expect-error Type is incorrectly non-optional
154
- __decorateClass([
155
- vividElement.attr({ mode: "boolean" })
156
- ], ListboxOption.prototype, "disabled");
157
- // @ts-expect-error Type is incorrectly non-optional
158
- __decorateClass([
159
- vividElement.attr({ attribute: "selected", mode: "boolean" })
160
- ], ListboxOption.prototype, "selectedAttribute");
161
- __decorateClass([
162
- vividElement.observable
163
- ], ListboxOption.prototype, "selected");
164
- __decorateClass([
165
- vividElement.attr({ attribute: "value", mode: "fromView" })
166
- ], ListboxOption.prototype, "initialValue");
167
- __decorateClass([
168
- vividElement.attr({
169
- attribute: "label"
170
- })
171
- ], ListboxOption.prototype, "_label");
172
- __decorateClass([
173
- vividElement.attr({
174
- attribute: "text"
175
- })
176
- ], ListboxOption.prototype, "_text");
177
- __decorateClass([
178
- vividElement.observable
179
- ], ListboxOption.prototype, "_highlighted");
180
- __decorateClass([
181
- vividElement.observable
182
- ], ListboxOption.prototype, "_displayCheckmark");
183
- __decorateClass([
184
- vividElement.observable
185
- ], ListboxOption.prototype, "_matchedRange");
186
- class DelegatesARIAListboxOption {
187
- }
188
- // @ts-expect-error Type is incorrectly non-optional
189
- __decorateClass([
190
- vividElement.observable
191
- ], DelegatesARIAListboxOption.prototype, "ariaChecked");
192
- // @ts-expect-error Type is incorrectly non-optional
193
- __decorateClass([
194
- vividElement.observable
195
- ], DelegatesARIAListboxOption.prototype, "ariaPosInSet");
196
- // @ts-expect-error Type is incorrectly non-optional
197
- __decorateClass([
198
- vividElement.observable
199
- ], DelegatesARIAListboxOption.prototype, "ariaSelected");
200
- // @ts-expect-error Type is incorrectly non-optional
201
- __decorateClass([
202
- vividElement.observable
203
- ], DelegatesARIAListboxOption.prototype, "ariaSetSize");
204
- applyMixins.applyMixins(DelegatesARIAListboxOption, ariaGlobal.ARIAGlobalStatesAndProperties);
205
- applyMixins.applyMixins(ListboxOption, affix.AffixIconWithTrailing, DelegatesARIAListboxOption);
206
-
207
10
  const getClasses = (x) => classNames.classNames(
208
11
  "base",
209
12
  ["disabled", x.disabled],
@@ -253,7 +56,7 @@ const styles = ":host([disabled]){cursor:not-allowed}.base{--_connotation-color-
253
56
 
254
57
  const listboxOptionDefinition = vividElement.defineVividComponent(
255
58
  "option",
256
- ListboxOption,
59
+ option.ListboxOption,
257
60
  ListboxOptionTemplate,
258
61
  [definition.iconDefinition],
259
62
  {
@@ -262,7 +65,5 @@ const listboxOptionDefinition = vividElement.defineVividComponent(
262
65
  );
263
66
  const registerOption = vividElement.createRegisterFunction(listboxOptionDefinition);
264
67
 
265
- exports.ListboxOption = ListboxOption;
266
- exports.isListboxOption = isListboxOption;
267
68
  exports.listboxOptionDefinition = listboxOptionDefinition;
268
69
  exports.registerOption = registerOption;
@@ -1,207 +1,10 @@
1
1
  import { I as Icon, i as iconDefinition } from './definition27.js';
2
- import { V as VividElement, O as Observable, o as observable, a as attr, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
3
- import { a as applyMixins } from './apply-mixins.js';
4
- import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
5
- import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
6
- import { i as isHTMLElement } from './dom.js';
2
+ import { h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
3
+ import { L as ListboxOption } from './option.js';
4
+ import { a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
7
5
  import { w as when } from './when.js';
8
6
  import { c as classNames } from './class-names.js';
9
7
 
10
- var __defProp = Object.defineProperty;
11
- var __decorateClass = (decorators, target, key, kind) => {
12
- var result = void 0 ;
13
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
- if (decorator = decorators[i])
15
- result = (decorator(target, key, result) ) || result;
16
- if (result) __defProp(target, key, result);
17
- return result;
18
- };
19
- function isListboxOption(el) {
20
- return isHTMLElement(el) && (el.getAttribute("role") === "option" || el instanceof HTMLOptionElement);
21
- }
22
- class ListboxOption extends VividElement {
23
- constructor(text, value, defaultSelected, selected) {
24
- super();
25
- this.defaultSelected = false;
26
- /**
27
- * Tracks whether the "selected" property has been changed.
28
- * @internal
29
- */
30
- this.dirtySelected = false;
31
- this.selected = this.defaultSelected;
32
- /**
33
- * Track whether the value has been changed from the initial value
34
- */
35
- this.dirtyValue = false;
36
- this._highlighted = false;
37
- this._displayCheckmark = false;
38
- this._matchedRange = null;
39
- if (text) {
40
- this.text = text;
41
- }
42
- if (value) {
43
- this.initialValue = value;
44
- }
45
- if (defaultSelected) {
46
- this.defaultSelected = defaultSelected;
47
- }
48
- if (selected) {
49
- this.selected = selected;
50
- }
51
- this.proxy = new Option(
52
- this.text,
53
- // @ts-expect-error Propery is used before it is assigned
54
- this.initialValue,
55
- this.defaultSelected,
56
- this.selected
57
- );
58
- this.proxy.disabled = this.disabled;
59
- }
60
- /**
61
- * Updates the ariaChecked property when the checked property changes.
62
- *
63
- * @param _ - the previous checked value
64
- * @param next - the current checked value
65
- *
66
- * @public
67
- */
68
- checkedChanged(_, next) {
69
- if (typeof next === "boolean") {
70
- this.ariaChecked = next ? "true" : "false";
71
- return;
72
- }
73
- this.ariaChecked = null;
74
- }
75
- defaultSelectedChanged() {
76
- if (!this.dirtySelected) {
77
- this.selected = this.defaultSelected;
78
- if (this.proxy instanceof HTMLOptionElement) {
79
- this.proxy.selected = this.defaultSelected;
80
- }
81
- }
82
- }
83
- disabledChanged() {
84
- this.ariaDisabled = this.disabled ? "true" : "false";
85
- if (this.proxy instanceof HTMLOptionElement) {
86
- this.proxy.disabled = this.disabled;
87
- }
88
- }
89
- selectedAttributeChanged() {
90
- this.defaultSelected = this.selectedAttribute;
91
- if (this.proxy instanceof HTMLOptionElement) {
92
- this.proxy.defaultSelected = this.defaultSelected;
93
- }
94
- }
95
- selectedChanged() {
96
- this.ariaSelected = this.selected ? "true" : "false";
97
- if (!this.dirtySelected) {
98
- this.dirtySelected = true;
99
- }
100
- if (this.proxy instanceof HTMLOptionElement) {
101
- this.proxy.selected = this.selected;
102
- }
103
- }
104
- initialValueChanged() {
105
- if (!this.dirtyValue) {
106
- this.value = this.initialValue;
107
- this.dirtyValue = false;
108
- }
109
- }
110
- get label() {
111
- return this._label ?? this.text;
112
- }
113
- set label(value) {
114
- this._label = value;
115
- }
116
- set text(value) {
117
- this._text = value;
118
- }
119
- get text() {
120
- return this._text ?? "";
121
- }
122
- set value(next) {
123
- const newValue = `${next ?? ""}`;
124
- this._value = newValue;
125
- this.dirtyValue = true;
126
- if (this.proxy instanceof HTMLOptionElement) {
127
- this.proxy.value = newValue;
128
- }
129
- Observable.notify(this, "value");
130
- }
131
- get value() {
132
- Observable.track(this, "value");
133
- return this._value ?? this.text;
134
- }
135
- get form() {
136
- return null;
137
- }
138
- /**
139
- * @internal
140
- */
141
- get _matchedRangeSafe() {
142
- return this._matchedRange ?? { from: 0, to: 0 };
143
- }
144
- }
145
- __decorateClass([
146
- observable
147
- ], ListboxOption.prototype, "checked");
148
- __decorateClass([
149
- observable
150
- ], ListboxOption.prototype, "defaultSelected");
151
- // @ts-expect-error Type is incorrectly non-optional
152
- __decorateClass([
153
- attr({ mode: "boolean" })
154
- ], ListboxOption.prototype, "disabled");
155
- // @ts-expect-error Type is incorrectly non-optional
156
- __decorateClass([
157
- attr({ attribute: "selected", mode: "boolean" })
158
- ], ListboxOption.prototype, "selectedAttribute");
159
- __decorateClass([
160
- observable
161
- ], ListboxOption.prototype, "selected");
162
- __decorateClass([
163
- attr({ attribute: "value", mode: "fromView" })
164
- ], ListboxOption.prototype, "initialValue");
165
- __decorateClass([
166
- attr({
167
- attribute: "label"
168
- })
169
- ], ListboxOption.prototype, "_label");
170
- __decorateClass([
171
- attr({
172
- attribute: "text"
173
- })
174
- ], ListboxOption.prototype, "_text");
175
- __decorateClass([
176
- observable
177
- ], ListboxOption.prototype, "_highlighted");
178
- __decorateClass([
179
- observable
180
- ], ListboxOption.prototype, "_displayCheckmark");
181
- __decorateClass([
182
- observable
183
- ], ListboxOption.prototype, "_matchedRange");
184
- class DelegatesARIAListboxOption {
185
- }
186
- // @ts-expect-error Type is incorrectly non-optional
187
- __decorateClass([
188
- observable
189
- ], DelegatesARIAListboxOption.prototype, "ariaChecked");
190
- // @ts-expect-error Type is incorrectly non-optional
191
- __decorateClass([
192
- observable
193
- ], DelegatesARIAListboxOption.prototype, "ariaPosInSet");
194
- // @ts-expect-error Type is incorrectly non-optional
195
- __decorateClass([
196
- observable
197
- ], DelegatesARIAListboxOption.prototype, "ariaSelected");
198
- // @ts-expect-error Type is incorrectly non-optional
199
- __decorateClass([
200
- observable
201
- ], DelegatesARIAListboxOption.prototype, "ariaSetSize");
202
- applyMixins(DelegatesARIAListboxOption, ARIAGlobalStatesAndProperties);
203
- applyMixins(ListboxOption, AffixIconWithTrailing, DelegatesARIAListboxOption);
204
-
205
8
  const getClasses = (x) => classNames(
206
9
  "base",
207
10
  ["disabled", x.disabled],
@@ -260,4 +63,4 @@ const listboxOptionDefinition = defineVividComponent(
260
63
  );
261
64
  const registerOption = createRegisterFunction(listboxOptionDefinition);
262
65
 
263
- export { ListboxOption as L, isListboxOption as i, listboxOptionDefinition as l, registerOption as r };
66
+ export { listboxOptionDefinition as l, registerOption as r };
@@ -3,7 +3,7 @@ import { E as Elevation, e as elevationDefinition } from './definition62.js';
3
3
  import { V as VividElement, a as attr, n as nullableNumberConverter, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
4
4
  import { i as iconDefinition } from './definition27.js';
5
5
  import { C as Connotation } from './enums.js';
6
- import { A as AffixIcon, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
6
+ import { b as AffixIcon, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
7
7
  import { a as applyMixins } from './apply-mixins.js';
8
8
  import { h as handleEscapeKeyAndStopPropogation } from './index.js';
9
9
  import { L as Localized } from './localized.js';
@@ -10,9 +10,9 @@ const formAssociated = require('./form-associated.cjs');
10
10
  const affix = require('./affix.cjs');
11
11
  const localized = require('./localized.cjs');
12
12
  const formElements = require('./form-elements.cjs');
13
- const listbox = require('./listbox2.cjs');
13
+ const listbox = require('./listbox.cjs');
14
14
  const applyMixins = require('./apply-mixins.cjs');
15
- const keyCodes = require('./key-codes2.cjs');
15
+ const foundationElement = require('./foundation-element.cjs');
16
16
  const when = require('./when.cjs');
17
17
  const ref = require('./ref.cjs');
18
18
  const slotted = require('./slotted.cjs');
@@ -831,7 +831,7 @@ var __decorateClass = (decorators, target, key, kind) => {
831
831
  if (result) __defProp(target, key, result);
832
832
  return result;
833
833
  };
834
- class OptionTag extends keyCodes.FoundationElement {
834
+ class OptionTag extends foundationElement.FoundationElement {
835
835
  constructor() {
836
836
  super(...arguments);
837
837
  this.removable = false;
@@ -5,12 +5,12 @@ import { V as VividElement, O as Observable, D as DOM, a as attr, n as nullableN
5
5
  import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
6
6
  import { s as scrollIntoView } from './scrollIntoView.js';
7
7
  import { F as FormAssociated } from './form-associated.js';
8
- import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
8
+ import { A as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
9
9
  import { L as Localized } from './localized.js';
10
10
  import { F as FormElementSuccessText, a as FormElementHelperText, e as errorText, f as formElements, g as getFeedbackTemplate } from './form-elements.js';
11
- import { a as Listbox } from './listbox2.js';
11
+ import { L as Listbox } from './listbox.js';
12
12
  import { a as applyMixins } from './apply-mixins.js';
13
- import { F as FoundationElement } from './key-codes2.js';
13
+ import { F as FoundationElement } from './foundation-element.js';
14
14
  import { w as when } from './when.js';
15
15
  import { r as ref } from './ref.js';
16
16
  import { s as slotted } from './slotted.js';
@@ -1,10 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const definition = require('./definition63.cjs');
4
- const definition$3 = require('./definition27.cjs');
5
- const definition$1 = require('./definition35.cjs');
4
+ const definition$2 = require('./definition27.cjs');
5
+ const definition$3 = require('./definition35.cjs');
6
6
  const vividElement = require('./vivid-element.cjs');
7
- const listbox$1 = require('./listbox2.cjs');
8
7
  const applyMixinsWithObservables = require('./applyMixinsWithObservables.cjs');
9
8
  const listbox = require('./listbox.cjs');
10
9
  const formAssociated = require('./form-associated2.cjs');
@@ -13,7 +12,8 @@ const strings = require('./strings.cjs');
13
12
  const keyCodes = require('./key-codes.cjs');
14
13
  const formElements = require('./form-elements.cjs');
15
14
  const affix = require('./affix.cjs');
16
- const definition$2 = require('./definition11.cjs');
15
+ const option = require('./option.cjs');
16
+ const definition$1 = require('./definition11.cjs');
17
17
  const index = require('./index.cjs');
18
18
  const ref = require('./ref.cjs');
19
19
  const when = require('./when.cjs');
@@ -666,7 +666,7 @@ let Select = class extends FormAssociatedSelect {
666
666
  }
667
667
  setDefaultSelectedOption() {
668
668
  const options = Array.from(this.children).filter(
669
- listbox$1.Listbox.slottedOptionFilter
669
+ listbox.Listbox.slottedOptionFilter
670
670
  );
671
671
  const selectedIndex = options.findIndex(
672
672
  (el) => el.hasAttribute("selected") || el.selected || el.value === this.value
@@ -807,7 +807,7 @@ function renderLabel() {
807
807
  </label>`;
808
808
  }
809
809
  function renderPlaceholder(context) {
810
- const optionTag = context.tagFor(definition$1.ListboxOption);
810
+ const optionTag = context.tagFor(option.ListboxOption);
811
811
  return vividElement.html`
812
812
  <${optionTag} ${ref.ref("placeholderOption")}
813
813
  text="${(x) => x.placeholder}" hidden disabled>
@@ -815,7 +815,7 @@ function renderPlaceholder(context) {
815
815
  }
816
816
  function selectValue(context) {
817
817
  const affixIconTemplate = affix.affixIconTemplateFactory(context);
818
- const chevronTemplate = definition$2.chevronTemplateFactory(context);
818
+ const chevronTemplate = definition$1.chevronTemplateFactory(context);
819
819
  return vividElement.html` <div
820
820
  class="control ${getStateClasses}"
821
821
  ${ref.ref("_anchor")}
@@ -854,7 +854,7 @@ function renderControl(context) {
854
854
  ${when.when((x) => x.placeholder, renderPlaceholder(context))}
855
855
  <slot
856
856
  ${slotted.slotted({
857
- filter: listbox$1.Listbox.slottedOptionFilter,
857
+ filter: listbox.Listbox.slottedOptionFilter,
858
858
  flatten: true,
859
859
  property: "slottedOptions"
860
860
  })}>
@@ -910,7 +910,7 @@ const selectDefinition = vividElement.defineVividComponent(
910
910
  "select",
911
911
  Select,
912
912
  SelectTemplate,
913
- [definition.popupDefinition, definition$3.iconDefinition, definition$1.listboxOptionDefinition],
913
+ [definition.popupDefinition, definition$2.iconDefinition, definition$3.listboxOptionDefinition],
914
914
  {
915
915
  styles
916
916
  }
@@ -1,8 +1,7 @@
1
1
  import { P as Popup, p as popupDefinition } from './definition63.js';
2
2
  import { i as iconDefinition } from './definition27.js';
3
- import { L as ListboxOption, l as listboxOptionDefinition } from './definition35.js';
3
+ import { l as listboxOptionDefinition } from './definition35.js';
4
4
  import { D as DOM, O as Observable, o as observable, a as attr, v as volatile, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
5
- import { a as Listbox$1 } from './listbox2.js';
6
5
  import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
7
6
  import { L as Listbox } from './listbox.js';
8
7
  import { F as FormAssociated } from './form-associated2.js';
@@ -10,7 +9,8 @@ import { i as inRange } from './numbers.js';
10
9
  import { u as uniqueId } from './strings.js';
11
10
  import { a as keySpace, b as keyEscape, c as keyTab, d as keyEnd, e as keyArrowUp, f as keyArrowDown, g as keyHome, k as keyEnter } from './key-codes.js';
12
11
  import { e as errorText, f as formElements, F as FormElementSuccessText, a as FormElementHelperText, g as getFeedbackTemplate } from './form-elements.js';
13
- import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
12
+ import { A as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
13
+ import { L as ListboxOption } from './option.js';
14
14
  import { c as chevronTemplateFactory } from './definition11.js';
15
15
  import { h as handleEscapeKeyAndStopPropogation } from './index.js';
16
16
  import { r as ref } from './ref.js';
@@ -664,7 +664,7 @@ let Select = class extends FormAssociatedSelect {
664
664
  }
665
665
  setDefaultSelectedOption() {
666
666
  const options = Array.from(this.children).filter(
667
- Listbox$1.slottedOptionFilter
667
+ Listbox.slottedOptionFilter
668
668
  );
669
669
  const selectedIndex = options.findIndex(
670
670
  (el) => el.hasAttribute("selected") || el.selected || el.value === this.value
@@ -852,7 +852,7 @@ function renderControl(context) {
852
852
  ${when((x) => x.placeholder, renderPlaceholder(context))}
853
853
  <slot
854
854
  ${slotted({
855
- filter: Listbox$1.slottedOptionFilter,
855
+ filter: Listbox.slottedOptionFilter,
856
856
  flatten: true,
857
857
  property: "slottedOptions"
858
858
  })}>