@vc-shell/framework 1.0.160 → 1.0.161
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../shared/modules/dynamic/composables/useFilterBuilder/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../shared/modules/dynamic/composables/useFilterBuilder/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,QAAQ,EAIR,eAAe,EACf,YAAY,EACZ,KAAK,EACL,WAAW,EAIZ,MAAM,KAAK,CAAC;AAGb,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAmC,MAAM,aAAa,CAAC;AAS1E,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,CAAC,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAChD,KAAK,CACH,YAAY,EACZ,eAAe,EACf;QAEE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CACF,GACD,SAAS,CAAC;IACd,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;;UAGO,UAAU,GAAG,SAAS;;;WAGrB,YAAY,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,SAAS;MACjD,gBAAgB;AALpB,wBA+ME"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.161",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"whatwg-fetch": "^3.6.19"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
57
|
-
"@vc-shell/config-generator": "^1.0.
|
|
58
|
-
"@vc-shell/ts-config": "^1.0.
|
|
56
|
+
"@vc-shell/api-client-generator": "^1.0.161",
|
|
57
|
+
"@vc-shell/config-generator": "^1.0.161",
|
|
58
|
+
"@vc-shell/ts-config": "^1.0.161",
|
|
59
59
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
60
60
|
"sass": "^1.69.6",
|
|
61
61
|
"typescript": "^5.3.3",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { toReactive, createUnrefFn } from "@vueuse/core";
|
|
1
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
3
|
import {
|
|
3
4
|
h,
|
|
@@ -19,7 +20,6 @@ import * as _ from "lodash-es";
|
|
|
19
20
|
import { Checkbox, InputField } from "../../components/factories";
|
|
20
21
|
import { AsyncAction } from "../../../../../core/composables";
|
|
21
22
|
import { VcButton, VcCol, VcContainer, VcRow } from "../../../../../ui/components";
|
|
22
|
-
import { createUnrefFn } from "@vueuse/core";
|
|
23
23
|
import { useI18n } from "vue-i18n";
|
|
24
24
|
import { FilterBase, FilterCheckbox, FilterDateInput } from "../../types";
|
|
25
25
|
|
|
@@ -163,14 +163,14 @@ export default <Query>(args: {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
async function applyFilters(filterHandlerFn: () => void) {
|
|
166
|
+
appliedFilter.value = {
|
|
167
|
+
...filter.value,
|
|
168
|
+
};
|
|
166
169
|
filterHandlerFn();
|
|
167
170
|
await _search({
|
|
168
171
|
...unref(args.query),
|
|
169
172
|
...filter.value,
|
|
170
173
|
});
|
|
171
|
-
appliedFilter.value = {
|
|
172
|
-
...filter.value,
|
|
173
|
-
};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
async function resetFilters(filterHandlerFn: () => void) {
|
|
@@ -190,9 +190,7 @@ export default <Query>(args: {
|
|
|
190
190
|
VcContainer,
|
|
191
191
|
{
|
|
192
192
|
onVnodeBeforeMount: () => {
|
|
193
|
-
|
|
194
|
-
filter.value = _.cloneDeep(appliedFilter.value);
|
|
195
|
-
}
|
|
193
|
+
filter.value = { ...appliedFilter.value };
|
|
196
194
|
},
|
|
197
195
|
},
|
|
198
196
|
() => [
|
|
@@ -253,7 +251,7 @@ export default <Query>(args: {
|
|
|
253
251
|
return {
|
|
254
252
|
filterComponent: render,
|
|
255
253
|
activeFilterCount,
|
|
256
|
-
filter: readonly(filter
|
|
254
|
+
filter: readonly(toReactive(filter)),
|
|
257
255
|
isFilterVisible: computed(() => isFilterVisible.value),
|
|
258
256
|
reset,
|
|
259
257
|
};
|