@pantograph/vue 0.10.1 → 0.10.2
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 +79 -3
- package/dist/ActionButton/index.js.js +1 -1
- package/dist/ActionButton/index.umd.cjs.js +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-KL8JuFlI.js → ActionButton.vue_vue_type_script_setup_true_lang-B8F78aq-.js} +1 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DYj83ijm.js +1 -0
- package/dist/Avatar/Avatar.d.ts +14 -7
- package/dist/Avatar/index.js.js +1 -1
- package/dist/Avatar/index.umd.cjs.js +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BwkELI0y.js +1 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DheqjJPa.js +182 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +2 -5
- package/dist/AvatarGroup/index.js.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs.js +1 -1
- package/dist/Badge/Badge.d.ts +9 -2
- package/dist/Badge/index.js.js +1 -1
- package/dist/Badge/index.umd.cjs.js +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-nmw9qfJ_.js → Badge.vue_vue_type_script_setup_true_lang-CCIamdNB.js} +1 -2
- package/dist/Badge.vue_vue_type_script_setup_true_lang-ooDlpl8j.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +12 -7
- package/dist/Base/BaseButton/BaseButton.d.ts +14 -7
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BNs69VP4.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-MM6bsdzR.js → BaseBadge.vue_vue_type_style_index_0_lang-Bh1152XC.js} +46 -52
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CgEN8K4D.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D7irHU-6.js +153 -0
- package/dist/Button/Button.d.ts +79 -3
- package/dist/Button/index.js.js +1 -1
- package/dist/Button/index.umd.cjs.js +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-BA3bxjLD.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DIj3gT2D.js → Button.vue_vue_type_script_setup_true_lang-NKY7YYCC.js} +5 -6
- package/dist/ButtonGroup/ButtonGroup.d.ts +3 -5
- package/dist/ButtonGroup/index.js.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs.js +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CT_Kgpjf.js +47 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-D486_o-Z.js +1 -0
- package/dist/Checkbox/Checkbox.d.ts +12 -4
- package/dist/Checkbox/index.js.js +1 -1
- package/dist/Checkbox/index.umd.cjs.js +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CSmeTeZh.js +209 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-D0sF0-hW.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -5
- package/dist/CheckboxGroup/index.js.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs.js +1 -1
- package/dist/ColorPicker/index.js.js +1 -1
- package/dist/ColorPicker/index.umd.cjs.js +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-C36JPo4m.js → ColorPicker.vue_vue_type_style_index_0_lang-B1Rst4Q9.js} +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Dq-kFXox.js → ColorPicker.vue_vue_type_style_index_0_lang-CEz3bIJG.js} +2 -2
- package/dist/ColorSwatch/ColorSwatch.d.ts +11 -4
- package/dist/ColorSwatch/index.js.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs.js +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BH-NSALx.js +1 -0
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CL9dd69H.js +100 -0
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +17 -11
- package/dist/ColorSwatchGroup/index.js.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs.js +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CpgTgIuE.js +1 -0
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cwh2REmh.js +159 -0
- package/dist/ColorTrigger/ColorTrigger.d.ts +13 -5
- package/dist/ColorTrigger/index.js.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs.js +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BNFu93Ns.js +86 -0
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-C8kPa338.js +1 -0
- package/dist/ConfigProvider/index.d.ts +6 -6
- package/dist/ConfigProvider/utils.d.ts +2 -2
- package/dist/Divider/Divider.d.ts +13 -8
- package/dist/Divider/index.js.js +1 -1
- package/dist/Divider/index.umd.cjs.js +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-BELWThBf.js +1 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-CRs1KEcj.js +34 -0
- package/dist/FloatButton/FloatButton.d.ts +79 -3
- package/dist/FloatButton/index.js.js +1 -1
- package/dist/FloatButton/index.umd.cjs.js +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Bapsnc_p.js → FloatButton.vue_vue_type_script_setup_true_lang-BAxKXFb0.js} +1 -2
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C5hAAZZQ.js +1 -0
- package/dist/GraphicalObject/GraphicalObject.d.ts +9 -2
- package/dist/GraphicalObject/index.js.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs.js +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-B3FouRlw.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js} +1 -2
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js +1 -0
- package/dist/Icon/Icon.d.ts +11 -4
- package/dist/IconButton/IconButton.d.ts +79 -3
- package/dist/IconButton/index.js.js +1 -1
- package/dist/IconButton/index.umd.cjs.js +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-dI6-RNyi.js → IconButton.vue_vue_type_script_setup_true_lang-CchpvdkX.js} +1 -2
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-c16Xu6mm.js +1 -0
- package/dist/Image/Image.d.ts +16 -8
- package/dist/Image/index.js.js +1 -1
- package/dist/Image/index.umd.cjs.js +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-DbqKKOAs.js → Image.vue_vue_type_style_index_0_lang-Hg1jFz-L.js} +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-Cku5hiNE.js → Image.vue_vue_type_style_index_0_lang-pkzjPQyu.js} +2 -2
- package/dist/IndentLevel/IndentLevel.d.ts +14 -8
- package/dist/IndentLevel/index.js.js +1 -1
- package/dist/IndentLevel/index.umd.cjs.js +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DqqJTrDF.js +1 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-ZZ1uEhji.js +94 -0
- package/dist/Indicator/Indicator.d.ts +9 -2
- package/dist/Indicator/index.js.js +1 -1
- package/dist/Indicator/index.umd.cjs.js +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-ICqvLVbq.js → Indicator.vue_vue_type_script_setup_true_lang-B16OmZLF.js} +1 -2
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-BibzfVax.js +1 -0
- package/dist/Input/Input.d.ts +15 -7
- package/dist/Input/index.js.js +1 -1
- package/dist/Input/index.umd.cjs.js +1 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-CcR6oCIR.js +407 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-DVN491cI.js +1 -0
- package/dist/Kbd/Kbd.d.ts +13 -9
- package/dist/Kbd/index.js.js +1 -1
- package/dist/Kbd/index.umd.cjs.js +1 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js +1 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js +47 -0
- package/dist/Menu/Menu.d.ts +9 -10
- package/dist/Menu/index.js.js +1 -1
- package/dist/Menu/index.umd.cjs.js +1 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-B64mJSxF.js +481 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-Sq_kFrSI.js +1 -0
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/index.js.js +1 -1
- package/dist/MenuItem/index.umd.cjs.js +1 -1
- package/dist/Popover/Popover.d.ts +82 -5
- package/dist/RadioGroup/RadioGroup.d.ts +12 -5
- package/dist/RadioGroup/RadioGroupItem.d.ts +11 -3
- package/dist/RadioGroup/index.d.ts +1 -1
- package/dist/RadioGroup/index.js.js +3 -2
- package/dist/RadioGroup/index.umd.cjs.js +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js +100 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +1 -2
- package/dist/Shortcut/index.js.js +1 -1
- package/dist/Shortcut/index.umd.cjs.js +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D4xo_UgO.js +32 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +3 -7
- package/dist/Skeleton/index.js.js +1 -1
- package/dist/Skeleton/index.umd.cjs.js +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-C1I-p4Yn.js +1 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-IQEtEnZx.js +58 -0
- package/dist/Spinner/Spinner.d.ts +11 -6
- package/dist/Spinner/index.js.js +1 -1
- package/dist/Spinner/index.umd.cjs.js +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js +1 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js +73 -0
- package/dist/Switch/Switch.d.ts +14 -3
- package/dist/Switch/index.js.js +1 -1
- package/dist/Switch/index.umd.cjs.js +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-CoXu3YJ-.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-CvWay8Wa.js +106 -0
- package/dist/Tree/Tree.d.ts +12 -3
- package/dist/Tree/TreeNode.d.ts +11 -2
- package/dist/Tree/index.js.js +1 -1
- package/dist/Tree/index.umd.cjs.js +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BCYjSwUH.js +545 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-CvskECfv.js +1 -0
- package/dist/index.js.js +66 -62
- package/dist/index.umd.cjs.js +1 -1
- package/dist/style/index.css +1 -1
- package/dist/useId-DvOSMFGX.js +9 -0
- package/dist/useId-Ku3O_8TK.js +1 -0
- package/dist/useInputDataStates-CZbdWpyp.js +26 -0
- package/dist/useInputDataStates-CbRgNQqU.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js.js +10 -6
- package/dist/utils/index.umd.cjs.js +1 -1
- package/dist/utils/useId.d.ts +1 -0
- package/dist/utils/useInputDataStates.d.ts +19 -0
- package/package.json +5 -3
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BVtP6mpl.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BHYcXGuX.js +0 -188
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DKGY3npY.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BcdNUohN.js +0 -1
- package/dist/Base/Primitive.d.ts +0 -39
- package/dist/Base/Slot.d.ts +0 -6
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-OEeJw0Sy.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BrQJfrgg.js +0 -159
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CTK5nNR6.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-7V57ztN4.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js +0 -52
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-C6Mdufam.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DNlvOQmv.js +0 -216
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Bo-zDAyc.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DmLhCPh4.js +0 -102
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CIkTvqD_.js +0 -165
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-T_L-D2SS.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DSZ8fAZ9.js +0 -91
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DwyinKNj.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js +0 -40
- package/dist/Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C56u1xaL.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-DlMeNk_1.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-7QB-mmyg.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CM6s5E6c.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-nGsyFkwr.js +0 -104
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-C4Ecg4iy.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-D0zx-hd_.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-cjYJlwXf.js +0 -413
- package/dist/Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js +0 -60
- package/dist/Menu.vue_vue_type_style_index_0_lang-DHGED80D.js +0 -481
- package/dist/Menu.vue_vue_type_style_index_0_lang-DU0Rexv8.js +0 -1
- package/dist/Primitive-BT1RjuGS.js +0 -1
- package/dist/Primitive-nOVjbfuc.js +0 -47
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DWfKIuDH.js +0 -100
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-s-m7W1By.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js +0 -41
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js +0 -66
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js +0 -85
- package/dist/Switch.vue_vue_type_style_index_0_lang-BzC8-ylY.js +0 -103
- package/dist/Switch.vue_vue_type_style_index_0_lang-DnNHGn1c.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-B-BPV_p7.js +0 -547
- package/dist/Tree.vue_vue_type_style_index_0_lang-BIpFWo5L.js +0 -1
|
@@ -1,10 +1,86 @@
|
|
|
1
1
|
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
-
export type IconButtonProps = Partial<Pick<BaseButtonProps, '
|
|
2
|
+
export type IconButtonProps = Partial<Pick<BaseButtonProps, 'class' | 'type' | 'color' | 'loading' | 'icon' | 'size'>>;
|
|
3
3
|
type IconButtonSlots = Omit<BaseButtonSlots, 'preIcon' | 'badge' | 'postIcon' | 'default'>;
|
|
4
|
-
declare
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
slots: Readonly<IconButtonSlots> & IconButtonSlots;
|
|
6
|
+
refs: {
|
|
7
|
+
buttonRef: ({
|
|
8
|
+
$: import('vue').ComponentInternalInstance;
|
|
9
|
+
$data: {};
|
|
10
|
+
$props: {
|
|
11
|
+
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
12
|
+
readonly text?: (string | number) | undefined;
|
|
13
|
+
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
14
|
+
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
15
|
+
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
16
|
+
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
17
|
+
readonly loading?: boolean | undefined;
|
|
18
|
+
readonly action?: boolean | undefined;
|
|
19
|
+
readonly active?: boolean | undefined;
|
|
20
|
+
readonly badgeText?: string | undefined;
|
|
21
|
+
readonly badgeIcon?: string | undefined;
|
|
22
|
+
readonly icon?: string | undefined;
|
|
23
|
+
readonly preIcon?: string | undefined;
|
|
24
|
+
readonly postIcon?: string | undefined;
|
|
25
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
26
|
+
$attrs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$refs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
$slots: Readonly<{
|
|
33
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
36
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
37
|
+
$host: Element | null;
|
|
38
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
39
|
+
$el: any;
|
|
40
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
41
|
+
focus(): void;
|
|
42
|
+
blur(): void;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
44
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
45
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
46
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
47
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
48
|
+
created?: (() => void) | (() => void)[];
|
|
49
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
50
|
+
mounted?: (() => void) | (() => void)[];
|
|
51
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
52
|
+
updated?: (() => void) | (() => void)[];
|
|
53
|
+
activated?: (() => void) | (() => void)[];
|
|
54
|
+
deactivated?: (() => void) | (() => void)[];
|
|
55
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
56
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
57
|
+
destroyed?: (() => void) | (() => void)[];
|
|
58
|
+
unmounted?: (() => void) | (() => void)[];
|
|
59
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
60
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
61
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
62
|
+
};
|
|
63
|
+
$forceUpdate: () => void;
|
|
64
|
+
$nextTick: typeof import('vue').nextTick;
|
|
65
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
66
|
+
} & Readonly<{
|
|
67
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
68
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
69
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color")> & import('vue').ShallowUnwrapRef<{
|
|
70
|
+
focus(): void;
|
|
71
|
+
blur(): void;
|
|
72
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
73
|
+
$slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
74
|
+
}) | null;
|
|
75
|
+
};
|
|
76
|
+
attrs: Partial<{}>;
|
|
77
|
+
};
|
|
78
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
79
|
+
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "icon" | "class" | "size" | "type" | "color" | "loading">>, {
|
|
5
80
|
focus(): void;
|
|
6
81
|
blur(): void;
|
|
7
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "
|
|
82
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "icon" | "class" | "size" | "type" | "color" | "loading">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
83
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
84
|
export default _default;
|
|
9
85
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
86
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-c16Xu6mm.js");exports.IconButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,12 +1,11 @@
|
|
|
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
2
|
import { o as y } from "./omit-BEkBWXra.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-D7irHU-6.js";
|
|
4
4
|
import { g as C } from "./options-JBqnVZUl.js";
|
|
5
5
|
const O = /* @__PURE__ */ p({
|
|
6
6
|
...C("IconButton", !1),
|
|
7
7
|
__name: "IconButton",
|
|
8
8
|
props: {
|
|
9
|
-
as: {},
|
|
10
9
|
class: {},
|
|
11
10
|
type: {},
|
|
12
11
|
color: {},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-BKPbELUG.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-CgEN8K4D.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"IconButton",props:{class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"variant","preIcon","postIcon","text","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(i.value,{variant:"icon",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
package/dist/Image/Image.d.ts
CHANGED
|
@@ -16,22 +16,30 @@ export interface ImageProps {
|
|
|
16
16
|
objectPosition?: 'center' | 'right' | 'left' | 'top' | 'bottom' | string;
|
|
17
17
|
fallbackDescription?: string;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
export interface ImageSlots {
|
|
20
|
+
fallback?: () => never;
|
|
21
|
+
actions?: () => never;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
slots: Readonly<ImageSlots> & ImageSlots;
|
|
25
|
+
refs: {};
|
|
26
|
+
attrs: Partial<{}>;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
20
30
|
error: () => any;
|
|
21
31
|
load: () => any;
|
|
22
32
|
}, string, import('vue').PublicProps, Readonly<ImageProps> & Readonly<{
|
|
23
33
|
onError?: (() => any) | undefined;
|
|
24
34
|
onLoad?: (() => any) | undefined;
|
|
25
35
|
}>, {
|
|
26
|
-
type: "horizontal" | "vertical";
|
|
27
36
|
src: string;
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
type: ImageType;
|
|
38
|
+
objectFit: "contain" | "cover" | "fill" | "none" | "scale-down" | string;
|
|
39
|
+
objectPosition: "center" | "right" | "left" | "top" | "bottom" | string;
|
|
30
40
|
fallbackDescription: string;
|
|
31
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
32
|
-
|
|
33
|
-
actions?(_: {}): any;
|
|
34
|
-
}>;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
43
|
export default _default;
|
|
36
44
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
45
|
new (): {
|
package/dist/Image/index.js.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-pkzjPQyu.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Image,
|
|
4
4
|
g as ImageAspectRatios,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Image.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Image.vue_vue_type_style_index_0_lang-Hg1jFz-L.js");exports.Image=e._sfc_main;exports.ImageAspectRatios=e.ImageAspectRatios;exports.ImageSizeRanges=e.ImageSizeRanges;exports.ImageTypes=e.ImageTypes;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),s=require("./class-CjZYGZDW.js"),w=require("class-variance-authority"),S=require("./isNumber-eaDdxhkG.js"),L=require("./Spinner.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),s=require("./class-CjZYGZDW.js"),w=require("class-variance-authority"),S=require("./isNumber-eaDdxhkG.js"),L=require("./Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js"),V=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),I=require("./options-B4iSAKol.js"),g=["xsm","sm","md","lg"],k=["1:1","4:3","3:2","16:9","2:1"],i=["vertical","horizontal"],j=["alt","src"],q=e.defineComponent({...I.getComponentOptions("Image"),__name:"Image",props:{src:{default:""},fallback:{},width:{},hovered:{type:Boolean},alt:{},class:{},imageCls:{},hoverCls:{},sizeRange:{},aspectRatio:{},type:{default:"horizontal"},objectFit:{default:"cover"},objectPosition:{default:"center"},fallbackDescription:{default:"This image couldn't be loaded."}},emits:["load","error"],setup(b,{emit:h}){const t=b,u=h,l=s.getBemBlock("image"),_=w.cva(l,{variants:{type:s.generateVariantClassList(i,l),aspectRatio:s.generateVariantClassList(k,l),sizeRange:s.generateVariantClassList(g,l),hovered:s.generateVariantClassList("hovered",l),loaded:s.generateVariantClassList("loaded",l),"fallback-content":s.generateVariantClassList("fallback-content",l)}}),m=e.useSlots(),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),d=e.toRef(()=>t.src);e.watch(d,()=>{o.value=!1,r.value=!1,n.value=!1});const c=e.toRef(()=>t.fallback);e.watch(c,()=>{r.value&&(r.value=!1,n.value=!1)});const f=e.computed(()=>o.value&&!m.fallback&&c.value?"fallback":"src"),y=e.computed(()=>f.value==="src"?d.value:c.value),z=()=>{n.value=!0,u("load")},C=()=>{f.value==="fallback"?(r.value=!0,n.value=!0):(o.value=!0,n.value=!0),u("error")},B=e.computed(()=>{const a=typeof t.width;if(["string","number"].includes(a))return a==="number"?`${t.width}px`:t.width}),E=e.computed(()=>{const a=String(t.width).replace("px",""),v=/^\d+(?:\.\d+)?$/,p=t.width&&v.test(a)?Number(a):t.width;return t.sizeRange==="xsm"||S.isNumber(p)&&p<100?"3xsm":"sm"}),R=e.computed(()=>{let a=`filter: ${n?"none":"blur(30px)"}`;return t.objectFit&&(a+=`;object-fit: ${t.objectFit}`),t.objectPosition&&(a+=`;object-position: ${t.objectPosition}`),a});return(a,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(_)({sizeRange:t.sizeRange,type:!t.type||!e.unref(i).includes(t.type)?"vertical":t.type,aspectRatio:t.aspectRatio,hovered:t.hovered,loaded:n.value,"fallback-content":o.value&&(!c.value||r.value)}),t.class]),style:e.normalizeStyle({width:B.value})},[o.value&&(!c.value||r.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback"))},[e.renderSlot(a.$slots,"fallback",{},()=>[e.createVNode(V._sfc_main,{size:"sm",icon:"tabler:photo-exclamation",class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback__icon"))},null,8,["class"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"fallback__text"))},e.toDisplayString(a.fallbackDescription),3)])],2)):(e.openBlock(),e.createElementBlock("img",{key:1,alt:a.alt,style:e.normalizeStyle(R.value),src:y.value,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"img"),a.imageCls]),onLoad:z,onError:C},null,46,j)),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L._sfc_main,{key:2,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"loading")),size:E.value},null,8,["class","size"])),n.value&&!o.value&&(a.hovered||m.actions)?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"hover_actions"),"pantograph-tokens dark",t.hoverCls])},[e.renderSlot(a.$slots,"actions")],2)):e.createCommentVNode("",!0)],6))}});exports.ImageAspectRatios=k;exports.ImageSizeRanges=g;exports.ImageTypes=i;exports._sfc_main=q;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as V, useSlots as D, ref as v, toRef as z, watch as _,
|
|
|
2
2
|
import { g as W, a as c, b as i } from "./class-DziTeW9B.js";
|
|
3
3
|
import { cva as q } from "class-variance-authority";
|
|
4
4
|
import { i as G } from "./isNumber-DlKYWCo3.js";
|
|
5
|
-
import { _ as H } from "./Spinner.vue_vue_type_style_index_0_lang-
|
|
5
|
+
import { _ as H } from "./Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js";
|
|
6
6
|
import { _ as J } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.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"], le = /* @__PURE__ */ V({
|
|
@@ -100,7 +100,7 @@ const M = ["xsm", "sm", "md", "lg"], Q = ["1:1", "4:3", "3:2", "16:9", "2:1"], S
|
|
|
100
100
|
class: o(t(i)(t(s), "loading")),
|
|
101
101
|
size: N.value
|
|
102
102
|
}, null, 8, ["class", "size"])),
|
|
103
|
-
l.value && !r.value && (a.hovered ||
|
|
103
|
+
l.value && !r.value && (a.hovered || g.actions) ? (m(), f("div", {
|
|
104
104
|
key: 3,
|
|
105
105
|
class: o([t(i)(t(s), "hover_actions"), "pantograph-tokens dark", e.hoverCls])
|
|
106
106
|
}, [
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { PrimitiveProps } from 'radix-vue';
|
|
2
1
|
import { Class } from '../types';
|
|
3
2
|
import { IndentLevelShowLine, IndentLevelSize } from './IndentLevel.model.js';
|
|
4
|
-
export interface IndentLevelProps
|
|
3
|
+
export interface IndentLevelProps {
|
|
5
4
|
size?: IndentLevelSize;
|
|
6
5
|
showLine?: IndentLevelShowLine | number | false;
|
|
7
6
|
children?: boolean;
|
|
@@ -12,13 +11,20 @@ export interface IndentLevelProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
|
12
11
|
branchIcon?: string;
|
|
13
12
|
noRotateBranch?: boolean;
|
|
14
13
|
}
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
slots: {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<IndentLevelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IndentLevelProps> & Readonly<{}>, {
|
|
23
|
+
size: IndentLevelSize;
|
|
24
|
+
level: number | string;
|
|
18
25
|
branchIcon: string;
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
20
|
-
|
|
21
|
-
}>;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
28
|
export default _default;
|
|
23
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
30
|
new (): {
|
|
@@ -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-ZZ1uEhji.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-DqqJTrDF.js");exports.IndentLevel=e._sfc_main;exports.IndentLevelShowLines=e.IndentLevelShowLines;exports.IndentLevelSizes=e.IndentLevelSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o=require("./class-CjZYGZDW.js"),h=require("class-variance-authority"),k=require("./options-B4iSAKol.js"),u=require("./Divider.vue_vue_type_style_index_0_lang-BELWThBf.js"),g=require("./Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js"),L=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js"),_=require("./isNumber-eaDdxhkG.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;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent as z, computed as v, createElementBlock as a, openBlock as o, normalizeClass as u, unref as l, Fragment as d, renderList as I, createBlock as f, createCommentVNode as m, createVNode as C, withCtx as N, renderSlot as S } from "vue";
|
|
2
|
+
import { g as $, a as r, b as g, c as R } from "./class-DziTeW9B.js";
|
|
3
|
+
import { cva as D } from "class-variance-authority";
|
|
4
|
+
import { g as E } from "./options-JBqnVZUl.js";
|
|
5
|
+
import { _ as L } from "./Divider.vue_vue_type_style_index_0_lang-CRs1KEcj.js";
|
|
6
|
+
import { _ as V } from "./Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js";
|
|
7
|
+
import { _ } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js";
|
|
8
|
+
import { i as M } from "./isNumber-DlKYWCo3.js";
|
|
9
|
+
const F = ["2xsm", "xsm", "sm"], Q = ["last", "all", "before", "self"], O = { key: 0 }, T = /* @__PURE__ */ z({
|
|
10
|
+
...E("IndentLevel"),
|
|
11
|
+
__name: "IndentLevel",
|
|
12
|
+
props: {
|
|
13
|
+
size: { default: "xsm" },
|
|
14
|
+
showLine: { type: [Number, Boolean] },
|
|
15
|
+
children: { type: Boolean },
|
|
16
|
+
level: { default: 1 },
|
|
17
|
+
expanded: { type: Boolean },
|
|
18
|
+
loading: { type: Boolean },
|
|
19
|
+
class: {},
|
|
20
|
+
branchIcon: { default: "tabler:chevron-right" },
|
|
21
|
+
noRotateBranch: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
setup(b) {
|
|
24
|
+
const n = b, s = $("indent_level"), p = g(s, "item"), y = g(p, "branch"), B = D(s, {
|
|
25
|
+
variants: {
|
|
26
|
+
size: r(F, s),
|
|
27
|
+
expanded: r("expanded", s),
|
|
28
|
+
branchSlot: r("branch-slot", s),
|
|
29
|
+
selfDivider: r("self-divider", s),
|
|
30
|
+
noRotateBranch: r("no-rotate-branch", s),
|
|
31
|
+
loading: r("loading", s)
|
|
32
|
+
}
|
|
33
|
+
}), i = v(() => {
|
|
34
|
+
const e = Number(n.level);
|
|
35
|
+
return e < 1 ? 1 : e % 10 === 0 ? e : Math.floor(e);
|
|
36
|
+
}), c = v(() => {
|
|
37
|
+
if (n.showLine)
|
|
38
|
+
return typeof n.showLine == "string" ? ["all", "self"].includes(n.showLine) : M(n.showLine) && n.showLine <= Number(n.level);
|
|
39
|
+
}), k = (e) => typeof n.showLine == "number" ? n.showLine <= Number(e) : !1;
|
|
40
|
+
return (e, h) => (o(), a("div", {
|
|
41
|
+
class: u([
|
|
42
|
+
l(B)({
|
|
43
|
+
size: e.size,
|
|
44
|
+
expanded: e.expanded,
|
|
45
|
+
noRotateBranch: e.noRotateBranch,
|
|
46
|
+
branchSlot: e.$slots.default,
|
|
47
|
+
selfDivider: c.value,
|
|
48
|
+
loading: e.loading
|
|
49
|
+
}),
|
|
50
|
+
n.class
|
|
51
|
+
])
|
|
52
|
+
}, [
|
|
53
|
+
(o(!0), a(d, null, I(i.value, (t) => (o(), a("div", {
|
|
54
|
+
class: u([l(p), { [l(R)(l(s), "expand")]: t === i.value }]),
|
|
55
|
+
key: t
|
|
56
|
+
}, [
|
|
57
|
+
t === i.value ? (o(), a(d, { key: 0 }, [
|
|
58
|
+
e.children ? (o(), a(d, { key: 0 }, [
|
|
59
|
+
e.loading ? (o(), f(V, {
|
|
60
|
+
key: 1,
|
|
61
|
+
size: e.size
|
|
62
|
+
}, null, 8, ["size"])) : (o(), a(d, { key: 0 }, [
|
|
63
|
+
e.expanded && c.value ? (o(), a("div", O)) : m("", !0),
|
|
64
|
+
C(_, {
|
|
65
|
+
size: e.size,
|
|
66
|
+
icon: e.branchIcon,
|
|
67
|
+
color: "none",
|
|
68
|
+
class: u(l(y)),
|
|
69
|
+
onClick: h[0] || (h[0] = (w) => e.$emit("toggleExpand", w))
|
|
70
|
+
}, {
|
|
71
|
+
icon: N(() => [
|
|
72
|
+
S(e.$slots, "default")
|
|
73
|
+
]),
|
|
74
|
+
_: 3
|
|
75
|
+
}, 8, ["size", "icon", "class"]),
|
|
76
|
+
e.expanded && c.value ? (o(), f(L, {
|
|
77
|
+
key: 1,
|
|
78
|
+
type: "vertical"
|
|
79
|
+
})) : m("", !0)
|
|
80
|
+
], 64))
|
|
81
|
+
], 64)) : m("", !0)
|
|
82
|
+
], 64)) : ["all", "before"].includes(e.showLine) || e.showLine === "last" && t === i.value - 1 || k(t) ? (o(), f(L, {
|
|
83
|
+
key: 1,
|
|
84
|
+
type: "vertical"
|
|
85
|
+
})) : m("", !0)
|
|
86
|
+
], 2))), 128))
|
|
87
|
+
], 2));
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
F as I,
|
|
92
|
+
T as _,
|
|
93
|
+
Q as a
|
|
94
|
+
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { BaseBadgeSlots, BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
2
2
|
import { BadgeColor } from '../Base/BaseBadge/BaseBadge.model.js';
|
|
3
|
-
export type IndicatorProps = Partial<Pick<BaseBadgeProps, '
|
|
3
|
+
export type IndicatorProps = Partial<Pick<BaseBadgeProps, 'class'>> & {
|
|
4
4
|
size?: 'tiny' | 'tinier';
|
|
5
5
|
color?: BadgeColor;
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
slots: Readonly<BaseBadgeSlots> & BaseBadgeSlots;
|
|
9
|
+
refs: {};
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<IndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
15
|
export default _default;
|
|
9
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
17
|
new (): {
|
|
@@ -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-BibzfVax.js");exports.Indicator=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { defineComponent as d, useAttrs as f, computed as s, useSlots as u, createBlock as g, openBlock as _, mergeProps as b, createSlots as y, renderList as C, withCtx as k, renderSlot as v, normalizeProps as x, guardReactiveProps as B } from "vue";
|
|
2
2
|
import { o as O } from "./omit-BEkBWXra.js";
|
|
3
|
-
import { a as P, _ as S } from "./BaseBadge.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { a as P, _ as S } from "./BaseBadge.vue_vue_type_style_index_0_lang-Bh1152XC.js";
|
|
4
4
|
import { g as $ } from "./options-JBqnVZUl.js";
|
|
5
5
|
import { getCssVar as n } from "@pantograph/tokens";
|
|
6
6
|
const w = /* @__PURE__ */ d({
|
|
7
7
|
...$("Indicator", !1),
|
|
8
8
|
__name: "Indicator",
|
|
9
9
|
props: {
|
|
10
|
-
as: {},
|
|
11
10
|
class: {},
|
|
12
11
|
size: {},
|
|
13
12
|
color: {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),_=require("./omit-BKPbELUG.js"),n=require("./BaseBadge.vue_vue_type_style_index_0_lang-BNs69VP4.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 s=i,a=e.useAttrs(),p=e.computed(()=>({bg:Object.fromEntries(n.BadgeColors.map(t=>[t,c.getCssVar(`${t}-5`)]))[s.color]??c.getCssVar("primary-5")})),u=e.computed(()=>({..._.omit(a,"type","text","icon","mode"),...s,...p.value})),m=e.useSlots();return(o,t)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps(u.value,{type:"minify",mode:"bold"}),e.createSlots({_:2},[e.renderList(Object.keys(m),r=>({name:r,fn:e.withCtx(l=>[e.renderSlot(o.$slots,r,e.normalizeProps(e.guardReactiveProps(l)))])}))]),1040))}});exports._sfc_main=g;
|
package/dist/Input/Input.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Class } from '../types';
|
|
2
2
|
import { InputSize, InputStatus } from './Input.model';
|
|
3
3
|
import { IconSize } from '../Icon/Icon.model';
|
|
4
|
+
import { HasRootInputEmits } from '../utils';
|
|
4
5
|
export interface InputProps {
|
|
5
6
|
id?: string;
|
|
6
7
|
maxlength?: number;
|
|
@@ -32,18 +33,24 @@ export interface InputSlots {
|
|
|
32
33
|
}) => never;
|
|
33
34
|
clearIcon?: () => never;
|
|
34
35
|
}
|
|
35
|
-
export interface InputEmits {
|
|
36
|
+
export interface InputEmits extends HasRootInputEmits {
|
|
36
37
|
(e: 'update:modelValue', value?: string): void;
|
|
37
38
|
(e: 'clear'): void;
|
|
38
|
-
(e: 'blur', event: InputEvent): void;
|
|
39
|
-
(e: 'focus', event: InputEvent): void;
|
|
40
39
|
}
|
|
41
|
-
declare
|
|
40
|
+
declare function __VLS_template(): {
|
|
41
|
+
slots: Readonly<InputSlots> & InputSlots;
|
|
42
|
+
refs: {
|
|
43
|
+
inputRef: HTMLInputElement;
|
|
44
|
+
};
|
|
45
|
+
attrs: Partial<{}>;
|
|
46
|
+
};
|
|
47
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
48
|
+
declare const __VLS_component: import('vue').DefineComponent<InputProps, {
|
|
42
49
|
input: import('vue').Ref<any, any>;
|
|
43
|
-
focus: (option?: FocusOptions
|
|
50
|
+
focus: (option?: FocusOptions) => any;
|
|
44
51
|
blur: () => any;
|
|
45
52
|
select: () => any;
|
|
46
|
-
setSelectionRange: (start: number, end: number, direction?: "
|
|
53
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => any;
|
|
47
54
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
48
55
|
blur: (event: InputEvent) => any;
|
|
49
56
|
focus: (event: InputEvent) => any;
|
|
@@ -58,7 +65,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
|
|
|
58
65
|
disabled: boolean;
|
|
59
66
|
clearIcon: string;
|
|
60
67
|
bordered: boolean;
|
|
61
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
69
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
62
70
|
export default _default;
|
|
63
71
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
72
|
new (): {
|
package/dist/Input/index.js.js
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-DVN491cI.js");exports.Input=e._sfc_main;exports.InputSizes=e.InputSizes;exports.InputStatuses=e.InputStatuses;exports.default=e._sfc_main;
|