@pantograph/vue 0.6.5 → 0.7.0
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/ActionButton.d.ts +2 -150
- package/dist/ActionButton/{index.es.js → index.js.js} +1 -1
- package/dist/ActionButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BRYxIFQL.js → ActionButton.vue_vue_type_script_setup_true_lang-BbIIyV6t.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-9sHS6TT0.js → ActionButton.vue_vue_type_script_setup_true_lang-OA7L3d0i.js} +4 -4
- package/dist/Avatar/Avatar.d.ts +10 -17
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/{index.es.js → index.js.js} +1 -1
- package/dist/Avatar/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BmH5aQJ1.js +188 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DO7InR4k.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +10 -2
- package/dist/AvatarGroup/{index.es.js → index.js.js} +1 -1
- package/dist/AvatarGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Badge/Badge.d.ts +2 -10
- package/dist/Badge/{index.es.js → index.js.js} +1 -1
- package/dist/Badge/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-LwccxMER.js → Badge.vue_vue_type_script_setup_true_lang-DrLIHHCe.js} +4 -4
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DzkeQwzH.js → Badge.vue_vue_type_script_setup_true_lang-zP7Q3GsL.js} +1 -1
- package/dist/Base/BaseBadge/BaseBadge.d.ts +13 -12
- package/dist/Base/BaseButton/BaseButton.d.ts +16 -12
- package/dist/Base/Primitive.d.ts +2 -2
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Cr9n5QQC.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js → BaseBadge.vue_vue_type_style_index_0_lang-DBW85mbj.js} +33 -32
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js +159 -0
- package/dist/Button/Button.d.ts +2 -150
- package/dist/Button/{index.es.js → index.js.js} +1 -1
- package/dist/Button/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DNpM6F5j.js → Button.vue_vue_type_script_setup_true_lang-BjTrpQi-.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DMOtqE4k.js → Button.vue_vue_type_script_setup_true_lang-CVePGLAE.js} +4 -4
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/ButtonGroup/{index.es.js → index.js.js} +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js → ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js} +3 -3
- package/dist/Checkbox/Checkbox.d.ts +8 -7
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Checkbox/{index.es.js → index.js.js} +1 -1
- package/dist/Checkbox/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BY73A9jA.js +216 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +5 -4
- package/dist/CheckboxGroup/{index.es.js → index.js.js} +1 -1
- package/dist/CheckboxGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/ConfigProvider/index.d.ts +8 -7
- package/dist/ConfigProvider/index.js.js +10 -0
- package/dist/ConfigProvider/index.umd.cjs.js +1 -0
- package/dist/ConfigProvider/utils.d.ts +4 -3
- package/dist/Divider/Divider.d.ts +5 -13
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/{index.es.js → index.js.js} +1 -1
- package/dist/{Divider.vue_vue_type_style_index_0_lang-SBMg48di.js → Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js} +5 -5
- package/dist/FloatButton/FloatButton.d.ts +2 -150
- package/dist/FloatButton/{index.es.js → index.js.js} +1 -1
- package/dist/FloatButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BD8KDs-3.js → FloatButton.vue_vue_type_script_setup_true_lang-CtPvptQe.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CLL_AR_I.js → FloatButton.vue_vue_type_script_setup_true_lang-Mq9SbxDf.js} +4 -4
- package/dist/GraphicalObject/GraphicalObject.d.ts +2 -10
- package/dist/GraphicalObject/{index.es.js → index.js.js} +1 -1
- package/dist/GraphicalObject/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DqfDSUXz.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CIVx-hL6.js} +4 -4
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DnyJeR9h.js} +1 -1
- package/dist/Icon/Icon.d.ts +5 -13
- package/dist/Icon/index.d.ts +1 -1
- package/dist/Icon/{index.es.js → index.js.js} +1 -1
- package/dist/Icon/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js +48 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js +1 -0
- package/dist/IconButton/IconButton.d.ts +2 -150
- package/dist/IconButton/{index.es.js → index.js.js} +1 -1
- package/dist/IconButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DVbz9uji.js → IconButton.vue_vue_type_script_setup_true_lang-CuxyU51W.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DCrUZOP9.js → IconButton.vue_vue_type_script_setup_true_lang-PHB94Ft0.js} +4 -4
- package/dist/Image/Image.d.ts +8 -16
- package/dist/Image/index.d.ts +1 -1
- package/dist/Image/index.js.js +8 -0
- package/dist/Image/index.umd.cjs.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-C1KxnvZB.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-f4IzwLoA.js +117 -0
- package/dist/IndentLevel/IndentLevel.d.ts +7 -15
- package/dist/IndentLevel/index.d.ts +1 -1
- package/dist/IndentLevel/{index.es.js → index.js.js} +1 -1
- package/dist/IndentLevel/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-BjBc3Lu1.js +104 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-D5yeMZLa.js +1 -0
- package/dist/Indicator/Indicator.d.ts +2 -10
- package/dist/Indicator/{index.es.js → index.js.js} +1 -1
- package/dist/Indicator/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-ODS_K3jA.js +34 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-nav_IgdR.js +1 -0
- package/dist/Kbd/Kbd.d.ts +5 -13
- package/dist/Kbd/{index.es.js → index.js.js} +1 -1
- package/dist/Kbd/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-Br1eygIf.js → Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-D5D9tTsQ.js → Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js} +13 -13
- package/dist/Menu/Menu.d.ts +83 -0
- package/dist/Menu/Menu.model.d.ts +2 -0
- package/dist/Menu/index.d.ts +2 -0
- package/dist/Menu/index.js.js +8 -0
- package/dist/Menu/index.umd.cjs.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-CMub1sQn.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-Da97vR8P.js +513 -0
- package/dist/MenuItem/MenuItem.d.ts +30 -32
- package/dist/MenuItem/MenuItemContent.d.ts +56 -0
- package/dist/MenuItem/index.d.ts +2 -2
- package/dist/MenuItem/index.js.js +6 -0
- package/dist/MenuItem/index.umd.cjs.js +1 -0
- package/dist/Popover/Popover.d.ts +13 -11
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/{index.es.js → index.js.js} +1 -1
- package/dist/Popover/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CjdTaqQ6.js +138 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-RXHBSX6d.js +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +5 -13
- package/dist/RadioGroup/RadioGroupItem.d.ts +4 -1
- package/dist/RadioGroup/index.js.js +5 -0
- package/dist/RadioGroup/index.umd.cjs.js +1 -0
- package/dist/{RadioGroup/index.es.js → RadioGroup.vue_vue_type_script_setup_true_lang-CLCQycnR.js} +22 -22
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CYjzOKgl.js +1 -0
- package/dist/Shortcut/index.js.js +5 -0
- package/dist/Shortcut/index.umd.cjs.js +1 -0
- package/dist/{Shortcut/index.es.js → Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js} +10 -11
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +3 -3
- package/dist/Skeleton/index.d.ts +1 -1
- package/dist/Skeleton/{index.es.js → index.js.js} +1 -1
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-BgVkwMj4.js → Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js} +6 -6
- package/dist/Spinner/Spinner.d.ts +7 -6
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/{index.es.js → index.js.js} +1 -1
- package/dist/Spinner/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BOXr-RUw.js → Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js} +10 -10
- package/dist/Switch/Switch.d.ts +18 -6
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js.js +6 -0
- package/dist/Switch/index.umd.cjs.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-C2cAawMN.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-DCrwOHDJ.js +103 -0
- package/dist/Tree/Tree.d.ts +3 -15
- package/dist/Tree/Tree.model.d.ts +4 -4
- package/dist/Tree/TreeNode.d.ts +2 -14
- package/dist/Tree/index.d.ts +1 -1
- package/dist/Tree/index.js.js +9 -0
- package/dist/Tree/index.umd.cjs.js +1 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-BfqlnQLT.js +1 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-CjXY2DNC.js +574 -0
- package/dist/{class-DyU-Ox8D.js → class-DziTeW9B.js} +3 -3
- package/dist/cloneDeep-mcJFBKk6.js +1 -0
- package/dist/cloneDeep-v62P9_F-.js +8 -0
- package/dist/element-CddU1vUY.js +23 -0
- package/dist/element-uBbpeYVo.js +1 -0
- package/dist/index-BCJFpT7y.js +1 -0
- package/dist/index-DgVKQuPc.js +124 -0
- package/dist/index.d.ts +33 -22
- package/dist/index.js.js +109 -0
- package/dist/index.umd.cjs.js +1 -0
- package/dist/isArray-B7z6QoM5.js +1 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/isNumber-DlKYWCo3.js +8 -0
- package/dist/isNumber-eaDdxhkG.js +1 -0
- package/dist/isObjectLike-BatpeCIi.js +29 -0
- package/dist/isObjectLike-kO9e4B7g.js +1 -0
- package/dist/omit-1sFJ_mId.js +1 -0
- package/dist/omit-Cxaoa8oo.js +747 -0
- package/dist/pick-DKW6-a-5.js +52 -0
- package/dist/pick-DojrVogK.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/utils/element.d.ts +8 -4
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/{index.es.js → index.js.js} +1 -1
- package/dist/utils/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/package.json +80 -80
- package/dist/Avatar.vue_vue_type_style_index_0_lang-eeAtrd5L.js +0 -188
- package/dist/Avatar.vue_vue_type_style_index_0_lang-tRhdiXHB.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-B1Va5X21.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js +0 -151
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BQeNpCYy.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-gsOfYgHe.js +0 -245
- package/dist/ConfigProvider/index.cjs.js +0 -1
- package/dist/ConfigProvider/index.es.js +0 -117
- package/dist/Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-W7sippxn.js +0 -48
- package/dist/Image/index.cjs.js +0 -1
- package/dist/Image/index.es.js +0 -117
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B_x8tshB.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-jaoDj9GA.js +0 -103
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-D2iFmRna.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-jv3IND51.js +0 -34
- package/dist/MenuItem/index.cjs.js +0 -1
- package/dist/MenuItem/index.es.js +0 -244
- package/dist/Popover.vue_vue_type_style_index_0_lang-BSe2YFuh.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-W2dXxEo7.js +0 -135
- package/dist/RadioGroup/index.cjs.js +0 -1
- package/dist/Shortcut/index.cjs.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js +0 -1
- package/dist/Switch/index.cjs.js +0 -1
- package/dist/Switch/index.es.js +0 -104
- package/dist/Tabs/Tab.model.d.ts +0 -2
- package/dist/Tabs/index.cjs.js +0 -1
- package/dist/Tabs/index.d.ts +0 -1
- package/dist/Tabs/index.es.js +0 -4
- package/dist/Tag/Tag.model.d.ts +0 -4
- package/dist/Tag/index.cjs.js +0 -1
- package/dist/Tag/index.d.ts +0 -1
- package/dist/Tag/index.es.js +0 -21
- package/dist/Tree/index.cjs.js +0 -1
- package/dist/Tree/index.es.js +0 -458
- package/dist/element-BSTINJi_.js +0 -1
- package/dist/element-Cf07a63h.js +0 -22
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -66
- package/dist/omit-C_ZXwm9T.js +0 -1
- package/dist/omit-DtumnYm5.js +0 -760
- /package/dist/ButtonGroup/{index.cjs.js → index.umd.cjs.js} +0 -0
- /package/dist/Divider/{index.cjs.js → index.umd.cjs.js} +0 -0
- /package/dist/Skeleton/{index.cjs.js → index.umd.cjs.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as i, useAttrs as l, computed as m, ref as u,
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { defineComponent as i, useAttrs as l, computed as m, ref as u, createBlock as f, 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-Cxaoa8oo.js";
|
|
3
|
+
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js";
|
|
4
4
|
import { g as P } from "./options-JBqnVZUl.js";
|
|
5
5
|
const I = /* @__PURE__ */ i({
|
|
6
6
|
...P("FloatButton", !1),
|
|
@@ -28,7 +28,7 @@ const I = /* @__PURE__ */ i({
|
|
|
28
28
|
var o;
|
|
29
29
|
(o = t.value) == null || o.blur();
|
|
30
30
|
}
|
|
31
|
-
}), (o, R) => (
|
|
31
|
+
}), (o, R) => (_(), f(C, d(c.value, {
|
|
32
32
|
variant: "float",
|
|
33
33
|
ref_key: "buttonRef",
|
|
34
34
|
ref: t
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseBadgeSlots, BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
2
2
|
export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'as' | 'class' | 'mode' | 'icon' | 'color'>> & {
|
|
3
3
|
size?: Exclude<BaseBadgeProps['size'], 'tiny' | 'tinier'>;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: Readonly<BadgeSlots> & BadgeSlots;
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: any;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<GraphicalObjectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GraphicalObjectProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<GraphicalObjectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GraphicalObjectProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<BaseBadgeSlots> & BaseBadgeSlots>;
|
|
14
6
|
export default _default;
|
|
15
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
8
|
new (): {
|
|
@@ -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-DnyJeR9h.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as c, useAttrs as p, computed as i,
|
|
2
|
-
import { o as O } from "./omit-
|
|
3
|
-
import { _ as j } from "./BaseBadge.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { defineComponent as c, useAttrs as p, computed as i, createBlock as m, openBlock as l, mergeProps as f, createSlots as _, renderList as u, withCtx as d, renderSlot as g, normalizeProps as b, guardReactiveProps as h } from "vue";
|
|
2
|
+
import { o as O } from "./omit-Cxaoa8oo.js";
|
|
3
|
+
import { _ as j } from "./BaseBadge.vue_vue_type_style_index_0_lang-DBW85mbj.js";
|
|
4
4
|
import { g as k } from "./options-JBqnVZUl.js";
|
|
5
5
|
const x = /* @__PURE__ */ c({
|
|
6
6
|
...k("GraphicalObject", !1),
|
|
@@ -18,7 +18,7 @@ const x = /* @__PURE__ */ c({
|
|
|
18
18
|
...O(s, "type", "text"),
|
|
19
19
|
...r
|
|
20
20
|
}));
|
|
21
|
-
return (e, y) => (
|
|
21
|
+
return (e, y) => (l(), m(j, f(n.value, { type: "rect" }), _({ _: 2 }, [
|
|
22
22
|
u(Object.keys(e.$slots), (t) => ({
|
|
23
23
|
name: t,
|
|
24
24
|
fn: d((a) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./omit-1sFJ_mId.js"),p=require("./BaseBadge.vue_vue_type_style_index_0_lang-Cr9n5QQC.js"),u=require("./options-B4iSAKol.js"),_=e.defineComponent({...u.getComponentOptions("GraphicalObject",!1),__name:"GraphicalObject",props:{as:{},class:{},mode:{},icon:{},color:{},size:{}},setup(r){const o=r,n=e.useAttrs(),c=e.computed(()=>({...a.omit(n,"type","text"),...o}));return(t,l)=>(e.openBlock(),e.createBlock(p._sfc_main,e.mergeProps(c.value,{type:"rect"}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),s=>({name:s,fn:e.withCtx(i=>[e.renderSlot(t.$slots,s,e.normalizeProps(e.guardReactiveProps(i)))])}))]),1040))}});exports._sfc_main=_;
|
package/dist/Icon/Icon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Class } from '../types';
|
|
2
|
-
import { IconSize } from './Icon.model
|
|
2
|
+
import { IconSize } from './Icon.model';
|
|
3
3
|
export interface IconProps {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
class?: Class;
|
|
@@ -8,19 +8,11 @@ export interface IconProps {
|
|
|
8
8
|
flipX?: boolean;
|
|
9
9
|
flipY?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
12
|
-
attrs: Partial<{}>;
|
|
13
|
-
slots: {
|
|
14
|
-
default?(_: {}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
rootEl: HTMLSpanElement;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
21
12
|
size: IconSize;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
23
|
-
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
}>;
|
|
24
16
|
export default _default;
|
|
25
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
18
|
new (): {
|
package/dist/Icon/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconifyJSON, IconifyBrowserCacheType } from '@iconify/vue';
|
|
2
2
|
export { default as Icon, type IconProps, default } from './Icon';
|
|
3
|
-
export * from './Icon.model
|
|
3
|
+
export * from './Icon.model';
|
|
4
4
|
export declare const defineLocaleIconCollection: (icons: IconifyJSON, provider?: string) => Promise<void>;
|
|
5
5
|
export declare const disableIconCache: (storage?: IconifyBrowserCacheType) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@iconify/vue";
|
|
2
|
-
import { _ as l, I as d, _ as r } from "../Icon.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as l, I as d, _ as r } from "../Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
3
3
|
const e = async (o, a = "") => {
|
|
4
4
|
const { addCollection: c } = await import("@iconify/vue");
|
|
5
5
|
c(o, a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=Object.create;var t=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var I=(e,o,c,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of d(o))!u.call(e,n)&&n!==c&&t(e,n,{get:()=>o[n],enumerable:!(i=_(o,n))||i.enumerable});return e};var l=(e,o,c)=>(c=e!=null?s(r(e)):{},I(o||!e||!e.__esModule?t(c,"default",{value:e,enumerable:!0}):c,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@iconify/vue");const a=require("../Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";var s=Object.create;var t=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var I=(e,o,c,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of d(o))!u.call(e,n)&&n!==c&&t(e,n,{get:()=>o[n],enumerable:!(i=_(o,n))||i.enumerable});return e};var l=(e,o,c)=>(c=e!=null?s(r(e)):{},I(o||!e||!e.__esModule?t(c,"default",{value:e,enumerable:!0}):c,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@iconify/vue");const a=require("../Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),f=async(e,o="")=>{const{addCollection:c}=await import("@iconify/vue");c(e,o)},C=async e=>{const{disableCache:o}=await import("@iconify/vue");o(e??"all")};exports.Icon=a._sfc_main;exports.IconSizes=a.IconSizes;exports.default=a._sfc_main;exports.defineLocaleIconCollection=f;exports.disableIconCache=C;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as B, computed as t, createElementBlock as g, openBlock as r, normalizeStyle as y, normalizeClass as C, unref as l, renderSlot as v, createBlock as h, createCommentVNode as k } from "vue";
|
|
2
|
+
import { Icon as x } from "@iconify/vue";
|
|
3
|
+
import { g as I, a as O, c as o } from "./class-DziTeW9B.js";
|
|
4
|
+
import { cva as S } from "class-variance-authority";
|
|
5
|
+
import { g as D } from "./options-JBqnVZUl.js";
|
|
6
|
+
const p = ["3xsm", "2xsm", "xsm", "sm"], V = /* @__PURE__ */ B({
|
|
7
|
+
...D("Icon"),
|
|
8
|
+
__name: "Icon",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: "xsm" },
|
|
11
|
+
class: {},
|
|
12
|
+
icon: {},
|
|
13
|
+
flipOnDir: {},
|
|
14
|
+
flipX: { type: Boolean },
|
|
15
|
+
flipY: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(c) {
|
|
18
|
+
const e = c, i = I("icon"), a = S(i, {
|
|
19
|
+
variants: {
|
|
20
|
+
size: O(p, i)
|
|
21
|
+
}
|
|
22
|
+
}), f = t(() => {
|
|
23
|
+
if (Number(e.size) > 0)
|
|
24
|
+
return `${e.size}px`;
|
|
25
|
+
if (typeof e.size == "string" && !p.includes(e.size))
|
|
26
|
+
return e.size;
|
|
27
|
+
}), m = t(() => {
|
|
28
|
+
const s = [], n = o(i, "flip-x"), u = o(i, "flip-y"), z = o(i, "flip-rtl"), d = o(i, "flip-ltr");
|
|
29
|
+
return e.flipX ? s.push(n) : (e.flipOnDir === "rtl" && s.push(z), e.flipOnDir === "ltr" && s.push(d)), e.flipY && s.push(u), s.join(" ");
|
|
30
|
+
});
|
|
31
|
+
return (s, n) => (r(), g("span", {
|
|
32
|
+
class: C([l(a)({ size: s.size }), m.value, e.class]),
|
|
33
|
+
style: y({ "--pt-icon-size": f.value })
|
|
34
|
+
}, [
|
|
35
|
+
v(s.$slots, "default", {}, () => [
|
|
36
|
+
s.icon ? (r(), h(l(x), {
|
|
37
|
+
key: 0,
|
|
38
|
+
icon: s.icon,
|
|
39
|
+
ssr: ""
|
|
40
|
+
}, null, 8, ["icon"])) : k("", !0)
|
|
41
|
+
])
|
|
42
|
+
], 6));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
p as I,
|
|
47
|
+
V as _
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),z=require("@iconify/vue"),o=require("./class-CjZYGZDW.js"),d=require("class-variance-authority"),B=require("./options-B4iSAKol.js"),t=["3xsm","2xsm","xsm","sm"],g=e.defineComponent({...B.getComponentOptions("Icon"),__name:"Icon",props:{size:{default:"xsm"},class:{},icon:{},flipOnDir:{},flipX:{type:Boolean},flipY:{type:Boolean}},setup(l){const i=l,n=o.getBemBlock("icon"),c=d.cva(n,{variants:{size:o.generateVariantClassList(t,n)}}),p=e.computed(()=>{if(Number(i.size)>0)return`${i.size}px`;if(typeof i.size=="string"&&!t.includes(i.size))return i.size}),a=e.computed(()=>{const s=[],r=o.getBemModifier(n,"flip-x"),f=o.getBemModifier(n,"flip-y"),u=o.getBemModifier(n,"flip-rtl"),m=o.getBemModifier(n,"flip-ltr");return i.flipX?s.push(r):(i.flipOnDir==="rtl"&&s.push(u),i.flipOnDir==="ltr"&&s.push(m)),i.flipY&&s.push(f),s.join(" ")});return(s,r)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(c)({size:s.size}),a.value,i.class]),style:e.normalizeStyle({"--pt-icon-size":p.value})},[e.renderSlot(s.$slots,"default",{},()=>[s.icon?(e.openBlock(),e.createBlock(e.unref(z.Icon),{key:0,icon:s.icon,ssr:""},null,8,["icon"])):e.createCommentVNode("",!0)])],6))}});exports.IconSizes=t;exports._sfc_main=g;
|
|
@@ -1,158 +1,10 @@
|
|
|
1
1
|
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
2
|
export type IconButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'type' | 'color' | 'loading' | 'icon' | 'size'>>;
|
|
3
3
|
type IconButtonSlots = Omit<BaseButtonSlots, 'preIcon' | 'badge' | 'postIcon' | 'default'>;
|
|
4
|
-
declare
|
|
5
|
-
attrs: Partial<{}>;
|
|
6
|
-
slots: Readonly<IconButtonSlots> & IconButtonSlots;
|
|
7
|
-
refs: {
|
|
8
|
-
buttonRef: ({
|
|
9
|
-
$: import('vue').ComponentInternalInstance;
|
|
10
|
-
$data: {};
|
|
11
|
-
$props: {
|
|
12
|
-
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
13
|
-
readonly text?: (string | number) | undefined;
|
|
14
|
-
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
15
|
-
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
16
|
-
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
17
|
-
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
18
|
-
readonly loading?: boolean | undefined;
|
|
19
|
-
readonly action?: boolean | undefined;
|
|
20
|
-
readonly active?: boolean | undefined;
|
|
21
|
-
readonly badgeText?: string | undefined;
|
|
22
|
-
readonly badgeIcon?: string | undefined;
|
|
23
|
-
readonly icon?: string | undefined;
|
|
24
|
-
readonly preIcon?: string | undefined;
|
|
25
|
-
readonly postIcon?: string | undefined;
|
|
26
|
-
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
27
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
28
|
-
$attrs: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
};
|
|
31
|
-
$refs: any;
|
|
32
|
-
$slots: Readonly<{
|
|
33
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
34
|
-
}>;
|
|
35
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
36
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
37
|
-
$host: Element | null;
|
|
38
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
39
|
-
$el: any;
|
|
40
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
41
|
-
focus(): void;
|
|
42
|
-
blur(): void;
|
|
43
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
44
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
45
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
46
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
47
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
48
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
49
|
-
created?: (() => void) | (() => void)[];
|
|
50
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
51
|
-
mounted?: (() => void) | (() => void)[];
|
|
52
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
53
|
-
updated?: (() => void) | (() => void)[];
|
|
54
|
-
activated?: (() => void) | (() => void)[];
|
|
55
|
-
deactivated?: (() => void) | (() => void)[];
|
|
56
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
57
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
58
|
-
destroyed?: (() => void) | (() => void)[];
|
|
59
|
-
unmounted?: (() => void) | (() => void)[];
|
|
60
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
61
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
62
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
63
|
-
};
|
|
64
|
-
$forceUpdate: () => void;
|
|
65
|
-
$nextTick: typeof import('vue').nextTick;
|
|
66
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
67
|
-
} & Readonly<{
|
|
68
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
69
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
70
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
71
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
72
|
-
focus(): void;
|
|
73
|
-
blur(): void;
|
|
74
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
75
|
-
$slots: any;
|
|
76
|
-
}) | null;
|
|
77
|
-
};
|
|
78
|
-
rootEl: any;
|
|
79
|
-
};
|
|
80
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
81
|
-
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "class" | "icon" | "type" | "color" | "as" | "loading">>, {
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "class" | "icon" | "type" | "color" | "as" | "loading">>, {
|
|
82
5
|
focus(): void;
|
|
83
6
|
blur(): void;
|
|
84
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "class" | "icon" | "type" | "color" | "as" | "loading">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
85
|
-
buttonRef: ({
|
|
86
|
-
$: import('vue').ComponentInternalInstance;
|
|
87
|
-
$data: {};
|
|
88
|
-
$props: {
|
|
89
|
-
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
90
|
-
readonly text?: (string | number) | undefined;
|
|
91
|
-
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
92
|
-
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
93
|
-
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
94
|
-
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
95
|
-
readonly loading?: boolean | undefined;
|
|
96
|
-
readonly action?: boolean | undefined;
|
|
97
|
-
readonly active?: boolean | undefined;
|
|
98
|
-
readonly badgeText?: string | undefined;
|
|
99
|
-
readonly badgeIcon?: string | undefined;
|
|
100
|
-
readonly icon?: string | undefined;
|
|
101
|
-
readonly preIcon?: string | undefined;
|
|
102
|
-
readonly postIcon?: string | undefined;
|
|
103
|
-
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
104
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
105
|
-
$attrs: {
|
|
106
|
-
[x: string]: unknown;
|
|
107
|
-
};
|
|
108
|
-
$refs: any;
|
|
109
|
-
$slots: Readonly<{
|
|
110
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
111
|
-
}>;
|
|
112
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
113
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
114
|
-
$host: Element | null;
|
|
115
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
116
|
-
$el: any;
|
|
117
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
118
|
-
focus(): void;
|
|
119
|
-
blur(): void;
|
|
120
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
121
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
122
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
123
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
124
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
125
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
126
|
-
created?: (() => void) | (() => void)[];
|
|
127
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
128
|
-
mounted?: (() => void) | (() => void)[];
|
|
129
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
130
|
-
updated?: (() => void) | (() => void)[];
|
|
131
|
-
activated?: (() => void) | (() => void)[];
|
|
132
|
-
deactivated?: (() => void) | (() => void)[];
|
|
133
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
134
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
135
|
-
destroyed?: (() => void) | (() => void)[];
|
|
136
|
-
unmounted?: (() => void) | (() => void)[];
|
|
137
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
138
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
139
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
140
|
-
};
|
|
141
|
-
$forceUpdate: () => void;
|
|
142
|
-
$nextTick: typeof import('vue').nextTick;
|
|
143
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
144
|
-
} & Readonly<{
|
|
145
|
-
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
146
|
-
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
147
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
148
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
149
|
-
focus(): void;
|
|
150
|
-
blur(): void;
|
|
151
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
152
|
-
$slots: any;
|
|
153
|
-
}) | null;
|
|
154
|
-
}, any>;
|
|
155
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "class" | "icon" | "type" | "color" | "as" | "loading">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<IconButtonSlots> & IconButtonSlots>;
|
|
156
8
|
export default _default;
|
|
157
9
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
158
10
|
new (): {
|
|
@@ -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-CuxyU51W.js");exports.IconButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-1sFJ_mId.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"IconButton",props:{as:{},class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"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(i.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,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, useAttrs as m, computed as u, ref as f,
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
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-Cxaoa8oo.js";
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js";
|
|
4
4
|
import { g as C } from "./options-JBqnVZUl.js";
|
|
5
5
|
const O = /* @__PURE__ */ p({
|
|
6
6
|
...C("IconButton", !1),
|
|
@@ -28,7 +28,7 @@ const O = /* @__PURE__ */ p({
|
|
|
28
28
|
var o;
|
|
29
29
|
(o = e.value) == null || o.blur();
|
|
30
30
|
}
|
|
31
|
-
}), (o, P) => (
|
|
31
|
+
}), (o, P) => (_(), l(I, d(c.value, {
|
|
32
32
|
variant: "icon",
|
|
33
33
|
ref_key: "buttonRef",
|
|
34
34
|
ref: e
|
package/dist/Image/Image.d.ts
CHANGED
|
@@ -16,30 +16,22 @@ export interface ImageProps {
|
|
|
16
16
|
objectPosition?: 'center' | 'right' | 'left' | 'top' | 'bottom' | string;
|
|
17
17
|
fallbackDescription?: string;
|
|
18
18
|
}
|
|
19
|
-
declare
|
|
20
|
-
attrs: Partial<{}>;
|
|
21
|
-
slots: {
|
|
22
|
-
fallback?(_: {}): any;
|
|
23
|
-
actions?(_: {}): any;
|
|
24
|
-
};
|
|
25
|
-
refs: {};
|
|
26
|
-
rootEl: HTMLDivElement;
|
|
27
|
-
};
|
|
28
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
-
declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
30
20
|
error: () => any;
|
|
31
21
|
load: () => any;
|
|
32
22
|
}, string, import('vue').PublicProps, Readonly<ImageProps> & Readonly<{
|
|
33
23
|
onError?: (() => any) | undefined;
|
|
34
24
|
onLoad?: (() => any) | undefined;
|
|
35
25
|
}>, {
|
|
36
|
-
type:
|
|
26
|
+
type: "horizontal" | "vertical";
|
|
37
27
|
src: string;
|
|
38
|
-
objectFit:
|
|
39
|
-
objectPosition:
|
|
28
|
+
objectFit: string;
|
|
29
|
+
objectPosition: string;
|
|
40
30
|
fallbackDescription: string;
|
|
41
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
42
|
-
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
32
|
+
fallback?(_: {}): any;
|
|
33
|
+
actions?(_: {}): any;
|
|
34
|
+
}>;
|
|
43
35
|
export default _default;
|
|
44
36
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
37
|
new (): {
|
package/dist/Image/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { type ImageProps, default as Image, default } from './Image';
|
|
2
|
-
export * from './Image.model
|
|
2
|
+
export * from './Image.model';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Image.vue_vue_type_style_index_0_lang-C1KxnvZB.js");exports.Image=e._sfc_main;exports.ImageAspectRatios=e.ImageAspectRatios;exports.ImageSizeRanges=e.ImageSizeRanges;exports.ImageTypes=e.ImageTypes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),s=require("./class-CjZYGZDW.js"),w=require("class-variance-authority"),S=require("./isNumber-eaDdxhkG.js"),L=require("./Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js"),V=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),I=require("./options-B4iSAKol.js"),g=["xsm","sm","md","lg"],k=["1:1","4:3","3:2","16:9","2:1"],i=["vertical","horizontal"],j=["alt","src"],q=e.defineComponent({...I.getComponentOptions("Image",!1),__name:"Image",props:{src:{default:""},fallback:{},width:{},hovered:{type:Boolean},alt:{},class:{},imageCls:{},hoverCls:{},sizeRange:{},aspectRatio:{},type:{default:"horizontal"},objectFit:{default:"cover"},objectPosition:{default:"center"},fallbackDescription:{default:"This image couldn't be loaded."}},emits:["load","error"],setup(b,{emit:h}){const t=b,u=h,l=s.getBemBlock("image"),_=w.cva(l,{variants:{type:s.generateVariantClassList(i,l),aspectRatio:s.generateVariantClassList(k,l),sizeRange:s.generateVariantClassList(g,l),hovered:s.generateVariantClassList("hovered",l),loaded:s.generateVariantClassList("loaded",l),"fallback-content":s.generateVariantClassList("fallback-content",l)}}),m=e.useSlots(),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),f=e.toRef(()=>t.src);e.watch(f,()=>{o.value=!1,r.value=!1,n.value=!1});const c=e.toRef(()=>t.fallback);e.watch(c,()=>{r.value&&(r.value=!1,n.value=!1)});const d=e.computed(()=>o.value&&!m.fallback&&c.value?"fallback":"src"),y=e.computed(()=>d.value==="src"?f.value:c.value),z=()=>{n.value=!0,u("load")},C=()=>{d.value==="fallback"?(r.value=!0,n.value=!0):(o.value=!0,n.value=!0),u("error")},B=e.computed(()=>{const a=typeof t.width;if(["string","number"].includes(a))return a==="number"?`${t.width}px`:t.width}),E=e.computed(()=>{const a=String(t.width).replace("px",""),v=/^\d+(?:\.\d+)?$/,p=t.width&&v.test(a)?Number(a):t.width;return t.sizeRange==="xsm"||S.isNumber(p)&&p<100?"3xsm":"sm"}),R=e.computed(()=>{let a=`filter: ${n?"none":"blur(30px)"}`;return t.objectFit&&(a+=`;object-fit: ${t.objectFit}`),t.objectPosition&&(a+=`;object-position: ${t.objectPosition}`),a});return(a,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(_)({sizeRange:t.sizeRange,type:!t.type||!e.unref(i).includes(t.type)?"vertical":t.type,aspectRatio:t.aspectRatio,hovered:t.hovered,loaded:n.value,"fallback-content":o.value&&(!c.value||r.value)}),t.class]),style:e.normalizeStyle({width:B.value})},[o.value&&(!c.value||r.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback"))},[e.renderSlot(a.$slots,"fallback",{},()=>[e.createVNode(V._sfc_main,{size:"sm",icon:"tabler:photo-exclamation",class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback__icon"))},null,8,["class"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback__text"))},e.toDisplayString(a.fallbackDescription),3)])],2)):(e.openBlock(),e.createElementBlock("img",{key:1,alt:a.alt,style:e.normalizeStyle(R.value),src:y.value,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"img"),a.imageCls]),onLoad:z,onError:C},null,46,j)),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L._sfc_main,{key:2,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"loading")),size:E.value},null,8,["class","size"])),n.value&&!o.value&&(a.hovered||e.unref(m).actions)?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"hover_actions"),"pantograph-tokens dark",t.hoverCls])},[e.renderSlot(a.$slots,"actions")],2)):e.createCommentVNode("",!0)],6))}});exports.ImageAspectRatios=k;exports.ImageSizeRanges=g;exports.ImageTypes=i;exports._sfc_main=q;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { defineComponent as V, useSlots as D, ref as v, toRef as z, watch as _, computed as d, createElementBlock as f, openBlock as m, normalizeStyle as w, normalizeClass as o, unref as t, createBlock as P, createCommentVNode as R, renderSlot as C, createVNode as T, createElementVNode as A, toDisplayString as O } from "vue";
|
|
2
|
+
import { g as W, a as c, b as i } from "./class-DziTeW9B.js";
|
|
3
|
+
import { cva as q } from "class-variance-authority";
|
|
4
|
+
import { i as G } from "./isNumber-DlKYWCo3.js";
|
|
5
|
+
import { _ as H } from "./Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js";
|
|
6
|
+
import { _ as J } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
7
|
+
import { g as K } from "./options-JBqnVZUl.js";
|
|
8
|
+
const M = ["xsm", "sm", "md", "lg"], Q = ["1:1", "4:3", "3:2", "16:9", "2:1"], S = ["vertical", "horizontal"], U = ["alt", "src"], le = /* @__PURE__ */ V({
|
|
9
|
+
...K("Image", !1),
|
|
10
|
+
__name: "Image",
|
|
11
|
+
props: {
|
|
12
|
+
src: { default: "" },
|
|
13
|
+
fallback: {},
|
|
14
|
+
width: {},
|
|
15
|
+
hovered: { type: Boolean },
|
|
16
|
+
alt: {},
|
|
17
|
+
class: {},
|
|
18
|
+
imageCls: {},
|
|
19
|
+
hoverCls: {},
|
|
20
|
+
sizeRange: {},
|
|
21
|
+
aspectRatio: {},
|
|
22
|
+
type: { default: "horizontal" },
|
|
23
|
+
objectFit: { default: "cover" },
|
|
24
|
+
objectPosition: { default: "center" },
|
|
25
|
+
fallbackDescription: { default: "This image couldn't be loaded." }
|
|
26
|
+
},
|
|
27
|
+
emits: ["load", "error"],
|
|
28
|
+
setup($, { emit: j }) {
|
|
29
|
+
const e = $, p = j, s = W("image"), B = q(s, {
|
|
30
|
+
variants: {
|
|
31
|
+
type: c(S, s),
|
|
32
|
+
aspectRatio: c(Q, s),
|
|
33
|
+
sizeRange: c(M, s),
|
|
34
|
+
hovered: c("hovered", s),
|
|
35
|
+
loaded: c("loaded", s),
|
|
36
|
+
"fallback-content": c("fallback-content", s)
|
|
37
|
+
}
|
|
38
|
+
}), g = D(), l = v(!1), r = v(!1), n = v(!1), b = z(() => e.src);
|
|
39
|
+
_(b, () => {
|
|
40
|
+
r.value = !1, n.value = !1, l.value = !1;
|
|
41
|
+
});
|
|
42
|
+
const u = z(() => e.fallback);
|
|
43
|
+
_(u, () => {
|
|
44
|
+
n.value && (n.value = !1, l.value = !1);
|
|
45
|
+
});
|
|
46
|
+
const h = d(() => r.value && !g.fallback && u.value ? "fallback" : "src"), E = d(() => h.value === "src" ? b.value : u.value), x = () => {
|
|
47
|
+
l.value = !0, p("load");
|
|
48
|
+
}, I = () => {
|
|
49
|
+
h.value === "fallback" ? (n.value = !0, l.value = !0) : (r.value = !0, l.value = !0), p("error");
|
|
50
|
+
}, L = d(() => {
|
|
51
|
+
const a = typeof e.width;
|
|
52
|
+
if (["string", "number"].includes(a))
|
|
53
|
+
return a === "number" ? `${e.width}px` : e.width;
|
|
54
|
+
}), N = d(() => {
|
|
55
|
+
const a = String(e.width).replace("px", ""), k = /^\d+(?:\.\d+)?$/, y = e.width && k.test(a) ? Number(a) : e.width;
|
|
56
|
+
return e.sizeRange === "xsm" || G(y) && y < 100 ? "3xsm" : "sm";
|
|
57
|
+
}), F = d(() => {
|
|
58
|
+
let a = `filter: ${l ? "none" : "blur(30px)"}`;
|
|
59
|
+
return e.objectFit && (a += `;object-fit: ${e.objectFit}`), e.objectPosition && (a += `;object-position: ${e.objectPosition}`), a;
|
|
60
|
+
});
|
|
61
|
+
return (a, k) => (m(), f("div", {
|
|
62
|
+
class: o([
|
|
63
|
+
t(B)({
|
|
64
|
+
sizeRange: e.sizeRange,
|
|
65
|
+
type: !e.type || !t(S).includes(e.type) ? "vertical" : e.type,
|
|
66
|
+
aspectRatio: e.aspectRatio,
|
|
67
|
+
hovered: e.hovered,
|
|
68
|
+
loaded: l.value,
|
|
69
|
+
"fallback-content": r.value && (!u.value || n.value)
|
|
70
|
+
}),
|
|
71
|
+
e.class
|
|
72
|
+
]),
|
|
73
|
+
style: w({ width: L.value })
|
|
74
|
+
}, [
|
|
75
|
+
r.value && (!u.value || n.value) ? (m(), f("div", {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: o(t(i)(t(s), "fallback"))
|
|
78
|
+
}, [
|
|
79
|
+
C(a.$slots, "fallback", {}, () => [
|
|
80
|
+
T(J, {
|
|
81
|
+
size: "sm",
|
|
82
|
+
icon: "tabler:photo-exclamation",
|
|
83
|
+
class: o(t(i)(t(s), "fallback__icon"))
|
|
84
|
+
}, null, 8, ["class"]),
|
|
85
|
+
A("div", {
|
|
86
|
+
class: o(t(i)(t(s), "fallback__text"))
|
|
87
|
+
}, O(a.fallbackDescription), 3)
|
|
88
|
+
])
|
|
89
|
+
], 2)) : (m(), f("img", {
|
|
90
|
+
key: 1,
|
|
91
|
+
alt: a.alt,
|
|
92
|
+
style: w(F.value),
|
|
93
|
+
src: E.value,
|
|
94
|
+
class: o([t(i)(t(s), "img"), a.imageCls]),
|
|
95
|
+
onLoad: x,
|
|
96
|
+
onError: I
|
|
97
|
+
}, null, 46, U)),
|
|
98
|
+
l.value ? R("", !0) : (m(), P(H, {
|
|
99
|
+
key: 2,
|
|
100
|
+
class: o(t(i)(t(s), "loading")),
|
|
101
|
+
size: N.value
|
|
102
|
+
}, null, 8, ["class", "size"])),
|
|
103
|
+
l.value && !r.value && (a.hovered || t(g).actions) ? (m(), f("div", {
|
|
104
|
+
key: 3,
|
|
105
|
+
class: o([t(i)(t(s), "hover_actions"), "pantograph-tokens dark", e.hoverCls])
|
|
106
|
+
}, [
|
|
107
|
+
C(a.$slots, "actions")
|
|
108
|
+
], 2)) : R("", !0)
|
|
109
|
+
], 6));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
M as I,
|
|
114
|
+
le as _,
|
|
115
|
+
Q as a,
|
|
116
|
+
S as b
|
|
117
|
+
};
|
|
@@ -3,7 +3,7 @@ import { Class } from '../types';
|
|
|
3
3
|
import { IndentLevelShowLine, IndentLevelSize } from './IndentLevel.model.js';
|
|
4
4
|
export interface IndentLevelProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
5
5
|
size?: IndentLevelSize;
|
|
6
|
-
showLine?: IndentLevelShowLine | number;
|
|
6
|
+
showLine?: IndentLevelShowLine | number | false;
|
|
7
7
|
children?: boolean;
|
|
8
8
|
level?: number | string;
|
|
9
9
|
expanded?: boolean;
|
|
@@ -12,21 +12,13 @@ export interface IndentLevelProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
|
12
12
|
branchIcon?: string;
|
|
13
13
|
noRotateBranch?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
default?(_: {}): any;
|
|
19
|
-
};
|
|
20
|
-
refs: {};
|
|
21
|
-
rootEl: any;
|
|
22
|
-
};
|
|
23
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
-
declare const __VLS_component: import('vue').DefineComponent<IndentLevelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IndentLevelProps> & Readonly<{}>, {
|
|
25
|
-
size: IndentLevelSize;
|
|
26
|
-
level: number | string;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<IndentLevelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IndentLevelProps> & Readonly<{}>, {
|
|
16
|
+
size: "2xsm" | "xsm" | "sm";
|
|
17
|
+
level: string | number;
|
|
27
18
|
branchIcon: string;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
29
|
-
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
}>;
|
|
30
22
|
export default _default;
|
|
31
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
24
|
new (): {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as IndentLevel, type IndentLevelProps, default } from './IndentLevel';
|
|
2
|
-
export * from './IndentLevel.model
|
|
2
|
+
export * from './IndentLevel.model';
|