@vonage/vivid-vue 3.18.0 → 3.19.1
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/dist/generated/components/VAvatar.vue2.d.ts +3 -3
- package/dist/generated/components/VAvatar.vue3.d.ts +3 -3
- package/dist/generated/components/VCheckbox.vue2.d.ts +2 -2
- package/dist/generated/components/VCheckbox.vue3.d.ts +3 -2
- package/dist/generated/components/VCombobox.vue2.d.ts +2 -2
- package/dist/generated/components/VCombobox.vue3.d.ts +3 -2
- package/dist/generated/components/VDatePicker.vue2.d.ts +1 -1
- package/dist/generated/components/VDatePicker.vue3.d.ts +2 -1
- package/dist/generated/components/VMenuItem.vue2.d.ts +1 -1
- package/dist/generated/components/VMenuItem.vue3.d.ts +2 -1
- package/dist/generated/components/VNumberField.vue2.d.ts +2 -2
- package/dist/generated/components/VNumberField.vue3.d.ts +3 -2
- package/dist/generated/components/VPagination.vue2.d.ts +1 -1
- package/dist/generated/components/VPagination.vue3.d.ts +2 -1
- package/dist/generated/components/VProgressRing.vue2.d.ts +4 -4
- package/dist/generated/components/VProgressRing.vue3.d.ts +4 -4
- package/dist/generated/components/VRadioGroup.vue2.d.ts +1 -1
- package/dist/generated/components/VRadioGroup.vue3.d.ts +2 -1
- package/dist/generated/components/VSelect.vue2.d.ts +2 -2
- package/dist/generated/components/VSelect.vue3.d.ts +3 -2
- package/dist/generated/components/VSlider.vue2.d.ts +1 -1
- package/dist/generated/components/VSlider.vue3.d.ts +2 -1
- package/dist/generated/components/VSwitch.vue2.d.ts +16 -1
- package/dist/generated/components/VSwitch.vue3.d.ts +18 -1
- package/dist/generated/components/VTextArea.vue2.d.ts +2 -2
- package/dist/generated/components/VTextArea.vue3.d.ts +3 -2
- package/dist/generated/components/VTextField.vue2.d.ts +2 -2
- package/dist/generated/components/VTextField.vue3.d.ts +3 -2
- package/dist/index.es.js +173 -46
- package/dist/index.umd.js +1 -1
- package/dist/web-types.json +11 -3
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as d, version as v, onBeforeMount as f, defineComponent as u, h as s } from "vue";
|
|
2
|
-
import { registerAccordion as g, registerAccordionItem as y, registerActionGroup as k, registerAlert as b, registerAvatar as S, registerBadge as $, registerBanner as C, registerBreadcrumb as w, registerBreadcrumbItem as L, registerButton as x, registerCalendar as V, registerCalendarEvent as N, registerCard as
|
|
2
|
+
import { registerAccordion as g, registerAccordionItem as y, registerActionGroup as k, registerAlert as b, registerAvatar as S, registerBadge as $, registerBanner as C, registerBreadcrumb as w, registerBreadcrumbItem as L, registerButton as x, registerCalendar as V, registerCalendarEvent as N, registerCard as B, registerCheckbox as T, registerCombobox as z, registerDataGrid as c, registerDatePicker as K, registerDialog as M, registerDivider as D, registerEmptyState as F, registerFab as q, registerHeader as P, registerIcon as O, registerLayout as A, registerMenu as R, registerMenuItem as U, registerNav as j, registerNavDisclosure as G, registerNavItem as H, registerNote as E, registerNumberField as W, registerOption as _, registerPagination as J, registerProgress as Z, registerProgressRing as X, registerRadio as Q, registerRadioGroup as Y, registerSelect as I, registerSideDrawer as ee, registerSlider as ie, registerSwitch as te, registerTab as oe, registerTabs as le, registerTabPanel as se, registerTextArea as ae, registerTextField as ne, registerToggletip as re, registerTooltip as de, registerTreeItem as ue, registerTreeView as he, registerTag as pe, registerTagGroup as me } from "@vonage/vivid";
|
|
3
3
|
const m = d("vvd3");
|
|
4
4
|
function ke(e) {
|
|
5
5
|
m.value = e;
|
|
@@ -1138,7 +1138,7 @@ const Ce = u({
|
|
|
1138
1138
|
[]
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
1141
|
-
}),
|
|
1141
|
+
}), Be = u({
|
|
1142
1142
|
name: "VButton",
|
|
1143
1143
|
props: {
|
|
1144
1144
|
/**
|
|
@@ -1369,7 +1369,7 @@ const Ce = u({
|
|
|
1369
1369
|
[]
|
|
1370
1370
|
);
|
|
1371
1371
|
}
|
|
1372
|
-
}),
|
|
1372
|
+
}), Te = u({
|
|
1373
1373
|
name: "VCalendar",
|
|
1374
1374
|
props: {
|
|
1375
1375
|
/**
|
|
@@ -1721,7 +1721,7 @@ const Ce = u({
|
|
|
1721
1721
|
"input"
|
|
1722
1722
|
],
|
|
1723
1723
|
setup(e, o) {
|
|
1724
|
-
const l = h("card",
|
|
1724
|
+
const l = h("card", B), i = d(null);
|
|
1725
1725
|
return o.expose({}), { componentName: l, element: i };
|
|
1726
1726
|
},
|
|
1727
1727
|
render() {
|
|
@@ -1898,6 +1898,11 @@ const Ce = u({
|
|
|
1898
1898
|
* @type {Event}
|
|
1899
1899
|
*/
|
|
1900
1900
|
"input",
|
|
1901
|
+
/**
|
|
1902
|
+
* Emits a custom change event when the checked state changes
|
|
1903
|
+
* @type {unknown}
|
|
1904
|
+
*/
|
|
1905
|
+
"change",
|
|
1901
1906
|
/**
|
|
1902
1907
|
* Emits a custom change event when the checked state changes
|
|
1903
1908
|
* @type {boolean}
|
|
@@ -1905,7 +1910,7 @@ const Ce = u({
|
|
|
1905
1910
|
"update:modelValue"
|
|
1906
1911
|
],
|
|
1907
1912
|
setup(e, o) {
|
|
1908
|
-
const l = h("checkbox",
|
|
1913
|
+
const l = h("checkbox", T), i = d(null);
|
|
1909
1914
|
return o.expose({}), { componentName: l, element: i };
|
|
1910
1915
|
},
|
|
1911
1916
|
render() {
|
|
@@ -1937,7 +1942,9 @@ const Ce = u({
|
|
|
1937
1942
|
keydown: (e) => this.$emit("keydown", e),
|
|
1938
1943
|
keyup: (e) => this.$emit("keyup", e),
|
|
1939
1944
|
input: (e) => this.$emit("input", e),
|
|
1940
|
-
change: (e) =>
|
|
1945
|
+
change: (e) => {
|
|
1946
|
+
this.$emit("update:modelValue", e.target.checked), this.$emit("change", e);
|
|
1947
|
+
}
|
|
1941
1948
|
}
|
|
1942
1949
|
},
|
|
1943
1950
|
[]
|
|
@@ -1966,7 +1973,9 @@ const Ce = u({
|
|
|
1966
1973
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
1967
1974
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
1968
1975
|
onInput: (e) => this.$emit("input", e),
|
|
1969
|
-
onChange: (e) =>
|
|
1976
|
+
onChange: (e) => {
|
|
1977
|
+
this.$emit("update:modelValue", e.target.checked), this.$emit("change", e);
|
|
1978
|
+
}
|
|
1970
1979
|
},
|
|
1971
1980
|
[]
|
|
1972
1981
|
);
|
|
@@ -2073,6 +2082,11 @@ const Ce = u({
|
|
|
2073
2082
|
* @type {Event}
|
|
2074
2083
|
*/
|
|
2075
2084
|
"input",
|
|
2085
|
+
/**
|
|
2086
|
+
* Fires a custom 'change' event when the value updates
|
|
2087
|
+
* @type {unknown}
|
|
2088
|
+
*/
|
|
2089
|
+
"change",
|
|
2076
2090
|
/**
|
|
2077
2091
|
* Fires a custom 'change' event when the value updates
|
|
2078
2092
|
* @type {string}
|
|
@@ -2147,7 +2161,9 @@ const Ce = u({
|
|
|
2147
2161
|
keydown: (e) => this.$emit("keydown", e),
|
|
2148
2162
|
keyup: (e) => this.$emit("keyup", e),
|
|
2149
2163
|
input: (e) => this.$emit("input", e),
|
|
2150
|
-
change: (e) =>
|
|
2164
|
+
change: (e) => {
|
|
2165
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("change", e);
|
|
2166
|
+
}
|
|
2151
2167
|
}
|
|
2152
2168
|
},
|
|
2153
2169
|
[this.$slots.default]
|
|
@@ -2175,7 +2191,9 @@ const Ce = u({
|
|
|
2175
2191
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
2176
2192
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
2177
2193
|
onInput: (e) => this.$emit("input", e),
|
|
2178
|
-
onChange: (e) =>
|
|
2194
|
+
onChange: (e) => {
|
|
2195
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("change", e);
|
|
2196
|
+
}
|
|
2179
2197
|
},
|
|
2180
2198
|
[
|
|
2181
2199
|
// @ts-ignore
|
|
@@ -2632,6 +2650,11 @@ const Ce = u({
|
|
|
2632
2650
|
* @type {KeyboardEvent}
|
|
2633
2651
|
*/
|
|
2634
2652
|
"keyup",
|
|
2653
|
+
/**
|
|
2654
|
+
* Fires when the value of an element has been changed.
|
|
2655
|
+
* @type {Event}
|
|
2656
|
+
*/
|
|
2657
|
+
"input",
|
|
2635
2658
|
/**
|
|
2636
2659
|
* Fires when the value of an element has been changed.
|
|
2637
2660
|
* @type {string}
|
|
@@ -2665,7 +2688,9 @@ const Ce = u({
|
|
|
2665
2688
|
blur: (e) => this.$emit("blur", e),
|
|
2666
2689
|
keydown: (e) => this.$emit("keydown", e),
|
|
2667
2690
|
keyup: (e) => this.$emit("keyup", e),
|
|
2668
|
-
input: (e) =>
|
|
2691
|
+
input: (e) => {
|
|
2692
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
2693
|
+
}
|
|
2669
2694
|
}
|
|
2670
2695
|
},
|
|
2671
2696
|
[]
|
|
@@ -2688,7 +2713,9 @@ const Ce = u({
|
|
|
2688
2713
|
onBlur: (e) => this.$emit("blur", e),
|
|
2689
2714
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
2690
2715
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
2691
|
-
onInput: (e) =>
|
|
2716
|
+
onInput: (e) => {
|
|
2717
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
2718
|
+
}
|
|
2692
2719
|
},
|
|
2693
2720
|
[]
|
|
2694
2721
|
);
|
|
@@ -3836,6 +3863,11 @@ const Ce = u({
|
|
|
3836
3863
|
* @type {unknown}
|
|
3837
3864
|
*/
|
|
3838
3865
|
"expanded-change",
|
|
3866
|
+
/**
|
|
3867
|
+
* Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked
|
|
3868
|
+
* @type {unknown}
|
|
3869
|
+
*/
|
|
3870
|
+
"change",
|
|
3839
3871
|
/**
|
|
3840
3872
|
* Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked
|
|
3841
3873
|
* @type {boolean}
|
|
@@ -3870,12 +3902,16 @@ const Ce = u({
|
|
|
3870
3902
|
keyup: (e) => this.$emit("keyup", e),
|
|
3871
3903
|
input: (e) => this.$emit("input", e),
|
|
3872
3904
|
"expanded-change": (e) => this.$emit("expanded-change", e),
|
|
3873
|
-
change: (e) =>
|
|
3905
|
+
change: (e) => {
|
|
3906
|
+
this.$emit("update:modelValue", e.target.checked), this.$emit("change", e);
|
|
3907
|
+
}
|
|
3874
3908
|
}
|
|
3875
3909
|
},
|
|
3876
3910
|
[
|
|
3877
3911
|
// @slot meta Assign nodes to the `meta` slot to set a badge or an additional icon.
|
|
3878
|
-
a("meta", this.$slots.meta)
|
|
3912
|
+
a("meta", this.$slots.meta),
|
|
3913
|
+
// @slot submenu Assign a Menu to the `submenu` slot to add a submenu.
|
|
3914
|
+
a("submenu", this.$slots.submenu)
|
|
3879
3915
|
]
|
|
3880
3916
|
) : s(
|
|
3881
3917
|
this.componentName,
|
|
@@ -3897,11 +3933,15 @@ const Ce = u({
|
|
|
3897
3933
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
3898
3934
|
onInput: (e) => this.$emit("input", e),
|
|
3899
3935
|
onExpandedChange: (e) => this.$emit("expanded-change", e),
|
|
3900
|
-
onChange: (e) =>
|
|
3936
|
+
onChange: (e) => {
|
|
3937
|
+
this.$emit("update:modelValue", e.target.checked), this.$emit("change", e);
|
|
3938
|
+
}
|
|
3901
3939
|
},
|
|
3902
3940
|
[
|
|
3903
3941
|
// @slot meta Assign nodes to the `meta` slot to set a badge or an additional icon.
|
|
3904
|
-
a("meta", this.$slots.meta)
|
|
3942
|
+
a("meta", this.$slots.meta),
|
|
3943
|
+
// @slot submenu Assign a Menu to the `submenu` slot to add a submenu.
|
|
3944
|
+
a("submenu", this.$slots.submenu)
|
|
3905
3945
|
]
|
|
3906
3946
|
);
|
|
3907
3947
|
}
|
|
@@ -4490,14 +4530,19 @@ const Ce = u({
|
|
|
4490
4530
|
"keyup",
|
|
4491
4531
|
/**
|
|
4492
4532
|
* Fires a custom 'input' event when the value has changed
|
|
4493
|
-
* @type {
|
|
4533
|
+
* @type {unknown}
|
|
4494
4534
|
*/
|
|
4495
|
-
"
|
|
4535
|
+
"input",
|
|
4496
4536
|
/**
|
|
4497
4537
|
* Fires a custom 'change' event when the value has changed
|
|
4498
4538
|
* @type {unknown}
|
|
4499
4539
|
*/
|
|
4500
|
-
"change"
|
|
4540
|
+
"change",
|
|
4541
|
+
/**
|
|
4542
|
+
* Fires a custom 'input' event when the value has changed
|
|
4543
|
+
* @type {string}
|
|
4544
|
+
*/
|
|
4545
|
+
"update:modelValue"
|
|
4501
4546
|
],
|
|
4502
4547
|
setup(e, o) {
|
|
4503
4548
|
const l = h("number-field", W), i = d(null);
|
|
@@ -4571,7 +4616,9 @@ const Ce = u({
|
|
|
4571
4616
|
blur: (e) => this.$emit("blur", e),
|
|
4572
4617
|
keydown: (e) => this.$emit("keydown", e),
|
|
4573
4618
|
keyup: (e) => this.$emit("keyup", e),
|
|
4574
|
-
input: (e) =>
|
|
4619
|
+
input: (e) => {
|
|
4620
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
4621
|
+
},
|
|
4575
4622
|
change: (e) => this.$emit("change", e)
|
|
4576
4623
|
}
|
|
4577
4624
|
},
|
|
@@ -4611,7 +4658,9 @@ const Ce = u({
|
|
|
4611
4658
|
onBlur: (e) => this.$emit("blur", e),
|
|
4612
4659
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
4613
4660
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
4614
|
-
onInput: (e) =>
|
|
4661
|
+
onInput: (e) => {
|
|
4662
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
4663
|
+
},
|
|
4615
4664
|
onChange: (e) => this.$emit("change", e)
|
|
4616
4665
|
},
|
|
4617
4666
|
[]
|
|
@@ -4807,7 +4856,12 @@ const Ce = u({
|
|
|
4807
4856
|
* Fires when the value of an element has been changed.
|
|
4808
4857
|
* @type {Event}
|
|
4809
4858
|
*/
|
|
4810
|
-
"input"
|
|
4859
|
+
"input",
|
|
4860
|
+
/**
|
|
4861
|
+
* Fires when the page changes.
|
|
4862
|
+
* @type {Event}
|
|
4863
|
+
*/
|
|
4864
|
+
"pagination-change"
|
|
4811
4865
|
],
|
|
4812
4866
|
setup(e, o) {
|
|
4813
4867
|
const l = h("pagination", J), i = d(null);
|
|
@@ -4846,7 +4900,8 @@ const Ce = u({
|
|
|
4846
4900
|
blur: (e) => this.$emit("blur", e),
|
|
4847
4901
|
keydown: (e) => this.$emit("keydown", e),
|
|
4848
4902
|
keyup: (e) => this.$emit("keyup", e),
|
|
4849
|
-
input: (e) => this.$emit("input", e)
|
|
4903
|
+
input: (e) => this.$emit("input", e),
|
|
4904
|
+
"pagination-change": (e) => this.$emit("pagination-change", e)
|
|
4850
4905
|
}
|
|
4851
4906
|
},
|
|
4852
4907
|
[]
|
|
@@ -4866,7 +4921,8 @@ const Ce = u({
|
|
|
4866
4921
|
onBlur: (e) => this.$emit("blur", e),
|
|
4867
4922
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
4868
4923
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
4869
|
-
onInput: (e) => this.$emit("input", e)
|
|
4924
|
+
onInput: (e) => this.$emit("input", e),
|
|
4925
|
+
onPaginationChange: (e) => this.$emit("pagination-change", e)
|
|
4870
4926
|
},
|
|
4871
4927
|
[]
|
|
4872
4928
|
);
|
|
@@ -5330,6 +5386,11 @@ const Ce = u({
|
|
|
5330
5386
|
* @type {Event}
|
|
5331
5387
|
*/
|
|
5332
5388
|
"input",
|
|
5389
|
+
/**
|
|
5390
|
+
* Fires a custom 'change' event when the value changes
|
|
5391
|
+
* @type {unknown}
|
|
5392
|
+
*/
|
|
5393
|
+
"change",
|
|
5333
5394
|
/**
|
|
5334
5395
|
* Fires a custom 'change' event when the value changes
|
|
5335
5396
|
* @type {string}
|
|
@@ -5362,7 +5423,9 @@ const Ce = u({
|
|
|
5362
5423
|
keydown: (e) => this.$emit("keydown", e),
|
|
5363
5424
|
keyup: (e) => this.$emit("keyup", e),
|
|
5364
5425
|
input: (e) => this.$emit("input", e),
|
|
5365
|
-
change: (e) =>
|
|
5426
|
+
change: (e) => {
|
|
5427
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("change", e);
|
|
5428
|
+
}
|
|
5366
5429
|
}
|
|
5367
5430
|
},
|
|
5368
5431
|
[this.$slots.default]
|
|
@@ -5384,7 +5447,9 @@ const Ce = u({
|
|
|
5384
5447
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
5385
5448
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
5386
5449
|
onInput: (e) => this.$emit("input", e),
|
|
5387
|
-
onChange: (e) =>
|
|
5450
|
+
onChange: (e) => {
|
|
5451
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("change", e);
|
|
5452
|
+
}
|
|
5388
5453
|
},
|
|
5389
5454
|
[
|
|
5390
5455
|
// @ts-ignore
|
|
@@ -5513,14 +5578,19 @@ const Ce = u({
|
|
|
5513
5578
|
"keyup",
|
|
5514
5579
|
/**
|
|
5515
5580
|
* Fires a custom 'input' event when the value updates
|
|
5516
|
-
* @type {
|
|
5581
|
+
* @type {unknown}
|
|
5517
5582
|
*/
|
|
5518
|
-
"
|
|
5583
|
+
"input",
|
|
5519
5584
|
/**
|
|
5520
5585
|
* Fires a custom 'change' event when the value updates
|
|
5521
5586
|
* @type {unknown}
|
|
5522
5587
|
*/
|
|
5523
|
-
"change"
|
|
5588
|
+
"change",
|
|
5589
|
+
/**
|
|
5590
|
+
* Fires a custom 'input' event when the value updates
|
|
5591
|
+
* @type {string}
|
|
5592
|
+
*/
|
|
5593
|
+
"update:modelValue"
|
|
5524
5594
|
],
|
|
5525
5595
|
setup(e, o) {
|
|
5526
5596
|
const l = h("select", I), i = d(null);
|
|
@@ -5592,7 +5662,9 @@ const Ce = u({
|
|
|
5592
5662
|
blur: (e) => this.$emit("blur", e),
|
|
5593
5663
|
keydown: (e) => this.$emit("keydown", e),
|
|
5594
5664
|
keyup: (e) => this.$emit("keyup", e),
|
|
5595
|
-
input: (e) =>
|
|
5665
|
+
input: (e) => {
|
|
5666
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
5667
|
+
},
|
|
5596
5668
|
change: (e) => this.$emit("change", e)
|
|
5597
5669
|
}
|
|
5598
5670
|
},
|
|
@@ -5632,7 +5704,9 @@ const Ce = u({
|
|
|
5632
5704
|
onBlur: (e) => this.$emit("blur", e),
|
|
5633
5705
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
5634
5706
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
5635
|
-
onInput: (e) =>
|
|
5707
|
+
onInput: (e) => {
|
|
5708
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
5709
|
+
},
|
|
5636
5710
|
onChange: (e) => this.$emit("change", e)
|
|
5637
5711
|
},
|
|
5638
5712
|
[
|
|
@@ -5859,6 +5933,11 @@ const Ce = u({
|
|
|
5859
5933
|
* @type {Event}
|
|
5860
5934
|
*/
|
|
5861
5935
|
"input",
|
|
5936
|
+
/**
|
|
5937
|
+
* Fires a custom 'change' event when the slider value changes
|
|
5938
|
+
* @type {unknown}
|
|
5939
|
+
*/
|
|
5940
|
+
"change",
|
|
5862
5941
|
/**
|
|
5863
5942
|
* Fires a custom 'change' event when the slider value changes
|
|
5864
5943
|
* @type {string}
|
|
@@ -5919,7 +5998,9 @@ const Ce = u({
|
|
|
5919
5998
|
keydown: (e) => this.$emit("keydown", e),
|
|
5920
5999
|
keyup: (e) => this.$emit("keyup", e),
|
|
5921
6000
|
input: (e) => this.$emit("input", e),
|
|
5922
|
-
change: (e) =>
|
|
6001
|
+
change: (e) => {
|
|
6002
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("change", e);
|
|
6003
|
+
}
|
|
5923
6004
|
}
|
|
5924
6005
|
},
|
|
5925
6006
|
[]
|
|
@@ -5947,13 +6028,19 @@ const Ce = u({
|
|
|
5947
6028
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
5948
6029
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
5949
6030
|
onInput: (e) => this.$emit("input", e),
|
|
5950
|
-
onChange: (e) =>
|
|
6031
|
+
onChange: (e) => {
|
|
6032
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("change", e);
|
|
6033
|
+
}
|
|
5951
6034
|
},
|
|
5952
6035
|
[]
|
|
5953
6036
|
);
|
|
5954
6037
|
}
|
|
5955
6038
|
}), ri = u({
|
|
5956
6039
|
name: "VSwitch",
|
|
6040
|
+
model: r ? {
|
|
6041
|
+
prop: "modelValue",
|
|
6042
|
+
event: "update:modelValue"
|
|
6043
|
+
} : void 0,
|
|
5957
6044
|
props: {
|
|
5958
6045
|
/**
|
|
5959
6046
|
* Indicates the element that represents the current item within a container or set of related elements.
|
|
@@ -5966,7 +6053,11 @@ const Ce = u({
|
|
|
5966
6053
|
* Indicates the switch's label.
|
|
5967
6054
|
*/
|
|
5968
6055
|
label: { type: String, default: void 0 },
|
|
5969
|
-
connotation: { type: String, default: void 0 }
|
|
6056
|
+
connotation: { type: String, default: void 0 },
|
|
6057
|
+
/**
|
|
6058
|
+
* The current checked state of the switch.
|
|
6059
|
+
*/
|
|
6060
|
+
modelValue: { type: Boolean, default: void 0 }
|
|
5970
6061
|
},
|
|
5971
6062
|
emits: [
|
|
5972
6063
|
/**
|
|
@@ -5998,7 +6089,17 @@ const Ce = u({
|
|
|
5998
6089
|
* Fires when the value of an element has been changed.
|
|
5999
6090
|
* @type {Event}
|
|
6000
6091
|
*/
|
|
6001
|
-
"input"
|
|
6092
|
+
"input",
|
|
6093
|
+
/**
|
|
6094
|
+
* Emitted when the checked state of the switch changes.
|
|
6095
|
+
* @type {Event}
|
|
6096
|
+
*/
|
|
6097
|
+
"change",
|
|
6098
|
+
/**
|
|
6099
|
+
* Emitted when the checked state of the switch changes.
|
|
6100
|
+
* @type {boolean}
|
|
6101
|
+
*/
|
|
6102
|
+
"update:modelValue"
|
|
6002
6103
|
],
|
|
6003
6104
|
setup(e, o) {
|
|
6004
6105
|
const l = h("switch", te), i = d(null);
|
|
@@ -6012,7 +6113,8 @@ const Ce = u({
|
|
|
6012
6113
|
attrs: {
|
|
6013
6114
|
...this.ariaCurrent !== void 0 ? { "aria-current": this.ariaCurrent } : {},
|
|
6014
6115
|
...this.label !== void 0 ? { label: this.label } : {},
|
|
6015
|
-
...this.connotation !== void 0 ? { connotation: this.connotation } : {}
|
|
6116
|
+
...this.connotation !== void 0 ? { connotation: this.connotation } : {},
|
|
6117
|
+
...this.modelValue !== void 0 ? { "current-checked": this.modelValue } : {}
|
|
6016
6118
|
},
|
|
6017
6119
|
class: "vvd-component",
|
|
6018
6120
|
on: {
|
|
@@ -6021,7 +6123,10 @@ const Ce = u({
|
|
|
6021
6123
|
blur: (e) => this.$emit("blur", e),
|
|
6022
6124
|
keydown: (e) => this.$emit("keydown", e),
|
|
6023
6125
|
keyup: (e) => this.$emit("keyup", e),
|
|
6024
|
-
input: (e) => this.$emit("input", e)
|
|
6126
|
+
input: (e) => this.$emit("input", e),
|
|
6127
|
+
change: (e) => {
|
|
6128
|
+
this.$emit("update:modelValue", e.target.checked), this.$emit("change", e);
|
|
6129
|
+
}
|
|
6025
6130
|
}
|
|
6026
6131
|
},
|
|
6027
6132
|
[]
|
|
@@ -6033,12 +6138,16 @@ const Ce = u({
|
|
|
6033
6138
|
...this.ariaCurrent !== void 0 ? { "aria-current": this.ariaCurrent } : {},
|
|
6034
6139
|
...this.label !== void 0 ? { label: this.label } : {},
|
|
6035
6140
|
...this.connotation !== void 0 ? { connotation: this.connotation } : {},
|
|
6141
|
+
...this.modelValue !== void 0 ? { "current-checked": this.modelValue } : {},
|
|
6036
6142
|
onClick: (e) => this.$emit("click", e),
|
|
6037
6143
|
onFocus: (e) => this.$emit("focus", e),
|
|
6038
6144
|
onBlur: (e) => this.$emit("blur", e),
|
|
6039
6145
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
6040
6146
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
6041
|
-
onInput: (e) => this.$emit("input", e)
|
|
6147
|
+
onInput: (e) => this.$emit("input", e),
|
|
6148
|
+
onChange: (e) => {
|
|
6149
|
+
this.$emit("update:modelValue", e.target.checked), this.$emit("change", e);
|
|
6150
|
+
}
|
|
6042
6151
|
},
|
|
6043
6152
|
[]
|
|
6044
6153
|
);
|
|
@@ -6437,6 +6546,11 @@ const Ce = u({
|
|
|
6437
6546
|
* @type {KeyboardEvent}
|
|
6438
6547
|
*/
|
|
6439
6548
|
"keyup",
|
|
6549
|
+
/**
|
|
6550
|
+
* Fires when the value of an element has been changed.
|
|
6551
|
+
* @type {Event}
|
|
6552
|
+
*/
|
|
6553
|
+
"input",
|
|
6440
6554
|
/**
|
|
6441
6555
|
* Fires when the value of an element has been changed.
|
|
6442
6556
|
* @type {string}
|
|
@@ -6460,7 +6574,9 @@ const Ce = u({
|
|
|
6460
6574
|
blur: (e) => this.$emit("blur", e),
|
|
6461
6575
|
keydown: (e) => this.$emit("keydown", e),
|
|
6462
6576
|
keyup: (e) => this.$emit("keyup", e),
|
|
6463
|
-
input: (e) =>
|
|
6577
|
+
input: (e) => {
|
|
6578
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
6579
|
+
}
|
|
6464
6580
|
}
|
|
6465
6581
|
},
|
|
6466
6582
|
[]
|
|
@@ -6475,7 +6591,9 @@ const Ce = u({
|
|
|
6475
6591
|
onBlur: (e) => this.$emit("blur", e),
|
|
6476
6592
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
6477
6593
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
6478
|
-
onInput: (e) =>
|
|
6594
|
+
onInput: (e) => {
|
|
6595
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
6596
|
+
}
|
|
6479
6597
|
},
|
|
6480
6598
|
[]
|
|
6481
6599
|
);
|
|
@@ -6616,14 +6734,19 @@ const Ce = u({
|
|
|
6616
6734
|
"keyup",
|
|
6617
6735
|
/**
|
|
6618
6736
|
* Fires when the value of an element has been changed.
|
|
6619
|
-
* @type {
|
|
6737
|
+
* @type {Event}
|
|
6620
6738
|
*/
|
|
6621
|
-
"
|
|
6739
|
+
"input",
|
|
6622
6740
|
/**
|
|
6623
6741
|
* Fires a custom 'change' event when the value has changed
|
|
6624
6742
|
* @type {unknown}
|
|
6625
6743
|
*/
|
|
6626
|
-
"change"
|
|
6744
|
+
"change",
|
|
6745
|
+
/**
|
|
6746
|
+
* Fires when the value of an element has been changed.
|
|
6747
|
+
* @type {string}
|
|
6748
|
+
*/
|
|
6749
|
+
"update:modelValue"
|
|
6627
6750
|
],
|
|
6628
6751
|
setup(e, o) {
|
|
6629
6752
|
const l = h("text-field", ne), i = d(null);
|
|
@@ -6683,7 +6806,9 @@ const Ce = u({
|
|
|
6683
6806
|
blur: (e) => this.$emit("blur", e),
|
|
6684
6807
|
keydown: (e) => this.$emit("keydown", e),
|
|
6685
6808
|
keyup: (e) => this.$emit("keyup", e),
|
|
6686
|
-
input: (e) =>
|
|
6809
|
+
input: (e) => {
|
|
6810
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
6811
|
+
},
|
|
6687
6812
|
change: (e) => this.$emit("change", e)
|
|
6688
6813
|
}
|
|
6689
6814
|
},
|
|
@@ -6728,7 +6853,9 @@ const Ce = u({
|
|
|
6728
6853
|
onBlur: (e) => this.$emit("blur", e),
|
|
6729
6854
|
onKeydown: (e) => this.$emit("keydown", e),
|
|
6730
6855
|
onKeyup: (e) => this.$emit("keyup", e),
|
|
6731
|
-
onInput: (e) =>
|
|
6856
|
+
onInput: (e) => {
|
|
6857
|
+
this.$emit("update:modelValue", e.target.value), this.$emit("input", e);
|
|
6858
|
+
},
|
|
6732
6859
|
onChange: (e) => this.$emit("change", e)
|
|
6733
6860
|
},
|
|
6734
6861
|
[
|
|
@@ -7453,8 +7580,8 @@ export {
|
|
|
7453
7580
|
xe as VBanner,
|
|
7454
7581
|
Ve as VBreadcrumb,
|
|
7455
7582
|
Ne as VBreadcrumbItem,
|
|
7456
|
-
|
|
7457
|
-
|
|
7583
|
+
Be as VButton,
|
|
7584
|
+
Te as VCalendar,
|
|
7458
7585
|
ze as VCalendarEvent,
|
|
7459
7586
|
Ke as VCard,
|
|
7460
7587
|
Me as VCheckbox,
|