@pantograph/vue 0.32.1 → 0.32.3

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.
@@ -1,4 +1,4 @@
1
- import { DialogSlots, DialogProps, DialogEmits } from '../Dialog/Dialog';
1
+ import { DialogSlots, DialogProps, DialogEmits } from '../Dialog';
2
2
  /**
3
3
  * Props for the Drawer component
4
4
  * Omitting 'type' and 'asDrawerInMobile' as they are set internally
@@ -14,14 +14,40 @@ export type DrawerSlots = DialogSlots;
14
14
  * Inherits all emits from Dialog component
15
15
  */
16
16
  export type DrawerEmits = DialogEmits;
17
- declare function __VLS_template(): {
18
- attrs: Partial<{}>;
19
- slots: Readonly<DialogSlots> & DialogSlots;
20
- refs: {};
21
- rootEl: any;
17
+ export declare const DRAWER_DEFAULT_PROPS: {
18
+ readonly footer: undefined;
19
+ readonly mask: true;
20
+ readonly width: "md";
21
+ readonly headerCls: undefined;
22
+ readonly open: false;
23
+ readonly openAutoFocus: false;
24
+ readonly side: "end";
25
+ readonly zIndex: 1000;
26
+ readonly screen: true;
27
+ readonly closeable: true;
28
+ readonly bodyCls: undefined;
29
+ readonly keyboard: true;
30
+ readonly footerCls: undefined;
31
+ readonly trapFocus: false;
32
+ readonly noBody: false;
33
+ readonly closeOnClickOutside: false;
34
+ readonly canFullScreen: true;
35
+ readonly fullScreen: false;
36
+ readonly frameless: false;
37
+ readonly okProps: () => {
38
+ readonly text: "Submit";
39
+ };
40
+ readonly cancelProps: () => {
41
+ readonly text: "Cancel";
42
+ readonly type: "ghost";
43
+ readonly color: "neutral";
44
+ };
45
+ readonly maskClosable: true;
46
+ readonly animated: true;
47
+ readonly swipeTriggerCls: undefined;
48
+ readonly swipeTrigger: undefined;
22
49
  };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<DrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
51
  cancel: (event: Event) => any;
26
52
  close: () => any;
27
53
  escapeKeyDown: (event: KeyboardEvent) => any;
@@ -43,14 +69,18 @@ declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}
43
69
  footer: false | null;
44
70
  mask: boolean;
45
71
  width: import('..').DialogSize | number | string;
72
+ headerCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
46
73
  open: boolean;
47
74
  openAutoFocus: boolean;
48
75
  side: import('..').DialogDrawerSide;
49
76
  zIndex: number;
50
77
  screen: boolean;
51
78
  closeable: boolean;
79
+ bodyCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
52
80
  keyboard: boolean;
81
+ footerCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
53
82
  trapFocus: boolean;
83
+ noBody: boolean;
54
84
  closeOnClickOutside: boolean;
55
85
  canFullScreen: boolean;
56
86
  fullScreen: boolean;
@@ -65,8 +95,9 @@ declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}
65
95
  };
66
96
  maskClosable: boolean;
67
97
  animated: boolean | string;
68
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
69
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
98
+ swipeTriggerCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
99
+ swipeTrigger: boolean;
100
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<DialogSlots> & DialogSlots>;
70
101
  export default _default;
71
102
  type __VLS_WithTemplateSlots<T, S> = T & {
72
103
  new (): {
@@ -0,0 +1,18 @@
1
+ import { DialogTitleSlots, DialogTitleProps } from '../Dialog/DialogTitle';
2
+ export type DrawerTitleSlots = DialogTitleSlots;
3
+ export type DrawerTitleProps = DialogTitleProps;
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<DialogTitleSlots> & DialogTitleSlots;
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<DialogTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -2,8 +2,13 @@
2
2
  * Plugin for the Drawer component
3
3
  */
4
4
  export declare const DrawerPlugin: import('vue').Plugin;
5
+ export declare const DrawerTitlePlugin: import('vue').Plugin;
5
6
  /**
6
7
  * Drawer component and related types
7
8
  */
8
9
  export { default as Drawer, type DrawerProps, type DrawerEmits, type DrawerSlots, default, } from './Drawer';
10
+ /**
11
+ * DrawerTitle component and related types
12
+ */
13
+ export { default as DrawerTitle, type DrawerTitleProps, type DrawerTitleSlots, } from './DrawerTitle';
9
14
  export * from './Drawer.model';
@@ -1,13 +1,21 @@
1
- import { defineComponent as u, mergeDefaults as m, useAttrs as b, useSlots as B, computed as g, createBlock as d, openBlock as S, normalizeProps as t, guardReactiveProps as o, createSlots as O, renderList as f, withCtx as w, renderSlot as A } from "vue";
2
- import { omit as D } from "es-toolkit";
3
- import { _ as C, D as j, b as h, a as N } from "../Dialog.vue_vue_type_style_index_0_lang-E3PPUmAH.js";
4
- import { getComponentOptions as _, getComponentName as k } from "@pantograph/utils";
5
- import { useEmitAsProps as P } from "reka-ui";
6
- import { installComponent as x } from "@pantograph/utils-vue";
7
- const F = /* @__PURE__ */ u({
8
- ..._("Drawer", !1),
1
+ import { defineComponent as s, mergeDefaults as A, useAttrs as C, useSlots as i, computed as _, createBlock as p, openBlock as c, normalizeProps as r, guardReactiveProps as n, createSlots as j, renderList as h, withCtx as u, renderSlot as y } from "vue";
2
+ import { DIALOG_DEFAULT_PROPS as N, Dialog as P, DialogTitle as k, DialogSizes as T, DialogDrawerSides as F } from "../Dialog/index.js";
3
+ import { getComponentOptions as m, getComponentName as b } from "@pantograph/utils";
4
+ import { useEmitAsProps as x } from "reka-ui";
5
+ import { omit as g } from "es-toolkit";
6
+ import { installComponent as B } from "@pantograph/utils-vue";
7
+ const d = [
8
+ "type",
9
+ "asDrawerInMobile",
10
+ "mobileDrawerMinHeight",
11
+ "mobileDrawerHeight",
12
+ "mobileDrawerMaxHeight"
13
+ ], E = {
14
+ ...g(N, d)
15
+ }, H = /* @__PURE__ */ s({
16
+ ...m("Drawer", !1),
9
17
  __name: "Drawer",
10
- props: /* @__PURE__ */ m({
18
+ props: /* @__PURE__ */ A({
11
19
  wrapperStyle: { type: [Boolean, null, String, Object, Array] },
12
20
  style: { type: [Boolean, null, String, Object, Array] },
13
21
  contentStyle: { type: [Boolean, null, String, Object, Array] },
@@ -37,7 +45,7 @@ const F = /* @__PURE__ */ u({
37
45
  maskClosable: { type: Boolean },
38
46
  beforeClose: { type: Function },
39
47
  beforeCloseDebugger: { type: Boolean },
40
- to: {},
48
+ to: { type: [String, Function] },
41
49
  animated: { type: [Boolean, String] },
42
50
  side: {},
43
51
  wrapperCls: { type: [Array, Object, String, Number, null, Boolean] },
@@ -58,35 +66,48 @@ const F = /* @__PURE__ */ u({
58
66
  defer: { type: Boolean },
59
67
  forceMount: { type: Boolean },
60
68
  disableOutsidePointerEvents: { type: Boolean }
61
- }, j),
69
+ }, E),
62
70
  emits: ["update:open", "pointerDownOutside", "escapeKeyDown", "focusOutside", "update:fullScreen", "ok", "cancel", "close"],
63
- setup(r, { emit: n }) {
64
- const l = r, a = b(), s = B(), i = P(n), p = g(() => ({
65
- ...D(a, [
66
- "type",
67
- "asDrawerInMobile",
68
- "mobileDrawerMinHeight",
69
- "mobileDrawerHeight",
70
- "mobileDrawerMaxHeight"
71
- ]),
72
- ...l,
73
- ...i,
71
+ setup(e, { emit: t }) {
72
+ const o = e, l = C(), S = i(), D = x(t), f = _(() => ({
73
+ ...g(l, d),
74
+ ...o,
75
+ ...D,
74
76
  type: "drawer"
75
77
  }));
76
- return (y, z) => (S(), d(C, t(o(p.value)), O({ _: 2 }, [
77
- f(Object.keys(s), (e) => ({
78
- name: e,
79
- fn: w((c) => [
80
- A(y.$slots, e, t(o(c)))
78
+ return (w, $) => (c(), p(P, r(n(f.value)), j({ _: 2 }, [
79
+ h(Object.keys(S), (a) => ({
80
+ name: a,
81
+ fn: u((O) => [
82
+ y(w.$slots, a, r(n(O)))
81
83
  ])
82
84
  }))
83
85
  ]), 1040));
84
86
  }
85
- }), W = h, R = N, $ = x(F, k("Drawer"));
87
+ }), L = /* @__PURE__ */ s({
88
+ ...m("DrawerTitle"),
89
+ __name: "DrawerTitle",
90
+ props: {
91
+ class: { type: [Array, Object, String, Number, null, Boolean] },
92
+ title: {}
93
+ },
94
+ setup(e) {
95
+ i();
96
+ const t = e;
97
+ return (o, l) => (c(), p(k, r(n(t)), {
98
+ default: u(() => [
99
+ y(o.$slots, "default")
100
+ ]),
101
+ _: 3
102
+ }, 16));
103
+ }
104
+ }), G = T, K = F, q = B(H, b("Drawer")), J = B(L, b("DrawerTitle"));
86
105
  export {
87
- F as Drawer,
88
- $ as DrawerPlugin,
89
- R as DrawerSides,
90
- W as DrawerSizes,
91
- F as default
106
+ H as Drawer,
107
+ q as DrawerPlugin,
108
+ K as DrawerSides,
109
+ G as DrawerSizes,
110
+ L as DrawerTitle,
111
+ J as DrawerTitlePlugin,
112
+ H as default
92
113
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("es-toolkit"),t=require("../Dialog.vue_vue_type_style_index_0_lang-EMHhn1g6.js"),n=require("@pantograph/utils"),B=require("reka-ui"),d=require("@pantograph/utils-vue"),o=e.defineComponent({...n.getComponentOptions("Drawer",!1),__name:"Drawer",props:e.mergeDefaults({wrapperStyle:{type:[Boolean,null,String,Object,Array]},style:{type:[Boolean,null,String,Object,Array]},contentStyle:{type:[Boolean,null,String,Object,Array]},noBody:{type:Boolean},keyboard:{type:Boolean},openAutoFocus:{type:Boolean},trapFocus:{type:Boolean},closeOnClickOutside:{type:Boolean},open:{type:Boolean},canFullScreen:{type:Boolean},fullScreen:{type:Boolean},minWidth:{},width:{},maxWidth:{},minHeight:{},height:{},maxHeight:{},title:{},description:{},frameless:{type:Boolean},footer:{type:[Boolean,null]},closeable:{type:Boolean},zIndex:{},okProps:{},cancelProps:{},mask:{type:Boolean},maskClosable:{type:Boolean},beforeClose:{type:Function},beforeCloseDebugger:{type:Boolean},to:{},animated:{type:[Boolean,String]},side:{},wrapperCls:{type:[Array,Object,String,Number,null,Boolean]},class:{type:[Array,Object,String,Number,null,Boolean]},blanketCls:{type:[Array,Object,String,Number,null,Boolean]},contentCls:{type:[Array,Object,String,Number,null,Boolean]},headerCls:{type:[Array,Object,String,Number,null,Boolean]},titleWrapperCls:{type:[Array,Object,String,Number,null,Boolean]},titleCls:{type:[Array,Object,String,Number,null,Boolean]},descriptionCls:{type:[Array,Object,String,Number,null,Boolean]},actionsCls:{type:[Array,Object,String,Number,null,Boolean]},bodyCls:{type:[Array,Object,String,Number,null,Boolean]},footerCls:{type:[Array,Object,String,Number,null,Boolean]},swipeTriggerCls:{type:[Array,Object,String,Number,null,Boolean]},screen:{type:Boolean},swipeTrigger:{type:Boolean},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean}},t.DIALOG_DEFAULT_PROPS),emits:["update:open","pointerDownOutside","escapeKeyDown","focusOutside","update:fullScreen","ok","cancel","close"],setup(l,{emit:a}){const s=l,i=e.useAttrs(),p=e.useSlots(),u=a,c=B.useEmitAsProps(u),y=e.computed(()=>({...g.omit(i,["type","asDrawerInMobile","mobileDrawerMinHeight","mobileDrawerHeight","mobileDrawerMaxHeight"]),...s,...c,type:"drawer"}));return(b,D)=>(e.openBlock(),e.createBlock(t._sfc_main,e.normalizeProps(e.guardReactiveProps(y.value)),e.createSlots({_:2},[e.renderList(Object.keys(p),r=>({name:r,fn:e.withCtx(m=>[e.renderSlot(b.$slots,r,e.normalizeProps(e.guardReactiveProps(m)))])}))]),1040))}}),S=t.DialogSizes,O=t.DialogDrawerSides,w=d.installComponent(o,n.getComponentName("Drawer"));exports.Drawer=o;exports.DrawerPlugin=w;exports.DrawerSides=O;exports.DrawerSizes=S;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../Dialog/index.umd.cjs"),o=require("@pantograph/utils"),D=require("reka-ui"),p=require("es-toolkit"),u=require("@pantograph/utils-vue"),c=["type","asDrawerInMobile","mobileDrawerMinHeight","mobileDrawerHeight","mobileDrawerMaxHeight"],w={...p.omit(t.DIALOG_DEFAULT_PROPS,c)},a=e.defineComponent({...o.getComponentOptions("Drawer",!1),__name:"Drawer",props:e.mergeDefaults({wrapperStyle:{type:[Boolean,null,String,Object,Array]},style:{type:[Boolean,null,String,Object,Array]},contentStyle:{type:[Boolean,null,String,Object,Array]},noBody:{type:Boolean},keyboard:{type:Boolean},openAutoFocus:{type:Boolean},trapFocus:{type:Boolean},closeOnClickOutside:{type:Boolean},open:{type:Boolean},canFullScreen:{type:Boolean},fullScreen:{type:Boolean},minWidth:{},width:{},maxWidth:{},minHeight:{},height:{},maxHeight:{},title:{},description:{},frameless:{type:Boolean},footer:{type:[Boolean,null]},closeable:{type:Boolean},zIndex:{},okProps:{},cancelProps:{},mask:{type:Boolean},maskClosable:{type:Boolean},beforeClose:{type:Function},beforeCloseDebugger:{type:Boolean},to:{type:[String,Function]},animated:{type:[Boolean,String]},side:{},wrapperCls:{type:[Array,Object,String,Number,null,Boolean]},class:{type:[Array,Object,String,Number,null,Boolean]},blanketCls:{type:[Array,Object,String,Number,null,Boolean]},contentCls:{type:[Array,Object,String,Number,null,Boolean]},headerCls:{type:[Array,Object,String,Number,null,Boolean]},titleWrapperCls:{type:[Array,Object,String,Number,null,Boolean]},titleCls:{type:[Array,Object,String,Number,null,Boolean]},descriptionCls:{type:[Array,Object,String,Number,null,Boolean]},actionsCls:{type:[Array,Object,String,Number,null,Boolean]},bodyCls:{type:[Array,Object,String,Number,null,Boolean]},footerCls:{type:[Array,Object,String,Number,null,Boolean]},swipeTriggerCls:{type:[Array,Object,String,Number,null,Boolean]},screen:{type:Boolean},swipeTrigger:{type:Boolean},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean}},w),emits:["update:open","pointerDownOutside","escapeKeyDown","focusOutside","update:fullScreen","ok","cancel","close"],setup(r,{emit:n}){const l=r,s=e.useAttrs(),m=e.useSlots(),g=n,b=D.useEmitAsProps(g),d=e.computed(()=>({...p.omit(s,c),...l,...b,type:"drawer"}));return(B,P)=>(e.openBlock(),e.createBlock(t.Dialog,e.normalizeProps(e.guardReactiveProps(d.value)),e.createSlots({_:2},[e.renderList(Object.keys(m),i=>({name:i,fn:e.withCtx(S=>[e.renderSlot(B.$slots,i,e.normalizeProps(e.guardReactiveProps(S)))])}))]),1040))}}),y=e.defineComponent({...o.getComponentOptions("DrawerTitle"),__name:"DrawerTitle",props:{class:{type:[Array,Object,String,Number,null,Boolean]},title:{}},setup(r){e.useSlots();const n=r;return(l,s)=>(e.openBlock(),e.createBlock(t.DialogTitle,e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),O=t.DialogSizes,C=t.DialogDrawerSides,A=u.installComponent(a,o.getComponentName("Drawer")),f=u.installComponent(y,o.getComponentName("DrawerTitle"));exports.Drawer=a;exports.DrawerPlugin=A;exports.DrawerSides=C;exports.DrawerSizes=O;exports.DrawerTitle=y;exports.DrawerTitlePlugin=f;exports.default=a;
@@ -1,4 +1,4 @@
1
- import { DialogSlots, DialogProps, DialogEmits } from '../Dialog/Dialog';
1
+ import { DialogSlots, DialogProps, DialogEmits } from '../Dialog';
2
2
  /**
3
3
  * Props for the Modal component
4
4
  * Omitting 'type' and 'side' as they are set internally
@@ -14,14 +14,43 @@ export type ModalSlots = DialogSlots;
14
14
  * Inherits all emits from Dialog component
15
15
  */
16
16
  export type ModalEmits = DialogEmits;
17
- declare function __VLS_template(): {
18
- attrs: Partial<{}>;
19
- slots: Readonly<DialogSlots> & DialogSlots;
20
- refs: {};
21
- rootEl: any;
17
+ export declare const MODAL_DEFAULT_PROPS: {
18
+ readonly footer: undefined;
19
+ readonly mask: true;
20
+ readonly width: "md";
21
+ readonly headerCls: undefined;
22
+ readonly open: false;
23
+ readonly openAutoFocus: false;
24
+ readonly zIndex: 1000;
25
+ readonly screen: true;
26
+ readonly closeable: true;
27
+ readonly bodyCls: undefined;
28
+ readonly keyboard: true;
29
+ readonly footerCls: undefined;
30
+ readonly trapFocus: false;
31
+ readonly noBody: false;
32
+ readonly closeOnClickOutside: false;
33
+ readonly canFullScreen: true;
34
+ readonly fullScreen: false;
35
+ readonly frameless: false;
36
+ readonly okProps: () => {
37
+ readonly text: "Submit";
38
+ };
39
+ readonly cancelProps: () => {
40
+ readonly text: "Cancel";
41
+ readonly type: "ghost";
42
+ readonly color: "neutral";
43
+ };
44
+ readonly maskClosable: true;
45
+ readonly animated: true;
46
+ readonly asDrawerInMobile: false;
47
+ readonly mobileDrawerMinHeight: undefined;
48
+ readonly mobileDrawerHeight: undefined;
49
+ readonly mobileDrawerMaxHeight: undefined;
50
+ readonly swipeTriggerCls: undefined;
51
+ readonly swipeTrigger: undefined;
22
52
  };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
54
  cancel: (event: Event) => any;
26
55
  close: () => any;
27
56
  escapeKeyDown: (event: KeyboardEvent) => any;
@@ -43,13 +72,17 @@ declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {},
43
72
  footer: false | null;
44
73
  mask: boolean;
45
74
  width: import('..').DialogSize | number | string;
75
+ headerCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
46
76
  open: boolean;
47
77
  openAutoFocus: boolean;
48
78
  zIndex: number;
49
79
  screen: boolean;
50
80
  closeable: boolean;
81
+ bodyCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
51
82
  keyboard: boolean;
83
+ footerCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
52
84
  trapFocus: boolean;
85
+ noBody: boolean;
53
86
  closeOnClickOutside: boolean;
54
87
  canFullScreen: boolean;
55
88
  fullScreen: boolean;
@@ -64,8 +97,13 @@ declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {},
64
97
  };
65
98
  maskClosable: boolean;
66
99
  animated: boolean | string;
67
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
68
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
100
+ asDrawerInMobile: boolean;
101
+ mobileDrawerMinHeight: number | string;
102
+ mobileDrawerHeight: number | string;
103
+ mobileDrawerMaxHeight: number | string;
104
+ swipeTriggerCls: string | number | bigint | boolean | import('clsx').ClassArray | import('clsx').ClassDictionary | null;
105
+ swipeTrigger: boolean;
106
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<DialogSlots> & DialogSlots>;
69
107
  export default _default;
70
108
  type __VLS_WithTemplateSlots<T, S> = T & {
71
109
  new (): {
@@ -0,0 +1,18 @@
1
+ import { DialogTitleSlots, DialogTitleProps } from '../Dialog/DialogTitle';
2
+ export type ModalTitleSlots = DialogTitleSlots;
3
+ export type ModalTitleProps = DialogTitleProps;
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<DialogTitleSlots> & DialogTitleSlots;
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<DialogTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -2,10 +2,15 @@
2
2
  * The plugin for the Modal component
3
3
  */
4
4
  export declare const ModalPlugin: import('vue').Plugin;
5
+ export declare const ModalTitlePlugin: import('vue').Plugin;
5
6
  /**
6
7
  * The Modal component and its associated types
7
8
  */
8
9
  export { default as Modal, type ModalProps, type ModalEmits, type ModalSlots, default, } from './Modal';
10
+ /**
11
+ * The ModalTitle component and its associated types
12
+ */
13
+ export { default as ModalTitle, type ModalTitleProps, type ModalTitleSlots, } from './ModalTitle';
9
14
  /**
10
15
  * The Modal model containing sizes and other constants
11
16
  */
@@ -1,13 +1,15 @@
1
- import { defineComponent as u, mergeDefaults as m, useAttrs as b, useSlots as B, computed as d, createBlock as g, openBlock as S, normalizeProps as o, guardReactiveProps as t, createSlots as O, renderList as f, withCtx as A, renderSlot as C } from "vue";
2
- import { omit as j } from "es-toolkit";
3
- import { _ as h, D as N, b as w } from "../Dialog.vue_vue_type_style_index_0_lang-E3PPUmAH.js";
4
- import { getComponentOptions as D, getComponentName as _ } from "@pantograph/utils";
5
- import { useEmitAsProps as k } from "reka-ui";
6
- import { installComponent as M } from "@pantograph/utils-vue";
7
- const P = /* @__PURE__ */ u({
8
- ...D("Modal", !1),
1
+ import { defineComponent as s, mergeDefaults as _, useAttrs as j, useSlots as i, computed as M, createBlock as p, openBlock as c, normalizeProps as l, guardReactiveProps as n, createSlots as D, renderList as h, withCtx as u, renderSlot as y } from "vue";
2
+ import { DIALOG_DEFAULT_PROPS as N, Dialog as P, DialogTitle as w, DialogSizes as k } from "../Dialog/index.js";
3
+ import { getComponentOptions as m, getComponentName as b } from "@pantograph/utils";
4
+ import { useEmitAsProps as T } from "reka-ui";
5
+ import { omit as d } from "es-toolkit";
6
+ import { installComponent as B } from "@pantograph/utils-vue";
7
+ const g = ["type", "side"], F = {
8
+ ...d(N, g)
9
+ }, x = /* @__PURE__ */ s({
10
+ ...m("Modal", !1),
9
11
  __name: "Modal",
10
- props: /* @__PURE__ */ m({
12
+ props: /* @__PURE__ */ _({
11
13
  wrapperStyle: { type: [Boolean, null, String, Object, Array] },
12
14
  style: { type: [Boolean, null, String, Object, Array] },
13
15
  contentStyle: { type: [Boolean, null, String, Object, Array] },
@@ -61,28 +63,47 @@ const P = /* @__PURE__ */ u({
61
63
  defer: { type: Boolean },
62
64
  forceMount: { type: Boolean },
63
65
  disableOutsidePointerEvents: { type: Boolean }
64
- }, N),
66
+ }, F),
65
67
  emits: ["update:open", "pointerDownOutside", "escapeKeyDown", "focusOutside", "update:fullScreen", "ok", "cancel", "close"],
66
- setup(n, { emit: l }) {
67
- const r = n, a = b(), s = B(), i = k(l), p = d(() => ({
68
- ...j(a, ["type", "side"]),
69
- ...r,
70
- ...i,
68
+ setup(e, { emit: t }) {
69
+ const o = e, r = j(), S = i(), f = T(t), O = M(() => ({
70
+ ...d(r, g),
71
+ ...o,
72
+ ...f,
71
73
  type: "modal"
72
74
  }));
73
- return (y, F) => (S(), g(h, o(t(p.value)), O({ _: 2 }, [
74
- f(Object.keys(s), (e) => ({
75
- name: e,
76
- fn: A((c) => [
77
- C(y.$slots, e, o(t(c)))
75
+ return (A, $) => (c(), p(P, l(n(O.value)), D({ _: 2 }, [
76
+ h(Object.keys(S), (a) => ({
77
+ name: a,
78
+ fn: u((C) => [
79
+ y(A.$slots, a, l(n(C)))
78
80
  ])
79
81
  }))
80
82
  ]), 1040));
81
83
  }
82
- }), T = w, W = M(P, _("Modal"));
84
+ }), L = /* @__PURE__ */ s({
85
+ ...m("ModalTitle"),
86
+ __name: "ModalTitle",
87
+ props: {
88
+ class: { type: [Array, Object, String, Number, null, Boolean] },
89
+ title: {}
90
+ },
91
+ setup(e) {
92
+ i();
93
+ const t = e;
94
+ return (o, r) => (c(), p(w, l(n(t)), {
95
+ default: u(() => [
96
+ y(o.$slots, "default")
97
+ ]),
98
+ _: 3
99
+ }, 16));
100
+ }
101
+ }), U = k, G = B(x, b("Modal")), K = B(L, b("ModalTitle"));
83
102
  export {
84
- P as Modal,
85
- W as ModalPlugin,
86
- T as ModalSizes,
87
- P as default
103
+ x as Modal,
104
+ G as ModalPlugin,
105
+ U as ModalSizes,
106
+ L as ModalTitle,
107
+ K as ModalTitlePlugin,
108
+ x as default
88
109
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("es-toolkit"),t=require("../Dialog.vue_vue_type_style_index_0_lang-EMHhn1g6.js"),l=require("@pantograph/utils"),g=require("reka-ui"),B=require("@pantograph/utils-vue"),o=e.defineComponent({...l.getComponentOptions("Modal",!1),__name:"Modal",props:e.mergeDefaults({wrapperStyle:{type:[Boolean,null,String,Object,Array]},style:{type:[Boolean,null,String,Object,Array]},contentStyle:{type:[Boolean,null,String,Object,Array]},noBody:{type:Boolean},keyboard:{type:Boolean},openAutoFocus:{type:Boolean},trapFocus:{type:Boolean},closeOnClickOutside:{type:Boolean},open:{type:Boolean},canFullScreen:{type:Boolean},fullScreen:{type:Boolean},minWidth:{},width:{},maxWidth:{},minHeight:{},height:{},maxHeight:{},title:{},description:{},frameless:{type:Boolean},footer:{type:[Boolean,null]},closeable:{type:Boolean},zIndex:{},okProps:{},cancelProps:{},mask:{type:Boolean},maskClosable:{type:Boolean},beforeClose:{type:Function},beforeCloseDebugger:{type:Boolean},to:{type:[String,Function]},animated:{type:[Boolean,String]},asDrawerInMobile:{type:Boolean},mobileDrawerMinHeight:{},mobileDrawerHeight:{},mobileDrawerMaxHeight:{},wrapperCls:{type:[Array,Object,String,Number,null,Boolean]},class:{type:[Array,Object,String,Number,null,Boolean]},blanketCls:{type:[Array,Object,String,Number,null,Boolean]},contentCls:{type:[Array,Object,String,Number,null,Boolean]},headerCls:{type:[Array,Object,String,Number,null,Boolean]},titleWrapperCls:{type:[Array,Object,String,Number,null,Boolean]},titleCls:{type:[Array,Object,String,Number,null,Boolean]},descriptionCls:{type:[Array,Object,String,Number,null,Boolean]},actionsCls:{type:[Array,Object,String,Number,null,Boolean]},bodyCls:{type:[Array,Object,String,Number,null,Boolean]},footerCls:{type:[Array,Object,String,Number,null,Boolean]},swipeTriggerCls:{type:[Array,Object,String,Number,null,Boolean]},screen:{type:Boolean},swipeTrigger:{type:Boolean},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean}},t.DIALOG_DEFAULT_PROPS),emits:["update:open","pointerDownOutside","escapeKeyDown","focusOutside","update:fullScreen","ok","cancel","close"],setup(r,{emit:a}){const s=r,i=e.useAttrs(),p=e.useSlots(),u=a,c=g.useEmitAsProps(u),y=e.computed(()=>({...d.omit(i,["type","side"]),...s,...c,type:"modal"}));return(b,A)=>(e.openBlock(),e.createBlock(t._sfc_main,e.normalizeProps(e.guardReactiveProps(y.value)),e.createSlots({_:2},[e.renderList(Object.keys(p),n=>({name:n,fn:e.withCtx(m=>[e.renderSlot(b.$slots,n,e.normalizeProps(e.guardReactiveProps(m)))])}))]),1040))}}),S=t.DialogSizes,O=B.installComponent(o,l.getComponentName("Modal"));exports.Modal=o;exports.ModalPlugin=O;exports.ModalSizes=S;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../Dialog/index.umd.cjs"),o=require("@pantograph/utils"),O=require("reka-ui"),p=require("es-toolkit"),u=require("@pantograph/utils-vue"),c=["type","side"],C={...p.omit(t.DIALOG_DEFAULT_PROPS,c)},a=e.defineComponent({...o.getComponentOptions("Modal",!1),__name:"Modal",props:e.mergeDefaults({wrapperStyle:{type:[Boolean,null,String,Object,Array]},style:{type:[Boolean,null,String,Object,Array]},contentStyle:{type:[Boolean,null,String,Object,Array]},noBody:{type:Boolean},keyboard:{type:Boolean},openAutoFocus:{type:Boolean},trapFocus:{type:Boolean},closeOnClickOutside:{type:Boolean},open:{type:Boolean},canFullScreen:{type:Boolean},fullScreen:{type:Boolean},minWidth:{},width:{},maxWidth:{},minHeight:{},height:{},maxHeight:{},title:{},description:{},frameless:{type:Boolean},footer:{type:[Boolean,null]},closeable:{type:Boolean},zIndex:{},okProps:{},cancelProps:{},mask:{type:Boolean},maskClosable:{type:Boolean},beforeClose:{type:Function},beforeCloseDebugger:{type:Boolean},to:{type:[String,Function]},animated:{type:[Boolean,String]},asDrawerInMobile:{type:Boolean},mobileDrawerMinHeight:{},mobileDrawerHeight:{},mobileDrawerMaxHeight:{},wrapperCls:{type:[Array,Object,String,Number,null,Boolean]},class:{type:[Array,Object,String,Number,null,Boolean]},blanketCls:{type:[Array,Object,String,Number,null,Boolean]},contentCls:{type:[Array,Object,String,Number,null,Boolean]},headerCls:{type:[Array,Object,String,Number,null,Boolean]},titleWrapperCls:{type:[Array,Object,String,Number,null,Boolean]},titleCls:{type:[Array,Object,String,Number,null,Boolean]},descriptionCls:{type:[Array,Object,String,Number,null,Boolean]},actionsCls:{type:[Array,Object,String,Number,null,Boolean]},bodyCls:{type:[Array,Object,String,Number,null,Boolean]},footerCls:{type:[Array,Object,String,Number,null,Boolean]},swipeTriggerCls:{type:[Array,Object,String,Number,null,Boolean]},screen:{type:Boolean},swipeTrigger:{type:Boolean},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean}},C),emits:["update:open","pointerDownOutside","escapeKeyDown","focusOutside","update:fullScreen","ok","cancel","close"],setup(l,{emit:n}){const r=l,s=e.useAttrs(),m=e.useSlots(),d=n,g=O.useEmitAsProps(d),b=e.computed(()=>({...p.omit(s,c),...r,...g,type:"modal"}));return(B,P)=>(e.openBlock(),e.createBlock(t.Dialog,e.normalizeProps(e.guardReactiveProps(b.value)),e.createSlots({_:2},[e.renderList(Object.keys(m),i=>({name:i,fn:e.withCtx(S=>[e.renderSlot(B.$slots,i,e.normalizeProps(e.guardReactiveProps(S)))])}))]),1040))}}),y=e.defineComponent({...o.getComponentOptions("ModalTitle"),__name:"ModalTitle",props:{class:{type:[Array,Object,String,Number,null,Boolean]},title:{}},setup(l){e.useSlots();const n=l;return(r,s)=>(e.openBlock(),e.createBlock(t.DialogTitle,e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16))}}),A=t.DialogSizes,f=u.installComponent(a,o.getComponentName("Modal")),M=u.installComponent(y,o.getComponentName("ModalTitle"));exports.Modal=a;exports.ModalPlugin=f;exports.ModalSizes=A;exports.ModalTitle=y;exports.ModalTitlePlugin=M;exports.default=a;