@platforma-sdk/ui-vue 1.58.8 → 1.58.9

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