@platforma-sdk/ui-vue 1.66.0 → 1.66.2
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 +15 -13
- package/.turbo/turbo-formatter$colon$check.log +2 -2
- package/.turbo/turbo-linter$colon$check.log +2 -2
- package/.turbo/turbo-types$colon$check.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/components/PlAdvancedFilter/FilterEditor.vue2.js +20 -20
- package/dist/components/PlAgColumnHeader/PlAgColumnHeader.js.map +1 -1
- package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue.d.ts.map +1 -1
- package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue2.js +43 -33
- package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue2.js.map +1 -1
- package/dist/components/PlAgColumnHeader/types.d.ts +1 -0
- package/dist/components/PlAgColumnHeader/types.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/compositions/useFilterableColumns.js +5 -5
- package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-source-v2.js +10 -11
- package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.js +13 -13
- package/dist/components/PlAnnotations/components/PlAnnotations.vue2.js.map +1 -1
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js +8 -8
- package/dist/internal/createAppV3.d.ts.map +1 -1
- package/dist/internal/createAppV3.js +74 -83
- package/dist/internal/createAppV3.js.map +1 -1
- package/dist/internal/getServices.d.ts +5 -0
- package/dist/internal/getServices.d.ts.map +1 -0
- package/dist/internal/getServices.js +19 -0
- package/dist/internal/getServices.js.map +1 -0
- package/dist/internal/service_factories.d.ts +2 -2
- package/dist/internal/service_factories.d.ts.map +1 -1
- package/dist/internal/service_factories.js.map +1 -1
- package/dist/internal/utils.d.ts +3 -0
- package/dist/internal/utils.d.ts.map +1 -0
- package/dist/internal/utils.js +16 -0
- package/dist/internal/utils.js.map +1 -0
- package/package.json +8 -8
- package/src/components/PlAgColumnHeader/PlAgColumnHeader.vue +13 -7
- package/src/components/PlAgColumnHeader/types.ts +1 -0
- package/src/components/PlAgDataTable/sources/table-source-v2.ts +23 -21
- package/src/internal/createAppV3.ts +10 -37
- package/src/internal/getServices.ts +36 -0
- package/src/internal/service_factories.ts +2 -2
- package/src/internal/utils.ts +25 -0
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.66.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.66.2 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...
|
|
@@ -12,11 +12,11 @@ Building browser-lib project...
|
|
|
12
12
|
[7m4[0m export function useGridColumns(props: { api: GridApi }) {
|
|
13
13
|
[7m [0m [91m ~~~~~~~~~~~~~~[0m
|
|
14
14
|
|
|
15
|
-
[2K
|
|
15
|
+
[2K
|
|
16
16
|
rendering chunks...
|
|
17
17
|
|
|
18
18
|
[vite:dts] Start generate declaration files...
|
|
19
|
-
[vite:dts] Declaration files built in
|
|
19
|
+
[vite:dts] Declaration files built in 4461ms.
|
|
20
20
|
|
|
21
21
|
computing gzip size...
|
|
22
22
|
dist/components/PlAnnotations/components/PlAnnotations.vue?vue&type=style&index=0&lang.css 0.04 kB │ gzip: 0.06 kB
|
|
@@ -85,7 +85,7 @@ dist/plugins/Monetization/EndOfPeriod.vue_vue_type_style_index_0_lang.module.js
|
|
|
85
85
|
dist/components/PlAgCsvExporter/PlAgCsvExporter.js 0.22 kB │ gzip: 0.16 kB │ map: 1.00 kB
|
|
86
86
|
dist/components/PlAnnotations/components/PlAnnotations.vue_vue_type_style_index_0_lang.module.js 0.22 kB │ gzip: 0.18 kB │ map: 0.42 kB
|
|
87
87
|
dist/components/PlAgCellProgress/PlAgCellProgress.js 0.23 kB │ gzip: 0.16 kB │ map: 0.55 kB
|
|
88
|
-
dist/components/PlAgColumnHeader/PlAgColumnHeader.js 0.23 kB │ gzip: 0.17 kB │ map:
|
|
88
|
+
dist/components/PlAgColumnHeader/PlAgColumnHeader.js 0.23 kB │ gzip: 0.17 kB │ map: 3.22 kB
|
|
89
89
|
dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue_vue_type_style_index_0_lang.module.js 0.23 kB │ gzip: 0.18 kB │ map: 0.42 kB
|
|
90
90
|
dist/plugins/Monetization/MonetizationSidebar.js 0.23 kB │ gzip: 0.17 kB │ map: 3.72 kB
|
|
91
91
|
dist/components/PlAgDataTable/PlAgOverlayLoading.js 0.23 kB │ gzip: 0.17 kB │ map: 1.74 kB
|
|
@@ -143,6 +143,7 @@ dist/plugins/Monetization/RunStatus.vue_vue_type_style_index_0_lang.module.js
|
|
|
143
143
|
dist/objectHash.js 0.45 kB │ gzip: 0.33 kB │ map: 1.14 kB
|
|
144
144
|
dist/composition/AgGrid/index.js 0.46 kB │ gzip: 0.32 kB │ map: 0.79 kB
|
|
145
145
|
dist/defineStore.js 0.49 kB │ gzip: 0.32 kB │ map: 1.20 kB
|
|
146
|
+
dist/internal/utils.js 0.50 kB │ gzip: 0.29 kB │ map: 1.08 kB
|
|
146
147
|
dist/components/LoaderPage.js 0.52 kB │ gzip: 0.35 kB │ map: 0.48 kB
|
|
147
148
|
dist/components/PlAdvancedFilter/PlAdvancedFilter.vue_vue_type_style_index_0_lang.module.js 0.54 kB │ gzip: 0.29 kB │ map: 0.72 kB
|
|
148
149
|
dist/plugins/Monetization/useButtonTarget.js 0.54 kB │ gzip: 0.35 kB │ map: 1.10 kB
|
|
@@ -151,6 +152,7 @@ dist/components/PlAgCellProgress/PlAgCellProgress.vue_vue_type_script_setup_true
|
|
|
151
152
|
dist/components/PlAdvancedFilter/FilterEditor.vue_vue_type_style_index_0_lang.module.js 0.63 kB │ gzip: 0.34 kB │ map: 0.92 kB
|
|
152
153
|
dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue_vue_type_script_setup_true_lang.js 0.64 kB │ gzip: 0.42 kB │ map: 0.87 kB
|
|
153
154
|
dist/AgGridVue/ag-override.js 0.66 kB │ gzip: 0.33 kB │ map: 0.73 kB
|
|
155
|
+
dist/internal/getServices.js 0.68 kB │ gzip: 0.41 kB │ map: 1.63 kB
|
|
154
156
|
dist/plugins/Monetization/LimitCard.vue_vue_type_style_index_0_lang.module.js 0.70 kB │ gzip: 0.34 kB │ map: 0.93 kB
|
|
155
157
|
dist/_virtual/_rolldown/runtime.js 0.73 kB │ gzip: 0.43 kB
|
|
156
158
|
dist/components/PlAgDataTable/PlAgOverlayNoRows.vue_vue_type_script_setup_true_lang.js 0.76 kB │ gzip: 0.49 kB │ map: 1.56 kB
|
|
@@ -160,7 +162,7 @@ dist/components/BlockLoader.vue_vue_type_script_setup_true_lang.js
|
|
|
160
162
|
dist/lib/util/helpers/dist/utils.js 0.89 kB │ gzip: 0.46 kB │ map: 7.27 kB
|
|
161
163
|
dist/components/PlAdvancedFilter/OperandButton.vue_vue_type_script_setup_true_lang.js 0.91 kB │ gzip: 0.57 kB │ map: 1.72 kB
|
|
162
164
|
dist/components/NotFound.vue_vue_type_script_setup_true_lang.js 0.92 kB │ gzip: 0.58 kB │ map: 0.96 kB
|
|
163
|
-
dist/components/PlAgDataTable/compositions/useFilterableColumns.js 0.93 kB │ gzip: 0.
|
|
165
|
+
dist/components/PlAgDataTable/compositions/useFilterableColumns.js 0.93 kB │ gzip: 0.51 kB │ map: 3.04 kB
|
|
164
166
|
dist/components/PlAgDataTable/sources/focus-row.js 0.95 kB │ gzip: 0.51 kB │ map: 2.22 kB
|
|
165
167
|
dist/plugins/Monetization/validation.js 0.99 kB │ gzip: 0.49 kB │ map: 2.58 kB
|
|
166
168
|
dist/AgGridVue/selection.js 1.00 kB │ gzip: 0.42 kB │ map: 3.18 kB
|
|
@@ -197,9 +199,9 @@ dist/components/BlockLayout.vue_vue_type_script_setup_true_lang.js
|
|
|
197
199
|
dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue_vue_type_script_setup_true_lang.js 2.40 kB │ gzip: 1.12 kB │ map: 6.67 kB
|
|
198
200
|
dist/components/PlAgDataTable/PlAgDataTableSheets.vue_vue_type_script_setup_true_lang.js 2.45 kB │ gzip: 1.17 kB │ map: 5.01 kB
|
|
199
201
|
dist/lib.js 2.60 kB │ gzip: 0.56 kB │ map: 3.82 kB
|
|
200
|
-
dist/components/PlAgColumnHeader/PlAgColumnHeader.vue_vue_type_script_setup_true_lang.js 2.62 kB │ gzip: 1.15 kB │ map: 6.90 kB
|
|
201
202
|
dist/components/PlAnnotations/components/PlAnnotations.vue_vue_type_script_setup_true_lang.js 2.69 kB │ gzip: 1.12 kB │ map: 4.16 kB
|
|
202
203
|
dist/components/PlAgDataTable/compositions/useGrid.js 2.80 kB │ gzip: 1.24 kB │ map: 6.28 kB
|
|
204
|
+
dist/components/PlAgColumnHeader/PlAgColumnHeader.vue_vue_type_script_setup_true_lang.js 2.93 kB │ gzip: 1.26 kB │ map: 7.97 kB
|
|
203
205
|
dist/components/PlAgDataTable/sources/row-number.js 2.99 kB │ gzip: 1.31 kB │ map: 7.42 kB
|
|
204
206
|
dist/defineApp.js 3.01 kB │ gzip: 1.05 kB │ map: 14.38 kB
|
|
205
207
|
dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue_vue_type_script_setup_true_lang.js 3.14 kB │ gzip: 1.42 kB │ map: 5.04 kB
|
|
@@ -215,19 +217,19 @@ dist/components/PlTableFilters/PlTableFiltersV2.vue_vue_type_script_setup_true_l
|
|
|
215
217
|
dist/components/PlBtnExportArchive/PlBtnExportArchive.vue_vue_type_script_setup_true_lang.js 5.19 kB │ gzip: 2.16 kB │ map: 10.36 kB
|
|
216
218
|
dist/internal/createAppV2.js 5.26 kB │ gzip: 1.98 kB │ map: 17.78 kB
|
|
217
219
|
dist/components/PlAgDataTable/sources/table-state-v2.js 5.73 kB │ gzip: 1.85 kB │ map: 19.41 kB
|
|
218
|
-
dist/internal/createAppV3.js
|
|
219
|
-
dist/components/PlAgDataTable/sources/table-source-v2.js 6.
|
|
220
|
+
dist/internal/createAppV3.js 5.76 kB │ gzip: 2.21 kB │ map: 20.20 kB
|
|
221
|
+
dist/components/PlAgDataTable/sources/table-source-v2.js 6.92 kB │ gzip: 2.68 kB │ map: 23.94 kB
|
|
220
222
|
dist/components/PlAdvancedFilter/PlAdvancedFilter.vue_vue_type_script_setup_true_lang.js 8.54 kB │ gzip: 2.59 kB │ map: 18.44 kB
|
|
221
223
|
dist/components/PlAdvancedFilter/FilterEditor.vue_vue_type_script_setup_true_lang.js 10.24 kB │ gzip: 3.04 kB │ map: 23.20 kB
|
|
222
224
|
dist/components/PlAgDataTable/PlAgDataTableV2.vue_vue_type_script_setup_true_lang.js 12.10 kB │ gzip: 3.86 kB │ map: 28.98 kB
|
|
223
225
|
|
|
224
226
|
[33m[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugins. Here is a breakdown:
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
- vite:css-post (
|
|
227
|
+
- sourcemaps (30%)
|
|
228
|
+
- vite:dts (23%)
|
|
229
|
+
- vite:css-post (15%)
|
|
228
230
|
- vite:vue (9%)
|
|
229
|
-
- vite:
|
|
231
|
+
- vite:build-import-analysis (6%)
|
|
230
232
|
See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
231
233
|
[39m
|
|
232
|
-
[32m✓ built in
|
|
234
|
+
[32m✓ built in 5.29s[39m
|
|
233
235
|
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.66.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.66.2 formatter:check /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> ts-builder formatter --check
|
|
5
5
|
|
|
6
6
|
Checking formatting...
|
|
@@ -8,5 +8,5 @@ Checking formatting...
|
|
|
8
8
|
Checking formatting...
|
|
9
9
|
|
|
10
10
|
All matched files use the correct format.
|
|
11
|
-
Finished in
|
|
11
|
+
Finished in 3408ms on 132 files using 8 threads.
|
|
12
12
|
Format check completed successfully
|
|
@@ -1,10 +1,10 @@
|
|
|
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.66.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.66.2 linter:check /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> ts-builder linter --check
|
|
5
5
|
|
|
6
6
|
Linting project...
|
|
7
7
|
↳ oxlint --config /home/runner/_work/platforma/platforma/sdk/ui-vue/.oxlintrc.json --deny-warnings
|
|
8
8
|
Found 0 warnings and 0 errors.
|
|
9
|
-
Finished in
|
|
9
|
+
Finished in 33ms on 115 files with 98 rules using 8 threads.
|
|
10
10
|
Linting 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.66.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.66.2 types:check /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> ts-builder type-check --target browser-lib
|
|
5
5
|
|
|
6
6
|
↳ vue-tsc.js --noEmit --project ./tsconfig.json --customConditions ,
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @platforma-sdk/ui-vue
|
|
2
2
|
|
|
3
|
+
## 1.66.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a2304be: refactoring column_collection_builder
|
|
8
|
+
- Updated dependencies [a2304be]
|
|
9
|
+
- @milaboratories/pl-model-common@1.34.1
|
|
10
|
+
- @platforma-sdk/model@1.66.2
|
|
11
|
+
- @milaboratories/pf-spec-driver@1.3.2
|
|
12
|
+
- @milaboratories/uikit@2.12.8
|
|
13
|
+
|
|
14
|
+
## 1.66.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [4964b89]
|
|
19
|
+
- @milaboratories/uikit@2.12.7
|
|
20
|
+
|
|
3
21
|
## 1.66.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -3,8 +3,8 @@ import n from "./OperandButton.js";
|
|
|
3
3
|
import { getFilterInfo as r, getNormalizedSpec as i, isNumericFilter as a, isPositionFilter as o, mergeFilterForTypeChange as s } from "./utils.js";
|
|
4
4
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, renderList as v, toDisplayString as y, unref as b } from "vue";
|
|
5
5
|
import { isFilteredPColumn as x, parseColumnId as S, stringifyColumnId as C } from "@platforma-sdk/model";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { isNil as w } from "es-toolkit";
|
|
7
|
+
import { PlAutocomplete as T, PlAutocompleteMulti as E, PlDropdown as D, PlIcon16 as O, PlNumberField as k, PlTextField as A, PlToggleSwitch as j, Slider as M } from "@milaboratories/uikit";
|
|
8
8
|
//#region src/components/PlAdvancedFilter/FilterEditor.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var N = ["title"], P = /* @__PURE__ */ h({
|
|
10
10
|
__name: "FilterEditor",
|
|
@@ -42,7 +42,7 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
42
42
|
throw Error("Invalid arguments combination");
|
|
43
43
|
}
|
|
44
44
|
function R(e) {
|
|
45
|
-
|
|
45
|
+
w(e) || P.onUpdateFilter(s(P.filter, e));
|
|
46
46
|
}
|
|
47
47
|
function z(n) {
|
|
48
48
|
if (!n) return;
|
|
@@ -147,10 +147,10 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
147
147
|
{ [e.$style.error]: X.value }
|
|
148
148
|
])
|
|
149
149
|
}, [
|
|
150
|
-
p("div", { class: g([e.$style.typeIcon, { [e.$style.error]: X.value }]) }, [X.value ? (_(), u(b(
|
|
150
|
+
p("div", { class: g([e.$style.typeIcon, { [e.$style.error]: X.value }]) }, [X.value ? (_(), u(b(O), {
|
|
151
151
|
key: 0,
|
|
152
152
|
name: "warning"
|
|
153
|
-
})) : (_(), u(b(
|
|
153
|
+
})) : (_(), u(b(O), {
|
|
154
154
|
key: 1,
|
|
155
155
|
name: Y.value === "String" || Y.value === void 0 ? "cell-type-txt" : "cell-type-num"
|
|
156
156
|
}, null, 8, ["name"]))], 2),
|
|
@@ -161,11 +161,11 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
161
161
|
p("div", {
|
|
162
162
|
class: g(e.$style.closeIcon),
|
|
163
163
|
onClick: t[0] ||= (e) => h.onDelete(P.filter.column)
|
|
164
|
-
}, [m(b(
|
|
164
|
+
}, [m(b(O), { name: "close" })], 2)
|
|
165
165
|
], 2)) : (_(), f("div", {
|
|
166
166
|
key: 1,
|
|
167
167
|
class: g(e.$style.top)
|
|
168
|
-
}, [m(b(
|
|
168
|
+
}, [m(b(D), {
|
|
169
169
|
"model-value": G.value.source,
|
|
170
170
|
errorStatus: X.value,
|
|
171
171
|
options: V.value,
|
|
@@ -179,11 +179,11 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
179
179
|
]), p("div", {
|
|
180
180
|
class: g(e.$style.closeButton),
|
|
181
181
|
onClick: t[1] ||= (e) => h.onDelete(P.filter.column)
|
|
182
|
-
}, [m(b(
|
|
182
|
+
}, [m(b(O), { name: "close" })], 2)], 2)),
|
|
183
183
|
q.value?.axesToBeFixed?.length ? (_(), f("div", {
|
|
184
184
|
key: 2,
|
|
185
185
|
class: g(e.$style.fixedAxesBlock)
|
|
186
|
-
}, [(_(!0), f(c, null, v(q.value?.axesToBeFixed, (e) => (_(), u(b(
|
|
186
|
+
}, [(_(!0), f(c, null, v(q.value?.axesToBeFixed, (e) => (_(), u(b(T), {
|
|
187
187
|
key: e.idx,
|
|
188
188
|
"model-value": G.value.axisFiltersByIndex[e.idx],
|
|
189
189
|
label: e.label,
|
|
@@ -198,7 +198,7 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
198
198
|
"disabled",
|
|
199
199
|
"onUpdate:modelValue"
|
|
200
200
|
]))), 128))], 2)) : d("", !0),
|
|
201
|
-
p("div", { class: g(P.filter.type === "isNA" || P.filter.type === "isNotNA" ? e.$style.bottom : e.$style.middle) }, [m(b(
|
|
201
|
+
p("div", { class: g(P.filter.type === "isNA" || P.filter.type === "isNotNA" ? e.$style.bottom : e.$style.middle) }, [m(b(D), {
|
|
202
202
|
"model-value": P.filter.type,
|
|
203
203
|
options: Z.value,
|
|
204
204
|
"group-position": P.filter.type === "isNA" || P.filter.type === "isNotNA" ? "bottom" : "middle",
|
|
@@ -208,24 +208,24 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
208
208
|
"options",
|
|
209
209
|
"group-position"
|
|
210
210
|
])], 2),
|
|
211
|
-
P.filter.type === "patternFuzzyContainSubsequence" ? (_(), f(c, { key: 3 }, [p("div", { class: g(e.$style.middle) }, [m(b(
|
|
211
|
+
P.filter.type === "patternFuzzyContainSubsequence" ? (_(), f(c, { key: 3 }, [p("div", { class: g(e.$style.middle) }, [m(b(A), {
|
|
212
212
|
"model-value": P.filter.value,
|
|
213
213
|
placeholder: "Substring",
|
|
214
214
|
"group-position": "middle",
|
|
215
215
|
"onUpdate:modelValue": t[2] ||= (e) => F("value", e)
|
|
216
|
-
}, null, 8, ["model-value"])], 2), p("div", { class: g(e.$style.innerSection) }, [m(b(
|
|
216
|
+
}, null, 8, ["model-value"])], 2), p("div", { class: g(e.$style.innerSection) }, [m(b(M), {
|
|
217
217
|
"model-value": P.filter.maxEdits,
|
|
218
218
|
max: 5,
|
|
219
219
|
breakpoints: "",
|
|
220
220
|
label: "Maximum number of substitutions and indels",
|
|
221
221
|
"onUpdate:modelValue": t[3] ||= (e) => F("maxEdits", e)
|
|
222
|
-
}, null, 8, ["model-value"]), m(b(
|
|
222
|
+
}, null, 8, ["model-value"]), m(b(j), {
|
|
223
223
|
"model-value": P.filter.substitutionsOnly,
|
|
224
224
|
label: "Substitutions only",
|
|
225
225
|
"onUpdate:modelValue": t[4] ||= (e) => F("substitutionsOnly", e)
|
|
226
226
|
}, null, 8, ["model-value"])], 2)], 64)) : d("", !0),
|
|
227
227
|
p("div", { class: g(e.$style.bottom) }, [
|
|
228
|
-
P.filter.type === "patternEquals" || P.filter.type === "patternNotEquals" ? (_(), u(b(
|
|
228
|
+
P.filter.type === "patternEquals" || P.filter.type === "patternNotEquals" ? (_(), u(b(T), {
|
|
229
229
|
key: 0,
|
|
230
230
|
"model-value": P.filter.value,
|
|
231
231
|
"options-search": (e, t) => I(G.value.source, t, e),
|
|
@@ -233,7 +233,7 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
233
233
|
"group-position": "bottom",
|
|
234
234
|
"onUpdate:modelValue": t[5] ||= (e) => F("value", e)
|
|
235
235
|
}, null, 8, ["model-value", "options-search"])) : d("", !0),
|
|
236
|
-
P.filter.type === "inSet" || P.filter.type === "notInSet" ? (_(), u(b(
|
|
236
|
+
P.filter.type === "inSet" || P.filter.type === "notInSet" ? (_(), u(b(E), {
|
|
237
237
|
key: 1,
|
|
238
238
|
"model-value": P.filter.value,
|
|
239
239
|
"options-search": (e, t) => L(G.value.source, t, e),
|
|
@@ -245,26 +245,26 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
245
245
|
"options-search",
|
|
246
246
|
"disabled"
|
|
247
247
|
])) : d("", !0),
|
|
248
|
-
b(a)(P.filter) ? (_(), u(b(
|
|
248
|
+
b(a)(P.filter) ? (_(), u(b(k), {
|
|
249
249
|
key: 2,
|
|
250
250
|
"model-value": P.filter.x,
|
|
251
251
|
"group-position": "bottom",
|
|
252
252
|
"onUpdate:modelValue": t[7] ||= (e) => F("x", e)
|
|
253
253
|
}, null, 8, ["model-value"])) : d("", !0),
|
|
254
|
-
b(o)(P.filter) ? (_(), u(b(
|
|
254
|
+
b(o)(P.filter) ? (_(), u(b(k), {
|
|
255
255
|
key: 3,
|
|
256
256
|
"model-value": P.filter.n,
|
|
257
257
|
"group-position": "bottom",
|
|
258
258
|
"onUpdate:modelValue": t[8] ||= (e) => F("n", e)
|
|
259
259
|
}, null, 8, ["model-value"])) : d("", !0),
|
|
260
|
-
P.filter.type === "patternContainSubsequence" || P.filter.type === "patternNotContainSubsequence" ? (_(), u(b(
|
|
260
|
+
P.filter.type === "patternContainSubsequence" || P.filter.type === "patternNotContainSubsequence" ? (_(), u(b(A), {
|
|
261
261
|
key: 4,
|
|
262
262
|
"model-value": P.filter.value,
|
|
263
263
|
placeholder: "Substring",
|
|
264
264
|
"group-position": "bottom",
|
|
265
265
|
"onUpdate:modelValue": t[9] ||= (e) => F("value", e)
|
|
266
266
|
}, null, 8, ["model-value"])) : d("", !0),
|
|
267
|
-
P.filter.type === "patternMatchesRegularExpression" ? (_(), u(b(
|
|
267
|
+
P.filter.type === "patternMatchesRegularExpression" ? (_(), u(b(A), {
|
|
268
268
|
key: 5,
|
|
269
269
|
"model-value": P.filter.value,
|
|
270
270
|
error: $.value ? "Regular expression is not valid" : void 0,
|
|
@@ -272,7 +272,7 @@ var N = ["title"], P = /* @__PURE__ */ h({
|
|
|
272
272
|
"group-position": "bottom",
|
|
273
273
|
"onUpdate:modelValue": t[10] ||= (e) => F("value", e)
|
|
274
274
|
}, null, 8, ["model-value", "error"])) : d("", !0),
|
|
275
|
-
P.filter.type === "patternFuzzyContainSubsequence" ? (_(), u(b(
|
|
275
|
+
P.filter.type === "patternFuzzyContainSubsequence" ? (_(), u(b(D), {
|
|
276
276
|
key: 6,
|
|
277
277
|
"model-value": P.filter.wildcard,
|
|
278
278
|
clearable: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlAgColumnHeader.js","names":[],"sources":["../../../src/components/PlAgColumnHeader/PlAgColumnHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { IHeaderParams, SortDirection } from \"ag-grid-enterprise\";\nimport type { MaskIconName16 } from \"@milaboratories/uikit\";\nimport { PlMaskIcon16, PlTooltip } from \"@milaboratories/uikit\";\nimport { computed, onMounted, ref } from \"vue\";\nimport \"./pl-ag-column-header.scss\";\nimport type { PlAgHeaderComponentParams } from \"./types\";\n\nconst { params } = defineProps<{ params: IHeaderParams & PlAgHeaderComponentParams }>();\n\nconst icon = computed<MaskIconName16>(() => {\n switch (params.type) {\n case undefined:\n case \"Text\":\n return \"cell-type-txt\";\n case \"Number\":\n return \"cell-type-num\";\n case \"File\":\n return \"paper-clip\";\n case \"Date\":\n return \"calendar\";\n case \"Duration\":\n return \"time\";\n case \"Progress\":\n return \"progress\";\n default:\n throw Error(\n `unsupported data type: ${params.type satisfies never} for PlAgColumnHeader component. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst sortDirection = ref<SortDirection>(null);\nconst refreshSortDirection = () => (sortDirection.value = params.column.getSort() ?? null);\nonMounted(() => refreshSortDirection());\nfunction onSortRequested() {\n if (params.column.isSortable()) {\n params.progressSort();\n refreshSortDirection();\n }\n}\nconst sortIcon = computed<MaskIconName16 | null>(() => {\n const direction = sortDirection.value;\n switch (direction) {\n case \"asc\":\n return \"arrow-up\";\n case \"desc\":\n return \"arrow-down\";\n case null:\n return null;\n default:\n throw Error(\n `unsupported sort direction: ${direction satisfies never}. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst menuActivatorBtn = ref<HTMLElement>();\nfunction showMenu() {\n const menuActivatorBtnValue = menuActivatorBtn.value;\n if (menuActivatorBtnValue) params.showColumnMenu(menuActivatorBtnValue);\n}\n</script>\n\n<template>\n <div class=\"pl-ag-column-header d-flex align-center gap-6\" @click=\"onSortRequested\">\n <
|
|
1
|
+
{"version":3,"file":"PlAgColumnHeader.js","names":[],"sources":["../../../src/components/PlAgColumnHeader/PlAgColumnHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { IHeaderParams, SortDirection } from \"ag-grid-enterprise\";\nimport type { MaskIconName16 } from \"@milaboratories/uikit\";\nimport { PlMaskIcon16, PlTooltip } from \"@milaboratories/uikit\";\nimport { computed, onMounted, ref } from \"vue\";\nimport \"./pl-ag-column-header.scss\";\nimport type { PlAgHeaderComponentParams } from \"./types\";\n\nconst { params } = defineProps<{ params: IHeaderParams & PlAgHeaderComponentParams }>();\n\nconst icon = computed<MaskIconName16>(() => {\n switch (params.type) {\n case undefined:\n case \"Text\":\n return \"cell-type-txt\";\n case \"Number\":\n return \"cell-type-num\";\n case \"File\":\n return \"paper-clip\";\n case \"Date\":\n return \"calendar\";\n case \"Duration\":\n return \"time\";\n case \"Progress\":\n return \"progress\";\n default:\n throw Error(\n `unsupported data type: ${params.type satisfies never} for PlAgColumnHeader component. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst sortDirection = ref<SortDirection>(null);\nconst refreshSortDirection = () => (sortDirection.value = params.column.getSort() ?? null);\nonMounted(() => refreshSortDirection());\nfunction onSortRequested() {\n if (params.column.isSortable()) {\n params.progressSort();\n refreshSortDirection();\n }\n}\nconst sortIcon = computed<MaskIconName16 | null>(() => {\n const direction = sortDirection.value;\n switch (direction) {\n case \"asc\":\n return \"arrow-up\";\n case \"desc\":\n return \"arrow-down\";\n case null:\n return null;\n default:\n throw Error(\n `unsupported sort direction: ${direction satisfies never}. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst menuActivatorBtn = ref<HTMLElement>();\nfunction showMenu() {\n const menuActivatorBtnValue = menuActivatorBtn.value;\n if (menuActivatorBtnValue) params.showColumnMenu(menuActivatorBtnValue);\n}\n</script>\n\n<template>\n <div class=\"pl-ag-column-header d-flex align-center gap-6\" @click=\"onSortRequested\">\n <div class=\"pl-ag-column-header__title d-flex align-center gap-6 flex-grow-1\">\n <PlMaskIcon16 :name=\"icon\" class=\"pl-ag-column-header__type-icon\" />\n <PlTooltip>\n <template v-if=\"params.tooltip\" #tooltip>{{ params.tooltip }}</template>\n <span>{{ params.displayName }}</span>\n </PlTooltip>\n <PlTooltip v-if=\"params.info\" max-width=\"500px\" position=\"bottom\" :close-delay=\"10000000000\">\n <template #tooltip>\n <span style=\"white-space: pre-wrap\">{{ params.info }}</span>\n </template>\n <PlMaskIcon16 name=\"info\" />\n </PlTooltip>\n <PlMaskIcon16 v-if=\"sortIcon\" :name=\"sortIcon\" />\n </div>\n <div\n v-if=\"params.enableMenu\"\n ref=\"menuActivatorBtn\"\n class=\"pl-ag-column-header__menu-icon\"\n @click.stop=\"showMenu\"\n >\n <PlMaskIcon16 name=\"more\" />\n </div>\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlAgColumnHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PlAgColumnHeader/PlAgColumnHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlAgColumnHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PlAgColumnHeader/PlAgColumnHeader.vue"],"names":[],"mappings":"AA4FA,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,oBAAoB,CAAC;AAIvE,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,aAAa,GAAG,yBAAyB,CAAA;CAAE,CAAC;;;;AAuMzE,wBAQG"}
|
|
@@ -2,11 +2,11 @@ import './pl-ag-column-header.css';/* empty css */
|
|
|
2
2
|
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createSlots as a, createTextVNode as o, createVNode as s, defineComponent as c, onMounted as l, openBlock as u, ref as d, toDisplayString as f, unref as p, withCtx as m, withModifiers as h } from "vue";
|
|
3
3
|
import { PlMaskIcon16 as g, PlTooltip as _ } from "@milaboratories/uikit";
|
|
4
4
|
//#region src/components/PlAgColumnHeader/PlAgColumnHeader.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var v = { class: "pl-ag-column-header__title d-flex align-center gap-6 flex-grow-1" }, y = /* @__PURE__ */ c({
|
|
5
|
+
var v = { class: "pl-ag-column-header__title d-flex align-center gap-6 flex-grow-1" }, y = { style: { "white-space": "pre-wrap" } }, b = /* @__PURE__ */ c({
|
|
6
6
|
__name: "PlAgColumnHeader",
|
|
7
7
|
props: { params: {} },
|
|
8
8
|
setup(c) {
|
|
9
|
-
let
|
|
9
|
+
let b = e(() => {
|
|
10
10
|
switch (c.params.type) {
|
|
11
11
|
case void 0:
|
|
12
12
|
case "Text": return "cell-type-txt";
|
|
@@ -17,54 +17,64 @@ var v = { class: "pl-ag-column-header__title d-flex align-center gap-6 flex-grow
|
|
|
17
17
|
case "Progress": return "progress";
|
|
18
18
|
default: throw Error(`unsupported data type: ${c.params.type} for PlAgColumnHeader component. Column ${c.params.column.getColId()}`);
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
21
|
-
l(() =>
|
|
22
|
-
function
|
|
23
|
-
c.params.column.isSortable() && (c.params.progressSort(),
|
|
20
|
+
}), x = d(null), S = () => x.value = c.params.column.getSort() ?? null;
|
|
21
|
+
l(() => S());
|
|
22
|
+
function C() {
|
|
23
|
+
c.params.column.isSortable() && (c.params.progressSort(), S());
|
|
24
24
|
}
|
|
25
|
-
let
|
|
26
|
-
let e =
|
|
25
|
+
let w = e(() => {
|
|
26
|
+
let e = x.value;
|
|
27
27
|
switch (e) {
|
|
28
28
|
case "asc": return "arrow-up";
|
|
29
29
|
case "desc": return "arrow-down";
|
|
30
30
|
case null: return null;
|
|
31
31
|
default: throw Error(`unsupported sort direction: ${e}. Column ${c.params.column.getColId()}`);
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
function
|
|
35
|
-
let e =
|
|
33
|
+
}), T = d();
|
|
34
|
+
function E() {
|
|
35
|
+
let e = T.value;
|
|
36
36
|
e && c.params.showColumnMenu(e);
|
|
37
37
|
}
|
|
38
38
|
return (e, l) => (u(), r("div", {
|
|
39
39
|
class: "pl-ag-column-header d-flex align-center gap-6",
|
|
40
|
-
onClick:
|
|
41
|
-
}, [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
i("span", null, f(c.params.displayName), 1),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
onClick: C
|
|
41
|
+
}, [i("div", v, [
|
|
42
|
+
s(p(g), {
|
|
43
|
+
name: b.value,
|
|
44
|
+
class: "pl-ag-column-header__type-icon"
|
|
45
|
+
}, null, 8, ["name"]),
|
|
46
|
+
s(p(_), null, a({
|
|
47
|
+
default: m(() => [i("span", null, f(c.params.displayName), 1)]),
|
|
48
|
+
_: 2
|
|
49
|
+
}, [c.params.tooltip ? {
|
|
50
|
+
name: "tooltip",
|
|
51
|
+
fn: m(() => [o(f(c.params.tooltip), 1)]),
|
|
52
|
+
key: "0"
|
|
53
|
+
} : void 0]), 1024),
|
|
54
|
+
c.params.info ? (u(), t(p(_), {
|
|
55
|
+
key: 0,
|
|
56
|
+
"max-width": "500px",
|
|
57
|
+
position: "bottom",
|
|
58
|
+
"close-delay": 1e10
|
|
59
|
+
}, {
|
|
60
|
+
tooltip: m(() => [i("span", y, f(c.params.info), 1)]),
|
|
61
|
+
default: m(() => [s(p(g), { name: "info" })]),
|
|
62
|
+
_: 1
|
|
63
|
+
})) : n("", !0),
|
|
64
|
+
w.value ? (u(), t(p(g), {
|
|
65
|
+
key: 1,
|
|
66
|
+
name: w.value
|
|
67
|
+
}, null, 8, ["name"])) : n("", !0)
|
|
68
|
+
]), c.params.enableMenu ? (u(), r("div", {
|
|
59
69
|
key: 0,
|
|
60
70
|
ref_key: "menuActivatorBtn",
|
|
61
|
-
ref:
|
|
71
|
+
ref: T,
|
|
62
72
|
class: "pl-ag-column-header__menu-icon",
|
|
63
|
-
onClick: h(
|
|
73
|
+
onClick: h(E, ["stop"])
|
|
64
74
|
}, [s(p(g), { name: "more" })], 512)) : n("", !0)]));
|
|
65
75
|
}
|
|
66
76
|
});
|
|
67
77
|
//#endregion
|
|
68
|
-
export {
|
|
78
|
+
export { b as default };
|
|
69
79
|
|
|
70
80
|
//# sourceMappingURL=PlAgColumnHeader.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlAgColumnHeader.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/PlAgColumnHeader/PlAgColumnHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { IHeaderParams, SortDirection } from \"ag-grid-enterprise\";\nimport type { MaskIconName16 } from \"@milaboratories/uikit\";\nimport { PlMaskIcon16, PlTooltip } from \"@milaboratories/uikit\";\nimport { computed, onMounted, ref } from \"vue\";\nimport \"./pl-ag-column-header.scss\";\nimport type { PlAgHeaderComponentParams } from \"./types\";\n\nconst { params } = defineProps<{ params: IHeaderParams & PlAgHeaderComponentParams }>();\n\nconst icon = computed<MaskIconName16>(() => {\n switch (params.type) {\n case undefined:\n case \"Text\":\n return \"cell-type-txt\";\n case \"Number\":\n return \"cell-type-num\";\n case \"File\":\n return \"paper-clip\";\n case \"Date\":\n return \"calendar\";\n case \"Duration\":\n return \"time\";\n case \"Progress\":\n return \"progress\";\n default:\n throw Error(\n `unsupported data type: ${params.type satisfies never} for PlAgColumnHeader component. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst sortDirection = ref<SortDirection>(null);\nconst refreshSortDirection = () => (sortDirection.value = params.column.getSort() ?? null);\nonMounted(() => refreshSortDirection());\nfunction onSortRequested() {\n if (params.column.isSortable()) {\n params.progressSort();\n refreshSortDirection();\n }\n}\nconst sortIcon = computed<MaskIconName16 | null>(() => {\n const direction = sortDirection.value;\n switch (direction) {\n case \"asc\":\n return \"arrow-up\";\n case \"desc\":\n return \"arrow-down\";\n case null:\n return null;\n default:\n throw Error(\n `unsupported sort direction: ${direction satisfies never}. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst menuActivatorBtn = ref<HTMLElement>();\nfunction showMenu() {\n const menuActivatorBtnValue = menuActivatorBtn.value;\n if (menuActivatorBtnValue) params.showColumnMenu(menuActivatorBtnValue);\n}\n</script>\n\n<template>\n <div class=\"pl-ag-column-header d-flex align-center gap-6\" @click=\"onSortRequested\">\n <
|
|
1
|
+
{"version":3,"file":"PlAgColumnHeader.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/PlAgColumnHeader/PlAgColumnHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { IHeaderParams, SortDirection } from \"ag-grid-enterprise\";\nimport type { MaskIconName16 } from \"@milaboratories/uikit\";\nimport { PlMaskIcon16, PlTooltip } from \"@milaboratories/uikit\";\nimport { computed, onMounted, ref } from \"vue\";\nimport \"./pl-ag-column-header.scss\";\nimport type { PlAgHeaderComponentParams } from \"./types\";\n\nconst { params } = defineProps<{ params: IHeaderParams & PlAgHeaderComponentParams }>();\n\nconst icon = computed<MaskIconName16>(() => {\n switch (params.type) {\n case undefined:\n case \"Text\":\n return \"cell-type-txt\";\n case \"Number\":\n return \"cell-type-num\";\n case \"File\":\n return \"paper-clip\";\n case \"Date\":\n return \"calendar\";\n case \"Duration\":\n return \"time\";\n case \"Progress\":\n return \"progress\";\n default:\n throw Error(\n `unsupported data type: ${params.type satisfies never} for PlAgColumnHeader component. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst sortDirection = ref<SortDirection>(null);\nconst refreshSortDirection = () => (sortDirection.value = params.column.getSort() ?? null);\nonMounted(() => refreshSortDirection());\nfunction onSortRequested() {\n if (params.column.isSortable()) {\n params.progressSort();\n refreshSortDirection();\n }\n}\nconst sortIcon = computed<MaskIconName16 | null>(() => {\n const direction = sortDirection.value;\n switch (direction) {\n case \"asc\":\n return \"arrow-up\";\n case \"desc\":\n return \"arrow-down\";\n case null:\n return null;\n default:\n throw Error(\n `unsupported sort direction: ${direction satisfies never}. Column ${params.column.getColId()}`,\n );\n }\n});\n\nconst menuActivatorBtn = ref<HTMLElement>();\nfunction showMenu() {\n const menuActivatorBtnValue = menuActivatorBtn.value;\n if (menuActivatorBtnValue) params.showColumnMenu(menuActivatorBtnValue);\n}\n</script>\n\n<template>\n <div class=\"pl-ag-column-header d-flex align-center gap-6\" @click=\"onSortRequested\">\n <div class=\"pl-ag-column-header__title d-flex align-center gap-6 flex-grow-1\">\n <PlMaskIcon16 :name=\"icon\" class=\"pl-ag-column-header__type-icon\" />\n <PlTooltip>\n <template v-if=\"params.tooltip\" #tooltip>{{ params.tooltip }}</template>\n <span>{{ params.displayName }}</span>\n </PlTooltip>\n <PlTooltip v-if=\"params.info\" max-width=\"500px\" position=\"bottom\" :close-delay=\"10000000000\">\n <template #tooltip>\n <span style=\"white-space: pre-wrap\">{{ params.info }}</span>\n </template>\n <PlMaskIcon16 name=\"info\" />\n </PlTooltip>\n <PlMaskIcon16 v-if=\"sortIcon\" :name=\"sortIcon\" />\n </div>\n <div\n v-if=\"params.enableMenu\"\n ref=\"menuActivatorBtn\"\n class=\"pl-ag-column-header__menu-icon\"\n @click.stop=\"showMenu\"\n >\n <PlMaskIcon16 name=\"more\" />\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;EAUA,IAAM,IAAO,QAA+B;AAC1C,WAAQ,EAAA,OAAO,MAAf;IACE,KAAK,KAAA;IACL,KAAK,OACH,QAAO;IAC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D,QAA5D,GAA4D,EAArB,EAAA,OAAO,KAAI,EAAA,EAAA,CAAA,CAAA;qBAExB,CAA5B,EAA4B,EAAA,EAAA,EAAA,EAAd,MAAK,QAAM,CAAA,CAAA,CAAA;;;GAEP,EAAA,SAAA,GAAA,EAApB,EAAiD,EAAA,EAAA,EAAA;;IAAlB,MAAM,EAAA;;MAG/B,EAAA,OAAO,cAAA,GAAA,EADf,EAOM,OAAA;;YALA;GAAJ,KAAI;GACJ,OAAM;GACL,SAAK,EAAO,GAAQ,CAAA,OAAA,CAAA;MAErB,EAA4B,EAAA,EAAA,EAAA,EAAd,MAAK,QAAM,CAAA,CAAA,EAAA,IAAA,IAAA,EAAA,IAAA,GAAA,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PlAgColumnHeader/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpG,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PlAgColumnHeader/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpG,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../sources/row-number.js";
|
|
2
2
|
import { ref as e } from "vue";
|
|
3
3
|
import { parseJson as t } from "@platforma-sdk/model";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { isNil as n } from "es-toolkit";
|
|
5
|
+
import { watchCached as r } from "@milaboratories/uikit";
|
|
6
6
|
//#region src/components/PlAgDataTable/compositions/useFilterableColumns.ts
|
|
7
7
|
function i(i, o) {
|
|
8
8
|
let s = e([]), c = e([]);
|
|
9
|
-
return
|
|
10
|
-
if (r
|
|
9
|
+
return r(() => [o(), i()], ([e, r]) => {
|
|
10
|
+
if (n(r)) {
|
|
11
11
|
s.value = [], c.value = [];
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
let i = a(e).filter((e) => !
|
|
14
|
+
let i = a(e).filter((e) => !n(e.colId)).map((e) => ({
|
|
15
15
|
item: t(e.colId).labeled,
|
|
16
16
|
hide: e.hide
|
|
17
17
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-source-v2.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/sources/table-source-v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EAGR,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAErB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAEd,KAAK,mBAAmB,EAWzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAEV,MAAM,EACN,OAAO,EAIP,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAAE,kBAAkB,EAAgB,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,wBAAgB,aAAa,CA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sBAAsB,CAAC,GAAG;IACpF,QAAQ,EAAE,QAAQ,CAAC;CACpB,CACF,CA8HA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,gBAAgB,EAC7B,YAAY,EAAE,mBAAmB,EAAE,GAAG,SAAS,EAC/C,oBAAoB,CAAC,EAAE,wBAAwB,GAC9C,MAAM,CAAC,kBAAkB,EAAE,WAAW,GAAG,YAAY,CAAC,CAuFxD"}
|
|
@@ -25,7 +25,7 @@ function C(e, t, n, r) {
|
|
|
25
25
|
async function w({ generation: r, pfDriver: i, sheets: a, fullTableHandle: o, visibleTableHandle: s, dataRenderedTracker: c, hiddenColIds: l, cellButtonAxisParams: u }) {
|
|
26
26
|
let d = r.value, [f, p] = await Promise.all([i.getSpec(o), i.getSpec(s)]);
|
|
27
27
|
if (d !== r.value) throw Error("table state generation changed");
|
|
28
|
-
let m = E(f, p), h = D(a), g = O(f, h), _ = A(k(f, h), f), v = j(_, f, g), y = l ?? M(_, v, f), b = [n(), ..._.map((e, t) => T(e, f[e], f[v[t]], y, u))], x = N(p), { requestIndices: S,
|
|
28
|
+
let m = E(f, p), h = D(a), g = O(f, h), _ = A(k(f, h), f), v = j(_, f, g), y = l ?? M(_, v, f), b = [n(), ..._.map((e, t) => T(e, f[e], f[v[t]], y, u))], x = N(p), { requestIndices: S, axesResultIndices: w, fieldResultMapping: F } = P(v, x.map(([e]) => e), m), I = -1, L;
|
|
29
29
|
return {
|
|
30
30
|
axesSpec: x.map(([, { spec: e }]) => e),
|
|
31
31
|
columnDefs: b,
|
|
@@ -56,7 +56,7 @@ async function w({ generation: r, pfDriver: i, sheets: a, fullTableHandle: o, vi
|
|
|
56
56
|
length: a
|
|
57
57
|
});
|
|
58
58
|
if (d !== r.value || n.api.isDestroyed()) return n.fail();
|
|
59
|
-
o = C(_, e,
|
|
59
|
+
o = C(_, e, F, w);
|
|
60
60
|
}
|
|
61
61
|
n.success({
|
|
62
62
|
rowData: o,
|
|
@@ -112,7 +112,8 @@ function T(t, n, a, d, f) {
|
|
|
112
112
|
default: throw Error(`unsupported data type: ${m}`);
|
|
113
113
|
}
|
|
114
114
|
})(),
|
|
115
|
-
tooltip: y(a.spec, c.Description)?.trim()
|
|
115
|
+
tooltip: y(n.spec, c.Description)?.trim() ?? y(a.spec, c.Description)?.trim(),
|
|
116
|
+
info: y(n.spec, c.Table.Info)?.trim() ?? y(a.spec, c.Table.Info)?.trim()
|
|
116
117
|
},
|
|
117
118
|
cellDataType: (() => {
|
|
118
119
|
switch (m) {
|
|
@@ -193,15 +194,13 @@ function N(e) {
|
|
|
193
194
|
}
|
|
194
195
|
function P(e, t, n) {
|
|
195
196
|
let r = e.map((e) => {
|
|
196
|
-
let
|
|
197
|
-
return
|
|
198
|
-
}), i = r.filter((e) => e !== null), a =
|
|
199
|
-
for (let e of r) a.push(e === null ? -1 : o++);
|
|
200
|
-
let s = S([...i, ...n]);
|
|
197
|
+
let t = n.get(e);
|
|
198
|
+
return x(t) || t === -1 ? null : t;
|
|
199
|
+
}), i = S([...r.filter((e) => e !== null), ...t]), a = r.map((e) => e === null ? -1 : i.indexOf(e));
|
|
201
200
|
return {
|
|
202
|
-
requestIndices:
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
requestIndices: i,
|
|
202
|
+
axesResultIndices: t.map((e) => i.indexOf(e)),
|
|
203
|
+
fieldResultMapping: a
|
|
205
204
|
};
|
|
206
205
|
}
|
|
207
206
|
//#endregion
|