@sapphire-ion/framework 0.30.0

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 (299) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/classes/comparison/comparison-operator.mjs +18 -0
  3. package/esm2022/lib/classes/comparison/comparison-value-type.mjs +25 -0
  4. package/esm2022/lib/classes/comparison/comparison.mjs +41 -0
  5. package/esm2022/lib/classes/comparison/properties/bool-property.mjs +15 -0
  6. package/esm2022/lib/classes/comparison/properties/date-property.mjs +27 -0
  7. package/esm2022/lib/classes/comparison/properties/datetime-property.mjs +27 -0
  8. package/esm2022/lib/classes/comparison/properties/decimal-property.mjs +27 -0
  9. package/esm2022/lib/classes/comparison/properties/enum-property.mjs +27 -0
  10. package/esm2022/lib/classes/comparison/properties/implicit-property.mjs +12 -0
  11. package/esm2022/lib/classes/comparison/properties/int-property.mjs +27 -0
  12. package/esm2022/lib/classes/comparison/properties/long-property.mjs +27 -0
  13. package/esm2022/lib/classes/comparison/properties/string-property.mjs +15 -0
  14. package/esm2022/lib/classes/comparison/properties/time-property.mjs +27 -0
  15. package/esm2022/lib/classes/credentials.mjs +2 -0
  16. package/esm2022/lib/classes/environment.mjs +32 -0
  17. package/esm2022/lib/classes/filters/view-filtros.mjs +18 -0
  18. package/esm2022/lib/classes/inputs/table-field-form-builder.mjs +10 -0
  19. package/esm2022/lib/classes/inputs/table-field.mjs +63 -0
  20. package/esm2022/lib/classes/page-option.mjs +2 -0
  21. package/esm2022/lib/classes/routes/default-routing-factory.mjs +23 -0
  22. package/esm2022/lib/classes/routes/id-preloader-configuration.mjs +22 -0
  23. package/esm2022/lib/classes/routes/route-data.mjs +9 -0
  24. package/esm2022/lib/components/carousel/carousel-image/carousel-image.component.mjs +18 -0
  25. package/esm2022/lib/components/carousel/carousel-item/carousel-item.component.mjs +15 -0
  26. package/esm2022/lib/components/carousel/carousel.component.mjs +79 -0
  27. package/esm2022/lib/components/carousel/carousel.module.mjs +31 -0
  28. package/esm2022/lib/components/carousel/i-carousel-item.component.mjs +16 -0
  29. package/esm2022/lib/components/content-block/content-block.component.mjs +27 -0
  30. package/esm2022/lib/components/default/default-list/abstract-list.mjs +49 -0
  31. package/esm2022/lib/components/default/default-list/default-list.component.mjs +94 -0
  32. package/esm2022/lib/components/default/default-list/header-list/header-list.component.mjs +98 -0
  33. package/esm2022/lib/components/default/default-list/list.mjs +110 -0
  34. package/esm2022/lib/components/default/default-pagination/default-pagination.component.mjs +123 -0
  35. package/esm2022/lib/components/default/default-table/default-table.component.mjs +206 -0
  36. package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +182 -0
  37. package/esm2022/lib/components/default/default-view/abstract-view.mjs +18 -0
  38. package/esm2022/lib/components/default/default-view/default-view.component.mjs +51 -0
  39. package/esm2022/lib/components/default/default-view/header-view/header-view.component.mjs +72 -0
  40. package/esm2022/lib/components/default/default-view/view.mjs +170 -0
  41. package/esm2022/lib/components/default/default.module.mjs +87 -0
  42. package/esm2022/lib/components/default-page/default.page.mjs +73 -0
  43. package/esm2022/lib/components/drag-drop-file/drag-drop-file.directive.mjs +60 -0
  44. package/esm2022/lib/components/drag-drop-file/drag-drop-file.module.mjs +31 -0
  45. package/esm2022/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.mjs +15 -0
  46. package/esm2022/lib/components/drawer/default-drawer-end/default-drawer-end.component.mjs +34 -0
  47. package/esm2022/lib/components/drawer/drawer-group/drawer-group.component.mjs +49 -0
  48. package/esm2022/lib/components/drawer/drawer.component.mjs +117 -0
  49. package/esm2022/lib/components/drawer/menu.mjs +15 -0
  50. package/esm2022/lib/components/filter/filter.component.mjs +124 -0
  51. package/esm2022/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.mjs +17 -0
  52. package/esm2022/lib/components/image/image.component.mjs +91 -0
  53. package/esm2022/lib/components/info-popover/info-popover.component.mjs +91 -0
  54. package/esm2022/lib/components/inputs/custom-input.mjs +77 -0
  55. package/esm2022/lib/components/inputs/custom-signal-input.mjs +74 -0
  56. package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +43 -0
  57. package/esm2022/lib/components/inputs/input-bool/input-bool.configuration.mjs +16 -0
  58. package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +487 -0
  59. package/esm2022/lib/components/inputs/input-configuration.mjs +2 -0
  60. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +93 -0
  61. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.mjs +6 -0
  62. package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +119 -0
  63. package/esm2022/lib/components/inputs/input-date/input-date.configuration.mjs +8 -0
  64. package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +269 -0
  65. package/esm2022/lib/components/inputs/input-decimal/input-decimal.configuration.mjs +45 -0
  66. package/esm2022/lib/components/inputs/input-default-configurations.mjs +14 -0
  67. package/esm2022/lib/components/inputs/input-file/download-button/download-button.component.mjs +91 -0
  68. package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +128 -0
  69. package/esm2022/lib/components/inputs/input-file/input-file.configuration.mjs +11 -0
  70. package/esm2022/lib/components/inputs/input-loading/input-loading.component.mjs +16 -0
  71. package/esm2022/lib/components/inputs/input-provider-factory.mjs +15 -0
  72. package/esm2022/lib/components/inputs/input-select/ISelect.mjs +11 -0
  73. package/esm2022/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.mjs +42 -0
  74. package/esm2022/lib/components/inputs/input-select/input-select-option/input-select-option.component.mjs +46 -0
  75. package/esm2022/lib/components/inputs/input-select/input-select-template.directive.mjs +16 -0
  76. package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +322 -0
  77. package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +164 -0
  78. package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +50 -0
  79. package/esm2022/lib/components/inputs/input-string/input-string.configuration.mjs +18 -0
  80. package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +47 -0
  81. package/esm2022/lib/components/inputs/input-type.mjs +18 -0
  82. package/esm2022/lib/components/inputs/input-validators.mjs +90 -0
  83. package/esm2022/lib/components/inputs/inputs.module.mjs +101 -0
  84. package/esm2022/lib/components/loading/loading.component.mjs +34 -0
  85. package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +52 -0
  86. package/esm2022/lib/components/login/login.component.mjs +93 -0
  87. package/esm2022/lib/components/main-content/main-content.component.mjs +62 -0
  88. package/esm2022/lib/components/stepper/step/step.component.mjs +43 -0
  89. package/esm2022/lib/components/stepper/stepper.component.mjs +36 -0
  90. package/esm2022/lib/components/stepper/stepper.module.mjs +25 -0
  91. package/esm2022/lib/components/tabs/tab/tab.component.mjs +41 -0
  92. package/esm2022/lib/components/tabs/tabs/tabs.component.mjs +56 -0
  93. package/esm2022/lib/components/tabs/tabs.module.mjs +22 -0
  94. package/esm2022/lib/components/text-tooltip/text-tooltip.component.mjs +51 -0
  95. package/esm2022/lib/components/tooltip/tooltip.component.mjs +21 -0
  96. package/esm2022/lib/core.module.mjs +29 -0
  97. package/esm2022/lib/directives/ng-var.directive.mjs +29 -0
  98. package/esm2022/lib/guards/auth.guard.mjs +26 -0
  99. package/esm2022/lib/guards/error.interceptor.mjs +106 -0
  100. package/esm2022/lib/guards/token.interceptor.mjs +25 -0
  101. package/esm2022/lib/index.mjs +172 -0
  102. package/esm2022/lib/pipes/secure.pipe.mjs +42 -0
  103. package/esm2022/lib/services/auth.service.mjs +149 -0
  104. package/esm2022/lib/services/environment.service.mjs +26 -0
  105. package/esm2022/lib/services/generics.service.mjs +84 -0
  106. package/esm2022/lib/services/route/route.cache.service.mjs +15 -0
  107. package/esm2022/lib/services/route/route.provider.service.mjs +42 -0
  108. package/esm2022/lib/services/usuario.service.mjs +49 -0
  109. package/esm2022/lib/services/utils.service.mjs +149 -0
  110. package/esm2022/lib/services/web/api-url-provider.service.mjs +29 -0
  111. package/esm2022/lib/services/web/http.ativo.service.mjs +55 -0
  112. package/esm2022/lib/services/web/http.service.mjs +175 -0
  113. package/esm2022/lib/services/web/storage.service.mjs +115 -0
  114. package/esm2022/public-api.mjs +5 -0
  115. package/esm2022/sapphire-ion-framework.mjs +5 -0
  116. package/fesm2022/sapphire-ion-framework.mjs +6080 -0
  117. package/fesm2022/sapphire-ion-framework.mjs.map +1 -0
  118. package/index.d.ts +5 -0
  119. package/lib/classes/comparison/comparison-operator.d.ts +9 -0
  120. package/lib/classes/comparison/comparison-value-type.d.ts +23 -0
  121. package/lib/classes/comparison/comparison.d.ts +25 -0
  122. package/lib/classes/comparison/properties/bool-property.d.ts +7 -0
  123. package/lib/classes/comparison/properties/date-property.d.ts +11 -0
  124. package/lib/classes/comparison/properties/datetime-property.d.ts +11 -0
  125. package/lib/classes/comparison/properties/decimal-property.d.ts +11 -0
  126. package/lib/classes/comparison/properties/enum-property.d.ts +11 -0
  127. package/lib/classes/comparison/properties/implicit-property.d.ts +6 -0
  128. package/lib/classes/comparison/properties/int-property.d.ts +11 -0
  129. package/lib/classes/comparison/properties/long-property.d.ts +11 -0
  130. package/lib/classes/comparison/properties/string-property.d.ts +7 -0
  131. package/lib/classes/comparison/properties/time-property.d.ts +11 -0
  132. package/lib/classes/credentials.d.ts +5 -0
  133. package/lib/classes/environment.d.ts +13 -0
  134. package/lib/classes/filters/view-filtros.d.ts +10 -0
  135. package/lib/classes/inputs/table-field-form-builder.d.ts +5 -0
  136. package/lib/classes/inputs/table-field.d.ts +19 -0
  137. package/lib/classes/page-option.d.ts +7 -0
  138. package/lib/classes/routes/default-routing-factory.d.ts +8 -0
  139. package/lib/classes/routes/id-preloader-configuration.d.ts +28 -0
  140. package/lib/classes/routes/route-data.d.ts +5 -0
  141. package/lib/components/carousel/carousel-image/carousel-image.component.d.ts +10 -0
  142. package/lib/components/carousel/carousel-item/carousel-item.component.d.ts +9 -0
  143. package/lib/components/carousel/carousel.component.d.ts +32 -0
  144. package/lib/components/carousel/carousel.module.d.ts +12 -0
  145. package/lib/components/carousel/i-carousel-item.component.d.ts +9 -0
  146. package/lib/components/content-block/content-block.component.d.ts +15 -0
  147. package/lib/components/default/default-list/abstract-list.d.ts +21 -0
  148. package/lib/components/default/default-list/default-list.component.d.ts +42 -0
  149. package/lib/components/default/default-list/header-list/header-list.component.d.ts +45 -0
  150. package/lib/components/default/default-list/list.d.ts +37 -0
  151. package/lib/components/default/default-pagination/default-pagination.component.d.ts +36 -0
  152. package/lib/components/default/default-table/default-table.component.d.ts +71 -0
  153. package/lib/components/default/default-table/th-filter/th-filter.component.d.ts +20 -0
  154. package/lib/components/default/default-view/abstract-view.d.ts +16 -0
  155. package/lib/components/default/default-view/default-view.component.d.ts +26 -0
  156. package/lib/components/default/default-view/header-view/header-view.component.d.ts +25 -0
  157. package/lib/components/default/default-view/view.d.ts +55 -0
  158. package/lib/components/default/default.module.d.ts +28 -0
  159. package/lib/components/default-page/default.page.d.ts +35 -0
  160. package/lib/components/drag-drop-file/drag-drop-file.directive.d.ts +14 -0
  161. package/lib/components/drag-drop-file/drag-drop-file.module.d.ts +10 -0
  162. package/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.d.ts +9 -0
  163. package/lib/components/drawer/default-drawer-end/default-drawer-end.component.d.ts +13 -0
  164. package/lib/components/drawer/drawer-group/drawer-group.component.d.ts +22 -0
  165. package/lib/components/drawer/drawer.component.d.ts +23 -0
  166. package/lib/components/drawer/menu.d.ts +9 -0
  167. package/lib/components/filter/filter.component.d.ts +29 -0
  168. package/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.d.ts +8 -0
  169. package/lib/components/image/image.component.d.ts +23 -0
  170. package/lib/components/info-popover/info-popover.component.d.ts +15 -0
  171. package/lib/components/inputs/custom-input.d.ts +36 -0
  172. package/lib/components/inputs/custom-signal-input.d.ts +38 -0
  173. package/lib/components/inputs/input-bool/input-bool.component.d.ts +19 -0
  174. package/lib/components/inputs/input-bool/input-bool.configuration.d.ts +17 -0
  175. package/lib/components/inputs/input-color/input-color.component.d.ts +80 -0
  176. package/lib/components/inputs/input-configuration.d.ts +8 -0
  177. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +24 -0
  178. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.d.ts +5 -0
  179. package/lib/components/inputs/input-date/input-date.component.d.ts +30 -0
  180. package/lib/components/inputs/input-date/input-date.configuration.d.ts +7 -0
  181. package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +41 -0
  182. package/lib/components/inputs/input-decimal/input-decimal.configuration.d.ts +25 -0
  183. package/lib/components/inputs/input-default-configurations.d.ts +13 -0
  184. package/lib/components/inputs/input-file/download-button/download-button.component.d.ts +36 -0
  185. package/lib/components/inputs/input-file/input-file.component.d.ts +39 -0
  186. package/lib/components/inputs/input-file/input-file.configuration.d.ts +11 -0
  187. package/lib/components/inputs/input-loading/input-loading.component.d.ts +7 -0
  188. package/lib/components/inputs/input-provider-factory.d.ts +4 -0
  189. package/lib/components/inputs/input-select/ISelect.d.ts +21 -0
  190. package/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.d.ts +18 -0
  191. package/lib/components/inputs/input-select/input-select-option/input-select-option.component.d.ts +24 -0
  192. package/lib/components/inputs/input-select/input-select-template.directive.d.ts +8 -0
  193. package/lib/components/inputs/input-select/input-select.component.d.ts +66 -0
  194. package/lib/components/inputs/input-select/input.select.configuration.d.ts +87 -0
  195. package/lib/components/inputs/input-string/input-string.component.d.ts +19 -0
  196. package/lib/components/inputs/input-string/input-string.configuration.d.ts +14 -0
  197. package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +18 -0
  198. package/lib/components/inputs/input-type.d.ts +16 -0
  199. package/lib/components/inputs/input-validators.d.ts +19 -0
  200. package/lib/components/inputs/inputs.module.d.ts +28 -0
  201. package/lib/components/loading/loading.component.d.ts +18 -0
  202. package/lib/components/login/login-admin/login-admin.component.d.ts +20 -0
  203. package/lib/components/login/login.component.d.ts +28 -0
  204. package/lib/components/main-content/main-content.component.d.ts +17 -0
  205. package/lib/components/stepper/step/step.component.d.ts +15 -0
  206. package/lib/components/stepper/stepper.component.d.ts +17 -0
  207. package/lib/components/stepper/stepper.module.d.ts +10 -0
  208. package/lib/components/tabs/tab/tab.component.d.ts +19 -0
  209. package/lib/components/tabs/tabs/tabs.component.d.ts +18 -0
  210. package/lib/components/tabs/tabs.module.d.ts +12 -0
  211. package/lib/components/text-tooltip/text-tooltip.component.d.ts +16 -0
  212. package/lib/components/tooltip/tooltip.component.d.ts +7 -0
  213. package/lib/core.module.d.ts +11 -0
  214. package/lib/directives/ng-var.directive.d.ts +12 -0
  215. package/lib/guards/auth.guard.d.ts +11 -0
  216. package/lib/guards/error.interceptor.d.ts +32 -0
  217. package/lib/guards/token.interceptor.d.ts +11 -0
  218. package/lib/index.d.ts +108 -0
  219. package/lib/pipes/secure.pipe.d.ts +15 -0
  220. package/lib/services/auth.service.d.ts +47 -0
  221. package/lib/services/environment.service.d.ts +10 -0
  222. package/lib/services/generics.service.d.ts +22 -0
  223. package/lib/services/route/route.cache.service.d.ts +7 -0
  224. package/lib/services/route/route.provider.service.d.ts +13 -0
  225. package/lib/services/usuario.service.d.ts +21 -0
  226. package/lib/services/utils.service.d.ts +36 -0
  227. package/lib/services/web/api-url-provider.service.d.ts +13 -0
  228. package/lib/services/web/http.ativo.service.d.ts +31 -0
  229. package/lib/services/web/http.service.d.ts +51 -0
  230. package/lib/services/web/storage.service.d.ts +25 -0
  231. package/package.json +41 -0
  232. package/public-api.d.ts +1 -0
  233. package/themes/compiled-styles.scss +2291 -0
  234. package/themes/components/_inputs_new/input-string/input-string.component.scss +0 -0
  235. package/themes/components/_inputs_new/inputs.scss +15 -0
  236. package/themes/components/carousel/carousel-image/carousel-image.component.scss +0 -0
  237. package/themes/components/carousel/carousel-item/carousel-item.component.scss +0 -0
  238. package/themes/components/carousel/carousel.component.scss +9 -0
  239. package/themes/components/content-block/content-block.component.scss +0 -0
  240. package/themes/components/default/default-list/default-list.component.scss +0 -0
  241. package/themes/components/default/default-list/header-list/header-list.component.scss +0 -0
  242. package/themes/components/default/default-pagination/default-pagination.component.scss +22 -0
  243. package/themes/components/default/default-table/default-table.component.scss +33 -0
  244. package/themes/components/default/default-table/th-filter/th-filter.component.scss +24 -0
  245. package/themes/components/default/default-view/default-view.component.scss +5 -0
  246. package/themes/components/default/default-view/header-view/header-view.component.scss +7 -0
  247. package/themes/components/default-page/default.page.scss +4 -0
  248. package/themes/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.scss +9 -0
  249. package/themes/components/drawer/default-drawer-end/default-drawer-end.component.scss +0 -0
  250. package/themes/components/drawer/drawer-group/drawer-group.component.scss +22 -0
  251. package/themes/components/drawer/drawer.component.scss +46 -0
  252. package/themes/components/filter/filter.component.scss +0 -0
  253. package/themes/components/http-responses-pages/forbidden-403/forbidden-403.component.scss +19 -0
  254. package/themes/components/image/image.component.scss +0 -0
  255. package/themes/components/info-popover/info-popover.component.scss +3 -0
  256. package/themes/components/inputs/input-bool/input-bool.component.scss +14 -0
  257. package/themes/components/inputs/input-color/input-color.component.scss +48 -0
  258. package/themes/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.scss +0 -0
  259. package/themes/components/inputs/input-date/input-date.component.scss +41 -0
  260. package/themes/components/inputs/input-decimal/input-decimal.component.scss +44 -0
  261. package/themes/components/inputs/input-file/download-button/download-button.component.scss +3 -0
  262. package/themes/components/inputs/input-file/input-file.component.scss +3 -0
  263. package/themes/components/inputs/input-loading/input-loading.component.scss +0 -0
  264. package/themes/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.scss +0 -0
  265. package/themes/components/inputs/input-select/input-select-option/input-select-option.component.scss +0 -0
  266. package/themes/components/inputs/input-select/input-select.component.scss +28 -0
  267. package/themes/components/inputs/input-string/input-string.component.scss +0 -0
  268. package/themes/components/inputs/input-textarea/input-textarea.component.scss +0 -0
  269. package/themes/components/inputs/inputs.scss +67 -0
  270. package/themes/components/loading/loading.component.scss +0 -0
  271. package/themes/components/login/login-admin/login-admin.component.scss +3 -0
  272. package/themes/components/login/login.component.scss +40 -0
  273. package/themes/components/main-content/main-content.component.scss +9 -0
  274. package/themes/components/stepper/step/step.component.scss +48 -0
  275. package/themes/components/stepper/stepper.component.scss +0 -0
  276. package/themes/components/tabs/tab/tab.component.scss +0 -0
  277. package/themes/components/tabs/tabs/tabs.component.scss +23 -0
  278. package/themes/components/text-tooltip/text-tooltip.component.scss +0 -0
  279. package/themes/components/tooltip/tooltip.component.scss +23 -0
  280. package/themes/styles/components.scss +52 -0
  281. package/themes/styles/core.styles.scss +409 -0
  282. package/themes/styles/ionic/ion-action-sheet.scss +8 -0
  283. package/themes/styles/ionic/ion-alert.scss +9 -0
  284. package/themes/styles/ionic/ion-button.scss +3 -0
  285. package/themes/styles/ionic/ion-card.scss +3 -0
  286. package/themes/styles/ionic/ion-content.scss +3 -0
  287. package/themes/styles/ionic/ion-datetime.scss +6 -0
  288. package/themes/styles/ionic/ion-item.scss +10 -0
  289. package/themes/styles/ionic/ion-list.scss +4 -0
  290. package/themes/styles/ionic/ion-modal.scss +8 -0
  291. package/themes/styles/ionic/ion-popover.scss +31 -0
  292. package/themes/styles/ionic/ion-progress-bar.scss +3 -0
  293. package/themes/styles/ionic/ion-searchbar.scss +4 -0
  294. package/themes/styles/ionic/ion-toast.scss +14 -0
  295. package/themes/styles/ionic.scss +13 -0
  296. package/themes/styles/login-default.scss +87 -0
  297. package/themes/styles/mixins.scss +467 -0
  298. package/themes/styles/styles.scss +1 -0
  299. package/themes/styles/translucid.scss +21 -0
@@ -0,0 +1,80 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { IonPopover } from '@ionic/angular';
3
+ import { CustomSignalInput } from '../custom-signal-input';
4
+ import { GenericService } from '../../../services/generics.service';
5
+ import * as i0 from "@angular/core";
6
+ type RGB = {
7
+ r: number;
8
+ g: number;
9
+ b: number;
10
+ };
11
+ type HSL = {
12
+ h: number;
13
+ l: number;
14
+ s: number;
15
+ };
16
+ export declare class InputColorComponent extends CustomSignalInput<string> implements OnInit {
17
+ private genericService;
18
+ constructor(genericService: GenericService);
19
+ canvas: ElementRef<HTMLCanvasElement>;
20
+ hueSlider: ElementRef<HTMLCanvasElement>;
21
+ alphaSlider: ElementRef<HTMLCanvasElement>;
22
+ writeValue(value: string): void;
23
+ get model(): string;
24
+ set model(value: string);
25
+ setModel(value: string, redraw?: boolean): void;
26
+ Popover: IonPopover;
27
+ rendering: boolean;
28
+ Present($event: any): Promise<void>;
29
+ private canvasCtx;
30
+ private canvasWidth;
31
+ private canvasHeight;
32
+ private hueCtx;
33
+ private hueSliderWidth;
34
+ private hueSliderHeight;
35
+ private alphaCtx;
36
+ private alphaSliderWidth;
37
+ private alphaSliderHeight;
38
+ private isDragging;
39
+ private isHueDragging;
40
+ private isAlphaDragging;
41
+ rgbColor: RGB;
42
+ hslColor: HSL;
43
+ alpha: number;
44
+ indicatorX: number;
45
+ indicatorY: number;
46
+ initCanvas(): void;
47
+ initHueSlider(): void;
48
+ initAlphaSlider(): void;
49
+ drawColorGradient(): void;
50
+ drawHueSlider(): void;
51
+ drawAlphaSlider(): void;
52
+ startDrag(e: MouseEvent): void;
53
+ drag(e: MouseEvent): void;
54
+ endDrag(): void;
55
+ handleTouch(e: TouchEvent): void;
56
+ startHueDrag(e: MouseEvent): void;
57
+ hueDrag(e: MouseEvent): void;
58
+ endHueDrag(): void;
59
+ startAlphaDrag(e: MouseEvent): void;
60
+ alphaDrag(e: MouseEvent): void;
61
+ endAlphaDrag(): void;
62
+ handleAlphaTouch(e: TouchEvent): void;
63
+ handleHueTouch(e: TouchEvent): void;
64
+ handleHueSelection(x: number): void;
65
+ handleAlphaSelection(x: number): void;
66
+ handleColorSelection(x: number, y: number): void;
67
+ updateSelectedColor(saturation?: number | null, lightness?: number | null, emitChanges?: boolean): void;
68
+ updateIndicatorPositions(): void;
69
+ hslToRgb(hsl: HSL): RGB;
70
+ setColorFromHex(hexColor: string, updateCanvas?: boolean, emitChanges?: boolean): void;
71
+ updateIndicatorPosition(): void;
72
+ rgbToHsl(rgb: RGB): HSL;
73
+ rgbToHex(rgb: RGB, a?: number): string;
74
+ getRgbaString(): string;
75
+ getHslaString(): string;
76
+ CopyToClipboard(): Promise<void>;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputColorComponent, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputColorComponent, "input-color", never, {}, {}, never, never, false, never>;
79
+ }
80
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InputCurrencyConfiguration, InputDecimalConfiguration, InputNumberConfiguration } from "./input-decimal/input-decimal.configuration";
2
+ import { InputCpfCnpjConfiguration } from "./input-cpf-cnpj/input-cpf-cnpj.configuration";
3
+ import { InputSelectConfiguration } from "./input-select/input.select.configuration";
4
+ import { InputStringConfiguration } from "./input-string/input-string.configuration";
5
+ import { InputBoolConfiguration } from "./input-bool/input-bool.configuration";
6
+ import { InputDateConfiguration } from "./input-date/input-date.configuration";
7
+ import { InputFileConfiguration } from "./input-file/input-file.configuration";
8
+ export type InputConfiguration = InputFileConfiguration | InputSelectConfiguration | InputBoolConfiguration | InputDateConfiguration | InputDecimalConfiguration | InputNumberConfiguration | InputCurrencyConfiguration | InputCpfCnpjConfiguration | InputStringConfiguration | any;
@@ -0,0 +1,24 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlContainer } from '@angular/forms';
3
+ import { MaskitoOptions, MaskitoElementPredicate } from '@maskito/core';
4
+ import { MaskitoMaskExpression } from '@maskito/core/src/lib/types';
5
+ import { InputCpfCnpjConfiguration } from './input-cpf-cnpj.configuration';
6
+ import { CustomInput } from '../custom-input';
7
+ import * as i0 from "@angular/core";
8
+ export declare class InputCpfCnpjComponent extends CustomInput<string> implements OnInit {
9
+ controlContainer: ControlContainer;
10
+ elementRef: ElementRef;
11
+ configuration: InputCpfCnpjConfiguration;
12
+ constructor(controlContainer: ControlContainer, elementRef: ElementRef);
13
+ ngOnInit(): Promise<void>;
14
+ writeValue(value: string): void;
15
+ get model(): string;
16
+ set model(value: string);
17
+ setModel(value: any): void;
18
+ readonly cpfMask: MaskitoMaskExpression;
19
+ readonly cnpjMask: MaskitoMaskExpression;
20
+ readonly mask: MaskitoOptions;
21
+ readonly maskPredicate: MaskitoElementPredicate;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputCpfCnpjComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputCpfCnpjComponent, "input-cpf-cnpj, input-cpf, input-cnpj", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
24
+ }
@@ -0,0 +1,5 @@
1
+ export type CPFCnpj = 'CPF' | 'CNPJ' | 'CPF/CNPJ';
2
+ export declare class InputCpfCnpjConfiguration {
3
+ type: CPFCnpj;
4
+ constructor(type?: CPFCnpj);
5
+ }
@@ -0,0 +1,30 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlContainer } from '@angular/forms';
3
+ import { IonModal } from '@ionic/angular';
4
+ import { InputDateConfiguration } from './input-date.configuration';
5
+ import { CustomInput } from '../custom-input';
6
+ import * as i0 from "@angular/core";
7
+ export declare class InputDateComponent extends CustomInput<string> implements OnInit {
8
+ controlContainer: ControlContainer;
9
+ elementRef: ElementRef;
10
+ configuration: InputDateConfiguration;
11
+ constructor(controlContainer: ControlContainer, elementRef: ElementRef);
12
+ presentation: "date-time" | "date" | "time" | string;
13
+ private transform;
14
+ HandleSelector(): void;
15
+ id_modal: string;
16
+ ngOnInit(): Promise<void>;
17
+ dateModel: string | null;
18
+ writeValue(value: string | null): void;
19
+ get model(): string;
20
+ set model(value: string);
21
+ setModel(value: string): void;
22
+ get _val(): string;
23
+ set _val(v: string);
24
+ get modal(): IonModal;
25
+ Open(): void;
26
+ Clear(): void;
27
+ DateTimeChange(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "input-date, input-date-time, input-time", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
30
+ }
@@ -0,0 +1,7 @@
1
+ export declare class InputDateConfiguration {
2
+ /** Habilita o botão de limpar os dados */
3
+ clearable: boolean;
4
+ constructor(
5
+ /** Habilita o botão de limpar os dados */
6
+ clearable?: boolean);
7
+ }
@@ -0,0 +1,41 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlContainer } from '@angular/forms';
3
+ import { InputCurrencyConfiguration, InputDecimalConfiguration, InputNumberConfiguration } from './input-decimal.configuration';
4
+ import { CustomInput } from '../custom-input';
5
+ import * as i0 from "@angular/core";
6
+ export declare class InputDecimalComponent extends CustomInput<number> implements OnInit {
7
+ controlContainer: ControlContainer;
8
+ elementRef: ElementRef;
9
+ configuration: InputDecimalConfiguration | InputNumberConfiguration | InputCurrencyConfiguration;
10
+ constructor(controlContainer: ControlContainer, elementRef: ElementRef);
11
+ ngOnInit(): Promise<void>;
12
+ digitsInfo: string;
13
+ setDigitsInfo(): void;
14
+ HandleSelector(): void;
15
+ writeValue(value: number): void;
16
+ get model(): string;
17
+ set model(value: number);
18
+ onKeyDown(event: any): void;
19
+ onPaste(event: any): void;
20
+ key: string | null | undefined;
21
+ altKey: boolean;
22
+ ctrlKey: boolean;
23
+ shiftKey: boolean;
24
+ startPosition: number;
25
+ endPosition: number;
26
+ value: string;
27
+ event: any;
28
+ eventType: number;
29
+ atLeft: string;
30
+ atRight: string;
31
+ HandleBrowser(): Promise<void> | Promise<boolean>;
32
+ divider: number;
33
+ setDivider(): void;
34
+ HandleNumber(): Promise<boolean>;
35
+ HandleNegative(): Promise<boolean>;
36
+ HandleEspecial(): Promise<boolean>;
37
+ HandleCopy(): Promise<void>;
38
+ SanitizeValue(f: string): number;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputDecimalComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputDecimalComponent, "input-decimal, input-number, input-currency, inout-percentage", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
41
+ }
@@ -0,0 +1,25 @@
1
+ export declare class InputDecimalConfiguration {
2
+ /** Declara a quantidade de numeros apos o ponto */
3
+ precision: number;
4
+ /** Se = false não aplica virgulas no lugar do separador a cada 3 unidades */
5
+ thousandSeparator: string;
6
+ decimalSeparator: string;
7
+ prefix: string;
8
+ sufix: string;
9
+ placeholder: string;
10
+ constructor(
11
+ /** Declara a quantidade de numeros apos o ponto */
12
+ precision?: number,
13
+ /** Texto no inicio do input */
14
+ prefix?: string | null,
15
+ /** Texto no fim do input */
16
+ sufix?: string | null,
17
+ /** Se = false não aplica virgulas no lugar do separador a cada 3 unidades */
18
+ thousandSeparator?: string, decimalSeparator?: string);
19
+ }
20
+ export declare class InputNumberConfiguration extends InputDecimalConfiguration {
21
+ constructor(prefix?: string, sufix?: string, thousandSeparator?: string);
22
+ }
23
+ export declare class InputCurrencyConfiguration extends InputDecimalConfiguration {
24
+ constructor(prefix?: string, sufix?: string, thousandSeparator?: string);
25
+ }
@@ -0,0 +1,13 @@
1
+ import { InputDecimalConfiguration, InputNumberConfiguration } from "./input-decimal/input-decimal.configuration";
2
+ export declare class InputsDefaultConfigurations {
3
+ static readonly configurationDecimalPercentage: InputDecimalConfiguration;
4
+ static readonly configurationDecimalDegree: InputDecimalConfiguration;
5
+ static readonly configurationDecimalM3H: InputDecimalConfiguration;
6
+ static readonly configurationDecimalMeters: InputDecimalConfiguration;
7
+ static readonly configurationDecimalMilimeters: InputDecimalConfiguration;
8
+ static readonly configurationNumberPercentage: InputNumberConfiguration;
9
+ static readonly configurationNumberDegree: InputNumberConfiguration;
10
+ static readonly configurationNumberM3H: InputNumberConfiguration;
11
+ static readonly configurationNumberMeters: InputNumberConfiguration;
12
+ static readonly configurationNumberMilimeters: InputNumberConfiguration;
13
+ }
@@ -0,0 +1,36 @@
1
+ import { ElementRef, ModelSignal, Signal } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { InputFileConfiguration } from '../input-file.configuration';
4
+ import { ApiUrlProviderService } from '../../../../services/web/api-url-provider.service';
5
+ import { StorageService } from '../../../../services/web/storage.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DownloadButtonComponent implements ControlValueAccessor {
8
+ storageService: StorageService;
9
+ private elementRef;
10
+ private apiUrlProviderService;
11
+ expand: string;
12
+ value: ModelSignal<string>;
13
+ size: string;
14
+ params: any;
15
+ disabled: boolean;
16
+ post: boolean;
17
+ configuration: InputFileConfiguration;
18
+ constructor(storageService: StorageService, elementRef: ElementRef, apiUrlProviderService: ApiUrlProviderService);
19
+ registerOnChange(fn: any): void;
20
+ registerOnTouched(fn: any): void;
21
+ setDisabledState?(isDisabled: boolean): void;
22
+ guid: string;
23
+ apiUrl: string;
24
+ ngOnInit(): void;
25
+ lstFiles: Signal<string[]>;
26
+ writeValue(value: string): void;
27
+ Download(value: string): void;
28
+ Sanitize(v: any): string;
29
+ ExtensionIsImage(v: any): boolean;
30
+ lstLoading: string[];
31
+ SetLoading(path: string): void;
32
+ SetNotLoading(path: string): void;
33
+ isLoading(path: string): boolean;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<DownloadButtonComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<DownloadButtonComponent, "download-button", never, { "expand": { "alias": "expand"; "required": false; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; }; "params": { "alias": "params"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "post": { "alias": "post"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; }, { "value": "valueChange"; }, never, never, false, never>;
36
+ }
@@ -0,0 +1,39 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ControlContainer } from '@angular/forms';
3
+ import { InputFileConfiguration } from './input-file.configuration';
4
+ import { ApiUrlProviderService } from '../../../services/web/api-url-provider.service';
5
+ import { UtilsService } from '../../../services/utils.service';
6
+ import { CustomInput } from '../custom-input';
7
+ import { StorageService } from '../../../services/web/storage.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class InputFileComponent extends CustomInput<File[] | string> {
10
+ controlContainer: ControlContainer;
11
+ elementRef: ElementRef;
12
+ private utilsService;
13
+ private apiUrlProviderService;
14
+ storageService: StorageService;
15
+ configuration: InputFileConfiguration;
16
+ constructor(controlContainer: ControlContainer, elementRef: ElementRef, utilsService: UtilsService, apiUrlProviderService: ApiUrlProviderService, storageService: StorageService);
17
+ guid: string;
18
+ apiUrl: string;
19
+ ngOnInit(): Promise<void>;
20
+ writeValue(value: File[] | string): void;
21
+ get model(): File[] | string;
22
+ set model(value: File[] | string);
23
+ setModel(value: File[] | string): void;
24
+ lstFiles: any[];
25
+ Upload(): void;
26
+ Download(value: string): void;
27
+ PopoverImg(): boolean;
28
+ ExtensionIsImage(v: any): boolean;
29
+ get src(): string;
30
+ get isCloud(): boolean;
31
+ Sanitize(v: any): string;
32
+ lstLoading: string[];
33
+ SetLoading(path: string): void;
34
+ SetNotLoading(path: string): void;
35
+ isLoading(path: string): boolean;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputFileComponent, [{ optional: true; host: true; skipSelf: true; }, null, null, null, null]>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "input-file", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
38
+ }
39
+ export declare const imageTypes: string[];
@@ -0,0 +1,11 @@
1
+ export declare class InputFileConfiguration {
2
+ /** Tipos de arquivos que podem ser selecionados */
3
+ types: any | [];
4
+ /** Declara se mais do que um arquivo pode ser selecionado */
5
+ multiple: boolean;
6
+ constructor(
7
+ /** Tipos de arquivos que podem ser selecionados */
8
+ types?: any | [],
9
+ /** Declara se mais do que um arquivo pode ser selecionado */
10
+ multiple?: boolean);
11
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class InputLoadingComponent {
3
+ loading: boolean;
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputLoadingComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputLoadingComponent, "input-loading", never, { "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { Provider } from "@angular/core";
2
+ export declare class InputProviderFactory {
3
+ static GetProvider(component: unknown, providers?: Provider[]): Provider[];
4
+ }
@@ -0,0 +1,21 @@
1
+ import { ModelSignal } from "@angular/core";
2
+ import { InputSelectConfiguration } from "./input.select.configuration";
3
+ export declare abstract class ISelect {
4
+ items: ModelSignal<any[]>;
5
+ configuration: ModelSignal<InputSelectConfiguration>;
6
+ loadingFromLoader: boolean;
7
+ Clear: (() => void);
8
+ Select: ((item: any, UseDefaultModelOptions?: any) => void);
9
+ PresentPopover: (($event: MouseEvent) => Promise<void>);
10
+ UpdateUseDefaultModelOptions: (() => void);
11
+ Update: (() => void);
12
+ }
13
+ export declare abstract class ISelectOption {
14
+ hidden: boolean;
15
+ disabled: boolean;
16
+ label: ModelSignal<string>;
17
+ model: any;
18
+ GetNativeElement: (() => HTMLElement);
19
+ isSelected: boolean;
20
+ onFocus: boolean;
21
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef, ModelSignal } from '@angular/core';
2
+ import { ISelectOption, ISelect } from '../ISelect';
3
+ import * as i0 from "@angular/core";
4
+ export declare class InputSelectInternalOptionComponent implements ISelectOption {
5
+ protected parentComponent: ISelect;
6
+ private elementRef;
7
+ hidden: boolean;
8
+ disabled: boolean;
9
+ constructor(parentComponent: ISelect, elementRef: ElementRef<HTMLElement>);
10
+ GetNativeElement(): HTMLElement;
11
+ label: ModelSignal<string>;
12
+ model: any;
13
+ protected HandleClick(): void;
14
+ isSelected: boolean;
15
+ onFocus: boolean;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectInternalOptionComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectInternalOptionComponent, "input-select-internal-option", never, { "hidden": { "alias": "hidden"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; }, { "label": "labelChange"; }, never, ["[slot=start]", "*", "[slot=end]"], false, never>;
18
+ }
@@ -0,0 +1,24 @@
1
+ import { ElementRef, ModelSignal } from '@angular/core';
2
+ import { DefaultModelOptions } from '../input.select.configuration';
3
+ import { ISelectOption, ISelect } from '../ISelect';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputSelectOptionComponent implements ISelectOption {
6
+ protected parentComponent: ISelect;
7
+ private elementRef;
8
+ /** Atributo indicando que o navegador não deve renderizar o conteúdo do elemento. */
9
+ hidden: boolean;
10
+ /** Se ativo desabilita o Input */
11
+ disabled: boolean;
12
+ /** Valor da opção em questão */
13
+ value: any;
14
+ constructor(parentComponent: ISelect, elementRef: ElementRef<HTMLElement>);
15
+ GetNativeElement(): HTMLElement;
16
+ /** Representa uma legenda para um item */
17
+ label: ModelSignal<string>;
18
+ model: import("@angular/core").Signal<DefaultModelOptions>;
19
+ protected HandleClick(): void;
20
+ isSelected: boolean;
21
+ onFocus: boolean;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectOptionComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectOptionComponent, "input-select-option", never, { "hidden": { "alias": "hidden"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "label": "labelChange"; }, never, ["[slot=start]", "*", "[slot=end]"], false, never>;
24
+ }
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InputSelectTemplateDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectTemplateDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputSelectTemplateDirective, "[input-select-template]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,66 @@
1
+ import { ElementRef, ModelSignal, OnDestroy, OnInit, QueryList, Signal } from '@angular/core';
2
+ import { IonInput, IonPopover, IonSearchbar } from '@ionic/angular';
3
+ import { ControlContainer, ControlValueAccessor } from '@angular/forms';
4
+ import { Observable, Subscription } from 'rxjs';
5
+ import { InputSelectConfiguration } from './input.select.configuration';
6
+ import { InputSelectInternalOptionComponent } from './input-select-internal-option/input-select-internal-option.component';
7
+ import { InputSelectOptionComponent } from './input-select-option/input-select-option.component';
8
+ import { ISelect } from './ISelect';
9
+ import { CustomSignalInput } from '../custom-signal-input';
10
+ import * as i0 from "@angular/core";
11
+ export declare class InputSelectComponent extends CustomSignalInput<any> implements OnInit, OnDestroy, ControlValueAccessor, ISelect {
12
+ controlContainer: ControlContainer;
13
+ elementRef: ElementRef;
14
+ /** Items disponíveis no select */
15
+ items: ModelSignal<any[]>;
16
+ /** Configuração do select */
17
+ configuration: ModelSignal<InputSelectConfiguration>;
18
+ loadingFromLoader: boolean;
19
+ lstOptions: QueryList<InputSelectOptionComponent>;
20
+ lstInternalOptions: QueryList<InputSelectInternalOptionComponent>;
21
+ cdkVirtualScrollViewport: ElementRef<any>;
22
+ private useDefaultModelOptions;
23
+ protected bindValue: Signal<((args: any) => any)>;
24
+ protected bindLabel: Signal<((args: any) => string)>;
25
+ constructor(controlContainer: ControlContainer, elementRef: ElementRef);
26
+ ngOnDestroy(): void;
27
+ updateInterval: Observable<number> | null;
28
+ updateSubscription: Subscription;
29
+ lastItemsQtd: number | null;
30
+ ngOnInit(): void;
31
+ Clear(): void;
32
+ protected CurrentLabel: string;
33
+ protected CurrentlyNoValue: boolean;
34
+ Update(): void;
35
+ private UpdateCurrentLabel;
36
+ private UpdateSelected;
37
+ IsSelected(item: any): boolean;
38
+ /** Applies only on multiple */
39
+ protected GetSelectedItens(): any[];
40
+ _model: any;
41
+ get model(): any;
42
+ set model(value: any);
43
+ protected SetModel(value: any): void;
44
+ protected SearchChanged(): void;
45
+ protected GetUseDefaultModelOptions(): boolean;
46
+ UpdateUseDefaultModelOptions(): void;
47
+ writeValue(obj: any): void;
48
+ Select(item: any): void;
49
+ protected interfaceOptions: {
50
+ cssClass: string;
51
+ };
52
+ inputContainer: ElementRef<HTMLElement>;
53
+ ionPopoverComponent: IonPopover;
54
+ ionPopoverElement: ElementRef<HTMLElement>;
55
+ searchbarComponent: IonSearchbar;
56
+ PresentPopover($event: MouseEvent): Promise<void>;
57
+ protected Search: ModelSignal<string>;
58
+ protected lstSearchItens: Signal<any[]>;
59
+ inputComponent: IonInput;
60
+ itemComponent: ElementRef<HTMLElement>;
61
+ HandleKeyboardEvent(event: KeyboardEvent): Promise<void>;
62
+ SetFocusedElement(focusedModel: any, scroll?: boolean): void;
63
+ focusedModel: any | null;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "input-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; "Search": { "alias": "Search"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; "configuration": "configurationChange"; "Search": "SearchChange"; }, ["lstOptions"], ["input-select-option"], false, never>;
66
+ }
@@ -0,0 +1,87 @@
1
+ import { Observable } from "rxjs";
2
+ import { HttpService, ViewRetorno } from "../../../services/web/http.service";
3
+ import { HttpServiceAtivo } from "../../../services/web/http.ativo.service";
4
+ import { ViewFiltros } from "../../../classes/filters/view-filtros";
5
+ import { ISelect } from "./ISelect";
6
+ import { Comparison } from "../../../classes/comparison/comparison";
7
+ export type DefaultModelOptions = {
8
+ value: string;
9
+ label: string;
10
+ };
11
+ export declare class InputSelectConfiguration {
12
+ /** Valor que será setado no formControl */
13
+ bindValue: string | ((obj: any) => any);
14
+ /** Valor que será exibido */
15
+ bindLabel: string | ((obj: any) => string);
16
+ /** Indica se o select pode ser nulo e limpavel */
17
+ clearable: boolean;
18
+ /** Indica se o select pode ser pesquisado */
19
+ searcheable: boolean;
20
+ /**
21
+ * Se LoadFrom instanceof HttpService -> Os dados serão carregados do List()
22
+ * Se LoadFrom instanceof HttpServiceAtivo -> Os dados serão carregados do ListAtivo()
23
+ * Se LoadFrom instanceof Observable -> Os dados serão carregados da função indicada
24
+ * Se LoadFrom instanceof Array -> Os dados serão o array
25
+ */
26
+ loadFrom?: HttpService | HttpServiceAtivo | Observable<ViewRetorno> | any[];
27
+ /** Se = true Os valores no form control seráo um array dos items selecionados */
28
+ multiple: boolean;
29
+ /** Desativa os items que estão de acordo com a função */
30
+ disableConditional: ((obj: any) => boolean) | null;
31
+ placeholder: string;
32
+ noItensFoundText: string;
33
+ loader: InputSelectDataLoader;
34
+ loadFromArray: any[];
35
+ loadFromService: HttpService | HttpServiceAtivo;
36
+ loadFromFunction: Observable<any>;
37
+ vFiltros: ViewFiltros | null;
38
+ constructor(
39
+ /** Valor que será setado no formControl */
40
+ bindValue?: string | ((obj: any) => any),
41
+ /** Valor que será exibido */
42
+ bindLabel?: string | ((obj: any) => string),
43
+ /** Indica se o select pode ser nulo e limpavel */
44
+ clearable?: boolean,
45
+ /** Indica se o select pode ser pesquisado */
46
+ searcheable?: boolean,
47
+ /**
48
+ * Se LoadFrom instanceof HttpService -> Os dados serão carregados do List()
49
+ * Se LoadFrom instanceof HttpServiceAtivo -> Os dados serão carregados do ListAtivo()
50
+ * Se LoadFrom instanceof Observable -> Os dados serão carregados da função indicada
51
+ * Se LoadFrom instanceof Array -> Os dados serão o array
52
+ */
53
+ loadFrom?: HttpService | HttpServiceAtivo | Observable<ViewRetorno> | any[],
54
+ /** Se = true Os valores no form control seráo um array dos items selecionados */
55
+ multiple?: boolean,
56
+ /** Aplica os filtros na pesquisa */
57
+ vFiltros?: Partial<{
58
+ /** Aplica uma pesquisa em texto */
59
+ search: string;
60
+ /** Propriedade de ordenação */
61
+ orderByProperty: string;
62
+ /** Orientação de ordenação */
63
+ ascending: boolean;
64
+ /** Filtro */
65
+ filter: Comparison[];
66
+ }> | null,
67
+ /** Desativa os items que estão de acordo com a função */
68
+ disableConditional?: ((obj: any) => boolean) | null);
69
+ }
70
+ export declare class InputSelectDataLoader {
71
+ lstComponents: ISelect[];
72
+ configuration: InputSelectConfiguration;
73
+ /** Valor que será setado no formControl */
74
+ bindValue: ((obj: any) => any) | null;
75
+ /** Valor que será exibido */
76
+ bindLabel: ((obj: any) => string) | null;
77
+ constructor(configuration: InputSelectConfiguration);
78
+ GetLabel(value: any): string;
79
+ AddComponent(component: ISelect): void;
80
+ private _isLoaded;
81
+ Refresh(items?: any[]): Promise<void>;
82
+ private SetLstComponentsThisItens;
83
+ items: any[];
84
+ Load(): Promise<void>;
85
+ }
86
+ export declare function BindValueFactory(configuration: InputSelectConfiguration): ((obj: any) => any);
87
+ export declare function BindLabelFactory(configuration: InputSelectConfiguration): ((obj: any) => string);
@@ -0,0 +1,19 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlContainer } from '@angular/forms';
3
+ import { InputStringConfiguration } from './input-string.configuration';
4
+ import { CustomInput } from '../custom-input';
5
+ import * as i0 from "@angular/core";
6
+ export declare class InputStringComponent extends CustomInput<string> implements OnInit {
7
+ controlContainer: ControlContainer;
8
+ elementRef: ElementRef;
9
+ configuration: InputStringConfiguration;
10
+ type: 'text' | 'password';
11
+ constructor(controlContainer: ControlContainer, elementRef: ElementRef);
12
+ ngOnInit(): Promise<void>;
13
+ writeValue(value: string): void;
14
+ get model(): string;
15
+ set model(value: string);
16
+ setModel(value: any): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputStringComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputStringComponent, "input-string", never, { "configuration": { "alias": "configuration"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
19
+ }
@@ -0,0 +1,14 @@
1
+ export declare enum InputStringType {
2
+ Text = "text",
3
+ Password = "password",
4
+ Email = "email",
5
+ Number = "number",
6
+ Search = "search",
7
+ Tel = "tel",
8
+ Url = "url"
9
+ }
10
+ export declare class InputStringConfiguration {
11
+ maxlength: number;
12
+ type: InputStringType;
13
+ constructor(type?: InputStringType, maxlength?: number);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlContainer } from '@angular/forms';
3
+ import { InputStringConfiguration } from '../input-string/input-string.configuration';
4
+ import { CustomInput } from '../custom-input';
5
+ import * as i0 from "@angular/core";
6
+ export declare class InputTextareaComponent extends CustomInput<string> implements OnInit {
7
+ controlContainer: ControlContainer;
8
+ elementRef: ElementRef;
9
+ configuration: InputStringConfiguration;
10
+ constructor(controlContainer: ControlContainer, elementRef: ElementRef);
11
+ ngOnInit(): Promise<void>;
12
+ writeValue(value: string): void;
13
+ get model(): string;
14
+ set model(value: string);
15
+ setModel(value: any): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "input-textarea", never, { "configuration": { "alias": "configuration"; "required": false; }; }, {}, never, never, false, never>;
18
+ }