@sapphire-ion/framework 1.2.62 → 1.3.1

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 (498) hide show
  1. package/build.ps1 +39 -0
  2. package/ng-package.json +10 -0
  3. package/package.json +43 -47
  4. package/src/lib/classes/comparison/comparison-operator.ts +17 -0
  5. package/src/lib/classes/comparison/comparison-value-type.ts +34 -0
  6. package/src/lib/classes/comparison/comparison.ts +45 -0
  7. package/src/lib/classes/comparison/properties/bool-property.ts +16 -0
  8. package/src/lib/classes/comparison/properties/date-property.ts +28 -0
  9. package/src/lib/classes/comparison/properties/datetime-property.ts +28 -0
  10. package/src/lib/classes/comparison/properties/decimal-property.ts +28 -0
  11. package/src/lib/classes/comparison/properties/enum-property.ts +28 -0
  12. package/src/lib/classes/comparison/properties/implicit-property.ts +13 -0
  13. package/src/lib/classes/comparison/properties/int-property.ts +28 -0
  14. package/src/lib/classes/comparison/properties/long-property.ts +28 -0
  15. package/src/lib/classes/comparison/properties/string-property.ts +16 -0
  16. package/src/lib/classes/comparison/properties/time-property.ts +28 -0
  17. package/{lib/classes/credentials.d.ts → src/lib/classes/credentials.ts} +5 -5
  18. package/src/lib/classes/environment.ts +37 -0
  19. package/src/lib/classes/filters/view-filtros.ts +18 -0
  20. package/src/lib/classes/infinite-scroll.ts +112 -0
  21. package/src/lib/classes/inputs/table-field-form-builder.ts +12 -0
  22. package/src/lib/classes/inputs/table-field.ts +62 -0
  23. package/src/lib/classes/page-option.ts +8 -0
  24. package/src/lib/classes/routes/default-routing-factory.ts +24 -0
  25. package/src/lib/classes/routes/id-preloader-configuration.ts +21 -0
  26. package/src/lib/classes/routes/route-data.ts +9 -0
  27. package/src/lib/components/carousel/carousel-image/carousel-image.component.html +4 -0
  28. package/src/lib/components/carousel/carousel-image/carousel-image.component.ts +15 -0
  29. package/src/lib/components/carousel/carousel-item/carousel-item.component.html +3 -0
  30. package/src/lib/components/carousel/carousel-item/carousel-item.component.ts +14 -0
  31. package/src/lib/components/carousel/carousel.component.html +22 -0
  32. package/src/lib/components/carousel/carousel.component.ts +83 -0
  33. package/src/lib/components/carousel/carousel.module.ts +20 -0
  34. package/src/lib/components/carousel/i-carousel-item.component.ts +8 -0
  35. package/src/lib/components/content-block/content-block.component.html +6 -0
  36. package/src/lib/components/content-block/content-block.component.ts +25 -0
  37. package/src/lib/components/default/default-list/abstract-list.ts +56 -0
  38. package/src/lib/components/default/default-list/default-list.component.html +60 -0
  39. package/src/lib/components/default/default-list/default-list.component.ts +72 -0
  40. package/src/lib/components/default/default-list/header-list/header-list.component.html +32 -0
  41. package/src/lib/components/default/default-list/header-list/header-list.component.ts +85 -0
  42. package/src/lib/components/default/default-list/list.ts +127 -0
  43. package/src/lib/components/default/default-pagination/default-pagination.component.html +52 -0
  44. package/src/lib/components/default/default-pagination/default-pagination.component.ts +118 -0
  45. package/src/lib/components/default/default-table/default-table.component.html +104 -0
  46. package/src/lib/components/default/default-table/default-table.component.ts +255 -0
  47. package/src/lib/components/default/default-table/th-filter/th-filter.component.html +69 -0
  48. package/src/lib/components/default/default-table/th-filter/th-filter.component.ts +205 -0
  49. package/src/lib/components/default/default-view/abstract-view.ts +25 -0
  50. package/src/lib/components/default/default-view/default-view.component.html +111 -0
  51. package/src/lib/components/default/default-view/default-view.component.ts +56 -0
  52. package/src/lib/components/default/default-view/header-view/header-view.component.html +64 -0
  53. package/src/lib/components/default/default-view/header-view/header-view.component.ts +62 -0
  54. package/src/lib/components/default/default-view/view.ts +195 -0
  55. package/src/lib/components/default/default.module.ts +61 -0
  56. package/src/lib/components/default-page/default.page.html +63 -0
  57. package/src/lib/components/default-page/default.page.ts +84 -0
  58. package/src/lib/components/drag-drop-file/drag-drop-file.directive.ts +44 -0
  59. package/src/lib/components/drag-drop-file/drag-drop-file.module.ts +21 -0
  60. package/src/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.html +5 -0
  61. package/src/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.ts +17 -0
  62. package/src/lib/components/drawer/default-drawer-end/default-drawer-end.component.html +12 -0
  63. package/src/lib/components/drawer/default-drawer-end/default-drawer-end.component.ts +35 -0
  64. package/src/lib/components/drawer/drawer-group/drawer-group.component.html +79 -0
  65. package/src/lib/components/drawer/drawer-group/drawer-group.component.ts +49 -0
  66. package/src/lib/components/drawer/drawer.component.html +120 -0
  67. package/src/lib/components/drawer/drawer.component.ts +157 -0
  68. package/src/lib/components/drawer/menu.ts +20 -0
  69. package/src/lib/components/filter/filter.component.html +43 -0
  70. package/src/lib/components/filter/filter.component.ts +141 -0
  71. package/src/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.html +35 -0
  72. package/src/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.ts +19 -0
  73. package/src/lib/components/image/image.component.html +17 -0
  74. package/src/lib/components/image/image.component.ts +95 -0
  75. package/src/lib/components/info-popover/info-popover.component.html +23 -0
  76. package/src/lib/components/info-popover/info-popover.component.ts +75 -0
  77. package/src/lib/components/inputs/custom-input.ts +94 -0
  78. package/src/lib/components/inputs/input-bool/input-bool.component.html +26 -0
  79. package/src/lib/components/inputs/input-bool/input-bool.component.ts +39 -0
  80. package/src/lib/components/inputs/input-bool/input-bool.configuration.ts +14 -0
  81. package/src/lib/components/inputs/input-cep/input-cep.component.html +27 -0
  82. package/src/lib/components/inputs/input-cep/input-cep.component.ts +41 -0
  83. package/src/lib/components/inputs/input-cep/input-cep.configuration.ts +4 -0
  84. package/src/lib/components/inputs/input-color/input-color.component.html +79 -0
  85. package/src/lib/components/inputs/input-color/input-color.component.ts +544 -0
  86. package/{lib/components/inputs/input-configuration.d.ts → src/lib/components/inputs/input-configuration.ts} +23 -10
  87. package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.html +28 -0
  88. package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.ts +99 -0
  89. package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.ts +4 -0
  90. package/src/lib/components/inputs/input-date/input-date.component.html +89 -0
  91. package/src/lib/components/inputs/input-date/input-date.component.ts +269 -0
  92. package/src/lib/components/inputs/input-date/input-date.configuration.ts +8 -0
  93. package/src/lib/components/inputs/input-decimal/input-decimal.component.html +32 -0
  94. package/src/lib/components/inputs/input-decimal/input-decimal.component.ts +283 -0
  95. package/src/lib/components/inputs/input-decimal/input-decimal.configuration.ts +47 -0
  96. package/src/lib/components/inputs/input-default-configurations.ts +15 -0
  97. package/src/lib/components/inputs/input-file/download-button/download-button.component.html +56 -0
  98. package/src/lib/components/inputs/input-file/download-button/download-button.component.ts +91 -0
  99. package/src/lib/components/inputs/input-file/input-file.component.html +56 -0
  100. package/src/lib/components/inputs/input-file/input-file.component.ts +97 -0
  101. package/src/lib/components/inputs/input-file/input-file.configuration.ts +25 -0
  102. package/src/lib/components/inputs/input-icon/fluenticons.ts +3733 -0
  103. package/src/lib/components/inputs/input-icon/input-icon.component.html +8 -0
  104. package/src/lib/components/inputs/input-icon/input-icon.component.ts +52 -0
  105. package/src/lib/components/inputs/input-icon/ionicons.ts +1359 -0
  106. package/src/lib/components/inputs/input-provider-factory.ts +12 -0
  107. package/src/lib/components/inputs/input-select/directives/sion-label-template.directive.ts +19 -0
  108. package/src/lib/components/inputs/input-select/directives/sion-option-template.directive.ts +16 -0
  109. package/src/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.ts +19 -0
  110. package/src/lib/components/inputs/input-select/input-select.component.html +176 -0
  111. package/src/lib/components/inputs/input-select/input-select.component.ts +366 -0
  112. package/src/lib/components/inputs/input-select/input.select.configuration.ts +300 -0
  113. package/src/lib/components/inputs/input-string/input-string.component.html +27 -0
  114. package/src/lib/components/inputs/input-string/input-string.component.ts +31 -0
  115. package/src/lib/components/inputs/input-string/input-string.configuration.ts +20 -0
  116. package/src/lib/components/inputs/input-telefone/input-telefone.component.html +29 -0
  117. package/src/lib/components/inputs/input-telefone/input-telefone.component.ts +63 -0
  118. package/src/lib/components/inputs/input-telefone/input-telefone.configuration.ts +8 -0
  119. package/src/lib/components/inputs/input-textarea/input-textarea.component.html +27 -0
  120. package/src/lib/components/inputs/input-textarea/input-textarea.component.ts +75 -0
  121. package/src/lib/components/inputs/input-textarea/input-textarea.configuration.ts +7 -0
  122. package/src/lib/components/inputs/input-type.ts +22 -0
  123. package/src/lib/components/inputs/input-validators.ts +111 -0
  124. package/src/lib/components/inputs/inputs.module.ts +74 -0
  125. package/src/lib/components/loading/loading.component.html +28 -0
  126. package/src/lib/components/loading/loading.component.ts +29 -0
  127. package/src/lib/components/login/login-admin/login-admin.component.html +28 -0
  128. package/src/lib/components/login/login-admin/login-admin.component.ts +51 -0
  129. package/src/lib/components/login/login.component.html +104 -0
  130. package/src/lib/components/login/login.component.ts +96 -0
  131. package/src/lib/components/main-content/main-content.component.html +145 -0
  132. package/src/lib/components/main-content/main-content.component.ts +93 -0
  133. package/src/lib/components/popover/sion-popover/sion-popover.component.html +21 -0
  134. package/src/lib/components/popover/sion-popover/sion-popover.component.ts +182 -0
  135. package/src/lib/components/popover/sion-popover.module.ts +12 -0
  136. package/src/lib/components/sion-card/sion-card.component.html +12 -0
  137. package/src/lib/components/sion-card/sion-card.component.ts +23 -0
  138. package/src/lib/components/stepper/step/step.component.html +11 -0
  139. package/src/lib/components/stepper/step/step.component.ts +44 -0
  140. package/src/lib/components/stepper/stepper.component.html +3 -0
  141. package/src/lib/components/stepper/stepper.component.ts +37 -0
  142. package/src/lib/components/stepper/stepper.module.ts +15 -0
  143. package/src/lib/components/tabs/tab/tab.component.html +8 -0
  144. package/src/lib/components/tabs/tab/tab.component.ts +28 -0
  145. package/src/lib/components/tabs/tabs/tabs.component.html +14 -0
  146. package/src/lib/components/tabs/tabs/tabs.component.ts +42 -0
  147. package/src/lib/components/tabs/tabs.module.ts +15 -0
  148. package/src/lib/components/text-tooltip/text-tooltip.component.html +8 -0
  149. package/src/lib/components/text-tooltip/text-tooltip.component.scss +0 -0
  150. package/src/lib/components/text-tooltip/text-tooltip.component.ts +45 -0
  151. package/src/lib/components/tooltip/tooltip.component.html +53 -0
  152. package/src/lib/components/tooltip/tooltip.component.ts +16 -0
  153. package/src/lib/core.module.ts +29 -0
  154. package/src/lib/directives/ng-var.directive.ts +26 -0
  155. package/src/lib/guards/auth.guard.ts +19 -0
  156. package/src/lib/guards/error.interceptor.ts +108 -0
  157. package/src/lib/guards/token.interceptor.ts +28 -0
  158. package/src/lib/index.ts +191 -0
  159. package/src/lib/pipes/secure.pipe.ts +39 -0
  160. package/src/lib/services/auth.service.ts +150 -0
  161. package/src/lib/services/crypto.service.ts +164 -0
  162. package/src/lib/services/environment.service.ts +17 -0
  163. package/src/lib/services/generic.service.ts +85 -0
  164. package/src/lib/services/modal-focus-trap.service.ts +65 -0
  165. package/src/lib/services/navigation-context.service.ts +121 -0
  166. package/src/lib/services/popover-focus-trap.service.ts +65 -0
  167. package/src/lib/services/route/route.cache.service.ts +17 -0
  168. package/src/lib/services/route/route.provider.service.ts +49 -0
  169. package/src/lib/services/usuario.service.ts +44 -0
  170. package/src/lib/services/utils.service.ts +216 -0
  171. package/src/lib/services/web/api-url-provider.service.ts +48 -0
  172. package/src/lib/services/web/http.ativo.service.ts +37 -0
  173. package/src/lib/services/web/http.service.ts +206 -0
  174. package/src/lib/services/web/storage.service.ts +210 -0
  175. package/src/public-api.ts +5 -0
  176. package/tailwind.config.js +27 -0
  177. package/tsconfig.lib.json +29 -0
  178. package/tsconfig.lib.prod.json +23 -0
  179. package/tsconfig.spec.json +27 -0
  180. package/esm2022/lib/classes/comparison/comparison-operator.mjs +0 -18
  181. package/esm2022/lib/classes/comparison/comparison-value-type.mjs +0 -25
  182. package/esm2022/lib/classes/comparison/comparison.mjs +0 -41
  183. package/esm2022/lib/classes/comparison/properties/bool-property.mjs +0 -15
  184. package/esm2022/lib/classes/comparison/properties/date-property.mjs +0 -27
  185. package/esm2022/lib/classes/comparison/properties/datetime-property.mjs +0 -27
  186. package/esm2022/lib/classes/comparison/properties/decimal-property.mjs +0 -27
  187. package/esm2022/lib/classes/comparison/properties/enum-property.mjs +0 -27
  188. package/esm2022/lib/classes/comparison/properties/implicit-property.mjs +0 -12
  189. package/esm2022/lib/classes/comparison/properties/int-property.mjs +0 -27
  190. package/esm2022/lib/classes/comparison/properties/long-property.mjs +0 -27
  191. package/esm2022/lib/classes/comparison/properties/string-property.mjs +0 -15
  192. package/esm2022/lib/classes/comparison/properties/time-property.mjs +0 -27
  193. package/esm2022/lib/classes/credentials.mjs +0 -2
  194. package/esm2022/lib/classes/environment.mjs +0 -34
  195. package/esm2022/lib/classes/filters/view-filtros.mjs +0 -18
  196. package/esm2022/lib/classes/infinite-scroll.mjs +0 -90
  197. package/esm2022/lib/classes/inputs/table-field-form-builder.mjs +0 -10
  198. package/esm2022/lib/classes/inputs/table-field.mjs +0 -79
  199. package/esm2022/lib/classes/page-option.mjs +0 -2
  200. package/esm2022/lib/classes/routes/default-routing-factory.mjs +0 -23
  201. package/esm2022/lib/classes/routes/id-preloader-configuration.mjs +0 -22
  202. package/esm2022/lib/classes/routes/route-data.mjs +0 -9
  203. package/esm2022/lib/components/carousel/carousel-image/carousel-image.component.mjs +0 -18
  204. package/esm2022/lib/components/carousel/carousel-item/carousel-item.component.mjs +0 -15
  205. package/esm2022/lib/components/carousel/carousel.component.mjs +0 -79
  206. package/esm2022/lib/components/carousel/carousel.module.mjs +0 -31
  207. package/esm2022/lib/components/carousel/i-carousel-item.component.mjs +0 -16
  208. package/esm2022/lib/components/content-block/content-block.component.mjs +0 -27
  209. package/esm2022/lib/components/default/default-list/abstract-list.mjs +0 -49
  210. package/esm2022/lib/components/default/default-list/default-list.component.mjs +0 -95
  211. package/esm2022/lib/components/default/default-list/header-list/header-list.component.mjs +0 -98
  212. package/esm2022/lib/components/default/default-list/list.mjs +0 -120
  213. package/esm2022/lib/components/default/default-pagination/default-pagination.component.mjs +0 -123
  214. package/esm2022/lib/components/default/default-table/default-table.component.mjs +0 -216
  215. package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +0 -212
  216. package/esm2022/lib/components/default/default-view/abstract-view.mjs +0 -22
  217. package/esm2022/lib/components/default/default-view/default-view.component.mjs +0 -76
  218. package/esm2022/lib/components/default/default-view/header-view/header-view.component.mjs +0 -78
  219. package/esm2022/lib/components/default/default-view/view.mjs +0 -198
  220. package/esm2022/lib/components/default/default.module.mjs +0 -98
  221. package/esm2022/lib/components/default-page/default.page.mjs +0 -75
  222. package/esm2022/lib/components/drag-drop-file/drag-drop-file.directive.mjs +0 -60
  223. package/esm2022/lib/components/drag-drop-file/drag-drop-file.module.mjs +0 -31
  224. package/esm2022/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.mjs +0 -15
  225. package/esm2022/lib/components/drawer/default-drawer-end/default-drawer-end.component.mjs +0 -34
  226. package/esm2022/lib/components/drawer/drawer-group/drawer-group.component.mjs +0 -52
  227. package/esm2022/lib/components/drawer/drawer.component.mjs +0 -156
  228. package/esm2022/lib/components/drawer/menu.mjs +0 -15
  229. package/esm2022/lib/components/filter/filter.component.mjs +0 -145
  230. package/esm2022/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.mjs +0 -17
  231. package/esm2022/lib/components/image/image.component.mjs +0 -91
  232. package/esm2022/lib/components/info-popover/info-popover.component.mjs +0 -91
  233. package/esm2022/lib/components/inputs/custom-input.mjs +0 -85
  234. package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +0 -46
  235. package/esm2022/lib/components/inputs/input-bool/input-bool.configuration.mjs +0 -16
  236. package/esm2022/lib/components/inputs/input-cep/input-cep.component.mjs +0 -50
  237. package/esm2022/lib/components/inputs/input-cep/input-cep.configuration.mjs +0 -4
  238. package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +0 -481
  239. package/esm2022/lib/components/inputs/input-configuration.mjs +0 -2
  240. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +0 -116
  241. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.mjs +0 -6
  242. package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +0 -263
  243. package/esm2022/lib/components/inputs/input-date/input-date.configuration.mjs +0 -11
  244. package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +0 -276
  245. package/esm2022/lib/components/inputs/input-decimal/input-decimal.configuration.mjs +0 -50
  246. package/esm2022/lib/components/inputs/input-default-configurations.mjs +0 -14
  247. package/esm2022/lib/components/inputs/input-file/download-button/download-button.component.mjs +0 -102
  248. package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +0 -100
  249. package/esm2022/lib/components/inputs/input-file/input-file.configuration.mjs +0 -24
  250. package/esm2022/lib/components/inputs/input-icon/fluenticons.mjs +0 -3734
  251. package/esm2022/lib/components/inputs/input-icon/input-icon.component.mjs +0 -60
  252. package/esm2022/lib/components/inputs/input-icon/ionicons.mjs +0 -1360
  253. package/esm2022/lib/components/inputs/input-provider-factory.mjs +0 -12
  254. package/esm2022/lib/components/inputs/input-select/directives/sion-label-template.directive.mjs +0 -16
  255. package/esm2022/lib/components/inputs/input-select/directives/sion-option-template.directive.mjs +0 -16
  256. package/esm2022/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.mjs +0 -16
  257. package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +0 -376
  258. package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +0 -233
  259. package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +0 -41
  260. package/esm2022/lib/components/inputs/input-string/input-string.configuration.mjs +0 -20
  261. package/esm2022/lib/components/inputs/input-telefone/input-telefone.component.mjs +0 -74
  262. package/esm2022/lib/components/inputs/input-telefone/input-telefone.configuration.mjs +0 -12
  263. package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +0 -82
  264. package/esm2022/lib/components/inputs/input-textarea/input-textarea.configuration.mjs +0 -7
  265. package/esm2022/lib/components/inputs/input-type.mjs +0 -24
  266. package/esm2022/lib/components/inputs/input-validators.mjs +0 -121
  267. package/esm2022/lib/components/inputs/inputs.module.mjs +0 -133
  268. package/esm2022/lib/components/loading/loading.component.mjs +0 -34
  269. package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +0 -52
  270. package/esm2022/lib/components/login/login.component.mjs +0 -99
  271. package/esm2022/lib/components/main-content/main-content.component.mjs +0 -100
  272. package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +0 -182
  273. package/esm2022/lib/components/popover/sion-popover.module.mjs +0 -21
  274. package/esm2022/lib/components/sion-card/sion-card.component.mjs +0 -26
  275. package/esm2022/lib/components/stepper/step/step.component.mjs +0 -43
  276. package/esm2022/lib/components/stepper/stepper.component.mjs +0 -36
  277. package/esm2022/lib/components/stepper/stepper.module.mjs +0 -25
  278. package/esm2022/lib/components/tabs/tab/tab.component.mjs +0 -41
  279. package/esm2022/lib/components/tabs/tabs/tabs.component.mjs +0 -56
  280. package/esm2022/lib/components/tabs/tabs.module.mjs +0 -22
  281. package/esm2022/lib/components/text-tooltip/text-tooltip.component.mjs +0 -51
  282. package/esm2022/lib/components/tooltip/tooltip.component.mjs +0 -21
  283. package/esm2022/lib/core.module.mjs +0 -38
  284. package/esm2022/lib/directives/ng-var.directive.mjs +0 -29
  285. package/esm2022/lib/guards/auth.guard.mjs +0 -26
  286. package/esm2022/lib/guards/error.interceptor.mjs +0 -107
  287. package/esm2022/lib/guards/token.interceptor.mjs +0 -25
  288. package/esm2022/lib/index.mjs +0 -188
  289. package/esm2022/lib/pipes/secure.pipe.mjs +0 -42
  290. package/esm2022/lib/services/auth.service.mjs +0 -146
  291. package/esm2022/lib/services/environment.service.mjs +0 -26
  292. package/esm2022/lib/services/generic.service.mjs +0 -84
  293. package/esm2022/lib/services/modal-focus-trap.service.mjs +0 -62
  294. package/esm2022/lib/services/navigation-context.service.mjs +0 -112
  295. package/esm2022/lib/services/popover-focus-trap.service.mjs +0 -62
  296. package/esm2022/lib/services/route/route.cache.service.mjs +0 -15
  297. package/esm2022/lib/services/route/route.provider.service.mjs +0 -42
  298. package/esm2022/lib/services/usuario.service.mjs +0 -49
  299. package/esm2022/lib/services/utils.service.mjs +0 -190
  300. package/esm2022/lib/services/web/api-url-provider.service.mjs +0 -29
  301. package/esm2022/lib/services/web/http.ativo.service.mjs +0 -37
  302. package/esm2022/lib/services/web/http.service.mjs +0 -183
  303. package/esm2022/lib/services/web/storage.service.mjs +0 -186
  304. package/esm2022/public-api.mjs +0 -5
  305. package/esm2022/sapphire-ion-framework.mjs +0 -5
  306. package/fesm2022/sapphire-ion-framework.mjs +0 -12488
  307. package/fesm2022/sapphire-ion-framework.mjs.map +0 -1
  308. package/index.d.ts +0 -5
  309. package/lib/classes/comparison/comparison-operator.d.ts +0 -9
  310. package/lib/classes/comparison/comparison-value-type.d.ts +0 -23
  311. package/lib/classes/comparison/comparison.d.ts +0 -25
  312. package/lib/classes/comparison/properties/bool-property.d.ts +0 -7
  313. package/lib/classes/comparison/properties/date-property.d.ts +0 -11
  314. package/lib/classes/comparison/properties/datetime-property.d.ts +0 -11
  315. package/lib/classes/comparison/properties/decimal-property.d.ts +0 -11
  316. package/lib/classes/comparison/properties/enum-property.d.ts +0 -11
  317. package/lib/classes/comparison/properties/implicit-property.d.ts +0 -6
  318. package/lib/classes/comparison/properties/int-property.d.ts +0 -11
  319. package/lib/classes/comparison/properties/long-property.d.ts +0 -11
  320. package/lib/classes/comparison/properties/string-property.d.ts +0 -7
  321. package/lib/classes/comparison/properties/time-property.d.ts +0 -11
  322. package/lib/classes/environment.d.ts +0 -14
  323. package/lib/classes/filters/view-filtros.d.ts +0 -10
  324. package/lib/classes/infinite-scroll.d.ts +0 -26
  325. package/lib/classes/inputs/table-field-form-builder.d.ts +0 -5
  326. package/lib/classes/inputs/table-field.d.ts +0 -20
  327. package/lib/classes/page-option.d.ts +0 -7
  328. package/lib/classes/routes/default-routing-factory.d.ts +0 -8
  329. package/lib/classes/routes/id-preloader-configuration.d.ts +0 -28
  330. package/lib/classes/routes/route-data.d.ts +0 -5
  331. package/lib/components/carousel/carousel-image/carousel-image.component.d.ts +0 -10
  332. package/lib/components/carousel/carousel-item/carousel-item.component.d.ts +0 -9
  333. package/lib/components/carousel/carousel.component.d.ts +0 -32
  334. package/lib/components/carousel/carousel.module.d.ts +0 -12
  335. package/lib/components/carousel/i-carousel-item.component.d.ts +0 -9
  336. package/lib/components/content-block/content-block.component.d.ts +0 -15
  337. package/lib/components/default/default-list/abstract-list.d.ts +0 -21
  338. package/lib/components/default/default-list/default-list.component.d.ts +0 -47
  339. package/lib/components/default/default-list/header-list/header-list.component.d.ts +0 -45
  340. package/lib/components/default/default-list/list.d.ts +0 -40
  341. package/lib/components/default/default-pagination/default-pagination.component.d.ts +0 -36
  342. package/lib/components/default/default-table/default-table.component.d.ts +0 -90
  343. package/lib/components/default/default-table/th-filter/th-filter.component.d.ts +0 -23
  344. package/lib/components/default/default-view/abstract-view.d.ts +0 -18
  345. package/lib/components/default/default-view/default-view.component.d.ts +0 -40
  346. package/lib/components/default/default-view/header-view/header-view.component.d.ts +0 -36
  347. package/lib/components/default/default-view/view.d.ts +0 -67
  348. package/lib/components/default/default.module.d.ts +0 -31
  349. package/lib/components/default-page/default.page.d.ts +0 -35
  350. package/lib/components/drag-drop-file/drag-drop-file.directive.d.ts +0 -14
  351. package/lib/components/drag-drop-file/drag-drop-file.module.d.ts +0 -10
  352. package/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.d.ts +0 -9
  353. package/lib/components/drawer/default-drawer-end/default-drawer-end.component.d.ts +0 -13
  354. package/lib/components/drawer/drawer-group/drawer-group.component.d.ts +0 -22
  355. package/lib/components/drawer/drawer.component.d.ts +0 -31
  356. package/lib/components/drawer/menu.d.ts +0 -9
  357. package/lib/components/filter/filter.component.d.ts +0 -29
  358. package/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.d.ts +0 -8
  359. package/lib/components/image/image.component.d.ts +0 -23
  360. package/lib/components/info-popover/info-popover.component.d.ts +0 -15
  361. package/lib/components/inputs/custom-input.d.ts +0 -40
  362. package/lib/components/inputs/input-bool/input-bool.component.d.ts +0 -16
  363. package/lib/components/inputs/input-bool/input-bool.configuration.d.ts +0 -17
  364. package/lib/components/inputs/input-cep/input-cep.component.d.ts +0 -18
  365. package/lib/components/inputs/input-cep/input-cep.configuration.d.ts +0 -3
  366. package/lib/components/inputs/input-color/input-color.component.d.ts +0 -77
  367. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +0 -19
  368. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.d.ts +0 -5
  369. package/lib/components/inputs/input-date/input-date.component.d.ts +0 -61
  370. package/lib/components/inputs/input-date/input-date.configuration.d.ts +0 -11
  371. package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +0 -27
  372. package/lib/components/inputs/input-decimal/input-decimal.configuration.d.ts +0 -28
  373. package/lib/components/inputs/input-default-configurations.d.ts +0 -13
  374. package/lib/components/inputs/input-file/download-button/download-button.component.d.ts +0 -40
  375. package/lib/components/inputs/input-file/input-file.component.d.ts +0 -28
  376. package/lib/components/inputs/input-file/input-file.configuration.d.ts +0 -8
  377. package/lib/components/inputs/input-icon/fluenticons.d.ts +0 -1
  378. package/lib/components/inputs/input-icon/input-icon.component.d.ts +0 -20
  379. package/lib/components/inputs/input-icon/ionicons.d.ts +0 -1
  380. package/lib/components/inputs/input-provider-factory.d.ts +0 -4
  381. package/lib/components/inputs/input-select/directives/sion-label-template.directive.d.ts +0 -18
  382. package/lib/components/inputs/input-select/directives/sion-option-template.directive.d.ts +0 -14
  383. package/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.d.ts +0 -18
  384. package/lib/components/inputs/input-select/input-select.component.d.ts +0 -83
  385. package/lib/components/inputs/input-select/input.select.configuration.d.ts +0 -127
  386. package/lib/components/inputs/input-string/input-string.component.d.ts +0 -14
  387. package/lib/components/inputs/input-string/input-string.configuration.d.ts +0 -15
  388. package/lib/components/inputs/input-telefone/input-telefone.component.d.ts +0 -19
  389. package/lib/components/inputs/input-telefone/input-telefone.configuration.d.ts +0 -9
  390. package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +0 -17
  391. package/lib/components/inputs/input-textarea/input-textarea.configuration.d.ts +0 -4
  392. package/lib/components/inputs/input-type.d.ts +0 -22
  393. package/lib/components/inputs/input-validators.d.ts +0 -25
  394. package/lib/components/inputs/inputs.module.d.ts +0 -33
  395. package/lib/components/loading/loading.component.d.ts +0 -18
  396. package/lib/components/login/login-admin/login-admin.component.d.ts +0 -20
  397. package/lib/components/login/login.component.d.ts +0 -29
  398. package/lib/components/main-content/main-content.component.d.ts +0 -27
  399. package/lib/components/popover/sion-popover/sion-popover.component.d.ts +0 -43
  400. package/lib/components/popover/sion-popover.module.d.ts +0 -9
  401. package/lib/components/sion-card/sion-card.component.d.ts +0 -11
  402. package/lib/components/stepper/step/step.component.d.ts +0 -15
  403. package/lib/components/stepper/stepper.component.d.ts +0 -14
  404. package/lib/components/stepper/stepper.module.d.ts +0 -10
  405. package/lib/components/tabs/tab/tab.component.d.ts +0 -19
  406. package/lib/components/tabs/tabs/tabs.component.d.ts +0 -18
  407. package/lib/components/tabs/tabs.module.d.ts +0 -12
  408. package/lib/components/text-tooltip/text-tooltip.component.d.ts +0 -16
  409. package/lib/components/tooltip/tooltip.component.d.ts +0 -7
  410. package/lib/core.module.d.ts +0 -16
  411. package/lib/directives/ng-var.directive.d.ts +0 -12
  412. package/lib/guards/auth.guard.d.ts +0 -11
  413. package/lib/guards/error.interceptor.d.ts +0 -32
  414. package/lib/guards/token.interceptor.d.ts +0 -11
  415. package/lib/index.d.ts +0 -118
  416. package/lib/pipes/secure.pipe.d.ts +0 -15
  417. package/lib/services/auth.service.d.ts +0 -47
  418. package/lib/services/environment.service.d.ts +0 -10
  419. package/lib/services/generic.service.d.ts +0 -22
  420. package/lib/services/modal-focus-trap.service.d.ts +0 -13
  421. package/lib/services/navigation-context.service.d.ts +0 -14
  422. package/lib/services/popover-focus-trap.service.d.ts +0 -13
  423. package/lib/services/route/route.cache.service.d.ts +0 -7
  424. package/lib/services/route/route.provider.service.d.ts +0 -13
  425. package/lib/services/usuario.service.d.ts +0 -21
  426. package/lib/services/utils.service.d.ts +0 -53
  427. package/lib/services/web/api-url-provider.service.d.ts +0 -13
  428. package/lib/services/web/http.ativo.service.d.ts +0 -20
  429. package/lib/services/web/http.service.d.ts +0 -59
  430. package/lib/services/web/storage.service.d.ts +0 -46
  431. package/public-api.d.ts +0 -1
  432. /package/{themes → src/lib}/compiled-styles.scss +0 -0
  433. /package/{themes → src/lib}/components/carousel/carousel-image/carousel-image.component.scss +0 -0
  434. /package/{themes → src/lib}/components/carousel/carousel-item/carousel-item.component.scss +0 -0
  435. /package/{themes → src/lib}/components/carousel/carousel.component.scss +0 -0
  436. /package/{themes → src/lib}/components/content-block/content-block.component.scss +0 -0
  437. /package/{themes → src/lib}/components/default/default-list/default-list.component.scss +0 -0
  438. /package/{themes → src/lib}/components/default/default-list/header-list/header-list.component.scss +0 -0
  439. /package/{themes → src/lib}/components/default/default-pagination/default-pagination.component.scss +0 -0
  440. /package/{themes → src/lib}/components/default/default-table/default-table.component.scss +0 -0
  441. /package/{themes → src/lib}/components/default/default-table/th-filter/th-filter.component.scss +0 -0
  442. /package/{themes → src/lib}/components/default/default-view/default-view.component.scss +0 -0
  443. /package/{themes → src/lib}/components/default/default-view/header-view/header-view.component.scss +0 -0
  444. /package/{themes → src/lib}/components/default-page/default.page.scss +0 -0
  445. /package/{themes → src/lib}/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.scss +0 -0
  446. /package/{themes → src/lib}/components/drawer/default-drawer-end/default-drawer-end.component.scss +0 -0
  447. /package/{themes → src/lib}/components/drawer/drawer-group/drawer-group.component.scss +0 -0
  448. /package/{themes → src/lib}/components/drawer/drawer.component.scss +0 -0
  449. /package/{themes → src/lib}/components/filter/filter.component.scss +0 -0
  450. /package/{themes → src/lib}/components/http-responses-pages/forbidden-403/forbidden-403.component.scss +0 -0
  451. /package/{themes → src/lib}/components/image/image.component.scss +0 -0
  452. /package/{themes → src/lib}/components/info-popover/info-popover.component.scss +0 -0
  453. /package/{themes → src/lib}/components/inputs/input-bool/input-bool.component.scss +0 -0
  454. /package/{themes → src/lib}/components/inputs/input-cep/input-cep.component.scss +0 -0
  455. /package/{themes → src/lib}/components/inputs/input-color/input-color.component.scss +0 -0
  456. /package/{themes/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.scss → src/lib/components/inputs/input-color/input-color.configuration.ts} +0 -0
  457. /package/{themes/components/inputs/input-icon/input-icon.component.scss → src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.scss} +0 -0
  458. /package/{themes → src/lib}/components/inputs/input-date/input-date.component.scss +0 -0
  459. /package/{themes → src/lib}/components/inputs/input-decimal/input-decimal.component.scss +0 -0
  460. /package/{themes → src/lib}/components/inputs/input-file/download-button/download-button.component.scss +0 -0
  461. /package/{themes → src/lib}/components/inputs/input-file/input-file.component.scss +0 -0
  462. /package/{themes/components/inputs/input-string/input-string.component.scss → src/lib/components/inputs/input-icon/input-icon.component.scss} +0 -0
  463. /package/{themes → src/lib}/components/inputs/input-select/input-select.component.scss +0 -0
  464. /package/{themes/components/inputs/input-telefone/input-telefone.component.scss → src/lib/components/inputs/input-string/input-string.component.scss} +0 -0
  465. /package/{themes/components/loading/loading.component.scss → src/lib/components/inputs/input-telefone/input-telefone.component.scss} +0 -0
  466. /package/{themes → src/lib}/components/inputs/input-textarea/input-textarea.component.scss +0 -0
  467. /package/{themes → src/lib}/components/inputs/inputs.scss +0 -0
  468. /package/{themes/components/sion-card/sion-card.component.scss → src/lib/components/loading/loading.component.scss} +0 -0
  469. /package/{themes → src/lib}/components/login/login-admin/login-admin.component.scss +0 -0
  470. /package/{themes → src/lib}/components/login/login.component.scss +0 -0
  471. /package/{themes → src/lib}/components/main-content/main-content.component.scss +0 -0
  472. /package/{themes → src/lib}/components/popover/sion-popover/sion-popover.component.scss +0 -0
  473. /package/{themes/components/stepper/stepper.component.scss → src/lib/components/sion-card/sion-card.component.scss} +0 -0
  474. /package/{themes → src/lib}/components/stepper/step/step.component.scss +0 -0
  475. /package/{themes/components/tabs/tab/tab.component.scss → src/lib/components/stepper/stepper.component.scss} +0 -0
  476. /package/{themes/components/text-tooltip/text-tooltip.component.scss → src/lib/components/tabs/tab/tab.component.scss} +0 -0
  477. /package/{themes → src/lib}/components/tabs/tabs/tabs.component.scss +0 -0
  478. /package/{themes → src/lib}/components/tooltip/tooltip.component.scss +0 -0
  479. /package/{themes → src/lib}/styles/components.scss +0 -0
  480. /package/{themes → src/lib}/styles/core.styles.scss +0 -0
  481. /package/{themes → src/lib}/styles/ionic/ion-action-sheet.scss +0 -0
  482. /package/{themes → src/lib}/styles/ionic/ion-alert.scss +0 -0
  483. /package/{themes → src/lib}/styles/ionic/ion-button.scss +0 -0
  484. /package/{themes → src/lib}/styles/ionic/ion-card.scss +0 -0
  485. /package/{themes → src/lib}/styles/ionic/ion-content.scss +0 -0
  486. /package/{themes → src/lib}/styles/ionic/ion-datetime.scss +0 -0
  487. /package/{themes → src/lib}/styles/ionic/ion-item.scss +0 -0
  488. /package/{themes → src/lib}/styles/ionic/ion-list.scss +0 -0
  489. /package/{themes → src/lib}/styles/ionic/ion-modal.scss +0 -0
  490. /package/{themes → src/lib}/styles/ionic/ion-popover.scss +0 -0
  491. /package/{themes → src/lib}/styles/ionic/ion-progress-bar.scss +0 -0
  492. /package/{themes → src/lib}/styles/ionic/ion-searchbar.scss +0 -0
  493. /package/{themes → src/lib}/styles/ionic/ion-toast.scss +0 -0
  494. /package/{themes → src/lib}/styles/ionic.scss +0 -0
  495. /package/{themes → src/lib}/styles/login-default.scss +0 -0
  496. /package/{themes → src/lib}/styles/mixins.scss +0 -0
  497. /package/{themes → src/lib}/styles/styles.scss +0 -0
  498. /package/{themes → src/lib}/styles/translucid.scss +0 -0
@@ -1,60 +0,0 @@
1
- import { ContentChild, Directive } from '@angular/core';
2
- import { Output, EventEmitter, HostBinding, HostListener } from '@angular/core';
3
- import { DragDropOverlayComponent } from './drag-drop-overlay/drag-drop-overlay.component';
4
- import * as i0 from "@angular/core";
5
- export class DragDropFileDirective {
6
- constructor() {
7
- this.fileDropped = new EventEmitter();
8
- }
9
- // Dragover listener
10
- onDragOver(evt) {
11
- evt.preventDefault();
12
- evt.stopPropagation();
13
- this.fileOver = true;
14
- this.dragDropOverlay.fileOver = true;
15
- }
16
- // Dragleave listener
17
- onDragLeave(evt) {
18
- evt.preventDefault();
19
- evt.stopPropagation();
20
- this.fileOver = false;
21
- this.dragDropOverlay.fileOver = false;
22
- }
23
- // Drop listener
24
- onDrop(evt) {
25
- evt.preventDefault();
26
- evt.stopPropagation();
27
- this.fileOver = false;
28
- this.dragDropOverlay.fileOver = false;
29
- let files = evt.dataTransfer.files;
30
- if (files.length > 0) {
31
- this.fileDropped.emit(Array.from(files));
32
- }
33
- }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragDropFileDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
35
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DragDropFileDirective, selector: "[DragDropFile]", outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" }, properties: { "class.fileOver": "this.fileOver" } }, queries: [{ propertyName: "dragDropOverlay", first: true, predicate: DragDropOverlayComponent, descendants: true }], ngImport: i0 }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragDropFileDirective, decorators: [{
38
- type: Directive,
39
- args: [{
40
- selector: '[DragDropFile]'
41
- }]
42
- }], ctorParameters: () => [], propDecorators: { fileOver: [{
43
- type: HostBinding,
44
- args: ['class.fileOver']
45
- }], fileDropped: [{
46
- type: Output
47
- }], dragDropOverlay: [{
48
- type: ContentChild,
49
- args: [DragDropOverlayComponent]
50
- }], onDragOver: [{
51
- type: HostListener,
52
- args: ['dragover', ['$event']]
53
- }], onDragLeave: [{
54
- type: HostListener,
55
- args: ['dragleave', ['$event']]
56
- }], onDrop: [{
57
- type: HostListener,
58
- args: ['drop', ['$event']]
59
- }] } });
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZy1kcm9wLWZpbGUuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2RyYWctZHJvcC1maWxlL2RyYWctZHJvcC1maWxlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLFNBQVMsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUNuRSxPQUFPLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hGLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGlEQUFpRCxDQUFDOztBQUszRixNQUFNLE9BQU8scUJBQXFCO0lBRWhDO1FBR1UsZ0JBQVcsR0FBRyxJQUFJLFlBQVksRUFBVSxDQUFDO0lBSG5DLENBQUM7SUFPakIsb0JBQW9CO0lBQ2tCLFVBQVUsQ0FBQyxHQUFjO1FBQzdELEdBQUcsQ0FBQyxjQUFjLEVBQUUsQ0FBQztRQUNyQixHQUFHLENBQUMsZUFBZSxFQUFFLENBQUM7UUFDdEIsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUM7UUFDckIsSUFBSSxDQUFDLGVBQWUsQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDO0lBQ3ZDLENBQUM7SUFFRCxxQkFBcUI7SUFDeUIsV0FBVyxDQUFDLEdBQW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gModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { DragDropFileDirective } from './drag-drop-file.directive';
4
- import { DragDropOverlayComponent } from './drag-drop-overlay/drag-drop-overlay.component';
5
- import { IonicModule } from '@ionic/angular';
6
- import * as i0 from "@angular/core";
7
- const values = [
8
- DragDropFileDirective,
9
- DragDropOverlayComponent
10
- ];
11
- export class DragDropFileModule {
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragDropFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
13
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: DragDropFileModule, declarations: [DragDropFileDirective,
14
- DragDropOverlayComponent], imports: [CommonModule,
15
- IonicModule], exports: [DragDropFileDirective,
16
- DragDropOverlayComponent] }); }
17
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragDropFileModule, imports: [CommonModule,
18
- IonicModule] }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragDropFileModule, decorators: [{
21
- type: NgModule,
22
- args: [{
23
- declarations: [...values],
24
- exports: [...values],
25
- imports: [
26
- CommonModule,
27
- IonicModule
28
- ]
29
- }]
30
- }] });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZy1kcm9wLWZpbGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2RyYWctZHJvcC1maWxlL2RyYWctZHJvcC1maWxlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pD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xheS9kcmFnLWRyb3Atb3ZlcmxheS5jb21wb25lbnQnO1xyXG5pbXBvcnQgeyBJb25pY01vZHVsZSB9IGZyb20gJ0Bpb25pYy9hbmd1bGFyJztcclxuXHJcbmNvbnN0IHZhbHVlcyA9IFtcclxuICBEcmFnRHJvcEZpbGVEaXJlY3RpdmUsXHJcbiAgRHJhZ0Ryb3BPdmVybGF5Q29tcG9uZW50XHJcbl1cclxuXHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGRlY2xhcmF0aW9uczogWyAuLi52YWx1ZXMgXSxcclxuICBleHBvcnRzICAgICA6IFsgLi4udmFsdWVzIF0sXHJcbiAgaW1wb3J0czogW1xyXG4gICAgQ29tbW9uTW9kdWxlLFxyXG4gICAgSW9uaWNNb2R1bGVcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBEcmFnRHJvcEZpbGVNb2R1bGUgeyB9XHJcbiJdfQ==
@@ -1,15 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@ionic/angular";
5
- export class DragDropOverlayComponent {
6
- constructor() { }
7
- ngOnInit() { }
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragDropOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DragDropOverlayComponent, selector: "drag-drop-overlay", ngImport: i0, template: "<div class=\"absolute top-0 left-0 size-full z-50 p-4 pointer-events-none\" [ngClass]=\"{'fileOver': fileOver}\">\r\n <div class=\"border-4 border-dashed border-transparent default-transition rounded-2xl size-full flex items-center justify-center\">\r\n <ion-icon class=\"text-9xl text-transparent\" name=\"cloud-upload\"></ion-icon>\r\n </div>\r\n</div>", styles: [".fileOver{top:0!important;--tw-backdrop-blur: blur(4px) !important;--tw-backdrop-grayscale: grayscale(.5) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.fileOver div{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.fileOver div ion-icon{color:var(--ion-color-dark)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragDropOverlayComponent, decorators: [{
12
- type: Component,
13
- args: [{ selector: 'drag-drop-overlay', template: "<div class=\"absolute top-0 left-0 size-full z-50 p-4 pointer-events-none\" [ngClass]=\"{'fileOver': fileOver}\">\r\n <div class=\"border-4 border-dashed border-transparent default-transition rounded-2xl size-full flex items-center justify-center\">\r\n <ion-icon class=\"text-9xl text-transparent\" name=\"cloud-upload\"></ion-icon>\r\n </div>\r\n</div>", styles: [".fileOver{top:0!important;--tw-backdrop-blur: blur(4px) !important;--tw-backdrop-grayscale: grayscale(.5) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.fileOver div{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.fileOver div ion-icon{color:var(--ion-color-dark)}\n"] }]
14
- }], ctorParameters: () => [] });
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZy1kcm9wLW92ZXJsYXkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2RyYWctZHJvcC1maWxlL2RyYWctZHJvcC1vdmVybGF5L2RyYWctZHJvcC1vdmVybGF5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9kcmFnLWRyb3AtZmlsZS9kcmFnLWRyb3Atb3ZlcmxheS9kcmFnLWRyb3Atb3ZlcmxheS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFDOzs7O0FBUWxELE1BQU0sT0FBTyx3QkFBd0I7SUFFbkMsZ0JBQWdCLENBQUM7SUFFakIsUUFBUSxLQUFJLENBQUM7K0dBSkYsd0JBQXdCO21HQUF4Qix3QkFBd0IseURDVHJDLHlXQUlNOzs0RkRLTyx3QkFBd0I7a0JBTHBDLFNBQVM7K0JBQ0UsbUJBQW1CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcclxuaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgSW9uaWNNb2R1bGUgfSBmcm9tICdAaW9uaWMvYW5ndWxhcic7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICBzZWxlY3RvcjogJ2RyYWctZHJvcC1vdmVybGF5JyxcclxuICB0ZW1wbGF0ZVVybDogJy4vZHJhZy1kcm9wLW92ZXJsYXkuY29tcG9uZW50Lmh0bWwnLFxyXG4gIHN0eWxlVXJsczogWycuL2RyYWctZHJvcC1vdmVybGF5LmNvbXBvbmVudC5zY3NzJ10sXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBEcmFnRHJvcE92ZXJsYXlDb21wb25lbnQgIGltcGxlbWVudHMgT25Jbml0IHtcclxuXHJcbiAgY29uc3RydWN0b3IoKSB7IH1cclxuXHJcbiAgbmdPbkluaXQoKSB7fVxyXG5cclxuICBmaWxlT3ZlcjogYm9vbGVhbjtcclxufVxyXG4iLCI8ZGl2IGNsYXNzPVwiYWJzb2x1dGUgdG9wLTAgbGVmdC0wIHNpemUtZnVsbCB6LTUwIHAtNCBwb2ludGVyLWV2ZW50cy1ub25lXCIgW25nQ2xhc3NdPVwieydmaWxlT3Zlcic6IGZpbGVPdmVyfVwiPlxyXG4gIDxkaXYgY2xhc3M9XCJib3JkZXItNCBib3JkZXItZGFzaGVkIGJvcmRlci10cmFuc3BhcmVudCBkZWZhdWx0LXRyYW5zaXRpb24gcm91bmRlZC0yeGwgc2l6ZS1mdWxsIGZsZXggaXRlbXMtY2VudGVyIGp1c3RpZnktY2VudGVyXCI+XHJcbiAgICA8aW9uLWljb24gY2xhc3M9XCJ0ZXh0LTl4bCB0ZXh0LXRyYW5zcGFyZW50XCIgbmFtZT1cImNsb3VkLXVwbG9hZFwiPjwvaW9uLWljb24+XHJcbiAgPC9kaXY+XHJcbjwvZGl2PiJdfQ==
@@ -1,34 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { RouterLinkWithHref } from '@angular/router';
3
- import { IonicModule } from '@ionic/angular';
4
- import { CommonModule } from '@angular/common';
5
- import { AuthService } from '../../../services/auth.service';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "../../../services/auth.service";
8
- import * as i2 from "@angular/common";
9
- import * as i3 from "@ionic/angular";
10
- export class DefaultDrawerEndComponent {
11
- constructor(authService) {
12
- this.authService = authService;
13
- this.colapsed = false;
14
- }
15
- ngOnInit() {
16
- this.authService.LoadToken().then((res) => {
17
- this.Token = res;
18
- });
19
- }
20
- Loggout() { this.authService.Loggout(); }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DefaultDrawerEndComponent, deps: [{ token: i1.AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DefaultDrawerEndComponent, isStandalone: true, selector: "default-drawer-end", inputs: { colapsed: "colapsed" }, ngImport: i0, template: "<div class=\"w-full default-transition flex\" [ngClass]=\"{'!w-16': colapsed}\">\r\n <div class=\"w-10 shrink-0 aspect-square rounded-2xl flex items-center justify-center default-transition\" style=\"background-color: var(--ion-color-primary);\">\r\n <span class=\"uppercase text-white\">{{Token ? Token.Nome[0] : ''}}</span>\r\n </div>\r\n <div class=\"grow min-w-10 p-2 justify-center items-center whitespace-nowrap text-ellipsis overflow-hidden block default-transition\" [ngClass]=\"{'opacity-0 w-0': colapsed}\">\r\n <span>{{Token ? Token.Nome : ''}}</span>\r\n </div>\r\n\r\n <ion-button (click)=\"Loggout()\" class=\"size-10 shrink-0\" size=\"small\" color=\"danger\">\r\n <ion-icon slot=\"icon-only\" name=\"exit-outline\"></ion-icon> \r\n </ion-button>\r\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: IonicModule }, { kind: "component", type: i3.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i3.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DefaultDrawerEndComponent, decorators: [{
25
- type: Component,
26
- args: [{ standalone: true, imports: [
27
- CommonModule,
28
- IonicModule,
29
- RouterLinkWithHref,
30
- ], selector: 'default-drawer-end', template: "<div class=\"w-full default-transition flex\" [ngClass]=\"{'!w-16': colapsed}\">\r\n <div class=\"w-10 shrink-0 aspect-square rounded-2xl flex items-center justify-center default-transition\" style=\"background-color: var(--ion-color-primary);\">\r\n <span class=\"uppercase text-white\">{{Token ? Token.Nome[0] : ''}}</span>\r\n </div>\r\n <div class=\"grow min-w-10 p-2 justify-center items-center whitespace-nowrap text-ellipsis overflow-hidden block default-transition\" [ngClass]=\"{'opacity-0 w-0': colapsed}\">\r\n <span>{{Token ? Token.Nome : ''}}</span>\r\n </div>\r\n\r\n <ion-button (click)=\"Loggout()\" class=\"size-10 shrink-0\" size=\"small\" color=\"danger\">\r\n <ion-icon slot=\"icon-only\" name=\"exit-outline\"></ion-icon> \r\n </ion-button>\r\n</div>" }]
31
- }], ctorParameters: () => [{ type: i1.AuthService }], propDecorators: { colapsed: [{
32
- type: Input
33
- }] } });
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1kcmF3ZXItZW5kLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9kcmF3ZXIvZGVmYXVsdC1kcmF3ZXItZW5kL2RlZmF1bHQ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IDxzcGFuPnt7VG9rZW4gPyBUb2tlbi5Ob21lIDogJyd9fTwvc3Bhbj5cclxuICA8L2Rpdj5cclxuXHJcbiAgPGlvbi1idXR0b24gKGNsaWNrKT1cIkxvZ2dvdXQoKVwiIGNsYXNzPVwic2l6ZS0xMCBzaHJpbmstMFwiIHNpemU9XCJzbWFsbFwiIGNvbG9yPVwiZGFuZ2VyXCI+XHJcbiAgICA8aW9uLWljb24gc2xvdD1cImljb24tb25seVwiIG5hbWU9XCJleGl0LW91dGxpbmVcIj48L2lvbi1pY29uPiBcclxuICA8L2lvbi1idXR0b24+XHJcbjwvZGl2PiJdfQ==
@@ -1,52 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, Input, QueryList, ViewChildren } from '@angular/core';
3
- import { IonAccordionGroup, IonicModule, NavController } from '@ionic/angular';
4
- import { Menu } from '.././menu';
5
- import { Router, RouterLinkWithHref } from '@angular/router';
6
- import { GenericService } from '../../../services/generic.service';
7
- import { TranslateModule } from '@ngx-translate/core';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@angular/router";
10
- import * as i2 from "@ionic/angular";
11
- import * as i3 from "../../../services/generic.service";
12
- import * as i4 from "@ngx-translate/core";
13
- export class DrawerGroupComponent {
14
- constructor(router, navController, genericService) {
15
- this.router = router;
16
- this.navController = navController;
17
- this.genericService = genericService;
18
- this.TranslationModule = {
19
- Permissao: 'Entities.Permissao.',
20
- PermissaoGrupo: 'Entities.PermissaoGrupo.'
21
- };
22
- }
23
- ngOnInit() { }
24
- HandleNav(item, event) {
25
- if (event.ctrlKey || event.metaKey) {
26
- window.open(window.origin + '/' + item.route, '_blank');
27
- event.preventDefault();
28
- return;
29
- }
30
- this.SetTitle(item);
31
- this.navController.navigateRoot('/' + item.route);
32
- }
33
- SetTitle(item) {
34
- this.genericService.SetTitle(item.title);
35
- }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerGroupComponent, deps: [{ token: i1.Router }, { token: i2.NavController }, { token: i3.GenericService }], target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DrawerGroupComponent, isStandalone: true, selector: "drawer-group", inputs: { MenuGroup: "MenuGroup", colapsed: "colapsed", useTranslation: "useTranslation" }, viewQueries: [{ propertyName: "lstIonAcordionGroup", predicate: IonAccordionGroup, descendants: true }], ngImport: i0, template: "<div class=\"size-full flex flex-col verflow-hidden\">\r\n <div class=\"w-full text-center\">\r\n <!-- <ion-item class=\"bg-inactive bg-active\" lines=\"none\" style=\"--border-radius: 1rem\">\r\n <ion-label class=\"text-center\">\r\n <ion-icon class=\"text-2xl\" [name]=\"MenuGroup.icon\"></ion-icon> <br>\r\n <ion-text class=\"text-lg\">\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + MenuGroup.id | translate) : MenuGroup.title}} \r\n </ion-text>\r\n </ion-label>\r\n </ion-item> -->\r\n <div class=\"gradient-background header flex flex-col gap-1 p-2 text-center items-center justify-center rounded-xl\">\r\n <ion-icon class=\"text-2xl\" [name]=\"MenuGroup.icon\"></ion-icon>\r\n <ion-text class=\"text-dark\">\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + MenuGroup.id | translate) : MenuGroup.title}} \r\n </ion-text>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col gap-2 w-full pt-2 mask-y overflow-y-auto\">\r\n @for (mGroup of MenuGroup.lstMenu; track $index) {\r\n <!-- Menu -->\r\n @if(mGroup.type == \"Menu\"){\r\n <div (click)=\"HandleNav(mGroup, $event)\" \r\n class=\"bg-inactive gradient-background menu\"\r\n [class.bg-active]=\"router.isActive('/' + mGroup.route, false)\"\r\n >\r\n <div class=\"content\">\r\n <ion-icon class=\"shrink-0\" [name]=\"mGroup.icon\"></ion-icon>\r\n <ion-label class=\"shrink\">\r\n {{useTranslation ? (TranslationModule.Permissao + mGroup.id | translate) : mGroup.title}} \r\n </ion-label>\r\n </div>\r\n </div>\r\n <!-- <ion-item \r\n class=\"bg-inactive shrink-0\" lines=\"none\" \r\n (click)=\"HandleNav(mGroup)\"\r\n [ngClass]=\"{'colapsed': colapsed, 'bg-active' : router.isActive('/' + mGroup.route, false)}\">\r\n <ion-icon slot=\"start\" [name]=\"mGroup.icon\"></ion-icon>\r\n <ion-label class=\"ion-text-nowrap\">\r\n {{useTranslation ? (TranslationModule.Permissao + mGroup.id | translate) : mGroup.title}} \r\n </ion-label>\r\n </ion-item> -->\r\n } \r\n @else if (mGroup.type == \"MenuGroup\") {\r\n <!-- MenuGroup -->\r\n <!-- <div class=\"w-full overflow-hidden shrink-0\">\r\n <ion-accordion-group class=\"ion-text-nowrap w-full\">\r\n <ion-accordion class=\"bg-transparent\" [value]=\"mGroup\">\r\n <ion-item slot=\"header\" color=\"light\" class=\"ion-text-nowrap bg-inactive\" style=\"--ion-color-base: var(--background) !important\">\r\n <ion-icon slot=\"start\" [name]=\"mGroup.icon\"></ion-icon>\r\n <ion-label>\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + mGroup.id | translate) : mGroup.title}}\r\n </ion-label>\r\n </ion-item>\r\n <div slot=\"content\">\r\n <div class=\"pl-8\">\r\n <div class=\"w-full border-l-2 border-solid rounded-bl-2xl grid gap-2 pl-2 py-2\" style=\"border-color: color-mix(in srgb, var(--ion-color-primary) 30%, transparent 70%)\">\r\n @for (mMenu of mGroup.lstMenu; track $index) {\r\n @if (mMenu.type == \"Menu\") {\r\n <ion-item \r\n class=\"bg-inactive\" lines=\"none\" \r\n (click)=\"HandleNav(mMenu)\"\r\n [ngClass]=\"{'colapsed': colapsed, 'bg-active' : router.isActive('/' + mMenu.route, false)}\">\r\n <ion-icon slot=\"start\" [name]=\"mMenu.icon\"></ion-icon>\r\n <ion-label class=\"ion-text-nowrap\">\r\n {{useTranslation ? (TranslationModule.Permissao + mMenu.id | translate) : mMenu.title}}\r\n </ion-label>\r\n </ion-item>\r\n }\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </ion-accordion>\r\n </ion-accordion-group>\r\n </div> -->\r\n }\r\n }\r\n </div>\r\n</div>", styles: [".menu{display:flex;flex-shrink:0;cursor:pointer;align-items:center;justify-content:flex-start;overflow:hidden;border-radius:.75rem;padding:.375rem;transition:--color-primary,--step-1-opacity,--step-2-opacity .2s ease-in-out;--inset: var(--color-primary) 0px 1.75px 2px 0px inset;box-shadow:var(--inset)}.menu .content{display:flex;align-items:center;justify-content:flex-start;gap:.5rem}.menu.bg-active:after{content:\"\";position:absolute;top:50%;right:0;width:.375rem;height:75%;transform:translateY(-50%);border-radius:inherit;background-color:color-mix(in srgb,var(--ion-color-primary) 70%,transparent);opacity:1!important;filter:drop-shadow(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0px 0px 3px)}.menu.bg-active:before{content:\"\";position:absolute;top:50%;right:-2.3rem;width:5rem;height:7rem;transform:translateY(-50%);border-radius:inherit;opacity:.5!important;background:radial-gradient(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0%,transparent 66%)}.menu.bg-inactive{--color-primary: var(--ion-color-step-250);--step-1-opacity: .5;--step-2-opacity: .4;--step-3-opacity: .8;position:relative}.menu.bg-inactive:after{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}.menu.bg-inactive:before{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}.header{--color-primary: var(--ion-color-primary) !important;--step-1-opacity: .7 !important;--step-2-opacity: .3 !important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: IonicModule }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerGroupComponent, decorators: [{
40
- type: Component,
41
- args: [{ standalone: true, imports: [CommonModule, IonicModule, RouterLinkWithHref, TranslateModule], selector: 'drawer-group', template: "<div class=\"size-full flex flex-col verflow-hidden\">\r\n <div class=\"w-full text-center\">\r\n <!-- <ion-item class=\"bg-inactive bg-active\" lines=\"none\" style=\"--border-radius: 1rem\">\r\n <ion-label class=\"text-center\">\r\n <ion-icon class=\"text-2xl\" [name]=\"MenuGroup.icon\"></ion-icon> <br>\r\n <ion-text class=\"text-lg\">\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + MenuGroup.id | translate) : MenuGroup.title}} \r\n </ion-text>\r\n </ion-label>\r\n </ion-item> -->\r\n <div class=\"gradient-background header flex flex-col gap-1 p-2 text-center items-center justify-center rounded-xl\">\r\n <ion-icon class=\"text-2xl\" [name]=\"MenuGroup.icon\"></ion-icon>\r\n <ion-text class=\"text-dark\">\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + MenuGroup.id | translate) : MenuGroup.title}} \r\n </ion-text>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col gap-2 w-full pt-2 mask-y overflow-y-auto\">\r\n @for (mGroup of MenuGroup.lstMenu; track $index) {\r\n <!-- Menu -->\r\n @if(mGroup.type == \"Menu\"){\r\n <div (click)=\"HandleNav(mGroup, $event)\" \r\n class=\"bg-inactive gradient-background menu\"\r\n [class.bg-active]=\"router.isActive('/' + mGroup.route, false)\"\r\n >\r\n <div class=\"content\">\r\n <ion-icon class=\"shrink-0\" [name]=\"mGroup.icon\"></ion-icon>\r\n <ion-label class=\"shrink\">\r\n {{useTranslation ? (TranslationModule.Permissao + mGroup.id | translate) : mGroup.title}} \r\n </ion-label>\r\n </div>\r\n </div>\r\n <!-- <ion-item \r\n class=\"bg-inactive shrink-0\" lines=\"none\" \r\n (click)=\"HandleNav(mGroup)\"\r\n [ngClass]=\"{'colapsed': colapsed, 'bg-active' : router.isActive('/' + mGroup.route, false)}\">\r\n <ion-icon slot=\"start\" [name]=\"mGroup.icon\"></ion-icon>\r\n <ion-label class=\"ion-text-nowrap\">\r\n {{useTranslation ? (TranslationModule.Permissao + mGroup.id | translate) : mGroup.title}} \r\n </ion-label>\r\n </ion-item> -->\r\n } \r\n @else if (mGroup.type == \"MenuGroup\") {\r\n <!-- MenuGroup -->\r\n <!-- <div class=\"w-full overflow-hidden shrink-0\">\r\n <ion-accordion-group class=\"ion-text-nowrap w-full\">\r\n <ion-accordion class=\"bg-transparent\" [value]=\"mGroup\">\r\n <ion-item slot=\"header\" color=\"light\" class=\"ion-text-nowrap bg-inactive\" style=\"--ion-color-base: var(--background) !important\">\r\n <ion-icon slot=\"start\" [name]=\"mGroup.icon\"></ion-icon>\r\n <ion-label>\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + mGroup.id | translate) : mGroup.title}}\r\n </ion-label>\r\n </ion-item>\r\n <div slot=\"content\">\r\n <div class=\"pl-8\">\r\n <div class=\"w-full border-l-2 border-solid rounded-bl-2xl grid gap-2 pl-2 py-2\" style=\"border-color: color-mix(in srgb, var(--ion-color-primary) 30%, transparent 70%)\">\r\n @for (mMenu of mGroup.lstMenu; track $index) {\r\n @if (mMenu.type == \"Menu\") {\r\n <ion-item \r\n class=\"bg-inactive\" lines=\"none\" \r\n (click)=\"HandleNav(mMenu)\"\r\n [ngClass]=\"{'colapsed': colapsed, 'bg-active' : router.isActive('/' + mMenu.route, false)}\">\r\n <ion-icon slot=\"start\" [name]=\"mMenu.icon\"></ion-icon>\r\n <ion-label class=\"ion-text-nowrap\">\r\n {{useTranslation ? (TranslationModule.Permissao + mMenu.id | translate) : mMenu.title}}\r\n </ion-label>\r\n </ion-item>\r\n }\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </ion-accordion>\r\n </ion-accordion-group>\r\n </div> -->\r\n }\r\n }\r\n </div>\r\n</div>", styles: [".menu{display:flex;flex-shrink:0;cursor:pointer;align-items:center;justify-content:flex-start;overflow:hidden;border-radius:.75rem;padding:.375rem;transition:--color-primary,--step-1-opacity,--step-2-opacity .2s ease-in-out;--inset: var(--color-primary) 0px 1.75px 2px 0px inset;box-shadow:var(--inset)}.menu .content{display:flex;align-items:center;justify-content:flex-start;gap:.5rem}.menu.bg-active:after{content:\"\";position:absolute;top:50%;right:0;width:.375rem;height:75%;transform:translateY(-50%);border-radius:inherit;background-color:color-mix(in srgb,var(--ion-color-primary) 70%,transparent);opacity:1!important;filter:drop-shadow(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0px 0px 3px)}.menu.bg-active:before{content:\"\";position:absolute;top:50%;right:-2.3rem;width:5rem;height:7rem;transform:translateY(-50%);border-radius:inherit;opacity:.5!important;background:radial-gradient(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0%,transparent 66%)}.menu.bg-inactive{--color-primary: var(--ion-color-step-250);--step-1-opacity: .5;--step-2-opacity: .4;--step-3-opacity: .8;position:relative}.menu.bg-inactive:after{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}.menu.bg-inactive:before{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}.header{--color-primary: var(--ion-color-primary) !important;--step-1-opacity: .7 !important;--step-2-opacity: .3 !important}\n"] }]
42
- }], ctorParameters: () => [{ type: i1.Router }, { type: i2.NavController }, { type: i3.GenericService }], propDecorators: { MenuGroup: [{
43
- type: Input
44
- }], colapsed: [{
45
- type: Input
46
- }], useTranslation: [{
47
- type: Input
48
- }], lstIonAcordionGroup: [{
49
- type: ViewChildren,
50
- args: [IonAccordionGroup]
51
- }] } });
52
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhd2VyLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3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29sb3I6IGNvbG9yLW1peChpbiBzcmdiLCB2YXIoLS1pb24tY29sb3ItcHJpbWFyeSkgMzAlLCB0cmFuc3BhcmVudCA3MCUpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgQGZvciAobU1lbnUgb2YgbUdyb3VwLmxzdE1lbnU7IHRyYWNrICRpbmRleCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgQGlmIChtTWVudS50eXBlID09IFwiTWVudVwiKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxpb24taXRlbSBcclxuICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImJnLWluYWN0aXZlXCIgbGluZXM9XCJub25lXCIgXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIkhhbmRsZU5hdihtTWVudSlcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cInsnY29sYXBzZWQnOiBjb2xhcHNlZCwgJ2JnLWFjdGl2ZScgOiByb3V0ZXIuaXNBY3RpdmUoJy8nICsgbU1lbnUucm91dGUsIGZhbHNlKX1cIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8aW9uLWljb24gc2xvdD1cInN0YXJ0XCIgW25hbWVdPVwibU1lbnUuaWNvblwiPjwvaW9uLWljb24+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPGlvbi1sYWJlbCBjbGFzcz1cImlvbi10ZXh0LW5vd3JhcFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge3t1c2VUcmFuc2xhdGlvbiA/IChUcmFuc2xhdGlvbk1vZHVsZS5QZXJtaXNzYW8gKyBtTWVudS5pZCB8IHRyYW5zbGF0ZSkgOiBtTWVudS50aXRsZX19XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9pb24tbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvaW9uLWl0ZW0+XHJcbiAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8L2lvbi1hY2NvcmRpb24+XHJcbiAgICAgICAgICA8L2lvbi1hY2NvcmRpb24tZ3JvdXA+XHJcbiAgICAgICAgPC9kaXY+IC0tPlxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgPC9kaXY+XHJcbjwvZGl2PiJdfQ==
@@ -1,156 +0,0 @@
1
- import { Component, computed, effect, EventEmitter, input, Input, Output, signal } from '@angular/core';
2
- import { TranslateModule } from '@ngx-translate/core';
3
- import { CommonModule } from '@angular/common';
4
- import { IonicModule, NavController } from '@ionic/angular';
5
- import { Menu } from './menu';
6
- import { DrawerGroupComponent } from './drawer-group/drawer-group.component';
7
- import { LoadingComponent } from '../../components/loading/loading.component';
8
- import { SIonPopoverModule } from '../popover/sion-popover.module';
9
- import { Router, RouterLinkWithHref } from '@angular/router';
10
- import { GenericService } from '../../services/generic.service';
11
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "@angular/router";
14
- import * as i2 from "@ionic/angular";
15
- import * as i3 from "../../services/generic.service";
16
- import * as i4 from "@angular/common";
17
- import * as i5 from "@ngx-translate/core";
18
- import * as i6 from "../popover/sion-popover/sion-popover.component";
19
- import * as i7 from "@angular/forms";
20
- export class DrawerComponent {
21
- constructor(router, navController, genericService) {
22
- this.router = router;
23
- this.navController = navController;
24
- this.genericService = genericService;
25
- this.TranslationModule = {
26
- Permissao: 'Entities.Permissao.',
27
- PermissaoGrupo: 'Entities.PermissaoGrupo.',
28
- SemResultado: 'Messages.SemResultado'
29
- };
30
- this.loading = true;
31
- this.lstMenu = input();
32
- this.lstFlattenMenu = computed(() => { return FlattenMenus(this.lstMenu()); });
33
- this.colapsed = false;
34
- this.colapsedChange = new EventEmitter;
35
- this.useTranslation = false;
36
- this.CurrentGroupActive = null;
37
- this._enterColapsed = false;
38
- this.search = signal("");
39
- this.lstMenuFiltered = computed(() => {
40
- const str = this.search().toLowerCase();
41
- const lstS1 = this.lstMenu().map(p => {
42
- return new Menu(p.type, p.title, p.icon, p.lstMenu.filter(x => x.title.toLowerCase().includes(str)), p.route);
43
- });
44
- const lstS2 = lstS1.filter(p => p.lstMenu.length > 0);
45
- return lstS2;
46
- });
47
- effect(() => {
48
- //Handle Menu Title
49
- const lstFlat = this.lstFlattenMenu();
50
- const currentMenu = lstFlat.find(p => window.location.pathname.includes('/' + p.route));
51
- const group = FindMenuParent(this.lstMenu(), currentMenu);
52
- if (group) {
53
- this.CurrentGroupActive = group;
54
- }
55
- else {
56
- this.CurrentGroupActive = this.lstMenu()[0];
57
- }
58
- });
59
- }
60
- ToggleCollapsed() {
61
- this.colapsedChange.emit(!this._enterColapsed);
62
- this._enterColapsed = false;
63
- }
64
- onMouseEnter() {
65
- if (this.colapsed) {
66
- this._enterColapsed = true;
67
- this.colapsedChange.emit(false);
68
- }
69
- }
70
- onMouseLeave() {
71
- if (this._enterColapsed) {
72
- this._enterColapsed = false;
73
- this.colapsedChange.emit(true);
74
- }
75
- }
76
- HandleNav(item, event) {
77
- if (event.ctrlKey || event.metaKey) {
78
- window.open(window.origin + '/' + item.route, '_blank');
79
- event.preventDefault();
80
- return;
81
- }
82
- this.SetTitle(item);
83
- const vGroup = FindMenuParent(this.lstMenu(), item);
84
- if (vGroup) {
85
- this.CurrentGroupActive = vGroup;
86
- }
87
- this.navController.navigateRoot('/' + item.route);
88
- }
89
- SetTitle(item) {
90
- this.genericService.SetTitle(item.title);
91
- }
92
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerComponent, deps: [{ token: i1.Router }, { token: i2.NavController }, { token: i3.GenericService }], target: i0.ɵɵFactoryTarget.Component }); }
93
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DrawerComponent, isStandalone: true, selector: "drawer", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: false, isRequired: false, transformFunction: null }, lstMenu: { classPropertyName: "lstMenu", publicName: "lstMenu", isSignal: true, isRequired: false, transformFunction: null }, colapsed: { classPropertyName: "colapsed", publicName: "colapsed", isSignal: false, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: false, isRequired: false, transformFunction: null }, useTranslation: { classPropertyName: "useTranslation", publicName: "useTranslation", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { colapsedChange: "colapsedChange" }, ngImport: i0, template: "<div class=\"absolute left-0 top-0 h-full bg-light size-full flex flex-col p-2 !pr-0 w-[19rem] overflow-hidden\" (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\">\r\n <!-- [ Header ] -->\r\n <div class=\"shrink-0 w-full flex justify-between items-center\">\r\n <div #anchor\r\n (click)=\"ToggleCollapsed()\" \r\n class=\"toggle size-10 aspect-square shrink-0 rounded-xl bg-inactive gradient-background menu\"\r\n >\r\n <ion-icon name=\"menu\" slot=\"icon-only\"></ion-icon>\r\n </div>\r\n <!-- <ion-button class=\"size-10 shrink-0 aspect-square\" size=\"small\" color=\"medium\" (click)=\"ToggleCollapsed()\">\r\n <ion-icon name=\"menu\" slot=\"icon-only\"></ion-icon>\r\n </ion-button> -->\r\n\r\n <div class=\"size-full shrink flex pl-2 \">\r\n <div class=\"size-full max-h-10 flex flex-wrap overflow-hidden\">\r\n @if (!ref.children.length) {\r\n <ion-text class=\"size-full flex items-center justify-center default-transition z-0\" [ngClass]=\"{'opacity-0 -translate-x-1/2 pointer-events-none': colapsed }\"> \r\n {{title}}\r\n </ion-text>\r\n }\r\n <div #ref class=\"size-full flex items-center justify-center shrink-0\">\r\n <ng-content select=\"[slot=logo]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- [ Content ] -->\r\n <div class=\"size-full shrink flex flex-col relative overflow-hidden\">\r\n <loading [type]=\"3\" [loading]=\"loading\" text=\"\"></loading>\r\n <div class=\"size-full shrink flex gap-2\">\r\n <div class=\"h-full w-12 pr-2 py-2 mask-y shrink-0 flex flex-col gap-2 overflow-y-auto overflow-x-hidden border-dashed border-r border-r-medium/30\">\r\n <div #searchAnchor (click)=\"modal.present()\" class=\"search-button size-10 aspect-square shrink-0 rounded-xl bg-inactive gradient-background menu\">\r\n <ion-icon name=\"search\" slot=\"icon-only\"></ion-icon>\r\n </div>\r\n\r\n @for (item of lstMenu(); track $index) {\r\n <div>\r\n <div\r\n [class.bg-active]=\"CurrentGroupActive == item\"\r\n #anchor (mouseenter)=\"popover.present($event)\" \r\n (mouseleave)=\"popover.dismiss()\" \r\n (click)=\"CurrentGroupActive = item\" \r\n class=\"w-10 aspect-square shrink-0 rounded-xl bg-inactive gradient-background menu\"\r\n >\r\n <ion-icon [name]=\"item.icon\"></ion-icon>\r\n </div>\r\n <sion-popover #popover [anchor]=\"anchor\" [flip]=\"false\" placement=\"right\" fill=\"solid\">\r\n <div class=\"p-1\">\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + item.id | translate) : item.title}}\r\n </div>\r\n </sion-popover>\r\n </div>\r\n }\r\n\r\n </div>\r\n <div class=\"size-full shrink relative\">\r\n @for (mGroup of lstMenu(); track $index) {\r\n <div class=\"absolute top-0 left-0 size-full py-2 default-transition opacity-0 translate-x-full z-0 overflow-hidden\" [ngClass]=\"{'opacity-100 !translate-x-0': CurrentGroupActive == mGroup}\">\r\n <drawer-group [MenuGroup]=\"mGroup\" [useTranslation]=\"useTranslation\" [colapsed]=\"colapsed\"></drawer-group>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- [ End ] -->\r\n <div class=\"shrink-0 w-full\">\r\n <ng-content select=\"[slot=drawer]\"></ng-content>\r\n </div>\r\n</div>\r\n\r\n<ion-modal #modal [keepContentsMounted]=\"true\" (onWillDismiss)=\"search.set('')\">\r\n <ng-template>\r\n <ion-content>\r\n <ion-card class=\"size-full m-0 overflow-hidden\">\r\n <ion-card-content class=\"size-full flex flex-col overflow-hidden p-0\">\r\n <div class=\"shrink-0 w-full flex items-center justify-center\">\r\n <ion-searchbar class=\"p-0 !pl-2 !py-2\" [ngModel]=\"this.search()\" (ngModelChange)=\"this.search.set($event)\" [debounce]=\"200\"></ion-searchbar>\r\n <ion-button size=\"small\" fill=\"clear\" (click)=\"modal.dismiss()\">\r\n <ion-icon name=\"close\"></ion-icon>\r\n </ion-button>\r\n </div>\r\n\r\n <div class=\"size-full flex flex-col shrink gap-2 overflow-y-auto p-2 mask-y\">\r\n @for (vGroup of lstMenuFiltered(); track $index) {\r\n <ion-card class=\"m-0 shrink-0\">\r\n <ion-card-content class=\"p-0 gradient-background bg-inactive flex flex-col\">\r\n <div class=\"w-10 flex items-center !justify-start gap-2 text-dark shrink-0 p-2\">\r\n <ion-icon [name]=\"vGroup.icon\"></ion-icon>\r\n <ion-text>\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + vGroup.id | translate) : vGroup.title}} \r\n </ion-text>\r\n </div>\r\n @for (vMenu of vGroup.lstMenu; track $index) {\r\n <div \r\n (click)=\"HandleNav(vMenu, $event); modal.dismiss()\"\r\n [class.bg-active]=\"router.isActive('/' + vMenu.route, false)\"\r\n class=\"w-full flex items-center !justify-start gap-2 text-dark shrink-0 !pl-8 p-1.5 border-t border-t-medium/30 menu-search\">\r\n <ion-icon [name]=\"vMenu.icon\"></ion-icon>\r\n <ion-text>\r\n {{useTranslation ? (TranslationModule.Permissao + vMenu.id | translate) : vMenu.title}} \r\n </ion-text>\r\n </div>\r\n }\r\n </ion-card-content>\r\n </ion-card>\r\n }\r\n\r\n @if (lstMenuFiltered().length == 0) {\r\n <ion-text class=\"text-center text-medium\">\r\n {{useTranslation ? (TranslationModule.SemResultado | translate) : 'Sem resultados encontrados'}}\r\n </ion-text>\r\n }\r\n </div>\r\n </ion-card-content>\r\n </ion-card>\r\n </ion-content>\r\n </ng-template>\r\n</ion-modal>", styles: [".bg-active{--color-primary: var(--ion-color-primary) !important;--step-1-opacity: .7 !important;--step-2-opacity: .3 !important}.bg-inactive{--color-primary: var(--ion-color-step-250);--step-1-opacity: .5;--step-2-opacity: .4;--step-3-opacity: .8}.menu{display:flex;cursor:pointer;align-items:center;justify-content:center;gap:.5rem;border-radius:.75rem;padding:.5rem;transition:--color-primary,--step-1-opacity,--step-2-opacity .2s ease-in-out;--inset: var(--color-primary) 0px 1.75px 2px 0px inset;box-shadow:var(--inset)}.toggle:hover{--color-primary: var(--ion-color-step-500) !important;transition:--color-primary .2s ease-in-out}.search-button{--inset2: var(--ion-color-medium) 0px 0px 5px -1px inset;box-shadow:var(--inset2)}.menu-search{position:relative;cursor:pointer;overflow:hidden}.menu-search.bg-active:after{content:\"\";position:absolute;top:50%;right:0;width:.375rem;height:75%;transform:translateY(-50%);border-radius:1rem;background-color:color-mix(in srgb,var(--ion-color-primary) 70%,transparent);opacity:1!important;filter:drop-shadow(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0px 0px 3px)}.menu-search.bg-active:before{content:\"\";position:absolute;top:50%;right:-2.3rem;width:5rem;height:7rem;transform:translateY(-50%);border-radius:1rem;opacity:.5!important;background:radial-gradient(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0%,transparent 66%)}.menu-search.bg-inactive{--color-primary: var(--ion-color-step-250);--step-1-opacity: .5;--step-2-opacity: .4;--step-3-opacity: .8;position:relative}.menu-search.bg-inactive:after{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}.menu-search.bg-inactive:before{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: IonicModule }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: i2.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }, { kind: "component", type: i2.IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonSearchbar, selector: "ion-searchbar", inputs: ["animated", "autocapitalize", "autocomplete", "autocorrect", "cancelButtonIcon", "cancelButtonText", "clearIcon", "color", "debounce", "disabled", "enterkeyhint", "inputmode", "maxlength", "minlength", "mode", "name", "placeholder", "searchIcon", "showCancelButton", "showClearButton", "spellcheck", "type", "value"] }, { kind: "component", type: i2.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "component", type: i2.IonModal, selector: "ion-modal" }, { kind: "directive", type: i2.TextValueAccessor, selector: "ion-input:not([type=number]),ion-input-otp[type=text],ion-textarea,ion-searchbar" }, { kind: "component", type: LoadingComponent, selector: "loading", inputs: ["text", "type", "loading"] }, { kind: "component", type: DrawerGroupComponent, selector: "drawer-group", inputs: ["MenuGroup", "colapsed", "useTranslation"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: SIonPopoverModule }, { kind: "component", type: i6.SIonPopoverComponent, selector: "sion-popover", inputs: ["fill", "arrow", "flip", "placement", "height", "width", "anchor"], outputs: ["onWillPresent", "onDidPresent", "onWillDismiss", "onDidDismiss"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
94
- }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerComponent, decorators: [{
96
- type: Component,
97
- args: [{ standalone: true, imports: [
98
- CommonModule,
99
- IonicModule,
100
- LoadingComponent,
101
- DrawerGroupComponent,
102
- TranslateModule,
103
- SIonPopoverModule,
104
- RouterLinkWithHref,
105
- ReactiveFormsModule,
106
- FormsModule
107
- ], selector: 'drawer', template: "<div class=\"absolute left-0 top-0 h-full bg-light size-full flex flex-col p-2 !pr-0 w-[19rem] overflow-hidden\" (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\">\r\n <!-- [ Header ] -->\r\n <div class=\"shrink-0 w-full flex justify-between items-center\">\r\n <div #anchor\r\n (click)=\"ToggleCollapsed()\" \r\n class=\"toggle size-10 aspect-square shrink-0 rounded-xl bg-inactive gradient-background menu\"\r\n >\r\n <ion-icon name=\"menu\" slot=\"icon-only\"></ion-icon>\r\n </div>\r\n <!-- <ion-button class=\"size-10 shrink-0 aspect-square\" size=\"small\" color=\"medium\" (click)=\"ToggleCollapsed()\">\r\n <ion-icon name=\"menu\" slot=\"icon-only\"></ion-icon>\r\n </ion-button> -->\r\n\r\n <div class=\"size-full shrink flex pl-2 \">\r\n <div class=\"size-full max-h-10 flex flex-wrap overflow-hidden\">\r\n @if (!ref.children.length) {\r\n <ion-text class=\"size-full flex items-center justify-center default-transition z-0\" [ngClass]=\"{'opacity-0 -translate-x-1/2 pointer-events-none': colapsed }\"> \r\n {{title}}\r\n </ion-text>\r\n }\r\n <div #ref class=\"size-full flex items-center justify-center shrink-0\">\r\n <ng-content select=\"[slot=logo]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- [ Content ] -->\r\n <div class=\"size-full shrink flex flex-col relative overflow-hidden\">\r\n <loading [type]=\"3\" [loading]=\"loading\" text=\"\"></loading>\r\n <div class=\"size-full shrink flex gap-2\">\r\n <div class=\"h-full w-12 pr-2 py-2 mask-y shrink-0 flex flex-col gap-2 overflow-y-auto overflow-x-hidden border-dashed border-r border-r-medium/30\">\r\n <div #searchAnchor (click)=\"modal.present()\" class=\"search-button size-10 aspect-square shrink-0 rounded-xl bg-inactive gradient-background menu\">\r\n <ion-icon name=\"search\" slot=\"icon-only\"></ion-icon>\r\n </div>\r\n\r\n @for (item of lstMenu(); track $index) {\r\n <div>\r\n <div\r\n [class.bg-active]=\"CurrentGroupActive == item\"\r\n #anchor (mouseenter)=\"popover.present($event)\" \r\n (mouseleave)=\"popover.dismiss()\" \r\n (click)=\"CurrentGroupActive = item\" \r\n class=\"w-10 aspect-square shrink-0 rounded-xl bg-inactive gradient-background menu\"\r\n >\r\n <ion-icon [name]=\"item.icon\"></ion-icon>\r\n </div>\r\n <sion-popover #popover [anchor]=\"anchor\" [flip]=\"false\" placement=\"right\" fill=\"solid\">\r\n <div class=\"p-1\">\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + item.id | translate) : item.title}}\r\n </div>\r\n </sion-popover>\r\n </div>\r\n }\r\n\r\n </div>\r\n <div class=\"size-full shrink relative\">\r\n @for (mGroup of lstMenu(); track $index) {\r\n <div class=\"absolute top-0 left-0 size-full py-2 default-transition opacity-0 translate-x-full z-0 overflow-hidden\" [ngClass]=\"{'opacity-100 !translate-x-0': CurrentGroupActive == mGroup}\">\r\n <drawer-group [MenuGroup]=\"mGroup\" [useTranslation]=\"useTranslation\" [colapsed]=\"colapsed\"></drawer-group>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- [ End ] -->\r\n <div class=\"shrink-0 w-full\">\r\n <ng-content select=\"[slot=drawer]\"></ng-content>\r\n </div>\r\n</div>\r\n\r\n<ion-modal #modal [keepContentsMounted]=\"true\" (onWillDismiss)=\"search.set('')\">\r\n <ng-template>\r\n <ion-content>\r\n <ion-card class=\"size-full m-0 overflow-hidden\">\r\n <ion-card-content class=\"size-full flex flex-col overflow-hidden p-0\">\r\n <div class=\"shrink-0 w-full flex items-center justify-center\">\r\n <ion-searchbar class=\"p-0 !pl-2 !py-2\" [ngModel]=\"this.search()\" (ngModelChange)=\"this.search.set($event)\" [debounce]=\"200\"></ion-searchbar>\r\n <ion-button size=\"small\" fill=\"clear\" (click)=\"modal.dismiss()\">\r\n <ion-icon name=\"close\"></ion-icon>\r\n </ion-button>\r\n </div>\r\n\r\n <div class=\"size-full flex flex-col shrink gap-2 overflow-y-auto p-2 mask-y\">\r\n @for (vGroup of lstMenuFiltered(); track $index) {\r\n <ion-card class=\"m-0 shrink-0\">\r\n <ion-card-content class=\"p-0 gradient-background bg-inactive flex flex-col\">\r\n <div class=\"w-10 flex items-center !justify-start gap-2 text-dark shrink-0 p-2\">\r\n <ion-icon [name]=\"vGroup.icon\"></ion-icon>\r\n <ion-text>\r\n {{useTranslation ? (TranslationModule.PermissaoGrupo + vGroup.id | translate) : vGroup.title}} \r\n </ion-text>\r\n </div>\r\n @for (vMenu of vGroup.lstMenu; track $index) {\r\n <div \r\n (click)=\"HandleNav(vMenu, $event); modal.dismiss()\"\r\n [class.bg-active]=\"router.isActive('/' + vMenu.route, false)\"\r\n class=\"w-full flex items-center !justify-start gap-2 text-dark shrink-0 !pl-8 p-1.5 border-t border-t-medium/30 menu-search\">\r\n <ion-icon [name]=\"vMenu.icon\"></ion-icon>\r\n <ion-text>\r\n {{useTranslation ? (TranslationModule.Permissao + vMenu.id | translate) : vMenu.title}} \r\n </ion-text>\r\n </div>\r\n }\r\n </ion-card-content>\r\n </ion-card>\r\n }\r\n\r\n @if (lstMenuFiltered().length == 0) {\r\n <ion-text class=\"text-center text-medium\">\r\n {{useTranslation ? (TranslationModule.SemResultado | translate) : 'Sem resultados encontrados'}}\r\n </ion-text>\r\n }\r\n </div>\r\n </ion-card-content>\r\n </ion-card>\r\n </ion-content>\r\n </ng-template>\r\n</ion-modal>", styles: [".bg-active{--color-primary: var(--ion-color-primary) !important;--step-1-opacity: .7 !important;--step-2-opacity: .3 !important}.bg-inactive{--color-primary: var(--ion-color-step-250);--step-1-opacity: .5;--step-2-opacity: .4;--step-3-opacity: .8}.menu{display:flex;cursor:pointer;align-items:center;justify-content:center;gap:.5rem;border-radius:.75rem;padding:.5rem;transition:--color-primary,--step-1-opacity,--step-2-opacity .2s ease-in-out;--inset: var(--color-primary) 0px 1.75px 2px 0px inset;box-shadow:var(--inset)}.toggle:hover{--color-primary: var(--ion-color-step-500) !important;transition:--color-primary .2s ease-in-out}.search-button{--inset2: var(--ion-color-medium) 0px 0px 5px -1px inset;box-shadow:var(--inset2)}.menu-search{position:relative;cursor:pointer;overflow:hidden}.menu-search.bg-active:after{content:\"\";position:absolute;top:50%;right:0;width:.375rem;height:75%;transform:translateY(-50%);border-radius:1rem;background-color:color-mix(in srgb,var(--ion-color-primary) 70%,transparent);opacity:1!important;filter:drop-shadow(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0px 0px 3px)}.menu-search.bg-active:before{content:\"\";position:absolute;top:50%;right:-2.3rem;width:5rem;height:7rem;transform:translateY(-50%);border-radius:1rem;opacity:.5!important;background:radial-gradient(color-mix(in srgb,var(--ion-color-primary) 70%,transparent) 0%,transparent 66%)}.menu-search.bg-inactive{--color-primary: var(--ion-color-step-250);--step-1-opacity: .5;--step-2-opacity: .4;--step-3-opacity: .8;position:relative}.menu-search.bg-inactive:after{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}.menu-search.bg-inactive:before{content:\"\";opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}\n"] }]
108
- }], ctorParameters: () => [{ type: i1.Router }, { type: i2.NavController }, { type: i3.GenericService }], propDecorators: { loading: [{
109
- type: Input
110
- }], colapsed: [{
111
- type: Input
112
- }], colapsedChange: [{
113
- type: Output
114
- }], title: [{
115
- type: Input
116
- }], useTranslation: [{
117
- type: Input
118
- }] } });
119
- /**
120
- * Flattens a hierarchical Menu[] structure into a single array
121
- * containing all Menu items from the original array and all nested items
122
- * @param menus The array of Menu items to flatten
123
- * @returns A flattened array containing all Menu items
124
- */
125
- function FlattenMenus(menus) {
126
- const result = [];
127
- function addMenuItems(items) {
128
- for (const menu of items) {
129
- // Add current menu to result
130
- result.push(menu);
131
- // Process nested menus if they exist
132
- if (menu.lstMenu && menu.lstMenu.length > 0) {
133
- addMenuItems(menu.lstMenu);
134
- }
135
- }
136
- }
137
- addMenuItems(menus);
138
- return result;
139
- }
140
- function FindMenuParent(menus, targetMenu) {
141
- for (const menu of menus) {
142
- // Check if current menu has the target in its direct children
143
- if (menu.lstMenu && menu.lstMenu.some(m => m === targetMenu)) {
144
- return menu;
145
- }
146
- // Search deeper in the hierarchy
147
- if (menu.lstMenu && menu.lstMenu.length > 0) {
148
- const parent = FindMenuParent(menu.lstMenu, targetMenu);
149
- if (parent) {
150
- return parent;
151
- }
152
- }
153
- }
154
- return null;
155
- }
156
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhd2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9kcmF3ZXIvZHJhd2VyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9kcmF3ZXIvZHJhd2VyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBZSxNQUFNLEVBQUUsTUFBTSxFQUEwQixNQUFNLGVBQWUsQ0FBQztBQUM3SSxPQUFPLE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9kdWxlLlBlcm1pc3Nhb0dydXBvICsgdkdyb3VwLmlkIHwgdHJhbnNsYXRlKSA6IHZHcm91cC50aXRsZX19IFxyXG4gICAgICAgICAgICAgICAgICAgIDwvaW9uLXRleHQ+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICBAZm9yICh2TWVudSBvZiB2R3JvdXAubHN0TWVudTsgdHJhY2sgJGluZGV4KSB7XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBcclxuICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJIYW5kbGVOYXYodk1lbnUsICRldmVudCk7IG1vZGFsLmRpc21pc3MoKVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICBbY2xhc3MuYmctYWN0aXZlXT1cInJvdXRlci5pc0FjdGl2ZSgnLycgKyB2TWVudS5yb3V0ZSwgZmFsc2UpXCJcclxuICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwidy1mdWxsIGZsZXggaXRlbXMtY2VudGVyICFqdXN0aWZ5LXN0YXJ0IGdhcC0yIHRleHQtZGFyayBzaHJpbmstMCAhcGwtOCBwLTEuNSBib3JkZXItdCBib3JkZXItdC1tZWRpdW0vMzAgbWVudS1zZWFyY2hcIj5cclxuICAgICAgICAgICAgICAgICAgICAgIDxpb24taWNvbiBbbmFtZV09XCJ2TWVudS5pY29uXCI+PC9pb24taWNvbj5cclxuICAgICAgICAgICAgICAgICAgICAgIDxpb24tdGV4dD5cclxuICAgICAgICAgICAgICAgICAgICAgICAge3t1c2VUcmFuc2xhdGlvbiA/IChUcmFuc2xhdGlvbk1vZHVsZS5QZXJtaXNzYW8gKyB2TWVudS5pZCB8IHRyYW5zbGF0ZSkgOiB2TWVudS50aXRsZX19IFxyXG4gICAgICAgICAgICAgICAgICAgICAgPC9pb24tdGV4dD5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgPC9pb24tY2FyZC1jb250ZW50PlxyXG4gICAgICAgICAgICAgIDwvaW9uLWNhcmQ+XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIEBpZiAobHN0TWVudUZpbHRlcmVkKCkubGVuZ3RoID09IDApIHtcclxuICAgICAgICAgICAgICA8aW9uLXRleHQgY2xhc3M9XCJ0ZXh0LWNlbnRlciB0ZXh0LW1lZGl1bVwiPlxyXG4gICAgICAgICAgICAgICAge3t1c2VUcmFuc2xhdGlvbiA/IChUcmFuc2xhdGlvbk1vZHVsZS5TZW1SZXN1bHRhZG8gfCB0cmFuc2xhdGUpIDogJ1NlbSByZXN1bHRhZG9zIGVuY29udHJhZG9zJ319XHJcbiAgICAgICAgICAgICAgPC9pb24tdGV4dD5cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgPC9pb24tY2FyZC1jb250ZW50PlxyXG4gICAgICA8L2lvbi1jYXJkPlxyXG4gICAgPC9pb24tY29udGVudD5cclxuICA8L25nLXRlbXBsYXRlPlxyXG48L2lvbi1tb2RhbD4iXX0=
@@ -1,15 +0,0 @@
1
- export class Menu {
2
- constructor(type, title, icon, lstMenu = [], route = null) {
3
- this.type = type;
4
- this.title = title;
5
- this.route = route;
6
- if (icon) {
7
- this.icon = icon;
8
- }
9
- else {
10
- this.icon = "layers";
11
- }
12
- this.lstMenu = lstMenu;
13
- }
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9kcmF3ZXIvbWVudS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxNQUFNLE9BQU8sSUFBSTtJQU9mLFlBQVksSUFBMEIsRUFBRSxLQUFhLEVBQUUsSUFBb0IsRUFBRSxVQUFrQix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