@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.
Files changed (119) hide show
  1. package/dist/index.cjs.js +12 -14
  2. package/dist/index.mjs +7555 -8466
  3. package/dist/src/custom/components/AdminElementEditor.vue.d.ts +6 -0
  4. package/dist/src/custom/components/AdminToolbar.vue.d.ts +16 -0
  5. package/dist/src/custom/components/AdminToolbarView.vue.d.ts +10 -0
  6. package/dist/src/custom/components/CustomDashboard.vue.d.ts +4 -0
  7. package/dist/src/custom/components/admin/Transformer.vue.d.ts +16 -0
  8. package/dist/src/custom/components/admin/element-setting-views/Button.vue.d.ts +2 -0
  9. package/dist/src/custom/components/admin/element-setting-views/Checkbox.vue.d.ts +2 -0
  10. package/dist/src/custom/components/admin/element-setting-views/Label.vue.d.ts +2 -0
  11. package/dist/src/custom/components/admin/element-setting-views/Radios.vue.d.ts +2 -0
  12. package/dist/src/custom/components/admin/element-setting-views/Select.vue.d.ts +2 -0
  13. package/dist/src/custom/components/admin/element-setting-views/Text.vue.d.ts +2 -0
  14. package/dist/src/custom/components/admin/element-setting-views/Textarea.vue.d.ts +2 -0
  15. package/dist/src/custom/components/admin/element-setting-views/Textfield.vue.d.ts +2 -0
  16. package/dist/src/custom/components/admin/element-setting-views/index.d.ts +11 -0
  17. package/dist/src/custom/components/admin/setting-views/ApiActionsView.vue.d.ts +2 -0
  18. package/dist/src/custom/components/admin/setting-views/HistoryView.vue.d.ts +2 -0
  19. package/dist/src/custom/components/admin/setting-views/NewElementView.vue.d.ts +2 -0
  20. package/dist/src/custom/components/admin/setting-views/VariablesView.vue.d.ts +2 -0
  21. package/dist/src/custom/components/admin/setting-views/new-element-view/DraggableElement.vue.d.ts +29 -0
  22. package/dist/src/custom/components/admin/setting-views/variables-view/ApiActionVariables.vue.d.ts +2 -0
  23. package/dist/src/custom/components/admin/setting-views/variables-view/RouteQueryParams.vue.d.ts +2 -0
  24. package/dist/src/custom/components/admin/setting-views/variables-view/Transformers.vue.d.ts +2 -0
  25. package/dist/src/custom/components/admin/setting-views/variables-view/Variables.vue.d.ts +2 -0
  26. package/dist/src/custom/components/elements/button/Button.vue.d.ts +40 -0
  27. package/dist/src/custom/components/elements/button/index.d.ts +1 -0
  28. package/dist/src/custom/components/elements/checkbox/Checkbox.vue.d.ts +28 -0
  29. package/dist/src/custom/components/elements/checkbox/index.d.ts +1 -0
  30. package/dist/src/custom/components/elements/file/File.vue.d.ts +2 -0
  31. package/dist/src/custom/components/elements/file/index.d.ts +1 -0
  32. package/dist/src/custom/components/elements/images/Images.vue.d.ts +2 -0
  33. package/dist/src/custom/components/elements/images/index.d.ts +1 -0
  34. package/dist/src/custom/components/elements/items/Items.vue.d.ts +2 -0
  35. package/dist/src/custom/components/elements/items/index.d.ts +1 -0
  36. package/dist/src/custom/components/elements/label/Label.vue.d.ts +14 -0
  37. package/dist/src/custom/components/elements/label/index.d.ts +1 -0
  38. package/dist/src/custom/components/elements/location/Location.vue.d.ts +2 -0
  39. package/dist/src/custom/components/elements/location/index.d.ts +1 -0
  40. package/dist/src/custom/components/elements/radios/Radios.vue.d.ts +44 -0
  41. package/dist/src/custom/components/elements/radios/index.d.ts +1 -0
  42. package/dist/src/custom/components/elements/richtext/RichText.vue.d.ts +2 -0
  43. package/dist/src/custom/components/elements/richtext/index.d.ts +1 -0
  44. package/dist/src/custom/components/elements/select/Select.vue.d.ts +44 -0
  45. package/dist/src/custom/components/elements/select/index.d.ts +1 -0
  46. package/dist/src/custom/components/elements/text/Text.vue.d.ts +14 -0
  47. package/dist/src/custom/components/elements/text/index.d.ts +1 -0
  48. package/dist/src/custom/components/elements/textarea/Textarea.vue.d.ts +31 -0
  49. package/dist/src/custom/components/elements/textarea/index.d.ts +1 -0
  50. package/dist/src/custom/components/elements/textfield/Textfield.vue.d.ts +31 -0
  51. package/dist/src/custom/components/elements/textfield/index.d.ts +1 -0
  52. package/dist/src/custom/composables/useTable.d.ts +3 -0
  53. package/dist/src/custom/config.d.ts +2 -0
  54. package/dist/src/custom/index.d.ts +38 -0
  55. package/dist/src/custom/index.vue.d.ts +22 -0
  56. package/dist/src/custom/metadata.d.ts +2 -0
  57. package/dist/src/custom/pages/View.vue.d.ts +14 -0
  58. package/dist/src/custom/permissions.d.ts +1 -0
  59. package/dist/src/custom/routes.d.ts +15 -0
  60. package/dist/src/custom/stores/useTableStore.d.ts +5 -0
  61. package/dist/src/custom/tools.d.ts +1 -0
  62. package/dist/src/custom/types.d.ts +0 -0
  63. package/dist/src/index.d.ts +3 -0
  64. package/dist/src/lib/dateRangePresets.d.ts +13 -0
  65. package/dist/src/lib/interpolation.d.ts +8 -0
  66. package/dist/src/lib/utils.d.ts +6 -0
  67. package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
  68. package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
  69. package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
  70. package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
  71. package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
  72. package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
  73. package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
  74. package/dist/src/products/components/detail/variants/Options.vue.d.ts +30 -0
  75. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +26 -0
  76. package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
  77. package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
  78. package/dist/src/products/composables/useTable.d.ts +3 -0
  79. package/dist/src/products/config.d.ts +59 -0
  80. package/dist/src/products/index.d.ts +98 -0
  81. package/dist/src/products/index.vue.d.ts +22 -0
  82. package/dist/src/products/metadata.d.ts +2 -0
  83. package/dist/src/products/pages/Detail.vue.d.ts +14 -0
  84. package/dist/src/products/pages/Overview.vue.d.ts +16 -0
  85. package/dist/src/products/permissions.d.ts +5 -0
  86. package/dist/src/products/routes.d.ts +15 -0
  87. package/dist/src/products/stores/useTableStore.d.ts +5 -0
  88. package/dist/src/products/tools.d.ts +25 -0
  89. package/dist/src/products/types.d.ts +64 -0
  90. package/dist/src/table/components/ColumnDropdown.vue.d.ts +2 -0
  91. package/dist/src/table/components/ColumnEditorDialog.vue.d.ts +34 -0
  92. package/dist/src/table/components/DataTable.vue.d.ts +6 -0
  93. package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
  94. package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
  95. package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
  96. package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
  97. package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
  98. package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
  99. package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
  100. package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
  101. package/dist/src/table/components/search/Search.vue.d.ts +2 -0
  102. package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
  103. package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
  104. package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
  105. package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
  106. package/dist/src/table/composables/useTable.d.ts +3 -0
  107. package/dist/src/table/config.d.ts +2 -0
  108. package/dist/src/table/index.d.ts +70 -0
  109. package/dist/src/table/index.vue.d.ts +22 -0
  110. package/dist/src/table/metadata.d.ts +2 -0
  111. package/dist/src/table/pages/TableView.vue.d.ts +42 -0
  112. package/dist/src/table/permissions.d.ts +5 -0
  113. package/dist/src/table/routes.d.ts +43 -0
  114. package/dist/src/table/stores/useTableStore.d.ts +5 -0
  115. package/dist/src/table/tools.d.ts +25 -0
  116. package/dist/src/table/types.d.ts +0 -0
  117. package/dist/src/types/global-composables.d.ts +13 -0
  118. package/dist/src/types/index.d.ts +60 -0
  119. 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,3 @@
1
+ export declare function useTable(): {
2
+ data: import('vue').Ref<never[], never[]>;
3
+ };
@@ -0,0 +1,2 @@
1
+ import { ModuleSettingsSchema } from '../types';
2
+ export declare const config: ModuleSettingsSchema;
@@ -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,2 @@
1
+ import { ModuleMetadata } from '../types';
2
+ export declare const metadata: ModuleMetadata;
@@ -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,5 @@
1
+ export declare const permissions: {
2
+ key: string;
3
+ name: string;
4
+ description: string;
5
+ }[];
@@ -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,5 @@
1
+ export declare const useTableStore: import('pinia').StoreDefinition<"table", {
2
+ data: never[];
3
+ }, {}, {
4
+ fetchData(): Promise<void>;
5
+ }>;
@@ -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.13",
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",