@maltjoy/core-vue 3.21.0-next → 3.22.0
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/LICENSE +21 -0
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +40 -3
- package/dist/components/JoyCollapseItem/JoyCollapseItem.types.d.ts +2 -0
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +16 -0
- package/dist/joy-vue.js +655 -636
- package/dist/joy-vue.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +23 -24
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 maltcommunity / apps
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import VJoyCollapseItem from '../JoyCollapseItem/VJoyCollapseItem.vue';
|
|
3
|
-
import { nextTick } from 'vue';
|
|
4
3
|
declare function isItem(child: any): boolean;
|
|
5
4
|
declare function isOpen(item: typeof VJoyCollapseItem): any;
|
|
6
5
|
declare function getValForModel(item: typeof VJoyCollapseItem): any;
|
|
@@ -13,6 +12,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
12
|
type: PropType<string[]>;
|
|
14
13
|
default(): never[];
|
|
15
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Experimental: outline mode may be the default one in near future
|
|
17
|
+
*/
|
|
18
|
+
mode: {
|
|
19
|
+
type: PropType<"default" | "outline">;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
16
22
|
}, {
|
|
17
23
|
getValForModel: typeof getValForModel;
|
|
18
24
|
isItem: typeof isItem;
|
|
@@ -23,9 +29,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
23
29
|
$data: {};
|
|
24
30
|
$props: Partial<{
|
|
25
31
|
open: boolean;
|
|
32
|
+
mode: "default" | "outline";
|
|
26
33
|
}> & Omit<{
|
|
27
34
|
readonly header: string;
|
|
28
35
|
readonly open: boolean;
|
|
36
|
+
readonly mode: "default" | "outline";
|
|
29
37
|
readonly id?: string | undefined;
|
|
30
38
|
readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
31
39
|
"onCollapse-item:open"?: (() => any) | undefined;
|
|
@@ -45,10 +53,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
45
53
|
id: {
|
|
46
54
|
type: StringConstructor;
|
|
47
55
|
};
|
|
56
|
+
mode: {
|
|
57
|
+
type: PropType<"default" | "outline">;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
48
60
|
}>> & {
|
|
49
61
|
"onCollapse-item:open"?: (() => any) | undefined;
|
|
50
62
|
"onCollapse-item:close"?: (() => any) | undefined;
|
|
51
|
-
}, "open">;
|
|
63
|
+
}, "open" | "mode">;
|
|
52
64
|
$attrs: {
|
|
53
65
|
[x: string]: unknown;
|
|
54
66
|
};
|
|
@@ -77,6 +89,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
77
89
|
id: {
|
|
78
90
|
type: StringConstructor;
|
|
79
91
|
};
|
|
92
|
+
mode: {
|
|
93
|
+
type: PropType<"default" | "outline">;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
80
96
|
}>> & {
|
|
81
97
|
"onCollapse-item:open"?: (() => any) | undefined;
|
|
82
98
|
"onCollapse-item:close"?: (() => any) | undefined;
|
|
@@ -86,6 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
86
102
|
props: {
|
|
87
103
|
readonly header: string;
|
|
88
104
|
readonly open: boolean;
|
|
105
|
+
readonly mode: "default" | "outline";
|
|
89
106
|
readonly id?: string | undefined;
|
|
90
107
|
readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
91
108
|
};
|
|
@@ -94,6 +111,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
94
111
|
"collapse-item:close": () => void;
|
|
95
112
|
}, string, {
|
|
96
113
|
open: boolean;
|
|
114
|
+
mode: "default" | "outline";
|
|
97
115
|
}, {}, string, {}> & {
|
|
98
116
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
99
117
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -112,7 +130,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
112
130
|
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
113
131
|
};
|
|
114
132
|
$forceUpdate: () => void;
|
|
115
|
-
$nextTick: typeof nextTick;
|
|
133
|
+
$nextTick: typeof import("vue").nextTick;
|
|
116
134
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
117
135
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
118
136
|
header: {
|
|
@@ -129,6 +147,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
129
147
|
id: {
|
|
130
148
|
type: StringConstructor;
|
|
131
149
|
};
|
|
150
|
+
mode: {
|
|
151
|
+
type: PropType<"default" | "outline">;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
132
154
|
}>> & {
|
|
133
155
|
"onCollapse-item:open"?: (() => any) | undefined;
|
|
134
156
|
"onCollapse-item:close"?: (() => any) | undefined;
|
|
@@ -138,6 +160,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
138
160
|
props: {
|
|
139
161
|
readonly header: string;
|
|
140
162
|
readonly open: boolean;
|
|
163
|
+
readonly mode: "default" | "outline";
|
|
141
164
|
readonly id?: string | undefined;
|
|
142
165
|
readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
143
166
|
};
|
|
@@ -160,6 +183,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
160
183
|
id: {
|
|
161
184
|
type: StringConstructor;
|
|
162
185
|
};
|
|
186
|
+
mode: {
|
|
187
|
+
type: PropType<"default" | "outline">;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
163
190
|
}>> & {
|
|
164
191
|
"onCollapse-item:open"?: (() => any) | undefined;
|
|
165
192
|
"onCollapse-item:close"?: (() => any) | undefined;
|
|
@@ -169,6 +196,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
169
196
|
props: {
|
|
170
197
|
readonly header: string;
|
|
171
198
|
readonly open: boolean;
|
|
199
|
+
readonly mode: "default" | "outline";
|
|
172
200
|
readonly id?: string | undefined;
|
|
173
201
|
readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
174
202
|
};
|
|
@@ -177,6 +205,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
177
205
|
"collapse-item:close": () => void;
|
|
178
206
|
}, string, {
|
|
179
207
|
open: boolean;
|
|
208
|
+
mode: "default" | "outline";
|
|
180
209
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
181
210
|
$slots: Readonly<{
|
|
182
211
|
default: () => any;
|
|
@@ -195,9 +224,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
195
224
|
type: PropType<string[]>;
|
|
196
225
|
default(): never[];
|
|
197
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* Experimental: outline mode may be the default one in near future
|
|
229
|
+
*/
|
|
230
|
+
mode: {
|
|
231
|
+
type: PropType<"default" | "outline">;
|
|
232
|
+
default: string;
|
|
233
|
+
};
|
|
198
234
|
}>> & {
|
|
199
235
|
"onUpdate:modelValue"?: ((model: string[]) => any) | undefined;
|
|
200
236
|
}, {
|
|
237
|
+
mode: "default" | "outline";
|
|
201
238
|
accordion: boolean;
|
|
202
239
|
modelValue: string[];
|
|
203
240
|
}, {}>, Readonly<{
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import VJoyCollapseItem from './VJoyCollapseItem.vue';
|
|
2
2
|
export type TJoyCollapseItemProps = InstanceType<typeof VJoyCollapseItem>['$props'];
|
|
3
3
|
export type TJoyCollapseItems = TJoyCollapseItemProps[];
|
|
4
|
+
export declare const COLLAPSE_ITEM_MODES: readonly ["outline", "default"];
|
|
5
|
+
export type TJoyCollapseItemModes = (typeof COLLAPSE_ITEM_MODES)[number];
|
|
@@ -15,12 +15,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
id: {
|
|
16
16
|
type: StringConstructor;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Experimental: outline mode may be the default one in near future
|
|
20
|
+
*/
|
|
21
|
+
mode: {
|
|
22
|
+
type: PropType<"default" | "outline">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
18
25
|
}, {
|
|
19
26
|
isOpen: import("vue").Ref<boolean>;
|
|
20
27
|
onToggle: typeof onToggle;
|
|
21
28
|
props: {
|
|
22
29
|
readonly header: string;
|
|
23
30
|
readonly open: boolean;
|
|
31
|
+
readonly mode: "default" | "outline";
|
|
24
32
|
readonly id?: string | undefined;
|
|
25
33
|
readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
26
34
|
};
|
|
@@ -42,11 +50,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
50
|
id: {
|
|
43
51
|
type: StringConstructor;
|
|
44
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* Experimental: outline mode may be the default one in near future
|
|
55
|
+
*/
|
|
56
|
+
mode: {
|
|
57
|
+
type: PropType<"default" | "outline">;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
45
60
|
}>> & {
|
|
46
61
|
"onCollapse-item:open"?: (() => any) | undefined;
|
|
47
62
|
"onCollapse-item:close"?: (() => any) | undefined;
|
|
48
63
|
}, {
|
|
49
64
|
open: boolean;
|
|
65
|
+
mode: "default" | "outline";
|
|
50
66
|
}, {}>, Readonly<{
|
|
51
67
|
default: () => any;
|
|
52
68
|
'collapse-header-right'?: (() => any) | undefined;
|