@pantograph/vue 0.32.5 → 0.32.6
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/Drawer/index.js +9 -9
- package/dist/Drawer/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/use/index.js +1 -1
- package/dist/use/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/Drawer/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 P, withCtx as u, renderSlot as y } from "vue";
|
|
2
|
-
import { DIALOG_DEFAULT_PROPS as h, Dialog as N, DialogTitle as T, DialogSizes as k, DialogDrawerSides as
|
|
2
|
+
import { DIALOG_DEFAULT_PROPS as h, Dialog as N, DialogTitle as T, DialogSizes as k, DialogDrawerSides as F } from "../Dialog/index.js";
|
|
3
3
|
import { getComponentOptions as m, getComponentName as b } from "@pantograph/utils";
|
|
4
|
-
import { useEmitAsProps as
|
|
5
|
-
import { omit as
|
|
6
|
-
import { installComponent as
|
|
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
7
|
const d = [
|
|
8
8
|
"type",
|
|
9
9
|
"asDrawerInMobile",
|
|
@@ -11,7 +11,7 @@ const d = [
|
|
|
11
11
|
"mobileDrawerHeight",
|
|
12
12
|
"mobileDrawerMaxHeight"
|
|
13
13
|
], E = {
|
|
14
|
-
...
|
|
14
|
+
...g(h, d)
|
|
15
15
|
}, H = /* @__PURE__ */ s({
|
|
16
16
|
...m("Drawer", !1),
|
|
17
17
|
__name: "Drawer",
|
|
@@ -45,7 +45,7 @@ const d = [
|
|
|
45
45
|
maskClosable: { type: Boolean },
|
|
46
46
|
beforeClose: { type: Function },
|
|
47
47
|
beforeCloseDebugger: { type: Boolean },
|
|
48
|
-
to: {},
|
|
48
|
+
to: { type: [String, Function] },
|
|
49
49
|
animated: { type: [Boolean, String] },
|
|
50
50
|
side: {},
|
|
51
51
|
wrapperCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
@@ -72,8 +72,8 @@ const d = [
|
|
|
72
72
|
}, E),
|
|
73
73
|
emits: ["update:open", "pointerDownOutside", "escapeKeyDown", "focusOutside", "update:fullScreen", "ok", "cancel", "close", "openChange", "afterClose", "afterOpen"],
|
|
74
74
|
setup(e, { emit: t }) {
|
|
75
|
-
const o = e, l = C(), S = i(), f =
|
|
76
|
-
...
|
|
75
|
+
const o = e, l = C(), S = i(), f = x(t), D = _(() => ({
|
|
76
|
+
...g(l, d),
|
|
77
77
|
...o,
|
|
78
78
|
...f,
|
|
79
79
|
type: "drawer"
|
|
@@ -104,7 +104,7 @@ const d = [
|
|
|
104
104
|
_: 3
|
|
105
105
|
}, 16));
|
|
106
106
|
}
|
|
107
|
-
}), G = k, K =
|
|
107
|
+
}), G = k, K = F, q = B(H, b("Drawer")), J = B(I, b("DrawerTitle"));
|
|
108
108
|
export {
|
|
109
109
|
H as Drawer,
|
|
110
110
|
q as DrawerPlugin,
|
|
@@ -1 +1 @@
|
|
|
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:{},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},renderPopupsInContent:{type:Boolean},renderPopupsInTo:{type:Boolean},ignoreParentTo:{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","openChange","afterClose","afterOpen"],setup(r,{emit:n}){const l=r,s=e.useAttrs(),m=e.useSlots(),g=n,b=D.useEmitAsProps(g),B=e.computed(()=>({...p.omit(s,c),...l,...b,type:"drawer"}));return(d,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(d.$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
|
+
"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},renderPopupsInContent:{type:Boolean},renderPopupsInTo:{type:Boolean},ignoreParentTo:{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","openChange","afterClose","afterOpen"],setup(r,{emit:n}){const l=r,s=e.useAttrs(),m=e.useSlots(),g=n,b=D.useEmitAsProps(g),B=e.computed(()=>({...p.omit(s,c),...l,...b,type:"drawer"}));return(d,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(d.$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;
|