@platforma-sdk/ui-vue 1.86.5 → 1.88.0

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.
Files changed (143) hide show
  1. package/.turbo/turbo-build.log +36 -13
  2. package/.turbo/turbo-formatter$colon$check.log +1 -1
  3. package/.turbo/turbo-linter$colon$check.log +1 -1
  4. package/CHANGELOG.md +38 -0
  5. package/dist/columnLinkViews.d.ts +97 -0
  6. package/dist/columnLinkViews.d.ts.map +1 -0
  7. package/dist/columnLinkViews.js +208 -0
  8. package/dist/columnLinkViews.js.map +1 -0
  9. package/dist/columnLinkViews.test.d.ts +2 -0
  10. package/dist/columnLinkViews.test.d.ts.map +1 -0
  11. package/dist/columnLinks.d.ts +5 -0
  12. package/dist/columnLinks.d.ts.map +1 -0
  13. package/dist/columnLinks.js +5 -0
  14. package/dist/columnLinks.js.map +1 -0
  15. package/dist/components/PlAnnotations/components/PlAnnotations.vue2.js.map +1 -1
  16. package/dist/components/PlBlockDependencies/PlBlockDependencies.js +7 -0
  17. package/dist/components/PlBlockDependencies/PlBlockDependencies.js.map +1 -0
  18. package/dist/components/PlBlockDependencies/PlBlockDependencies.jsdomtest.d.ts +2 -0
  19. package/dist/components/PlBlockDependencies/PlBlockDependencies.jsdomtest.d.ts.map +1 -0
  20. package/dist/components/PlBlockDependencies/PlBlockDependencies.style.css +1 -0
  21. package/dist/components/PlBlockDependencies/PlBlockDependencies.style.js +13 -0
  22. package/dist/components/PlBlockDependencies/PlBlockDependencies.style.js.map +1 -0
  23. package/dist/components/PlBlockDependencies/PlBlockDependencies.vue.d.ts +4 -0
  24. package/dist/components/PlBlockDependencies/PlBlockDependencies.vue.d.ts.map +1 -0
  25. package/dist/components/PlBlockDependencies/PlBlockDependencies.vue2.js +79 -0
  26. package/dist/components/PlBlockDependencies/PlBlockDependencies.vue2.js.map +1 -0
  27. package/dist/components/PlBlockDependencies/fold.d.ts +25 -0
  28. package/dist/components/PlBlockDependencies/fold.d.ts.map +1 -0
  29. package/dist/components/PlBlockDependencies/fold.js +55 -0
  30. package/dist/components/PlBlockDependencies/fold.js.map +1 -0
  31. package/dist/components/PlBlockDependencies/index.d.ts +2 -0
  32. package/dist/components/PlBlockDependencies/index.d.ts.map +1 -0
  33. package/dist/components/PlBlockDependencies/index.js +1 -0
  34. package/dist/components/PlBlockName/PlBlockName.js +7 -0
  35. package/dist/components/PlBlockName/PlBlockName.js.map +1 -0
  36. package/dist/components/PlBlockName/PlBlockName.jsdomtest.d.ts +2 -0
  37. package/dist/components/PlBlockName/PlBlockName.jsdomtest.d.ts.map +1 -0
  38. package/dist/components/PlBlockName/PlBlockName.style.css +1 -0
  39. package/dist/components/PlBlockName/PlBlockName.style.js +5 -0
  40. package/dist/components/PlBlockName/PlBlockName.style.js.map +1 -0
  41. package/dist/components/PlBlockName/PlBlockName.vue.d.ts +14 -0
  42. package/dist/components/PlBlockName/PlBlockName.vue.d.ts.map +1 -0
  43. package/dist/components/PlBlockName/PlBlockName.vue2.js +33 -0
  44. package/dist/components/PlBlockName/PlBlockName.vue2.js.map +1 -0
  45. package/dist/components/PlBlockName/index.d.ts +2 -0
  46. package/dist/components/PlBlockName/index.d.ts.map +1 -0
  47. package/dist/components/PlBlockName/index.js +1 -0
  48. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.js +6 -0
  49. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.js.map +1 -0
  50. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.jsdomtest.d.ts +2 -0
  51. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.jsdomtest.d.ts.map +1 -0
  52. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.vue.d.ts +26 -0
  53. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.vue.d.ts.map +1 -0
  54. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.vue2.js +37 -0
  55. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdown.vue2.js.map +1 -0
  56. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.js +6 -0
  57. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.js.map +1 -0
  58. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.vue.d.ts +26 -0
  59. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.vue.d.ts.map +1 -0
  60. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.vue2.js +37 -0
  61. package/dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.vue2.js.map +1 -0
  62. package/dist/components/PlColumnValueDropdown/index.d.ts +5 -0
  63. package/dist/components/PlColumnValueDropdown/index.d.ts.map +1 -0
  64. package/dist/components/PlColumnValueDropdown/index.js +4 -0
  65. package/dist/components/PlColumnValueDropdown/settings.d.ts +34 -0
  66. package/dist/components/PlColumnValueDropdown/settings.d.ts.map +1 -0
  67. package/dist/components/PlColumnValueDropdown/settings.js +25 -0
  68. package/dist/components/PlColumnValueDropdown/settings.js.map +1 -0
  69. package/dist/components/PlColumnValueDropdown/settings.test.d.ts +2 -0
  70. package/dist/components/PlColumnValueDropdown/settings.test.d.ts.map +1 -0
  71. package/dist/components/PlColumnValueDropdown/useColumnValueOptions.d.ts +20 -0
  72. package/dist/components/PlColumnValueDropdown/useColumnValueOptions.d.ts.map +1 -0
  73. package/dist/components/PlColumnValueDropdown/useColumnValueOptions.js +45 -0
  74. package/dist/components/PlColumnValueDropdown/useColumnValueOptions.js.map +1 -0
  75. package/dist/components/PlColumnValueDropdown/useColumnValueOptions.test.d.ts +2 -0
  76. package/dist/components/PlColumnValueDropdown/useColumnValueOptions.test.d.ts.map +1 -0
  77. package/dist/components/PlDatasetSelector/PlDatasetSelector.js.map +1 -1
  78. package/dist/components/PlDatasetSelector/PlDatasetSelector.vue.d.ts.map +1 -1
  79. package/dist/components/PlDatasetSelector/PlDatasetSelector.vue2.js +49 -35
  80. package/dist/components/PlDatasetSelector/PlDatasetSelector.vue2.js.map +1 -1
  81. package/dist/components/PlDatasetSelector/__tests__/missingValueHint.jsdomtest.d.ts +2 -0
  82. package/dist/components/PlDatasetSelector/__tests__/missingValueHint.jsdomtest.d.ts.map +1 -0
  83. package/dist/components/ValuePickers/ValuePickers.jsdomtest.d.ts +2 -0
  84. package/dist/components/ValuePickers/ValuePickers.jsdomtest.d.ts.map +1 -0
  85. package/dist/components/ValuePickers/columnLinksMissingValue.d.ts +25 -0
  86. package/dist/components/ValuePickers/columnLinksMissingValue.d.ts.map +1 -0
  87. package/dist/components/ValuePickers/columnLinksMissingValue.js +35 -0
  88. package/dist/components/ValuePickers/columnLinksMissingValue.js.map +1 -0
  89. package/dist/components/ValuePickers/columnLinksMissingValue.jsdomtest.d.ts +2 -0
  90. package/dist/components/ValuePickers/columnLinksMissingValue.jsdomtest.d.ts.map +1 -0
  91. package/dist/components/ValuePickers/index.d.ts +276 -0
  92. package/dist/components/ValuePickers/index.d.ts.map +1 -0
  93. package/dist/components/ValuePickers/index.js +22 -0
  94. package/dist/components/ValuePickers/index.js.map +1 -0
  95. package/dist/composition/useOpenBlock.d.ts +12 -0
  96. package/dist/composition/useOpenBlock.d.ts.map +1 -0
  97. package/dist/composition/useOpenBlock.js +20 -0
  98. package/dist/composition/useOpenBlock.js.map +1 -0
  99. package/dist/composition/useOpenBlock.test.d.ts +2 -0
  100. package/dist/composition/useOpenBlock.test.d.ts.map +1 -0
  101. package/dist/defineApp.d.ts +2 -0
  102. package/dist/defineApp.d.ts.map +1 -1
  103. package/dist/defineApp.js +30 -29
  104. package/dist/defineApp.js.map +1 -1
  105. package/dist/index.js +48 -40
  106. package/dist/index.js.map +1 -1
  107. package/dist/internal/createAppV3.d.ts +3 -1
  108. package/dist/internal/createAppV3.d.ts.map +1 -1
  109. package/dist/internal/createAppV3.js +2 -1
  110. package/dist/internal/createAppV3.js.map +1 -1
  111. package/dist/lib.d.ts +5 -0
  112. package/dist/lib.d.ts.map +1 -1
  113. package/dist/lib.js +49 -38
  114. package/package.json +6 -6
  115. package/src/columnLinkViews.test.ts +540 -0
  116. package/src/columnLinkViews.ts +368 -0
  117. package/src/columnLinks.ts +6 -0
  118. package/src/components/PlBlockDependencies/PlBlockDependencies.jsdomtest.ts +101 -0
  119. package/src/components/PlBlockDependencies/PlBlockDependencies.vue +132 -0
  120. package/src/components/PlBlockDependencies/fold.ts +85 -0
  121. package/src/components/PlBlockDependencies/index.ts +1 -0
  122. package/src/components/PlBlockName/PlBlockName.jsdomtest.ts +52 -0
  123. package/src/components/PlBlockName/PlBlockName.vue +56 -0
  124. package/src/components/PlBlockName/index.ts +1 -0
  125. package/src/components/PlColumnValueDropdown/PlColumnValueDropdown.jsdomtest.ts +144 -0
  126. package/src/components/PlColumnValueDropdown/PlColumnValueDropdown.vue +50 -0
  127. package/src/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.vue +50 -0
  128. package/src/components/PlColumnValueDropdown/index.ts +4 -0
  129. package/src/components/PlColumnValueDropdown/settings.test.ts +86 -0
  130. package/src/components/PlColumnValueDropdown/settings.ts +59 -0
  131. package/src/components/PlColumnValueDropdown/useColumnValueOptions.test.ts +114 -0
  132. package/src/components/PlColumnValueDropdown/useColumnValueOptions.ts +77 -0
  133. package/src/components/PlDatasetSelector/PlDatasetSelector.vue +36 -1
  134. package/src/components/PlDatasetSelector/__tests__/missingValueHint.jsdomtest.ts +81 -0
  135. package/src/components/ValuePickers/ValuePickers.jsdomtest.ts +77 -0
  136. package/src/components/ValuePickers/columnLinksMissingValue.jsdomtest.ts +82 -0
  137. package/src/components/ValuePickers/columnLinksMissingValue.ts +56 -0
  138. package/src/components/ValuePickers/index.ts +66 -0
  139. package/src/composition/useOpenBlock.test.ts +49 -0
  140. package/src/composition/useOpenBlock.ts +41 -0
  141. package/src/defineApp.ts +8 -8
  142. package/src/internal/createAppV3.ts +6 -1
  143. package/src/lib.ts +14 -0
@@ -32,11 +32,11 @@ transforming...
32
32
  4 export function useGridColumns(props: { api: GridApi }) {
33
33
     ~~~~~~~~~~~~~~
34
34
 
35
- ✓ 193 modules transformed.
35
+ ✓ 214 modules transformed.
36
36
  rendering chunks...
37
37
  
38
38
  [unplugin:dts] Start generate declaration files...
39
- [unplugin:dts] Declaration files built in 4205ms.
39
+ [unplugin:dts] Declaration files built in 4949ms.
40
40
  
41
41
  computing gzip size...
42
42
  dist/components/PlAnnotations/components/PlAnnotations.vue_vue_type_style_index_0_lang.css 0.04 kB │ gzip: 0.06 kB
@@ -49,6 +49,7 @@ dist/components/PlAnnotations/components/FilterSidebar.vue_vue_type_style_index_
49
49
  dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue_vue_type_style_index_0_lang.css 0.16 kB │ gzip: 0.13 kB
50
50
  dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue_vue_type_style_index_0_lang.css 0.16 kB │ gzip: 0.14 kB
51
51
  dist/components/PlAnnotations/components/style.css 0.26 kB │ gzip: 0.18 kB
52
+ dist/components/PlBlockName/PlBlockName.vue_vue_type_style_index_0_lang.css 0.26 kB │ gzip: 0.18 kB
52
53
  dist/components/PlTableFilters/PlTableFiltersV2.vue_vue_type_style_index_0_lang.css 0.26 kB │ gzip: 0.17 kB
53
54
  dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue_vue_type_style_index_0_lang.css 0.27 kB │ gzip: 0.21 kB
54
55
  dist/plugins/Monetization/EndOfPeriod.vue_vue_type_style_index_0_lang.css 0.33 kB │ gzip: 0.25 kB
@@ -60,6 +61,7 @@ dist/components/PlAgRowNumCheckbox/pl-ag-row-num-checkbox.css
60
61
  dist/components/PlAdvancedFilter/OperandButton.vue_vue_type_style_index_0_lang.css 0.45 kB │ gzip: 0.25 kB
61
62
  dist/components/PlBtnExportArchive/Item.vue_vue_type_style_index_0_lang.css 0.50 kB │ gzip: 0.25 kB
62
63
  dist/components/PlAgTextAndButtonCell/pl-ag-text-and-button-cell.css 0.52 kB │ gzip: 0.27 kB
64
+ dist/components/PlBlockDependencies/PlBlockDependencies.vue_vue_type_style_index_0_lang.css 0.64 kB │ gzip: 0.37 kB
63
65
  dist/components/PlAdvancedFilter/PlAdvancedFilter.vue_vue_type_style_index_0_lang.css 0.76 kB │ gzip: 0.43 kB
64
66
  dist/plugins/Monetization/UserCabinetCard.vue_vue_type_style_index_0_lang.css 0.81 kB │ gzip: 0.43 kB
65
67
  dist/plugins/Monetization/RunStatus.vue_vue_type_style_index_0_lang.css 0.98 kB │ gzip: 0.45 kB
@@ -71,6 +73,7 @@ dist/components/PlAnnotations/components/AnnotationsSidebar.vue_vue_type_style_i
71
73
  dist/components/PlAgDataTable/PlAgOverlayNoRows.vue_vue_type_style_index_0_lang.css 35.13 kB │ gzip: 26.41 kB
72
74
  dist/components/PlAgDataTable/pl-ag-overlay-loading.css 40.83 kB │ gzip: 30.50 kB
73
75
  dist/lib/util/helpers/dist/error.js 0.02 kB │ gzip: 0.04 kB
76
+ dist/components/PlBlockName/index.js 0.05 kB │ gzip: 0.07 kB
74
77
  dist/components/PlAgCellFile/index.js 0.06 kB │ gzip: 0.07 kB
75
78
  dist/components/PlAgCsvExporter/index.js 0.06 kB │ gzip: 0.07 kB
76
79
  dist/components/PlAgCellProgress/index.js 0.06 kB │ gzip: 0.07 kB
@@ -81,6 +84,7 @@ dist/components/PlDatasetSelector/index.js
81
84
  dist/components/PlTableFastSearch/index.js 0.07 kB │ gzip: 0.07 kB
82
85
  dist/components/PlAgRowNumCheckbox/index.js 0.07 kB │ gzip: 0.07 kB
83
86
  dist/components/PlBtnExportArchive/index.js 0.07 kB │ gzip: 0.07 kB
87
+ dist/components/PlBlockDependencies/index.js 0.07 kB │ gzip: 0.07 kB
84
88
  dist/plugins/Monetization/index.js 0.07 kB │ gzip: 0.07 kB
85
89
  dist/components/PlAgGridColumnManager/index.js 0.07 kB │ gzip: 0.08 kB
86
90
  dist/components/PlAgTextAndButtonCell/index.js 0.07 kB │ gzip: 0.08 kB
@@ -88,6 +92,7 @@ dist/components/PlAgChartHistogramCell/index.js
88
92
  dist/components/PlAgChartStackedBarCell/index.js 0.08 kB │ gzip: 0.08 kB
89
93
  dist/components/PlAppErrorNotificationAlert/index.js 0.09 kB │ gzip: 0.08 kB
90
94
  dist/lib/util/helpers/dist/hash.js 0.09 kB │ gzip: 0.11 kB │ map: 1.45 kB
95
+ dist/columnLinks.js 0.12 kB │ gzip: 0.12 kB │ map: 0.49 kB
91
96
  dist/_virtual/_plugin-vue_export-helper.js 0.14 kB │ gzip: 0.14 kB
92
97
  dist/urls.js 0.15 kB │ gzip: 0.15 kB │ map: 0.64 kB
93
98
  dist/components/PlAnnotations/index.js 0.15 kB │ gzip: 0.10 kB
@@ -103,17 +108,21 @@ dist/components/PlAgCellProgress/PlAgCellProgress.js
103
108
  dist/components/PlAgColumnHeader/PlAgColumnHeader.js 0.21 kB │ gzip: 0.16 kB │ map: 3.89 kB
104
109
  dist/plugins/Monetization/MonetizationSidebar.js 0.21 kB │ gzip: 0.16 kB │ map: 3.83 kB
105
110
  dist/components/PlAgDataTable/PlAgOverlayLoading.js 0.21 kB │ gzip: 0.16 kB │ map: 2.08 kB
106
- dist/components/PlDatasetSelector/PlDatasetSelector.js 0.21 kB │ gzip: 0.15 kB │ map: 5.25 kB
111
+ dist/components/PlDatasetSelector/PlDatasetSelector.js 0.21 kB │ gzip: 0.15 kB │ map: 6.52 kB
107
112
  dist/components/PlTableFastSearch/PlTableFastSearch.js 0.21 kB │ gzip: 0.16 kB │ map: 1.54 kB
108
113
  dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.js 0.22 kB │ gzip: 0.16 kB │ map: 2.05 kB
109
114
  dist/components/PlAgDataTable/sources/menu-items.js 0.23 kB │ gzip: 0.19 kB │ map: 0.48 kB
110
115
  dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.js 0.23 kB │ gzip: 0.16 kB │ map: 2.61 kB
116
+ dist/components/PlColumnValueDropdown/PlColumnValueDropdown.js 0.23 kB │ gzip: 0.16 kB │ map: 2.06 kB
111
117
  dist/lib/util/helpers/dist/functions.js 0.24 kB │ gzip: 0.19 kB │ map: 5.23 kB
112
118
  dist/components/PlAnnotations/utils.js 0.24 kB │ gzip: 0.22 kB │ map: 1.07 kB
119
+ dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.js 0.24 kB │ gzip: 0.16 kB │ map: 2.10 kB
113
120
  dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.js 0.25 kB │ gzip: 0.16 kB │ map: 3.19 kB
114
121
  dist/components/PlAgDataTable/sources/common.js 0.25 kB │ gzip: 0.20 kB │ map: 0.60 kB
122
+ dist/components/PlColumnValueDropdown/index.js 0.25 kB │ gzip: 0.13 kB
115
123
  dist/components/PlAdvancedFilter/index.js 0.27 kB │ gzip: 0.19 kB │ map: 0.77 kB
116
124
  dist/components/BlockLayout.vue_vue_type_style_index_0_lang.module.js 0.29 kB │ gzip: 0.20 kB │ map: 2.29 kB
125
+ dist/components/PlBlockName/PlBlockName.vue_vue_type_style_index_0_lang.module.js 0.30 kB │ gzip: 0.20 kB │ map: 1.60 kB
117
126
  dist/components/PlBtnExportArchive/Item.js 0.31 kB │ gzip: 0.22 kB │ map: 2.25 kB
118
127
  dist/components/PlAnnotations/components/style.module.js 0.31 kB │ gzip: 0.21 kB │ map: 0.51 kB
119
128
  dist/plugins/Monetization/EndOfPeriod.vue_vue_type_style_index_0_lang.module.js 0.31 kB │ gzip: 0.21 kB │ map: 1.32 kB
@@ -121,6 +130,7 @@ dist/components/PlBtnExportArchive/Summary.js
121
130
  dist/plugins/Monetization/LimitCard.js 0.32 kB │ gzip: 0.23 kB │ map: 6.43 kB
122
131
  dist/plugins/Monetization/RunStatus.js 0.32 kB │ gzip: 0.23 kB │ map: 2.51 kB
123
132
  dist/components/BlockLayout.js 0.32 kB │ gzip: 0.23 kB │ map: 2.39 kB
133
+ dist/components/PlBlockName/PlBlockName.js 0.33 kB │ gzip: 0.23 kB │ map: 1.71 kB
124
134
  dist/plugins/Monetization/EndOfPeriod.js 0.33 kB │ gzip: 0.23 kB │ map: 1.42 kB
125
135
  dist/components/PlAdvancedFilter/FilterEditor.js 0.33 kB │ gzip: 0.23 kB │ map: 19.16 kB
126
136
  dist/components/PlAdvancedFilter/OperandButton.js 0.33 kB │ gzip: 0.23 kB │ map: 1.62 kB
@@ -138,6 +148,7 @@ dist/components/PlBtnExportArchive/PlBtnExportArchive.js
138
148
  dist/components/PlAgDataTable/PlAgDataTableSheets.js 0.35 kB │ gzip: 0.24 kB │ map: 3.97 kB
139
149
  dist/components/PlAnnotations/components/AnnotationsSidebar.js 0.35 kB │ gzip: 0.24 kB │ map: 5.23 kB
140
150
  dist/components/PlAnnotations/components/PlAnnotationsModal.js 0.35 kB │ gzip: 0.24 kB │ map: 1.64 kB
151
+ dist/components/PlBlockDependencies/PlBlockDependencies.js 0.35 kB │ gzip: 0.24 kB │ map: 4.33 kB
141
152
  dist/components/PlAgGridColumnManager/PlAgGridColumnManager.js 0.36 kB │ gzip: 0.24 kB │ map: 5.71 kB
142
153
  dist/components/PlAnnotations/components/FilterSidebar.vue_vue_type_style_index_0_lang.module.js 0.37 kB │ gzip: 0.24 kB │ map: 5.87 kB
143
154
  dist/components/PlAgDataTable/PlAgDataTableV2.vue_vue_type_style_index_0_lang.module.js 0.37 kB │ gzip: 0.24 kB │ map: 25.25 kB
@@ -153,6 +164,7 @@ dist/components/PlBtnExportArchive/Item.vue_vue_type_style_index_0_lang.module.j
153
164
  dist/objectHash.js 0.43 kB │ gzip: 0.32 kB │ map: 1.25 kB
154
165
  dist/components/PlAgDataTable/pl-ag-overlay-loading.module.js 0.44 kB │ gzip: 0.26 kB │ map: 0.86 kB
155
166
  dist/composition/AgGrid/index.js 0.44 kB │ gzip: 0.31 kB │ map: 0.90 kB
167
+ dist/composition/useOpenBlock.js 0.46 kB │ gzip: 0.29 kB │ map: 1.94 kB
156
168
  dist/components/PlTableFilters/PlTableFiltersV2.vue_vue_type_style_index_0_lang.module.js 0.46 kB │ gzip: 0.27 kB │ map: 7.67 kB
157
169
  dist/components/PlAgRowNumCheckbox/pl-ag-row-num-checkbox.module.js 0.46 kB │ gzip: 0.27 kB │ map: 0.71 kB
158
170
  dist/components/PlBtnExportArchive/PlBtnExportArchive.vue_vue_type_style_index_0_lang.module.js 0.46 kB │ gzip: 0.27 kB │ map: 7.61 kB
@@ -165,8 +177,10 @@ dist/components/LoaderPage.js
165
177
  dist/components/PlAgGridColumnManager/useGridColumns.js 0.54 kB │ gzip: 0.33 kB │ map: 1.40 kB
166
178
  dist/internal/service_factories.js 0.54 kB │ gzip: 0.29 kB │ map: 1.44 kB
167
179
  dist/components/PlAgCellProgress/PlAgCellProgress.vue_vue_type_script_setup_true_lang.js 0.57 kB │ gzip: 0.38 kB │ map: 0.94 kB
180
+ dist/components/PlBlockDependencies/PlBlockDependencies.vue_vue_type_style_index_0_lang.module.js 0.60 kB │ gzip: 0.34 kB │ map: 4.25 kB
168
181
  dist/plugins/Monetization/RunStatus.vue_vue_type_style_index_0_lang.module.js 0.62 kB │ gzip: 0.36 kB │ map: 2.46 kB
169
182
  dist/components/PlAnnotations/components/AnnotationsSidebar.vue_vue_type_style_index_0_lang.module.js 0.63 kB │ gzip: 0.33 kB │ map: 5.17 kB
183
+ dist/components/PlColumnValueDropdown/settings.js 0.64 kB │ gzip: 0.35 kB │ map: 3.19 kB
170
184
  dist/AgGridVue/ag-override.js 0.64 kB │ gzip: 0.32 kB │ map: 0.09 kB
171
185
  dist/plugins/Monetization/UserCabinetCard.vue_vue_type_style_index_0_lang.module.js 0.65 kB │ gzip: 0.36 kB │ map: 3.18 kB
172
186
  dist/lib/util/helpers/dist/index.js 0.66 kB │ gzip: 0.31 kB
@@ -176,6 +190,7 @@ dist/plugins/Monetization/EndOfPeriod.vue_vue_type_script_setup_true_lang.js
176
190
  dist/lib/util/helpers/dist/utils.js 0.82 kB │ gzip: 0.44 kB │ map: 7.43 kB
177
191
  dist/components/PlAdvancedFilter/PlAdvancedFilter.vue_vue_type_style_index_0_lang.module.js 0.83 kB │ gzip: 0.40 kB │ map: 14.28 kB
178
192
  dist/components/PlAgDataTable/PlAgOverlayNoRows.vue_vue_type_script_setup_true_lang.js 0.83 kB │ gzip: 0.51 kB │ map: 1.99 kB
193
+ dist/components/ValuePickers/index.js 0.84 kB │ gzip: 0.43 kB │ map: 3.53 kB
179
194
  dist/components/PlAgDataTable/compositions/useFilterableColumns.js 0.85 kB │ gzip: 0.47 kB │ map: 3.22 kB
180
195
  dist/components/PlAgDataTable/index.js 0.91 kB │ gzip: 0.39 kB │ map: 0.86 kB
181
196
  dist/components/PlAgDataTable/sources/focus-row.js 0.93 kB │ gzip: 0.50 kB │ map: 2.41 kB
@@ -186,13 +201,17 @@ dist/components/PlAdvancedFilter/FilterEditor.vue_vue_type_style_index_0_lang.mo
186
201
  dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue_vue_type_script_setup_true_lang.js 1.01 kB │ gzip: 0.52 kB │ map: 1.88 kB
187
202
  dist/components/NotFound.vue_vue_type_script_setup_true_lang.js 1.02 kB │ gzip: 0.61 kB │ map: 1.56 kB
188
203
  dist/plugins/Monetization/validation.js 1.03 kB │ gzip: 0.50 kB │ map: 2.82 kB
204
+ dist/components/PlBlockName/PlBlockName.vue_vue_type_script_setup_true_lang.js 1.05 kB │ gzip: 0.62 kB │ map: 2.37 kB
205
+ dist/components/ValuePickers/columnLinksMissingValue.js 1.06 kB │ gzip: 0.51 kB │ map: 3.57 kB
189
206
  dist/plugins/Monetization/LimitCard.vue_vue_type_style_index_0_lang.module.js 1.09 kB │ gzip: 0.50 kB │ map: 6.51 kB
190
207
  dist/components/PlTableFilters/suggest-source.js 1.12 kB │ gzip: 0.62 kB │ map: 3.50 kB
208
+ dist/components/PlColumnValueDropdown/useColumnValueOptions.js 1.13 kB │ gzip: 0.55 kB │ map: 3.86 kB
191
209
  dist/plugins/Monetization/RunStatus.vue_vue_type_script_setup_true_lang.js 1.14 kB │ gzip: 0.61 kB │ map: 3.33 kB
192
210
  dist/components/PlAgGridColumnManager/useFilteredItems.js 1.15 kB │ gzip: 0.60 kB │ map: 3.84 kB
193
211
  dist/components/PlAgDataTable/sources/value-rendering.js 1.15 kB │ gzip: 0.56 kB │ map: 3.70 kB
194
212
  dist/lib/util/helpers/dist/objects.js 1.16 kB │ gzip: 0.56 kB │ map: 10.14 kB
195
213
  dist/components/PlAgDataTable/sources/grid-state.js 1.17 kB │ gzip: 0.54 kB │ map: 6.07 kB
214
+ dist/components/PlBlockDependencies/fold.js 1.20 kB │ gzip: 0.60 kB │ map: 4.32 kB
196
215
  dist/components/PlAgCellFile/PlAgCellFile.vue_vue_type_script_setup_true_lang.js 1.20 kB │ gzip: 0.66 kB │ map: 3.37 kB
197
216
  dist/createModel.js 1.23 kB │ gzip: 0.62 kB │ map: 3.55 kB
198
217
  dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue_vue_type_script_setup_true_lang.js 1.24 kB │ gzip: 0.63 kB │ map: 2.46 kB
@@ -200,17 +219,19 @@ dist/utils.js
200
219
  dist/lib/util/helpers/dist/prettyBytes.js 1.27 kB │ gzip: 0.66 kB │ map: 4.05 kB
201
220
  dist/AgGridVue/AgGridTheme.js 1.28 kB │ gzip: 0.58 kB │ map: 2.15 kB
202
221
  dist/components/PlAgDataTable/PlAgRowCount.vue_vue_type_script_setup_true_lang.js 1.30 kB │ gzip: 0.61 kB │ map: 2.86 kB
222
+ dist/components/PlColumnValueDropdown/PlColumnValueDropdown.vue_vue_type_script_setup_true_lang.js 1.30 kB │ gzip: 0.68 kB │ map: 2.99 kB
203
223
  dist/components/PlAgDataTable/types.js 1.31 kB │ gzip: 0.52 kB │ map: 7.85 kB
204
224
  dist/internal/UpdateSerializer.js 1.32 kB │ gzip: 0.61 kB │ map: 4.48 kB
225
+ dist/components/PlColumnValueDropdown/PlColumnValueDropdownMulti.vue_vue_type_script_setup_true_lang.js 1.33 kB │ gzip: 0.69 kB │ map: 3.04 kB
205
226
  dist/components/PlAgCsvExporter/PlAgCsvExporter.vue_vue_type_script_setup_true_lang.js 1.36 kB │ gzip: 0.75 kB │ map: 2.85 kB
206
227
  dist/plugins/Monetization/useInfo.js 1.49 kB │ gzip: 0.76 kB │ map: 4.32 kB
207
228
  dist/components/PlAgDataTable/PlAgOverlayLoading.vue_vue_type_script_setup_true_lang.js 1.53 kB │ gzip: 0.79 kB │ map: 3.30 kB
208
229
  dist/components/PlBtnExportArchive/Summary.vue_vue_type_script_setup_true_lang.js 1.58 kB │ gzip: 0.67 kB │ map: 3.15 kB
209
230
  dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue_vue_type_script_setup_true_lang.js 1.60 kB │ gzip: 0.79 kB │ map: 3.58 kB
210
- dist/defineApp.js 1.64 kB │ gzip: 0.87 kB │ map: 7.12 kB
211
231
  dist/components/PlBtnExportArchive/Item.vue_vue_type_script_setup_true_lang.js 1.67 kB │ gzip: 0.66 kB │ map: 3.43 kB
212
232
  dist/AgGridVue/createAgGridColDef.js 1.72 kB │ gzip: 0.74 kB │ map: 9.60 kB
213
233
  dist/components/PlAdvancedFilter/utils.js 1.74 kB │ gzip: 0.81 kB │ map: 6.64 kB
234
+ dist/defineApp.js 1.75 kB │ gzip: 0.91 kB │ map: 7.32 kB
214
235
  dist/components/PlAnnotations/components/PlAnnotationsModal.vue_vue_type_script_setup_true_lang.js 1.77 kB │ gzip: 0.76 kB │ map: 2.21 kB
215
236
  dist/components/PlAdvancedFilter/constants.js 1.78 kB │ gzip: 0.54 kB │ map: 3.77 kB
216
237
  dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue_vue_type_script_setup_true_lang.js 1.80 kB │ gzip: 0.86 kB │ map: 3.52 kB
@@ -219,13 +240,14 @@ dist/plugins/Monetization/UserCabinetCard.vue_vue_type_script_setup_true_lang.js
219
240
  dist/components/PlAgRowNumHeader.vue_vue_type_script_setup_true_lang.js 2.08 kB │ gzip: 0.89 kB │ map: 4.35 kB
220
241
  dist/components/BlockLayout.vue_vue_type_script_setup_true_lang.js 2.23 kB │ gzip: 1.05 kB │ map: 4.42 kB
221
242
  dist/components/PlAgDataTable/PlAgDataTableSheets.vue_vue_type_script_setup_true_lang.js 2.54 kB │ gzip: 1.20 kB │ map: 6.05 kB
222
- dist/components/PlDatasetSelector/PlDatasetSelector.vue_vue_type_script_setup_true_lang.js 2.59 kB │ gzip: 1.08 kB │ map: 7.06 kB
223
243
  dist/components/PlAnnotations/components/PlAnnotations.vue_vue_type_script_setup_true_lang.js 2.70 kB │ gzip: 1.13 kB │ map: 4.91 kB
224
244
  dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue_vue_type_script_setup_true_lang.js 2.85 kB │ gzip: 1.16 kB │ map: 5.10 kB
225
245
  dist/components/PlAgDataTable/compositions/useGrid.js 2.89 kB │ gzip: 1.28 kB │ map: 6.96 kB
226
246
  dist/components/PlAgDataTable/sources/row-number.js 2.99 kB │ gzip: 1.30 kB │ map: 8.15 kB
227
247
  dist/components/PlAgCsvExporter/export-csv.js 3.14 kB │ gzip: 1.40 kB │ map: 11.61 kB
248
+ dist/components/PlDatasetSelector/PlDatasetSelector.vue_vue_type_script_setup_true_lang.js 3.18 kB │ gzip: 1.26 kB │ map: 8.99 kB
228
249
  dist/plugins/Monetization/LimitCard.vue_vue_type_script_setup_true_lang.js 3.28 kB │ gzip: 1.14 kB │ map: 9.80 kB
250
+ dist/components/PlBlockDependencies/PlBlockDependencies.vue_vue_type_script_setup_true_lang.js 3.35 kB │ gzip: 1.42 kB │ map: 7.27 kB
229
251
  dist/components/PlAgColumnHeader/PlAgColumnHeader.vue_vue_type_script_setup_true_lang.js 3.42 kB │ gzip: 1.37 kB │ map: 6.31 kB
230
252
  dist/composition/fileContent.js 3.83 kB │ gzip: 1.45 kB │ map: 13.75 kB
231
253
  dist/plugins/Monetization/MonetizationSidebar.vue_vue_type_script_setup_true_lang.js 3.94 kB │ gzip: 1.70 kB │ map: 6.93 kB
@@ -233,25 +255,26 @@ dist/AgGridVue/useAgGridOptions.js
233
255
  dist/components/PlAnnotations/components/FilterSidebar.vue_vue_type_script_setup_true_lang.js 4.22 kB │ gzip: 1.61 kB │ map: 8.75 kB
234
256
  dist/components/PlAnnotations/components/AnnotationsSidebar.vue_vue_type_script_setup_true_lang.js 4.27 kB │ gzip: 1.66 kB │ map: 8.01 kB
235
257
  dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue_vue_type_script_setup_true_lang.js 4.40 kB │ gzip: 1.79 kB │ map: 9.25 kB
236
- dist/index.js 4.46 kB │ gzip: 1.33 kB │ map: 1.48 kB
237
- dist/lib.js 5.12 kB │ gzip: 1.37 kB │ map: 8.15 kB
258
+ dist/columnLinkViews.js 5.32 kB │ gzip: 1.91 kB │ map: 19.73 kB
238
259
  dist/components/PlTableFilters/PlTableFiltersV2.vue_vue_type_script_setup_true_lang.js 5.37 kB │ gzip: 2.14 kB │ map: 12.02 kB
239
260
  dist/components/PlBtnExportArchive/PlBtnExportArchive.vue_vue_type_script_setup_true_lang.js 5.39 kB │ gzip: 2.19 kB │ map: 12.10 kB
261
+ dist/index.js 5.42 kB │ gzip: 1.55 kB │ map: 1.75 kB
240
262
  dist/components/PlAgDataTable/sources/table-state-v2.js 5.72 kB │ gzip: 1.85 kB │ map: 21.73 kB
241
- dist/internal/createAppV3.js 6.20 kB │ gzip: 2.33 kB │ map: 23.18 kB
263
+ dist/lib.js 6.23 kB │ gzip: 1.60 kB │ map: 9.81 kB
264
+ dist/internal/createAppV3.js 6.24 kB │ gzip: 2.35 kB │ map: 23.42 kB
242
265
  dist/components/PlAgDataTable/sources/table-source-v2.js 7.76 kB │ gzip: 2.94 kB │ map: 30.69 kB
243
266
  dist/components/PlAdvancedFilter/PlAdvancedFilter.vue_vue_type_script_setup_true_lang.js 9.05 kB │ gzip: 2.69 kB │ map: 21.15 kB
244
267
  dist/components/PlAdvancedFilter/FilterEditor.vue_vue_type_script_setup_true_lang.js 11.71 kB │ gzip: 3.31 kB │ map: 28.56 kB
245
268
  dist/components/PlAgDataTable/PlAgDataTableV2.vue_vue_type_script_setup_true_lang.js 12.79 kB │ gzip: 4.03 kB │ map: 36.30 kB
246
269
 
247
- ✓ built in 4.97s
248
- [PLUGIN_TIMINGS] JavaScript callbacks ran for 4.9s of this 5.0s build (99%).
270
+ ✓ built in 5.89s
271
+ [PLUGIN_TIMINGS] JavaScript callbacks ran for 5.8s of this 5.9s build (99%).
249
272
  The slowest callbacks, timed inside each callback (the wait before a callback starts is excluded, the time it awaits is included):
250
- - plugin unplugin-dts buildStart (81%, 4.0s, 1 call)
273
+ - plugin unplugin-dts buildStart (79%, 4.7s, 1 call)
251
274
  Additional callback time came from the callbacks below and from callbacks under 1s.
252
275
  2 callbacks are listed without a time. Their calls overlapped, so the time inside one call includes work from other calls. To find their cost, profile the build with `node --cpu-prof`:
253
- - plugin sourcemaps load (129 calls)
254
- - plugin vite:css transform (31 calls)
276
+ - plugin sourcemaps load (144 calls)
277
+ - plugin vite:css transform (33 calls)
255
278
  See https://rolldown.rs/reference/InputOptions.checks#bundlertimings for more details.
256
279
  
257
280
  Build completed successfully
@@ -6,5 +6,5 @@ Checking formatting...
6
6
  Checking formatting...
7
7
 
8
8
  All matched files use the correct format.
9
- Finished in 1399ms on 134 files using 16 threads.
9
+ Finished in 804ms on 159 files using 16 threads.
10
10
  Format check completed successfully
@@ -4,5 +4,5 @@ $ ts-builder linter --check
4
4
  Linting project...
5
5
  ↳ oxlint --config /home/runner/_work/platforma/platforma/sdk/ui-vue/.oxlintrc.json --deny-warnings
6
6
  Found 0 warnings and 0 errors.
7
- Finished in 32ms on 117 files with 108 rules using 16 threads.
7
+ Finished in 29ms on 142 files with 108 rules using 16 threads.
8
8
  Linting completed successfully
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @platforma-sdk/ui-vue
2
2
 
3
+ ## 1.88.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8d28bcd: Column value references: `ColumnValueId` names one value of a column a block picked, and template relocation repoints the producer block inside it. The value is always a string: a value of a number column is its decimal string (`String(cell)`), so the same value picked from a number cell and from a text cell is the same id, and ids compare with `===`. `createColumnValueId` refuses a value that is not a string, and an id whose value is not a string is not a `ColumnValueId`.
8
+ A value picker is made like a data table, in two halves. The model gives `createColumnValueOptions({ valueColumn, labelColumn? }, { ctx? })` as an output — each column an id, a column or a recipe — a frame holding the value column and the label column, `resolving` while either is, `absent` once the value column is gone (a gone label column leaves the values to label themselves), each with the value column it was made for. The UI reads it through the frame, so a column of any storage format can be picked from: `readColumnValueOptions(model)` gives the distinct non-missing values as `{ value: ColumnValueId, label }` options in natural order of labels, each labelled by the label column in its row or by itself (`deriveColumnValueOptions`, `deriveLabelledColumnValueOptions`). In Vue, as with a table, the output reaches the dropdown through settings: `usePlColumnValueSettings({ source, valueColumn })` makes them out of the output and the column picked now — `none`, `pending` until the output is computed for that pick, `absent`, or `present` — and `<PlColumnValueDropdown>` and `<PlColumnValueDropdownMulti>` take them as `settings`: `PlDropdown` and `PlDropdownMulti` over the values, loading until they are read and telling why a column offers none; `exclude` leaves out values, and other attributes and the slots go to the dropdown.
9
+ `columnValueLabel(picked)` names a picked value to the user: the value a column value id picks, or the string as is when it is not such an id.
10
+ In workflows, `workflow.column-value` reads such ids back into plain values, always strings: `valueOf` for one id, `valuesOf` for an array of them.
11
+ The middle layer computes the column links of each block: `dependencies` — outputs of other blocks the block's args reference: its current args, else those of its last run — and `dependents` — blocks whose args reference the block's outputs. They reach the app and the block UI as `columnLinks` of the block state (`BlockStateInternalV3`, `BlockStateV3`): `BlockColumnLinks` with `blockId`, the block they are of, the two sides as lists of `ColumnLink` — the referenced block output (`producer`), the block holding the reference (`holderBlockId`), the column id, the picked values, the check and the column label — and `labels` of the other blocks they name; `undefined` while they are not computed, and in app versions that do not compute them. They are computed only for blocks whose model declares the `supportsColumnLinks` feature flag, which `BlockModelV3` sets, so blocks built with an earlier SDK add no work. Each block's links are computed on their own: its dependencies read its args and the last runs of the blocks they reference; its dependents read the args of every block below it — those of its last run for a block without current args — and its own last run. So a run of a block recomputes its dependents and the dependencies of the blocks that reference it — and, while it has no current args, the dependents of every block above it; an edit of a block's args recomputes its own dependencies and the dependents of every block above it, whether it references them or not. Each reference carries the picked values and a `LinkCheck`, read the same on both sides, checked against what the producer's last run exports: whether the column is exported and whether it holds the picked values. A reference to a block that has no last run is `notRun`: the block has to be run first. A reference to a block whose last run is still rendering its results is `pending`; one whose last run failed to render them is `unavailable`. A reference to an output its producer does not export is `unavailable`: among `dependents`, the dependent block cannot run against it. A reference to a block that is not above the block holding it is `unavailable` too. A column counts as exported once its spec is in the producer's last run; picked values are checked against those its `pl7.app/discreteValues` annotation lists, else against its data. A reference whose column values cannot be read is `unreadable`; one whose column lacks picked values is `missingValues`, with the values it lacks. Each reference carries the column's label: the exported column's, or, when the producer's last run does not export it, that of the column the producer prepares before it is run; the status is still judged by the last run alone. The middle layer labels the blocks by their titles, the names the project shows.
12
+ `PlBlockDependencies` turns column links into the alerts shown above a block, one per side, for the links that need attention: an error when an output this block uses is unavailable or lacks picked values; a warning, noting that the links are checked against this block's last run, with advice to add the missing data and run the block or reconfigure those blocks, when blocks using this block's outputs use an output it does not export or pick values it lacks; a block that has not been run yet provides no output, so links to it raise these alerts as to an output that is not provided. Columns are named by their label; output names are shown only as hints. Outputs of one block that are not exported and have no known label share one alert line ("uses 2 outputs this block does not export"). Value pickers tell, from the same links, which block was to provide a missing column or column value and what went wrong, or, when its column is provided while other inputs of the block are not, that it waits for them: the options of one input may be made from another. `computeDependencies` and `computeDependents` are in `@milaboratories/pl-model-common`; turning links into alerts and picker tooltips stays inside `@platforma-sdk/ui-vue`.
13
+ `PlBlockDependencies` (`<PlBlockDependencies />`) shows those alerts in a block UI that places it, from the column links the app provides, and nothing when it provides none; each other block is named by `PlBlockName`. The reader can fold the warning about blocks using this block's outputs to its title by clicking the title, which then counts the blocks ("2 blocks"); the fold is the reader's own, kept in the browser storage under the block id, and a folded warning is marked "Updated" once it says something else than when it was folded. The error about this block's own inputs does not fold. `PlAlert` takes a `label` slot in place of the `label` text, and leaves out the text area when given no text.
14
+ `PlBlockName` (`<PlBlockName :block-id="id" :name="label" />`) shows the name of another block of the project: a link opening that block when the app can open blocks, and plain text otherwise.
15
+ Block UIs can ask the app to open another block of the same project: `PlatformaV3` has an optional `openBlock(blockId)`, absent in app versions that cannot do it; in Vue, `useOpenBlock()` returns a function opening a block by id, or `undefined` when the app cannot.
16
+ `PlDropdown` and `PlDropdownMulti` show a selected column value id by the value it picks: as is while the options load, and as "<value> — not available" when the options lack it, unless `missingValueLabel` is given.
17
+ `PlValueLabel` (`<PlValueLabel :value="item" :options="options" />`) shows a selected value as text the way a dropdown does: by its option's label, a column value id by the value it picks, and a value the options lack as not available, in error color.
18
+ `PlDropdown`, `PlDropdownMulti`, `PlDropdownRef`, `PlDropdownMultiRef` and `PlValueLabel` take `missingValueTooltip`, a tooltip explaining a selected value missing from the options, and `missingValueLabel`, the text shown in its place: each one text for every such value, or a function giving it — the tooltip content — per value, `undefined` when there is nothing to tell. The ones `@platforma-sdk/ui-vue` exports pass both themselves when the app provides column links, for a missing column — selected by id or by ref — and a missing column value: the tooltip names the block that was to provide the column, as a link to it, and what went wrong — it does not provide the column (a block that has not been run yet provides none), the column lacks the value, or the block is still computing it; when the column is provided while other inputs of the block are not, the tooltip says it waits for them. The value is shown by the picked value, or by the label of a column selected as a whole: alone while it waits, as "<name> — not available" otherwise.
19
+ `PlDatasetSelector` explains a selected dataset or filter the options lack the same way, by the column it selects: the dataset first, then its filter.
20
+ `PlDropdownRef` and `PlDropdownMultiRef` show a missing value as "Value not available", like the other dropdowns, instead of "Upstream value removed".
21
+ Inside a `PlTooltip`, `--txt-link` is the tooltip link color, so links drawn with it — `PlBlockName` among them — read on the dark tooltip background like the tooltip's own links.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [9901322]
26
+ - Updated dependencies [8d28bcd]
27
+ - @milaboratories/pl-model-common@1.55.0
28
+ - @platforma-sdk/model@1.88.0
29
+ - @milaboratories/uikit@2.17.0
30
+ - @milaboratories/columns-collection-driver@0.2.13
31
+ - @milaboratories/pf-spec-driver@1.5.13
32
+
33
+ ## 1.87.0
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [e813654]
38
+ - @platforma-sdk/model@1.87.0
39
+ - @milaboratories/uikit@2.16.3
40
+
3
41
  ## 1.86.5
4
42
 
5
43
  ### Patch Changes
@@ -0,0 +1,97 @@
1
+ import { BlockColumnLinks, BlockOutput, ColumnLink } from '@platforma-sdk/model';
2
+ /**
3
+ * Which way a link goes: `usedBy` — another block's args reference an output of this block;
4
+ * `uses` — this block's args reference an output of another block.
5
+ */
6
+ export type LinkSide = "usedBy" | "uses";
7
+ /**
8
+ * What one other block uses of one output, or what this block uses of one output of another
9
+ * block. All references of that block to the output that pick values are merged into one row,
10
+ * with their distinct picked values and the check that needs attention most; its use of the
11
+ * output as a whole is a row of its own.
12
+ */
13
+ export type LinkRow = Pick<ColumnLink, "columnLabel" | "values" | "check"> & {
14
+ key: string;
15
+ /** The other block: the one using this block's output, or the one producing the output. */
16
+ blockId: string;
17
+ /** The output. Its name is not meant for reading, so it is shown only as a hint. */
18
+ column: BlockOutput;
19
+ };
20
+ /** The links of one side. */
21
+ export type LinkSection = {
22
+ side: LinkSide;
23
+ rows: LinkRow[];
24
+ };
25
+ /**
26
+ * A line about links that need attention: the other block's name, then a space and `text`. The
27
+ * name is kept apart so it can be shown as a way to open that block. A line is about one link,
28
+ * about every link to that block whose output is not exported and has no known label: such
29
+ * outputs have no name a reader can tell apart, or about every link to a block that has not been
30
+ * run yet: they all wait for its run. `outputs` names the outputs the line is about,
31
+ * for a hint.
32
+ */
33
+ export type LinkIssue = {
34
+ key: string;
35
+ blockId: string;
36
+ text: string;
37
+ outputs: string[];
38
+ };
39
+ /** The links of one side that need attention, shown as its {@link ALERTS} entry says. */
40
+ export type LinkAlert = {
41
+ side: LinkSide;
42
+ issues: LinkIssue[];
43
+ };
44
+ /**
45
+ * How the alert of each side shows. `error` on the `uses` side: this block cannot run against
46
+ * the links. `warn` on the `usedBy` side: the other blocks are the ones to fix, by getting the
47
+ * data back here or by being reconfigured; `hint` says so.
48
+ */
49
+ export declare const ALERTS: {
50
+ readonly uses: {
51
+ readonly type: "error";
52
+ readonly label: "Links to blocks this block takes data from are broken";
53
+ readonly hint: null;
54
+ };
55
+ readonly usedBy: {
56
+ readonly type: "warn";
57
+ readonly label: "Some blocks are missing data from this block";
58
+ readonly hint: string;
59
+ };
60
+ };
61
+ /** The links of both sides: `usedBy`, then `uses`. */
62
+ export declare function linkSections(links: Pick<BlockColumnLinks, "dependencies" | "dependents">): LinkSection[];
63
+ /**
64
+ * One alert per side whose links need attention, in the order of the sections:
65
+ * - `uses` — an output this block uses is not available or lacks picked values;
66
+ * - `usedBy` — another block uses an output this block does not export, or picked values this
67
+ * block's output lacks. The links are checked against this block's last run, as the hint says.
68
+ */
69
+ export declare function linkAlerts(sections: LinkSection[]): LinkAlert[];
70
+ /** The label of a block, or a short form of its id when it has no label. */
71
+ export declare function blockName(labels: Record<string, string>, blockId: string): string;
72
+ /**
73
+ * Why a selected column or column value is missing. `source`: the block meant to provide it, and
74
+ * what went wrong, as a sentence that follows the block's name. `waiting`: its column is provided,
75
+ * while other inputs of the block are not, and the options of one input may be made from another.
76
+ * `name`: what the selection is called — the picked value, or the label of a column selected as a
77
+ * whole; `null` when the column has no known label.
78
+ */
79
+ export type MissingValueCause = {
80
+ type: "source";
81
+ name: string | null;
82
+ blockId: string;
83
+ text: string;
84
+ } | {
85
+ type: "waiting";
86
+ name: string | null;
87
+ text: string;
88
+ };
89
+ /**
90
+ * Why `value` is missing from its options, by the dependencies of the block: a column value id,
91
+ * or a column — as an id or a ref. When its column is provided, with the value, while other
92
+ * inputs of the block are not, the block offers it once they are: the options of one input may
93
+ * be made from another. `undefined` for any other value, and for one whose column has nothing
94
+ * wrong with it while every other input is provided too.
95
+ */
96
+ export declare function describeMissingValue(dependencies: readonly ColumnLink[], value: unknown): MissingValueCause | undefined;
97
+ //# sourceMappingURL=columnLinkViews.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnLinkViews.d.ts","sourceRoot":"","sources":["../src/columnLinkViews.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,UAAU,EAIhB,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,2FAA2F;IAC3F,OAAO,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,6BAA6B;AAC7B,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC;AAE9D;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,yFAAyF;AACzF,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAA;CAAE,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;CAgBlB,CAAC;AAEF,sDAAsD;AACtD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,cAAc,GAAG,YAAY,CAAC,GAC3D,WAAW,EAAE,CAYf;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,EAAE,CAO/D;AAED,4EAA4E;AAC5E,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjF;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,SAAS,UAAU,EAAE,EACnC,KAAK,EAAE,OAAO,GACb,iBAAiB,GAAG,SAAS,CAe/B"}
@@ -0,0 +1,208 @@
1
+ import { collectColumnReferences as e, isColumnUniversalId as t, isColumnUniversalKey as n, isColumnValueId as r } from "@platforma-sdk/model";
2
+ import { groupBy as i, uniq as a } from "es-toolkit";
3
+ // src/columnLinkViews.ts
4
+ var o = {
5
+ uses: {
6
+ type: "error",
7
+ label: "Links to blocks this block takes data from are broken",
8
+ hint: null
9
+ },
10
+ usedBy: {
11
+ type: "warn",
12
+ label: "Some blocks are missing data from this block",
13
+ hint: "Checked against the last run of this block. Add the missing data and run it, or reconfigure those blocks."
14
+ }
15
+ };
16
+ function s(e) {
17
+ let { dependents: t, dependencies: n } = e;
18
+ return [{
19
+ side: "usedBy",
20
+ rows: g(t.map((e) => h(e, e.holderBlockId)))
21
+ }, {
22
+ side: "uses",
23
+ rows: g(n.map((e) => h(e, e.producer.blockId)))
24
+ }];
25
+ }
26
+ function c(e) {
27
+ return e.flatMap((e) => {
28
+ let t = e.rows.flatMap((e) => b(e) ?? []);
29
+ if (t.length === 0) return [];
30
+ let n = x(t).map((t) => w(e.side, t));
31
+ return [{
32
+ side: e.side,
33
+ issues: n
34
+ }];
35
+ });
36
+ }
37
+ function l(e, t) {
38
+ return e[t] ?? `Block ${t.slice(0, 8)}`;
39
+ }
40
+ function u(e, t) {
41
+ let n = d(t);
42
+ if (n === void 0) return;
43
+ let r = e.find((e) => e.ref === n.ref);
44
+ if (r === void 0) return;
45
+ let i = r.columnLabel === null ? "the column" : `“${r.columnLabel}”`, a = f(r.check, i, n.picked), o = n.picked ?? r.columnLabel;
46
+ return a === void 0 ? p(e, r, n.picked) ? {
47
+ type: "waiting",
48
+ name: o,
49
+ text: "Waiting for the other inputs of this block."
50
+ } : void 0 : {
51
+ type: "source",
52
+ name: o,
53
+ blockId: r.producer.blockId,
54
+ text: a
55
+ };
56
+ }
57
+ function d(i) {
58
+ let a = t(i) || n(i);
59
+ if (!r(i) && !a) return;
60
+ let [o] = e(i);
61
+ if (o !== void 0) return o.values === null ? a ? {
62
+ ref: o.ref,
63
+ picked: void 0
64
+ } : void 0 : {
65
+ ref: o.ref,
66
+ picked: o.values[0]
67
+ };
68
+ }
69
+ function f(e, t, n) {
70
+ switch (e.type) {
71
+ case "ok":
72
+ case "unreadable": return;
73
+ case "pending": return `is still computing ${t}.`;
74
+ case "notRun":
75
+ case "unavailable": return `does not provide ${t}.`;
76
+ case "missingValues": return n !== void 0 && e.values.includes(n) ? `has no “${n}” in ${t}.` : void 0;
77
+ }
78
+ }
79
+ function p(e, t, n) {
80
+ return m(t.check, n) ? e.some((e) => e.ref !== t.ref && e.check.type !== "ok" && e.check.type !== "unreadable") : !1;
81
+ }
82
+ function m(e, t) {
83
+ switch (e.type) {
84
+ case "ok": return !0;
85
+ case "missingValues": return t === void 0 || !e.values.includes(t);
86
+ case "unreadable":
87
+ case "pending":
88
+ case "notRun":
89
+ case "unavailable": return !1;
90
+ }
91
+ }
92
+ function h(e, t) {
93
+ let { producer: n, columnLabel: r, values: i, check: o } = e;
94
+ return {
95
+ key: JSON.stringify([
96
+ t,
97
+ n.name,
98
+ i === null
99
+ ]),
100
+ blockId: t,
101
+ column: n,
102
+ columnLabel: r,
103
+ values: i === null ? null : a(i),
104
+ check: o
105
+ };
106
+ }
107
+ function g(e) {
108
+ return Object.values(i(e, (e) => e.key)).map((e) => e.reduce(_));
109
+ }
110
+ function _(e, t) {
111
+ return {
112
+ ...e,
113
+ columnLabel: e.columnLabel ?? t.columnLabel,
114
+ values: e.values !== null && t.values !== null ? a([...e.values, ...t.values]) : e.values,
115
+ check: v(e.check, t.check)
116
+ };
117
+ }
118
+ function v(e, t) {
119
+ return e.type === "missingValues" && t.type === "missingValues" ? {
120
+ type: "missingValues",
121
+ values: a([...e.values, ...t.values])
122
+ } : y[t.type] > y[e.type] ? t : e;
123
+ }
124
+ var y = {
125
+ ok: 0,
126
+ unreadable: 1,
127
+ pending: 2,
128
+ missingValues: 3,
129
+ notRun: 4,
130
+ unavailable: 4
131
+ };
132
+ function b(e) {
133
+ let { check: t } = e;
134
+ switch (t.type) {
135
+ case "notRun":
136
+ case "unavailable":
137
+ case "missingValues": return {
138
+ row: e,
139
+ check: t
140
+ };
141
+ case "ok":
142
+ case "pending":
143
+ case "unreadable": return;
144
+ }
145
+ }
146
+ function x(e) {
147
+ let t = e.map((e, t) => ({
148
+ link: e,
149
+ key: S(e, t)
150
+ }));
151
+ return Object.values(i(t, ({ key: e }) => e)).map((e) => {
152
+ let [{ link: t }] = e;
153
+ if (!C(t)) return {
154
+ type: "single",
155
+ link: t
156
+ };
157
+ let n = a(e.map((e) => e.link.row.column.name));
158
+ return {
159
+ type: "unlabeled",
160
+ blockId: t.row.blockId,
161
+ outputs: n
162
+ };
163
+ });
164
+ }
165
+ function S(e, t) {
166
+ let n = JSON.stringify(e.row.blockId);
167
+ return C(e) ? `unlabeled/${n}` : `single/${t}`;
168
+ }
169
+ function C(e) {
170
+ let { type: t } = e.check;
171
+ return e.row.columnLabel === null && (t === "notRun" || t === "unavailable");
172
+ }
173
+ function w(e, t) {
174
+ if (t.type === "unlabeled") return {
175
+ key: `${e}/${JSON.stringify([t.blockId])}`,
176
+ blockId: t.blockId,
177
+ text: T(e, t.outputs.length),
178
+ outputs: t.outputs
179
+ };
180
+ let { row: n } = t.link;
181
+ return {
182
+ key: `${e}/${n.key}`,
183
+ blockId: n.blockId,
184
+ text: E(e, t.link),
185
+ outputs: [n.column.name]
186
+ };
187
+ }
188
+ function T(e, t) {
189
+ let n = t === 1 ? "data" : `${t} outputs`;
190
+ return e === "uses" ? `does not provide ${n} this block uses` : `uses ${n} this block does not export`;
191
+ }
192
+ function E(e, { row: t, check: n }) {
193
+ let r = t.columnLabel === null ? null : `"${t.columnLabel}"`;
194
+ switch (n.type) {
195
+ case "notRun":
196
+ case "unavailable": return r === null ? T(e, 1) : e === "uses" ? `does not provide ${r}` : `uses ${r}, which this block does not export`;
197
+ case "missingValues": {
198
+ let t = D(n.values);
199
+ return e === "uses" ? `has no ${t} in ${r ?? "data this block uses"}` : r === null ? `uses ${t}, which this block's data no longer has` : `uses ${t} of ${r}, which this block no longer has`;
200
+ }
201
+ }
202
+ }
203
+ function D(e) {
204
+ return e.map((e) => `"${e}"`).join(", ");
205
+ }
206
+ export { o as ALERTS, l as blockName, u as describeMissingValue, c as linkAlerts, s as linkSections };
207
+
208
+ //# sourceMappingURL=columnLinkViews.js.map