@oneclick.dev/cms-core-modules 0.0.41 → 0.0.42
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/cms-core-modules.css +1 -1
- package/dist/index-C8S5uH3d.js +1 -0
- package/dist/{index-T3jqfug4.mjs → index-DgIB_CNA.mjs} +30 -30
- package/dist/index.cjs.js +323 -12
- package/dist/index.mjs +54977 -19483
- package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +32 -0
- package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +17 -0
- package/dist/src/appointments/components/edit/EventDialog.vue.d.ts +4 -0
- package/dist/src/{custom/components/elements/text/Text.vue.d.ts → appointments/components/edit/EventTimeIndicator.vue.d.ts} +7 -9
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +32 -0
- package/dist/src/{custom/components/CustomDashboard.vue.d.ts → appointments/components/edit/EventView.vue.d.ts} +2 -2
- package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +24 -0
- package/dist/src/{custom/components/admin/Transformer.vue.d.ts → appointments/components/edit/RegularSlotEditor.vue.d.ts} +2 -2
- package/dist/src/appointments/config.d.ts +25 -0
- package/dist/src/appointments/index.d.ts +67 -0
- package/dist/src/{custom/components/elements/checkbox/Checkbox.vue.d.ts → appointments/index.vue.d.ts} +10 -16
- package/dist/src/appointments/metadata.d.ts +2 -0
- package/dist/src/appointments/pages/Overview.vue.d.ts +4 -0
- package/dist/src/{custom/components/AdminElementEditor.vue.d.ts → appointments/pages/create/regular.vue.d.ts} +3 -3
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +27 -0
- package/dist/src/appointments/permissions.d.ts +5 -0
- package/dist/src/appointments/routes.d.ts +17 -0
- package/dist/src/appointments/tools.d.ts +25 -0
- package/dist/src/appointments/types.d.ts +42 -0
- package/dist/src/content-manager/components/components/ComponentDialog.vue.d.ts +12 -0
- package/dist/src/{custom/components/AdminToolbar.vue.d.ts → content-manager/components/components/ComponentGridItem.vue.d.ts} +7 -7
- package/dist/src/content-manager/components/content-editor/ContentLayout.vue.d.ts +41 -0
- package/dist/src/content-manager/components/content-editor/ContentSettings.vue.d.ts +24 -0
- package/dist/src/content-manager/components/content-editor/Header.vue.d.ts +64 -0
- package/dist/src/content-manager/components/content-editor/LivePreviewWrapper.vue.d.ts +53 -0
- package/dist/src/content-manager/components/content-editor/Locales.vue.d.ts +42 -0
- package/dist/src/content-manager/components/content-editor/NewSectionDialog.vue.d.ts +17 -0
- package/dist/src/{custom/components/elements/label/Label.vue.d.ts → content-manager/components/content-editor/SEO.vue.d.ts} +4 -4
- package/dist/src/content-manager/components/content-editor/SidebarSectionWrapper.vue.d.ts +29 -0
- package/dist/src/content-manager/components/content-editor/Status.vue.d.ts +2 -0
- package/dist/src/content-manager/components/content-editor/Versions.vue.d.ts +63 -0
- package/dist/src/content-manager/components/content-editor/code-examples.d.ts +4 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Button.d.ts +20 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Button.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Card.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Card.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Column.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Column.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Columns.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Columns.vue.d.ts +115 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/ComponentEditorNode.d.ts +24 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Container.d.ts +47 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Container.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Divider.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/DragHandle.d.ts +76 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/EmptySpace.d.ts +18 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +94 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Heading.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Image.d.ts +15 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Image.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +8 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Map.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Map.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/NodeDragPointerEventsFix.d.ts +7 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/OnlyContainerDocument.d.ts +2 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Paragraph.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +3 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Video.d.ts +15 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Video.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +92 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/content/details-content.d.ts +10 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/content/index.d.ts +3 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/details.d.ts +24 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/helpers/findClosestVisibleNode.d.ts +8 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/helpers/isNodeVisible.d.ts +2 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/helpers/setGapCursor.d.ts +2 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/index.d.ts +5 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/summary/details-summary.d.ts +10 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-details/summary/index.d.ts +3 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/drag-handle-plugin.d.ts +25 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/drag-handle.d.ts +50 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/cloneElement.d.ts +1 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/dragHandler.d.ts +2 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/findNextElementFromCursor.d.ts +17 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/getComputedStyle.d.ts +1 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/getInnerCoords.d.ts +5 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/getOuterNode.d.ts +3 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/minMax.d.ts +1 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/removeNode.d.ts +1 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/index.d.ts +4 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +108 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +20 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +94 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/helpers/useContainerFocus.d.ts +7 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +8 -0
- package/dist/src/{custom/components/admin/setting-views/new-element-view/DraggableElement.vue.d.ts → content-manager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts} +9 -9
- package/dist/src/content-manager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
- package/dist/src/{custom/components/elements/textfield/Textfield.vue.d.ts → content-manager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts} +16 -14
- package/dist/src/content-manager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/ColumnsMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +128 -0
- package/dist/src/content-manager/components/overview/CollectionDialog.vue.d.ts +30 -0
- package/dist/src/content-manager/components/overview/CollectionsGridView.vue.d.ts +18 -0
- package/dist/src/content-manager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
- package/dist/src/content-manager/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/{custom/components/AdminToolbarView.vue.d.ts → content-manager/components/overview/ListView.vue.d.ts} +6 -4
- package/dist/src/content-manager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
- package/dist/src/content-manager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
- package/dist/src/content-manager/config.d.ts +87 -0
- package/dist/src/content-manager/index.d.ts +250 -0
- package/dist/src/content-manager/index.vue.d.ts +22 -0
- package/dist/src/content-manager/metadata.d.ts +2 -0
- package/dist/src/content-manager/pages/Components.vue.d.ts +27 -0
- package/dist/src/content-manager/pages/ContentEditor.vue.d.ts +14 -0
- package/dist/src/content-manager/pages/Entries.vue.d.ts +16 -0
- package/dist/src/content-manager/pages/GlobalStyling.vue.d.ts +79 -0
- package/dist/src/content-manager/pages/Overview.vue.d.ts +57 -0
- package/dist/src/content-manager/permissions.d.ts +5 -0
- package/dist/src/content-manager/routes.d.ts +138 -0
- package/dist/src/content-manager/stores/useTableStore.d.ts +5 -0
- package/dist/src/content-manager/tools.d.ts +1 -0
- package/dist/src/content-manager/types.d.ts +0 -0
- package/dist/src/custom/config.d.ts +13 -2
- package/dist/src/custom/index.d.ts +14 -31
- package/dist/src/custom/index.vue.d.ts +1 -21
- package/dist/src/custom/metadata.d.ts +1 -1
- package/dist/src/custom/pages/View.vue.d.ts +1 -13
- package/dist/src/custom/routes.d.ts +1 -11
- package/dist/src/index.d.ts +9 -5
- package/dist/src/lib/languages.d.ts +7 -0
- package/dist/src/mail-templates/config.d.ts +25 -0
- package/dist/src/mail-templates/index.d.ts +65 -0
- package/dist/src/mail-templates/index.vue.d.ts +22 -0
- package/dist/src/mail-templates/metadata.d.ts +2 -0
- package/dist/src/mail-templates/pages/Detail.vue.d.ts +14 -0
- package/dist/src/mail-templates/pages/Overview.vue.d.ts +14 -0
- package/dist/src/mail-templates/permissions.d.ts +5 -0
- package/dist/src/mail-templates/routes.d.ts +15 -0
- package/dist/src/mail-templates/stores/useTableStore.d.ts +5 -0
- package/dist/src/mail-templates/tools.d.ts +25 -0
- package/dist/src/mail-templates/types.d.ts +21 -0
- package/dist/src/product-collections/config.d.ts +23 -2
- package/dist/src/product-collections/index.d.ts +23 -1
- package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
- package/dist/src/products/config.d.ts +34 -3
- package/dist/src/products/index.d.ts +34 -2
- package/dist/src/promo-codes/config.d.ts +13 -2
- package/dist/src/promo-codes/index.d.ts +13 -1
- package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
- package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
- package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
- package/dist/src/shipping-options/components/detail/Condition.vue.d.ts +2 -0
- package/dist/src/shipping-options/components/detail/Countries.vue.d.ts +2 -0
- package/dist/src/shipping-options/components/detail/Example.vue.d.ts +2 -0
- package/dist/src/shipping-options/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/shipping-options/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/shipping-options/config.d.ts +25 -0
- package/dist/src/shipping-options/index.d.ts +65 -0
- package/dist/src/shipping-options/index.vue.d.ts +22 -0
- package/dist/src/shipping-options/metadata.d.ts +2 -0
- package/dist/src/shipping-options/pages/Detail.vue.d.ts +14 -0
- package/dist/src/shipping-options/pages/Overview.vue.d.ts +16 -0
- package/dist/src/shipping-options/permissions.d.ts +5 -0
- package/dist/src/shipping-options/routes.d.ts +15 -0
- package/dist/src/shipping-options/stores/useTableStore.d.ts +5 -0
- package/dist/src/shipping-options/tools.d.ts +1 -0
- package/dist/src/shipping-options/types.d.ts +21 -0
- package/dist/src/table/config.d.ts +42 -2
- package/dist/src/table/index.d.ts +44 -7
- package/dist/src/table/metadata.d.ts +1 -1
- package/dist/src/table/permissions.d.ts +1 -5
- package/dist/src/types/index.d.ts +0 -65
- package/package.json +34 -4
- package/dist/index-DEgppVnR.js +0 -1
- package/dist/src/custom/components/admin/element-setting-views/index.d.ts +0 -11
- package/dist/src/custom/components/admin/setting-views/HistoryView.vue.d.ts +0 -2
- package/dist/src/custom/components/admin/setting-views/variables-view/ApiActionVariables.vue.d.ts +0 -2
- package/dist/src/custom/components/admin/setting-views/variables-view/RouteQueryParams.vue.d.ts +0 -2
- package/dist/src/custom/components/admin/setting-views/variables-view/Transformers.vue.d.ts +0 -2
- package/dist/src/custom/components/admin/setting-views/variables-view/Variables.vue.d.ts +0 -2
- package/dist/src/custom/components/elements/button/Button.vue.d.ts +0 -40
- package/dist/src/custom/components/elements/button/index.d.ts +0 -1
- package/dist/src/custom/components/elements/checkbox/index.d.ts +0 -1
- package/dist/src/custom/components/elements/file/File.vue.d.ts +0 -2
- package/dist/src/custom/components/elements/file/index.d.ts +0 -1
- package/dist/src/custom/components/elements/images/Images.vue.d.ts +0 -2
- package/dist/src/custom/components/elements/images/index.d.ts +0 -1
- package/dist/src/custom/components/elements/items/Items.vue.d.ts +0 -2
- package/dist/src/custom/components/elements/items/index.d.ts +0 -1
- package/dist/src/custom/components/elements/label/index.d.ts +0 -1
- package/dist/src/custom/components/elements/location/Location.vue.d.ts +0 -2
- package/dist/src/custom/components/elements/location/index.d.ts +0 -1
- package/dist/src/custom/components/elements/radios/Radios.vue.d.ts +0 -44
- package/dist/src/custom/components/elements/radios/index.d.ts +0 -1
- package/dist/src/custom/components/elements/richtext/RichText.vue.d.ts +0 -2
- package/dist/src/custom/components/elements/richtext/index.d.ts +0 -1
- package/dist/src/custom/components/elements/select/Select.vue.d.ts +0 -44
- package/dist/src/custom/components/elements/select/index.d.ts +0 -1
- package/dist/src/custom/components/elements/text/index.d.ts +0 -1
- package/dist/src/custom/components/elements/textarea/Textarea.vue.d.ts +0 -31
- package/dist/src/custom/components/elements/textarea/index.d.ts +0 -1
- package/dist/src/custom/components/elements/textfield/index.d.ts +0 -1
- /package/dist/src/{custom/components/admin/setting-views/ApiActionsView.vue.d.ts → appointments/components/create/regular/Step1.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/setting-views/NewElementView.vue.d.ts → appointments/components/create/regular/Step2.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/setting-views/VariablesView.vue.d.ts → appointments/components/create/regular/Step3.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Button.vue.d.ts → appointments/components/edit/Event24hSidebar.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Checkbox.vue.d.ts → appointments/pages/create/index.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Label.vue.d.ts → appointments/pages/edit/agenda.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Radios.vue.d.ts → appointments/pages/edit/index.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Select.vue.d.ts → appointments/pages/edit/payment.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Text.vue.d.ts → appointments/pages/edit/regular-slots.vue.d.ts} +0 -0
- /package/dist/src/{custom → appointments}/stores/useTableStore.d.ts +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Textarea.vue.d.ts → content-manager/components/content-editor/ApiDocs.vue.d.ts} +0 -0
- /package/dist/src/{custom/components/admin/element-setting-views/Textfield.vue.d.ts → mail-templates/components/TemplateList.vue.d.ts} +0 -0
- /package/dist/src/{custom → shipping-options}/composables/useTable.d.ts +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
interface Option {
|
|
3
|
+
value: string;
|
|
4
|
+
text: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: {
|
|
10
|
+
(arrayLength: number): string[];
|
|
11
|
+
(...items: string[]): string[];
|
|
12
|
+
new (arrayLength: number): string[];
|
|
13
|
+
new (...items: string[]): string[];
|
|
14
|
+
isArray(arg: any): arg is any[];
|
|
15
|
+
readonly prototype: any[];
|
|
16
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
17
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
18
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
19
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
20
|
+
of<T>(...items: T[]): T[];
|
|
21
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
22
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
23
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
24
|
+
};
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
options: {
|
|
28
|
+
type: PropType<Option[]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
"update:modelValue": (...args: any[]) => void;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: {
|
|
36
|
+
(arrayLength: number): string[];
|
|
37
|
+
(...items: string[]): string[];
|
|
38
|
+
new (arrayLength: number): string[];
|
|
39
|
+
new (...items: string[]): string[];
|
|
40
|
+
isArray(arg: any): arg is any[];
|
|
41
|
+
readonly prototype: any[];
|
|
42
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
43
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
44
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
45
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
46
|
+
of<T>(...items: T[]): T[];
|
|
47
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
48
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
49
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
50
|
+
};
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
options: {
|
|
54
|
+
type: PropType<Option[]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{
|
|
58
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
interface Option {
|
|
3
|
+
value: string;
|
|
4
|
+
text: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: {
|
|
10
|
+
(arrayLength: number): string[];
|
|
11
|
+
(...items: string[]): string[];
|
|
12
|
+
new (arrayLength: number): string[];
|
|
13
|
+
new (...items: string[]): string[];
|
|
14
|
+
isArray(arg: any): arg is any[];
|
|
15
|
+
readonly prototype: any[];
|
|
16
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
17
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
18
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
19
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
20
|
+
of<T>(...items: T[]): T[];
|
|
21
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
22
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
23
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
24
|
+
};
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
options: {
|
|
28
|
+
type: PropType<Option[]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
"update:modelValue": (...args: any[]) => void;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: {
|
|
36
|
+
(arrayLength: number): string[];
|
|
37
|
+
(...items: string[]): string[];
|
|
38
|
+
new (arrayLength: number): string[];
|
|
39
|
+
new (...items: string[]): string[];
|
|
40
|
+
isArray(arg: any): arg is any[];
|
|
41
|
+
readonly prototype: any[];
|
|
42
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
43
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
44
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
45
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
46
|
+
of<T>(...items: T[]): T[];
|
|
47
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
48
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
49
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
50
|
+
};
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
options: {
|
|
54
|
+
type: PropType<Option[]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{
|
|
58
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
60
|
+
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,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
options: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
options: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ResolveConfig } from '@oneclick.dev/cms-kit';
|
|
2
|
+
export declare const config: {
|
|
3
|
+
readonly project: {
|
|
4
|
+
readonly label: "Project";
|
|
5
|
+
readonly type: "resource";
|
|
6
|
+
readonly accept: ["FIREBASE"];
|
|
7
|
+
};
|
|
8
|
+
readonly shippingOptionsCollection: {
|
|
9
|
+
readonly label: "Shipping Options Collection";
|
|
10
|
+
readonly type: "input";
|
|
11
|
+
readonly default: "public/e-commerce:shipping-options";
|
|
12
|
+
};
|
|
13
|
+
} & {
|
|
14
|
+
readonly project: {
|
|
15
|
+
readonly label: "Project";
|
|
16
|
+
readonly type: "resource";
|
|
17
|
+
readonly accept: ["FIREBASE"];
|
|
18
|
+
};
|
|
19
|
+
readonly shippingOptionsCollection: {
|
|
20
|
+
readonly label: "Shipping Options Collection";
|
|
21
|
+
readonly type: "input";
|
|
22
|
+
readonly default: "public/e-commerce:shipping-options";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type ConfigValues = ResolveConfig<typeof config>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const _default: {
|
|
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, {}, HTMLDivElement>;
|
|
21
|
+
metadata: ModuleMetadata;
|
|
22
|
+
config: {
|
|
23
|
+
readonly project: {
|
|
24
|
+
readonly label: "Project";
|
|
25
|
+
readonly type: "resource";
|
|
26
|
+
readonly accept: ["FIREBASE"];
|
|
27
|
+
};
|
|
28
|
+
readonly shippingOptionsCollection: {
|
|
29
|
+
readonly label: "Shipping Options Collection";
|
|
30
|
+
readonly type: "input";
|
|
31
|
+
readonly default: "public/e-commerce:shipping-options";
|
|
32
|
+
};
|
|
33
|
+
} & {
|
|
34
|
+
readonly project: {
|
|
35
|
+
readonly label: "Project";
|
|
36
|
+
readonly type: "resource";
|
|
37
|
+
readonly accept: ["FIREBASE"];
|
|
38
|
+
};
|
|
39
|
+
readonly shippingOptionsCollection: {
|
|
40
|
+
readonly label: "Shipping Options Collection";
|
|
41
|
+
readonly type: "input";
|
|
42
|
+
readonly default: "public/e-commerce:shipping-options";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
routes: {
|
|
46
|
+
path: string;
|
|
47
|
+
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
48
|
+
config: {
|
|
49
|
+
type: import('vue').PropType<import('./config').ConfigValues>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
config: {
|
|
54
|
+
type: import('vue').PropType<import('./config').ConfigValues>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
58
|
+
}[];
|
|
59
|
+
permissions: {
|
|
60
|
+
key: string;
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ModuleRoute } from '~/types';
|
|
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, {}, HTMLDivElement>;
|
|
22
|
+
export default _default;
|
|
@@ -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 { PropType } from 'vue';
|
|
2
|
+
import { ConfigValues } from '../config';
|
|
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,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 @@
|
|
|
1
|
+
export declare const tools: {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Collection {
|
|
2
|
+
id?: string;
|
|
3
|
+
slug: string;
|
|
4
|
+
type: CollectionType;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
thumbnail?: string;
|
|
8
|
+
conditions?: CollectionCondition[];
|
|
9
|
+
status: CollectionStatus;
|
|
10
|
+
seo?: {
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type CollectionType = 'manual' | 'auto';
|
|
16
|
+
export type CollectionStatus = 'draft' | 'published';
|
|
17
|
+
export interface CollectionCondition {
|
|
18
|
+
field: string;
|
|
19
|
+
operator: '==' | '!=' | '<' | '>' | '<=' | '>=' | 'in' | 'not-in' | 'array-contains' | 'array-contains-any';
|
|
20
|
+
value: any;
|
|
21
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResolveConfig } from '@oneclick.dev/cms-kit';
|
|
2
2
|
export declare const config: {
|
|
3
3
|
readonly getItems: {
|
|
4
4
|
readonly label: "Fetch items";
|
|
@@ -39,5 +39,45 @@ export declare const config: {
|
|
|
39
39
|
readonly type: "checkbox";
|
|
40
40
|
readonly default: false;
|
|
41
41
|
};
|
|
42
|
+
} & {
|
|
43
|
+
readonly getItems: {
|
|
44
|
+
readonly label: "Fetch items";
|
|
45
|
+
readonly type: "flow";
|
|
46
|
+
};
|
|
47
|
+
readonly viewable: {
|
|
48
|
+
readonly label: "Viewable";
|
|
49
|
+
readonly type: "checkbox";
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
readonly editable: {
|
|
53
|
+
readonly label: "Editable";
|
|
54
|
+
readonly type: "checkbox";
|
|
55
|
+
readonly default: false;
|
|
56
|
+
};
|
|
57
|
+
readonly deletable: {
|
|
58
|
+
readonly label: "Deletable";
|
|
59
|
+
readonly type: "checkbox";
|
|
60
|
+
readonly default: false;
|
|
61
|
+
};
|
|
62
|
+
readonly addable: {
|
|
63
|
+
readonly label: "Addable";
|
|
64
|
+
readonly type: "checkbox";
|
|
65
|
+
readonly default: false;
|
|
66
|
+
};
|
|
67
|
+
readonly searchable: {
|
|
68
|
+
readonly label: "Searchable";
|
|
69
|
+
readonly type: "checkbox";
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
readonly downloadable: {
|
|
73
|
+
readonly label: "Downloadable";
|
|
74
|
+
readonly type: "checkbox";
|
|
75
|
+
readonly default: false;
|
|
76
|
+
};
|
|
77
|
+
readonly allowBulkActions: {
|
|
78
|
+
readonly label: "Allow Bulk Actions";
|
|
79
|
+
readonly type: "checkbox";
|
|
80
|
+
readonly default: false;
|
|
81
|
+
};
|
|
42
82
|
};
|
|
43
|
-
export type ConfigValues =
|
|
83
|
+
export type ConfigValues = ResolveConfig<typeof config>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: {
|
|
2
2
|
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
3
|
config: {
|
|
4
4
|
type: ObjectConstructor;
|
|
@@ -18,7 +18,7 @@ export declare const table: {
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
-
metadata: import('
|
|
21
|
+
metadata: import('@oneclick.dev/cms-kit').ModuleMetadata;
|
|
22
22
|
config: {
|
|
23
23
|
readonly getItems: {
|
|
24
24
|
readonly label: "Fetch items";
|
|
@@ -59,6 +59,46 @@ export declare const table: {
|
|
|
59
59
|
readonly type: "checkbox";
|
|
60
60
|
readonly default: false;
|
|
61
61
|
};
|
|
62
|
+
} & {
|
|
63
|
+
readonly getItems: {
|
|
64
|
+
readonly label: "Fetch items";
|
|
65
|
+
readonly type: "flow";
|
|
66
|
+
};
|
|
67
|
+
readonly viewable: {
|
|
68
|
+
readonly label: "Viewable";
|
|
69
|
+
readonly type: "checkbox";
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
readonly editable: {
|
|
73
|
+
readonly label: "Editable";
|
|
74
|
+
readonly type: "checkbox";
|
|
75
|
+
readonly default: false;
|
|
76
|
+
};
|
|
77
|
+
readonly deletable: {
|
|
78
|
+
readonly label: "Deletable";
|
|
79
|
+
readonly type: "checkbox";
|
|
80
|
+
readonly default: false;
|
|
81
|
+
};
|
|
82
|
+
readonly addable: {
|
|
83
|
+
readonly label: "Addable";
|
|
84
|
+
readonly type: "checkbox";
|
|
85
|
+
readonly default: false;
|
|
86
|
+
};
|
|
87
|
+
readonly searchable: {
|
|
88
|
+
readonly label: "Searchable";
|
|
89
|
+
readonly type: "checkbox";
|
|
90
|
+
readonly default: false;
|
|
91
|
+
};
|
|
92
|
+
readonly downloadable: {
|
|
93
|
+
readonly label: "Downloadable";
|
|
94
|
+
readonly type: "checkbox";
|
|
95
|
+
readonly default: false;
|
|
96
|
+
};
|
|
97
|
+
readonly allowBulkActions: {
|
|
98
|
+
readonly label: "Allow Bulk Actions";
|
|
99
|
+
readonly type: "checkbox";
|
|
100
|
+
readonly default: false;
|
|
101
|
+
};
|
|
62
102
|
};
|
|
63
103
|
routes: {
|
|
64
104
|
path: string;
|
|
@@ -102,9 +142,6 @@ export declare const table: {
|
|
|
102
142
|
}, {}, {}, {}, {}> | null;
|
|
103
143
|
}, any>;
|
|
104
144
|
}[];
|
|
105
|
-
permissions:
|
|
106
|
-
key: string;
|
|
107
|
-
name: string;
|
|
108
|
-
description: string;
|
|
109
|
-
}[];
|
|
145
|
+
permissions: never[];
|
|
110
146
|
};
|
|
147
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ModuleMetadata } from '
|
|
1
|
+
import { ModuleMetadata } from '@oneclick.dev/cms-kit';
|
|
2
2
|
export declare const metadata: ModuleMetadata;
|
|
@@ -1,65 +0,0 @@
|
|
|
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>;
|
|
61
|
-
type Widen<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T;
|
|
62
|
-
export type ResolvedConfig<TSchema extends ModuleSettingsSchema> = {
|
|
63
|
-
[K in keyof TSchema]: Widen<TSchema[K]['default']>;
|
|
64
|
-
};
|
|
65
|
-
export {};
|
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.42",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
24
|
-
"@oneclick.dev/cms-kit": "0.0.53",
|
|
25
24
|
"@internationalized/date": "^3.8.0",
|
|
25
|
+
"@oneclick.dev/cms-kit": "workspace:*",
|
|
26
26
|
"@tanstack/vue-table": "^8.21.3",
|
|
27
27
|
"@vee-validate/zod": "^4.15.0",
|
|
28
28
|
"@vueuse/core": "^13.1.0",
|
|
29
29
|
"clsx": "^2.1.1",
|
|
30
|
-
"lucide-vue-next": "^0.
|
|
30
|
+
"lucide-vue-next": "^0.548.0",
|
|
31
31
|
"nuxt": "^3",
|
|
32
32
|
"pinia": "^3",
|
|
33
33
|
"reka-ui": "^2.2.1",
|
|
@@ -38,12 +38,42 @@
|
|
|
38
38
|
"zod": "^3.24.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
+
"@floating-ui/dom": "^1.7.4",
|
|
42
|
+
"@tiptap/extension-collaboration": "^3.6.6",
|
|
43
|
+
"@tiptap/extension-node-range": "^3.6.6",
|
|
44
|
+
"@tiptap/y-tiptap": "^3.0.0",
|
|
41
45
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
42
46
|
"typescript": "^5.8.3",
|
|
43
47
|
"vite": "^6.3.5",
|
|
44
48
|
"vite-plugin-dts": "^4.5.4"
|
|
45
49
|
},
|
|
46
50
|
"dependencies": {
|
|
47
|
-
"
|
|
51
|
+
"@floating-ui/dom": "^1.7.4",
|
|
52
|
+
"@tiptap/core": "^3.6.1",
|
|
53
|
+
"@tiptap/extension-bubble-menu": "^2.24.0",
|
|
54
|
+
"@tiptap/extension-collaboration": "^3.6.6",
|
|
55
|
+
"@tiptap/extension-collaboration-caret": "^3.6.6",
|
|
56
|
+
"@tiptap/extension-document": "^3.10.4",
|
|
57
|
+
"@tiptap/extension-node-range": "^3.6.6",
|
|
58
|
+
"@tiptap/extension-underline": "^3.4.5",
|
|
59
|
+
"@tiptap/extension-unique-id": "^3.6.1",
|
|
60
|
+
"@tiptap/extensions": "^3.6.5",
|
|
61
|
+
"@tiptap/pm": "^2.24.0",
|
|
62
|
+
"@tiptap/starter-kit": "^2.24.0",
|
|
63
|
+
"@tiptap/vue-3": "^2.24.0",
|
|
64
|
+
"@tiptap/y-tiptap": "^3.0.0",
|
|
65
|
+
"emoji-mart-vue-fast": "^15.0.4",
|
|
66
|
+
"iso-639-1": "^3.1.5",
|
|
67
|
+
"lodash-es": "^4.17.21",
|
|
68
|
+
"prosemirror-model": "^1.25.3",
|
|
69
|
+
"prosemirror-state": "^1.4.3",
|
|
70
|
+
"tiptap-extension-auto-joiner": "^0.1.3",
|
|
71
|
+
"tiptap-extension-global-drag-handle": "^0.1.18",
|
|
72
|
+
"unplugin-auto-import": "^20.2.0",
|
|
73
|
+
"vue-grid-layout-v3": "^3.1.2",
|
|
74
|
+
"world-countries": "^5.1.0",
|
|
75
|
+
"y-webrtc": "^10.3.0",
|
|
76
|
+
"y-websocket": "^3.0.0",
|
|
77
|
+
"yjs": "^13.6.27"
|
|
48
78
|
}
|
|
49
79
|
}
|