@oneclick.dev/cms-core-modules 0.0.11

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 (126) hide show
  1. package/README.md +1 -0
  2. package/dist/cms-core-modules.css +1 -0
  3. package/dist/index-BIlpXuWX.mjs +3430 -0
  4. package/dist/index-Ds7aKppr.js +1 -0
  5. package/dist/index.cjs.js +39 -0
  6. package/dist/index.mjs +21541 -0
  7. package/dist/src/custom/components/AdminElementEditor.vue.d.ts +6 -0
  8. package/dist/src/custom/components/AdminToolbar.vue.d.ts +16 -0
  9. package/dist/src/custom/components/AdminToolbarView.vue.d.ts +10 -0
  10. package/dist/src/custom/components/CustomDashboard.vue.d.ts +4 -0
  11. package/dist/src/custom/components/admin/Transformer.vue.d.ts +16 -0
  12. package/dist/src/custom/components/admin/element-setting-views/Button.vue.d.ts +2 -0
  13. package/dist/src/custom/components/admin/element-setting-views/Checkbox.vue.d.ts +2 -0
  14. package/dist/src/custom/components/admin/element-setting-views/Label.vue.d.ts +2 -0
  15. package/dist/src/custom/components/admin/element-setting-views/Radios.vue.d.ts +2 -0
  16. package/dist/src/custom/components/admin/element-setting-views/Select.vue.d.ts +2 -0
  17. package/dist/src/custom/components/admin/element-setting-views/Text.vue.d.ts +2 -0
  18. package/dist/src/custom/components/admin/element-setting-views/Textarea.vue.d.ts +2 -0
  19. package/dist/src/custom/components/admin/element-setting-views/Textfield.vue.d.ts +2 -0
  20. package/dist/src/custom/components/admin/element-setting-views/index.d.ts +11 -0
  21. package/dist/src/custom/components/admin/setting-views/ApiActionsView.vue.d.ts +2 -0
  22. package/dist/src/custom/components/admin/setting-views/HistoryView.vue.d.ts +2 -0
  23. package/dist/src/custom/components/admin/setting-views/NewElementView.vue.d.ts +2 -0
  24. package/dist/src/custom/components/admin/setting-views/VariablesView.vue.d.ts +2 -0
  25. package/dist/src/custom/components/admin/setting-views/new-element-view/DraggableElement.vue.d.ts +29 -0
  26. package/dist/src/custom/components/admin/setting-views/variables-view/ApiActionVariables.vue.d.ts +2 -0
  27. package/dist/src/custom/components/admin/setting-views/variables-view/RouteQueryParams.vue.d.ts +2 -0
  28. package/dist/src/custom/components/admin/setting-views/variables-view/Transformers.vue.d.ts +2 -0
  29. package/dist/src/custom/components/admin/setting-views/variables-view/Variables.vue.d.ts +2 -0
  30. package/dist/src/custom/components/elements/button/Button.vue.d.ts +40 -0
  31. package/dist/src/custom/components/elements/button/index.d.ts +1 -0
  32. package/dist/src/custom/components/elements/checkbox/Checkbox.vue.d.ts +28 -0
  33. package/dist/src/custom/components/elements/checkbox/index.d.ts +1 -0
  34. package/dist/src/custom/components/elements/file/File.vue.d.ts +2 -0
  35. package/dist/src/custom/components/elements/file/index.d.ts +1 -0
  36. package/dist/src/custom/components/elements/images/Images.vue.d.ts +2 -0
  37. package/dist/src/custom/components/elements/images/index.d.ts +1 -0
  38. package/dist/src/custom/components/elements/items/Items.vue.d.ts +2 -0
  39. package/dist/src/custom/components/elements/items/index.d.ts +1 -0
  40. package/dist/src/custom/components/elements/label/Label.vue.d.ts +14 -0
  41. package/dist/src/custom/components/elements/label/index.d.ts +1 -0
  42. package/dist/src/custom/components/elements/location/Location.vue.d.ts +2 -0
  43. package/dist/src/custom/components/elements/location/index.d.ts +1 -0
  44. package/dist/src/custom/components/elements/radios/Radios.vue.d.ts +44 -0
  45. package/dist/src/custom/components/elements/radios/index.d.ts +1 -0
  46. package/dist/src/custom/components/elements/richtext/RichText.vue.d.ts +2 -0
  47. package/dist/src/custom/components/elements/richtext/index.d.ts +1 -0
  48. package/dist/src/custom/components/elements/select/Select.vue.d.ts +44 -0
  49. package/dist/src/custom/components/elements/select/index.d.ts +1 -0
  50. package/dist/src/custom/components/elements/text/Text.vue.d.ts +14 -0
  51. package/dist/src/custom/components/elements/text/index.d.ts +1 -0
  52. package/dist/src/custom/components/elements/textarea/Textarea.vue.d.ts +31 -0
  53. package/dist/src/custom/components/elements/textarea/index.d.ts +1 -0
  54. package/dist/src/custom/components/elements/textfield/Textfield.vue.d.ts +31 -0
  55. package/dist/src/custom/components/elements/textfield/index.d.ts +1 -0
  56. package/dist/src/custom/composables/useTable.d.ts +3 -0
  57. package/dist/src/custom/config.d.ts +2 -0
  58. package/dist/src/custom/index.d.ts +38 -0
  59. package/dist/src/custom/index.vue.d.ts +22 -0
  60. package/dist/src/custom/metadata.d.ts +2 -0
  61. package/dist/src/custom/pages/View.vue.d.ts +14 -0
  62. package/dist/src/custom/permissions.d.ts +1 -0
  63. package/dist/src/custom/routes.d.ts +15 -0
  64. package/dist/src/custom/stores/useTableStore.d.ts +5 -0
  65. package/dist/src/custom/tools.d.ts +1 -0
  66. package/dist/src/custom/types.d.ts +0 -0
  67. package/dist/src/index.d.ts +3 -0
  68. package/dist/src/lib/dateRangePresets.d.ts +13 -0
  69. package/dist/src/lib/interpolation.d.ts +8 -0
  70. package/dist/src/lib/utils.d.ts +6 -0
  71. package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
  72. package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
  73. package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
  74. package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
  75. package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
  76. package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
  77. package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
  78. package/dist/src/products/components/detail/variants/Options.vue.d.ts +30 -0
  79. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +26 -0
  80. package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
  81. package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
  82. package/dist/src/products/composables/useTable.d.ts +3 -0
  83. package/dist/src/products/config.d.ts +59 -0
  84. package/dist/src/products/index.d.ts +98 -0
  85. package/dist/src/products/index.vue.d.ts +21 -0
  86. package/dist/src/products/metadata.d.ts +2 -0
  87. package/dist/src/products/pages/Detail.vue.d.ts +14 -0
  88. package/dist/src/products/pages/Overview.vue.d.ts +16 -0
  89. package/dist/src/products/permissions.d.ts +5 -0
  90. package/dist/src/products/routes.d.ts +15 -0
  91. package/dist/src/products/stores/useTableStore.d.ts +5 -0
  92. package/dist/src/products/tools.d.ts +25 -0
  93. package/dist/src/products/types.d.ts +64 -0
  94. package/dist/src/table/components/ColumnDropdown.vue.d.ts +2 -0
  95. package/dist/src/table/components/ColumnEditorDialog.vue.d.ts +34 -0
  96. package/dist/src/table/components/DataTable.vue.d.ts +6 -0
  97. package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
  98. package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
  99. package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
  100. package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
  101. package/dist/src/table/components/actions/action-dialog/OpenDialogSettings.vue.d.ts +23 -0
  102. package/dist/src/table/components/actions/action-dialog/OpenModuleSettings.vue.d.ts +19 -0
  103. package/dist/src/table/components/actions/action-dialog/OpenUrlSettings.vue.d.ts +30 -0
  104. package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
  105. package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
  106. package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
  107. package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
  108. package/dist/src/table/components/search/Search.vue.d.ts +2 -0
  109. package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
  110. package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
  111. package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
  112. package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
  113. package/dist/src/table/composables/useTable.d.ts +3 -0
  114. package/dist/src/table/config.d.ts +2 -0
  115. package/dist/src/table/index.d.ts +70 -0
  116. package/dist/src/table/index.vue.d.ts +22 -0
  117. package/dist/src/table/metadata.d.ts +2 -0
  118. package/dist/src/table/pages/TableView.vue.d.ts +42 -0
  119. package/dist/src/table/permissions.d.ts +5 -0
  120. package/dist/src/table/routes.d.ts +43 -0
  121. package/dist/src/table/stores/useTableStore.d.ts +5 -0
  122. package/dist/src/table/tools.d.ts +25 -0
  123. package/dist/src/table/types.d.ts +0 -0
  124. package/dist/src/types/global-composables.d.ts +12 -0
  125. package/dist/src/types/index.d.ts +60 -0
  126. package/package.json +48 -0
File without changes
@@ -0,0 +1,3 @@
1
+ export { table } from './table';
2
+ export { products } from './products';
3
+ export { custom } from './custom';
@@ -0,0 +1,13 @@
1
+ export declare function getDateRangePresets(): {
2
+ today: string[];
3
+ yesterday: string[];
4
+ last7days: string[];
5
+ lastMonth: string[];
6
+ last6months: string[];
7
+ lastYear: string[];
8
+ tomorrow: string[];
9
+ next7days: string[];
10
+ nextMonth: string[];
11
+ next6months: string[];
12
+ nextYear: string[];
13
+ };
@@ -0,0 +1,8 @@
1
+ export declare function interpolateTemplateFromVariableContext(template: string, variableContext: Variable[]): string;
2
+ export declare function interpolateTemplateFromVariableObject(template: string, variableContext: Record<string, any>): string;
3
+ interface Variable {
4
+ name: string;
5
+ type: string;
6
+ value: any;
7
+ }
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Updater } from '@tanstack/vue-table';
2
+ import { Ref } from 'vue';
3
+ import { ClassValue } from 'clsx';
4
+ export declare function classNames(...inputs: ClassValue[]): string;
5
+ export declare function valueUpdater<T extends Updater<any>>(updaterOrValue: T, ref: Ref): void;
6
+ export declare function downloadJSONAsCSV(jsonData: any, filename?: string): void;
@@ -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, {}, any>;
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, {}, any>;
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, {}, any>;
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, {}, any>;
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, {}, any>;
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, {}, any>;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,30 @@
1
+ interface OptionValue {
2
+ id: string;
3
+ value: string;
4
+ }
5
+ interface Option {
6
+ id: string;
7
+ name: string;
8
+ values: OptionValue[];
9
+ nameError?: string;
10
+ }
11
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ modelValue: {
13
+ type: () => Option[];
14
+ default: () => never[];
15
+ };
16
+ }>, {
17
+ minifyAll: () => void;
18
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ "update:modelValue": (...args: any[]) => void;
20
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ modelValue: {
22
+ type: () => Option[];
23
+ default: () => never[];
24
+ };
25
+ }>> & Readonly<{
26
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ modelValue: Option[];
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
30
+ export default _default;
@@ -0,0 +1,26 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ options: {
3
+ type: ObjectConstructor;
4
+ required: true;
5
+ };
6
+ modelValue: {
7
+ type: ArrayConstructor;
8
+ required: true;
9
+ };
10
+ }>, {
11
+ setVariantMap: (variants: any[]) => void;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:modelValue": (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ options: {
16
+ type: ObjectConstructor;
17
+ required: true;
18
+ };
19
+ modelValue: {
20
+ type: ArrayConstructor;
21
+ required: true;
22
+ };
23
+ }>> & Readonly<{
24
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
26
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ products: {
3
+ type: ArrayConstructor;
4
+ required: true;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ products: {
8
+ type: ArrayConstructor;
9
+ required: true;
10
+ };
11
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ products: {
3
+ type: ArrayConstructor;
4
+ required: true;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ products: {
8
+ type: ArrayConstructor;
9
+ required: true;
10
+ };
11
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare function useTable(): {
2
+ data: import('vue').Ref<never[], never[]>;
3
+ };
@@ -0,0 +1,59 @@
1
+ import { ResolvedConfig } from '../types';
2
+ export declare const config: {
3
+ readonly project: {
4
+ readonly label: "Project";
5
+ readonly type: "resource";
6
+ readonly accept: ["FIREBASE"];
7
+ };
8
+ readonly productCollection: {
9
+ readonly label: "Product Collection";
10
+ readonly type: "input";
11
+ readonly default: "products";
12
+ };
13
+ readonly allowedMediaSources: {
14
+ readonly label: "Allowed Media Sources";
15
+ readonly type: "mediaSource";
16
+ readonly multiple: true;
17
+ };
18
+ readonly defaultUploadMediaSource: {
19
+ readonly label: "Default Upload Media Source";
20
+ readonly type: "mediaSource";
21
+ readonly multiple: false;
22
+ };
23
+ readonly viewable: {
24
+ readonly label: "Viewable";
25
+ readonly type: "checkbox";
26
+ readonly default: true;
27
+ };
28
+ readonly editable: {
29
+ readonly label: "Editable";
30
+ readonly type: "checkbox";
31
+ readonly default: true;
32
+ };
33
+ readonly deletable: {
34
+ readonly label: "Deletable";
35
+ readonly type: "checkbox";
36
+ readonly default: true;
37
+ };
38
+ readonly addable: {
39
+ readonly label: "Addable";
40
+ readonly type: "checkbox";
41
+ readonly default: true;
42
+ };
43
+ readonly searchable: {
44
+ readonly label: "Searchable";
45
+ readonly type: "checkbox";
46
+ readonly default: true;
47
+ };
48
+ readonly downloadable: {
49
+ readonly label: "Downloadable";
50
+ readonly type: "checkbox";
51
+ readonly default: true;
52
+ };
53
+ readonly allowBulkActions: {
54
+ readonly label: "Allow Bulk Actions";
55
+ readonly type: "checkbox";
56
+ readonly default: false;
57
+ };
58
+ };
59
+ export type ConfigValues = ResolvedConfig<typeof config>;
@@ -0,0 +1,98 @@
1
+ export declare const products: {
2
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ config: {
4
+ type: ObjectConstructor;
5
+ required: true;
6
+ };
7
+ routes: {
8
+ type: 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: PropType<ModuleRoute[]>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ metadata: ModuleMetadata;
22
+ config: {
23
+ readonly project: {
24
+ readonly label: "Project";
25
+ readonly type: "resource";
26
+ readonly accept: ["FIREBASE"];
27
+ };
28
+ readonly productCollection: {
29
+ readonly label: "Product Collection";
30
+ readonly type: "input";
31
+ readonly default: "products";
32
+ };
33
+ readonly allowedMediaSources: {
34
+ readonly label: "Allowed Media Sources";
35
+ readonly type: "mediaSource";
36
+ readonly multiple: true;
37
+ };
38
+ readonly defaultUploadMediaSource: {
39
+ readonly label: "Default Upload Media Source";
40
+ readonly type: "mediaSource";
41
+ readonly multiple: false;
42
+ };
43
+ readonly viewable: {
44
+ readonly label: "Viewable";
45
+ readonly type: "checkbox";
46
+ readonly default: true;
47
+ };
48
+ readonly editable: {
49
+ readonly label: "Editable";
50
+ readonly type: "checkbox";
51
+ readonly default: true;
52
+ };
53
+ readonly deletable: {
54
+ readonly label: "Deletable";
55
+ readonly type: "checkbox";
56
+ readonly default: true;
57
+ };
58
+ readonly addable: {
59
+ readonly label: "Addable";
60
+ readonly type: "checkbox";
61
+ readonly default: true;
62
+ };
63
+ readonly searchable: {
64
+ readonly label: "Searchable";
65
+ readonly type: "checkbox";
66
+ readonly default: true;
67
+ };
68
+ readonly downloadable: {
69
+ readonly label: "Downloadable";
70
+ readonly type: "checkbox";
71
+ readonly default: true;
72
+ };
73
+ readonly allowBulkActions: {
74
+ readonly label: "Allow Bulk Actions";
75
+ readonly type: "checkbox";
76
+ readonly default: false;
77
+ };
78
+ };
79
+ routes: {
80
+ path: string;
81
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
82
+ config: {
83
+ type: import('vue').PropType<import('./config').ConfigValues>;
84
+ required: true;
85
+ };
86
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
87
+ config: {
88
+ type: import('vue').PropType<import('./config').ConfigValues>;
89
+ required: true;
90
+ };
91
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
92
+ }[];
93
+ permissions: {
94
+ key: string;
95
+ name: string;
96
+ description: string;
97
+ }[];
98
+ };
@@ -0,0 +1,21 @@
1
+ import { ModuleRoute } from '~/types';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ config: {
4
+ type: ObjectConstructor;
5
+ required: true;
6
+ };
7
+ routes: {
8
+ type: 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: PropType<ModuleRoute[]>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { ModuleMetadata } from '~/types';
2
+ export declare const metadata: ModuleMetadata;
@@ -0,0 +1,14 @@
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, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,16 @@
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
+ }, HTMLDivElement>;
16
+ 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,15 @@
1
+ declare const _default: {
2
+ path: string;
3
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ config: {
5
+ type: import('vue').PropType<import('./config').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<import('./config').ConfigValues>;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
14
+ }[];
15
+ 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
+ };
@@ -0,0 +1,64 @@
1
+ export interface Product {
2
+ id: string;
3
+ handle: string;
4
+ title: string;
5
+ description: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ status: 'draft' | 'published' | 'archived';
9
+ available: boolean;
10
+ tags: string[];
11
+ collections: string[];
12
+ vendor: string;
13
+ inventory: number;
14
+ isBackorderAllowed: boolean;
15
+ isSingleVariant: boolean;
16
+ options: ProductOption[];
17
+ variants: ProductVariant[];
18
+ variantsTotal: number;
19
+ isDigitalProduct: boolean;
20
+ fulfillmentMethod: 'pickup' | 'delivery' | 'both';
21
+ isGiftCard: boolean;
22
+ price: number;
23
+ maxPrice: number;
24
+ minPrice: number;
25
+ compareAtPrice: number;
26
+ maxCompareAtPrice: number;
27
+ minCompareAtPrice: number;
28
+ hasPriceVariation: boolean;
29
+ mediaUrls: string[];
30
+ featuredMediaUrl?: string;
31
+ seo: ProductSeo;
32
+ url: string;
33
+ isTrackingInventory: boolean;
34
+ isTaxable: boolean;
35
+ taxRate: number;
36
+ costPerItem: number;
37
+ }
38
+ export interface ProductOption {
39
+ id: string;
40
+ productId: string;
41
+ name: string;
42
+ values: ProductOptionValue[];
43
+ }
44
+ export interface ProductOptionValue {
45
+ id: string;
46
+ optionId: string;
47
+ value: string;
48
+ }
49
+ export interface ProductVariant {
50
+ id: string;
51
+ productId: string;
52
+ sku?: string;
53
+ barcode?: string;
54
+ disabled?: boolean;
55
+ price: number;
56
+ compareAtPrice?: number;
57
+ inventory: number;
58
+ optionValues: ProductOptionValue[];
59
+ image?: string;
60
+ }
61
+ export interface ProductSeo {
62
+ title: string;
63
+ description: string;
64
+ }
@@ -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, {}, any>;
2
+ export default _default;
@@ -0,0 +1,34 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ open: {
3
+ type: BooleanConstructor;
4
+ default: null;
5
+ };
6
+ onSelect: {
7
+ type: FunctionConstructor;
8
+ required: true;
9
+ };
10
+ onOpenChange: {
11
+ type: FunctionConstructor;
12
+ required: true;
13
+ };
14
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "update:open": (...args: any[]) => void;
16
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ open: {
18
+ type: BooleanConstructor;
19
+ default: null;
20
+ };
21
+ onSelect: {
22
+ type: FunctionConstructor;
23
+ required: true;
24
+ };
25
+ onOpenChange: {
26
+ type: FunctionConstructor;
27
+ required: true;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:open"?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ open: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ saveSortMode: () => Promise<void>;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
4
+ dragContainer: unknown;
5
+ }, any>;
6
+ export default _default;
@@ -0,0 +1,14 @@
1
+ interface Action {
2
+ id: string;
3
+ label: string;
4
+ type: string;
5
+ icon: string;
6
+ visible: string;
7
+ settings: any;
8
+ }
9
+ type __VLS_Props = {
10
+ action: Action;
11
+ row: any;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Table } from '@tanstack/vue-table';
2
+ interface DataTablePaginationProps {
3
+ table: Table<any>;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<DataTablePaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DataTablePaginationProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,19 @@
1
+ interface Action {
2
+ id: string;
3
+ label: string;
4
+ icon: string;
5
+ visible: string;
6
+ flow: any;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<{}, {
9
+ openDialog: (action?: Action) => void;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ actionAdded: (...args: any[]) => void;
12
+ actionEdited: (...args: any[]) => void;
13
+ actionRemoved: (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
15
+ onActionAdded?: ((...args: any[]) => any) | undefined;
16
+ onActionEdited?: ((...args: any[]) => any) | undefined;
17
+ onActionRemoved?: ((...args: any[]) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
19
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ openDialog: () => void;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ modelValue: {
4
+ type: PropType<any>;
5
+ default: () => {
6
+ formSettings: {};
7
+ };
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:modelValue": (...args: any[]) => void;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ modelValue: {
13
+ type: PropType<any>;
14
+ default: () => {
15
+ formSettings: {};
16
+ };
17
+ };
18
+ }>> & Readonly<{
19
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
+ }>, {
21
+ modelValue: any;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
23
+ export default _default;