@vonage/vivid 5.5.0 → 5.6.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.
- package/LICENSE.md +201 -0
- package/accordion/definition.cjs +5 -0
- package/accordion/definition.js +5 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +14 -3
- package/alert/definition.cjs +4 -12
- package/alert/definition.js +5 -13
- package/alert/index.cjs +11 -11
- package/alert/index.js +33 -37
- package/audio-player/definition.cjs +4 -0
- package/audio-player/definition.js +4 -0
- package/audio-player/index.cjs +1 -1
- package/audio-player/index.js +8 -2
- package/banner/definition.cjs +2 -4
- package/banner/definition.js +2 -4
- package/banner/index.cjs +2 -2
- package/banner/index.js +1 -1
- package/breadcrumb/definition.cjs +1 -0
- package/breadcrumb/definition.js +1 -0
- package/breadcrumb/index.cjs +1 -1
- package/breadcrumb/index.js +1 -0
- package/bundled/affix.js +1 -1
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +3 -1
- package/bundled/base-color-picker.cjs +1 -1
- package/bundled/base-color-picker.js +9 -3
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +3 -0
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +14 -10
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +2 -0
- package/bundled/definition10.cjs +7 -7
- package/bundled/definition10.js +27 -17
- package/bundled/definition11.cjs +2 -2
- package/bundled/definition11.js +5 -5
- package/bundled/definition12.cjs +1 -1
- package/bundled/definition12.js +1 -0
- package/bundled/definition17.cjs +1 -1
- package/bundled/definition17.js +4 -1
- package/bundled/definition18.cjs +1 -1
- package/bundled/definition18.js +13 -2
- package/bundled/definition19.cjs +6 -6
- package/bundled/definition19.js +68 -33
- package/bundled/definition2.cjs +8 -9
- package/bundled/definition2.js +67 -75
- package/bundled/definition22.cjs +1 -1
- package/bundled/definition22.js +1 -0
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -0
- package/bundled/definition5.cjs +1 -1
- package/bundled/definition5.js +9 -3
- package/bundled/definition6.cjs +1 -1
- package/bundled/definition6.js +1 -0
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +7 -4
- package/bundled/definition8.cjs +1 -1
- package/bundled/definition8.js +1 -0
- package/bundled/definition9.cjs +6 -6
- package/bundled/definition9.js +545 -488
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +3 -1
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +11 -3
- package/bundled/host-semantics.js +4 -4
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +21 -3
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +137 -67
- package/bundled/mixins.cjs +4 -4
- package/bundled/mixins.js +10 -7
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +1 -0
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +4 -1
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +2 -2
- package/bundled/time-selection-picker.template.js +3 -0
- package/bundled/vivid-element.cjs +4 -4
- package/bundled/vivid-element.js +529 -492
- package/calendar/definition.cjs +2 -0
- package/calendar/definition.js +2 -0
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +2 -0
- package/checkbox/definition.cjs +1 -0
- package/checkbox/definition.js +1 -0
- package/color-picker/definition.cjs +5 -0
- package/color-picker/definition.js +5 -0
- package/color-picker/index.cjs +1 -1
- package/color-picker/index.js +5 -0
- package/combobox/definition.cjs +17 -6
- package/combobox/definition.js +17 -6
- package/combobox/index.cjs +14 -9
- package/combobox/index.js +53 -41
- package/custom-elements.json +6985 -542
- package/data-grid/definition.cjs +105 -7
- package/data-grid/definition.js +105 -7
- package/data-grid/index.cjs +52 -38
- package/data-grid/index.js +313 -242
- package/date-range-picker/definition.cjs +2 -0
- package/date-range-picker/definition.js +2 -0
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +5 -1
- package/dial-pad/definition.cjs +9 -0
- package/dial-pad/definition.js +9 -0
- package/dial-pad/index.cjs +2 -2
- package/dial-pad/index.js +36 -12
- package/dialog/definition.cjs +1 -0
- package/dialog/definition.js +1 -0
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -0
- package/fab/definition.cjs +1 -0
- package/fab/definition.js +1 -0
- package/fab/index.cjs +1 -1
- package/fab/index.js +1 -0
- package/file-picker/definition.cjs +7 -2
- package/file-picker/definition.js +7 -2
- package/file-picker/index.cjs +6 -6
- package/file-picker/index.js +82 -73
- package/icon/definition.cjs +12 -21
- package/icon/definition.js +13 -22
- package/index.cjs +21 -0
- package/index.js +1 -1
- package/lib/data-grid/locale.d.ts +5 -0
- package/lib/date-picker/date-picker.d.ts +38 -38
- package/lib/date-range-picker/date-range-picker.d.ts +20 -20
- package/lib/date-time-picker/date-time-picker.d.ts +40 -40
- package/lib/icon/icon.d.ts +0 -1
- package/lib/menu/menu.d.ts +4 -4
- package/lib/rich-text-editor/definition.d.ts +3 -2
- package/lib/rich-text-editor/locale.d.ts +29 -3
- package/lib/rich-text-editor/popover.d.ts +19 -0
- package/lib/rich-text-editor/rich-text-editor.d.ts +16 -45
- package/lib/rich-text-editor/rich-text-editor.template.d.ts +2 -2
- package/lib/rich-text-editor/rte/config.d.ts +18 -0
- package/lib/rich-text-editor/rte/document.d.ts +28 -0
- package/lib/rich-text-editor/rte/exports.d.ts +23 -0
- package/lib/rich-text-editor/rte/feature.d.ts +46 -0
- package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +33 -0
- package/lib/rich-text-editor/rte/features/internal/foreign-html.d.ts +11 -0
- package/lib/rich-text-editor/rte/features/internal/history.d.ts +10 -0
- package/lib/rich-text-editor/rte/features/internal/text-style.d.ts +18 -0
- package/lib/rich-text-editor/rte/html-parser.d.ts +24 -0
- package/lib/rich-text-editor/rte/html-serializer.d.ts +30 -0
- package/lib/rich-text-editor/rte/instance.d.ts +57 -0
- package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -0
- package/lib/rich-text-editor/rte/utils/impl.d.ts +1 -0
- package/lib/rich-text-editor/rte/utils/textblock-attrs.d.ts +29 -0
- package/lib/rich-text-editor/rte/utils/textblock-marks.d.ts +10 -0
- package/lib/rich-text-editor/rte/utils/ui.d.ts +109 -0
- package/lib/simple-color-picker/simple-color-picker.d.ts +4 -4
- package/lib/text-area/text-area.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +1 -1
- package/lib/time-picker/time-picker.d.ts +20 -20
- package/lib/toggletip/toggletip.d.ts +4 -4
- package/lib/tooltip/tooltip.d.ts +4 -4
- package/locales/de-DE.cjs +42 -4
- package/locales/de-DE.js +42 -4
- package/locales/en-GB.cjs +43 -5
- package/locales/en-GB.js +43 -5
- package/locales/en-US.cjs +43 -5
- package/locales/en-US.js +43 -5
- package/locales/ja-JP.cjs +43 -5
- package/locales/ja-JP.js +43 -5
- package/locales/zh-CN.cjs +43 -5
- package/locales/zh-CN.js +43 -5
- package/menu/definition.cjs +1 -0
- package/menu/definition.js +1 -0
- package/number-field/definition.cjs +5 -3
- package/number-field/definition.js +5 -3
- package/number-field/index.cjs +5 -3
- package/number-field/index.js +31 -29
- package/package.json +76 -62
- package/pagination/definition.cjs +2 -0
- package/pagination/definition.js +2 -0
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +2 -0
- package/radio/definition.cjs +4 -0
- package/radio/definition.js +4 -0
- package/range-slider/definition.cjs +2 -1
- package/range-slider/definition.js +2 -1
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +3 -1
- package/rich-text-editor/definition.cjs +17942 -1074
- package/rich-text-editor/definition.js +17926 -1079
- package/rich-text-editor/index.cjs +29 -130
- package/rich-text-editor/index.js +5565 -2474
- package/searchable-select/definition.cjs +6 -2
- package/searchable-select/definition.js +6 -2
- package/searchable-select/index.cjs +1 -1
- package/searchable-select/index.js +11 -7
- package/select/definition.cjs +17 -2
- package/select/definition.js +17 -2
- package/shared/patterns/anchored.d.ts +8 -8
- package/shared/patterns/char-count/char-count.d.ts +1 -1
- package/shared/patterns/localized.d.ts +386 -0
- package/shared/picker-field/mixins/calendar-picker.d.ts +10 -10
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +10 -10
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +20 -20
- package/shared/picker-field/mixins/single-date-picker.d.ts +28 -28
- package/shared/picker-field/mixins/single-value-picker.d.ts +8 -8
- package/shared/picker-field/mixins/time-selection-picker.d.ts +20 -20
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +20 -20
- package/shared/utils/promise.d.ts +7 -0
- package/simple-color-picker/definition.cjs +3 -0
- package/simple-color-picker/definition.js +3 -0
- package/simple-color-picker/index.cjs +1 -1
- package/simple-color-picker/index.js +3 -0
- package/slider/definition.cjs +7 -1
- package/slider/definition.js +7 -1
- package/styles/core/all.css +5 -1
- package/styles/core/theme.css +5 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/definition.cjs +1 -0
- package/switch/definition.js +1 -0
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -0
- package/tabs/definition.cjs +2 -0
- package/tabs/definition.js +2 -0
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +2 -0
- package/text-area/definition.cjs +13 -7
- package/text-area/definition.js +13 -7
- package/text-area/index.cjs +6 -6
- package/text-area/index.js +20 -14
- package/text-field/definition.cjs +16 -6
- package/text-field/definition.js +16 -6
- package/toggletip/definition.cjs +5 -1
- package/toggletip/definition.js +5 -1
- package/tooltip/definition.cjs +4 -1
- package/tooltip/definition.js +4 -1
- package/tree-view/definition.cjs +28 -6
- package/tree-view/definition.js +28 -6
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +28 -6
- package/unbundled/_commonjsHelpers.cjs +0 -26
- package/unbundled/_commonjsHelpers.js +1 -26
- package/unbundled/attribute-binding-behaviour.cjs +1 -0
- package/unbundled/attribute-binding-behaviour.js +1 -0
- package/unbundled/base-color-picker.cjs +9 -3
- package/unbundled/base-color-picker.js +9 -3
- package/unbundled/base-progress.cjs +3 -0
- package/unbundled/base-progress.js +3 -0
- package/unbundled/button.cjs +14 -10
- package/unbundled/button.js +14 -10
- package/unbundled/calendar-picker.template.cjs +2 -0
- package/unbundled/calendar-picker.template.js +2 -0
- package/unbundled/definition.cjs +1 -0
- package/unbundled/definition.js +1 -0
- package/unbundled/definition2.cjs +4 -1
- package/unbundled/definition2.js +4 -1
- package/unbundled/definition3.cjs +1 -0
- package/unbundled/definition3.js +1 -0
- package/unbundled/definition4.cjs +1 -0
- package/unbundled/definition4.js +1 -0
- package/unbundled/definition5.cjs +3 -2
- package/unbundled/definition5.js +4 -3
- package/unbundled/delegates-aria.cjs +1 -0
- package/unbundled/delegates-aria.js +1 -0
- package/unbundled/form-associated.cjs +4 -0
- package/unbundled/form-associated.js +4 -0
- package/unbundled/listbox.cjs +16 -1
- package/unbundled/listbox.js +16 -1
- package/unbundled/localized.cjs +36 -0
- package/unbundled/localized.js +37 -2
- package/unbundled/mixins.cjs +2 -0
- package/unbundled/mixins.js +2 -0
- package/unbundled/picker-field.template.cjs +1 -0
- package/unbundled/picker-field.template.js +1 -0
- package/unbundled/scrollIntoView.cjs +1 -0
- package/unbundled/scrollIntoView.js +1 -0
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +3 -0
- package/unbundled/time-selection-picker.template.js +3 -0
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/video-player/definition.cjs +54 -44
- package/video-player/definition.js +50 -40
- package/video-player/index.cjs +28 -28
- package/video-player/index.js +1448 -1442
- package/vivid.api.json +6463 -6099
- package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +0 -4
- package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +0 -18
- package/lib/rich-text-editor/image-placeholder/definition.d.ts +0 -2
- package/lib/rich-text-editor/image-placeholder/image-placeholder.d.ts +0 -7
- package/lib/rich-text-editor/image-placeholder/image-placeholder.template.d.ts +0 -4
- package/lib/rich-text-editor/menubar/consts.d.ts +0 -18
- package/lib/rich-text-editor/menubar/definition.d.ts +0 -2
- package/lib/rich-text-editor/menubar/menubar.d.ts +0 -386
- package/lib/rich-text-editor/menubar/menubar.template.d.ts +0 -4
package/locales/de-DE.js
CHANGED
|
@@ -404,14 +404,40 @@ const deDE = {
|
|
|
404
404
|
)
|
|
405
405
|
},
|
|
406
406
|
richTextEditor: {
|
|
407
|
-
|
|
407
|
+
paragraphStyles: "Absatzstile",
|
|
408
408
|
textSize: "Textgröße",
|
|
409
409
|
bold: "Fett",
|
|
410
|
-
|
|
410
|
+
italic: "Kursiv",
|
|
411
411
|
underline: "Unterstrichen",
|
|
412
412
|
strikethrough: "Durchgestrichen",
|
|
413
413
|
monospace: "Monospace",
|
|
414
|
-
|
|
414
|
+
textColor: "Textfarbe",
|
|
415
|
+
undo: "Rückgängig",
|
|
416
|
+
redo: "Wiederholen",
|
|
417
|
+
bulletList: "Aufzählung",
|
|
418
|
+
numberedList: "Nummerierung",
|
|
419
|
+
alignment: "Ausrichtung",
|
|
420
|
+
alignments: {
|
|
421
|
+
left: "Linksbündig",
|
|
422
|
+
center: "Zentriert",
|
|
423
|
+
right: "Rechtsbündig"
|
|
424
|
+
},
|
|
425
|
+
hyperlink: "Hyperlink",
|
|
426
|
+
linkText: "Text",
|
|
427
|
+
linkUrl: "URL",
|
|
428
|
+
linkTextPlaceholder: "Text eingeben, um Link zu erstellen",
|
|
429
|
+
linkUrlPlaceholder: "Link-URL einfügen",
|
|
430
|
+
cancel: "Abbrechen",
|
|
431
|
+
apply: "Anwenden",
|
|
432
|
+
close: "Schließen",
|
|
433
|
+
edit: "Bearbeiten",
|
|
434
|
+
delete: "Löschen",
|
|
435
|
+
clickHere: "Hier klicken",
|
|
436
|
+
imageSizes: {
|
|
437
|
+
small: "Klein",
|
|
438
|
+
fit: "Anpassen",
|
|
439
|
+
original: "Originalgröße"
|
|
440
|
+
}
|
|
415
441
|
},
|
|
416
442
|
button: {
|
|
417
443
|
pendingLabel: "Laden..."
|
|
@@ -442,7 +468,19 @@ const deDE = {
|
|
|
442
468
|
dataGrid: {
|
|
443
469
|
cell: {
|
|
444
470
|
selected: "Ausgewählt",
|
|
445
|
-
button: "(Schaltfläche)"
|
|
471
|
+
button: "(Schaltfläche)",
|
|
472
|
+
sortStatus: {
|
|
473
|
+
ascending: "Aufsteigend sortiert.",
|
|
474
|
+
descending: "Absteigend sortiert.",
|
|
475
|
+
none: "Nicht sortiert.",
|
|
476
|
+
other: "Benutzerdefinierte Sortierung aktiv."
|
|
477
|
+
},
|
|
478
|
+
sortInstruction: {
|
|
479
|
+
ascending: "Zum Absteigend sortieren klicken.",
|
|
480
|
+
descending: "Zum Entfernen der Sortierung klicken.",
|
|
481
|
+
none: "Zum Aufsteigend sortieren klicken.",
|
|
482
|
+
other: "Zum Zurücksetzen der Sortierung klicken."
|
|
483
|
+
}
|
|
446
484
|
}
|
|
447
485
|
},
|
|
448
486
|
pagination: {
|
package/locales/en-GB.cjs
CHANGED
|
@@ -238,14 +238,40 @@ const enGB = {
|
|
|
238
238
|
)
|
|
239
239
|
},
|
|
240
240
|
richTextEditor: {
|
|
241
|
-
|
|
242
|
-
textSize: "Text
|
|
241
|
+
paragraphStyles: "Paragraph styles",
|
|
242
|
+
textSize: "Text size",
|
|
243
243
|
bold: "Bold",
|
|
244
|
-
|
|
244
|
+
italic: "Italic",
|
|
245
245
|
underline: "Underline",
|
|
246
246
|
strikethrough: "Strikethrough",
|
|
247
247
|
monospace: "Monospace",
|
|
248
|
-
|
|
248
|
+
textColor: "Text colour",
|
|
249
|
+
undo: "Undo",
|
|
250
|
+
redo: "Redo",
|
|
251
|
+
bulletList: "Bullet list",
|
|
252
|
+
numberedList: "Numbered list",
|
|
253
|
+
alignment: "Alignment",
|
|
254
|
+
alignments: {
|
|
255
|
+
left: "Left",
|
|
256
|
+
center: "Centre",
|
|
257
|
+
right: "Right"
|
|
258
|
+
},
|
|
259
|
+
hyperlink: "Hyperlink",
|
|
260
|
+
linkText: "Text",
|
|
261
|
+
linkUrl: "URL",
|
|
262
|
+
linkTextPlaceholder: "Type text to convert into link",
|
|
263
|
+
linkUrlPlaceholder: "Insert link URL",
|
|
264
|
+
cancel: "Cancel",
|
|
265
|
+
apply: "Apply",
|
|
266
|
+
close: "Close",
|
|
267
|
+
edit: "Edit",
|
|
268
|
+
delete: "Delete",
|
|
269
|
+
clickHere: "Click here",
|
|
270
|
+
imageSizes: {
|
|
271
|
+
small: "Small",
|
|
272
|
+
fit: "Fit",
|
|
273
|
+
original: "Original size"
|
|
274
|
+
}
|
|
249
275
|
},
|
|
250
276
|
button: {
|
|
251
277
|
pendingLabel: "Loading..."
|
|
@@ -276,7 +302,19 @@ const enGB = {
|
|
|
276
302
|
dataGrid: {
|
|
277
303
|
cell: {
|
|
278
304
|
selected: "Selected",
|
|
279
|
-
button: "(button)"
|
|
305
|
+
button: "(button)",
|
|
306
|
+
sortStatus: {
|
|
307
|
+
ascending: "Sorted ascending.",
|
|
308
|
+
descending: "Sorted descending.",
|
|
309
|
+
none: "Not sorted.",
|
|
310
|
+
other: "Custom sort applied."
|
|
311
|
+
},
|
|
312
|
+
sortInstruction: {
|
|
313
|
+
ascending: "Click to sort descending.",
|
|
314
|
+
descending: "Click to un-sort.",
|
|
315
|
+
none: "Click to sort ascending.",
|
|
316
|
+
other: "Click to reset sorting."
|
|
317
|
+
}
|
|
280
318
|
}
|
|
281
319
|
},
|
|
282
320
|
pagination: {
|
package/locales/en-GB.js
CHANGED
|
@@ -236,14 +236,40 @@ const enGB = {
|
|
|
236
236
|
)
|
|
237
237
|
},
|
|
238
238
|
richTextEditor: {
|
|
239
|
-
|
|
240
|
-
textSize: "Text
|
|
239
|
+
paragraphStyles: "Paragraph styles",
|
|
240
|
+
textSize: "Text size",
|
|
241
241
|
bold: "Bold",
|
|
242
|
-
|
|
242
|
+
italic: "Italic",
|
|
243
243
|
underline: "Underline",
|
|
244
244
|
strikethrough: "Strikethrough",
|
|
245
245
|
monospace: "Monospace",
|
|
246
|
-
|
|
246
|
+
textColor: "Text colour",
|
|
247
|
+
undo: "Undo",
|
|
248
|
+
redo: "Redo",
|
|
249
|
+
bulletList: "Bullet list",
|
|
250
|
+
numberedList: "Numbered list",
|
|
251
|
+
alignment: "Alignment",
|
|
252
|
+
alignments: {
|
|
253
|
+
left: "Left",
|
|
254
|
+
center: "Centre",
|
|
255
|
+
right: "Right"
|
|
256
|
+
},
|
|
257
|
+
hyperlink: "Hyperlink",
|
|
258
|
+
linkText: "Text",
|
|
259
|
+
linkUrl: "URL",
|
|
260
|
+
linkTextPlaceholder: "Type text to convert into link",
|
|
261
|
+
linkUrlPlaceholder: "Insert link URL",
|
|
262
|
+
cancel: "Cancel",
|
|
263
|
+
apply: "Apply",
|
|
264
|
+
close: "Close",
|
|
265
|
+
edit: "Edit",
|
|
266
|
+
delete: "Delete",
|
|
267
|
+
clickHere: "Click here",
|
|
268
|
+
imageSizes: {
|
|
269
|
+
small: "Small",
|
|
270
|
+
fit: "Fit",
|
|
271
|
+
original: "Original size"
|
|
272
|
+
}
|
|
247
273
|
},
|
|
248
274
|
button: {
|
|
249
275
|
pendingLabel: "Loading..."
|
|
@@ -274,7 +300,19 @@ const enGB = {
|
|
|
274
300
|
dataGrid: {
|
|
275
301
|
cell: {
|
|
276
302
|
selected: "Selected",
|
|
277
|
-
button: "(button)"
|
|
303
|
+
button: "(button)",
|
|
304
|
+
sortStatus: {
|
|
305
|
+
ascending: "Sorted ascending.",
|
|
306
|
+
descending: "Sorted descending.",
|
|
307
|
+
none: "Not sorted.",
|
|
308
|
+
other: "Custom sort applied."
|
|
309
|
+
},
|
|
310
|
+
sortInstruction: {
|
|
311
|
+
ascending: "Click to sort descending.",
|
|
312
|
+
descending: "Click to un-sort.",
|
|
313
|
+
none: "Click to sort ascending.",
|
|
314
|
+
other: "Click to reset sorting."
|
|
315
|
+
}
|
|
278
316
|
}
|
|
279
317
|
},
|
|
280
318
|
pagination: {
|
package/locales/en-US.cjs
CHANGED
|
@@ -406,14 +406,40 @@ const enUS = {
|
|
|
406
406
|
)
|
|
407
407
|
},
|
|
408
408
|
richTextEditor: {
|
|
409
|
-
|
|
410
|
-
textSize: "Text
|
|
409
|
+
paragraphStyles: "Paragraph styles",
|
|
410
|
+
textSize: "Text size",
|
|
411
411
|
bold: "Bold",
|
|
412
|
-
|
|
412
|
+
italic: "Italic",
|
|
413
413
|
underline: "Underline",
|
|
414
414
|
strikethrough: "Strikethrough",
|
|
415
415
|
monospace: "Monospace",
|
|
416
|
-
|
|
416
|
+
textColor: "Text color",
|
|
417
|
+
undo: "Undo",
|
|
418
|
+
redo: "Redo",
|
|
419
|
+
bulletList: "Bullet list",
|
|
420
|
+
numberedList: "Numbered list",
|
|
421
|
+
alignment: "Alignment",
|
|
422
|
+
alignments: {
|
|
423
|
+
left: "Left",
|
|
424
|
+
center: "Center",
|
|
425
|
+
right: "Right"
|
|
426
|
+
},
|
|
427
|
+
hyperlink: "Hyperlink",
|
|
428
|
+
linkText: "Text",
|
|
429
|
+
linkUrl: "URL",
|
|
430
|
+
linkTextPlaceholder: "Type text to convert into link",
|
|
431
|
+
linkUrlPlaceholder: "Insert link URL",
|
|
432
|
+
cancel: "Cancel",
|
|
433
|
+
apply: "Apply",
|
|
434
|
+
close: "Close",
|
|
435
|
+
edit: "Edit",
|
|
436
|
+
delete: "Delete",
|
|
437
|
+
clickHere: "Click here",
|
|
438
|
+
imageSizes: {
|
|
439
|
+
small: "Small",
|
|
440
|
+
fit: "Fit",
|
|
441
|
+
original: "Original size"
|
|
442
|
+
}
|
|
417
443
|
},
|
|
418
444
|
button: {
|
|
419
445
|
pendingLabel: "Loading..."
|
|
@@ -444,7 +470,19 @@ const enUS = {
|
|
|
444
470
|
dataGrid: {
|
|
445
471
|
cell: {
|
|
446
472
|
selected: "Selected",
|
|
447
|
-
button: "(button)"
|
|
473
|
+
button: "(button)",
|
|
474
|
+
sortStatus: {
|
|
475
|
+
ascending: "Sorted ascending.",
|
|
476
|
+
descending: "Sorted descending.",
|
|
477
|
+
none: "Not sorted.",
|
|
478
|
+
other: "Custom sort applied."
|
|
479
|
+
},
|
|
480
|
+
sortInstruction: {
|
|
481
|
+
ascending: "Click to sort descending.",
|
|
482
|
+
descending: "Click to un-sort.",
|
|
483
|
+
none: "Click to sort ascending.",
|
|
484
|
+
other: "Click to reset sorting."
|
|
485
|
+
}
|
|
448
486
|
}
|
|
449
487
|
},
|
|
450
488
|
pagination: {
|
package/locales/en-US.js
CHANGED
|
@@ -404,14 +404,40 @@ const enUS = {
|
|
|
404
404
|
)
|
|
405
405
|
},
|
|
406
406
|
richTextEditor: {
|
|
407
|
-
|
|
408
|
-
textSize: "Text
|
|
407
|
+
paragraphStyles: "Paragraph styles",
|
|
408
|
+
textSize: "Text size",
|
|
409
409
|
bold: "Bold",
|
|
410
|
-
|
|
410
|
+
italic: "Italic",
|
|
411
411
|
underline: "Underline",
|
|
412
412
|
strikethrough: "Strikethrough",
|
|
413
413
|
monospace: "Monospace",
|
|
414
|
-
|
|
414
|
+
textColor: "Text color",
|
|
415
|
+
undo: "Undo",
|
|
416
|
+
redo: "Redo",
|
|
417
|
+
bulletList: "Bullet list",
|
|
418
|
+
numberedList: "Numbered list",
|
|
419
|
+
alignment: "Alignment",
|
|
420
|
+
alignments: {
|
|
421
|
+
left: "Left",
|
|
422
|
+
center: "Center",
|
|
423
|
+
right: "Right"
|
|
424
|
+
},
|
|
425
|
+
hyperlink: "Hyperlink",
|
|
426
|
+
linkText: "Text",
|
|
427
|
+
linkUrl: "URL",
|
|
428
|
+
linkTextPlaceholder: "Type text to convert into link",
|
|
429
|
+
linkUrlPlaceholder: "Insert link URL",
|
|
430
|
+
cancel: "Cancel",
|
|
431
|
+
apply: "Apply",
|
|
432
|
+
close: "Close",
|
|
433
|
+
edit: "Edit",
|
|
434
|
+
delete: "Delete",
|
|
435
|
+
clickHere: "Click here",
|
|
436
|
+
imageSizes: {
|
|
437
|
+
small: "Small",
|
|
438
|
+
fit: "Fit",
|
|
439
|
+
original: "Original size"
|
|
440
|
+
}
|
|
415
441
|
},
|
|
416
442
|
button: {
|
|
417
443
|
pendingLabel: "Loading..."
|
|
@@ -442,7 +468,19 @@ const enUS = {
|
|
|
442
468
|
dataGrid: {
|
|
443
469
|
cell: {
|
|
444
470
|
selected: "Selected",
|
|
445
|
-
button: "(button)"
|
|
471
|
+
button: "(button)",
|
|
472
|
+
sortStatus: {
|
|
473
|
+
ascending: "Sorted ascending.",
|
|
474
|
+
descending: "Sorted descending.",
|
|
475
|
+
none: "Not sorted.",
|
|
476
|
+
other: "Custom sort applied."
|
|
477
|
+
},
|
|
478
|
+
sortInstruction: {
|
|
479
|
+
ascending: "Click to sort descending.",
|
|
480
|
+
descending: "Click to un-sort.",
|
|
481
|
+
none: "Click to sort ascending.",
|
|
482
|
+
other: "Click to reset sorting."
|
|
483
|
+
}
|
|
446
484
|
}
|
|
447
485
|
},
|
|
448
486
|
pagination: {
|
package/locales/ja-JP.cjs
CHANGED
|
@@ -405,14 +405,40 @@ const jaJP = {
|
|
|
405
405
|
)
|
|
406
406
|
},
|
|
407
407
|
richTextEditor: {
|
|
408
|
-
|
|
408
|
+
paragraphStyles: "段落スタイル",
|
|
409
409
|
textSize: "文字サイズ",
|
|
410
410
|
bold: "太字",
|
|
411
|
-
|
|
411
|
+
italic: "斜体",
|
|
412
412
|
underline: "下線",
|
|
413
413
|
strikethrough: "取り消し線",
|
|
414
|
-
monospace: "
|
|
415
|
-
|
|
414
|
+
monospace: "等幅フォント",
|
|
415
|
+
textColor: "文字色",
|
|
416
|
+
undo: "元に戻す",
|
|
417
|
+
redo: "やり直し",
|
|
418
|
+
bulletList: "箇条書き",
|
|
419
|
+
numberedList: "番号付きリスト",
|
|
420
|
+
alignment: "配置",
|
|
421
|
+
alignments: {
|
|
422
|
+
left: "左揃え",
|
|
423
|
+
center: "中央揃え",
|
|
424
|
+
right: "右揃え"
|
|
425
|
+
},
|
|
426
|
+
hyperlink: "ハイパーリンク",
|
|
427
|
+
linkText: "テキスト",
|
|
428
|
+
linkUrl: "URL",
|
|
429
|
+
linkTextPlaceholder: "リンクに変換するテキストを入力",
|
|
430
|
+
linkUrlPlaceholder: "リンクURLを挿入",
|
|
431
|
+
cancel: "キャンセル",
|
|
432
|
+
apply: "適用",
|
|
433
|
+
close: "閉じる",
|
|
434
|
+
edit: "編集",
|
|
435
|
+
delete: "削除",
|
|
436
|
+
clickHere: "ここをクリック",
|
|
437
|
+
imageSizes: {
|
|
438
|
+
small: "小",
|
|
439
|
+
fit: "フィット",
|
|
440
|
+
original: "元のサイズ"
|
|
441
|
+
}
|
|
416
442
|
},
|
|
417
443
|
button: {
|
|
418
444
|
pendingLabel: "読み込み中"
|
|
@@ -443,7 +469,19 @@ const jaJP = {
|
|
|
443
469
|
dataGrid: {
|
|
444
470
|
cell: {
|
|
445
471
|
selected: "選択済み",
|
|
446
|
-
button: "(ボタン)"
|
|
472
|
+
button: "(ボタン)",
|
|
473
|
+
sortStatus: {
|
|
474
|
+
ascending: "昇順で並べ替えています。",
|
|
475
|
+
descending: "降順で並べ替えています。",
|
|
476
|
+
none: "並べ替えは適用されていません。",
|
|
477
|
+
other: "カスタムの並べ替えが適用されています。"
|
|
478
|
+
},
|
|
479
|
+
sortInstruction: {
|
|
480
|
+
ascending: "クリックすると降順で並べ替えます。",
|
|
481
|
+
descending: "クリックすると並べ替えを解除します。",
|
|
482
|
+
none: "クリックすると昇順で並べ替えます。",
|
|
483
|
+
other: "クリックすると並べ替えをリセットします。"
|
|
484
|
+
}
|
|
447
485
|
}
|
|
448
486
|
},
|
|
449
487
|
pagination: {
|
package/locales/ja-JP.js
CHANGED
|
@@ -403,14 +403,40 @@ const jaJP = {
|
|
|
403
403
|
)
|
|
404
404
|
},
|
|
405
405
|
richTextEditor: {
|
|
406
|
-
|
|
406
|
+
paragraphStyles: "段落スタイル",
|
|
407
407
|
textSize: "文字サイズ",
|
|
408
408
|
bold: "太字",
|
|
409
|
-
|
|
409
|
+
italic: "斜体",
|
|
410
410
|
underline: "下線",
|
|
411
411
|
strikethrough: "取り消し線",
|
|
412
|
-
monospace: "
|
|
413
|
-
|
|
412
|
+
monospace: "等幅フォント",
|
|
413
|
+
textColor: "文字色",
|
|
414
|
+
undo: "元に戻す",
|
|
415
|
+
redo: "やり直し",
|
|
416
|
+
bulletList: "箇条書き",
|
|
417
|
+
numberedList: "番号付きリスト",
|
|
418
|
+
alignment: "配置",
|
|
419
|
+
alignments: {
|
|
420
|
+
left: "左揃え",
|
|
421
|
+
center: "中央揃え",
|
|
422
|
+
right: "右揃え"
|
|
423
|
+
},
|
|
424
|
+
hyperlink: "ハイパーリンク",
|
|
425
|
+
linkText: "テキスト",
|
|
426
|
+
linkUrl: "URL",
|
|
427
|
+
linkTextPlaceholder: "リンクに変換するテキストを入力",
|
|
428
|
+
linkUrlPlaceholder: "リンクURLを挿入",
|
|
429
|
+
cancel: "キャンセル",
|
|
430
|
+
apply: "適用",
|
|
431
|
+
close: "閉じる",
|
|
432
|
+
edit: "編集",
|
|
433
|
+
delete: "削除",
|
|
434
|
+
clickHere: "ここをクリック",
|
|
435
|
+
imageSizes: {
|
|
436
|
+
small: "小",
|
|
437
|
+
fit: "フィット",
|
|
438
|
+
original: "元のサイズ"
|
|
439
|
+
}
|
|
414
440
|
},
|
|
415
441
|
button: {
|
|
416
442
|
pendingLabel: "読み込み中"
|
|
@@ -441,7 +467,19 @@ const jaJP = {
|
|
|
441
467
|
dataGrid: {
|
|
442
468
|
cell: {
|
|
443
469
|
selected: "選択済み",
|
|
444
|
-
button: "(ボタン)"
|
|
470
|
+
button: "(ボタン)",
|
|
471
|
+
sortStatus: {
|
|
472
|
+
ascending: "昇順で並べ替えています。",
|
|
473
|
+
descending: "降順で並べ替えています。",
|
|
474
|
+
none: "並べ替えは適用されていません。",
|
|
475
|
+
other: "カスタムの並べ替えが適用されています。"
|
|
476
|
+
},
|
|
477
|
+
sortInstruction: {
|
|
478
|
+
ascending: "クリックすると降順で並べ替えます。",
|
|
479
|
+
descending: "クリックすると並べ替えを解除します。",
|
|
480
|
+
none: "クリックすると昇順で並べ替えます。",
|
|
481
|
+
other: "クリックすると並べ替えをリセットします。"
|
|
482
|
+
}
|
|
445
483
|
}
|
|
446
484
|
},
|
|
447
485
|
pagination: {
|
package/locales/zh-CN.cjs
CHANGED
|
@@ -407,14 +407,40 @@ const zhCN = {
|
|
|
407
407
|
)
|
|
408
408
|
},
|
|
409
409
|
richTextEditor: {
|
|
410
|
-
|
|
410
|
+
paragraphStyles: "段落样式",
|
|
411
411
|
textSize: "文字大小",
|
|
412
|
-
bold: "
|
|
413
|
-
|
|
412
|
+
bold: "粗体",
|
|
413
|
+
italic: "斜体",
|
|
414
414
|
underline: "下划线",
|
|
415
415
|
strikethrough: "删除线",
|
|
416
416
|
monospace: "等宽字体",
|
|
417
|
-
|
|
417
|
+
textColor: "文字颜色",
|
|
418
|
+
undo: "撤销",
|
|
419
|
+
redo: "重做",
|
|
420
|
+
bulletList: "项目符号列表",
|
|
421
|
+
numberedList: "编号列表",
|
|
422
|
+
alignment: "对齐",
|
|
423
|
+
alignments: {
|
|
424
|
+
left: "左对齐",
|
|
425
|
+
center: "居中",
|
|
426
|
+
right: "右对齐"
|
|
427
|
+
},
|
|
428
|
+
hyperlink: "超链接",
|
|
429
|
+
linkText: "文本",
|
|
430
|
+
linkUrl: "URL",
|
|
431
|
+
linkTextPlaceholder: "输入要转换为链接的文本",
|
|
432
|
+
linkUrlPlaceholder: "插入链接URL",
|
|
433
|
+
cancel: "取消",
|
|
434
|
+
apply: "应用",
|
|
435
|
+
close: "关闭",
|
|
436
|
+
edit: "编辑",
|
|
437
|
+
delete: "删除",
|
|
438
|
+
clickHere: "点击这里",
|
|
439
|
+
imageSizes: {
|
|
440
|
+
small: "小",
|
|
441
|
+
fit: "适应",
|
|
442
|
+
original: "原始大小"
|
|
443
|
+
}
|
|
418
444
|
},
|
|
419
445
|
button: {
|
|
420
446
|
pendingLabel: "加载中"
|
|
@@ -445,7 +471,19 @@ const zhCN = {
|
|
|
445
471
|
dataGrid: {
|
|
446
472
|
cell: {
|
|
447
473
|
selected: "已选择",
|
|
448
|
-
button: "(按钮)"
|
|
474
|
+
button: "(按钮)",
|
|
475
|
+
sortStatus: {
|
|
476
|
+
ascending: "已按升序排序。",
|
|
477
|
+
descending: "已按降序排序。",
|
|
478
|
+
none: "未排序。",
|
|
479
|
+
other: "已应用自定义排序。"
|
|
480
|
+
},
|
|
481
|
+
sortInstruction: {
|
|
482
|
+
ascending: "单击以按降序排序。",
|
|
483
|
+
descending: "单击以取消排序。",
|
|
484
|
+
none: "单击以按升序排序。",
|
|
485
|
+
other: "单击以重置排序。"
|
|
486
|
+
}
|
|
449
487
|
}
|
|
450
488
|
},
|
|
451
489
|
pagination: {
|
package/locales/zh-CN.js
CHANGED
|
@@ -405,14 +405,40 @@ const zhCN = {
|
|
|
405
405
|
)
|
|
406
406
|
},
|
|
407
407
|
richTextEditor: {
|
|
408
|
-
|
|
408
|
+
paragraphStyles: "段落样式",
|
|
409
409
|
textSize: "文字大小",
|
|
410
|
-
bold: "
|
|
411
|
-
|
|
410
|
+
bold: "粗体",
|
|
411
|
+
italic: "斜体",
|
|
412
412
|
underline: "下划线",
|
|
413
413
|
strikethrough: "删除线",
|
|
414
414
|
monospace: "等宽字体",
|
|
415
|
-
|
|
415
|
+
textColor: "文字颜色",
|
|
416
|
+
undo: "撤销",
|
|
417
|
+
redo: "重做",
|
|
418
|
+
bulletList: "项目符号列表",
|
|
419
|
+
numberedList: "编号列表",
|
|
420
|
+
alignment: "对齐",
|
|
421
|
+
alignments: {
|
|
422
|
+
left: "左对齐",
|
|
423
|
+
center: "居中",
|
|
424
|
+
right: "右对齐"
|
|
425
|
+
},
|
|
426
|
+
hyperlink: "超链接",
|
|
427
|
+
linkText: "文本",
|
|
428
|
+
linkUrl: "URL",
|
|
429
|
+
linkTextPlaceholder: "输入要转换为链接的文本",
|
|
430
|
+
linkUrlPlaceholder: "插入链接URL",
|
|
431
|
+
cancel: "取消",
|
|
432
|
+
apply: "应用",
|
|
433
|
+
close: "关闭",
|
|
434
|
+
edit: "编辑",
|
|
435
|
+
delete: "删除",
|
|
436
|
+
clickHere: "点击这里",
|
|
437
|
+
imageSizes: {
|
|
438
|
+
small: "小",
|
|
439
|
+
fit: "适应",
|
|
440
|
+
original: "原始大小"
|
|
441
|
+
}
|
|
416
442
|
},
|
|
417
443
|
button: {
|
|
418
444
|
pendingLabel: "加载中"
|
|
@@ -443,7 +469,19 @@ const zhCN = {
|
|
|
443
469
|
dataGrid: {
|
|
444
470
|
cell: {
|
|
445
471
|
selected: "已选择",
|
|
446
|
-
button: "(按钮)"
|
|
472
|
+
button: "(按钮)",
|
|
473
|
+
sortStatus: {
|
|
474
|
+
ascending: "已按升序排序。",
|
|
475
|
+
descending: "已按降序排序。",
|
|
476
|
+
none: "未排序。",
|
|
477
|
+
other: "已应用自定义排序。"
|
|
478
|
+
},
|
|
479
|
+
sortInstruction: {
|
|
480
|
+
ascending: "单击以按降序排序。",
|
|
481
|
+
descending: "单击以取消排序。",
|
|
482
|
+
none: "单击以按升序排序。",
|
|
483
|
+
other: "单击以重置排序。"
|
|
484
|
+
}
|
|
447
485
|
}
|
|
448
486
|
},
|
|
449
487
|
pagination: {
|
package/menu/definition.cjs
CHANGED
|
@@ -203,6 +203,7 @@ class Menu extends anchored.Anchored(delegatesAria.DelegatesAria(vividElement.Vi
|
|
|
203
203
|
}
|
|
204
204
|
if (focusIndex >= 0 && focusIndex < this.menuItems.length) {
|
|
205
205
|
const child = this.menuItems[focusIndex];
|
|
206
|
+
/* v8 ignore else -- @preserve */
|
|
206
207
|
if (this.focusIndex > -1 && this.menuItems.length >= this.focusIndex - 1) {
|
|
207
208
|
this.menuItems[this.focusIndex].setAttribute("tabindex", "-1");
|
|
208
209
|
}
|
package/menu/definition.js
CHANGED
|
@@ -199,6 +199,7 @@ class Menu extends Anchored(DelegatesAria(VividElement)) {
|
|
|
199
199
|
}
|
|
200
200
|
if (focusIndex >= 0 && focusIndex < this.menuItems.length) {
|
|
201
201
|
const child = this.menuItems[focusIndex];
|
|
202
|
+
/* v8 ignore else -- @preserve */
|
|
202
203
|
if (this.focusIndex > -1 && this.menuItems.length >= this.focusIndex - 1) {
|
|
203
204
|
this.menuItems[this.focusIndex].setAttribute("tabindex", "-1");
|
|
204
205
|
}
|
|
@@ -22,7 +22,7 @@ const localized = require('../unbundled/localized.cjs');
|
|
|
22
22
|
const enums = require('../unbundled/enums.cjs');
|
|
23
23
|
const divider = require('../unbundled/divider.cjs');
|
|
24
24
|
|
|
25
|
-
const styles = ":host{display:inline-block}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.base:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.base.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.base.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.error:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.base.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.base.success:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.base.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.base{--_connotation-color-primary: var(--vvd-text-field-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-text-field-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-text-field-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-text-field-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-firm: var(--vvd-text-field-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-text-field-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-text-field-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-text-field-accent-soft, var(--vvd-color-neutral-100))}.base{--_text-field-gutter-start: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-gutter-end: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 8px;--_text-field-pill-border-radius: 24px;display:inline-grid;width:100%;align-items:center;gap:4px;grid-template-columns:min-content 1fr max-content}.base.size-condensed{--_text-field-gutter-start: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-gutter-end: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-icon-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 4px}@supports (user-select: none){.base{user-select:none}}.base:not(.disabled){--_low-ink-color: var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color: var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important;
|
|
25
|
+
const styles = ".label-wrapper{display:flex;flex-direction:row;align-items:center;gap:var(--label-wrapper-gap, 4px)}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 1 auto}:host{display:inline-block}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.base:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.base.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.base.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.error:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.base.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.base.success:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.base.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.base{--_connotation-color-primary: var(--vvd-text-field-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-text-field-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-text-field-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-text-field-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-firm: var(--vvd-text-field-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-text-field-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-text-field-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-text-field-accent-soft, var(--vvd-color-neutral-100))}.base{--_text-field-gutter-start: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-gutter-end: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 8px;--_text-field-pill-border-radius: 24px;display:inline-grid;width:100%;align-items:center;gap:4px;grid-template-columns:min-content 1fr max-content}.base.size-condensed{--_text-field-gutter-start: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-gutter-end: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-icon-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 4px}@supports (user-select: none){.base{user-select:none}}.base:not(.disabled){--_low-ink-color: var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color: var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important;font:var(--vvd-typography-base);grid-column:1/4;grid-row:1}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-column:1/4;grid-row:1}.char-count+.label-wrapper{grid-column:1/3}.fieldset{position:relative;display:flex;align-items:center;background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);grid-column:1/4;padding-block:0;transition:color .2s,background-color .2s}.fieldset:after{position:absolute;display:block;border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";inline-size:100%;pointer-events:none;transition:box-shadow .2s}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){width:100%!important;box-sizing:border-box!important;border:0 none!important;border-radius:inherit!important;margin:initial!important;appearance:none!important;background-color:transparent!important;block-size:100%!important;color:inherit!important;font:inherit;outline:transparent;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;text-align:inherit}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{position:absolute;z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));line-height:1;transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;position:absolute;z-index:1;display:block;border-radius:inherit;content:\"\";inset:0;pointer-events:none}}:host([internal-part]) .fieldset{background-color:transparent;font:var(--vvd-typography-heading-4);line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}.base{--_text-field-gutter-end: 70px}.control::-webkit-outer-spin-button,.control::-webkit-inner-spin-button{appearance:none}.control-buttons{position:absolute;z-index:1;right:3px;display:flex}.readonly .control-buttons,.disabled .control-buttons{pointer-events:none}.control-buttons .divider{margin-block:8px}.control-buttons>*{flex-shrink:0}";
|
|
26
26
|
|
|
27
27
|
var __defProp = Object.defineProperty;
|
|
28
28
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -372,8 +372,10 @@ const NumberFieldTemplate = (context) => {
|
|
|
372
372
|
const visuallyHiddenTag = context.tagFor(visuallyHidden_definition.VwcVisuallyHiddenElement);
|
|
373
373
|
return fastElement.html`
|
|
374
374
|
<div class="base ${getStateClasses}">
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
<div class="label-wrapper" ?hidden=${(x) => !x.label && !x._hasContextualHelp}>
|
|
376
|
+
${fastElement.when((x) => x.label, renderLabel())}
|
|
377
|
+
<slot name="contextual-help" ${fastElement.slotted("_contextualHelpSlottedContent")}></slot>
|
|
378
|
+
</div>
|
|
377
379
|
<div class="fieldset">
|
|
378
380
|
<div class="wrapper">
|
|
379
381
|
<input
|