@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
@@ -15,8 +15,7 @@ var __decorateClass = (decorators, target, key, kind) => {
15
15
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
16
16
  if (decorator = decorators[i])
17
17
  result = (decorator(target, key, result) ) || result;
18
- if (result)
19
- __defProp(target, key, result);
18
+ if (result) __defProp(target, key, result);
20
19
  return result;
21
20
  };
22
21
  class Card extends FoundationElement {
@@ -107,8 +107,7 @@ var __decorateClass = (decorators, target, key, kind) => {
107
107
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
108
108
  if (decorator = decorators[i])
109
109
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
110
- if (kind && result)
111
- __defProp(target, key, result);
110
+ if (kind && result) __defProp(target, key, result);
112
111
  return result;
113
112
  };
114
113
  const keySpace = " ";
@@ -105,8 +105,7 @@ var __decorateClass = (decorators, target, key, kind) => {
105
105
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
106
106
  if (decorator = decorators[i])
107
107
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
108
- if (kind && result)
109
- __defProp(target, key, result);
108
+ if (kind && result) __defProp(target, key, result);
110
109
  return result;
111
110
  };
112
111
  const keySpace = " ";
@@ -630,8 +630,7 @@ var __decorateClass = (decorators, target, key, kind) => {
630
630
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
631
631
  if (decorator = decorators[i])
632
632
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
633
- if (kind && result)
634
- __defProp(target, key, result);
633
+ if (kind && result) __defProp(target, key, result);
635
634
  return result;
636
635
  };
637
636
  let Combobox = class extends Combobox$1 {
@@ -628,8 +628,7 @@ var __decorateClass = (decorators, target, key, kind) => {
628
628
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
629
629
  if (decorator = decorators[i])
630
630
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
631
- if (kind && result)
632
- __defProp(target, key, result);
631
+ if (kind && result) __defProp(target, key, result);
633
632
  return result;
634
633
  };
635
634
  let Combobox = class extends Combobox$1 {
@@ -943,8 +943,7 @@ var __decorateClass$2 = (decorators, target, key, kind) => {
943
943
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
944
944
  if (decorator = decorators[i])
945
945
  result = (decorator(target, key, result) ) || result;
946
- if (result)
947
- __defProp$2(target, key, result);
946
+ if (result) __defProp$2(target, key, result);
948
947
  return result;
949
948
  };
950
949
  const DataGridSelectionMode = {
@@ -990,8 +989,7 @@ class DataGrid extends DataGrid$1 {
990
989
  }
991
990
  };
992
991
  #handleClick = ({ target, ctrlKey, shiftKey, metaKey }) => {
993
- if (target.getAttribute("role") !== "gridcell")
994
- return;
992
+ if (target.getAttribute("role") !== "gridcell") return;
995
993
  if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
996
994
  this.#handleCellSelection({ target, ctrlKey, shiftKey, metaKey });
997
995
  return;
@@ -1158,8 +1156,7 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
1158
1156
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1159
1157
  if (decorator = decorators[i])
1160
1158
  result = (decorator(target, key, result) ) || result;
1161
- if (result)
1162
- __defProp$1(target, key, result);
1159
+ if (result) __defProp$1(target, key, result);
1163
1160
  return result;
1164
1161
  };
1165
1162
  class DataGridRow extends DataGridRow$1 {
@@ -1229,8 +1226,7 @@ var __decorateClass = (decorators, target, key, kind) => {
1229
1226
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1230
1227
  if (decorator = decorators[i])
1231
1228
  result = (decorator(target, key, result) ) || result;
1232
- if (result)
1233
- __defProp(target, key, result);
1229
+ if (result) __defProp(target, key, result);
1234
1230
  return result;
1235
1231
  };
1236
1232
  class DataGridCell extends DataGridCell$1 {
@@ -941,8 +941,7 @@ var __decorateClass$2 = (decorators, target, key, kind) => {
941
941
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
942
942
  if (decorator = decorators[i])
943
943
  result = (decorator(target, key, result) ) || result;
944
- if (result)
945
- __defProp$2(target, key, result);
944
+ if (result) __defProp$2(target, key, result);
946
945
  return result;
947
946
  };
948
947
  const DataGridSelectionMode = {
@@ -988,8 +987,7 @@ class DataGrid extends DataGrid$1 {
988
987
  }
989
988
  };
990
989
  #handleClick = ({ target, ctrlKey, shiftKey, metaKey }) => {
991
- if (target.getAttribute("role") !== "gridcell")
992
- return;
990
+ if (target.getAttribute("role") !== "gridcell") return;
993
991
  if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
994
992
  this.#handleCellSelection({ target, ctrlKey, shiftKey, metaKey });
995
993
  return;
@@ -1156,8 +1154,7 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
1156
1154
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1157
1155
  if (decorator = decorators[i])
1158
1156
  result = (decorator(target, key, result) ) || result;
1159
- if (result)
1160
- __defProp$1(target, key, result);
1157
+ if (result) __defProp$1(target, key, result);
1161
1158
  return result;
1162
1159
  };
1163
1160
  class DataGridRow extends DataGridRow$1 {
@@ -1227,8 +1224,7 @@ var __decorateClass = (decorators, target, key, kind) => {
1227
1224
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1228
1225
  if (decorator = decorators[i])
1229
1226
  result = (decorator(target, key, result) ) || result;
1230
- if (result)
1231
- __defProp(target, key, result);
1227
+ if (result) __defProp(target, key, result);
1232
1228
  return result;
1233
1229
  };
1234
1230
  class DataGridCell extends DataGridCell$1 {
@@ -11,33 +11,25 @@ const index$1 = require('./index2.cjs');
11
11
 
12
12
  var __defProp = Object.defineProperty;
13
13
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
+ var __typeError = (msg) => {
15
+ throw TypeError(msg);
16
+ };
14
17
  var __decorateClass = (decorators, target, key, kind) => {
15
18
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
16
19
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
17
20
  if (decorator = decorators[i])
18
21
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
19
- if (kind && result)
20
- __defProp(target, key, result);
22
+ if (kind && result) __defProp(target, key, result);
21
23
  return result;
22
24
  };
23
- var __accessCheck = (obj, member, msg) => {
24
- if (!member.has(obj))
25
- throw TypeError("Cannot " + msg);
26
- };
27
- var __privateAdd = (obj, member, value) => {
28
- if (member.has(obj))
29
- throw TypeError("Cannot add the same private member more than once");
30
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
31
- };
32
- var __privateMethod = (obj, member, method) => {
33
- __accessCheck(obj, member, "access private method");
34
- return method;
35
- };
36
- var _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn;
25
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
26
+ 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);
27
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
28
+ var _DatePicker_instances, updateValueDueToUserInteraction_fn;
37
29
  let DatePicker = class extends presentationDate.DatePickerBase {
38
30
  constructor() {
39
31
  super();
40
- __privateAdd(this, _updateValueDueToUserInteraction);
32
+ __privateAdd(this, _DatePicker_instances);
41
33
  /**
42
34
  * @internal
43
35
  */
@@ -83,11 +75,11 @@ let DatePicker = class extends presentationDate.DatePickerBase {
83
75
  */
84
76
  _onTextFieldChange() {
85
77
  if (this._presentationValue === "") {
86
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
78
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, "");
87
79
  return;
88
80
  }
89
81
  try {
90
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, presentationDate.parsePresentationDate(this._presentationValue, this.locale.datePicker));
82
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, presentationDate.parsePresentationDate(this._presentationValue, this.locale.datePicker));
91
83
  } catch (_) {
92
84
  return;
93
85
  }
@@ -97,7 +89,7 @@ let DatePicker = class extends presentationDate.DatePickerBase {
97
89
  * @internal
98
90
  */
99
91
  _onDateClick(date) {
100
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, date);
92
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, date);
101
93
  this._closePopup();
102
94
  }
103
95
  /**
@@ -149,11 +141,11 @@ let DatePicker = class extends presentationDate.DatePickerBase {
149
141
  * @internal
150
142
  */
151
143
  _onClearClick() {
152
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
144
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, "");
153
145
  super._onClearClick();
154
146
  }
155
147
  };
156
- _updateValueDueToUserInteraction = new WeakSet();
148
+ _DatePicker_instances = new WeakSet();
157
149
  updateValueDueToUserInteraction_fn = function(newValue) {
158
150
  this.value = newValue;
159
151
  this.$emit("change");
@@ -9,33 +9,25 @@ import { e as errorText, f as formElements } from './index2.js';
9
9
 
10
10
  var __defProp = Object.defineProperty;
11
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __typeError = (msg) => {
13
+ throw TypeError(msg);
14
+ };
12
15
  var __decorateClass = (decorators, target, key, kind) => {
13
16
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
17
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
18
  if (decorator = decorators[i])
16
19
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
- if (kind && result)
18
- __defProp(target, key, result);
20
+ if (kind && result) __defProp(target, key, result);
19
21
  return result;
20
22
  };
21
- var __accessCheck = (obj, member, msg) => {
22
- if (!member.has(obj))
23
- throw TypeError("Cannot " + msg);
24
- };
25
- var __privateAdd = (obj, member, value) => {
26
- if (member.has(obj))
27
- throw TypeError("Cannot add the same private member more than once");
28
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
29
- };
30
- var __privateMethod = (obj, member, method) => {
31
- __accessCheck(obj, member, "access private method");
32
- return method;
33
- };
34
- var _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn;
23
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
24
+ 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);
25
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
26
+ var _DatePicker_instances, updateValueDueToUserInteraction_fn;
35
27
  let DatePicker = class extends DatePickerBase {
36
28
  constructor() {
37
29
  super();
38
- __privateAdd(this, _updateValueDueToUserInteraction);
30
+ __privateAdd(this, _DatePicker_instances);
39
31
  /**
40
32
  * @internal
41
33
  */
@@ -81,11 +73,11 @@ let DatePicker = class extends DatePickerBase {
81
73
  */
82
74
  _onTextFieldChange() {
83
75
  if (this._presentationValue === "") {
84
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
76
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, "");
85
77
  return;
86
78
  }
87
79
  try {
88
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, parsePresentationDate(this._presentationValue, this.locale.datePicker));
80
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, parsePresentationDate(this._presentationValue, this.locale.datePicker));
89
81
  } catch (_) {
90
82
  return;
91
83
  }
@@ -95,7 +87,7 @@ let DatePicker = class extends DatePickerBase {
95
87
  * @internal
96
88
  */
97
89
  _onDateClick(date) {
98
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, date);
90
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, date);
99
91
  this._closePopup();
100
92
  }
101
93
  /**
@@ -147,11 +139,11 @@ let DatePicker = class extends DatePickerBase {
147
139
  * @internal
148
140
  */
149
141
  _onClearClick() {
150
- __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
142
+ __privateMethod(this, _DatePicker_instances, updateValueDueToUserInteraction_fn).call(this, "");
151
143
  super._onClearClick();
152
144
  }
153
145
  };
154
- _updateValueDueToUserInteraction = new WeakSet();
146
+ _DatePicker_instances = new WeakSet();
155
147
  updateValueDueToUserInteraction_fn = function(newValue) {
156
148
  this.value = newValue;
157
149
  this.$emit("change");
@@ -31,38 +31,23 @@ const parsePresentationDateRange = (presentationDateRange, locale) => {
31
31
 
32
32
  var __defProp = Object.defineProperty;
33
33
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
34
+ var __typeError = (msg) => {
35
+ throw TypeError(msg);
36
+ };
34
37
  var __decorateClass = (decorators, target, key, kind) => {
35
38
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
36
39
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
37
40
  if (decorator = decorators[i])
38
41
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
39
- if (kind && result)
40
- __defProp(target, key, result);
42
+ if (kind && result) __defProp(target, key, result);
41
43
  return result;
42
44
  };
43
- var __accessCheck = (obj, member, msg) => {
44
- if (!member.has(obj))
45
- throw TypeError("Cannot " + msg);
46
- };
47
- var __privateGet = (obj, member, getter) => {
48
- __accessCheck(obj, member, "read from private field");
49
- return member.get(obj);
50
- };
51
- var __privateAdd = (obj, member, value) => {
52
- if (member.has(obj))
53
- throw TypeError("Cannot add the same private member more than once");
54
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
55
- };
56
- var __privateSet = (obj, member, value, setter) => {
57
- __accessCheck(obj, member, "write to private field");
58
- member.set(obj, value);
59
- return value;
60
- };
61
- var __privateMethod = (obj, member, method) => {
62
- __accessCheck(obj, member, "access private method");
63
- return method;
64
- };
65
- var _isInternalValueUpdate, _updateValues, updateValues_fn, _handleChangedValues, handleChangedValues_fn, _updateFormValue, updateFormValue_fn, _getVisibleRange, getVisibleRange_fn;
45
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
46
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), member.get(obj));
47
+ 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);
48
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
49
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
50
+ var _isInternalValueUpdate, _DateRangePicker_instances, updateValues_fn, handleChangedValues_fn, updateFormValue_fn, getVisibleRange_fn;
66
51
  const isFormAssociatedTryingToSetFormValue = (value) => typeof value === "string";
67
52
  function isDefined(value) {
68
53
  return !!value;
@@ -70,10 +55,7 @@ function isDefined(value) {
70
55
  let DateRangePicker = class extends presentationDate.DatePickerBase {
71
56
  constructor() {
72
57
  super(...arguments);
73
- __privateAdd(this, _updateValues);
74
- __privateAdd(this, _handleChangedValues);
75
- __privateAdd(this, _updateFormValue);
76
- __privateAdd(this, _getVisibleRange);
58
+ __privateAdd(this, _DateRangePicker_instances);
77
59
  this.initialStart = "";
78
60
  this.initialEnd = "";
79
61
  __privateAdd(this, _isInternalValueUpdate, false);
@@ -124,7 +106,7 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
124
106
  this.currentStart = this.start;
125
107
  this.dirtyValue = true;
126
108
  if (!__privateGet(this, _isInternalValueUpdate)) {
127
- __privateMethod(this, _handleChangedValues, handleChangedValues_fn).call(this);
109
+ __privateMethod(this, _DateRangePicker_instances, handleChangedValues_fn).call(this);
128
110
  }
129
111
  }
130
112
  /**
@@ -138,7 +120,7 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
138
120
  this.currentEnd = this.end;
139
121
  this.dirtyValue = true;
140
122
  if (!__privateGet(this, _isInternalValueUpdate)) {
141
- __privateMethod(this, _handleChangedValues, handleChangedValues_fn).call(this);
123
+ __privateMethod(this, _DateRangePicker_instances, handleChangedValues_fn).call(this);
142
124
  }
143
125
  }
144
126
  /**
@@ -158,7 +140,7 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
158
140
  */
159
141
  nameChanged(previous, next) {
160
142
  super.nameChanged(previous, next);
161
- __privateMethod(this, _updateFormValue, updateFormValue_fn).call(this);
143
+ __privateMethod(this, _DateRangePicker_instances, updateFormValue_fn).call(this);
162
144
  }
163
145
  connectedCallback() {
164
146
  super.connectedCallback();
@@ -179,7 +161,7 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
179
161
  * @internal
180
162
  */
181
163
  _isDateInSelectedRange(date) {
182
- const { start, end } = __privateMethod(this, _getVisibleRange, getVisibleRange_fn).call(this);
164
+ const { start, end } = __privateMethod(this, _DateRangePicker_instances, getVisibleRange_fn).call(this);
183
165
  if (start && end) {
184
166
  return presentationDate.compareDateStr(date, start) >= 0 && presentationDate.compareDateStr(date, end) <= 0;
185
167
  }
@@ -189,13 +171,13 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
189
171
  * @internal
190
172
  */
191
173
  _isDateRangeStart(date) {
192
- return date === __privateMethod(this, _getVisibleRange, getVisibleRange_fn).call(this).start;
174
+ return date === __privateMethod(this, _DateRangePicker_instances, getVisibleRange_fn).call(this).start;
193
175
  }
194
176
  /**
195
177
  * @internal
196
178
  */
197
179
  _isDateRangeEnd(date) {
198
- return date === __privateMethod(this, _getVisibleRange, getVisibleRange_fn).call(this).end;
180
+ return date === __privateMethod(this, _DateRangePicker_instances, getVisibleRange_fn).call(this).end;
199
181
  }
200
182
  /**
201
183
  * @internal
@@ -215,15 +197,15 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
215
197
  */
216
198
  _onDateClick(date) {
217
199
  if (this.start && this.end) {
218
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: date, end: "" });
200
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start: date, end: "" });
219
201
  } else if (this.start) {
220
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { end: date });
202
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { end: date });
221
203
  this._closePopup();
222
204
  } else if (this.end) {
223
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: date });
205
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start: date });
224
206
  this._closePopup();
225
207
  } else {
226
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: date });
208
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start: date });
227
209
  }
228
210
  }
229
211
  /**
@@ -240,7 +222,7 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
240
222
  */
241
223
  _onTextFieldChange() {
242
224
  if (this._presentationValue === "") {
243
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: "", end: "" });
225
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start: "", end: "" });
244
226
  return;
245
227
  }
246
228
  try {
@@ -248,7 +230,7 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
248
230
  this._presentationValue,
249
231
  this.locale.datePicker
250
232
  );
251
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start, end });
233
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start, end });
252
234
  } catch (_) {
253
235
  return;
254
236
  }
@@ -305,14 +287,14 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
305
287
  * @internal
306
288
  */
307
289
  _onClearClick() {
308
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: "", end: "" });
290
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start: "", end: "" });
309
291
  super._onClearClick();
310
292
  }
311
293
  /**
312
294
  * @internal
313
295
  */
314
296
  formResetCallback() {
315
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: this.initialStart, end: this.initialEnd });
297
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start: this.initialStart, end: this.initialEnd });
316
298
  super.formResetCallback();
317
299
  }
318
300
  get _calendarButtonLabel() {
@@ -332,7 +314,7 @@ let DateRangePicker = class extends presentationDate.DatePickerBase {
332
314
  }
333
315
  };
334
316
  _isInternalValueUpdate = new WeakMap();
335
- _updateValues = new WeakSet();
317
+ _DateRangePicker_instances = new WeakSet();
336
318
  updateValues_fn = function(range) {
337
319
  __privateSet(this, _isInternalValueUpdate, true);
338
320
  if (range.start !== void 0) {
@@ -346,13 +328,12 @@ updateValues_fn = function(range) {
346
328
  __privateSet(this, _isInternalValueUpdate, false);
347
329
  this.$emit("input");
348
330
  this.$emit("change");
349
- __privateMethod(this, _handleChangedValues, handleChangedValues_fn).call(this);
331
+ __privateMethod(this, _DateRangePicker_instances, handleChangedValues_fn).call(this);
350
332
  };
351
- _handleChangedValues = new WeakSet();
352
333
  handleChangedValues_fn = function() {
353
334
  if (this.start && this.end) {
354
335
  if (presentationDate.compareDateStr(this.start, this.end) > 0) {
355
- __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: this.end, end: this.start });
336
+ __privateMethod(this, _DateRangePicker_instances, updateValues_fn).call(this, { start: this.end, end: this.start });
356
337
  return;
357
338
  }
358
339
  this._presentationValue = formatPresentationDateRange(
@@ -371,9 +352,8 @@ handleChangedValues_fn = function() {
371
352
  if (dateToEnsureVisibilityOf) {
372
353
  this._adjustSelectedMonthToEnsureVisibilityOf(dateToEnsureVisibilityOf);
373
354
  }
374
- __privateMethod(this, _updateFormValue, updateFormValue_fn).call(this);
355
+ __privateMethod(this, _DateRangePicker_instances, updateFormValue_fn).call(this);
375
356
  };
376
- _updateFormValue = new WeakSet();
377
357
  updateFormValue_fn = function() {
378
358
  if (!this.name || !this.start || !this.end) {
379
359
  this.setFormValue(null);
@@ -384,7 +364,6 @@ updateFormValue_fn = function() {
384
364
  this.setFormValue(formData);
385
365
  }
386
366
  };
387
- _getVisibleRange = new WeakSet();
388
367
  getVisibleRange_fn = function() {
389
368
  const candidates = [this.start, this.end].filter(isDefined);
390
369
  const isPartialRange = candidates.length === 1;