@pantograph/vue 0.15.0 → 0.15.2
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/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-4bWnl8i0.js → ActionButton.vue_vue_type_script_setup_true_lang-DgyV4xRm.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C_7SZxPE.js → ActionButton.vue_vue_type_script_setup_true_lang-UVa0o0Ij.js} +2 -2
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-BSPB5uP9.js → Alert.vue_vue_type_style_index_0_lang-DxbZ0Dgp.js} +3 -3
- package/dist/{Alert.vue_vue_type_style_index_0_lang-De8BdiEm.js → Alert.vue_vue_type_style_index_0_lang-tp9Yuyhx.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-DeTUyD13.js → Avatar.vue_vue_type_style_index_0_lang-B_L_lRri.js} +2 -2
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-CrIwlgJN.js → Avatar.vue_vue_type_style_index_0_lang-C6nX1g5s.js} +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CvnE7Srj.js → Badge.vue_vue_type_script_setup_true_lang-C9YYaZPq.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DYPVS-yf.js → Badge.vue_vue_type_script_setup_true_lang-D_Kb6YYk.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-eeWTMdbl.js → BaseButton.vue_vue_type_style_index_0_lang-CDwjubhE.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-CgMukDgL.js → BaseButton.vue_vue_type_style_index_0_lang-HfsOA9_2.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-B6PUOUfI.js → Button.vue_vue_type_script_setup_true_lang-BNTreTjC.js} +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DjzpN9q5.js → Button.vue_vue_type_script_setup_true_lang-CvISLevL.js} +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CP6XeMyz.js → Checkbox.vue_vue_type_style_index_0_lang-D-oXRs9j.js} +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-BoCylzCv.js → Checkbox.vue_vue_type_style_index_0_lang-DmYIG1dJ.js} +1 -1
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-DkdkKJvb.js → Chip.vue_vue_type_style_index_0_lang-D9b9CzL-.js} +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-B8_9Fuov.js → Chip.vue_vue_type_style_index_0_lang-QPy9oUi2.js} +1 -1
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Cn0SS405.js → ChipGroup.vue_vue_type_style_index_0_lang-CHpFQGo2.js} +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-DXgB3D2F.js → ChipGroup.vue_vue_type_style_index_0_lang-uLOZBssn.js} +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-OlYb1GsW.js → ColorPicker.vue_vue_type_style_index_0_lang-BFy2WG4I.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BJqIuqb1.js → ColorPicker.vue_vue_type_style_index_0_lang-DiLY5TEe.js} +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DmhhCVv7.js → ColorSwatch.vue_vue_type_style_index_0_lang-CUk1dzLL.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-B35b1BsJ.js → ColorSwatch.vue_vue_type_style_index_0_lang-ena7zgve.js} +3 -3
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CUBuxVaq.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-BFapju8t.js} +5 -5
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CYLmaqeI.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-qPcgpY1d.js} +1 -1
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-DNZxq-yR.js → ColorTrigger.vue_vue_type_style_index_0_lang-BLaALuwC.js} +2 -2
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-YWVLXFVc.js → ColorTrigger.vue_vue_type_style_index_0_lang-DCR5hP83.js} +1 -1
- package/dist/DataTable/DataTable.model.d.ts +4 -1
- package/dist/DataTable/index.d.ts +2 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types.d.ts +69 -0
- package/dist/DataTable/{useColumn.d.ts → useCell.d.ts} +1 -2
- package/dist/DataTable/useCol.d.ts +11 -0
- package/dist/DataTable/useColumnWrap.d.ts +1 -1
- package/dist/DataTable/useSelection.d.ts +28 -0
- package/dist/DataTable/useSort.d.ts +21 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-ATKG2Cmd.js +1 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DrlPDQwn.js +972 -0
- package/dist/DropZone/DropZone.d.ts +53 -0
- package/dist/DropZone/index.d.ts +2 -1
- package/dist/DropZone/index.js +7 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-CVlC2HPc.js +1 -0
- package/dist/DropZone.vue_vue_type_style_index_0_lang-DswnAgcQ.js +121 -0
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BxvHC70e.js → FloatButton.vue_vue_type_script_setup_true_lang-B0H9wD6k.js} +2 -2
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-COenBFvO.js → FloatButton.vue_vue_type_script_setup_true_lang-Bbt9lIzt.js} +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Bc5zh_wp.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BJxJMvEW.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CwxMftZ5.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DiOcyHlU.js} +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-Bi_qwuVm.js → IconButton.vue_vue_type_script_setup_true_lang-jsgZCtDw.js} +2 -2
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-efWR_OuR.js → IconButton.vue_vue_type_script_setup_true_lang-qMI8hvaP.js} +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-ChiSKb-J.js → IndentLevel.vue_vue_type_style_index_0_lang-Ce8LV7Lh.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-C_b-LVE0.js → IndentLevel.vue_vue_type_style_index_0_lang-Cko7CNe8.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DjRN5aRj.js → Indicator.vue_vue_type_script_setup_true_lang-B8kmhRfQ.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-RPFjQEzE.js → Indicator.vue_vue_type_script_setup_true_lang-BzfzbSZa.js} +1 -1
- package/dist/Input/Input.model.d.ts +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-DCCIX52B.js +1 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-DhUwuI6B.js +199 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/{Menu.vue_vue_type_style_index_0_lang-DacaUajM.js → Menu.vue_vue_type_style_index_0_lang-DIMEa_Ht.js} +1 -1
- package/dist/{Menu.vue_vue_type_style_index_0_lang-BVNhKBcu.js → Menu.vue_vue_type_style_index_0_lang-DRWb6YFs.js} +3 -3
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CFAYIAUF.js +153 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-CuBS3grq.js +1 -0
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-BsA4i2NS.js → RadioGroup.vue_vue_type_script_setup_true_lang-cFRkXOQf.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-B9tmAIEG.js → RadioGroup.vue_vue_type_script_setup_true_lang-lWkHiWdf.js} +1 -1
- package/dist/ScrollContainer/ScrollContainer.d.ts +247 -1
- package/dist/ScrollContainer/index.js +5 -4
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.model-DPWJjLfW.js +4 -0
- package/dist/ScrollContainer.model-Tt-6E8TA.js +1 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-C22K1mpy.js +1 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DcxqgHqY.js +173 -0
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-mkO4UH9N.js → Switch.vue_vue_type_style_index_0_lang-6gVnb9xl.js} +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-D03EmiSs.js → Switch.vue_vue_type_style_index_0_lang-Q8bdnZwm.js} +1 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-CjNYs1Lo.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-CzOa1Qzl.js +190 -0
- package/dist/Table/Tr.d.ts +5 -0
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tooltip/Tooltip.d.ts +33 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/Tooltip/index.js +7 -0
- package/dist/Tooltip/index.umd.cjs +1 -0
- package/dist/Tooltip/register.d.ts +3 -0
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-DWMPc3HZ.js +1 -0
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-DX19Sbqt.js +88 -0
- package/dist/Tree/Tree.d.ts +2 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-C88TjWts.js +504 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-DHQevJVn.js +1 -0
- package/dist/_baseIteratee-BBuodSH6.js +215 -0
- package/dist/_baseIteratee-CDuwB1bO.js +1 -0
- package/dist/_flatRest-DfF7R94v.js +1 -0
- package/dist/{_flatRest-Bw7fWA39.js → _flatRest-TqrGvOlu.js} +16 -12
- package/dist/{cloneDeep-unwWx7xF.js → cloneDeep-BJojf7NO.js} +1 -1
- package/dist/cloneDeep-DaX9li9z.js +1 -0
- package/dist/{get-w4jLplqh.js → get-CDLMdUvE.js} +1 -1
- package/dist/{get-FzuQyzCL.js → get-CukCUUmn.js} +1 -1
- package/dist/index.js +126 -121
- package/dist/index.umd.cjs +1 -1
- package/dist/{omit-6FeILhm3.js → omit-BTWlW6dc.js} +1 -1
- package/dist/{omit-DB3u1XL5.js → omit-BYRdzoed.js} +15 -15
- package/dist/{pick-DUYr5oPc.js → pick-CbcKnkja.js} +1 -1
- package/dist/{pick-BEnuz3iO.js → pick-CyXixg42.js} +1 -1
- package/dist/style/index.css +1 -1
- package/dist/{uniq-BoseFDe4.js → uniq-BkI6s4BR.js} +1 -1
- package/dist/{uniq-Yl5OObL1.js → uniq-FpLq1Xk8.js} +1 -1
- package/package.json +8 -3
- package/dist/DataTable.vue_vue_type_style_index_0_lang-BP5c0rda.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-C-7s05L-.js +0 -786
- package/dist/Input.vue_vue_type_style_index_0_lang-CCKpwRTa.js +0 -270
- package/dist/Input.vue_vue_type_style_index_0_lang-Ct9RhrT6.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-B695YDJE.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-ByhaxoQo.js +0 -153
- package/dist/ScrollContainer.model-BzodTc4p.js +0 -147
- package/dist/ScrollContainer.model-VXisa1jV.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-B4yro5EP.js +0 -180
- package/dist/THead.vue_vue_type_style_index_0_lang-C1I8ZLa2.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-DKtLWacR.js +0 -501
- package/dist/Tree.vue_vue_type_style_index_0_lang-DnnW2v03.js +0 -1
- package/dist/_baseIsEqual-B1yr67CO.js +0 -145
- package/dist/_baseIsEqual-DysaakgW.js +0 -1
- package/dist/_flatRest-B2xTunyg.js +0 -1
- package/dist/cloneDeep-CNkGIW_B.js +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Class } from '../types';
|
|
2
|
+
import { DropZoneSize, DropZoneType } from './DropZone.model';
|
|
3
|
+
export interface DropZoneProps {
|
|
4
|
+
type?: DropZoneType;
|
|
5
|
+
size?: DropZoneSize;
|
|
6
|
+
uploadButton?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
class?: Class;
|
|
9
|
+
iconCls?: Class;
|
|
10
|
+
icon?: string | boolean;
|
|
11
|
+
titleCls?: Class;
|
|
12
|
+
descriptionCls?: Class;
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
uploadText?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DropZoneSlots {
|
|
18
|
+
title: () => never;
|
|
19
|
+
description: () => never;
|
|
20
|
+
uploadButton: () => never;
|
|
21
|
+
icon: () => never;
|
|
22
|
+
}
|
|
23
|
+
export interface DropZoneEmits {
|
|
24
|
+
(e: 'drop', value: DragEvent): void;
|
|
25
|
+
(e: 'dragleave', value: DragEvent): void;
|
|
26
|
+
(e: 'dragenter', value: DragEvent): void;
|
|
27
|
+
}
|
|
28
|
+
declare function __VLS_template(): {
|
|
29
|
+
slots: Readonly<DropZoneSlots> & DropZoneSlots;
|
|
30
|
+
refs: {};
|
|
31
|
+
attrs: Partial<{}>;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<DropZoneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
35
|
+
dragenter: (value: DragEvent) => any;
|
|
36
|
+
dragleave: (value: DragEvent) => any;
|
|
37
|
+
drop: (value: DragEvent) => any;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<DropZoneProps> & Readonly<{
|
|
39
|
+
onDragenter?: ((value: DragEvent) => any) | undefined;
|
|
40
|
+
onDragleave?: ((value: DragEvent) => any) | undefined;
|
|
41
|
+
onDrop?: ((value: DragEvent) => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
type: DropZoneType;
|
|
44
|
+
size: DropZoneSize;
|
|
45
|
+
icon: string | boolean;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
package/dist/DropZone/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { type DropZoneEmits, type DropZoneProps, type DropZoneSlots, default, default as DropZone, } from './DropZone';
|
|
2
|
+
export * from './DropZone.model';
|
package/dist/DropZone/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../DropZone.vue_vue_type_style_index_0_lang-CVlC2HPc.js");exports.DropZone=e._sfc_main;exports.DropZoneSizes=e.DropZoneSizes;exports.DropZoneTypes=e.DropZoneTypes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),r=require("@pantograph/utils"),S=require("class-variance-authority"),b=require("./options-B4iSAKol.js"),V=require("./Icon.vue_vue_type_style_index_0_lang-BrV8amSh.js"),T=require("./Button.vue_vue_type_script_setup_true_lang-CvISLevL.js"),d=["default","placeholder"],u=["sm","md","lg"],_=["tabindex","disabled"],h=e.defineComponent({...b.getComponentOptions("DropZone"),__name:"DropZone",props:{type:{default:"default"},size:{default:"md"},uploadButton:{type:Boolean},disabled:{type:Boolean},class:{},iconCls:{},icon:{type:[String,Boolean],default:!0},titleCls:{},descriptionCls:{},title:{},description:{},uploadText:{}},emits:["drop","dragleave","dragenter"],setup(p,{emit:m}){const i=m,o=p,f=e.computed(()=>o.icon===!0?"tabler:drag-drop":o.icon),l=e.useSlots(),s=r.getBemBlock("drop_zone"),g=S.cva(s,{variants:{type:r.generateVariantClassList(d,s),size:r.generateVariantClassList(u,s),active:r.generateVariantClassList("active",s)}}),a=e.shallowRef(!1),v=e.computed(()=>o.title||!!l.title),B=e.computed(()=>o.description||!!l.description),y=e.computed(()=>{switch(o.size){case"sm":return"2xsm";case"lg":return"sm";default:return"xsm"}}),C=e.computed(()=>{switch(o.size){case"sm":return"sm";default:return"md"}}),z=t=>{var n,c;(c=(n=t==null?void 0:t.currentTarget)==null?void 0:n.contains)!=null&&c.call(n,t.relatedTarget)||(a.value=!1,i("dragleave",t))},k=t=>{a.value||(a.value=!0,i("dragenter",t))},D=t=>{a.value=!1,i("drop",t)};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{onDragenter:k,onDragleave:z,onDragover:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),onDrop:D,class:e.normalizeClass([e.unref(g)({type:t.type,size:t.size,active:a.value}),o.class]),tabindex:t.disabled?void 0:0,disabled:t.disabled},[t.icon||l.icon?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,size:y.value,icon:f.value,class:e.normalizeClass([e.unref(r.getBemElement)(e.unref(s),"icon"),t.iconCls])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["size","icon","class"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(r.getBemElement)(e.unref(s),"title"),t.titleCls])},[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],2)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(r.getBemElement)(e.unref(s),"description"),t.descriptionCls])},[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])],2)):e.createCommentVNode("",!0),t.type=="default"?e.renderSlot(t.$slots,"uploadButton",{key:3},()=>[t.uploadText?(e.openBlock(),e.createBlock(T._sfc_main,{key:0,size:C.value,"pre-icon":"tabler:upload",type:"outline",disabled:t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.uploadText),1)]),_:1},8,["size","disabled"])):e.createCommentVNode("",!0)]):e.createCommentVNode("",!0)],42,_))}});exports.DropZoneSizes=u;exports.DropZoneTypes=d;exports._sfc_main=h;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { defineComponent as I, computed as r, useSlots as L, shallowRef as N, createElementBlock as m, openBlock as n, normalizeClass as d, withModifiers as M, unref as a, createBlock as B, createCommentVNode as l, renderSlot as p, withCtx as C, createTextVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { getBemBlock as O, generateVariantClassList as v, getBemElement as y } from "@pantograph/utils";
|
|
3
|
+
import { cva as R } from "class-variance-authority";
|
|
4
|
+
import { g as j } from "./options-JBqnVZUl.js";
|
|
5
|
+
import { _ as q } from "./Icon.vue_vue_type_style_index_0_lang-D2A2tkHI.js";
|
|
6
|
+
import { _ as A } from "./Button.vue_vue_type_script_setup_true_lang-BNTreTjC.js";
|
|
7
|
+
const F = ["default", "placeholder"], G = ["sm", "md", "lg"], H = ["tabindex", "disabled"], X = /* @__PURE__ */ I({
|
|
8
|
+
...j("DropZone"),
|
|
9
|
+
__name: "DropZone",
|
|
10
|
+
props: {
|
|
11
|
+
type: { default: "default" },
|
|
12
|
+
size: { default: "md" },
|
|
13
|
+
uploadButton: { type: Boolean },
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
class: {},
|
|
16
|
+
iconCls: {},
|
|
17
|
+
icon: { type: [String, Boolean], default: !0 },
|
|
18
|
+
titleCls: {},
|
|
19
|
+
descriptionCls: {},
|
|
20
|
+
title: {},
|
|
21
|
+
description: {},
|
|
22
|
+
uploadText: {}
|
|
23
|
+
},
|
|
24
|
+
emits: ["drop", "dragleave", "dragenter"],
|
|
25
|
+
setup(D, { emit: b }) {
|
|
26
|
+
const c = b, t = D, k = r(() => t.icon === !0 ? "tabler:drag-drop" : t.icon), u = L(), o = O("drop_zone"), h = R(o, {
|
|
27
|
+
variants: {
|
|
28
|
+
type: v(F, o),
|
|
29
|
+
size: v(G, o),
|
|
30
|
+
active: v("active", o)
|
|
31
|
+
}
|
|
32
|
+
}), i = N(!1), T = r(() => t.title || !!u.title), S = r(() => t.description || !!u.description), $ = r(() => {
|
|
33
|
+
switch (t.size) {
|
|
34
|
+
case "sm":
|
|
35
|
+
return "2xsm";
|
|
36
|
+
case "lg":
|
|
37
|
+
return "sm";
|
|
38
|
+
default:
|
|
39
|
+
return "xsm";
|
|
40
|
+
}
|
|
41
|
+
}), w = r(() => {
|
|
42
|
+
switch (t.size) {
|
|
43
|
+
case "sm":
|
|
44
|
+
return "sm";
|
|
45
|
+
default:
|
|
46
|
+
return "md";
|
|
47
|
+
}
|
|
48
|
+
}), Z = (e) => {
|
|
49
|
+
var s, z;
|
|
50
|
+
(z = (s = e == null ? void 0 : e.currentTarget) == null ? void 0 : s.contains) != null && z.call(s, e.relatedTarget) || (i.value = !1, c("dragleave", e));
|
|
51
|
+
}, E = (e) => {
|
|
52
|
+
i.value || (i.value = !0, c("dragenter", e));
|
|
53
|
+
}, V = (e) => {
|
|
54
|
+
i.value = !1, c("drop", e);
|
|
55
|
+
};
|
|
56
|
+
return (e, s) => (n(), m("div", {
|
|
57
|
+
onDragenter: E,
|
|
58
|
+
onDragleave: Z,
|
|
59
|
+
onDragover: s[0] || (s[0] = M(() => {
|
|
60
|
+
}, ["prevent"])),
|
|
61
|
+
onDrop: V,
|
|
62
|
+
class: d([
|
|
63
|
+
a(h)({
|
|
64
|
+
type: e.type,
|
|
65
|
+
size: e.size,
|
|
66
|
+
active: i.value
|
|
67
|
+
}),
|
|
68
|
+
t.class
|
|
69
|
+
]),
|
|
70
|
+
tabindex: e.disabled ? void 0 : 0,
|
|
71
|
+
disabled: e.disabled
|
|
72
|
+
}, [
|
|
73
|
+
e.icon || u.icon ? (n(), B(q, {
|
|
74
|
+
key: 0,
|
|
75
|
+
size: $.value,
|
|
76
|
+
icon: k.value,
|
|
77
|
+
class: d([a(y)(a(o), "icon"), e.iconCls])
|
|
78
|
+
}, {
|
|
79
|
+
default: C(() => [
|
|
80
|
+
p(e.$slots, "icon")
|
|
81
|
+
]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 8, ["size", "icon", "class"])) : l("", !0),
|
|
84
|
+
T.value ? (n(), m("div", {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: d([a(y)(a(o), "title"), e.titleCls])
|
|
87
|
+
}, [
|
|
88
|
+
p(e.$slots, "title", {}, () => [
|
|
89
|
+
f(g(e.title), 1)
|
|
90
|
+
])
|
|
91
|
+
], 2)) : l("", !0),
|
|
92
|
+
S.value ? (n(), m("div", {
|
|
93
|
+
key: 2,
|
|
94
|
+
class: d([a(y)(a(o), "description"), e.descriptionCls])
|
|
95
|
+
}, [
|
|
96
|
+
p(e.$slots, "description", {}, () => [
|
|
97
|
+
f(g(e.description), 1)
|
|
98
|
+
])
|
|
99
|
+
], 2)) : l("", !0),
|
|
100
|
+
e.type == "default" ? p(e.$slots, "uploadButton", { key: 3 }, () => [
|
|
101
|
+
e.uploadText ? (n(), B(A, {
|
|
102
|
+
key: 0,
|
|
103
|
+
size: w.value,
|
|
104
|
+
"pre-icon": "tabler:upload",
|
|
105
|
+
type: "outline",
|
|
106
|
+
disabled: e.disabled
|
|
107
|
+
}, {
|
|
108
|
+
default: C(() => [
|
|
109
|
+
f(g(e.uploadText), 1)
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, ["size", "disabled"])) : l("", !0)
|
|
113
|
+
]) : l("", !0)
|
|
114
|
+
], 42, H));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
F as D,
|
|
119
|
+
X as _,
|
|
120
|
+
G as a
|
|
121
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-Bbt9lIzt.js");exports.FloatButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, useAttrs as l, computed as f, ref as m, createBlock as u, openBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { o as y } from "./omit-BYRdzoed.js";
|
|
3
|
+
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-HfsOA9_2.js";
|
|
4
4
|
import { g as O } from "./options-JBqnVZUl.js";
|
|
5
5
|
const F = /* @__PURE__ */ p({
|
|
6
6
|
...O("FloatButton", !1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),l=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./omit-BTWlW6dc.js"),p=require("./BaseButton.vue_vue_type_style_index_0_lang-CDwjubhE.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("FloatButton",!1),__name:"FloatButton",props:{class:{},color:{},loading:{type:Boolean},size:{},icon:{},flipOnDir:{},type:{}},setup(s,{expose:r}){const a=s,c=e.useAttrs(),i=e.computed(()=>({...l.omit(c,"variant","text","preIcon","postIcon","action","active","badgeText"),...a})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(p._sfc_main,e.mergeProps(i.value,{variant:"float",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-DiOcyHlU.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as n, useAttrs as m, createBlock as f, openBlock as b, mergeProps as u, createSlots as d, renderList as y, withCtx as C, renderSlot as _, normalizeProps as h, guardReactiveProps as O } from "vue";
|
|
2
|
-
import { o as j } from "./omit-
|
|
2
|
+
import { o as j } from "./omit-BYRdzoed.js";
|
|
3
3
|
import { _ as B } from "./BaseBadge.vue_vue_type_style_index_0_lang-BGO_OgyI.js";
|
|
4
4
|
import { g as $ } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { B as k, a as v } from "./BaseBadge.model-B27aBzz_.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-BTWlW6dc.js"),u=require("./BaseBadge.vue_vue_type_style_index_0_lang-CKgCe7Up.js"),b=require("./options-B4iSAKol.js"),g=require("./BaseBadge.model-qrHPAcrC.js"),r=require("@pantograph/tokens"),d=e.defineComponent({...b.getComponentOptions("GraphicalObject",!1),__name:"GraphicalObject",props:{class:{},icon:{},flipOnDir:{},fg:{},bg:{},br:{},size:{}},setup(l){const t=l,c=e.computed(()=>{const o=Object.fromEntries(g.BadgeColors.map(s=>[s,r.getCssCoreColor(`${s}-5`)])),n={...o,...Object.fromEntries(g.BadgeColorsSubtle.map(s=>[s,r.getCssCoreColor(`${s.replace("-subtle","")}-0`)])),transparent:"transparent","gray-subtle":r.getCssCoreColor("gray-1")},a={...o,gray:r.getCssCoreColor("gray-6"),default:r.getCssCoreColor("gray-8"),"default-subtle":r.getCssCoreColor("gray-5"),white:r.getCssCoreColor("grayscale-light-0"),black:r.getCssCoreColor("grayscale-light-10")};return{bg:n[t.bg]??t.bg,br:n[t.br]??(t.bg==="transparent"?r.getCssCoreColor("gray-2"):void 0),fg:a[t.fg??"default"]??t.fg}}),i=e.useAttrs(),C=e.computed(()=>({...p.omit(i,"type","text"),...t,...c.value}));return(o,n)=>(e.openBlock(),e.createBlock(u._sfc_main,e.mergeProps(C.value,{type:"rect"}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),a=>({name:a,fn:e.withCtx(s=>[e.renderSlot(o.$slots,a,e.normalizeProps(e.guardReactiveProps(s)))])}))]),1040))}});exports._sfc_main=d;
|
package/dist/IconButton/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-qMI8hvaP.js");exports.IconButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, useAttrs as m, computed as u, ref as f, createBlock as l, openBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { o as y } from "./omit-BYRdzoed.js";
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-HfsOA9_2.js";
|
|
4
4
|
import { g as C } from "./options-JBqnVZUl.js";
|
|
5
5
|
const z = /* @__PURE__ */ p({
|
|
6
6
|
...C("IconButton", !1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-BTWlW6dc.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-CDwjubhE.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"IconButton",props:{class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{},flipOnDir:{}},setup(s,{expose:r}){const c=s,i=e.useAttrs(),a=e.computed(()=>({...p.omit(i,"variant","preIcon","postIcon","text","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(a.value,{variant:"icon",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, a as s, I as t, _ as d } from "../IndentLevel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as a, a as s, I as t, _ as d } from "../IndentLevel.vue_vue_type_style_index_0_lang-Ce8LV7Lh.js";
|
|
2
2
|
export {
|
|
3
3
|
a as IndentLevel,
|
|
4
4
|
s as IndentLevelShowLines,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IndentLevel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IndentLevel.vue_vue_type_style_index_0_lang-Cko7CNe8.js");exports.IndentLevel=e._sfc_main;exports.IndentLevelShowLines=e.IndentLevelShowLines;exports.IndentLevelSizes=e.IndentLevelSizes;exports.default=e._sfc_main;
|
|
@@ -4,7 +4,7 @@ import { cva as D } from "class-variance-authority";
|
|
|
4
4
|
import { g as E } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { _ as g } from "./Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
|
|
6
6
|
import { _ as V } from "./Spinner.vue_vue_type_style_index_0_lang-DxwACaLW.js";
|
|
7
|
-
import { _ } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-BJxJMvEW.js";
|
|
8
8
|
import { i as M } from "./isNumber-BopDesuz.js";
|
|
9
9
|
const F = ["2xsm", "xsm", "sm"], Q = ["last", "all", "before", "self"], O = { key: 0 }, T = /* @__PURE__ */ z({
|
|
10
10
|
...E("IndentLevel"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),o=require("@pantograph/utils"),h=require("class-variance-authority"),k=require("./options-B4iSAKol.js"),u=require("./Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js"),g=require("./Spinner.vue_vue_type_style_index_0_lang-DqDFW850.js"),L=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),o=require("@pantograph/utils"),h=require("class-variance-authority"),k=require("./options-B4iSAKol.js"),u=require("./Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js"),g=require("./Spinner.vue_vue_type_style_index_0_lang-DqDFW850.js"),L=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-DiOcyHlU.js"),_=require("./isNumber-CYWvnzF3.js"),d=["2xsm","xsm","sm"],y=["last","all","before","self"],b={key:0},C=e.defineComponent({...k.getComponentOptions("IndentLevel"),__name:"IndentLevel",props:{size:{default:"xsm"},showLine:{type:[Number,Boolean]},children:{type:Boolean},level:{default:1},expanded:{type:Boolean},loading:{type:Boolean},class:{},branchIcon:{default:"tabler:chevron-right"},noRotateBranch:{type:Boolean}},setup(m){const t=m,a=o.getBemBlock("indent_level"),i=o.getBemElement(a,"item"),p=o.getBemElement(i,"branch"),v=h.cva(a,{variants:{size:o.generateVariantClassList(d,a),expanded:o.generateVariantClassList("expanded",a),branchSlot:o.generateVariantClassList("branch-slot",a),selfDivider:o.generateVariantClassList("self-divider",a),noRotateBranch:o.generateVariantClassList("no-rotate-branch",a),loading:o.generateVariantClassList("loading",a)}}),l=e.computed(()=>{const n=Number(t.level);return n<1?1:n%10===0?n:Math.floor(n)}),s=e.computed(()=>{if(t.showLine)return typeof t.showLine=="string"?["all","self"].includes(t.showLine):_.isNumber(t.showLine)&&t.showLine<=Number(t.level)}),f=n=>typeof t.showLine=="number"?t.showLine<=Number(n):!1;return(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(v)({size:n.size,expanded:n.expanded,noRotateBranch:n.noRotateBranch,branchSlot:n.$slots.default,selfDivider:s.value,loading:n.loading}),t.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,r=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(i),{[e.unref(o.getBemModifier)(e.unref(a),"expand")]:r===l.value}]),key:r},[r===l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.children?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.loading?(e.openBlock(),e.createBlock(g._sfc_main,{key:1,size:n.size},null,8,["size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.expanded&&s.value?(e.openBlock(),e.createElementBlock("div",b)):e.createCommentVNode("",!0),e.createVNode(L._sfc_main,{size:n.size,icon:n.branchIcon,color:"none",class:e.normalizeClass(e.unref(p)),onClick:c[0]||(c[0]=B=>n.$emit("toggleExpand",B))},{icon:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["size","icon","class"]),n.expanded&&s.value?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)],64)):["all","before"].includes(n.showLine)||n.showLine==="last"&&r===l.value-1||f(r)?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)],2))),128))],2))}});exports.IndentLevelShowLines=y;exports.IndentLevelSizes=d;exports._sfc_main=C;
|
package/dist/Indicator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-BzfzbSZa.js");exports.Indicator=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f, useAttrs as d, computed as s, useSlots as u, createBlock as g, openBlock as _, mergeProps as b, createSlots as C, renderList as y, withCtx as B, renderSlot as k, normalizeProps as v, guardReactiveProps as x } from "vue";
|
|
2
|
-
import { o as O } from "./omit-
|
|
2
|
+
import { o as O } from "./omit-BYRdzoed.js";
|
|
3
3
|
import { _ as P } from "./BaseBadge.vue_vue_type_style_index_0_lang-BGO_OgyI.js";
|
|
4
4
|
import { g as S } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { B as $ } from "./BaseBadge.model-B27aBzz_.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),m=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./omit-BTWlW6dc.js"),_=require("./BaseBadge.vue_vue_type_style_index_0_lang-CKgCe7Up.js"),d=require("./options-B4iSAKol.js"),g=require("./BaseBadge.model-qrHPAcrC.js"),n=require("@pantograph/tokens"),C=e.defineComponent({...d.getComponentOptions("Indicator",!1),__name:"Indicator",props:{class:{},size:{},color:{}},setup(c){const t=c,i=e.useAttrs(),a=e.computed(()=>({bg:Object.fromEntries(g.BadgeColors.map(o=>[o,n.getCssCoreColor(`${o}-5`)]))[t.color]??n.getCssCoreColor("primary-5")})),p=e.computed(()=>({...m.omit(i,"type","text","icon","mode"),...t,...a.value})),u=e.useSlots();return(s,o)=>(e.openBlock(),e.createBlock(_._sfc_main,e.mergeProps(p.value,{type:"minify",mode:"bold"}),e.createSlots({_:2},[e.renderList(Object.keys(u),r=>({name:r,fn:e.withCtx(l=>[e.renderSlot(s.$slots,r,e.normalizeProps(e.guardReactiveProps(l)))])}))]),1040))}});exports._sfc_main=C;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const InputSizes: readonly ["sm", "md", "lg"];
|
|
2
2
|
export type InputSize = (typeof InputSizes)[number];
|
|
3
|
-
export declare const InputStatuses: readonly ["error", "warning"];
|
|
3
|
+
export declare const InputStatuses: readonly ["error", "warning", "success"];
|
|
4
4
|
export type InputStatus = (typeof InputStatuses)[number];
|
package/dist/Input/index.js
CHANGED
package/dist/Input/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Input.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Input.vue_vue_type_style_index_0_lang-DCCIX52B.js");exports.Input=e._sfc_main;exports.InputSizes=e.InputSizes;exports.InputStatuses=e.InputStatuses;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),q=require("@vueuse/core"),i=require("@pantograph/utils"),w=require("class-variance-authority"),y=require("./pick-CbcKnkja.js"),k=require("./_baseIteratee-CDuwB1bO.js"),C=require("./_flatRest-DfF7R94v.js"),R=require("./Icon.vue_vue_type_style_index_0_lang-BrV8amSh.js"),N=require("./Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js"),D=require("./options-B4iSAKol.js"),T=require("./useInputDataStates-CbRgNQqU.js");function U(n){return n===void 0}var A="Expected a function";function L(n){if(typeof n!="function")throw new TypeError(A);return function(){var s=arguments;switch(s.length){case 0:return!n.call(this);case 1:return!n.call(this,s[0]);case 2:return!n.call(this,s[0],s[1]);case 3:return!n.call(this,s[0],s[1],s[2])}return!n.apply(this,s)}}function M(n,s){if(n==null)return{};var p=C.arrayMap(C.getAllKeysIn(n),function(l){return[l]});return s=k.baseIteratee(s),y.basePickBy(n,p,function(l,c){return s(l,c[0])})}function P(n,s){return M(n,L(k.baseIteratee(s)))}const v=["sm","md","lg"],V=["error","warning","success"],$=e.defineComponent({...D.getComponentOptions("Input",!1),__name:"Input",props:{id:{},maxlength:{},type:{},placeholder:{},disabled:{type:Boolean,default:void 0},required:{type:Boolean},modelValue:{},defaultValue:{},leading:{},trailing:{},clearIcon:{default:"tabler:circle-x"},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:!0},size:{},status:{}},emits:["update:modelValue","clear","blur","focus"],setup(n,{expose:s,emit:p}){const l=n,c=e.useSlots(),f=p,u=q.useVModel(l,"modelValue",f,{defaultValue:l.defaultValue,passive:l.modelValue===void 0}),a=i.getBemBlock("input"),S=w.cva(a,{variants:{size:i.generateVariantClassList(v,a),status:i.generateVariantClassList(V,a),bordered:i.generateVariantClassList("bordered",a)}}),g=e.computed(()=>l.size&&v.includes(l.size)?l.size:"md"),z=e.useAttrs(),{rootBindings:b,inputBindings:I}=T.UseInputDataStates({getDisabled:()=>l.disabled,emit:f,blurCallBack:t=>{const r=t.target;r!=null&&r.value&&(r.value=u.value)}}),h=e.computed(()=>P({...y.pick(l,"id","maxlength","type","disabled","required","placeholder"),...z,...I.value},U)),_=e.computed(()=>{switch(g.value){case"sm":return"2xsm";default:return"xsm"}}),B=e.computed(()=>{switch(g.value){case"sm":return"2xsm";case"md":return"xsm";default:return"sm"}}),E=()=>{u.value="",f("clear")},o=e.ref();return s({input:o,focus:t=>{var r;return(r=o.value)==null?void 0:r.focus(t)},blur:()=>{var t;return(t=o.value)==null?void 0:t.blur()},select:()=>{var t;return(t=o.value.input)==null?void 0:t.select()},setSelectionRange:(t,r,d)=>{var m;return(m=o.value.input)==null?void 0:m.setSelectionRange(t,r,d)}}),(t,r)=>{var d;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(S)({size:g.value,status:t.status==="success"&&!e.unref(u)?void 0:t.status,bordered:t.bordered}),l.class]},e.unref(b)),[c.leading||l.leading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(i.getBemElement)(e.unref(a),"leading"),t.leadingCls])},[e.renderSlot(t.$slots,"leading",{iconSize:B.value},()=>[e.createTextVNode(e.toDisplayString(t.leading),1)])],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"inputRef",ref:o,"onUpdate:modelValue":r[0]||(r[0]=m=>e.isRef(u)?u.value=m:null)},h.value,{class:[e.unref(i.getBemElement)(e.unref(a),"input")]}),null,16),[[e.vModelDynamic,e.unref(u)]]),c.trailing||l.trailing||t.allowClear?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(i.getBemElement)(e.unref(a),"trailing"),t.trailingCls])},[!t.disabled&&t.allowClear&&((d=e.unref(u))!=null&&d.length)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(R._sfc_main,{icon:t.clearIcon,size:_.value,onClick:E,class:e.normalizeClass([e.unref(i.getBemElement)(e.unref(a),"clear_icon"),t.clearIconCls])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"clearIcon")]),_:3},8,["icon","size","class"]),c.trailing||l.trailing?(e.openBlock(),e.createBlock(N._sfc_main,{key:0,type:"vertical",class:e.normalizeClass([e.unref(i.getBemElement)(e.unref(a),"divider"),t.dividerCls])},null,8,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"trailing",{iconSize:B.value},()=>[e.createTextVNode(e.toDisplayString(t.trailing),1)])],2)):e.createCommentVNode("",!0)],16)}}});exports.InputSizes=v;exports.InputStatuses=V;exports._sfc_main=$;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { defineComponent as q, useSlots as A, computed as f, useAttrs as F, ref as O, createElementBlock as g, openBlock as c, mergeProps as S, unref as a, createCommentVNode as v, withDirectives as P, normalizeClass as y, renderSlot as h, createTextVNode as V, toDisplayString as I, createElementVNode as K, isRef as L, vModelDynamic as X, Fragment as _, createVNode as G, createBlock as H, withCtx as J } from "vue";
|
|
2
|
+
import { useVModel as Q } from "@vueuse/core";
|
|
3
|
+
import { getBemBlock as W, generateVariantClassList as z, getBemElement as d } from "@pantograph/utils";
|
|
4
|
+
import { cva as Y } from "class-variance-authority";
|
|
5
|
+
import { b as Z, p as j } from "./pick-CyXixg42.js";
|
|
6
|
+
import { b as R } from "./_baseIteratee-BBuodSH6.js";
|
|
7
|
+
import { a as x, g as ee } from "./_flatRest-TqrGvOlu.js";
|
|
8
|
+
import { _ as te } from "./Icon.vue_vue_type_style_index_0_lang-D2A2tkHI.js";
|
|
9
|
+
import { _ as se } from "./Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
|
|
10
|
+
import { g as le } from "./options-JBqnVZUl.js";
|
|
11
|
+
import { U as ae } from "./useInputDataStates-CZbdWpyp.js";
|
|
12
|
+
function ne(t) {
|
|
13
|
+
return t === void 0;
|
|
14
|
+
}
|
|
15
|
+
var re = "Expected a function";
|
|
16
|
+
function ie(t) {
|
|
17
|
+
if (typeof t != "function")
|
|
18
|
+
throw new TypeError(re);
|
|
19
|
+
return function() {
|
|
20
|
+
var s = arguments;
|
|
21
|
+
switch (s.length) {
|
|
22
|
+
case 0:
|
|
23
|
+
return !t.call(this);
|
|
24
|
+
case 1:
|
|
25
|
+
return !t.call(this, s[0]);
|
|
26
|
+
case 2:
|
|
27
|
+
return !t.call(this, s[0], s[1]);
|
|
28
|
+
case 3:
|
|
29
|
+
return !t.call(this, s[0], s[1], s[2]);
|
|
30
|
+
}
|
|
31
|
+
return !t.apply(this, s);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function oe(t, s) {
|
|
35
|
+
if (t == null)
|
|
36
|
+
return {};
|
|
37
|
+
var C = x(ee(t), function(l) {
|
|
38
|
+
return [l];
|
|
39
|
+
});
|
|
40
|
+
return s = R(s), Z(t, C, function(l, u) {
|
|
41
|
+
return s(l, u[0]);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function ue(t, s) {
|
|
45
|
+
return oe(t, ie(R(s)));
|
|
46
|
+
}
|
|
47
|
+
const w = ["sm", "md", "lg"], ce = ["error", "warning", "success"], Ie = /* @__PURE__ */ q({
|
|
48
|
+
...le("Input", !1),
|
|
49
|
+
__name: "Input",
|
|
50
|
+
props: {
|
|
51
|
+
id: {},
|
|
52
|
+
maxlength: {},
|
|
53
|
+
type: {},
|
|
54
|
+
placeholder: {},
|
|
55
|
+
disabled: { type: Boolean, default: void 0 },
|
|
56
|
+
required: { type: Boolean },
|
|
57
|
+
modelValue: {},
|
|
58
|
+
defaultValue: {},
|
|
59
|
+
leading: {},
|
|
60
|
+
trailing: {},
|
|
61
|
+
clearIcon: { default: "tabler:circle-x" },
|
|
62
|
+
trailingCls: {},
|
|
63
|
+
clearIconCls: {},
|
|
64
|
+
dividerCls: {},
|
|
65
|
+
leadingCls: {},
|
|
66
|
+
class: {},
|
|
67
|
+
allowClear: { type: Boolean },
|
|
68
|
+
bordered: { type: Boolean, default: !0 },
|
|
69
|
+
size: {},
|
|
70
|
+
status: {}
|
|
71
|
+
},
|
|
72
|
+
emits: ["update:modelValue", "clear", "blur", "focus"],
|
|
73
|
+
setup(t, { expose: s, emit: C }) {
|
|
74
|
+
const l = t, u = A(), b = C, i = Q(l, "modelValue", b, {
|
|
75
|
+
defaultValue: l.defaultValue,
|
|
76
|
+
passive: l.modelValue === void 0
|
|
77
|
+
}), r = W("input"), E = Y(r, {
|
|
78
|
+
variants: {
|
|
79
|
+
size: z(w, r),
|
|
80
|
+
status: z(ce, r),
|
|
81
|
+
bordered: z("bordered", r)
|
|
82
|
+
}
|
|
83
|
+
}), B = f(() => l.size && w.includes(l.size) ? l.size : "md"), D = F(), { rootBindings: N, inputBindings: U } = ae({
|
|
84
|
+
getDisabled: () => l.disabled,
|
|
85
|
+
emit: b,
|
|
86
|
+
blurCallBack: (e) => {
|
|
87
|
+
const n = e.target;
|
|
88
|
+
n != null && n.value && (n.value = i.value);
|
|
89
|
+
}
|
|
90
|
+
}), $ = f(
|
|
91
|
+
() => ue(
|
|
92
|
+
{
|
|
93
|
+
...j(l, "id", "maxlength", "type", "disabled", "required", "placeholder"),
|
|
94
|
+
...D,
|
|
95
|
+
...U.value
|
|
96
|
+
},
|
|
97
|
+
ne
|
|
98
|
+
)
|
|
99
|
+
), T = f(() => {
|
|
100
|
+
switch (B.value) {
|
|
101
|
+
case "sm":
|
|
102
|
+
return "2xsm";
|
|
103
|
+
default:
|
|
104
|
+
return "xsm";
|
|
105
|
+
}
|
|
106
|
+
}), k = f(() => {
|
|
107
|
+
switch (B.value) {
|
|
108
|
+
case "sm":
|
|
109
|
+
return "2xsm";
|
|
110
|
+
case "md":
|
|
111
|
+
return "xsm";
|
|
112
|
+
default:
|
|
113
|
+
return "sm";
|
|
114
|
+
}
|
|
115
|
+
}), M = () => {
|
|
116
|
+
i.value = "", b("clear");
|
|
117
|
+
}, o = O();
|
|
118
|
+
return s({
|
|
119
|
+
input: o,
|
|
120
|
+
focus: (e) => {
|
|
121
|
+
var n;
|
|
122
|
+
return (n = o.value) == null ? void 0 : n.focus(e);
|
|
123
|
+
},
|
|
124
|
+
blur: () => {
|
|
125
|
+
var e;
|
|
126
|
+
return (e = o.value) == null ? void 0 : e.blur();
|
|
127
|
+
},
|
|
128
|
+
select: () => {
|
|
129
|
+
var e;
|
|
130
|
+
return (e = o.value.input) == null ? void 0 : e.select();
|
|
131
|
+
},
|
|
132
|
+
setSelectionRange: (e, n, m) => {
|
|
133
|
+
var p;
|
|
134
|
+
return (p = o.value.input) == null ? void 0 : p.setSelectionRange(e, n, m);
|
|
135
|
+
}
|
|
136
|
+
}), (e, n) => {
|
|
137
|
+
var m;
|
|
138
|
+
return c(), g("div", S({
|
|
139
|
+
class: [
|
|
140
|
+
a(E)({
|
|
141
|
+
size: B.value,
|
|
142
|
+
status: e.status === "success" && !a(i) ? void 0 : e.status,
|
|
143
|
+
bordered: e.bordered
|
|
144
|
+
}),
|
|
145
|
+
l.class
|
|
146
|
+
]
|
|
147
|
+
}, a(N)), [
|
|
148
|
+
u.leading || l.leading ? (c(), g("div", {
|
|
149
|
+
key: 0,
|
|
150
|
+
class: y([a(d)(a(r), "leading"), e.leadingCls])
|
|
151
|
+
}, [
|
|
152
|
+
h(e.$slots, "leading", { iconSize: k.value }, () => [
|
|
153
|
+
V(I(e.leading), 1)
|
|
154
|
+
])
|
|
155
|
+
], 2)) : v("", !0),
|
|
156
|
+
P(K("input", S({
|
|
157
|
+
ref_key: "inputRef",
|
|
158
|
+
ref: o,
|
|
159
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => L(i) ? i.value = p : null)
|
|
160
|
+
}, $.value, {
|
|
161
|
+
class: [a(d)(a(r), "input")]
|
|
162
|
+
}), null, 16), [
|
|
163
|
+
[X, a(i)]
|
|
164
|
+
]),
|
|
165
|
+
u.trailing || l.trailing || e.allowClear ? (c(), g("div", {
|
|
166
|
+
key: 1,
|
|
167
|
+
class: y([a(d)(a(r), "trailing"), e.trailingCls])
|
|
168
|
+
}, [
|
|
169
|
+
!e.disabled && e.allowClear && ((m = a(i)) != null && m.length) ? (c(), g(_, { key: 0 }, [
|
|
170
|
+
G(te, {
|
|
171
|
+
icon: e.clearIcon,
|
|
172
|
+
size: T.value,
|
|
173
|
+
onClick: M,
|
|
174
|
+
class: y([a(d)(a(r), "clear_icon"), e.clearIconCls])
|
|
175
|
+
}, {
|
|
176
|
+
default: J(() => [
|
|
177
|
+
h(e.$slots, "clearIcon")
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 8, ["icon", "size", "class"]),
|
|
181
|
+
u.trailing || l.trailing ? (c(), H(se, {
|
|
182
|
+
key: 0,
|
|
183
|
+
type: "vertical",
|
|
184
|
+
class: y([a(d)(a(r), "divider"), e.dividerCls])
|
|
185
|
+
}, null, 8, ["class"])) : v("", !0)
|
|
186
|
+
], 64)) : v("", !0),
|
|
187
|
+
h(e.$slots, "trailing", { iconSize: k.value }, () => [
|
|
188
|
+
V(I(e.trailing), 1)
|
|
189
|
+
])
|
|
190
|
+
], 2)) : v("", !0)
|
|
191
|
+
], 16);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
export {
|
|
196
|
+
w as I,
|
|
197
|
+
Ie as _,
|
|
198
|
+
ce as a
|
|
199
|
+
};
|
package/dist/Menu/index.js
CHANGED
package/dist/Menu/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Menu.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Menu.vue_vue_type_style_index_0_lang-DIMEa_Ht.js");exports.Menu=e._sfc_main;exports.MenuGaps=e.MenuGaps;exports.default=e._sfc_main;exports.injectMenuContext=e.injectMenuContext;exports.provideMenuContext=e.provideMenuContext;
|