@finema/core 2.50.0 → 2.52.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.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Table/Base.vue.d.ts +1 -1
- package/dist/runtime/components/Table/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/Table/Simple.vue.d.ts +6 -4
- package/dist/runtime/theme/input.d.ts +1 -0
- package/dist/runtime/theme/input.js +2 -1
- package/dist/runtime/theme/inputNumber.d.ts +1 -0
- package/dist/runtime/theme/inputNumber.js +2 -1
- package/dist/runtime/theme/inputTags.d.ts +3 -0
- package/dist/runtime/theme/inputTags.js +3 -0
- package/dist/runtime/theme/selectMenu.d.ts +1 -1
- package/dist/runtime/theme/selectMenu.js +1 -1
- package/dist/runtime/theme/textarea.d.ts +1 -0
- package/dist/runtime/theme/textarea.js +2 -1
- package/dist/runtime/theme/uploadFileDropzone.js +5 -5
- package/dist/runtime/theme/wysiwyg.js +4 -4
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ISimpleTableOptions, type ITableOptions } from '#core/components/Table/types';
|
|
2
2
|
import { tableTheme } from '#core/theme/table';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
options: ITableOptions<any>
|
|
4
|
+
options: ITableOptions<any> & ISimpleTableOptions<any>;
|
|
5
5
|
ui?: typeof tableTheme['slots'];
|
|
6
6
|
};
|
|
7
7
|
declare var __VLS_22: {}, __VLS_29: {}, __VLS_31: {}, __VLS_45: string | number, __VLS_46: any;
|
|
@@ -3,7 +3,7 @@ import { tableTheme } from '../../theme/table.js';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
page: number;
|
|
5
5
|
pageLimit: number;
|
|
6
|
-
options: ITableOptions<any>
|
|
6
|
+
options: ITableOptions<any> & ISimpleTableOptions<any>;
|
|
7
7
|
ui?: typeof tableTheme['slots'];
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { ISimpleTableOptions } from '#core/components/Table/types';
|
|
2
|
+
import type { tableTheme } from '../../theme/table.js';
|
|
3
|
+
import type { TableSlots } from '@nuxt/ui';
|
|
2
4
|
type __VLS_Props = {
|
|
3
5
|
options: ISimpleTableOptions<any>;
|
|
4
|
-
ui?:
|
|
6
|
+
ui?: typeof tableTheme['slots'];
|
|
5
7
|
};
|
|
6
|
-
type __VLS_Slots =
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
type __VLS_Slots = Slot;
|
|
9
|
+
type Slot = TableSlots<any> & {
|
|
10
|
+
error: (props?: Record<string, any>) => any;
|
|
9
11
|
};
|
|
10
12
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
13
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export const inputTheme = {
|
|
2
2
|
slots: {
|
|
3
3
|
root: "w-full",
|
|
4
|
-
|
|
4
|
+
base: ["rounded-lg"],
|
|
5
|
+
suggestionsContainer: "w-full bg-white max-h-60 overflow-y-auto rounded-lg",
|
|
5
6
|
suggestionItem: "px-3 py-3 text-sm cursor-pointer hover:bg-(--ui-color-primary-100) truncate",
|
|
6
7
|
suggestionItemActive: "bg-(--ui-color-primary-100)"
|
|
7
8
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const selectMenuTheme = {
|
|
2
2
|
slots: {
|
|
3
|
-
base: "cursor-pointer w-full",
|
|
3
|
+
base: ["cursor-pointer w-full rounded-lg"],
|
|
4
4
|
trailingIcon: "group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
5
5
|
selectedWrapper: "flex w-full items-center justify-between",
|
|
6
6
|
selectedLabel: "truncate",
|
|
@@ -11,7 +11,7 @@ export const uploadFileDropzoneTheme = {
|
|
|
11
11
|
actionRetryIcon: "stash:arrow-retry"
|
|
12
12
|
},
|
|
13
13
|
slots: {
|
|
14
|
-
base: "relative w-full text-base p-4 transition rounded-
|
|
14
|
+
base: "relative w-full text-base p-4 transition rounded-lg flex items-center justify-center ring-1 bg-white ring-accented",
|
|
15
15
|
wrapper: "flex flex-col items-center w-full",
|
|
16
16
|
disabled: "bg-gray-100 border-none grayscale cursor-not-allowed",
|
|
17
17
|
failed: "border-error",
|
|
@@ -26,14 +26,14 @@ export const uploadFileDropzoneTheme = {
|
|
|
26
26
|
onLoadingTextWrapper: "flex-1 min-w-0 flex items-center justify-between",
|
|
27
27
|
onLoadingLoadingIconClass: "size-10 text-primary animate-spin",
|
|
28
28
|
// Preview state
|
|
29
|
-
onPreviewWrapper: "flex items-center space-x-4 rounded-
|
|
30
|
-
onPreviewImgWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-
|
|
29
|
+
onPreviewWrapper: "flex items-center space-x-4 rounded-lg w-full",
|
|
30
|
+
onPreviewImgWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-lg overflow-hidden bg-gray-100",
|
|
31
31
|
onPreviewImgClass: "w-full h-full object-cover",
|
|
32
|
-
onPreviewFileWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-
|
|
32
|
+
onPreviewFileWrapper: "flex-shrink-0 w-16 h-16 flex justify-center items-center rounded-lg overflow-hidden",
|
|
33
33
|
onPreviewFileClass: "size-8 text-gray-400 m-auto",
|
|
34
34
|
onPreviewTextWrapper: "flex-1 min-w-0 flex items-center justify-between",
|
|
35
35
|
// Failed state
|
|
36
|
-
onFailedWrapper: "flex items-start space-x-4 w-full rounded-
|
|
36
|
+
onFailedWrapper: "flex items-start space-x-4 w-full rounded-lg",
|
|
37
37
|
onFailedFailedImgWrapper: "flex-shrink-0",
|
|
38
38
|
onFailedFailedIconClass: "size-12",
|
|
39
39
|
onFailedTextWrapper: "flex-1 min-w-0 flex items-start justify-between",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const wysiwygTheme = {
|
|
2
2
|
slots: {
|
|
3
|
-
container: "border border-
|
|
4
|
-
toolbar: "flex flex-wrap border py-2 px-2 gap-1 border-gray-300 bg-white rounded-t-
|
|
5
|
-
toolbarGroup: "flex items-center border-r border-
|
|
6
|
-
menuItem: "px-1 py-1 rounded-
|
|
3
|
+
container: "border border-neutral-300 focus:ring-primary-500 relative block w-full resize-none rounded-lg border-0 bg-white p-0 pb-3 text-sm text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-75",
|
|
4
|
+
toolbar: "flex flex-wrap border py-2 px-2 gap-1 border-gray-300 bg-white rounded-t-lg",
|
|
5
|
+
toolbarGroup: "flex items-center border-r border-neutral-300 pr-2",
|
|
6
|
+
menuItem: "px-1 py-1 rounded-lg hover:bg-gray-100 transition-colors flex justify-center items-center cursor-pointer flex-wrap",
|
|
7
7
|
menuItemActive: "bg-primary-100 text-primary-600",
|
|
8
8
|
icon: "size-5",
|
|
9
9
|
editorContent: ""
|