@vonage/vivid 5.3.0 → 5.5.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/accordion-item/definition.js +1 -1
- package/alert/definition.cjs +1 -1
- package/alert/definition.js +2 -2
- package/badge/definition.js +1 -1
- package/banner/definition.js +1 -1
- package/bundled/base-color-picker.cjs +18 -13
- package/bundled/base-color-picker.js +98 -81
- package/bundled/calendar-picker.template.cjs +7 -7
- package/bundled/calendar-picker.template.js +102 -102
- package/bundled/char-count.cjs +1 -1
- package/bundled/char-count.js +1 -1
- package/bundled/definition10.cjs +1 -1
- package/bundled/definition10.js +2 -2
- package/bundled/definition11.cjs +12 -19
- package/bundled/definition11.js +87 -66
- package/bundled/definition12.cjs +19 -10
- package/bundled/definition12.js +217 -36
- package/bundled/definition13.cjs +10 -1
- package/bundled/definition13.js +38 -14
- package/bundled/definition14.cjs +1 -5
- package/bundled/definition14.js +15 -24
- package/bundled/definition15.cjs +5 -30
- package/bundled/definition15.js +22 -73
- package/bundled/definition16.cjs +30 -19
- package/bundled/definition16.js +74 -97
- package/bundled/definition17.cjs +19 -13
- package/bundled/definition17.js +83 -117
- package/bundled/definition18.cjs +13 -12
- package/bundled/definition18.js +114 -71
- package/bundled/definition19.cjs +26 -27
- package/bundled/definition19.js +171 -180
- package/bundled/definition2.cjs +9 -9
- package/bundled/definition2.js +84 -129
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -1
- package/bundled/definition6.cjs +3 -3
- package/bundled/definition6.js +19 -19
- package/bundled/definition9.cjs +5 -5
- package/bundled/definition9.js +394 -392
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +82 -102
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +48 -31
- package/bundled/mixins.cjs +1 -1
- package/bundled/mixins.js +1 -1
- package/bundled/picker-field.template.cjs +14 -14
- package/bundled/picker-field.template.js +35 -56
- package/bundled/time-selection-picker.template.cjs +12 -12
- package/bundled/time-selection-picker.template.js +13 -12
- package/bundled/trapped-focus.cjs +1 -0
- package/bundled/trapped-focus.js +26 -0
- package/bundled/vivid-element.cjs +5 -1
- package/bundled/vivid-element.js +401 -358
- package/calendar/index.cjs +13 -13
- package/calendar/index.js +171 -143
- package/card/definition.cjs +1 -1
- package/card/definition.js +1 -1
- package/color-picker/definition.cjs +209 -113
- package/color-picker/definition.js +209 -113
- package/color-picker/index.cjs +104 -75
- package/color-picker/index.js +412 -326
- package/combobox/definition.cjs +7 -27
- package/combobox/definition.js +8 -28
- package/combobox/index.cjs +6 -6
- package/combobox/index.js +57 -71
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/custom-elements.json +354 -2
- package/data-grid/index.cjs +1 -1
- package/data-grid/index.js +1 -1
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +2 -2
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +2 -2
- package/dial-pad/definition.cjs +139 -0
- package/dial-pad/definition.js +139 -0
- package/dial-pad/index.cjs +27 -20
- package/dial-pad/index.js +177 -100
- package/dialog/definition.cjs +2 -2
- package/dialog/definition.js +2 -2
- package/dialog/index.cjs +7 -7
- package/dialog/index.js +6 -6
- package/divider/index.cjs +1 -1
- package/divider/index.js +1 -1
- package/elevation/definition.cjs +1 -1
- package/elevation/definition.js +1 -1
- package/fab/definition.js +1 -1
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/icon/definition.cjs +56 -22
- package/icon/definition.js +56 -22
- package/index.cjs +3 -4
- package/index.js +2 -3
- package/lib/accordion/accordion.d.ts +1 -1
- package/lib/accordion/definition.d.ts +1 -1
- package/lib/audio-player/audio-player.d.ts +1 -1
- package/lib/color-picker/color-picker.d.ts +390 -12
- package/lib/color-picker/locale.d.ts +4 -0
- package/lib/combobox/combobox.d.ts +1 -0
- package/lib/combobox/combobox.options.d.ts +1 -1
- 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/dial-pad/dial-pad.d.ts +1 -0
- package/lib/divider/divider.d.ts +1 -1
- package/lib/icon/icon.d.ts +1 -0
- package/lib/menu-item/menu-item-role.d.ts +1 -1
- package/lib/popup/popup.d.ts +1 -1
- package/lib/searchable-select/locale.d.ts +4 -0
- package/lib/searchable-select/searchable-select.d.ts +3 -0
- package/lib/select/select.d.ts +3 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +2 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +2 -2
- 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/locales/de-DE.cjs +20 -3
- package/locales/de-DE.js +20 -3
- package/locales/en-GB.cjs +21 -4
- package/locales/en-GB.js +21 -4
- package/locales/en-US.cjs +21 -4
- package/locales/en-US.js +21 -4
- package/locales/ja-JP.cjs +20 -3
- package/locales/ja-JP.js +20 -3
- package/locales/zh-CN.cjs +19 -2
- package/locales/zh-CN.js +19 -2
- package/menu/definition.cjs +4 -4
- package/menu/definition.js +4 -4
- package/nav-disclosure/definition.js +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.js +1 -1
- package/number-field/definition.js +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +3 -3
- package/option/definition.cjs +6 -77
- package/option/definition.js +3 -78
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +31 -5
- package/popup/definition.cjs +2 -2
- package/popup/definition.js +2 -2
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.cjs +1 -1
- package/radio-group/index.js +1 -1
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/rich-text-editor/definition.cjs +2 -3
- package/rich-text-editor/definition.js +1 -2
- package/rich-text-editor/index.cjs +27 -27
- package/rich-text-editor/index.js +1209 -1199
- package/searchable-select/definition.cjs +103 -11
- package/searchable-select/definition.js +103 -11
- package/searchable-select/index.cjs +81 -69
- package/searchable-select/index.js +359 -273
- package/select/definition.cjs +30 -44
- package/select/definition.js +30 -44
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +2 -2
- package/shared/aria/aria-mixin.d.ts +1 -1
- package/shared/color-picker/base-color-picker.d.ts +2 -1
- package/shared/foundation/listbox/listbox.d.ts +4 -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/simple-color-picker/definition.cjs +9 -7
- package/simple-color-picker/definition.js +9 -7
- package/simple-color-picker/index.cjs +6 -6
- package/simple-color-picker/index.js +41 -39
- package/slider/definition.cjs +1 -1
- package/slider/definition.js +1 -1
- package/split-button/definition.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -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/tab/definition.js +1 -1
- package/tag/definition.cjs +34 -14
- package/tag/definition.js +35 -15
- package/tag/index.cjs +25 -12
- package/tag/index.js +64 -47
- package/tag-group/definition.cjs +1 -2
- package/tag-group/definition.js +1 -2
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +11 -12
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +2 -2
- package/text-field/definition.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +1 -1
- package/toggletip/definition.cjs +1 -1
- package/toggletip/definition.js +1 -1
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +1 -1
- package/tooltip/definition.cjs +3 -3
- package/tooltip/definition.js +3 -3
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/unbundled/affix.js +1 -1
- package/unbundled/base-color-picker.cjs +36 -18
- package/unbundled/base-color-picker.js +36 -18
- package/unbundled/calendar-picker.template.cjs +2 -2
- package/unbundled/calendar-picker.template.js +2 -2
- package/unbundled/definition.js +1 -1
- package/unbundled/definition2.js +1 -1
- package/unbundled/definition3.cjs +222 -141
- package/unbundled/definition3.js +220 -139
- package/unbundled/definition4.cjs +145 -235
- package/unbundled/definition4.js +143 -233
- package/unbundled/definition5.cjs +269 -27
- package/unbundled/definition5.js +267 -26
- package/unbundled/definition6.cjs +56 -0
- package/unbundled/definition6.js +52 -0
- package/unbundled/listbox.cjs +41 -63
- package/unbundled/listbox.js +39 -61
- package/unbundled/picker-field.template.cjs +3 -36
- package/unbundled/picker-field.template.js +3 -35
- package/unbundled/slider.template.cjs +1 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +2 -1
- package/unbundled/time-selection-picker.template.js +2 -1
- package/unbundled/trapped-focus.cjs +37 -0
- package/unbundled/trapped-focus.js +34 -0
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/video-player/definition.cjs +56 -16
- package/video-player/definition.js +56 -16
- package/video-player/index.cjs +36 -36
- package/video-player/index.js +2461 -2445
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +1 -1
- package/vivid.api.json +285 -38
- package/bundled/_has.cjs +0 -1
- package/bundled/_has.js +0 -34
- package/bundled/option.cjs +0 -1
- package/bundled/option.js +0 -158
- package/unbundled/option.cjs +0 -217
- package/unbundled/option.js +0 -214
package/custom-elements.json
CHANGED
|
@@ -7964,6 +7964,10 @@
|
|
|
7964
7964
|
"name": "DelegatesAria",
|
|
7965
7965
|
"module": "/src/shared/aria/delegates-aria"
|
|
7966
7966
|
},
|
|
7967
|
+
{
|
|
7968
|
+
"name": "TrappedFocus",
|
|
7969
|
+
"module": "/src/shared/patterns"
|
|
7970
|
+
},
|
|
7967
7971
|
{
|
|
7968
7972
|
"name": "BaseColorPicker",
|
|
7969
7973
|
"module": "/src/shared/color-picker"
|
|
@@ -8300,6 +8304,28 @@
|
|
|
8300
8304
|
"description": "Filter available options by text value.",
|
|
8301
8305
|
"privacy": "public"
|
|
8302
8306
|
},
|
|
8307
|
+
{
|
|
8308
|
+
"kind": "method",
|
|
8309
|
+
"name": "_isDefaultSelected",
|
|
8310
|
+
"privacy": "protected",
|
|
8311
|
+
"parameters": [
|
|
8312
|
+
{
|
|
8313
|
+
"name": "option",
|
|
8314
|
+
"type": {
|
|
8315
|
+
"text": "ListboxOption"
|
|
8316
|
+
}
|
|
8317
|
+
}
|
|
8318
|
+
],
|
|
8319
|
+
"return": {
|
|
8320
|
+
"type": {
|
|
8321
|
+
"text": "boolean"
|
|
8322
|
+
}
|
|
8323
|
+
},
|
|
8324
|
+
"inheritedFrom": {
|
|
8325
|
+
"name": "Listbox",
|
|
8326
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
8327
|
+
}
|
|
8328
|
+
},
|
|
8303
8329
|
{
|
|
8304
8330
|
"kind": "field",
|
|
8305
8331
|
"name": "helperText",
|
|
@@ -8645,6 +8671,45 @@
|
|
|
8645
8671
|
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
8646
8672
|
}
|
|
8647
8673
|
},
|
|
8674
|
+
{
|
|
8675
|
+
"kind": "method",
|
|
8676
|
+
"name": "getNextSelectableIndex",
|
|
8677
|
+
"privacy": "protected",
|
|
8678
|
+
"parameters": [
|
|
8679
|
+
{
|
|
8680
|
+
"name": "fromIndex",
|
|
8681
|
+
"type": {
|
|
8682
|
+
"text": "number"
|
|
8683
|
+
}
|
|
8684
|
+
}
|
|
8685
|
+
],
|
|
8686
|
+
"inheritedFrom": {
|
|
8687
|
+
"name": "Listbox",
|
|
8688
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
8689
|
+
}
|
|
8690
|
+
},
|
|
8691
|
+
{
|
|
8692
|
+
"kind": "method",
|
|
8693
|
+
"name": "_validSelectedIndex",
|
|
8694
|
+
"privacy": "protected",
|
|
8695
|
+
"return": {
|
|
8696
|
+
"type": {
|
|
8697
|
+
"text": "number"
|
|
8698
|
+
}
|
|
8699
|
+
},
|
|
8700
|
+
"parameters": [
|
|
8701
|
+
{
|
|
8702
|
+
"name": "index",
|
|
8703
|
+
"type": {
|
|
8704
|
+
"text": "number"
|
|
8705
|
+
}
|
|
8706
|
+
}
|
|
8707
|
+
],
|
|
8708
|
+
"inheritedFrom": {
|
|
8709
|
+
"name": "Listbox",
|
|
8710
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
8711
|
+
}
|
|
8712
|
+
},
|
|
8648
8713
|
{
|
|
8649
8714
|
"kind": "method",
|
|
8650
8715
|
"name": "selectFirstOption",
|
|
@@ -8660,6 +8725,40 @@
|
|
|
8660
8725
|
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
8661
8726
|
}
|
|
8662
8727
|
},
|
|
8728
|
+
{
|
|
8729
|
+
"kind": "method",
|
|
8730
|
+
"name": "_newDefaultSelectedIndex",
|
|
8731
|
+
"privacy": "protected",
|
|
8732
|
+
"return": {
|
|
8733
|
+
"type": {
|
|
8734
|
+
"text": "number | null"
|
|
8735
|
+
}
|
|
8736
|
+
},
|
|
8737
|
+
"parameters": [
|
|
8738
|
+
{
|
|
8739
|
+
"name": "prev",
|
|
8740
|
+
"type": {
|
|
8741
|
+
"text": "ListboxOption[]"
|
|
8742
|
+
}
|
|
8743
|
+
},
|
|
8744
|
+
{
|
|
8745
|
+
"name": "next",
|
|
8746
|
+
"type": {
|
|
8747
|
+
"text": "ListboxOption[]"
|
|
8748
|
+
}
|
|
8749
|
+
},
|
|
8750
|
+
{
|
|
8751
|
+
"name": "currentSelectedIndex",
|
|
8752
|
+
"type": {
|
|
8753
|
+
"text": "number"
|
|
8754
|
+
}
|
|
8755
|
+
}
|
|
8756
|
+
],
|
|
8757
|
+
"inheritedFrom": {
|
|
8758
|
+
"name": "Listbox",
|
|
8759
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
8760
|
+
}
|
|
8761
|
+
},
|
|
8663
8762
|
{
|
|
8664
8763
|
"kind": "method",
|
|
8665
8764
|
"name": "setSelectedOptions",
|
|
@@ -13314,6 +13413,11 @@
|
|
|
13314
13413
|
"description": "The aria-label for the delete button",
|
|
13315
13414
|
"privacy": "public"
|
|
13316
13415
|
},
|
|
13416
|
+
{
|
|
13417
|
+
"kind": "method",
|
|
13418
|
+
"name": "_clearLongPressTimer",
|
|
13419
|
+
"privacy": "private"
|
|
13420
|
+
},
|
|
13317
13421
|
{
|
|
13318
13422
|
"kind": "field",
|
|
13319
13423
|
"name": "autofocus",
|
|
@@ -16709,6 +16813,29 @@
|
|
|
16709
16813
|
"kind": "javascript-module",
|
|
16710
16814
|
"path": "src/lib/icon/icon.ts",
|
|
16711
16815
|
"declarations": [
|
|
16816
|
+
{
|
|
16817
|
+
"kind": "function",
|
|
16818
|
+
"name": "resolveIcon",
|
|
16819
|
+
"return": {
|
|
16820
|
+
"type": {
|
|
16821
|
+
"text": "Promise<string>"
|
|
16822
|
+
}
|
|
16823
|
+
},
|
|
16824
|
+
"parameters": [
|
|
16825
|
+
{
|
|
16826
|
+
"name": "iconId",
|
|
16827
|
+
"type": {
|
|
16828
|
+
"text": "string | undefined"
|
|
16829
|
+
}
|
|
16830
|
+
},
|
|
16831
|
+
{
|
|
16832
|
+
"name": "signal",
|
|
16833
|
+
"type": {
|
|
16834
|
+
"text": "AbortSignal"
|
|
16835
|
+
}
|
|
16836
|
+
}
|
|
16837
|
+
]
|
|
16838
|
+
},
|
|
16712
16839
|
{
|
|
16713
16840
|
"kind": "class",
|
|
16714
16841
|
"description": "",
|
|
@@ -16774,6 +16901,15 @@
|
|
|
16774
16901
|
},
|
|
16775
16902
|
"default": "false"
|
|
16776
16903
|
},
|
|
16904
|
+
{
|
|
16905
|
+
"kind": "field",
|
|
16906
|
+
"name": "#currentRequestId",
|
|
16907
|
+
"privacy": "private",
|
|
16908
|
+
"type": {
|
|
16909
|
+
"text": "number"
|
|
16910
|
+
},
|
|
16911
|
+
"default": "0"
|
|
16912
|
+
},
|
|
16777
16913
|
{
|
|
16778
16914
|
"kind": "field",
|
|
16779
16915
|
"name": "label",
|
|
@@ -16896,6 +17032,14 @@
|
|
|
16896
17032
|
}
|
|
16897
17033
|
],
|
|
16898
17034
|
"exports": [
|
|
17035
|
+
{
|
|
17036
|
+
"kind": "js",
|
|
17037
|
+
"name": "resolveIcon",
|
|
17038
|
+
"declaration": {
|
|
17039
|
+
"name": "resolveIcon",
|
|
17040
|
+
"module": "src/lib/icon/icon.ts"
|
|
17041
|
+
}
|
|
17042
|
+
},
|
|
16899
17043
|
{
|
|
16900
17044
|
"kind": "js",
|
|
16901
17045
|
"name": "Icon",
|
|
@@ -25580,6 +25724,34 @@
|
|
|
25580
25724
|
"kind": "method",
|
|
25581
25725
|
"name": "#updateSelectionLimit"
|
|
25582
25726
|
},
|
|
25727
|
+
{
|
|
25728
|
+
"kind": "field",
|
|
25729
|
+
"name": "enableSelectAll",
|
|
25730
|
+
"type": {
|
|
25731
|
+
"text": "boolean"
|
|
25732
|
+
},
|
|
25733
|
+
"default": "false",
|
|
25734
|
+
"description": "Adds a \"Select All\" option at the top of the options list.",
|
|
25735
|
+
"privacy": "public"
|
|
25736
|
+
},
|
|
25737
|
+
{
|
|
25738
|
+
"kind": "field",
|
|
25739
|
+
"name": "selectAllText",
|
|
25740
|
+
"type": {
|
|
25741
|
+
"text": "string | undefined"
|
|
25742
|
+
},
|
|
25743
|
+
"description": "Overrides the default \"Select All\" text",
|
|
25744
|
+
"privacy": "public"
|
|
25745
|
+
},
|
|
25746
|
+
{
|
|
25747
|
+
"kind": "field",
|
|
25748
|
+
"name": "deselectAllText",
|
|
25749
|
+
"type": {
|
|
25750
|
+
"text": "string | undefined"
|
|
25751
|
+
},
|
|
25752
|
+
"description": "Overrides the default \"Deselect All\" text",
|
|
25753
|
+
"privacy": "public"
|
|
25754
|
+
},
|
|
25583
25755
|
{
|
|
25584
25756
|
"kind": "method",
|
|
25585
25757
|
"name": "#determineInitialValues"
|
|
@@ -26056,6 +26228,31 @@
|
|
|
26056
26228
|
"default": "null",
|
|
26057
26229
|
"fieldName": "maxSelected"
|
|
26058
26230
|
},
|
|
26231
|
+
{
|
|
26232
|
+
"name": "enable-select-all",
|
|
26233
|
+
"type": {
|
|
26234
|
+
"text": "boolean"
|
|
26235
|
+
},
|
|
26236
|
+
"default": "false",
|
|
26237
|
+
"description": "Adds a \"Select All\" option at the top of the options list.",
|
|
26238
|
+
"fieldName": "enableSelectAll"
|
|
26239
|
+
},
|
|
26240
|
+
{
|
|
26241
|
+
"name": "select-all-text",
|
|
26242
|
+
"type": {
|
|
26243
|
+
"text": "string | undefined"
|
|
26244
|
+
},
|
|
26245
|
+
"description": "Overrides the default \"Select All\" text",
|
|
26246
|
+
"fieldName": "selectAllText"
|
|
26247
|
+
},
|
|
26248
|
+
{
|
|
26249
|
+
"name": "deselect-all-text",
|
|
26250
|
+
"type": {
|
|
26251
|
+
"text": "string | undefined"
|
|
26252
|
+
},
|
|
26253
|
+
"description": "Overrides the default \"Deselect All\" text",
|
|
26254
|
+
"fieldName": "deselectAllText"
|
|
26255
|
+
},
|
|
26059
26256
|
{
|
|
26060
26257
|
"name": "helper-text",
|
|
26061
26258
|
"type": {
|
|
@@ -26498,11 +26695,53 @@
|
|
|
26498
26695
|
},
|
|
26499
26696
|
{
|
|
26500
26697
|
"kind": "method",
|
|
26501
|
-
"name": "
|
|
26698
|
+
"name": "_newDefaultSelectedIndex",
|
|
26699
|
+
"privacy": "protected",
|
|
26502
26700
|
"return": {
|
|
26503
26701
|
"type": {
|
|
26504
|
-
"text": "
|
|
26702
|
+
"text": "number | null"
|
|
26703
|
+
}
|
|
26704
|
+
},
|
|
26705
|
+
"parameters": [
|
|
26706
|
+
{
|
|
26707
|
+
"name": "prev",
|
|
26708
|
+
"type": {
|
|
26709
|
+
"text": "ListboxOption[]"
|
|
26710
|
+
}
|
|
26711
|
+
},
|
|
26712
|
+
{
|
|
26713
|
+
"name": "next",
|
|
26714
|
+
"type": {
|
|
26715
|
+
"text": "ListboxOption[]"
|
|
26716
|
+
}
|
|
26717
|
+
},
|
|
26718
|
+
{
|
|
26719
|
+
"name": "currentSelectIndex",
|
|
26720
|
+
"type": {
|
|
26721
|
+
"text": "number"
|
|
26722
|
+
}
|
|
26505
26723
|
}
|
|
26724
|
+
],
|
|
26725
|
+
"inheritedFrom": {
|
|
26726
|
+
"name": "Listbox",
|
|
26727
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
26728
|
+
}
|
|
26729
|
+
},
|
|
26730
|
+
{
|
|
26731
|
+
"kind": "method",
|
|
26732
|
+
"name": "_isDefaultSelected",
|
|
26733
|
+
"privacy": "protected",
|
|
26734
|
+
"parameters": [
|
|
26735
|
+
{
|
|
26736
|
+
"name": "option",
|
|
26737
|
+
"type": {
|
|
26738
|
+
"text": "ListboxOption"
|
|
26739
|
+
}
|
|
26740
|
+
}
|
|
26741
|
+
],
|
|
26742
|
+
"inheritedFrom": {
|
|
26743
|
+
"name": "Listbox",
|
|
26744
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
26506
26745
|
}
|
|
26507
26746
|
},
|
|
26508
26747
|
{
|
|
@@ -26919,6 +27158,45 @@
|
|
|
26919
27158
|
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
26920
27159
|
}
|
|
26921
27160
|
},
|
|
27161
|
+
{
|
|
27162
|
+
"kind": "method",
|
|
27163
|
+
"name": "getNextSelectableIndex",
|
|
27164
|
+
"privacy": "protected",
|
|
27165
|
+
"parameters": [
|
|
27166
|
+
{
|
|
27167
|
+
"name": "fromIndex",
|
|
27168
|
+
"type": {
|
|
27169
|
+
"text": "number"
|
|
27170
|
+
}
|
|
27171
|
+
}
|
|
27172
|
+
],
|
|
27173
|
+
"inheritedFrom": {
|
|
27174
|
+
"name": "Listbox",
|
|
27175
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
27176
|
+
}
|
|
27177
|
+
},
|
|
27178
|
+
{
|
|
27179
|
+
"kind": "method",
|
|
27180
|
+
"name": "_validSelectedIndex",
|
|
27181
|
+
"privacy": "protected",
|
|
27182
|
+
"return": {
|
|
27183
|
+
"type": {
|
|
27184
|
+
"text": "number"
|
|
27185
|
+
}
|
|
27186
|
+
},
|
|
27187
|
+
"parameters": [
|
|
27188
|
+
{
|
|
27189
|
+
"name": "index",
|
|
27190
|
+
"type": {
|
|
27191
|
+
"text": "number"
|
|
27192
|
+
}
|
|
27193
|
+
}
|
|
27194
|
+
],
|
|
27195
|
+
"inheritedFrom": {
|
|
27196
|
+
"name": "Listbox",
|
|
27197
|
+
"module": "src/shared/foundation/listbox/listbox.ts"
|
|
27198
|
+
}
|
|
27199
|
+
},
|
|
26922
27200
|
{
|
|
26923
27201
|
"kind": "method",
|
|
26924
27202
|
"name": "selectFirstOption",
|
|
@@ -38795,6 +39073,37 @@
|
|
|
38795
39073
|
],
|
|
38796
39074
|
"privacy": "public"
|
|
38797
39075
|
},
|
|
39076
|
+
{
|
|
39077
|
+
"kind": "method",
|
|
39078
|
+
"name": "getNextSelectableIndex",
|
|
39079
|
+
"privacy": "protected",
|
|
39080
|
+
"parameters": [
|
|
39081
|
+
{
|
|
39082
|
+
"name": "fromIndex",
|
|
39083
|
+
"type": {
|
|
39084
|
+
"text": "number"
|
|
39085
|
+
}
|
|
39086
|
+
}
|
|
39087
|
+
]
|
|
39088
|
+
},
|
|
39089
|
+
{
|
|
39090
|
+
"kind": "method",
|
|
39091
|
+
"name": "_validSelectedIndex",
|
|
39092
|
+
"privacy": "protected",
|
|
39093
|
+
"return": {
|
|
39094
|
+
"type": {
|
|
39095
|
+
"text": "number"
|
|
39096
|
+
}
|
|
39097
|
+
},
|
|
39098
|
+
"parameters": [
|
|
39099
|
+
{
|
|
39100
|
+
"name": "index",
|
|
39101
|
+
"type": {
|
|
39102
|
+
"text": "number"
|
|
39103
|
+
}
|
|
39104
|
+
}
|
|
39105
|
+
]
|
|
39106
|
+
},
|
|
38798
39107
|
{
|
|
38799
39108
|
"kind": "method",
|
|
38800
39109
|
"name": "selectFirstOption",
|
|
@@ -38806,6 +39115,49 @@
|
|
|
38806
39115
|
"description": "Moves focus to the first selectable option.",
|
|
38807
39116
|
"privacy": "public"
|
|
38808
39117
|
},
|
|
39118
|
+
{
|
|
39119
|
+
"kind": "method",
|
|
39120
|
+
"name": "_newDefaultSelectedIndex",
|
|
39121
|
+
"privacy": "protected",
|
|
39122
|
+
"return": {
|
|
39123
|
+
"type": {
|
|
39124
|
+
"text": "number | null"
|
|
39125
|
+
}
|
|
39126
|
+
},
|
|
39127
|
+
"parameters": [
|
|
39128
|
+
{
|
|
39129
|
+
"name": "prev",
|
|
39130
|
+
"type": {
|
|
39131
|
+
"text": "ListboxOption[]"
|
|
39132
|
+
}
|
|
39133
|
+
},
|
|
39134
|
+
{
|
|
39135
|
+
"name": "next",
|
|
39136
|
+
"type": {
|
|
39137
|
+
"text": "ListboxOption[]"
|
|
39138
|
+
}
|
|
39139
|
+
},
|
|
39140
|
+
{
|
|
39141
|
+
"name": "currentSelectedIndex",
|
|
39142
|
+
"type": {
|
|
39143
|
+
"text": "number"
|
|
39144
|
+
}
|
|
39145
|
+
}
|
|
39146
|
+
]
|
|
39147
|
+
},
|
|
39148
|
+
{
|
|
39149
|
+
"kind": "method",
|
|
39150
|
+
"name": "_isDefaultSelected",
|
|
39151
|
+
"privacy": "protected",
|
|
39152
|
+
"parameters": [
|
|
39153
|
+
{
|
|
39154
|
+
"name": "option",
|
|
39155
|
+
"type": {
|
|
39156
|
+
"text": "ListboxOption"
|
|
39157
|
+
}
|
|
39158
|
+
}
|
|
39159
|
+
]
|
|
39160
|
+
},
|
|
38809
39161
|
{
|
|
38810
39162
|
"kind": "method",
|
|
38811
39163
|
"name": "setSelectedOptions",
|
package/data-grid/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const S=require("../bundled/definition2.cjs"),n=require("../bundled/vivid-element.cjs"),H=require("../bundled/
|
|
1
|
+
"use strict";const S=require("../bundled/definition2.cjs"),n=require("../bundled/vivid-element.cjs"),H=require("../bundled/definition14.cjs"),O=require("../bundled/repeat.cjs"),_=require("../bundled/normalize.cjs"),u=require("../bundled/key-codes.cjs"),T=require("../bundled/host-semantics.cjs"),z=require("../bundled/children.cjs"),x=require("../bundled/slotted.cjs"),q=require("../bundled/localized.cjs"),G=require("../bundled/class-names.cjs"),A=require("../bundled/when.cjs"),$="focus",F="focusin",C="focusout",w="keydown",P=":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.base{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.base{position:relative;overflow:auto;block-size:inherit;inline-size:100%;max-block-size:inherit}",L=".base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-row-cta-firm, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-data-grid-row-cta-soft, var(--vvd-color-cta-100));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-row-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-data-grid-row-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_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(--_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(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}:host([row-type=sticky-header]) .base{position:sticky;z-index:9;top:0;background:var(--data-grid-row-background, var(--vvd-color-canvas))}:host([row-type=hidden-header]) .base{display:none}:host(:is([selected]):not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}",M=':host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){position:sticky;z-index:5;background:var(--data-grid-cell-background, var(--vvd-color-surface-2dp))}:host([data-fixed]):before{position:absolute;z-index:1;top:0;right:0;width:1px;block-size:100%;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d;content:"";pointer-events:none}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-cell-cta-firm, var(--vvd-color-cta-600));--_connotation-color-soft: var(--vvd-data-grid-cell-cta-soft, var(--vvd-color-cta-100));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-cell-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-data-grid-cell-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_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(--_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(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:flex;box-sizing:border-box;align-items:center;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size, var(--_data-grid-cell-default-block-size));color:var(--_appearance-color-text);font:var(--vvd-typography-base);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-block:13px 14px;padding-inline:12px}:host(:focus-visible) .base{--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))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_data-grid-cell-default-white-space: nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size: 100%;--_data-grid-cell-default-white-space: normal}:host(:is([selected]):not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}slot{display:block;overflow:hidden;text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space, var(--_data-grid-cell-default-white-space))}:host(:not([cell-type=columnheader][aria-sort])) slot{inline-size:100%}.header-icon{margin-inline-start:16px}',D={none:"none",ascending:"ascending",descending:"descending",other:"other"},g={none:"none",default:"default",sticky:"sticky"},v={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},p={default:"default",header:"header",stickyHeader:"sticky-header"},R={columnheader:"columnheader",rowheader:"rowheader",default:"gridcell"};var U=Object.defineProperty,b=(i,e,t,l)=>{for(var o=void 0,r=i.length-1,a;r>=0;r--)(a=i[r])&&(o=a(e,t,o)||o);return o&&U(e,t,o),o};const V=n.html`
|
|
2
2
|
<template>
|
|
3
3
|
${i=>i.rowData===null||i.columnDefinition===null||i.columnDefinition.columnDataKey===null?null:i.rowData[i.columnDefinition.columnDataKey]}
|
|
4
4
|
</template>
|
package/data-grid/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as j, i as N } from "../bundled/definition2.js";
|
|
2
2
|
import { V as E, h as f, a as m, o as a, b as z, U as x, O as R, n as W, c as J, d as F } from "../bundled/vivid-element.js";
|
|
3
|
-
import { V as X, v as Y } from "../bundled/
|
|
3
|
+
import { V as X, v as Y } from "../bundled/definition14.js";
|
|
4
4
|
import { R as G } from "../bundled/repeat.js";
|
|
5
5
|
import { n as D } from "../bundled/normalize.js";
|
|
6
6
|
import { d as Z, e as ee, f as A, k as P, a as L, g as te, h as oe, i as le, j as ie, b as ne, c as ae, l as re } from "../bundled/key-codes.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const popup_definition = require('../unbundled/
|
|
5
|
+
const popup_definition = require('../unbundled/definition5.cjs');
|
|
6
6
|
const button_definition = require('../unbundled/definition.cjs');
|
|
7
7
|
const textField_definition = require('../text-field/definition.cjs');
|
|
8
8
|
const divider_definition = require('../divider/definition.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as popupDefinition } from '../unbundled/
|
|
1
|
+
import { p as popupDefinition } from '../unbundled/definition5.js';
|
|
2
2
|
import { b as buttonDefinition } from '../unbundled/definition.js';
|
|
3
3
|
import { textFieldDefinition } from '../text-field/definition.js';
|
|
4
4
|
import { dividerDefinition } from '../divider/definition.js';
|
package/date-picker/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("../bundled/definition9.cjs"),d=require("../bundled/definition3.cjs"),p=require("../bundled/definition10.cjs"),P=require("../bundled/
|
|
1
|
+
"use strict";const u=require("../bundled/definition9.cjs"),d=require("../bundled/definition3.cjs"),p=require("../bundled/definition10.cjs"),P=require("../bundled/definition15.cjs"),l=require("../bundled/picker-field.template.cjs"),t=require("../bundled/calendar-picker.template.cjs"),o=require("../bundled/vivid-element.cjs"),k=require("../bundled/definition14.cjs"),h=require("../bundled/single-value-picker.cjs"),_=require("../bundled/single-date-picker.cjs");var D=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=(i,e,a,q)=>{for(var r=f(e,a),n=i.length-1,c;n>=0;n--)(c=i[n])&&(r=c(e,a,r)||r);return r&&D(e,a,r),r};class s extends _.SingleDatePickerMixin(h.SingleValuePicker(t.MinMaxCalendarPicker(t.CalendarPicker(l.PickerField)))){constructor(){super(),this._isValidValue=t.isValidDateStr,this._textFieldSize="20",this.proxy.type="date"}_toPresentationValue(e){return t.formatPresentationDate(e,this.locale.calendarPicker)}_parsePresentationValue(e){return t.parsePresentationDate(e,this.locale.calendarPicker)}_dateValue(){return this.value}_withUpdatedDate(e){return e}get _pickerButtonLabel(){return this.value?this.locale.calendarPicker.changeDateLabel(this._toPresentationValue(this.value)):this.locale.calendarPicker.chooseDateLabel}get _dialogLabel(){return this.locale.calendarPicker.chooseDateLabel}get _textFieldPlaceholder(){return this.locale.calendarPicker.dateFormatPlaceholder}_onDateClick(e){super._onDateClick(e),this._closePopup()}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.calendarPicker.invalidDateError:null}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll("button, .vwc-button")}get _pickerButtonIcon(){return"calendar-line"}}g([o.volatile],s.prototype,"_pickerButtonLabel");const v=i=>l.PickerFieldTemplate(i,t.CalendarPickerTemplate(i),{withSeparator:!1,padded:!0}),b=o.defineVividComponent("date-picker",s,v,[d.buttonDefinition,u.popupDefinition,p.textFieldDefinition,P.dividerDefinition,k.visuallyHiddenDefinition],{styles:[l.pickerFieldStyles,t.calendarStyles],shadowOptions:{delegatesFocus:!0}}),V=o.createRegisterFunction(b);V();
|
package/date-picker/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { p as n } from "../bundled/definition9.js";
|
|
2
2
|
import { b as s } from "../bundled/definition3.js";
|
|
3
3
|
import { t as c } from "../bundled/definition10.js";
|
|
4
|
-
import { d } from "../bundled/
|
|
4
|
+
import { d } from "../bundled/definition15.js";
|
|
5
5
|
import { P as u, a as p, p as P } from "../bundled/picker-field.template.js";
|
|
6
6
|
import { M as f, C as h, i as m, f as _, p as k, a as D, c as v } from "../bundled/calendar-picker.template.js";
|
|
7
7
|
import { v as g, c as b, d as V } from "../bundled/vivid-element.js";
|
|
8
|
-
import { v as S } from "../bundled/
|
|
8
|
+
import { v as S } from "../bundled/definition14.js";
|
|
9
9
|
import { S as C } from "../bundled/single-value-picker.js";
|
|
10
10
|
import { S as F } from "../bundled/single-date-picker.js";
|
|
11
11
|
var y = Object.defineProperty, w = Object.getOwnPropertyDescriptor, x = (t, e, r, M) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const button_definition = require('../unbundled/definition.cjs');
|
|
6
|
-
const popup_definition = require('../unbundled/
|
|
6
|
+
const popup_definition = require('../unbundled/definition5.cjs');
|
|
7
7
|
const textField_definition = require('../text-field/definition.cjs');
|
|
8
8
|
const divider_definition = require('../divider/definition.cjs');
|
|
9
9
|
const vividElement = require('../unbundled/vivid-element.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as buttonDefinition } from '../unbundled/definition.js';
|
|
2
|
-
import { p as popupDefinition } from '../unbundled/
|
|
2
|
+
import { p as popupDefinition } from '../unbundled/definition5.js';
|
|
3
3
|
import { textFieldDefinition } from '../text-field/definition.js';
|
|
4
4
|
import { dividerDefinition } from '../divider/definition.js';
|
|
5
5
|
import { d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("../bundled/definition3.cjs"),_=require("../bundled/definition9.cjs"),D=require("../bundled/definition10.cjs"),P=require("../bundled/
|
|
1
|
+
"use strict";const m=require("../bundled/definition3.cjs"),_=require("../bundled/definition9.cjs"),D=require("../bundled/definition10.cjs"),P=require("../bundled/definition15.cjs"),n=require("../bundled/vivid-element.cjs"),u=require("../bundled/picker-field.template.cjs"),r=require("../bundled/calendar-picker.template.cjs"),g=require("../bundled/definition14.cjs"),c=(i,t)=>`${i} – ${t}`,p=(i,t)=>c(r.formatPresentationDate(i.start,t),r.formatPresentationDate(i.end,t)),f=(i,t)=>{const e=i.trim().split(/[\s—–-]+/);if(e.length!==2)throw new Error(`Invalid date range: ${i}`);const[a,s]=e.map(h=>r.parsePresentationDate(h,t));return{start:a,end:s}};var V=Object.defineProperty,k=Object.getOwnPropertyDescriptor,o=(i,t,e,a)=>{for(var s=a>1?void 0:a?k(t,e):t,h=i.length-1,d;h>=0;h--)(d=i[h])&&(s=(a?d(t,e,s):d(s))||s);return a&&s&&V(t,e,s),s};const v=i=>typeof i=="string";function b(i){return!!i}class l extends r.MinMaxCalendarPicker(r.CalendarPicker(u.PickerField)){constructor(){super(...arguments),this.initialStart="",this.initialEnd="",this.#e=!1,this.start="",this.end="",this.setFormValue=(t,e)=>{v(t)||super.setFormValue(t,e)},this._numCalendars=2,this._hideDatesOutsideMonth=!0,this._textFieldSize="30"}initialStartChanged(){this.dirtyValue||(this.start=this.initialStart,this.dirtyValue=!1)}initialEndChanged(){this.dirtyValue||(this.end=this.initialEnd,this.dirtyValue=!1)}#e;startChanged(){if(this.start&&!r.isValidDateStr(this.start)){this.start="";return}this.currentStart=this.start,this.dirtyValue=!0,this.#e||this.#i()}endChanged(){if(this.end&&!r.isValidDateStr(this.end)){this.end="";return}this.currentEnd=this.end,this.dirtyValue=!0,this.#e||this.#i()}currentStartChanged(){this.start=this.currentStart}currentEndChanged(){this.end=this.currentEnd}#t(t){this.#e=!0,t.start!==void 0&&(this.start=t.start,this.$emit("input:start")),t.end!==void 0&&(this.end=t.end,this.$emit("input:end")),this.#e=!1,this.$emit("input"),this.$emit("change"),this.#i()}#i(){if(this.start&&this.end){if(r.compareDateStr(this.start,this.end)>0){this.#t({start:this.end,end:this.start});return}this.value=c(this.start,this.end)}else this.value="";this._updatePresentationValue();const t=this.start||this.end;t&&this._adjustSelectedMonthToEnsureVisibilityOf(t),this.#a()}_updatePresentationValue(){this.start&&this.end?this._presentationValue=p({start:this.start,end:this.end},this.locale.calendarPicker):this._presentationValue=""}nameChanged(t,e){super.nameChanged(t,e),this.#a()}#a(){if(!this.name||!this.start||!this.end)this.setFormValue(null);else{const t=new FormData;t.append(this.name,this.start),t.append(this.name,this.end),this.setFormValue(t)}}connectedCallback(){super.connectedCallback(),this.start||(this.start=this.initialStart),this.end||(this.end=this.initialEnd)}#r(){const t=[this.start,this.end].filter(b),e=t.length===1;this._hoverDate&&e&&t.push(this._hoverDate);const[a,s]=t.sort(r.compareDateStr);return{start:a,end:s}}_isDateAriaSelected(t){return this._isDateInSelectedRange(t)}_isDateInSelectedRange(t){const{start:e,end:a}=this.#r();return e&&a?r.compareDateStr(t,e)>=0&&r.compareDateStr(t,a)<=0:!1}_isDateRangeStart(t){return t===this.#r().start}_isDateRangeEnd(t){return t===this.#r().end}_getSelectedDates(){const t=[];return this.start&&t.push(this.start),this.end&&t.push(this.end),t}_onDateClick(t){this.start&&this.end?this.#t({start:t,end:""}):this.start?(this.#t({end:t}),this._closePopup()):this.end?(this.#t({start:t}),this._closePopup()):this.#t({start:t})}get _textFieldPlaceholder(){return c(this.locale.calendarPicker.dateFormatPlaceholder,this.locale.calendarPicker.dateFormatPlaceholder)}_onTextFieldChange(){if(this._presentationValue===""){this.#t({start:"",end:""});return}try{const{start:t,end:e}=f(this._presentationValue,this.locale.calendarPicker);this.#t({start:t,end:e})}catch{const e=this._presentationValue;this.#t({start:"",end:""}),this._presentationValue=e;return}}_onDateMouseEnter(t){this._hoverDate=t}_onDateMouseLeave(){this._hoverDate=void 0}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.calendarPicker.invalidDateRangeError:this.min&&this.start&&r.compareDateStr(this.start,this.min)<0?this.locale.calendarPicker.startDateAfterMinDateError(r.formatPresentationDate(this.min,this.locale.calendarPicker)):this.max&&this.end&&r.compareDateStr(this.end,this.max)>0?this.locale.calendarPicker.endDateBeforeMaxDateError(r.formatPresentationDate(this.max,this.locale.calendarPicker)):null}_isPresentationValueInvalid(){if(this._presentationValue==="")return!1;try{return f(this._presentationValue,this.locale.calendarPicker),!1}catch{return!0}}_onClearClick(){this.#t({start:"",end:""}),super._onClearClick()}formResetCallback(){this.#t({start:this.initialStart,end:this.initialEnd}),super.formResetCallback()}get _pickerButtonLabel(){return this.start&&this.end?this.locale.calendarPicker.changeDatesLabel(p({start:this.start,end:this.end},this.locale.calendarPicker)):this.locale.calendarPicker.chooseDatesLabel}get _dialogLabel(){return this.locale.calendarPicker.chooseDatesLabel}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll("button, .vwc-button")}get _pickerButtonIcon(){return"calendar-line"}}o([n.attr({mode:"fromView",attribute:"start"})],l.prototype,"initialStart",2);o([n.attr({mode:"fromView",attribute:"end"})],l.prototype,"initialEnd",2);o([n.observable],l.prototype,"start",2);o([n.observable],l.prototype,"end",2);o([n.attr({attribute:"current-start"})],l.prototype,"currentStart",2);o([n.attr({attribute:"current-end"})],l.prototype,"currentEnd",2);o([n.observable],l.prototype,"_numCalendars",2);o([n.observable],l.prototype,"_hoverDate",2);o([n.volatile],l.prototype,"_pickerButtonLabel",1);const S=i=>u.PickerFieldTemplate(i,r.CalendarPickerTemplate(i),{withSeparator:!1,padded:!0}),C=n.defineVividComponent("date-range-picker",l,S,[m.buttonDefinition,_.popupDefinition,D.textFieldDefinition,P.dividerDefinition,g.visuallyHiddenDefinition],{styles:[u.pickerFieldStyles,r.calendarStyles],shadowOptions:{delegatesFocus:!0}}),y=n.createRegisterFunction(C);y();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as D } from "../bundled/definition3.js";
|
|
2
2
|
import { p as P } from "../bundled/definition9.js";
|
|
3
3
|
import { t as g } from "../bundled/definition10.js";
|
|
4
|
-
import { d as V } from "../bundled/
|
|
4
|
+
import { d as V } from "../bundled/definition15.js";
|
|
5
5
|
import { a as d, o as c, v as k, c as v, d as C } from "../bundled/vivid-element.js";
|
|
6
6
|
import { P as b, a as y, p as S } from "../bundled/picker-field.template.js";
|
|
7
7
|
import { f as o, p as E, M as F, C as R, i as f, b as h, a as w, c as x } from "../bundled/calendar-picker.template.js";
|
|
8
|
-
import { v as M } from "../bundled/
|
|
8
|
+
import { v as M } from "../bundled/definition14.js";
|
|
9
9
|
const p = (i, t) => `${i} – ${t}`, m = (i, t) => p(
|
|
10
10
|
o(i.start, t),
|
|
11
11
|
o(i.end, t)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const popup_definition = require('../unbundled/
|
|
5
|
+
const popup_definition = require('../unbundled/definition5.cjs');
|
|
6
6
|
const button_definition = require('../unbundled/definition.cjs');
|
|
7
7
|
const textField_definition = require('../text-field/definition.cjs');
|
|
8
8
|
const divider_definition = require('../divider/definition.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as popupDefinition } from '../unbundled/
|
|
1
|
+
import { p as popupDefinition } from '../unbundled/definition5.js';
|
|
2
2
|
import { b as buttonDefinition } from '../unbundled/definition.js';
|
|
3
3
|
import { textFieldDefinition } from '../text-field/definition.js';
|
|
4
4
|
import { dividerDefinition } from '../divider/definition.js';
|