@oneclick.dev/cms-core-modules 0.0.13 → 0.0.15
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/index.cjs.js +12 -14
- package/dist/index.mjs +7555 -8466
- package/dist/src/custom/components/AdminElementEditor.vue.d.ts +6 -0
- package/dist/src/custom/components/AdminToolbar.vue.d.ts +16 -0
- package/dist/src/custom/components/AdminToolbarView.vue.d.ts +10 -0
- package/dist/src/custom/components/CustomDashboard.vue.d.ts +4 -0
- package/dist/src/custom/components/admin/Transformer.vue.d.ts +16 -0
- package/dist/src/custom/components/admin/element-setting-views/Button.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/Checkbox.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/Label.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/Radios.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/Select.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/Text.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/Textarea.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/Textfield.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/element-setting-views/index.d.ts +11 -0
- package/dist/src/custom/components/admin/setting-views/ApiActionsView.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/setting-views/HistoryView.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/setting-views/NewElementView.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/setting-views/VariablesView.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/setting-views/new-element-view/DraggableElement.vue.d.ts +29 -0
- package/dist/src/custom/components/admin/setting-views/variables-view/ApiActionVariables.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/setting-views/variables-view/RouteQueryParams.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/setting-views/variables-view/Transformers.vue.d.ts +2 -0
- package/dist/src/custom/components/admin/setting-views/variables-view/Variables.vue.d.ts +2 -0
- package/dist/src/custom/components/elements/button/Button.vue.d.ts +40 -0
- package/dist/src/custom/components/elements/button/index.d.ts +1 -0
- package/dist/src/custom/components/elements/checkbox/Checkbox.vue.d.ts +28 -0
- package/dist/src/custom/components/elements/checkbox/index.d.ts +1 -0
- package/dist/src/custom/components/elements/file/File.vue.d.ts +2 -0
- package/dist/src/custom/components/elements/file/index.d.ts +1 -0
- package/dist/src/custom/components/elements/images/Images.vue.d.ts +2 -0
- package/dist/src/custom/components/elements/images/index.d.ts +1 -0
- package/dist/src/custom/components/elements/items/Items.vue.d.ts +2 -0
- package/dist/src/custom/components/elements/items/index.d.ts +1 -0
- package/dist/src/custom/components/elements/label/Label.vue.d.ts +14 -0
- package/dist/src/custom/components/elements/label/index.d.ts +1 -0
- package/dist/src/custom/components/elements/location/Location.vue.d.ts +2 -0
- package/dist/src/custom/components/elements/location/index.d.ts +1 -0
- package/dist/src/custom/components/elements/radios/Radios.vue.d.ts +44 -0
- package/dist/src/custom/components/elements/radios/index.d.ts +1 -0
- package/dist/src/custom/components/elements/richtext/RichText.vue.d.ts +2 -0
- package/dist/src/custom/components/elements/richtext/index.d.ts +1 -0
- package/dist/src/custom/components/elements/select/Select.vue.d.ts +44 -0
- package/dist/src/custom/components/elements/select/index.d.ts +1 -0
- package/dist/src/custom/components/elements/text/Text.vue.d.ts +14 -0
- package/dist/src/custom/components/elements/text/index.d.ts +1 -0
- package/dist/src/custom/components/elements/textarea/Textarea.vue.d.ts +31 -0
- package/dist/src/custom/components/elements/textarea/index.d.ts +1 -0
- package/dist/src/custom/components/elements/textfield/Textfield.vue.d.ts +31 -0
- package/dist/src/custom/components/elements/textfield/index.d.ts +1 -0
- package/dist/src/custom/composables/useTable.d.ts +3 -0
- package/dist/src/custom/config.d.ts +2 -0
- package/dist/src/custom/index.d.ts +38 -0
- package/dist/src/custom/index.vue.d.ts +22 -0
- package/dist/src/custom/metadata.d.ts +2 -0
- package/dist/src/custom/pages/View.vue.d.ts +14 -0
- package/dist/src/custom/permissions.d.ts +1 -0
- package/dist/src/custom/routes.d.ts +15 -0
- package/dist/src/custom/stores/useTableStore.d.ts +5 -0
- package/dist/src/custom/tools.d.ts +1 -0
- package/dist/src/custom/types.d.ts +0 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/lib/dateRangePresets.d.ts +13 -0
- package/dist/src/lib/interpolation.d.ts +8 -0
- package/dist/src/lib/utils.d.ts +6 -0
- package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
- package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
- package/dist/src/products/components/detail/variants/Options.vue.d.ts +30 -0
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +26 -0
- package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/products/composables/useTable.d.ts +3 -0
- package/dist/src/products/config.d.ts +59 -0
- package/dist/src/products/index.d.ts +98 -0
- package/dist/src/products/index.vue.d.ts +22 -0
- package/dist/src/products/metadata.d.ts +2 -0
- package/dist/src/products/pages/Detail.vue.d.ts +14 -0
- package/dist/src/products/pages/Overview.vue.d.ts +16 -0
- package/dist/src/products/permissions.d.ts +5 -0
- package/dist/src/products/routes.d.ts +15 -0
- package/dist/src/products/stores/useTableStore.d.ts +5 -0
- package/dist/src/products/tools.d.ts +25 -0
- package/dist/src/products/types.d.ts +64 -0
- package/dist/src/table/components/ColumnDropdown.vue.d.ts +2 -0
- package/dist/src/table/components/ColumnEditorDialog.vue.d.ts +34 -0
- package/dist/src/table/components/DataTable.vue.d.ts +6 -0
- package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
- package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
- package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
- package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
- package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
- package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
- package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
- package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
- package/dist/src/table/components/search/Search.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
- package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
- package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
- package/dist/src/table/composables/useTable.d.ts +3 -0
- package/dist/src/table/config.d.ts +2 -0
- package/dist/src/table/index.d.ts +70 -0
- package/dist/src/table/index.vue.d.ts +22 -0
- package/dist/src/table/metadata.d.ts +2 -0
- package/dist/src/table/pages/TableView.vue.d.ts +42 -0
- package/dist/src/table/permissions.d.ts +5 -0
- package/dist/src/table/routes.d.ts +43 -0
- package/dist/src/table/stores/useTableStore.d.ts +5 -0
- package/dist/src/table/tools.d.ts +25 -0
- package/dist/src/table/types.d.ts +0 -0
- package/dist/src/types/global-composables.d.ts +13 -0
- package/dist/src/types/index.d.ts +60 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
openDialog: (stat?: any) => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
filterAdded: (...args: any[]) => void;
|
|
5
|
+
filterEdited: (...args: any[]) => void;
|
|
6
|
+
filterRemoved: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
8
|
+
onFilterAdded?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onFilterEdited?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
onFilterRemoved?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
filterDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
3
|
+
onFilterAdded?: ((...args: any[]) => any) | undefined;
|
|
4
|
+
onFilterEdited?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
onFilterRemoved?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
openDialog: (stat?: any) => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
filterAdded: (...args: any[]) => void;
|
|
10
|
+
filterEdited: (...args: any[]) => void;
|
|
11
|
+
filterRemoved: (...args: any[]) => void;
|
|
12
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
13
|
+
P: {};
|
|
14
|
+
B: {};
|
|
15
|
+
D: {};
|
|
16
|
+
C: {};
|
|
17
|
+
M: {};
|
|
18
|
+
Defaults: {};
|
|
19
|
+
}, Readonly<{}> & Readonly<{
|
|
20
|
+
onFilterAdded?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onFilterEdited?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onFilterRemoved?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
openDialog: (stat?: any) => void;
|
|
25
|
+
}, {}, {}, {}, {}> | null;
|
|
26
|
+
}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
savedField: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
saved: (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
savedField: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
onSaved?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
savedField: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
openDialog: (stat?: any) => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
statAdded: (...args: any[]) => void;
|
|
5
|
+
statEdited: (...args: any[]) => void;
|
|
6
|
+
statRemoved: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
8
|
+
onStatAdded?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onStatEdited?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
onStatRemoved?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
statDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
3
|
+
onStatAdded?: ((...args: any[]) => any) | undefined;
|
|
4
|
+
onStatEdited?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
onStatRemoved?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
openDialog: (stat?: any) => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
statAdded: (...args: any[]) => void;
|
|
10
|
+
statEdited: (...args: any[]) => void;
|
|
11
|
+
statRemoved: (...args: any[]) => void;
|
|
12
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
13
|
+
P: {};
|
|
14
|
+
B: {};
|
|
15
|
+
D: {};
|
|
16
|
+
C: {};
|
|
17
|
+
M: {};
|
|
18
|
+
Defaults: {};
|
|
19
|
+
}, Readonly<{}> & Readonly<{
|
|
20
|
+
onStatAdded?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onStatEdited?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onStatRemoved?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
openDialog: (stat?: any) => void;
|
|
25
|
+
}, {}, {}, {}, {}> | null;
|
|
26
|
+
}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const table: {
|
|
2
|
+
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
config: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
routes: {
|
|
8
|
+
type: import('vue').PropType<ModuleRoute[]>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
config: {
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
routes: {
|
|
17
|
+
type: import('vue').PropType<ModuleRoute[]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
metadata: import('../types').ModuleMetadata;
|
|
22
|
+
config: import('../types').ModuleSettingsSchema;
|
|
23
|
+
routes: {
|
|
24
|
+
path: string;
|
|
25
|
+
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
26
|
+
config: {
|
|
27
|
+
type: import('vue').PropType<ConfigValues>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
|
+
config: {
|
|
32
|
+
type: import('vue').PropType<ConfigValues>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
36
|
+
container: HTMLDivElement;
|
|
37
|
+
tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
38
|
+
saveSortMode: () => Promise<void>;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
40
|
+
dragContainer: unknown;
|
|
41
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
42
|
+
P: {};
|
|
43
|
+
B: {};
|
|
44
|
+
D: {};
|
|
45
|
+
C: {};
|
|
46
|
+
M: {};
|
|
47
|
+
Defaults: {};
|
|
48
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
49
|
+
saveSortMode: () => Promise<void>;
|
|
50
|
+
}, {}, {}, {}, {}> | null;
|
|
51
|
+
ctaActionDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
52
|
+
openDialog: () => void;
|
|
53
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
54
|
+
P: {};
|
|
55
|
+
B: {};
|
|
56
|
+
D: {};
|
|
57
|
+
C: {};
|
|
58
|
+
M: {};
|
|
59
|
+
Defaults: {};
|
|
60
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
61
|
+
openDialog: () => void;
|
|
62
|
+
}, {}, {}, {}, {}> | null;
|
|
63
|
+
}, any>;
|
|
64
|
+
}[];
|
|
65
|
+
permissions: {
|
|
66
|
+
key: string;
|
|
67
|
+
name: string;
|
|
68
|
+
description: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ModuleRoute } from '~/types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
config: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
routes: {
|
|
9
|
+
type: PropType<ModuleRoute[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
config: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
routes: {
|
|
18
|
+
type: PropType<ModuleRoute[]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ConfigValues } from '../config';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
config: {
|
|
5
|
+
type: PropType<ConfigValues>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
config: {
|
|
10
|
+
type: PropType<ConfigValues>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
14
|
+
container: HTMLDivElement;
|
|
15
|
+
tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
16
|
+
saveSortMode: () => Promise<void>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
|
+
dragContainer: unknown;
|
|
19
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
20
|
+
P: {};
|
|
21
|
+
B: {};
|
|
22
|
+
D: {};
|
|
23
|
+
C: {};
|
|
24
|
+
M: {};
|
|
25
|
+
Defaults: {};
|
|
26
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
27
|
+
saveSortMode: () => Promise<void>;
|
|
28
|
+
}, {}, {}, {}, {}> | null;
|
|
29
|
+
ctaActionDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
30
|
+
openDialog: () => void;
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
32
|
+
P: {};
|
|
33
|
+
B: {};
|
|
34
|
+
D: {};
|
|
35
|
+
C: {};
|
|
36
|
+
M: {};
|
|
37
|
+
Defaults: {};
|
|
38
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
39
|
+
openDialog: () => void;
|
|
40
|
+
}, {}, {}, {}, {}> | null;
|
|
41
|
+
}, any>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
path: string;
|
|
3
|
+
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
config: {
|
|
5
|
+
type: import('vue').PropType<ConfigValues>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
config: {
|
|
10
|
+
type: import('vue').PropType<ConfigValues>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
14
|
+
container: HTMLDivElement;
|
|
15
|
+
tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
16
|
+
saveSortMode: () => Promise<void>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
|
+
dragContainer: unknown;
|
|
19
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
20
|
+
P: {};
|
|
21
|
+
B: {};
|
|
22
|
+
D: {};
|
|
23
|
+
C: {};
|
|
24
|
+
M: {};
|
|
25
|
+
Defaults: {};
|
|
26
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
27
|
+
saveSortMode: () => Promise<void>;
|
|
28
|
+
}, {}, {}, {}, {}> | null;
|
|
29
|
+
ctaActionDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
30
|
+
openDialog: () => void;
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
32
|
+
P: {};
|
|
33
|
+
B: {};
|
|
34
|
+
D: {};
|
|
35
|
+
C: {};
|
|
36
|
+
M: {};
|
|
37
|
+
Defaults: {};
|
|
38
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
39
|
+
openDialog: () => void;
|
|
40
|
+
}, {}, {}, {}, {}> | null;
|
|
41
|
+
}, any>;
|
|
42
|
+
}[];
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const tools: {
|
|
2
|
+
getData: {
|
|
3
|
+
description: string;
|
|
4
|
+
params: {
|
|
5
|
+
size: {
|
|
6
|
+
type: string;
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
returns: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
filterTable: {
|
|
15
|
+
description: string;
|
|
16
|
+
params: {
|
|
17
|
+
filter: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
returns: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// import type { UseFirebaseIntegration } from '@oneclick.dev/cms-kit'
|
|
2
|
+
// import type { UseModulePermissions } from '../composables/module-helpers/useModulePermissions'
|
|
3
|
+
// import type { UseNavigateToModuleRoute } from '../composables/module-helpers/useNavigateToModuleRoute'
|
|
4
|
+
// import type { UseModuleStorage } from '../composables/module-helpers/useModuleStorage'
|
|
5
|
+
|
|
6
|
+
// declare global {
|
|
7
|
+
// const useFirebaseIntegration: UseFirebaseIntegration
|
|
8
|
+
// const useModulePermissions: UseModulePermissions
|
|
9
|
+
// const useNavigateToModuleRoute: UseNavigateToModuleRoute
|
|
10
|
+
// const useModuleStorage: UseModuleStorage
|
|
11
|
+
// }
|
|
12
|
+
|
|
13
|
+
// export {}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface CmsModuleEntry {
|
|
2
|
+
component: any;
|
|
3
|
+
metadata: ModuleMetadata;
|
|
4
|
+
config?: Record<string, any>;
|
|
5
|
+
}
|
|
6
|
+
export interface ModuleMetadata {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
version?: string;
|
|
11
|
+
author?: string;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
}
|
|
14
|
+
export type SettingType = 'checkbox' | 'input' | 'textarea' | 'select' | 'radio' | 'number' | 'color' | 'resource' | 'mediaSource' | 'dataQuery' | 'flow';
|
|
15
|
+
export interface BaseSetting<T> {
|
|
16
|
+
label: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
type: SettingType;
|
|
19
|
+
default?: T;
|
|
20
|
+
valuesFrom?: string;
|
|
21
|
+
visibility?: {
|
|
22
|
+
dependsOn: string[];
|
|
23
|
+
visibleWhen: Record<string, (val: any) => boolean>;
|
|
24
|
+
enabledWhen?: Record<string, (val: any) => boolean>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface SelectSetting extends BaseSetting<string> {
|
|
28
|
+
type: 'select' | 'radio';
|
|
29
|
+
options: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
34
|
+
export interface CheckboxSetting extends BaseSetting<boolean> {
|
|
35
|
+
type: 'checkbox';
|
|
36
|
+
}
|
|
37
|
+
export interface InputSetting extends BaseSetting<string> {
|
|
38
|
+
type: 'input' | 'textarea' | 'color';
|
|
39
|
+
}
|
|
40
|
+
export interface NumberSetting extends BaseSetting<number> {
|
|
41
|
+
type: 'number';
|
|
42
|
+
}
|
|
43
|
+
export interface ResourceSetting extends BaseSetting<string> {
|
|
44
|
+
type: 'resource';
|
|
45
|
+
accept?: string[];
|
|
46
|
+
}
|
|
47
|
+
export interface MediaSourceSetting extends BaseSetting<string> {
|
|
48
|
+
type: 'mediaSource';
|
|
49
|
+
multiple?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface DataQuerySetting extends BaseSetting<string> {
|
|
52
|
+
type: 'dataQuery';
|
|
53
|
+
accept?: string[];
|
|
54
|
+
integrationKey?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface FlowSetting extends BaseSetting<any> {
|
|
57
|
+
type: 'flow';
|
|
58
|
+
}
|
|
59
|
+
export type ModuleSetting = SelectSetting | CheckboxSetting | InputSetting | NumberSetting | ResourceSetting | MediaSourceSetting | DataQuerySetting | FlowSetting;
|
|
60
|
+
export type ModuleSettingsSchema = Record<string, ModuleSetting>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneclick.dev/cms-core-modules",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
24
|
+
"@oneclick.dev/cms-kit": "0.0.19",
|
|
24
25
|
"@internationalized/date": "^3.8.0",
|
|
25
|
-
"@oneclick.dev/cms-kit": "^0.0.2",
|
|
26
26
|
"@tanstack/vue-table": "^8.21.3",
|
|
27
27
|
"@vee-validate/zod": "^4.15.0",
|
|
28
28
|
"@vueuse/core": "^13.1.0",
|