@vonage/vivid 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/appearance-ui/index.cjs +1 -2
  2. package/appearance-ui/index.js +1 -2
  3. package/custom-elements.json +43 -0
  4. package/lib/button/button.d.ts +1 -0
  5. package/lib/switch/switch.d.ts +1 -1
  6. package/package.json +1 -1
  7. package/shared/affix.cjs +1 -2
  8. package/shared/affix.js +1 -2
  9. package/shared/anchored.cjs +1 -2
  10. package/shared/anchored.js +1 -2
  11. package/shared/calendar-event.cjs +1 -2
  12. package/shared/calendar-event.js +1 -2
  13. package/shared/definition.cjs +1 -2
  14. package/shared/definition.js +1 -2
  15. package/shared/definition11.cjs +29 -13
  16. package/shared/definition11.js +29 -14
  17. package/shared/definition12.cjs +1 -1
  18. package/shared/definition12.js +1 -1
  19. package/shared/definition13.cjs +1 -2
  20. package/shared/definition13.js +1 -2
  21. package/shared/definition14.cjs +1 -2
  22. package/shared/definition14.js +1 -2
  23. package/shared/definition15.cjs +1 -2
  24. package/shared/definition15.js +1 -2
  25. package/shared/definition16.cjs +1 -2
  26. package/shared/definition16.js +1 -2
  27. package/shared/definition17.cjs +4 -8
  28. package/shared/definition17.js +4 -8
  29. package/shared/definition18.cjs +14 -22
  30. package/shared/definition18.js +14 -22
  31. package/shared/definition19.cjs +29 -50
  32. package/shared/definition19.js +29 -50
  33. package/shared/definition20.cjs +1 -2
  34. package/shared/definition20.js +1 -2
  35. package/shared/definition21.cjs +1 -2
  36. package/shared/definition21.js +1 -2
  37. package/shared/definition23.cjs +1 -2
  38. package/shared/definition23.js +1 -2
  39. package/shared/definition24.cjs +2 -3
  40. package/shared/definition24.js +2 -3
  41. package/shared/definition25.cjs +22 -47
  42. package/shared/definition25.js +22 -47
  43. package/shared/definition26.cjs +1 -2
  44. package/shared/definition26.js +1 -2
  45. package/shared/definition28.cjs +1 -2
  46. package/shared/definition28.js +1 -2
  47. package/shared/definition29.cjs +19 -39
  48. package/shared/definition29.js +19 -39
  49. package/shared/definition3.cjs +1 -2
  50. package/shared/definition3.js +1 -2
  51. package/shared/definition31.cjs +1 -2
  52. package/shared/definition31.js +1 -2
  53. package/shared/definition34.cjs +1 -2
  54. package/shared/definition34.js +1 -2
  55. package/shared/definition35.cjs +14 -26
  56. package/shared/definition35.js +14 -26
  57. package/shared/definition36.cjs +1 -2
  58. package/shared/definition36.js +1 -2
  59. package/shared/definition37.cjs +8 -16
  60. package/shared/definition37.js +8 -16
  61. package/shared/definition38.cjs +1 -2
  62. package/shared/definition38.js +1 -2
  63. package/shared/definition39.cjs +1 -2
  64. package/shared/definition39.js +1 -2
  65. package/shared/definition4.cjs +7 -13
  66. package/shared/definition4.js +7 -13
  67. package/shared/definition40.cjs +1 -2
  68. package/shared/definition40.js +1 -2
  69. package/shared/definition42.cjs +52 -91
  70. package/shared/definition42.js +52 -91
  71. package/shared/definition43.cjs +7 -6
  72. package/shared/definition43.js +5 -4
  73. package/shared/definition44.cjs +4 -8
  74. package/shared/definition44.js +4 -8
  75. package/shared/definition45.cjs +1 -2
  76. package/shared/definition45.js +1 -2
  77. package/shared/definition46.cjs +1 -2
  78. package/shared/definition46.js +1 -2
  79. package/shared/definition47.cjs +1 -2
  80. package/shared/definition47.js +1 -2
  81. package/shared/definition48.cjs +2 -3
  82. package/shared/definition48.js +2 -3
  83. package/shared/definition5.cjs +1 -2
  84. package/shared/definition5.js +1 -2
  85. package/shared/definition50.cjs +1 -2
  86. package/shared/definition50.js +1 -2
  87. package/shared/definition51.cjs +5 -10
  88. package/shared/definition51.js +5 -10
  89. package/shared/definition52.cjs +1 -2
  90. package/shared/definition52.js +1 -2
  91. package/shared/definition53.cjs +1 -2
  92. package/shared/definition53.js +1 -2
  93. package/shared/definition54.cjs +9 -21
  94. package/shared/definition54.js +9 -21
  95. package/shared/definition55.cjs +24 -43
  96. package/shared/definition55.js +24 -43
  97. package/shared/definition56.cjs +23 -38
  98. package/shared/definition56.js +23 -38
  99. package/shared/definition57.cjs +22 -45
  100. package/shared/definition57.js +22 -45
  101. package/shared/definition58.cjs +18 -37
  102. package/shared/definition58.js +18 -37
  103. package/shared/definition59.cjs +1 -2
  104. package/shared/definition59.js +1 -2
  105. package/shared/definition6.cjs +1 -2
  106. package/shared/definition6.js +1 -2
  107. package/shared/definition62.cjs +1 -2
  108. package/shared/definition62.js +1 -2
  109. package/shared/definition63.cjs +1 -2
  110. package/shared/definition63.js +1 -2
  111. package/shared/definition7.cjs +1 -2
  112. package/shared/definition7.js +1 -2
  113. package/shared/definition8.cjs +1 -2
  114. package/shared/definition8.js +1 -2
  115. package/shared/definition9.cjs +1 -2
  116. package/shared/definition9.js +1 -2
  117. package/shared/icon.cjs +2 -3
  118. package/shared/icon.js +2 -3
  119. package/shared/index2.cjs +3 -6
  120. package/shared/index2.js +3 -6
  121. package/shared/listbox.cjs +1 -2
  122. package/shared/listbox.js +1 -2
  123. package/shared/patterns/chevron.d.ts +2 -0
  124. package/shared/presentationDate.cjs +1 -2
  125. package/shared/presentationDate.js +1 -2
  126. package/shared/radio.cjs +1 -2
  127. package/shared/radio.js +1 -2
  128. package/shared/text-anchor.cjs +1 -2
  129. package/shared/text-anchor.js +1 -2
  130. package/shared/video-player.cjs +4 -8
  131. package/shared/video-player.js +4 -8
  132. package/styles/core/all.css +1 -1
  133. package/styles/core/theme.css +1 -1
  134. package/styles/core/typography.css +1 -1
  135. package/styles/tokens/theme-dark.css +4 -4
  136. package/styles/tokens/theme-light.css +4 -4
  137. package/styles/tokens/vivid-2-compat.css +1 -1
  138. package/vivid.api.json +3021 -1112
@@ -2150,49 +2150,29 @@ class FormAssociatedFilePicker extends FormAssociated(_FilePicker) {
2150
2150
 
2151
2151
  var __defProp = Object.defineProperty;
2152
2152
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2153
+ var __typeError = (msg) => {
2154
+ throw TypeError(msg);
2155
+ };
2153
2156
  var __decorateClass = (decorators, target, key, kind) => {
2154
2157
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
2155
2158
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2156
2159
  if (decorator = decorators[i])
2157
2160
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2158
- if (kind && result)
2159
- __defProp(target, key, result);
2161
+ if (kind && result) __defProp(target, key, result);
2160
2162
  return result;
2161
2163
  };
2162
- var __accessCheck = (obj, member, msg) => {
2163
- if (!member.has(obj))
2164
- throw TypeError("Cannot " + msg);
2165
- };
2166
- var __privateGet = (obj, member, getter) => {
2167
- __accessCheck(obj, member, "read from private field");
2168
- return getter ? getter.call(obj) : member.get(obj);
2169
- };
2170
- var __privateAdd = (obj, member, value) => {
2171
- if (member.has(obj))
2172
- throw TypeError("Cannot add the same private member more than once");
2173
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
2174
- };
2175
- var __privateSet = (obj, member, value, setter) => {
2176
- __accessCheck(obj, member, "write to private field");
2177
- member.set(obj, value);
2178
- return value;
2179
- };
2180
- var __privateMethod = (obj, member, method) => {
2181
- __accessCheck(obj, member, "access private method");
2182
- return method;
2183
- };
2184
- var _dropzone, _chooseFile, chooseFile_fn, _updateHiddenFileInput, updateHiddenFileInput_fn, _handleFilesChanged, handleFilesChanged_fn, _updateFormValue, updateFormValue_fn, _setValueToAFakePathLikeNativeInput, setValueToAFakePathLikeNativeInput_fn, _formatNumbersInMessage, formatNumbersInMessage_fn;
2164
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
2165
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
2166
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
2167
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
2168
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
2169
+ var _dropzone, _FilePicker_instances, chooseFile_fn, updateHiddenFileInput_fn, handleFilesChanged_fn, updateFormValue_fn, setValueToAFakePathLikeNativeInput_fn, formatNumbersInMessage_fn;
2185
2170
  const isFormAssociatedTryingToSetFormValueToFakePath = (value) => typeof value === "string";
2186
2171
  let FilePicker = class extends FormAssociatedFilePicker {
2187
2172
  constructor() {
2188
2173
  super();
2189
- __privateAdd(this, _chooseFile);
2190
- __privateAdd(this, _updateHiddenFileInput);
2191
- __privateAdd(this, _handleFilesChanged);
2192
- __privateAdd(this, _updateFormValue);
2193
- __privateAdd(this, _setValueToAFakePathLikeNativeInput);
2194
- __privateAdd(this, _formatNumbersInMessage);
2195
- __privateAdd(this, _dropzone, void 0);
2174
+ __privateAdd(this, _FilePicker_instances);
2175
+ __privateAdd(this, _dropzone);
2196
2176
  this.maxFileSize = 256;
2197
2177
  /**
2198
2178
  * Used internally to hold the tag that button is registered at.
@@ -2219,7 +2199,7 @@ let FilePicker = class extends FormAssociatedFilePicker {
2219
2199
  return;
2220
2200
  }
2221
2201
  __privateGet(this, _dropzone).options.maxFiles = newValue;
2222
- __privateMethod(this, _updateHiddenFileInput, updateHiddenFileInput_fn).call(this);
2202
+ __privateMethod(this, _FilePicker_instances, updateHiddenFileInput_fn).call(this);
2223
2203
  }
2224
2204
  maxFileSizeChanged(_oldValue, newValue) {
2225
2205
  if (!__privateGet(this, _dropzone)) {
@@ -2235,7 +2215,7 @@ let FilePicker = class extends FormAssociatedFilePicker {
2235
2215
  }
2236
2216
  nameChanged(previous, next) {
2237
2217
  super.nameChanged(previous, next);
2238
- __privateMethod(this, _updateFormValue, updateFormValue_fn).call(this);
2218
+ __privateMethod(this, _FilePicker_instances, updateFormValue_fn).call(this);
2239
2219
  }
2240
2220
  connectedCallback() {
2241
2221
  super.connectedCallback();
@@ -2277,13 +2257,13 @@ let FilePicker = class extends FormAssociatedFilePicker {
2277
2257
  for (const node of file.previewElement.querySelectorAll(
2278
2258
  "[data-dz-errormessage]"
2279
2259
  )) {
2280
- node.textContent = __privateMethod(this, _formatNumbersInMessage, formatNumbersInMessage_fn).call(this, message);
2260
+ node.textContent = __privateMethod(this, _FilePicker_instances, formatNumbersInMessage_fn).call(this, message);
2281
2261
  }
2282
2262
  }
2283
2263
  }
2284
2264
  }));
2285
2265
  __privateGet(this, _dropzone).filesize = (size) => {
2286
- return __privateMethod(this, _formatNumbersInMessage, formatNumbersInMessage_fn).call(this, $3ed269f2f0fb224b$export$2e2bcd8739ae039.prototype.filesize.call(__privateGet(this, _dropzone), size));
2266
+ return __privateMethod(this, _FilePicker_instances, formatNumbersInMessage_fn).call(this, $3ed269f2f0fb224b$export$2e2bcd8739ae039.prototype.filesize.call(__privateGet(this, _dropzone), size));
2287
2267
  };
2288
2268
  __privateGet(this, _dropzone).on("addedfiles", (files) => {
2289
2269
  for (const file of files) {
@@ -2298,10 +2278,10 @@ let FilePicker = class extends FormAssociatedFilePicker {
2298
2278
  });
2299
2279
  }
2300
2280
  }
2301
- __privateMethod(this, _handleFilesChanged, handleFilesChanged_fn).call(this);
2281
+ __privateMethod(this, _FilePicker_instances, handleFilesChanged_fn).call(this);
2302
2282
  });
2303
2283
  __privateGet(this, _dropzone).on("removedfile", () => {
2304
- __privateMethod(this, _handleFilesChanged, handleFilesChanged_fn).call(this);
2284
+ __privateMethod(this, _FilePicker_instances, handleFilesChanged_fn).call(this);
2305
2285
  });
2306
2286
  __privateGet(this, _dropzone).on("error", (file) => {
2307
2287
  if (file.previewElement) {
@@ -2328,7 +2308,7 @@ let FilePicker = class extends FormAssociatedFilePicker {
2328
2308
  */
2329
2309
  handleKeydown(e) {
2330
2310
  if (e.key === "Enter" || e.key === " ") {
2331
- __privateMethod(this, _chooseFile, chooseFile_fn).call(this);
2311
+ __privateMethod(this, _FilePicker_instances, chooseFile_fn).call(this);
2332
2312
  }
2333
2313
  return true;
2334
2314
  }
@@ -2341,13 +2321,12 @@ let FilePicker = class extends FormAssociatedFilePicker {
2341
2321
  }
2342
2322
  };
2343
2323
  _dropzone = new WeakMap();
2344
- _chooseFile = new WeakSet();
2324
+ _FilePicker_instances = new WeakSet();
2345
2325
  chooseFile_fn = function() {
2346
2326
  if (__privateGet(this, _dropzone).hiddenFileInput) {
2347
2327
  __privateGet(this, _dropzone).hiddenFileInput.click();
2348
2328
  }
2349
2329
  };
2350
- _updateHiddenFileInput = new WeakSet();
2351
2330
  updateHiddenFileInput_fn = function() {
2352
2331
  if (__privateGet(this, _dropzone).hiddenFileInput) {
2353
2332
  __privateGet(this, _dropzone).hiddenFileInput.dispatchEvent(
@@ -2355,12 +2334,10 @@ updateHiddenFileInput_fn = function() {
2355
2334
  );
2356
2335
  }
2357
2336
  };
2358
- _handleFilesChanged = new WeakSet();
2359
2337
  handleFilesChanged_fn = function() {
2360
2338
  this.$emit("change");
2361
- __privateMethod(this, _updateFormValue, updateFormValue_fn).call(this);
2339
+ __privateMethod(this, _FilePicker_instances, updateFormValue_fn).call(this);
2362
2340
  };
2363
- _updateFormValue = new WeakSet();
2364
2341
  updateFormValue_fn = function() {
2365
2342
  const files = this.files;
2366
2343
  if (!this.name) {
@@ -2372,13 +2349,11 @@ updateFormValue_fn = function() {
2372
2349
  }
2373
2350
  this.setFormValue(formData);
2374
2351
  }
2375
- __privateMethod(this, _setValueToAFakePathLikeNativeInput, setValueToAFakePathLikeNativeInput_fn).call(this);
2352
+ __privateMethod(this, _FilePicker_instances, setValueToAFakePathLikeNativeInput_fn).call(this);
2376
2353
  };
2377
- _setValueToAFakePathLikeNativeInput = new WeakSet();
2378
2354
  setValueToAFakePathLikeNativeInput_fn = function() {
2379
2355
  this.value = this.files.length > 0 ? `C:\\fakepath\\${this.files[0].name}` : "";
2380
2356
  };
2381
- _formatNumbersInMessage = new WeakSet();
2382
2357
  formatNumbersInMessage_fn = function(message) {
2383
2358
  if (this.locale.common.useCommaAsDecimalSeparator) {
2384
2359
  return message.replace(/(\d+)\.(\d+)/g, "$1,$2");
@@ -12,8 +12,7 @@ var __decorateClass = (decorators, target, key, kind) => {
12
12
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
13
13
  if (decorator = decorators[i])
14
14
  result = (decorator(target, key, result) ) || result;
15
- if (result)
16
- __defProp(target, key, result);
15
+ if (result) __defProp(target, key, result);
17
16
  return result;
18
17
  };
19
18
  class Header extends index.FoundationElement {
@@ -10,8 +10,7 @@ var __decorateClass = (decorators, target, key, kind) => {
10
10
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
11
11
  if (decorator = decorators[i])
12
12
  result = (decorator(target, key, result) ) || result;
13
- if (result)
14
- __defProp(target, key, result);
13
+ if (result) __defProp(target, key, result);
15
14
  return result;
16
15
  };
17
16
  class Header extends FoundationElement {
@@ -9,8 +9,7 @@ var __decorateClass = (decorators, target, key, kind) => {
9
9
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
10
  if (decorator = decorators[i])
11
11
  result = (decorator(target, key, result) ) || result;
12
- if (result)
13
- __defProp(target, key, result);
12
+ if (result) __defProp(target, key, result);
14
13
  return result;
15
14
  };
16
15
  class Layout extends index.FoundationElement {
@@ -7,8 +7,7 @@ var __decorateClass = (decorators, target, key, kind) => {
7
7
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
8
8
  if (decorator = decorators[i])
9
9
  result = (decorator(target, key, result) ) || result;
10
- if (result)
11
- __defProp(target, key, result);
10
+ if (result) __defProp(target, key, result);
12
11
  return result;
13
12
  };
14
13
  class Layout extends FoundationElement {
@@ -575,49 +575,35 @@ const styles = ":host(:focus-visible){outline:none}:host([disabled]){pointer-eve
575
575
 
576
576
  var __defProp$1 = Object.defineProperty;
577
577
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
578
+ var __typeError = (msg) => {
579
+ throw TypeError(msg);
580
+ };
578
581
  var __decorateClass$1 = (decorators, target, key, kind) => {
579
582
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
580
583
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
581
584
  if (decorator = decorators[i])
582
585
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
583
- if (kind && result)
584
- __defProp$1(target, key, result);
586
+ if (kind && result) __defProp$1(target, key, result);
585
587
  return result;
586
588
  };
587
- var __accessCheck = (obj, member, msg) => {
588
- if (!member.has(obj))
589
- throw TypeError("Cannot " + msg);
590
- };
591
- var __privateGet = (obj, member, getter) => {
592
- __accessCheck(obj, member, "read from private field");
593
- return getter ? getter.call(obj) : member.get(obj);
594
- };
595
- var __privateAdd = (obj, member, value) => {
596
- if (member.has(obj))
597
- throw TypeError("Cannot add the same private member more than once");
598
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
599
- };
600
- var __privateMethod = (obj, member, method) => {
601
- __accessCheck(obj, member, "access private method");
602
- return method;
603
- };
604
- var _triggerBehaviour, triggerBehaviour_get, _setupAnchor, setupAnchor_fn, _updateAnchor, updateAnchor_fn, _cleanupAnchor, cleanupAnchor_fn, _onAnchorClick;
589
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
590
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
591
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
592
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
593
+ var _Menu_instances, triggerBehaviour_get, setupAnchor_fn, updateAnchor_fn, cleanupAnchor_fn, _onAnchorClick;
605
594
  exports.Menu = class Menu extends Menu$1 {
606
595
  constructor() {
607
596
  super();
608
- __privateAdd(this, _triggerBehaviour);
609
- __privateAdd(this, _setupAnchor);
610
- __privateAdd(this, _updateAnchor);
611
- __privateAdd(this, _cleanupAnchor);
597
+ __privateAdd(this, _Menu_instances);
612
598
  this.ariaLabel = null;
613
599
  this.placement = "bottom";
614
600
  this.autoDismiss = false;
615
601
  this.open = false;
616
602
  __privateAdd(this, _onAnchorClick, () => {
617
- if (__privateGet(this, _triggerBehaviour, triggerBehaviour_get) === "off") {
603
+ if (__privateGet(this, _Menu_instances, triggerBehaviour_get) === "off") {
618
604
  return;
619
605
  }
620
- if (__privateGet(this, _triggerBehaviour, triggerBehaviour_get) === "legacy" && this.open) {
606
+ if (__privateGet(this, _Menu_instances, triggerBehaviour_get) === "legacy" && this.open) {
621
607
  return;
622
608
  }
623
609
  const newValue = !this.open;
@@ -650,45 +636,40 @@ exports.Menu = class Menu extends Menu$1 {
650
636
  openChanged(_, newValue) {
651
637
  newValue ? this.$emit("open", void 0, { bubbles: false }) : this.$emit("close", void 0, { bubbles: false });
652
638
  if (this._anchorEl) {
653
- __privateMethod(this, _updateAnchor, updateAnchor_fn).call(this, this._anchorEl);
639
+ __privateMethod(this, _Menu_instances, updateAnchor_fn).call(this, this._anchorEl);
654
640
  }
655
641
  }
656
642
  /**
657
643
  * @internal
658
644
  */
659
645
  _anchorElChanged(oldValue, newValue) {
660
- if (oldValue)
661
- __privateMethod(this, _cleanupAnchor, cleanupAnchor_fn).call(this, oldValue);
662
- if (newValue)
663
- __privateMethod(this, _setupAnchor, setupAnchor_fn).call(this, newValue);
646
+ if (oldValue) __privateMethod(this, _Menu_instances, cleanupAnchor_fn).call(this, oldValue);
647
+ if (newValue) __privateMethod(this, _Menu_instances, setupAnchor_fn).call(this, newValue);
664
648
  }
665
649
  /**
666
650
  * @internal
667
651
  */
668
652
  _onChange(e) {
669
653
  const clickedOnNonCheckboxMenuItem = e.target instanceof HTMLElement && (e.target.role === "menuitem" || e.target.role === "menuitemradio");
670
- if (__privateGet(this, _triggerBehaviour, triggerBehaviour_get) === "auto" && clickedOnNonCheckboxMenuItem) {
654
+ if (__privateGet(this, _Menu_instances, triggerBehaviour_get) === "auto" && clickedOnNonCheckboxMenuItem) {
671
655
  this.open = false;
672
656
  }
673
657
  return true;
674
658
  }
675
659
  };
676
- _triggerBehaviour = new WeakSet();
660
+ _Menu_instances = new WeakSet();
677
661
  triggerBehaviour_get = function() {
678
662
  return this.trigger ?? "legacy";
679
663
  };
680
- _setupAnchor = new WeakSet();
681
664
  setupAnchor_fn = function(a) {
682
665
  a.addEventListener("click", __privateGet(this, _onAnchorClick), true);
683
666
  a.addEventListener("focusout", this._onFocusout);
684
667
  a.setAttribute("aria-haspopup", "menu");
685
- __privateMethod(this, _updateAnchor, updateAnchor_fn).call(this, a);
668
+ __privateMethod(this, _Menu_instances, updateAnchor_fn).call(this, a);
686
669
  };
687
- _updateAnchor = new WeakSet();
688
670
  updateAnchor_fn = function(a) {
689
671
  a.setAttribute("aria-expanded", this.open.toString());
690
672
  };
691
- _cleanupAnchor = new WeakSet();
692
673
  cleanupAnchor_fn = function(a) {
693
674
  a.removeEventListener("click", __privateGet(this, _onAnchorClick), true);
694
675
  a.removeEventListener("focusout", this._onFocusout);
@@ -727,8 +708,7 @@ var __decorateClass = (decorators, target, key, kind) => {
727
708
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
728
709
  if (decorator = decorators[i])
729
710
  result = (decorator(target, key, result) ) || result;
730
- if (result)
731
- __defProp(target, key, result);
711
+ if (result) __defProp(target, key, result);
732
712
  return result;
733
713
  };
734
714
  const MenuItemRole = {
@@ -573,49 +573,35 @@ const styles = ":host(:focus-visible){outline:none}:host([disabled]){pointer-eve
573
573
 
574
574
  var __defProp$1 = Object.defineProperty;
575
575
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
576
+ var __typeError = (msg) => {
577
+ throw TypeError(msg);
578
+ };
576
579
  var __decorateClass$1 = (decorators, target, key, kind) => {
577
580
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
578
581
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
579
582
  if (decorator = decorators[i])
580
583
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
581
- if (kind && result)
582
- __defProp$1(target, key, result);
584
+ if (kind && result) __defProp$1(target, key, result);
583
585
  return result;
584
586
  };
585
- var __accessCheck = (obj, member, msg) => {
586
- if (!member.has(obj))
587
- throw TypeError("Cannot " + msg);
588
- };
589
- var __privateGet = (obj, member, getter) => {
590
- __accessCheck(obj, member, "read from private field");
591
- return getter ? getter.call(obj) : member.get(obj);
592
- };
593
- var __privateAdd = (obj, member, value) => {
594
- if (member.has(obj))
595
- throw TypeError("Cannot add the same private member more than once");
596
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
597
- };
598
- var __privateMethod = (obj, member, method) => {
599
- __accessCheck(obj, member, "access private method");
600
- return method;
601
- };
602
- var _triggerBehaviour, triggerBehaviour_get, _setupAnchor, setupAnchor_fn, _updateAnchor, updateAnchor_fn, _cleanupAnchor, cleanupAnchor_fn, _onAnchorClick;
587
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
588
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
589
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
590
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
591
+ var _Menu_instances, triggerBehaviour_get, setupAnchor_fn, updateAnchor_fn, cleanupAnchor_fn, _onAnchorClick;
603
592
  let Menu = class extends Menu$1 {
604
593
  constructor() {
605
594
  super();
606
- __privateAdd(this, _triggerBehaviour);
607
- __privateAdd(this, _setupAnchor);
608
- __privateAdd(this, _updateAnchor);
609
- __privateAdd(this, _cleanupAnchor);
595
+ __privateAdd(this, _Menu_instances);
610
596
  this.ariaLabel = null;
611
597
  this.placement = "bottom";
612
598
  this.autoDismiss = false;
613
599
  this.open = false;
614
600
  __privateAdd(this, _onAnchorClick, () => {
615
- if (__privateGet(this, _triggerBehaviour, triggerBehaviour_get) === "off") {
601
+ if (__privateGet(this, _Menu_instances, triggerBehaviour_get) === "off") {
616
602
  return;
617
603
  }
618
- if (__privateGet(this, _triggerBehaviour, triggerBehaviour_get) === "legacy" && this.open) {
604
+ if (__privateGet(this, _Menu_instances, triggerBehaviour_get) === "legacy" && this.open) {
619
605
  return;
620
606
  }
621
607
  const newValue = !this.open;
@@ -648,45 +634,40 @@ let Menu = class extends Menu$1 {
648
634
  openChanged(_, newValue) {
649
635
  newValue ? this.$emit("open", void 0, { bubbles: false }) : this.$emit("close", void 0, { bubbles: false });
650
636
  if (this._anchorEl) {
651
- __privateMethod(this, _updateAnchor, updateAnchor_fn).call(this, this._anchorEl);
637
+ __privateMethod(this, _Menu_instances, updateAnchor_fn).call(this, this._anchorEl);
652
638
  }
653
639
  }
654
640
  /**
655
641
  * @internal
656
642
  */
657
643
  _anchorElChanged(oldValue, newValue) {
658
- if (oldValue)
659
- __privateMethod(this, _cleanupAnchor, cleanupAnchor_fn).call(this, oldValue);
660
- if (newValue)
661
- __privateMethod(this, _setupAnchor, setupAnchor_fn).call(this, newValue);
644
+ if (oldValue) __privateMethod(this, _Menu_instances, cleanupAnchor_fn).call(this, oldValue);
645
+ if (newValue) __privateMethod(this, _Menu_instances, setupAnchor_fn).call(this, newValue);
662
646
  }
663
647
  /**
664
648
  * @internal
665
649
  */
666
650
  _onChange(e) {
667
651
  const clickedOnNonCheckboxMenuItem = e.target instanceof HTMLElement && (e.target.role === "menuitem" || e.target.role === "menuitemradio");
668
- if (__privateGet(this, _triggerBehaviour, triggerBehaviour_get) === "auto" && clickedOnNonCheckboxMenuItem) {
652
+ if (__privateGet(this, _Menu_instances, triggerBehaviour_get) === "auto" && clickedOnNonCheckboxMenuItem) {
669
653
  this.open = false;
670
654
  }
671
655
  return true;
672
656
  }
673
657
  };
674
- _triggerBehaviour = new WeakSet();
658
+ _Menu_instances = new WeakSet();
675
659
  triggerBehaviour_get = function() {
676
660
  return this.trigger ?? "legacy";
677
661
  };
678
- _setupAnchor = new WeakSet();
679
662
  setupAnchor_fn = function(a) {
680
663
  a.addEventListener("click", __privateGet(this, _onAnchorClick), true);
681
664
  a.addEventListener("focusout", this._onFocusout);
682
665
  a.setAttribute("aria-haspopup", "menu");
683
- __privateMethod(this, _updateAnchor, updateAnchor_fn).call(this, a);
666
+ __privateMethod(this, _Menu_instances, updateAnchor_fn).call(this, a);
684
667
  };
685
- _updateAnchor = new WeakSet();
686
668
  updateAnchor_fn = function(a) {
687
669
  a.setAttribute("aria-expanded", this.open.toString());
688
670
  };
689
- _cleanupAnchor = new WeakSet();
690
671
  cleanupAnchor_fn = function(a) {
691
672
  a.removeEventListener("click", __privateGet(this, _onAnchorClick), true);
692
673
  a.removeEventListener("focusout", this._onFocusout);
@@ -725,8 +706,7 @@ var __decorateClass = (decorators, target, key, kind) => {
725
706
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
726
707
  if (decorator = decorators[i])
727
708
  result = (decorator(target, key, result) ) || result;
728
- if (result)
729
- __defProp(target, key, result);
709
+ if (result) __defProp(target, key, result);
730
710
  return result;
731
711
  };
732
712
  const MenuItemRole = {
@@ -11,8 +11,7 @@ var __decorateClass = (decorators, target, key, kind) => {
11
11
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12
12
  if (decorator = decorators[i])
13
13
  result = (decorator(target, key, result) ) || result;
14
- if (result)
15
- __defProp(target, key, result);
14
+ if (result) __defProp(target, key, result);
16
15
  return result;
17
16
  };
18
17
  class ActionGroup extends index.FoundationElement {
@@ -9,8 +9,7 @@ var __decorateClass = (decorators, target, key, kind) => {
9
9
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
10
  if (decorator = decorators[i])
11
11
  result = (decorator(target, key, result) ) || result;
12
- if (result)
13
- __defProp(target, key, result);
12
+ if (result) __defProp(target, key, result);
14
13
  return result;
15
14
  };
16
15
  class ActionGroup extends FoundationElement {
@@ -16,8 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
16
16
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
17
17
  if (decorator = decorators[i])
18
18
  result = (decorator(target, key, result) ) || result;
19
- if (result)
20
- __defProp(target, key, result);
19
+ if (result) __defProp(target, key, result);
21
20
  return result;
22
21
  };
23
22
  class NavDisclosure extends index.FoundationElement {
@@ -14,8 +14,7 @@ var __decorateClass = (decorators, target, key, kind) => {
14
14
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
15
  if (decorator = decorators[i])
16
16
  result = (decorator(target, key, result) ) || result;
17
- if (result)
18
- __defProp(target, key, result);
17
+ if (result) __defProp(target, key, result);
19
18
  return result;
20
19
  };
21
20
  class NavDisclosure extends FoundationElement {
@@ -16,8 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
16
16
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
17
17
  if (decorator = decorators[i])
18
18
  result = (decorator(target, key, result) ) || result;
19
- if (result)
20
- __defProp(target, key, result);
19
+ if (result) __defProp(target, key, result);
21
20
  return result;
22
21
  };
23
22
  class Note extends index.FoundationElement {
@@ -14,8 +14,7 @@ var __decorateClass = (decorators, target, key, kind) => {
14
14
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
15
  if (decorator = decorators[i])
16
16
  result = (decorator(target, key, result) ) || result;
17
- if (result)
18
- __defProp(target, key, result);
17
+ if (result) __defProp(target, key, result);
19
18
  return result;
20
19
  };
21
20
  class Note extends FoundationElement {
@@ -28,29 +28,21 @@ class FormAssociatedNumberField extends formAssociated.FormAssociated(_NumberFie
28
28
 
29
29
  var __defProp = Object.defineProperty;
30
30
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
31
+ var __typeError = (msg) => {
32
+ throw TypeError(msg);
33
+ };
31
34
  var __decorateClass = (decorators, target, key, kind) => {
32
35
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
33
36
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
34
37
  if (decorator = decorators[i])
35
38
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
36
- if (kind && result)
37
- __defProp(target, key, result);
39
+ if (kind && result) __defProp(target, key, result);
38
40
  return result;
39
41
  };
40
- var __accessCheck = (obj, member, msg) => {
41
- if (!member.has(obj))
42
- throw TypeError("Cannot " + msg);
43
- };
44
- var __privateAdd = (obj, member, value) => {
45
- if (member.has(obj))
46
- throw TypeError("Cannot add the same private member more than once");
47
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
48
- };
49
- var __privateMethod = (obj, member, method) => {
50
- __accessCheck(obj, member, "access private method");
51
- return method;
52
- };
53
- var _valueToPresentationValue, valueToPresentationValue_fn, _inputToPresentationValue, inputToPresentationValue_fn, _presentationValueToValue, presentationValueToValue_fn;
42
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
43
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
44
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
45
+ var _NumberField_instances, valueToPresentationValue_fn, inputToPresentationValue_fn, presentationValueToValue_fn;
54
46
  const STEP_DIRECTION = {
55
47
  up: 1,
56
48
  down: -1
@@ -75,9 +67,7 @@ const validNumber = /^-?((\d*\.\d+)|(\d+))$/;
75
67
  let NumberField = class extends FormAssociatedNumberField {
76
68
  constructor() {
77
69
  super(...arguments);
78
- __privateAdd(this, _valueToPresentationValue);
79
- __privateAdd(this, _inputToPresentationValue);
80
- __privateAdd(this, _presentationValueToValue);
70
+ __privateAdd(this, _NumberField_instances);
81
71
  this.readOnly = false;
82
72
  this.autofocus = false;
83
73
  // eslint-disable-next-line @nrwl/nx/workspace/no-attribute-default-value
@@ -139,7 +129,7 @@ let NumberField = class extends FormAssociatedNumberField {
139
129
  return;
140
130
  }
141
131
  if (this.control && !this.isUserInput) {
142
- this._presentationValue = __privateMethod(this, _valueToPresentationValue, valueToPresentationValue_fn).call(this, this.value);
132
+ this._presentationValue = __privateMethod(this, _NumberField_instances, valueToPresentationValue_fn).call(this, this.value);
143
133
  }
144
134
  super.valueChanged(previous, this.value);
145
135
  if (previous !== void 0 && !this.isUserInput) {
@@ -181,7 +171,7 @@ let NumberField = class extends FormAssociatedNumberField {
181
171
  super.connectedCallback();
182
172
  this.proxy.setAttribute("type", "number");
183
173
  this.validate();
184
- this._presentationValue = __privateMethod(this, _valueToPresentationValue, valueToPresentationValue_fn).call(this, this.value);
174
+ this._presentationValue = __privateMethod(this, _NumberField_instances, valueToPresentationValue_fn).call(this, this.value);
185
175
  if (this.autofocus) {
186
176
  index.DOM.queueUpdate(() => {
187
177
  this.focus();
@@ -202,12 +192,12 @@ let NumberField = class extends FormAssociatedNumberField {
202
192
  * @internal
203
193
  */
204
194
  handleTextInput() {
205
- this._presentationValue = __privateMethod(this, _inputToPresentationValue, inputToPresentationValue_fn).call(this, this.control.value);
195
+ this._presentationValue = __privateMethod(this, _NumberField_instances, inputToPresentationValue_fn).call(this, this.control.value);
206
196
  if (this.control.value !== this._presentationValue) {
207
197
  this.control.value = this._presentationValue;
208
198
  }
209
199
  this.isUserInput = true;
210
- this.value = __privateMethod(this, _presentationValueToValue, presentationValueToValue_fn).call(this, this._presentationValue);
200
+ this.value = __privateMethod(this, _NumberField_instances, presentationValueToValue_fn).call(this, this._presentationValue);
211
201
  this.isUserInput = false;
212
202
  }
213
203
  /**
@@ -239,18 +229,16 @@ let NumberField = class extends FormAssociatedNumberField {
239
229
  return true;
240
230
  }
241
231
  };
242
- _valueToPresentationValue = new WeakSet();
232
+ _NumberField_instances = new WeakSet();
243
233
  valueToPresentationValue_fn = function(value) {
244
234
  return value.replace(
245
235
  ".",
246
236
  this.locale.common.useCommaAsDecimalSeparator ? "," : "."
247
237
  );
248
238
  };
249
- _inputToPresentationValue = new WeakSet();
250
239
  inputToPresentationValue_fn = function(input) {
251
240
  return input.replace(this._numberPatterns.invalidCharacters, "").replace(this._numberPatterns.additionalDecimalSeparators, "");
252
241
  };
253
- _presentationValueToValue = new WeakSet();
254
242
  presentationValueToValue_fn = function(presentationValue) {
255
243
  const candidate = presentationValue.replace(this._numberPatterns.trailingDecimalSeparator, "").replace(this._numberPatterns.decimalSeparator, ".");
256
244
  return validNumber.test(candidate) ? candidate : "";