@pantograph/vue 0.12.2 → 0.13.1
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 +4 -4
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-ViFlltdC.js → ActionButton.vue_vue_type_script_setup_true_lang-Bq-Tb6pj.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CiJO-TtM.js → ActionButton.vue_vue_type_script_setup_true_lang-DaeklrrN.js} +2 -2
- package/dist/Alert/Alert.d.ts +52 -0
- package/dist/Alert/Alert.model.d.ts +2 -0
- package/dist/Alert/index.d.ts +2 -0
- package/dist/Alert/index.js +6 -0
- package/dist/Alert/index.umd.cjs +1 -0
- package/dist/Alert.vue_vue_type_style_index_0_lang--7bfc5C-.js +1 -0
- package/dist/Alert.vue_vue_type_style_index_0_lang-BC_IaSi8.js +120 -0
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BFe4hxYW.js → Avatar.vue_vue_type_style_index_0_lang-BBnmLfTi.js} +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-B327aIKw.js → Avatar.vue_vue_type_style_index_0_lang-Dlk0AXBn.js} +3 -3
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DYK5srGm.js → Badge.vue_vue_type_script_setup_true_lang-8c7akyTm.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Bad9nnGa.js → Badge.vue_vue_type_script_setup_true_lang-Ck0gfAPv.js} +7 -7
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BcdmTWX7.js → BaseBadge.vue_vue_type_style_index_0_lang-BoPWxJgb.js} +4 -4
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-4kmojL6W.js → BaseButton.vue_vue_type_style_index_0_lang-IWrQ3G21.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DXgQ3ris.js → BaseButton.vue_vue_type_style_index_0_lang-jR9htGtl.js} +5 -5
- package/dist/Button/Button.d.ts +4 -4
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-2DEfrzzC.js → Button.vue_vue_type_script_setup_true_lang-DxYAiv5-.js} +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-D6IZHvUZ.js → Button.vue_vue_type_script_setup_true_lang-w8EXhfob.js} +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-pokTDMXb.js → ButtonGroup.vue_vue_type_script_setup_true_lang-BCxUeTU6.js} +2 -2
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-D6HTNzfn.js → Checkbox.vue_vue_type_style_index_0_lang-C741-uKz.js} +2 -2
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-mD-mS-u3.js → Checkbox.vue_vue_type_style_index_0_lang-D9moel7o.js} +1 -1
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CniJlpEJ.js → ColorPicker.vue_vue_type_style_index_0_lang-Byz3evrQ.js} +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-DN82VYCI.js → ColorPicker.vue_vue_type_style_index_0_lang-CGOaJvqg.js} +3 -3
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CmiVBddf.js → ColorSwatch.vue_vue_type_style_index_0_lang-1YgCj4lQ.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-ZEuyslU3.js → ColorSwatch.vue_vue_type_style_index_0_lang-C_ucF_yu.js} +3 -3
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DUPU05Mk.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-BtxjxG9e.js} +7 -7
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-c1ySzkyZ.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BoQP08i6.js → ColorTrigger.vue_vue_type_style_index_0_lang-CpboYwky.js} +4 -4
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-DNapwSG1.js → ColorTrigger.vue_vue_type_style_index_0_lang-Cqjja8Kz.js} +1 -1
- package/dist/ConfigProvider/index.js +4 -4
- package/dist/DataTable/index.js +3 -783
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-C4_xSg7e.js +1 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DMa_QFrL.js +785 -0
- package/dist/Empty/index.js +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-BlW5utb2.js → Empty.vue_vue_type_style_index_0_lang-Cz88kxid.js} +1 -1
- package/dist/FloatButton/FloatButton.d.ts +4 -4
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-DM0rSSdK.js → FloatButton.vue_vue_type_script_setup_true_lang-Bd4BeKfC.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-B9mpfDyP.js → FloatButton.vue_vue_type_script_setup_true_lang-CI_ILBah.js} +2 -2
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-D0SLQ2VT.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CnSiDVWQ.js} +2 -2
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BNS3O4Gh.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DI3DhvVj.js} +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js → Icon.vue_vue_type_style_index_0_lang-BOEBJy1n.js} +1 -1
- package/dist/IconButton/IconButton.d.ts +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BhcKAsTi.js → IconButton.vue_vue_type_script_setup_true_lang-CI37BUhQ.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BhMR_Y-g.js → IconButton.vue_vue_type_script_setup_true_lang-aNYHKjEX.js} +2 -2
- package/dist/Image/index.js +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-C_S48q8S.js → Image.vue_vue_type_style_index_0_lang-ojGZYu59.js} +3 -3
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BMvDCqMT.js → IndentLevel.vue_vue_type_style_index_0_lang-ClQO0x1v.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Dcp0Pbh1.js → IndentLevel.vue_vue_type_style_index_0_lang-kxY9UBCJ.js} +3 -3
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-1Tv8ZzfK.js → Indicator.vue_vue_type_script_setup_true_lang-BX9JOpMY.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-uTHr60wL.js → Indicator.vue_vue_type_script_setup_true_lang-CRmpJaKR.js} +5 -5
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_style_index_0_lang-xQIFQmTg.js → Input.vue_vue_type_style_index_0_lang-07-tyz6h.js} +51 -50
- package/dist/Input.vue_vue_type_style_index_0_lang-Dj4efG7U.js +1 -0
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-BQINoskR.js → Kbd.vue_vue_type_style_index_0_lang-qS65z9Bz.js} +1 -1
- package/dist/Link/Link.d.ts +36 -0
- package/dist/Link/Link.model.d.ts +2 -0
- package/dist/Link/index.d.ts +2 -0
- package/dist/Link/index.js +6 -0
- package/dist/Link/index.umd.cjs +1 -0
- package/dist/Link.vue_vue_type_style_index_0_lang-K7EUHqqW.js +78 -0
- package/dist/Link.vue_vue_type_style_index_0_lang-ZgPgAnUp.js +1 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-DsGOSTfu.js +463 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-i1Np-1Ek.js +1 -0
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-CIv6R_D2.js → Popover.vue_vue_type_style_index_0_lang-Bh6rugB0.js} +3 -3
- package/dist/{Popover.vue_vue_type_style_index_0_lang-_D1J6CSu.js → Popover.vue_vue_type_style_index_0_lang-By7sWU4H.js} +1 -1
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-d6MmLjW3.js → RadioGroup.vue_vue_type_script_setup_true_lang-BsA4i2NS.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-DKL0EQQ3.js → RadioGroup.vue_vue_type_script_setup_true_lang-nmPTqQWQ.js} +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-BC2nLIR_.js → Shortcut.vue_vue_type_style_index_0_lang-4v-K4pSO.js} +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-CBIZtgX4.js → Spinner.vue_vue_type_style_index_0_lang-CQL0u4nz.js} +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BBTDR8Er.js → Switch.vue_vue_type_style_index_0_lang-KqZBQVZb.js} +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-DnmgMCHT.js → Switch.vue_vue_type_style_index_0_lang-X8rMBTNH.js} +2 -2
- package/dist/Tree/Tree.d.ts +2 -2
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-CtQ_g29v.js +1 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-B3BLoWLT.js → Tree.vue_vue_type_style_index_0_lang-DT7izWYN.js} +7 -7
- package/dist/{_baseIsEqual-BknLKouD.js → _baseIsEqual-D6OIyc9x.js} +46 -45
- package/dist/_baseIsEqual-DysaakgW.js +1 -0
- package/dist/_flatRest-B2xTunyg.js +1 -0
- package/dist/_flatRest-BFIiKgYv.js +422 -0
- package/dist/_getTag-C1N7G_It.js +140 -0
- package/dist/_getTag-DaDHQQf0.js +1 -0
- package/dist/{cloneDeep-C4ka1P8m.js → cloneDeep-BNNspOg-.js} +1 -1
- package/dist/cloneDeep-CNkGIW_B.js +1 -0
- package/dist/{get-B14Mml42.js → get-9cMI4wkc.js} +1 -1
- package/dist/{get-DhKz3lGB.js → get-w4jLplqh.js} +1 -1
- package/dist/{index-D5U1ryWK.js → index-DXzWdQsN.js} +3 -3
- package/dist/index.d.ts +40 -32
- package/dist/index.js +150 -128
- package/dist/index.umd.cjs +1 -1
- package/dist/{isArray-CdbPONHA.js → isArray-DGJFqUD8.js} +2 -2
- package/dist/isEmpty-BfqMcSem.js +21 -0
- package/dist/isEmpty-DYtn8rNT.js +1 -0
- package/dist/{isNumber-BopDesuz.js → isNumber-CFhCrbTP.js} +3 -3
- package/dist/omit-6FeILhm3.js +1 -0
- package/dist/{omit-CD3OjwFx.js → omit-BsFVls5E.js} +62 -61
- package/dist/pick-CJI0LhLm.js +55 -0
- package/dist/pick-DUYr5oPc.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/uniq-BoseFDe4.js +1 -0
- package/dist/{uniq-DSVd52ma.js → uniq-DI-nuzAz.js} +3 -3
- package/package.json +12 -2
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DEeU3fwR.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-XtKgk5B8.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-BSR_8MKN.js +0 -482
- package/dist/Menu.vue_vue_type_style_index_0_lang-DzZ6brMU.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-DItSzkar.js +0 -1
- package/dist/_baseIsEqual-DP4HkppL.js +0 -1
- package/dist/_flatRest-CreY2VBo.js +0 -1
- package/dist/_flatRest-Dx0ZZgOx.js +0 -555
- package/dist/cloneDeep-DkiDLLTT.js +0 -1
- package/dist/omit-C4BrcXKG.js +0 -1
- package/dist/pick-8ze0sbWb.js +0 -54
- package/dist/pick-Db06rbL5.js +0 -1
- package/dist/uniq-ChIEzCZe.js +0 -1
package/dist/Empty/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent as h, useSlots as g, computed as y, createElementBlock
|
|
|
2
2
|
import { getBemBlock as M, generateVariantClassList as L, getBemElement as r } from "@pantograph/utils";
|
|
3
3
|
import { cva as V } from "class-variance-authority";
|
|
4
4
|
import { g as Z } from "./options-JBqnVZUl.js";
|
|
5
|
-
import { _ as E } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import { _ as E } from "./Icon.vue_vue_type_style_index_0_lang-BOEBJy1n.js";
|
|
6
6
|
import { getCssCoreColor as a } from "@pantograph/tokens";
|
|
7
7
|
const _ = ["simple", "advance"], $ = {
|
|
8
8
|
key: 1,
|
|
@@ -24,10 +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('../
|
|
28
|
-
readonly preIconFlipOnDir?: import('../
|
|
29
|
-
readonly postIconFlipOnDir?: import('../
|
|
30
|
-
readonly badgeIconFlipOnDir?: import('../
|
|
27
|
+
readonly flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
28
|
+
readonly preIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
29
|
+
readonly postIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
30
|
+
readonly badgeIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
31
31
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
32
32
|
$attrs: {
|
|
33
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-Bd4BeKfC.js");exports.FloatButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),l=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./omit-6FeILhm3.js"),p=require("./BaseButton.vue_vue_type_style_index_0_lang-IWrQ3G21.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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, useAttrs as l, computed as f, ref as m, createBlock as u, openBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { o as y } from "./omit-BsFVls5E.js";
|
|
3
|
+
import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-jR9htGtl.js";
|
|
4
4
|
import { g as O } from "./options-JBqnVZUl.js";
|
|
5
5
|
const F = /* @__PURE__ */ p({
|
|
6
6
|
...O("FloatButton", !1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";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-DI3DhvVj.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, computed as n, useAttrs as m, createBlock as b, openBlock as f, mergeProps as u, createSlots as d, renderList as y, withCtx as C, renderSlot as _, normalizeProps as h, guardReactiveProps as O } from "vue";
|
|
2
|
-
import { o as j } from "./omit-
|
|
3
|
-
import {
|
|
2
|
+
import { o as j } from "./omit-BsFVls5E.js";
|
|
3
|
+
import { B, a as $, _ as k } from "./BaseBadge.vue_vue_type_style_index_0_lang-BoPWxJgb.js";
|
|
4
4
|
import { g as v } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { getCssCoreColor as e } from "@pantograph/tokens";
|
|
6
6
|
const z = /* @__PURE__ */ i({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-6FeILhm3.js"),g=require("./BaseBadge.vue_vue_type_style_index_0_lang-Coak5m7J.js"),u=require("./options-B4iSAKol.js"),r=require("@pantograph/tokens"),b=e.defineComponent({...u.getComponentOptions("GraphicalObject",!1),__name:"GraphicalObject",props:{class:{},icon:{},flipOnDir:{},fg:{},bg:{},br:{},size:{}},setup(l){const t=l,c=e.computed(()=>{const o=Object.fromEntries(g.BadgeColors.map(s=>[s,r.getCssCoreColor(`${s}-5`)])),n={...o,...Object.fromEntries(g.BadgeColorsSubtle.map(s=>[s,r.getCssCoreColor(`${s.replace("-subtle","")}-0`)])),transparent:"transparent","gray-subtle":r.getCssCoreColor("gray-1")},a={...o,gray:r.getCssCoreColor("gray-6"),default:r.getCssCoreColor("gray-8"),"default-subtle":r.getCssCoreColor("gray-5"),white:r.getCssCoreColor("grayscale-light-0"),black:r.getCssCoreColor("grayscale-light-10")};return{bg:n[t.bg]??t.bg,br:n[t.br]??(t.bg==="transparent"?r.getCssCoreColor("gray-2"):void 0),fg:a[t.fg??"default"]??t.fg}}),i=e.useAttrs(),C=e.computed(()=>({...p.omit(i,"type","text"),...t,...c.value}));return(o,n)=>(e.openBlock(),e.createBlock(g._sfc_main,e.mergeProps(C.value,{type:"rect"}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),a=>({name:a,fn:e.withCtx(s=>[e.renderSlot(o.$slots,a,e.normalizeProps(e.guardReactiveProps(s)))])}))]),1040))}});exports._sfc_main=b;
|
package/dist/Icon/index.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-BOEBJy1n.js";
|
|
3
3
|
const e = async (o, a = "") => {
|
|
4
4
|
const { addCollection: c } = await import("@iconify/vue");
|
|
5
5
|
c(o, a);
|
|
@@ -3,7 +3,7 @@ import { Icon as O } from "@iconify/vue";
|
|
|
3
3
|
import { getBemBlock as S, generateVariantClassList as D, getBemModifier as o } from "@pantograph/utils";
|
|
4
4
|
import { cva as X } from "class-variance-authority";
|
|
5
5
|
import { g as Y } from "./options-JBqnVZUl.js";
|
|
6
|
-
import { u as _ } from "./index-
|
|
6
|
+
import { u as _ } from "./index-DXzWdQsN.js";
|
|
7
7
|
const c = ["3xsm", "2xsm", "xsm", "sm"], j = /* @__PURE__ */ B({
|
|
8
8
|
...Y("Icon"),
|
|
9
9
|
__name: "Icon",
|
|
@@ -22,10 +22,10 @@ declare function __VLS_template(): {
|
|
|
22
22
|
readonly icon?: string | undefined;
|
|
23
23
|
readonly preIcon?: string | undefined;
|
|
24
24
|
readonly postIcon?: string | undefined;
|
|
25
|
-
readonly flipOnDir?: import('../
|
|
26
|
-
readonly preIconFlipOnDir?: import('../
|
|
27
|
-
readonly postIconFlipOnDir?: import('../
|
|
28
|
-
readonly badgeIconFlipOnDir?: import('../
|
|
25
|
+
readonly flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
26
|
+
readonly preIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
27
|
+
readonly postIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
28
|
+
readonly badgeIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
29
29
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
30
30
|
$attrs: {
|
|
31
31
|
[x: string]: unknown;
|
package/dist/IconButton/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-CI37BUhQ.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-6FeILhm3.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-IWrQ3G21.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"IconButton",props:{class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{},flipOnDir:{}},setup(s,{expose:r}){const c=s,i=e.useAttrs(),a=e.computed(()=>({...p.omit(i,"variant","preIcon","postIcon","text","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(a.value,{variant:"icon",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, useAttrs as m, computed as u, ref as f, createBlock as l, openBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
-
import { o as y } from "./omit-
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { o as y } from "./omit-BsFVls5E.js";
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-jR9htGtl.js";
|
|
4
4
|
import { g as C } from "./options-JBqnVZUl.js";
|
|
5
5
|
const z = /* @__PURE__ */ p({
|
|
6
6
|
...C("IconButton", !1),
|
package/dist/Image/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, a as g, I as m, b as I, _ as t } from "../Image.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as s, a as g, I as m, b as I, _ as t } from "../Image.vue_vue_type_style_index_0_lang-ojGZYu59.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Image,
|
|
4
4
|
g as ImageAspectRatios,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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
2
|
import { getBemBlock as W, generateVariantClassList as c, getBemElement as i } from "@pantograph/utils";
|
|
3
3
|
import { cva as q } from "class-variance-authority";
|
|
4
|
-
import { i as G } from "./isNumber-
|
|
5
|
-
import { _ as H } from "./Spinner.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as J } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { i as G } from "./isNumber-CFhCrbTP.js";
|
|
5
|
+
import { _ as H } from "./Spinner.vue_vue_type_style_index_0_lang-CQL0u4nz.js";
|
|
6
|
+
import { _ as J } from "./Icon.vue_vue_type_style_index_0_lang-BOEBJy1n.js";
|
|
7
7
|
import { g as K } from "./options-JBqnVZUl.js";
|
|
8
8
|
const M = ["xsm", "sm", "md", "lg"], Q = ["1:1", "4:3", "3:2", "16:9", "2:1"], S = ["vertical", "horizontal"], U = ["alt", "src"], se = /* @__PURE__ */ V({
|
|
9
9
|
...K("Image"),
|
|
@@ -21,8 +21,8 @@ declare function __VLS_template(): {
|
|
|
21
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
22
|
declare const __VLS_component: import('vue').DefineComponent<IndentLevelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IndentLevelProps> & Readonly<{}>, {
|
|
23
23
|
size: IndentLevelSize;
|
|
24
|
-
level: number | string;
|
|
25
24
|
branchIcon: string;
|
|
25
|
+
level: number | string;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
28
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, a as s, I as t, _ as d } from "../IndentLevel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as a, a as s, I as t, _ as d } from "../IndentLevel.vue_vue_type_style_index_0_lang-kxY9UBCJ.js";
|
|
2
2
|
export {
|
|
3
3
|
a as IndentLevel,
|
|
4
4
|
s as IndentLevelShowLines,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IndentLevel.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IndentLevel.vue_vue_type_style_index_0_lang-ClQO0x1v.js");exports.IndentLevel=e._sfc_main;exports.IndentLevelShowLines=e.IndentLevelShowLines;exports.IndentLevelSizes=e.IndentLevelSizes;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),o=require("@pantograph/utils"),h=require("class-variance-authority"),k=require("./options-B4iSAKol.js"),u=require("./Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js"),g=require("./Spinner.vue_vue_type_style_index_0_lang-CTjUx8rR.js"),L=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),o=require("@pantograph/utils"),h=require("class-variance-authority"),k=require("./options-B4iSAKol.js"),u=require("./Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js"),g=require("./Spinner.vue_vue_type_style_index_0_lang-CTjUx8rR.js"),L=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-DI3DhvVj.js"),_=require("./isNumber-CYWvnzF3.js"),d=["2xsm","xsm","sm"],y=["last","all","before","self"],b={key:0},C=e.defineComponent({...k.getComponentOptions("IndentLevel"),__name:"IndentLevel",props:{size:{default:"xsm"},showLine:{type:[Number,Boolean]},children:{type:Boolean},level:{default:1},expanded:{type:Boolean},loading:{type:Boolean},class:{},branchIcon:{default:"tabler:chevron-right"},noRotateBranch:{type:Boolean}},setup(m){const t=m,a=o.getBemBlock("indent_level"),i=o.getBemElement(a,"item"),p=o.getBemElement(i,"branch"),v=h.cva(a,{variants:{size:o.generateVariantClassList(d,a),expanded:o.generateVariantClassList("expanded",a),branchSlot:o.generateVariantClassList("branch-slot",a),selfDivider:o.generateVariantClassList("self-divider",a),noRotateBranch:o.generateVariantClassList("no-rotate-branch",a),loading:o.generateVariantClassList("loading",a)}}),l=e.computed(()=>{const n=Number(t.level);return n<1?1:n%10===0?n:Math.floor(n)}),s=e.computed(()=>{if(t.showLine)return typeof t.showLine=="string"?["all","self"].includes(t.showLine):_.isNumber(t.showLine)&&t.showLine<=Number(t.level)}),f=n=>typeof t.showLine=="number"?t.showLine<=Number(n):!1;return(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(v)({size:n.size,expanded:n.expanded,noRotateBranch:n.noRotateBranch,branchSlot:n.$slots.default,selfDivider:s.value,loading:n.loading}),t.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,r=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(i),{[e.unref(o.getBemModifier)(e.unref(a),"expand")]:r===l.value}]),key:r},[r===l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.children?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.loading?(e.openBlock(),e.createBlock(g._sfc_main,{key:1,size:n.size},null,8,["size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.expanded&&s.value?(e.openBlock(),e.createElementBlock("div",b)):e.createCommentVNode("",!0),e.createVNode(L._sfc_main,{size:n.size,icon:n.branchIcon,color:"none",class:e.normalizeClass(e.unref(p)),onClick:c[0]||(c[0]=B=>n.$emit("toggleExpand",B))},{icon:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["size","icon","class"]),n.expanded&&s.value?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)],64)):["all","before"].includes(n.showLine)||n.showLine==="last"&&r===l.value-1||f(r)?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)],2))),128))],2))}});exports.IndentLevelShowLines=y;exports.IndentLevelSizes=d;exports._sfc_main=C;
|
|
@@ -3,9 +3,9 @@ import { getBemBlock as $, getBemElement as L, generateVariantClassList as t, ge
|
|
|
3
3
|
import { cva as D } from "class-variance-authority";
|
|
4
4
|
import { g as E } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { _ as g } from "./Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
|
|
6
|
-
import { _ as V } from "./Spinner.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { i as M } from "./isNumber-
|
|
6
|
+
import { _ as V } from "./Spinner.vue_vue_type_style_index_0_lang-CQL0u4nz.js";
|
|
7
|
+
import { _ } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-CnSiDVWQ.js";
|
|
8
|
+
import { i as M } from "./isNumber-CFhCrbTP.js";
|
|
9
9
|
const F = ["2xsm", "xsm", "sm"], Q = ["last", "all", "before", "self"], O = { key: 0 }, T = /* @__PURE__ */ z({
|
|
10
10
|
...E("IndentLevel"),
|
|
11
11
|
__name: "IndentLevel",
|
package/dist/Indicator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-BX9JOpMY.js");exports.Indicator=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),_=require("./omit-6FeILhm3.js"),n=require("./BaseBadge.vue_vue_type_style_index_0_lang-Coak5m7J.js"),d=require("./options-B4iSAKol.js"),c=require("@pantograph/tokens"),g=e.defineComponent({...d.getComponentOptions("Indicator",!1),__name:"Indicator",props:{class:{},size:{},color:{}},setup(i){const t=i,a=e.useAttrs(),p=e.computed(()=>({bg:Object.fromEntries(n.BadgeColors.map(o=>[o,c.getCssCoreColor(`${o}-5`)]))[t.color]??c.getCssCoreColor("primary-5")})),u=e.computed(()=>({..._.omit(a,"type","text","icon","mode"),...t,...p.value})),l=e.useSlots();return(s,o)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps(u.value,{type:"minify",mode:"bold"}),e.createSlots({_:2},[e.renderList(Object.keys(l),r=>({name:r,fn:e.withCtx(m=>[e.renderSlot(s.$slots,r,e.normalizeProps(e.guardReactiveProps(m)))])}))]),1040))}});exports._sfc_main=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as d, useAttrs as f, computed as s, useSlots as u, createBlock as g, openBlock as _, mergeProps as b, createSlots as C, renderList as y, withCtx as
|
|
2
|
-
import { o as O } from "./omit-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as d, useAttrs as f, computed as s, useSlots as u, createBlock as g, openBlock as _, mergeProps as b, createSlots as C, renderList as y, withCtx as B, renderSlot as k, normalizeProps as v, guardReactiveProps as x } from "vue";
|
|
2
|
+
import { o as O } from "./omit-BsFVls5E.js";
|
|
3
|
+
import { B as P, _ as S } from "./BaseBadge.vue_vue_type_style_index_0_lang-BoPWxJgb.js";
|
|
4
4
|
import { g as $ } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { getCssCoreColor as n } from "@pantograph/tokens";
|
|
6
6
|
const w = /* @__PURE__ */ d({
|
|
@@ -27,8 +27,8 @@ const w = /* @__PURE__ */ d({
|
|
|
27
27
|
}), C({ _: 2 }, [
|
|
28
28
|
y(Object.keys(i), (r) => ({
|
|
29
29
|
name: r,
|
|
30
|
-
fn:
|
|
31
|
-
|
|
30
|
+
fn: B((l) => [
|
|
31
|
+
k(e.$slots, r, v(x(l)))
|
|
32
32
|
])
|
|
33
33
|
}))
|
|
34
34
|
]), 1040));
|
package/dist/Input/index.js
CHANGED
package/dist/Input/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Input.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Input.vue_vue_type_style_index_0_lang-Dj4efG7U.js");exports.Input=e._sfc_main;exports.InputSizes=e.InputSizes;exports.InputStatuses=e.InputStatuses;exports.default=e._sfc_main;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as T, useSlots as G, computed as h, useAttrs as q, ref as K, createElementBlock as b, openBlock as m, mergeProps as z, unref as a, createCommentVNode as R, withDirectives as
|
|
1
|
+
import { defineComponent as T, useSlots as G, computed as h, useAttrs as q, ref as K, createElementBlock as b, openBlock as m, mergeProps as z, unref as a, createCommentVNode as R, withDirectives as X, normalizeClass as B, renderSlot as S, createTextVNode as A, toDisplayString as k, createElementVNode as x, isRef as H, vModelDynamic as J, Fragment as Q, createVNode as W, createBlock as Y, withCtx as Z } from "vue";
|
|
2
2
|
import { useVModel as j } from "@vueuse/core";
|
|
3
|
-
import { getBemBlock as ee, generateVariantClassList as
|
|
3
|
+
import { getBemBlock as ee, generateVariantClassList as E, getBemElement as p } from "@pantograph/utils";
|
|
4
4
|
import { cva as ne } from "class-variance-authority";
|
|
5
|
-
import { h as te, b as re, p as
|
|
6
|
-
import { S as
|
|
7
|
-
import { b as D } from "./_baseIsEqual-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { h as te, b as re, p as ie } from "./pick-CJI0LhLm.js";
|
|
6
|
+
import { S as se, k as le, d as O, t as P, b as ae, h as oe, j as ue, l as ce } from "./_flatRest-BFIiKgYv.js";
|
|
7
|
+
import { b as D } from "./_baseIsEqual-D6OIyc9x.js";
|
|
8
|
+
import { f as fe } from "./_getTag-C1N7G_It.js";
|
|
9
|
+
import { g as de } from "./get-9cMI4wkc.js";
|
|
10
|
+
import { i as me } from "./isArray-DGJFqUD8.js";
|
|
11
|
+
import { _ as pe } from "./Icon.vue_vue_type_style_index_0_lang-BOEBJy1n.js";
|
|
11
12
|
import { _ as ge } from "./Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
|
|
12
13
|
import { g as ve } from "./options-JBqnVZUl.js";
|
|
13
14
|
import { U as ye } from "./useInputDataStates-CZbdWpyp.js";
|
|
@@ -15,23 +16,23 @@ function Ce(e) {
|
|
|
15
16
|
return e === void 0;
|
|
16
17
|
}
|
|
17
18
|
var he = 1, be = 2;
|
|
18
|
-
function Re(e, n,
|
|
19
|
-
var l =
|
|
19
|
+
function Re(e, n, i, r) {
|
|
20
|
+
var l = i.length, c = l;
|
|
20
21
|
if (e == null)
|
|
21
22
|
return !c;
|
|
22
23
|
for (e = Object(e); l--; ) {
|
|
23
|
-
var
|
|
24
|
-
if (
|
|
24
|
+
var s = i[l];
|
|
25
|
+
if (s[2] ? s[1] !== e[s[0]] : !(s[0] in e))
|
|
25
26
|
return !1;
|
|
26
27
|
}
|
|
27
28
|
for (; ++l < c; ) {
|
|
28
|
-
|
|
29
|
-
var o =
|
|
30
|
-
if (
|
|
29
|
+
s = i[l];
|
|
30
|
+
var o = s[0], g = e[o], d = s[1];
|
|
31
|
+
if (s[2]) {
|
|
31
32
|
if (g === void 0 && !(o in e))
|
|
32
33
|
return !1;
|
|
33
34
|
} else {
|
|
34
|
-
var I = new
|
|
35
|
+
var I = new se(), v;
|
|
35
36
|
if (!(v === void 0 ? D(d, g, he | be, r, I) : v))
|
|
36
37
|
return !1;
|
|
37
38
|
}
|
|
@@ -39,31 +40,31 @@ function Re(e, n, s, r) {
|
|
|
39
40
|
return !0;
|
|
40
41
|
}
|
|
41
42
|
function V(e) {
|
|
42
|
-
return e === e && !
|
|
43
|
+
return e === e && !fe(e);
|
|
43
44
|
}
|
|
44
45
|
function Be(e) {
|
|
45
|
-
for (var n =
|
|
46
|
-
var r = n[
|
|
47
|
-
n[
|
|
46
|
+
for (var n = le(e), i = n.length; i--; ) {
|
|
47
|
+
var r = n[i], l = e[r];
|
|
48
|
+
n[i] = [r, l, V(l)];
|
|
48
49
|
}
|
|
49
50
|
return n;
|
|
50
51
|
}
|
|
51
52
|
function _(e, n) {
|
|
52
|
-
return function(
|
|
53
|
-
return
|
|
53
|
+
return function(i) {
|
|
54
|
+
return i == null ? !1 : i[e] === n && (n !== void 0 || e in Object(i));
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
function Ie(e) {
|
|
57
58
|
var n = Be(e);
|
|
58
|
-
return n.length == 1 && n[0][2] ? _(n[0][0], n[0][1]) : function(
|
|
59
|
-
return
|
|
59
|
+
return n.length == 1 && n[0][2] ? _(n[0][0], n[0][1]) : function(i) {
|
|
60
|
+
return i === e || Re(i, e, n);
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
var Se = 1,
|
|
63
|
-
function
|
|
64
|
-
return O(e) && V(n) ? _(P(e), n) : function(
|
|
65
|
-
var r = de(
|
|
66
|
-
return r === void 0 && r === n ? te(
|
|
63
|
+
var Se = 1, Ee = 2;
|
|
64
|
+
function we(e, n) {
|
|
65
|
+
return O(e) && V(n) ? _(P(e), n) : function(i) {
|
|
66
|
+
var r = de(i, e);
|
|
67
|
+
return r === void 0 && r === n ? te(i, e) : D(n, r, Se | Ee);
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
function ze(e) {
|
|
@@ -73,14 +74,14 @@ function ze(e) {
|
|
|
73
74
|
}
|
|
74
75
|
function Ae(e) {
|
|
75
76
|
return function(n) {
|
|
76
|
-
return
|
|
77
|
+
return ae(n, e);
|
|
77
78
|
};
|
|
78
79
|
}
|
|
79
80
|
function ke(e) {
|
|
80
81
|
return O(e) ? ze(P(e)) : Ae(e);
|
|
81
82
|
}
|
|
82
83
|
function L(e) {
|
|
83
|
-
return typeof e == "function" ? e : e == null ?
|
|
84
|
+
return typeof e == "function" ? e : e == null ? oe : typeof e == "object" ? me(e) ? we(e[0], e[1]) : Ie(e) : ke(e);
|
|
84
85
|
}
|
|
85
86
|
var Me = "Expected a function";
|
|
86
87
|
function Oe(e) {
|
|
@@ -104,17 +105,17 @@ function Oe(e) {
|
|
|
104
105
|
function Pe(e, n) {
|
|
105
106
|
if (e == null)
|
|
106
107
|
return {};
|
|
107
|
-
var
|
|
108
|
+
var i = ue(ce(e), function(r) {
|
|
108
109
|
return [r];
|
|
109
110
|
});
|
|
110
|
-
return n = L(n), re(e,
|
|
111
|
+
return n = L(n), re(e, i, function(r, l) {
|
|
111
112
|
return n(r, l[0]);
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
115
|
function De(e, n) {
|
|
115
116
|
return Pe(e, Oe(L(n)));
|
|
116
117
|
}
|
|
117
|
-
const M = ["sm", "md", "lg"], Ve = ["error", "warning"],
|
|
118
|
+
const M = ["sm", "md", "lg"], Ve = ["error", "warning"], je = /* @__PURE__ */ T({
|
|
118
119
|
...ve("Input", !1),
|
|
119
120
|
__name: "Input",
|
|
120
121
|
props: {
|
|
@@ -140,27 +141,27 @@ const M = ["sm", "md", "lg"], Ve = ["error", "warning"], Ze = /* @__PURE__ */ T(
|
|
|
140
141
|
status: {}
|
|
141
142
|
},
|
|
142
143
|
emits: ["update:modelValue", "clear", "blur", "focus"],
|
|
143
|
-
setup(e, { expose: n, emit:
|
|
144
|
-
const r = e, l = G(), c =
|
|
144
|
+
setup(e, { expose: n, emit: i }) {
|
|
145
|
+
const r = e, l = G(), c = i, s = j(r, "modelValue", c, {
|
|
145
146
|
defaultValue: r.defaultValue,
|
|
146
147
|
passive: r.modelValue === void 0
|
|
147
148
|
}), o = ee("input"), g = ne(o, {
|
|
148
149
|
variants: {
|
|
149
|
-
size:
|
|
150
|
-
status:
|
|
151
|
-
bordered:
|
|
150
|
+
size: E(M, o),
|
|
151
|
+
status: E(Ve, o),
|
|
152
|
+
bordered: E("bordered", o)
|
|
152
153
|
}
|
|
153
154
|
}), d = h(() => r.size && M.includes(r.size) ? r.size : "md"), I = q(), { rootBindings: v, inputBindings: N } = ye({
|
|
154
155
|
getDisabled: () => r.disabled,
|
|
155
156
|
emit: c,
|
|
156
157
|
blurCallBack: (t) => {
|
|
157
158
|
const u = t.target;
|
|
158
|
-
u != null && u.value && (u.value =
|
|
159
|
+
u != null && u.value && (u.value = s.value);
|
|
159
160
|
}
|
|
160
161
|
}), U = h(
|
|
161
162
|
() => De(
|
|
162
163
|
{
|
|
163
|
-
...
|
|
164
|
+
...ie(r, "id", "maxlength", "type", "disabled", "required", "placeholder"),
|
|
164
165
|
...I,
|
|
165
166
|
...N.value
|
|
166
167
|
},
|
|
@@ -173,7 +174,7 @@ const M = ["sm", "md", "lg"], Ve = ["error", "warning"], Ze = /* @__PURE__ */ T(
|
|
|
173
174
|
default:
|
|
174
175
|
return "xsm";
|
|
175
176
|
}
|
|
176
|
-
}),
|
|
177
|
+
}), w = h(() => {
|
|
177
178
|
switch (d.value) {
|
|
178
179
|
case "sm":
|
|
179
180
|
return "2xsm";
|
|
@@ -183,7 +184,7 @@ const M = ["sm", "md", "lg"], Ve = ["error", "warning"], Ze = /* @__PURE__ */ T(
|
|
|
183
184
|
return "sm";
|
|
184
185
|
}
|
|
185
186
|
}), F = () => {
|
|
186
|
-
|
|
187
|
+
s.value = "", c("clear");
|
|
187
188
|
}, f = K();
|
|
188
189
|
return n({
|
|
189
190
|
input: f,
|
|
@@ -219,24 +220,24 @@ const M = ["sm", "md", "lg"], Ve = ["error", "warning"], Ze = /* @__PURE__ */ T(
|
|
|
219
220
|
key: 0,
|
|
220
221
|
class: B([a(p)(a(o), "leading"), t.leadingCls])
|
|
221
222
|
}, [
|
|
222
|
-
S(t.$slots, "leading", { iconSize:
|
|
223
|
+
S(t.$slots, "leading", { iconSize: w.value }, () => [
|
|
223
224
|
A(k(t.leading), 1)
|
|
224
225
|
])
|
|
225
226
|
], 2)) : R("", !0),
|
|
226
|
-
x(
|
|
227
|
+
X(x("input", z({
|
|
227
228
|
ref_key: "inputRef",
|
|
228
229
|
ref: f,
|
|
229
|
-
"onUpdate:modelValue": u[0] || (u[0] = (C) => H(
|
|
230
|
+
"onUpdate:modelValue": u[0] || (u[0] = (C) => H(s) ? s.value = C : null)
|
|
230
231
|
}, U.value, {
|
|
231
232
|
class: [a(p)(a(o), "input")]
|
|
232
233
|
}), null, 16), [
|
|
233
|
-
[J, a(
|
|
234
|
+
[J, a(s)]
|
|
234
235
|
]),
|
|
235
236
|
l.trailing || r.trailing || t.allowClear ? (m(), b("div", {
|
|
236
237
|
key: 1,
|
|
237
238
|
class: B([a(p)(a(o), "trailing"), t.trailingCls])
|
|
238
239
|
}, [
|
|
239
|
-
!t.disabled && t.allowClear && ((y = a(
|
|
240
|
+
!t.disabled && t.allowClear && ((y = a(s)) != null && y.length) ? (m(), b(Q, { key: 0 }, [
|
|
240
241
|
W(pe, {
|
|
241
242
|
icon: t.clearIcon,
|
|
242
243
|
size: $.value,
|
|
@@ -254,7 +255,7 @@ const M = ["sm", "md", "lg"], Ve = ["error", "warning"], Ze = /* @__PURE__ */ T(
|
|
|
254
255
|
class: B([a(p)(a(o), "divider"), t.dividerCls])
|
|
255
256
|
}, null, 8, ["class"])) : R("", !0)
|
|
256
257
|
], 64)) : R("", !0),
|
|
257
|
-
S(t.$slots, "trailing", { iconSize:
|
|
258
|
+
S(t.$slots, "trailing", { iconSize: w.value }, () => [
|
|
258
259
|
A(k(t.trailing), 1)
|
|
259
260
|
])
|
|
260
261
|
], 2)) : R("", !0)
|
|
@@ -264,6 +265,6 @@ const M = ["sm", "md", "lg"], Ve = ["error", "warning"], Ze = /* @__PURE__ */ T(
|
|
|
264
265
|
});
|
|
265
266
|
export {
|
|
266
267
|
M as I,
|
|
267
|
-
|
|
268
|
+
je as _,
|
|
268
269
|
Ve as a
|
|
269
270
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),w=require("@vueuse/core"),f=require("@pantograph/utils"),D=require("class-variance-authority"),h=require("./pick-DUYr5oPc.js"),c=require("./_flatRest-B2xTunyg.js"),I=require("./_baseIsEqual-DysaakgW.js"),P=require("./_getTag-DaDHQQf0.js"),M=require("./get-w4jLplqh.js"),N=require("./isArray-3RTyNB5p.js"),O=require("./Icon.vue_vue_type_style_index_0_lang-C00M2fnO.js"),L=require("./Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js"),T=require("./options-B4iSAKol.js"),F=require("./useInputDataStates-CbRgNQqU.js");function U(e){return e===void 0}var G=1,K=2;function $(e,t,i,s){var u=i.length,d=u;if(e==null)return!d;for(e=Object(e);u--;){var l=i[u];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++u<d;){l=i[u];var a=l[0],g=e[a],p=l[1];if(l[2]){if(g===void 0&&!(a in e))return!1}else{var B=new c.Stack,v;if(!(v===void 0?I.baseIsEqual(p,g,G|K,s,B):v))return!1}}return!0}function S(e){return e===e&&!P.isObject(e)}function x(e){for(var t=c.keys(e),i=t.length;i--;){var s=t[i],u=e[s];t[i]=[s,u,S(u)]}return t}function k(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==void 0||e in Object(i))}}function X(e){var t=x(e);return t.length==1&&t[0][2]?k(t[0][0],t[0][1]):function(i){return i===e||$(i,e,t)}}var H=1,J=2;function Q(e,t){return c.isKey(e)&&S(t)?k(c.toKey(e),t):function(i){var s=M.get(i,e);return s===void 0&&s===t?h.hasIn(i,e):I.baseIsEqual(t,s,H|J)}}function W(e){return function(t){return t==null?void 0:t[e]}}function Y(e){return function(t){return c.baseGet(t,e)}}function Z(e){return c.isKey(e)?W(c.toKey(e)):Y(e)}function R(e){return typeof e=="function"?e:e==null?c.identity:typeof e=="object"?N.isArray(e)?Q(e[0],e[1]):X(e):Z(e)}var j="Expected a function";function ee(e){if(typeof e!="function")throw new TypeError(j);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ne(e,t){if(e==null)return{};var i=c.arrayMap(c.getAllKeysIn(e),function(s){return[s]});return t=R(t),h.basePickBy(e,i,function(s,u){return t(s,u[0])})}function te(e,t){return ne(e,ee(R(t)))}const _=["sm","md","lg"],b=["error","warning"],re=n.defineComponent({...T.getComponentOptions("Input",!1),__name:"Input",props:{id:{},maxlength:{},type:{},placeholder:{},disabled:{type:Boolean,default:void 0},required:{type:Boolean},modelValue:{},defaultValue:{},leading:{},trailing:{},clearIcon:{default:"tabler:circle-x"},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:!0},size:{},status:{}},emits:["update:modelValue","clear","blur","focus"],setup(e,{expose:t,emit:i}){const s=e,u=n.useSlots(),d=i,l=w.useVModel(s,"modelValue",d,{defaultValue:s.defaultValue,passive:s.modelValue===void 0}),a=f.getBemBlock("input"),g=D.cva(a,{variants:{size:f.generateVariantClassList(_,a),status:f.generateVariantClassList(b,a),bordered:f.generateVariantClassList("bordered",a)}}),p=n.computed(()=>s.size&&_.includes(s.size)?s.size:"md"),B=n.useAttrs(),{rootBindings:v,inputBindings:q}=F.UseInputDataStates({getDisabled:()=>s.disabled,emit:d,blurCallBack:r=>{const o=r.target;o!=null&&o.value&&(o.value=l.value)}}),z=n.computed(()=>te({...h.pick(s,"id","maxlength","type","disabled","required","placeholder"),...B,...q.value},U)),A=n.computed(()=>{switch(p.value){case"sm":return"2xsm";default:return"xsm"}}),E=n.computed(()=>{switch(p.value){case"sm":return"2xsm";case"md":return"xsm";default:return"sm"}}),V=()=>{l.value="",d("clear")},m=n.ref();return t({input:m,focus:r=>{var o;return(o=m.value)==null?void 0:o.focus(r)},blur:()=>{var r;return(r=m.value)==null?void 0:r.blur()},select:()=>{var r;return(r=m.value.input)==null?void 0:r.select()},setSelectionRange:(r,o,y)=>{var C;return(C=m.value.input)==null?void 0:C.setSelectionRange(r,o,y)}}),(r,o)=>{var y;return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:[n.unref(g)({size:p.value,status:r.status,bordered:r.bordered}),s.class]},n.unref(v)),[u.leading||s.leading?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"leading"),r.leadingCls])},[n.renderSlot(r.$slots,"leading",{iconSize:E.value},()=>[n.createTextVNode(n.toDisplayString(r.leading),1)])],2)):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("input",n.mergeProps({ref_key:"inputRef",ref:m,"onUpdate:modelValue":o[0]||(o[0]=C=>n.isRef(l)?l.value=C:null)},z.value,{class:[n.unref(f.getBemElement)(n.unref(a),"input")]}),null,16),[[n.vModelDynamic,n.unref(l)]]),u.trailing||s.trailing||r.allowClear?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"trailing"),r.trailingCls])},[!r.disabled&&r.allowClear&&((y=n.unref(l))!=null&&y.length)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(O._sfc_main,{icon:r.clearIcon,size:A.value,onClick:V,class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"clear_icon"),r.clearIconCls])},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"clearIcon")]),_:3},8,["icon","size","class"]),u.trailing||s.trailing?(n.openBlock(),n.createBlock(L._sfc_main,{key:0,type:"vertical",class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"divider"),r.dividerCls])},null,8,["class"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),n.renderSlot(r.$slots,"trailing",{iconSize:E.value},()=>[n.createTextVNode(n.toDisplayString(r.trailing),1)])],2)):n.createCommentVNode("",!0)],16)}}});exports.InputSizes=_;exports.InputStatuses=b;exports._sfc_main=re;
|
package/dist/Kbd/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as m, createElementBlock as i, openBlock as t, normalizeClass as a, unref as s, createBlock as p, renderSlot as r, createTextVNode as f, toDisplayString as d, withCtx as y } from "vue";
|
|
2
2
|
import { getBemBlock as C, generateVariantClassList as k, getBemElement as B } from "@pantograph/utils";
|
|
3
3
|
import { cva as g } from "class-variance-authority";
|
|
4
|
-
import { _ as u } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as u } from "./Icon.vue_vue_type_style_index_0_lang-BOEBJy1n.js";
|
|
5
5
|
import { g as v } from "./options-JBqnVZUl.js";
|
|
6
6
|
const z = /* @__PURE__ */ m({
|
|
7
7
|
...v("Kbd"),
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Class } from '../types';
|
|
2
|
+
import { LinkStyle } from './Link.model';
|
|
3
|
+
export interface LinkProps {
|
|
4
|
+
class?: Class;
|
|
5
|
+
textCls?: Class;
|
|
6
|
+
leadingIcon?: string;
|
|
7
|
+
underline?: boolean;
|
|
8
|
+
trailingIcon?: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
txs?: LinkStyle;
|
|
11
|
+
}
|
|
12
|
+
export interface LinkSlots {
|
|
13
|
+
default?: () => never;
|
|
14
|
+
leadingIcon?: () => never;
|
|
15
|
+
trailingIcon?: () => never;
|
|
16
|
+
}
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
slots: Readonly<LinkSlots> & LinkSlots;
|
|
19
|
+
refs: {};
|
|
20
|
+
attrs: Partial<{}>;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<LinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
+
click: (event: Event) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<LinkProps> & Readonly<{
|
|
26
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
txs: LinkStyle;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|