@hywax/cms-console 1.1.3 → 1.3.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.
Files changed (38) hide show
  1. package/dist/module.d.mts +2 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +32 -32
  4. package/dist/runtime/components/AutocompleteSelect.d.vue.ts +1 -1
  5. package/dist/runtime/components/AutocompleteSelect.vue.d.ts +1 -1
  6. package/dist/runtime/components/ButtonCopyText.d.vue.ts +1 -1
  7. package/dist/runtime/components/ButtonCopyText.vue.d.ts +1 -1
  8. package/dist/runtime/components/ButtonDeleteConfirm.d.vue.ts +1 -1
  9. package/dist/runtime/components/ButtonDeleteConfirm.vue +0 -1
  10. package/dist/runtime/components/ButtonDeleteConfirm.vue.d.ts +1 -1
  11. package/dist/runtime/components/FormPanel.d.vue.ts +1 -1
  12. package/dist/runtime/components/FormPanel.vue.d.ts +1 -1
  13. package/dist/runtime/components/FormPanelAsideSection.d.vue.ts +1 -1
  14. package/dist/runtime/components/FormPanelAsideSection.vue.d.ts +1 -1
  15. package/dist/runtime/components/FormPanelSection.d.vue.ts +1 -1
  16. package/dist/runtime/components/FormPanelSection.vue.d.ts +1 -1
  17. package/dist/runtime/components/InputSeo.d.vue.ts +1 -1
  18. package/dist/runtime/components/InputSeo.vue.d.ts +1 -1
  19. package/dist/runtime/components/InputSlug.d.vue.ts +1 -1
  20. package/dist/runtime/components/InputSlug.vue.d.ts +1 -1
  21. package/dist/runtime/components/InputUploraImage.d.vue.ts +1 -1
  22. package/dist/runtime/components/InputUploraImage.vue +23 -12
  23. package/dist/runtime/components/InputUploraImage.vue.d.ts +1 -1
  24. package/dist/runtime/components/ModalConfirm.d.vue.ts +1 -2
  25. package/dist/runtime/components/ModalConfirm.vue +0 -3
  26. package/dist/runtime/components/ModalConfirm.vue.d.ts +1 -2
  27. package/dist/runtime/components/TableFilters.d.vue.ts +1 -1
  28. package/dist/runtime/components/TableFilters.vue +2 -2
  29. package/dist/runtime/components/TableFilters.vue.d.ts +1 -1
  30. package/dist/runtime/components/TablePanel.d.vue.ts +1 -1
  31. package/dist/runtime/components/TablePanel.vue +2 -3
  32. package/dist/runtime/components/TablePanel.vue.d.ts +1 -1
  33. package/dist/runtime/components/TableSearchInput.d.vue.ts +1 -1
  34. package/dist/runtime/components/TableSearchInput.vue.d.ts +1 -1
  35. package/dist/runtime/composables/useTable.d.ts +1 -1
  36. package/dist/runtime/composables/useTable.js +1 -1
  37. package/dist/runtime/index.css +1 -1
  38. package/package.json +3 -3
package/dist/module.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { CMSRuntimeOptions } from '@hywax/cms-runtime';
2
+ import { CMSCoreOptions } from '@hywax/cms-core';
3
3
  export * from '../dist/runtime/types/index.js';
4
4
 
5
- interface CMSConsoleOptions extends CMSRuntimeOptions {
5
+ interface CMSConsoleOptions extends Pick<CMSCoreOptions, 'componentsPrefix'> {
6
6
  }
7
7
 
8
8
  declare const _default: _nuxt_schema.NuxtModule<CMSConsoleOptions, CMSConsoleOptions, false>;
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hywax/cms-console",
3
- "version": "1.1.3",
3
+ "version": "1.3.0",
4
4
  "configKey": "cmsConsole",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
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.1.3";
8
+ const version = "1.3.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:calendar",
46
- sort: "lucide:arrow-down-up",
47
- sortAsc: "lucide:arrow-up-wide-narrow",
48
- sortDesc: "lucide:arrow-down-wide-narrow",
49
- columns: "lucide:columns-3-cog",
50
- filter: "lucide:filter",
51
- ellipsisVertical: "lucide:ellipsis-vertical",
52
- repeat: "lucide:repeat-2",
53
- clipboard: "lucide:clipboard",
54
- trash: "lucide:trash",
55
- paragraph: "lucide:type",
56
- heading1: "lucide:heading-1",
57
- heading2: "lucide:heading-2",
58
- heading3: "lucide:heading-3",
59
- heading4: "lucide:heading-4",
60
- list: "lucide:list",
61
- listOrdered: "lucide:list-ordered",
62
- blockquote: "lucide:text-quote",
63
- codeBlock: "lucide:square-code",
64
- horizontalRule: "lucide:separator-horizontal",
65
- enter: "lucide:corner-down-left",
66
- link: "lucide:link",
67
- download: "lucide:download",
68
- bold: "lucide:bold",
69
- italic: "lucide:italic",
70
- underline: "lucide:underline",
71
- strikethrough: "lucide:strikethrough",
72
- code: "lucide:code",
73
- image: "lucide:image",
74
- editLine: "lucide:pen-line"
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-runtime": {}
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-runtime';
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-runtime';
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-runtime';
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 type { RouteLocationRaw } from 'vue-router';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
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 type { RouteLocationRaw } from 'vue-router';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
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-runtime';
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-runtime';
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-runtime';
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-runtime';
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-runtime';
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-runtime';
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-runtime';
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-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { SEO } from '../types';
4
4
  import theme from '#build/cms-console/input-seo';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { SEO } from '../types';
4
4
  import theme from '#build/cms-console/input-seo';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { InputProps } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/input-slug';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { InputProps } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/input-slug';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
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'>;
@@ -36,6 +36,14 @@
36
36
  </template>
37
37
  </UPopover>
38
38
 
39
+ <UButton
40
+ color="neutral"
41
+ size="sm"
42
+ variant="ghost"
43
+ :icon="appConfig.ui.icons.refresh"
44
+ @click="resetState()"
45
+ />
46
+
39
47
  <ButtonDeleteConfirm
40
48
  color="error"
41
49
  size="sm"
@@ -130,6 +138,20 @@ const { open, execute: uploadExecute, status: uploadStatus, reset: resetUpload,
130
138
  accept: "image/*"
131
139
  });
132
140
  const { execute: deleteExecute, onDeleted } = useUploraDelete();
141
+ function syncState() {
142
+ modelValue.value = {
143
+ ...modelValue.value,
144
+ alt: state.alt
145
+ };
146
+ }
147
+ function resetState() {
148
+ modelValue.value = {
149
+ image: "",
150
+ alt: ""
151
+ };
152
+ emitFormChange();
153
+ emitFormInput();
154
+ }
133
155
  onUploaded((file) => {
134
156
  modelValue.value = {
135
157
  ...modelValue.value,
@@ -142,20 +164,9 @@ onUploaded((file) => {
142
164
  });
143
165
  onDeleted(() => {
144
166
  resetUpload();
145
- modelValue.value = {
146
- image: "",
147
- alt: ""
148
- };
167
+ resetState();
149
168
  emit("delete");
150
- emitFormChange();
151
- emitFormInput();
152
169
  });
153
- function syncState() {
154
- modelValue.value = {
155
- ...modelValue.value,
156
- alt: state.alt
157
- };
158
- }
159
170
  const ui = computed(() => tv({ extend: tv(theme), ...appConfig.cms?.inputUploraImage || {} })({
160
171
  disabled: disabled.value,
161
172
  uploaded: modelValue.value.image !== ""
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
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-runtime';
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-runtime';
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-runtime';
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';
@@ -53,7 +53,7 @@
53
53
  <UButton
54
54
  color="neutral"
55
55
  label="Сбросить"
56
- variant="outline"
56
+ variant="ghost"
57
57
  @click="reset"
58
58
  />
59
59
 
@@ -72,7 +72,7 @@
72
72
  import { UCheckbox, UForm, UInput, USelect, USwitch } from "#components";
73
73
  import { useAppConfig } from "#imports";
74
74
  import { useCloned } from "@vueuse/core";
75
- import copy from "fast-copy";
75
+ import { copy } from "fast-copy";
76
76
  import { deepEqual } from "fast-equals";
77
77
  import { computed, h, nextTick, ref, toValue, unref, useId, useTemplateRef, watch } from "vue";
78
78
  import CDatePicker from "./DatePicker.vue";
@@ -1,4 +1,4 @@
1
- import type { KeysMatching } from '@hywax/cms-runtime';
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-runtime';
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';
@@ -129,8 +129,7 @@
129
129
  <script>
130
130
  import theme from "#build/cms-console/table-panel";
131
131
  import { UButton, UCheckbox, UDropdownMenu, UTable } from "#components";
132
- import { useAppConfig } from "#imports";
133
- import { useOverlay } from "@nuxt/ui/composables/useOverlay";
132
+ import { useAppConfig, useOverlay } from "#imports";
134
133
  import { getGroupedRowModel } from "@tanstack/vue-table";
135
134
  import { reactivePick } from "@vueuse/core";
136
135
  import { defu } from "defu";
@@ -206,7 +205,7 @@ function createActionCell(action) {
206
205
  onClick: () => modalConfirm.open(defu(action.delete, {
207
206
  title: "\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",
208
207
  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 \u044D\u043B\u0435\u043C\u0435\u043D\u0442?",
209
- confirmButton: { color: "error", label: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C" }
208
+ color: "error"
210
209
  }))
211
210
  };
212
211
  }
@@ -1,5 +1,5 @@
1
1
  import type { AsyncDataRequestStatus } from '#app';
2
- import type { ComponentConfig, OptionalKeys } from '@hywax/cms-runtime';
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-runtime';
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-runtime';
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-runtime';
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';
@@ -1,4 +1,4 @@
1
- import copy from "fast-copy";
1
+ import { copy } from "fast-copy";
2
2
  import { computed, ref, toValue, watch } from "vue";
3
3
  import { useQueryState } from "../composables/useQueryState.js";
4
4
  export function useTableFilters(initialFilters, options) {
@@ -1 +1 @@
1
- @import "@hywax/cms-runtime";@import "#build/cms-console.css";@source "./components";@source "./editor";
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.1.3",
4
+ "version": "1.3.0",
5
5
  "description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -56,12 +56,12 @@
56
56
  "@unovis/ts": "^1.6.2",
57
57
  "@unovis/vue": "^1.6.2",
58
58
  "defu": "^6.1.4",
59
- "fast-copy": "^3.0.2",
59
+ "fast-copy": "^4.0.2",
60
60
  "fast-equals": "^5.4.0",
61
61
  "pathe": "^2.0.3",
62
62
  "scule": "^1.3.0",
63
63
  "sortablejs": "^1.15.6",
64
- "@hywax/cms-runtime": "1.2.0"
64
+ "@hywax/cms-core": "1.5.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@nuxt/devtools": "^3.1.1",