@vc-shell/framework 1.0.62 → 1.0.63
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/framework.mjs +2738 -2712
- package/dist/ui/components/organisms/vc-table/index.d.ts +21 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +5 -0
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/ui/components/organisms/vc-table/vc-table.vue +15 -10
|
@@ -127,6 +127,9 @@ export declare const VcTable: {
|
|
|
127
127
|
type: import("vue").PropType<string>;
|
|
128
128
|
required: true;
|
|
129
129
|
};
|
|
130
|
+
bulkDelete: {
|
|
131
|
+
type: import("vue").PropType<boolean>;
|
|
132
|
+
};
|
|
130
133
|
}>> & {
|
|
131
134
|
onHeaderClick?: (value: Record<string, unknown>) => any;
|
|
132
135
|
"onScroll:ptr"?: () => any;
|
|
@@ -139,6 +142,7 @@ export declare const VcTable: {
|
|
|
139
142
|
dropIndex: number;
|
|
140
143
|
value: import("./vc-table.vue").TableItemType[];
|
|
141
144
|
}) => any;
|
|
145
|
+
"onBulk:delete"?: () => any;
|
|
142
146
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "footer" | "header" | "expanded" | "items" | "totalCount" | "pages" | "totalLabel" | "currentPage" | "searchPlaceholder" | "empty" | "notfound" | "activeFilterCount" | "resizableColumns" | "reorderableColumns">;
|
|
143
147
|
$attrs: {
|
|
144
148
|
[x: string]: unknown;
|
|
@@ -155,7 +159,7 @@ export declare const VcTable: {
|
|
|
155
159
|
dragIndex: number;
|
|
156
160
|
dropIndex: number;
|
|
157
161
|
value: import("./vc-table.vue").TableItemType[];
|
|
158
|
-
}) => void);
|
|
162
|
+
}) => void) & ((event: "bulk:delete") => void);
|
|
159
163
|
$el: any;
|
|
160
164
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
161
165
|
sort: {
|
|
@@ -265,6 +269,9 @@ export declare const VcTable: {
|
|
|
265
269
|
type: import("vue").PropType<string>;
|
|
266
270
|
required: true;
|
|
267
271
|
};
|
|
272
|
+
bulkDelete: {
|
|
273
|
+
type: import("vue").PropType<boolean>;
|
|
274
|
+
};
|
|
268
275
|
}>> & {
|
|
269
276
|
onHeaderClick?: (value: Record<string, unknown>) => any;
|
|
270
277
|
"onScroll:ptr"?: () => any;
|
|
@@ -277,6 +284,7 @@ export declare const VcTable: {
|
|
|
277
284
|
dropIndex: number;
|
|
278
285
|
value: import("./vc-table.vue").TableItemType[];
|
|
279
286
|
}) => any;
|
|
287
|
+
"onBulk:delete"?: () => any;
|
|
280
288
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
281
289
|
paginationClick: (page: number) => void;
|
|
282
290
|
} & {
|
|
@@ -295,6 +303,8 @@ export declare const VcTable: {
|
|
|
295
303
|
dropIndex: number;
|
|
296
304
|
value: import("./vc-table.vue").TableItemType[];
|
|
297
305
|
}) => void;
|
|
306
|
+
} & {
|
|
307
|
+
"bulk:delete": () => void;
|
|
298
308
|
}, string, {
|
|
299
309
|
footer: boolean;
|
|
300
310
|
header: boolean;
|
|
@@ -438,6 +448,9 @@ export declare const VcTable: {
|
|
|
438
448
|
type: import("vue").PropType<string>;
|
|
439
449
|
required: true;
|
|
440
450
|
};
|
|
451
|
+
bulkDelete: {
|
|
452
|
+
type: import("vue").PropType<boolean>;
|
|
453
|
+
};
|
|
441
454
|
}>> & {
|
|
442
455
|
onHeaderClick?: (value: Record<string, unknown>) => any;
|
|
443
456
|
"onScroll:ptr"?: () => any;
|
|
@@ -450,6 +463,7 @@ export declare const VcTable: {
|
|
|
450
463
|
dropIndex: number;
|
|
451
464
|
value: import("./vc-table.vue").TableItemType[];
|
|
452
465
|
}) => any;
|
|
466
|
+
"onBulk:delete"?: () => any;
|
|
453
467
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
454
468
|
__isFragment?: never;
|
|
455
469
|
__isTeleport?: never;
|
|
@@ -562,6 +576,9 @@ export declare const VcTable: {
|
|
|
562
576
|
type: import("vue").PropType<string>;
|
|
563
577
|
required: true;
|
|
564
578
|
};
|
|
579
|
+
bulkDelete: {
|
|
580
|
+
type: import("vue").PropType<boolean>;
|
|
581
|
+
};
|
|
565
582
|
}>> & {
|
|
566
583
|
onHeaderClick?: (value: Record<string, unknown>) => any;
|
|
567
584
|
"onScroll:ptr"?: () => any;
|
|
@@ -574,6 +591,7 @@ export declare const VcTable: {
|
|
|
574
591
|
dropIndex: number;
|
|
575
592
|
value: import("./vc-table.vue").TableItemType[];
|
|
576
593
|
}) => any;
|
|
594
|
+
"onBulk:delete"?: () => any;
|
|
577
595
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
578
596
|
paginationClick: (page: number) => void;
|
|
579
597
|
} & {
|
|
@@ -592,6 +610,8 @@ export declare const VcTable: {
|
|
|
592
610
|
dropIndex: number;
|
|
593
611
|
value: import("./vc-table.vue").TableItemType[];
|
|
594
612
|
}) => void;
|
|
613
|
+
} & {
|
|
614
|
+
"bulk:delete": () => void;
|
|
595
615
|
}, string, {
|
|
596
616
|
footer: boolean;
|
|
597
617
|
header: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAA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
37
|
reorderableRows?: boolean;
|
|
38
38
|
stateKey: string;
|
|
39
|
+
bulkDelete?: boolean;
|
|
39
40
|
}
|
|
40
41
|
export interface Emits {
|
|
41
42
|
(event: "paginationClick", page: number): void;
|
|
@@ -49,6 +50,7 @@ export interface Emits {
|
|
|
49
50
|
dropIndex: number;
|
|
50
51
|
value: TableItemType[];
|
|
51
52
|
}): void;
|
|
53
|
+
(event: "bulk:delete"): void;
|
|
52
54
|
}
|
|
53
55
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
54
56
|
items: () => any[];
|
|
@@ -87,6 +89,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
87
89
|
dropIndex: number;
|
|
88
90
|
value: TableItemType[];
|
|
89
91
|
}) => void;
|
|
92
|
+
} & {
|
|
93
|
+
"bulk:delete": () => void;
|
|
90
94
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
91
95
|
items: () => any[];
|
|
92
96
|
totalLabel: string;
|
|
@@ -118,6 +122,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
118
122
|
dropIndex: number;
|
|
119
123
|
value: TableItemType[];
|
|
120
124
|
}) => any;
|
|
125
|
+
"onBulk:delete"?: () => any;
|
|
121
126
|
}, {
|
|
122
127
|
footer: boolean;
|
|
123
128
|
header: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI/E,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,M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G;yBACP,GAAG;sBACN,GAAG;uBACF,GAAG;;AAr+CpC,wBAwiDc;AACd,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;QACzD,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,GAAG,CAAC,CAAC,CAAC,CAAC;CACR,CAAC;AA6GN,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"main": "./dist/framework.mjs",
|
|
5
5
|
"module": "./dist/framework.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vue3-touch-events": "^4.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
58
|
-
"@vc-shell/config-generator": "^1.0.
|
|
57
|
+
"@vc-shell/api-client-generator": "^1.0.63",
|
|
58
|
+
"@vc-shell/config-generator": "^1.0.63",
|
|
59
59
|
"sass": "^1.49.0",
|
|
60
60
|
"typescript": "^4.9.5",
|
|
61
61
|
"url-pattern": "^1.0.3"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"access": "public",
|
|
65
65
|
"registry": "https://registry.npmjs.org/"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "6d7f0db6e68c798060068efaa6d630bd6be16f5c"
|
|
68
68
|
}
|
|
@@ -201,9 +201,9 @@
|
|
|
201
201
|
class="tw-w-0.5 tw-bg-[#41afe6] tw-h-full tw-absolute tw-top-0 tw-bottom-0 tw-z-[2] tw-hidden"
|
|
202
202
|
></div>
|
|
203
203
|
</thead>
|
|
204
|
-
|
|
204
|
+
<div
|
|
205
205
|
class="tw-h-[60px] tw-bg-[#dfeef9] tw-w-full tw-absolute tw-flex"
|
|
206
|
-
v-if="allSelected"
|
|
206
|
+
v-if="bulkDelete && allSelected"
|
|
207
207
|
>
|
|
208
208
|
<div class="tw-w-full tw-flex tw-items-center tw-justify-center">
|
|
209
209
|
<div>
|
|
@@ -224,11 +224,11 @@
|
|
|
224
224
|
>
|
|
225
225
|
</div>
|
|
226
226
|
</div>
|
|
227
|
-
</div>
|
|
227
|
+
</div>
|
|
228
228
|
<tbody
|
|
229
229
|
v-if="items"
|
|
230
230
|
class="vc-table__body"
|
|
231
|
-
:class="{ 'tw-translate-y-[60px]': allSelected }"
|
|
231
|
+
:class="{ 'tw-translate-y-[60px]': bulkDelete && allSelected }"
|
|
232
232
|
>
|
|
233
233
|
<tr
|
|
234
234
|
v-for="(item, itemIndex) in items"
|
|
@@ -475,6 +475,7 @@ export interface Props {
|
|
|
475
475
|
reorderableColumns?: boolean;
|
|
476
476
|
reorderableRows?: boolean;
|
|
477
477
|
stateKey: string;
|
|
478
|
+
bulkDelete?: boolean;
|
|
478
479
|
}
|
|
479
480
|
|
|
480
481
|
export interface Emits {
|
|
@@ -485,6 +486,7 @@ export interface Emits {
|
|
|
485
486
|
(event: "itemClick", item: TableItemType): void;
|
|
486
487
|
(event: "scroll:ptr"): void;
|
|
487
488
|
(event: "row:reorder", args: { dragIndex: number; dropIndex: number; value: TableItemType[] }): void;
|
|
489
|
+
(event: "bulk:delete"): void;
|
|
488
490
|
}
|
|
489
491
|
|
|
490
492
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -652,13 +654,16 @@ watch(
|
|
|
652
654
|
{ deep: true, immediate: true }
|
|
653
655
|
);
|
|
654
656
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
+
function handleBulkSelection() {
|
|
658
|
+
bulkSelected.value = !bulkSelected.value;
|
|
659
|
+
|
|
660
|
+
if (!bulkSelected.value) {
|
|
661
|
+
selection.value = [];
|
|
662
|
+
return;
|
|
663
|
+
}
|
|
657
664
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
// }
|
|
661
|
-
// }
|
|
665
|
+
emit("bulk:delete");
|
|
666
|
+
}
|
|
662
667
|
|
|
663
668
|
function isSelected(item: TableItemType) {
|
|
664
669
|
return selection.value.indexOf(item) > -1;
|