@vonage/vivid 4.26.0 → 4.28.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 (131) hide show
  1. package/custom-elements.json +2398 -2120
  2. package/lib/accordion-item/accordion-item.d.ts +1 -1
  3. package/lib/alert/alert.d.ts +3 -3
  4. package/lib/audio-player/audio-player.d.ts +2 -2
  5. package/lib/avatar/avatar.d.ts +393 -1
  6. package/lib/avatar/avatar.template.d.ts +2 -2
  7. package/lib/badge/badge.d.ts +1 -1
  8. package/lib/banner/banner.d.ts +3 -3
  9. package/lib/button/button.d.ts +3 -3
  10. package/lib/checkbox/checkbox.d.ts +7 -7
  11. package/lib/combobox/combobox.d.ts +8 -8
  12. package/lib/data-grid/data-grid-cell.d.ts +2 -2
  13. package/lib/date-picker/date-picker.d.ts +71 -71
  14. package/lib/date-picker/date-picker.template.d.ts +1 -1
  15. package/lib/date-range-picker/date-range-picker.d.ts +42 -42
  16. package/lib/date-range-picker/date-range-picker.template.d.ts +1 -1
  17. package/lib/date-time-picker/date-time-picker.d.ts +60 -60
  18. package/lib/date-time-picker/date-time-picker.template.d.ts +1 -1
  19. package/lib/dial-pad/dial-pad.d.ts +2 -2
  20. package/lib/dialog/dialog.d.ts +2 -2
  21. package/lib/fab/fab.d.ts +1 -1
  22. package/lib/file-picker/file-picker.d.ts +7 -7
  23. package/lib/menu/menu.d.ts +1 -1
  24. package/lib/menu-item/menu-item.d.ts +1 -1
  25. package/lib/nav-disclosure/nav-disclosure.d.ts +1 -1
  26. package/lib/nav-item/nav-item.d.ts +1 -1
  27. package/lib/note/note.d.ts +1 -1
  28. package/lib/number-field/number-field.d.ts +10 -10
  29. package/lib/option/option.d.ts +1 -1
  30. package/lib/pagination/pagination.d.ts +2 -2
  31. package/lib/radio/radio.d.ts +3 -3
  32. package/lib/radio-group/radio-group.d.ts +3 -3
  33. package/lib/range-slider/range-slider.d.ts +4 -4
  34. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  35. package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
  36. package/lib/searchable-select/locale.d.ts +1 -1
  37. package/lib/searchable-select/option-tag.d.ts +2 -2
  38. package/lib/searchable-select/searchable-select.d.ts +10 -10
  39. package/lib/select/select.d.ts +8 -8
  40. package/lib/slider/slider.d.ts +3 -3
  41. package/lib/split-button/split-button.d.ts +3 -3
  42. package/lib/switch/switch.d.ts +1 -1
  43. package/lib/tab/tab.d.ts +3 -3
  44. package/lib/tag/locale.d.ts +3 -0
  45. package/lib/tag/tag.d.ts +341 -4
  46. package/lib/text-area/text-area.d.ts +10 -10
  47. package/lib/text-field/text-field.d.ts +11 -11
  48. package/lib/time-picker/time-picker.d.ts +19 -19
  49. package/lib/toggletip/toggletip.d.ts +1 -1
  50. package/lib/tooltip/tooltip.d.ts +1 -1
  51. package/lib/tree-item/tree-item.d.ts +1 -1
  52. package/lib/video-player/video-player.d.ts +2 -2
  53. package/locales/de-DE.cjs +19 -2
  54. package/locales/de-DE.js +19 -2
  55. package/locales/en-GB.cjs +19 -2
  56. package/locales/en-GB.js +19 -2
  57. package/locales/en-US.cjs +19 -2
  58. package/locales/en-US.js +19 -2
  59. package/locales/ja-JP.cjs +19 -2
  60. package/locales/ja-JP.js +19 -2
  61. package/locales/zh-CN.cjs +19 -2
  62. package/locales/zh-CN.js +19 -2
  63. package/package.json +73 -45
  64. package/shared/calendar-picker.template.cjs +48 -22
  65. package/shared/calendar-picker.template.js +48 -22
  66. package/shared/definition17.cjs +3 -3
  67. package/shared/definition17.js +3 -3
  68. package/shared/definition18.cjs +8 -1
  69. package/shared/definition18.js +8 -1
  70. package/shared/definition19.cjs +9 -2
  71. package/shared/definition19.js +9 -2
  72. package/shared/definition2.cjs +1 -1
  73. package/shared/definition2.js +1 -1
  74. package/shared/definition20.cjs +3 -1
  75. package/shared/definition20.js +3 -1
  76. package/shared/definition28.cjs +2 -2
  77. package/shared/definition28.js +2 -2
  78. package/shared/definition30.cjs +3 -2
  79. package/shared/definition30.js +3 -2
  80. package/shared/definition31.cjs +5 -1
  81. package/shared/definition31.js +5 -1
  82. package/shared/definition36.cjs +1 -1
  83. package/shared/definition36.js +1 -1
  84. package/shared/definition4.cjs +1 -1
  85. package/shared/definition4.js +1 -1
  86. package/shared/definition41.cjs +1 -1
  87. package/shared/definition41.js +1 -1
  88. package/shared/definition44.cjs +129 -117
  89. package/shared/definition44.js +130 -118
  90. package/shared/definition45.cjs +15 -5
  91. package/shared/definition45.js +15 -5
  92. package/shared/definition49.cjs +4 -4
  93. package/shared/definition49.js +4 -4
  94. package/shared/definition54.cjs +2 -2
  95. package/shared/definition54.js +2 -2
  96. package/shared/definition56.cjs +5 -4
  97. package/shared/definition56.js +5 -4
  98. package/shared/definition57.cjs +1 -1
  99. package/shared/definition57.js +1 -1
  100. package/shared/definition58.cjs +1 -1
  101. package/shared/definition58.js +1 -1
  102. package/shared/definition59.cjs +3 -1
  103. package/shared/definition59.js +3 -1
  104. package/shared/definition6.cjs +45 -12
  105. package/shared/definition6.js +45 -12
  106. package/shared/definition64.cjs +136 -38
  107. package/shared/definition64.js +136 -38
  108. package/shared/definition67.cjs +27 -14
  109. package/shared/definition67.js +27 -14
  110. package/shared/form-associated.cjs +4 -0
  111. package/shared/form-associated.js +4 -0
  112. package/shared/localization/Locale.d.ts +2 -0
  113. package/shared/picker-field/mixins/calendar-picker.d.ts +1 -1
  114. package/shared/picker-field/mixins/calendar-picker.locale.d.ts +5 -0
  115. package/shared/picker-field/mixins/calendar-picker.template.d.ts +1 -1
  116. package/shared/picker-field/mixins/calendar-segments/segment.d.ts +1 -0
  117. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +1 -0
  118. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +2 -2
  119. package/shared/picker-field/mixins/single-date-picker.d.ts +1 -1
  120. package/shared/time-selection-picker.template.cjs +71 -22
  121. package/shared/time-selection-picker.template.js +71 -22
  122. package/shared/vivid-element.cjs +1 -1
  123. package/shared/vivid-element.js +1 -1
  124. package/styles/core/all.css +5 -5
  125. package/styles/core/theme.css +2 -2
  126. package/styles/core/typography.css +4 -4
  127. package/styles/fonts/spezia-variable.css +15 -15
  128. package/styles/tokens/theme-dark.css +4 -4
  129. package/styles/tokens/theme-light.css +4 -4
  130. package/styles/tokens/vivid-2-compat.css +1 -1
  131. package/vivid.api.json +241 -211
@@ -14,7 +14,7 @@ declare const Toggletip_base: {
14
14
  connectedCallback(): void;
15
15
  disconnectedCallback(): void;
16
16
  specialHandling: boolean;
17
- _vividAriaBehaviour: import("../shared/aria/aria-mixin").VividAriaBehaviour;
17
+ _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
18
18
  readonly $fastController: import("@microsoft/fast-element").Controller;
19
19
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
20
20
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
@@ -14,7 +14,7 @@ declare const Tooltip_base: {
14
14
  connectedCallback(): void;
15
15
  disconnectedCallback(): void;
16
16
  specialHandling: boolean;
17
- _vividAriaBehaviour: import("../shared/aria/aria-mixin").VividAriaBehaviour;
17
+ _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
18
18
  readonly $fastController: import("@microsoft/fast-element").Controller;
19
19
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
20
20
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
@@ -342,7 +342,7 @@ declare const TreeItem_base: {
342
342
  iconSlottedContent?: HTMLElement[] | undefined;
343
343
  connectedCallback(): void;
344
344
  specialHandling: boolean;
345
- _vividAriaBehaviour: import("../shared/aria/aria-mixin").VividAriaBehaviour;
345
+ _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
346
346
  readonly $fastController: import("@microsoft/fast-element").Controller;
347
347
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
348
348
  disconnectedCallback(): void;
@@ -5,10 +5,10 @@ export type VideoPlayerMediaSkipBy = ExtractFromEnum<MediaSkipBy, MediaSkipBy.Ze
5
5
  export declare const DEFAULT_PLAYBACK_RATES = "0.5, 1, 1.5, 2";
6
6
  declare const VideoPlayer_base: {
7
7
  new (...args: any[]): {
8
- readonly locale: import("../shared/localization/Locale").Locale;
8
+ readonly locale: import("../../shared/localization/Locale").Locale;
9
9
  connectedCallback(): void;
10
10
  specialHandling: boolean;
11
- _vividAriaBehaviour: import("../shared/aria/aria-mixin").VividAriaBehaviour;
11
+ _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
12
12
  readonly $fastController: import("@microsoft/fast-element").Controller;
13
13
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
14
14
  disconnectedCallback(): void;
package/locales/de-DE.cjs CHANGED
@@ -248,6 +248,17 @@ const deDE = {
248
248
  prevMonthLabel: "Vorheriger Monat",
249
249
  nextMonthLabel: "Nächster Monat",
250
250
  nextYearLabel: "Nächstes Jahr",
251
+ todayLabel: "heute",
252
+ selectedLabel: "ausgewählt",
253
+ currentLabel: "aktuell",
254
+ changeMonthLabel: (
255
+ /* istanbul ignore next */
256
+ (month) => `Monat ändern, ${month} ausgewählt`
257
+ ),
258
+ showCalendarForMonthLabel: (
259
+ /* istanbul ignore next */
260
+ (month) => `Kalender für ${month} anzeigen`
261
+ ),
251
262
  invalidDateError: "Bitte geben Sie ein gültiges Datum ein.",
252
263
  invalidDateRangeError: "Bitte geben Sie einen gültigen Datumsbereich ein.",
253
264
  startDateAfterMinDateError: (
@@ -363,7 +374,7 @@ const deDE = {
363
374
  dismissButtonLabel: "Drücken Sie die ENTF-Taste, um diese Registerkarte zu schließen"
364
375
  },
365
376
  searchableSelect: {
366
- clearButtonLabel: "Löschen",
377
+ clearButtonLabel: "Auswahl löschen",
367
378
  noOptionsMessage: "Keine Optionen",
368
379
  noMatchesMessage: "Keine Optionen gefunden",
369
380
  loadingOptionsMessage: "Laden...",
@@ -381,7 +392,7 @@ const deDE = {
381
392
  ),
382
393
  optionFocusedMessage: (
383
394
  /* istanbul ignore next */
384
- (name, position, total) => `Option ${name} fokussiert, ${position} von ${total}.`
395
+ (name, position, total, selected) => `Option ${name} fokussiert, ${selected ? "ausgewählt, " : ""}${position} von ${total}.`
385
396
  ),
386
397
  maxSelectedMessage: (
387
398
  /* istanbul ignore next */
@@ -436,6 +447,12 @@ const deDE = {
436
447
  /* istanbul ignore next */
437
448
  (index) => `Weiter zu Seite ${index}`
438
449
  )
450
+ },
451
+ tag: {
452
+ remove: (
453
+ /* istanbul ignore next */
454
+ (label) => `Entfernen ${label}`
455
+ )
439
456
  }
440
457
  };
441
458
 
package/locales/de-DE.js CHANGED
@@ -246,6 +246,17 @@ const deDE = {
246
246
  prevMonthLabel: "Vorheriger Monat",
247
247
  nextMonthLabel: "Nächster Monat",
248
248
  nextYearLabel: "Nächstes Jahr",
249
+ todayLabel: "heute",
250
+ selectedLabel: "ausgewählt",
251
+ currentLabel: "aktuell",
252
+ changeMonthLabel: (
253
+ /* istanbul ignore next */
254
+ (month) => `Monat ändern, ${month} ausgewählt`
255
+ ),
256
+ showCalendarForMonthLabel: (
257
+ /* istanbul ignore next */
258
+ (month) => `Kalender für ${month} anzeigen`
259
+ ),
249
260
  invalidDateError: "Bitte geben Sie ein gültiges Datum ein.",
250
261
  invalidDateRangeError: "Bitte geben Sie einen gültigen Datumsbereich ein.",
251
262
  startDateAfterMinDateError: (
@@ -361,7 +372,7 @@ const deDE = {
361
372
  dismissButtonLabel: "Drücken Sie die ENTF-Taste, um diese Registerkarte zu schließen"
362
373
  },
363
374
  searchableSelect: {
364
- clearButtonLabel: "Löschen",
375
+ clearButtonLabel: "Auswahl löschen",
365
376
  noOptionsMessage: "Keine Optionen",
366
377
  noMatchesMessage: "Keine Optionen gefunden",
367
378
  loadingOptionsMessage: "Laden...",
@@ -379,7 +390,7 @@ const deDE = {
379
390
  ),
380
391
  optionFocusedMessage: (
381
392
  /* istanbul ignore next */
382
- (name, position, total) => `Option ${name} fokussiert, ${position} von ${total}.`
393
+ (name, position, total, selected) => `Option ${name} fokussiert, ${selected ? "ausgewählt, " : ""}${position} von ${total}.`
383
394
  ),
384
395
  maxSelectedMessage: (
385
396
  /* istanbul ignore next */
@@ -434,6 +445,12 @@ const deDE = {
434
445
  /* istanbul ignore next */
435
446
  (index) => `Weiter zu Seite ${index}`
436
447
  )
448
+ },
449
+ tag: {
450
+ remove: (
451
+ /* istanbul ignore next */
452
+ (label) => `Entfernen ${label}`
453
+ )
437
454
  }
438
455
  };
439
456
 
package/locales/en-GB.cjs CHANGED
@@ -80,6 +80,17 @@ const enGB = {
80
80
  prevMonthLabel: "Previous month",
81
81
  nextMonthLabel: "Next month",
82
82
  nextYearLabel: "Next year",
83
+ todayLabel: "today",
84
+ selectedLabel: "selected",
85
+ currentLabel: "current",
86
+ changeMonthLabel: (
87
+ /* istanbul ignore next */
88
+ (month) => `Change month, ${month} selected`
89
+ ),
90
+ showCalendarForMonthLabel: (
91
+ /* istanbul ignore next */
92
+ (month) => `Show calendar for ${month}`
93
+ ),
83
94
  invalidDateError: "Please enter a valid date.",
84
95
  invalidDateRangeError: "Please enter a valid date range.",
85
96
  startDateAfterMinDateError: (
@@ -195,7 +206,7 @@ const enGB = {
195
206
  dismissButtonLabel: "Press the DELETE key to close this tab"
196
207
  },
197
208
  searchableSelect: {
198
- clearButtonLabel: "Clear",
209
+ clearButtonLabel: "Clear selection",
199
210
  noOptionsMessage: "No options",
200
211
  noMatchesMessage: "No options found",
201
212
  loadingOptionsMessage: "Loading...",
@@ -213,7 +224,7 @@ const enGB = {
213
224
  ),
214
225
  optionFocusedMessage: (
215
226
  /* istanbul ignore next */
216
- (name, position, total) => `Option ${name} focused, ${position} of ${total}.`
227
+ (name, position, total, selected) => `Option ${name} focused, ${selected ? "selected, " : ""}${position} of ${total}.`
217
228
  ),
218
229
  maxSelectedMessage: (
219
230
  /* istanbul ignore next */
@@ -268,6 +279,12 @@ const enGB = {
268
279
  /* istanbul ignore next */
269
280
  (index) => `Go to page ${index}`
270
281
  )
282
+ },
283
+ tag: {
284
+ remove: (
285
+ /* istanbul ignore next */
286
+ (label) => `Remove ${label}`
287
+ )
271
288
  }
272
289
  };
273
290
 
package/locales/en-GB.js CHANGED
@@ -78,6 +78,17 @@ const enGB = {
78
78
  prevMonthLabel: "Previous month",
79
79
  nextMonthLabel: "Next month",
80
80
  nextYearLabel: "Next year",
81
+ todayLabel: "today",
82
+ selectedLabel: "selected",
83
+ currentLabel: "current",
84
+ changeMonthLabel: (
85
+ /* istanbul ignore next */
86
+ (month) => `Change month, ${month} selected`
87
+ ),
88
+ showCalendarForMonthLabel: (
89
+ /* istanbul ignore next */
90
+ (month) => `Show calendar for ${month}`
91
+ ),
81
92
  invalidDateError: "Please enter a valid date.",
82
93
  invalidDateRangeError: "Please enter a valid date range.",
83
94
  startDateAfterMinDateError: (
@@ -193,7 +204,7 @@ const enGB = {
193
204
  dismissButtonLabel: "Press the DELETE key to close this tab"
194
205
  },
195
206
  searchableSelect: {
196
- clearButtonLabel: "Clear",
207
+ clearButtonLabel: "Clear selection",
197
208
  noOptionsMessage: "No options",
198
209
  noMatchesMessage: "No options found",
199
210
  loadingOptionsMessage: "Loading...",
@@ -211,7 +222,7 @@ const enGB = {
211
222
  ),
212
223
  optionFocusedMessage: (
213
224
  /* istanbul ignore next */
214
- (name, position, total) => `Option ${name} focused, ${position} of ${total}.`
225
+ (name, position, total, selected) => `Option ${name} focused, ${selected ? "selected, " : ""}${position} of ${total}.`
215
226
  ),
216
227
  maxSelectedMessage: (
217
228
  /* istanbul ignore next */
@@ -266,6 +277,12 @@ const enGB = {
266
277
  /* istanbul ignore next */
267
278
  (index) => `Go to page ${index}`
268
279
  )
280
+ },
281
+ tag: {
282
+ remove: (
283
+ /* istanbul ignore next */
284
+ (label) => `Remove ${label}`
285
+ )
269
286
  }
270
287
  };
271
288
 
package/locales/en-US.cjs CHANGED
@@ -248,6 +248,17 @@ const enUS = {
248
248
  prevMonthLabel: "Previous month",
249
249
  nextMonthLabel: "Next month",
250
250
  nextYearLabel: "Next year",
251
+ todayLabel: "today",
252
+ selectedLabel: "selected",
253
+ currentLabel: "current",
254
+ changeMonthLabel: (
255
+ /* istanbul ignore next */
256
+ (month) => `Change month, ${month} selected`
257
+ ),
258
+ showCalendarForMonthLabel: (
259
+ /* istanbul ignore next */
260
+ (month) => `Show calendar for ${month}`
261
+ ),
251
262
  invalidDateError: "Please enter a valid date.",
252
263
  invalidDateRangeError: "Please enter a valid date range.",
253
264
  startDateAfterMinDateError: (
@@ -363,7 +374,7 @@ const enUS = {
363
374
  dismissButtonLabel: "Press the DELETE key to close this tab"
364
375
  },
365
376
  searchableSelect: {
366
- clearButtonLabel: "Clear",
377
+ clearButtonLabel: "Clear selection",
367
378
  noOptionsMessage: "No options",
368
379
  noMatchesMessage: "No options found",
369
380
  loadingOptionsMessage: "Loading...",
@@ -381,7 +392,7 @@ const enUS = {
381
392
  ),
382
393
  optionFocusedMessage: (
383
394
  /* istanbul ignore next */
384
- (name, position, total) => `Option ${name} focused, ${position} of ${total}.`
395
+ (name, position, total, selected) => `Option ${name} focused, ${selected ? "selected, " : ""}${position} of ${total}.`
385
396
  ),
386
397
  maxSelectedMessage: (
387
398
  /* istanbul ignore next */
@@ -436,6 +447,12 @@ const enUS = {
436
447
  /* istanbul ignore next */
437
448
  (index) => `Go to page ${index}`
438
449
  )
450
+ },
451
+ tag: {
452
+ remove: (
453
+ /* istanbul ignore next */
454
+ (label) => `Remove ${label}`
455
+ )
439
456
  }
440
457
  };
441
458
 
package/locales/en-US.js CHANGED
@@ -246,6 +246,17 @@ const enUS = {
246
246
  prevMonthLabel: "Previous month",
247
247
  nextMonthLabel: "Next month",
248
248
  nextYearLabel: "Next year",
249
+ todayLabel: "today",
250
+ selectedLabel: "selected",
251
+ currentLabel: "current",
252
+ changeMonthLabel: (
253
+ /* istanbul ignore next */
254
+ (month) => `Change month, ${month} selected`
255
+ ),
256
+ showCalendarForMonthLabel: (
257
+ /* istanbul ignore next */
258
+ (month) => `Show calendar for ${month}`
259
+ ),
249
260
  invalidDateError: "Please enter a valid date.",
250
261
  invalidDateRangeError: "Please enter a valid date range.",
251
262
  startDateAfterMinDateError: (
@@ -361,7 +372,7 @@ const enUS = {
361
372
  dismissButtonLabel: "Press the DELETE key to close this tab"
362
373
  },
363
374
  searchableSelect: {
364
- clearButtonLabel: "Clear",
375
+ clearButtonLabel: "Clear selection",
365
376
  noOptionsMessage: "No options",
366
377
  noMatchesMessage: "No options found",
367
378
  loadingOptionsMessage: "Loading...",
@@ -379,7 +390,7 @@ const enUS = {
379
390
  ),
380
391
  optionFocusedMessage: (
381
392
  /* istanbul ignore next */
382
- (name, position, total) => `Option ${name} focused, ${position} of ${total}.`
393
+ (name, position, total, selected) => `Option ${name} focused, ${selected ? "selected, " : ""}${position} of ${total}.`
383
394
  ),
384
395
  maxSelectedMessage: (
385
396
  /* istanbul ignore next */
@@ -434,6 +445,12 @@ const enUS = {
434
445
  /* istanbul ignore next */
435
446
  (index) => `Go to page ${index}`
436
447
  )
448
+ },
449
+ tag: {
450
+ remove: (
451
+ /* istanbul ignore next */
452
+ (label) => `Remove ${label}`
453
+ )
437
454
  }
438
455
  };
439
456
 
package/locales/ja-JP.cjs CHANGED
@@ -247,6 +247,17 @@ const jaJP = {
247
247
  prevMonthLabel: "前月",
248
248
  nextMonthLabel: "次月",
249
249
  nextYearLabel: "翌年",
250
+ todayLabel: "今日",
251
+ selectedLabel: "選択済",
252
+ currentLabel: "現在",
253
+ changeMonthLabel: (
254
+ /* istanbul ignore next */
255
+ (month) => `月を変更, ${month}が選択されています`
256
+ ),
257
+ showCalendarForMonthLabel: (
258
+ /* istanbul ignore next */
259
+ (month) => `${month}のカレンダーを表示`
260
+ ),
250
261
  invalidDateError: "有効な日付を入力してください。",
251
262
  invalidDateRangeError: "有効な日付範囲を入力してください。",
252
263
  startDateAfterMinDateError: (
@@ -362,7 +373,7 @@ const jaJP = {
362
373
  dismissButtonLabel: "このタブを閉じるにはDELETEキーを押してください"
363
374
  },
364
375
  searchableSelect: {
365
- clearButtonLabel: "クリア",
376
+ clearButtonLabel: "選択をクリア",
366
377
  noOptionsMessage: "オプションがありません",
367
378
  noMatchesMessage: "オプションが見つかりません",
368
379
  loadingOptionsMessage: "読み込み中...",
@@ -380,7 +391,7 @@ const jaJP = {
380
391
  ),
381
392
  optionFocusedMessage: (
382
393
  /* istanbul ignore next */
383
- (name, position, total) => `オプション ${name} がフォーカスされました。${position}/${total}`
394
+ (name, position, total, selected) => `オプション ${name} ${selected ? ", 選択, " : ""} がフォーカスされました。${position}/${total}`
384
395
  ),
385
396
  maxSelectedMessage: (
386
397
  /* istanbul ignore next */
@@ -435,6 +446,12 @@ const jaJP = {
435
446
  /* istanbul ignore next */
436
447
  (index) => `${index}ページへ`
437
448
  )
449
+ },
450
+ tag: {
451
+ remove: (
452
+ /* istanbul ignore next */
453
+ (label) => `削除する ${label}`
454
+ )
438
455
  }
439
456
  };
440
457
 
package/locales/ja-JP.js CHANGED
@@ -245,6 +245,17 @@ const jaJP = {
245
245
  prevMonthLabel: "前月",
246
246
  nextMonthLabel: "次月",
247
247
  nextYearLabel: "翌年",
248
+ todayLabel: "今日",
249
+ selectedLabel: "選択済",
250
+ currentLabel: "現在",
251
+ changeMonthLabel: (
252
+ /* istanbul ignore next */
253
+ (month) => `月を変更, ${month}が選択されています`
254
+ ),
255
+ showCalendarForMonthLabel: (
256
+ /* istanbul ignore next */
257
+ (month) => `${month}のカレンダーを表示`
258
+ ),
248
259
  invalidDateError: "有効な日付を入力してください。",
249
260
  invalidDateRangeError: "有効な日付範囲を入力してください。",
250
261
  startDateAfterMinDateError: (
@@ -360,7 +371,7 @@ const jaJP = {
360
371
  dismissButtonLabel: "このタブを閉じるにはDELETEキーを押してください"
361
372
  },
362
373
  searchableSelect: {
363
- clearButtonLabel: "クリア",
374
+ clearButtonLabel: "選択をクリア",
364
375
  noOptionsMessage: "オプションがありません",
365
376
  noMatchesMessage: "オプションが見つかりません",
366
377
  loadingOptionsMessage: "読み込み中...",
@@ -378,7 +389,7 @@ const jaJP = {
378
389
  ),
379
390
  optionFocusedMessage: (
380
391
  /* istanbul ignore next */
381
- (name, position, total) => `オプション ${name} がフォーカスされました。${position}/${total}`
392
+ (name, position, total, selected) => `オプション ${name} ${selected ? ", 選択, " : ""} がフォーカスされました。${position}/${total}`
382
393
  ),
383
394
  maxSelectedMessage: (
384
395
  /* istanbul ignore next */
@@ -433,6 +444,12 @@ const jaJP = {
433
444
  /* istanbul ignore next */
434
445
  (index) => `${index}ページへ`
435
446
  )
447
+ },
448
+ tag: {
449
+ remove: (
450
+ /* istanbul ignore next */
451
+ (label) => `削除する ${label}`
452
+ )
436
453
  }
437
454
  };
438
455
 
package/locales/zh-CN.cjs CHANGED
@@ -249,6 +249,17 @@ const zhCN = {
249
249
  prevMonthLabel: "上个月",
250
250
  nextMonthLabel: "下个月",
251
251
  nextYearLabel: "下一年",
252
+ todayLabel: "今天",
253
+ selectedLabel: "已选择",
254
+ currentLabel: "当前",
255
+ changeMonthLabel: (
256
+ /* istanbul ignore next */
257
+ (month) => `更改月份, ${month}已选择`
258
+ ),
259
+ showCalendarForMonthLabel: (
260
+ /* istanbul ignore next */
261
+ (month) => `显示 ${month} 的日历`
262
+ ),
252
263
  invalidDateError: "请输入有效的日期。",
253
264
  invalidDateRangeError: "请输入有效的日期范围。",
254
265
  startDateAfterMinDateError: (
@@ -364,7 +375,7 @@ const zhCN = {
364
375
  dismissButtonLabel: "按 DELETE 键关闭此选项卡"
365
376
  },
366
377
  searchableSelect: {
367
- clearButtonLabel: "清除",
378
+ clearButtonLabel: "清除选择",
368
379
  noOptionsMessage: "没有选项",
369
380
  noMatchesMessage: "未找到选项",
370
381
  loadingOptionsMessage: "加载中...",
@@ -382,7 +393,7 @@ const zhCN = {
382
393
  ),
383
394
  optionFocusedMessage: (
384
395
  /* istanbul ignore next */
385
- (name, position, total) => `选项 ${name} 已聚焦, ${position} 的 ${total}。`
396
+ (name, position, total, selected) => `选项 ${name} 已聚焦, ${selected ? "已选择, " : ""}${position} 的 ${total}。`
386
397
  ),
387
398
  maxSelectedMessage: (
388
399
  /* istanbul ignore next */
@@ -437,6 +448,12 @@ const zhCN = {
437
448
  /* istanbul ignore next */
438
449
  (index) => `转至第 ${index} 页`
439
450
  )
451
+ },
452
+ tag: {
453
+ remove: (
454
+ /* istanbul ignore next */
455
+ (label) => `移除 ${label}`
456
+ )
440
457
  }
441
458
  };
442
459
 
package/locales/zh-CN.js CHANGED
@@ -247,6 +247,17 @@ const zhCN = {
247
247
  prevMonthLabel: "上个月",
248
248
  nextMonthLabel: "下个月",
249
249
  nextYearLabel: "下一年",
250
+ todayLabel: "今天",
251
+ selectedLabel: "已选择",
252
+ currentLabel: "当前",
253
+ changeMonthLabel: (
254
+ /* istanbul ignore next */
255
+ (month) => `更改月份, ${month}已选择`
256
+ ),
257
+ showCalendarForMonthLabel: (
258
+ /* istanbul ignore next */
259
+ (month) => `显示 ${month} 的日历`
260
+ ),
250
261
  invalidDateError: "请输入有效的日期。",
251
262
  invalidDateRangeError: "请输入有效的日期范围。",
252
263
  startDateAfterMinDateError: (
@@ -362,7 +373,7 @@ const zhCN = {
362
373
  dismissButtonLabel: "按 DELETE 键关闭此选项卡"
363
374
  },
364
375
  searchableSelect: {
365
- clearButtonLabel: "清除",
376
+ clearButtonLabel: "清除选择",
366
377
  noOptionsMessage: "没有选项",
367
378
  noMatchesMessage: "未找到选项",
368
379
  loadingOptionsMessage: "加载中...",
@@ -380,7 +391,7 @@ const zhCN = {
380
391
  ),
381
392
  optionFocusedMessage: (
382
393
  /* istanbul ignore next */
383
- (name, position, total) => `选项 ${name} 已聚焦, ${position} 的 ${total}。`
394
+ (name, position, total, selected) => `选项 ${name} 已聚焦, ${selected ? "已选择, " : ""}${position} 的 ${total}。`
384
395
  ),
385
396
  maxSelectedMessage: (
386
397
  /* istanbul ignore next */
@@ -435,6 +446,12 @@ const zhCN = {
435
446
  /* istanbul ignore next */
436
447
  (index) => `转至第 ${index} 页`
437
448
  )
449
+ },
450
+ tag: {
451
+ remove: (
452
+ /* istanbul ignore next */
453
+ (label) => `移除 ${label}`
454
+ )
438
455
  }
439
456
  };
440
457
 
package/package.json CHANGED
@@ -1,46 +1,74 @@
1
1
  {
2
- "name": "@vonage/vivid",
3
- "version": "4.26.0",
4
- "type": "module",
5
- "module": "./index.js",
6
- "main": "./index.cjs",
7
- "exports": {
8
- ".": {
9
- "types": "./index.d.ts",
10
- "import": "./index.js",
11
- "require": "./index.cjs"
12
- },
13
- "./*": {
14
- "types": "./*/index.d.ts",
15
- "import": "./*/index.js",
16
- "require": "./*/index.cjs"
17
- },
18
- "./locales/*": {
19
- "types": "./locales/*.d.ts",
20
- "import": "./locales/*.js",
21
- "require": "./locales/*.cjs"
22
- },
23
- "./*.css": "./*.css"
24
- },
25
- "sideEffects": [
26
- "./*/index.js",
27
- "./*/index.cjs",
28
- "*.css"
29
- ],
30
- "customElements": "./custom-elements.json",
31
- "homepage": "https://vivid.deno.dev",
32
- "repository": {
33
- "type": "git",
34
- "url": "https://github.com/vonage/vivid-3",
35
- "directory": "libs/components"
36
- },
37
- "bugs": {
38
- "url": "https://github.com/Vonage/vivid-3/issues"
39
- },
40
- "license": "Apache-2.0",
41
- "dependencies": {
42
- "@floating-ui/dom": "^1.6.13",
43
- "@microsoft/fast-element": "^1.14.0",
44
- "@microsoft/fast-web-utilities": "^6.0.0"
45
- }
46
- }
2
+ "name": "@vonage/vivid",
3
+ "version": "4.28.0",
4
+ "type": "module",
5
+ "module": "./index.js",
6
+ "main": "./index.cjs",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./index.d.ts",
10
+ "import": "./index.js",
11
+ "require": "./index.cjs"
12
+ },
13
+ "./*": {
14
+ "types": "./*/index.d.ts",
15
+ "import": "./*/index.js",
16
+ "require": "./*/index.cjs"
17
+ },
18
+ "./locales/*": {
19
+ "types": "./locales/*.d.ts",
20
+ "import": "./locales/*.js",
21
+ "require": "./locales/*.cjs"
22
+ },
23
+ "./*.css": "./*.css"
24
+ },
25
+ "sideEffects": [
26
+ "./*/index.js",
27
+ "./*/index.cjs",
28
+ "*.css"
29
+ ],
30
+ "customElements": "custom-elements.json",
31
+ "homepage": "https://vivid.deno.dev",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/vonage/vivid-3",
35
+ "directory": "libs/components"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/Vonage/vivid-3/issues"
39
+ },
40
+ "license": "Apache-2.0",
41
+ "scripts": {
42
+ "prebuild": "cem analyze --config ./cem.config.mjs",
43
+ "build": "vite build",
44
+ "postbuild": "api-extractor run -c ./dist/api-extractor.json && tsx scripts/copyPackageJson.ts",
45
+ "dev": "WATCH_MODE=true vite build -w",
46
+ "lint": "eslint . --max-warnings=0",
47
+ "lint:fix": "eslint . --max-warnings=0 --fix",
48
+ "stylelint": "stylelint 'src/**/*.{css,scss}'",
49
+ "stylelint:fix": "stylelint 'src/**/*.{css,scss}' --fix",
50
+ "test": "vitest run",
51
+ "test:coverage": "vitest run --coverage",
52
+ "e2e": "playwright test",
53
+ "e2e:ui": "playwright test --ui",
54
+ "e2e:docker": "PW_TEST_CONNECT_WS_ENDPOINT=ws://0.0.0.0:3000/ playwright test",
55
+ "e2e:docker:ui": "PW_TEST_CONNECT_WS_ENDPOINT=ws://0.0.0.0:3000/ playwright test --ui",
56
+ "typecheck": "tsc --noEmit"
57
+ },
58
+ "dependencies": {
59
+ "@floating-ui/dom": "^1.6.13",
60
+ "@microsoft/fast-element": "^1.14.0",
61
+ "@microsoft/fast-web-utilities": "^6.0.0"
62
+ },
63
+ "devDependencies": {
64
+ "@repo/cem-analyzer-plugins": "*",
65
+ "@repo/consts": "*",
66
+ "@repo/eslint-config": "*",
67
+ "@repo/eslint-plugin-repo": "*",
68
+ "@repo/shared": "*",
69
+ "@repo/stylelint-config": "*",
70
+ "@repo/styles": "*",
71
+ "@repo/typescript-config": "*",
72
+ "@repo/vitest-config": "*"
73
+ }
74
+ }