@pantograph/vue 0.34.21 → 0.34.23
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/index.d.ts +98 -98
- package/dist/nuxt.d.ts +97 -97
- package/dist/resolver.d.ts +97 -97
- package/dist/use/index.js +25 -26
- package/dist/use/index.umd.cjs +5 -5
- package/dist/use.d.ts +97 -97
- package/package.json +4 -4
package/dist/use/index.js
CHANGED
|
@@ -8,8 +8,8 @@ var kr = (e, t, n) => (ab(e, t, "read from private field"), n ? n.call(e) : t.ge
|
|
|
8
8
|
import * as Ia from "vue";
|
|
9
9
|
import { inject as lp, provide as ip, Fragment as He, defineComponent as L, toRefs as vt, renderSlot as M, getCurrentScope as up, onScopeDispose as Iu, watch as we, toRef as Ja, readonly as Xn, ref as V, customRef as cp, onMounted as Ge, nextTick as pt, getCurrentInstance as Bn, effectScope as dp, onBeforeUnmount as No, computed as C, shallowRef as _t, watchEffect as Dt, isRef as fn, reactive as Yn, unref as l, toValue as ot, toHandlerKey as sb, camelize as pp, onUnmounted as In, h as E, Comment as lb, mergeProps as ee, cloneVNode as fp, createBlock as T, openBlock as O, withCtx as D, createVNode as J, createCommentVNode as re, withKeys as Pn, normalizeStyle as it, Teleport as Tu, normalizeProps as Ie, guardReactiveProps as ze, withDirectives as jn, vShow as Zn, markRaw as ib, createElementBlock as W, renderList as qe, resolveDynamicComponent as hr, withModifiers as Ye, watchPostEffect as Du, shallowReadonly as Go, mergeDefaults as he, createElementVNode as ye, createTextVNode as ut, toDisplayString as et, toHandlers as ub, normalizeClass as q, useSlots as xe, useAttrs as rt, createSlots as ct, Transition as cb, render as zr, vModelText as db } from "vue";
|
|
10
10
|
import { getBemBlock as Ae, getComponentOptions as oe, generateVariantClassList as F, normCls as I, getValidNumber as Ls, getBemModifier as sn, isEmptyLikeLodash as nt, getBemElement as A, usePCId as Jt, getPxSize as ht, getStyleObject as ko, getComponentName as Eu, sortPlaceholderVariantsClass as gp, createOptionGetterFunc as wt, sortPlaceholderCls as vp } from "@pantograph/utils";
|
|
11
|
-
import { useCssInJs as pb, useForwardPropsEmits as fb, flattenChildren as Fs, isEmptyElement as Z,
|
|
12
|
-
import { getThemeConfig as
|
|
11
|
+
import { useCssInJs as pb, useForwardPropsEmits as fb, flattenChildren as Fs, isEmptyElement as Z, installComponent as ue, FormItemStatuses as pa, useFormInput as Mt, useVModel as gt, filterEmpty as mp, isValidElement as yp, isFragment as bp, useInputDataStates as Mo, useLazyLoading as hp, flattenChildrenByType as Jc, systemSizesMap as ar, useVirtualScroll as Cp, useCollection as Sp, usePressAndHold as Ya } from "@pantograph/utils-vue";
|
|
12
|
+
import { getThemeConfig as _p, toggleDark as gb, defineTheme as ri, PrimitiveColors as Op, getCssCoreColor as Ke, init as vb, getCssCoreVar as mb } from "@pantograph/tokens";
|
|
13
13
|
import { dividerId as yb, removeDividerCss as bb, addDividerCss as hb, accordionId as Cb, removeAccordionCss as Sb, addAccordionCss as _b, iconId as Ob, removeIconCss as xb, addIconCss as Pb, badgeId as Bb, removeBadgeCss as wb, addBadgeCss as kb, formValidationId as Ab, removeFormValidationCss as Ib, addFormValidationCss as Tb, progressId as Db, removeProgressCss as Eb, addProgressCss as Rb, buttonId as zb, removeButtonCss as Nb, addButtonCss as Mb, inputId as $b, removeInputCss as Lb, addInputCss as Fb, linkId as jb, removeLinkCss as qb, addLinkCss as Vb, alertId as Ub, removeAlertCss as Hb, addAlertCss as Kb, blanketId as Gb, removeBlanketCss as Wb, addBlanketCss as Xb, dialogId as Jb, removeDialogCss as Yb, addDialogCss as Zb, alertDialogId as Qb, removeAlertDialogCss as eh, addAlertDialogCss as th, avatarId as nh, removeAvatarCss as oh, addAvatarCss as rh, popoverId as ah, removePopoverCss as sh, addPopoverCss as lh, bannerId as ih, removeBannerCss as uh, addBannerCss as ch, menuItemId as dh, removeMenuItemCss as ph, addMenuItemCss as fh, hoverCardId as gh, removeHoverCardCss as vh, addHoverCardCss as mh, menuId as yh, removeMenuCss as bh, addMenuCss as hh, breadcrumbId as Ch, removeBreadcrumbCss as Sh, addBreadcrumbCss as _h, cardId as Oh, removeCardCss as xh, addCardCss as Ph, checkboxId as Bh, removeCheckboxCss as wh, addCheckboxCss as kh, chipGroupId as Ah, removeChipGroupCss as Ih, addChipGroupCss as Th, chipId as Dh, removeChipCss as Eh, addChipCss as Rh, emptyId as zh, removeEmptyCss as Nh, addEmptyCss as Mh, scrollContainerId as $h, removeScrollContainerCss as Lh, addScrollContainerCss as Fh, skeletonId as jh, removeSkeletonCss as qh, addSkeletonCss as Vh, selectId as Uh, removeSelectCss as Hh, addSelectCss as Kh, colorPickerId as Gh, removeColorPickerCss as Wh, addColorPickerCss as Xh, colorSwatchId as Jh, removeColorSwatchCss as Yh, addColorSwatchCss as Zh, colorSwatchGroupId as Qh, removeColorSwatchGroupCss as e0, addColorSwatchGroupCss as t0, colorTriggerId as n0, removeColorTriggerCss as o0, addColorTriggerCss as r0, indentLevelId as a0, removeIndentLevelCss as s0, addIndentLevelCss as l0, treeId as i0, removeTreeCss as u0, addTreeCss as c0, removeGraphicalObjectGroupCss as d0, graphicalObjectGroupId as p0, addGraphicalObjectGroupCss as f0, comboboxId as g0, removeComboboxCss as v0, addComboboxCss as m0, dropZoneId as y0, removeDropZoneCss as b0, addDropZoneCss as h0, imageId as C0, removeImageCss as S0, addImageCss as _0, inputGroupId as O0, removeInputGroupCss as x0, addInputGroupCss as P0, kbdId as B0, removeKbdCss as w0, addKbdCss as k0, shortcutId as A0, removeShortcutCss as I0, addShortcutCss as T0, removeTooltipCss as D0, addTooltipCss as E0, tooltipId as R0, labelId as z0, removeLabelCss as N0, addLabelCss as M0, pageIndicatorId as $0, removePageIndicatorCss as L0, addPageIndicatorCss as F0, segmentedId as j0, removeSegmentedCss as q0, addSegmentedCss as V0, paginationId as U0, removePaginationCss as H0, addPaginationCss as K0, pinInputId as G0, removePinInputCss as W0, addPinInputCss as X0, radioGroupId as J0, removeRadioGroupCss as Y0, addRadioGroupCss as Z0, rateId as Q0, removeRateCss as eC, addRateCss as tC, stepperId as nC, removeStepperCss as oC, addStepperCss as rC, stepsId as aC, removeStepsCss as sC, addStepsCss as lC, switchId as iC, removeSwitchCss as uC, addSwitchCss as cC, tableId as dC, removeTableCss as pC, addTableCss as fC, tcellId as xp, removeTcellCss as Pp, addTcellCss as Bp, trId as gC, removeTrCss as vC, addTrCss as mC, tbodyId as yC, removeTbodyCss as bC, addTbodyCss as hC, theadId as CC, removeTheadCss as SC, addTheadCss as _C, tfootId as OC, removeTfootCss as xC, addTfootCss as PC, tabsId as BC, removeTabsCss as wC, addTabsCss as kC, textareaId as AC, removeTextareaCss as IC, addTextareaCss as TC, toastId as DC, removeToastCss as EC, addToastCss as RC, uploadId as zC, removeUploadCss as NC, addUploadCss as MC } from "@pantograph/styles";
|
|
14
14
|
import { Icon as $C } from "@iconify/vue";
|
|
15
15
|
import wp from "@pantograph/sortable";
|
|
@@ -10948,7 +10948,7 @@ const Bd = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, wd = pB, C
|
|
|
10948
10948
|
var i;
|
|
10949
10949
|
((i = o.value) == null ? void 0 : i.nodeType) === 1 && (r.value = getComputedStyle(o.value).direction);
|
|
10950
10950
|
};
|
|
10951
|
-
n ? s() : Ge(s);
|
|
10951
|
+
n ? typeof window < "u" && s() : Ge(s);
|
|
10952
10952
|
const a = (i) => {
|
|
10953
10953
|
let c = i;
|
|
10954
10954
|
(!i || !["rtl", "ltr"].includes(i)) && (c = r.value === "ltr" ? "rtl" : "ltr"), o.value && (o.value.dir = c);
|
|
@@ -10986,15 +10986,14 @@ const Bd = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, wd = pB, C
|
|
|
10986
10986
|
flipOnDir: C(() => "none"),
|
|
10987
10987
|
toggleDark: mB,
|
|
10988
10988
|
changeTheme: ri,
|
|
10989
|
-
theme: C(() =>
|
|
10989
|
+
theme: C(() => _p()),
|
|
10990
10990
|
props: Yu
|
|
10991
10991
|
}, [hB, ng] = Ne("config-provider"), og = () => hB(tg), [CB, SB] = Ne("dir-config"), _B = () => CB({}), _e = (e) => {
|
|
10992
|
-
const t = og(), n = Bn(), o = _B(), r = C(
|
|
10993
|
-
|
|
10994
|
-
|
|
10992
|
+
const t = og(), n = Bn(), o = _B(), r = C(() => {
|
|
10993
|
+
var i, c;
|
|
10994
|
+
if (typeof window < "u")
|
|
10995
10995
|
return ((i = n == null ? void 0 : n.props) == null ? void 0 : i.dir) ?? ((c = o == null ? void 0 : o.dir) == null ? void 0 : c.value) ?? (t == null ? void 0 : t.dir.value);
|
|
10996
|
-
|
|
10997
|
-
);
|
|
10996
|
+
});
|
|
10998
10997
|
return n && !e && SB({ dir: r }), { config: t, getFlipOnDir: (i) => C(
|
|
10999
10998
|
() => (n == null ? void 0 : n.props)[i] ?? t.props.flipOnDir
|
|
11000
10999
|
), dir: r, useCssInJs: (i) => {
|
|
@@ -11199,7 +11198,7 @@ const Bd = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, wd = pB, C
|
|
|
11199
11198
|
_: 1
|
|
11200
11199
|
}, 8, ["dir", "as", "class", "style"]));
|
|
11201
11200
|
}
|
|
11202
|
-
}), ug = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], Oi = ["rect", "pill", "minify"], Ft = ["primary", "gray", ...
|
|
11201
|
+
}), ug = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], Oi = ["rect", "pill", "minify"], Ft = ["primary", "gray", ...Op], xn = [
|
|
11203
11202
|
"primary-subtle",
|
|
11204
11203
|
"red-subtle",
|
|
11205
11204
|
"orange-subtle",
|
|
@@ -12119,7 +12118,7 @@ const fo = [
|
|
|
12119
12118
|
"success",
|
|
12120
12119
|
"warning",
|
|
12121
12120
|
"neutral",
|
|
12122
|
-
...
|
|
12121
|
+
...Op,
|
|
12123
12122
|
"gray"
|
|
12124
12123
|
], oc = ["sm", "md", "lg"], _r = {
|
|
12125
12124
|
color: "primary",
|
|
@@ -13139,7 +13138,7 @@ const Rg = {
|
|
|
13139
13138
|
}
|
|
13140
13139
|
}), g = _t(!0), f = V(n.reference), v = V(), m = ol({ props: n, triggerRef: v }), { getFlipOnDir: b, dir: y } = _e(), h = b("reversePlacementOnDir"), S = (k) => {
|
|
13141
13140
|
var Y;
|
|
13142
|
-
const P = (Y = e.default) == null ? void 0 : Y.call(e, {}), R =
|
|
13141
|
+
const P = (Y = e.default) == null ? void 0 : Y.call(e, {}), R = mp(P) ?? null, z = R.length === 1 ? R[0] : R, N = !!(!z || z && yp(z) && !bp(z));
|
|
13143
13142
|
g.value = !!(N && n.asChild);
|
|
13144
13143
|
const $ = a ? 0 : k.tabindex, j = {
|
|
13145
13144
|
dir: y.value,
|
|
@@ -13850,7 +13849,7 @@ const Rg = {
|
|
|
13850
13849
|
mask: { type: Boolean },
|
|
13851
13850
|
beforeClose: { type: Function },
|
|
13852
13851
|
beforeCloseDebugger: { type: Boolean },
|
|
13853
|
-
to: {},
|
|
13852
|
+
to: { type: [String, Object, Function] },
|
|
13854
13853
|
animated: { type: [Boolean, String] },
|
|
13855
13854
|
wrapperCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
13856
13855
|
class: { type: [Array, Object, String, Number, null, Boolean] },
|
|
@@ -14041,7 +14040,7 @@ const Rg = {
|
|
|
14041
14040
|
);
|
|
14042
14041
|
});
|
|
14043
14042
|
const a = C(() => ({
|
|
14044
|
-
...
|
|
14043
|
+
..._p(t.theme),
|
|
14045
14044
|
dark: r.value
|
|
14046
14045
|
})), i = V({ active: !1 }), c = (v) => {
|
|
14047
14046
|
i.value = v;
|
|
@@ -17723,8 +17722,8 @@ const wv = {
|
|
|
17723
17722
|
var B;
|
|
17724
17723
|
const S = (B = t.trigger) == null ? void 0 : B.call(t, v.value), x = (() => {
|
|
17725
17724
|
if (Z(S)) return !1;
|
|
17726
|
-
const w =
|
|
17727
|
-
return k ?
|
|
17725
|
+
const w = mp(S) ?? null, k = w.length === 1 ? w[0] : w;
|
|
17726
|
+
return k ? yp(k) && !bp(k) : !0;
|
|
17728
17727
|
})();
|
|
17729
17728
|
return E(
|
|
17730
17729
|
RP,
|
|
@@ -17860,7 +17859,7 @@ const wv = {
|
|
|
17860
17859
|
name: Eu("SelectWrapper"),
|
|
17861
17860
|
setup(e, { slots: t }) {
|
|
17862
17861
|
const n = Mv(), o = Vo(), r = V();
|
|
17863
|
-
|
|
17862
|
+
hp({ target: r });
|
|
17864
17863
|
const s = V(), a = ol({ triggerRef: s, props: n.props }), i = ic({
|
|
17865
17864
|
props: n.props,
|
|
17866
17865
|
flip: n.flip,
|
|
@@ -18195,7 +18194,7 @@ const wv = {
|
|
|
18195
18194
|
trailingIcon: { type: [String, Boolean] },
|
|
18196
18195
|
selectedItemIconAsTrailingIcon: { type: Boolean },
|
|
18197
18196
|
maxCount: {},
|
|
18198
|
-
to: {},
|
|
18197
|
+
to: { type: [String, Object, Function] },
|
|
18199
18198
|
placeholder: {},
|
|
18200
18199
|
indicatorIcon: {},
|
|
18201
18200
|
options: {},
|
|
@@ -22099,7 +22098,7 @@ const Mm = ({
|
|
|
22099
22098
|
if (typeof o.virtual == "object")
|
|
22100
22099
|
Be = o.virtual;
|
|
22101
22100
|
else {
|
|
22102
|
-
const { virtualizer: me, ...De } =
|
|
22101
|
+
const { virtualizer: me, ...De } = Cp(le);
|
|
22103
22102
|
Be = me, Ue = De;
|
|
22104
22103
|
}
|
|
22105
22104
|
const We = C(
|
|
@@ -22727,7 +22726,7 @@ const Mm = ({
|
|
|
22727
22726
|
trailingIcon: { type: [String, Boolean] },
|
|
22728
22727
|
selectedItemIconAsTrailingIcon: { type: Boolean },
|
|
22729
22728
|
maxCount: {},
|
|
22730
|
-
to: {},
|
|
22729
|
+
to: { type: [String, Object, Function] },
|
|
22731
22730
|
placeholder: {},
|
|
22732
22731
|
indicatorIcon: {},
|
|
22733
22732
|
options: {},
|
|
@@ -22900,7 +22899,7 @@ const Mm = ({
|
|
|
22900
22899
|
asChild: !0,
|
|
22901
22900
|
modal: o.disableOutsidePointerEvents
|
|
22902
22901
|
})), _ = V();
|
|
22903
|
-
|
|
22902
|
+
hp({ target: _ });
|
|
22904
22903
|
const x = wt({
|
|
22905
22904
|
key: "value",
|
|
22906
22905
|
getter: o.getValue
|
|
@@ -23186,7 +23185,7 @@ const Mm = ({
|
|
|
23186
23185
|
});
|
|
23187
23186
|
let Be, Ue;
|
|
23188
23187
|
if (o.virtual) {
|
|
23189
|
-
const { virtualizer: U, ...ge } =
|
|
23188
|
+
const { virtualizer: U, ...ge } = Cp(
|
|
23190
23189
|
le
|
|
23191
23190
|
);
|
|
23192
23191
|
Be = U, Ue = ge;
|
|
@@ -23242,7 +23241,7 @@ const Mm = ({
|
|
|
23242
23241
|
if (!o.multiple && !Ct(U))
|
|
23243
23242
|
return j(U);
|
|
23244
23243
|
}
|
|
23245
|
-
}), { CollectionSlot: ka, CollectionItem: Fe, itemMap: Kn, getItems: Ht } =
|
|
23244
|
+
}), { CollectionSlot: ka, CollectionItem: Fe, itemMap: Kn, getItems: Ht } = Sp({
|
|
23246
23245
|
isProvider: !0,
|
|
23247
23246
|
key: Bt
|
|
23248
23247
|
}), Cn = () => {
|
|
@@ -23598,7 +23597,7 @@ const Mm = ({
|
|
|
23598
23597
|
option: {}
|
|
23599
23598
|
},
|
|
23600
23599
|
setup(e) {
|
|
23601
|
-
const t = e, n = xe(), o = Ba(), { CollectionItem: r } =
|
|
23600
|
+
const t = e, n = xe(), o = Ba(), { CollectionItem: r } = Sp({
|
|
23602
23601
|
isProvider: !1,
|
|
23603
23602
|
key: Bt
|
|
23604
23603
|
}), s = C(() => o.getFlattenOption(t.option)), a = () => E(
|
|
@@ -23669,7 +23668,7 @@ const Ec = [
|
|
|
23669
23668
|
maskClosable: { type: Boolean },
|
|
23670
23669
|
beforeClose: { type: Function },
|
|
23671
23670
|
beforeCloseDebugger: { type: Boolean },
|
|
23672
|
-
to: {},
|
|
23671
|
+
to: { type: [String, Object, Function] },
|
|
23673
23672
|
animated: { type: [Boolean, String] },
|
|
23674
23673
|
side: {},
|
|
23675
23674
|
wrapperCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
@@ -28338,7 +28337,7 @@ const _I = (e, t, n = 1024 * 1024) => {
|
|
|
28338
28337
|
Object.assign(Au, ue(Au, "Upload"));
|
|
28339
28338
|
Object.assign(Ms, ue(Ms, "UploadList"));
|
|
28340
28339
|
Object.assign($s, ue($s, "UploadTrigger"));
|
|
28341
|
-
const II = "0.34.
|
|
28340
|
+
const II = "0.34.22", TI = function(e, t = {}) {
|
|
28342
28341
|
const { cssInJs: n } = t;
|
|
28343
28342
|
return e.config.globalProperties.$pantographCssInJs = n, import("@pantograph/tokens/style/index.css"), n || import("@pantograph/styles/index.css"), Object.values(LC).forEach((o) => {
|
|
28344
28343
|
o.install && e.use(o);
|