@vonage/vivid 4.14.0 → 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 (218) hide show
  1. package/custom-elements.json +152 -197
  2. package/lib/divider/divider.d.ts +1 -1
  3. package/lib/divider/divider.template.d.ts +1 -1
  4. package/lib/elevation/elevation.d.ts +1 -0
  5. package/lib/radio/radio.form-associated.d.ts +2 -0
  6. package/lib/tabs/tabs.d.ts +0 -5
  7. package/lib/text-anchor/text-anchor.d.ts +2 -2
  8. package/lib/tree-item/tree-item.d.ts +2 -2
  9. package/lib/tree-view/tree-view.d.ts +2 -2
  10. package/package.json +1 -1
  11. package/shared/affix.cjs +8 -8
  12. package/shared/affix.js +2 -2
  13. package/shared/anchor.cjs +10 -10
  14. package/shared/anchor.js +1 -1
  15. package/shared/anchored.cjs +6 -6
  16. package/shared/anchored.js +1 -1
  17. package/shared/apply-mixins.cjs +3 -3
  18. package/shared/apply-mixins.js +1 -1
  19. package/shared/apply-mixins2.cjs +3 -3
  20. package/shared/apply-mixins2.js +1 -1
  21. package/shared/applyMixinsWithObservables.cjs +3 -3
  22. package/shared/applyMixinsWithObservables.js +1 -1
  23. package/shared/aria-global.cjs +20 -20
  24. package/shared/aria-global.js +1 -1
  25. package/shared/base-progress.cjs +7 -8
  26. package/shared/base-progress.js +2 -3
  27. package/shared/breadcrumb-item.cjs +2 -3
  28. package/shared/breadcrumb-item.js +1 -2
  29. package/shared/button.cjs +10 -11
  30. package/shared/button.js +1 -2
  31. package/shared/calendar-event.cjs +7 -8
  32. package/shared/calendar-event.js +1 -2
  33. package/shared/children.cjs +2 -2
  34. package/shared/children.js +1 -1
  35. package/shared/definition.cjs +14 -15
  36. package/shared/definition.js +2 -3
  37. package/shared/definition10.cjs +5 -6
  38. package/shared/definition10.js +1 -2
  39. package/shared/definition11.cjs +29 -29
  40. package/shared/definition11.js +2 -2
  41. package/shared/definition12.cjs +6 -6
  42. package/shared/definition12.js +1 -1
  43. package/shared/definition13.cjs +13 -14
  44. package/shared/definition13.js +1 -2
  45. package/shared/definition14.cjs +23 -24
  46. package/shared/definition14.js +1 -2
  47. package/shared/definition15.cjs +15 -16
  48. package/shared/definition15.js +1 -2
  49. package/shared/definition16.cjs +21 -21
  50. package/shared/definition16.js +5 -5
  51. package/shared/definition17.cjs +62 -61
  52. package/shared/definition17.js +10 -9
  53. package/shared/definition18.cjs +4 -4
  54. package/shared/definition18.js +1 -1
  55. package/shared/definition19.cjs +12 -12
  56. package/shared/definition19.js +1 -1
  57. package/shared/definition2.cjs +6 -7
  58. package/shared/definition2.js +1 -2
  59. package/shared/definition20.cjs +20 -21
  60. package/shared/definition20.js +1 -2
  61. package/shared/definition21.cjs +27 -28
  62. package/shared/definition21.js +3 -4
  63. package/shared/definition22.cjs +7 -7
  64. package/shared/definition22.js +3 -3
  65. package/shared/definition23.cjs +10 -11
  66. package/shared/definition23.js +1 -2
  67. package/shared/definition24.cjs +8 -8
  68. package/shared/definition24.js +3 -3
  69. package/shared/definition25.cjs +13 -14
  70. package/shared/definition25.js +1 -2
  71. package/shared/definition26.cjs +5 -6
  72. package/shared/definition26.js +1 -2
  73. package/shared/definition27.cjs +12 -13
  74. package/shared/definition27.js +2 -3
  75. package/shared/definition28.cjs +9 -10
  76. package/shared/definition28.js +2 -3
  77. package/shared/definition29.cjs +44 -45
  78. package/shared/definition29.js +3 -4
  79. package/shared/definition3.cjs +8 -9
  80. package/shared/definition3.js +1 -2
  81. package/shared/definition30.cjs +9 -10
  82. package/shared/definition30.js +2 -3
  83. package/shared/definition31.cjs +5 -5
  84. package/shared/definition31.js +2 -2
  85. package/shared/definition32.cjs +3 -4
  86. package/shared/definition32.js +1 -2
  87. package/shared/definition33.cjs +6 -7
  88. package/shared/definition33.js +2 -3
  89. package/shared/definition34.cjs +112 -45
  90. package/shared/definition34.js +73 -6
  91. package/shared/definition35.cjs +9 -209
  92. package/shared/definition35.js +4 -202
  93. package/shared/definition36.cjs +15 -16
  94. package/shared/definition36.js +1 -2
  95. package/shared/definition37.cjs +9 -9
  96. package/shared/definition37.js +1 -1
  97. package/shared/definition38.cjs +10 -10
  98. package/shared/definition38.js +1 -1
  99. package/shared/definition39.cjs +12 -13
  100. package/shared/definition39.js +1 -2
  101. package/shared/definition4.cjs +19 -20
  102. package/shared/definition4.js +2 -3
  103. package/shared/definition40.cjs +61 -13
  104. package/shared/definition40.js +52 -4
  105. package/shared/definition41.cjs +29 -30
  106. package/shared/definition41.js +1 -2
  107. package/shared/definition42.cjs +52 -53
  108. package/shared/definition42.js +3 -4
  109. package/shared/definition43.cjs +40 -40
  110. package/shared/definition43.js +6 -6
  111. package/shared/definition44.cjs +14 -15
  112. package/shared/definition44.js +1 -2
  113. package/shared/definition45.cjs +9 -10
  114. package/shared/definition45.js +1 -2
  115. package/shared/definition46.cjs +26 -27
  116. package/shared/definition46.js +1 -2
  117. package/shared/definition47.cjs +17 -18
  118. package/shared/definition47.js +2 -3
  119. package/shared/definition48.cjs +9 -10
  120. package/shared/definition48.js +1 -2
  121. package/shared/definition49.cjs +3 -4
  122. package/shared/definition49.js +1 -2
  123. package/shared/definition5.cjs +30 -31
  124. package/shared/definition5.js +1 -2
  125. package/shared/definition50.cjs +12 -13
  126. package/shared/definition50.js +2 -3
  127. package/shared/definition51.cjs +109 -72
  128. package/shared/definition51.js +78 -41
  129. package/shared/definition52.cjs +4 -5
  130. package/shared/definition52.js +1 -2
  131. package/shared/definition53.cjs +15 -16
  132. package/shared/definition53.js +2 -3
  133. package/shared/definition54.cjs +20 -21
  134. package/shared/definition54.js +1 -2
  135. package/shared/definition55.cjs +5 -5
  136. package/shared/definition55.js +1 -1
  137. package/shared/definition56.cjs +18 -19
  138. package/shared/definition56.js +1 -2
  139. package/shared/definition57.cjs +10 -11
  140. package/shared/definition57.js +1 -2
  141. package/shared/definition58.cjs +7 -8
  142. package/shared/definition58.js +1 -2
  143. package/shared/definition59.cjs +16 -17
  144. package/shared/definition59.js +3 -4
  145. package/shared/definition6.cjs +11 -12
  146. package/shared/definition6.js +1 -2
  147. package/shared/definition60.cjs +9 -10
  148. package/shared/definition60.js +2 -3
  149. package/shared/definition61.cjs +27 -30
  150. package/shared/definition61.js +17 -20
  151. package/shared/definition62.cjs +12 -9
  152. package/shared/definition62.js +8 -5
  153. package/shared/definition63.cjs +13 -14
  154. package/shared/definition63.js +1 -2
  155. package/shared/definition7.cjs +9 -10
  156. package/shared/definition7.js +2 -3
  157. package/shared/definition8.cjs +14 -15
  158. package/shared/definition8.js +2 -3
  159. package/shared/definition9.cjs +7 -7
  160. package/shared/definition9.js +1 -1
  161. package/shared/form-associated.cjs +14 -14
  162. package/shared/form-associated.js +1 -1
  163. package/shared/form-associated2.cjs +10 -10
  164. package/shared/form-associated2.js +1 -1
  165. package/shared/form-elements.cjs +13 -13
  166. package/shared/form-elements.js +1 -1
  167. package/shared/foundation/progress/base-progress.d.ts +2 -2
  168. package/shared/foundation-element.cjs +11 -11
  169. package/shared/foundation-element.js +1 -1
  170. package/shared/key-codes2.cjs +0 -56
  171. package/shared/key-codes2.js +1 -53
  172. package/shared/listbox.cjs +15 -16
  173. package/shared/listbox.js +2 -3
  174. package/shared/localized.cjs +2 -2
  175. package/shared/localized.js +1 -1
  176. package/shared/option.cjs +205 -0
  177. package/shared/option.js +202 -0
  178. package/shared/presentationDate.cjs +42 -43
  179. package/shared/presentationDate.js +1 -2
  180. package/shared/ref.cjs +2 -2
  181. package/shared/ref.js +1 -1
  182. package/shared/repeat.cjs +15 -15
  183. package/shared/repeat.js +1 -1
  184. package/shared/slider.template.cjs +4 -4
  185. package/shared/slider.template.js +1 -1
  186. package/shared/slotted.cjs +4 -4
  187. package/shared/slotted.js +1 -1
  188. package/shared/start-end.cjs +52 -0
  189. package/shared/start-end.js +50 -0
  190. package/shared/text-anchor.cjs +5 -6
  191. package/shared/text-anchor.js +3 -4
  192. package/shared/text-anchor.template.cjs +2 -2
  193. package/shared/text-anchor.template.js +1 -1
  194. package/shared/text-field2.cjs +23 -24
  195. package/shared/text-field2.js +2 -3
  196. package/shared/vivid-element.cjs +2610 -2
  197. package/shared/vivid-element.js +2591 -2
  198. package/styles/core/all.css +40 -1
  199. package/styles/core/theme.css +40 -1
  200. package/styles/core/typography.css +1 -1
  201. package/styles/tokens/theme-dark.css +25 -4
  202. package/styles/tokens/theme-light.css +25 -4
  203. package/styles/tokens/vivid-2-compat.css +1 -1
  204. package/text-anchor/index.cjs +3 -3
  205. package/text-anchor/index.js +1 -1
  206. package/lib/listbox/definition.d.ts +0 -2
  207. package/lib/listbox/listbox.d.ts +0 -14
  208. package/lib/listbox/listbox.template.d.ts +0 -2
  209. package/listbox/index.cjs +0 -54
  210. package/listbox/index.js +0 -52
  211. package/shared/aria-global2.cjs +0 -75
  212. package/shared/aria-global2.js +0 -73
  213. package/shared/defineVividComponent.cjs +0 -2612
  214. package/shared/defineVividComponent.js +0 -2592
  215. package/shared/listbox2.cjs +0 -1268
  216. package/shared/listbox2.js +0 -1265
  217. package/shared/strings2.cjs +0 -37
  218. package/shared/strings2.js +0 -33
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const definition = require('./definition63.cjs');
4
- const defineVividComponent = require('./defineVividComponent.cjs');
4
+ const vividElement = require('./vivid-element.cjs');
5
5
  const keyCodes = require('./key-codes.cjs');
6
6
  const applyMixins = require('./apply-mixins.cjs');
7
7
  const formAssociated = require('./form-associated.cjs');
8
- const vividElement = require('./vivid-element.cjs');
9
8
  const slider_template = require('./slider.template.cjs');
10
9
  const aria = require('./aria.cjs');
11
10
  const numbers = require('./numbers.cjs');
@@ -460,70 +459,70 @@ unregisterDragListeners_fn = function() {
460
459
  _onDragMove = new WeakMap();
461
460
  _onDragEnd = new WeakMap();
462
461
  __decorateClass([
463
- defineVividComponent.observable
462
+ vividElement.observable
464
463
  ], RangeSlider.prototype, "start", 2);
465
464
  __decorateClass([
466
- defineVividComponent.attr({ mode: "fromView", attribute: "start" })
465
+ vividElement.attr({ mode: "fromView", attribute: "start" })
467
466
  ], RangeSlider.prototype, "initialStart", 2);
468
467
  __decorateClass([
469
- defineVividComponent.attr({ attribute: "current-start" })
468
+ vividElement.attr({ attribute: "current-start" })
470
469
  ], RangeSlider.prototype, "currentStart", 2);
471
470
  __decorateClass([
472
- defineVividComponent.observable
471
+ vividElement.observable
473
472
  ], RangeSlider.prototype, "end", 2);
474
473
  __decorateClass([
475
- defineVividComponent.attr({ mode: "fromView", attribute: "end" })
474
+ vividElement.attr({ mode: "fromView", attribute: "end" })
476
475
  ], RangeSlider.prototype, "initialEnd", 2);
477
476
  __decorateClass([
478
- defineVividComponent.attr({ attribute: "current-end" })
477
+ vividElement.attr({ attribute: "current-end" })
479
478
  ], RangeSlider.prototype, "currentEnd", 2);
480
479
  __decorateClass([
481
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
480
+ vividElement.attr({ converter: vividElement.nullableNumberConverter })
482
481
  ], RangeSlider.prototype, "min", 2);
483
482
  __decorateClass([
484
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
483
+ vividElement.attr({ converter: vividElement.nullableNumberConverter })
485
484
  ], RangeSlider.prototype, "max", 2);
486
485
  __decorateClass([
487
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
486
+ vividElement.attr({ converter: vividElement.nullableNumberConverter })
488
487
  ], RangeSlider.prototype, "step", 2);
489
488
  __decorateClass([
490
- defineVividComponent.attr
489
+ vividElement.attr
491
490
  ], RangeSlider.prototype, "orientation", 2);
492
491
  __decorateClass([
493
- defineVividComponent.attr({ attribute: "aria-start-label" })
492
+ vividElement.attr({ attribute: "aria-start-label" })
494
493
  ], RangeSlider.prototype, "ariaStartLabel", 2);
495
494
  __decorateClass([
496
- defineVividComponent.attr({ attribute: "aria-end-label" })
495
+ vividElement.attr({ attribute: "aria-end-label" })
497
496
  ], RangeSlider.prototype, "ariaEndLabel", 2);
498
497
  __decorateClass([
499
- defineVividComponent.attr({ mode: "boolean" })
498
+ vividElement.attr({ mode: "boolean" })
500
499
  ], RangeSlider.prototype, "markers", 2);
501
500
  __decorateClass([
502
- defineVividComponent.attr
501
+ vividElement.attr
503
502
  ], RangeSlider.prototype, "connotation", 2);
504
503
  __decorateClass([
505
- defineVividComponent.attr({ mode: "boolean" })
504
+ vividElement.attr({ mode: "boolean" })
506
505
  ], RangeSlider.prototype, "pin", 2);
507
506
  __decorateClass([
508
- defineVividComponent.observable
507
+ vividElement.observable
509
508
  ], RangeSlider.prototype, "valueTextFormatter", 2);
510
509
  __decorateClass([
511
- defineVividComponent.observable
510
+ vividElement.observable
512
511
  ], RangeSlider.prototype, "_draggingThumb", 2);
513
512
  __decorateClass([
514
- defineVividComponent.observable
513
+ vividElement.observable
515
514
  ], RangeSlider.prototype, "_visiblyFocusedThumb", 2);
516
515
  __decorateClass([
517
- defineVividComponent.observable
516
+ vividElement.observable
518
517
  ], RangeSlider.prototype, "_hoveredThumb", 2);
519
518
  __decorateClass([
520
- defineVividComponent.observable
519
+ vividElement.observable
521
520
  ], RangeSlider.prototype, "_startThumbCss", 2);
522
521
  __decorateClass([
523
- defineVividComponent.observable
522
+ vividElement.observable
524
523
  ], RangeSlider.prototype, "_endThumbCss", 2);
525
524
  __decorateClass([
526
- defineVividComponent.observable
525
+ vividElement.observable
527
526
  ], RangeSlider.prototype, "_selectedRangeCss", 2);
528
527
  RangeSlider = __decorateClass([
529
528
  formElements.formElements
@@ -541,7 +540,7 @@ const getThumbClassesFor = (thumb) => ({ _visiblyFocusedThumb }) => classNames.c
541
540
  ]);
542
541
  const RangeSliderTemplate = (context) => {
543
542
  const popupTag = context.tagFor(definition.Popup);
544
- return defineVividComponent.html` <template
543
+ return vividElement.html` <template
545
544
  @mousedown="${(x, c) => x._onMouseDown(c.event)}"
546
545
  >
547
546
  <div class="${getClasses} ${(x) => x.orientation}">
@@ -550,7 +549,7 @@ const RangeSliderTemplate = (context) => {
550
549
  <div class="track-start" style="${(x) => x._selectedRangeCss}"></div>
551
550
  ${when.when(
552
551
  (x) => x.markers,
553
- defineVividComponent.html`${(x) => slider_template.getMarkersTemplate(
552
+ vividElement.html`${(x) => slider_template.getMarkersTemplate(
554
553
  x.orientation === aria.Orientation.horizontal,
555
554
  Math.floor((x.max - x.min) / x.step)
556
555
  )}`
@@ -572,7 +571,7 @@ const RangeSliderTemplate = (context) => {
572
571
  ></div>
573
572
  ${when.when(
574
573
  (x) => x.pin,
575
- defineVividComponent.html`<${popupTag}
574
+ vividElement.html`<${popupTag}
576
575
  class="popup"
577
576
  arrow
578
577
  alternate
@@ -602,7 +601,7 @@ const RangeSliderTemplate = (context) => {
602
601
  ></div>
603
602
  ${when.when(
604
603
  (x) => x.pin,
605
- defineVividComponent.html`<${popupTag}
604
+ vividElement.html`<${popupTag}
606
605
  class="popup"
607
606
  arrow
608
607
  alternate
@@ -621,7 +620,7 @@ const RangeSliderTemplate = (context) => {
621
620
  </template>`;
622
621
  };
623
622
 
624
- const rangeSliderDefinition = defineVividComponent.defineVividComponent(
623
+ const rangeSliderDefinition = vividElement.defineVividComponent(
625
624
  "range-slider",
626
625
  RangeSlider,
627
626
  RangeSliderTemplate,
@@ -633,7 +632,7 @@ const rangeSliderDefinition = defineVividComponent.defineVividComponent(
633
632
  }
634
633
  }
635
634
  );
636
- const registerRangeSlider = defineVividComponent.createRegisterFunction(
635
+ const registerRangeSlider = vividElement.createRegisterFunction(
637
636
  rangeSliderDefinition
638
637
  );
639
638
 
@@ -1,9 +1,8 @@
1
1
  import { P as Popup, a as PlacementStrategy, p as popupDefinition } from './definition63.js';
2
- import { o as observable, a as attr, n as nullableNumberConverter, h as html, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
2
+ import { V as VividElement, o as observable, a as attr, n as nullableNumberConverter, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
3
3
  import { g as keyHome, d as keyEnd, e as keyArrowUp, h as keyArrowLeft, f as keyArrowDown, i as keyArrowRight } from './key-codes.js';
4
4
  import { a as applyMixins } from './apply-mixins.js';
5
5
  import { F as FormAssociated } from './form-associated.js';
6
- import { V as VividElement } from './vivid-element.js';
7
6
  import { i as inverseLerp, l as lerp, r as roundToStepValue, g as getMarkersTemplate } from './slider.template.js';
8
7
  import { O as Orientation } from './aria.js';
9
8
  import { l as limit } from './numbers.js';
@@ -3,15 +3,14 @@
3
3
  const definition$1 = require('./definition11.cjs');
4
4
  const definition = require('./definition63.cjs');
5
5
  const definition$2 = require('./definition27.cjs');
6
- const defineVividComponent = require('./defineVividComponent.cjs');
6
+ const vividElement = require('./vivid-element.cjs');
7
7
  const applyMixinsWithObservables = require('./applyMixinsWithObservables.cjs');
8
8
  const scrollIntoView = require('./scrollIntoView.cjs');
9
9
  const formAssociated = require('./form-associated.cjs');
10
- const vividElement = require('./vivid-element.cjs');
11
10
  const affix = require('./affix.cjs');
12
11
  const localized = require('./localized.cjs');
13
12
  const formElements = require('./form-elements.cjs');
14
- const listbox = require('./listbox2.cjs');
13
+ const listbox = require('./listbox.cjs');
15
14
  const applyMixins = require('./apply-mixins.cjs');
16
15
  const foundationElement = require('./foundation-element.cjs');
17
16
  const when = require('./when.cjs');
@@ -314,14 +313,14 @@ let SearchableSelect = class extends FormAssociatedSearchableSelect {
314
313
  this._areOptionsInitialized = true;
315
314
  if (oldValue) {
316
315
  for (const option of oldValue) {
317
- const notifier = defineVividComponent.Observable.getNotifier(option);
316
+ const notifier = vividElement.Observable.getNotifier(option);
318
317
  notifier.unsubscribe(__privateGet(this, _slottedOptionsChangeHandler), "selected");
319
318
  }
320
319
  }
321
320
  if (newValue) {
322
321
  for (const option of newValue) {
323
322
  option._displayCheckmark = true;
324
- const notifier = defineVividComponent.Observable.getNotifier(option);
323
+ const notifier = vividElement.Observable.getNotifier(option);
325
324
  notifier.subscribe(__privateGet(this, _slottedOptionsChangeHandler), "selected");
326
325
  }
327
326
  }
@@ -377,7 +376,7 @@ let SearchableSelect = class extends FormAssociatedSearchableSelect {
377
376
  case "Enter":
378
377
  case " ": {
379
378
  this._onTagRemoved(this.values[tagIndex]);
380
- defineVividComponent.DOM.processUpdates();
379
+ vividElement.DOM.processUpdates();
381
380
  __privateMethod(this, _SearchableSelect_instances, moveTagFocusTo_fn).call(this, __privateMethod(this, _SearchableSelect_instances, nextTagIndexForRemoved_fn).call(this, tagIndex));
382
381
  break;
383
382
  }
@@ -740,76 +739,76 @@ updateFormValue_fn = function() {
740
739
  };
741
740
  _resizeObserver = new WeakMap();
742
741
  __decorateClass$1([
743
- defineVividComponent.attr
742
+ vividElement.attr
744
743
  ], SearchableSelect.prototype, "appearance", 2);
745
744
  __decorateClass$1([
746
- defineVividComponent.attr
745
+ vividElement.attr
747
746
  ], SearchableSelect.prototype, "shape", 2);
748
747
  __decorateClass$1([
749
- defineVividComponent.attr({ mode: "boolean", attribute: "fixed-dropdown" })
748
+ vividElement.attr({ mode: "boolean", attribute: "fixed-dropdown" })
750
749
  ], SearchableSelect.prototype, "fixedDropdown", 2);
751
750
  __decorateClass$1([
752
- defineVividComponent.attr
751
+ vividElement.attr
753
752
  ], SearchableSelect.prototype, "placeholder", 2);
754
753
  __decorateClass$1([
755
- defineVividComponent.attr({ mode: "boolean" })
754
+ vividElement.attr({ mode: "boolean" })
756
755
  ], SearchableSelect.prototype, "open", 2);
757
756
  __decorateClass$1([
758
- defineVividComponent.attr({ mode: "boolean" })
757
+ vividElement.attr({ mode: "boolean" })
759
758
  ], SearchableSelect.prototype, "multiple", 2);
760
759
  __decorateClass$1([
761
- defineVividComponent.attr({ attribute: "external-tags", mode: "boolean" })
760
+ vividElement.attr({ attribute: "external-tags", mode: "boolean" })
762
761
  ], SearchableSelect.prototype, "externalTags", 2);
763
762
  __decorateClass$1([
764
- defineVividComponent.attr({ attribute: "max-lines", converter: defineVividComponent.nullableNumberConverter })
763
+ vividElement.attr({ attribute: "max-lines", converter: vividElement.nullableNumberConverter })
765
764
  ], SearchableSelect.prototype, "maxLines", 2);
766
765
  __decorateClass$1([
767
- defineVividComponent.observable
766
+ vividElement.observable
768
767
  ], SearchableSelect.prototype, "values", 2);
769
768
  __decorateClass$1([
770
- defineVividComponent.observable
769
+ vividElement.observable
771
770
  ], SearchableSelect.prototype, "initialValues", 2);
772
771
  __decorateClass$1([
773
- defineVividComponent.observable
772
+ vividElement.observable
774
773
  ], SearchableSelect.prototype, "_input", 2);
775
774
  __decorateClass$1([
776
- defineVividComponent.observable
775
+ vividElement.observable
777
776
  ], SearchableSelect.prototype, "_inputValue", 2);
778
777
  __decorateClass$1([
779
- defineVividComponent.observable
778
+ vividElement.observable
780
779
  ], SearchableSelect.prototype, "_slottedOptions", 2);
781
780
  __decorateClass$1([
782
- defineVividComponent.observable
781
+ vividElement.observable
783
782
  ], SearchableSelect.prototype, "_filteredOptions", 2);
784
783
  __decorateClass$1([
785
- defineVividComponent.observable
784
+ vividElement.observable
786
785
  ], SearchableSelect.prototype, "_filteredEnabledOptions", 2);
787
786
  __decorateClass$1([
788
- defineVividComponent.observable
787
+ vividElement.observable
789
788
  ], SearchableSelect.prototype, "_highlightedOptionIndex", 2);
790
789
  __decorateClass$1([
791
- defineVividComponent.observable
790
+ vividElement.observable
792
791
  ], SearchableSelect.prototype, "_contentArea", 2);
793
792
  __decorateClass$1([
794
- defineVividComponent.observable
793
+ vividElement.observable
795
794
  ], SearchableSelect.prototype, "_numElidedTags", 2);
796
795
  __decorateClass$1([
797
- defineVividComponent.observable
796
+ vividElement.observable
798
797
  ], SearchableSelect.prototype, "_tagRows", 2);
799
798
  __decorateClass$1([
800
- defineVividComponent.observable
799
+ vividElement.observable
801
800
  ], SearchableSelect.prototype, "_lastTagRow", 2);
802
801
  __decorateClass$1([
803
- defineVividComponent.observable
802
+ vividElement.observable
804
803
  ], SearchableSelect.prototype, "_listbox", 2);
805
804
  __decorateClass$1([
806
- defineVividComponent.attr({ mode: "boolean" })
805
+ vividElement.attr({ mode: "boolean" })
807
806
  ], SearchableSelect.prototype, "clearable", 2);
808
807
  __decorateClass$1([
809
- defineVividComponent.observable
808
+ vividElement.observable
810
809
  ], SearchableSelect.prototype, "_changeDescription", 2);
811
810
  __decorateClass$1([
812
- defineVividComponent.observable
811
+ vividElement.observable
813
812
  ], SearchableSelect.prototype, "_anchor", 2);
814
813
  SearchableSelect = __decorateClass$1([
815
814
  formElements.errorText,
@@ -846,19 +845,19 @@ class OptionTag extends foundationElement.FoundationElement {
846
845
  }
847
846
  }
848
847
  __decorateClass([
849
- defineVividComponent.attr
848
+ vividElement.attr
850
849
  ], OptionTag.prototype, "shape");
851
850
  __decorateClass([
852
- defineVividComponent.attr
851
+ vividElement.attr
853
852
  ], OptionTag.prototype, "label");
854
853
  __decorateClass([
855
- defineVividComponent.attr({ mode: "boolean" })
854
+ vividElement.attr({ mode: "boolean" })
856
855
  ], OptionTag.prototype, "removable");
857
856
  __decorateClass([
858
- defineVividComponent.attr({ mode: "boolean" })
857
+ vividElement.attr({ mode: "boolean" })
859
858
  ], OptionTag.prototype, "disabled");
860
859
  __decorateClass([
861
- defineVividComponent.observable
860
+ vividElement.observable
862
861
  ], OptionTag.prototype, "hasIconPlaceholder");
863
862
  applyMixins.applyMixins(OptionTag, localized.Localized);
864
863
 
@@ -870,13 +869,13 @@ const getStateClasses = (x) => classNames.classNames(
870
869
  ["success", !!x.successText]
871
870
  );
872
871
  function renderLabel() {
873
- return defineVividComponent.html`
872
+ return vividElement.html`
874
873
  <label for="control" class="label" id="label"> ${(x) => x.label} </label>
875
874
  `;
876
875
  }
877
876
  const tagTemplateFactory = (context, getComponent) => {
878
877
  const optionTagTag = context.tagFor(OptionTag);
879
- return defineVividComponent.html`
878
+ return vividElement.html`
880
879
  <div class="tag-wrapper">
881
880
  <${optionTagTag}
882
881
  class="tag"
@@ -896,7 +895,7 @@ const tagTemplateFactory = (context, getComponent) => {
896
895
  };
897
896
  const elidedTagTemplateFactory = (context, getComponent) => {
898
897
  const optionTagTag = context.tagFor(OptionTag);
899
- return defineVividComponent.html`
898
+ return vividElement.html`
900
899
  <${optionTagTag}
901
900
  class="tag"
902
901
  tabindex="-1"
@@ -921,7 +920,7 @@ function renderFieldset(context) {
921
920
  context,
922
921
  (_, c) => c.parent
923
922
  );
924
- return defineVividComponent.html`
923
+ return vividElement.html`
925
924
  <div
926
925
  class="fieldset ${getStateClasses}"
927
926
  @click="${(x, c) => x._onFieldsetClick(c.event)}"
@@ -931,7 +930,7 @@ function renderFieldset(context) {
931
930
  <div class="content-area" ${ref.ref("_contentArea")}>
932
931
  ${repeat.repeat(
933
932
  (x) => x._tagRows,
934
- defineVividComponent.html`
933
+ vividElement.html`
935
934
  <div class="tag-row">
936
935
  ${when.when(
937
936
  (_, c) => c.isFirst && c.parent._numElidedTags,
@@ -978,7 +977,7 @@ function renderFieldset(context) {
978
977
  <slot name="meta"></slot>
979
978
  ${when.when(
980
979
  (x) => x._shouldShowClearButton,
981
- defineVividComponent.html`<${buttonTag}
980
+ vividElement.html`<${buttonTag}
982
981
  aria-label="${(x) => x.locale.searchableSelect.clearButtonLabel}"
983
982
  @click="${(x) => x._onClearButtonClick()}"
984
983
  @mousedown="${() => false}"
@@ -996,7 +995,7 @@ function renderFieldset(context) {
996
995
  }
997
996
  function renderControl(context) {
998
997
  const popupTag = context.tagFor(definition.Popup);
999
- return defineVividComponent.html`
998
+ return vividElement.html`
1000
999
  ${when.when((x) => x.label, renderLabel())}
1001
1000
  <span aria-live="assertive" aria-relevant="text" class="visually-hidden">
1002
1001
  ${(x) => x._changeDescription}
@@ -1028,16 +1027,16 @@ function renderControl(context) {
1028
1027
  </slot>
1029
1028
  ${when.when(
1030
1029
  (x) => x._filteredOptions.length === 0,
1031
- defineVividComponent.html`<div class="empty-message">
1030
+ vividElement.html`<div class="empty-message">
1032
1031
  ${when.when(
1033
1032
  (x) => x._inputValue === "",
1034
- defineVividComponent.html`<slot name="no-options">
1033
+ vividElement.html`<slot name="no-options">
1035
1034
  ${(x) => x.locale.searchableSelect.noOptionsMessage}
1036
1035
  </slot>`
1037
1036
  )}
1038
1037
  ${when.when(
1039
1038
  (x) => x._inputValue !== "",
1040
- defineVividComponent.html`<slot name="no-matches">
1039
+ vividElement.html`<slot name="no-matches">
1041
1040
  ${(x) => x.locale.searchableSelect.noMatchesMessage}
1042
1041
  </slot>`
1043
1042
  )}
@@ -1051,7 +1050,7 @@ function renderControl(context) {
1051
1050
  }
1052
1051
  const SearchableSelectTemplate = (context) => {
1053
1052
  const optionTagTag = context.tagFor(OptionTag);
1054
- return defineVividComponent.html`
1053
+ return vividElement.html`
1055
1054
  <template :_optionTagTagName="${() => optionTagTag}">
1056
1055
  <div class="control-wrapper">
1057
1056
  ${renderControl(context)} ${formElements.getFeedbackTemplate(context)}
@@ -1067,7 +1066,7 @@ const getClasses = ({ shape, disabled, removable }) => classNames.classNames(
1067
1066
  [`shape-${shape}`, Boolean(shape)]
1068
1067
  );
1069
1068
  function renderRemoveButton(iconTag) {
1070
- return defineVividComponent.html`
1069
+ return vividElement.html`
1071
1070
  <span
1072
1071
  class="remove-button"
1073
1072
  aria-label="${(x) => x.locale.searchableSelect.removeTagButtonLabel(x.label)}"
@@ -1081,22 +1080,22 @@ function renderRemoveButton(iconTag) {
1081
1080
  }
1082
1081
  const optionTagTemplate = (context) => {
1083
1082
  const iconTag = context.tagFor(definition$2.Icon);
1084
- return defineVividComponent.html`<span class="${getClasses}" aria-disabled="${(x) => x.disabled}">
1083
+ return vividElement.html`<span class="${getClasses}" aria-disabled="${(x) => x.disabled}">
1085
1084
  <slot name="icon" aria-hidden="true">
1086
1085
  ${when.when(
1087
1086
  (x) => x.hasIconPlaceholder,
1088
- defineVividComponent.html`<div class="icon-placeholder"></div>`
1087
+ vividElement.html`<div class="icon-placeholder"></div>`
1089
1088
  )}
1090
1089
  </slot>
1091
1090
  ${when.when(
1092
1091
  (x) => x.label,
1093
- (x) => defineVividComponent.html`<span class="label">${x.label}</span>`
1092
+ (x) => vividElement.html`<span class="label">${x.label}</span>`
1094
1093
  )}
1095
1094
  ${when.when((x) => x.removable, renderRemoveButton(iconTag))}
1096
1095
  </span>`;
1097
1096
  };
1098
1097
 
1099
- const optionTagDefinition = defineVividComponent.defineVividComponent(
1098
+ const optionTagDefinition = vividElement.defineVividComponent(
1100
1099
  "option-tag",
1101
1100
  OptionTag,
1102
1101
  optionTagTemplate,
@@ -1108,7 +1107,7 @@ const optionTagDefinition = defineVividComponent.defineVividComponent(
1108
1107
  }
1109
1108
  }
1110
1109
  );
1111
- const searchableSelectDefinition = defineVividComponent.defineVividComponent(
1110
+ const searchableSelectDefinition = vividElement.defineVividComponent(
1112
1111
  "searchable-select",
1113
1112
  SearchableSelect,
1114
1113
  SearchableSelectTemplate,
@@ -1120,7 +1119,7 @@ const searchableSelectDefinition = defineVividComponent.defineVividComponent(
1120
1119
  }
1121
1120
  }
1122
1121
  );
1123
- const registerSearchableSelect = defineVividComponent.createRegisterFunction(
1122
+ const registerSearchableSelect = vividElement.createRegisterFunction(
1124
1123
  searchableSelectDefinition
1125
1124
  );
1126
1125
 
@@ -1,15 +1,14 @@
1
1
  import { B as Button, c as chevronTemplateFactory, b as buttonDefinition } from './definition11.js';
2
2
  import { P as Popup, p as popupDefinition } from './definition63.js';
3
3
  import { I as Icon, i as iconDefinition } from './definition27.js';
4
- import { O as Observable, D as DOM, a as attr, n as nullableNumberConverter, o as observable, h as html, f as createRegisterFunction, d as defineVividComponent } from './defineVividComponent.js';
4
+ import { V as VividElement, O as Observable, D as DOM, a as attr, n as nullableNumberConverter, o as observable, h as html, f as createRegisterFunction, d as defineVividComponent } from './vivid-element.js';
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 { V as VividElement } from './vivid-element.js';
9
- 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';
10
9
  import { L as Localized } from './localized.js';
11
10
  import { F as FormElementSuccessText, a as FormElementHelperText, e as errorText, f as formElements, g as getFeedbackTemplate } from './form-elements.js';
12
- import { a as Listbox } from './listbox2.js';
11
+ import { L as Listbox } from './listbox.js';
13
12
  import { a as applyMixins } from './apply-mixins.js';
14
13
  import { F as FoundationElement } from './foundation-element.js';
15
14
  import { w as when } from './when.js';