@finema/core 3.13.1 → 3.14.1
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/FlexDeck/index.vue +79 -79
- package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/InputCheckbox/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputCheckboxGroup/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputCheckboxGroup/index.vue +21 -21
- package/dist/runtime/components/Form/InputCheckboxGroup/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputCurrency/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputCurrency/index.vue +49 -49
- package/dist/runtime/components/Form/InputCurrency/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputDateTime/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputDateTime/index.vue +155 -158
- package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputDateTimeRange/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue +56 -56
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputMonth/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputMonth/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputNumber/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputSearch/index.d.vue.ts +9 -1
- package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +9 -1
- package/dist/runtime/components/Form/InputSelect/index.d.vue.ts +7 -1
- package/dist/runtime/components/Form/InputSelect/index.vue +46 -46
- package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +7 -1
- package/dist/runtime/components/Form/InputSelectMultiple/index.d.vue.ts +7 -1
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +62 -62
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +7 -1
- package/dist/runtime/components/Form/InputTags/index.d.vue.ts +11 -1
- package/dist/runtime/components/Form/InputTags/index.vue +54 -54
- package/dist/runtime/components/Form/InputTags/index.vue.d.ts +11 -1
- package/dist/runtime/components/Form/InputText/index.d.vue.ts +7 -1
- package/dist/runtime/components/Form/InputText/index.vue +85 -85
- package/dist/runtime/components/Form/InputText/index.vue.d.ts +7 -1
- package/dist/runtime/components/Form/InputTextarea/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputTime/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputTime/index.vue +38 -38
- package/dist/runtime/components/Form/InputTime/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputToggle/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadImageAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.vue +18 -18
- package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.vue +65 -65
- package/dist/runtime/components/Form/InputWYSIWYG/README.md +96 -96
- package/dist/runtime/components/Form/InputWYSIWYG/index.vue +41 -41
- package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
- package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
- package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
- package/dist/runtime/components/Form/fileState/MultipleFilesState.vue +75 -75
- package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
- package/dist/runtime/components/Form/index.vue +5 -5
- package/dist/runtime/components/Image.vue +28 -28
- package/dist/runtime/components/Log/index.vue +17 -17
- package/dist/runtime/components/Table/Base.d.vue.ts +8 -2
- package/dist/runtime/components/Table/Base.vue.d.ts +8 -2
- package/dist/runtime/components/Table/ColumnDate.vue +1 -1
- package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
- package/dist/runtime/components/Table/ColumnImage.vue +4 -4
- package/dist/runtime/components/Table/ColumnText.vue +10 -10
- package/dist/runtime/components/Table/Pagination.vue +56 -56
- package/dist/runtime/components/Table/Simple.vue +16 -16
- package/dist/runtime/components/Table/index.vue +30 -30
- package/dist/runtime/composables/loaderPage.js +29 -0
- package/dist/runtime/helpers/apiPageHelper.d.ts +1 -0
- package/dist/runtime/server/tsconfig.json +3 -3
- package/package.json +2 -2
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div ref="tableContainer">
|
|
3
|
-
<div
|
|
4
|
-
v-if="options.isEnabledSearch"
|
|
2
|
+
<div ref="tableContainer">
|
|
3
|
+
<div
|
|
4
|
+
v-if="options.isEnabledSearch"
|
|
5
5
|
:class="
|
|
6
6
|
theme.searchContainer({
|
|
7
7
|
class: [ui?.searchContainer]
|
|
8
8
|
})
|
|
9
|
-
"
|
|
10
|
-
>
|
|
11
|
-
<Input
|
|
12
|
-
v-model="q"
|
|
13
|
-
icon="i-heroicons-magnifying-glass"
|
|
14
|
-
:placeholder="options.searchPlaceholder || '\u0E04\u0E49\u0E19\u0E2B\u0E32....'"
|
|
15
|
-
/>
|
|
16
|
-
</div>
|
|
17
|
-
<Base
|
|
18
|
-
v-bind="$attrs"
|
|
19
|
-
:options="options"
|
|
20
|
-
:ui="ui"
|
|
21
|
-
:column-pinning="computedColumnPinning"
|
|
22
|
-
@page-change="onPageChange"
|
|
23
|
-
@search="emits('search', q)"
|
|
24
|
-
>
|
|
25
|
-
<template
|
|
26
|
-
v-for="(_, slot) of $slots"
|
|
27
|
-
#[slot]="slotProps"
|
|
28
|
-
>
|
|
29
|
-
<slot
|
|
30
|
-
:name="slot"
|
|
31
|
-
v-bind="slotProps || {}"
|
|
32
|
-
/>
|
|
33
|
-
</template>
|
|
34
|
-
</Base>
|
|
35
|
-
</div>
|
|
9
|
+
"
|
|
10
|
+
>
|
|
11
|
+
<Input
|
|
12
|
+
v-model="q"
|
|
13
|
+
icon="i-heroicons-magnifying-glass"
|
|
14
|
+
:placeholder="options.searchPlaceholder || '\u0E04\u0E49\u0E19\u0E2B\u0E32....'"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<Base
|
|
18
|
+
v-bind="$attrs"
|
|
19
|
+
:options="options"
|
|
20
|
+
:ui="ui"
|
|
21
|
+
:column-pinning="computedColumnPinning"
|
|
22
|
+
@page-change="onPageChange"
|
|
23
|
+
@search="emits('search', q)"
|
|
24
|
+
>
|
|
25
|
+
<template
|
|
26
|
+
v-for="(_, slot) of $slots"
|
|
27
|
+
#[slot]="slotProps"
|
|
28
|
+
>
|
|
29
|
+
<slot
|
|
30
|
+
:name="slot"
|
|
31
|
+
v-bind="slotProps || {}"
|
|
32
|
+
/>
|
|
33
|
+
</template>
|
|
34
|
+
</Base>
|
|
35
|
+
</div>
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script setup>
|
|
@@ -101,6 +101,34 @@ export const usePageLoader = (loaderOptions) => {
|
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
103
|
};
|
|
104
|
+
const fetchAll = async (query = "", opts = {}) => {
|
|
105
|
+
opts.params = {
|
|
106
|
+
...opts.params,
|
|
107
|
+
limit: 99999
|
|
108
|
+
};
|
|
109
|
+
await apiFetchHelper(
|
|
110
|
+
() => ({
|
|
111
|
+
status: fetch.status,
|
|
112
|
+
items: fetch.items,
|
|
113
|
+
options: fetch.options
|
|
114
|
+
}),
|
|
115
|
+
(data) => {
|
|
116
|
+
fetch.status = data;
|
|
117
|
+
},
|
|
118
|
+
(data) => {
|
|
119
|
+
fetch.options = data;
|
|
120
|
+
},
|
|
121
|
+
(data) => {
|
|
122
|
+
fetch.items = data;
|
|
123
|
+
},
|
|
124
|
+
1,
|
|
125
|
+
query,
|
|
126
|
+
{
|
|
127
|
+
...loaderOptions,
|
|
128
|
+
...opts
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
};
|
|
104
132
|
const findRun = async (id, opts) => {
|
|
105
133
|
await apiFindHelper(
|
|
106
134
|
() => ({
|
|
@@ -261,6 +289,7 @@ export const usePageLoader = (loaderOptions) => {
|
|
|
261
289
|
delete: del,
|
|
262
290
|
// Rename del to delete in the return object
|
|
263
291
|
fetchPage,
|
|
292
|
+
fetchAll,
|
|
264
293
|
fetchSearch,
|
|
265
294
|
fetchPageChange,
|
|
266
295
|
fetchNextPage,
|
|
@@ -72,6 +72,7 @@ export interface IUsePageLoader<T> {
|
|
|
72
72
|
options: IAPIOptions;
|
|
73
73
|
};
|
|
74
74
|
fetchPage: (page?: number, query?: string, opts?: IPageFetchLoaderOptions) => Promise<void>;
|
|
75
|
+
fetchAll: (query?: string, opts?: IPageFetchLoaderOptions) => Promise<void>;
|
|
75
76
|
fetchPageChange: (page: number, opts?: IPageFetchLoaderOptions) => Promise<void>;
|
|
76
77
|
fetchNextPage: (opts?: IPageFetchLoaderOptions) => Promise<void>;
|
|
77
78
|
fetchSearch: (query: string, opts?: IPageFetchLoaderOptions) => Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finema/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.1",
|
|
4
4
|
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finema Dev Core Team",
|
|
@@ -83,4 +83,4 @@
|
|
|
83
83
|
"lint-staged": {
|
|
84
84
|
"*": "eslint"
|
|
85
85
|
}
|
|
86
|
-
}
|
|
86
|
+
}
|