@finema/core 2.8.1 → 2.8.3
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
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -93,8 +93,8 @@ const format = (date) => {
|
|
|
93
93
|
return date.length > 0 ? TimeHelper.displayDateTime(date[0]) + " - " + TimeHelper.displayDateTime(date[1] ?? date[0]) : "";
|
|
94
94
|
};
|
|
95
95
|
const onInput = (_value) => {
|
|
96
|
-
if (_value === null) {
|
|
97
|
-
value.value =
|
|
96
|
+
if (_value === null || _value === void 0) {
|
|
97
|
+
value.value = void 0;
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
if (props.disabledTime && !props.isReturnISO) {
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<SelectMenu
|
|
4
|
-
:model-value="value"
|
|
5
|
-
:items="options"
|
|
6
|
-
:placeholder="wrapperProps.placeholder"
|
|
7
|
-
:disabled="wrapperProps.disabled"
|
|
8
|
-
:loading="loading"
|
|
9
|
-
:search-input="searchInput"
|
|
10
|
-
:selected-icon="selectedIcon"
|
|
11
|
-
value-key="value"
|
|
12
|
-
label-key="label"
|
|
13
|
-
:icon="icon"
|
|
14
|
-
:ui="ui"
|
|
15
|
-
:leading-icon="options.find((item) => item.value === value)?.icon"
|
|
16
|
-
:avatar="options.find((item) => item.value === value)?.avatar"
|
|
17
|
-
@update:modelValue="onChange"
|
|
18
|
-
@update:searchTerm="onSearch"
|
|
19
|
-
>
|
|
20
|
-
<template #default="{ modelValue }">
|
|
21
|
-
<div
|
|
22
|
-
v-if="value"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<SelectMenu
|
|
4
|
+
:model-value="value"
|
|
5
|
+
:items="options"
|
|
6
|
+
:placeholder="wrapperProps.placeholder"
|
|
7
|
+
:disabled="wrapperProps.disabled"
|
|
8
|
+
:loading="loading"
|
|
9
|
+
:search-input="searchInput"
|
|
10
|
+
:selected-icon="selectedIcon"
|
|
11
|
+
value-key="value"
|
|
12
|
+
label-key="label"
|
|
13
|
+
:icon="icon"
|
|
14
|
+
:ui="ui"
|
|
15
|
+
:leading-icon="options.find((item) => item.value === value)?.icon"
|
|
16
|
+
:avatar="options.find((item) => item.value === value)?.avatar"
|
|
17
|
+
@update:modelValue="onChange"
|
|
18
|
+
@update:searchTerm="onSearch"
|
|
19
|
+
>
|
|
20
|
+
<template #default="{ modelValue }">
|
|
21
|
+
<div
|
|
22
|
+
v-if="value"
|
|
23
23
|
:class="theme.selectedWrapper({
|
|
24
24
|
class: [ui?.selectedWrapper]
|
|
25
|
-
})"
|
|
26
|
-
>
|
|
27
|
-
<span
|
|
25
|
+
})"
|
|
26
|
+
>
|
|
27
|
+
<span
|
|
28
28
|
:class="theme.selectedLabel({
|
|
29
29
|
class: [ui?.selectedLabel]
|
|
30
|
-
})"
|
|
31
|
-
>
|
|
32
|
-
{{ options.find((item) => item.value === modelValue)?.label || modelValue }}
|
|
33
|
-
</span>
|
|
34
|
-
<Icon
|
|
35
|
-
v-if="clearable"
|
|
36
|
-
:name="clearIcon"
|
|
30
|
+
})"
|
|
31
|
+
>
|
|
32
|
+
{{ options.find((item) => item.value === modelValue)?.label || modelValue }}
|
|
33
|
+
</span>
|
|
34
|
+
<Icon
|
|
35
|
+
v-if="clearable"
|
|
36
|
+
:name="clearIcon"
|
|
37
37
|
:class="theme.clearIcon({
|
|
38
38
|
class: [ui?.clearIcon]
|
|
39
|
-
})"
|
|
40
|
-
@click.stop="onChange(void 0)"
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
</SelectMenu>
|
|
45
|
-
</FieldWrapper>
|
|
39
|
+
})"
|
|
40
|
+
@click.stop="onChange(void 0)"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
</SelectMenu>
|
|
45
|
+
</FieldWrapper>
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script setup>
|
|
@@ -79,7 +79,7 @@ const props = defineProps({
|
|
|
79
79
|
help: { type: String, required: false },
|
|
80
80
|
ui: { type: null, required: false }
|
|
81
81
|
});
|
|
82
|
-
const theme = computed(() => useUiConfig(selectMenuTheme, "
|
|
82
|
+
const theme = computed(() => useUiConfig(selectMenuTheme, "selectMenu")());
|
|
83
83
|
const {
|
|
84
84
|
value,
|
|
85
85
|
wrapperProps,
|
|
@@ -13,6 +13,7 @@ export type TableColumn<T extends Record<string, any> = Record<string, any>> = N
|
|
|
13
13
|
type?: COLUMN_TYPES;
|
|
14
14
|
component?: Component;
|
|
15
15
|
accessorKey: string;
|
|
16
|
+
meta?: NuxtUiTableColumn<T>['meta'] & Record<string, any>;
|
|
16
17
|
};
|
|
17
18
|
export interface IBaseTableOptions<T extends Record<string, any> = Record<string, any>> {
|
|
18
19
|
rawData: T[];
|