@pantograph/vue 0.23.5 → 0.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-Byy-SUY7.js → ActionButton.vue_vue_type_script_setup_true_lang-7ImUgPOW.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-byWs7FGA.js → ActionButton.vue_vue_type_script_setup_true_lang-D8DXU0Vb.js} +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-B30XPHvm.js → Alert.vue_vue_type_style_index_0_lang-CqrPX_Iw.js} +3 -3
- package/dist/{Alert.vue_vue_type_style_index_0_lang-zAvnYwjn.js → Alert.vue_vue_type_style_index_0_lang-DtOx68kv.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-B5QoCaie.js → Avatar.vue_vue_type_style_index_0_lang-B0jPWS1n.js} +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BH1gFvLI.js → Avatar.vue_vue_type_style_index_0_lang-Dj-jkrYp.js} +2 -2
- 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-ChmvYjjQ.js +1 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-PioR6WEK.js +57 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-CxL85kWZ.js → BaseButton.vue_vue_type_style_index_0_lang-Cb5t50gO.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DLorGJwo.js → BaseButton.vue_vue_type_style_index_0_lang-CeHbEfy3.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CZVffRST.js → Button.vue_vue_type_script_setup_true_lang-ChrdvyD2.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-JEp-xK1r.js → Button.vue_vue_type_script_setup_true_lang-vJ7lfVy_.js} +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-Ha5k2W3V.js → Chip.vue_vue_type_style_index_0_lang-CEXKUJCj.js} +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-DKr8EzbN.js → Chip.vue_vue_type_style_index_0_lang-Cr1_L0Lz.js} +1 -1
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-V98bakNp.js → ChipGroup.vue_vue_type_style_index_0_lang-B945U8rL.js} +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-GEZo5nnM.js → ChipGroup.vue_vue_type_style_index_0_lang-j6Reg1S9.js} +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-ofcHj216.js → ColorPicker.vue_vue_type_style_index_0_lang-CcqGZq-b.js} +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BN0V43ck.js → ColorPicker.vue_vue_type_style_index_0_lang-Cdxk3fOe.js} +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch-CH_N4TfV.js +1 -0
- package/dist/ColorSwatch-DkW6RvE7.js +4 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-C2CGtzy8.js → ColorSwatch.vue_vue_type_style_index_0_lang-WU4Q0TGg.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DvCAHexP.js → ColorSwatch.vue_vue_type_style_index_0_lang-r7jNc78g.js} +2 -2
- 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-BfwoeYwS.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DP1dT4Eq.js} +3 -3
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DtLQQxrr.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-iWwvyQwp.js} +1 -1
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-W0kl7vow.js → ColorTrigger.vue_vue_type_style_index_0_lang-D7M2EQfc.js} +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-CieQBrWD.js → ColorTrigger.vue_vue_type_style_index_0_lang-IwIexR_Y.js} +1 -1
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-DUnSgObq.js → Combobox.vue_vue_type_style_index_0_lang-Cnl79xIk.js} +1 -1
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-B2b5MoSC.js → Combobox.vue_vue_type_style_index_0_lang-DIXSNQlS.js} +8 -8
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-aEvZTZpM.js → DataTable.vue_vue_type_style_index_0_lang-DeDH_Kvd.js} +1 -1
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-D_T8Xxsh.js → DataTable.vue_vue_type_style_index_0_lang-PXmil6LX.js} +5 -5
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-qf9hNusy.js → DropZone.vue_vue_type_style_index_0_lang-CrBpJeKe.js} +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-vhZKklYh.js → DropZone.vue_vue_type_style_index_0_lang-WmRKdmXK.js} +1 -1
- 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-DQGcKCNh.js → FloatButton.vue_vue_type_script_setup_true_lang-DFHM_Tuo.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-fS1Yq2no.js → FloatButton.vue_vue_type_script_setup_true_lang-DpFewhq3.js} +1 -1
- package/dist/GOPicker/GOItemSkeleton.d.ts +2 -0
- package/dist/GOPicker/GOPicker.d.ts +36 -96
- package/dist/GOPicker/GOPicker.model.d.ts +72 -0
- package/dist/GOPicker/index.d.ts +2 -1
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-C4i8C-dP.js +65 -0
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CmkmatJc.js +1 -0
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CUdg78Ni.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CB9Q1b9r.js} +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-D-dG-MEU.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CU2CrD-j.js} +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DEHsCjTK.js → IconButton.vue_vue_type_script_setup_true_lang-Bq7Ed6Jl.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-C0T_gnJS.js → IconButton.vue_vue_type_script_setup_true_lang-DJiG3_YJ.js} +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Cjlog39U.js → IndentLevel.vue_vue_type_style_index_0_lang-ZmHvmKOS.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Cwk_0wRr.js → IndentLevel.vue_vue_type_style_index_0_lang-u9PJeCGr.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-CX3cY74r.js +1 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-CmKraTSB.js +38 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-EaIWA0xP.js → MenuItem.vue_vue_type_style_index_0_lang-C8ofBbNv.js} +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-yuREIf6x.js → MenuItem.vue_vue_type_style_index_0_lang-pnm3rqME.js} +1 -1
- package/dist/Popover/Popover.d.ts +1 -0
- 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-SLueqv_E.js → Popover.vue_vue_type_style_index_0_lang-BGRXQmj3.js} +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-D7GA-4CS.js → Popover.vue_vue_type_style_index_0_lang-CZ_AaHDG.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-kxQIMaNz.js → RadioGroup.vue_vue_type_script_setup_true_lang-03XUb7NC.js} +18 -19
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-1clw8kVI.js +1 -0
- package/dist/ScrollContainer/ScrollContainer.d.ts +2 -0
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-C1iYwWCJ.js → Select.vue_vue_type_style_index_0_lang-DX17VhqH.js} +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-DUy8bGSD.js → Select.vue_vue_type_style_index_0_lang-W3dk0Ug0.js} +3 -3
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Tree/Tree.d.ts +3 -1
- package/dist/Tree/Tree.model.d.ts +11 -8
- package/dist/Tree/TreeNode.d.ts +2 -0
- 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-B30b4oK2.js +6 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-DBDkYw9s.js +1757 -0
- package/dist/{getEmojiList-DYrYRrM5.js → getEmojiList-BiHAQqm6.js} +242 -232
- package/dist/getEmojiList-mUahBsHW.js +1 -0
- package/dist/index.js +26 -26
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/package.json +4 -4
- package/dist/Badge.vue_vue_type_script_setup_true_lang-X_MnjVp9.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-uNQWz2GS.js +0 -66
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Cx0_O9-1.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-tkL7jO-r.js +0 -68
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-C-czibvQ.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DhdiDbED.js +0 -40
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-mjzo15tQ.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-B6uVPvX8.js +0 -6
- package/dist/Tree.vue_vue_type_style_index_0_lang-a_nDBSWx.js +0 -1789
- package/dist/getEmojiList-CFiuBWyA.js +0 -1
|
@@ -1,64 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ScrollContainerProps } from '../ScrollContainer/ScrollContainer';
|
|
3
|
-
import { ColorSwatchGroupProps } from '../ColorSwatchGroup/ColorSwatchGroup';
|
|
4
|
-
import { GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG } from '../GraphicalObject/GraphicalObject.model';
|
|
5
|
-
import { Class } from '../types';
|
|
6
|
-
import { ColorTriggerSize } from '../ColorTrigger';
|
|
7
|
-
interface ObjectItem {
|
|
8
|
-
keywords?: string[];
|
|
9
|
-
value: string;
|
|
10
|
-
}
|
|
11
|
-
type GoPickerGroup = 'icon' | 'emoji';
|
|
12
|
-
type ColorPicker = 'fg' | 'bg' | 'br';
|
|
13
|
-
export interface GOPickerModel {
|
|
14
|
-
value: string;
|
|
15
|
-
type: GoPickerGroup | 'custom';
|
|
16
|
-
fg?: string | GraphicalObjectFG;
|
|
17
|
-
bg?: string | GraphicalObjectBG;
|
|
18
|
-
br?: string | GraphicalObjectBR;
|
|
19
|
-
}
|
|
20
|
-
export interface GOPickerProps {
|
|
21
|
-
icons?: ObjectItem[];
|
|
22
|
-
emojis?: ObjectItem[];
|
|
23
|
-
group?: GoPickerGroup;
|
|
24
|
-
modelValue?: GOPickerModel;
|
|
25
|
-
defaultValue?: GOPickerModel;
|
|
26
|
-
visibleTabs?: GoPickerGroup[];
|
|
27
|
-
hideGroup?: boolean;
|
|
28
|
-
hideIcons?: boolean;
|
|
29
|
-
hideEmojis?: boolean;
|
|
30
|
-
hideClear?: boolean;
|
|
31
|
-
hideSearch?: boolean;
|
|
32
|
-
hideRandom?: boolean;
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
borderless?: boolean;
|
|
35
|
-
popoverProps?: PopoverProps;
|
|
36
|
-
colorPopoverProps?: PopoverProps;
|
|
37
|
-
fgColorSwatchGroupProps?: ColorSwatchGroupProps;
|
|
38
|
-
bgColorSwatchGroupProps?: ColorSwatchGroupProps;
|
|
39
|
-
brColorSwatchGroupProps?: ColorSwatchGroupProps;
|
|
40
|
-
visibleColorPickers?: ColorPicker[];
|
|
41
|
-
contentCls?: Class;
|
|
42
|
-
headerCls?: Class;
|
|
43
|
-
groupCls?: Class;
|
|
44
|
-
searchCls?: Class;
|
|
45
|
-
colorsCls?: Class;
|
|
46
|
-
emptyCls?: Class;
|
|
47
|
-
gridCls?: Class;
|
|
48
|
-
scrollContainerProps?: ScrollContainerProps;
|
|
49
|
-
size?: ColorTriggerSize;
|
|
50
|
-
id?: string;
|
|
51
|
-
resetColorsOnChangeType?: {
|
|
52
|
-
icon?: ('fg' | 'bg' | 'br')[];
|
|
53
|
-
emoji?: ('fg' | 'bg' | 'br')[];
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export interface GOPickerEmits {
|
|
57
|
-
(e: 'update:group', value?: GoPickerGroup): void;
|
|
58
|
-
(e: 'clear'): void;
|
|
59
|
-
(e: 'change', value?: GOPickerModel): void;
|
|
60
|
-
(e: 'update:modelValue', value?: GOPickerModel): void;
|
|
61
|
-
}
|
|
1
|
+
import { GOItem, GoPickerGroup, GOPickerModel, GOPickerProps } from './GOPicker.model';
|
|
62
2
|
declare function __VLS_template(): {
|
|
63
3
|
slots: {
|
|
64
4
|
default?(_: {
|
|
@@ -69,12 +9,12 @@ declare function __VLS_template(): {
|
|
|
69
9
|
}): any;
|
|
70
10
|
fgHeader?(_: {}): any;
|
|
71
11
|
fgItem?(_: {
|
|
72
|
-
class?: Class;
|
|
12
|
+
class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class;
|
|
73
13
|
flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir;
|
|
74
14
|
icon?: string;
|
|
75
|
-
fg?: GraphicalObjectFG | string;
|
|
76
|
-
bg?: GraphicalObjectBG | string;
|
|
77
|
-
br?: GraphicalObjectBR | string;
|
|
15
|
+
fg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectFG | string;
|
|
16
|
+
bg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBG | string;
|
|
17
|
+
br?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBR | string;
|
|
78
18
|
size?: "sm" | "md" | undefined;
|
|
79
19
|
selected?: boolean;
|
|
80
20
|
type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ColorSwatchType;
|
|
@@ -82,12 +22,12 @@ declare function __VLS_template(): {
|
|
|
82
22
|
value?: string;
|
|
83
23
|
}): any;
|
|
84
24
|
fgIcon?(_: {
|
|
85
|
-
class?: Class;
|
|
25
|
+
class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class;
|
|
86
26
|
flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir;
|
|
87
27
|
icon?: string;
|
|
88
|
-
fg?: GraphicalObjectFG | string;
|
|
89
|
-
bg?: GraphicalObjectBG | string;
|
|
90
|
-
br?: GraphicalObjectBR | string;
|
|
28
|
+
fg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectFG | string;
|
|
29
|
+
bg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBG | string;
|
|
30
|
+
br?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBR | string;
|
|
91
31
|
size?: "sm" | "md" | undefined;
|
|
92
32
|
selected?: boolean;
|
|
93
33
|
type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ColorSwatchType;
|
|
@@ -96,12 +36,12 @@ declare function __VLS_template(): {
|
|
|
96
36
|
}): any;
|
|
97
37
|
bgHeader?(_: {}): any;
|
|
98
38
|
bgItem?(_: {
|
|
99
|
-
class?: Class;
|
|
39
|
+
class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class;
|
|
100
40
|
flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir;
|
|
101
41
|
icon?: string;
|
|
102
|
-
fg?: GraphicalObjectFG | string;
|
|
103
|
-
bg?: GraphicalObjectBG | string;
|
|
104
|
-
br?: GraphicalObjectBR | string;
|
|
42
|
+
fg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectFG | string;
|
|
43
|
+
bg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBG | string;
|
|
44
|
+
br?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBR | string;
|
|
105
45
|
size?: "sm" | "md" | undefined;
|
|
106
46
|
selected?: boolean;
|
|
107
47
|
type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ColorSwatchType;
|
|
@@ -109,12 +49,12 @@ declare function __VLS_template(): {
|
|
|
109
49
|
value?: string;
|
|
110
50
|
}): any;
|
|
111
51
|
bgIcon?(_: {
|
|
112
|
-
class?: Class;
|
|
52
|
+
class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class;
|
|
113
53
|
flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir;
|
|
114
54
|
icon?: string;
|
|
115
|
-
fg?: GraphicalObjectFG | string;
|
|
116
|
-
bg?: GraphicalObjectBG | string;
|
|
117
|
-
br?: GraphicalObjectBR | string;
|
|
55
|
+
fg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectFG | string;
|
|
56
|
+
bg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBG | string;
|
|
57
|
+
br?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBR | string;
|
|
118
58
|
size?: "sm" | "md" | undefined;
|
|
119
59
|
selected?: boolean;
|
|
120
60
|
type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ColorSwatchType;
|
|
@@ -123,12 +63,12 @@ declare function __VLS_template(): {
|
|
|
123
63
|
}): any;
|
|
124
64
|
brHeader?(_: {}): any;
|
|
125
65
|
brItem?(_: {
|
|
126
|
-
class?: Class;
|
|
66
|
+
class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class;
|
|
127
67
|
flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir;
|
|
128
68
|
icon?: string;
|
|
129
|
-
fg?: GraphicalObjectFG | string;
|
|
130
|
-
bg?: GraphicalObjectBG | string;
|
|
131
|
-
br?: GraphicalObjectBR | string;
|
|
69
|
+
fg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectFG | string;
|
|
70
|
+
bg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBG | string;
|
|
71
|
+
br?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBR | string;
|
|
132
72
|
size?: "sm" | "md" | undefined;
|
|
133
73
|
selected?: boolean;
|
|
134
74
|
type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ColorSwatchType;
|
|
@@ -136,12 +76,12 @@ declare function __VLS_template(): {
|
|
|
136
76
|
value?: string;
|
|
137
77
|
}): any;
|
|
138
78
|
brIcon?(_: {
|
|
139
|
-
class?: Class;
|
|
79
|
+
class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class;
|
|
140
80
|
flipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir;
|
|
141
81
|
icon?: string;
|
|
142
|
-
fg?: GraphicalObjectFG | string;
|
|
143
|
-
bg?: GraphicalObjectBG | string;
|
|
144
|
-
br?: GraphicalObjectBR | string;
|
|
82
|
+
fg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectFG | string;
|
|
83
|
+
bg?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBG | string;
|
|
84
|
+
br?: import('../GraphicalObject/GraphicalObject.model.ts', { with: { "resolution-mode": "import" } }).GraphicalObjectBR | string;
|
|
145
85
|
size?: "sm" | "md" | undefined;
|
|
146
86
|
selected?: boolean;
|
|
147
87
|
type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ColorSwatchType;
|
|
@@ -149,12 +89,12 @@ declare function __VLS_template(): {
|
|
|
149
89
|
value?: string;
|
|
150
90
|
}): any;
|
|
151
91
|
item?(_: {
|
|
152
|
-
item:
|
|
153
|
-
group: "icon"
|
|
92
|
+
item: GOItem;
|
|
93
|
+
group: "icon";
|
|
154
94
|
}): any;
|
|
155
95
|
item?(_: {
|
|
156
|
-
item:
|
|
157
|
-
group: "
|
|
96
|
+
item: GOItem;
|
|
97
|
+
group: "emoji";
|
|
158
98
|
}): any;
|
|
159
99
|
};
|
|
160
100
|
refs: {};
|
|
@@ -172,14 +112,14 @@ declare const __VLS_component: import('vue').DefineComponent<GOPickerProps, {},
|
|
|
172
112
|
"onUpdate:modelValue"?: ((value?: GOPickerModel | undefined) => any) | undefined;
|
|
173
113
|
"onUpdate:group"?: ((value?: GoPickerGroup | undefined) => any) | undefined;
|
|
174
114
|
}>, {
|
|
175
|
-
size: ColorTriggerSize;
|
|
176
|
-
popoverProps: PopoverProps;
|
|
115
|
+
size: import('../index.ts', { with: { "resolution-mode": "import" } }).ColorTriggerSize;
|
|
116
|
+
popoverProps: import('../Popover/Popover').PopoverProps;
|
|
177
117
|
visibleTabs: GoPickerGroup[];
|
|
178
|
-
colorPopoverProps: PopoverProps;
|
|
179
|
-
fgColorSwatchGroupProps: ColorSwatchGroupProps;
|
|
180
|
-
bgColorSwatchGroupProps: ColorSwatchGroupProps;
|
|
181
|
-
brColorSwatchGroupProps: ColorSwatchGroupProps;
|
|
182
|
-
visibleColorPickers:
|
|
118
|
+
colorPopoverProps: import('../Popover/Popover').PopoverProps;
|
|
119
|
+
fgColorSwatchGroupProps: import('../ColorSwatchGroup/ColorSwatchGroup').ColorSwatchGroupProps;
|
|
120
|
+
bgColorSwatchGroupProps: import('../ColorSwatchGroup/ColorSwatchGroup').ColorSwatchGroupProps;
|
|
121
|
+
brColorSwatchGroupProps: import('../ColorSwatchGroup/ColorSwatchGroup').ColorSwatchGroupProps;
|
|
122
|
+
visibleColorPickers: ("br" | "bg" | "fg")[];
|
|
183
123
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
184
124
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
185
125
|
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG } from '../GraphicalObject/GraphicalObject.model.js';
|
|
2
|
+
import { PopoverProps } from '../Popover/Popover';
|
|
3
|
+
import { ColorSwatchGroupProps } from '../ColorSwatchGroup/ColorSwatchGroup';
|
|
4
|
+
import { Class } from '../types';
|
|
5
|
+
import { ScrollContainerProps } from '../ScrollContainer/ScrollContainer';
|
|
6
|
+
import { ColorTriggerSize } from '../ColorTrigger/ColorTrigger.model';
|
|
7
|
+
import { ComputedRef, Ref } from 'vue';
|
|
8
|
+
export interface GOItem {
|
|
9
|
+
keywords?: string[];
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export type GoPickerGroup = 'icon' | 'emoji';
|
|
13
|
+
type ColorPicker = 'fg' | 'bg' | 'br';
|
|
14
|
+
export interface GOPickerModel {
|
|
15
|
+
value: string;
|
|
16
|
+
type: GoPickerGroup | 'custom';
|
|
17
|
+
fg?: string | GraphicalObjectFG;
|
|
18
|
+
bg?: string | GraphicalObjectBG;
|
|
19
|
+
br?: string | GraphicalObjectBR;
|
|
20
|
+
}
|
|
21
|
+
export interface GOPickerProps {
|
|
22
|
+
icons?: GOItem[];
|
|
23
|
+
emojis?: GOItem[];
|
|
24
|
+
group?: GoPickerGroup;
|
|
25
|
+
modelValue?: GOPickerModel;
|
|
26
|
+
defaultValue?: GOPickerModel;
|
|
27
|
+
visibleTabs?: GoPickerGroup[];
|
|
28
|
+
hideGroup?: boolean;
|
|
29
|
+
hideIcons?: boolean;
|
|
30
|
+
hideEmojis?: boolean;
|
|
31
|
+
hideClear?: boolean;
|
|
32
|
+
hideSearch?: boolean;
|
|
33
|
+
hideRandom?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
borderless?: boolean;
|
|
36
|
+
popoverProps?: PopoverProps;
|
|
37
|
+
colorPopoverProps?: PopoverProps;
|
|
38
|
+
fgColorSwatchGroupProps?: ColorSwatchGroupProps;
|
|
39
|
+
bgColorSwatchGroupProps?: ColorSwatchGroupProps;
|
|
40
|
+
brColorSwatchGroupProps?: ColorSwatchGroupProps;
|
|
41
|
+
visibleColorPickers?: ColorPicker[];
|
|
42
|
+
contentCls?: Class;
|
|
43
|
+
headerCls?: Class;
|
|
44
|
+
groupCls?: Class;
|
|
45
|
+
searchCls?: Class;
|
|
46
|
+
colorsCls?: Class;
|
|
47
|
+
emptyCls?: Class;
|
|
48
|
+
gridCls?: Class;
|
|
49
|
+
scrollContainerProps?: ScrollContainerProps;
|
|
50
|
+
size?: ColorTriggerSize;
|
|
51
|
+
id?: string;
|
|
52
|
+
resetColorsOnChangeType?: {
|
|
53
|
+
icon?: ('fg' | 'bg' | 'br')[];
|
|
54
|
+
emoji?: ('fg' | 'bg' | 'br')[];
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface GOPickerEmits {
|
|
58
|
+
(e: 'update:group', value?: GoPickerGroup): void;
|
|
59
|
+
(e: 'clear'): void;
|
|
60
|
+
(e: 'change', value?: GOPickerModel): void;
|
|
61
|
+
(e: 'update:modelValue', value?: GOPickerModel): void;
|
|
62
|
+
}
|
|
63
|
+
export interface GOPickerContext {
|
|
64
|
+
props: GOPickerProps;
|
|
65
|
+
model: Ref<GOPickerModel | undefined>;
|
|
66
|
+
filteredIcons: ComputedRef<GOItem[]>;
|
|
67
|
+
filteredEmojis: ComputedRef<GOItem[]>;
|
|
68
|
+
setValue: (value: GOItem) => void;
|
|
69
|
+
groupModel: Ref<GoPickerGroup | undefined>;
|
|
70
|
+
}
|
|
71
|
+
export declare const goPickerPrefix: string;
|
|
72
|
+
export {};
|
package/dist/GOPicker/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default, default as GOPicker
|
|
1
|
+
export { default, default as GOPicker } from './GOPicker';
|
|
2
|
+
export type { GoPickerGroup, GOPickerModel, GOPickerProps, GOPickerContext, GOPickerEmits, GOItem, } from './GOPicker.model';
|
|
2
3
|
export { emojiList, getEmojiList } from './getEmojiList';
|
package/dist/GOPicker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../getEmojiList-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../getEmojiList-mUahBsHW.js");exports.GOPicker=e._sfc_main;exports.default=e._sfc_main;exports.emojiList=e.emojiList;exports.getEmojiList=e.getEmojiList;
|
|
@@ -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-CmkmatJc.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as C, computed as o, useAttrs as h, createBlock as _, openBlock as z, mergeProps as B, createSlots as O, renderList as $, withCtx as j, renderSlot as k, normalizeProps as v, guardReactiveProps as G } from "vue";
|
|
2
|
+
import { o as g } from "./omit-BuBwx_M2.js";
|
|
3
|
+
import { _ as w } from "./BaseBadge.vue_vue_type_style_index_0_lang-Bhdde0lY.js";
|
|
4
|
+
import { g as P } from "./options-D4et5euX.js";
|
|
5
|
+
import { B as s, a as f } from "./BaseBadge.model-BIyWEBkY.js";
|
|
6
|
+
import { getCssCoreColor as t } from "@pantograph/tokens";
|
|
7
|
+
import { i as S } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CB9Q1b9r.js";
|
|
8
|
+
const E = /* @__PURE__ */ C({
|
|
9
|
+
...P("GraphicalObject", !1),
|
|
10
|
+
__name: "GraphicalObject",
|
|
11
|
+
props: {
|
|
12
|
+
class: {},
|
|
13
|
+
icon: {},
|
|
14
|
+
flipOnDir: {},
|
|
15
|
+
fg: {},
|
|
16
|
+
bg: {},
|
|
17
|
+
br: {},
|
|
18
|
+
size: {}
|
|
19
|
+
},
|
|
20
|
+
setup(u) {
|
|
21
|
+
const r = u, p = [...s, ...f, "transparent", "gray-subtle"], l = [...s, "gray", "default", "default-subtle", "white", "black"], c = () => {
|
|
22
|
+
if (r.fg && l.includes(r.fg)) {
|
|
23
|
+
if (r.fg === "gray") return t("gray-6");
|
|
24
|
+
if (r.fg === "default") return t("gray-8");
|
|
25
|
+
if (r.fg === "default-subtle") return t("gray-5");
|
|
26
|
+
if (r.fg === "white") return t("grayscale-light-0");
|
|
27
|
+
if (r.fg === "black") return t("grayscale-light-10");
|
|
28
|
+
if (s.includes(r.fg)) return t(`${r.fg}-5`);
|
|
29
|
+
}
|
|
30
|
+
return r.fg;
|
|
31
|
+
}, n = (e) => {
|
|
32
|
+
if (e && p.includes(e)) {
|
|
33
|
+
if (e === "transparent") return "transparent";
|
|
34
|
+
if (e === "gray-subtle") return t("gray-1");
|
|
35
|
+
if (f.includes(e))
|
|
36
|
+
return t(`${e.replace("-subtle", "")}-0`);
|
|
37
|
+
if (s.includes(e)) return t(`${e}-5`);
|
|
38
|
+
}
|
|
39
|
+
return e;
|
|
40
|
+
}, m = o(() => ({
|
|
41
|
+
bg: n(r.bg),
|
|
42
|
+
br: n(r.br) ?? (r.bg === "transparent" ? t("gray-2") : void 0),
|
|
43
|
+
fg: c()
|
|
44
|
+
})), b = h(), a = S({}), d = o(() => {
|
|
45
|
+
var e;
|
|
46
|
+
return {
|
|
47
|
+
...g(b, "type", "text"),
|
|
48
|
+
...g(r, "size"),
|
|
49
|
+
size: ((e = a == null ? void 0 : a.props) == null ? void 0 : e.size) ?? r.size,
|
|
50
|
+
...m.value
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
return (e, x) => (z(), _(w, B(d.value, { type: "rect" }), O({ _: 2 }, [
|
|
54
|
+
$(Object.keys(e.$slots), (i) => ({
|
|
55
|
+
name: i,
|
|
56
|
+
fn: j((y) => [
|
|
57
|
+
k(e.$slots, i, v(G(y)))
|
|
58
|
+
])
|
|
59
|
+
}))
|
|
60
|
+
]), 1040));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
E as _
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),g=require("./omit-CYbreqlf.js"),b=require("./BaseBadge.vue_vue_type_style_index_0_lang-CA4e9gEN.js"),y=require("./options-CWrQ7gsa.js"),o=require("./BaseBadge.model-imnRO6DY.js"),s=require("@pantograph/tokens"),m=require("./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CU2CrD-j.js"),B=t.defineComponent({...y.getComponentOptions("GraphicalObject",!1),__name:"GraphicalObject",props:{class:{},icon:{},flipOnDir:{},fg:{},bg:{},br:{},size:{}},setup(l){const e=l,u=[...o.BadgeColors,...o.BadgeColorsSubtle,"transparent","gray-subtle"],c=[...o.BadgeColors,"gray","default","default-subtle","white","black"],C=()=>{if(e.fg&&c.includes(e.fg)){if(e.fg==="gray")return s.getCssCoreColor("gray-6");if(e.fg==="default")return s.getCssCoreColor("gray-8");if(e.fg==="default-subtle")return s.getCssCoreColor("gray-5");if(e.fg==="white")return s.getCssCoreColor("grayscale-light-0");if(e.fg==="black")return s.getCssCoreColor("grayscale-light-10");if(o.BadgeColors.includes(e.fg))return s.getCssCoreColor(`${e.fg}-5`)}return e.fg},a=r=>{if(r&&u.includes(r)){if(r==="transparent")return"transparent";if(r==="gray-subtle")return s.getCssCoreColor("gray-1");if(o.BadgeColorsSubtle.includes(r))return s.getCssCoreColor(`${r.replace("-subtle","")}-0`);if(o.BadgeColors.includes(r))return s.getCssCoreColor(`${r}-5`)}return r},f=t.computed(()=>({bg:a(e.bg),br:a(e.br)??(e.bg==="transparent"?s.getCssCoreColor("gray-2"):void 0),fg:C()})),p=t.useAttrs(),n=m.injectGraphicalObjectGroupContext({}),d=t.computed(()=>{var r;return{...g.omit(p,"type","text"),...g.omit(e,"size"),size:((r=n==null?void 0:n.props)==null?void 0:r.size)??e.size,...f.value}});return(r,h)=>(t.openBlock(),t.createBlock(b._sfc_main,t.mergeProps(d.value,{type:"rect"}),t.createSlots({_:2},[t.renderList(Object.keys(r.$slots),i=>({name:i,fn:t.withCtx(_=>[t.renderSlot(r.$slots,i,t.normalizeProps(t.guardReactiveProps(_)))])}))]),1040))}});exports._sfc_main=B;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, _ as p, i as r, p as o } from "../GraphicalObjectGroup.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as e, _ as p, i as r, p as o } from "../GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CB9Q1b9r.js";
|
|
2
2
|
export {
|
|
3
3
|
e as GraphicalObjectGroup,
|
|
4
4
|
p as default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObjectGroup.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CU2CrD-j.js");exports.GraphicalObjectGroup=e._sfc_main;exports.default=e._sfc_main;exports.injectGraphicalObjectGroupContext=e.injectGraphicalObjectGroupContext;exports.provideGraphicalObjectGroupContext=e.provideGraphicalObjectGroupContext;
|
|
@@ -3,7 +3,7 @@ import { g as G } from "./options-D4et5euX.js";
|
|
|
3
3
|
import { getBemBlock as g, generateVariantClassList as b, getBemElement as j } from "@pantograph/utils";
|
|
4
4
|
import { cva as B } from "class-variance-authority";
|
|
5
5
|
import { c as O } from "./element-BfQuKSll.js";
|
|
6
|
-
import { _ as z } from "./Popover.vue_vue_type_style_index_0_lang-
|
|
6
|
+
import { _ as z } from "./Popover.vue_vue_type_style_index_0_lang-BGRXQmj3.js";
|
|
7
7
|
import { createContext as P } from "reka-ui";
|
|
8
8
|
const [q, k] = P("GraphicalObjectGroup"), w = /* @__PURE__ */ u({
|
|
9
9
|
...G("GraphicalObjectGroup"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./options-CWrQ7gsa.js"),c=require("@pantograph/utils"),_=require("class-variance-authority"),C=require("./element-BjE0SVc4.js"),f=require("./Popover.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./options-CWrQ7gsa.js"),c=require("@pantograph/utils"),_=require("class-variance-authority"),C=require("./element-BjE0SVc4.js"),f=require("./Popover.vue_vue_type_style_index_0_lang-CZ_AaHDG.js"),h=require("reka-ui"),[G,i]=h.createContext("GraphicalObjectGroup"),x=e.defineComponent({...d.getComponentOptions("GraphicalObjectGroup"),__name:"GraphicalObjectGroup",props:{size:{default:"md"},maxCount:{},popoverProps:{},truncateCls:{},noPopover:{type:Boolean}},setup(p){const t=p,u=e.useSlots();i({props:t});const r=e.computed(()=>t.maxCount?Number(t.maxCount):0),m=()=>{const o=C.flattenChildren(u.default?u.default():[]),a=()=>e.h("div",{class:[c.getBemElement(n,"truncate"),t.truncateCls]},`+${o.length-r.value}`);return r.value>1&&o.length>r.value?[...o.filter((v,s)=>s<r.value),t.noPopover?a():e.h(f._sfc_main,{size:t.size==="md"?"md":"sm",...t.popoverProps??{}},{default:a,content:()=>e.h("div",{class:l(t)},{default:()=>o.filter((v,s)=>s>=r.value)})})]:o},n=c.getBemBlock("go_group"),l=_.cva(n,{variants:{size:c.generateVariantClassList(["xsm","sm","md"],n)}});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(l)(t))},[e.createVNode(m)],2))}});exports._sfc_main=x;exports.injectGraphicalObjectGroupContext=G;exports.provideGraphicalObjectGroupContext=i;
|
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-Bq7Ed6Jl.js");exports.IconButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-CYbreqlf.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-CYbreqlf.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-CeHbEfy3.js"),_=require("./options-CWrQ7gsa.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"IconButton",props:{class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{},flipOnDir:{},block:{type:Boolean},htmlType:{}},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 i, useAttrs as l, computed as m, ref as u, createBlock as f, openBlock as _, mergeProps as b, createSlots as d, renderList as g, withCtx as v, renderSlot as y, normalizeProps as B, guardReactiveProps as k } from "vue";
|
|
2
2
|
import { o as x } from "./omit-BuBwx_M2.js";
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-Cb5t50gO.js";
|
|
4
4
|
import { g as h } from "./options-D4et5euX.js";
|
|
5
5
|
const z = /* @__PURE__ */ i({
|
|
6
6
|
...h("IconButton", !1),
|
|
@@ -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-ZmHvmKOS.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-u9PJeCGr.js");exports.IndentLevel=e._sfc_main;exports.IndentLevelShowLines=e.IndentLevelShowLines;exports.IndentLevelSizes=e.IndentLevelSizes;exports.default=e._sfc_main;
|
|
@@ -4,7 +4,7 @@ import { cva as D } from "class-variance-authority";
|
|
|
4
4
|
import { g as E } from "./options-D4et5euX.js";
|
|
5
5
|
import { _ as L } from "./Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js";
|
|
6
6
|
import { _ as V } from "./Spinner.vue_vue_type_style_index_0_lang-Dc9P7GsT.js";
|
|
7
|
-
import { _ } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-C4i8C-dP.js";
|
|
8
8
|
import { g as M } from "./FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js";
|
|
9
9
|
const F = ["2xsm", "xsm", "sm"], Q = ["last", "all", "before", "self"], O = { key: 0 }, T = /* @__PURE__ */ z({
|
|
10
10
|
...E("IndentLevel"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),o=require("@pantograph/utils"),h=require("class-variance-authority"),_=require("./options-CWrQ7gsa.js"),u=require("./Divider.vue_vue_type_style_index_0_lang-DoEWjJx6.js"),g=require("./Spinner.vue_vue_type_style_index_0_lang-RE3hFFZA.js"),k=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"),_=require("./options-CWrQ7gsa.js"),u=require("./Divider.vue_vue_type_style_index_0_lang-DoEWjJx6.js"),g=require("./Spinner.vue_vue_type_style_index_0_lang-RE3hFFZA.js"),k=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-CmkmatJc.js"),L=require("./FormItem.vue_vue_type_style_index_0_lang-CTRszGlB.js"),d=["2xsm","xsm","sm"],y=["last","all","before","self"],b={key:0},C=e.defineComponent({..._.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)}}),r=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):L.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(r.value,l=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(i),{[e.unref(o.getBemModifier)(e.unref(a),"expand")]:l===r.value}]),key:l},[l===r.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(k._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"&&l===r.value-1||f(l)?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)],2))),128))],2))}});exports.IndentLevelShowLines=y;exports.IndentLevelSizes=d;exports._sfc_main=C;
|
package/dist/Indicator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Indicator.vue_vue_type_script_setup_true_lang-CX3cY74r.js");exports.Indicator=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./omit-CYbreqlf.js"),_=require("./BaseBadge.vue_vue_type_style_index_0_lang-CA4e9gEN.js"),g=require("./options-CWrQ7gsa.js"),t=require("./BaseBadge.model-imnRO6DY.js"),s=require("@pantograph/tokens"),C=e.defineComponent({...g.getComponentOptions("Indicator",!1),__name:"Indicator",props:{class:{},size:{},color:{}},setup(n){const o=n,c=e.useAttrs(),i=()=>o.color&&t.BadgeColors.includes(o.color)&&t.BadgeColors.includes(o.color)?s.getCssCoreColor(`${o.color}-5`):s.getCssCoreColor("primary-5"),l=e.computed(()=>({bg:i()})),a=e.computed(()=>({...m.omit(c,"type","text","icon","mode"),...o,...l.value})),u=e.useSlots();return(d,f)=>(e.openBlock(),e.createBlock(_._sfc_main,e.mergeProps(a.value,{type:"minify",mode:"bold"}),e.createSlots({_:2},[e.renderList(Object.keys(u),r=>({name:r,fn:e.withCtx(p=>[e.renderSlot(d.$slots,r,e.normalizeProps(e.guardReactiveProps(p)))])}))]),1040))}});exports._sfc_main=C;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as d, useAttrs as f, computed as e, useSlots as g, createBlock as _, openBlock as C, mergeProps as y, createSlots as B, renderList as b, withCtx as k, renderSlot as v, normalizeProps as x, guardReactiveProps as P } from "vue";
|
|
2
|
+
import { o as S } from "./omit-BuBwx_M2.js";
|
|
3
|
+
import { _ as $ } from "./BaseBadge.vue_vue_type_style_index_0_lang-Bhdde0lY.js";
|
|
4
|
+
import { g as h } from "./options-D4et5euX.js";
|
|
5
|
+
import { B as t } from "./BaseBadge.model-BIyWEBkY.js";
|
|
6
|
+
import { getCssCoreColor as s } from "@pantograph/tokens";
|
|
7
|
+
const R = /* @__PURE__ */ d({
|
|
8
|
+
...h("Indicator", !1),
|
|
9
|
+
__name: "Indicator",
|
|
10
|
+
props: {
|
|
11
|
+
class: {},
|
|
12
|
+
size: {},
|
|
13
|
+
color: {}
|
|
14
|
+
},
|
|
15
|
+
setup(n) {
|
|
16
|
+
const o = n, c = f(), i = () => o.color && t.includes(o.color) && t.includes(o.color) ? s(`${o.color}-5`) : s("primary-5"), m = e(() => ({
|
|
17
|
+
bg: i()
|
|
18
|
+
})), a = e(() => ({
|
|
19
|
+
...S(c, "type", "text", "icon", "mode"),
|
|
20
|
+
...o,
|
|
21
|
+
...m.value
|
|
22
|
+
})), l = g();
|
|
23
|
+
return (p, z) => (C(), _($, y(a.value, {
|
|
24
|
+
type: "minify",
|
|
25
|
+
mode: "bold"
|
|
26
|
+
}), B({ _: 2 }, [
|
|
27
|
+
b(Object.keys(l), (r) => ({
|
|
28
|
+
name: r,
|
|
29
|
+
fn: k((u) => [
|
|
30
|
+
v(p.$slots, r, x(P(u)))
|
|
31
|
+
])
|
|
32
|
+
}))
|
|
33
|
+
]), 1040));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
R as _
|
|
38
|
+
};
|
package/dist/Menu/index.js
CHANGED
package/dist/Menu/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MenuItem.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MenuItem.vue_vue_type_style_index_0_lang-pnm3rqME.js");exports.Menu=e._sfc_main;exports.MenuGaps=e.MenuGaps;exports.default=e._sfc_main;exports.injectMenuContext=e.injectMenuContext;exports.provideMenuContext=e.provideMenuContext;
|
package/dist/MenuItem/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MenuItem.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MenuItem.vue_vue_type_style_index_0_lang-pnm3rqME.js");exports.MenuItem=e._sfc_main$1;exports.MenuItemSizes=e.MenuItemSizes;exports.default=e._sfc_main$1;
|
|
@@ -5,7 +5,7 @@ import { cva as te } from "class-variance-authority";
|
|
|
5
5
|
import { h as X, g as Ce } from "./FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js";
|
|
6
6
|
import { i as ye } from "./isEmpty-wdqPTIXx.js";
|
|
7
7
|
import { a as ve } from "./index-jwkhq8oW.js";
|
|
8
|
-
import { _ as fe } from "./Popover.vue_vue_type_style_index_0_lang-
|
|
8
|
+
import { _ as fe } from "./Popover.vue_vue_type_style_index_0_lang-BGRXQmj3.js";
|
|
9
9
|
import { _ as he } from "./Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js";
|
|
10
10
|
import { b as V } from "./element-BfQuKSll.js";
|
|
11
11
|
import { o as be } from "./omit-BuBwx_M2.js";
|