@platforma-sdk/ui-vue 1.82.6 → 1.83.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 +169 -23
- 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 +2 -2
- package/CHANGELOG.md +62 -0
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +1 -1
- package/dist/components/PlAgDataTable/compositions/useFilterableColumns.d.ts +16 -16
- package/dist/components/PlAnnotations/components/AnnotationsSidebar.js.map +1 -1
- package/dist/components/PlAnnotations/components/AnnotationsSidebar.style.js.map +1 -1
- package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue2.js +1 -1
- package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue2.js.map +1 -1
- package/dist/components/PlAnnotations/components/FilterSidebar.js.map +1 -1
- package/dist/components/PlAnnotations/components/FilterSidebar.style.js.map +1 -1
- package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +1 -1
- package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js.map +1 -1
- package/dist/components/PlAnnotations/components/PlAnnotations.vue2.js.map +1 -1
- package/dist/defineApp.d.ts +2 -32
- package/dist/defineApp.d.ts.map +1 -1
- package/dist/defineApp.js +20 -62
- package/dist/defineApp.js.map +1 -1
- package/dist/index.js +39 -39
- package/dist/internal/createAppV3.d.ts +1 -1
- package/dist/internal/createAppV3.js +16 -16
- package/dist/lib/util/helpers/dist/utils.js +2 -5
- package/dist/lib/util/helpers/dist/utils.js.map +1 -1
- package/dist/lib.js +1 -1
- package/package.json +8 -8
- package/src/components/PlAnnotations/components/AnnotationsSidebar.vue +2 -2
- package/src/components/PlAnnotations/components/FilterSidebar.vue +2 -2
- package/src/defineApp.ts +1 -183
- package/dist/components/BlockLayout.vue.d.ts +0 -3
- package/dist/components/BlockLayout.vue.d.ts.map +0 -1
- package/dist/components/BlockLoader.vue.d.ts +0 -6
- package/dist/components/BlockLoader.vue.d.ts.map +0 -1
- package/dist/components/LoaderPage.vue.d.ts +0 -3
- package/dist/components/LoaderPage.vue.d.ts.map +0 -1
- package/dist/components/NotFound.vue.d.ts +0 -3
- package/dist/components/NotFound.vue.d.ts.map +0 -1
- package/dist/components/PlAdvancedFilter/FilterEditor.vue.d.ts +0 -23
- package/dist/components/PlAdvancedFilter/FilterEditor.vue.d.ts.map +0 -1
- package/dist/components/PlAdvancedFilter/OperandButton.vue.d.ts +0 -9
- package/dist/components/PlAdvancedFilter/OperandButton.vue.d.ts.map +0 -1
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts +0 -55
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts.map +0 -1
- package/dist/components/PlAgCellFile/PlAgCellFile.vue.d.ts +0 -26
- package/dist/components/PlAgCellFile/PlAgCellFile.vue.d.ts.map +0 -1
- package/dist/components/PlAgCellProgress/PlAgCellProgress.vue.d.ts +0 -8
- package/dist/components/PlAgCellProgress/PlAgCellProgress.vue.d.ts.map +0 -1
- package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue.d.ts +0 -10
- package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue.d.ts.map +0 -1
- package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue.d.ts +0 -11
- package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue.d.ts.map +0 -1
- package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue.d.ts +0 -8
- package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue.d.ts.map +0 -1
- package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue.d.ts +0 -10
- package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue.d.ts.map +0 -1
- package/dist/components/PlAgCsvExporter/PlAgCsvExporter.vue.d.ts +0 -10
- package/dist/components/PlAgCsvExporter/PlAgCsvExporter.vue.d.ts.map +0 -1
- package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue.d.ts +0 -31
- package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue.d.ts.map +0 -1
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts +0 -94
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +0 -1
- package/dist/components/PlAgDataTable/PlAgOverlayLoading.vue.d.ts +0 -10
- package/dist/components/PlAgDataTable/PlAgOverlayLoading.vue.d.ts.map +0 -1
- package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue.d.ts +0 -9
- package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue.d.ts.map +0 -1
- package/dist/components/PlAgDataTable/PlAgRowCount.vue.d.ts +0 -9
- package/dist/components/PlAgDataTable/PlAgRowCount.vue.d.ts.map +0 -1
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.d.ts +0 -17
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.d.ts.map +0 -1
- package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.d.ts +0 -7
- package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.d.ts.map +0 -1
- package/dist/components/PlAgRowNumHeader.vue.d.ts +0 -7
- package/dist/components/PlAgRowNumHeader.vue.d.ts.map +0 -1
- package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.d.ts +0 -32
- package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.d.ts.map +0 -1
- package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.d.ts +0 -14
- package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.d.ts.map +0 -1
- package/dist/components/PlAnnotations/components/FilterSidebar.vue.d.ts +0 -26
- package/dist/components/PlAnnotations/components/FilterSidebar.vue.d.ts.map +0 -1
- package/dist/components/PlAnnotations/components/PlAnnotations.vue.d.ts +0 -10
- package/dist/components/PlAnnotations/components/PlAnnotations.vue.d.ts.map +0 -1
- package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.d.ts +0 -8
- package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.d.ts.map +0 -1
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.d.ts +0 -11
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.d.ts.map +0 -1
- package/dist/components/PlBtnExportArchive/Item.vue.d.ts +0 -7
- package/dist/components/PlBtnExportArchive/Item.vue.d.ts.map +0 -1
- package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue.d.ts +0 -35
- package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue.d.ts.map +0 -1
- package/dist/components/PlBtnExportArchive/Summary.vue.d.ts +0 -11
- package/dist/components/PlBtnExportArchive/Summary.vue.d.ts.map +0 -1
- package/dist/components/PlDatasetSelector/PlDatasetSelector.vue.d.ts +0 -77
- package/dist/components/PlDatasetSelector/PlDatasetSelector.vue.d.ts.map +0 -1
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.d.ts +0 -10
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.d.ts.map +0 -1
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue.d.ts +0 -14
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue.d.ts.map +0 -1
- package/dist/internal/createAppModel.d.ts +0 -7
- package/dist/internal/createAppModel.d.ts.map +0 -1
- package/dist/internal/createAppModel.js +0 -57
- package/dist/internal/createAppModel.js.map +0 -1
- package/dist/internal/createAppV1.d.ts +0 -53
- package/dist/internal/createAppV1.d.ts.map +0 -1
- package/dist/internal/createAppV1.js +0 -129
- package/dist/internal/createAppV1.js.map +0 -1
- package/dist/internal/createAppV2.d.ts +0 -50
- package/dist/internal/createAppV2.d.ts.map +0 -1
- package/dist/internal/createAppV2.js +0 -137
- package/dist/internal/createAppV2.js.map +0 -1
- package/dist/internal/createAppV2.test.d.ts +0 -15
- package/dist/internal/createAppV2.test.d.ts.map +0 -1
- package/dist/internal/test-helpers/BlockMock.d.ts +0 -29
- package/dist/internal/test-helpers/BlockMock.d.ts.map +0 -1
- package/dist/internal/test-helpers/createMockApi.d.ts +0 -4
- package/dist/internal/test-helpers/createMockApi.d.ts.map +0 -1
- package/dist/internal/test-helpers/utils.d.ts +0 -4
- package/dist/internal/test-helpers/utils.d.ts.map +0 -1
- package/dist/internal/v1.static-test.d.ts +0 -7
- package/dist/internal/v1.static-test.d.ts.map +0 -1
- package/dist/internal/v2.static-test.d.ts +0 -7
- package/dist/internal/v2.static-test.d.ts.map +0 -1
- package/dist/plugins/Monetization/EndOfPeriod.vue.d.ts +0 -6
- package/dist/plugins/Monetization/EndOfPeriod.vue.d.ts.map +0 -1
- package/dist/plugins/Monetization/LimitCard.vue.d.ts +0 -11
- package/dist/plugins/Monetization/LimitCard.vue.d.ts.map +0 -1
- package/dist/plugins/Monetization/MonetizationSidebar.vue.d.ts +0 -3
- package/dist/plugins/Monetization/MonetizationSidebar.vue.d.ts.map +0 -1
- package/dist/plugins/Monetization/RunStatus.vue.d.ts +0 -23
- package/dist/plugins/Monetization/RunStatus.vue.d.ts.map +0 -1
- package/dist/plugins/Monetization/UserCabinetCard.vue.d.ts +0 -7
- package/dist/plugins/Monetization/UserCabinetCard.vue.d.ts.map +0 -1
- package/src/internal/createAppModel.ts +0 -112
- package/src/internal/createAppV1.ts +0 -324
- package/src/internal/createAppV2.test.ts +0 -207
- package/src/internal/createAppV2.ts +0 -392
- package/src/internal/test-helpers/BlockMock.ts +0 -161
- package/src/internal/test-helpers/createMockApi.ts +0 -104
- package/src/internal/test-helpers/utils.ts +0 -65
- package/src/internal/v1.static-test.ts +0 -107
- package/src/internal/v2.static-test.ts +0 -107
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,22 +1,171 @@
|
|
|
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.83.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...
|
|
7
7
|
↳ vite.js build --config /configs/vite.browser-lib.config.js --mode production
|
|
8
8
|
[36mvite v8.0.6 [32mbuilding client environment for production...[36m[39m
|
|
9
9
|
[warn] `inlineDynamicImports` option is deprecated, please use `codeSplitting: false` instead.
|
|
10
|
-
[96msrc/components/PlAgGridColumnManager/useGridColumns.ts[0m:[93m4[0m:[93m17[0m - [91merror[0m[90m
|
|
10
|
+
[96msrc/components/PlAgGridColumnManager/useGridColumns.ts[0m:[93m4[0m:[93m17[0m - [91merror[0m[90m TS2883: [0mThe inferred type of 'useGridColumns' cannot be named without a reference to 'ColumnEventName' from '../../../../../node_modules/.pnpm/ag-grid-community@34.1.2/node_modules/ag-grid-community/dist/types/src/interfaces/iColumn'. This is likely not portable. A type annotation is necessary.
|
|
11
11
|
|
|
12
12
|
[7m4[0m export function useGridColumns(props: { api: GridApi }) {
|
|
13
13
|
[7m [0m [91m ~~~~~~~~~~~~~~[0m
|
|
14
|
+
[96msrc/components/PlAgGridColumnManager/useGridColumns.ts[0m:[93m4[0m:[93m17[0m - [91merror[0m[90m TS2883: [0mThe inferred type of 'useGridColumns' cannot be named without a reference to 'ColumnInstanceId' from '../../../../../node_modules/.pnpm/ag-grid-community@34.1.2/node_modules/ag-grid-community/dist/types/src/interfaces/iColumn'. This is likely not portable. A type annotation is necessary.
|
|
14
15
|
|
|
15
|
-
[
|
|
16
|
+
[7m4[0m export function useGridColumns(props: { api: GridApi }) {
|
|
17
|
+
[7m [0m [91m ~~~~~~~~~~~~~~[0m
|
|
18
|
+
[96msrc/components/PlAgGridColumnManager/useGridColumns.ts[0m:[93m4[0m:[93m17[0m - [91merror[0m[90m TS2883: [0mThe inferred type of 'useGridColumns' cannot be named without a reference to 'HeaderColumnId' from '../../../../../node_modules/.pnpm/ag-grid-community@34.1.2/node_modules/ag-grid-community/dist/types/src/interfaces/iColumn'. This is likely not portable. A type annotation is necessary.
|
|
19
|
+
|
|
20
|
+
[7m4[0m export function useGridColumns(props: { api: GridApi }) {
|
|
21
|
+
[7m [0m [91m ~~~~~~~~~~~~~~[0m
|
|
22
|
+
[96msrc/components/PlAdvancedFilter/FilterEditor.test.ts[0m:[93m37[0m:[93m33[0m - [91merror[0m[90m TS2307: [0mCannot find module './FilterEditor.vue' or its corresponding type declarations.
|
|
23
|
+
|
|
24
|
+
[7m37[0m let FilterEditor: typeof import("./FilterEditor.vue").default;
|
|
25
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~[0m
|
|
26
|
+
[96msrc/components/PlAdvancedFilter/FilterEditor.test.ts[0m:[93m46[0m:[93m32[0m - [91merror[0m[90m TS2307: [0mCannot find module './FilterEditor.vue' or its corresponding type declarations.
|
|
27
|
+
|
|
28
|
+
[7m46[0m FilterEditor = (await import("./FilterEditor.vue")).default;
|
|
29
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~[0m
|
|
30
|
+
[96msrc/components/PlAdvancedFilter/index.ts[0m:[93m9[0m:[93m54[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAdvancedFilter.vue' or its corresponding type declarations.
|
|
31
|
+
|
|
32
|
+
[7m9[0m export { default as PlAdvancedFilterComponent } from "./PlAdvancedFilter.vue";
|
|
33
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
34
|
+
[96msrc/components/PlAgCellFile/index.ts[0m:[93m1[0m:[93m41[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgCellFile.vue' or its corresponding type declarations.
|
|
35
|
+
|
|
36
|
+
[7m1[0m export { default as PlAgCellFile } from "./PlAgCellFile.vue";
|
|
37
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~[0m
|
|
38
|
+
[96msrc/components/PlAgCellProgress/index.ts[0m:[93m1[0m:[93m45[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgCellProgress.vue' or its corresponding type declarations.
|
|
39
|
+
|
|
40
|
+
[7m1[0m export { default as PlAgCellProgress } from "./PlAgCellProgress.vue";
|
|
41
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
42
|
+
[96msrc/components/PlAgCellStatusTag/index.ts[0m:[93m1[0m:[93m46[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgCellStatusTag.vue' or its corresponding type declarations.
|
|
43
|
+
|
|
44
|
+
[7m1[0m export { default as PlAgCellStatusTag } from "./PlAgCellStatusTag.vue";
|
|
45
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
46
|
+
[96msrc/components/PlAgChartHistogramCell/index.ts[0m:[93m1[0m:[93m51[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgChartHistogramCell.vue' or its corresponding type declarations.
|
|
47
|
+
|
|
48
|
+
[7m1[0m export { default as PlAgChartHistogramCell } from "./PlAgChartHistogramCell.vue";
|
|
49
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
50
|
+
[96msrc/components/PlAgChartStackedBarCell/index.ts[0m:[93m1[0m:[93m52[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgChartStackedBarCell.vue' or its corresponding type declarations.
|
|
51
|
+
|
|
52
|
+
[7m1[0m export { default as PlAgChartStackedBarCell } from "./PlAgChartStackedBarCell.vue";
|
|
53
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
54
|
+
[96msrc/components/PlAgColumnHeader/index.ts[0m:[93m1[0m:[93m45[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgColumnHeader.vue' or its corresponding type declarations.
|
|
55
|
+
|
|
56
|
+
[7m1[0m export { default as PlAgColumnHeader } from "./PlAgColumnHeader.vue";
|
|
57
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
58
|
+
[96msrc/components/PlAgCsvExporter/index.ts[0m:[93m1[0m:[93m44[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgCsvExporter.vue' or its corresponding type declarations.
|
|
59
|
+
|
|
60
|
+
[7m1[0m export { default as PlAgCsvExporter } from "./PlAgCsvExporter.vue";
|
|
61
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
62
|
+
[96msrc/components/PlAgDataTable/compositions/useGrid.ts[0m:[93m18[0m:[93m30[0m - [91merror[0m[90m TS2307: [0mCannot find module '../PlAgOverlayLoading.vue' or its corresponding type declarations.
|
|
63
|
+
|
|
64
|
+
[7m18[0m import PlOverlayLoading from "../PlAgOverlayLoading.vue";
|
|
65
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
66
|
+
[96msrc/components/PlAgDataTable/compositions/useGrid.ts[0m:[93m19[0m:[93m29[0m - [91merror[0m[90m TS2307: [0mCannot find module '../PlAgOverlayNoRows.vue' or its corresponding type declarations.
|
|
67
|
+
|
|
68
|
+
[7m19[0m import PlOverlayNoRows from "../PlAgOverlayNoRows.vue";
|
|
69
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
70
|
+
[96msrc/components/PlAgDataTable/index.ts[0m:[93m5[0m:[93m42[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgDataTableV2.vue' or its corresponding type declarations.
|
|
71
|
+
|
|
72
|
+
[7m5[0m export { default as PlDataTableV2 } from "./PlAgDataTableV2.vue";
|
|
73
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
74
|
+
[96msrc/components/PlAgDataTable/index.ts[0m:[93m6[0m:[93m47[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgOverlayLoading.vue' or its corresponding type declarations.
|
|
75
|
+
|
|
76
|
+
[7m6[0m export { default as PlAgOverlayLoading } from "./PlAgOverlayLoading.vue";
|
|
77
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
78
|
+
[96msrc/components/PlAgDataTable/index.ts[0m:[93m7[0m:[93m46[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgOverlayNoRows.vue' or its corresponding type declarations.
|
|
79
|
+
|
|
80
|
+
[7m7[0m export { default as PlAgOverlayNoRows } from "./PlAgOverlayNoRows.vue";
|
|
81
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
82
|
+
[96msrc/components/PlAgDataTable/sources/row-number.ts[0m:[93m10[0m:[93m30[0m - [91merror[0m[90m TS2307: [0mCannot find module '../../PlAgRowNumHeader.vue' or its corresponding type declarations.
|
|
83
|
+
|
|
84
|
+
[7m10[0m import PlAgRowNumHeader from "../../PlAgRowNumHeader.vue";
|
|
85
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
86
|
+
[96msrc/components/PlAgGridColumnManager/index.ts[0m:[93m1[0m:[93m50[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgGridColumnManager.vue' or its corresponding type declarations.
|
|
87
|
+
|
|
88
|
+
[7m1[0m export { default as PlAgGridColumnManager } from "./PlAgGridColumnManager.vue";
|
|
89
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
90
|
+
[96msrc/components/PlAgRowNumCheckbox/index.ts[0m:[93m1[0m:[93m47[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgRowNumCheckbox.vue' or its corresponding type declarations.
|
|
91
|
+
|
|
92
|
+
[7m1[0m export { default as PlAgRowNumCheckbox } from "./PlAgRowNumCheckbox.vue";
|
|
93
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
94
|
+
[96msrc/components/PlAgTextAndButtonCell/index.ts[0m:[93m1[0m:[93m50[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAgTextAndButtonCell.vue' or its corresponding type declarations.
|
|
95
|
+
|
|
96
|
+
[7m1[0m export { default as PlAgTextAndButtonCell } from "./PlAgTextAndButtonCell.vue";
|
|
97
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
98
|
+
[96msrc/components/PlAnnotations/index.ts[0m:[93m1[0m:[93m42[0m - [91merror[0m[90m TS2307: [0mCannot find module './components/PlAnnotations.vue' or its corresponding type declarations.
|
|
99
|
+
|
|
100
|
+
[7m1[0m export { default as PlAnnotations } from "./components/PlAnnotations.vue";
|
|
101
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
102
|
+
[96msrc/components/PlAnnotations/index.ts[0m:[93m2[0m:[93m47[0m - [91merror[0m[90m TS2307: [0mCannot find module './components/PlAnnotationsModal.vue' or its corresponding type declarations.
|
|
103
|
+
|
|
104
|
+
[7m2[0m export { default as PlAnnotationsModal } from "./components/PlAnnotationsModal.vue";
|
|
105
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
106
|
+
[96msrc/components/PlAppErrorNotificationAlert/index.ts[0m:[93m1[0m:[93m56[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlAppErrorNotificationAlert.vue' or its corresponding type declarations.
|
|
107
|
+
|
|
108
|
+
[7m1[0m export { default as PlAppErrorNotificationAlert } from "./PlAppErrorNotificationAlert.vue";
|
|
109
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
110
|
+
[96msrc/components/PlBtnExportArchive/index.ts[0m:[93m1[0m:[93m47[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlBtnExportArchive.vue' or its corresponding type declarations.
|
|
111
|
+
|
|
112
|
+
[7m1[0m export { default as PlBtnExportArchive } from "./PlBtnExportArchive.vue";
|
|
113
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
114
|
+
[96msrc/components/PlDatasetSelector/__tests__/PlDatasetSelector.jsdomtest.ts[0m:[93m5[0m:[93m31[0m - [91merror[0m[90m TS2307: [0mCannot find module '../PlDatasetSelector.vue' or its corresponding type declarations.
|
|
115
|
+
|
|
116
|
+
[7m5[0m import PlDatasetSelector from "../PlDatasetSelector.vue";
|
|
117
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
118
|
+
[96msrc/components/PlDatasetSelector/index.ts[0m:[93m1[0m:[93m46[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlDatasetSelector.vue' or its corresponding type declarations.
|
|
119
|
+
|
|
120
|
+
[7m1[0m export { default as PlDatasetSelector } from "./PlDatasetSelector.vue";
|
|
121
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
122
|
+
[96msrc/components/PlTableFastSearch/index.ts[0m:[93m1[0m:[93m46[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlTableFastSearch.vue' or its corresponding type declarations.
|
|
123
|
+
|
|
124
|
+
[7m1[0m export { default as PlTableFastSearch } from "./PlTableFastSearch.vue";
|
|
125
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
126
|
+
[96msrc/components/PlTableFilters/index.ts[0m:[93m1[0m:[93m45[0m - [91merror[0m[90m TS2307: [0mCannot find module './PlTableFiltersV2.vue' or its corresponding type declarations.
|
|
127
|
+
|
|
128
|
+
[7m1[0m export { default as PlTableFiltersV2 } from "./PlTableFiltersV2.vue";
|
|
129
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
130
|
+
[96msrc/lib.ts[0m:[93m3[0m:[93m40[0m - [91merror[0m[90m TS2307: [0mCannot find module './components/BlockLayout.vue' or its corresponding type declarations.
|
|
131
|
+
|
|
132
|
+
[7m3[0m export { default as BlockLayout } from "./components/BlockLayout.vue";
|
|
133
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
134
|
+
[96msrc/lib.ts[0m:[93m4[0m:[93m44[0m - [91merror[0m[90m TS2307: [0mCannot find module './components/PlAgDataTable/PlAgDataTableV2.vue' or its corresponding type declarations.
|
|
135
|
+
|
|
136
|
+
[7m4[0m export { default as PlAgDataTableV2 } from "./components/PlAgDataTable/PlAgDataTableV2.vue";
|
|
137
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
138
|
+
[96msrc/lib.ts[0m:[93m5[0m:[93m47[0m - [91merror[0m[90m TS2307: [0mCannot find module './components/PlAgDataTable/PlAgOverlayLoading.vue' or its corresponding type declarations.
|
|
139
|
+
|
|
140
|
+
[7m5[0m export { default as PlAgOverlayLoading } from "./components/PlAgDataTable/PlAgOverlayLoading.vue";
|
|
141
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
142
|
+
[96msrc/lib.ts[0m:[93m6[0m:[93m46[0m - [91merror[0m[90m TS2307: [0mCannot find module './components/PlAgDataTable/PlAgOverlayNoRows.vue' or its corresponding type declarations.
|
|
143
|
+
|
|
144
|
+
[7m6[0m export { default as PlAgOverlayNoRows } from "./components/PlAgDataTable/PlAgOverlayNoRows.vue";
|
|
145
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
146
|
+
[96msrc/plugins/Monetization/index.ts[0m:[93m1[0m:[93m33[0m - [91merror[0m[90m TS2307: [0mCannot find module './MonetizationSidebar.vue' or its corresponding type declarations.
|
|
147
|
+
|
|
148
|
+
[7m1[0m import MonetizationSidebar from "./MonetizationSidebar.vue";
|
|
149
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
150
|
+
|
|
151
|
+
[96msrc/components/PlAgGridColumnManager/useGridColumns.ts[0m:[93m4[0m:[93m17[0m - [91merror[0m[90m TS2883: [0mThe inferred type of 'useGridColumns' cannot be named without a reference to 'ColumnEventName' from '../../../../../node_modules/.pnpm/ag-grid-community@34.1.2/node_modules/ag-grid-community/dist/types/src/interfaces/iColumn'. This is likely not portable. A type annotation is necessary.
|
|
152
|
+
|
|
153
|
+
[7m4[0m export function useGridColumns(props: { api: GridApi }) {
|
|
154
|
+
[7m [0m [91m ~~~~~~~~~~~~~~[0m
|
|
155
|
+
[96msrc/components/PlAgGridColumnManager/useGridColumns.ts[0m:[93m4[0m:[93m17[0m - [91merror[0m[90m TS2883: [0mThe inferred type of 'useGridColumns' cannot be named without a reference to 'ColumnInstanceId' from '../../../../../node_modules/.pnpm/ag-grid-community@34.1.2/node_modules/ag-grid-community/dist/types/src/interfaces/iColumn'. This is likely not portable. A type annotation is necessary.
|
|
156
|
+
|
|
157
|
+
[7m4[0m export function useGridColumns(props: { api: GridApi }) {
|
|
158
|
+
[7m [0m [91m ~~~~~~~~~~~~~~[0m
|
|
159
|
+
[96msrc/components/PlAgGridColumnManager/useGridColumns.ts[0m:[93m4[0m:[93m17[0m - [91merror[0m[90m TS2883: [0mThe inferred type of 'useGridColumns' cannot be named without a reference to 'HeaderColumnId' from '../../../../../node_modules/.pnpm/ag-grid-community@34.1.2/node_modules/ag-grid-community/dist/types/src/interfaces/iColumn'. This is likely not portable. A type annotation is necessary.
|
|
160
|
+
|
|
161
|
+
[7m4[0m export function useGridColumns(props: { api: GridApi }) {
|
|
162
|
+
[7m [0m [91m ~~~~~~~~~~~~~~[0m
|
|
163
|
+
|
|
164
|
+
[2K
|
|
16
165
|
rendering chunks...
|
|
17
166
|
|
|
18
|
-
[
|
|
19
|
-
[
|
|
167
|
+
[unplugin:dts] Start generate declaration files...
|
|
168
|
+
[unplugin:dts] Declaration files built in 2954ms.
|
|
20
169
|
|
|
21
170
|
computing gzip size...
|
|
22
171
|
dist/components/PlAnnotations/components/PlAnnotations.vue?vue&type=style&index=0&lang.css 0.04 kB │ gzip: 0.06 kB
|
|
@@ -119,7 +268,7 @@ dist/components/BlockLayout.js
|
|
|
119
268
|
dist/plugins/Monetization/EndOfPeriod.js 0.34 kB │ gzip: 0.24 kB │ map: 1.21 kB
|
|
120
269
|
dist/components/PlAdvancedFilter/FilterEditor.js 0.35 kB │ gzip: 0.24 kB │ map: 17.62 kB
|
|
121
270
|
dist/components/PlAdvancedFilter/OperandButton.js 0.35 kB │ gzip: 0.24 kB │ map: 1.31 kB
|
|
122
|
-
dist/components/PlAnnotations/components/FilterSidebar.js 0.35 kB │ gzip: 0.24 kB │ map: 5.
|
|
271
|
+
dist/components/PlAnnotations/components/FilterSidebar.js 0.35 kB │ gzip: 0.24 kB │ map: 5.42 kB
|
|
123
272
|
dist/components/PlAnnotations/components/PlAnnotations.js 0.35 kB │ gzip: 0.24 kB │ map: 3.11 kB
|
|
124
273
|
dist/components/PlAgDataTable/PlAgDataTableV2.js 0.35 kB │ gzip: 0.25 kB │ map: 24.08 kB
|
|
125
274
|
dist/plugins/Monetization/UserCabinetCard.js 0.35 kB │ gzip: 0.24 kB │ map: 3.00 kB
|
|
@@ -129,7 +278,7 @@ dist/components/PlTableFilters/PlTableFiltersV2.js
|
|
|
129
278
|
dist/components/PlAgCellStatusTag/PlAgCellStatusTag.js 0.36 kB │ gzip: 0.20 kB │ map: 0.74 kB
|
|
130
279
|
dist/components/PlBtnExportArchive/PlBtnExportArchive.js 0.36 kB │ gzip: 0.24 kB │ map: 7.17 kB
|
|
131
280
|
dist/components/PlAgDataTable/PlAgDataTableSheets.js 0.37 kB │ gzip: 0.25 kB │ map: 3.61 kB
|
|
132
|
-
dist/components/PlAnnotations/components/AnnotationsSidebar.js 0.37 kB │ gzip: 0.24 kB │ map: 4.
|
|
281
|
+
dist/components/PlAnnotations/components/AnnotationsSidebar.js 0.37 kB │ gzip: 0.24 kB │ map: 4.58 kB
|
|
133
282
|
dist/components/PlAnnotations/components/PlAnnotationsModal.js 0.37 kB │ gzip: 0.24 kB │ map: 1.36 kB
|
|
134
283
|
dist/components/PlAgGridColumnManager/PlAgGridColumnManager.js 0.37 kB │ gzip: 0.25 kB │ map: 4.71 kB
|
|
135
284
|
dist/lib/util/helpers/dist/strings.js 0.39 kB │ gzip: 0.27 kB │ map: 4.11 kB
|
|
@@ -159,10 +308,10 @@ dist/plugins/Monetization/LimitCard.vue_vue_type_style_index_0_lang.module.js
|
|
|
159
308
|
dist/_virtual/_rolldown/runtime.js 0.73 kB │ gzip: 0.43 kB
|
|
160
309
|
dist/components/PlAgDataTable/PlAgOverlayNoRows.vue_vue_type_script_setup_true_lang.js 0.76 kB │ gzip: 0.49 kB │ map: 1.56 kB
|
|
161
310
|
dist/plugins/Monetization/EndOfPeriod.vue_vue_type_script_setup_true_lang.js 0.81 kB │ gzip: 0.51 kB │ map: 1.65 kB
|
|
311
|
+
dist/lib/util/helpers/dist/utils.js 0.84 kB │ gzip: 0.45 kB │ map: 7.22 kB
|
|
162
312
|
dist/components/PlAgDataTable/compositions/useFilterableColumns.js 0.87 kB │ gzip: 0.48 kB │ map: 2.94 kB
|
|
163
313
|
dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue_vue_type_script_setup_true_lang.js 0.87 kB │ gzip: 0.50 kB │ map: 1.35 kB
|
|
164
314
|
dist/components/BlockLoader.vue_vue_type_script_setup_true_lang.js 0.88 kB │ gzip: 0.54 kB │ map: 1.21 kB
|
|
165
|
-
dist/lib/util/helpers/dist/utils.js 0.89 kB │ gzip: 0.46 kB │ map: 7.27 kB
|
|
166
315
|
dist/components/PlAdvancedFilter/OperandButton.vue_vue_type_script_setup_true_lang.js 0.91 kB │ gzip: 0.57 kB │ map: 1.72 kB
|
|
167
316
|
dist/components/NotFound.vue_vue_type_script_setup_true_lang.js 0.92 kB │ gzip: 0.58 kB │ map: 0.96 kB
|
|
168
317
|
dist/components/PlAgDataTable/sources/focus-row.js 0.95 kB │ gzip: 0.51 kB │ map: 2.22 kB
|
|
@@ -186,8 +335,8 @@ dist/components/PlAgDataTable/types.js
|
|
|
186
335
|
dist/components/PlAgCsvExporter/PlAgCsvExporter.vue_vue_type_script_setup_true_lang.js 1.34 kB │ gzip: 0.74 kB │ map: 2.16 kB
|
|
187
336
|
dist/components/PlBtnExportArchive/Item.vue_vue_type_script_setup_true_lang.js 1.36 kB │ gzip: 0.63 kB │ map: 2.58 kB
|
|
188
337
|
dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue_vue_type_script_setup_true_lang.js 1.46 kB │ gzip: 0.77 kB │ map: 3.56 kB
|
|
189
|
-
dist/internal/createAppModel.js 1.48 kB │ gzip: 0.75 kB │ map: 3.89 kB
|
|
190
338
|
dist/plugins/Monetization/useInfo.js 1.51 kB │ gzip: 0.77 kB │ map: 3.85 kB
|
|
339
|
+
dist/defineApp.js 1.63 kB │ gzip: 0.87 kB │ map: 6.60 kB
|
|
191
340
|
dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue_vue_type_script_setup_true_lang.js 1.67 kB │ gzip: 0.84 kB │ map: 2.62 kB
|
|
192
341
|
dist/components/PlAnnotations/components/PlAnnotationsModal.vue_vue_type_script_setup_true_lang.js 1.75 kB │ gzip: 0.75 kB │ map: 1.78 kB
|
|
193
342
|
dist/AgGridVue/createAgGridColDef.js 1.76 kB │ gzip: 0.75 kB │ map: 9.21 kB
|
|
@@ -205,34 +354,31 @@ dist/lib.js
|
|
|
205
354
|
dist/components/PlAgDataTable/compositions/useGrid.js 2.91 kB │ gzip: 1.29 kB │ map: 6.51 kB
|
|
206
355
|
dist/components/PlAgColumnHeader/PlAgColumnHeader.vue_vue_type_script_setup_true_lang.js 2.93 kB │ gzip: 1.26 kB │ map: 7.97 kB
|
|
207
356
|
dist/components/PlAgDataTable/sources/row-number.js 3.01 kB │ gzip: 1.31 kB │ map: 7.47 kB
|
|
208
|
-
dist/defineApp.js 3.01 kB │ gzip: 1.05 kB │ map: 14.38 kB
|
|
209
357
|
dist/components/PlAgCsvExporter/export-csv.js 3.13 kB │ gzip: 1.39 kB │ map: 10.80 kB
|
|
210
358
|
dist/plugins/Monetization/LimitCard.vue_vue_type_script_setup_true_lang.js 3.31 kB │ gzip: 1.15 kB │ map: 9.08 kB
|
|
211
359
|
dist/composition/fileContent.js 3.78 kB │ gzip: 1.45 kB │ map: 12.95 kB
|
|
212
360
|
dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue_vue_type_script_setup_true_lang.js 3.83 kB │ gzip: 1.64 kB │ map: 6.89 kB
|
|
213
|
-
dist/components/PlAnnotations/components/AnnotationsSidebar.vue_vue_type_script_setup_true_lang.js 3.89 kB │ gzip: 1.61 kB │ map: 6.
|
|
361
|
+
dist/components/PlAnnotations/components/AnnotationsSidebar.vue_vue_type_script_setup_true_lang.js 3.89 kB │ gzip: 1.61 kB │ map: 6.54 kB
|
|
214
362
|
dist/plugins/Monetization/MonetizationSidebar.vue_vue_type_script_setup_true_lang.js 3.96 kB │ gzip: 1.71 kB │ map: 5.71 kB
|
|
215
|
-
dist/components/PlAnnotations/components/FilterSidebar.vue_vue_type_script_setup_true_lang.js 3.
|
|
216
|
-
dist/internal/createAppV1.js 4.01 kB │ gzip: 1.42 kB │ map: 14.21 kB
|
|
363
|
+
dist/components/PlAnnotations/components/FilterSidebar.vue_vue_type_script_setup_true_lang.js 3.98 kB │ gzip: 1.57 kB │ map: 7.45 kB
|
|
217
364
|
dist/AgGridVue/useAgGridOptions.js 4.23 kB │ gzip: 1.32 kB │ map: 14.12 kB
|
|
218
|
-
dist/index.js 4.
|
|
365
|
+
dist/index.js 4.50 kB │ gzip: 1.36 kB │ map: 0.25 kB
|
|
219
366
|
dist/components/PlTableFilters/PlTableFiltersV2.vue_vue_type_script_setup_true_lang.js 4.90 kB │ gzip: 2.02 kB │ map: 9.61 kB
|
|
220
367
|
dist/components/PlBtnExportArchive/PlBtnExportArchive.vue_vue_type_script_setup_true_lang.js 5.19 kB │ gzip: 2.16 kB │ map: 10.36 kB
|
|
221
|
-
dist/internal/createAppV2.js 5.26 kB │ gzip: 1.98 kB │ map: 17.78 kB
|
|
222
368
|
dist/components/PlAgDataTable/sources/table-state-v2.js 5.67 kB │ gzip: 1.82 kB │ map: 19.65 kB
|
|
223
|
-
dist/internal/createAppV3.js 6.19 kB │ gzip: 2.
|
|
369
|
+
dist/internal/createAppV3.js 6.19 kB │ gzip: 2.33 kB │ map: 21.40 kB
|
|
224
370
|
dist/components/PlAgDataTable/sources/table-source-v2.js 7.59 kB │ gzip: 2.88 kB │ map: 27.20 kB
|
|
225
371
|
dist/components/PlAdvancedFilter/PlAdvancedFilter.vue_vue_type_script_setup_true_lang.js 8.57 kB │ gzip: 2.60 kB │ map: 18.58 kB
|
|
226
372
|
dist/components/PlAdvancedFilter/FilterEditor.vue_vue_type_script_setup_true_lang.js 10.58 kB │ gzip: 3.14 kB │ map: 24.73 kB
|
|
227
|
-
dist/components/PlAgDataTable/PlAgDataTableV2.vue_vue_type_script_setup_true_lang.js 12.
|
|
373
|
+
dist/components/PlAgDataTable/PlAgDataTableV2.vue_vue_type_script_setup_true_lang.js 12.79 kB │ gzip: 4.02 kB │ map: 32.00 kB
|
|
228
374
|
|
|
229
375
|
[33m[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugins. Here is a breakdown:
|
|
230
|
-
- sourcemaps (
|
|
231
|
-
-
|
|
232
|
-
- vite:
|
|
233
|
-
- vite:
|
|
234
|
-
- vite:css (
|
|
376
|
+
- sourcemaps (41%)
|
|
377
|
+
- unplugin-dts (15%)
|
|
378
|
+
- vite:css-post (13%)
|
|
379
|
+
- vite:vue (10%)
|
|
380
|
+
- vite:css (6%)
|
|
235
381
|
See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
236
382
|
[39m
|
|
237
|
-
[32m✓ built in
|
|
383
|
+
[32m✓ built in 3.83s[39m
|
|
238
384
|
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.83.1 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 1463ms on 129 files using 16 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.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.83.1 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 112 files with 108 rules using 16 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.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.83.1 types:check /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> ts-builder type-check --target browser-lib
|
|
5
5
|
|
|
6
|
-
↳ vue-tsc.
|
|
6
|
+
↳ vue-tsc-ts6.cjs --noEmit --project ./tsconfig.json --customConditions default
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# @platforma-sdk/ui-vue
|
|
2
2
|
|
|
3
|
+
## 1.83.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5af077: Support TypeScript 7 (the native compiler) across the build toolchain.
|
|
8
|
+
|
|
9
|
+
TS7 no longer exposes the classic JS Compiler API that Volar-based tooling
|
|
10
|
+
requires, so:
|
|
11
|
+
|
|
12
|
+
- ts-builder runs `vue-tsc` against the official `@typescript/typescript6`
|
|
13
|
+
bridge, passes a TS7-compatible `--customConditions` value (a bare `,` is
|
|
14
|
+
parsed as a source file on TS7), provides an explicit `fs` to
|
|
15
|
+
`@vue/compiler-sfc` (`ts.sys` is gone on TS7), and uses `Bundler`
|
|
16
|
+
`moduleResolution` for declaration emit.
|
|
17
|
+
- build-configs provides the same explicit `fs` to the vitest Vue config so
|
|
18
|
+
SFC-compiling tests pass on TS7.
|
|
19
|
+
- ui-vue's `AnnotationsSidebar`/`FilterSidebar` title/label handlers accept
|
|
20
|
+
`string | undefined`, matching `PlEditableTitle`'s model emit type.
|
|
21
|
+
- @milaboratories/columns-collection-driver@0.2.4
|
|
22
|
+
- @milaboratories/pl-model-common@1.48.0
|
|
23
|
+
- @milaboratories/pf-spec-driver@1.5.1
|
|
24
|
+
- @milaboratories/uikit@2.15.26
|
|
25
|
+
- @platforma-sdk/model@1.83.0
|
|
26
|
+
|
|
27
|
+
## 1.83.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- be89730: Remove everything that _created_ the v1/v2 block format.
|
|
32
|
+
|
|
33
|
+
SDK-version backward compatibility is already broken, so nothing is left to serve.
|
|
34
|
+
`BlockModelV3` + `defineAppV3` are the only way to author a block now.
|
|
35
|
+
|
|
36
|
+
Removed from `@platforma-sdk/model`:
|
|
37
|
+
|
|
38
|
+
- `BlockModel` (the v1/v2 builder) and `RenderCtxLegacy` / `RenderFunctionLegacy`
|
|
39
|
+
- the `TypedConfig` builder DSL — `config/actions.ts` (`makeObject`, `getJsonField`,
|
|
40
|
+
`mapArrayValues`, `getBlobContent*`, `Args`/`It`/`MainOutputs`, …) and the
|
|
41
|
+
type-level machinery that existed only to type it (`actions_kinds.ts`,
|
|
42
|
+
`type_util.ts`, `ConfigResult`, `ExtractAction`, the `TypedConfig` brand)
|
|
43
|
+
- `ref_util.ts` (`fromPlRef`, `fromPlOption`)
|
|
44
|
+
- `ResolveCfgType`, `InferOutputType`, `InferOutputsFromConfigs`
|
|
45
|
+
|
|
46
|
+
Removed from `@platforma-sdk/ui-vue`:
|
|
47
|
+
|
|
48
|
+
- `defineApp` (the v1/v2 entry point), `createAppV1`, `createAppV2`, `createAppModel`
|
|
49
|
+
- `AppV1`/`AppV2`/`SdkPluginV1`/`SdkPluginV2`; `SdkPlugin` is now `SdkPluginV3`
|
|
50
|
+
- the v1/v2 test helpers (`BlockMock`, `createMockApi`) and static tests
|
|
51
|
+
|
|
52
|
+
Reading the old format is untouched: `Cfg`, `PlResourceEntry`, `StdCtx`,
|
|
53
|
+
`downgradeCfgOrLambda`, the middle layer's `cfg_render` executor, `PlatformaV1` /
|
|
54
|
+
`PlatformaV2` / `BlockApiV1` / `BlockApiV2`, the `configVersion: 3` branch in
|
|
55
|
+
block-config normalization, `block_storage` schema version 1 and
|
|
56
|
+
`DataModel.upgradeLegacy()` all stay — the desktop app still runs blocks published
|
|
57
|
+
before this change, and existing projects still carry their state.
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- Updated dependencies [be89730]
|
|
62
|
+
- @platforma-sdk/model@1.83.0
|
|
63
|
+
- @milaboratories/uikit@2.15.26
|
|
64
|
+
|
|
3
65
|
## 1.82.6
|
|
4
66
|
|
|
5
67
|
### Patch Changes
|
|
@@ -5,13 +5,13 @@ import { PlAgDataTableV2Row } from '../types';
|
|
|
5
5
|
export declare function useFilterableColumns(getSourceId: () => string | null, getColumnDefs: () => null | undefined | ColDef<PlAgDataTableV2Row, PTableValue | PTableHidden>[]): readonly [import('vue').Ref<({
|
|
6
6
|
type: "axis";
|
|
7
7
|
id: {
|
|
8
|
-
readonly type: import('@
|
|
8
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
9
9
|
readonly name: string;
|
|
10
10
|
readonly domain?: Record<string, string> | undefined;
|
|
11
11
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
12
12
|
};
|
|
13
13
|
spec: {
|
|
14
|
-
readonly type: import('@
|
|
14
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
15
15
|
readonly name: string;
|
|
16
16
|
readonly domain?: Record<string, string> | undefined;
|
|
17
17
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -20,7 +20,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
20
20
|
};
|
|
21
21
|
} | {
|
|
22
22
|
type: "column";
|
|
23
|
-
id: import('@
|
|
23
|
+
id: import('@milaboratories/pl-model-common').ColumnUniversalId;
|
|
24
24
|
spec: {
|
|
25
25
|
readonly kind: "PColumn";
|
|
26
26
|
readonly name: string;
|
|
@@ -30,7 +30,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
30
30
|
readonly valueType: "Int" | "Long" | "Float" | "Double" | "String" | "Bytes";
|
|
31
31
|
readonly parentAxes?: number[] | undefined;
|
|
32
32
|
readonly axesSpec: {
|
|
33
|
-
readonly type: import('@
|
|
33
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
34
34
|
readonly name: string;
|
|
35
35
|
readonly domain?: Record<string, string> | undefined;
|
|
36
36
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -41,13 +41,13 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
41
41
|
})[], PTableColumnSpec[] | ({
|
|
42
42
|
type: "axis";
|
|
43
43
|
id: {
|
|
44
|
-
readonly type: import('@
|
|
44
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
45
45
|
readonly name: string;
|
|
46
46
|
readonly domain?: Record<string, string> | undefined;
|
|
47
47
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
48
48
|
};
|
|
49
49
|
spec: {
|
|
50
|
-
readonly type: import('@
|
|
50
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
51
51
|
readonly name: string;
|
|
52
52
|
readonly domain?: Record<string, string> | undefined;
|
|
53
53
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -56,7 +56,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
56
56
|
};
|
|
57
57
|
} | {
|
|
58
58
|
type: "column";
|
|
59
|
-
id: import('@
|
|
59
|
+
id: import('@milaboratories/pl-model-common').ColumnUniversalId;
|
|
60
60
|
spec: {
|
|
61
61
|
readonly kind: "PColumn";
|
|
62
62
|
readonly name: string;
|
|
@@ -66,7 +66,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
66
66
|
readonly valueType: "Int" | "Long" | "Float" | "Double" | "String" | "Bytes";
|
|
67
67
|
readonly parentAxes?: number[] | undefined;
|
|
68
68
|
readonly axesSpec: {
|
|
69
|
-
readonly type: import('@
|
|
69
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
70
70
|
readonly name: string;
|
|
71
71
|
readonly domain?: Record<string, string> | undefined;
|
|
72
72
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -77,13 +77,13 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
77
77
|
})[]>, import('vue').Ref<({
|
|
78
78
|
type: "axis";
|
|
79
79
|
id: {
|
|
80
|
-
readonly type: import('@
|
|
80
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
81
81
|
readonly name: string;
|
|
82
82
|
readonly domain?: Record<string, string> | undefined;
|
|
83
83
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
84
84
|
};
|
|
85
85
|
spec: {
|
|
86
|
-
readonly type: import('@
|
|
86
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
87
87
|
readonly name: string;
|
|
88
88
|
readonly domain?: Record<string, string> | undefined;
|
|
89
89
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -92,7 +92,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
92
92
|
};
|
|
93
93
|
} | {
|
|
94
94
|
type: "column";
|
|
95
|
-
id: import('@
|
|
95
|
+
id: import('@milaboratories/pl-model-common').ColumnUniversalId;
|
|
96
96
|
spec: {
|
|
97
97
|
readonly kind: "PColumn";
|
|
98
98
|
readonly name: string;
|
|
@@ -102,7 +102,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
102
102
|
readonly valueType: "Int" | "Long" | "Float" | "Double" | "String" | "Bytes";
|
|
103
103
|
readonly parentAxes?: number[] | undefined;
|
|
104
104
|
readonly axesSpec: {
|
|
105
|
-
readonly type: import('@
|
|
105
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
106
106
|
readonly name: string;
|
|
107
107
|
readonly domain?: Record<string, string> | undefined;
|
|
108
108
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -113,13 +113,13 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
113
113
|
})[], PTableColumnSpec[] | ({
|
|
114
114
|
type: "axis";
|
|
115
115
|
id: {
|
|
116
|
-
readonly type: import('@
|
|
116
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
117
117
|
readonly name: string;
|
|
118
118
|
readonly domain?: Record<string, string> | undefined;
|
|
119
119
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
120
120
|
};
|
|
121
121
|
spec: {
|
|
122
|
-
readonly type: import('@
|
|
122
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
123
123
|
readonly name: string;
|
|
124
124
|
readonly domain?: Record<string, string> | undefined;
|
|
125
125
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -128,7 +128,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
128
128
|
};
|
|
129
129
|
} | {
|
|
130
130
|
type: "column";
|
|
131
|
-
id: import('@
|
|
131
|
+
id: import('@milaboratories/pl-model-common').ColumnUniversalId;
|
|
132
132
|
spec: {
|
|
133
133
|
readonly kind: "PColumn";
|
|
134
134
|
readonly name: string;
|
|
@@ -138,7 +138,7 @@ export declare function useFilterableColumns(getSourceId: () => string | null, g
|
|
|
138
138
|
readonly valueType: "Int" | "Long" | "Float" | "Double" | "String" | "Bytes";
|
|
139
139
|
readonly parentAxes?: number[] | undefined;
|
|
140
140
|
readonly axesSpec: {
|
|
141
|
-
readonly type: import('@
|
|
141
|
+
readonly type: import('@milaboratories/pl-model-common').AxisValueType;
|
|
142
142
|
readonly name: string;
|
|
143
143
|
readonly domain?: Record<string, string> | undefined;
|
|
144
144
|
readonly contextDomain?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationsSidebar.js","names":[],"sources":["../../../../src/components/PlAnnotations/components/AnnotationsSidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport $commonStyle from \"./style.module.css\";\n\nimport { produce } from \"immer\";\nimport { randomInt } from \"@milaboratories/helpers\";\nimport {\n PlBtnGhost,\n PlBtnSecondary,\n PlEditableTitle,\n PlElementList,\n PlSidebarItem,\n PlTextField,\n} from \"@milaboratories/uikit\";\nimport type { Annotation } from \"../types\";\nimport { validateTitle } from \"../utils\";\nimport { isEmpty } from \"es-toolkit/compat\";\n\nconst props = defineProps<{\n annotation: Annotation;\n selectedStepId: undefined | number;\n onUpdateAnnotation: (annotation: Annotation) => void;\n onUpdateSelectedStepId: (id: undefined | number) => void;\n}>();\n\nconst emits = defineEmits<{\n (e: \"delete-schema\"): void;\n}>();\n\nfunction produceAnnotationUpdate(updater: (draft: Annotation) => void) {\n props.onUpdateAnnotation(produce(props.annotation, updater));\n}\n\nfunction updateTitle(title: string) {\n produceAnnotationUpdate((draft) => {\n draft.title = title;\n });\n}\n\nfunction updateSteps(steps: Annotation[\"steps\"]) {\n produceAnnotationUpdate((draft) => {\n draft.steps = steps;\n });\n}\n\nfunction updateDefaultValue(value: string) {\n produceAnnotationUpdate((draft) => {\n draft.defaultValue = value === \"\" ? undefined : value;\n });\n}\n\nfunction handleAddStep() {\n const id = randomInt();\n produceAnnotationUpdate((draft) => {\n draft.steps.push({\n id,\n label: \"\",\n filter: {\n id: randomInt(),\n type: \"and\",\n filters: [],\n },\n });\n });\n props.onUpdateSelectedStepId(id);\n}\n</script>\n\n<template>\n <PlSidebarItem>\n <template #header-content>\n <PlEditableTitle\n :model-value=\"props.annotation.title\"\n :class=\"{ [$commonStyle.flashing]: props.annotation.title.length === 0 }\"\n :max-length=\"40\"\n max-width=\"600px\"\n placeholder=\"Annotation Title\"\n :autofocus=\"props.annotation.title.length === 0\"\n :validate=\"validateTitle\"\n @update:model-value=\"updateTitle\"\n />\n </template>\n <template v-if=\"props.annotation\" #body-content>\n <div :class=\"[$style.root, { [$commonStyle.disabled]: props.annotation.title.length === 0 }]\">\n <span :class=\"$style.tip\">\n Above annotations override the ones below. Rearrange them by dragging.\n </span>\n <PlElementList\n :items=\"props.annotation.steps\"\n :get-item-key=\"(item) => item.id\"\n :is-active=\"(item) => item.id === props.selectedStepId\"\n :item-class=\"$style.stepItem\"\n :class=\"$style.steps\"\n @update:items=\"updateSteps\"\n @item-click=\"(item) => props.onUpdateSelectedStepId(item.id)\"\n >\n <template #item-title=\"{ item }\">\n {{ item.label }}\n </template>\n </PlElementList>\n\n <PlBtnSecondary icon=\"add\" @click=\"handleAddStep\"> Add label </PlBtnSecondary>\n\n <PlTextField\n :class=\"[\n $style.defaultValue,\n { [$style.emptyDefaultValue]: isEmpty(props.annotation.defaultValue) },\n ]\"\n :model-value=\"props.annotation.defaultValue ?? ''\"\n label=\"Label remaining with\"\n placeholder=\"No label\"\n clearable\n helper=\"This label will be applied to the remaining rows, after all other filters are applied.\"\n @click.stop\n @update:model-value=\"updateDefaultValue\"\n />\n </div>\n </template>\n <template #footer-content>\n <PlBtnGhost\n icon=\"delete-bin\"\n reverse\n :disabled=\"props.annotation.steps.length === 0\"\n @click.stop=\"emits('delete-schema')\"\n >\n Delete Schema\n </PlBtnGhost>\n </template>\n </PlSidebarItem>\n</template>\n\n<style lang=\"scss\" module>\n@use \"@milaboratories/uikit/styles/variables\" as *;\n\n.root {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.tip {\n color: var(--txt-03);\n}\n\n.steps {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.stepItem {\n cursor: pointer;\n}\n\n.defaultValue {\n margin-top: 8px;\n}\n.emptyDefaultValue {\n opacity: 0.5;\n transition: opacity 0.2s ease-in-out;\n\n &:hover {\n opacity: 1;\n }\n}\n</style>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AnnotationsSidebar.js","names":[],"sources":["../../../../src/components/PlAnnotations/components/AnnotationsSidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport $commonStyle from \"./style.module.css\";\n\nimport { produce } from \"immer\";\nimport { randomInt } from \"@milaboratories/helpers\";\nimport {\n PlBtnGhost,\n PlBtnSecondary,\n PlEditableTitle,\n PlElementList,\n PlSidebarItem,\n PlTextField,\n} from \"@milaboratories/uikit\";\nimport type { Annotation } from \"../types\";\nimport { validateTitle } from \"../utils\";\nimport { isEmpty } from \"es-toolkit/compat\";\n\nconst props = defineProps<{\n annotation: Annotation;\n selectedStepId: undefined | number;\n onUpdateAnnotation: (annotation: Annotation) => void;\n onUpdateSelectedStepId: (id: undefined | number) => void;\n}>();\n\nconst emits = defineEmits<{\n (e: \"delete-schema\"): void;\n}>();\n\nfunction produceAnnotationUpdate(updater: (draft: Annotation) => void) {\n props.onUpdateAnnotation(produce(props.annotation, updater));\n}\n\nfunction updateTitle(title: string | undefined) {\n produceAnnotationUpdate((draft) => {\n draft.title = title ?? \"\";\n });\n}\n\nfunction updateSteps(steps: Annotation[\"steps\"]) {\n produceAnnotationUpdate((draft) => {\n draft.steps = steps;\n });\n}\n\nfunction updateDefaultValue(value: string) {\n produceAnnotationUpdate((draft) => {\n draft.defaultValue = value === \"\" ? undefined : value;\n });\n}\n\nfunction handleAddStep() {\n const id = randomInt();\n produceAnnotationUpdate((draft) => {\n draft.steps.push({\n id,\n label: \"\",\n filter: {\n id: randomInt(),\n type: \"and\",\n filters: [],\n },\n });\n });\n props.onUpdateSelectedStepId(id);\n}\n</script>\n\n<template>\n <PlSidebarItem>\n <template #header-content>\n <PlEditableTitle\n :model-value=\"props.annotation.title\"\n :class=\"{ [$commonStyle.flashing]: props.annotation.title.length === 0 }\"\n :max-length=\"40\"\n max-width=\"600px\"\n placeholder=\"Annotation Title\"\n :autofocus=\"props.annotation.title.length === 0\"\n :validate=\"validateTitle\"\n @update:model-value=\"updateTitle\"\n />\n </template>\n <template v-if=\"props.annotation\" #body-content>\n <div :class=\"[$style.root, { [$commonStyle.disabled]: props.annotation.title.length === 0 }]\">\n <span :class=\"$style.tip\">\n Above annotations override the ones below. Rearrange them by dragging.\n </span>\n <PlElementList\n :items=\"props.annotation.steps\"\n :get-item-key=\"(item) => item.id\"\n :is-active=\"(item) => item.id === props.selectedStepId\"\n :item-class=\"$style.stepItem\"\n :class=\"$style.steps\"\n @update:items=\"updateSteps\"\n @item-click=\"(item) => props.onUpdateSelectedStepId(item.id)\"\n >\n <template #item-title=\"{ item }\">\n {{ item.label }}\n </template>\n </PlElementList>\n\n <PlBtnSecondary icon=\"add\" @click=\"handleAddStep\"> Add label </PlBtnSecondary>\n\n <PlTextField\n :class=\"[\n $style.defaultValue,\n { [$style.emptyDefaultValue]: isEmpty(props.annotation.defaultValue) },\n ]\"\n :model-value=\"props.annotation.defaultValue ?? ''\"\n label=\"Label remaining with\"\n placeholder=\"No label\"\n clearable\n helper=\"This label will be applied to the remaining rows, after all other filters are applied.\"\n @click.stop\n @update:model-value=\"updateDefaultValue\"\n />\n </div>\n </template>\n <template #footer-content>\n <PlBtnGhost\n icon=\"delete-bin\"\n reverse\n :disabled=\"props.annotation.steps.length === 0\"\n @click.stop=\"emits('delete-schema')\"\n >\n Delete Schema\n </PlBtnGhost>\n </template>\n </PlSidebarItem>\n</template>\n\n<style lang=\"scss\" module>\n@use \"@milaboratories/uikit/styles/variables\" as *;\n\n.root {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.tip {\n color: var(--txt-03);\n}\n\n.steps {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.stepItem {\n cursor: pointer;\n}\n\n.defaultValue {\n margin-top: 8px;\n}\n.emptyDefaultValue {\n opacity: 0.5;\n transition: opacity 0.2s ease-in-out;\n\n &:hover {\n opacity: 1;\n }\n}\n</style>\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationsSidebar.vue_vue_type_style_index_0_lang.module.js","names":[],"sources":["../../../../src/components/PlAnnotations/components/AnnotationsSidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport $commonStyle from \"./style.module.css\";\n\nimport { produce } from \"immer\";\nimport { randomInt } from \"@milaboratories/helpers\";\nimport {\n PlBtnGhost,\n PlBtnSecondary,\n PlEditableTitle,\n PlElementList,\n PlSidebarItem,\n PlTextField,\n} from \"@milaboratories/uikit\";\nimport type { Annotation } from \"../types\";\nimport { validateTitle } from \"../utils\";\nimport { isEmpty } from \"es-toolkit/compat\";\n\nconst props = defineProps<{\n annotation: Annotation;\n selectedStepId: undefined | number;\n onUpdateAnnotation: (annotation: Annotation) => void;\n onUpdateSelectedStepId: (id: undefined | number) => void;\n}>();\n\nconst emits = defineEmits<{\n (e: \"delete-schema\"): void;\n}>();\n\nfunction produceAnnotationUpdate(updater: (draft: Annotation) => void) {\n props.onUpdateAnnotation(produce(props.annotation, updater));\n}\n\nfunction updateTitle(title: string) {\n produceAnnotationUpdate((draft) => {\n draft.title = title;\n });\n}\n\nfunction updateSteps(steps: Annotation[\"steps\"]) {\n produceAnnotationUpdate((draft) => {\n draft.steps = steps;\n });\n}\n\nfunction updateDefaultValue(value: string) {\n produceAnnotationUpdate((draft) => {\n draft.defaultValue = value === \"\" ? undefined : value;\n });\n}\n\nfunction handleAddStep() {\n const id = randomInt();\n produceAnnotationUpdate((draft) => {\n draft.steps.push({\n id,\n label: \"\",\n filter: {\n id: randomInt(),\n type: \"and\",\n filters: [],\n },\n });\n });\n props.onUpdateSelectedStepId(id);\n}\n</script>\n\n<template>\n <PlSidebarItem>\n <template #header-content>\n <PlEditableTitle\n :model-value=\"props.annotation.title\"\n :class=\"{ [$commonStyle.flashing]: props.annotation.title.length === 0 }\"\n :max-length=\"40\"\n max-width=\"600px\"\n placeholder=\"Annotation Title\"\n :autofocus=\"props.annotation.title.length === 0\"\n :validate=\"validateTitle\"\n @update:model-value=\"updateTitle\"\n />\n </template>\n <template v-if=\"props.annotation\" #body-content>\n <div :class=\"[$style.root, { [$commonStyle.disabled]: props.annotation.title.length === 0 }]\">\n <span :class=\"$style.tip\">\n Above annotations override the ones below. Rearrange them by dragging.\n </span>\n <PlElementList\n :items=\"props.annotation.steps\"\n :get-item-key=\"(item) => item.id\"\n :is-active=\"(item) => item.id === props.selectedStepId\"\n :item-class=\"$style.stepItem\"\n :class=\"$style.steps\"\n @update:items=\"updateSteps\"\n @item-click=\"(item) => props.onUpdateSelectedStepId(item.id)\"\n >\n <template #item-title=\"{ item }\">\n {{ item.label }}\n </template>\n </PlElementList>\n\n <PlBtnSecondary icon=\"add\" @click=\"handleAddStep\"> Add label </PlBtnSecondary>\n\n <PlTextField\n :class=\"[\n $style.defaultValue,\n { [$style.emptyDefaultValue]: isEmpty(props.annotation.defaultValue) },\n ]\"\n :model-value=\"props.annotation.defaultValue ?? ''\"\n label=\"Label remaining with\"\n placeholder=\"No label\"\n clearable\n helper=\"This label will be applied to the remaining rows, after all other filters are applied.\"\n @click.stop\n @update:model-value=\"updateDefaultValue\"\n />\n </div>\n </template>\n <template #footer-content>\n <PlBtnGhost\n icon=\"delete-bin\"\n reverse\n :disabled=\"props.annotation.steps.length === 0\"\n @click.stop=\"emits('delete-schema')\"\n >\n Delete Schema\n </PlBtnGhost>\n </template>\n </PlSidebarItem>\n</template>\n\n<style lang=\"scss\" module>\n@use \"@milaboratories/uikit/styles/variables\" as *;\n\n.root {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.tip {\n color: var(--txt-03);\n}\n\n.steps {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.stepItem {\n cursor: pointer;\n}\n\n.defaultValue {\n margin-top: 8px;\n}\n.emptyDefaultValue {\n opacity: 0.5;\n transition: opacity 0.2s ease-in-out;\n\n &:hover {\n opacity: 1;\n }\n}\n</style>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AnnotationsSidebar.vue_vue_type_style_index_0_lang.module.js","names":[],"sources":["../../../../src/components/PlAnnotations/components/AnnotationsSidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport $commonStyle from \"./style.module.css\";\n\nimport { produce } from \"immer\";\nimport { randomInt } from \"@milaboratories/helpers\";\nimport {\n PlBtnGhost,\n PlBtnSecondary,\n PlEditableTitle,\n PlElementList,\n PlSidebarItem,\n PlTextField,\n} from \"@milaboratories/uikit\";\nimport type { Annotation } from \"../types\";\nimport { validateTitle } from \"../utils\";\nimport { isEmpty } from \"es-toolkit/compat\";\n\nconst props = defineProps<{\n annotation: Annotation;\n selectedStepId: undefined | number;\n onUpdateAnnotation: (annotation: Annotation) => void;\n onUpdateSelectedStepId: (id: undefined | number) => void;\n}>();\n\nconst emits = defineEmits<{\n (e: \"delete-schema\"): void;\n}>();\n\nfunction produceAnnotationUpdate(updater: (draft: Annotation) => void) {\n props.onUpdateAnnotation(produce(props.annotation, updater));\n}\n\nfunction updateTitle(title: string | undefined) {\n produceAnnotationUpdate((draft) => {\n draft.title = title ?? \"\";\n });\n}\n\nfunction updateSteps(steps: Annotation[\"steps\"]) {\n produceAnnotationUpdate((draft) => {\n draft.steps = steps;\n });\n}\n\nfunction updateDefaultValue(value: string) {\n produceAnnotationUpdate((draft) => {\n draft.defaultValue = value === \"\" ? undefined : value;\n });\n}\n\nfunction handleAddStep() {\n const id = randomInt();\n produceAnnotationUpdate((draft) => {\n draft.steps.push({\n id,\n label: \"\",\n filter: {\n id: randomInt(),\n type: \"and\",\n filters: [],\n },\n });\n });\n props.onUpdateSelectedStepId(id);\n}\n</script>\n\n<template>\n <PlSidebarItem>\n <template #header-content>\n <PlEditableTitle\n :model-value=\"props.annotation.title\"\n :class=\"{ [$commonStyle.flashing]: props.annotation.title.length === 0 }\"\n :max-length=\"40\"\n max-width=\"600px\"\n placeholder=\"Annotation Title\"\n :autofocus=\"props.annotation.title.length === 0\"\n :validate=\"validateTitle\"\n @update:model-value=\"updateTitle\"\n />\n </template>\n <template v-if=\"props.annotation\" #body-content>\n <div :class=\"[$style.root, { [$commonStyle.disabled]: props.annotation.title.length === 0 }]\">\n <span :class=\"$style.tip\">\n Above annotations override the ones below. Rearrange them by dragging.\n </span>\n <PlElementList\n :items=\"props.annotation.steps\"\n :get-item-key=\"(item) => item.id\"\n :is-active=\"(item) => item.id === props.selectedStepId\"\n :item-class=\"$style.stepItem\"\n :class=\"$style.steps\"\n @update:items=\"updateSteps\"\n @item-click=\"(item) => props.onUpdateSelectedStepId(item.id)\"\n >\n <template #item-title=\"{ item }\">\n {{ item.label }}\n </template>\n </PlElementList>\n\n <PlBtnSecondary icon=\"add\" @click=\"handleAddStep\"> Add label </PlBtnSecondary>\n\n <PlTextField\n :class=\"[\n $style.defaultValue,\n { [$style.emptyDefaultValue]: isEmpty(props.annotation.defaultValue) },\n ]\"\n :model-value=\"props.annotation.defaultValue ?? ''\"\n label=\"Label remaining with\"\n placeholder=\"No label\"\n clearable\n helper=\"This label will be applied to the remaining rows, after all other filters are applied.\"\n @click.stop\n @update:model-value=\"updateDefaultValue\"\n />\n </div>\n </template>\n <template #footer-content>\n <PlBtnGhost\n icon=\"delete-bin\"\n reverse\n :disabled=\"props.annotation.steps.length === 0\"\n @click.stop=\"emits('delete-schema')\"\n >\n Delete Schema\n </PlBtnGhost>\n </template>\n </PlSidebarItem>\n</template>\n\n<style lang=\"scss\" module>\n@use \"@milaboratories/uikit/styles/variables\" as *;\n\n.root {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.tip {\n color: var(--txt-03);\n}\n\n.steps {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.stepItem {\n cursor: pointer;\n}\n\n.defaultValue {\n margin-top: 8px;\n}\n.emptyDefaultValue {\n opacity: 0.5;\n transition: opacity 0.2s ease-in-out;\n\n &:hover {\n opacity: 1;\n }\n}\n</style>\n"],"mappings":""}
|