@hywax/cms-console 1.1.2 → 1.2.0
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/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +32 -32
- package/dist/runtime/components/AutocompleteSelect.d.vue.ts +1 -1
- package/dist/runtime/components/AutocompleteSelect.vue.d.ts +1 -1
- package/dist/runtime/components/ButtonCopyText.d.vue.ts +1 -1
- package/dist/runtime/components/ButtonCopyText.vue.d.ts +1 -1
- package/dist/runtime/components/ButtonDeleteConfirm.d.vue.ts +1 -1
- package/dist/runtime/components/ButtonDeleteConfirm.vue +0 -1
- package/dist/runtime/components/ButtonDeleteConfirm.vue.d.ts +1 -1
- package/dist/runtime/components/FormPanel.d.vue.ts +1 -1
- package/dist/runtime/components/FormPanel.vue.d.ts +1 -1
- package/dist/runtime/components/FormPanelAsideSection.d.vue.ts +1 -1
- package/dist/runtime/components/FormPanelAsideSection.vue.d.ts +1 -1
- package/dist/runtime/components/FormPanelSection.d.vue.ts +1 -1
- package/dist/runtime/components/FormPanelSection.vue.d.ts +1 -1
- package/dist/runtime/components/InputSeo.d.vue.ts +1 -1
- package/dist/runtime/components/InputSeo.vue.d.ts +1 -1
- package/dist/runtime/components/InputSlug.d.vue.ts +1 -1
- package/dist/runtime/components/InputSlug.vue.d.ts +1 -1
- package/dist/runtime/components/InputUploraImage.d.vue.ts +1 -1
- package/dist/runtime/components/InputUploraImage.vue.d.ts +1 -1
- package/dist/runtime/components/ModalConfirm.d.vue.ts +1 -2
- package/dist/runtime/components/ModalConfirm.vue +0 -3
- package/dist/runtime/components/ModalConfirm.vue.d.ts +1 -2
- package/dist/runtime/components/TableFilters.d.vue.ts +1 -1
- package/dist/runtime/components/TableFilters.vue.d.ts +1 -1
- package/dist/runtime/components/TablePanel.d.vue.ts +1 -1
- package/dist/runtime/components/TablePanel.vue.d.ts +1 -1
- package/dist/runtime/components/TableSearchInput.d.vue.ts +1 -1
- package/dist/runtime/components/TableSearchInput.vue.d.ts +1 -1
- package/dist/runtime/composables/useTable.d.ts +1 -1
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/utils/index.d.ts +0 -1
- package/dist/runtime/utils/index.js +0 -1
- package/package.json +2 -2
- package/dist/runtime/utils/auth.d.ts +0 -2
- package/dist/runtime/utils/auth.js +0 -5
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { defu } from 'defu';
|
|
|
5
5
|
import { kebabCase } from 'scule';
|
|
6
6
|
|
|
7
7
|
const name = "@hywax/cms-console";
|
|
8
|
-
const version = "1.
|
|
8
|
+
const version = "1.2.0";
|
|
9
9
|
|
|
10
10
|
function createContext(options, nuxt) {
|
|
11
11
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -42,36 +42,36 @@ function prepareAutoImports({ resolve, options, nuxt }) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
const icons = {
|
|
45
|
-
calendar: "lucide
|
|
46
|
-
sort: "lucide
|
|
47
|
-
sortAsc: "lucide
|
|
48
|
-
sortDesc: "lucide
|
|
49
|
-
columns: "lucide
|
|
50
|
-
filter: "lucide
|
|
51
|
-
ellipsisVertical: "lucide
|
|
52
|
-
repeat: "lucide
|
|
53
|
-
clipboard: "lucide
|
|
54
|
-
trash: "lucide
|
|
55
|
-
paragraph: "lucide
|
|
56
|
-
heading1: "lucide
|
|
57
|
-
heading2: "lucide
|
|
58
|
-
heading3: "lucide
|
|
59
|
-
heading4: "lucide
|
|
60
|
-
list: "lucide
|
|
61
|
-
listOrdered: "lucide
|
|
62
|
-
blockquote: "lucide
|
|
63
|
-
codeBlock: "lucide
|
|
64
|
-
horizontalRule: "lucide
|
|
65
|
-
enter: "lucide
|
|
66
|
-
link: "lucide
|
|
67
|
-
download: "lucide
|
|
68
|
-
bold: "lucide
|
|
69
|
-
italic: "lucide
|
|
70
|
-
underline: "lucide
|
|
71
|
-
strikethrough: "lucide
|
|
72
|
-
code: "lucide
|
|
73
|
-
image: "lucide
|
|
74
|
-
editLine: "lucide
|
|
45
|
+
calendar: "i-lucide-calendar",
|
|
46
|
+
sort: "i-lucide-arrow-down-up",
|
|
47
|
+
sortAsc: "i-lucide-arrow-up-wide-narrow",
|
|
48
|
+
sortDesc: "i-lucide-arrow-down-wide-narrow",
|
|
49
|
+
columns: "i-lucide-columns-3-cog",
|
|
50
|
+
filter: "i-lucide-filter",
|
|
51
|
+
ellipsisVertical: "i-lucide-ellipsis-vertical",
|
|
52
|
+
repeat: "i-lucide-repeat-2",
|
|
53
|
+
clipboard: "i-lucide-clipboard",
|
|
54
|
+
trash: "i-lucide-trash",
|
|
55
|
+
paragraph: "i-lucide-type",
|
|
56
|
+
heading1: "i-lucide-heading-1",
|
|
57
|
+
heading2: "i-lucide-heading-2",
|
|
58
|
+
heading3: "i-lucide-heading-3",
|
|
59
|
+
heading4: "i-lucide-heading-4",
|
|
60
|
+
list: "i-lucide-list",
|
|
61
|
+
listOrdered: "i-lucide-list-ordered",
|
|
62
|
+
blockquote: "i-lucide-text-quote",
|
|
63
|
+
codeBlock: "i-lucide-square-code",
|
|
64
|
+
horizontalRule: "i-lucide-separator-horizontal",
|
|
65
|
+
enter: "i-lucide-corner-down-left",
|
|
66
|
+
link: "i-lucide-link",
|
|
67
|
+
download: "i-lucide-download",
|
|
68
|
+
bold: "i-lucide-bold",
|
|
69
|
+
italic: "i-lucide-italic",
|
|
70
|
+
underline: "i-lucide-underline",
|
|
71
|
+
strikethrough: "i-lucide-strikethrough",
|
|
72
|
+
code: "i-lucide-code",
|
|
73
|
+
image: "i-lucide-image",
|
|
74
|
+
editLine: "i-lucide-pen-line"
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
function prepareMergeConfigs({ nuxt }) {
|
|
@@ -373,7 +373,7 @@ const module$1 = defineNuxtModule({
|
|
|
373
373
|
configKey: "cmsConsole"
|
|
374
374
|
},
|
|
375
375
|
moduleDependencies: {
|
|
376
|
-
"@hywax/cms-
|
|
376
|
+
"@hywax/cms-core": {}
|
|
377
377
|
},
|
|
378
378
|
defaults: defaultModuleOptions,
|
|
379
379
|
async setup(options, nuxt) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Pagination, PaginationQueryRaw } from '@hywax/cms-
|
|
1
|
+
import type { Pagination, PaginationQueryRaw } from '@hywax/cms-core';
|
|
2
2
|
import type { InputMenuItem } from '@nuxt/ui';
|
|
3
3
|
type PaginationQuery = Required<PaginationQueryRaw>;
|
|
4
4
|
export type AutocompleteSelectItem = Extract<InputMenuItem, object> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Pagination, PaginationQueryRaw } from '@hywax/cms-
|
|
1
|
+
import type { Pagination, PaginationQueryRaw } from '@hywax/cms-core';
|
|
2
2
|
import type { InputMenuItem } from '@nuxt/ui';
|
|
3
3
|
type PaginationQuery = Required<PaginationQueryRaw>;
|
|
4
4
|
export type AutocompleteSelectItem = Extract<InputMenuItem, object> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { ButtonProps, ModalProps } from '@nuxt/ui';
|
|
4
4
|
import type { ComponentProps } from 'vue-component-type-helpers';
|
|
@@ -52,7 +52,6 @@ function handleDeleteClick() {
|
|
|
52
52
|
title: props.title ?? "\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",
|
|
53
53
|
message: props.message ?? "\u0412\u044B \u0434\u0435\u0438\u0306\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C?",
|
|
54
54
|
color: "error",
|
|
55
|
-
variant: props.variant,
|
|
56
55
|
confirmLabel: props.confirmLabel,
|
|
57
56
|
confirmText: props.confirmText,
|
|
58
57
|
onConfirm: props.onConfirm
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { ButtonProps, ModalProps } from '@nuxt/ui';
|
|
4
4
|
import type { ComponentProps } from 'vue-component-type-helpers';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { FormData, FormSchema, FormSubmitEvent } from '@nuxt/ui';
|
|
4
4
|
import type { RouteLocationRaw } from 'vue-router';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { FormData, FormSchema, FormSubmitEvent } from '@nuxt/ui';
|
|
4
4
|
import type { RouteLocationRaw } from 'vue-router';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/cms-console/form-panel-aside-section';
|
|
4
4
|
type FormPanelAsideSection = ComponentConfig<typeof theme, AppConfig, 'formPanelAsideSection'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/cms-console/form-panel-aside-section';
|
|
4
4
|
type FormPanelAsideSection = ComponentConfig<typeof theme, AppConfig, 'formPanelAsideSection'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/cms-console/form-panel-section';
|
|
4
4
|
type FormPanelSection = ComponentConfig<typeof theme, AppConfig, 'formPanelSection'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/cms-console/form-panel-section';
|
|
4
4
|
type FormPanelSection = ComponentConfig<typeof theme, AppConfig, 'formPanelSection'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/cms-console/input-uplora-image';
|
|
4
4
|
type InputUploraImage = ComponentConfig<typeof theme, AppConfig, 'inputUploraImage'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/cms-console/input-uplora-image';
|
|
4
4
|
type InputUploraImage = ComponentConfig<typeof theme, AppConfig, 'inputUploraImage'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { ButtonProps } from '@nuxt/ui';
|
|
4
4
|
import theme from '#build/cms-console/modal-confirm';
|
|
@@ -9,7 +9,6 @@ export interface ModalConfirmProps {
|
|
|
9
9
|
confirmText?: string;
|
|
10
10
|
confirmLabel?: string;
|
|
11
11
|
color?: ButtonProps['color'];
|
|
12
|
-
variant?: ButtonProps['variant'];
|
|
13
12
|
size?: ButtonProps['size'];
|
|
14
13
|
onConfirm?: () => Promise<any> | any;
|
|
15
14
|
class?: any;
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
:disabled="state.confirmTextValue !== confirmText"
|
|
49
49
|
:loading="form?.loading"
|
|
50
50
|
:color="color"
|
|
51
|
-
:variant="variant"
|
|
52
51
|
:size="size"
|
|
53
52
|
/>
|
|
54
53
|
<UButton
|
|
@@ -56,7 +55,6 @@
|
|
|
56
55
|
label="Подтвердить"
|
|
57
56
|
loading-auto
|
|
58
57
|
:color="color"
|
|
59
|
-
:variant="variant"
|
|
60
58
|
:size="size"
|
|
61
59
|
@click="handleConfirmClick()"
|
|
62
60
|
/>
|
|
@@ -77,7 +75,6 @@ const props = defineProps({
|
|
|
77
75
|
confirmText: { type: String, required: false },
|
|
78
76
|
confirmLabel: { type: String, required: false, default: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C" },
|
|
79
77
|
color: { type: null, required: false },
|
|
80
|
-
variant: { type: null, required: false },
|
|
81
78
|
size: { type: null, required: false, default: "lg" },
|
|
82
79
|
onConfirm: { type: Function, required: false },
|
|
83
80
|
class: { type: null, required: false },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { ButtonProps } from '@nuxt/ui';
|
|
4
4
|
import theme from '#build/cms-console/modal-confirm';
|
|
@@ -9,7 +9,6 @@ export interface ModalConfirmProps {
|
|
|
9
9
|
confirmText?: string;
|
|
10
10
|
confirmLabel?: string;
|
|
11
11
|
color?: ButtonProps['color'];
|
|
12
|
-
variant?: ButtonProps['variant'];
|
|
13
12
|
size?: ButtonProps['size'];
|
|
14
13
|
onConfirm?: () => Promise<any> | any;
|
|
15
14
|
class?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { KeysMatching } from '@hywax/cms-
|
|
1
|
+
import type { KeysMatching } from '@hywax/cms-core';
|
|
2
2
|
import type { FormData, FormFieldProps, FormProps, FormSchema, SelectItem, SelectProps, SelectValue } from '@nuxt/ui';
|
|
3
3
|
import type { MaybeRef, VNode } from 'vue';
|
|
4
4
|
import type { DatePickerProps } from './DatePicker.vue';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { KeysMatching } from '@hywax/cms-
|
|
1
|
+
import type { KeysMatching } from '@hywax/cms-core';
|
|
2
2
|
import type { FormData, FormFieldProps, FormProps, FormSchema, SelectItem, SelectProps, SelectValue } from '@nuxt/ui';
|
|
3
3
|
import type { MaybeRef, VNode } from 'vue';
|
|
4
4
|
import type { DatePickerProps } from './DatePicker.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AsyncDataRequestStatus } from '#app';
|
|
2
|
-
import type { ComponentConfig, OptionalKeys } from '@hywax/cms-
|
|
2
|
+
import type { ComponentConfig, OptionalKeys } from '@hywax/cms-core';
|
|
3
3
|
import type { AppConfig } from '@nuxt/schema';
|
|
4
4
|
import type { DropdownMenuItem, FormSchema, PaginationEmits, PaginationProps, TableData, TableProps, TableRow, TableSlots } from '@nuxt/ui';
|
|
5
5
|
import type { ColumnPinningState, GroupingState, RowSelectionState } from '@tanstack/vue-table';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AsyncDataRequestStatus } from '#app';
|
|
2
|
-
import type { ComponentConfig, OptionalKeys } from '@hywax/cms-
|
|
2
|
+
import type { ComponentConfig, OptionalKeys } from '@hywax/cms-core';
|
|
3
3
|
import type { AppConfig } from '@nuxt/schema';
|
|
4
4
|
import type { DropdownMenuItem, FormSchema, PaginationEmits, PaginationProps, TableData, TableProps, TableRow, TableSlots } from '@nuxt/ui';
|
|
5
5
|
import type { ColumnPinningState, GroupingState, RowSelectionState } from '@tanstack/vue-table';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { InputEmits, InputProps, InputValue } from '@nuxt/ui';
|
|
4
4
|
import theme from '#build/cms-console/table-search-input';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@hywax/cms-
|
|
1
|
+
import type { ComponentConfig } from '@hywax/cms-core';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { InputEmits, InputProps, InputValue } from '@nuxt/ui';
|
|
4
4
|
import theme from '#build/cms-console/table-search-input';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PaginationQuery, RequiredOptional, SortQuery } from '@hywax/cms-
|
|
1
|
+
import type { PaginationQuery, RequiredOptional, SortQuery } from '@hywax/cms-core';
|
|
2
2
|
import type { SortingState } from '@tanstack/vue-table';
|
|
3
3
|
import type { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
|
|
4
4
|
import type { GetQueryTransforms } from '../types';
|
package/dist/runtime/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "@hywax/cms-
|
|
1
|
+
@import "@hywax/cms-core";@import "#build/cms-console.css";@source "./components";@source "./editor";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hywax/cms-console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"pathe": "^2.0.3",
|
|
62
62
|
"scule": "^1.3.0",
|
|
63
63
|
"sortablejs": "^1.15.6",
|
|
64
|
-
"@hywax/cms-
|
|
64
|
+
"@hywax/cms-core": "1.4.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@nuxt/devtools": "^3.1.1",
|