@platforma-sdk/ui-vue 1.58.8 → 1.58.10

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 (489) hide show
  1. package/.turbo/turbo-build.log +195 -181
  2. package/.turbo/turbo-formatter$colon$check.log +2 -2
  3. package/.turbo/turbo-linter$colon$check.log +2 -2
  4. package/.turbo/turbo-types$colon$check.log +1 -1
  5. package/CHANGELOG.md +14 -0
  6. package/dist/AgGridVue/createAgGridColDef.js +73 -43
  7. package/dist/AgGridVue/createAgGridColDef.js.map +1 -1
  8. package/dist/AgGridVue/selection.js +55 -47
  9. package/dist/AgGridVue/selection.js.map +1 -1
  10. package/dist/AgGridVue/useAgGridOptions.js +212 -229
  11. package/dist/AgGridVue/useAgGridOptions.js.map +1 -1
  12. package/dist/_virtual/_plugin-vue_export-helper.js +5 -9
  13. package/dist/_virtual/_rolldown/runtime.js +15 -0
  14. package/dist/aggrid.js +48 -46
  15. package/dist/aggrid.js.map +1 -1
  16. package/dist/assets/block.css +1 -1
  17. package/dist/assets/ui.css +1 -0
  18. package/dist/components/BlockLayout.js +7 -0
  19. package/dist/components/BlockLayout.js.map +1 -0
  20. package/dist/components/BlockLayout.style.js +4 -0
  21. package/dist/components/BlockLayout.style.js.map +1 -0
  22. package/dist/components/BlockLayout.vue.css +1 -0
  23. package/dist/components/BlockLayout.vue2.js +42 -54
  24. package/dist/components/BlockLayout.vue2.js.map +1 -1
  25. package/dist/components/BlockLoader.js +5 -0
  26. package/dist/components/BlockLoader.js.map +1 -0
  27. package/dist/components/BlockLoader.vue2.js +22 -5
  28. package/dist/components/BlockLoader.vue2.js.map +1 -1
  29. package/dist/components/LoaderPage.js +10 -0
  30. package/dist/components/LoaderPage.js.map +1 -0
  31. package/dist/components/NotFound.js +5 -0
  32. package/dist/components/NotFound.js.map +1 -0
  33. package/dist/components/NotFound.vue2.js +18 -5
  34. package/dist/components/NotFound.vue2.js.map +1 -1
  35. package/dist/components/PlAdvancedFilter/FilterEditor.js +7 -0
  36. package/dist/components/PlAdvancedFilter/FilterEditor.js.map +1 -0
  37. package/dist/components/PlAdvancedFilter/FilterEditor.style.js +18 -0
  38. package/dist/components/PlAdvancedFilter/FilterEditor.style.js.map +1 -0
  39. package/dist/components/PlAdvancedFilter/FilterEditor.vue.css +1 -0
  40. package/dist/components/PlAdvancedFilter/FilterEditor.vue2.js +291 -322
  41. package/dist/components/PlAdvancedFilter/FilterEditor.vue2.js.map +1 -1
  42. package/dist/components/PlAdvancedFilter/OperandButton.js +7 -0
  43. package/dist/components/PlAdvancedFilter/OperandButton.js.map +1 -0
  44. package/dist/components/PlAdvancedFilter/OperandButton.style.js +8 -0
  45. package/dist/components/PlAdvancedFilter/OperandButton.style.js.map +1 -0
  46. package/dist/components/PlAdvancedFilter/OperandButton.vue.css +1 -0
  47. package/dist/components/PlAdvancedFilter/OperandButton.vue2.js +19 -24
  48. package/dist/components/PlAdvancedFilter/OperandButton.vue2.js.map +1 -1
  49. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.js +7 -0
  50. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.js.map +1 -0
  51. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.style.js +12 -0
  52. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.style.js.map +1 -0
  53. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.css +1 -0
  54. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts +1 -3
  55. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts.map +1 -1
  56. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue2.js +239 -238
  57. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue2.js.map +1 -1
  58. package/dist/components/PlAdvancedFilter/constants.js +115 -58
  59. package/dist/components/PlAdvancedFilter/constants.js.map +1 -1
  60. package/dist/components/PlAdvancedFilter/index.js +6 -6
  61. package/dist/components/PlAdvancedFilter/index.js.map +1 -1
  62. package/dist/components/PlAdvancedFilter/utils.js +49 -64
  63. package/dist/components/PlAdvancedFilter/utils.js.map +1 -1
  64. package/dist/components/PlAgCellFile/PlAgCellFile.js +5 -0
  65. package/dist/components/PlAgCellFile/PlAgCellFile.js.map +1 -0
  66. package/dist/components/PlAgCellFile/PlAgCellFile.vue2.js +36 -5
  67. package/dist/components/PlAgCellFile/PlAgCellFile.vue2.js.map +1 -1
  68. package/dist/components/PlAgCellProgress/PlAgCellProgress.js +5 -0
  69. package/dist/components/PlAgCellProgress/PlAgCellProgress.js.map +1 -0
  70. package/dist/components/PlAgCellProgress/PlAgCellProgress.vue2.js +13 -5
  71. package/dist/components/PlAgCellProgress/PlAgCellProgress.vue2.js.map +1 -1
  72. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.js +6 -0
  73. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.js.map +1 -0
  74. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue2.js +12 -0
  75. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue2.js.map +1 -0
  76. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.js +6 -0
  77. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.js.map +1 -0
  78. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.style.css +1 -0
  79. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue2.js +31 -0
  80. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue2.js.map +1 -0
  81. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.js +6 -0
  82. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.js.map +1 -0
  83. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.style.css +1 -0
  84. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue2.js +19 -0
  85. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue2.js.map +1 -0
  86. package/dist/components/PlAgColumnHeader/PlAgColumnHeader.js +5 -0
  87. package/dist/components/PlAgColumnHeader/PlAgColumnHeader.js.map +1 -0
  88. package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue2.js +68 -5
  89. package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue2.js.map +1 -1
  90. package/dist/components/PlAgColumnHeader/pl-ag-column-header.css +1 -1
  91. package/dist/components/PlAgCsvExporter/PlAgCsvExporter.js +5 -0
  92. package/dist/components/PlAgCsvExporter/PlAgCsvExporter.js.map +1 -0
  93. package/dist/components/PlAgCsvExporter/PlAgCsvExporter.vue2.js +26 -5
  94. package/dist/components/PlAgCsvExporter/PlAgCsvExporter.vue2.js.map +1 -1
  95. package/dist/components/PlAgCsvExporter/export-csv.js +36 -43
  96. package/dist/components/PlAgCsvExporter/export-csv.js.map +1 -1
  97. package/dist/components/PlAgDataTable/PlAgDataTableSheets.js +7 -0
  98. package/dist/components/PlAgDataTable/PlAgDataTableSheets.js.map +1 -0
  99. package/dist/components/PlAgDataTable/PlAgDataTableSheets.style.js +4 -0
  100. package/dist/components/PlAgDataTable/PlAgDataTableSheets.style.js.map +1 -0
  101. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue.css +1 -0
  102. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js +68 -72
  103. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js.map +1 -1
  104. package/dist/components/PlAgDataTable/PlAgDataTableV2.js +7 -0
  105. package/dist/components/PlAgDataTable/PlAgDataTableV2.js.map +1 -0
  106. package/dist/components/PlAgDataTable/PlAgDataTableV2.style.js +7 -0
  107. package/dist/components/PlAgDataTable/PlAgDataTableV2.style.js.map +1 -0
  108. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.css +1 -0
  109. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +1 -1
  110. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +325 -336
  111. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js.map +1 -1
  112. package/dist/components/PlAgDataTable/PlAgOverlayLoading.js +5 -0
  113. package/dist/components/PlAgDataTable/PlAgOverlayLoading.js.map +1 -0
  114. package/dist/components/PlAgDataTable/PlAgOverlayLoading.vue2.js +26 -5
  115. package/dist/components/PlAgDataTable/PlAgOverlayLoading.vue2.js.map +1 -1
  116. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.js +6 -0
  117. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.js.map +1 -0
  118. package/dist/components/PlAgDataTable/{PlAgOverlayNoRows.css → PlAgOverlayNoRows.style.css} +1 -1
  119. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue2.js +14 -0
  120. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue2.js.map +1 -0
  121. package/dist/components/PlAgDataTable/PlAgRowCount.js +5 -0
  122. package/dist/components/PlAgDataTable/PlAgRowCount.js.map +1 -0
  123. package/dist/components/PlAgDataTable/PlAgRowCount.vue2.js +23 -5
  124. package/dist/components/PlAgDataTable/PlAgRowCount.vue2.js.map +1 -1
  125. package/dist/components/PlAgDataTable/ag-override.js +4 -0
  126. package/dist/components/PlAgDataTable/ag-override.js.map +1 -0
  127. package/dist/components/PlAgDataTable/compositions/useFilterableColumns.js +25 -30
  128. package/dist/components/PlAgDataTable/compositions/useFilterableColumns.js.map +1 -1
  129. package/dist/components/PlAgDataTable/compositions/useGrid.js +102 -112
  130. package/dist/components/PlAgDataTable/compositions/useGrid.js.map +1 -1
  131. package/dist/components/PlAgDataTable/pl-ag-overlay-loading.css +1 -1
  132. package/dist/components/PlAgDataTable/pl-ag-overlay-loading.module.js +9 -0
  133. package/dist/components/PlAgDataTable/pl-ag-overlay-loading.module.js.map +1 -0
  134. package/dist/components/PlAgDataTable/sources/common.js +6 -8
  135. package/dist/components/PlAgDataTable/sources/common.js.map +1 -1
  136. package/dist/components/PlAgDataTable/sources/focus-row.js +36 -51
  137. package/dist/components/PlAgDataTable/sources/focus-row.js.map +1 -1
  138. package/dist/components/PlAgDataTable/sources/menu-items.js +10 -6
  139. package/dist/components/PlAgDataTable/sources/menu-items.js.map +1 -1
  140. package/dist/components/PlAgDataTable/sources/row-number.js +82 -94
  141. package/dist/components/PlAgDataTable/sources/row-number.js.map +1 -1
  142. package/dist/components/PlAgDataTable/sources/table-source-v2.js +178 -199
  143. package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
  144. package/dist/components/PlAgDataTable/sources/table-state-v2.js +155 -132
  145. package/dist/components/PlAgDataTable/sources/table-state-v2.js.map +1 -1
  146. package/dist/components/PlAgDataTable/sources/value-rendering.js +33 -38
  147. package/dist/components/PlAgDataTable/sources/value-rendering.js.map +1 -1
  148. package/dist/components/PlAgDataTable/types.js +54 -43
  149. package/dist/components/PlAgDataTable/types.js.map +1 -1
  150. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.js +7 -0
  151. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.js.map +1 -0
  152. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.style.js +4 -0
  153. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.style.js.map +1 -0
  154. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue2.js +89 -100
  155. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue2.js.map +1 -1
  156. package/dist/components/PlAgGridColumnManager/useFilteredItems.js +46 -33
  157. package/dist/components/PlAgGridColumnManager/useFilteredItems.js.map +1 -1
  158. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.js +5 -0
  159. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.js.map +1 -0
  160. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.d.ts.map +1 -1
  161. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue2.js +37 -5
  162. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue2.js.map +1 -1
  163. package/dist/components/PlAgRowNumCheckbox/pl-ag-row-num-checkbox.css +1 -1
  164. package/dist/components/PlAgRowNumCheckbox/pl-ag-row-num-checkbox.module.js +10 -0
  165. package/dist/components/PlAgRowNumCheckbox/pl-ag-row-num-checkbox.module.js.map +1 -0
  166. package/dist/components/PlAgRowNumHeader.js +5 -0
  167. package/dist/components/PlAgRowNumHeader.js.map +1 -0
  168. package/dist/components/PlAgRowNumHeader.vue2.js +38 -5
  169. package/dist/components/PlAgRowNumHeader.vue2.js.map +1 -1
  170. package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.js +5 -0
  171. package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.js.map +1 -0
  172. package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue2.js +32 -5
  173. package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue2.js.map +1 -1
  174. package/dist/components/PlAgTextAndButtonCell/pl-ag-text-and-button-cell.css +1 -1
  175. package/dist/components/PlAnnotations/components/AnnotationsSidebar.js +7 -0
  176. package/dist/components/PlAnnotations/components/AnnotationsSidebar.js.map +1 -0
  177. package/dist/components/PlAnnotations/components/AnnotationsSidebar.style.js +11 -0
  178. package/dist/components/PlAnnotations/components/AnnotationsSidebar.style.js.map +1 -0
  179. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.css +1 -0
  180. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue2.js +102 -113
  181. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue2.js.map +1 -1
  182. package/dist/components/PlAnnotations/components/FilterSidebar.js +7 -0
  183. package/dist/components/PlAnnotations/components/FilterSidebar.js.map +1 -0
  184. package/dist/components/PlAnnotations/components/FilterSidebar.style.js +7 -0
  185. package/dist/components/PlAnnotations/components/FilterSidebar.style.js.map +1 -0
  186. package/dist/components/PlAnnotations/components/FilterSidebar.vue.css +1 -0
  187. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +121 -129
  188. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js.map +1 -1
  189. package/dist/components/PlAnnotations/components/PlAnnotations.js +7 -0
  190. package/dist/components/PlAnnotations/components/PlAnnotations.js.map +1 -0
  191. package/dist/components/PlAnnotations/components/PlAnnotations.style.js +4 -0
  192. package/dist/components/PlAnnotations/components/PlAnnotations.style.js.map +1 -0
  193. package/dist/components/PlAnnotations/components/PlAnnotations.vue2.js +73 -65
  194. package/dist/components/PlAnnotations/components/PlAnnotations.vue2.js.map +1 -1
  195. package/dist/components/PlAnnotations/components/PlAnnotationsModal.js +7 -0
  196. package/dist/components/PlAnnotations/components/PlAnnotationsModal.js.map +1 -0
  197. package/dist/components/PlAnnotations/components/PlAnnotationsModal.style.js +7 -0
  198. package/dist/components/PlAnnotations/components/PlAnnotationsModal.style.js.map +1 -0
  199. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue2.js +58 -52
  200. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue2.js.map +1 -1
  201. package/dist/components/PlAnnotations/components/style.css +1 -1
  202. package/dist/components/PlAnnotations/components/style.module.js +8 -0
  203. package/dist/components/PlAnnotations/components/style.module.js.map +1 -0
  204. package/dist/components/PlAnnotations/utils.js +6 -8
  205. package/dist/components/PlAnnotations/utils.js.map +1 -1
  206. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.js +5 -0
  207. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.js.map +1 -0
  208. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue2.js +57 -5
  209. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue2.js.map +1 -1
  210. package/dist/components/PlAppErrorNotificationAlert/pl-app-error-notification-alert.css +1 -1
  211. package/dist/components/PlBtnExportArchive/Item.js +7 -0
  212. package/dist/components/PlBtnExportArchive/Item.js.map +1 -0
  213. package/dist/components/PlBtnExportArchive/Item.style.js +9 -0
  214. package/dist/components/PlBtnExportArchive/Item.style.js.map +1 -0
  215. package/dist/components/PlBtnExportArchive/Item.vue.css +1 -0
  216. package/dist/components/PlBtnExportArchive/Item.vue2.js +28 -42
  217. package/dist/components/PlBtnExportArchive/Item.vue2.js.map +1 -1
  218. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.js +7 -0
  219. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.js.map +1 -0
  220. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.style.js +8 -0
  221. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.style.js.map +1 -0
  222. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue.css +1 -0
  223. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue2.js +161 -159
  224. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue2.js.map +1 -1
  225. package/dist/components/PlBtnExportArchive/Summary.js +7 -0
  226. package/dist/components/PlBtnExportArchive/Summary.js.map +1 -0
  227. package/dist/components/PlBtnExportArchive/Summary.style.js +8 -0
  228. package/dist/components/PlBtnExportArchive/Summary.style.js.map +1 -0
  229. package/dist/components/PlBtnExportArchive/Summary.vue.css +1 -0
  230. package/dist/components/PlBtnExportArchive/Summary.vue2.js +26 -41
  231. package/dist/components/PlBtnExportArchive/Summary.vue2.js.map +1 -1
  232. package/dist/components/PlTableFastSearch/PlTableFastSearch.js +5 -0
  233. package/dist/components/PlTableFastSearch/PlTableFastSearch.js.map +1 -0
  234. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue2.js +41 -5
  235. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue2.js.map +1 -1
  236. package/dist/components/PlTableFilters/PlTableFiltersV2.js +7 -0
  237. package/dist/components/PlTableFilters/PlTableFiltersV2.js.map +1 -0
  238. package/dist/components/PlTableFilters/PlTableFiltersV2.style.js +4 -0
  239. package/dist/components/PlTableFilters/PlTableFiltersV2.style.js.map +1 -0
  240. package/dist/components/PlTableFilters/PlTableFiltersV2.vue.css +1 -0
  241. package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js +97 -106
  242. package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js.map +1 -1
  243. package/dist/composition/fileContent.js +169 -200
  244. package/dist/composition/fileContent.js.map +1 -1
  245. package/dist/computedResult.js +47 -18
  246. package/dist/computedResult.js.map +1 -1
  247. package/dist/createModel.js +44 -60
  248. package/dist/createModel.js.map +1 -1
  249. package/dist/defineApp.js +87 -113
  250. package/dist/defineApp.js.map +1 -1
  251. package/dist/defineStore.js +15 -16
  252. package/dist/defineStore.js.map +1 -1
  253. package/dist/index.js +39 -98
  254. package/dist/index.js.map +1 -1
  255. package/dist/internal/UpdateSerializer.js +50 -66
  256. package/dist/internal/UpdateSerializer.js.map +1 -1
  257. package/dist/internal/createAppModel.js +54 -68
  258. package/dist/internal/createAppModel.js.map +1 -1
  259. package/dist/internal/createAppV1.js +140 -193
  260. package/dist/internal/createAppV1.js.map +1 -1
  261. package/dist/internal/createAppV2.d.ts.map +1 -1
  262. package/dist/internal/createAppV2.js +149 -193
  263. package/dist/internal/createAppV2.js.map +1 -1
  264. package/dist/internal/createAppV3.d.ts.map +1 -1
  265. package/dist/internal/createAppV3.js +157 -202
  266. package/dist/internal/createAppV3.js.map +1 -1
  267. package/dist/internal/test-helpers/utils.d.ts.map +1 -1
  268. package/dist/lib/util/helpers/dist/error.js +1 -0
  269. package/dist/lib/util/helpers/dist/functions.js +8 -9
  270. package/dist/lib/util/helpers/dist/functions.js.map +1 -1
  271. package/dist/lib/util/helpers/dist/hash.js +5 -0
  272. package/dist/lib/util/helpers/dist/hash.js.map +1 -0
  273. package/dist/lib/util/helpers/dist/index.js +9 -0
  274. package/dist/lib/util/helpers/dist/objects.js +75 -42
  275. package/dist/lib/util/helpers/dist/objects.js.map +1 -1
  276. package/dist/lib/util/helpers/dist/prettyBytes.js +60 -26
  277. package/dist/lib/util/helpers/dist/prettyBytes.js.map +1 -1
  278. package/dist/lib/util/helpers/dist/random.js +6 -8
  279. package/dist/lib/util/helpers/dist/random.js.map +1 -1
  280. package/dist/lib/util/helpers/dist/strings.js +11 -14
  281. package/dist/lib/util/helpers/dist/strings.js.map +1 -1
  282. package/dist/lib/util/helpers/dist/uniqId.js +7 -0
  283. package/dist/lib/util/helpers/dist/uniqId.js.map +1 -0
  284. package/dist/lib/util/helpers/dist/utils.js +34 -50
  285. package/dist/lib/util/helpers/dist/utils.js.map +1 -1
  286. package/dist/lib.js +38 -0
  287. package/dist/objectHash.js +13 -10
  288. package/dist/objectHash.js.map +1 -1
  289. package/dist/plugins/Monetization/EndOfPeriod.js +7 -0
  290. package/dist/plugins/Monetization/EndOfPeriod.js.map +1 -0
  291. package/dist/plugins/Monetization/EndOfPeriod.style.js +4 -0
  292. package/dist/plugins/Monetization/EndOfPeriod.style.js.map +1 -0
  293. package/dist/plugins/Monetization/EndOfPeriod.vue.css +1 -0
  294. package/dist/plugins/Monetization/EndOfPeriod.vue2.js +15 -23
  295. package/dist/plugins/Monetization/EndOfPeriod.vue2.js.map +1 -1
  296. package/dist/plugins/Monetization/LimitCard.js +7 -0
  297. package/dist/plugins/Monetization/LimitCard.js.map +1 -0
  298. package/dist/plugins/Monetization/LimitCard.style.js +18 -0
  299. package/dist/plugins/Monetization/LimitCard.style.js.map +1 -0
  300. package/dist/plugins/Monetization/LimitCard.vue.css +1 -0
  301. package/dist/plugins/Monetization/LimitCard.vue2.js +47 -84
  302. package/dist/plugins/Monetization/LimitCard.vue2.js.map +1 -1
  303. package/dist/plugins/Monetization/MonetizationSidebar.js +5 -0
  304. package/dist/plugins/Monetization/MonetizationSidebar.js.map +1 -0
  305. package/dist/plugins/Monetization/MonetizationSidebar.vue2.js +106 -5
  306. package/dist/plugins/Monetization/MonetizationSidebar.vue2.js.map +1 -1
  307. package/dist/plugins/Monetization/RunStatus.js +7 -0
  308. package/dist/plugins/Monetization/RunStatus.js.map +1 -0
  309. package/dist/plugins/Monetization/RunStatus.style.js +13 -0
  310. package/dist/plugins/Monetization/RunStatus.style.js.map +1 -0
  311. package/dist/plugins/Monetization/RunStatus.vue.css +1 -0
  312. package/dist/plugins/Monetization/RunStatus.vue2.js +21 -40
  313. package/dist/plugins/Monetization/RunStatus.vue2.js.map +1 -1
  314. package/dist/plugins/Monetization/UserCabinetCard.js +7 -0
  315. package/dist/plugins/Monetization/UserCabinetCard.js.map +1 -0
  316. package/dist/plugins/Monetization/UserCabinetCard.style.js +12 -0
  317. package/dist/plugins/Monetization/UserCabinetCard.style.js.map +1 -0
  318. package/dist/plugins/Monetization/UserCabinetCard.vue.css +1 -0
  319. package/dist/plugins/Monetization/UserCabinetCard.vue2.js +50 -70
  320. package/dist/plugins/Monetization/UserCabinetCard.vue2.js.map +1 -1
  321. package/dist/plugins/Monetization/useButtonTarget.js +15 -16
  322. package/dist/plugins/Monetization/useButtonTarget.js.map +1 -1
  323. package/dist/plugins/Monetization/useInfo.js +36 -71
  324. package/dist/plugins/Monetization/useInfo.js.map +1 -1
  325. package/dist/plugins/Monetization/validation.js +34 -42
  326. package/dist/plugins/Monetization/validation.js.map +1 -1
  327. package/dist/urls.d.ts.map +1 -1
  328. package/dist/urls.js +4 -5
  329. package/dist/urls.js.map +1 -1
  330. package/dist/usePlugin.js +32 -12
  331. package/dist/usePlugin.js.map +1 -1
  332. package/dist/utils.d.ts.map +1 -1
  333. package/dist/utils.js +29 -54
  334. package/dist/utils.js.map +1 -1
  335. package/package.json +9 -9
  336. package/src/components/PlAgDataTable/PlAgDataTableV2.vue +57 -9
  337. package/dist/_virtual/_plugin-vue_export-helper.js.map +0 -1
  338. package/dist/components/BlockLayout.css +0 -1
  339. package/dist/components/BlockLayout.vue.js +0 -10
  340. package/dist/components/BlockLayout.vue.js.map +0 -1
  341. package/dist/components/BlockLayout.vue3.js +0 -8
  342. package/dist/components/BlockLayout.vue3.js.map +0 -1
  343. package/dist/components/BlockLoader.vue.js +0 -26
  344. package/dist/components/BlockLoader.vue.js.map +0 -1
  345. package/dist/components/LoaderPage.vue.js +0 -15
  346. package/dist/components/LoaderPage.vue.js.map +0 -1
  347. package/dist/components/NotFound.vue.js +0 -26
  348. package/dist/components/NotFound.vue.js.map +0 -1
  349. package/dist/components/PlAdvancedFilter/FilterEditor.css +0 -1
  350. package/dist/components/PlAdvancedFilter/FilterEditor.vue.js +0 -10
  351. package/dist/components/PlAdvancedFilter/FilterEditor.vue.js.map +0 -1
  352. package/dist/components/PlAdvancedFilter/FilterEditor.vue3.js +0 -32
  353. package/dist/components/PlAdvancedFilter/FilterEditor.vue3.js.map +0 -1
  354. package/dist/components/PlAdvancedFilter/OperandButton.css +0 -1
  355. package/dist/components/PlAdvancedFilter/OperandButton.vue.js +0 -10
  356. package/dist/components/PlAdvancedFilter/OperandButton.vue.js.map +0 -1
  357. package/dist/components/PlAdvancedFilter/OperandButton.vue3.js +0 -12
  358. package/dist/components/PlAdvancedFilter/OperandButton.vue3.js.map +0 -1
  359. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.css +0 -1
  360. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.js +0 -10
  361. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.js.map +0 -1
  362. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue3.js +0 -20
  363. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue3.js.map +0 -1
  364. package/dist/components/PlAgCellFile/PlAgCellFile.vue.js +0 -32
  365. package/dist/components/PlAgCellFile/PlAgCellFile.vue.js.map +0 -1
  366. package/dist/components/PlAgCellProgress/PlAgCellProgress.vue.js +0 -16
  367. package/dist/components/PlAgCellProgress/PlAgCellProgress.vue.js.map +0 -1
  368. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue.js +0 -22
  369. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue.js.map +0 -1
  370. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue3.js +0 -6
  371. package/dist/components/PlAgCellStatusTag/PlAgCellStatusTag.vue3.js.map +0 -1
  372. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.css +0 -1
  373. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue.js +0 -32
  374. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue.js.map +0 -1
  375. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue3.js +0 -6
  376. package/dist/components/PlAgChartHistogramCell/PlAgChartHistogramCell.vue3.js.map +0 -1
  377. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.css +0 -1
  378. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue.js +0 -24
  379. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue.js.map +0 -1
  380. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue3.js +0 -6
  381. package/dist/components/PlAgChartStackedBarCell/PlAgChartStackedBarCell.vue3.js.map +0 -1
  382. package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue.js +0 -97
  383. package/dist/components/PlAgColumnHeader/PlAgColumnHeader.vue.js.map +0 -1
  384. package/dist/components/PlAgCsvExporter/PlAgCsvExporter.vue.js +0 -33
  385. package/dist/components/PlAgCsvExporter/PlAgCsvExporter.vue.js.map +0 -1
  386. package/dist/components/PlAgDataTable/PlAgDataTableSheets.css +0 -1
  387. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue.js +0 -10
  388. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue.js.map +0 -1
  389. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue3.js +0 -8
  390. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue3.js.map +0 -1
  391. package/dist/components/PlAgDataTable/PlAgDataTableV2.css +0 -1
  392. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.js +0 -10
  393. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.js.map +0 -1
  394. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue3.js +0 -10
  395. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue3.js.map +0 -1
  396. package/dist/components/PlAgDataTable/PlAgOverlayLoading.vue.js +0 -48
  397. package/dist/components/PlAgDataTable/PlAgOverlayLoading.vue.js.map +0 -1
  398. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue.js +0 -22
  399. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue.js.map +0 -1
  400. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue3.js +0 -6
  401. package/dist/components/PlAgDataTable/PlAgOverlayNoRows.vue3.js.map +0 -1
  402. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js +0 -26
  403. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js.map +0 -1
  404. package/dist/components/PlAgDataTable/ag-override.css.js +0 -31
  405. package/dist/components/PlAgDataTable/ag-override.css.js.map +0 -1
  406. package/dist/components/PlAgDataTable/pl-ag-overlay-loading.module.scss.js +0 -14
  407. package/dist/components/PlAgDataTable/pl-ag-overlay-loading.module.scss.js.map +0 -1
  408. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.js +0 -10
  409. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.js.map +0 -1
  410. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue3.js +0 -8
  411. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue3.js.map +0 -1
  412. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js +0 -48
  413. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js.map +0 -1
  414. package/dist/components/PlAgRowNumCheckbox/pl-ag-row-num-checkbox.module.scss.js +0 -15
  415. package/dist/components/PlAgRowNumCheckbox/pl-ag-row-num-checkbox.module.scss.js.map +0 -1
  416. package/dist/components/PlAgRowNumHeader.vue.js +0 -39
  417. package/dist/components/PlAgRowNumHeader.vue.js.map +0 -1
  418. package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.js +0 -45
  419. package/dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.js.map +0 -1
  420. package/dist/components/PlAnnotations/components/AnnotationsSidebar.css +0 -1
  421. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.js +0 -10
  422. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.js.map +0 -1
  423. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue3.js +0 -18
  424. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue3.js.map +0 -1
  425. package/dist/components/PlAnnotations/components/FilterSidebar.css +0 -1
  426. package/dist/components/PlAnnotations/components/FilterSidebar.vue.js +0 -10
  427. package/dist/components/PlAnnotations/components/FilterSidebar.vue.js.map +0 -1
  428. package/dist/components/PlAnnotations/components/FilterSidebar.vue3.js +0 -10
  429. package/dist/components/PlAnnotations/components/FilterSidebar.vue3.js.map +0 -1
  430. package/dist/components/PlAnnotations/components/PlAnnotations.vue.js +0 -10
  431. package/dist/components/PlAnnotations/components/PlAnnotations.vue.js.map +0 -1
  432. package/dist/components/PlAnnotations/components/PlAnnotations.vue3.js +0 -8
  433. package/dist/components/PlAnnotations/components/PlAnnotations.vue3.js.map +0 -1
  434. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.js +0 -10
  435. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.js.map +0 -1
  436. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue3.js +0 -10
  437. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue3.js.map +0 -1
  438. package/dist/components/PlAnnotations/components/style.module.css.js +0 -12
  439. package/dist/components/PlAnnotations/components/style.module.css.js.map +0 -1
  440. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js +0 -79
  441. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js.map +0 -1
  442. package/dist/components/PlBtnExportArchive/Item.css +0 -1
  443. package/dist/components/PlBtnExportArchive/Item.vue.js +0 -10
  444. package/dist/components/PlBtnExportArchive/Item.vue.js.map +0 -1
  445. package/dist/components/PlBtnExportArchive/Item.vue3.js +0 -14
  446. package/dist/components/PlBtnExportArchive/Item.vue3.js.map +0 -1
  447. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.css +0 -1
  448. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue.js +0 -10
  449. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue.js.map +0 -1
  450. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue3.js +0 -12
  451. package/dist/components/PlBtnExportArchive/PlBtnExportArchive.vue3.js.map +0 -1
  452. package/dist/components/PlBtnExportArchive/Summary.css +0 -1
  453. package/dist/components/PlBtnExportArchive/Summary.vue.js +0 -10
  454. package/dist/components/PlBtnExportArchive/Summary.vue.js.map +0 -1
  455. package/dist/components/PlBtnExportArchive/Summary.vue3.js +0 -12
  456. package/dist/components/PlBtnExportArchive/Summary.vue3.js.map +0 -1
  457. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.js +0 -54
  458. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.js.map +0 -1
  459. package/dist/components/PlTableFilters/PlTableFiltersV2.css +0 -1
  460. package/dist/components/PlTableFilters/PlTableFiltersV2.vue.js +0 -10
  461. package/dist/components/PlTableFilters/PlTableFiltersV2.vue.js.map +0 -1
  462. package/dist/components/PlTableFilters/PlTableFiltersV2.vue3.js +0 -8
  463. package/dist/components/PlTableFilters/PlTableFiltersV2.vue3.js.map +0 -1
  464. package/dist/plugins/Monetization/EndOfPeriod.css +0 -1
  465. package/dist/plugins/Monetization/EndOfPeriod.vue.js +0 -10
  466. package/dist/plugins/Monetization/EndOfPeriod.vue.js.map +0 -1
  467. package/dist/plugins/Monetization/EndOfPeriod.vue3.js +0 -8
  468. package/dist/plugins/Monetization/EndOfPeriod.vue3.js.map +0 -1
  469. package/dist/plugins/Monetization/LimitCard.css +0 -1
  470. package/dist/plugins/Monetization/LimitCard.vue.js +0 -10
  471. package/dist/plugins/Monetization/LimitCard.vue.js.map +0 -1
  472. package/dist/plugins/Monetization/LimitCard.vue3.js +0 -32
  473. package/dist/plugins/Monetization/LimitCard.vue3.js.map +0 -1
  474. package/dist/plugins/Monetization/MonetizationSidebar.vue.js +0 -138
  475. package/dist/plugins/Monetization/MonetizationSidebar.vue.js.map +0 -1
  476. package/dist/plugins/Monetization/RunStatus.css +0 -1
  477. package/dist/plugins/Monetization/RunStatus.vue.js +0 -10
  478. package/dist/plugins/Monetization/RunStatus.vue.js.map +0 -1
  479. package/dist/plugins/Monetization/RunStatus.vue3.js +0 -20
  480. package/dist/plugins/Monetization/RunStatus.vue3.js.map +0 -1
  481. package/dist/plugins/Monetization/UserCabinetCard.css +0 -1
  482. package/dist/plugins/Monetization/UserCabinetCard.vue.js +0 -10
  483. package/dist/plugins/Monetization/UserCabinetCard.vue.js.map +0 -1
  484. package/dist/plugins/Monetization/UserCabinetCard.vue3.js +0 -20
  485. package/dist/plugins/Monetization/UserCabinetCard.vue3.js.map +0 -1
  486. /package/dist/components/PlAgCellStatusTag/{PlAgCellStatusTag.css → PlAgCellStatusTag.style.css} +0 -0
  487. /package/dist/components/PlAgGridColumnManager/{PlAgGridColumnManager.css → PlAgGridColumnManager.vue.css} +0 -0
  488. /package/dist/components/PlAnnotations/components/{PlAnnotations.css → PlAnnotations.vue.css} +0 -0
  489. /package/dist/components/PlAnnotations/components/{PlAnnotationsModal.css → PlAnnotationsModal.vue.css} +0 -0
@@ -1,337 +1,326 @@
1
- import { defineComponent as re, mergeModels as q, useModel as J, toRefs as ie, computed as H, ref as L, watch as R, effectScope as ue, watchEffect as de, createElementBlock as ce, openBlock as T, normalizeClass as j, createBlock as P, createCommentVNode as F, createVNode as Q, unref as r, isRef as K, createSlots as me, withCtx as W, renderSlot as X } from "vue";
2
- import { isJsonEqual as d } from "../../lib/util/helpers/dist/objects.js";
3
- import { promiseTimeout as fe } from "../../lib/util/helpers/dist/functions.js";
4
- import { getAxisId as Y, matchAxisId as Z, canonicalizeJson as _, createPlSelectionModel as $, getRawPlatformaInstance as ve, isAbortError as pe } from "@platforma-sdk/model";
5
- import { AgGridVue as Se } from "ag-grid-vue3";
6
- import { AgGridTheme as ye } from "../../aggrid.js";
7
- import ge from "../PlAgCsvExporter/PlAgCsvExporter.vue.js";
8
- import Ce from "../PlTableFilters/PlTableFiltersV2.vue.js";
9
- import he from "./PlAgDataTableSheets.vue.js";
10
- import we from "./PlAgRowCount.vue.js";
11
- import { DeferredCircular as be, ensureNodeVisible as xe } from "./sources/focus-row.js";
12
- import { PlAgDataTableRowNumberColId as De } from "./sources/row-number.js";
13
- import { calculateGridOptions as Re } from "./sources/table-source-v2.js";
14
- import { useTableState as Te } from "./sources/table-state-v2.js";
15
- import { useFilterableColumns as Ie } from "./compositions/useFilterableColumns.js";
16
- import { useGrid as Ve } from "./compositions/useGrid.js";
17
- import Pe from "../PlAgGridColumnManager/PlAgGridColumnManager.vue.js";
18
- import Oe from "../PlTableFastSearch/PlTableFastSearch.vue.js";
19
- const We = /* @__PURE__ */ re({
20
- __name: "PlAgDataTableV2",
21
- props: /* @__PURE__ */ q({
22
- settings: {},
23
- disableColumnsPanel: { type: Boolean },
24
- disableFiltersPanel: { type: Boolean },
25
- showExportButton: { type: Boolean },
26
- showCellButtonForAxisId: {},
27
- cellButtonInvokeRowsOnDoubleClick: { type: Boolean },
28
- loadingText: {},
29
- runningText: {},
30
- notReadyText: {},
31
- noRowsText: {},
32
- cellRendererSelector: { type: Function }
33
- }, {
34
- modelValue: {
35
- required: !0
36
- },
37
- modelModifiers: {},
38
- selection: {},
39
- selectionModifiers: {}
40
- }),
41
- emits: /* @__PURE__ */ q(["rowDoubleClicked", "cellButtonClicked", "newDataRendered"], ["update:modelValue", "update:selection"]),
42
- setup(g, { expose: ee, emit: te }) {
43
- const le = J(g, "modelValue"), o = J(g, "selection"), s = g, { settings: I } = ie(s), O = te, D = new be(), { gridApi: i, gridOptions: a } = Ve({
44
- selection: o.value,
45
- noRowsText: s.noRowsText,
46
- runningText: s.runningText,
47
- loadingText: s.loadingText,
48
- notReadyText: s.notReadyText,
49
- cellRendererSelector: s.cellRendererSelector
50
- });
51
- a.value.onGridPreDestroyed = (e) => {
52
- a.value.initialState = C.value = G(e.api.getState()), i.value = null;
53
- }, a.value.onRowDoubleClicked = (e) => {
54
- e.data && e.data.axesKey && O("rowDoubleClicked", e.data.axesKey);
55
- }, a.value.onStateUpdated = (e) => {
56
- var n;
57
- let t = G(e.state);
58
- const l = ((n = C.value.columnVisibility) == null ? void 0 : n.hiddenColIds) !== void 0;
59
- t.columnVisibility === void 0 && l && (t = { ...t, columnVisibility: { hiddenColIds: [] } }), a.value.initialState = C.value = t, d(e.sources, ["columnSizing"]) || e.api.autoSizeColumns(
60
- e.api.getAllDisplayedColumns().filter((c) => c.getColId() !== De)
61
- );
62
- };
63
- const [oe, ae] = Ie(
64
- () => I.value.sourceId,
65
- () => a.value.columnDefs ?? null
66
- ), { gridState: C, sheetsState: V, filtersState: k, searchString: B } = Te(
67
- le,
68
- I,
69
- ae
70
- ), ne = H(() => {
71
- const e = { ...I.value };
72
- return e.sourceId !== null ? {
73
- sheets: e.sheets ?? [],
74
- cachedState: [...V.value]
75
- } : {
76
- sheets: [],
77
- cachedState: []
78
- };
79
- });
80
- a.value.initialState = C.value;
81
- function G(e) {
82
- return {
83
- columnOrder: e.columnOrder,
84
- sort: e.sort,
85
- columnVisibility: e.columnVisibility
86
- };
87
- }
88
- function z(e) {
89
- const t = e.columnVisibility, l = !t || t.hiddenColIds.length === 0 ? void 0 : e.columnVisibility;
90
- return { ...e, columnVisibility: l };
91
- }
92
- const E = L(0);
93
- R(
94
- () => [i.value, C.value],
95
- ([e, t]) => {
96
- if (!e || e.isDestroyed()) return;
97
- const l = G(e.getState());
98
- !d(t, {}) && !d(z(t), z(l)) && (a.value.initialState = t, ++E.value);
99
- }
100
- );
101
- const se = H(() => s.cellRendererSelector ?? null);
102
- R(
103
- () => [i.value, se.value],
104
- ([e, t]) => {
105
- !e || e.isDestroyed() || e.setGridOption("defaultColDef", {
106
- ...a.value.defaultColDef,
107
- cellRendererSelector: t ?? void 0
108
- });
109
- }
110
- ), ee({
111
- focusRow: async (e) => {
112
- const t = await D.promise;
113
- return t.isDestroyed() ? !1 : xe(t, (l) => {
114
- var n;
115
- return d((n = l.data) == null ? void 0 : n.axesKey, e);
116
- });
117
- },
118
- updateSelection: async ({ axesSpec: e, selectedKeys: t }) => {
119
- var b, y;
120
- const l = await D.promise;
121
- if (l.isDestroyed()) return !1;
122
- const n = (b = o.value) == null ? void 0 : b.axesSpec;
123
- if (!n || n.length !== e.length) return !1;
124
- const c = e.map((p) => {
125
- const S = Y(p);
126
- return n.findIndex((x) => Z(x, S));
127
- }), w = new Set(c);
128
- if (w.has(-1) || w.size !== e.length) return !1;
129
- const u = t.map(
130
- (p) => _(c.map((S) => p[S]))
131
- ), m = ((y = l.getServerSideSelectionState()) == null ? void 0 : y.toggledNodes) ?? [];
132
- if (!d(m, u)) {
133
- l.setServerSideSelectionState({
134
- selectAll: !1,
135
- toggledNodes: u
136
- });
137
- const p = ue(), { resolve: S, promise: x } = Promise.withResolvers();
138
- p.run(() => R(o, S, { once: !0 }));
139
- try {
140
- await fe(x, 500);
141
- } catch {
142
- return !1;
143
- } finally {
144
- p.stop();
145
- }
146
- }
147
- return !0;
148
- }
149
- });
150
- const M = $();
151
- let v = null;
152
- const h = L(0);
153
- return R(
154
- () => [i.value, I.value],
155
- ([e, t]) => {
156
- var l, n;
157
- if (!(!e || e.isDestroyed()) && !d(t, v)) {
158
- ++h.value;
159
- try {
160
- if (e.hideOverlay(), D.reset(), t.sourceId === null) {
161
- e.updateGridOptions({
162
- loading: !0,
163
- loadingOverlayComponentParams: {
164
- ...a.value.loadingOverlayComponentParams,
165
- variant: t.pending ? "running" : "not-ready"
166
- },
167
- columnDefs: void 0,
168
- serverSideDatasource: void 0
169
- }), o.value && (o.value && !d(o.value, M) && (o.value = $()), e.setServerSideSelectionState({
170
- selectAll: !1,
171
- toggledNodes: []
172
- }));
173
- return;
174
- }
175
- t.sourceId !== (v == null ? void 0 : v.sourceId) && (e.updateGridOptions({
176
- loading: !0,
177
- loadingOverlayComponentParams: {
178
- ...a.value.loadingOverlayComponentParams,
179
- variant: "loading"
180
- }
181
- }), o.value && (v != null && v.sourceId) && (o.value && !d(o.value, M) && (o.value = $()), e.setServerSideSelectionState({
182
- selectAll: !1,
183
- toggledNodes: []
184
- })));
185
- const c = ((l = t.model) == null ? void 0 : l.sourceId) && t.model.sourceId !== t.sourceId;
186
- if (!t.model || c) {
187
- const u = e.getServerSideGroupLevelState(), m = !c && u.length > 0 ? u[0].rowCount : 1;
188
- return e.updateGridOptions({
189
- serverSideDatasource: {
190
- getRows: (b) => {
191
- b.success({ rowData: [], rowCount: m });
192
- }
193
- }
194
- });
195
- }
196
- const w = h.value;
197
- Re({
198
- generation: h,
199
- pfDriver: ve().pFrameDriver,
200
- model: t.model,
201
- sheets: t.sheets ?? [],
202
- dataRenderedTracker: D,
203
- hiddenColIds: (n = C.value.columnVisibility) == null ? void 0 : n.hiddenColIds,
204
- cellButtonAxisParams: {
205
- showCellButtonForAxisId: s.showCellButtonForAxisId,
206
- cellButtonInvokeRowsOnDoubleClick: s.cellButtonInvokeRowsOnDoubleClick,
207
- trigger: (u) => O("cellButtonClicked", u)
208
- }
209
- }).then((u) => {
210
- if (e.isDestroyed() || w !== h.value) return;
211
- const { axesSpec: m, ...b } = u;
212
- if (e.updateGridOptions({
213
- ...b
214
- }), o.value) {
215
- const { axesSpec: y, selectedKeys: p } = o.value;
216
- if (!d(y, m)) {
217
- if (!y || m.length !== y.length) {
218
- const f = { axesSpec: m, selectedKeys: [] };
219
- return d(o.value, f) || (o.value = f), e.setServerSideSelectionState({
220
- selectAll: !1,
221
- toggledNodes: []
222
- });
223
- }
224
- const S = y.map(Y).map((f) => m.findIndex((N) => Z(N, f))), x = new Set(S);
225
- if (x.has(-1) || x.size !== m.length) {
226
- const f = { axesSpec: m, selectedKeys: [] };
227
- return d(o.value, f) || (o.value = f), e.setServerSideSelectionState({
228
- selectAll: !1,
229
- toggledNodes: []
230
- });
231
- }
232
- const A = p.map(
233
- (f) => S.map((N) => f[N])
234
- ), U = { axesSpec: m, selectedKeys: A };
235
- return d(o.value, U) || (o.value = U), e.setServerSideSelectionState({
236
- selectAll: !1,
237
- toggledNodes: A.map((f) => _(f))
238
- });
239
- }
240
- }
241
- }).catch((u) => {
242
- e.isDestroyed() || w !== h.value || pe(u) || console.trace(u);
243
- }).finally(() => {
244
- e.isDestroyed() || w !== h.value || e.updateGridOptions({
245
- loading: !1
246
- });
247
- }), D.promise.then(() => O("newDataRendered"));
248
- } catch (c) {
249
- console.trace(c);
250
- } finally {
251
- v = t;
252
- }
253
- }
254
- }
255
- ), R(
256
- () => ({
257
- gridApi: i.value,
258
- loadingText: s.loadingText,
259
- runningText: s.runningText,
260
- notReadyText: s.notReadyText,
261
- noRowsText: s.noRowsText
262
- }),
263
- ({ gridApi: e, loadingText: t, runningText: l, notReadyText: n, noRowsText: c }) => {
264
- !e || e.isDestroyed() || e.updateGridOptions({
265
- loadingOverlayComponentParams: {
266
- ...a.value.loadingOverlayComponentParams,
267
- loadingText: t,
268
- runningText: l,
269
- notReadyText: n
270
- },
271
- noRowsOverlayComponentParams: {
272
- ...a.value.noRowsOverlayComponentParams,
273
- text: c
274
- }
275
- });
276
- }
277
- ), de(() => {
278
- var e;
279
- !i.value || (e = i.value) != null && e.isDestroyed() || i.value.updateGridOptions({
280
- statusBar: a.value.loading ? void 0 : {
281
- statusPanels: [{ statusPanel: we, align: "left" }]
282
- }
283
- });
284
- }), (e, t) => (T(), ce("div", {
285
- class: j(e.$style.container)
286
- }, [
287
- r(i) && !g.disableColumnsPanel ? (T(), P(r(Pe), {
288
- key: 0,
289
- api: r(i)
290
- }, null, 8, ["api"])) : F("", !0),
291
- g.disableFiltersPanel ? F("", !0) : (T(), P(Ce, {
292
- key: 1,
293
- modelValue: r(k),
294
- "onUpdate:modelValue": t[0] || (t[0] = (l) => K(k) ? k.value = l : null),
295
- columns: r(oe)
296
- }, null, 8, ["modelValue", "columns"])),
297
- r(i) && g.showExportButton ? (T(), P(ge, {
298
- key: 2,
299
- api: r(i)
300
- }, null, 8, ["api"])) : F("", !0),
301
- Q(he, {
302
- modelValue: r(V),
303
- "onUpdate:modelValue": t[1] || (t[1] = (l) => K(V) ? V.value = l : null),
304
- settings: ne.value
305
- }, me({ _: 2 }, [
306
- e.$slots["before-sheets"] ? {
307
- name: "before",
308
- fn: W(() => [
309
- X(e.$slots, "before-sheets")
310
- ]),
311
- key: "0"
312
- } : void 0,
313
- e.$slots["after-sheets"] ? {
314
- name: "after",
315
- fn: W(() => [
316
- X(e.$slots, "after-sheets")
317
- ]),
318
- key: "1"
319
- } : void 0
320
- ]), 1032, ["modelValue", "settings"]),
321
- Q(r(Oe), {
322
- modelValue: r(B),
323
- "onUpdate:modelValue": t[2] || (t[2] = (l) => K(B) ? B.value = l : null)
324
- }, null, 8, ["modelValue"]),
325
- (T(), P(r(Se), {
326
- key: E.value,
327
- theme: r(ye),
328
- class: j(e.$style.grid),
329
- "grid-options": r(a)
330
- }, null, 8, ["theme", "class", "grid-options"]))
331
- ], 2));
332
- }
1
+ import { isJsonEqual as e } from "../../lib/util/helpers/dist/objects.js";
2
+ import { promiseTimeout as t } from "../../lib/util/helpers/dist/functions.js";
3
+ import "../../lib/util/helpers/dist/index.js";
4
+ import { AgGridTheme as n } from "../../aggrid.js";
5
+ import r from "../PlAgCsvExporter/PlAgCsvExporter.js";
6
+ import { PlAgDataTableRowNumberColId as i } from "./sources/row-number.js";
7
+ import a from "../PlAgGridColumnManager/PlAgGridColumnManager.js";
8
+ import o from "../PlTableFilters/PlTableFiltersV2.js";
9
+ import s from "../PlTableFastSearch/PlTableFastSearch.js";
10
+ import c from "./PlAgDataTableSheets.js";
11
+ import ee from "./PlAgRowCount.js";
12
+ import { DeferredCircular as te, ensureNodeVisible as l } from "./sources/focus-row.js";
13
+ import { calculateGridOptions as u } from "./sources/table-source-v2.js";
14
+ import { useTableState as ne } from "./sources/table-state-v2.js";
15
+ import { useFilterableColumns as re } from "./compositions/useFilterableColumns.js";
16
+ import { useGrid as ie } from "./compositions/useGrid.js";
17
+ import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as ae, createSlots as m, createVNode as h, defineComponent as g, effectScope as _, isRef as v, mergeModels as y, nextTick as oe, normalizeClass as b, openBlock as x, ref as S, renderSlot as C, toRefs as se, unref as w, useModel as T, watch as E, watchEffect as D, withCtx as O } from "vue";
18
+ import { canonicalizeJson as k, createPlSelectionModel as A, getAxisId as j, getRawPlatformaInstance as ce, isAbortError as M, isColumnOptional as le, matchAxisId as N } from "@platforma-sdk/model";
19
+ import { AgGridVue as ue } from "ag-grid-vue3";
20
+ var P = /* @__PURE__ */ g({
21
+ __name: "PlAgDataTableV2",
22
+ props: /* @__PURE__ */ y({
23
+ settings: {},
24
+ disableColumnsPanel: { type: Boolean },
25
+ disableFiltersPanel: { type: Boolean },
26
+ showExportButton: { type: Boolean },
27
+ showCellButtonForAxisId: {},
28
+ cellButtonInvokeRowsOnDoubleClick: { type: Boolean },
29
+ loadingText: {},
30
+ runningText: {},
31
+ notReadyText: {},
32
+ noRowsText: {},
33
+ cellRendererSelector: { type: Function }
34
+ }, {
35
+ modelValue: { required: !0 },
36
+ modelModifiers: {},
37
+ selection: {},
38
+ selectionModifiers: {}
39
+ }),
40
+ emits: /* @__PURE__ */ y([
41
+ "rowDoubleClicked",
42
+ "cellButtonClicked",
43
+ "newDataRendered"
44
+ ], ["update:modelValue", "update:selection"]),
45
+ setup(g, { expose: y, emit: P }) {
46
+ let de = T(g, "modelValue"), F = T(g, "selection"), I = g, { settings: L } = se(I), R = P, z = new te(), { gridApi: B, gridOptions: V } = ie({
47
+ selection: F.value,
48
+ noRowsText: I.noRowsText,
49
+ runningText: I.runningText,
50
+ loadingText: I.loadingText,
51
+ notReadyText: I.notReadyText,
52
+ cellRendererSelector: I.cellRendererSelector
53
+ }), H = !1;
54
+ V.value.onGridPreDestroyed = (e) => {
55
+ H || (V.value.initialState = U.value = J(q(e.api.getState()), U.value, e.api)), B.value = null;
56
+ }, V.value.onRowDoubleClicked = (e) => {
57
+ e.data && e.data.axesKey && R("rowDoubleClicked", e.data.axesKey);
58
+ }, V.value.onStateUpdated = (t) => {
59
+ let n = J(q(t.state), U.value, t.api);
60
+ V.value.initialState = U.value = n, e(t.sources, ["columnSizing"]) || t.api.autoSizeColumns(t.api.getAllDisplayedColumns().filter((e) => e.getColId() !== i));
61
+ };
62
+ let [fe, pe] = re(() => L.value.sourceId, () => V.value.columnDefs ?? null), { gridState: U, sheetsState: W, filtersState: G, searchString: K } = ne(de, L, pe), me = d(() => {
63
+ let e = { ...L.value };
64
+ return e.sourceId === null ? {
65
+ sheets: [],
66
+ cachedState: []
67
+ } : {
68
+ sheets: e.sheets ?? [],
69
+ cachedState: [...W.value]
70
+ };
71
+ });
72
+ V.value.initialState = U.value;
73
+ function q(e) {
74
+ return {
75
+ columnOrder: e.columnOrder,
76
+ sort: e.sort,
77
+ columnVisibility: e.columnVisibility
78
+ };
79
+ }
80
+ function J(e, t, n) {
81
+ if (e.columnVisibility !== void 0) return e;
82
+ if (t.columnVisibility !== void 0) return {
83
+ ...e,
84
+ columnVisibility: { hiddenColIds: [] }
85
+ };
86
+ let r = he(n);
87
+ return r.length > 0 ? {
88
+ ...e,
89
+ columnVisibility: { hiddenColIds: r }
90
+ } : e;
91
+ }
92
+ function he(e) {
93
+ let t = e.getAllGridColumns();
94
+ return t ? t.filter((e) => {
95
+ let t = e.getColDef().context;
96
+ return t && le(t.spec);
97
+ }).map((e) => e.getColId()) : [];
98
+ }
99
+ function Y(e) {
100
+ let t = e.columnVisibility, n = !t || t.hiddenColIds.length === 0 ? void 0 : e.columnVisibility;
101
+ return {
102
+ ...e,
103
+ columnVisibility: n
104
+ };
105
+ }
106
+ let X = S(0);
107
+ E(() => [B.value, U.value], ([t, n]) => {
108
+ if (!t || t.isDestroyed()) return;
109
+ let r = q(t.getState());
110
+ !e(n, {}) && !e(Y(n), Y(r)) && (H = !0, V.value.initialState = n, ++X.value, oe(() => {
111
+ H = !1;
112
+ }));
113
+ });
114
+ let ge = d(() => I.cellRendererSelector ?? null);
115
+ E(() => [B.value, ge.value], ([e, t]) => {
116
+ !e || e.isDestroyed() || e.setGridOption("defaultColDef", {
117
+ ...V.value.defaultColDef,
118
+ cellRendererSelector: t ?? void 0
119
+ });
120
+ }), y({
121
+ focusRow: async (t) => {
122
+ let n = await z.promise;
123
+ return n.isDestroyed() ? !1 : l(n, (n) => e(n.data?.axesKey, t));
124
+ },
125
+ updateSelection: async ({ axesSpec: n, selectedKeys: r }) => {
126
+ let i = await z.promise;
127
+ if (i.isDestroyed()) return !1;
128
+ let a = F.value?.axesSpec;
129
+ if (!a || a.length !== n.length) return !1;
130
+ let o = n.map((e) => {
131
+ let t = j(e);
132
+ return a.findIndex((e) => N(e, t));
133
+ }), s = new Set(o);
134
+ if (s.has(-1) || s.size !== n.length) return !1;
135
+ let c = r.map((e) => k(o.map((t) => e[t])));
136
+ if (!e(i.getServerSideSelectionState()?.toggledNodes ?? [], c)) {
137
+ i.setServerSideSelectionState({
138
+ selectAll: !1,
139
+ toggledNodes: c
140
+ });
141
+ let e = _(), { resolve: n, promise: r } = Promise.withResolvers();
142
+ e.run(() => E(F, n, { once: !0 }));
143
+ try {
144
+ await t(r, 500);
145
+ } catch {
146
+ return !1;
147
+ } finally {
148
+ e.stop();
149
+ }
150
+ }
151
+ return !0;
152
+ }
153
+ });
154
+ let Z = A(), Q = null, $ = S(0);
155
+ return E(() => [B.value, L.value], ([t, n]) => {
156
+ if (!(!t || t.isDestroyed()) && !e(n, Q)) {
157
+ ++$.value;
158
+ try {
159
+ if (t.hideOverlay(), z.reset(), n.sourceId === null) {
160
+ t.updateGridOptions({
161
+ loading: !0,
162
+ loadingOverlayComponentParams: {
163
+ ...V.value.loadingOverlayComponentParams,
164
+ variant: n.pending ? "running" : "not-ready"
165
+ },
166
+ columnDefs: void 0,
167
+ serverSideDatasource: void 0
168
+ }), F.value && (F.value && !e(F.value, Z) && (F.value = A()), t.setServerSideSelectionState({
169
+ selectAll: !1,
170
+ toggledNodes: []
171
+ }));
172
+ return;
173
+ }
174
+ n.sourceId !== Q?.sourceId && (t.updateGridOptions({
175
+ loading: !0,
176
+ loadingOverlayComponentParams: {
177
+ ...V.value.loadingOverlayComponentParams,
178
+ variant: "loading"
179
+ }
180
+ }), F.value && Q?.sourceId && (F.value && !e(F.value, Z) && (F.value = A()), t.setServerSideSelectionState({
181
+ selectAll: !1,
182
+ toggledNodes: []
183
+ })));
184
+ let r = n.model?.sourceId && n.model.sourceId !== n.sourceId;
185
+ if (!n.model || r) {
186
+ let e = t.getServerSideGroupLevelState(), n = !r && e.length > 0 ? e[0].rowCount : 1;
187
+ return t.updateGridOptions({ serverSideDatasource: { getRows: (e) => {
188
+ e.success({
189
+ rowData: [],
190
+ rowCount: n
191
+ });
192
+ } } });
193
+ }
194
+ let i = $.value;
195
+ u({
196
+ generation: $,
197
+ pfDriver: ce().pFrameDriver,
198
+ model: n.model,
199
+ sheets: n.sheets ?? [],
200
+ dataRenderedTracker: z,
201
+ hiddenColIds: U.value.columnVisibility?.hiddenColIds,
202
+ cellButtonAxisParams: {
203
+ showCellButtonForAxisId: I.showCellButtonForAxisId,
204
+ cellButtonInvokeRowsOnDoubleClick: I.cellButtonInvokeRowsOnDoubleClick,
205
+ trigger: (e) => R("cellButtonClicked", e)
206
+ }
207
+ }).then((n) => {
208
+ if (t.isDestroyed() || i !== $.value) return;
209
+ let { axesSpec: r, ...a } = n;
210
+ if (t.updateGridOptions({ ...a }), F.value) {
211
+ let { axesSpec: n, selectedKeys: i } = F.value;
212
+ if (!e(n, r)) {
213
+ if (!n || r.length !== n.length) {
214
+ let n = {
215
+ axesSpec: r,
216
+ selectedKeys: []
217
+ };
218
+ return e(F.value, n) || (F.value = n), t.setServerSideSelectionState({
219
+ selectAll: !1,
220
+ toggledNodes: []
221
+ });
222
+ }
223
+ let a = n.map(j).map((e) => r.findIndex((t) => N(t, e))), o = new Set(a);
224
+ if (o.has(-1) || o.size !== r.length) {
225
+ let n = {
226
+ axesSpec: r,
227
+ selectedKeys: []
228
+ };
229
+ return e(F.value, n) || (F.value = n), t.setServerSideSelectionState({
230
+ selectAll: !1,
231
+ toggledNodes: []
232
+ });
233
+ }
234
+ let s = i.map((e) => a.map((t) => e[t])), c = {
235
+ axesSpec: r,
236
+ selectedKeys: s
237
+ };
238
+ return e(F.value, c) || (F.value = c), t.setServerSideSelectionState({
239
+ selectAll: !1,
240
+ toggledNodes: s.map((e) => k(e))
241
+ });
242
+ }
243
+ }
244
+ }).catch((e) => {
245
+ t.isDestroyed() || i !== $.value || M(e) || console.trace(e);
246
+ }).finally(() => {
247
+ t.isDestroyed() || i !== $.value || t.updateGridOptions({ loading: !1 });
248
+ }), z.promise.then(() => R("newDataRendered"));
249
+ } catch (e) {
250
+ console.trace(e);
251
+ } finally {
252
+ Q = n;
253
+ }
254
+ }
255
+ }), E(() => ({
256
+ gridApi: B.value,
257
+ loadingText: I.loadingText,
258
+ runningText: I.runningText,
259
+ notReadyText: I.notReadyText,
260
+ noRowsText: I.noRowsText
261
+ }), ({ gridApi: e, loadingText: t, runningText: n, notReadyText: r, noRowsText: i }) => {
262
+ !e || e.isDestroyed() || e.updateGridOptions({
263
+ loadingOverlayComponentParams: {
264
+ ...V.value.loadingOverlayComponentParams,
265
+ loadingText: t,
266
+ runningText: n,
267
+ notReadyText: r
268
+ },
269
+ noRowsOverlayComponentParams: {
270
+ ...V.value.noRowsOverlayComponentParams,
271
+ text: i
272
+ }
273
+ });
274
+ }), D(() => {
275
+ !B.value || B.value?.isDestroyed() || B.value.updateGridOptions({ statusBar: V.value.loading ? void 0 : { statusPanels: [{
276
+ statusPanel: ee,
277
+ align: "left"
278
+ }] } });
279
+ }), (e, t) => (x(), ae("div", { class: b(e.$style.container) }, [
280
+ w(B) && !g.disableColumnsPanel ? (x(), f(w(a), {
281
+ key: 0,
282
+ api: w(B)
283
+ }, null, 8, ["api"])) : p("", !0),
284
+ g.disableFiltersPanel ? p("", !0) : (x(), f(o, {
285
+ key: 1,
286
+ modelValue: w(G),
287
+ "onUpdate:modelValue": t[0] ||= (e) => v(G) ? G.value = e : null,
288
+ columns: w(fe)
289
+ }, null, 8, ["modelValue", "columns"])),
290
+ w(B) && g.showExportButton ? (x(), f(r, {
291
+ key: 2,
292
+ api: w(B)
293
+ }, null, 8, ["api"])) : p("", !0),
294
+ h(c, {
295
+ modelValue: w(W),
296
+ "onUpdate:modelValue": t[1] ||= (e) => v(W) ? W.value = e : null,
297
+ settings: me.value
298
+ }, m({ _: 2 }, [e.$slots["before-sheets"] ? {
299
+ name: "before",
300
+ fn: O(() => [C(e.$slots, "before-sheets")]),
301
+ key: "0"
302
+ } : void 0, e.$slots["after-sheets"] ? {
303
+ name: "after",
304
+ fn: O(() => [C(e.$slots, "after-sheets")]),
305
+ key: "1"
306
+ } : void 0]), 1032, ["modelValue", "settings"]),
307
+ h(w(s), {
308
+ modelValue: w(K),
309
+ "onUpdate:modelValue": t[2] ||= (e) => v(K) ? K.value = e : null
310
+ }, null, 8, ["modelValue"]),
311
+ (x(), f(w(ue), {
312
+ key: X.value,
313
+ theme: w(n),
314
+ class: b(e.$style.grid),
315
+ "grid-options": w(V)
316
+ }, null, 8, [
317
+ "theme",
318
+ "class",
319
+ "grid-options"
320
+ ]))
321
+ ], 2));
322
+ }
333
323
  });
334
- export {
335
- We as default
336
- };
337
- //# sourceMappingURL=PlAgDataTableV2.vue2.js.map
324
+ export { P as default };
325
+
326
+ //# sourceMappingURL=PlAgDataTableV2.vue2.js.map