@finema/core 2.56.1 → 2.57.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/Form/InputSelect/index.vue +9 -1
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +20 -1
- package/dist/runtime/components/Table/ColumnText.d.vue.ts +5 -1
- package/dist/runtime/components/Table/ColumnText.vue.d.ts +5 -1
- package/dist/runtime/theme/selectMenu.js +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -17,7 +17,15 @@
|
|
|
17
17
|
@update:modelValue="onChange"
|
|
18
18
|
@update:searchTerm="onSearch"
|
|
19
19
|
>
|
|
20
|
-
<template #default="{ modelValue }">
|
|
20
|
+
<template #default="{ modelValue, ui: selectMenuUi }">
|
|
21
|
+
<Chip
|
|
22
|
+
v-if="options.find((item) => item.value === modelValue)?.chip"
|
|
23
|
+
v-bind="options.find((item) => item.value === modelValue)?.chip"
|
|
24
|
+
inset
|
|
25
|
+
standalone
|
|
26
|
+
:size="selectMenuUi.itemLeadingChipSize()"
|
|
27
|
+
:class="selectMenuUi.itemLeadingChip()"
|
|
28
|
+
/>
|
|
21
29
|
<div
|
|
22
30
|
v-if="value"
|
|
23
31
|
:class="theme.selectedWrapper({
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@update:model-value="onChange"
|
|
18
18
|
@update:searchTerm="onSearch"
|
|
19
19
|
>
|
|
20
|
-
<template #default="{ modelValue }">
|
|
20
|
+
<template #default="{ modelValue, ui: selectMenuUi }">
|
|
21
21
|
<div
|
|
22
22
|
v-if="!ArrayHelper.isEmpty(value)"
|
|
23
23
|
:class="theme.tagsWrapper({
|
|
@@ -31,6 +31,25 @@
|
|
|
31
31
|
class: [ui?.tagsItem]
|
|
32
32
|
})"
|
|
33
33
|
>
|
|
34
|
+
<Chip
|
|
35
|
+
v-if="options.find((item) => item.value === _value)?.chip"
|
|
36
|
+
v-bind="options.find((item) => item.value === _value)?.chip"
|
|
37
|
+
inset
|
|
38
|
+
standalone
|
|
39
|
+
:size="selectMenuUi.itemLeadingChipSize()"
|
|
40
|
+
class="p-1"
|
|
41
|
+
/>
|
|
42
|
+
<Icon
|
|
43
|
+
v-if="options.find((item) => item.value === _value)?.icon"
|
|
44
|
+
:name="options.find((item) => item.value === _value)?.icon"
|
|
45
|
+
class="size-4"
|
|
46
|
+
/>
|
|
47
|
+
<Avatar
|
|
48
|
+
v-if="options.find((item) => item.value === _value)?.avatar"
|
|
49
|
+
v-bind="options.find((item) => item.value === _value)?.avatar"
|
|
50
|
+
:class="selectMenuUi.itemLeadingAvatar()"
|
|
51
|
+
size="2xs"
|
|
52
|
+
/>
|
|
34
53
|
<div
|
|
35
54
|
:class="theme.tagsItemText({
|
|
36
55
|
class: [ui?.tagsItemText]
|
|
@@ -2,7 +2,11 @@ import type { TableColumn } from '@nuxt/ui';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
value: any;
|
|
4
4
|
row: any;
|
|
5
|
-
column: TableColumn<any
|
|
5
|
+
column: TableColumn<any> & {
|
|
6
|
+
meta: {
|
|
7
|
+
max: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
6
10
|
};
|
|
7
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
12
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,7 +2,11 @@ import type { TableColumn } from '@nuxt/ui';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
value: any;
|
|
4
4
|
row: any;
|
|
5
|
-
column: TableColumn<any
|
|
5
|
+
column: TableColumn<any> & {
|
|
6
|
+
meta: {
|
|
7
|
+
max: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
6
10
|
};
|
|
7
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
12
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,10 +7,10 @@ export const selectMenuTheme = {
|
|
|
7
7
|
clearIcon: "size-6 bg-gray-400 hover:bg-gray-400/75",
|
|
8
8
|
item: "cursor-pointer max-sm:h-14",
|
|
9
9
|
tagsWrapper: "flex flex-wrap gap-x-2 gap-y-1",
|
|
10
|
-
tagsItem: "px-1.5 py-0.5 rounded-sm inline-flex items-center gap-0.5
|
|
10
|
+
tagsItem: "px-1.5 py-0.5 rounded-sm inline-flex items-center gap-0.5 ring-1 ring-gray-300 bg-white data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
11
11
|
tagsItemText: "flex items-center gap-x-1 text-sm",
|
|
12
12
|
tagsItemDelete: [
|
|
13
|
-
"inline-flex items-center text-
|
|
13
|
+
"inline-flex items-center hover:text-gray-500 disabled:pointer-events-none",
|
|
14
14
|
"transition-colors cursor-pointer"
|
|
15
15
|
],
|
|
16
16
|
tagsItemDeleteIcon: "ph:x"
|