@hywax/cms 3.4.1 → 3.4.2
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/.nuxt/cms/prose/uplora-image.ts +1 -1
- package/.nuxt/cms.css +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/ButtonDeleteConfirm.d.vue.ts +2 -2
- package/dist/runtime/components/ButtonDeleteConfirm.vue +2 -2
- package/dist/runtime/components/ButtonDeleteConfirm.vue.d.ts +2 -2
- package/dist/runtime/components/EditorFull.vue +2 -2
- package/dist/runtime/components/FormUploraImage.vue +2 -2
- package/dist/runtime/components/TablePanel.vue +7 -7
- package/dist/runtime/components/TablePreviewLink.vue +2 -2
- package/package.json +1 -1
package/.nuxt/cms.css
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
@source "./cms/form-slug.ts";
|
|
5
5
|
@source "./cms/form-uplora-image.ts";
|
|
6
6
|
@source "./cms/uplora-image.ts";
|
|
7
|
+
@source "./cms/button-delete-confirm.ts";
|
|
8
|
+
@source "./cms/modal-confirm.ts";
|
|
7
9
|
@source "./cms/form-seo.ts";
|
|
8
10
|
@source "./cms/table-panel.ts";
|
|
9
|
-
@source "./cms/modal-confirm.ts";
|
|
10
11
|
@source "./cms/table-search-input.ts";
|
|
11
12
|
|
|
12
13
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { pascalCase, kebabCase, camelCase } from 'scule';
|
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
|
|
9
9
|
const name = "@hywax/cms";
|
|
10
|
-
const version = "3.4.
|
|
10
|
+
const version = "3.4.2";
|
|
11
11
|
|
|
12
12
|
function createContext(options, nuxt) {
|
|
13
13
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -560,7 +560,7 @@ const theme = {
|
|
|
560
560
|
|
|
561
561
|
const uploraImage = {
|
|
562
562
|
slots: {
|
|
563
|
-
base: ""
|
|
563
|
+
base: "rounded-lg"
|
|
564
564
|
}
|
|
565
565
|
};
|
|
566
566
|
|
|
@@ -4,10 +4,10 @@ import type { ComponentProps } from 'vue-component-type-helpers';
|
|
|
4
4
|
import type { ComponentConfig } from '../types';
|
|
5
5
|
import type { ModalConfirmEmits, ModalConfirmProps } from './ModalConfirm.vue';
|
|
6
6
|
import theme from '#build/cms/button-delete-confirm';
|
|
7
|
-
import
|
|
7
|
+
import CModalConfirm from './ModalConfirm.vue';
|
|
8
8
|
type ButtonDelete = ComponentConfig<typeof theme, AppConfig, 'buttonDelete'>;
|
|
9
9
|
export interface ButtonDeleteProps extends Pick<ModalConfirmProps, 'onConfirm'> {
|
|
10
|
-
modalProps?: Omit<ModalProps & ComponentProps<typeof
|
|
10
|
+
modalProps?: Omit<ModalProps & ComponentProps<typeof CModalConfirm>, 'title' | 'message' | 'onConfirm' | 'confirmButton'>;
|
|
11
11
|
confirmText?: string;
|
|
12
12
|
confirmLabel?: string;
|
|
13
13
|
title?: string;
|
|
@@ -24,7 +24,7 @@ import theme from "#build/cms/button-delete-confirm";
|
|
|
24
24
|
import { useAppConfig, useOverlay } from "#imports";
|
|
25
25
|
import { computed } from "vue";
|
|
26
26
|
import { tv } from "../tv";
|
|
27
|
-
import
|
|
27
|
+
import CModalConfirm from "./ModalConfirm.vue";
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
30
|
<script setup>
|
|
@@ -46,7 +46,7 @@ const props = defineProps({
|
|
|
46
46
|
});
|
|
47
47
|
defineEmits(["confirm", "close"]);
|
|
48
48
|
const appConfig = useAppConfig();
|
|
49
|
-
const modal = useOverlay().create(
|
|
49
|
+
const modal = useOverlay().create(CModalConfirm);
|
|
50
50
|
function handleDeleteClick() {
|
|
51
51
|
return modal.open({
|
|
52
52
|
...props.modalProps,
|
|
@@ -4,10 +4,10 @@ import type { ComponentProps } from 'vue-component-type-helpers';
|
|
|
4
4
|
import type { ComponentConfig } from '../types';
|
|
5
5
|
import type { ModalConfirmEmits, ModalConfirmProps } from './ModalConfirm.vue';
|
|
6
6
|
import theme from '#build/cms/button-delete-confirm';
|
|
7
|
-
import
|
|
7
|
+
import CModalConfirm from './ModalConfirm.vue';
|
|
8
8
|
type ButtonDelete = ComponentConfig<typeof theme, AppConfig, 'buttonDelete'>;
|
|
9
9
|
export interface ButtonDeleteProps extends Pick<ModalConfirmProps, 'onConfirm'> {
|
|
10
|
-
modalProps?: Omit<ModalProps & ComponentProps<typeof
|
|
10
|
+
modalProps?: Omit<ModalProps & ComponentProps<typeof CModalConfirm>, 'title' | 'message' | 'onConfirm' | 'confirmButton'>;
|
|
11
11
|
confirmText?: string;
|
|
12
12
|
confirmLabel?: string;
|
|
13
13
|
title?: string;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}"
|
|
73
73
|
>
|
|
74
74
|
<template #link>
|
|
75
|
-
<
|
|
75
|
+
<CEditorLinkPopover :editor="editor" />
|
|
76
76
|
</template>
|
|
77
77
|
</UEditorToolbar>
|
|
78
78
|
|
|
@@ -93,7 +93,7 @@ import { useEditorDragHandle } from "../composables/useEditorDragHandle";
|
|
|
93
93
|
import { useEditorSuggestions } from "../composables/useEditorSuggestions";
|
|
94
94
|
import { useEditorToolbar } from "../composables/useEditorToolbar";
|
|
95
95
|
import { UploraImage as UploraImageExtension, UploraImageHandlers } from "../editor/uplora-image/EditorUploraImage";
|
|
96
|
-
import
|
|
96
|
+
import CEditorLinkPopover from "./EditorLinkPopover.vue";
|
|
97
97
|
</script>
|
|
98
98
|
|
|
99
99
|
<script setup>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@click="resetState()"
|
|
28
28
|
/>
|
|
29
29
|
|
|
30
|
-
<
|
|
30
|
+
<CButtonDeleteConfirm
|
|
31
31
|
color="error"
|
|
32
32
|
size="sm"
|
|
33
33
|
variant="ghost"
|
|
@@ -103,7 +103,7 @@ import { imagesExtensions } from "@uplora/formats";
|
|
|
103
103
|
import { computed, useId } from "vue";
|
|
104
104
|
import { z } from "zod";
|
|
105
105
|
import { tv } from "../tv";
|
|
106
|
-
import
|
|
106
|
+
import CButtonDeleteConfirm from "./ButtonDeleteConfirm.vue";
|
|
107
107
|
</script>
|
|
108
108
|
|
|
109
109
|
<script setup>
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
<template #right>
|
|
17
17
|
<slot name="toolbar-right" />
|
|
18
18
|
|
|
19
|
-
<
|
|
19
|
+
<CTableColumnVisibility
|
|
20
20
|
v-model:visibility="columnVisibility"
|
|
21
21
|
v-model:order="columnOrder"
|
|
22
22
|
:table="tableRef?.tableApi"
|
|
23
23
|
:storage-key="storageKey"
|
|
24
24
|
/>
|
|
25
|
-
<
|
|
25
|
+
<CTableColumnSorting
|
|
26
26
|
:model-value="sorting"
|
|
27
27
|
:table="tableRef?.tableApi"
|
|
28
28
|
@update:model-value="emit('update:sorting', $event)"
|
|
29
29
|
/>
|
|
30
|
-
<
|
|
30
|
+
<CTableFilters
|
|
31
31
|
v-if="props.filtersSource"
|
|
32
32
|
:model-value="props.filters"
|
|
33
33
|
:schema="props.filtersSchema"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
>
|
|
44
44
|
<slot :name="pageTableSlot" v-bind="slotData" />
|
|
45
45
|
</template>
|
|
46
|
-
</
|
|
46
|
+
</CTableFilters>
|
|
47
47
|
</template>
|
|
48
48
|
</UDashboardToolbar>
|
|
49
49
|
</template>
|
|
@@ -137,9 +137,9 @@ import { useForwardProps } from "reka-ui";
|
|
|
137
137
|
import { computed, h, ref, useTemplateRef, watch } from "vue";
|
|
138
138
|
import { tv } from "../tv";
|
|
139
139
|
import CModalConfirm from "./ModalConfirm.vue";
|
|
140
|
-
import
|
|
141
|
-
import
|
|
142
|
-
import
|
|
140
|
+
import CTableColumnSorting from "./TableColumnSorting.vue";
|
|
141
|
+
import CTableColumnVisibility from "./TableColumnVisibility.vue";
|
|
142
|
+
import CTableFilters from "./TableFilters.vue";
|
|
143
143
|
</script>
|
|
144
144
|
|
|
145
145
|
<script setup>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="relative flex items-center gap-2">
|
|
3
3
|
<div v-if="image" class="overflow-hidden rounded-lg shrink-0">
|
|
4
|
-
<
|
|
4
|
+
<CUploraImage
|
|
5
5
|
v-bind="image"
|
|
6
6
|
:sizes="[{ width: 32, height: 32, descriptor: '1x' }]"
|
|
7
7
|
:ui="{ picture: 'aspect-square' }"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script setup>
|
|
30
|
-
import
|
|
30
|
+
import CUploraImage from "./UploraImage.vue";
|
|
31
31
|
defineProps({
|
|
32
32
|
to: { type: null, required: false },
|
|
33
33
|
target: { type: [String, Object, null], required: false },
|