@vuetify/nightly 3.7.16-master.2025-03-13 → 3.7.16-master.2025-03-15
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 +9 -4
- package/dist/json/attributes.json +3333 -3333
- package/dist/json/importMap-labs.json +40 -40
- package/dist/json/importMap.json +168 -168
- package/dist/json/web-types.json +6314 -6314
- package/dist/vuetify-labs.css +3343 -3343
- 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 +2037 -2037
- package/dist/vuetify.d.ts +67 -67
- 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 +67 -67
- 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-15
|
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-15"
|
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-15"
|
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-15";
|
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']
|
492
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
493
|
+
VApp: typeof import('vuetify/components')['VApp']
|
494
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
495
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
495
496
|
VBadge: typeof import('vuetify/components')['VBadge']
|
497
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
498
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
496
499
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
497
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
498
500
|
VBanner: typeof import('vuetify/components')['VBanner']
|
499
501
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
500
502
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
501
|
-
|
502
|
-
|
503
|
-
|
503
|
+
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
504
|
+
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
505
|
+
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
506
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
507
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
508
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
509
|
+
VChip: typeof import('vuetify/components')['VChip']
|
510
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
504
511
|
VCard: typeof import('vuetify/components')['VCard']
|
505
512
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
506
513
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
507
514
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
508
515
|
VCardText: typeof import('vuetify/components')['VCardText']
|
509
516
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
510
|
-
|
517
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
518
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
519
|
+
VCode: typeof import('vuetify/components')['VCode']
|
511
520
|
VCarousel: typeof import('vuetify/components')['VCarousel']
|
512
521
|
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
522
|
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,13 +527,23 @@ 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
|
-
VDivider: typeof import('vuetify/components')['VDivider']
|
538
|
-
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
530
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
539
531
|
VDialog: typeof import('vuetify/components')['VDialog']
|
540
|
-
|
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']
|
541
538
|
VField: typeof import('vuetify/components')['VField']
|
542
539
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
540
|
+
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
541
|
+
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
542
|
+
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
543
|
+
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
544
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
545
|
+
VFab: typeof import('vuetify/components')['VFab']
|
546
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
543
547
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
544
548
|
VIcon: typeof import('vuetify/components')['VIcon']
|
545
549
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
@@ -547,18 +551,13 @@ declare module 'vue' {
|
|
547
551
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
548
552
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
549
553
|
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
554
|
VImg: typeof import('vuetify/components')['VImg']
|
555
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
556
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
556
557
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
557
558
|
VItem: typeof import('vuetify/components')['VItem']
|
558
|
-
|
559
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
559
|
+
VMain: typeof import('vuetify/components')['VMain']
|
560
560
|
VKbd: typeof import('vuetify/components')['VKbd']
|
561
|
-
VInput: typeof import('vuetify/components')['VInput']
|
562
561
|
VList: typeof import('vuetify/components')['VList']
|
563
562
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
564
563
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -568,71 +567,72 @@ declare module 'vue' {
|
|
568
567
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
569
568
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
570
569
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
571
|
-
VMain: typeof import('vuetify/components')['VMain']
|
572
|
-
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
573
570
|
VMenu: typeof import('vuetify/components')['VMenu']
|
571
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
572
|
+
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
574
573
|
VMessages: typeof import('vuetify/components')['VMessages']
|
575
574
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
575
|
+
VInput: typeof import('vuetify/components')['VInput']
|
576
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
577
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
578
|
+
VRating: typeof import('vuetify/components')['VRating']
|
576
579
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
577
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
578
580
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
581
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
579
582
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
580
|
-
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
581
583
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
582
|
-
|
583
|
-
|
584
|
-
|
584
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
585
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
586
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
585
587
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
586
588
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
587
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
588
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
589
589
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
590
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
591
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
590
592
|
VStepper: typeof import('vuetify/components')['VStepper']
|
591
593
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
592
594
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
593
595
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
594
596
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
595
597
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
596
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
597
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
598
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
599
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
600
|
-
VTable: typeof import('vuetify/components')['VTable']
|
601
598
|
VTab: typeof import('vuetify/components')['VTab']
|
602
599
|
VTabs: typeof import('vuetify/components')['VTabs']
|
603
600
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
604
601
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
605
|
-
|
602
|
+
VTable: typeof import('vuetify/components')['VTable']
|
606
603
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
607
604
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
608
|
-
|
609
|
-
|
605
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
606
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
610
607
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
611
608
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
612
609
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
610
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
611
|
+
VWindow: typeof import('vuetify/components')['VWindow']
|
612
|
+
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
613
613
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
614
614
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
615
615
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
616
616
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
617
|
+
VHover: typeof import('vuetify/components')['VHover']
|
617
618
|
VForm: typeof import('vuetify/components')['VForm']
|
618
619
|
VContainer: typeof import('vuetify/components')['VContainer']
|
619
620
|
VCol: typeof import('vuetify/components')['VCol']
|
620
621
|
VRow: typeof import('vuetify/components')['VRow']
|
621
622
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
622
|
-
VHover: typeof import('vuetify/components')['VHover']
|
623
623
|
VLayout: typeof import('vuetify/components')['VLayout']
|
624
624
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
625
625
|
VLazy: typeof import('vuetify/components')['VLazy']
|
626
626
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
627
627
|
VParallax: typeof import('vuetify/components')['VParallax']
|
628
628
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
629
|
-
VRadio: typeof import('vuetify/components')['VRadio']
|
630
629
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
630
|
+
VRadio: typeof import('vuetify/components')['VRadio']
|
631
631
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
632
|
-
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
633
632
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
634
|
-
|
633
|
+
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
635
634
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
635
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
636
636
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
637
637
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
638
638
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
@@ -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
|
+
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
654
|
+
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
655
|
+
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
656
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
657
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
658
|
+
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
659
|
+
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
660
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
661
|
+
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
662
|
+
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
663
|
+
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
653
664
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
654
665
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
655
666
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
656
667
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
657
668
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
658
669
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
659
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
660
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
661
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
662
670
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
663
671
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
664
672
|
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
|
-
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
671
|
-
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
672
|
-
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
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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