@jsg-developer/vue-pack 0.0.2 → 0.0.4
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/DEPENDENCY-LICENSES.txt +1 -1
- package/dist/TabelData-CbLGhrj4.js +2266 -0
- package/dist/TabelData-DG4yH_Qq.cjs +1 -0
- package/dist/init.cjs.js +1 -1
- package/dist/init.es.js +1 -1
- package/dist/jsgd-vue-pack.cjs.js +1 -1
- package/dist/jsgd-vue-pack.es.js +6 -6
- package/dist/plugin/vue.cjs.js +1 -1
- package/dist/plugin/vue.es.js +16 -16
- package/dist/quill.snow-BmRPvQLR.cjs +15 -0
- package/dist/{quill.snow-CF-SW6JG.js → quill.snow-mC12o3kU.js} +2177 -2074
- package/dist/types/components/Form/FormFieldRenderer.vue.d.ts +1 -0
- package/dist/types/components/Form/FormModal.vue.d.ts +3 -1
- package/dist/types/components/Tabel/TabelData.vue.d.ts +11 -1
- package/dist/types/components/Tabel/composables/useDisplayHelpers.d.ts +21 -0
- package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts +1 -0
- package/dist/types/configs/types/props.types.d.ts +2 -0
- package/dist/types/configs/types/submit-options.types.d.ts +1 -0
- package/dist/types/configs/types/table-data.types.d.ts +8 -0
- package/dist/vue-pack.css +1 -1
- package/package.json +2 -2
- package/dist/TabelData.vue_vue_type_script_setup_true_lang-DcKNY6tx.js +0 -2164
- package/dist/TabelData.vue_vue_type_script_setup_true_lang-OEDcnffc.cjs +0 -1
- package/dist/quill.snow-Bv2PnGeu.cjs +0 -15
|
@@ -6,6 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
errors: Errors;
|
|
7
7
|
isUpdate?: boolean;
|
|
8
8
|
lang: SupportedLanguage;
|
|
9
|
+
demo?: boolean;
|
|
9
10
|
};
|
|
10
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
12
|
"push:errors": (message: string, key: string) => any;
|
|
@@ -7,5 +7,7 @@ declare const _default: import('vue').DefineComponent<FromModalProps, {}, {}, {}
|
|
|
7
7
|
onSubmit?: ((value: Record<string, any>) => any) | undefined;
|
|
8
8
|
onCancel?: (() => any) | undefined;
|
|
9
9
|
onDataChildRemove?: ((value: number[]) => any) | undefined;
|
|
10
|
-
}>, {
|
|
10
|
+
}>, {
|
|
11
|
+
demo: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
13
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Alert } from '../UI/Feedback/AlertApp.vue';
|
|
2
|
-
import { FormData, TabelDataProperty, Item } from '../../configs/types';
|
|
2
|
+
import { FormData, TabelDataProperty, Item, CustomAction } from '../../configs/types';
|
|
3
3
|
type __VLS_Props = TabelDataProperty<Item>;
|
|
4
4
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
create: () => any;
|
|
@@ -8,6 +8,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
8
8
|
edit: (value: FormData, id: string | number) => any;
|
|
9
9
|
show: (value: FormData, id: string | number) => any;
|
|
10
10
|
refreshData: () => any;
|
|
11
|
+
customAction: (payload: {
|
|
12
|
+
key: string;
|
|
13
|
+
item: Item;
|
|
14
|
+
}) => any;
|
|
11
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
16
|
onCreate?: (() => any) | undefined;
|
|
13
17
|
onDelete?: ((value: number) => any) | undefined;
|
|
@@ -15,9 +19,15 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
15
19
|
onEdit?: ((value: FormData, id: string | number) => any) | undefined;
|
|
16
20
|
onShow?: ((value: FormData, id: string | number) => any) | undefined;
|
|
17
21
|
onRefreshData?: (() => any) | undefined;
|
|
22
|
+
onCustomAction?: ((payload: {
|
|
23
|
+
key: string;
|
|
24
|
+
item: Item;
|
|
25
|
+
}) => any) | undefined;
|
|
18
26
|
}>, {
|
|
19
27
|
keys: import('../..').DataKeyConfig;
|
|
28
|
+
demo: boolean;
|
|
20
29
|
validation: import('../..').TabelValidationSchema<Item>;
|
|
30
|
+
customActions: CustomAction[];
|
|
21
31
|
feature: import('../..').TabelFeatureToggles;
|
|
22
32
|
pagination: import('../..').TabelPagination;
|
|
23
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { Item } from '../../../configs/types';
|
|
2
|
+
/**
|
|
3
|
+
* Memeriksa apakah nilai adalah URL gambar atau objek File gambar.
|
|
4
|
+
*/
|
|
2
5
|
export declare function isImage(value: any): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Memeriksa apakah nilai adalah URL file (non-gambar) atau objek File.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isFile(value: any): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Mendapatkan sumber URL yang valid untuk gambar, baik dari string maupun objek File.
|
|
12
|
+
*/
|
|
3
13
|
export declare function getImageSource(value: any): string;
|
|
14
|
+
/**
|
|
15
|
+
* Mendapatkan nama file dari URL atau objek File.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getFileName(value: string | File): string;
|
|
18
|
+
/**
|
|
19
|
+
* Memeriksa apakah nilai adalah array yang berisi gambar.
|
|
20
|
+
*/
|
|
4
21
|
export declare function isImageArray(value: any): boolean;
|
|
5
22
|
export declare function isColorArray(value: any): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Memeriksa apakah nilai adalah array yang berisi file.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isFileArray(value: any): boolean;
|
|
6
27
|
export declare function isColor(value: any): boolean;
|
|
7
28
|
export declare function isHtml(value: string): boolean;
|
|
8
29
|
export declare function displayItem(item: Item): Record<string, any>;
|
|
@@ -5,6 +5,7 @@ declare const _default: import('vue').DefineComponent<SelectDropdownProps, {}, {
|
|
|
5
5
|
"onUpdate:modelValue"?: ((value: string | number, key: string) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
id: string;
|
|
8
|
+
demo: boolean;
|
|
8
9
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
10
|
loader: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
10
11
|
onError?: (() => any) | undefined;
|
|
@@ -51,6 +51,7 @@ export interface SelectDropdownProps {
|
|
|
51
51
|
submitOption?: SubmitAuthOptionMap<Item>;
|
|
52
52
|
keys?: DataKeyConfig;
|
|
53
53
|
};
|
|
54
|
+
demo?: boolean;
|
|
54
55
|
lang?: SupportedLanguage;
|
|
55
56
|
}
|
|
56
57
|
export interface TextInputProps {
|
|
@@ -338,6 +339,7 @@ export interface FromModalProps {
|
|
|
338
339
|
schema: Schema;
|
|
339
340
|
isUpdate?: boolean;
|
|
340
341
|
lang?: SupportedLanguage;
|
|
342
|
+
demo?: boolean;
|
|
341
343
|
}
|
|
342
344
|
export interface ColorPickerProps {
|
|
343
345
|
id?: string;
|
|
@@ -111,15 +111,23 @@ export interface TabelEndpoints {
|
|
|
111
111
|
delete?: string;
|
|
112
112
|
deleteMany?: string;
|
|
113
113
|
}
|
|
114
|
+
export interface CustomAction {
|
|
115
|
+
key: string;
|
|
116
|
+
label: string;
|
|
117
|
+
icon?: string;
|
|
118
|
+
class?: string;
|
|
119
|
+
}
|
|
114
120
|
export interface TabelSharedConfig<Item> {
|
|
115
121
|
keys?: DataKeyConfig;
|
|
116
122
|
formDesign?: FormDesign;
|
|
117
123
|
submitOption?: SubmitAuthOptionMap<Item>;
|
|
124
|
+
customActions?: CustomAction[];
|
|
118
125
|
feature?: TabelFeatureToggles;
|
|
119
126
|
pagination?: TabelPagination;
|
|
120
127
|
validation?: TabelValidationSchema<Item>;
|
|
121
128
|
manual?: TabelManualControl;
|
|
122
129
|
endPoints?: TabelEndpoints;
|
|
130
|
+
demo?: boolean;
|
|
123
131
|
}
|
|
124
132
|
export interface TabelDataProperty<Item> extends TabelSharedConfig<Item> {
|
|
125
133
|
base: Omit<BaseConfig<Item>, 'data'>;
|