@platforma-sdk/ui-vue 1.45.45 → 1.46.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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/components/PlAdvancedFilter/FilterEditor.vue.d.ts +2 -6
- package/dist/components/PlAdvancedFilter/FilterEditor.vue2.js +138 -141
- package/dist/components/PlAdvancedFilter/FilterEditor.vue2.js.map +1 -1
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts +2 -12
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue2.js +54 -56
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue2.js.map +1 -1
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +8 -8
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js.map +1 -1
- package/dist/components/PlAnnotations/components/FilterSidebar.vue.d.ts +2 -6
- package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +29 -31
- package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js.map +1 -1
- package/dist/components/PlAnnotations/components/PlAnnotations.vue2.js +14 -16
- package/dist/components/PlAnnotations/components/PlAnnotations.vue2.js.map +1 -1
- package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue2.js +13 -15
- package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue2.js.map +1 -1
- package/package.json +7 -7
- package/src/components/PlAdvancedFilter/FilterEditor.vue +16 -20
- package/src/components/PlAdvancedFilter/PlAdvancedFilter.vue +2 -6
- package/src/components/PlAgDataTable/PlAgDataTableV2.vue +7 -5
- package/src/components/PlAnnotations/components/FilterSidebar.vue +1 -5
- package/src/components/PlAnnotations/components/PlAnnotations.vue +0 -1
- package/src/components/PlAnnotations/components/PlAnnotationsModal.vue +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @platforma-sdk/ui-vue@1.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.46.1 build /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> ts-builder build --target browser-lib
|
|
5
5
|
|
|
6
6
|
Building browser-lib project...
|
|
@@ -79,8 +79,8 @@ computing gzip size...
|
|
|
79
79
|
[2mdist/[22m[36mnode_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js [39m[1m[2m 0.30 kB[22m[1m[22m[2m │ gzip: 0.23 kB[22m[2m │ map: 0.78 kB[22m
|
|
80
80
|
[2mdist/[22m[36mcomponents/PlBtnExportArchive/PlBtnExportArchive.vue.js [39m[1m[2m 0.31 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m[2m │ map: 0.11 kB[22m
|
|
81
81
|
[2mdist/[22m[36mcomponents/PlAnnotations/components/PlAnnotationsModal.vue.js [39m[1m[2m 0.31 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m[2m │ map: 0.11 kB[22m
|
|
82
|
-
[2mdist/[22m[36mcomponents/PlAgDataTable/PlAgDataTableSheets.vue.js [39m[1m[2m 0.31 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m[2m │ map: 0.11 kB[22m
|
|
83
82
|
[2mdist/[22m[36mcomponents/PlAnnotations/components/AnnotationsSidebar.vue.js [39m[1m[2m 0.31 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m[2m │ map: 0.11 kB[22m
|
|
83
|
+
[2mdist/[22m[36mcomponents/PlAgDataTable/PlAgDataTableSheets.vue.js [39m[1m[2m 0.31 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m[2m │ map: 0.11 kB[22m
|
|
84
84
|
[2mdist/[22m[36mnode_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js [39m[1m[2m 0.31 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m[2m │ map: 0.76 kB[22m
|
|
85
85
|
[2mdist/[22m[36mcomponents/PlAgGridColumnManager/PlAgGridColumnManager.vue.js [39m[1m[2m 0.32 kB[22m[1m[22m[2m │ gzip: 0.23 kB[22m[2m │ map: 0.12 kB[22m
|
|
86
86
|
[2mdist/[22m[36mnode_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js [39m[1m[2m 0.32 kB[22m[1m[22m[2m │ gzip: 0.23 kB[22m[2m │ map: 0.74 kB[22m
|
|
@@ -160,7 +160,7 @@ computing gzip size...
|
|
|
160
160
|
[2mdist/[22m[36minternal/createAppModel.js [39m[1m[2m 1.73 kB[22m[1m[22m[2m │ gzip: 0.77 kB[22m[2m │ map: 4.81 kB[22m
|
|
161
161
|
[2mdist/[22m[36mplugins/Monetization/RunStatus.vue3.js [39m[1m[2m 1.79 kB[22m[1m[22m[2m │ gzip: 0.82 kB[22m[2m │ map: 0.11 kB[22m
|
|
162
162
|
[2mdist/[22m[36minternal/UpdateSerializer.js [39m[1m[2m 1.86 kB[22m[1m[22m[2m │ gzip: 0.80 kB[22m[2m │ map: 4.63 kB[22m
|
|
163
|
-
[2mdist/[22m[36mcomponents/PlAnnotations/components/PlAnnotationsModal.vue2.js [39m[1m[2m
|
|
163
|
+
[2mdist/[22m[36mcomponents/PlAnnotations/components/PlAnnotationsModal.vue2.js [39m[1m[2m 1.99 kB[22m[1m[22m[2m │ gzip: 0.86 kB[22m[2m │ map: 2.62 kB[22m
|
|
164
164
|
[2mdist/[22m[36mdefineApp.js [39m[1m[2m 2.15 kB[22m[1m[22m[2m │ gzip: 0.96 kB[22m[2m │ map: 9.58 kB[22m
|
|
165
165
|
[2mdist/[22m[36mplugins/Monetization/useInfo.js [39m[1m[2m 2.18 kB[22m[1m[22m[2m │ gzip: 0.80 kB[22m[2m │ map: 4.32 kB[22m
|
|
166
166
|
[2mdist/[22m[36mcomponents/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.js [39m[1m[2m 2.20 kB[22m[1m[22m[2m │ gzip: 1.05 kB[22m[2m │ map: 3.27 kB[22m
|
|
@@ -170,7 +170,7 @@ computing gzip size...
|
|
|
170
170
|
[2mdist/[22m[36mcomponents/PlTableFilters/PlTableFiltersV2.vue3.js [39m[1m[2m 2.58 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m[2m │ map: 0.12 kB[22m
|
|
171
171
|
[2mdist/[22m[36mcomponents/PlTableFilters/filters-state.js [39m[1m[2m 2.60 kB[22m[1m[22m[2m │ gzip: 1.08 kB[22m[2m │ map: 7.95 kB[22m
|
|
172
172
|
[2mdist/[22m[36mnode_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js [39m[1m[2m 2.65 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m[2m │ map: 6.36 kB[22m
|
|
173
|
-
[2mdist/[22m[36mcomponents/PlAnnotations/components/PlAnnotations.vue2.js [39m[1m[2m 2.
|
|
173
|
+
[2mdist/[22m[36mcomponents/PlAnnotations/components/PlAnnotations.vue2.js [39m[1m[2m 2.68 kB[22m[1m[22m[2m │ gzip: 1.08 kB[22m[2m │ map: 4.03 kB[22m
|
|
174
174
|
[2mdist/[22m[36mnode_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/helpers.js [39m[1m[2m 2.79 kB[22m[1m[22m[2m │ gzip: 1.21 kB[22m[2m │ map: 8.92 kB[22m
|
|
175
175
|
[2mdist/[22m[36mcomponents/PlAgDataTable/sources/row-number.js [39m[1m[2m 3.10 kB[22m[1m[22m[2m │ gzip: 1.34 kB[22m[2m │ map: 8.36 kB[22m
|
|
176
176
|
[2mdist/[22m[36mplugins/Monetization/LimitCard.vue3.js [39m[1m[2m 3.10 kB[22m[1m[22m[2m │ gzip: 1.09 kB[22m[2m │ map: 0.11 kB[22m
|
|
@@ -185,7 +185,7 @@ computing gzip size...
|
|
|
185
185
|
[2mdist/[22m[36mplugins/Monetization/LimitCard.vue2.js [39m[1m[2m 3.84 kB[22m[1m[22m[2m │ gzip: 1.15 kB[22m[2m │ map: 9.38 kB[22m
|
|
186
186
|
[2mdist/[22m[36mcomponents/PlAgGridColumnManager/PlAgGridColumnManager.vue2.js [39m[1m[2m 3.85 kB[22m[1m[22m[2m │ gzip: 1.53 kB[22m[2m │ map: 6.90 kB[22m
|
|
187
187
|
[2mdist/[22m[36mnode_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js [39m[1m[2m 4.03 kB[22m[1m[22m[2m │ gzip: 1.23 kB[22m[2m │ map: 12.92 kB[22m
|
|
188
|
-
[2mdist/[22m[36mcomponents/PlAnnotations/components/FilterSidebar.vue2.js [39m[1m[2m 4.
|
|
188
|
+
[2mdist/[22m[36mcomponents/PlAnnotations/components/FilterSidebar.vue2.js [39m[1m[2m 4.22 kB[22m[1m[22m[2m │ gzip: 1.53 kB[22m[2m │ map: 7.29 kB[22m
|
|
189
189
|
[2mdist/[22m[36mplugins/Monetization/MonetizationSidebar.vue.js [39m[1m[2m 4.71 kB[22m[1m[22m[2m │ gzip: 1.75 kB[22m[2m │ map: 6.69 kB[22m
|
|
190
190
|
[2mdist/[22m[36mcomponents/BlockLayout.vue2.js [39m[1m[2m 4.97 kB[22m[1m[22m[2m │ gzip: 1.84 kB[22m[2m │ map: 3.90 kB[22m
|
|
191
191
|
[2mdist/[22m[36mcomponents/PlAnnotations/components/AnnotationsSidebar.vue3.js [39m[1m[2m 5.65 kB[22m[1m[22m[2m │ gzip: 1.67 kB[22m[2m │ map: 0.11 kB[22m
|
|
@@ -198,10 +198,10 @@ computing gzip size...
|
|
|
198
198
|
[2mdist/[22m[36mcomponents/PlAgDataTable/sources/table-source-v2.js [39m[1m[2m 7.32 kB[22m[1m[22m[2m │ gzip: 2.67 kB[22m[2m │ map: 22.27 kB[22m
|
|
199
199
|
[2mdist/[22m[36mcomponents/PlTableFilters/PlTableFilterEntryV2.vue.js [39m[1m[2m 7.36 kB[22m[1m[22m[2m │ gzip: 1.62 kB[22m[2m │ map: 10.79 kB[22m
|
|
200
200
|
[2mdist/[22m[36mnode_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js [39m[1m[2m 7.70 kB[22m[1m[22m[2m │ gzip: 2.49 kB[22m[2m │ map: 25.65 kB[22m
|
|
201
|
+
[2mdist/[22m[36mcomponents/PlAdvancedFilter/PlAdvancedFilter.vue2.js [39m[1m[2m 8.32 kB[22m[1m[22m[2m │ gzip: 2.42 kB[22m[2m │ map: 16.71 kB[22m
|
|
201
202
|
[2mdist/[22m[36mnode_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.js [39m[1m[2m 8.44 kB[22m[1m[22m[2m │ gzip: 2.53 kB[22m[2m │ map: 29.29 kB[22m
|
|
202
|
-
[2mdist/[22m[36mcomponents/PlAdvancedFilter/PlAdvancedFilter.vue2.js [39m[1m[2m 8.46 kB[22m[1m[22m[2m │ gzip: 2.45 kB[22m[2m │ map: 17.06 kB[22m
|
|
203
203
|
[2mdist/[22m[36mcomponents/PlTableFilters/filters_logic.js [39m[1m[2m 9.18 kB[22m[1m[22m[2m │ gzip: 2.18 kB[22m[2m │ map: 20.22 kB[22m
|
|
204
|
-
[2mdist/[22m[36mcomponents/PlAdvancedFilter/FilterEditor.vue2.js [39m[1m[
|
|
204
|
+
[2mdist/[22m[36mcomponents/PlAdvancedFilter/FilterEditor.vue2.js [39m[1m[2m12.66 kB[22m[1m[22m[2m │ gzip: 3.26 kB[22m[2m │ map: 24.94 kB[22m
|
|
205
205
|
[2mdist/[22m[36mcomponents/PlAgDataTable/PlAgOverlayNoRows.vue3.js [39m[1m[2m35.48 kB[22m[1m[22m[2m │ gzip: 26.70 kB[22m[2m │ map: 0.11 kB[22m
|
|
206
206
|
[2mdist/[22m[36mcomponents/PlAgDataTable/pl-ag-overlay-loading.module.scss.js [39m[1m[2m41.43 kB[22m[1m[22m[2m │ gzip: 30.91 kB[22m[2m │ map: 0.12 kB[22m
|
|
207
207
|
[2mdist/[22m[36mindex.js [39m[1m[2m43.15 kB[22m[1m[22m[2m │ gzip: 29.03 kB[22m[2m │ map: 0.13 kB[22m
|
|
@@ -209,8 +209,8 @@ computing gzip size...
|
|
|
209
209
|
[2mdist/[22m[36mcomponents/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js [39m[1m[2m44.32 kB[22m[1m[22m[2m │ gzip: 29.25 kB[22m[2m │ map: 3.03 kB[22m
|
|
210
210
|
[2mdist/[22m[36mcomponents/PlAgRowNumHeader.vue.js [39m[1m[2m44.59 kB[22m[1m[22m[2m │ gzip: 29.26 kB[22m[2m │ map: 4.04 kB[22m
|
|
211
211
|
[2mdist/[22m[36mAgGridVue/useAgGridOptions.js [39m[1m[2m49.22 kB[22m[1m[22m[2m │ gzip: 30.12 kB[22m[2m │ map: 16.35 kB[22m
|
|
212
|
-
[2mdist/[22m[36mcomponents/PlAgDataTable/PlAgDataTableV2.vue2.js [39m[1m[2m50.
|
|
213
|
-
[vite:dts] Declaration files built in
|
|
212
|
+
[2mdist/[22m[36mcomponents/PlAgDataTable/PlAgDataTableV2.vue2.js [39m[1m[2m50.37 kB[22m[1m[22m[2m │ gzip: 31.06 kB[22m[2m │ map: 34.73 kB[22m
|
|
213
|
+
[vite:dts] Declaration files built in 7562ms.
|
|
214
214
|
|
|
215
|
-
[32m✓ built in 9.
|
|
215
|
+
[32m✓ built in 9.17s[39m
|
|
216
216
|
Build completed successfully
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @platforma-sdk/ui-vue@1.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.46.1 type-check /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> ts-builder types --target browser-lib
|
|
5
5
|
|
|
6
6
|
↳ vue-tsc.js --noEmit --project ./tsconfig.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @platforma-sdk/ui-vue
|
|
2
2
|
|
|
3
|
+
## 1.46.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 55055eb: Fix PlAgDataTableV2 ignoring manual column resize
|
|
8
|
+
|
|
9
|
+
## 1.46.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- a81ce44: simplify pl autocomplete interface
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [a81ce44]
|
|
18
|
+
- @milaboratories/uikit@2.7.0
|
|
19
|
+
- @platforma-sdk/model@1.46.0
|
|
20
|
+
|
|
3
21
|
## 1.45.45
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -9,14 +9,10 @@ type __VLS_Props = {
|
|
|
9
9
|
supportedFilters: typeof SUPPORTED_FILTER_TYPES;
|
|
10
10
|
getSuggestOptions: (params: {
|
|
11
11
|
columnId: PlAdvancedFilterColumnId;
|
|
12
|
-
searchStr: string;
|
|
13
12
|
axisIdx?: number;
|
|
14
|
-
|
|
15
|
-
getSuggestModel?: (params: {
|
|
16
|
-
columnId: PlAdvancedFilterColumnId;
|
|
13
|
+
searchType: 'value' | 'label';
|
|
17
14
|
searchStr: string;
|
|
18
|
-
|
|
19
|
-
}) => ListOptionBase<string | number> | Promise<ListOptionBase<string | number>>;
|
|
15
|
+
}) => ListOptionBase<string | number>[] | Promise<ListOptionBase<string | number>[]>;
|
|
20
16
|
onDelete: (columnId: PlAdvancedFilterColumnId) => void;
|
|
21
17
|
onChangeOperand: (op: Operand) => void;
|
|
22
18
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PlIcon16 as
|
|
3
|
-
import { parseColumnId as
|
|
4
|
-
import { DEFAULT_FILTERS as
|
|
1
|
+
import { defineComponent as Z, mergeModels as _, useModel as ee, computed as v, createElementBlock as S, openBlock as a, Fragment as A, createElementVNode as m, createVNode as F, normalizeClass as i, createCommentVNode as f, createBlock as c, unref as n, toDisplayString as le, renderList as te } from "vue";
|
|
2
|
+
import { PlIcon16 as k, PlDropdown as E, PlAutocomplete as w, PlTextField as N, Slider as oe, PlToggleSwitch as ue, PlAutocompleteMulti as ne, PlNumberField as D } from "@milaboratories/uikit";
|
|
3
|
+
import { parseColumnId as T, isFilteredPColumn as M, stringifyColumnId as q } from "@platforma-sdk/model";
|
|
4
|
+
import { DEFAULT_FILTERS as z, DEFAULT_FILTER_TYPE as ae } from "./constants.js";
|
|
5
5
|
import re from "./OperandButton.vue.js";
|
|
6
|
-
import { getNormalizedSpec as
|
|
7
|
-
const
|
|
6
|
+
import { getNormalizedSpec as L, getFilterInfo as U, isNumericFilter as se, isPositionFilter as ie } from "./utils.js";
|
|
7
|
+
const de = ["title"], fe = /* @__PURE__ */ Z({
|
|
8
8
|
__name: "FilterEditor",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ _({
|
|
10
10
|
isLast: { type: Boolean },
|
|
11
11
|
operand: {},
|
|
12
12
|
enableDnd: { type: Boolean },
|
|
13
13
|
columnOptions: {},
|
|
14
14
|
supportedFilters: {},
|
|
15
15
|
getSuggestOptions: { type: Function },
|
|
16
|
-
getSuggestModel: { type: Function },
|
|
17
16
|
onDelete: { type: Function },
|
|
18
17
|
onChangeOperand: { type: Function }
|
|
19
18
|
}, {
|
|
@@ -21,94 +20,95 @@ const pe = ["title"], fe = /* @__PURE__ */ _({
|
|
|
21
20
|
filterModifiers: {}
|
|
22
21
|
}),
|
|
23
22
|
emits: ["update:filter"],
|
|
24
|
-
setup(
|
|
25
|
-
const t =
|
|
26
|
-
async function
|
|
27
|
-
return
|
|
23
|
+
setup(g) {
|
|
24
|
+
const t = ee(g, "filter"), V = g;
|
|
25
|
+
async function I(e, l, u, r) {
|
|
26
|
+
return V.getSuggestOptions({ columnId: e, axisIdx: r, searchType: l, searchStr: u });
|
|
28
27
|
}
|
|
29
|
-
async function
|
|
30
|
-
|
|
28
|
+
async function R(e, l, u, r) {
|
|
29
|
+
if (l === "label" && typeof u == "string")
|
|
30
|
+
return I(e, l, u, r);
|
|
31
|
+
if (l === "value" && Array.isArray(u))
|
|
32
|
+
return (await Promise.all(u.map((p) => I(e, l, p, r)))).map((p) => p[0]);
|
|
33
|
+
throw new Error("Invalid arguments combination");
|
|
31
34
|
}
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
function h() {
|
|
36
|
+
const e = z[t.value.type];
|
|
37
|
+
t.value = Object.entries(e).reduce((l, [u, r]) => (l[u] = t.value[u] ?? r, l), {});
|
|
34
38
|
}
|
|
35
|
-
function
|
|
36
|
-
const e = R[t.value.type];
|
|
37
|
-
t.value = Object.entries(e).reduce((l, [u, i]) => (l[u] = t.value[u] ?? i, l), {});
|
|
38
|
-
}
|
|
39
|
-
function X(e) {
|
|
39
|
+
function j(e) {
|
|
40
40
|
if (!e)
|
|
41
41
|
return;
|
|
42
|
-
const l =
|
|
42
|
+
const l = V.columnOptions.find((s) => s.id === C(e));
|
|
43
43
|
if (!l)
|
|
44
44
|
return;
|
|
45
|
-
const u =
|
|
46
|
-
u.supportedFor(
|
|
47
|
-
...
|
|
45
|
+
const u = U(t.value.type), r = L(l == null ? void 0 : l.spec);
|
|
46
|
+
u.supportedFor(r) ? t.value.column = e : t.value = {
|
|
47
|
+
...z[ae],
|
|
48
48
|
column: e
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
const e =
|
|
53
|
-
return
|
|
51
|
+
const x = v(() => V.columnOptions.find((l) => l.id === C(t.value.column)) === void 0), W = v(() => {
|
|
52
|
+
const e = V.columnOptions.map((l) => ({ value: l.id, label: l.label ?? l }));
|
|
53
|
+
return x.value && e.unshift({ value: t.value.column, label: "Inconsistent value" }), e;
|
|
54
54
|
});
|
|
55
55
|
function C(e) {
|
|
56
56
|
try {
|
|
57
|
-
const l =
|
|
58
|
-
return
|
|
57
|
+
const l = T(e);
|
|
58
|
+
return M(l) ? q(l.source) : e;
|
|
59
59
|
} catch {
|
|
60
60
|
return e;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const l = C(e), u =
|
|
63
|
+
function X(e) {
|
|
64
|
+
const l = C(e), u = V.columnOptions.find((s) => s.id === l), r = ((u == null ? void 0 : u.axesToBeFixed) ?? []).reduce((s, p) => (s[p.idx] = void 0, s), {});
|
|
65
65
|
try {
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
66
|
+
const s = T(e);
|
|
67
|
+
if (M(s))
|
|
68
68
|
return {
|
|
69
69
|
source: l,
|
|
70
|
-
axisFiltersByIndex:
|
|
70
|
+
axisFiltersByIndex: s.axisFilters.reduce((p, O) => (p[O[0]] = O[1], p), r)
|
|
71
71
|
};
|
|
72
72
|
} catch {
|
|
73
|
-
return { source: e, axisFiltersByIndex:
|
|
73
|
+
return { source: e, axisFiltersByIndex: r };
|
|
74
74
|
}
|
|
75
|
-
return { source: e, axisFiltersByIndex:
|
|
75
|
+
return { source: e, axisFiltersByIndex: r };
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return Object.keys(e.axisFiltersByIndex).length === 0 ? e.source :
|
|
79
|
-
source:
|
|
77
|
+
function Y(e) {
|
|
78
|
+
return Object.keys(e.axisFiltersByIndex).length === 0 ? e.source : q({
|
|
79
|
+
source: T(e.source),
|
|
80
80
|
axisFilters: Object.entries(e.axisFiltersByIndex).map(([l, u]) => [Number(l), u])
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
get: () =>
|
|
83
|
+
const d = v({
|
|
84
|
+
get: () => X(t.value.column),
|
|
85
85
|
set: (e) => {
|
|
86
|
-
t.value.column =
|
|
86
|
+
t.value.column = Y(e);
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
...
|
|
92
|
-
axisFiltersByIndex: { ...
|
|
89
|
+
function G(e, l) {
|
|
90
|
+
d.value = {
|
|
91
|
+
...d.value,
|
|
92
|
+
axisFiltersByIndex: { ...d.value.axisFiltersByIndex, [e]: l }
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const y =
|
|
95
|
+
const y = v(() => V.columnOptions.find((e) => e.id === d.value.source)), $ = v(() => {
|
|
96
96
|
var e;
|
|
97
|
-
return (e = y.value) != null && e.spec ?
|
|
98
|
-
}), P =
|
|
97
|
+
return (e = y.value) != null && e.spec ? L(y.value.spec) : null;
|
|
98
|
+
}), P = v(() => {
|
|
99
99
|
var e;
|
|
100
100
|
return (e = $.value) == null ? void 0 : e.valueType;
|
|
101
|
-
}),
|
|
101
|
+
}), B = v(() => {
|
|
102
102
|
var e;
|
|
103
|
-
return !!((e = y.value) != null && e.error) ||
|
|
104
|
-
}),
|
|
105
|
-
() =>
|
|
106
|
-
(e) => t.value.type === e || ($.value ?
|
|
107
|
-
).map((e) => ({ value: e, label:
|
|
108
|
-
),
|
|
103
|
+
return !!((e = y.value) != null && e.error) || x.value;
|
|
104
|
+
}), H = v(
|
|
105
|
+
() => V.supportedFilters.filter(
|
|
106
|
+
(e) => t.value.type === e || ($.value ? U(e).supportedFor($.value) : !0)
|
|
107
|
+
).map((e) => ({ value: e, label: U(e).label }))
|
|
108
|
+
), J = v(() => {
|
|
109
109
|
var e, l;
|
|
110
110
|
return t.value.type !== "patternFuzzyContainSubsequence" ? [] : ((e = y.value) == null ? void 0 : e.alphabet) === "nucleotide" ? [{ label: "N", value: "N" }] : ((l = y.value) == null ? void 0 : l.alphabet) === "aminoacid" ? [{ label: "X", value: "X" }] : [...new Set(t.value.value.split(""))].sort().map((u) => ({ value: u, label: u }));
|
|
111
|
-
}),
|
|
111
|
+
}), K = v(() => {
|
|
112
112
|
if (t.value.type !== "patternMatchesRegularExpression")
|
|
113
113
|
return !1;
|
|
114
114
|
try {
|
|
@@ -118,182 +118,179 @@ const pe = ["title"], fe = /* @__PURE__ */ _({
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
return (e, l) => {
|
|
121
|
-
var u,
|
|
122
|
-
return a(),
|
|
123
|
-
|
|
124
|
-
class:
|
|
121
|
+
var u, r, s, p, O;
|
|
122
|
+
return a(), S(A, null, [
|
|
123
|
+
m("div", {
|
|
124
|
+
class: i(e.$style.filterWrapper)
|
|
125
125
|
}, [
|
|
126
|
-
|
|
126
|
+
g.enableDnd ? (a(), S("div", {
|
|
127
127
|
key: 0,
|
|
128
|
-
class:
|
|
128
|
+
class: i([e.$style.top, e.$style.columnChip, { [e.$style.error]: B.value }])
|
|
129
129
|
}, [
|
|
130
|
-
|
|
131
|
-
class:
|
|
130
|
+
m("div", {
|
|
131
|
+
class: i([e.$style.typeIcon, { [e.$style.error]: B.value }])
|
|
132
132
|
}, [
|
|
133
|
-
|
|
133
|
+
B.value ? (a(), c(n(k), {
|
|
134
134
|
key: 0,
|
|
135
135
|
name: "warning"
|
|
136
|
-
})) : (a(), c(n(
|
|
136
|
+
})) : (a(), c(n(k), {
|
|
137
137
|
key: 1,
|
|
138
138
|
name: P.value === "String" || P.value === void 0 ? "cell-type-txt" : "cell-type-num"
|
|
139
139
|
}, null, 8, ["name"]))
|
|
140
140
|
], 2),
|
|
141
|
-
|
|
142
|
-
class:
|
|
141
|
+
m("div", {
|
|
142
|
+
class: i(e.$style.titleWrapper),
|
|
143
143
|
title: ((u = y.value) == null ? void 0 : u.label) ?? ""
|
|
144
144
|
}, [
|
|
145
|
-
|
|
146
|
-
class:
|
|
147
|
-
},
|
|
148
|
-
], 10,
|
|
149
|
-
|
|
150
|
-
class:
|
|
151
|
-
onClick: l[0] || (l[0] = (o) =>
|
|
145
|
+
m("div", {
|
|
146
|
+
class: i(e.$style.title)
|
|
147
|
+
}, le(x.value ? "Inconsistent value" : ((r = y.value) == null ? void 0 : r.label) ?? t.value.column), 3)
|
|
148
|
+
], 10, de),
|
|
149
|
+
m("div", {
|
|
150
|
+
class: i(e.$style.closeIcon),
|
|
151
|
+
onClick: l[0] || (l[0] = (o) => g.onDelete(t.value.column))
|
|
152
152
|
}, [
|
|
153
|
-
F(n(
|
|
153
|
+
F(n(k), { name: "close" })
|
|
154
154
|
], 2)
|
|
155
|
-
], 2)) : (a(),
|
|
155
|
+
], 2)) : (a(), S("div", {
|
|
156
156
|
key: 1,
|
|
157
|
-
class:
|
|
157
|
+
class: i(e.$style.top)
|
|
158
158
|
}, [
|
|
159
|
-
F(n(
|
|
160
|
-
modelValue:
|
|
159
|
+
F(n(E), {
|
|
160
|
+
modelValue: d.value.source,
|
|
161
161
|
"onUpdate:modelValue": [
|
|
162
|
-
l[1] || (l[1] = (o) =>
|
|
163
|
-
|
|
162
|
+
l[1] || (l[1] = (o) => d.value.source = o),
|
|
163
|
+
j
|
|
164
164
|
],
|
|
165
|
-
errorStatus:
|
|
166
|
-
options:
|
|
165
|
+
errorStatus: B.value,
|
|
166
|
+
options: W.value,
|
|
167
167
|
style: { width: "100%" },
|
|
168
168
|
"group-position": "top-left"
|
|
169
169
|
}, null, 8, ["modelValue", "errorStatus", "options"]),
|
|
170
|
-
|
|
171
|
-
class:
|
|
172
|
-
onClick: l[2] || (l[2] = (o) =>
|
|
170
|
+
m("div", {
|
|
171
|
+
class: i(e.$style.closeButton),
|
|
172
|
+
onClick: l[2] || (l[2] = (o) => g.onDelete(t.value.column))
|
|
173
173
|
}, [
|
|
174
|
-
F(n(
|
|
174
|
+
F(n(k), { name: "close" })
|
|
175
175
|
], 2)
|
|
176
176
|
], 2)),
|
|
177
|
-
(
|
|
177
|
+
(p = (s = y.value) == null ? void 0 : s.axesToBeFixed) != null && p.length ? (a(), S("div", {
|
|
178
178
|
key: 2,
|
|
179
|
-
class:
|
|
179
|
+
class: i(e.$style.fixedAxesBlock)
|
|
180
180
|
}, [
|
|
181
|
-
(a(!0),
|
|
181
|
+
(a(!0), S(A, null, te((O = y.value) == null ? void 0 : O.axesToBeFixed, (o) => (a(), c(n(w), {
|
|
182
182
|
key: o.idx,
|
|
183
|
-
modelValue:
|
|
184
|
-
"onUpdate:modelValue": [(
|
|
183
|
+
modelValue: d.value.axisFiltersByIndex[o.idx],
|
|
184
|
+
"onUpdate:modelValue": [(b) => d.value.axisFiltersByIndex[o.idx] = b, (b) => G(o.idx, b)],
|
|
185
185
|
label: o.label,
|
|
186
|
-
"options-search": (
|
|
187
|
-
|
|
188
|
-
disabled: S.value,
|
|
186
|
+
"options-search": (b, Q) => I(d.value.source, Q, b, o.idx),
|
|
187
|
+
disabled: x.value,
|
|
189
188
|
clearable: !0
|
|
190
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options-search", "
|
|
191
|
-
], 2)) :
|
|
192
|
-
|
|
193
|
-
class:
|
|
189
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options-search", "disabled"]))), 128))
|
|
190
|
+
], 2)) : f("", !0),
|
|
191
|
+
m("div", {
|
|
192
|
+
class: i(t.value.type === "isNA" || t.value.type === "isNotNA" ? e.$style.bottom : e.$style.middle)
|
|
194
193
|
}, [
|
|
195
|
-
F(n(
|
|
194
|
+
F(n(E), {
|
|
196
195
|
modelValue: t.value.type,
|
|
197
196
|
"onUpdate:modelValue": [
|
|
198
197
|
l[3] || (l[3] = (o) => t.value.type = o),
|
|
199
|
-
|
|
198
|
+
h
|
|
200
199
|
],
|
|
201
|
-
options:
|
|
200
|
+
options: H.value,
|
|
202
201
|
"group-position": t.value.type === "isNA" || t.value.type === "isNotNA" ? "bottom" : "middle"
|
|
203
202
|
}, null, 8, ["modelValue", "options", "group-position"])
|
|
204
203
|
], 2),
|
|
205
|
-
t.value.type === "patternFuzzyContainSubsequence" ? (a(),
|
|
206
|
-
|
|
207
|
-
class:
|
|
204
|
+
t.value.type === "patternFuzzyContainSubsequence" ? (a(), S(A, { key: 3 }, [
|
|
205
|
+
m("div", {
|
|
206
|
+
class: i(e.$style.middle)
|
|
208
207
|
}, [
|
|
209
|
-
F(n(
|
|
208
|
+
F(n(N), {
|
|
210
209
|
modelValue: t.value.value,
|
|
211
210
|
"onUpdate:modelValue": l[4] || (l[4] = (o) => t.value.value = o),
|
|
212
211
|
placeholder: "Substring",
|
|
213
212
|
"group-position": "middle"
|
|
214
213
|
}, null, 8, ["modelValue"])
|
|
215
214
|
], 2),
|
|
216
|
-
|
|
217
|
-
class:
|
|
215
|
+
m("div", {
|
|
216
|
+
class: i(e.$style.innerSection)
|
|
218
217
|
}, [
|
|
219
|
-
F(n(
|
|
218
|
+
F(n(oe), {
|
|
220
219
|
modelValue: t.value.maxEdits,
|
|
221
220
|
"onUpdate:modelValue": l[5] || (l[5] = (o) => t.value.maxEdits = o),
|
|
222
221
|
max: 5,
|
|
223
222
|
breakpoints: "",
|
|
224
223
|
label: "Maximum number of substitutions and indels"
|
|
225
224
|
}, null, 8, ["modelValue"]),
|
|
226
|
-
F(n(
|
|
225
|
+
F(n(ue), {
|
|
227
226
|
modelValue: t.value.substitutionsOnly,
|
|
228
227
|
"onUpdate:modelValue": l[6] || (l[6] = (o) => t.value.substitutionsOnly = o),
|
|
229
228
|
label: "Substitutions only"
|
|
230
229
|
}, null, 8, ["modelValue"])
|
|
231
230
|
], 2)
|
|
232
|
-
], 64)) :
|
|
233
|
-
|
|
234
|
-
class:
|
|
231
|
+
], 64)) : f("", !0),
|
|
232
|
+
m("div", {
|
|
233
|
+
class: i(e.$style.bottom)
|
|
235
234
|
}, [
|
|
236
|
-
t.value.type === "patternEquals" || t.value.type === "patternNotEquals" ? (a(), c(n(
|
|
235
|
+
t.value.type === "patternEquals" || t.value.type === "patternNotEquals" ? (a(), c(n(w), {
|
|
237
236
|
key: 0,
|
|
238
237
|
modelValue: t.value.value,
|
|
239
238
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => t.value.value = o),
|
|
240
|
-
"options-search": (o) =>
|
|
241
|
-
|
|
242
|
-
disabled: S.value,
|
|
239
|
+
"options-search": (o, b) => I(d.value.source, b, o),
|
|
240
|
+
disabled: x.value,
|
|
243
241
|
clearable: !0,
|
|
244
242
|
"group-position": "bottom"
|
|
245
|
-
}, null, 8, ["modelValue", "options-search", "
|
|
246
|
-
t.value.type === "inSet" || t.value.type === "notInSet" ? (a(), c(n(
|
|
243
|
+
}, null, 8, ["modelValue", "options-search", "disabled"])) : f("", !0),
|
|
244
|
+
t.value.type === "inSet" || t.value.type === "notInSet" ? (a(), c(n(ne), {
|
|
247
245
|
key: 1,
|
|
248
246
|
modelValue: t.value.value,
|
|
249
247
|
"onUpdate:modelValue": l[8] || (l[8] = (o) => t.value.value = o),
|
|
250
|
-
"options-search": (o) =>
|
|
251
|
-
|
|
252
|
-
disabled: S.value,
|
|
248
|
+
"options-search": (o, b) => R(d.value.source, b, o),
|
|
249
|
+
disabled: x.value,
|
|
253
250
|
"group-position": "bottom"
|
|
254
|
-
}, null, 8, ["modelValue", "options-search", "
|
|
255
|
-
n(
|
|
251
|
+
}, null, 8, ["modelValue", "options-search", "disabled"])) : f("", !0),
|
|
252
|
+
n(se)(t.value) ? (a(), c(n(D), {
|
|
256
253
|
key: 2,
|
|
257
254
|
modelValue: t.value.x,
|
|
258
255
|
"onUpdate:modelValue": l[9] || (l[9] = (o) => t.value.x = o),
|
|
259
256
|
"group-position": "bottom"
|
|
260
|
-
}, null, 8, ["modelValue"])) :
|
|
261
|
-
n(
|
|
257
|
+
}, null, 8, ["modelValue"])) : f("", !0),
|
|
258
|
+
n(ie)(t.value) ? (a(), c(n(D), {
|
|
262
259
|
key: 3,
|
|
263
260
|
modelValue: t.value.n,
|
|
264
261
|
"onUpdate:modelValue": l[10] || (l[10] = (o) => t.value.n = o),
|
|
265
262
|
"group-position": "bottom"
|
|
266
|
-
}, null, 8, ["modelValue"])) :
|
|
267
|
-
t.value.type === "patternContainSubsequence" || t.value.type === "patternNotContainSubsequence" ? (a(), c(n(
|
|
263
|
+
}, null, 8, ["modelValue"])) : f("", !0),
|
|
264
|
+
t.value.type === "patternContainSubsequence" || t.value.type === "patternNotContainSubsequence" ? (a(), c(n(N), {
|
|
268
265
|
key: 4,
|
|
269
266
|
modelValue: t.value.value,
|
|
270
267
|
"onUpdate:modelValue": l[11] || (l[11] = (o) => t.value.value = o),
|
|
271
268
|
placeholder: "Substring",
|
|
272
269
|
"group-position": "bottom"
|
|
273
|
-
}, null, 8, ["modelValue"])) :
|
|
274
|
-
t.value.type === "patternMatchesRegularExpression" ? (a(), c(n(
|
|
270
|
+
}, null, 8, ["modelValue"])) : f("", !0),
|
|
271
|
+
t.value.type === "patternMatchesRegularExpression" ? (a(), c(n(N), {
|
|
275
272
|
key: 5,
|
|
276
273
|
modelValue: t.value.value,
|
|
277
274
|
"onUpdate:modelValue": l[12] || (l[12] = (o) => t.value.value = o),
|
|
278
|
-
error:
|
|
275
|
+
error: K.value ? "Regular expression is not valid" : void 0,
|
|
279
276
|
placeholder: "Regular expression",
|
|
280
277
|
"group-position": "bottom"
|
|
281
|
-
}, null, 8, ["modelValue", "error"])) :
|
|
282
|
-
t.value.type === "patternFuzzyContainSubsequence" ? (a(), c(n(
|
|
278
|
+
}, null, 8, ["modelValue", "error"])) : f("", !0),
|
|
279
|
+
t.value.type === "patternFuzzyContainSubsequence" ? (a(), c(n(E), {
|
|
283
280
|
key: 6,
|
|
284
281
|
modelValue: t.value.wildcard,
|
|
285
282
|
"onUpdate:modelValue": l[13] || (l[13] = (o) => t.value.wildcard = o),
|
|
286
283
|
clearable: "",
|
|
287
284
|
placeholder: "Wildcard value",
|
|
288
|
-
options:
|
|
285
|
+
options: J.value,
|
|
289
286
|
"group-position": "bottom"
|
|
290
|
-
}, null, 8, ["modelValue", "options"])) :
|
|
287
|
+
}, null, 8, ["modelValue", "options"])) : f("", !0)
|
|
291
288
|
], 2)
|
|
292
289
|
], 2),
|
|
293
290
|
F(re, {
|
|
294
|
-
active:
|
|
295
|
-
disabled:
|
|
296
|
-
"on-select":
|
|
291
|
+
active: g.operand,
|
|
292
|
+
disabled: g.isLast,
|
|
293
|
+
"on-select": g.onChangeOperand
|
|
297
294
|
}, null, 8, ["active", "disabled", "on-select"])
|
|
298
295
|
], 64);
|
|
299
296
|
};
|