r3ui-lib 1.3.19 → 1.3.21

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 (324) hide show
  1. package/dist/login.es.js +14 -3148
  2. package/dist/modules/_virtual/___vite-browser-external.js +6 -0
  3. package/dist/modules/_virtual/__vite-browser-external.js +4 -0
  4. package/dist/modules/_virtual/_commonjsHelpers.js +33 -0
  5. package/dist/modules/_virtual/_plugin-vue_export-helper.js +9 -0
  6. package/dist/modules/_virtual/he.js +5 -0
  7. package/dist/modules/_virtual/he2.js +4 -0
  8. package/dist/modules/_virtual/index.js +7 -0
  9. package/dist/modules/_virtual/inputmask.js +7 -0
  10. package/dist/modules/_virtual/inputmask2.js +4 -0
  11. package/dist/modules/_virtual/ru.js +5 -0
  12. package/dist/modules/_virtual/ru2.js +4 -0
  13. package/dist/modules/assets/img/confirmation.png.js +4 -0
  14. package/dist/modules/assets/img/error.png.js +4 -0
  15. package/dist/modules/assets/img/preloader.gif.js +4 -0
  16. package/dist/modules/assets/img/regagro_logo.svg.js +4 -0
  17. package/dist/modules/assets/img/success.png.js +4 -0
  18. package/dist/modules/assets/img/warning.png.js +4 -0
  19. package/dist/modules/components/DefaultButton.vue.js +112 -0
  20. package/dist/modules/components/Divider.vue.js +33 -0
  21. package/dist/modules/components/Icon.vue.js +18 -0
  22. package/dist/modules/components/Slider.vue.js +7 -0
  23. package/dist/modules/components/Slider.vue2.js +127 -0
  24. package/dist/modules/components/Spinner.vue.js +19 -0
  25. package/dist/modules/components/SsoLoginPending.vue.js +7 -0
  26. package/dist/modules/components/SsoLoginPending.vue2.js +44 -0
  27. package/dist/modules/components/SsoLoginScreen.vue.js +57 -0
  28. package/dist/modules/components/SsoLoginScreen.vue2.js +4 -0
  29. package/dist/modules/components/accordions/DefaultAccordion.vue.js +7 -0
  30. package/dist/modules/components/accordions/DefaultAccordion.vue2.js +72 -0
  31. package/dist/modules/components/accordions/KindCheckboxesAccordion.vue.js +7 -0
  32. package/dist/modules/components/accordions/KindCheckboxesAccordion.vue2.js +152 -0
  33. package/dist/modules/components/buttons/AddButton.vue.js +7 -0
  34. package/dist/modules/components/buttons/AddButton.vue2.js +30 -0
  35. package/dist/modules/components/buttons/ClearFormButton.vue.js +7 -0
  36. package/dist/modules/components/buttons/ClearFormButton.vue2.js +28 -0
  37. package/dist/modules/components/buttons/CollapseButton.vue.js +7 -0
  38. package/dist/modules/components/buttons/CollapseButton.vue2.js +57 -0
  39. package/dist/modules/components/buttons/ExportButton.vue.js +7 -0
  40. package/dist/modules/components/buttons/ExportButton.vue2.js +28 -0
  41. package/dist/modules/components/buttons/PrintButton.vue.js +7 -0
  42. package/dist/modules/components/buttons/PrintButton.vue2.js +27 -0
  43. package/dist/modules/components/buttons/ToggleButtons.vue.js +7 -0
  44. package/dist/modules/components/buttons/ToggleButtons.vue2.js +30 -0
  45. package/dist/modules/components/cards/CardInfo.vue.js +7 -0
  46. package/dist/modules/components/cards/CardInfo.vue2.js +56 -0
  47. package/dist/modules/components/cards/PageCard.vue.js +7 -0
  48. package/dist/modules/components/cards/PageCard.vue2.js +117 -0
  49. package/dist/modules/components/dropdowns/DefaultDropDown.vue.js +102 -0
  50. package/dist/modules/components/export/ExportComponent.vue.js +7 -0
  51. package/dist/modules/components/export/ExportComponent.vue2.js +74 -0
  52. package/dist/modules/components/filters/MultipleQuickFilterComponent.vue.js +7 -0
  53. package/dist/modules/components/filters/MultipleQuickFilterComponent.vue2.js +34 -0
  54. package/dist/modules/components/form/Checkbox.vue.js +66 -0
  55. package/dist/modules/components/form/CustomInput.vue.js +161 -0
  56. package/dist/modules/components/form/FormError.vue.js +24 -0
  57. package/dist/modules/components/form/PasswordInput.vue.js +82 -0
  58. package/dist/modules/components/form/VSelect.vue.js +192 -0
  59. package/dist/modules/components/form/useWithPopper.js +29 -0
  60. package/dist/modules/components/forms/AddressForm.vue.js +7 -0
  61. package/dist/modules/components/forms/AddressForm.vue2.js +382 -0
  62. package/dist/modules/components/forms/AgeFromAgeTo.vue.js +7 -0
  63. package/dist/modules/components/forms/AgeFromAgeTo.vue2.js +207 -0
  64. package/dist/modules/components/forms/BooleanCheckbox.vue.js +7 -0
  65. package/dist/modules/components/forms/BooleanCheckbox.vue2.js +54 -0
  66. package/dist/modules/components/forms/Flatpickr.vue.js +7 -0
  67. package/dist/modules/components/forms/Flatpickr.vue2.js +273 -0
  68. package/dist/modules/components/forms/HeaderSearchForm.vue.js +7 -0
  69. package/dist/modules/components/forms/HeaderSearchForm.vue2.js +142 -0
  70. package/dist/modules/components/forms/MultiCheckbox.vue.js +7 -0
  71. package/dist/modules/components/forms/MultiCheckbox.vue2.js +64 -0
  72. package/dist/modules/components/forms/MultiInput.vue.js +7 -0
  73. package/dist/modules/components/forms/MultiInput.vue2.js +115 -0
  74. package/dist/modules/components/icons/QuestionIcon.vue.js +7 -0
  75. package/dist/modules/components/icons/QuestionIcon.vue2.js +56 -0
  76. package/dist/modules/components/layout/Breadcrumbs.vue.js +7 -0
  77. package/dist/modules/components/layout/Breadcrumbs.vue2.js +40 -0
  78. package/dist/modules/components/layout/Card.vue.js +31 -0
  79. package/dist/modules/components/layout/Footer.vue.js +15 -0
  80. package/dist/modules/components/layout/Footer.vue2.js +4 -0
  81. package/dist/modules/components/layout/Header.vue.js +7 -0
  82. package/dist/modules/components/layout/Header.vue2.js +68 -0
  83. package/dist/modules/components/layout/LanguageSelector.vue.js +32 -0
  84. package/dist/modules/components/layout/LanguageSelector.vue3.js +5 -0
  85. package/dist/modules/components/layout/LoginLayoutFrame.vue.js +48 -0
  86. package/dist/modules/components/layout/LoginLayoutFrame.vue2.js +4 -0
  87. package/dist/modules/components/layout/MainComponent.vue.js +50 -0
  88. package/dist/modules/components/layout/MainComponent.vue2.js +4 -0
  89. package/dist/modules/components/layout/PageTitle.vue.js +7 -0
  90. package/dist/modules/components/layout/PageTitle.vue2.js +40 -0
  91. package/dist/modules/components/logo/Logo.vue.js +7 -0
  92. package/dist/modules/components/logo/Logo.vue2.js +50 -0
  93. package/dist/modules/components/modals/ConfirmationModal.vue.js +7 -0
  94. package/dist/modules/components/modals/ConfirmationModal.vue2.js +154 -0
  95. package/dist/modules/components/modals/DefaultModal.vue.js +116 -0
  96. package/dist/modules/components/modals/DefaultModal.vue3.js +5 -0
  97. package/dist/modules/components/modals/EditTableColumnsModalComponent.vue.js +7 -0
  98. package/dist/modules/components/modals/EditTableColumnsModalComponent.vue2.js +41 -0
  99. package/dist/modules/components/modals/TableFilterModalComponent.vue.js +7 -0
  100. package/dist/modules/components/modals/TableFilterModalComponent.vue2.js +66 -0
  101. package/dist/modules/components/modals/TableFilterModalShell.vue.js +89 -0
  102. package/dist/modules/components/modals/TableFilterModalShell.vue2.js +4 -0
  103. package/dist/modules/components/notifications/ErrorMessageComponent.vue.js +7 -0
  104. package/dist/modules/components/notifications/ErrorMessageComponent.vue2.js +45 -0
  105. package/dist/modules/components/notifications/NotificationMessage.vue.js +55 -0
  106. package/dist/modules/components/notifications/NotificationMessage.vue2.js +4 -0
  107. package/dist/modules/components/notifications/Toast.vue.js +71 -0
  108. package/dist/modules/components/sidebar/CollapsedSidebarLink.vue.js +7 -0
  109. package/dist/modules/components/sidebar/CollapsedSidebarLink.vue2.js +90 -0
  110. package/dist/modules/components/sidebar/Sidebar.vue.js +59 -0
  111. package/dist/modules/components/sidebar/Sidebar.vue3.js +5 -0
  112. package/dist/modules/components/sidebar/SidebarLink.vue.js +7 -0
  113. package/dist/modules/components/sidebar/SidebarLink.vue2.js +93 -0
  114. package/dist/modules/components/tables/ColumnSubFilter.vue.js +7 -0
  115. package/dist/modules/components/tables/ColumnSubFilter.vue2.js +36 -0
  116. package/dist/modules/components/tables/EditTableColumns.vue.js +7 -0
  117. package/dist/modules/components/tables/EditTableColumns.vue2.js +125 -0
  118. package/dist/modules/components/tables/ManagedRemoteTable.vue.js +72 -0
  119. package/dist/modules/components/tables/ManagedRemoteTable.vue2.js +4 -0
  120. package/dist/modules/components/tables/SubFilterToggleBtn.vue.js +28 -0
  121. package/dist/modules/components/tables/Table.vue.js +416 -0
  122. package/dist/modules/components/tables/Table.vue3.js +5 -0
  123. package/dist/modules/components/tables/TableAppliedFiltersStorage.vue.js +7 -0
  124. package/dist/modules/components/tables/TableAppliedFiltersStorage.vue2.js +56 -0
  125. package/dist/modules/components/tables/TableColumnsButton.vue.js +27 -0
  126. package/dist/modules/components/tables/TableColumnsButton.vue2.js +4 -0
  127. package/dist/modules/components/tables/TableColumnsDialog.vue.js +67 -0
  128. package/dist/modules/components/tables/TableColumnsDialog.vue2.js +4 -0
  129. package/dist/modules/components/tables/TableColumnsModal.vue.js +27 -0
  130. package/dist/modules/components/tables/TableColumnsModal.vue2.js +4 -0
  131. package/dist/modules/components/tables/TableCount.vue.js +7 -0
  132. package/dist/modules/components/tables/TableCount.vue2.js +26 -0
  133. package/dist/modules/components/tables/TableQuickFilterComponent.vue.js +7 -0
  134. package/dist/modules/components/tables/TableQuickFilterComponent.vue2.js +29 -0
  135. package/dist/modules/components/tables/ToggleAllTableRowButtons.vue.js +7 -0
  136. package/dist/modules/components/tables/ToggleAllTableRowButtons.vue2.js +41 -0
  137. package/dist/modules/components/utilities/FilterValuesPanel.vue.js +7 -0
  138. package/dist/modules/components/utilities/FilterValuesPanel.vue2.js +95 -0
  139. package/dist/modules/composables/forms/useAddressForm.js +289 -0
  140. package/dist/modules/composables/forms/useFieldError.js +23 -0
  141. package/dist/modules/composables/forms/useSearchForm.js +52 -0
  142. package/dist/modules/composables/forms/useUnsavedChanges.js +84 -0
  143. package/dist/modules/composables/layout/useR3uiLayoutInject.js +32 -0
  144. package/dist/modules/composables/main/useBreadcrumbs.js +75 -0
  145. package/dist/modules/composables/main/useMain.js +38 -0
  146. package/dist/modules/composables/main/usePermissionChecker.js +15 -0
  147. package/dist/modules/composables/modals/useModalLayer.js +109 -0
  148. package/dist/modules/composables/sidebar/useSidebar.js +40 -0
  149. package/dist/modules/composables/table/createTableCommandScheduler.js +62 -0
  150. package/dist/modules/composables/table/createTableLifecycle.js +719 -0
  151. package/dist/modules/composables/table/createTableRebuildTransaction.js +61 -0
  152. package/dist/modules/composables/table/createTableSession.js +38 -0
  153. package/dist/modules/composables/table/createTableState.js +122 -0
  154. package/dist/modules/composables/table/createTabulatorAdapter.js +90 -0
  155. package/dist/modules/composables/table/tableQueryTransitions.js +82 -0
  156. package/dist/modules/composables/table/useManagedRemoteTable.js +179 -0
  157. package/dist/modules/composables/table/useR3uiTableDefaultInject.js +27 -0
  158. package/dist/modules/composables/table/useRemoteTable.js +96 -0
  159. package/dist/modules/composables/table/useTableColumnApply.js +38 -0
  160. package/dist/modules/composables/table/useTableColumns.js +70 -0
  161. package/dist/modules/composables/table/useTableColumnsEnhanced.js +155 -0
  162. package/dist/modules/composables/table/useTableColumnsIntegration.js +82 -0
  163. package/dist/modules/composables/table/useTableDefault.js +258 -0
  164. package/dist/modules/composables/table/useTableStorage.js +32 -0
  165. package/dist/modules/constants/authSidebar.js +36 -0
  166. package/dist/modules/services/AddressService.js +21 -0
  167. package/dist/modules/types/layoutInjectKeys.js +10 -0
  168. package/dist/modules/types/tableInjectKeys.js +21 -0
  169. package/dist/modules/types/tableInstance.js +32 -0
  170. package/dist/modules/utils/accordionLocalization.js +14 -0
  171. package/dist/modules/utils/addressFormTranslations.js +29 -0
  172. package/dist/modules/utils/auth/authUser.js +13 -0
  173. package/dist/modules/utils/auth/exchangePasswordToken.js +52 -0
  174. package/dist/modules/utils/auth/handlePkceCallback.js +88 -0
  175. package/dist/modules/utils/auth/logout.js +32 -0
  176. package/dist/modules/utils/auth/runLogoutHandler.js +60 -0
  177. package/dist/modules/utils/auth/sessionController.js +28 -0
  178. package/dist/modules/utils/auth/signInWithSSO.js +141 -0
  179. package/dist/modules/utils/authCookie.js +21 -0
  180. package/dist/modules/utils/constants.js +34 -0
  181. package/dist/modules/utils/createTabulatorLangsFromT.js +30 -0
  182. package/dist/modules/utils/createTabulatorTableProps.js +19 -0
  183. package/dist/modules/utils/helpers.js +537 -0
  184. package/dist/modules/utils/pkce.js +50 -0
  185. package/dist/modules/utils/table-columns-utils.js +59 -0
  186. package/dist/modules/utils/tableAdapter.js +156 -0
  187. package/dist/modules/utils/tableAjaxRequest.js +82 -0
  188. package/dist/modules/utils/tableCancellation.js +271 -0
  189. package/dist/modules/utils/tableColumnStorage.js +55 -0
  190. package/dist/modules/utils/tableData.js +118 -0
  191. package/dist/modules/utils/tableLoad.js +67 -0
  192. package/dist/modules/utils/tableLocalizations.js +6 -0
  193. package/dist/modules/utils/tableOperation.js +63 -0
  194. package/dist/modules/utils/tableProjection.js +137 -0
  195. package/dist/modules/utils/tableQueryParameters.js +46 -0
  196. package/dist/modules/utils/tableSnapshotValue.js +73 -0
  197. package/dist/modules/utils/tabulatorQueryAdapter.js +203 -0
  198. package/dist/modules/utils/tabulatorRuntime.js +131 -0
  199. package/dist/modules/utils/upstreamHttpStatus.js +32 -0
  200. package/dist/modules/vendor/@popperjs/core/lib/createPopper.js +122 -0
  201. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/contains.js +18 -0
  202. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
  203. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
  204. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
  205. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
  206. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
  207. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
  208. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
  209. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
  210. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
  211. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
  212. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
  213. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
  214. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
  215. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
  216. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
  217. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
  218. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
  219. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
  220. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
  221. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
  222. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
  223. package/dist/modules/vendor/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
  224. package/dist/modules/vendor/@popperjs/core/lib/enums.js +31 -0
  225. package/dist/modules/vendor/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
  226. package/dist/modules/vendor/@popperjs/core/lib/modifiers/arrow.js +37 -0
  227. package/dist/modules/vendor/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
  228. package/dist/modules/vendor/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
  229. package/dist/modules/vendor/@popperjs/core/lib/modifiers/flip.js +74 -0
  230. package/dist/modules/vendor/@popperjs/core/lib/modifiers/hide.js +44 -0
  231. package/dist/modules/vendor/@popperjs/core/lib/modifiers/offset.js +31 -0
  232. package/dist/modules/vendor/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
  233. package/dist/modules/vendor/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
  234. package/dist/modules/vendor/@popperjs/core/lib/popper.js +27 -0
  235. package/dist/modules/vendor/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
  236. package/dist/modules/vendor/@popperjs/core/lib/utils/computeOffsets.js +54 -0
  237. package/dist/modules/vendor/@popperjs/core/lib/utils/debounce.js +13 -0
  238. package/dist/modules/vendor/@popperjs/core/lib/utils/detectOverflow.js +33 -0
  239. package/dist/modules/vendor/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
  240. package/dist/modules/vendor/@popperjs/core/lib/utils/getAltAxis.js +6 -0
  241. package/dist/modules/vendor/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
  242. package/dist/modules/vendor/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
  243. package/dist/modules/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
  244. package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
  245. package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
  246. package/dist/modules/vendor/@popperjs/core/lib/utils/getVariation.js +6 -0
  247. package/dist/modules/vendor/@popperjs/core/lib/utils/math.js +6 -0
  248. package/dist/modules/vendor/@popperjs/core/lib/utils/mergeByName.js +15 -0
  249. package/dist/modules/vendor/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
  250. package/dist/modules/vendor/@popperjs/core/lib/utils/orderModifiers.js +31 -0
  251. package/dist/modules/vendor/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
  252. package/dist/modules/vendor/@popperjs/core/lib/utils/userAgent.js +9 -0
  253. package/dist/modules/vendor/@popperjs/core/lib/utils/within.js +12 -0
  254. package/dist/modules/vendor/call-bind-apply-helpers/actualApply.js +14 -0
  255. package/dist/modules/vendor/call-bind-apply-helpers/functionApply.js +7 -0
  256. package/dist/modules/vendor/call-bind-apply-helpers/functionCall.js +7 -0
  257. package/dist/modules/vendor/call-bind-apply-helpers/index.js +18 -0
  258. package/dist/modules/vendor/call-bind-apply-helpers/reflectApply.js +7 -0
  259. package/dist/modules/vendor/call-bound/index.js +21 -0
  260. package/dist/modules/vendor/dompurify/dist/purify.es.js +1522 -0
  261. package/dist/modules/vendor/dunder-proto/get.js +29 -0
  262. package/dist/modules/vendor/es-define-property/index.js +16 -0
  263. package/dist/modules/vendor/es-errors/eval.js +7 -0
  264. package/dist/modules/vendor/es-errors/index.js +7 -0
  265. package/dist/modules/vendor/es-errors/range.js +7 -0
  266. package/dist/modules/vendor/es-errors/ref.js +7 -0
  267. package/dist/modules/vendor/es-errors/syntax.js +7 -0
  268. package/dist/modules/vendor/es-errors/type.js +7 -0
  269. package/dist/modules/vendor/es-errors/uri.js +7 -0
  270. package/dist/modules/vendor/es-object-atoms/index.js +7 -0
  271. package/dist/modules/vendor/flatpickr/dist/esm/index.js +942 -0
  272. package/dist/modules/vendor/flatpickr/dist/esm/l10n/default.js +75 -0
  273. package/dist/modules/vendor/flatpickr/dist/esm/types/options.js +80 -0
  274. package/dist/modules/vendor/flatpickr/dist/esm/utils/dates.js +89 -0
  275. package/dist/modules/vendor/flatpickr/dist/esm/utils/dom.js +45 -0
  276. package/dist/modules/vendor/flatpickr/dist/esm/utils/formatting.js +170 -0
  277. package/dist/modules/vendor/flatpickr/dist/esm/utils/index.js +23 -0
  278. package/dist/modules/vendor/flatpickr/dist/esm/utils/polyfills.js +15 -0
  279. package/dist/modules/vendor/flatpickr/dist/l10n/he.js +56 -0
  280. package/dist/modules/vendor/flatpickr/dist/l10n/ru.js +73 -0
  281. package/dist/modules/vendor/function-bind/implementation.js +48 -0
  282. package/dist/modules/vendor/function-bind/index.js +11 -0
  283. package/dist/modules/vendor/get-intrinsic/index.js +265 -0
  284. package/dist/modules/vendor/get-proto/Object.getPrototypeOf.js +11 -0
  285. package/dist/modules/vendor/get-proto/Reflect.getPrototypeOf.js +7 -0
  286. package/dist/modules/vendor/get-proto/index.js +21 -0
  287. package/dist/modules/vendor/gopd/gOPD.js +7 -0
  288. package/dist/modules/vendor/gopd/index.js +17 -0
  289. package/dist/modules/vendor/has-symbols/index.js +13 -0
  290. package/dist/modules/vendor/has-symbols/shams.js +33 -0
  291. package/dist/modules/vendor/hasown/index.js +11 -0
  292. package/dist/modules/vendor/inputmask/dist/inputmask.js +3517 -0
  293. package/dist/modules/vendor/math-intrinsics/abs.js +7 -0
  294. package/dist/modules/vendor/math-intrinsics/floor.js +7 -0
  295. package/dist/modules/vendor/math-intrinsics/isNaN.js +9 -0
  296. package/dist/modules/vendor/math-intrinsics/max.js +7 -0
  297. package/dist/modules/vendor/math-intrinsics/min.js +7 -0
  298. package/dist/modules/vendor/math-intrinsics/pow.js +7 -0
  299. package/dist/modules/vendor/math-intrinsics/round.js +7 -0
  300. package/dist/modules/vendor/math-intrinsics/sign.js +13 -0
  301. package/dist/modules/vendor/moment/dist/moment.js +2589 -0
  302. package/dist/modules/vendor/nouislider/dist/nouislider.js +1064 -0
  303. package/dist/modules/vendor/object-inspect/index.js +376 -0
  304. package/dist/modules/vendor/qs/lib/formats.js +25 -0
  305. package/dist/modules/vendor/qs/lib/index.js +17 -0
  306. package/dist/modules/vendor/qs/lib/parse.js +161 -0
  307. package/dist/modules/vendor/qs/lib/stringify.js +197 -0
  308. package/dist/modules/vendor/qs/lib/utils.js +129 -0
  309. package/dist/modules/vendor/seamless-scroll-polyfill/lib/common.js +21 -0
  310. package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-end-event.js +12 -0
  311. package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-step.js +21 -0
  312. package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll.js +58 -0
  313. package/dist/modules/vendor/seamless-scroll-polyfill/lib/scrollIntoView.js +168 -0
  314. package/dist/modules/vendor/side-channel/index.js +35 -0
  315. package/dist/modules/vendor/side-channel-list/index.js +64 -0
  316. package/dist/modules/vendor/side-channel-map/index.js +40 -0
  317. package/dist/modules/vendor/side-channel-weakmap/index.js +43 -0
  318. package/dist/modules/vendor/tabulator-tables/dist/js/tabulator_esm.js +11127 -0
  319. package/dist/modules/vendor/vue-select/dist/vue-select.es.js +769 -0
  320. package/dist/r3ui-lib.css +1 -1
  321. package/dist/r3ui-lib.es.js +334 -35110
  322. package/dist/r3ui-lib.umd.js +12 -12
  323. package/dist/types/components/forms/AddressForm.vue.d.ts.map +1 -1
  324. package/package.json +7 -3
@@ -0,0 +1,117 @@
1
+ import { defineComponent as B, ref as E, useSlots as F, computed as b, onMounted as j, createElementBlock as e, openBlock as t, withDirectives as p, createElementVNode as i, vShow as _, createCommentVNode as l, renderSlot as m, createVNode as g, Fragment as r, renderList as u, normalizeClass as h, toDisplayString as d } from "vue";
2
+ import z from "../Divider.vue.js";
3
+ import A from "../dropdowns/DefaultDropDown.vue.js";
4
+ const H = { class: "placeholder-glow" }, I = { class: "page-card" }, M = { class: "row hide-to-print card-header mx-0 w-100" }, P = { class: "col" }, q = { class: "row flex-nowrap align-items-center" }, G = { class: "col-auto" }, J = {
5
+ key: 0,
6
+ class: "col-auto"
7
+ }, K = {
8
+ class: "row",
9
+ style: { padding: "20px" }
10
+ }, O = { class: "d-flex align-items-start" }, Q = {
11
+ class: "nav flex-column nav-pills",
12
+ id: "v-pills-tab",
13
+ role: "tablist",
14
+ "aria-orientation": "vertical"
15
+ }, R = ["onClick"], U = {
16
+ class: "tab-content",
17
+ id: "v-pills-tabContent"
18
+ }, W = {
19
+ key: 0,
20
+ class: "title"
21
+ }, X = { key: 1 }, Y = { key: 0 }, Z = { key: 0 }, x = ["title"], ee = { key: 2 }, te = { class: "row" }, se = { class: "col-12" }, ae = /* @__PURE__ */ B({
22
+ __name: "PageCard",
23
+ props: {
24
+ actionLinks: { default: () => [] },
25
+ tabs: { default: () => [] },
26
+ col: { default: "auto" },
27
+ actionsTitle: { default: "Действия" },
28
+ isLoading: { type: Boolean, default: !1 }
29
+ },
30
+ emits: ["click", "active-tab"],
31
+ setup(w, { emit: C }) {
32
+ const L = w, k = C, v = E(0), f = F(), S = (s) => {
33
+ k("click", s);
34
+ }, $ = b(() => !!f.header), D = b(() => !!f.footer), N = (s) => {
35
+ v.value = s, k("active-tab", L.tabs[s]);
36
+ };
37
+ return j(() => {
38
+ }), (s, y) => (t(), e("div", null, [
39
+ p(i("p", H, [...y[0] || (y[0] = [
40
+ i("span", {
41
+ class: "placeholder col-12 mb-1",
42
+ style: { "min-height": "300px", "border-radius": "4px" }
43
+ }, null, -1)
44
+ ])], 512), [
45
+ [_, s.isLoading]
46
+ ]),
47
+ p(i("div", I, [
48
+ i("div", M, [
49
+ i("div", P, [
50
+ i("div", q, [
51
+ i("div", G, [
52
+ $.value ? m(s.$slots, "header", { key: 0 }, void 0, !0) : l("", !0)
53
+ ])
54
+ ])
55
+ ]),
56
+ s.actionLinks.length > 0 ? (t(), e("div", J, [
57
+ g(A, {
58
+ title: s.actionsTitle,
59
+ links: s.actionLinks,
60
+ onClick: S
61
+ }, null, 8, ["title", "links"])
62
+ ])) : l("", !0)
63
+ ]),
64
+ i("div", K, [
65
+ i("div", O, [
66
+ i("div", Q, [
67
+ (t(!0), e(r, null, u(s.tabs, (c, a) => p((t(), e("button", {
68
+ key: a,
69
+ class: h(["nav-link me-5", [a === v.value ? "active" : ""]]),
70
+ onClick: (o) => N(a)
71
+ }, d(c.navLink), 11, R)), [
72
+ [_, c.navLink]
73
+ ])), 128))
74
+ ]),
75
+ i("div", U, [
76
+ (t(!0), e(r, null, u(s.tabs, (c, a) => (t(), e("div", {
77
+ key: a,
78
+ class: h(["tab-pane fade row", [a === v.value ? "show active d-flex" : ""]])
79
+ }, [
80
+ (t(!0), e(r, null, u(c.contents, (o, V) => (t(), e("div", {
81
+ key: V,
82
+ class: h(`col-${s.col} mb-3`)
83
+ }, [
84
+ o.subtitle ? (t(), e("div", W, d(o.subtitle) + ": ", 1)) : l("", !0),
85
+ !o.type || o.type === "text" ? (t(), e("div", X, [
86
+ typeof o.text == "string" ? (t(), e("div", Y, d(o.text), 1)) : o.text ? (t(!0), e(r, { key: 1 }, u(o.text, (n, T) => (t(), e("div", { key: T }, [
87
+ typeof n == "string" ? (t(), e("div", Z, d(n), 1)) : l("", !0),
88
+ typeof n == "object" ? (t(), e("div", {
89
+ key: 1,
90
+ title: n?.description || ""
91
+ }, d(n.name), 9, x)) : l("", !0)
92
+ ]))), 128)) : l("", !0)
93
+ ])) : o.type === "custom" && o.slotName ? (t(), e("div", ee, [
94
+ m(s.$slots, o.slotName, { content: o }, void 0, !0)
95
+ ])) : l("", !0)
96
+ ], 2))), 128))
97
+ ], 2))), 128))
98
+ ])
99
+ ]),
100
+ D.value ? (t(), e(r, { key: 0 }, [
101
+ g(z, { class: "mt-3" }),
102
+ i("div", te, [
103
+ i("div", se, [
104
+ m(s.$slots, "footer", {}, void 0, !0)
105
+ ])
106
+ ])
107
+ ], 64)) : l("", !0)
108
+ ])
109
+ ], 512), [
110
+ [_, !s.isLoading]
111
+ ])
112
+ ]));
113
+ }
114
+ });
115
+ export {
116
+ ae as default
117
+ };
@@ -0,0 +1,102 @@
1
+ import { ref as g, useId as R, watch as E, onDeactivated as H, computed as S, createElementBlock as n, openBlock as r, withKeys as V, createElementVNode as c, withModifiers as w, unref as m, createTextVNode as B, toDisplayString as v, createCommentVNode as b, Fragment as I, renderList as L, normalizeClass as N } from "vue";
2
+ /* empty css */
3
+ import z from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const A = ["aria-expanded", "aria-controls"], F = ["aria-expanded", "aria-controls"], K = { style: { "border-bottom": "2px solid #000" } }, M = { class: "dropdown-list-wrapper" }, P = ["id"], T = ["disabled", "onClick"], q = {
5
+ __name: "DefaultDropDown",
6
+ props: {
7
+ links: {
8
+ type: Array,
9
+ required: !0
10
+ },
11
+ title: {
12
+ type: String,
13
+ default: "Actions"
14
+ },
15
+ type: {
16
+ type: String,
17
+ default: "actions",
18
+ validator: function(i) {
19
+ return ["actions", "profile"].includes(i);
20
+ }
21
+ }
22
+ },
23
+ setup(i) {
24
+ const _ = i, t = g(!1), l = g(null), u = g(null), p = R(), y = () => {
25
+ t.value = !t.value;
26
+ }, s = (e = !1) => {
27
+ t.value = !1, e && u.value?.focus({ preventScroll: !0 });
28
+ }, k = (e) => {
29
+ s(!0), typeof e == "function" && e();
30
+ }, x = (e) => {
31
+ l.value?.contains(e.relatedTarget) || s();
32
+ }, D = (e) => {
33
+ !t.value || e.isComposing || (e.preventDefault(), e.stopPropagation(), s(!0));
34
+ };
35
+ E(t, (e, a, o) => {
36
+ if (!e) return;
37
+ const d = l.value.ownerDocument, f = (C) => {
38
+ l.value?.contains(C.target) || s();
39
+ };
40
+ d.addEventListener("pointerdown", f, !0), o(
41
+ () => d.removeEventListener("pointerdown", f, !0)
42
+ );
43
+ }), H(() => s());
44
+ const h = S(() => _.type === "profile");
45
+ return (e, a) => (r(), n("div", {
46
+ ref_key: "wrapperRef",
47
+ ref: l,
48
+ class: "custom-dropdown",
49
+ onFocusout: x,
50
+ onKeydown: V(D, ["esc"])
51
+ }, [
52
+ h.value ? (r(), n("button", {
53
+ key: 0,
54
+ ref_key: "triggerRef",
55
+ ref: u,
56
+ type: "button",
57
+ class: "dropdown-trigger cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",
58
+ "aria-expanded": t.value,
59
+ "aria-controls": m(p),
60
+ onClick: w(y, ["stop"])
61
+ }, [
62
+ a[0] || (a[0] = c("div", { class: "circl" }, null, -1)),
63
+ B(" " + v(i.title), 1)
64
+ ], 8, A)) : (r(), n("button", {
65
+ key: 1,
66
+ ref_key: "triggerRef",
67
+ ref: u,
68
+ class: "dropdown-trigger link-dark",
69
+ type: "button",
70
+ "aria-expanded": t.value,
71
+ "aria-controls": m(p),
72
+ onClick: w(y, ["stop"])
73
+ }, [
74
+ c("span", K, v(i.title), 1),
75
+ a[1] || (a[1] = c("i", {
76
+ class: "bi bi-chevron-up dropdown-edit",
77
+ style: { "font-size": "12px", "padding-inline-start": "5px" }
78
+ }, null, -1))
79
+ ], 8, F)),
80
+ c("div", M, [
81
+ t.value ? (r(), n("ul", {
82
+ key: 0,
83
+ id: m(p),
84
+ class: "custom-dropdown-menu"
85
+ }, [
86
+ (r(!0), n(I, null, L(i.links, (o, d) => (r(), n("li", { key: d }, [
87
+ o.hidden ? b("", !0) : (r(), n("button", {
88
+ key: 0,
89
+ type: "button",
90
+ class: N(["dropdown-item", { disabled: o?.disabled }]),
91
+ disabled: !!o?.disabled,
92
+ onClick: (f) => k(o?.action)
93
+ }, v(o?.title), 11, T))
94
+ ]))), 128))
95
+ ], 8, P)) : b("", !0)
96
+ ])
97
+ ], 544));
98
+ }
99
+ }, J = /* @__PURE__ */ z(q, [["__scopeId", "data-v-ffaf1261"]]);
100
+ export {
101
+ J as default
102
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ExportComponent.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-db74d2e3"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as b, ref as p, computed as g, watch as h, onMounted as _, createElementBlock as l, openBlock as s, createCommentVNode as T, createElementVNode as i, Fragment as F, renderList as C, normalizeClass as w, createTextVNode as S, toDisplayString as V } from "vue";
2
+ import f from "../../_virtual/index.js";
3
+ const x = ["action"], E = ["value"], H = ["name", "value"], N = ["value"], O = ["disabled"], P = /* @__PURE__ */ b({
4
+ __name: "ExportComponent",
5
+ props: {
6
+ type: {},
7
+ action: {},
8
+ filters: {},
9
+ buttonText: {},
10
+ csrfToken: {}
11
+ },
12
+ setup(d) {
13
+ const r = d, a = p(), o = p([]), m = g(() => r.csrfToken), y = async () => {
14
+ a.value && a.value.submit();
15
+ }, u = () => {
16
+ if (!r.filters) return !1;
17
+ if (typeof r.filters == "string")
18
+ return v(), !0;
19
+ k();
20
+ }, v = () => {
21
+ o.value = [];
22
+ const e = /^.*\?/gm, n = r.filters.replace(e, ""), t = f.parse(n);
23
+ o.value = c(t);
24
+ }, c = (e) => f.stringify(e, { encode: !1 }).split("&").map((n) => {
25
+ const t = n.split("=");
26
+ return { key: t[0], value: t[1] };
27
+ }).filter(({ key: n, value: t }) => n.length && t.length), k = () => {
28
+ if (o.value = [], !r.filters)
29
+ return !1;
30
+ o.value = c(r.filters);
31
+ };
32
+ return h(() => r.filters, () => {
33
+ u();
34
+ }, { deep: !1 }), _(() => {
35
+ u();
36
+ }), (e, n) => (s(), l("form", {
37
+ target: "_blank",
38
+ action: e.action,
39
+ method: "POST",
40
+ ref_key: "reportForm",
41
+ ref: a
42
+ }, [
43
+ e.type ? (s(), l("input", {
44
+ key: 0,
45
+ type: "hidden",
46
+ name: "type",
47
+ value: e.type
48
+ }, null, 8, E)) : T("", !0),
49
+ (s(!0), l(F, null, C(o.value, (t) => (s(), l("input", {
50
+ key: t.key,
51
+ type: "hidden",
52
+ name: t.key,
53
+ value: t.value
54
+ }, null, 8, H))), 128)),
55
+ i("input", {
56
+ type: "hidden",
57
+ name: "_token",
58
+ value: m.value
59
+ }, null, 8, N),
60
+ i("button", {
61
+ type: "button",
62
+ class: w(["col-auto export-button", { disabled: !e.action }]),
63
+ onClick: y,
64
+ disabled: !e.action
65
+ }, [
66
+ S(V(e.buttonText) + " ", 1),
67
+ n[0] || (n[0] = i("i", { class: "ps-2 bi bi-file-earmark-arrow-down-fill" }, null, -1))
68
+ ], 10, O)
69
+ ], 8, x));
70
+ }
71
+ });
72
+ export {
73
+ P as default
74
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./MultipleQuickFilterComponent.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f65c1c64"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,34 @@
1
+ import { defineComponent as m, watch as f, createElementBlock as s, openBlock as r, createElementVNode as u, Fragment as p, renderList as L, normalizeClass as k, toDisplayString as v } from "vue";
2
+ const _ = { class: "row pt-3" }, b = { class: "col-12" }, h = ["onClick"], C = /* @__PURE__ */ m({
3
+ __name: "MultipleQuickFilterComponent",
4
+ props: {
5
+ filterList: {},
6
+ defaultSelected: { default: () => ({}) }
7
+ },
8
+ emits: ["emitSelected"],
9
+ setup(c, { emit: a }) {
10
+ const i = c, n = a, d = (e) => {
11
+ i.filterList[e].disabled || (i.filterList[e].value = !i.filterList[e].value, n("emitSelected", i.filterList));
12
+ };
13
+ return f(() => i.defaultSelected, (e) => {
14
+ e && Object.keys(e).length > 0 && i.filterList.forEach((o, l) => {
15
+ const t = Object.keys(e)[l];
16
+ t && e[t] !== void 0 && (o.value = e[t]);
17
+ });
18
+ }, { immediate: !0 }), (e, o) => (r(), s("div", _, [
19
+ u("div", b, [
20
+ (r(!0), s(p, null, L(e.filterList, (l, t) => (r(), s("button", {
21
+ onClick: (g) => d(t),
22
+ class: k(["btn filter-item", {
23
+ active: e.filterList[t].value,
24
+ disabled: e.filterList[t].disabled
25
+ }]),
26
+ key: t
27
+ }, v(l.title), 11, h))), 128))
28
+ ])
29
+ ]));
30
+ }
31
+ });
32
+ export {
33
+ C as default
34
+ };
@@ -0,0 +1,66 @@
1
+ import { ref as u, computed as m, watch as s, onMounted as f, createElementBlock as a, openBlock as i, createElementVNode as h, createCommentVNode as k, normalizeStyle as b, normalizeClass as p, toDisplayString as g } from "vue";
2
+ const y = { class: "form-check d-flex align-items-center" }, x = ["id", "name", "checked"], v = ["for"], V = {
3
+ __name: "Checkbox",
4
+ props: {
5
+ modelValue: {
6
+ type: Boolean,
7
+ default: !1
8
+ },
9
+ name: {
10
+ type: String,
11
+ required: !0
12
+ },
13
+ label: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ id: {
18
+ type: String,
19
+ default: () => `checkbox-${Math.random().toString(36).slice(2, 9)}`
20
+ },
21
+ size: {
22
+ type: String,
23
+ default: "sm",
24
+ validator: (e) => ["sm", "md", "lg"].includes(e)
25
+ },
26
+ clickableLabel: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
30
+ indeterminate: {
31
+ type: Boolean,
32
+ default: !1
33
+ }
34
+ },
35
+ emits: ["update:modelValue"],
36
+ setup(e, { emit: c }) {
37
+ const t = e, o = c, l = u(null), r = m(() => t.size === "sm" ? "5px" : t.size === "md" ? "10px" : t.size === "lg" ? "15px" : "5px"), d = (n) => {
38
+ o("update:modelValue", n.target.checked);
39
+ };
40
+ return s(() => t.indeterminate, (n) => {
41
+ l.value && (l.value.indeterminate = n);
42
+ }), f(() => {
43
+ l.value && (l.value.indeterminate = t.indeterminate);
44
+ }), (n, z) => (i(), a("div", y, [
45
+ h("input", {
46
+ ref_key: "inputRef",
47
+ ref: l,
48
+ class: "form-check-input mr-2 mt-0",
49
+ type: "checkbox",
50
+ id: e.id,
51
+ name: e.name,
52
+ style: b({ padding: r.value }),
53
+ checked: e.modelValue,
54
+ onChange: d
55
+ }, null, 44, x),
56
+ e.label ? (i(), a("label", {
57
+ key: 0,
58
+ class: p(["form-check-label lh-n", { "cursor-pointer": e.clickableLabel }]),
59
+ for: e.clickableLabel ? e.id : void 0
60
+ }, g(e.label), 11, v)) : k("", !0)
61
+ ]));
62
+ }
63
+ };
64
+ export {
65
+ V as default
66
+ };
@@ -0,0 +1,161 @@
1
+ import { ref as x, useId as A, useAttrs as E, inject as j, computed as y, toValue as L, onMounted as w, watch as M, createElementBlock as d, openBlock as m, normalizeStyle as z, normalizeClass as g, createCommentVNode as v, createElementVNode as c, createVNode as q, unref as r, toDisplayString as D, mergeProps as F } from "vue";
2
+ import P from "../../_virtual/inputmask.js";
3
+ import { isEqual as G } from "../../utils/helpers.js";
4
+ import { useFieldError as H } from "../../composables/forms/useFieldError.js";
5
+ import J from "./FormError.vue.js";
6
+ /* empty css */
7
+ import K from "../../_virtual/_plugin-vue_export-helper.js";
8
+ const Q = ["for"], R = { class: "position-relative" }, T = ["id", "type", "name", "value", "placeholder", "disabled", "readonly"], U = ["aria-label", "aria-controls"], W = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
9
+ __name: "CustomInput",
10
+ props: {
11
+ modelValue: {
12
+ type: [String, Number],
13
+ default: ""
14
+ },
15
+ titleClass: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ title: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ name: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ min: {
28
+ type: [String, Number],
29
+ default: ""
30
+ },
31
+ max: {
32
+ type: [String, Number],
33
+ default: ""
34
+ },
35
+ placeholder: {
36
+ type: String,
37
+ default: ""
38
+ },
39
+ disabled: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ readonly: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ clearLabel: {
48
+ type: String,
49
+ default: ""
50
+ },
51
+ inputClass: {
52
+ type: [String, Object],
53
+ default: ""
54
+ },
55
+ type: {
56
+ type: String,
57
+ default: "text"
58
+ },
59
+ error: {
60
+ type: [String, Object, Array],
61
+ default: ""
62
+ },
63
+ maskOptions: {
64
+ type: [String, Object],
65
+ default: () => ({})
66
+ },
67
+ maxNumber: {
68
+ type: [String, Number],
69
+ default: null
70
+ }
71
+ },
72
+ emits: ["change", "blur", "update:modelValue"],
73
+ setup(a, { emit: S }) {
74
+ const t = a, u = S, n = x(null), s = A(), h = E(), V = j(
75
+ "r3ui-custom-input-clear-label",
76
+ "Очистить поле"
77
+ ), C = y(
78
+ () => t.clearLabel || L(V)
79
+ );
80
+ function k() {
81
+ const { class: e, style: l, ...b } = h;
82
+ return b;
83
+ }
84
+ const f = (e) => {
85
+ let l = e.target.value;
86
+ t.max && (l = I(l), e.target.value = l), t.maxNumber && (Number(l) >= Number(t.maxNumber) && (l = t.maxNumber.toString()), e.target.value = l), u("update:modelValue", l);
87
+ }, N = (e) => {
88
+ e.target.value !== String(t.modelValue ?? "") && f(e);
89
+ }, I = (e) => e.substring(0, t.max), O = () => {
90
+ o.value && (u("update:modelValue", null), u("change", null), n.value && (n.value.value = "", n.value.focus({ preventScroll: !0 })));
91
+ }, p = () => {
92
+ if (t.maskOptions === "" || !n.value) return !1;
93
+ P({ ...t.maskOptions }).mask(n.value);
94
+ };
95
+ w(() => {
96
+ p();
97
+ }), M(
98
+ () => t.maskOptions,
99
+ (e, l) => {
100
+ G(e, l) || p();
101
+ },
102
+ { deep: !0 }
103
+ );
104
+ const o = y(() => t.modelValue !== "" && t.modelValue != null && !t.disabled && !t.readonly), { errorId: $, errorMessages: i, errorAttributes: B } = H(
105
+ () => t.error
106
+ );
107
+ return (e, l) => (m(), d("div", {
108
+ class: g(e.$attrs.class),
109
+ style: z(e.$attrs.style)
110
+ }, [
111
+ a.title ? (m(), d("label", {
112
+ key: 0,
113
+ for: e.$attrs.id || r(s),
114
+ class: g(["mb-1 fw-bold", [a.titleClass]])
115
+ }, D(a.title), 11, Q)) : v("", !0),
116
+ c("div", R, [
117
+ c("input", F({
118
+ ref_key: "inputEl",
119
+ ref: n,
120
+ onBlur: l[0] || (l[0] = (b) => u("blur")),
121
+ onInput: f,
122
+ onChange: N
123
+ }, { ...k(), ...r(B)(e.$attrs) }, {
124
+ id: e.$attrs.id || r(s),
125
+ type: a.type,
126
+ name: a.name,
127
+ class: ["form-control outline-none", {
128
+ [a.inputClass]: a.inputClass,
129
+ "not-valid": r(i).length > 0,
130
+ "is-invalid": r(i).length > 0,
131
+ "has-clear-button": o.value
132
+ }],
133
+ value: a.modelValue,
134
+ placeholder: a.placeholder,
135
+ disabled: a.disabled,
136
+ readonly: a.readonly
137
+ }), null, 16, T),
138
+ o.value ? (m(), d("button", {
139
+ key: 0,
140
+ type: "button",
141
+ class: "remove-button clear-input position-absolute",
142
+ "aria-label": C.value,
143
+ "aria-controls": e.$attrs.id || r(s),
144
+ onClick: O
145
+ }, [...l[1] || (l[1] = [
146
+ c("i", {
147
+ class: "bi bi-x-lg",
148
+ "aria-hidden": "true"
149
+ }, null, -1)
150
+ ])], 8, U)) : v("", !0)
151
+ ]),
152
+ q(J, {
153
+ id: r($),
154
+ errors: r(i)
155
+ }, null, 8, ["id", "errors"])
156
+ ], 6));
157
+ }
158
+ }), ae = /* @__PURE__ */ K(W, [["__scopeId", "data-v-a76e929c"]]);
159
+ export {
160
+ ae as default
161
+ };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock as r, openBlock as e, createCommentVNode as s, Fragment as n, renderList as c, toDisplayString as l } from "vue";
2
+ const m = {
3
+ class: "lh-1",
4
+ "data-test": "FormError"
5
+ }, p = {
6
+ __name: "FormError",
7
+ props: {
8
+ errors: {
9
+ type: Array,
10
+ default: () => []
11
+ }
12
+ },
13
+ setup(t) {
14
+ return (d, i) => (e(), r("div", m, [
15
+ t.errors?.length ? (e(!0), r(n, { key: 0 }, c(t.errors, (o, a) => (e(), r("div", {
16
+ class: "text-danger small",
17
+ key: a
18
+ }, l(o), 1))), 128)) : s("", !0)
19
+ ]));
20
+ }
21
+ };
22
+ export {
23
+ p as default
24
+ };
@@ -0,0 +1,82 @@
1
+ import { ref as c, useId as m, watch as f, createElementBlock as y, openBlock as v, createElementVNode as s, createVNode as g, mergeProps as V, unref as l, normalizeClass as w } from "vue";
2
+ import { useFieldError as h } from "../../composables/forms/useFieldError.js";
3
+ import I from "./FormError.vue.js";
4
+ /* empty css */
5
+ import $ from "../../_virtual/_plugin-vue_export-helper.js";
6
+ const B = { class: "position-relative" }, P = ["id", "type", "value", "disabled", "autocomplete"], k = ["disabled", "aria-label", "aria-pressed", "aria-controls", "title"], A = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
7
+ __name: "PasswordInput",
8
+ props: {
9
+ modelValue: {
10
+ type: String,
11
+ default: ""
12
+ },
13
+ error: {
14
+ type: [String, Array],
15
+ default: ""
16
+ },
17
+ initialVisibility: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ disabled: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ visibilityLabel: {
26
+ type: String,
27
+ default: "Показывать значение"
28
+ }
29
+ },
30
+ emits: ["update:modelValue"],
31
+ setup(t) {
32
+ const a = t, i = c(a.initialVisibility), r = m();
33
+ function n() {
34
+ a.disabled || (i.value = !i.value);
35
+ }
36
+ f(
37
+ () => a.initialVisibility,
38
+ (e) => {
39
+ i.value = e;
40
+ }
41
+ );
42
+ const { errorId: u, errorMessages: o, errorAttributes: p } = h(
43
+ () => a.error
44
+ );
45
+ return (e, d) => (v(), y("div", null, [
46
+ s("div", B, [
47
+ s("input", V({ ...e.$attrs, ...l(p)(e.$attrs) }, {
48
+ id: e.$attrs.id ?? l(r),
49
+ class: ["form-control password-input outline-none", { "is-invalid": l(o).length > 0 }],
50
+ type: i.value ? "text" : "password",
51
+ value: t.modelValue,
52
+ disabled: t.disabled,
53
+ autocomplete: e.$attrs.autocomplete ?? "new-password",
54
+ onInput: d[0] || (d[0] = (b) => e.$emit("update:modelValue", b.target.value))
55
+ }), null, 16, P),
56
+ s("button", {
57
+ class: "toggle-pass",
58
+ type: "button",
59
+ disabled: t.disabled,
60
+ "aria-label": t.visibilityLabel,
61
+ "aria-pressed": i.value,
62
+ "aria-controls": e.$attrs.id ?? l(r),
63
+ title: t.visibilityLabel,
64
+ onClick: n
65
+ }, [
66
+ s("i", {
67
+ "aria-hidden": "true",
68
+ class: w(["bi", [i.value ? "bi-eye-slash-fill" : "bi-eye-fill"]]),
69
+ style: { "font-size": "20px" }
70
+ }, null, 2)
71
+ ], 8, k)
72
+ ]),
73
+ g(I, {
74
+ id: l(u),
75
+ errors: l(o)
76
+ }, null, 8, ["id", "errors"])
77
+ ]));
78
+ }
79
+ }), N = /* @__PURE__ */ $(A, [["__scopeId", "data-v-67dc0e2c"]]);
80
+ export {
81
+ N as default
82
+ };