@anzusystems/common-admin 2.0.0-rc.25 → 2.0.0-rc.27

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 (319) hide show
  1. package/dist/AnzuSystemsCommonAdmin.d.ts +22 -1
  2. package/dist/AnzuSystemsCommonAdmin.js.map +1 -1
  3. package/dist/common-admin.css +1 -1
  4. package/dist/common-admin.js +185 -181
  5. package/dist/domains/anzuUser/components/AAnzuUserDatatable.vue_vue_type_script_setup_true_lang.js +101 -100
  6. package/dist/domains/anzuUser/components/AAnzuUserDatatable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  7. package/dist/domains/anzuUser/components/AUserCreateInSystemButton.vue_vue_type_script_setup_true_lang.js +4 -4
  8. package/dist/domains/anzuUser/components/AUserMetadataRepairDialog.vue_vue_type_script_setup_true_lang.js +4 -4
  9. package/dist/domains/anzuUser/components/AUserMetadataRepairDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
  10. package/dist/domains/anzuUser/components/AUserSystemOverview.vue_vue_type_script_setup_true_lang.js +4 -4
  11. package/dist/domains/auth/composables/refreshSession.d.ts +7 -0
  12. package/dist/domains/auth/composables/refreshSession.js +26 -19
  13. package/dist/domains/auth/composables/refreshSession.js.map +1 -1
  14. package/dist/domains/auth/composables/sessionEnd.d.ts +37 -0
  15. package/dist/domains/auth/composables/sessionEnd.js +65 -0
  16. package/dist/domains/auth/composables/sessionEnd.js.map +1 -0
  17. package/dist/domains/collab/components/ACollabCountdown.vue_vue_type_script_setup_true_lang.js +3 -3
  18. package/dist/domains/collab/components/ACollabCountdown.vue_vue_type_script_setup_true_lang.js.map +1 -1
  19. package/dist/domains/collab/composables/collabInit.js +13 -13
  20. package/dist/domains/collab/composables/collabInit.js.map +1 -1
  21. package/dist/domains/collab/composables/collabRoom.js +98 -96
  22. package/dist/domains/collab/composables/collabRoom.js.map +1 -1
  23. package/dist/domains/collab/composables/collabState.d.ts +1 -0
  24. package/dist/domains/collab/composables/collabState.js +6 -5
  25. package/dist/domains/collab/composables/collabState.js.map +1 -1
  26. package/dist/domains/customDataForm/components/ACustomDataForm.vue_vue_type_script_setup_true_lang.js +53 -52
  27. package/dist/domains/customDataForm/components/ACustomDataForm.vue_vue_type_script_setup_true_lang.js.map +1 -1
  28. package/dist/domains/customDataForm/components/ACustomDataFormElement.vue_vue_type_script_setup_true_lang.js +78 -77
  29. package/dist/domains/customDataForm/components/ACustomDataFormElement.vue_vue_type_script_setup_true_lang.js.map +1 -1
  30. package/dist/domains/customDataForm/types/CustomDataForm.d.ts +3 -0
  31. package/dist/domains/customDataForm/utils/customDataFormElementName.d.ts +18 -0
  32. package/dist/domains/customDataForm/utils/customDataFormElementName.js +9 -0
  33. package/dist/domains/customDataForm/utils/customDataFormElementName.js.map +1 -0
  34. package/dist/domains/dam/api/damAssetApi.d.ts +1 -1
  35. package/dist/domains/dam/api/damAssetApi.js +90 -85
  36. package/dist/domains/dam/api/damAssetApi.js.map +1 -1
  37. package/dist/domains/dam/assetDetail/components/AssetImage.vue.d.ts +11 -1
  38. package/dist/domains/dam/assetDetail/components/AssetImage.vue_vue_type_script_setup_true_lang.js +31 -7
  39. package/dist/domains/dam/assetDetail/components/AssetImage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  40. package/dist/domains/dam/assetDetail/components/AssetImageMetaIcons.vue.d.ts +10 -0
  41. package/dist/domains/dam/assetDetail/components/AssetImageMetaIcons.vue_vue_type_script_setup_true_lang.js +59 -32
  42. package/dist/domains/dam/assetDetail/components/AssetImageMetaIcons.vue_vue_type_script_setup_true_lang.js.map +1 -1
  43. package/dist/domains/dam/assetDetail/store/assetDetailStore.d.ts +8 -0
  44. package/dist/domains/dam/assetSelect/components/AAssetListInner.vue.d.ts +8 -0
  45. package/dist/domains/dam/assetSelect/components/AAssetSelect.vue.d.ts +10 -2
  46. package/dist/domains/dam/assetSelect/components/AAssetSelect.vue_vue_type_script_setup_true_lang.js +148 -113
  47. package/dist/domains/dam/assetSelect/components/AAssetSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  48. package/dist/domains/dam/assetSelect/components/AAssetSelectMedia.vue.d.ts +6 -2
  49. package/dist/domains/dam/assetSelect/components/AAssetSelectMedia.vue_vue_type_script_setup_true_lang.js +143 -108
  50. package/dist/domains/dam/assetSelect/components/AAssetSelectMedia.vue_vue_type_script_setup_true_lang.js.map +1 -1
  51. package/dist/domains/dam/assetSelect/components/AssetImagePreview.vue.d.ts +9 -2
  52. package/dist/domains/dam/assetSelect/components/AssetImagePreview.vue_vue_type_script_setup_true_lang.js +23 -5
  53. package/dist/domains/dam/assetSelect/components/AssetImagePreview.vue_vue_type_script_setup_true_lang.js.map +1 -1
  54. package/dist/domains/dam/assetSelect/components/AssetSelectDetailTabs.js +6 -0
  55. package/dist/domains/dam/assetSelect/components/AssetSelectDetailTabs.js.map +1 -0
  56. package/dist/domains/dam/assetSelect/components/AssetSelectDetailTabs.vue.d.ts +25 -0
  57. package/dist/domains/dam/assetSelect/components/AssetSelectDetailTabs.vue_vue_type_script_setup_true_lang.js +59 -0
  58. package/dist/domains/dam/assetSelect/components/AssetSelectDetailTabs.vue_vue_type_script_setup_true_lang.js.map +1 -0
  59. package/dist/domains/dam/assetSelect/components/AssetSelectListTable.js +1 -0
  60. package/dist/domains/dam/assetSelect/components/AssetSelectListTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  61. package/dist/domains/dam/assetSelect/components/AssetSelectListTiles.vue_vue_type_script_setup_true_lang.js.map +1 -1
  62. package/dist/domains/dam/assetSelect/components/AssetSelectSingleUseUsage.js +6 -0
  63. package/dist/domains/dam/assetSelect/components/AssetSelectSingleUseUsage.js.map +1 -0
  64. package/dist/domains/dam/assetSelect/components/AssetSelectSingleUseUsage.vue.d.ts +11 -0
  65. package/dist/domains/dam/assetSelect/components/AssetSelectSingleUseUsage.vue_vue_type_script_setup_true_lang.js +92 -0
  66. package/dist/domains/dam/assetSelect/components/AssetSelectSingleUseUsage.vue_vue_type_script_setup_true_lang.js.map +1 -0
  67. package/dist/domains/dam/assetSelect/components/AssetSelectTableRowItem.vue_vue_type_script_setup_true_lang.js +35 -27
  68. package/dist/domains/dam/assetSelect/components/AssetSelectTableRowItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  69. package/dist/domains/dam/assetSelect/components/AssetSelectTilesItem.vue_vue_type_script_setup_true_lang.js +35 -27
  70. package/dist/domains/dam/assetSelect/components/AssetSelectTilesItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  71. package/dist/domains/dam/assetSelect/composables/assetSelectDisabledReason.d.ts +18 -0
  72. package/dist/domains/dam/assetSelect/composables/assetSelectDisabledReason.js +28 -0
  73. package/dist/domains/dam/assetSelect/composables/assetSelectDisabledReason.js.map +1 -0
  74. package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.d.ts +4 -0
  75. package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.js +37 -28
  76. package/dist/domains/dam/assetSelect/composables/assetSelectItemActions.js.map +1 -1
  77. package/dist/domains/dam/assetSelect/composables/assetSelectListActions.d.ts +46 -3
  78. package/dist/domains/dam/assetSelect/composables/assetSelectListActions.js +136 -93
  79. package/dist/domains/dam/assetSelect/composables/assetSelectListActions.js.map +1 -1
  80. package/dist/domains/dam/assetSelect/composables/assetSelectSingleUseUsage.d.ts +848 -0
  81. package/dist/domains/dam/assetSelect/composables/assetSelectSingleUseUsage.js +83 -0
  82. package/dist/domains/dam/assetSelect/composables/assetSelectSingleUseUsage.js.map +1 -0
  83. package/dist/domains/dam/assetSelect/composables/assetSelectTakeOver.d.ts +17 -0
  84. package/dist/domains/dam/assetSelect/composables/assetSelectTakeOver.js +23 -0
  85. package/dist/domains/dam/assetSelect/composables/assetSelectTakeOver.js.map +1 -0
  86. package/dist/domains/dam/assetSelect/filter/AssetFilter.d.ts +3 -3
  87. package/dist/domains/dam/assetSelect/filter/AssetFilter.js +1 -1
  88. package/dist/domains/dam/assetSelect/filter/AssetFilter.js.map +1 -1
  89. package/dist/domains/dam/assetSelect/store/assetSelectStore.d.ts +118 -4
  90. package/dist/domains/dam/assetSelect/store/assetSelectStore.js +135 -87
  91. package/dist/domains/dam/assetSelect/store/assetSelectStore.js.map +1 -1
  92. package/dist/domains/dam/author/composables/authorActions.js +3 -1
  93. package/dist/domains/dam/author/composables/authorActions.js.map +1 -1
  94. package/dist/domains/dam/author/composables/cachedAuthors.js +6 -2
  95. package/dist/domains/dam/author/composables/cachedAuthors.js.map +1 -1
  96. package/dist/domains/dam/author/composables/damCredit.d.ts +3 -1
  97. package/dist/domains/dam/author/composables/damCredit.js +13 -12
  98. package/dist/domains/dam/author/composables/damCredit.js.map +1 -1
  99. package/dist/domains/dam/author/composables/damSourceBadge.d.ts +13 -0
  100. package/dist/domains/dam/author/composables/damSourceBadge.js +11 -0
  101. package/dist/domains/dam/author/composables/damSourceBadge.js.map +1 -0
  102. package/dist/domains/dam/author/factory/AuthorFactory.js +2 -0
  103. package/dist/domains/dam/author/factory/AuthorFactory.js.map +1 -1
  104. package/dist/domains/dam/author/types/DamAuthor.d.ts +8 -0
  105. package/dist/domains/dam/composables/commonAdminCoreDamOptions.d.ts +3 -0
  106. package/dist/domains/dam/composables/commonAdminCoreDamOptions.js +4 -1
  107. package/dist/domains/dam/composables/commonAdminCoreDamOptions.js.map +1 -1
  108. package/dist/domains/dam/config/api/damAssetCustomFormApi.js +17 -16
  109. package/dist/domains/dam/config/api/damAssetCustomFormApi.js.map +1 -1
  110. package/dist/domains/dam/cropper/components/DamAssetImageRoiSelect.vue_vue_type_script_setup_true_lang.js +62 -48
  111. package/dist/domains/dam/cropper/components/DamAssetImageRoiSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  112. package/dist/domains/dam/cropper/store/imageRoiStore.d.ts +2 -0
  113. package/dist/domains/dam/imageWidget/components/AImageMediaWidget.vue.d.ts +14 -1
  114. package/dist/domains/dam/imageWidget/components/AImageMediaWidget.vue_vue_type_script_setup_true_lang.js +7 -1
  115. package/dist/domains/dam/imageWidget/components/AImageMediaWidget.vue_vue_type_script_setup_true_lang.js.map +1 -1
  116. package/dist/domains/dam/imageWidget/components/AImagePublicInput.vue.d.ts +6 -1
  117. package/dist/domains/dam/imageWidget/components/AImagePublicInput.vue_vue_type_script_setup_true_lang.js +91 -88
  118. package/dist/domains/dam/imageWidget/components/AImagePublicInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  119. package/dist/domains/dam/imageWidget/components/AImageWidget.vue.d.ts +14 -1
  120. package/dist/domains/dam/imageWidget/components/AImageWidget.vue_vue_type_script_setup_true_lang.js +7 -1
  121. package/dist/domains/dam/imageWidget/components/AImageWidget.vue_vue_type_script_setup_true_lang.js.map +1 -1
  122. package/dist/domains/dam/imageWidget/components/AImageWidgetMultiple.vue.d.ts +14 -0
  123. package/dist/domains/dam/imageWidget/components/AImageWidgetMultiple.vue_vue_type_script_setup_true_lang.js +7 -1
  124. package/dist/domains/dam/imageWidget/components/AImageWidgetMultiple.vue_vue_type_script_setup_true_lang.js.map +1 -1
  125. package/dist/domains/dam/imageWidget/components/AImageWidgetSimple.vue.d.ts +6 -0
  126. package/dist/domains/dam/imageWidget/components/ImageDetailDialogMetadata.vue.d.ts +7 -0
  127. package/dist/domains/dam/imageWidget/components/ImageDetailDialogMetadata.vue_vue_type_script_setup_true_lang.js +123 -111
  128. package/dist/domains/dam/imageWidget/components/ImageDetailDialogMetadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
  129. package/dist/domains/dam/imageWidget/components/ImageDetailSingleUseWarning.js +6 -0
  130. package/dist/domains/dam/imageWidget/components/ImageDetailSingleUseWarning.js.map +1 -0
  131. package/dist/domains/dam/imageWidget/components/ImageDetailSingleUseWarning.vue.d.ts +11 -0
  132. package/dist/domains/dam/imageWidget/components/ImageDetailSingleUseWarning.vue_vue_type_script_setup_true_lang.js +59 -0
  133. package/dist/domains/dam/imageWidget/components/ImageDetailSingleUseWarning.vue_vue_type_script_setup_true_lang.js.map +1 -0
  134. package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue.d.ts +18 -1
  135. package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue_vue_type_script_setup_true_lang.js +338 -337
  136. package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  137. package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue.d.ts +22 -1
  138. package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue_vue_type_script_setup_true_lang.js +366 -363
  139. package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  140. package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue.d.ts +18 -0
  141. package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue_vue_type_script_setup_true_lang.js +376 -311
  142. package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  143. package/dist/domains/dam/imageWidget/composables/commonAdminImageOptions.d.ts +9 -0
  144. package/dist/domains/dam/imageWidget/composables/commonAdminImageOptions.js +19 -17
  145. package/dist/domains/dam/imageWidget/composables/commonAdminImageOptions.js.map +1 -1
  146. package/dist/domains/dam/imageWidget/composables/imageApiCms.d.ts +36 -1
  147. package/dist/domains/dam/imageWidget/composables/imageApiCms.js +84 -36
  148. package/dist/domains/dam/imageWidget/composables/imageApiCms.js.map +1 -1
  149. package/dist/domains/dam/imageWidget/composables/imageDialogDamAuthors.d.ts +5 -0
  150. package/dist/domains/dam/imageWidget/composables/imageDialogDamAuthors.js +93 -80
  151. package/dist/domains/dam/imageWidget/composables/imageDialogDamAuthors.js.map +1 -1
  152. package/dist/domains/dam/imageWidget/composables/imageSaveErrors.d.ts +8 -0
  153. package/dist/domains/dam/imageWidget/composables/imageSaveErrors.js +22 -0
  154. package/dist/domains/dam/imageWidget/composables/imageSaveErrors.js.map +1 -0
  155. package/dist/domains/dam/imageWidget/composables/imageSingleUseUsageFetch.d.ts +11 -0
  156. package/dist/domains/dam/imageWidget/composables/imageSingleUseUsageFetch.js +15 -0
  157. package/dist/domains/dam/imageWidget/composables/imageSingleUseUsageFetch.js.map +1 -0
  158. package/dist/domains/dam/imageWidget/store/imageMediaWidgetStore.d.ts +8 -0
  159. package/dist/domains/dam/imageWidget/store/imageStore.d.ts +15 -0
  160. package/dist/domains/dam/imageWidget/store/imageStore.js +24 -14
  161. package/dist/domains/dam/imageWidget/store/imageStore.js.map +1 -1
  162. package/dist/domains/dam/imageWidget/utils/damImage.d.ts +10 -1
  163. package/dist/domains/dam/imageWidget/utils/damImage.js +24 -12
  164. package/dist/domains/dam/imageWidget/utils/damImage.js.map +1 -1
  165. package/dist/domains/dam/types/Asset.d.ts +29 -1
  166. package/dist/domains/dam/types/Asset.js +9 -2
  167. package/dist/domains/dam/types/Asset.js.map +1 -1
  168. package/dist/domains/dam/types/AssetFile.d.ts +1 -0
  169. package/dist/domains/dam/types/AssetFile.js.map +1 -1
  170. package/dist/domains/dam/types/AssetLicence.d.ts +6 -1
  171. package/dist/domains/dam/types/AssetSelect.d.ts +9 -4
  172. package/dist/domains/dam/types/AssetSelect.js.map +1 -1
  173. package/dist/domains/dam/types/ImageAware.d.ts +9 -0
  174. package/dist/domains/dam/types/ImageAware.js +7 -0
  175. package/dist/domains/dam/types/ImageAware.js.map +1 -0
  176. package/dist/domains/dam/uploadQueue/components/AssetCustomMetadataFormMassOperations.vue_vue_type_script_setup_true_lang.js +42 -41
  177. package/dist/domains/dam/uploadQueue/components/AssetCustomMetadataFormMassOperations.vue_vue_type_script_setup_true_lang.js.map +1 -1
  178. package/dist/domains/dam/uploadQueue/components/UploadQueueDialog.vue_vue_type_script_setup_true_lang.js +4 -4
  179. package/dist/domains/dam/uploadQueue/components/UploadQueueEditable.vue_vue_type_script_setup_true_lang.js +59 -58
  180. package/dist/domains/dam/uploadQueue/components/UploadQueueEditable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  181. package/dist/domains/dam/uploadQueue/components/UploadQueueItemErrorOverlay.vue_vue_type_script_setup_true_lang.js +8 -8
  182. package/dist/domains/dam/uploadQueue/components/UploadQueueItemErrorOverlay.vue_vue_type_script_setup_true_lang.js.map +1 -1
  183. package/dist/domains/dam/uploadQueue/composables/uploadService.d.ts +6 -0
  184. package/dist/domains/dam/uploadQueue/composables/uploadService.js +69 -55
  185. package/dist/domains/dam/uploadQueue/composables/uploadService.js.map +1 -1
  186. package/dist/domains/dam/uploadQueue/presets/queuePresets.js +21 -17
  187. package/dist/domains/dam/uploadQueue/presets/queuePresets.js.map +1 -1
  188. package/dist/domains/dam/uploadQueue/presets/uploadPresets.d.ts +4 -0
  189. package/dist/domains/dam/uploadQueue/presets/uploadPresets.js +15 -14
  190. package/dist/domains/dam/uploadQueue/presets/uploadPresets.js.map +1 -1
  191. package/dist/domains/dam/user/composables/cachedAssetLicences.d.ts +2 -0
  192. package/dist/domains/dam/user/composables/cachedAssetLicences.js +11 -8
  193. package/dist/domains/dam/user/composables/cachedAssetLicences.js.map +1 -1
  194. package/dist/domains/filters/bookmarks/components/FilterBookmarkDialog.vue_vue_type_script_setup_true_lang.js +190 -184
  195. package/dist/domains/filters/bookmarks/components/FilterBookmarkDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
  196. package/dist/domains/filters/components/AFilterTimeInterval.js +1 -1
  197. package/dist/domains/filters/components/AFilterTimeInterval.vue_vue_type_script_setup_true_lang.js +85 -84
  198. package/dist/domains/filters/components/AFilterTimeInterval.vue_vue_type_script_setup_true_lang.js.map +1 -1
  199. package/dist/domains/filters/composables/filterFactory.d.ts +13 -1
  200. package/dist/domains/filters/composables/filterFactory.js +171 -120
  201. package/dist/domains/filters/composables/filterFactory.js.map +1 -1
  202. package/dist/domains/filters/composables/filterTimeIntervalTools.js +6 -6
  203. package/dist/domains/filters/composables/filterTimeIntervalTools.js.map +1 -1
  204. package/dist/domains/filters/datatable/components/ADatatableOrdering.vue_vue_type_script_setup_true_lang.js +1 -1
  205. package/dist/domains/filters/datatable/components/ADatatableOrdering.vue_vue_type_script_setup_true_lang.js.map +1 -1
  206. package/dist/domains/filters/datatable/components/ADatatablePagination.vue_vue_type_script_setup_true_lang.js +49 -49
  207. package/dist/domains/filters/datatable/components/ADatatablePagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  208. package/dist/domains/filters/datatable/components/ALiveListingPill.vue.d.ts +3 -0
  209. package/dist/domains/filters/datatable/components/ALiveListingPill.vue_vue_type_script_setup_true_lang.js +54 -27
  210. package/dist/domains/filters/datatable/components/ALiveListingPill.vue_vue_type_script_setup_true_lang.js.map +1 -1
  211. package/dist/domains/filters/utils/filterInjectionKeys.d.ts +1 -0
  212. package/dist/domains/filters/utils/filterInjectionKeys.js +2 -2
  213. package/dist/domains/filters/utils/filterInjectionKeys.js.map +1 -1
  214. package/dist/domains/job/api/jobApi.js +3 -3
  215. package/dist/domains/job/api/jobApi.js.map +1 -1
  216. package/dist/domains/listEditor/components/ANestedSortableListEditor.vue.d.ts +1 -1
  217. package/dist/domains/listEditor/components/ANestedSortableListEditor.vue_vue_type_script_setup_true_lang.js +385 -351
  218. package/dist/domains/listEditor/components/ANestedSortableListEditor.vue_vue_type_script_setup_true_lang.js.map +1 -1
  219. package/dist/domains/listEditor/components/ASortableListEditor.vue_vue_type_script_setup_true_lang.js +277 -260
  220. package/dist/domains/listEditor/components/ASortableListEditor.vue_vue_type_script_setup_true_lang.js.map +1 -1
  221. package/dist/domains/listEditor/composables/useKeyboardNav.d.ts +4 -0
  222. package/dist/domains/listEditor/composables/useKeyboardNav.js +33 -20
  223. package/dist/domains/listEditor/composables/useKeyboardNav.js.map +1 -1
  224. package/dist/domains/log/components/ALogDatatable.vue.d.ts +1 -0
  225. package/dist/domains/log/components/ALogDatatable.vue_vue_type_script_setup_true_lang.js +70 -66
  226. package/dist/domains/log/components/ALogDatatable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  227. package/dist/domains/log/components/ALogListView.vue_vue_type_script_setup_true_lang.js +1 -1
  228. package/dist/domains/log/components/ALogListView.vue_vue_type_script_setup_true_lang.js.map +1 -1
  229. package/dist/domains/log/filter/logFilter.d.ts +5 -0
  230. package/dist/domains/log/filter/logFilter.js +2 -2
  231. package/dist/domains/log/filter/logFilter.js.map +1 -1
  232. package/dist/domains/remoteAutocomplete/components/AFilterRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js +89 -92
  233. package/dist/domains/remoteAutocomplete/components/AFilterRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
  234. package/dist/domains/remoteAutocomplete/components/AFilterRemoteAutocompleteWithMinimal.vue_vue_type_script_setup_true_lang.js +123 -119
  235. package/dist/domains/remoteAutocomplete/components/AFilterRemoteAutocompleteWithMinimal.vue_vue_type_script_setup_true_lang.js.map +1 -1
  236. package/dist/domains/remoteAutocomplete/components/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js +26 -24
  237. package/dist/domains/remoteAutocomplete/components/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
  238. package/dist/domains/system/appShell/components/ALayoutSwitch.js +1 -0
  239. package/dist/domains/system/appShell/components/ALayoutSwitch.vue.d.ts +3 -0
  240. package/dist/domains/system/appShell/components/ALayoutSwitch.vue_vue_type_script_setup_true_lang.js +38 -16
  241. package/dist/domains/system/appShell/components/ALayoutSwitch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  242. package/dist/domains/system/composables/alerts.js +57 -40
  243. package/dist/domains/system/composables/alerts.js.map +1 -1
  244. package/dist/domains/system/systemBar/components/ASystemBar.vue_vue_type_script_setup_true_lang.js +39 -38
  245. package/dist/domains/system/systemBar/components/ASystemBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  246. package/dist/domains/system/systemBar/components/ASystemBarSessionEnded.js +6 -0
  247. package/dist/domains/system/systemBar/components/ASystemBarSessionEnded.js.map +1 -0
  248. package/dist/domains/system/systemBar/components/ASystemBarSessionEnded.vue.d.ts +3 -0
  249. package/dist/domains/system/systemBar/components/ASystemBarSessionEnded.vue_vue_type_script_setup_true_lang.js +53 -0
  250. package/dist/domains/system/systemBar/components/ASystemBarSessionEnded.vue_vue_type_script_setup_true_lang.js.map +1 -0
  251. package/dist/domains/ui/datetime/components/ADatetimePicker.js +1 -1
  252. package/dist/domains/ui/datetime/components/ADatetimePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  253. package/dist/domains/ui/datetime/components/ADatetimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  254. package/dist/domains/ui/file/composables/formatAndSizeCheck.js +1 -1
  255. package/dist/domains/ui/file/composables/formatAndSizeCheck.js.map +1 -1
  256. package/dist/domains/ui/view/components/ALogoutView.vue_vue_type_script_setup_true_lang.js +9 -8
  257. package/dist/domains/ui/view/components/ALogoutView.vue_vue_type_script_setup_true_lang.js.map +1 -1
  258. package/dist/lib.d.ts +9 -5
  259. package/dist/locales/cs/common/alert.js +8 -0
  260. package/dist/locales/cs/common/alert.js.map +1 -1
  261. package/dist/locales/cs/common/assetSelect.js +361 -0
  262. package/dist/locales/cs/common/assetSelect.js.map +1 -1
  263. package/dist/locales/cs/common/damCustomFormElement.js +258 -0
  264. package/dist/locales/cs/common/damCustomFormElement.js.map +1 -0
  265. package/dist/locales/cs/common/damImage.js +237 -1
  266. package/dist/locales/cs/common/damImage.js.map +1 -1
  267. package/dist/locales/cs/common/filter.js +1 -9
  268. package/dist/locales/cs/common/filter.js.map +1 -1
  269. package/dist/locales/cs/common/system.js +26 -0
  270. package/dist/locales/cs/common/system.js.map +1 -1
  271. package/dist/locales/cs/error/apiForbiddenOperation.js +113 -7
  272. package/dist/locales/cs/error/apiForbiddenOperation.js.map +1 -1
  273. package/dist/locales/cs/error/apiValidation.js +8 -0
  274. package/dist/locales/cs/error/apiValidation.js.map +1 -1
  275. package/dist/locales/cs.d.ts +120 -1
  276. package/dist/locales/cs.js +20 -18
  277. package/dist/locales/cs.js.map +1 -1
  278. package/dist/locales/en/common/alert.js +8 -0
  279. package/dist/locales/en/common/alert.js.map +1 -1
  280. package/dist/locales/en/common/assetSelect.js +361 -0
  281. package/dist/locales/en/common/assetSelect.js.map +1 -1
  282. package/dist/locales/en/common/damCustomFormElement.js +258 -0
  283. package/dist/locales/en/common/damCustomFormElement.js.map +1 -0
  284. package/dist/locales/en/common/damImage.js +237 -1
  285. package/dist/locales/en/common/damImage.js.map +1 -1
  286. package/dist/locales/en/common/filter.js +1 -9
  287. package/dist/locales/en/common/filter.js.map +1 -1
  288. package/dist/locales/en/common/system.js +26 -0
  289. package/dist/locales/en/common/system.js.map +1 -1
  290. package/dist/locales/en/error/apiForbiddenOperation.js +113 -7
  291. package/dist/locales/en/error/apiForbiddenOperation.js.map +1 -1
  292. package/dist/locales/en/error/apiValidation.js +8 -0
  293. package/dist/locales/en/error/apiValidation.js.map +1 -1
  294. package/dist/locales/en.d.ts +120 -1
  295. package/dist/locales/en.js +20 -18
  296. package/dist/locales/en.js.map +1 -1
  297. package/dist/locales/sk/common/alert.js +8 -0
  298. package/dist/locales/sk/common/alert.js.map +1 -1
  299. package/dist/locales/sk/common/assetSelect.js +361 -0
  300. package/dist/locales/sk/common/assetSelect.js.map +1 -1
  301. package/dist/locales/sk/common/damCustomFormElement.js +258 -0
  302. package/dist/locales/sk/common/damCustomFormElement.js.map +1 -0
  303. package/dist/locales/sk/common/damImage.js +237 -1
  304. package/dist/locales/sk/common/damImage.js.map +1 -1
  305. package/dist/locales/sk/common/filter.js +1 -9
  306. package/dist/locales/sk/common/filter.js.map +1 -1
  307. package/dist/locales/sk/common/system.js +26 -0
  308. package/dist/locales/sk/common/system.js.map +1 -1
  309. package/dist/locales/sk/error/apiForbiddenOperation.js +113 -7
  310. package/dist/locales/sk/error/apiForbiddenOperation.js.map +1 -1
  311. package/dist/locales/sk/error/apiValidation.js +8 -0
  312. package/dist/locales/sk/error/apiValidation.js.map +1 -1
  313. package/dist/locales/sk.d.ts +120 -1
  314. package/dist/locales/sk.js +20 -18
  315. package/dist/locales/sk.js.map +1 -1
  316. package/dist/plugins/i18n.d.ts +120 -1
  317. package/dist/shared/utils/datetimePickerValue.js +9 -6
  318. package/dist/shared/utils/datetimePickerValue.js.map +1 -1
  319. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ASystemBar.vue_vue_type_script_setup_true_lang.js","names":["ASystemBarNewVersion","_openBlock","_createBlock","_component_VAppBar","_withCtx","_createElementVNode","_resolveDynamicComponent","ASystemBarNewVersion_default","_hoisted_1","CONSECUTIVE_FAILURE_ALERT_THRESHOLD","ASystemBar_vue_vue_type_script_setup_true_lang_default","props","__props","showSystemBar","ref","abortController","lastInactiveTime","consecutiveFailures","alertedForCurrentOutage","useSystemBar","checkNewVersion","isAbortError","error","res","contentType","AnzuNewVersionFetchError","json","isUndefined","isAnzuNewVersionFetchError","systemBarComponent","computed","useIntervalFn","useUserActivity","retryTimer","checkNewVersionWithRetry","delay","attempt","maxAttempts","watch","isWindowActive","now","newValue","inactiveDuration","resume","pause","onBeforeUnmount","openBlock","createBlock","VAppBar","withCtx","createElementVNode","resolveDynamicComponent","createCommentVNode"],"sources":["../../../../../src/domains/system/systemBar/components/ASystemBar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { useIntervalFn } from '@vueuse/core'\nimport ASystemBarNewVersion from '@/domains/system/systemBar/components/ASystemBarNewVersion.vue'\nimport { isUndefined } from '@/shared/utils/common'\nimport { AnzuNewVersionFetchError, isAnzuNewVersionFetchError } from '@/shared/error/AnzuNewVersionFetchError'\nimport { useUserActivity } from '@/domains/system/composables/useUserActivity'\nimport { useSystemBar } from '@/domains/system/systemBar/composables/systemBar'\n\nconst props = withDefaults(\n defineProps<{\n currentVersion: string\n checkInterval?: number\n jsonRelativePath?: string\n minInactiveTime?: number\n }>(),\n {\n checkInterval: 60000,\n jsonRelativePath: 'config.json',\n minInactiveTime: 5000,\n }\n)\n\nconst showSystemBar = ref<boolean>(false)\nconst abortController = ref<AbortController | null>(null)\nconst lastInactiveTime = ref<number>(0)\n\nconst CONSECUTIVE_FAILURE_ALERT_THRESHOLD = 5\nlet consecutiveFailures = 0\nlet alertedForCurrentOutage = false\n\nconst { newVersion } = useSystemBar()\n\nconst checkNewVersion = async (): Promise<void> => {\n if (abortController.value) {\n abortController.value.abort()\n }\n\n abortController.value = new AbortController()\n\n const isAbortError = (error: unknown): error is Error => {\n return error instanceof Error && error.name === 'AbortError'\n }\n\n try {\n const res = await fetch(`/${props.jsonRelativePath}?random=${Date.now()}`, {\n signal: abortController.value.signal,\n })\n if (res.ok) {\n const contentType = res.headers.get('content-type')\n if (!contentType || !contentType.includes('application/json')) {\n throw new AnzuNewVersionFetchError('Unable to load env config. Incorrect content type.')\n }\n const json = await res.json()\n if (Object.keys(json).length < 1) {\n throw new AnzuNewVersionFetchError('Unable to load env config. Incorrect response body.')\n }\n showSystemBar.value = !isUndefined(json.appVersion) && json.appVersion !== props.currentVersion\n newVersion.value = showSystemBar.value\n consecutiveFailures = 0\n alertedForCurrentOutage = false\n\n return\n }\n throw new AnzuNewVersionFetchError('Unable to load env config. Incorrect response code.')\n } catch (error) {\n if (isAbortError(error)) {\n return\n }\n if (isAnzuNewVersionFetchError(error)) {\n throw error\n }\n if (error instanceof SyntaxError) {\n throw new AnzuNewVersionFetchError('Unable to load env config. Syntax error.', error)\n }\n if (error instanceof Error) {\n throw new AnzuNewVersionFetchError('Unable to load env config. ' + error.message, error)\n }\n throw new AnzuNewVersionFetchError('Unable to load env config. Unknown error.', error as any)\n }\n}\n\nconst systemBarComponent = computed(() => {\n return ASystemBarNewVersion\n})\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst { pause, resume } = useIntervalFn(() => {\n checkNewVersion().catch((error) => {\n if (isAnzuNewVersionFetchError(error)) {\n consecutiveFailures++\n if (consecutiveFailures >= CONSECUTIVE_FAILURE_ALERT_THRESHOLD && !alertedForCurrentOutage) {\n alertedForCurrentOutage = true\n // One signal per outage — ops can alert on this; resets on the next successful poll.\n console.error(`[ASystemBar] Version check failed ${consecutiveFailures} consecutive times:`, error)\n }\n return\n }\n console.warn(error)\n })\n}, props.checkInterval)\n\nconst { isWindowActive } = useUserActivity()\n\n// Only one retry is pending at a time. Untracked, a retry left\n// scheduled after unmount starts a fetch that cannot be aborted.\n// A new check also replaces a pending retry, since returning to\n// the window starts one while a previous retry may be pending.\nlet retryTimer: ReturnType<typeof setTimeout> | undefined = undefined\n\nconst checkNewVersionWithRetry = (attempt = 1, maxAttempts = 3) => {\n const delay = Math.min(1000 * attempt, 3000) // 1000ms, 2000ms, 3000ms\n\n clearTimeout(retryTimer)\n retryTimer = setTimeout(async () => {\n try {\n await checkNewVersion()\n } catch (error) {\n if (\n error instanceof AnzuNewVersionFetchError &&\n (error.message.includes('Failed to fetch') || error.message.includes('NetworkError')) &&\n attempt < maxAttempts\n ) {\n checkNewVersionWithRetry(attempt + 1, maxAttempts)\n } else {\n console.error('Version check failed:', error)\n }\n }\n }, delay)\n}\n\nwatch(\n isWindowActive,\n (newValue: boolean) => {\n const now: number = Date.now()\n\n if (newValue) {\n const inactiveDuration: number = now - lastInactiveTime.value\n resume()\n if (inactiveDuration > props.minInactiveTime) {\n checkNewVersionWithRetry()\n }\n } else {\n lastInactiveTime.value = now\n pause()\n }\n },\n { immediate: true }\n)\n\nonBeforeUnmount(() => {\n clearTimeout(retryTimer)\n if (abortController.value) {\n abortController.value.abort()\n }\n})\n</script>\n\n<template>\n <VAppBar\n v-if=\"showSystemBar\"\n height=\"48\"\n color=\"orange-accent-3\"\n elevation=\"0\"\n :order=\"-1\"\n >\n <div class=\"text-center w-100 text-body-small pb-1\">\n <component :is=\"systemBarComponent\" />\n </div>\n </VAppBar>\n</template>\n"],"mappings":";;;;;;;;;A,6DA2BMS,IAAsC,G;;;;;;;;;EAlB5C,IAAME,IAAQC,GAcRC,IAAgBC,EAAa,EAAK,GAClCC,IAAkBD,EAA4B,IAAI,GAClDE,IAAmBF,EAAY,CAAC,GAGlCG,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M,qCAAqCD,EAAoB,sBAAsBK,CAAK,MAItG,QAAQ,KAAKA,CAAK;GACpB,CAAC;EACH,GAAGX,EAAM,aAAa,GAEhB,EAAE,sBAAmBqB,EAAgB,GAMvCC,GAEEC,KAA4B,IAAU,GAAG,IAAc,MAAM;GACjE,IAAMC,IAAQ,KAAK,IAAI,MAAOC,GAAS,GAAI;GAG3C,AADA,aAAaH,CAAU,GACvB,IAAa,WAAW,YAAY;IAClC,IAAI;KACF,MAAMb,EAAgB;IACxB,SAASE,GAAO;KACd,AACEA,aAAiBG,MAChBH,EAAM,QAAQ,SAAS,iBAAiB,KAAKA,EAAM,QAAQ,SAAS,cAAc,MACnFc,IAAUC,IAEVH,EAAyBE,IAAU,GAAGC,CAAW,IAEjD,QAAQ,MAAM,yBAAyBf,CAAK;IAEhD;GACF,GAAGa,CAAK;EACV;E,OAEAG,EACEC,IACC,MAAsB;GACrB,IAAMC,IAAc,KAAK,IAAI;GAE7B,IAAIC,GAAU;IACZ,IAAMC,IAA2BF,IAAMxB,EAAiB;IAExD,AADA2B,EAAO,GACHD,IAAmB/B,EAAM,mBAC3BuB,EAAyB;GAE7B,OAEE,AADA,EAAiB,QAAQM,GACzBI,EAAM;EAEV,GACA,EAAE,WAAW,GAAK,CACpB,GAEAC,QAAsB;GAEpB,AADA,aAAaZ,CAAU,GACnBlB,EAAgB,SAClBA,EAAgB,MAAM,MAAM;EAEhC,CAAC,I,SAKSF,EAAA,SADRZ,EAAA,GAAAC,EAUUC,GAAA;;GARR,QAAO;GACP,OAAM;GACN,WAAU;GACT,OAAO;;GAER,SAAAC,QAEM,CAFNC,EAEM,OAFNG,GAEM,EADJP,EAAA,GAAAC,EAAsCI,EAAtBuB,EAAA,KAAkB,CAAA,E"}
1
+ {"version":3,"file":"ASystemBar.vue_vue_type_script_setup_true_lang.js","names":["ASystemBarNewVersion","_openBlock","_createVNode","ASystemBarSessionEnded","_createBlock","_component_VAppBar","_withCtx","_createElementVNode","_resolveDynamicComponent","ASystemBarNewVersion_default","ASystemBarSessionEnded_default","_hoisted_1","CONSECUTIVE_FAILURE_ALERT_THRESHOLD","ASystemBar_vue_vue_type_script_setup_true_lang_default","props","__props","showSystemBar","ref","abortController","lastInactiveTime","consecutiveFailures","alertedForCurrentOutage","useSystemBar","checkNewVersion","isAbortError","error","res","contentType","AnzuNewVersionFetchError","json","isUndefined","isAnzuNewVersionFetchError","systemBarComponent","computed","useIntervalFn","useUserActivity","retryTimer","checkNewVersionWithRetry","delay","attempt","maxAttempts","watch","isWindowActive","now","newValue","inactiveDuration","resume","pause","onBeforeUnmount","openBlock","createElementBlock","Fragment","createVNode","createBlock","VAppBar","withCtx","createElementVNode","resolveDynamicComponent","createCommentVNode"],"sources":["../../../../../src/domains/system/systemBar/components/ASystemBar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { useIntervalFn } from '@vueuse/core'\nimport ASystemBarNewVersion from '@/domains/system/systemBar/components/ASystemBarNewVersion.vue'\nimport ASystemBarSessionEnded from '@/domains/system/systemBar/components/ASystemBarSessionEnded.vue'\nimport { isUndefined } from '@/shared/utils/common'\nimport { AnzuNewVersionFetchError, isAnzuNewVersionFetchError } from '@/shared/error/AnzuNewVersionFetchError'\nimport { useUserActivity } from '@/domains/system/composables/useUserActivity'\nimport { useSystemBar } from '@/domains/system/systemBar/composables/systemBar'\n\nconst props = withDefaults(\n defineProps<{\n currentVersion: string\n checkInterval?: number\n jsonRelativePath?: string\n minInactiveTime?: number\n }>(),\n {\n checkInterval: 60000,\n jsonRelativePath: 'config.json',\n minInactiveTime: 5000,\n }\n)\n\nconst showSystemBar = ref<boolean>(false)\nconst abortController = ref<AbortController | null>(null)\nconst lastInactiveTime = ref<number>(0)\n\nconst CONSECUTIVE_FAILURE_ALERT_THRESHOLD = 5\nlet consecutiveFailures = 0\nlet alertedForCurrentOutage = false\n\nconst { newVersion } = useSystemBar()\n\nconst checkNewVersion = async (): Promise<void> => {\n if (abortController.value) {\n abortController.value.abort()\n }\n\n abortController.value = new AbortController()\n\n const isAbortError = (error: unknown): error is Error => {\n return error instanceof Error && error.name === 'AbortError'\n }\n\n try {\n const res = await fetch(`/${props.jsonRelativePath}?random=${Date.now()}`, {\n signal: abortController.value.signal,\n })\n if (res.ok) {\n const contentType = res.headers.get('content-type')\n if (!contentType || !contentType.includes('application/json')) {\n throw new AnzuNewVersionFetchError('Unable to load env config. Incorrect content type.')\n }\n const json = await res.json()\n if (Object.keys(json).length < 1) {\n throw new AnzuNewVersionFetchError('Unable to load env config. Incorrect response body.')\n }\n showSystemBar.value = !isUndefined(json.appVersion) && json.appVersion !== props.currentVersion\n newVersion.value = showSystemBar.value\n consecutiveFailures = 0\n alertedForCurrentOutage = false\n\n return\n }\n throw new AnzuNewVersionFetchError('Unable to load env config. Incorrect response code.')\n } catch (error) {\n if (isAbortError(error)) {\n return\n }\n if (isAnzuNewVersionFetchError(error)) {\n throw error\n }\n if (error instanceof SyntaxError) {\n throw new AnzuNewVersionFetchError('Unable to load env config. Syntax error.', error)\n }\n if (error instanceof Error) {\n throw new AnzuNewVersionFetchError('Unable to load env config. ' + error.message, error)\n }\n throw new AnzuNewVersionFetchError('Unable to load env config. Unknown error.', error as any)\n }\n}\n\nconst systemBarComponent = computed(() => {\n return ASystemBarNewVersion\n})\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst { pause, resume } = useIntervalFn(() => {\n checkNewVersion().catch((error) => {\n if (isAnzuNewVersionFetchError(error)) {\n consecutiveFailures++\n if (consecutiveFailures >= CONSECUTIVE_FAILURE_ALERT_THRESHOLD && !alertedForCurrentOutage) {\n alertedForCurrentOutage = true\n // One signal per outage — ops can alert on this; resets on the next successful poll.\n console.error(`[ASystemBar] Version check failed ${consecutiveFailures} consecutive times:`, error)\n }\n return\n }\n console.warn(error)\n })\n}, props.checkInterval)\n\nconst { isWindowActive } = useUserActivity()\n\n// Only one retry is pending at a time. Untracked, a retry left\n// scheduled after unmount starts a fetch that cannot be aborted.\n// A new check also replaces a pending retry, since returning to\n// the window starts one while a previous retry may be pending.\nlet retryTimer: ReturnType<typeof setTimeout> | undefined = undefined\n\nconst checkNewVersionWithRetry = (attempt = 1, maxAttempts = 3) => {\n const delay = Math.min(1000 * attempt, 3000) // 1000ms, 2000ms, 3000ms\n\n clearTimeout(retryTimer)\n retryTimer = setTimeout(async () => {\n try {\n await checkNewVersion()\n } catch (error) {\n if (\n error instanceof AnzuNewVersionFetchError &&\n (error.message.includes('Failed to fetch') || error.message.includes('NetworkError')) &&\n attempt < maxAttempts\n ) {\n checkNewVersionWithRetry(attempt + 1, maxAttempts)\n } else {\n console.error('Version check failed:', error)\n }\n }\n }, delay)\n}\n\nwatch(\n isWindowActive,\n (newValue: boolean) => {\n const now: number = Date.now()\n\n if (newValue) {\n const inactiveDuration: number = now - lastInactiveTime.value\n resume()\n if (inactiveDuration > props.minInactiveTime) {\n checkNewVersionWithRetry()\n }\n } else {\n lastInactiveTime.value = now\n pause()\n }\n },\n { immediate: true }\n)\n\nonBeforeUnmount(() => {\n clearTimeout(retryTimer)\n if (abortController.value) {\n abortController.value.abort()\n }\n})\n</script>\n\n<template>\n <ASystemBarSessionEnded />\n <VAppBar\n v-if=\"showSystemBar\"\n height=\"48\"\n color=\"orange-accent-3\"\n elevation=\"0\"\n :order=\"-1\"\n >\n <div class=\"text-center w-100 text-body-small pb-1\">\n <component :is=\"systemBarComponent\" />\n </div>\n </VAppBar>\n</template>\n"],"mappings":";;;;;;;;;;A,6DA4BMY,IAAsC,G;;;;;;;;;EAlB5C,IAAME,IAAQC,GAcRC,IAAgBC,EAAa,EAAK,GAClCC,IAAkBD,EAA4B,IAAI,GAClDE,IAAmBF,EAAY,CAAC,GAGlCG,IAAsB,GACtBC,IAA0B,IAExB,EAAE,kBAAeC,EAAa,GAE9BC,IAAkB,YAA2B;GAKjD,AAJIL,EAAgB,SAClBA,EAAgB,MAAM,MAAM,GAG9B,EAAgB,QAAQ,IAAI,gBAA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IAAU,GAAG,IAAc,MAAM;GACjE,IAAMC,IAAQ,KAAK,IAAI,MAAOC,GAAS,GAAI;GAG3C,AADA,aAAaH,CAAU,GACvB,IAAa,WAAW,YAAY;IAClC,IAAI;KACF,MAAMb,EAAgB;IACxB,SAASE,GAAO;KACd,AACEA,aAAiBG,MAChBH,EAAM,QAAQ,SAAS,iBAAiB,KAAKA,EAAM,QAAQ,SAAS,cAAc,MACnFc,IAAUC,IAEVH,EAAyBE,IAAU,GAAGC,CAAW,IAEjD,QAAQ,MAAM,yBAAyBf,CAAK;IAEhD;GACF,GAAGa,CAAK;EACV;E,OAEAG,EACEC,IACC,MAAsB;GACrB,IAAMC,IAAc,KAAK,IAAI;GAE7B,IAAIC,GAAU;IACZ,IAAMC,IAA2BF,IAAMxB,EAAiB;IAExD,AADA2B,EAAO,GACHD,IAAmB/B,EAAM,mBAC3BuB,EAAyB;GAE7B,OAEE,AADA,EAAiB,QAAQM,GACzBI,EAAM;EAEV,GACA,EAAE,WAAW,GAAK,CACpB,GAEAC,QAAsB;GAEpB,AADA,aAAaZ,CAAU,GACnBlB,EAAgB,SAClBA,EAAgB,MAAM,MAAM;EAEhC,CAAC,I,2BAIChB,EAA0BC,CAAA,GAElBa,EAAA,SADRf,EAAA,GAAAG,EAUUC,GAAA;;GARR,QAAO;GACP,OAAM;GACN,WAAU;GACT,OAAO;;GAER,SAAAC,QAEM,CAFNC,EAEM,OAFNI,GAEM,EADJV,EAAA,GAAAG,EAAsCI,EAAtBwB,EAAA,KAAkB,CAAA,E"}
@@ -0,0 +1,6 @@
1
+ import e from "./ASystemBarSessionEnded.vue_vue_type_script_setup_true_lang.js";
2
+ // src/domains/system/systemBar/components/ASystemBarSessionEnded.vue
3
+ var t = e;
4
+ export { t as default };
5
+
6
+ //# sourceMappingURL=ASystemBarSessionEnded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ASystemBarSessionEnded.js","names":["ASystemBarSessionEnded_vue_vue_type_script_setup_true_lang_default","ASystemBarSessionEnded_default"],"sources":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import { useSessionEnd as e } from "../../../auth/composables/sessionEnd.js";
2
+ import { createBlock as t, createCommentVNode as n, createElementVNode as r, createTextVNode as i, createVNode as a, defineComponent as o, openBlock as s, toDisplayString as c, unref as l, withCtx as u, withModifiers as d } from "vue";
3
+ import { useI18n as f } from "vue-i18n";
4
+ import { VBtn as p } from "vuetify/components/VBtn";
5
+ import { VAppBar as m } from "vuetify/components/VAppBar";
6
+ // src/domains/system/systemBar/components/ASystemBarSessionEnded.vue?vue&type=script&setup=true&lang.ts
7
+ var h = {
8
+ class: "text-center w-100 text-body-small",
9
+ "data-cy": "session-ended-bar",
10
+ role: "alert"
11
+ }, g = /*@__PURE__*/ o({
12
+ __name: "ASystemBarSessionEnded",
13
+ setup(o) {
14
+ let { sessionEnded: g, leave: _ } = e(), { t: v } = f(), y = () => {
15
+ window.open("/login", "_blank", "noopener");
16
+ };
17
+ return (e, o) => l(g) ? (s(), t(m, {
18
+ key: 0,
19
+ height: "48",
20
+ color: "red-darken-1",
21
+ elevation: "0",
22
+ order: -1
23
+ }, {
24
+ default: u(() => [r("div", h, [
25
+ i(c(l(v)("common.system.sessionEnded.text")) + " ", 1),
26
+ a(p, {
27
+ class: "text-none text-decoration-underline ml-1",
28
+ variant: "text",
29
+ size: "small",
30
+ "data-cy": "session-ended-sign-in-new-tab",
31
+ onClick: d(y, ["stop"])
32
+ }, {
33
+ default: u(() => [i(c(l(v)("common.system.sessionEnded.signInInNewTab")), 1)]),
34
+ _: 1
35
+ }),
36
+ a(p, {
37
+ class: "text-none text-decoration-underline",
38
+ variant: "text",
39
+ size: "small",
40
+ "data-cy": "session-ended-leave",
41
+ onClick: d(l(_), ["stop"])
42
+ }, {
43
+ default: u(() => [i(c(l(v)("common.system.sessionEnded.leave")), 1)]),
44
+ _: 1
45
+ }, 8, ["onClick"])
46
+ ])]),
47
+ _: 1
48
+ })) : n("", !0);
49
+ }
50
+ });
51
+ export { g as default };
52
+
53
+ //# sourceMappingURL=ASystemBarSessionEnded.vue_vue_type_script_setup_true_lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ASystemBarSessionEnded.vue_vue_type_script_setup_true_lang.js","names":["_unref","_openBlock","_createBlock","_component_VAppBar","_withCtx","_createElementVNode","_createTextVNode","_toDisplayString","_createVNode","_component_VBtn","_withModifiers","_hoisted_1","ASystemBarSessionEnded_vue_vue_type_script_setup_true_lang_default","useSessionEnd","useI18n","signInInNewTab","unref","sessionEnded","openBlock","createBlock","VAppBar","withCtx","createElementVNode","createTextVNode","toDisplayString","t","createVNode","VBtn","withModifiers","leave","createCommentVNode"],"sources":["../../../../../src/domains/system/systemBar/components/ASystemBarSessionEnded.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useI18n } from 'vue-i18n'\nimport { useSessionEnd } from '@/domains/auth/composables/sessionEnd'\n\nconst { sessionEnded, leave } = useSessionEnd()\nconst { t } = useI18n()\n\nconst signInInNewTab = () => {\n window.open('/login', '_blank', 'noopener')\n}\n</script>\n\n<template>\n <VAppBar\n v-if=\"sessionEnded\"\n height=\"48\"\n color=\"red-darken-1\"\n elevation=\"0\"\n :order=\"-1\"\n >\n <div\n class=\"text-center w-100 text-body-small\"\n data-cy=\"session-ended-bar\"\n role=\"alert\"\n >\n {{ t('common.system.sessionEnded.text') }}\n <VBtn\n class=\"text-none text-decoration-underline ml-1\"\n variant=\"text\"\n size=\"small\"\n data-cy=\"session-ended-sign-in-new-tab\"\n @click.stop=\"signInInNewTab\"\n >\n {{ t('common.system.sessionEnded.signInInNewTab') }}\n </VBtn>\n <VBtn\n class=\"text-none text-decoration-underline\"\n variant=\"text\"\n size=\"small\"\n data-cy=\"session-ended-leave\"\n @click.stop=\"leave\"\n >\n {{ t('common.system.sessionEnded.leave') }}\n </VBtn>\n </div>\n </VAppBar>\n</template>\n"],"mappings":";;;;;;;;;;;;;EAIA,IAAM,EAAE,iBAAc,aAAUa,EAAc,GACxC,EAAE,SAAMC,EAAQ,GAEhBC,UAAuB;GAC3B,OAAO,KAAK,UAAU,UAAU,UAAU;EAC5C;E,iBAKUf,EAAAiB,CAAA,KADRhB,EAAA,GAAAC,EAgCUC,GAAA;;GA9BR,QAAO;GACP,OAAM;GACN,WAAU;GACT,OAAO;;GAER,SAAAC,QAwBM,CAxBNC,EAwBM,OAxBNM,GAwBM;IAnBDL,EAAAC,EAAAP,EAAAyB,CAAA,CAAC,CAAA,iCAAA,CAAA,IAAsC,KAC1C,CAAA;IAAAjB,EAQOC,GAAA;KAPL,OAAM;KACN,SAAQ;KACR,MAAK;KACL,WAAQ;KACP,SAAKC,EAAOK,GAAc,CAAA,MAAA,CAAA;;KAE3B,SAAAX,QAAoD,CAAjDE,EAAAC,EAAAP,EAAAyB,CAAA,CAAC,CAAA,2CAAA,CAAA,GAAA,CAAA,C;;;IAENjB,EAQOC,GAAA;KAPL,OAAM;KACN,SAAQ;KACR,MAAK;KACL,WAAQ;KACP,SAAKC,EAAOV,EAAA6B,CAAA,GAAK,CAAA,MAAA,CAAA;;KAElB,SAAAzB,QAA2C,CAAxCE,EAAAC,EAAAP,EAAAyB,CAAA,CAAC,CAAA,kCAAA,CAAA,GAAA,CAAA,C"}
@@ -2,7 +2,7 @@ import e from "./ADatetimePicker.vue_vue_type_script_setup_true_lang.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  // src/domains/ui/datetime/components/ADatetimePicker.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-ec08a2a8"]]);
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-667f74ad"]]);
6
6
  export { n as default };
7
7
 
8
8
  //# sourceMappingURL=ADatetimePicker.js.map
@@ -99,7 +99,7 @@ var M = { class: "d-flex" }, N = { class: "ml-1" }, P = {
99
99
  q.value = o(I.defaultValue, I.type, I.lastMinuteMoment), L("blur");
100
100
  return;
101
101
  }
102
- let n = o(I.modelValue, I.type, I.lastMinuteMoment)?.second() ?? 0, r = s(e, I.type, n);
102
+ let n = o(I.modelValue, I.type, I.lastMinuteMoment)?.second() ?? (I.lastMinuteMoment ? 59 : 0), r = s(e, I.type, n);
103
103
  t(r) ? (t(q.value) || (W.value = a(q.value, I.type)), Y.value.textFieldValue.$touch(), L("blur")) : (ne(r, w(q.value), I.type) ? W.value = a(r, I.type) : q.value = r, Y.value.textFieldValue.$touch(), L("blur"));
104
104
  }, Q = () => {
105
105
  t(I.defaultValue) || n(I.defaultValue) ? (q.value = null, G.value = null, K.value = null, L("afterClear")) : (q.value = o(I.defaultValue, I.type, I.lastMinuteMoment), L("afterClear"));
@@ -1 +1 @@
1
- {"version":3,"file":"ADatetimePicker.vue_vue_type_script_setup_true_lang.js","names":["$attrs","_openBlock","_createBlock","_component_VTextField","_withKeys","_withCtx","_component_VIcon","_unref","_withModifiers","_component_VMenu","_createVNode","_mergeProps","_component_VCard","_withDirectives","_component_VBtn","_directive_tooltip","_component_VDatePicker","TimePicker","_createElementVNode","_createElementBlock","_toDisplayString","_renderSlot","_createTextVNode","TimePicker_default","useVuelidate","_hoisted_1","_hoisted_2","_hoisted_3","ADatetimePicker_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","pickerOpened","ref","pickerKey","timeKey","timePickerInstance","useTemplateRef","inputInstance","confirmRefButton","textFieldValue","datePickerValue","timePickerValue","datetimeInternal","useI18n","placeholderComputed","computed","placeholderFor","useValidate","rules","requiredIf","v$","tryEmitNewValue","newValue","updateDateAndTimePickerOnlyWhenChanged","isNull","toCalendarDate","oldValue","parseModel","watchDatePicker","internal","applyCalendarDate","watchTimePicker","watch","newTimePickerValue","newDatePickerValue","newDate","emptyBaseValue","toRaw","newUtcValue","serialize","formatDisplay","onTextFieldBlur","isUndefined","todayValue","errorMessageComputed","isDefined","item","filtered","seconds","reparsed","parseTyped","isSameValue","onClear","close","onTextFieldFocus","togglePicker","onTimePickerEnterKeyup","onFocusConfirm","onDatePickerUpdate","nextTick","now","openBlock","createBlock","VTextField","_cache","$event","withKeys","createSlots","withCtx","VIcon","unref","t","withModifiers","createCommentVNode","VMenu","value","menuProps","createVNode","mergeProps","VCard","withDirectives","VBtn","Tooltip","VDatePicker","_ctx","createElementVNode","createElementBlock","toDisplayString","renderSlot","createTextVNode"],"sources":["../../../../../src/domains/ui/datetime/components/ADatetimePicker.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { DatetimeUTC } from '@/shared/types/common'\nimport { computed, nextTick, ref, toRaw, useTemplateRef, watch } from 'vue'\nimport { isDefined, isNull, isUndefined } from '@/shared/utils/common'\nimport useVuelidate, { type ErrorObject } from '@vuelidate/core'\nimport { useValidate } from '@/shared/validators/vuelidate/useValidate'\nimport TimePicker from '@/domains/ui/datetime/components/TimePicker.vue'\nimport type { Dayjs } from 'dayjs'\nimport {\n applyCalendarDate,\n type DatetimePickerType,\n emptyBaseValue,\n formatDisplay,\n isSameValue,\n parseModel,\n parseTyped,\n placeholderFor,\n serialize,\n toCalendarDate,\n todayValue,\n} from '@/shared/utils/datetimePickerValue'\nimport { useI18n } from 'vue-i18n'\nimport type { VTextField } from 'vuetify/components/VTextField'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: DatetimeUTC | null | undefined\n type?: DatetimePickerType\n label?: string\n hideLabel?: boolean\n clearable?: boolean\n disabled?: boolean\n hideDetails?: boolean\n required?: boolean\n hideSetToNow?: boolean\n placeholder?: string\n dataCy?: string\n defaultValue?: DatetimeUTC | null | undefined\n errorMessages?: string[]\n lastMinuteMoment?: boolean\n readonly?: boolean\n }>(),\n {\n type: 'datetime',\n label: '',\n hideLabel: false,\n clearable: false,\n disabled: false,\n hideDetails: false,\n required: false,\n hideSetToNow: false,\n placeholder: '',\n dataCy: '',\n defaultValue: null,\n errorMessages: undefined,\n lastMinuteMoment: false,\n // When unset, the text field follows a readonly `VForm` around it. The calendar and clearing follow only this prop.\n readonly: undefined,\n }\n)\n\nconst emit = defineEmits<{\n (e: 'blur'): void\n (e: 'focus'): void\n (e: 'update:modelValue', data: DatetimeUTC | null | undefined): void\n (e: 'open'): void\n (e: 'close'): void\n (e: 'afterClear'): void\n}>()\n\nconst pickerOpened = ref(false)\nconst pickerKey = ref(0)\nconst timeKey = ref(0)\nconst timePickerInstance = useTemplateRef<InstanceType<typeof TimePicker>>('timePickerInstance')\nconst inputInstance = useTemplateRef<InstanceType<typeof VTextField>>('inputInstance')\nconst confirmRefButton = useTemplateRef<HTMLButtonElement>('confirmRefButton')\nconst textFieldValue = ref('')\n\nconst datePickerValue = ref<null | Date>(null)\nconst timePickerValue = ref<null | { hours: number; minutes: number }>(null)\nconst datetimeInternal = ref<null | Dayjs>(null)\n\nconst { t } = useI18n()\n\nconst placeholderComputed = computed(() => {\n return props.placeholder.length ? props.placeholder : placeholderFor(props.type)\n})\n\nconst { requiredIf } = useValidate()\nconst rules = computed(() => {\n return {\n textFieldValue: {\n required: requiredIf(props.required),\n },\n }\n})\nconst v$ = useVuelidate(rules, { textFieldValue })\n\nconst tryEmitNewValue = (newValue: DatetimeUTC | null | undefined) => {\n if (newValue === props.modelValue) return\n emit('update:modelValue', newValue)\n}\n\nconst updateDateAndTimePickerOnlyWhenChanged = (newValue: Dayjs | null) => {\n if (isNull(newValue)) return\n if (\n props.type !== 'date' &&\n (isNull(timePickerValue.value) ||\n newValue.hour() !== timePickerValue.value.hours ||\n newValue.minute() !== timePickerValue.value.minutes)\n ) {\n timePickerValue.value = { hours: newValue.hour(), minutes: newValue.minute() }\n }\n if (\n isNull(datePickerValue.value) ||\n newValue.year() !== datePickerValue.value.getFullYear() ||\n newValue.month() !== datePickerValue.value.getMonth() ||\n newValue.date() !== datePickerValue.value.getDate()\n ) {\n datePickerValue.value = toCalendarDate(newValue, props.type)\n }\n}\n\nwatch(\n () => props.modelValue,\n (newValue, oldValue) => {\n if (newValue === oldValue) return\n datetimeInternal.value = parseModel(newValue, props.type, props.lastMinuteMoment)\n },\n { immediate: true }\n)\n\nconst watchDatePicker = (newValue: null | Date, internal: Dayjs) => {\n if (isNull(newValue)) return internal\n return applyCalendarDate(internal, newValue, props.type)\n}\n\nconst watchTimePicker = (newValue: null | { hours: number; minutes: number }, internal: Dayjs) => {\n if (isNull(newValue) || props.type === 'date') return internal\n return internal.set('hour', newValue.hours).set('minute', newValue.minutes)\n}\n\nwatch([timePickerValue, datePickerValue], ([newTimePickerValue, newDatePickerValue]) => {\n let newDate: Dayjs | null = null\n\n if (!isNull(datetimeInternal.value)) {\n newDate = datetimeInternal.value\n } else {\n newDate =\n parseModel(props.modelValue, props.type, props.lastMinuteMoment) ??\n emptyBaseValue(props.type, props.lastMinuteMoment)\n }\n\n newDate = watchTimePicker(newTimePickerValue, newDate!)\n newDate = watchDatePicker(newDatePickerValue, newDate!)\n if (newDate.isSame(toRaw(datetimeInternal.value))) return\n datetimeInternal.value = newDate\n})\n\nwatch(\n datetimeInternal,\n (newValue) => {\n if (isNull(newValue)) {\n textFieldValue.value = ''\n tryEmitNewValue(null)\n return\n }\n const newUtcValue = serialize(newValue, props.type)\n textFieldValue.value = formatDisplay(newValue, props.type)\n updateDateAndTimePickerOnlyWhenChanged(newValue)\n tryEmitNewValue(newUtcValue)\n },\n { immediate: true }\n)\n\nwatch(pickerOpened, (newValue) => {\n if (newValue) {\n onTextFieldBlur()\n if (isNull(datetimeInternal.value) && (isNull(props.defaultValue) || isUndefined(props.defaultValue))) {\n datetimeInternal.value = todayValue(props.type, props.lastMinuteMoment)\n }\n emit('open')\n return\n }\n emit('close')\n})\n\nconst errorMessageComputed = computed(() => {\n if (isDefined(props.errorMessages)) return props.errorMessages\n if (v$.value.textFieldValue.$errors.length)\n return [v$.value.textFieldValue.$errors.map((item: ErrorObject) => item.$message).join(' ')]\n return []\n})\n\nconst onTextFieldBlur = () => {\n const filtered = textFieldValue.value.replace(/[^\\s\\d.:]/g, '').trim()\n if (filtered.length === 0 && !props.required) {\n datetimeInternal.value = parseModel(props.defaultValue, props.type, props.lastMinuteMoment)\n emit('blur')\n return\n }\n // Keeps the seconds from the original model.\n const seconds = parseModel(props.modelValue, props.type, props.lastMinuteMoment)?.second() ?? 0\n const reparsed = parseTyped(filtered, props.type, seconds)\n if (!isNull(reparsed)) {\n // A day click blurs this field before the picker emits, so re-assigning an unchanged datetime\n // would push the stale date back into it.\n if (isSameValue(reparsed, toRaw(datetimeInternal.value), props.type)) {\n textFieldValue.value = formatDisplay(reparsed, props.type)\n } else {\n datetimeInternal.value = reparsed\n }\n v$.value.textFieldValue.$touch()\n emit('blur')\n return\n }\n if (!isNull(datetimeInternal.value)) {\n textFieldValue.value = formatDisplay(datetimeInternal.value, props.type)\n }\n v$.value.textFieldValue.$touch()\n emit('blur')\n}\n\nconst onClear = () => {\n if (isNull(props.defaultValue) || isUndefined(props.defaultValue)) {\n datetimeInternal.value = null\n datePickerValue.value = null\n timePickerValue.value = null\n emit('afterClear')\n return\n }\n datetimeInternal.value = parseModel(props.defaultValue, props.type, props.lastMinuteMoment)\n emit('afterClear')\n}\n\nconst close = () => {\n pickerOpened.value = false\n inputInstance.value?.focus()\n inputInstance.value?.blur()\n emit('close')\n emit('blur')\n}\n\nconst onTextFieldFocus = () => {\n emit('focus')\n}\n\n// The calendar icon is a button. Enter and Space toggle the calendar like a click. Its menu takes only the arrow keys.\n// The keyup of that Enter stays on the icon. Otherwise the field's Enter handler would report leaving a second time.\nconst togglePicker = () => {\n pickerOpened.value = !pickerOpened.value\n}\n\nconst onTimePickerEnterKeyup = () => {\n pickerOpened.value = false\n}\n\nconst onFocusConfirm = () => {\n confirmRefButton.value?.focus()\n}\n\nconst onDatePickerUpdate = () => {\n if (props.type === 'date') {\n // The value travels through pre-flush watchers, so closing now would emit blur and release the\n // collab lock with the previous value still in the model.\n nextTick(close)\n return\n }\n timePickerInstance.value?.focusHour()\n}\n\nconst now = () => {\n datetimeInternal.value = todayValue(props.type, props.lastMinuteMoment)\n nextTick(() => {\n // Vuetify navigates the calendar to a new value on its own, but skips an unchanged day, so a\n // value that is already today would leave the user on whatever month they paged to.\n pickerKey.value++\n timeKey.value++\n })\n}\n</script>\n\n<template>\n <VTextField\n ref=\"inputInstance\"\n v-model=\"textFieldValue\"\n :error-messages=\"errorMessageComputed\"\n :persistent-placeholder=\"true\"\n :placeholder=\"placeholderComputed\"\n class=\"a-datetime-picker\"\n :hide-details=\"hideDetails ? true : 'auto'\"\n :data-cy=\"dataCy.length ? dataCy : undefined\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n autocomplete=\"off\"\n @blur=\"onTextFieldBlur\"\n @focus=\"onTextFieldFocus\"\n @keyup.enter=\"onTextFieldBlur\"\n >\n <template #append-inner>\n <VIcon\n v-if=\"clearable && !readonly && defaultValue !== modelValue\"\n class=\"a-datetime-picker__clearable-icon\"\n icon=\"mdi-close-circle\"\n :aria-label=\"t('common.button.clear')\"\n @click.stop=\"onClear\"\n />\n <VMenu\n v-if=\"!disabled && !readonly\"\n location=\"bottom end\"\n origin=\"top end\"\n :close-on-content-click=\"false\"\n :model-value=\"pickerOpened\"\n @update:model-value=\"(value: boolean) => (pickerOpened = value)\"\n >\n <template #activator=\"{ props: menuProps }\">\n <VIcon\n class=\"a-datetime-picker__calendar-icon\"\n icon=\"mdi-calendar\"\n size=\"small\"\n :aria-label=\"t('$vuetify.datePicker.title')\"\n v-bind=\"menuProps\"\n @keydown.enter.space.prevent=\"togglePicker\"\n @keyup.enter.stop\n />\n </template>\n\n <VCard v-if=\"pickerOpened\">\n <VBtn\n v-tooltip=\"t('common.button.close')\"\n :aria-label=\"t('common.button.close')\"\n icon\n variant=\"text\"\n :width=\"36\"\n :height=\"36\"\n class=\"position-absolute top-0 right-0\"\n @click.stop=\"close\"\n >\n <VIcon\n icon=\"mdi-close\"\n color=\"white\"\n />\n </VBtn>\n <VDatePicker\n :key=\"pickerKey\"\n v-model=\"datePickerValue\"\n class=\"a-datetime-picker-calendar\"\n color=\"primary\"\n show-adjacent-months\n v-bind=\"$attrs\"\n @update:model-value=\"onDatePickerUpdate\"\n />\n <TimePicker\n v-if=\"type !== 'date'\"\n ref=\"timePickerInstance\"\n :key=\"timeKey\"\n v-model=\"timePickerValue\"\n @enter-keyup=\"onTimePickerEnterKeyup\"\n @focus-confirm=\"onFocusConfirm\"\n />\n <div class=\"d-flex\">\n <button\n v-if=\"!hideSetToNow\"\n type=\"button\"\n class=\"a-datetime-picker__bottom-button\"\n tabindex=\"8\"\n @click=\"now\"\n >\n {{ type === 'date' ? t('common.time.today') : t('common.time.now') }}\n </button>\n <button\n ref=\"confirmRefButton\"\n type=\"button\"\n class=\"a-datetime-picker__bottom-button\"\n tabindex=\"7\"\n @click.stop=\"close\"\n >\n {{ t('common.button.confirm') }}\n </button>\n </div>\n </VCard>\n </VMenu>\n\n <div class=\"ml-1\">\n <slot name=\"append-inner\" />\n </div>\n </template>\n <template\n v-if=\"!hideLabel\"\n #label\n >\n {{ label\n }}<span\n v-if=\"required\"\n class=\"a-required-mark\"\n />\n </template>\n </VTextField>\n</template>\n\n<style lang=\"scss\" scoped>\n.a-datetime-picker {\n :deep(.v-field__append-inner .v-icon) {\n cursor: pointer;\n }\n\n &__calendar-icon {\n margin-top: 2px;\n opacity: 0.6 !important;\n }\n\n &__clearable-icon {\n opacity: 0 !important;\n }\n\n &:hover {\n .a-datetime-picker__clearable-icon {\n opacity: 0.6 !important;\n }\n }\n\n &__bottom-button {\n width: 100%;\n text-align: center;\n font-size: 0.86rem;\n font-family: Roboto, sans-serif;\n font-weight: bold;\n line-height: 1.8;\n padding: 6px 0;\n\n &:hover {\n background-color: rgb(0 0 0 / 5%);\n }\n }\n}\n\n.a-datetime-picker-calendar {\n :deep(.v-picker-title) {\n display: none;\n }\n\n :deep(.v-date-picker-header) {\n padding-top: 12px;\n }\n\n :deep(.v-date-picker-month) {\n padding-bottom: 2px;\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBA,IAAM8B,IAAQC,GAqCRC,IAAOH,GASPI,IAAeC,EAAI,EAAK,GACxBC,IAAYD,EAAI,CAAC,GACjBE,IAAUF,EAAI,CAAC,GACfG,IAAqBC,EAAgD,oBAAoB,GACzFC,IAAgBD,EAAgD,eAAe,GAC/EE,IAAmBF,EAAkC,kBAAkB,GACvEG,IAAiBP,EAAI,EAAE,GAEvBQ,IAAkBR,EAAiB,IAAI,GACvCS,IAAkBT,EAA+C,IAAI,GACrEU,IAAmBV,EAAkB,IAAI,GAEzC,EAAE,SAAMW,GAAQ,GAEhBC,KAAsBC,QACnBjB,EAAM,YAAY,SAASA,EAAM,cAAckB,EAAelB,EAAM,IAAI,CAChF,GAEK,EAAE,mBAAemB,EAAY,GAC7BC,KAAQH,SACL,EACL,gBAAgB,EACd,UAAUI,GAAWrB,EAAM,QAAQ,EACrC,EACF,EACD,GACKsB,IAAK5B,GAAa0B,IAAO,EAAE,kBAAe,CAAC,GAE3CG,KAAmB,MAA6C;GACpE,AAAIC,MAAaxB,EAAM,cACvBE,EAAK,qBAAqBsB,CAAQ;EACpC,GAEMC,MAA0C,MAA2B;GACzE,AAAIC,EAAOF,CAAQ,MAEjBxB,EAAM,SAAS,WACd0B,EAAOb,EAAgB,KAAK,KAC3BW,EAAS,KAAK,MAAMX,EAAgB,MAAM,SAC1CW,EAAS,OAAO,MAAMX,EAAgB,MAAM,aAE9C,EAAgB,QAAQ;IAAE,OAAOW,EAAS,KAAK;IAAG,SAASA,EAAS,OAAO;GAAE,KAG7EE,EAAOd,EAAgB,KAAK,KAC5BY,EAAS,KAAK,MAAMZ,EAAgB,MAAM,YAAY,KACtDY,EAAS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ADatetimePicker.vue_vue_type_script_setup_true_lang.js","names":["$attrs","_openBlock","_createBlock","_component_VTextField","_withKeys","_withCtx","_component_VIcon","_unref","_withModifiers","_component_VMenu","_createVNode","_mergeProps","_component_VCard","_withDirectives","_component_VBtn","_directive_tooltip","_component_VDatePicker","TimePicker","_createElementVNode","_createElementBlock","_toDisplayString","_renderSlot","_createTextVNode","TimePicker_default","useVuelidate","_hoisted_1","_hoisted_2","_hoisted_3","ADatetimePicker_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","pickerOpened","ref","pickerKey","timeKey","timePickerInstance","useTemplateRef","inputInstance","confirmRefButton","textFieldValue","datePickerValue","timePickerValue","datetimeInternal","useI18n","placeholderComputed","computed","placeholderFor","useValidate","rules","requiredIf","v$","tryEmitNewValue","newValue","updateDateAndTimePickerOnlyWhenChanged","isNull","toCalendarDate","oldValue","parseModel","watchDatePicker","internal","applyCalendarDate","watchTimePicker","watch","newTimePickerValue","newDatePickerValue","newDate","emptyBaseValue","toRaw","newUtcValue","serialize","formatDisplay","onTextFieldBlur","isUndefined","todayValue","errorMessageComputed","isDefined","item","filtered","seconds","reparsed","parseTyped","isSameValue","onClear","close","onTextFieldFocus","togglePicker","onTimePickerEnterKeyup","onFocusConfirm","onDatePickerUpdate","nextTick","now","openBlock","createBlock","VTextField","_cache","$event","withKeys","createSlots","withCtx","VIcon","unref","t","withModifiers","createCommentVNode","VMenu","value","menuProps","createVNode","mergeProps","VCard","withDirectives","VBtn","Tooltip","VDatePicker","_ctx","createElementVNode","createElementBlock","toDisplayString","renderSlot","createTextVNode"],"sources":["../../../../../src/domains/ui/datetime/components/ADatetimePicker.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { DatetimeUTC } from '@/shared/types/common'\nimport { computed, nextTick, ref, toRaw, useTemplateRef, watch } from 'vue'\nimport { isDefined, isNull, isUndefined } from '@/shared/utils/common'\nimport useVuelidate, { type ErrorObject } from '@vuelidate/core'\nimport { useValidate } from '@/shared/validators/vuelidate/useValidate'\nimport TimePicker from '@/domains/ui/datetime/components/TimePicker.vue'\nimport type { Dayjs } from 'dayjs'\nimport {\n applyCalendarDate,\n type DatetimePickerType,\n emptyBaseValue,\n formatDisplay,\n isSameValue,\n parseModel,\n parseTyped,\n placeholderFor,\n serialize,\n toCalendarDate,\n todayValue,\n} from '@/shared/utils/datetimePickerValue'\nimport { useI18n } from 'vue-i18n'\nimport type { VTextField } from 'vuetify/components/VTextField'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: DatetimeUTC | null | undefined\n type?: DatetimePickerType\n label?: string\n hideLabel?: boolean\n clearable?: boolean\n disabled?: boolean\n hideDetails?: boolean\n required?: boolean\n hideSetToNow?: boolean\n placeholder?: string\n dataCy?: string\n defaultValue?: DatetimeUTC | null | undefined\n errorMessages?: string[]\n lastMinuteMoment?: boolean\n readonly?: boolean\n }>(),\n {\n type: 'datetime',\n label: '',\n hideLabel: false,\n clearable: false,\n disabled: false,\n hideDetails: false,\n required: false,\n hideSetToNow: false,\n placeholder: '',\n dataCy: '',\n defaultValue: null,\n errorMessages: undefined,\n lastMinuteMoment: false,\n // When unset, the text field follows a readonly `VForm` around it. The calendar and clearing follow only this prop.\n readonly: undefined,\n }\n)\n\nconst emit = defineEmits<{\n (e: 'blur'): void\n (e: 'focus'): void\n (e: 'update:modelValue', data: DatetimeUTC | null | undefined): void\n (e: 'open'): void\n (e: 'close'): void\n (e: 'afterClear'): void\n}>()\n\nconst pickerOpened = ref(false)\nconst pickerKey = ref(0)\nconst timeKey = ref(0)\nconst timePickerInstance = useTemplateRef<InstanceType<typeof TimePicker>>('timePickerInstance')\nconst inputInstance = useTemplateRef<InstanceType<typeof VTextField>>('inputInstance')\nconst confirmRefButton = useTemplateRef<HTMLButtonElement>('confirmRefButton')\nconst textFieldValue = ref('')\n\nconst datePickerValue = ref<null | Date>(null)\nconst timePickerValue = ref<null | { hours: number; minutes: number }>(null)\nconst datetimeInternal = ref<null | Dayjs>(null)\n\nconst { t } = useI18n()\n\nconst placeholderComputed = computed(() => {\n return props.placeholder.length ? props.placeholder : placeholderFor(props.type)\n})\n\nconst { requiredIf } = useValidate()\nconst rules = computed(() => {\n return {\n textFieldValue: {\n required: requiredIf(props.required),\n },\n }\n})\nconst v$ = useVuelidate(rules, { textFieldValue })\n\nconst tryEmitNewValue = (newValue: DatetimeUTC | null | undefined) => {\n if (newValue === props.modelValue) return\n emit('update:modelValue', newValue)\n}\n\nconst updateDateAndTimePickerOnlyWhenChanged = (newValue: Dayjs | null) => {\n if (isNull(newValue)) return\n if (\n props.type !== 'date' &&\n (isNull(timePickerValue.value) ||\n newValue.hour() !== timePickerValue.value.hours ||\n newValue.minute() !== timePickerValue.value.minutes)\n ) {\n timePickerValue.value = { hours: newValue.hour(), minutes: newValue.minute() }\n }\n if (\n isNull(datePickerValue.value) ||\n newValue.year() !== datePickerValue.value.getFullYear() ||\n newValue.month() !== datePickerValue.value.getMonth() ||\n newValue.date() !== datePickerValue.value.getDate()\n ) {\n datePickerValue.value = toCalendarDate(newValue, props.type)\n }\n}\n\nwatch(\n () => props.modelValue,\n (newValue, oldValue) => {\n if (newValue === oldValue) return\n datetimeInternal.value = parseModel(newValue, props.type, props.lastMinuteMoment)\n },\n { immediate: true }\n)\n\nconst watchDatePicker = (newValue: null | Date, internal: Dayjs) => {\n if (isNull(newValue)) return internal\n return applyCalendarDate(internal, newValue, props.type)\n}\n\nconst watchTimePicker = (newValue: null | { hours: number; minutes: number }, internal: Dayjs) => {\n if (isNull(newValue) || props.type === 'date') return internal\n return internal.set('hour', newValue.hours).set('minute', newValue.minutes)\n}\n\nwatch([timePickerValue, datePickerValue], ([newTimePickerValue, newDatePickerValue]) => {\n let newDate: Dayjs | null = null\n\n if (!isNull(datetimeInternal.value)) {\n newDate = datetimeInternal.value\n } else {\n newDate =\n parseModel(props.modelValue, props.type, props.lastMinuteMoment) ??\n emptyBaseValue(props.type, props.lastMinuteMoment)\n }\n\n newDate = watchTimePicker(newTimePickerValue, newDate!)\n newDate = watchDatePicker(newDatePickerValue, newDate!)\n if (newDate.isSame(toRaw(datetimeInternal.value))) return\n datetimeInternal.value = newDate\n})\n\nwatch(\n datetimeInternal,\n (newValue) => {\n if (isNull(newValue)) {\n textFieldValue.value = ''\n tryEmitNewValue(null)\n return\n }\n const newUtcValue = serialize(newValue, props.type)\n textFieldValue.value = formatDisplay(newValue, props.type)\n updateDateAndTimePickerOnlyWhenChanged(newValue)\n tryEmitNewValue(newUtcValue)\n },\n { immediate: true }\n)\n\nwatch(pickerOpened, (newValue) => {\n if (newValue) {\n onTextFieldBlur()\n if (isNull(datetimeInternal.value) && (isNull(props.defaultValue) || isUndefined(props.defaultValue))) {\n datetimeInternal.value = todayValue(props.type, props.lastMinuteMoment)\n }\n emit('open')\n return\n }\n emit('close')\n})\n\nconst errorMessageComputed = computed(() => {\n if (isDefined(props.errorMessages)) return props.errorMessages\n if (v$.value.textFieldValue.$errors.length)\n return [v$.value.textFieldValue.$errors.map((item: ErrorObject) => item.$message).join(' ')]\n return []\n})\n\nconst onTextFieldBlur = () => {\n const filtered = textFieldValue.value.replace(/[^\\s\\d.:]/g, '').trim()\n if (filtered.length === 0 && !props.required) {\n datetimeInternal.value = parseModel(props.defaultValue, props.type, props.lastMinuteMoment)\n emit('blur')\n return\n }\n // Keeps the seconds from the original model.\n const seconds =\n parseModel(props.modelValue, props.type, props.lastMinuteMoment)?.second() ?? (props.lastMinuteMoment ? 59 : 0)\n const reparsed = parseTyped(filtered, props.type, seconds)\n if (!isNull(reparsed)) {\n // A day click blurs this field before the picker emits, so re-assigning an unchanged datetime\n // would push the stale date back into it.\n if (isSameValue(reparsed, toRaw(datetimeInternal.value), props.type)) {\n textFieldValue.value = formatDisplay(reparsed, props.type)\n } else {\n datetimeInternal.value = reparsed\n }\n v$.value.textFieldValue.$touch()\n emit('blur')\n return\n }\n if (!isNull(datetimeInternal.value)) {\n textFieldValue.value = formatDisplay(datetimeInternal.value, props.type)\n }\n v$.value.textFieldValue.$touch()\n emit('blur')\n}\n\nconst onClear = () => {\n if (isNull(props.defaultValue) || isUndefined(props.defaultValue)) {\n datetimeInternal.value = null\n datePickerValue.value = null\n timePickerValue.value = null\n emit('afterClear')\n return\n }\n datetimeInternal.value = parseModel(props.defaultValue, props.type, props.lastMinuteMoment)\n emit('afterClear')\n}\n\nconst close = () => {\n pickerOpened.value = false\n inputInstance.value?.focus()\n inputInstance.value?.blur()\n emit('close')\n emit('blur')\n}\n\nconst onTextFieldFocus = () => {\n emit('focus')\n}\n\n// The calendar icon is a button. Enter and Space toggle the calendar like a click. Its menu takes only the arrow keys.\n// The keyup of that Enter stays on the icon. Otherwise the field's Enter handler would report leaving a second time.\nconst togglePicker = () => {\n pickerOpened.value = !pickerOpened.value\n}\n\nconst onTimePickerEnterKeyup = () => {\n pickerOpened.value = false\n}\n\nconst onFocusConfirm = () => {\n confirmRefButton.value?.focus()\n}\n\nconst onDatePickerUpdate = () => {\n if (props.type === 'date') {\n // The value travels through pre-flush watchers, so closing now would emit blur and release the\n // collab lock with the previous value still in the model.\n nextTick(close)\n return\n }\n timePickerInstance.value?.focusHour()\n}\n\nconst now = () => {\n datetimeInternal.value = todayValue(props.type, props.lastMinuteMoment)\n nextTick(() => {\n // Vuetify navigates the calendar to a new value on its own, but skips an unchanged day, so a\n // value that is already today would leave the user on whatever month they paged to.\n pickerKey.value++\n timeKey.value++\n })\n}\n</script>\n\n<template>\n <VTextField\n ref=\"inputInstance\"\n v-model=\"textFieldValue\"\n :error-messages=\"errorMessageComputed\"\n :persistent-placeholder=\"true\"\n :placeholder=\"placeholderComputed\"\n class=\"a-datetime-picker\"\n :hide-details=\"hideDetails ? true : 'auto'\"\n :data-cy=\"dataCy.length ? dataCy : undefined\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n autocomplete=\"off\"\n @blur=\"onTextFieldBlur\"\n @focus=\"onTextFieldFocus\"\n @keyup.enter=\"onTextFieldBlur\"\n >\n <template #append-inner>\n <VIcon\n v-if=\"clearable && !readonly && defaultValue !== modelValue\"\n class=\"a-datetime-picker__clearable-icon\"\n icon=\"mdi-close-circle\"\n :aria-label=\"t('common.button.clear')\"\n @click.stop=\"onClear\"\n />\n <VMenu\n v-if=\"!disabled && !readonly\"\n location=\"bottom end\"\n origin=\"top end\"\n :close-on-content-click=\"false\"\n :model-value=\"pickerOpened\"\n @update:model-value=\"(value: boolean) => (pickerOpened = value)\"\n >\n <template #activator=\"{ props: menuProps }\">\n <VIcon\n class=\"a-datetime-picker__calendar-icon\"\n icon=\"mdi-calendar\"\n size=\"small\"\n :aria-label=\"t('$vuetify.datePicker.title')\"\n v-bind=\"menuProps\"\n @keydown.enter.space.prevent=\"togglePicker\"\n @keyup.enter.stop\n />\n </template>\n\n <VCard v-if=\"pickerOpened\">\n <VBtn\n v-tooltip=\"t('common.button.close')\"\n :aria-label=\"t('common.button.close')\"\n icon\n variant=\"text\"\n :width=\"36\"\n :height=\"36\"\n class=\"position-absolute top-0 right-0\"\n @click.stop=\"close\"\n >\n <VIcon\n icon=\"mdi-close\"\n color=\"white\"\n />\n </VBtn>\n <VDatePicker\n :key=\"pickerKey\"\n v-model=\"datePickerValue\"\n class=\"a-datetime-picker-calendar\"\n color=\"primary\"\n show-adjacent-months\n v-bind=\"$attrs\"\n @update:model-value=\"onDatePickerUpdate\"\n />\n <TimePicker\n v-if=\"type !== 'date'\"\n ref=\"timePickerInstance\"\n :key=\"timeKey\"\n v-model=\"timePickerValue\"\n @enter-keyup=\"onTimePickerEnterKeyup\"\n @focus-confirm=\"onFocusConfirm\"\n />\n <div class=\"d-flex\">\n <button\n v-if=\"!hideSetToNow\"\n type=\"button\"\n class=\"a-datetime-picker__bottom-button\"\n tabindex=\"8\"\n @click=\"now\"\n >\n {{ type === 'date' ? t('common.time.today') : t('common.time.now') }}\n </button>\n <button\n ref=\"confirmRefButton\"\n type=\"button\"\n class=\"a-datetime-picker__bottom-button\"\n tabindex=\"7\"\n @click.stop=\"close\"\n >\n {{ t('common.button.confirm') }}\n </button>\n </div>\n </VCard>\n </VMenu>\n\n <div class=\"ml-1\">\n <slot name=\"append-inner\" />\n </div>\n </template>\n <template\n v-if=\"!hideLabel\"\n #label\n >\n {{ label\n }}<span\n v-if=\"required\"\n class=\"a-required-mark\"\n />\n </template>\n </VTextField>\n</template>\n\n<style lang=\"scss\" scoped>\n.a-datetime-picker {\n :deep(.v-field__append-inner .v-icon) {\n cursor: pointer;\n }\n\n &__calendar-icon {\n margin-top: 2px;\n opacity: 0.6 !important;\n }\n\n &__clearable-icon {\n opacity: 0 !important;\n }\n\n &:hover {\n .a-datetime-picker__clearable-icon {\n opacity: 0.6 !important;\n }\n }\n\n &__bottom-button {\n width: 100%;\n text-align: center;\n font-size: 0.86rem;\n font-family: Roboto, sans-serif;\n font-weight: bold;\n line-height: 1.8;\n padding: 6px 0;\n\n &:hover {\n background-color: rgb(0 0 0 / 5%);\n }\n }\n}\n\n.a-datetime-picker-calendar {\n :deep(.v-picker-title) {\n display: none;\n }\n\n :deep(.v-date-picker-header) {\n padding-top: 12px;\n }\n\n :deep(.v-date-picker-month) {\n padding-bottom: 2px;\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBA,IAAM8B,IAAQC,GAqCRC,IAAOH,GASPI,IAAeC,EAAI,EAAK,GACxBC,IAAYD,EAAI,CAAC,GACjBE,IAAUF,EAAI,CAAC,GACfG,IAAqBC,EAAgD,oBAAoB,GACzFC,IAAgBD,EAAgD,eAAe,GAC/EE,IAAmBF,EAAkC,kBAAkB,GACvEG,IAAiBP,EAAI,EAAE,GAEvBQ,IAAkBR,EAAiB,IAAI,GACvCS,IAAkBT,EAA+C,IAAI,GACrEU,IAAmBV,EAAkB,IAAI,GAEzC,EAAE,SAAMW,GAAQ,GAEhBC,KAAsBC,QACnBjB,EAAM,YAAY,SAASA,EAAM,cAAckB,EAAelB,EAAM,IAAI,CAChF,GAEK,EA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EAAAW,EAAA,SAAI,SAAcxB,EAAAgG,CAAA,CAAC,CAAA,mBAAA,IAAwBhG,EAAAgG,CAAA,CAAC,CAAA,iBAAA,CAAA,GAAA,CAAA,IAEjDrF,EAQS,UAAA;QAPH,SAAA;QAAJ,KAAIsB;QACJ,MAAK;QACL,OAAM;QACN,UAAS;QACR,SAAKhC,EAAO6E,GAAK,CAAA,MAAA,CAAA;OAEf,GAAAjE,EAAAb,EAAAgG,CAAA,CAAC,CAAA,uBAAA,CAAA,GAAA,GAAA,C;;;;;;IAMZrF,EAEM,OAFNQ,GAEM,CADJL,EAA4B+F,EAAA,QAAA,gBAAA,CAAA,GAAA,KAAA,GAAA,EAAA,C;;;E,IAIvBrF,EAAA,Y;GACN,MAAA;GAED,IAAA1B,QACE,CADCiB,GAAAF,EAAAW,EAAA,KAAK,GAAA,CAAA,GAEAA,EAAA,YADN9B,EAAA,GAAAkB,EAGA,QAHAQ,CAGA,K"}
@@ -18,7 +18,7 @@ function o(o, s) {
18
18
  });
19
19
  if (i.length && !n) {
20
20
  let { showWarning: t } = e();
21
- t(r("common.system.upload.incorrectFormatSize") + ":" + i.join(", "));
21
+ t(r("common.system.upload.incorrectFormatSize") + ": " + i.join(", "));
22
22
  }
23
23
  return o;
24
24
  }, d = (e, n) => {
@@ -1 +1 @@
1
- {"version":3,"file":"formatAndSizeCheck.js","names":["t","useFormatAndSizeCheck","acceptKeys","computed","accept","toValue","acceptSource","isUndefined","key","maxSizeKeys","maxSizes","maxSizesSource","checkFormatsAndSizes","incorrectFileNames","validFiles","files","isFileValid","checkFormats","file","checkSizes","disableAlert","useAlerts","commonT","accepts","splitType","damFileTypeFix","keys","sizes","limit","pattern"],"sources":["../../../../../src/domains/ui/file/composables/formatAndSizeCheck.ts"],"sourcesContent":["import { useAlerts } from '@/domains/system/composables/alerts'\nimport { damFileTypeFix } from '@/domains/ui/file/utils/fileType'\nimport { isUndefined } from '@/shared/utils/common'\nimport { computed, type MaybeRefOrGetter, toValue } from 'vue'\nimport { commonT } from '@/plugins/i18n'\n\n/**\n * @param accept example: 'image/*,.jpg'\n * @param maxSizes example: { 'image/*': 20000 } or { 'image/png': 20000, 'image/jpg': 20000 } or\n * { '.jpg': 20000, '.png': 20000 } or { '*': 20000, }\n */\nexport function useFormatAndSizeCheck(\n acceptSource: MaybeRefOrGetter<string | undefined>,\n maxSizesSource: MaybeRefOrGetter<Record<string, number> | undefined>\n) {\n const acceptKeys = computed(() => {\n const accept = toValue(acceptSource)\n if (isUndefined(accept)) {\n return []\n }\n // File names are compared lowercased, and `'image/*, .jpg'` is a list of two.\n return accept.split(',').map((key) => key.trim().toLowerCase())\n })\n\n const maxSizeKeys = computed(() => {\n const maxSizes = toValue(maxSizesSource)\n if (isUndefined(maxSizes)) {\n return []\n }\n return Object.keys(maxSizes)\n })\n\n const checkFormatsAndSizes = (files: File[], disableAlert = false) => {\n const incorrectFileNames: string[] = []\n const validFiles = files.filter((file) => {\n const isFileValid =\n checkFormats(file, acceptKeys.value) && checkSizes(file, maxSizeKeys.value, toValue(maxSizesSource))\n if (!isFileValid) {\n incorrectFileNames.push(file.name)\n }\n return isFileValid\n })\n if (incorrectFileNames.length && !disableAlert) {\n const { showWarning } = useAlerts()\n const t = commonT\n showWarning(t('common.system.upload.incorrectFormatSize') + ':' + incorrectFileNames.join(', '))\n }\n\n return validFiles\n }\n\n const checkFormats = (file: File, accepts: string[]) => {\n if (accepts.length === 0) {\n return true\n }\n for (const accept of accepts) {\n if (accept.startsWith('.')) {\n if (file.name.toLowerCase().endsWith(accept)) {\n return true\n }\n } else {\n const splitType = accept.split('/')\n if (splitType[1] === '*' && damFileTypeFix(file).startsWith(splitType[0] + '/')) {\n return true\n } else if (accept === damFileTypeFix(file)) {\n return true\n }\n }\n }\n return false\n }\n\n const checkSizes = (file: File, keys: Array<string>, sizes: Record<string, number> | undefined) => {\n if (keys.length === 0 || isUndefined(sizes)) {\n return true\n }\n // A file exactly at the limit passes, as in the DAM's own check.\n // `keys` are `Object.keys` of these same sizes.\n for (const key of keys) {\n const limit = sizes[key]!\n const pattern = key.trim().toLowerCase()\n if (pattern === '*') {\n if (limit >= file.size) return true\n } else if (pattern.startsWith('.')) {\n if (file.name.toLowerCase().endsWith(pattern) && limit >= file.size) return true\n } else {\n const splitType = pattern.split('/')\n if (splitType[1] === '*' && damFileTypeFix(file).startsWith(splitType[0] + '/') && limit >= file.size) {\n return true\n } else if (pattern === damFileTypeFix(file) && limit >= file.size) {\n return true\n }\n }\n }\n return false\n }\n\n return {\n checkFormatsAndSizes,\n }\n}\n"],"mappings":";;;;;;AAWA,SAAgBC,EACd,GACA,GACA;CACA,IAAMC,IAAaC,QAAe;EAChC,IAAMC,IAASC,EAAQC,CAAY;EAKnC,OAJIC,EAAYH,CAAM,IACb,CAAC,IAGHA,EAAO,MAAM,GAAG,CAAC,CAAC,KAAK,MAAQI,EAAI,KAAK,CAAC,CAAC,YAAY,CAAC;CAChE,CAAC,GAEKC,IAAcN,QAAe;EACjC,IAAMO,IAAWL,EAAQM,CAAc;EAIvC,OAHIJ,EAAYG,CAAQ,IACf,CAAC,IAEH,OAAO,KAAKA,CAAQ;CAC7B,CAAC,GAEKE,KAAwB,GAAe,IAAe,OAAU;EACpE,IAAMC,IAA+B,CAAC,GAChCC,IAAaC,EAAM,QAAQ,MAAS;GACxC,IAAMC,IACJC,EAAaC,GAAMhB,EAAW,KAAK,KAAKiB,EAAWD,GAAMT,EAAY,OAAOJ,EAAQM,CAAc,CAAC;GAIrG,OAHKK,KACHH,EAAmB,KAAKK,EAAK,IAAI,GAE5BF;EACT,CAAC;EACD,IAAIH,EAAmB,UAAU,CAACO,GAAc;GAC9C,IAAM,EAAE,mBAAgBC,EAAU;GAElC,EAAYrB,EAAE,0CAA0C,IAAI,MAAMa,EAAmB,KAAK,IAAI,CAAC;EACjG;EAEA,OAAOC;CACT,GAEMG,KAAgB,GAAY,MAAsB;EACtD,IAAIM,EAAQ,WAAW,GACrB,OAAO;EAET,KAAK,IAAMnB,KAAUmB,GACnB,IAAInB,EAAO,WAAW,GAAG,GACnB;OAAAc,EAAK,KAAK,YAAY,CAAC,CAAC,SAASd,CAAM,GACzC,OAAO;EAAA,OAEJ;GACL,IAAMoB,IAAYpB,EAAO,MAAM,GAAG;GAG3B,IAFHoB,EAAU,OAAO,OAAOC,EAAeP,CAAI,CAAC,CAAC,WAAWM,EAAU,KAAK,GAAG,KAEnEpB,MAAWqB,EAAeP,CAAI,GACvC,OAAO;EAEX;EAEF,OAAO;CACT,GAEMC,KAAc,GAAY,GAAqB,MAA8C;EACjG,IAAIO,EAAK,WAAW,KAAKnB,EAAYoB,CAAK,GACxC,OAAO;EAIT,KAAK,IAAMnB,KAAOkB,GAAM;GACtB,IAAME,IAAQD,EAAMnB,IACdqB,IAAUrB,EAAI,KAAK,CAAC,CAAC,YAAY;GACvC,IAAIqB,MAAY,KACV;QAAAD,KAASV,EAAK,MAAM,OAAO;GAAA,OAC1B,IAAIW,EAAQ,WAAW,GAAG,GAC3B;QAAAX,EAAK,KAAK,YAAY,CAAC,CAAC,SAASW,CAAO,KAAKD,KAASV,EAAK,MAAM,OAAO;GAAA,OACvE;IACL,IAAMM,IAAYK,EAAQ,MAAM,GAAG;IAG5B,IAFHL,EAAU,OAAO,OAAOC,EAAeP,CAAI,CAAC,CAAC,WAAWM,EAAU,KAAK,GAAG,KAAKI,KAASV,EAAK,QAEtFW,MAAYJ,EAAeP,CAAI,KAAKU,KAASV,EAAK,MAC3D,OAAO;GAEX;EACF;EACA,OAAO;CACT;CAEA,OAAO,EACL,wBACF;AACF"}
1
+ {"version":3,"file":"formatAndSizeCheck.js","names":["t","useFormatAndSizeCheck","acceptKeys","computed","accept","toValue","acceptSource","isUndefined","key","maxSizeKeys","maxSizes","maxSizesSource","checkFormatsAndSizes","incorrectFileNames","validFiles","files","isFileValid","checkFormats","file","checkSizes","disableAlert","useAlerts","commonT","accepts","splitType","damFileTypeFix","keys","sizes","limit","pattern"],"sources":["../../../../../src/domains/ui/file/composables/formatAndSizeCheck.ts"],"sourcesContent":["import { useAlerts } from '@/domains/system/composables/alerts'\nimport { damFileTypeFix } from '@/domains/ui/file/utils/fileType'\nimport { isUndefined } from '@/shared/utils/common'\nimport { computed, type MaybeRefOrGetter, toValue } from 'vue'\nimport { commonT } from '@/plugins/i18n'\n\n/**\n * @param accept example: 'image/*,.jpg'\n * @param maxSizes example: { 'image/*': 20000 } or { 'image/png': 20000, 'image/jpg': 20000 } or\n * { '.jpg': 20000, '.png': 20000 } or { '*': 20000, }\n */\nexport function useFormatAndSizeCheck(\n acceptSource: MaybeRefOrGetter<string | undefined>,\n maxSizesSource: MaybeRefOrGetter<Record<string, number> | undefined>\n) {\n const acceptKeys = computed(() => {\n const accept = toValue(acceptSource)\n if (isUndefined(accept)) {\n return []\n }\n // File names are compared lowercased, and `'image/*, .jpg'` is a list of two.\n return accept.split(',').map((key) => key.trim().toLowerCase())\n })\n\n const maxSizeKeys = computed(() => {\n const maxSizes = toValue(maxSizesSource)\n if (isUndefined(maxSizes)) {\n return []\n }\n return Object.keys(maxSizes)\n })\n\n const checkFormatsAndSizes = (files: File[], disableAlert = false) => {\n const incorrectFileNames: string[] = []\n const validFiles = files.filter((file) => {\n const isFileValid =\n checkFormats(file, acceptKeys.value) && checkSizes(file, maxSizeKeys.value, toValue(maxSizesSource))\n if (!isFileValid) {\n incorrectFileNames.push(file.name)\n }\n return isFileValid\n })\n if (incorrectFileNames.length && !disableAlert) {\n const { showWarning } = useAlerts()\n const t = commonT\n showWarning(t('common.system.upload.incorrectFormatSize') + ': ' + incorrectFileNames.join(', '))\n }\n\n return validFiles\n }\n\n const checkFormats = (file: File, accepts: string[]) => {\n if (accepts.length === 0) {\n return true\n }\n for (const accept of accepts) {\n if (accept.startsWith('.')) {\n if (file.name.toLowerCase().endsWith(accept)) {\n return true\n }\n } else {\n const splitType = accept.split('/')\n if (splitType[1] === '*' && damFileTypeFix(file).startsWith(splitType[0] + '/')) {\n return true\n } else if (accept === damFileTypeFix(file)) {\n return true\n }\n }\n }\n return false\n }\n\n const checkSizes = (file: File, keys: Array<string>, sizes: Record<string, number> | undefined) => {\n if (keys.length === 0 || isUndefined(sizes)) {\n return true\n }\n // A file exactly at the limit passes, as in the DAM's own check.\n // `keys` are `Object.keys` of these same sizes.\n for (const key of keys) {\n const limit = sizes[key]!\n const pattern = key.trim().toLowerCase()\n if (pattern === '*') {\n if (limit >= file.size) return true\n } else if (pattern.startsWith('.')) {\n if (file.name.toLowerCase().endsWith(pattern) && limit >= file.size) return true\n } else {\n const splitType = pattern.split('/')\n if (splitType[1] === '*' && damFileTypeFix(file).startsWith(splitType[0] + '/') && limit >= file.size) {\n return true\n } else if (pattern === damFileTypeFix(file) && limit >= file.size) {\n return true\n }\n }\n }\n return false\n }\n\n return {\n checkFormatsAndSizes,\n }\n}\n"],"mappings":";;;;;;AAWA,SAAgBC,EACd,GACA,GACA;CACA,IAAMC,IAAaC,QAAe;EAChC,IAAMC,IAASC,EAAQC,CAAY;EAKnC,OAJIC,EAAYH,CAAM,IACb,CAAC,IAGHA,EAAO,MAAM,GAAG,CAAC,CAAC,KAAK,MAAQI,EAAI,KAAK,CAAC,CAAC,YAAY,CAAC;CAChE,CAAC,GAEKC,IAAcN,QAAe;EACjC,IAAMO,IAAWL,EAAQM,CAAc;EAIvC,OAHIJ,EAAYG,CAAQ,IACf,CAAC,IAEH,OAAO,KAAKA,CAAQ;CAC7B,CAAC,GAEKE,KAAwB,GAAe,IAAe,OAAU;EACpE,IAAMC,IAA+B,CAAC,GAChCC,IAAaC,EAAM,QAAQ,MAAS;GACxC,IAAMC,IACJC,EAAaC,GAAMhB,EAAW,KAAK,KAAKiB,EAAWD,GAAMT,EAAY,OAAOJ,EAAQM,CAAc,CAAC;GAIrG,OAHKK,KACHH,EAAmB,KAAKK,EAAK,IAAI,GAE5BF;EACT,CAAC;EACD,IAAIH,EAAmB,UAAU,CAACO,GAAc;GAC9C,IAAM,EAAE,mBAAgBC,EAAU;GAElC,EAAYrB,EAAE,0CAA0C,IAAI,OAAOa,EAAmB,KAAK,IAAI,CAAC;EAClG;EAEA,OAAOC;CACT,GAEMG,KAAgB,GAAY,MAAsB;EACtD,IAAIM,EAAQ,WAAW,GACrB,OAAO;EAET,KAAK,IAAMnB,KAAUmB,GACnB,IAAInB,EAAO,WAAW,GAAG,GACnB;OAAAc,EAAK,KAAK,YAAY,CAAC,CAAC,SAASd,CAAM,GACzC,OAAO;EAAA,OAEJ;GACL,IAAMoB,IAAYpB,EAAO,MAAM,GAAG;GAG3B,IAFHoB,EAAU,OAAO,OAAOC,EAAeP,CAAI,CAAC,CAAC,WAAWM,EAAU,KAAK,GAAG,KAEnEpB,MAAWqB,EAAeP,CAAI,GACvC,OAAO;EAEX;EAEF,OAAO;CACT,GAEMC,KAAc,GAAY,GAAqB,MAA8C;EACjG,IAAIO,EAAK,WAAW,KAAKnB,EAAYoB,CAAK,GACxC,OAAO;EAIT,KAAK,IAAMnB,KAAOkB,GAAM;GACtB,IAAME,IAAQD,EAAMnB,IACdqB,IAAUrB,EAAI,KAAK,CAAC,CAAC,YAAY;GACvC,IAAIqB,MAAY,KACV;QAAAD,KAASV,EAAK,MAAM,OAAO;GAAA,OAC1B,IAAIW,EAAQ,WAAW,GAAG,GAC3B;QAAAX,EAAK,KAAK,YAAY,CAAC,CAAC,SAASW,CAAO,KAAKD,KAASV,EAAK,MAAM,OAAO;GAAA,OACvE;IACL,IAAMM,IAAYK,EAAQ,MAAM,GAAG;IAG5B,IAFHL,EAAU,OAAO,OAAOC,EAAeP,CAAI,CAAC,CAAC,WAAWM,EAAU,KAAK,GAAG,KAAKI,KAASV,EAAK,QAEtFW,MAAYJ,EAAeP,CAAI,KAAKU,KAASV,EAAK,MAC3D,OAAO;GAEX;EACF;EACA,OAAO;CACT;CAEA,OAAO,EACL,wBACF;AACF"}
@@ -1,18 +1,19 @@
1
- import { createElementBlock as e, defineComponent as t, onMounted as n, openBlock as r } from "vue";
1
+ import { broadcastSessionEnd as e } from "../../../auth/composables/sessionEnd.js";
2
+ import { createElementBlock as t, defineComponent as n, onMounted as r, openBlock as i } from "vue";
2
3
  // src/domains/ui/view/components/ALogoutView.vue?vue&type=script&setup=true&lang.ts
3
- var i = /*@__PURE__*/ t({
4
+ var a = /*@__PURE__*/ n({
4
5
  __name: "ALogoutView",
5
6
  props: { logoutUrl: {
6
7
  type: Function,
7
8
  default: void 0
8
9
  } },
9
- setup(t) {
10
- let i = t;
11
- return n(() => {
12
- i.logoutUrl && window.location.replace(i.logoutUrl());
13
- }), (t, n) => (r(), e("div"));
10
+ setup(n) {
11
+ let a = n;
12
+ return r(() => {
13
+ a.logoutUrl && (e(), window.location.replace(a.logoutUrl()));
14
+ }), (e, n) => (i(), t("div"));
14
15
  }
15
16
  });
16
- export { i as default };
17
+ export { a as default };
17
18
 
18
19
  //# sourceMappingURL=ALogoutView.vue_vue_type_script_setup_true_lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ALogoutView.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","ALogoutView_vue_vue_type_script_setup_true_lang_default","props","__props","onMounted","openBlock","createElementBlock"],"sources":["../../../../../src/domains/ui/view/components/ALogoutView.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { onMounted } from 'vue'\n\nconst props = withDefaults(\n defineProps<{\n logoutUrl?: undefined | (() => string)\n }>(),\n {\n logoutUrl: undefined,\n }\n)\n\n// The sign-out address replaces the admin's `/logout` in browser history. Otherwise\n// Back after the next sign-in reaches `/logout` and signs the user out at once.\nonMounted(() => {\n if (!props.logoutUrl) return\n window.location.replace(props.logoutUrl())\n})\n</script>\n\n<template>\n <div />\n</template>\n"],"mappings":";;;;;;;;;EAGA,IAAMG,IAAQC;E,OAWdC,QAAgB;GACd,AAAKF,EAAM,aACX,OAAO,SAAS,QAAQA,EAAM,UAAU,CAAC;EAC3C,CAAC,I,UAICH,EAAA,GAAAC,EAAO,KAAA"}
1
+ {"version":3,"file":"ALogoutView.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","ALogoutView_vue_vue_type_script_setup_true_lang_default","props","__props","onMounted","broadcastSessionEnd","openBlock","createElementBlock"],"sources":["../../../../../src/domains/ui/view/components/ALogoutView.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { onMounted } from 'vue'\nimport { broadcastSessionEnd } from '@/domains/auth/composables/sessionEnd'\n\nconst props = withDefaults(\n defineProps<{\n logoutUrl?: undefined | (() => string)\n }>(),\n {\n logoutUrl: undefined,\n }\n)\n\n// The sign-out address replaces the admin's `/logout` in browser history. Otherwise\n// Back after the next sign-in reaches `/logout` and signs the user out at once.\n// Every sign-out of the admins comes here, so the other tabs learn of it here.\nonMounted(() => {\n if (!props.logoutUrl) return\n broadcastSessionEnd()\n window.location.replace(props.logoutUrl())\n})\n</script>\n\n<template>\n <div />\n</template>\n"],"mappings":";;;;;;;;;;EAIA,IAAMG,IAAQC;E,OAYdC,QAAgB;GACd,AAAKF,EAAM,cACXG,EAAoB,GACpB,OAAO,SAAS,QAAQH,EAAM,UAAU,CAAC;EAC3C,CAAC,I,UAICH,EAAA,GAAAC,EAAO,KAAA"}
package/dist/lib.d.ts CHANGED
@@ -149,11 +149,11 @@ import { UrlParams } from './domains/api/utils/apiHelper';
149
149
  import { generateUUIDv1, generateUUIDv4 } from './shared/utils/generator';
150
150
  import { localTimeShiftInSeconds, useLoginStatus } from './domains/system/composables/loginStatus';
151
151
  import { useRemainingTime } from './domains/ui/datetime/composables/remainingTime';
152
- import { AssetCustomData, AssetDetailItemDto, AssetFileProperties, AssetMetadataDto, AssetMetadataSuggestions, AssetSearchListItemDto, DamAssetStatus, DamAssetStatusDefault, DamAssetStatusType, DamAssetType, DamAssetTypeDefault, DamAssetTypeType, DamDistributionServiceName } from './domains/dam/types/Asset';
152
+ import { AssetCustomData, AssetDetailItemDto, AssetFileProperties, AssetMetadataDto, AssetMetadataSuggestions, AssetSearchListItemDto, AssetSingleUseUsage, AssetSingleUseUsageEntry, AssetSingleUseUsageStatusType, AssetSingleUseUsageStatus, DamAssetStatus, DamAssetStatusDefault, DamAssetStatusType, DamAssetType, DamAssetTypeDefault, DamAssetTypeType, DamDistributionServiceName } from './domains/dam/types/Asset';
153
153
  import { AssetFile, AssetFileAudio, AssetFileDocument, AssetFileDownloadLink, AssetFileFailReason, AssetFileFailReasonType, AssetFileImage, AssetFileImagePreviewNullable, assetFileIsAudioFile, assetFileIsImageFile, assetFileIsVideoFile, AssetFileLink, AssetFileLinks, AssetFileLinkType, AssetFileLinkTypeType, AssetFileMainRouteAware, AssetFileNullable, AssetFileProcessStatus, AssetFileProcessStatusType, AssetFileRoute, AssetFileRouteStatus, AssetFileRouteStatusType, AssetFileVideo } from './domains/dam/types/AssetFile';
154
154
  import { DamUploadStartResponse, UploadQueue, UploadQueueItem, UploadQueueItemStatus, UploadQueueItemStatusType, UploadQueueItemType, UploadQueueItemTypeType, UploadQueueKey } from './domains/dam/types/UploadQueue';
155
155
  import { CustomDataAware, CustomDataFormElement, CustomDataFormElementAttributes, CustomDataValue } from './domains/customDataForm/types/CustomDataForm';
156
- import { AssetSelectReturnData, AssetSelectReturnType, AssetSelectReturnTypeType } from './domains/dam/types/AssetSelect';
156
+ import { AssetSelectReturnData, AssetSelectReturnType, AssetSelectReturnTypeType, AssetSelectUsageHolder } from './domains/dam/types/AssetSelect';
157
157
  import { SortableItemDataAware } from './shared/types/sortableUtils';
158
158
  import { useDamConfigState } from './domains/dam/config/composables/damConfigState';
159
159
  import { DamDistributionConfig, DamDistributionRequirementsCategorySelectConfig, DamDistributionRequirementsConfig, DamDistributionRequirementStrategy, DamDistributionRequirementStrategyType, DamDistributionServiceType, DamDistributionServiceTypeType, DamDistributionStatus, DamDistributionStatusType, DamExternalProviderAssetConfig, DamExternalProviderAssetName, DamExtSystemAssetTypeExifMetadata, DamExtSystemConfig, DamExtSystemConfigItem, DamExtSystemConfigItemImage, DamPrvConfig, DamPubConfig, UserAuthType, UserAuthTypeType, DamConfigLicenceExtSystemReturnType } from './domains/dam/types/DamConfig';
@@ -171,7 +171,7 @@ import { uploadSettlementRuntime, UploadSettlementScheduler, UploadSettlementVis
171
171
  import { UploadReadOptions, UploadRefreshOutcome, UploadRowRole, UploadRowRoleType, UploadSettlement, UploadSettlementEvent, UploadSettlementProfile, UploadSettlementTarget, UploadSettlePolicy } from './domains/dam/uploadQueue/settlement/uploadSettlementTypes';
172
172
  import { useDropzoneGlobalDragState } from './domains/ui/file/composables/dropzone';
173
173
  import { DamNotificationName, DamNotificationNameType } from './domains/dam/composables/damNotificationsEventBus';
174
- import { ImageAware, ImageCreateUpdateAware, ImageCreateUpdateAwareKeyed } from './domains/dam/types/ImageAware';
174
+ import { applyImageOwner, ImageAware, ImageCreateUpdateAware, ImageOwner, ImageCreateUpdateAwareKeyed } from './domains/dam/types/ImageAware';
175
175
  import { DamAuthor, DamAuthorMinimal } from './domains/dam/author/types/DamAuthor';
176
176
  import { DamKeyword, DamKeywordMinimal } from './domains/dam/keyword/types/DamKeyword';
177
177
  import { DamExtSystem, DamExtSystemMinimal } from './domains/dam/types/DamExtSystem';
@@ -179,7 +179,7 @@ import { DamAuthorType, DamAuthorTypeType, useDamAuthorType } from './domains/da
179
179
  import { useDamKeywordFactory } from './domains/dam/keyword/factory/KeywordFactory';
180
180
  import { useDamAuthorFactory } from './domains/dam/author/factory/AuthorFactory';
181
181
  import { DamCurrentUserDto } from './domains/dam/types/DamCurrentUser';
182
- import { DamAssetLicence, DamAssetLicenceCached, DamAssetLicenceExtended, DamAssetLicenceMinimal, DamAssetLicenceSelectFields } from './domains/dam/types/AssetLicence';
182
+ import { DamAssetLicence, DamAssetLicenceCached, DamAssetLicenceExtended, DamAssetLicenceFlags, DamAssetLicenceMinimal, DamAssetLicenceSelectFields } from './domains/dam/types/AssetLicence';
183
183
  import { DamAssetListViewMinimal, DamAssetListViewResolved } from './domains/dam/types/AssetListView';
184
184
  import { DamAssetLicenceGroup } from './domains/dam/types/AssetLicenceGroup';
185
185
  import { useCollabInit } from './domains/collab/composables/collabInit';
@@ -211,6 +211,7 @@ import { useCommonAdminImageOptions } from './domains/dam/imageWidget/composable
211
211
  import { defineAuth, ROLE_SUPER_ADMIN } from './domains/auth/composables/defineAuth';
212
212
  import { useAclAllowed } from './domains/auth/composables/aclAllowed';
213
213
  import { AuthCookieState, createRefreshRequestInterceptor, createRefreshSession, RefreshResult } from './domains/auth/composables/refreshSession';
214
+ import { broadcastSessionEnd, endSession, sessionLive, useSessionEnd, watchSessionEnd } from './domains/auth/composables/sessionEnd';
214
215
  import { AuthUnavailableError } from './shared/error/AuthUnavailableError';
215
216
  import { SessionExpiredError } from './shared/error/SessionExpiredError';
216
217
  import { isInCauseChain } from './shared/error/isInCauseChain';
@@ -304,7 +305,7 @@ import { OTHER_SYSTEMS_TAB, UserSystemTab } from './domains/anzuUser/utils/userT
304
305
  import { useUserCreateFromSource, UseUserCreateFromSourceOptions } from './domains/anzuUser/composables/userCreateFromSource';
305
306
  import { USER_PROBE_ENTITY, UserSystemRefreshHook } from './domains/anzuUser/composables/userSystemProbe';
306
307
  import { default as AUserSystemOverview } from './domains/anzuUser/components/AUserSystemOverview.vue';
307
- export { ACard, AProgress, ARow, AChipNoLink, AAlerts, AActionbar, AActionbarTarget, ALayoutLoader, ALayoutSwitch, actionbarSlot, createTeleportSlot, type TeleportSlot, ABooleanValue, ASystemEntityScope, AFormTextField, AFormTextarea, AFormDatetimePicker, AFormFlagDatetimePicker, AFormRemoteCheckbox, AFormRemoteSwitch, AFormSwitch, AFormValueObjectOptionsSelect, ADatetime, ADatetimePicker, ADatatableConfigButton, ADialogToolbar, ACreateDialog, AJobStatusChip, ACachedChip, ACachedUserChip, AAdminSwitcher, ATimeTrackingFields, Acl, ACopyText, AIconGroup, AUserAndTimeTrackingFields, AActionCloseButtonHistory, AActionCreateButton, AActionDeleteButton, AActionEditButton, AActionSaveButton, ATableCopyIdButton, ATableDetailButton, ATableEditButton, ABtnSplit, AThemeSelect, ALanguageSelect, ASystemBar, AAnzuUserAvatar, AAvatarColorPicker, ACurrentUserDropdown, AJobDetailCommon, AJobPriorityChip, AJobBaseCreateForm, ACustomDataForm, ACustomDataFormElement, AImageWidget, AImageWidgetInner, AImageMediaWidget, AImageWidgetSimple, AMediaWidgetSimple, AImageWidgetMultiple, AImageWidgetMultipleInner, AImageWidgetMultipleSimple, AImageMassOperations, AImagePublicInput, ADamAssetImageRoiSelect, ACollabLockedByUser, ACollabManagement, AFileInput, AAssetSelect, AAssetListInner, ABooleanSelect, ADamExtSystemRemoteAutocomplete, ADamExternalProviderAssetSelect, ADamDistributionServiceSelect, ADamAssetLicenceRemoteAutocomplete, ADamAssetListViewRemoteAutocomplete, ADamAssetLicenceGroupRemoteAutocomplete, ADamAuthorFilterRemoteAutocomplete, ADamKeywordFilterRemoteAutocomplete, ADamUserFilterRemoteAutocomplete, ADamUserRemoteAutocomplete, ADamAdminAssetLink, ALoginView, ALogoutView, AUnauthorizedView, ANotFoundView, AGenericView, useRouteHistory, type NavigateBackOptions, type NavigateBackTarget, type RouteHistoryEntry, handleRecordLoadError, useRecordPage, type UseRecordPageOptions, type UseRecordPageReturn, defineRecordLoader, defineRecordSave, trackNavigation, isNavigationPending, usePageNavigation, type UsePageNavigationReturn, createNavigationErrorHandler, type NavigationErrorHandlerOptions, useRemainingTime, useAlerts, useTheme, defineCached, useCachedItem, Theme, type ThemeType, useLanguageSettings, modifyLanguageSettings, useLoginStatus, generateDatatableMinMaxSelectStrategy, useCustomDataFormElementType, useDamConfigState, useUploadQueueItemFactory, useDamUploadChunkSize, useDamAcceptTypeAndSizeHelper, useAssetSuggestions, destroyDamNotifications, initDamNotifications, useDamNotifications, useDamNotificationsConnection, createUploadSettlement, uploadSettlementRuntime, UPLOAD_POLL_SCHEDULE, useDropzoneGlobalDragState, useDamKeywordFactory, useDamAuthorFactory, useDamAuthorType, useDamDistributionServiceType, useDamAssetLicenceInnerFilter, useImageActions, useCommonAdminImageOptions, defineAuth, useAclAllowed, AuthUnavailableError, type AuthCookieState, createRefreshRequestInterceptor, createRefreshSession, isInCauseChain, type RefreshResult, SessionExpiredError, defineBreadcrumbs, useDamCachedUsers, useDamCachedAssetLicences, useUnreleasedFeatures, useDebugFeatures, useSentry, useUserActivity, type GrantType, Grant, useGrant, type GrantOriginType, GrantOrigin, GrantOriginDefault, useGrantOrigin, LogLevel, type LogLevelType, type IntegerId, type IntegerIdNullable, type DocId, type DocIdNullable, type DatetimeUTCNullable, type DatetimeUTC, type DateUTC, type DatetimePickerType, type AnzuUser, type BaseUser, type AnzuUserMinimal, type AnzuUserAndTimeTrackingAware, type ValueObjectOption, type CreatedByAware, type PermissionConfig, type PermissionTranslationGroup, type PermissionGroup, type PermissionGroupMinimal, type VuetifyIconValue, type JobBase, type JobUserDataDelete, JOB_RESOURCE_USER_DATA_DELETE, JobStatus, JobStatusDefault, type JobStatusType, type JobBaseResource, useCommonJobFactory, type AclValue, type AclRegistry, type AclValueOf, type RegisteredAclValue, type Permissions, type PluginOptions, type CommonAdminImageOptions, type CommonAdminCoreDamOptions, type CommonAdminCollabOptions, type LanguageCode, type Immutable, type ResourceNameSystemAware, type ValidationScope, type AFormFieldValidation, type CommonAdminGlobalComponents, type ACreateDialogValidation, type Log, type ApiInfiniteResponseList, type DatatableOrderingOption, type DatatableOrderingOptions, type DatatableSortBy, type SortOrderType, type ObjectLeaves, type UniqueValues, ensureUniqueValues, type CachedItem, type AddToCachedArgs, type CachedUnresolvedReason, type DefineCachedOptions, type RecordWasType, type UrlParams, type AssetSelectReturnData, AssetSelectReturnType, type AssetSelectReturnTypeType, type SortableItemDataAware, type AssetFileProperties, type AssetSearchListItemDto, type AssetDetailItemDto, type AssetMetadataDto, type AssetCustomData, type AssetMetadataSuggestions, AssetFileFailReason, type AssetFileFailReasonType, AssetFileProcessStatus, type AssetFileProcessStatusType, AssetFileLinkType, type AssetFileLinkTypeType, type AssetFile, type AssetFileDocument, type AssetFileVideo, type AssetFileAudio, type AssetFileImage, type AssetFileNullable, type AssetFileLink, type AssetFileLinks, type AssetFileRoute, AssetFileRouteStatus, type AssetFileRouteStatusType, type AssetFileMainRouteAware, type AssetFileDownloadLink, type AssetFileImagePreviewNullable, assetFileIsImageFile, assetFileIsVideoFile, assetFileIsAudioFile, type UploadQueue, type UploadQueueItem, UploadQueueItemStatus, type UploadQueueItemStatusType, UploadQueueItemType, type UploadQueueItemTypeType, type CustomDataAware, type CustomDataValue, type CustomDataFormElement, type CustomDataFormElementAttributes, CustomDataFormElementType, CustomDataFormElementTypeDefault, type CustomDataFormElementTypeType, DamAssetType, DamAssetTypeDefault, type DamAssetTypeType, DamAssetStatus, DamAssetStatusDefault, type DamAssetStatusType, type DamPubConfig, type DamPrvConfig, type DamExtSystemConfig, type DamDistributionServiceName, type DamExtSystemConfigItem, type DamExtSystemConfigItemImage, type DamExternalProviderAssetConfig, type DamExternalProviderAssetName, type DamDistributionConfig, type DamDistributionRequirementsConfig, DamDistributionRequirementStrategy, type DamDistributionRequirementStrategyType, type DamDistributionRequirementsCategorySelectConfig, type DamExtSystemAssetTypeExifMetadata, DamDistributionServiceType, type DamDistributionServiceTypeType, DamDistributionStatus, type DamDistributionStatusType, UserAuthType, type UserAuthTypeType, type DamUploadStartResponse, type DamNotificationNameType, DamNotificationName, type DamNotificationListenerOptions, UploadRowRole, type UploadRowRoleType, type UploadSettlement, type UploadSettlementProfile, type UploadSettlementEvent, type UploadSettlementTarget, type UploadSettlePolicy, type UploadRefreshOutcome, type UploadReadOptions, type UploadSettlementScheduler, type UploadSettlementVisibility, type ImageAware, type ImageCreateUpdateAware, type ImageCreateUpdateAwareKeyed, type UploadMetadataToImageMapFn, type UploadMetadataToImageMapItem, type AssetSelectMetadataToImageMapFn, isImageCreateUpdateAware, type ImageMediaCollabValue, type MediaAware, isMediaAware, type DamMediaFromDam, type DamMedia, DamMediaType, type DamMediaTypeType, type DamAuthor, type DamAuthorMinimal, type DamKeyword, type DamKeywordMinimal, DamAuthorType, type DamAuthorTypeType, type DamExtSystem, type DamExtSystemMinimal, type DamCurrentUserDto, type DamAssetLicence, type DamAssetLicenceCached, type DamAssetLicenceExtended, type DamAssetLicenceMinimal, type DamAssetLicenceSelectFields, type DamAssetListViewMinimal, type DamAssetListViewResolved, type DamAssetLicenceGroup, type DamUserUpdateDto, type DamUser, type BreadcrumbItem, type Breadcrumbs, type UploadQueueKey, type DamConfigLicenceExtSystemReturnType, useAnzuUserFactory, usePermissionConfigFactory, usePermissionGroupFactory, cloneDeep, isEmpty, isEmptyObject, isObject, isArray, isFunction, isBoolean, isDocId, isNull, isUndefined, isDefined, isInt, isString, isNumber, objectGetValueByPath, objectSetValueByPath, objectDeletePropertyByPath, objectDeepFreeze, stringToInt, stringToFloat, stringToSlug, stringSplitOnFirstOccurrence, stringToKebabCase, stringIsValidEmail, stringToBooleanExact, DATETIME_MIN, DATETIME_MAX, dateTimeEndOfDay, dateTimeStartOfDay, dateTimeNow, dateTimeFriendly, dateTimePretty, dateModifyMinutes, dateToUtc, dateNow, dateTimeToDate, datePretty, dateUtcPretty, dateUtcToday, timePretty, dateDiff, type DateDiffUnit, prettyBytes, prettyDuration, booleanToInteger, arrayItemToggle, arrayFromArgs, arrayFlatten, type NestedArray, arraysHaveSameElements, browserHistoryReplaceUrlByRouter, eventClickBlur, generateUUIDv1, generateUUIDv4, isOneOf, useJobBaseResource, useJobStatus, fetchDamAssetLicenceListByIds, fetchDamAssetListViewListByIds, useFetchDamAssetLicenceList, fetchDamAssetLicenceGroupListByIds, fetchDamExtSystemListByIds, fetchDamUserListByIds, useFetchDamUserList, updateDamUser, fetchDamUser, fetchAssetAndCheckForSingleUseByFileIds, fetchAsset, fetchAssetAsCmsMedia, fetchAssetByFileId, type IdsGroupedByLicences, messagesCs, messagesEn, messagesSk, SystemScopeKey, SubjectScopeKey, HTTP_STATUS_OK, HTTP_STATUS_CREATED, HTTP_STATUS_NO_CONTENT, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_UNAUTHORIZED, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_UNPROCESSABLE_ENTITY, ROLE_SUPER_ADMIN, NEW_LINE_MARK, COMMON_CONFIG, SORT_BY_SCORE, SORT_BY_SCORE_BEST, SORT_BY_SCORE_DATE, SORT_BY_ID, SortOrder, ImageWidgetUploadConfigKey, useValidate, useCollabInit, useCommonAdminCollabOptions, useCollabCurrentUserId, useCollabState, useCollabField, useCollabRoom, useCollabHelpers, useCollabAnyDataChange, type CollabGatheringBufferDataEvent, useCollabReconnectEventBus, useCollabGatheringBufferDataEventBus, CollabFieldLockType, type CollabFieldLockTypeType, CollabFieldLockStatus, type CollabFieldLockStatusType, type CollabFieldLockStatusPayload, type CollabUserId, type CollabUserIdNullable, type CollabRoom, CollabStatus, type CollabStatusType, CollabConnectionState, type CollabConnectionStateType, CollabReconnectVerdict, type CollabReconnectVerdictType, type CollabRoomInfo, type CollabRoomsInfo, type CollabFieldDataEnvelope, type CollabFieldData, type CollabFieldName, type CollabFieldLock, type CollabRoomLocks, type CollabRoomData, type CollabRoomPlainData, CollabAccessRoomStatus, type CollabAccessRoomStatusType, CollabChangeRoomLockStatus, type CollabChangeRoomLockStatusType, type CollabFieldLockOptions, CollabRoomJoinStrategy, type CollabRoomJoinStrategyType, type CollabJoinAckOptions, type CollabRoomOptions, CollabRequestToTakeModerationStatus, type CollabRequestToTakeModerationStatusType, CollabRequestToJoinStatus, type CollabRequestToJoinStatusType, type CollabCachedUsersMap, type CollabComponentConfig, COLLAB_FIELD_PREFIX_COMMENT, COLLAB_FIELD_PREFIX_EMBED, useDamConfigStore, useDamConfigStoreOf, type DamConfigStore, useImageStore, type CommonAdminI18n, slovakPluralizationRule, isAnzuApiForbiddenError, axiosErrorResponseIsForbidden, AnzuApiForbiddenError, isAnzuApiResponseCodeError, AnzuApiResponseCodeError, isAnzuApiForbiddenOperationError, axiosErrorResponseHasForbiddenOperationData, AnzuApiForbiddenOperationError, isAnzuApiValidationError, hasAnzuApiValidationErrorSpecific, axiosErrorResponseHasValidationData, AnzuApiValidationError, isAnzuFatalError, AnzuFatalError, isAnzuApiTimeoutError, AnzuApiTimeoutError, AnzuApiCancelledError, isAnzuApiCancelledError, AnzuError, isAnzuError, isAnzuApiAxiosError, AnzuApiAxiosError, type ValidationError, type AnzuApiValidationResponseData, isAnzuApiDependencyExistsError, axiosErrorResponseHasDependencyExistsData, AnzuApiDependencyExistsError, AnzuSystemsCommonAdmin, useCommonVuetifyConfig, createAnzuVuetify, type CreateAnzuVuetifyOptions, loadCommonFonts, getAssetTypeByMimeType, damFileTypeFix, localTimeShiftInSeconds, useSystemBar, AFilterWrapper, AFilterWrapperSidebar, AFilterWrapperSubjectSelect, AFiltersSelected, AFilterBooleanSelect, AFilterInteger, AFilterRemoteAutocomplete, AFilterString, AFilterTimeInterval, AFilterValueObjectOptionsSelect, FilterConfigKey, FilterDataKey, FilterInnerConfigKey, FilterInnerDataKey, ADatatableOrdering, ADatatablePagination, DatatablePaginationKey, AFormRemoteAutocomplete, createFilterRemoteAutocomplete, createRemoteAutocomplete, type CreateRemoteAutocompleteOptions, type RemoteAutocompleteScope, type FilterRemoteAutocompleteComponent, type FilterRemoteAutocompleteProps, type RemoteAutocompleteComponent, type RemoteAutocompleteProps, type RemoteInnerFilter, type RemoteSelectActions, AFormRemoteAutocompleteWithCached, buildFilterHash, createFilter, createFilterStore, isRouterSafeHash, useFilterHelpers, useDatatableList, type FilterHelpersMoreOptions, type FilterConfig, type FilterData, type FilterStoreIdentifier, type MakeFilterOption, type AllowedFilterValues, type FilterField, type FilterType, type FilterVariant, TimeIntervalSpecialOptions, type TimeIntervalToolsValue, type TimeIntervalSpecialOptionsType, type Pagination, useApiFetchByIds, useApiFetchItems, useApiFetchList, useApiCommand, useApiRequest, defineApiClient, startWithEnvConfig, checkForNewVersion, requestAppReload, RELOAD_VETO_GRACE, skipUrlPrefixes, type ApiClientSetup, type ApiClientRequestInterceptor, type ApiClientResponseInterceptor, type UseApiRequestParams, type ExecuteRequestParams, type UseApiRequestReturnType, type UseApiFetchListParams, type FetchListParams, type UseApiFetchListReturnType, type UseApiFetchByIdsParams, type FetchByIdsParams, type UseApiFetchByIdsReturnType, type UseApiFetchItemsParams, type FetchItemsParams, type ItemsShape, type UseApiFetchItemsReturnType, type UseApiFetchListBatchParams, type FetchListBatchParams, type UseApiFetchListBatchReturnType, defaultApiErrorLogger, apiErrorStatus, apiErrorIsReported, setApiErrorLogger, type ApiErrorContext, type ApiErrorLogger, useApiFetchListBatch, useApiQueryBuilder, generateListQuery, usePagination, createDatatableColumnsConfig, useSubjectSelect, ASubjectSelect, AListEditor, ASortableListEditor, ANestedSortableListEditor, AUnsavedConfirmDialog, useUnsavedChangesGuard, useUnsavedSection, type UnsavedSectionDescriptor, type UnsavedSectionSource, useListEditorController, type ListEditorHandle, type ExposedListEditorHandle, type UseListEditorControllerOptions, type ListEditorChanges, type ListEditorValidationResult, type GetKey, type PositionOption, type PositionStrategy, type PositionAction, renumberPositions, sortByPosition, sortByPositionDeep, type RenumberPositionsOptions, nextListEditorTempId, type NestedViewItem, useNestedListEditorController, type NestedListEditorHandle, type ExposedNestedListEditorHandle, type ExposedNestedSortableListEditorHandle, type NestedSortableListEditorExtras, type UseNestedListEditorControllerOptions, type NestedListEditorChanges, type ListEditorKey, type ListEditorValidationState, type ListViewItem, type NestedPositionHint, type NestedTree, type NestedTreeNode, type PositionHint, useJobApi, type AxiosClientFn, useUserAdminConfigApi, type UserAdminConfig, UserAdminConfigType, type UserAdminConfigTypeType, UserAdminConfigLayoutType, type UserAdminConfigLayoutTypeType, type UserAdminConfigDataFilterBookmark, type UserAdminConfigDataPinnedWidgets, useUserAdminConfigFactory, ALogListView, ALogDetailView, LogType, LogTypeDefault, type LogTypeType, isLogType, DEFAULT_LOG_PATHS, type LogPaths, type LogTimeWindow, APermissionGroupDatatable, APermissionGroupDetail, APermissionGroupManage, usePermissionGroupActions, type PermissionGroupActionsParams, AAnzuUserDatatable, AAnzuUserForm, AUserCopyPermissionsDialog, useAnzuUserActions, type AnzuUserActionsParams, defineUserSystemDescriptor, descriptorMayWrite, type UserSystemWriteAction, resolveProbeEndpoint, resolveMetadataWrite, resolveEnabledWrite, resolveCreateEndpoint, type UserSystemDescriptor, type AnyUserSystemDescriptor, type UserSystemEndpoints, type AnzuUserEndpointPair, type BaseUserEndpointPair, type UserSystemExtraState, type UserSystemManageTarget, AUserTabsShell, AUserOtherSystemsTable, AUserMissingAccount, OTHER_SYSTEMS_TAB, type UserSystemTab, useUserCreateFromSource, type UseUserCreateFromSourceOptions, USER_PROBE_ENTITY, type UserSystemRefreshHook, AUserSystemOverview, };
308
+ export { ACard, AProgress, ARow, AChipNoLink, AAlerts, AActionbar, AActionbarTarget, ALayoutLoader, ALayoutSwitch, actionbarSlot, createTeleportSlot, type TeleportSlot, ABooleanValue, ASystemEntityScope, AFormTextField, AFormTextarea, AFormDatetimePicker, AFormFlagDatetimePicker, AFormRemoteCheckbox, AFormRemoteSwitch, AFormSwitch, AFormValueObjectOptionsSelect, ADatetime, ADatetimePicker, ADatatableConfigButton, ADialogToolbar, ACreateDialog, AJobStatusChip, ACachedChip, ACachedUserChip, AAdminSwitcher, ATimeTrackingFields, Acl, ACopyText, AIconGroup, AUserAndTimeTrackingFields, AActionCloseButtonHistory, AActionCreateButton, AActionDeleteButton, AActionEditButton, AActionSaveButton, ATableCopyIdButton, ATableDetailButton, ATableEditButton, ABtnSplit, AThemeSelect, ALanguageSelect, ASystemBar, AAnzuUserAvatar, AAvatarColorPicker, ACurrentUserDropdown, AJobDetailCommon, AJobPriorityChip, AJobBaseCreateForm, ACustomDataForm, ACustomDataFormElement, AImageWidget, AImageWidgetInner, AImageMediaWidget, AImageWidgetSimple, AMediaWidgetSimple, AImageWidgetMultiple, AImageWidgetMultipleInner, AImageWidgetMultipleSimple, AImageMassOperations, AImagePublicInput, ADamAssetImageRoiSelect, ACollabLockedByUser, ACollabManagement, AFileInput, AAssetSelect, AAssetListInner, ABooleanSelect, ADamExtSystemRemoteAutocomplete, ADamExternalProviderAssetSelect, ADamDistributionServiceSelect, ADamAssetLicenceRemoteAutocomplete, ADamAssetListViewRemoteAutocomplete, ADamAssetLicenceGroupRemoteAutocomplete, ADamAuthorFilterRemoteAutocomplete, ADamKeywordFilterRemoteAutocomplete, ADamUserFilterRemoteAutocomplete, ADamUserRemoteAutocomplete, ADamAdminAssetLink, ALoginView, ALogoutView, AUnauthorizedView, ANotFoundView, AGenericView, useRouteHistory, type NavigateBackOptions, type NavigateBackTarget, type RouteHistoryEntry, handleRecordLoadError, useRecordPage, type UseRecordPageOptions, type UseRecordPageReturn, defineRecordLoader, defineRecordSave, trackNavigation, isNavigationPending, usePageNavigation, type UsePageNavigationReturn, createNavigationErrorHandler, type NavigationErrorHandlerOptions, useRemainingTime, useAlerts, useTheme, defineCached, useCachedItem, Theme, type ThemeType, useLanguageSettings, modifyLanguageSettings, useLoginStatus, generateDatatableMinMaxSelectStrategy, useCustomDataFormElementType, useDamConfigState, useUploadQueueItemFactory, useDamUploadChunkSize, useDamAcceptTypeAndSizeHelper, useAssetSuggestions, destroyDamNotifications, initDamNotifications, useDamNotifications, useDamNotificationsConnection, createUploadSettlement, uploadSettlementRuntime, UPLOAD_POLL_SCHEDULE, useDropzoneGlobalDragState, useDamKeywordFactory, useDamAuthorFactory, useDamAuthorType, useDamDistributionServiceType, useDamAssetLicenceInnerFilter, useImageActions, useCommonAdminImageOptions, defineAuth, useAclAllowed, AuthUnavailableError, type AuthCookieState, createRefreshRequestInterceptor, createRefreshSession, isInCauseChain, type RefreshResult, SessionExpiredError, broadcastSessionEnd, endSession, sessionLive, useSessionEnd, watchSessionEnd, defineBreadcrumbs, useDamCachedUsers, useDamCachedAssetLicences, useUnreleasedFeatures, useDebugFeatures, useSentry, useUserActivity, type GrantType, Grant, useGrant, type GrantOriginType, GrantOrigin, GrantOriginDefault, useGrantOrigin, LogLevel, type LogLevelType, type IntegerId, type IntegerIdNullable, type DocId, type DocIdNullable, type DatetimeUTCNullable, type DatetimeUTC, type DateUTC, type DatetimePickerType, type AnzuUser, type BaseUser, type AnzuUserMinimal, type AnzuUserAndTimeTrackingAware, type ValueObjectOption, type CreatedByAware, type PermissionConfig, type PermissionTranslationGroup, type PermissionGroup, type PermissionGroupMinimal, type VuetifyIconValue, type JobBase, type JobUserDataDelete, JOB_RESOURCE_USER_DATA_DELETE, JobStatus, JobStatusDefault, type JobStatusType, type JobBaseResource, useCommonJobFactory, type AclValue, type AclRegistry, type AclValueOf, type RegisteredAclValue, type Permissions, type PluginOptions, type CommonAdminImageOptions, type CommonAdminCoreDamOptions, type CommonAdminCollabOptions, type LanguageCode, type Immutable, type ResourceNameSystemAware, type ValidationScope, type AFormFieldValidation, type CommonAdminGlobalComponents, type ACreateDialogValidation, type Log, type ApiInfiniteResponseList, type DatatableOrderingOption, type DatatableOrderingOptions, type DatatableSortBy, type SortOrderType, type ObjectLeaves, type UniqueValues, ensureUniqueValues, type CachedItem, type AddToCachedArgs, type CachedUnresolvedReason, type DefineCachedOptions, type RecordWasType, type UrlParams, type AssetSelectReturnData, AssetSelectReturnType, type AssetSelectReturnTypeType, type AssetSelectUsageHolder, type SortableItemDataAware, type AssetFileProperties, type AssetSearchListItemDto, type AssetSingleUseUsage, type AssetSingleUseUsageEntry, type AssetSingleUseUsageStatusType, type AssetDetailItemDto, type AssetMetadataDto, type AssetCustomData, type AssetMetadataSuggestions, AssetFileFailReason, type AssetFileFailReasonType, AssetFileProcessStatus, type AssetFileProcessStatusType, AssetFileLinkType, type AssetFileLinkTypeType, type AssetFile, type AssetFileDocument, type AssetFileVideo, type AssetFileAudio, type AssetFileImage, type AssetFileNullable, type AssetFileLink, type AssetFileLinks, type AssetFileRoute, AssetFileRouteStatus, type AssetFileRouteStatusType, type AssetFileMainRouteAware, type AssetFileDownloadLink, type AssetFileImagePreviewNullable, assetFileIsImageFile, assetFileIsVideoFile, assetFileIsAudioFile, type UploadQueue, type UploadQueueItem, UploadQueueItemStatus, type UploadQueueItemStatusType, UploadQueueItemType, type UploadQueueItemTypeType, type CustomDataAware, type CustomDataValue, type CustomDataFormElement, type CustomDataFormElementAttributes, CustomDataFormElementType, CustomDataFormElementTypeDefault, type CustomDataFormElementTypeType, DamAssetType, DamAssetTypeDefault, type DamAssetTypeType, AssetSingleUseUsageStatus, DamAssetStatus, DamAssetStatusDefault, type DamAssetStatusType, type DamPubConfig, type DamPrvConfig, type DamExtSystemConfig, type DamDistributionServiceName, type DamExtSystemConfigItem, type DamExtSystemConfigItemImage, type DamExternalProviderAssetConfig, type DamExternalProviderAssetName, type DamDistributionConfig, type DamDistributionRequirementsConfig, DamDistributionRequirementStrategy, type DamDistributionRequirementStrategyType, type DamDistributionRequirementsCategorySelectConfig, type DamExtSystemAssetTypeExifMetadata, DamDistributionServiceType, type DamDistributionServiceTypeType, DamDistributionStatus, type DamDistributionStatusType, UserAuthType, type UserAuthTypeType, type DamUploadStartResponse, type DamNotificationNameType, DamNotificationName, type DamNotificationListenerOptions, UploadRowRole, type UploadRowRoleType, type UploadSettlement, type UploadSettlementProfile, type UploadSettlementEvent, type UploadSettlementTarget, type UploadSettlePolicy, type UploadRefreshOutcome, type UploadReadOptions, type UploadSettlementScheduler, type UploadSettlementVisibility, type ImageAware, type ImageOwner, applyImageOwner, type ImageCreateUpdateAware, type ImageCreateUpdateAwareKeyed, type UploadMetadataToImageMapFn, type UploadMetadataToImageMapItem, type AssetSelectMetadataToImageMapFn, isImageCreateUpdateAware, type ImageMediaCollabValue, type MediaAware, isMediaAware, type DamMediaFromDam, type DamMedia, DamMediaType, type DamMediaTypeType, type DamAuthor, type DamAuthorMinimal, type DamKeyword, type DamKeywordMinimal, DamAuthorType, type DamAuthorTypeType, type DamExtSystem, type DamExtSystemMinimal, type DamCurrentUserDto, type DamAssetLicence, type DamAssetLicenceCached, type DamAssetLicenceExtended, type DamAssetLicenceFlags, type DamAssetLicenceMinimal, type DamAssetLicenceSelectFields, type DamAssetListViewMinimal, type DamAssetListViewResolved, type DamAssetLicenceGroup, type DamUserUpdateDto, type DamUser, type BreadcrumbItem, type Breadcrumbs, type UploadQueueKey, type DamConfigLicenceExtSystemReturnType, useAnzuUserFactory, usePermissionConfigFactory, usePermissionGroupFactory, cloneDeep, isEmpty, isEmptyObject, isObject, isArray, isFunction, isBoolean, isDocId, isNull, isUndefined, isDefined, isInt, isString, isNumber, objectGetValueByPath, objectSetValueByPath, objectDeletePropertyByPath, objectDeepFreeze, stringToInt, stringToFloat, stringToSlug, stringSplitOnFirstOccurrence, stringToKebabCase, stringIsValidEmail, stringToBooleanExact, DATETIME_MIN, DATETIME_MAX, dateTimeEndOfDay, dateTimeStartOfDay, dateTimeNow, dateTimeFriendly, dateTimePretty, dateModifyMinutes, dateToUtc, dateNow, dateTimeToDate, datePretty, dateUtcPretty, dateUtcToday, timePretty, dateDiff, type DateDiffUnit, prettyBytes, prettyDuration, booleanToInteger, arrayItemToggle, arrayFromArgs, arrayFlatten, type NestedArray, arraysHaveSameElements, browserHistoryReplaceUrlByRouter, eventClickBlur, generateUUIDv1, generateUUIDv4, isOneOf, useJobBaseResource, useJobStatus, fetchDamAssetLicenceListByIds, fetchDamAssetListViewListByIds, useFetchDamAssetLicenceList, fetchDamAssetLicenceGroupListByIds, fetchDamExtSystemListByIds, fetchDamUserListByIds, useFetchDamUserList, updateDamUser, fetchDamUser, fetchAssetAndCheckForSingleUseByFileIds, fetchAsset, fetchAssetAsCmsMedia, fetchAssetByFileId, type IdsGroupedByLicences, messagesCs, messagesEn, messagesSk, SystemScopeKey, SubjectScopeKey, HTTP_STATUS_OK, HTTP_STATUS_CREATED, HTTP_STATUS_NO_CONTENT, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_UNAUTHORIZED, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_UNPROCESSABLE_ENTITY, ROLE_SUPER_ADMIN, NEW_LINE_MARK, COMMON_CONFIG, SORT_BY_SCORE, SORT_BY_SCORE_BEST, SORT_BY_SCORE_DATE, SORT_BY_ID, SortOrder, ImageWidgetUploadConfigKey, useValidate, useCollabInit, useCommonAdminCollabOptions, useCollabCurrentUserId, useCollabState, useCollabField, useCollabRoom, useCollabHelpers, useCollabAnyDataChange, type CollabGatheringBufferDataEvent, useCollabReconnectEventBus, useCollabGatheringBufferDataEventBus, CollabFieldLockType, type CollabFieldLockTypeType, CollabFieldLockStatus, type CollabFieldLockStatusType, type CollabFieldLockStatusPayload, type CollabUserId, type CollabUserIdNullable, type CollabRoom, CollabStatus, type CollabStatusType, CollabConnectionState, type CollabConnectionStateType, CollabReconnectVerdict, type CollabReconnectVerdictType, type CollabRoomInfo, type CollabRoomsInfo, type CollabFieldDataEnvelope, type CollabFieldData, type CollabFieldName, type CollabFieldLock, type CollabRoomLocks, type CollabRoomData, type CollabRoomPlainData, CollabAccessRoomStatus, type CollabAccessRoomStatusType, CollabChangeRoomLockStatus, type CollabChangeRoomLockStatusType, type CollabFieldLockOptions, CollabRoomJoinStrategy, type CollabRoomJoinStrategyType, type CollabJoinAckOptions, type CollabRoomOptions, CollabRequestToTakeModerationStatus, type CollabRequestToTakeModerationStatusType, CollabRequestToJoinStatus, type CollabRequestToJoinStatusType, type CollabCachedUsersMap, type CollabComponentConfig, COLLAB_FIELD_PREFIX_COMMENT, COLLAB_FIELD_PREFIX_EMBED, useDamConfigStore, useDamConfigStoreOf, type DamConfigStore, useImageStore, type CommonAdminI18n, slovakPluralizationRule, isAnzuApiForbiddenError, axiosErrorResponseIsForbidden, AnzuApiForbiddenError, isAnzuApiResponseCodeError, AnzuApiResponseCodeError, isAnzuApiForbiddenOperationError, axiosErrorResponseHasForbiddenOperationData, AnzuApiForbiddenOperationError, isAnzuApiValidationError, hasAnzuApiValidationErrorSpecific, axiosErrorResponseHasValidationData, AnzuApiValidationError, isAnzuFatalError, AnzuFatalError, isAnzuApiTimeoutError, AnzuApiTimeoutError, AnzuApiCancelledError, isAnzuApiCancelledError, AnzuError, isAnzuError, isAnzuApiAxiosError, AnzuApiAxiosError, type ValidationError, type AnzuApiValidationResponseData, isAnzuApiDependencyExistsError, axiosErrorResponseHasDependencyExistsData, AnzuApiDependencyExistsError, AnzuSystemsCommonAdmin, useCommonVuetifyConfig, createAnzuVuetify, type CreateAnzuVuetifyOptions, loadCommonFonts, getAssetTypeByMimeType, damFileTypeFix, localTimeShiftInSeconds, useSystemBar, AFilterWrapper, AFilterWrapperSidebar, AFilterWrapperSubjectSelect, AFiltersSelected, AFilterBooleanSelect, AFilterInteger, AFilterRemoteAutocomplete, AFilterString, AFilterTimeInterval, AFilterValueObjectOptionsSelect, FilterConfigKey, FilterDataKey, FilterInnerConfigKey, FilterInnerDataKey, ADatatableOrdering, ADatatablePagination, DatatablePaginationKey, AFormRemoteAutocomplete, createFilterRemoteAutocomplete, createRemoteAutocomplete, type CreateRemoteAutocompleteOptions, type RemoteAutocompleteScope, type FilterRemoteAutocompleteComponent, type FilterRemoteAutocompleteProps, type RemoteAutocompleteComponent, type RemoteAutocompleteProps, type RemoteInnerFilter, type RemoteSelectActions, AFormRemoteAutocompleteWithCached, buildFilterHash, createFilter, createFilterStore, isRouterSafeHash, useFilterHelpers, useDatatableList, type FilterHelpersMoreOptions, type FilterConfig, type FilterData, type FilterStoreIdentifier, type MakeFilterOption, type AllowedFilterValues, type FilterField, type FilterType, type FilterVariant, TimeIntervalSpecialOptions, type TimeIntervalToolsValue, type TimeIntervalSpecialOptionsType, type Pagination, useApiFetchByIds, useApiFetchItems, useApiFetchList, useApiCommand, useApiRequest, defineApiClient, startWithEnvConfig, checkForNewVersion, requestAppReload, RELOAD_VETO_GRACE, skipUrlPrefixes, type ApiClientSetup, type ApiClientRequestInterceptor, type ApiClientResponseInterceptor, type UseApiRequestParams, type ExecuteRequestParams, type UseApiRequestReturnType, type UseApiFetchListParams, type FetchListParams, type UseApiFetchListReturnType, type UseApiFetchByIdsParams, type FetchByIdsParams, type UseApiFetchByIdsReturnType, type UseApiFetchItemsParams, type FetchItemsParams, type ItemsShape, type UseApiFetchItemsReturnType, type UseApiFetchListBatchParams, type FetchListBatchParams, type UseApiFetchListBatchReturnType, defaultApiErrorLogger, apiErrorStatus, apiErrorIsReported, setApiErrorLogger, type ApiErrorContext, type ApiErrorLogger, useApiFetchListBatch, useApiQueryBuilder, generateListQuery, usePagination, createDatatableColumnsConfig, useSubjectSelect, ASubjectSelect, AListEditor, ASortableListEditor, ANestedSortableListEditor, AUnsavedConfirmDialog, useUnsavedChangesGuard, useUnsavedSection, type UnsavedSectionDescriptor, type UnsavedSectionSource, useListEditorController, type ListEditorHandle, type ExposedListEditorHandle, type UseListEditorControllerOptions, type ListEditorChanges, type ListEditorValidationResult, type GetKey, type PositionOption, type PositionStrategy, type PositionAction, renumberPositions, sortByPosition, sortByPositionDeep, type RenumberPositionsOptions, nextListEditorTempId, type NestedViewItem, useNestedListEditorController, type NestedListEditorHandle, type ExposedNestedListEditorHandle, type ExposedNestedSortableListEditorHandle, type NestedSortableListEditorExtras, type UseNestedListEditorControllerOptions, type NestedListEditorChanges, type ListEditorKey, type ListEditorValidationState, type ListViewItem, type NestedPositionHint, type NestedTree, type NestedTreeNode, type PositionHint, useJobApi, type AxiosClientFn, useUserAdminConfigApi, type UserAdminConfig, UserAdminConfigType, type UserAdminConfigTypeType, UserAdminConfigLayoutType, type UserAdminConfigLayoutTypeType, type UserAdminConfigDataFilterBookmark, type UserAdminConfigDataPinnedWidgets, useUserAdminConfigFactory, ALogListView, ALogDetailView, LogType, LogTypeDefault, type LogTypeType, isLogType, DEFAULT_LOG_PATHS, type LogPaths, type LogTimeWindow, APermissionGroupDatatable, APermissionGroupDetail, APermissionGroupManage, usePermissionGroupActions, type PermissionGroupActionsParams, AAnzuUserDatatable, AAnzuUserForm, AUserCopyPermissionsDialog, useAnzuUserActions, type AnzuUserActionsParams, defineUserSystemDescriptor, descriptorMayWrite, type UserSystemWriteAction, resolveProbeEndpoint, resolveMetadataWrite, resolveEnabledWrite, resolveCreateEndpoint, type UserSystemDescriptor, type AnyUserSystemDescriptor, type UserSystemEndpoints, type AnzuUserEndpointPair, type BaseUserEndpointPair, type UserSystemExtraState, type UserSystemManageTarget, AUserTabsShell, AUserOtherSystemsTable, AUserMissingAccount, OTHER_SYSTEMS_TAB, type UserSystemTab, useUserCreateFromSource, type UseUserCreateFromSourceOptions, USER_PROBE_ENTITY, type UserSystemRefreshHook, AUserSystemOverview, };
308
309
  export { createCachedChip } from './domains/cached/composables/createCachedChip';
309
310
  export type { CreateCachedChipOptions } from './domains/cached/composables/createCachedChip';
310
311
  export { createUserAndTimeTrackingFields } from './domains/cached/composables/createUserAndTimeTrackingFields';
@@ -315,6 +316,8 @@ export type { CachedPermissionGroupsParams } from './domains/permission/group/co
315
316
  export type { CachedAnzuUsersParams } from './domains/anzuUser/composables/cachedAnzuUsers';
316
317
  export { syncUserAndTimeTracking } from './shared/utils/userAndTimeTracking';
317
318
  export type { UserAndTimeTrackingData, UserAndTimeTrackingUsers } from './shared/types/UserAndTimeTracking';
319
+ export { customDataFormElementName, damCustomFormElementNameKey, withDamCustomFormElementNameKeys, } from './domains/customDataForm/utils/customDataFormElementName';
320
+ export type { DamCustomFormKind } from './domains/customDataForm/utils/customDataFormElementName';
318
321
  export { imageUploadStart as damFileUploadStart, imageUploadChunk as damFileUploadChunk, imageUploadFinish as damFileUploadFinish, } from './domains/dam/api/damImageApi';
319
322
  export { useUpload as useDamUpload, uploadStop, uploadValidationMessage, } from './domains/dam/uploadQueue/composables/uploadService';
320
323
  export { adminDamUploadPreset } from './domains/dam/uploadQueue/presets/uploadPresets';
@@ -341,6 +344,7 @@ export { useDamKeywordAssetTypeConfig } from './domains/dam/keyword/composables/
341
344
  export { useDamAuthorAssetTypeConfig } from './domains/dam/author/composables/damAuthorConfig';
342
345
  export { isDamSourceEnabled, useDamSourceAssetTypeConfig } from './domains/dam/author/composables/damSourceConfig';
343
346
  export { useDamCreditPreview } from './domains/dam/author/composables/damCredit';
347
+ export { type DamSourceBadge, resolveSourceBadges } from './domains/dam/author/composables/damSourceBadge';
344
348
  export { useDamAuthorFieldRouting } from './domains/dam/author/composables/authorFieldRouting';
345
349
  export { default as ADamSourcesAuthorsRow } from './domains/dam/author/components/DamSourcesAuthorsRow.vue';
346
350
  export { useFormatAndSizeCheck } from './domains/ui/file/composables/formatAndSizeCheck';
@@ -145,6 +145,14 @@ var e = {
145
145
  i: [{ t: 3 }],
146
146
  s: "Přihlašovací server momentálně neodpovídá. Zkuste to za chvíli znovu."
147
147
  }
148
+ },
149
+ sessionEndedNotDone: {
150
+ t: 0,
151
+ b: {
152
+ t: 2,
153
+ i: [{ t: 3 }],
154
+ s: "Neprovedeno, přihlášení skončilo. Přihlaste se v nové kartě a zkuste to znovu."
155
+ }
148
156
  }
149
157
  };
150
158
  export { e as default };
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","names":["resource","\"unknownError\"","\"t\"","\"b\"","\"i\"","\"s\"","\"forbiddenError\"","\"recordNotFound\"","\"recordForbidden\"","\"navigationFailed\"","\"fixValidationErrors\"","\"fixApiValidationErrors\"","\"apiForbiddenOperationError\"","\"recordWas\"","\"created\"","\"updated\"","\"deleted\"","\"published\"","\"unpublished\"","\"enabled\"","\"disabled\"","\"idWasCopied\"","\"textWasCopied\"","\"authUnavailable\""],"sources":[],"mappings":""}
1
+ {"version":3,"file":"alert.js","names":["resource","\"unknownError\"","\"t\"","\"b\"","\"i\"","\"s\"","\"forbiddenError\"","\"recordNotFound\"","\"recordForbidden\"","\"navigationFailed\"","\"fixValidationErrors\"","\"fixApiValidationErrors\"","\"apiForbiddenOperationError\"","\"recordWas\"","\"created\"","\"updated\"","\"deleted\"","\"published\"","\"unpublished\"","\"enabled\"","\"disabled\"","\"idWasCopied\"","\"textWasCopied\"","\"authUnavailable\"","\"sessionEndedNotDone\""],"sources":[],"mappings":""}