@vuetify/nightly 3.7.16-master.2025-03-13 → 3.7.16-master.2025-03-14
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/CHANGELOG.md +7 -4
- package/dist/json/attributes.json +2854 -2854
- package/dist/json/importMap-labs.json +30 -30
- package/dist/json/importMap.json +174 -174
- package/dist/json/web-types.json +5699 -5699
- package/dist/vuetify-labs.css +3604 -3604
- package/dist/vuetify-labs.esm.js +3 -3
- package/dist/vuetify-labs.js +3 -3
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +2464 -2464
- package/dist/vuetify.d.ts +70 -70
- package/dist/vuetify.esm.js +3 -3
- package/dist/vuetify.js +3 -3
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +3 -3
- package/lib/components/VDialog/__test__/VDialog.spec.browser.mjs +50 -0
- package/lib/components/VDialog/__test__/VDialog.spec.browser.mjs.map +1 -0
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +70 -70
- package/package.json +1 -1
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +0 -39
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs.map +0 -1
package/dist/vuetify.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.7.16-master.2025-03-
|
2
|
+
* Vuetify v3.7.16-master.2025-03-14
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -2124,8 +2124,8 @@ if(d.install(e),e.provide(kt,u),e.provide(hn,c),e.provide(Va,d),e.provide(Ot,v),
|
|
2124
2124
|
else{const{mount:a}=e
|
2125
2125
|
e.mount=function(){const l=a(...arguments)
|
2126
2126
|
return t.nextTick((()=>c.update())),e.mount=a,l}}St.reset(),("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&e.mixin({computed:{$vuetify(){return t.reactive({defaults:rf.call(this,kt),display:rf.call(this,hn),theme:rf.call(this,Va),icons:rf.call(this,Ot),locale:rf.call(this,ma),date:rf.call(this,fu)})}}})},defaults:u,display:c,theme:d,icons:v,locale:p,date:f,goTo:m}}function rf(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
|
2127
|
-
if(a&&e in a)return a[e]}nf.version="3.7.16-master.2025-03-
|
2128
|
-
const sf=function(){return nf({components:Xp,directives:of,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},uf="3.7.16-master.2025-03-
|
2127
|
+
if(a&&e in a)return a[e]}nf.version="3.7.16-master.2025-03-14"
|
2128
|
+
const sf=function(){return nf({components:Xp,directives:of,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},uf="3.7.16-master.2025-03-14"
|
2129
2129
|
sf.version=uf,e.blueprints=Zt,e.components=Xp,e.createVuetify=sf,e.directives=of,e.useDate=gu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
|
2130
2130
|
const{props:a,provideSubDefaults:l}=Ct(e,t)
|
2131
2131
|
return l(),a},e.useDisplay=xn,e.useGoTo=Bn,e.useLayout=la,e.useLocale=ha,e.useRtl=ba,e.useTheme=xa,e.version=uf}))
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
2
|
+
// Components
|
3
|
+
import { VDialog } from "../VDialog.mjs"; // Utilities
|
4
|
+
import { render, screen, userEvent } from '@test';
|
5
|
+
import { nextTick, ref } from 'vue';
|
6
|
+
|
7
|
+
// Tests
|
8
|
+
describe('VDialog', () => {
|
9
|
+
it('should render correctly', async () => {
|
10
|
+
const model = ref(false);
|
11
|
+
const {
|
12
|
+
element
|
13
|
+
} = render(() => _createVNode("div", null, [_createVNode(VDialog, {
|
14
|
+
"modelValue": model.value,
|
15
|
+
"onUpdate:modelValue": $event => model.value = $event,
|
16
|
+
"data-testid": "dialog"
|
17
|
+
}, {
|
18
|
+
default: () => [_createVNode("div", {
|
19
|
+
"data-testid": "content"
|
20
|
+
}, [_createTextVNode("Content")])]
|
21
|
+
})]));
|
22
|
+
expect(screen.queryByTestId('dialog')).toBeNull();
|
23
|
+
model.value = true;
|
24
|
+
await nextTick();
|
25
|
+
await expect(screen.findByTestId('dialog')).resolves.toBeVisible();
|
26
|
+
await expect.element(await screen.findByTestId('content')).toBeVisible();
|
27
|
+
await userEvent.click(element);
|
28
|
+
await expect.poll(() => model.value).toBeFalsy();
|
29
|
+
await expect.poll(() => screen.queryByTestId('dialog')).toBeNull();
|
30
|
+
await expect.poll(() => screen.queryByTestId('content')).toBeNull();
|
31
|
+
});
|
32
|
+
it('should emit afterLeave', async () => {
|
33
|
+
const model = ref(true);
|
34
|
+
const onAfterLeave = vi.fn();
|
35
|
+
const {
|
36
|
+
element
|
37
|
+
} = render(() => _createVNode("div", null, [_createVNode(VDialog, {
|
38
|
+
"modelValue": model.value,
|
39
|
+
"onUpdate:modelValue": $event => model.value = $event,
|
40
|
+
"onAfterLeave": onAfterLeave
|
41
|
+
}, {
|
42
|
+
default: () => [_createVNode("div", {
|
43
|
+
"data-test": "content"
|
44
|
+
}, [_createTextVNode("Content")])]
|
45
|
+
})]));
|
46
|
+
await userEvent.click(element);
|
47
|
+
await expect.poll(() => onAfterLeave).toHaveBeenCalledTimes(1);
|
48
|
+
});
|
49
|
+
});
|
50
|
+
//# sourceMappingURL=VDialog.spec.browser.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VDialog.spec.browser.mjs","names":["VDialog","render","screen","userEvent","nextTick","ref","describe","it","model","element","_createVNode","value","$event","default","_createTextVNode","expect","queryByTestId","toBeNull","findByTestId","resolves","toBeVisible","click","poll","toBeFalsy","onAfterLeave","vi","fn","toHaveBeenCalledTimes"],"sources":["../../../../src/components/VDialog/__test__/VDialog.spec.browser.tsx"],"sourcesContent":["// Components\nimport { VDialog } from '../VDialog'\n\n// Utilities\nimport { render, screen, userEvent } from '@test'\nimport { nextTick, ref } from 'vue'\n\n// Tests\ndescribe('VDialog', () => {\n it('should render correctly', async () => {\n const model = ref(false)\n const { element } = render(() => (\n <div>\n <VDialog v-model={ model.value } data-testid=\"dialog\">\n <div data-testid=\"content\">Content</div>\n </VDialog>\n </div>\n ))\n\n expect(screen.queryByTestId('dialog')).toBeNull()\n\n model.value = true\n await nextTick()\n await expect(screen.findByTestId('dialog')).resolves.toBeVisible()\n await expect.element(await screen.findByTestId('content')).toBeVisible()\n\n await userEvent.click(element)\n await expect.poll(() => model.value).toBeFalsy()\n await expect.poll(() => screen.queryByTestId('dialog')).toBeNull()\n await expect.poll(() => screen.queryByTestId('content')).toBeNull()\n })\n\n it('should emit afterLeave', async () => {\n const model = ref(true)\n const onAfterLeave = vi.fn()\n const { element } = render(() => (\n <div>\n <VDialog v-model={ model.value } onAfterLeave={ onAfterLeave }>\n <div data-test=\"content\">Content</div>\n </VDialog>\n </div>\n ))\n\n await userEvent.click(element)\n await expect.poll(() => onAfterLeave).toHaveBeenCalledTimes(1)\n })\n})\n"],"mappings":";AAAA;AAAA,SACSA,OAAO,0BAEhB;AACA,SAASC,MAAM,EAAEC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACjD,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;;AAEnC;AACAC,QAAQ,CAAC,SAAS,EAAE,MAAM;EACxBC,EAAE,CAAC,yBAAyB,EAAE,YAAY;IACxC,MAAMC,KAAK,GAAGH,GAAG,CAAC,KAAK,CAAC;IACxB,MAAM;MAAEI;IAAQ,CAAC,GAAGR,MAAM,CAAC,MAAAS,YAAA,eAAAA,YAAA,CAAAV,OAAA;MAAA,cAEJQ,KAAK,CAACG,KAAK;MAAA,uBAAAC,MAAA,IAAXJ,KAAK,CAACG,KAAK,GAAAC,MAAA;MAAA;IAAA;MAAAC,OAAA,EAAAA,CAAA,MAAAH,YAAA;QAAA;MAAA,IAAAI,gB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C;IAEF,MAAMX,SAAS,CAACkB,KAAK,CAACZ,OAAO,CAAC;IAC9B,MAAMM,MAAM,CAACO,IAAI,CAAC,MAAME,YAAY,CAAC,CAACG,qBAAqB,CAAC,CAAC,CAAC;EAChE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/lib/entry-bundler.mjs
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.7.16-master.2025-03-
|
19
|
+
export const version = "3.7.16-master.2025-03-14";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED
package/lib/index.d.mts
CHANGED
@@ -486,46 +486,40 @@ declare module 'vue' {
|
|
486
486
|
$children?: VNodeChild
|
487
487
|
}
|
488
488
|
export interface GlobalComponents {
|
489
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
490
|
-
VAlert: typeof import('vuetify/components')['VAlert']
|
491
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
492
489
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
493
490
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
494
491
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
495
|
-
|
492
|
+
VApp: typeof import('vuetify/components')['VApp']
|
493
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
494
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
495
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
496
|
+
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
497
|
+
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
498
|
+
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
496
499
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
500
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
501
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
497
502
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
498
503
|
VBanner: typeof import('vuetify/components')['VBanner']
|
499
504
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
500
505
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
501
|
-
|
502
|
-
VApp: typeof import('vuetify/components')['VApp']
|
506
|
+
VChip: typeof import('vuetify/components')['VChip']
|
503
507
|
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
508
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
509
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
510
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
511
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
512
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
513
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
514
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
515
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
516
|
+
VCode: typeof import('vuetify/components')['VCode']
|
504
517
|
VCard: typeof import('vuetify/components')['VCard']
|
505
518
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
506
519
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
507
520
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
508
521
|
VCardText: typeof import('vuetify/components')['VCardText']
|
509
522
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
510
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
511
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
512
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
513
|
-
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
514
|
-
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
515
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
516
|
-
VCode: typeof import('vuetify/components')['VCode']
|
517
|
-
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
518
|
-
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
519
|
-
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
520
|
-
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
521
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
522
|
-
VChip: typeof import('vuetify/components')['VChip']
|
523
|
-
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
524
|
-
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
525
|
-
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
526
|
-
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
527
|
-
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
528
|
-
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
529
523
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
530
524
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
531
525
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -533,32 +527,41 @@ declare module 'vue' {
|
|
533
527
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
534
528
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
535
529
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
536
|
-
|
537
|
-
|
538
|
-
|
530
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
531
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
532
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
533
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
534
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
535
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
536
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
537
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
538
|
+
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
539
|
+
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
540
|
+
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
541
|
+
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
539
542
|
VDialog: typeof import('vuetify/components')['VDialog']
|
540
|
-
|
543
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
541
544
|
VField: typeof import('vuetify/components')['VField']
|
542
545
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
546
|
+
VFab: typeof import('vuetify/components')['VFab']
|
547
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
548
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
543
549
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
544
550
|
VIcon: typeof import('vuetify/components')['VIcon']
|
545
551
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
546
552
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
547
553
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
548
554
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
549
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
550
|
-
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
551
|
-
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
552
|
-
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
553
|
-
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
554
|
-
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
555
555
|
VImg: typeof import('vuetify/components')['VImg']
|
556
|
+
VInput: typeof import('vuetify/components')['VInput']
|
557
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
558
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
556
559
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
557
560
|
VItem: typeof import('vuetify/components')['VItem']
|
558
|
-
|
559
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
561
|
+
VMain: typeof import('vuetify/components')['VMain']
|
560
562
|
VKbd: typeof import('vuetify/components')['VKbd']
|
561
|
-
|
563
|
+
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
564
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
562
565
|
VList: typeof import('vuetify/components')['VList']
|
563
566
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
564
567
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -568,51 +571,48 @@ declare module 'vue' {
|
|
568
571
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
569
572
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
570
573
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
571
|
-
VMain: typeof import('vuetify/components')['VMain']
|
572
|
-
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
573
574
|
VMenu: typeof import('vuetify/components')['VMenu']
|
574
|
-
|
575
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
575
576
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
577
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
576
578
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
577
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
578
579
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
579
|
-
|
580
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
580
581
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
581
|
-
|
582
|
-
|
582
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
583
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
583
584
|
VRating: typeof import('vuetify/components')['VRating']
|
584
|
-
|
585
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
586
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
585
587
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
586
588
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
587
|
-
|
588
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
589
|
-
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
589
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
590
590
|
VStepper: typeof import('vuetify/components')['VStepper']
|
591
591
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
592
592
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
593
593
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
594
594
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
595
595
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
596
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
596
597
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
597
|
-
|
598
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
599
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
598
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
600
599
|
VTable: typeof import('vuetify/components')['VTable']
|
601
600
|
VTab: typeof import('vuetify/components')['VTab']
|
602
601
|
VTabs: typeof import('vuetify/components')['VTabs']
|
603
602
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
604
603
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
605
|
-
|
606
|
-
VTimeline: typeof import('vuetify/components')['VTimeline']
|
607
|
-
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
608
|
-
VWindow: typeof import('vuetify/components')['VWindow']
|
609
|
-
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
604
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
610
605
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
611
606
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
612
607
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
608
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
609
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
610
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
613
611
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
614
|
-
|
612
|
+
VWindow: typeof import('vuetify/components')['VWindow']
|
613
|
+
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
615
614
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
615
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
616
616
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
617
617
|
VForm: typeof import('vuetify/components')['VForm']
|
618
618
|
VContainer: typeof import('vuetify/components')['VContainer']
|
@@ -622,18 +622,18 @@ declare module 'vue' {
|
|
622
622
|
VHover: typeof import('vuetify/components')['VHover']
|
623
623
|
VLayout: typeof import('vuetify/components')['VLayout']
|
624
624
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
625
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
626
625
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
627
|
-
|
626
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
628
627
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
628
|
+
VParallax: typeof import('vuetify/components')['VParallax']
|
629
629
|
VRadio: typeof import('vuetify/components')['VRadio']
|
630
630
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
631
631
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
632
632
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
633
633
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
634
|
-
VValidation: typeof import('vuetify/components')['VValidation']
|
635
634
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
636
635
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
636
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
637
637
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
638
638
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
639
639
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
@@ -650,26 +650,26 @@ declare module 'vue' {
|
|
650
650
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
651
651
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
652
652
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
653
|
+
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
654
|
+
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
655
|
+
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
656
|
+
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
657
|
+
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
658
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
653
659
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
654
660
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
655
661
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
656
662
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
657
663
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
658
664
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
659
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
660
665
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
661
666
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
662
|
-
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
663
|
-
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
664
|
-
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
665
|
-
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
666
|
-
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
667
|
-
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
668
|
-
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
669
|
-
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
670
667
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
671
668
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
672
669
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
670
|
+
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
671
|
+
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
672
|
+
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
673
673
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
674
674
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
675
675
|
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
package/package.json
CHANGED
@@ -1,39 +0,0 @@
|
|
1
|
-
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
2
|
-
/// <reference types="../../../../types/cypress" />
|
3
|
-
// Components
|
4
|
-
import { VDialog } from "../index.mjs"; // Utilities
|
5
|
-
import { ref } from 'vue';
|
6
|
-
|
7
|
-
// Tests
|
8
|
-
describe('VDialog', () => {
|
9
|
-
it('should render correctly', () => {
|
10
|
-
const model = ref(false);
|
11
|
-
cy.mount(() => _createVNode(VDialog, {
|
12
|
-
"modelValue": model.value,
|
13
|
-
"onUpdate:modelValue": $event => model.value = $event,
|
14
|
-
"data-test": "dialog"
|
15
|
-
}, {
|
16
|
-
default: () => [_createVNode("div", {
|
17
|
-
"data-test": "content"
|
18
|
-
}, [_createTextVNode("Content")])]
|
19
|
-
})).get('[data-test="dialog"]').should('not.exist').then(() => {
|
20
|
-
model.value = true;
|
21
|
-
}).get('[data-test="dialog"]').should('be.visible').get('[data-test="content"]').should('be.visible').get('body').click().then(() => {
|
22
|
-
expect(model.value).to.be.false;
|
23
|
-
}).get('[data-test="dialog"]').should('not.exist').get('[data-test="content"]').should('not.exist');
|
24
|
-
});
|
25
|
-
it('should emit afterLeave', () => {
|
26
|
-
const model = ref(true);
|
27
|
-
const onAfterLeave = cy.spy().as('afterLeave');
|
28
|
-
cy.mount(() => _createVNode(VDialog, {
|
29
|
-
"modelValue": model.value,
|
30
|
-
"onUpdate:modelValue": $event => model.value = $event,
|
31
|
-
"onAfterLeave": onAfterLeave
|
32
|
-
}, {
|
33
|
-
default: () => [_createVNode("div", {
|
34
|
-
"data-test": "content"
|
35
|
-
}, [_createTextVNode("Content")])]
|
36
|
-
})).get('body').click().get('@afterLeave').should('have.been.calledOnce');
|
37
|
-
});
|
38
|
-
});
|
39
|
-
//# sourceMappingURL=VDialog.spec.cy.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VDialog.spec.cy.mjs","names":["VDialog","ref","describe","it","model","cy","mount","_createVNode","value","$event","default","_createTextVNode","get","should","then","click","expect","to","be","false","onAfterLeave","spy","as"],"sources":["../../../../src/components/VDialog/__test__/VDialog.spec.cy.tsx"],"sourcesContent":["/// <reference types=\"../../../../types/cypress\" />\n\n// Components\nimport { VDialog } from '..'\n\n// Utilities\nimport { ref } from 'vue'\n\n// Tests\ndescribe('VDialog', () => {\n it('should render correctly', () => {\n const model = ref(false)\n cy.mount(() => (\n <VDialog v-model={ model.value } data-test=\"dialog\">\n <div data-test=\"content\">Content</div>\n </VDialog>\n )).get('[data-test=\"dialog\"]').should('not.exist')\n .then(() => { model.value = true })\n .get('[data-test=\"dialog\"]').should('be.visible')\n .get('[data-test=\"content\"]').should('be.visible')\n .get('body').click()\n .then(() => {\n expect(model.value).to.be.false\n })\n .get('[data-test=\"dialog\"]').should('not.exist')\n .get('[data-test=\"content\"]').should('not.exist')\n })\n\n it('should emit afterLeave', () => {\n const model = ref(true)\n const onAfterLeave = cy.spy().as('afterLeave')\n cy.mount(() => (\n <VDialog v-model={ model.value } onAfterLeave={ onAfterLeave }>\n <div data-test=\"content\">Content</div>\n </VDialog>\n )).get('body').click()\n .get('@afterLeave').should('have.been.calledOnce')\n })\n})\n"],"mappings":";AAAA;AAEA;AAAA,SACSA,OAAO,wBAEhB;AACA,SAASC,GAAG,QAAQ,KAAK;;AAEzB;AACAC,QAAQ,CAAC,SAAS,EAAE,MAAM;EACxBC,EAAE,CAAC,yBAAyB,EAAE,MAAM;IAClC,MAAMC,KAAK,GAAGH,GAAG,CAAC,KAAK,CAAC;IACxBI,EAAE,CAACC,KAAK,CAAC,MAAAC,YAAA,CAAAP,OAAA;MAAA,cACYI,KAAK,CAACI,KAAK;MAAA,uBAAAC,MAAA,IAAXL,KAAK,CAACI,KAAK,GAAAC,MAAA;MAAA;IAAA;MAAAC,OAAA,EAAAA,CAAA,MAAAH,YAAA;QAAA;MAAA,IAAAI,gBAAA;IAAA,EAG/B,CAAC,CAACC,GAAG,CAAC,sBAAsB,CAAC,CAACC,MAAM,CAAC,WAAW,CAAC,CAC/CC,IAAI,CAAC,MAAM;MAAEV,KAAK,CAACI,KAAK,GAAG,IAAI;IAAC,CAAC,CAAC,CAClCI,GAAG,CAAC,sBAAsB,CAAC,CAACC,MAAM,CAAC,YAAY,CAAC,CAChDD,GAAG,CAAC,uBAAuB,CAAC,CAACC,MAAM,CAAC,YAAY,CAAC,CAC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