@pantograph/vue 0.10.3 → 0.10.5
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 +5 -1
- package/dist/ActionButton/index.js.js +1 -1
- package/dist/ActionButton/index.umd.cjs.js +1 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-48AXc54q.js +54 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-B3fz9VlS.js +1 -0
- package/dist/Avatar/index.js.js +1 -1
- package/dist/Avatar/index.umd.cjs.js +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-ZqNWAzDy.js → Avatar.vue_vue_type_style_index_0_lang-BtPvBDpf.js} +3 -3
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BBmLnOBV.js → Avatar.vue_vue_type_style_index_0_lang-Dno8MmtN.js} +1 -1
- package/dist/AvatarGroup/index.js.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs.js +1 -1
- package/dist/Badge/Badge.d.ts +2 -2
- package/dist/Badge/index.js.js +1 -1
- package/dist/Badge/index.umd.cjs.js +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CCIamdNB.js → Badge.vue_vue_type_script_setup_true_lang-CQlVTtz6.js} +6 -5
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CrMJ4fbZ.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +3 -1
- package/dist/Base/BaseButton/BaseButton.d.ts +5 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Bh1152XC.js → BaseBadge.vue_vue_type_style_index_0_lang-CKBk5zhg.js} +41 -38
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-PmBe2V25.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CoUA_gDr.js +169 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D0Qoa28N.js +1 -0
- package/dist/Button/Button.d.ts +7 -3
- package/dist/Button/index.js.js +1 -1
- package/dist/Button/index.umd.cjs.js +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-CYNr2NyY.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BHumLt2E.js → Button.vue_vue_type_script_setup_true_lang-CobnwnGT.js} +15 -13
- package/dist/Checkbox/Checkbox.d.ts +3 -3
- package/dist/Checkbox/index.js.js +1 -1
- package/dist/Checkbox/index.umd.cjs.js +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CSmeTeZh.js → Checkbox.vue_vue_type_style_index_0_lang-DfpxRngn.js} +69 -67
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-pWUK1jtk.js +1 -0
- package/dist/CheckboxGroup/index.js.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs.js +1 -1
- package/dist/ColorPicker/index.js.js +1 -1
- package/dist/ColorPicker/index.umd.cjs.js +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-C86gVRVp.js → ColorPicker.vue_vue_type_style_index_0_lang-BNdf9ydf.js} +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Bj735O4E.js → ColorPicker.vue_vue_type_style_index_0_lang-CMZ6my8r.js} +3 -3
- package/dist/ColorSwatch/ColorSwatch.d.ts +1 -1
- package/dist/ColorSwatch/index.js.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs.js +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DWbErEeg.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-8sQWWbLp.js → ColorSwatch.vue_vue_type_style_index_0_lang-DmWOViyT.js} +22 -21
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -3
- package/dist/ColorSwatchGroup/index.js.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs.js +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-BiHYDJTg.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-Bqsu2-Pi.js} +7 -7
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CfrcyIa2.js +1 -0
- package/dist/ColorTrigger/index.js.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs.js +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BNFu93Ns.js → ColorTrigger.vue_vue_type_style_index_0_lang-DdGYFQWx.js} +4 -4
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-lIncYku3.js +1 -0
- package/dist/ConfigProvider/index.d.ts +10 -2
- package/dist/ConfigProvider/index.js.js +10 -119
- package/dist/ConfigProvider/index.umd.cjs.js +1 -1
- package/dist/ConfigProvider/utils.d.ts +1 -0
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Empty/Empty.d.ts +38 -0
- package/dist/Empty/Empty.model.d.ts +2 -0
- package/dist/Empty/index.d.ts +1 -0
- package/dist/Empty/index.js.js +1 -0
- package/dist/Empty/index.umd.cjs.js +1 -0
- package/dist/FloatButton/FloatButton.d.ts +5 -1
- package/dist/FloatButton/index.js.js +1 -1
- package/dist/FloatButton/index.umd.cjs.js +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Bg4MdrWW.js → FloatButton.vue_vue_type_script_setup_true_lang-BZreRcZ1.js} +13 -12
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-io7at7GI.js +1 -0
- package/dist/GraphicalObject/GraphicalObject.d.ts +2 -2
- package/dist/GraphicalObject/index.js.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs.js +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CshbWnRl.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js → GraphicalObject.vue_vue_type_script_setup_true_lang-D0vD57ET.js} +7 -6
- package/dist/Icon/Icon.d.ts +2 -1
- package/dist/Icon/index.js.js +1 -1
- package/dist/Icon/index.umd.cjs.js +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-BVVc15Aa.js +49 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-c9NvwoHi.js +1 -0
- package/dist/IconButton/IconButton.d.ts +7 -3
- package/dist/IconButton/index.js.js +1 -1
- package/dist/IconButton/index.umd.cjs.js +1 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CWqrQ22L.js +1 -0
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DJGgntqa.js → IconButton.vue_vue_type_script_setup_true_lang-CruPwQ16.js} +7 -6
- package/dist/Image/index.js.js +1 -1
- package/dist/Image/index.umd.cjs.js +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-Hg1jFz-L.js → Image.vue_vue_type_style_index_0_lang-Bu6dc2yW.js} +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-pkzjPQyu.js → Image.vue_vue_type_style_index_0_lang-C8UTT06Z.js} +3 -3
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js.js +1 -1
- package/dist/IndentLevel/index.umd.cjs.js +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-ZZ1uEhji.js → IndentLevel.vue_vue_type_style_index_0_lang-Bgt84fW2.js} +3 -3
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-DqqJTrDF.js → IndentLevel.vue_vue_type_style_index_0_lang-D19gT0Bo.js} +1 -1
- package/dist/Indicator/Indicator.d.ts +1 -1
- package/dist/Indicator/index.js.js +1 -1
- package/dist/Indicator/index.umd.cjs.js +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-B16OmZLF.js → Indicator.vue_vue_type_script_setup_true_lang-DX6wYSsL.js} +5 -5
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BibzfVax.js → Indicator.vue_vue_type_script_setup_true_lang-DmGmSuAJ.js} +1 -1
- package/dist/Input/index.js.js +1 -1
- package/dist/Input/index.umd.cjs.js +1 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-Bg1yMzU-.js +1 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-CfRRpkAQ.js +269 -0
- package/dist/Kbd/index.js.js +1 -1
- package/dist/Kbd/index.umd.cjs.js +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js → Kbd.vue_vue_type_style_index_0_lang-CUCZZjvw.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js → Kbd.vue_vue_type_style_index_0_lang-C_WG0F7e.js} +1 -1
- package/dist/Menu/Menu.d.ts +43 -6
- package/dist/Menu/index.js.js +1 -1
- package/dist/Menu/index.umd.cjs.js +1 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-1iiTY68f.js +1 -0
- package/dist/{Menu.vue_vue_type_style_index_0_lang-CtqLC5y9.js → Menu.vue_vue_type_style_index_0_lang-CJAZruBS.js} +154 -153
- package/dist/MenuItem/MenuItem.d.ts +20 -3
- package/dist/MenuItem/MenuItemContent.d.ts +7 -7
- package/dist/MenuItem/index.js.js +1 -1
- package/dist/MenuItem/index.umd.cjs.js +1 -1
- package/dist/Popover/Popover.d.ts +8 -6
- package/dist/Popover/index.js.js +1 -1
- package/dist/Popover/index.umd.cjs.js +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-BmWYJg2M.js +154 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-C7q9V9tc.js +1 -0
- package/dist/RadioGroup/index.js.js +1 -1
- package/dist/RadioGroup/index.umd.cjs.js +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-BCj1pwSS.js +1 -0
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js → RadioGroup.vue_vue_type_script_setup_true_lang-Dmj1c8T_.js} +12 -11
- package/dist/Shortcut/index.js.js +1 -1
- package/dist/Shortcut/index.umd.cjs.js +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-D4xo_UgO.js → Shortcut.vue_vue_type_style_index_0_lang-CmVub9SF.js} +2 -2
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js → Shortcut.vue_vue_type_style_index_0_lang-IKgak4ec.js} +1 -1
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/index.js.js +1 -1
- package/dist/Spinner/index.umd.cjs.js +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js → Spinner.vue_vue_type_style_index_0_lang-BFKOyKva.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js → Spinner.vue_vue_type_style_index_0_lang-Birom5mO.js} +1 -1
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/index.js.js +1 -1
- package/dist/Switch/index.umd.cjs.js +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-CoXu3YJ-.js → Switch.vue_vue_type_style_index_0_lang-BhiOtkMp.js} +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-CvWay8Wa.js → Switch.vue_vue_type_style_index_0_lang-KnEeVf_H.js} +2 -2
- package/dist/Table/Table.d.ts +67 -0
- package/dist/Table/Table.model.d.ts +57 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js.js +2650 -0
- package/dist/Table/index.umd.cjs.js +22 -0
- package/dist/Table/useColumn.d.ts +15 -0
- package/dist/Table/useColumnWrap.d.ts +12 -0
- package/dist/Tree/Tree.d.ts +3 -3
- package/dist/Tree/index.js.js +1 -1
- package/dist/Tree/index.umd.cjs.js +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BZVa19t5.js +499 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-CDS7qhkC.js +1 -0
- package/dist/_baseIsEqual-BTV64KSy.js +144 -0
- package/dist/_baseIsEqual-DP4HkppL.js +1 -0
- package/dist/{_flatRest-CHX8vV1P.js → _flatRest-BzXqWlYG.js} +37 -38
- package/dist/_flatRest-CreY2VBo.js +1 -0
- package/dist/{cloneDeep-BMA7VTX1.js → cloneDeep-D-sgVuxc.js} +1 -1
- package/dist/cloneDeep-DkiDLLTT.js +1 -0
- package/dist/{get-Q8GXlj-L.js → get-CFKlew5d.js} +1 -1
- package/dist/{get-B4UJlXpC.js → get-DhKz3lGB.js} +1 -1
- package/dist/index-BBeDQiz4.js +1 -0
- package/dist/index-iTlmMf0U.js +137 -0
- package/dist/index.js.js +31 -31
- package/dist/index.umd.cjs.js +1 -1
- package/dist/isArray-3RTyNB5p.js +1 -0
- package/dist/isArray-CdbPONHA.js +31 -0
- package/dist/{isNumber-DlKYWCo3.js → isNumber-BopDesuz.js} +1 -1
- package/dist/isNumber-CYWvnzF3.js +1 -0
- package/dist/{omit-BEkBWXra.js → omit-Beooz3Dl.js} +40 -41
- package/dist/omit-C4BrcXKG.js +1 -0
- package/dist/{pick-DLskPTKb.js → pick-Bwh_EsUP.js} +2 -2
- package/dist/{pick-C-ap2Lj0.js → pick-Db06rbL5.js} +1 -1
- package/dist/style/index.css +1 -1
- package/dist/uniq-Bfg4Hn1q.js +56 -0
- package/dist/uniq-ChIEzCZe.js +1 -0
- package/package.json +12 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Bmld__SV.js +0 -51
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Bno9iBJg.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-ooDlpl8j.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BNs69VP4.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-4ju_QUXH.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CEY27kcT.js +0 -160
- package/dist/Button.vue_vue_type_script_setup_true_lang-BZ0h9oaW.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-D0sF0-hW.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Bt9Tu3La.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DmF-FkKK.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-C8kPa338.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Bsmuycb8.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js +0 -48
- package/dist/Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DU9MPZq2.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-CcR6oCIR.js +0 -407
- package/dist/Input.vue_vue_type_style_index_0_lang-DVN491cI.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-CG9UOulA.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-DRMPu5Ij.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-vZfwRHoU.js +0 -142
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BCYjSwUH.js +0 -545
- package/dist/Tree.vue_vue_type_style_index_0_lang-CvskECfv.js +0 -1
- package/dist/_flatRest-R59G2N4m.js +0 -1
- package/dist/cloneDeep-BcKVMzWC.js +0 -1
- package/dist/isArray-B7z6QoM5.js +0 -1
- package/dist/isArray-WzO_os3q.js +0 -4
- package/dist/isNumber-eaDdxhkG.js +0 -1
- package/dist/isObjectLike-BatpeCIi.js +0 -29
- package/dist/isObjectLike-kO9e4B7g.js +0 -1
- package/dist/isString-BVAZt9W3.js +0 -9
- package/dist/isString-CKmTJsel.js +0 -1
- package/dist/omit-BKPbELUG.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Class } from '../types';
|
|
2
2
|
import { ColorSwatchProps, ColorSwatchSlots } from '../ColorSwatch/ColorSwatch';
|
|
3
3
|
import { ColorSwatchSize } from '../ColorSwatch/ColorSwatch.model';
|
|
4
|
-
import { VisibleColorFormat } from '../ColorPicker/types
|
|
5
|
-
import { PopoverProps } from '../Popover
|
|
6
|
-
import { ColorPickerProps } from '../ColorPicker
|
|
4
|
+
import { VisibleColorFormat } from '../ColorPicker/types';
|
|
5
|
+
import { PopoverProps } from '../Popover';
|
|
6
|
+
import { ColorPickerProps } from '../ColorPicker';
|
|
7
7
|
interface ColorObject extends Partial<Pick<ColorSwatchProps, 'bg' | 'fg' | 'br' | 'icon'>> {
|
|
8
8
|
value: string;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorSwatchGroup.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorSwatchGroup.vue_vue_type_style_index_0_lang-CfrcyIa2.js");exports.ColorSwatchGroup=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as G, useSlots as L, ref as U, computed as p, createElementBlock as f, openBlock as l, normalizeClass as v, unref as a, createCommentVNode as b, createElementVNode as T, renderSlot as g, createTextVNode as q, toDisplayString as H, createBlock as C, Fragment as J, renderList as k, mergeProps as u, createSlots as V, withCtx as c, createVNode as $, normalizeProps as K, guardReactiveProps as Q } from "vue";
|
|
2
2
|
import { g as W } from "./options-JBqnVZUl.js";
|
|
3
3
|
import { useEmitAsProps as X } from "radix-vue";
|
|
4
|
-
import { _ as y, C as Y } from "./ColorSwatch.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import {
|
|
6
|
-
import { i as M } from "./_flatRest-
|
|
4
|
+
import { _ as y, C as Y } from "./ColorSwatch.vue_vue_type_style_index_0_lang-DmWOViyT.js";
|
|
5
|
+
import { a as B } from "./index-iTlmMf0U.js";
|
|
6
|
+
import { i as M } from "./_flatRest-BzXqWlYG.js";
|
|
7
7
|
import { useVModel as Z } from "@vueuse/core";
|
|
8
8
|
import { g as x, a as ee, b as j } from "./class-DziTeW9B.js";
|
|
9
9
|
import { cva as oe } from "class-variance-authority";
|
|
10
|
-
import { o as te } from "./omit-
|
|
11
|
-
import { _ as re } from "./Popover.vue_vue_type_style_index_0_lang-
|
|
12
|
-
import { _ as se } from "./ColorPicker.vue_vue_type_style_index_0_lang-
|
|
13
|
-
import { p as S } from "./pick-
|
|
10
|
+
import { o as te } from "./omit-Beooz3Dl.js";
|
|
11
|
+
import { _ as re } from "./Popover.vue_vue_type_style_index_0_lang-BmWYJg2M.js";
|
|
12
|
+
import { _ as se } from "./ColorPicker.vue_vue_type_style_index_0_lang-CMZ6my8r.js";
|
|
13
|
+
import { p as S } from "./pick-Bwh_EsUP.js";
|
|
14
14
|
const Ce = /* @__PURE__ */ G({
|
|
15
15
|
...W("ColorSwatchGroup"),
|
|
16
16
|
__name: "ColorSwatchGroup",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),S=require("./options-B4iSAKol.js"),q=require("radix-vue"),i=require("./ColorSwatch.vue_vue_type_style_index_0_lang-DWbErEeg.js"),g=require("./index-BBeDQiz4.js"),m=require("./_flatRest-CreY2VBo.js"),$=require("@vueuse/core"),u=require("./class-CjZYGZDW.js"),j=require("class-variance-authority"),w=require("./omit-C4BrcXKG.js"),E=require("./Popover.vue_vue_type_style_index_0_lang-C7q9V9tc.js"),N=require("./ColorPicker.vue_vue_type_style_index_0_lang-BNdf9ydf.js"),k=require("./pick-Db06rbL5.js"),O=e.defineComponent({...S.getComponentOptions("ColorSwatchGroup"),__name:"ColorSwatchGroup",props:{format:{},defaultFormat:{},hideAlpha:{type:Boolean},size:{default:"md"},customPickerIcon:{},icon:{},class:{},noRemover:{type:Boolean},noCustomPicker:{type:Boolean},modelValue:{},headerCls:{},header:{},colorsCls:{},defaultValue:{},colors:{},colorMode:{default:"bold"},popoverProps:{}},emits:["update:format","update:modelValue"],setup(C,{emit:b}){const t=C,_=e.useSlots(),p=b,l=$.useVModel(t,"modelValue",p,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),y=o=>{if(g.isString(o))return{selected:l.value===o,icon:t.icon,bg:o};if(m.isObject(o))return{...w.omit(o,"value"),icon:o.icon??t.icon,selected:l.value===o.value}},a=u.getBemBlock("color_swatch_group"),h=j.cva(a,{variants:{size:u.generateVariantClassList(i.ColorSwatchSizes,a)}}),f=e.ref(!1),c=o=>m.isObject(o)?o.value:o??void 0,v=o=>{const r=c(o);l.value=r,f.value=!r},d=e.computed(()=>{if(t.colors)return t.colors;const o=["red","orange","yellow","lime","green","sky","blue","violet"];return t.colorMode==="subtle"?o.map(r=>`${r}-subtle`):typeof t.colorMode=="object"&&t.colorMode.value&&(t.colorMode.bg||t.colorMode.br||t.colorMode.fg)?o.map(r=>{const s={value:typeof t.colorMode=="object"&&t.colorMode.value==="subtle"?`${r}-subtle`:r};return typeof t.colorMode=="object"&&t.colorMode.bg&&(s.bg=t.colorMode.bg==="subtle"?`${r}-subtle`:r),typeof t.colorMode=="object"&&t.colorMode.br&&(s.br=t.colorMode.br==="subtle"?`${r}-subtle`:r),typeof t.colorMode=="object"&&t.colorMode.fg&&(s.fg=t.colorMode.fg==="subtle"?`${r}-subtle`:r),s}):o}),P=e.computed(()=>{var o;if(!((o=d.value)!=null&&o.length&&d.value.some(r=>g.isString(r)&&r===l.value||m.isObject(r)&&l.value===r.value)))return l.value}),V=o=>{o&&(l.value=o)},B=q.useEmitAsProps(p),M=e.computed(()=>({...k.pick(B,"onUpdate:format"),...k.pick(t,"format","defaultFormat","hideAlpha")}));return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.class,e.unref(h)({size:o.size})])},[_.header||o.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(a),"header"),o.headerCls])},[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.header),1)])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(a),"colors"),o.colorsCls])},[o.noRemover?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i._sfc_main,{key:0,type:"remover",size:o.size,onClick:r[0]||(r[0]=s=>v()),selected:!e.unref(l)&&f.value},null,8,["size","selected"])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,s=>(e.openBlock(),e.createBlock(i._sfc_main,e.mergeProps({type:"color",size:o.size,icon:o.icon,ref_for:!0},y(s),{key:c(s),onClick:n=>v(s)}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),n=>({name:n,fn:e.withCtx(z=>[e.renderSlot(o.$slots,n,e.mergeProps({ref_for:!0},{...z,value:c(s)}))])}))]),1040,["size","icon","onClick"]))),128)),o.noCustomPicker?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E._sfc_main,e.mergeProps({key:1,trigger:"click","reverse-placement-on-dir":"rtl",placement:"right-start","side-offset":4},o.popoverProps||{}),{content:e.withCtx(()=>[e.createVNode(N._sfc_main,e.mergeProps({defaultColor:P.value,"onUpdate:color":V},M.value),null,16,["defaultColor"])]),default:e.withCtx(()=>[e.createVNode(i._sfc_main,{type:"custom-picker",size:o.size,customPickerIcon:o.customPickerIcon},e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),s=>({name:s,fn:e.withCtx(n=>[e.renderSlot(o.$slots,s,e.normalizeProps(e.guardReactiveProps(n)))])}))]),1032,["size","customPickerIcon"])]),_:3},16))],2)],2))}});exports._sfc_main=O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorTrigger.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorTrigger.vue_vue_type_style_index_0_lang-lIncYku3.js");exports.ColorTrigger=e._sfc_main;exports.ColorTriggerSizes=e.ColorTriggerSizes;exports.default=e._sfc_main;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as _, computed as r, useSlots as B, createElementBlock as S, openBlock as n, normalizeClass as v, unref as a, createVNode as k, createBlock as x, createCommentVNode as h, normalizeProps as c, guardReactiveProps as l, createSlots as I, renderList as y, withCtx as m, renderSlot as d } from "vue";
|
|
2
|
-
import { _ as w } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as w } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-D0vD57ET.js";
|
|
3
3
|
import { g as O } from "./options-JBqnVZUl.js";
|
|
4
4
|
import { g as $, a as f } from "./class-DziTeW9B.js";
|
|
5
5
|
import { cva as T } from "class-variance-authority";
|
|
6
|
-
import { _ as V } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import {
|
|
8
|
-
import { p as L } from "./pick-
|
|
6
|
+
import { _ as V } from "./Icon.vue_vue_type_style_index_0_lang-BVVc15Aa.js";
|
|
7
|
+
import { a as G } from "./index-iTlmMf0U.js";
|
|
8
|
+
import { p as L } from "./pick-Bwh_EsUP.js";
|
|
9
9
|
const u = ["sm", "md", "lg"], N = ["disabled"], J = /* @__PURE__ */ _({
|
|
10
10
|
...O("ColorTrigger"),
|
|
11
11
|
__name: "ColorTrigger",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-CshbWnRl.js"),p=require("./options-B4iSAKol.js"),t=require("./class-CjZYGZDW.js"),f=require("class-variance-authority"),_=require("./Icon.vue_vue_type_style_index_0_lang-c9NvwoHi.js"),z=require("./index-BBeDQiz4.js"),b=require("./pick-Db06rbL5.js"),n=["sm","md","lg"],v=["disabled"],C=e.defineComponent({...p.getComponentOptions("ColorTrigger"),__name:"ColorTrigger",props:{icon:{},bg:{},br:{},fg:{},class:{},size:{default:"md"},disabled:{type:Boolean},borderless:{type:Boolean},suffixIcon:{type:[Boolean,String],default:"tabler:chevron-down"}},setup(a){const s=a,o=t.getBemBlock("color_trigger"),l=f.cva(o,{variants:{size:t.generateVariantClassList(n,o),borderless:t.generateVariantClassList("borderless",o)}}),u=e.computed(()=>s.size&&n.includes(s.size)?s.size:"md"),d=e.computed(()=>({size:(()=>{switch(s.size){case"sm":return"2xsm";case"md":return"xsm";case"lg":return"sm"}})(),...b.pick(s,"icon","bg","br","fg")})),i=e.useSlots(),g=e.computed(()=>{switch(s.size){case"sm":return"2xsm";case"md":case"lg":return"xsm"}});return(r,S)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass([e.unref(l)({size:u.value,borderless:r.borderless}),s.class]),disabled:r.disabled},[e.createVNode(m._sfc_main,e.normalizeProps(e.guardReactiveProps(d.value)),e.createSlots({_:2},[e.renderList(Object.keys(i),c=>({name:c,fn:e.withCtx(()=>[e.renderSlot(r.$slots,c,e.normalizeProps(e.guardReactiveProps(s)))])}))]),1040),r.suffixIcon||i.suffixIcon?(e.openBlock(),e.createBlock(_._sfc_main,{key:0,icon:e.unref(z.isString)(r.suffixIcon)?r.suffixIcon:void 0,size:g.value},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"suffixIcon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0)],10,v))}});exports.ColorTriggerSizes=n;exports._sfc_main=C;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { Config } from '@pantograph/tokens';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
|
-
import { Direction } from './utils';
|
|
4
|
-
export { type Direction };
|
|
3
|
+
import { Direction, FlipOnDir } from './utils';
|
|
4
|
+
export { type Direction, type FlipOnDir };
|
|
5
5
|
interface _Config extends Config {
|
|
6
6
|
init?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface ConfigProviderProps {
|
|
9
9
|
locale?: 'fa' | 'en' | object;
|
|
10
10
|
theme?: _Config;
|
|
11
|
+
flipOnDir?: FlipOnDir;
|
|
11
12
|
changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement>;
|
|
12
13
|
changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement>;
|
|
13
14
|
}
|
|
14
15
|
interface Context {
|
|
15
16
|
theme: ComputedRef<Config>;
|
|
16
17
|
dir: Ref<Direction>;
|
|
18
|
+
flipOnDir: ComputedRef<FlipOnDir | undefined>;
|
|
17
19
|
dark: Ref<boolean>;
|
|
18
20
|
changeDirection: (dir?: Direction) => void;
|
|
19
21
|
changeTheme: (config: Config) => void;
|
|
@@ -25,6 +27,7 @@ export { provideConfigContext, injectConfigContext };
|
|
|
25
27
|
export declare const ConfigProvider: import('vue').DefineComponent<{
|
|
26
28
|
locale?: ("fa" | "en" | object) | undefined;
|
|
27
29
|
theme?: _Config | undefined;
|
|
30
|
+
flipOnDir?: FlipOnDir | undefined;
|
|
28
31
|
changeAbleDirectionElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
|
|
29
32
|
changeAbleDarkElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
|
|
30
33
|
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
@@ -32,6 +35,7 @@ export declare const ConfigProvider: import('vue').DefineComponent<{
|
|
|
32
35
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
33
36
|
locale?: ("fa" | "en" | object) | undefined;
|
|
34
37
|
theme?: _Config | undefined;
|
|
38
|
+
flipOnDir?: FlipOnDir | undefined;
|
|
35
39
|
changeAbleDirectionElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
|
|
36
40
|
changeAbleDarkElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
|
|
37
41
|
}> & Readonly<{}>, {
|
|
@@ -39,3 +43,7 @@ export declare const ConfigProvider: import('vue').DefineComponent<{
|
|
|
39
43
|
changeAbleDarkElement: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement>;
|
|
40
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
45
|
export default ConfigProvider;
|
|
46
|
+
export declare const useConfig: () => {
|
|
47
|
+
config: Context;
|
|
48
|
+
getFlipOnDir: <T = object>(key: keyof T) => ComputedRef<FlipOnDir | undefined>;
|
|
49
|
+
};
|
|
@@ -1,121 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { i as
|
|
5
|
-
import
|
|
6
|
-
import { c as M } from "../options-JBqnVZUl.js";
|
|
7
|
-
const k = (n) => {
|
|
8
|
-
const t = m(() => {
|
|
9
|
-
const e = h(n);
|
|
10
|
-
return v(e) ? document.querySelector(e) : e instanceof HTMLElement ? e : document.documentElement;
|
|
11
|
-
}), r = g("ltr"), o = () => {
|
|
12
|
-
t.value instanceof HTMLElement && (r.value = getComputedStyle(t.value).direction);
|
|
13
|
-
};
|
|
14
|
-
o();
|
|
15
|
-
const c = (e) => {
|
|
16
|
-
let i = e;
|
|
17
|
-
(!e || !["rtl", "ltr"].includes(e)) && (i = r.value === "ltr" ? "rtl" : "ltr"), t.value && (t.value.dir = i);
|
|
18
|
-
};
|
|
19
|
-
return D(t, o, {
|
|
20
|
-
attributes: !0,
|
|
21
|
-
attributeFilter: ["dir", "class", "style"]
|
|
22
|
-
}), [r, c];
|
|
23
|
-
}, b = (n) => {
|
|
24
|
-
const t = m(() => {
|
|
25
|
-
const e = h(n);
|
|
26
|
-
return v(e) ? document.querySelector(e) : e instanceof HTMLElement ? e : document.documentElement;
|
|
27
|
-
}), r = g(!1), o = () => {
|
|
28
|
-
var e, i;
|
|
29
|
-
t.value instanceof HTMLElement && (r.value = ((i = (e = t.value) == null ? void 0 : e.classList) == null ? void 0 : i.contains("dark")) ?? !1);
|
|
30
|
-
};
|
|
31
|
-
o();
|
|
32
|
-
const c = (e) => {
|
|
33
|
-
let i = e;
|
|
34
|
-
[!0, !1].includes(e) || (i = !r.value), t.value && T(i, t.value);
|
|
35
|
-
};
|
|
36
|
-
return D(t, o, {
|
|
37
|
-
attributes: !0,
|
|
38
|
-
attributeFilter: ["class", "data-theme"]
|
|
39
|
-
}), [r, c];
|
|
40
|
-
}, [S, j] = C("config-provider"), [x, H] = k(), [w, A] = b(), O = {
|
|
41
|
-
dir: x,
|
|
42
|
-
changeDirection: H,
|
|
43
|
-
dark: w,
|
|
44
|
-
toggleDark: A,
|
|
45
|
-
changeTheme: u,
|
|
46
|
-
theme: m(() => s())
|
|
47
|
-
}, I = () => S(O), J = p({
|
|
48
|
-
name: `${M}ConfigProvider`,
|
|
49
|
-
inheritAttrs: !1,
|
|
50
|
-
props: {
|
|
51
|
-
locale: {
|
|
52
|
-
type: [String, Object],
|
|
53
|
-
required: !1
|
|
54
|
-
},
|
|
55
|
-
theme: {
|
|
56
|
-
type: Object,
|
|
57
|
-
required: !1
|
|
58
|
-
},
|
|
59
|
-
changeAbleDirectionElement: {
|
|
60
|
-
type: [String, HTMLElement, Object],
|
|
61
|
-
default: "html"
|
|
62
|
-
},
|
|
63
|
-
changeAbleDarkElement: {
|
|
64
|
-
type: [String, HTMLElement, Object],
|
|
65
|
-
default: "html"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
setup(n, {
|
|
69
|
-
slots: t
|
|
70
|
-
}) {
|
|
71
|
-
const [r, o] = k(n.changeAbleDirectionElement), [c, e] = b(n.changeAbleDarkElement);
|
|
72
|
-
y(
|
|
73
|
-
() => n.theme,
|
|
74
|
-
() => {
|
|
75
|
-
var a, l;
|
|
76
|
-
if ((a = n.theme) != null && a.init || (l = n.theme) != null && l.element) {
|
|
77
|
-
const { init: P, ...f } = n.theme;
|
|
78
|
-
window.pantographThemeDefined ? u(f) : (_(f), Promise.resolve({ }), window.pantographThemeDefined = !0);
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{ immediate: !0 }
|
|
82
|
-
);
|
|
83
|
-
const i = m(() => ({
|
|
84
|
-
...s(n.theme),
|
|
85
|
-
dark: c.value
|
|
86
|
-
})), d = (a) => {
|
|
87
|
-
var l;
|
|
88
|
-
return u({ element: (l = n.theme) == null ? void 0 : l.element, ...a });
|
|
89
|
-
};
|
|
90
|
-
return j({
|
|
91
|
-
dir: r,
|
|
92
|
-
theme: i,
|
|
93
|
-
dark: c,
|
|
94
|
-
changeDirection: o,
|
|
95
|
-
changeTheme: d,
|
|
96
|
-
toggleDark: e
|
|
97
|
-
}), () => L(
|
|
98
|
-
E,
|
|
99
|
-
{ dir: r.value },
|
|
100
|
-
{
|
|
101
|
-
default: () => {
|
|
102
|
-
var a;
|
|
103
|
-
return (a = t.default) == null ? void 0 : a.call(t, {
|
|
104
|
-
dir: r.value,
|
|
105
|
-
theme: i.value,
|
|
106
|
-
dark: c.value,
|
|
107
|
-
changeDirection: o,
|
|
108
|
-
changeTheme: d,
|
|
109
|
-
toggleDark: e
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
});
|
|
1
|
+
import "radix-vue";
|
|
2
|
+
import "@pantograph/tokens";
|
|
3
|
+
import "vue";
|
|
4
|
+
import { C as n, C as p, i as a, p as f, u as s } from "../index-iTlmMf0U.js";
|
|
5
|
+
import "../options-JBqnVZUl.js";
|
|
116
6
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
7
|
+
n as ConfigProvider,
|
|
8
|
+
p as default,
|
|
9
|
+
a as injectConfigContext,
|
|
10
|
+
f as provideConfigContext,
|
|
11
|
+
s as useConfig
|
|
121
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("radix-vue");require("@pantograph/tokens");require("vue");const e=require("../index-BBeDQiz4.js");require("../options-B4iSAKol.js");exports.ConfigProvider=e.ConfigProvider;exports.default=e.ConfigProvider;exports.injectConfigContext=e.injectConfigContext;exports.provideConfigContext=e.provideConfigContext;exports.useConfig=e.useConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
export type Element = string | HTMLElement | Ref<string | HTMLElement>;
|
|
3
3
|
export type Direction = 'ltr' | 'rtl';
|
|
4
|
+
export type FlipOnDir = Direction | 'none';
|
|
4
5
|
export declare const useDir: (changeAbleDirectionElement?: Element) => [Ref<Direction>, (value?: Direction) => void];
|
|
5
6
|
export declare const useDark: (changeAbleDirectionElement?: Element) => [Ref<boolean>, (dark?: boolean) => void];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Class } from '../types';
|
|
2
|
+
import { EmptyType } from './Empty.model';
|
|
3
|
+
export interface EmptyProps {
|
|
4
|
+
type?: EmptyType;
|
|
5
|
+
class?: Class;
|
|
6
|
+
imageCls?: Class;
|
|
7
|
+
titleCls?: Class;
|
|
8
|
+
descriptionCls?: Class;
|
|
9
|
+
contentCls?: Class;
|
|
10
|
+
textCls?: Class;
|
|
11
|
+
actionsCls?: Class;
|
|
12
|
+
icon?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface EmptySlots {
|
|
17
|
+
title: () => never;
|
|
18
|
+
description: () => never;
|
|
19
|
+
actions: () => never;
|
|
20
|
+
image: () => never;
|
|
21
|
+
}
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
slots: Readonly<EmptySlots> & EmptySlots;
|
|
24
|
+
refs: {};
|
|
25
|
+
attrs: Partial<{}>;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<EmptyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EmptyProps> & Readonly<{}>, {
|
|
29
|
+
type: EmptyType;
|
|
30
|
+
icon: string;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
-
export type FloatButtonProps = Partial<Pick<BaseButtonProps, 'class' | 'color' | 'loading' | 'size' | 'icon'>> & {
|
|
2
|
+
export type FloatButtonProps = Partial<Pick<BaseButtonProps, 'class' | 'color' | 'loading' | 'size' | 'icon' | 'flipOnDir'>> & {
|
|
3
3
|
type?: 'fill' | 'outline';
|
|
4
4
|
};
|
|
5
5
|
type FloatButtonSlots = Omit<BaseButtonSlots, 'preIcon' | 'badge' | 'postIcon' | 'default'>;
|
|
@@ -24,6 +24,10 @@ declare function __VLS_template(): {
|
|
|
24
24
|
readonly icon?: string | undefined;
|
|
25
25
|
readonly preIcon?: string | undefined;
|
|
26
26
|
readonly postIcon?: string | undefined;
|
|
27
|
+
readonly flipOnDir?: import('../ConfigProvider/index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
28
|
+
readonly preIconFlipOnDir?: import('../ConfigProvider/index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
29
|
+
readonly postIconFlipOnDir?: import('../ConfigProvider/index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
30
|
+
readonly badgeIconFlipOnDir?: import('../ConfigProvider/index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
27
31
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
28
32
|
$attrs: {
|
|
29
33
|
[x: string]: unknown;
|
|
@@ -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-io7at7GI.js");exports.FloatButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { g as
|
|
5
|
-
const
|
|
6
|
-
...
|
|
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-Beooz3Dl.js";
|
|
3
|
+
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-CoUA_gDr.js";
|
|
4
|
+
import { g as O } from "./options-JBqnVZUl.js";
|
|
5
|
+
const F = /* @__PURE__ */ p({
|
|
6
|
+
...O("FloatButton", !1),
|
|
7
7
|
__name: "FloatButton",
|
|
8
8
|
props: {
|
|
9
9
|
class: {},
|
|
@@ -11,13 +11,14 @@ const I = /* @__PURE__ */ i({
|
|
|
11
11
|
loading: { type: Boolean },
|
|
12
12
|
size: {},
|
|
13
13
|
icon: {},
|
|
14
|
+
flipOnDir: {},
|
|
14
15
|
type: {}
|
|
15
16
|
},
|
|
16
17
|
setup(r, { expose: n }) {
|
|
17
|
-
const s = r, a = l(), c =
|
|
18
|
+
const s = r, a = l(), c = f(() => ({
|
|
18
19
|
...y(a, "variant", "text", "preIcon", "postIcon", "action", "active", "badgeText"),
|
|
19
20
|
...s
|
|
20
|
-
})), t =
|
|
21
|
+
})), t = m();
|
|
21
22
|
return n({
|
|
22
23
|
focus() {
|
|
23
24
|
var o;
|
|
@@ -27,20 +28,20 @@ const I = /* @__PURE__ */ i({
|
|
|
27
28
|
var o;
|
|
28
29
|
(o = t.value) == null || o.blur();
|
|
29
30
|
}
|
|
30
|
-
}), (o,
|
|
31
|
+
}), (o, P) => (_(), u(C, d(c.value, {
|
|
31
32
|
variant: "float",
|
|
32
33
|
ref_key: "buttonRef",
|
|
33
34
|
ref: t
|
|
34
35
|
}), b({ _: 2 }, [
|
|
35
36
|
g(Object.keys(o.$slots), (e) => ({
|
|
36
37
|
name: e,
|
|
37
|
-
fn: v((
|
|
38
|
-
B(o.$slots, e, k(x(
|
|
38
|
+
fn: v((i) => [
|
|
39
|
+
B(o.$slots, e, k(x(i)))
|
|
39
40
|
])
|
|
40
41
|
}))
|
|
41
42
|
]), 1040));
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
F as _
|
|
46
47
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./omit-C4BrcXKG.js"),p=require("./BaseButton.vue_vue_type_style_index_0_lang-D0Qoa28N.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,7 +1,7 @@
|
|
|
1
1
|
import { BaseBadgeSlots, BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
2
2
|
import { BadgeSize } from '../Base/BaseBadge/BaseBadge.model';
|
|
3
|
-
import { GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG } from './GraphicalObject.model
|
|
4
|
-
export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'class' | 'icon'>> & {
|
|
3
|
+
import { GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG } from './GraphicalObject.model';
|
|
4
|
+
export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'class' | 'icon' | 'flipOnDir'>> & {
|
|
5
5
|
fg?: GraphicalObjectFG | string;
|
|
6
6
|
bg?: GraphicalObjectBG | string;
|
|
7
7
|
br?: GraphicalObjectBR | string;
|
|
@@ -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-CshbWnRl.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),u=require("./omit-C4BrcXKG.js"),g=require("./BaseBadge.vue_vue_type_style_index_0_lang-PmBe2V25.js"),b=require("./options-B4iSAKol.js"),t=require("@pantograph/tokens"),f=e.defineComponent({...b.getComponentOptions("GraphicalObject",!1),__name:"GraphicalObject",props:{class:{},icon:{},flipOnDir:{},fg:{},bg:{},br:{},size:{}},setup(c){const s=c,i=e.computed(()=>{const a=Object.fromEntries(g.BadgeColors.map(r=>[r,t.getCssVar(`${r}-5`)])),o={...a,...Object.fromEntries(g.BadgeColorsSubtle.map(r=>[r,t.getCssVar(`${r.replace("-subtle","")}-0`)])),transparent:"transparent","gray-subtle":t.getCssVar("gray-1")},n={...a,gray:t.getCssVar("gray-6"),default:t.getCssVar("gray-8"),"default-subtle":t.getCssVar("gray-5"),white:t.getCssVar("grayscale-light-0"),black:t.getCssVar("grayscale-light-10")};return{bg:o[s.bg]??s.bg,br:o[s.br]??(s.bg==="transparent"?t.getCssVar("gray-2"):void 0),fg:n[s.fg??"default"]??s.fg}}),l=e.useAttrs(),p=e.computed(()=>({...u.omit(l,"type","text"),...s,...i.value}));return(a,o)=>(e.openBlock(),e.createBlock(g._sfc_main,e.mergeProps(p.value,{type:"rect"}),e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),n=>({name:n,fn:e.withCtx(r=>[e.renderSlot(a.$slots,n,e.normalizeProps(e.guardReactiveProps(r)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as j } from "./omit-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as l, computed as n, useAttrs as m, createBlock as b, openBlock as f, mergeProps as u, createSlots as d, renderList as y, withCtx as _, renderSlot as h, normalizeProps as C, guardReactiveProps as O } from "vue";
|
|
2
|
+
import { o as j } from "./omit-Beooz3Dl.js";
|
|
3
|
+
import { B, a as $, _ as k } from "./BaseBadge.vue_vue_type_style_index_0_lang-CKBk5zhg.js";
|
|
4
4
|
import { g as v } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { getCssVar as t } from "@pantograph/tokens";
|
|
6
|
-
const z = /* @__PURE__ */
|
|
6
|
+
const z = /* @__PURE__ */ l({
|
|
7
7
|
...v("GraphicalObject", !1),
|
|
8
8
|
__name: "GraphicalObject",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
11
11
|
icon: {},
|
|
12
|
+
flipOnDir: {},
|
|
12
13
|
fg: {},
|
|
13
14
|
bg: {},
|
|
14
15
|
br: {},
|
|
@@ -38,12 +39,12 @@ const z = /* @__PURE__ */ i({
|
|
|
38
39
|
br: o[e.br] ?? (e.bg === "transparent" ? t("gray-2") : void 0),
|
|
39
40
|
fg: s[e.fg ?? "default"] ?? e.fg
|
|
40
41
|
};
|
|
41
|
-
}), c = m(),
|
|
42
|
+
}), c = m(), i = n(() => ({
|
|
42
43
|
...j(c, "type", "text"),
|
|
43
44
|
...e,
|
|
44
45
|
...g.value
|
|
45
46
|
}));
|
|
46
|
-
return (a, o) => (f(), b(k, u(
|
|
47
|
+
return (a, o) => (f(), b(k, u(i.value, { type: "rect" }), d({ _: 2 }, [
|
|
47
48
|
y(Object.keys(a.$slots), (s) => ({
|
|
48
49
|
name: s,
|
|
49
50
|
fn: _((r) => [
|
package/dist/Icon/Icon.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Class } from '../types';
|
|
2
2
|
import { IconSize } from './Icon.model';
|
|
3
|
+
import { FlipOnDir } from '../ConfigProvider';
|
|
3
4
|
export interface IconProps {
|
|
4
5
|
size?: IconSize;
|
|
5
6
|
class?: Class;
|
|
6
7
|
icon?: string;
|
|
7
|
-
flipOnDir?:
|
|
8
|
+
flipOnDir?: FlipOnDir;
|
|
8
9
|
flipX?: boolean;
|
|
9
10
|
flipY?: boolean;
|
|
10
11
|
}
|
package/dist/Icon/index.js.js
CHANGED
|
@@ -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-BVVc15Aa.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-c9NvwoHi.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,49 @@
|
|
|
1
|
+
import { defineComponent as B, computed as r, createElementBlock as C, openBlock as l, normalizeStyle as y, normalizeClass as h, unref as p, renderSlot as k, createBlock as x, createCommentVNode as I } from "vue";
|
|
2
|
+
import { Icon as O } from "@iconify/vue";
|
|
3
|
+
import { g as S, a as D, c as o } from "./class-DziTeW9B.js";
|
|
4
|
+
import { cva as X } from "class-variance-authority";
|
|
5
|
+
import { g as Y } from "./options-JBqnVZUl.js";
|
|
6
|
+
import { u as _ } from "./index-iTlmMf0U.js";
|
|
7
|
+
const a = ["3xsm", "2xsm", "xsm", "sm"], j = /* @__PURE__ */ B({
|
|
8
|
+
...Y("Icon"),
|
|
9
|
+
__name: "Icon",
|
|
10
|
+
props: {
|
|
11
|
+
size: { default: "xsm" },
|
|
12
|
+
class: {},
|
|
13
|
+
icon: {},
|
|
14
|
+
flipOnDir: {},
|
|
15
|
+
flipX: { type: Boolean },
|
|
16
|
+
flipY: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(c) {
|
|
19
|
+
const s = c, { getFlipOnDir: f } = _(), n = f("flipOnDir"), i = S("icon"), m = X(i, {
|
|
20
|
+
variants: {
|
|
21
|
+
size: D(a, i)
|
|
22
|
+
}
|
|
23
|
+
}), u = r(() => {
|
|
24
|
+
if (Number(s.size) > 0)
|
|
25
|
+
return `${s.size}px`;
|
|
26
|
+
if (typeof s.size == "string" && !a.includes(s.size))
|
|
27
|
+
return s.size;
|
|
28
|
+
}), z = r(() => {
|
|
29
|
+
const e = [], t = o(i, "flip-x"), d = o(i, "flip-y"), g = o(i, "flip-rtl"), v = o(i, "flip-ltr");
|
|
30
|
+
return s.flipX ? e.push(t) : (n.value === "rtl" && e.push(g), n.value === "ltr" && e.push(v)), s.flipY && e.push(d), e.join(" ");
|
|
31
|
+
});
|
|
32
|
+
return (e, t) => (l(), C("span", {
|
|
33
|
+
class: h([p(m)({ size: e.size }), z.value, s.class]),
|
|
34
|
+
style: y({ "--pt-icon-size": u.value })
|
|
35
|
+
}, [
|
|
36
|
+
k(e.$slots, "default", {}, () => [
|
|
37
|
+
e.icon ? (l(), x(p(O), {
|
|
38
|
+
key: 0,
|
|
39
|
+
icon: e.icon,
|
|
40
|
+
ssr: ""
|
|
41
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
42
|
+
])
|
|
43
|
+
], 6));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
a as I,
|
|
48
|
+
j as _
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),B=require("@iconify/vue"),o=require("./class-CjZYGZDW.js"),g=require("class-variance-authority"),v=require("./options-B4iSAKol.js"),C=require("./index-BBeDQiz4.js"),t=["3xsm","2xsm","xsm","sm"],y=e.defineComponent({...v.getComponentOptions("Icon"),__name:"Icon",props:{size:{default:"xsm"},class:{},icon:{},flipOnDir:{},flipX:{type:Boolean},flipY:{type:Boolean}},setup(c){const s=c,{getFlipOnDir:p}=C.useConfig(),r=p("flipOnDir"),n=o.getBemBlock("icon"),a=g.cva(n,{variants:{size:o.generateVariantClassList(t,n)}}),f=e.computed(()=>{if(Number(s.size)>0)return`${s.size}px`;if(typeof s.size=="string"&&!t.includes(s.size))return s.size}),u=e.computed(()=>{const i=[],l=o.getBemModifier(n,"flip-x"),m=o.getBemModifier(n,"flip-y"),d=o.getBemModifier(n,"flip-rtl"),z=o.getBemModifier(n,"flip-ltr");return s.flipX?i.push(l):(r.value==="rtl"&&i.push(d),r.value==="ltr"&&i.push(z)),s.flipY&&i.push(m),i.join(" ")});return(i,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(a)({size:i.size}),u.value,s.class]),style:e.normalizeStyle({"--pt-icon-size":f.value})},[e.renderSlot(i.$slots,"default",{},()=>[i.icon?(e.openBlock(),e.createBlock(e.unref(B.Icon),{key:0,icon:i.icon,ssr:""},null,8,["icon"])):e.createCommentVNode("",!0)])],6))}});exports.IconSizes=t;exports._sfc_main=y;
|