@sapphire-ion/framework 1.2.43 → 1.2.44
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.
- package/esm2022/lib/classes/comparison/comparison-operator.mjs +18 -0
- package/esm2022/lib/classes/comparison/comparison-value-type.mjs +25 -0
- package/esm2022/lib/classes/comparison/comparison.mjs +41 -0
- package/esm2022/lib/classes/comparison/properties/bool-property.mjs +15 -0
- package/esm2022/lib/classes/comparison/properties/date-property.mjs +27 -0
- package/esm2022/lib/classes/comparison/properties/datetime-property.mjs +27 -0
- package/esm2022/lib/classes/comparison/properties/decimal-property.mjs +27 -0
- package/esm2022/lib/classes/comparison/properties/enum-property.mjs +27 -0
- package/esm2022/lib/classes/comparison/properties/implicit-property.mjs +12 -0
- package/esm2022/lib/classes/comparison/properties/int-property.mjs +27 -0
- package/esm2022/lib/classes/comparison/properties/long-property.mjs +27 -0
- package/esm2022/lib/classes/comparison/properties/string-property.mjs +15 -0
- package/esm2022/lib/classes/comparison/properties/time-property.mjs +27 -0
- package/esm2022/lib/classes/credentials.mjs +2 -0
- package/esm2022/lib/classes/environment.mjs +34 -0
- package/esm2022/lib/classes/filters/view-filtros.mjs +18 -0
- package/esm2022/lib/classes/infinite-scroll.mjs +90 -0
- package/esm2022/lib/classes/inputs/table-field-form-builder.mjs +10 -0
- package/esm2022/lib/classes/inputs/table-field.mjs +79 -0
- package/esm2022/lib/classes/page-option.mjs +2 -0
- package/esm2022/lib/classes/routes/default-routing-factory.mjs +23 -0
- package/esm2022/lib/classes/routes/id-preloader-configuration.mjs +22 -0
- package/esm2022/lib/classes/routes/route-data.mjs +9 -0
- package/esm2022/lib/components/carousel/carousel-image/carousel-image.component.mjs +18 -0
- package/esm2022/lib/components/carousel/carousel-item/carousel-item.component.mjs +15 -0
- package/esm2022/lib/components/carousel/carousel.component.mjs +79 -0
- package/esm2022/lib/components/carousel/carousel.module.mjs +31 -0
- package/esm2022/lib/components/carousel/i-carousel-item.component.mjs +16 -0
- package/esm2022/lib/components/content-block/content-block.component.mjs +27 -0
- package/esm2022/lib/components/default/default-list/abstract-list.mjs +49 -0
- package/esm2022/lib/components/default/default-list/default-list.component.mjs +95 -0
- package/esm2022/lib/components/default/default-list/header-list/header-list.component.mjs +98 -0
- package/esm2022/lib/components/default/default-list/list.mjs +120 -0
- package/esm2022/lib/components/default/default-pagination/default-pagination.component.mjs +123 -0
- package/esm2022/lib/components/default/default-table/default-table.component.mjs +216 -0
- package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +206 -0
- package/esm2022/lib/components/default/default-view/abstract-view.mjs +22 -0
- package/esm2022/lib/components/default/default-view/default-view.component.mjs +63 -0
- package/esm2022/lib/components/default/default-view/header-view/header-view.component.mjs +78 -0
- package/esm2022/lib/components/default/default-view/view.mjs +188 -0
- package/esm2022/lib/components/default/default.module.mjs +98 -0
- package/esm2022/lib/components/default-page/default.page.mjs +75 -0
- package/esm2022/lib/components/drag-drop-file/drag-drop-file.directive.mjs +60 -0
- package/esm2022/lib/components/drag-drop-file/drag-drop-file.module.mjs +31 -0
- package/esm2022/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.mjs +15 -0
- package/esm2022/lib/components/drawer/default-drawer-end/default-drawer-end.component.mjs +34 -0
- package/esm2022/lib/components/drawer/drawer-group/drawer-group.component.mjs +52 -0
- package/esm2022/lib/components/drawer/drawer.component.mjs +156 -0
- package/esm2022/lib/components/drawer/menu.mjs +15 -0
- package/esm2022/lib/components/filter/filter.component.mjs +145 -0
- package/esm2022/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.mjs +17 -0
- package/esm2022/lib/components/image/image.component.mjs +91 -0
- package/esm2022/lib/components/info-popover/info-popover.component.mjs +91 -0
- package/esm2022/lib/components/inputs/custom-input.mjs +85 -0
- package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +46 -0
- package/esm2022/lib/components/inputs/input-bool/input-bool.configuration.mjs +16 -0
- package/esm2022/lib/components/inputs/input-cep/input-cep.component.mjs +50 -0
- package/esm2022/lib/components/inputs/input-cep/input-cep.configuration.mjs +4 -0
- package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +481 -0
- package/esm2022/lib/components/inputs/input-configuration.mjs +2 -0
- package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +116 -0
- package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.mjs +6 -0
- package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +235 -0
- package/esm2022/lib/components/inputs/input-date/input-date.configuration.mjs +8 -0
- package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +243 -0
- package/esm2022/lib/components/inputs/input-decimal/input-decimal.configuration.mjs +50 -0
- package/esm2022/lib/components/inputs/input-default-configurations.mjs +14 -0
- package/esm2022/lib/components/inputs/input-file/download-button/download-button.component.mjs +99 -0
- package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +101 -0
- package/esm2022/lib/components/inputs/input-file/input-file.configuration.mjs +24 -0
- package/esm2022/lib/components/inputs/input-icon/fluenticons.mjs +3734 -0
- package/esm2022/lib/components/inputs/input-icon/input-icon.component.mjs +60 -0
- package/esm2022/lib/components/inputs/input-icon/ionicons.mjs +1360 -0
- package/esm2022/lib/components/inputs/input-provider-factory.mjs +12 -0
- package/esm2022/lib/components/inputs/input-select/directives/sion-label-template.directive.mjs +16 -0
- package/esm2022/lib/components/inputs/input-select/directives/sion-option-template.directive.mjs +16 -0
- package/esm2022/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.mjs +16 -0
- package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +373 -0
- package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +229 -0
- package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +41 -0
- package/esm2022/lib/components/inputs/input-string/input-string.configuration.mjs +18 -0
- package/esm2022/lib/components/inputs/input-telefone/input-telefone.component.mjs +74 -0
- package/esm2022/lib/components/inputs/input-telefone/input-telefone.configuration.mjs +12 -0
- package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +41 -0
- package/esm2022/lib/components/inputs/input-textarea/input-textarea.configuration.mjs +7 -0
- package/esm2022/lib/components/inputs/input-type.mjs +24 -0
- package/esm2022/lib/components/inputs/input-validators.mjs +121 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +133 -0
- package/esm2022/lib/components/loading/loading.component.mjs +34 -0
- package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +52 -0
- package/esm2022/lib/components/login/login.component.mjs +99 -0
- package/esm2022/lib/components/main-content/main-content.component.mjs +100 -0
- package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +182 -0
- package/esm2022/lib/components/popover/sion-popover.module.mjs +21 -0
- package/esm2022/lib/components/sion-card/sion-card.component.mjs +26 -0
- package/esm2022/lib/components/stepper/step/step.component.mjs +43 -0
- package/esm2022/lib/components/stepper/stepper.component.mjs +36 -0
- package/esm2022/lib/components/stepper/stepper.module.mjs +25 -0
- package/esm2022/lib/components/tabs/tab/tab.component.mjs +41 -0
- package/esm2022/lib/components/tabs/tabs/tabs.component.mjs +56 -0
- package/esm2022/lib/components/tabs/tabs.module.mjs +22 -0
- package/esm2022/lib/components/text-tooltip/text-tooltip.component.mjs +51 -0
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +21 -0
- package/esm2022/lib/core.module.mjs +38 -0
- package/esm2022/lib/directives/ng-var.directive.mjs +29 -0
- package/esm2022/lib/guards/auth.guard.mjs +26 -0
- package/esm2022/lib/guards/error.interceptor.mjs +107 -0
- package/esm2022/lib/guards/token.interceptor.mjs +25 -0
- package/esm2022/lib/index.mjs +187 -0
- package/esm2022/lib/pipes/secure.pipe.mjs +42 -0
- package/esm2022/lib/services/auth.service.mjs +150 -0
- package/esm2022/lib/services/environment.service.mjs +26 -0
- package/esm2022/lib/services/generic.service.mjs +84 -0
- package/esm2022/lib/services/modal-focus-trap.service.mjs +62 -0
- package/esm2022/lib/services/popover-focus-trap.service.mjs +62 -0
- package/esm2022/lib/services/route/route.cache.service.mjs +15 -0
- package/esm2022/lib/services/route/route.provider.service.mjs +42 -0
- package/esm2022/lib/services/usuario.service.mjs +49 -0
- package/esm2022/lib/services/utils.service.mjs +190 -0
- package/esm2022/lib/services/web/api-url-provider.service.mjs +29 -0
- package/esm2022/lib/services/web/http.ativo.service.mjs +37 -0
- package/esm2022/lib/services/web/http.service.mjs +177 -0
- package/esm2022/lib/services/web/storage.service.mjs +183 -0
- package/esm2022/public-api.mjs +5 -0
- package/esm2022/sapphire-ion-framework.mjs +5 -0
- package/fesm2022/sapphire-ion-framework.mjs +12234 -0
- package/fesm2022/sapphire-ion-framework.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/classes/comparison/comparison-operator.d.ts +9 -0
- package/lib/classes/comparison/comparison-value-type.d.ts +23 -0
- package/lib/classes/comparison/comparison.d.ts +25 -0
- package/lib/classes/comparison/properties/bool-property.d.ts +7 -0
- package/lib/classes/comparison/properties/date-property.d.ts +11 -0
- package/lib/classes/comparison/properties/datetime-property.d.ts +11 -0
- package/lib/classes/comparison/properties/decimal-property.d.ts +11 -0
- package/lib/classes/comparison/properties/enum-property.d.ts +11 -0
- package/lib/classes/comparison/properties/implicit-property.d.ts +6 -0
- package/lib/classes/comparison/properties/int-property.d.ts +11 -0
- package/lib/classes/comparison/properties/long-property.d.ts +11 -0
- package/lib/classes/comparison/properties/string-property.d.ts +7 -0
- package/lib/classes/comparison/properties/time-property.d.ts +11 -0
- package/{src/lib/classes/credentials.ts → lib/classes/credentials.d.ts} +5 -5
- package/lib/classes/environment.d.ts +14 -0
- package/lib/classes/filters/view-filtros.d.ts +10 -0
- package/lib/classes/infinite-scroll.d.ts +26 -0
- package/lib/classes/inputs/table-field-form-builder.d.ts +5 -0
- package/lib/classes/inputs/table-field.d.ts +20 -0
- package/lib/classes/page-option.d.ts +7 -0
- package/lib/classes/routes/default-routing-factory.d.ts +8 -0
- package/lib/classes/routes/id-preloader-configuration.d.ts +28 -0
- package/lib/classes/routes/route-data.d.ts +5 -0
- package/lib/components/carousel/carousel-image/carousel-image.component.d.ts +10 -0
- package/lib/components/carousel/carousel-item/carousel-item.component.d.ts +9 -0
- package/lib/components/carousel/carousel.component.d.ts +32 -0
- package/lib/components/carousel/carousel.module.d.ts +12 -0
- package/lib/components/carousel/i-carousel-item.component.d.ts +9 -0
- package/lib/components/content-block/content-block.component.d.ts +15 -0
- package/lib/components/default/default-list/abstract-list.d.ts +21 -0
- package/lib/components/default/default-list/default-list.component.d.ts +47 -0
- package/lib/components/default/default-list/header-list/header-list.component.d.ts +45 -0
- package/lib/components/default/default-list/list.d.ts +40 -0
- package/lib/components/default/default-pagination/default-pagination.component.d.ts +36 -0
- package/lib/components/default/default-table/default-table.component.d.ts +90 -0
- package/lib/components/default/default-table/th-filter/th-filter.component.d.ts +23 -0
- package/lib/components/default/default-view/abstract-view.d.ts +18 -0
- package/lib/components/default/default-view/default-view.component.d.ts +32 -0
- package/lib/components/default/default-view/header-view/header-view.component.d.ts +29 -0
- package/lib/components/default/default-view/view.d.ts +59 -0
- package/lib/components/default/default.module.d.ts +31 -0
- package/lib/components/default-page/default.page.d.ts +35 -0
- package/lib/components/drag-drop-file/drag-drop-file.directive.d.ts +14 -0
- package/lib/components/drag-drop-file/drag-drop-file.module.d.ts +10 -0
- package/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.d.ts +9 -0
- package/lib/components/drawer/default-drawer-end/default-drawer-end.component.d.ts +13 -0
- package/lib/components/drawer/drawer-group/drawer-group.component.d.ts +22 -0
- package/lib/components/drawer/drawer.component.d.ts +31 -0
- package/lib/components/drawer/menu.d.ts +9 -0
- package/lib/components/filter/filter.component.d.ts +29 -0
- package/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.d.ts +8 -0
- package/lib/components/image/image.component.d.ts +23 -0
- package/lib/components/info-popover/info-popover.component.d.ts +15 -0
- package/lib/components/inputs/custom-input.d.ts +40 -0
- package/lib/components/inputs/input-bool/input-bool.component.d.ts +16 -0
- package/lib/components/inputs/input-bool/input-bool.configuration.d.ts +17 -0
- package/lib/components/inputs/input-cep/input-cep.component.d.ts +18 -0
- package/lib/components/inputs/input-cep/input-cep.configuration.d.ts +3 -0
- package/lib/components/inputs/input-color/input-color.component.d.ts +77 -0
- package/{src/lib/components/inputs/input-configuration.ts → lib/components/inputs/input-configuration.d.ts} +10 -23
- package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +19 -0
- package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.d.ts +5 -0
- package/lib/components/inputs/input-date/input-date.component.d.ts +60 -0
- package/lib/components/inputs/input-date/input-date.configuration.d.ts +7 -0
- package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +26 -0
- package/lib/components/inputs/input-decimal/input-decimal.configuration.d.ts +28 -0
- package/lib/components/inputs/input-default-configurations.d.ts +13 -0
- package/lib/components/inputs/input-file/download-button/download-button.component.d.ts +39 -0
- package/lib/components/inputs/input-file/input-file.component.d.ts +27 -0
- package/lib/components/inputs/input-file/input-file.configuration.d.ts +8 -0
- package/lib/components/inputs/input-icon/fluenticons.d.ts +1 -0
- package/lib/components/inputs/input-icon/input-icon.component.d.ts +20 -0
- package/lib/components/inputs/input-icon/ionicons.d.ts +1 -0
- package/lib/components/inputs/input-provider-factory.d.ts +4 -0
- package/lib/components/inputs/input-select/directives/sion-label-template.directive.d.ts +18 -0
- package/lib/components/inputs/input-select/directives/sion-option-template.directive.d.ts +14 -0
- package/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.d.ts +18 -0
- package/lib/components/inputs/input-select/input-select.component.d.ts +83 -0
- package/lib/components/inputs/input-select/input.select.configuration.d.ts +122 -0
- package/lib/components/inputs/input-string/input-string.component.d.ts +14 -0
- package/lib/components/inputs/input-string/input-string.configuration.d.ts +14 -0
- package/lib/components/inputs/input-telefone/input-telefone.component.d.ts +19 -0
- package/lib/components/inputs/input-telefone/input-telefone.configuration.d.ts +9 -0
- package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +14 -0
- package/lib/components/inputs/input-textarea/input-textarea.configuration.d.ts +4 -0
- package/lib/components/inputs/input-type.d.ts +22 -0
- package/lib/components/inputs/input-validators.d.ts +25 -0
- package/lib/components/inputs/inputs.module.d.ts +33 -0
- package/lib/components/loading/loading.component.d.ts +18 -0
- package/lib/components/login/login-admin/login-admin.component.d.ts +20 -0
- package/lib/components/login/login.component.d.ts +29 -0
- package/lib/components/main-content/main-content.component.d.ts +27 -0
- package/lib/components/popover/sion-popover/sion-popover.component.d.ts +43 -0
- package/lib/components/popover/sion-popover.module.d.ts +9 -0
- package/lib/components/sion-card/sion-card.component.d.ts +11 -0
- package/lib/components/stepper/step/step.component.d.ts +15 -0
- package/lib/components/stepper/stepper.component.d.ts +14 -0
- package/lib/components/stepper/stepper.module.d.ts +10 -0
- package/lib/components/tabs/tab/tab.component.d.ts +19 -0
- package/lib/components/tabs/tabs/tabs.component.d.ts +18 -0
- package/lib/components/tabs/tabs.module.d.ts +12 -0
- package/lib/components/text-tooltip/text-tooltip.component.d.ts +16 -0
- package/lib/components/tooltip/tooltip.component.d.ts +7 -0
- package/lib/core.module.d.ts +16 -0
- package/lib/directives/ng-var.directive.d.ts +12 -0
- package/lib/guards/auth.guard.d.ts +11 -0
- package/lib/guards/error.interceptor.d.ts +32 -0
- package/lib/guards/token.interceptor.d.ts +11 -0
- package/lib/index.d.ts +117 -0
- package/lib/pipes/secure.pipe.d.ts +15 -0
- package/lib/services/auth.service.d.ts +47 -0
- package/lib/services/environment.service.d.ts +10 -0
- package/lib/services/generic.service.d.ts +22 -0
- package/lib/services/modal-focus-trap.service.d.ts +13 -0
- package/lib/services/popover-focus-trap.service.d.ts +13 -0
- package/lib/services/route/route.cache.service.d.ts +7 -0
- package/lib/services/route/route.provider.service.d.ts +13 -0
- package/lib/services/usuario.service.d.ts +21 -0
- package/lib/services/utils.service.d.ts +53 -0
- package/lib/services/web/api-url-provider.service.d.ts +13 -0
- package/lib/services/web/http.ativo.service.d.ts +20 -0
- package/lib/services/web/http.service.d.ts +59 -0
- package/lib/services/web/storage.service.d.ts +46 -0
- package/package.json +47 -43
- package/public-api.d.ts +1 -0
- package/{src/lib → themes}/compiled-styles.scss +2551 -2551
- package/build.ps1 +0 -39
- package/ng-package.json +0 -10
- package/src/lib/classes/comparison/comparison-operator.ts +0 -17
- package/src/lib/classes/comparison/comparison-value-type.ts +0 -34
- package/src/lib/classes/comparison/comparison.ts +0 -45
- package/src/lib/classes/comparison/properties/bool-property.ts +0 -16
- package/src/lib/classes/comparison/properties/date-property.ts +0 -28
- package/src/lib/classes/comparison/properties/datetime-property.ts +0 -28
- package/src/lib/classes/comparison/properties/decimal-property.ts +0 -28
- package/src/lib/classes/comparison/properties/enum-property.ts +0 -28
- package/src/lib/classes/comparison/properties/implicit-property.ts +0 -13
- package/src/lib/classes/comparison/properties/int-property.ts +0 -28
- package/src/lib/classes/comparison/properties/long-property.ts +0 -28
- package/src/lib/classes/comparison/properties/string-property.ts +0 -16
- package/src/lib/classes/comparison/properties/time-property.ts +0 -28
- package/src/lib/classes/environment.ts +0 -37
- package/src/lib/classes/filters/view-filtros.ts +0 -18
- package/src/lib/classes/infinite-scroll.ts +0 -112
- package/src/lib/classes/inputs/table-field-form-builder.ts +0 -12
- package/src/lib/classes/inputs/table-field.ts +0 -62
- package/src/lib/classes/page-option.ts +0 -8
- package/src/lib/classes/routes/default-routing-factory.ts +0 -24
- package/src/lib/classes/routes/id-preloader-configuration.ts +0 -21
- package/src/lib/classes/routes/route-data.ts +0 -9
- package/src/lib/components/carousel/carousel-image/carousel-image.component.html +0 -4
- package/src/lib/components/carousel/carousel-image/carousel-image.component.ts +0 -15
- package/src/lib/components/carousel/carousel-item/carousel-item.component.html +0 -3
- package/src/lib/components/carousel/carousel-item/carousel-item.component.ts +0 -14
- package/src/lib/components/carousel/carousel.component.html +0 -22
- package/src/lib/components/carousel/carousel.component.ts +0 -83
- package/src/lib/components/carousel/carousel.module.ts +0 -20
- package/src/lib/components/carousel/i-carousel-item.component.ts +0 -8
- package/src/lib/components/content-block/content-block.component.html +0 -6
- package/src/lib/components/content-block/content-block.component.ts +0 -25
- package/src/lib/components/default/default-list/abstract-list.ts +0 -56
- package/src/lib/components/default/default-list/default-list.component.html +0 -60
- package/src/lib/components/default/default-list/default-list.component.ts +0 -72
- package/src/lib/components/default/default-list/header-list/header-list.component.html +0 -32
- package/src/lib/components/default/default-list/header-list/header-list.component.ts +0 -85
- package/src/lib/components/default/default-list/list.ts +0 -127
- package/src/lib/components/default/default-pagination/default-pagination.component.html +0 -52
- package/src/lib/components/default/default-pagination/default-pagination.component.ts +0 -118
- package/src/lib/components/default/default-table/default-table.component.html +0 -104
- package/src/lib/components/default/default-table/default-table.component.ts +0 -255
- package/src/lib/components/default/default-table/th-filter/th-filter.component.html +0 -69
- package/src/lib/components/default/default-table/th-filter/th-filter.component.ts +0 -183
- package/src/lib/components/default/default-view/abstract-view.ts +0 -25
- package/src/lib/components/default/default-view/default-view.component.html +0 -111
- package/src/lib/components/default/default-view/default-view.component.ts +0 -44
- package/src/lib/components/default/default-view/header-view/header-view.component.html +0 -64
- package/src/lib/components/default/default-view/header-view/header-view.component.ts +0 -57
- package/src/lib/components/default/default-view/view.ts +0 -183
- package/src/lib/components/default/default.module.ts +0 -61
- package/src/lib/components/default-page/default.page.html +0 -63
- package/src/lib/components/default-page/default.page.ts +0 -84
- package/src/lib/components/drag-drop-file/drag-drop-file.directive.ts +0 -44
- package/src/lib/components/drag-drop-file/drag-drop-file.module.ts +0 -21
- package/src/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.html +0 -5
- package/src/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.ts +0 -17
- package/src/lib/components/drawer/default-drawer-end/default-drawer-end.component.html +0 -12
- package/src/lib/components/drawer/default-drawer-end/default-drawer-end.component.ts +0 -35
- package/src/lib/components/drawer/drawer-group/drawer-group.component.html +0 -79
- package/src/lib/components/drawer/drawer-group/drawer-group.component.ts +0 -49
- package/src/lib/components/drawer/drawer.component.html +0 -120
- package/src/lib/components/drawer/drawer.component.ts +0 -157
- package/src/lib/components/drawer/menu.ts +0 -20
- package/src/lib/components/filter/filter.component.html +0 -43
- package/src/lib/components/filter/filter.component.ts +0 -141
- package/src/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.html +0 -35
- package/src/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.ts +0 -19
- package/src/lib/components/image/image.component.html +0 -17
- package/src/lib/components/image/image.component.ts +0 -95
- package/src/lib/components/info-popover/info-popover.component.html +0 -23
- package/src/lib/components/info-popover/info-popover.component.ts +0 -75
- package/src/lib/components/inputs/custom-input.ts +0 -94
- package/src/lib/components/inputs/input-bool/input-bool.component.html +0 -26
- package/src/lib/components/inputs/input-bool/input-bool.component.ts +0 -39
- package/src/lib/components/inputs/input-bool/input-bool.configuration.ts +0 -14
- package/src/lib/components/inputs/input-cep/input-cep.component.html +0 -27
- package/src/lib/components/inputs/input-cep/input-cep.component.ts +0 -41
- package/src/lib/components/inputs/input-cep/input-cep.configuration.ts +0 -4
- package/src/lib/components/inputs/input-color/input-color.component.html +0 -79
- package/src/lib/components/inputs/input-color/input-color.component.ts +0 -544
- package/src/lib/components/inputs/input-color/input-color.configuration.ts +0 -0
- package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.html +0 -28
- package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.ts +0 -99
- package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.ts +0 -4
- package/src/lib/components/inputs/input-date/input-date.component.html +0 -88
- package/src/lib/components/inputs/input-date/input-date.component.ts +0 -241
- package/src/lib/components/inputs/input-date/input-date.configuration.ts +0 -6
- package/src/lib/components/inputs/input-decimal/input-decimal.component.html +0 -31
- package/src/lib/components/inputs/input-decimal/input-decimal.component.ts +0 -249
- package/src/lib/components/inputs/input-decimal/input-decimal.configuration.ts +0 -47
- package/src/lib/components/inputs/input-default-configurations.ts +0 -15
- package/src/lib/components/inputs/input-file/download-button/download-button.component.html +0 -56
- package/src/lib/components/inputs/input-file/download-button/download-button.component.ts +0 -89
- package/src/lib/components/inputs/input-file/input-file.component.html +0 -59
- package/src/lib/components/inputs/input-file/input-file.component.ts +0 -96
- package/src/lib/components/inputs/input-file/input-file.configuration.ts +0 -25
- package/src/lib/components/inputs/input-icon/fluenticons.ts +0 -3733
- package/src/lib/components/inputs/input-icon/input-icon.component.html +0 -8
- package/src/lib/components/inputs/input-icon/input-icon.component.ts +0 -52
- package/src/lib/components/inputs/input-icon/ionicons.ts +0 -1359
- package/src/lib/components/inputs/input-provider-factory.ts +0 -12
- package/src/lib/components/inputs/input-select/directives/sion-label-template.directive.ts +0 -19
- package/src/lib/components/inputs/input-select/directives/sion-option-template.directive.ts +0 -16
- package/src/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.ts +0 -19
- package/src/lib/components/inputs/input-select/input-select.component.html +0 -176
- package/src/lib/components/inputs/input-select/input-select.component.ts +0 -361
- package/src/lib/components/inputs/input-select/input.select.configuration.ts +0 -292
- package/src/lib/components/inputs/input-string/input-string.component.html +0 -27
- package/src/lib/components/inputs/input-string/input-string.component.ts +0 -31
- package/src/lib/components/inputs/input-string/input-string.configuration.ts +0 -18
- package/src/lib/components/inputs/input-telefone/input-telefone.component.html +0 -29
- package/src/lib/components/inputs/input-telefone/input-telefone.component.ts +0 -63
- package/src/lib/components/inputs/input-telefone/input-telefone.configuration.ts +0 -8
- package/src/lib/components/inputs/input-textarea/input-textarea.component.html +0 -27
- package/src/lib/components/inputs/input-textarea/input-textarea.component.ts +0 -31
- package/src/lib/components/inputs/input-textarea/input-textarea.configuration.ts +0 -7
- package/src/lib/components/inputs/input-type.ts +0 -22
- package/src/lib/components/inputs/input-validators.ts +0 -111
- package/src/lib/components/inputs/inputs.module.ts +0 -74
- package/src/lib/components/loading/loading.component.html +0 -28
- package/src/lib/components/loading/loading.component.ts +0 -29
- package/src/lib/components/login/login-admin/login-admin.component.html +0 -28
- package/src/lib/components/login/login-admin/login-admin.component.ts +0 -51
- package/src/lib/components/login/login.component.html +0 -104
- package/src/lib/components/login/login.component.ts +0 -96
- package/src/lib/components/main-content/main-content.component.html +0 -145
- package/src/lib/components/main-content/main-content.component.ts +0 -93
- package/src/lib/components/popover/sion-popover/sion-popover.component.html +0 -21
- package/src/lib/components/popover/sion-popover/sion-popover.component.ts +0 -182
- package/src/lib/components/popover/sion-popover.module.ts +0 -12
- package/src/lib/components/sion-card/sion-card.component.html +0 -12
- package/src/lib/components/sion-card/sion-card.component.ts +0 -23
- package/src/lib/components/stepper/step/step.component.html +0 -11
- package/src/lib/components/stepper/step/step.component.ts +0 -44
- package/src/lib/components/stepper/stepper.component.html +0 -3
- package/src/lib/components/stepper/stepper.component.ts +0 -37
- package/src/lib/components/stepper/stepper.module.ts +0 -15
- package/src/lib/components/tabs/tab/tab.component.html +0 -8
- package/src/lib/components/tabs/tab/tab.component.ts +0 -28
- package/src/lib/components/tabs/tabs/tabs.component.html +0 -14
- package/src/lib/components/tabs/tabs/tabs.component.ts +0 -42
- package/src/lib/components/tabs/tabs.module.ts +0 -15
- package/src/lib/components/text-tooltip/text-tooltip.component.html +0 -8
- package/src/lib/components/text-tooltip/text-tooltip.component.ts +0 -45
- package/src/lib/components/tooltip/tooltip.component.html +0 -53
- package/src/lib/components/tooltip/tooltip.component.ts +0 -16
- package/src/lib/core.module.ts +0 -29
- package/src/lib/directives/ng-var.directive.ts +0 -26
- package/src/lib/guards/auth.guard.ts +0 -19
- package/src/lib/guards/error.interceptor.ts +0 -108
- package/src/lib/guards/token.interceptor.ts +0 -28
- package/src/lib/index.ts +0 -190
- package/src/lib/pipes/secure.pipe.ts +0 -39
- package/src/lib/services/auth.service.ts +0 -153
- package/src/lib/services/crypto.service.ts +0 -164
- package/src/lib/services/environment.service.ts +0 -17
- package/src/lib/services/generic.service.ts +0 -85
- package/src/lib/services/modal-focus-trap.service.ts +0 -65
- package/src/lib/services/popover-focus-trap.service.ts +0 -65
- package/src/lib/services/route/route.cache.service.ts +0 -17
- package/src/lib/services/route/route.provider.service.ts +0 -49
- package/src/lib/services/usuario.service.ts +0 -44
- package/src/lib/services/utils.service.ts +0 -216
- package/src/lib/services/web/api-url-provider.service.ts +0 -48
- package/src/lib/services/web/http.ativo.service.ts +0 -37
- package/src/lib/services/web/http.service.ts +0 -193
- package/src/lib/services/web/storage.service.ts +0 -206
- package/src/public-api.ts +0 -5
- package/tailwind.config.js +0 -27
- package/tsconfig.lib.json +0 -29
- package/tsconfig.lib.prod.json +0 -23
- package/tsconfig.spec.json +0 -27
- /package/{src/lib → themes}/components/carousel/carousel-image/carousel-image.component.scss +0 -0
- /package/{src/lib → themes}/components/carousel/carousel-item/carousel-item.component.scss +0 -0
- /package/{src/lib → themes}/components/carousel/carousel.component.scss +0 -0
- /package/{src/lib → themes}/components/content-block/content-block.component.scss +0 -0
- /package/{src/lib → themes}/components/default/default-list/default-list.component.scss +0 -0
- /package/{src/lib → themes}/components/default/default-list/header-list/header-list.component.scss +0 -0
- /package/{src/lib → themes}/components/default/default-pagination/default-pagination.component.scss +0 -0
- /package/{src/lib → themes}/components/default/default-table/default-table.component.scss +0 -0
- /package/{src/lib → themes}/components/default/default-table/th-filter/th-filter.component.scss +0 -0
- /package/{src/lib → themes}/components/default/default-view/default-view.component.scss +0 -0
- /package/{src/lib → themes}/components/default/default-view/header-view/header-view.component.scss +0 -0
- /package/{src/lib → themes}/components/default-page/default.page.scss +0 -0
- /package/{src/lib → themes}/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.scss +0 -0
- /package/{src/lib → themes}/components/drawer/default-drawer-end/default-drawer-end.component.scss +0 -0
- /package/{src/lib → themes}/components/drawer/drawer-group/drawer-group.component.scss +0 -0
- /package/{src/lib → themes}/components/drawer/drawer.component.scss +0 -0
- /package/{src/lib → themes}/components/filter/filter.component.scss +0 -0
- /package/{src/lib → themes}/components/http-responses-pages/forbidden-403/forbidden-403.component.scss +0 -0
- /package/{src/lib → themes}/components/image/image.component.scss +0 -0
- /package/{src/lib → themes}/components/info-popover/info-popover.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-bool/input-bool.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-cep/input-cep.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-color/input-color.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-date/input-date.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-decimal/input-decimal.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-file/download-button/download-button.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-file/input-file.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-icon/input-icon.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-select/input-select.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-string/input-string.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-telefone/input-telefone.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/input-textarea/input-textarea.component.scss +0 -0
- /package/{src/lib → themes}/components/inputs/inputs.scss +0 -0
- /package/{src/lib → themes}/components/loading/loading.component.scss +0 -0
- /package/{src/lib → themes}/components/login/login-admin/login-admin.component.scss +0 -0
- /package/{src/lib → themes}/components/login/login.component.scss +0 -0
- /package/{src/lib → themes}/components/main-content/main-content.component.scss +0 -0
- /package/{src/lib → themes}/components/popover/sion-popover/sion-popover.component.scss +0 -0
- /package/{src/lib → themes}/components/sion-card/sion-card.component.scss +0 -0
- /package/{src/lib → themes}/components/stepper/step/step.component.scss +0 -0
- /package/{src/lib → themes}/components/stepper/stepper.component.scss +0 -0
- /package/{src/lib → themes}/components/tabs/tab/tab.component.scss +0 -0
- /package/{src/lib → themes}/components/tabs/tabs/tabs.component.scss +0 -0
- /package/{src/lib → themes}/components/text-tooltip/text-tooltip.component.scss +0 -0
- /package/{src/lib → themes}/components/tooltip/tooltip.component.scss +0 -0
- /package/{src/lib → themes}/styles/components.scss +0 -0
- /package/{src/lib → themes}/styles/core.styles.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-action-sheet.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-alert.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-button.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-card.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-content.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-datetime.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-item.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-list.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-modal.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-popover.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-progress-bar.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-searchbar.scss +0 -0
- /package/{src/lib → themes}/styles/ionic/ion-toast.scss +0 -0
- /package/{src/lib → themes}/styles/ionic.scss +0 -0
- /package/{src/lib → themes}/styles/login-default.scss +0 -0
- /package/{src/lib → themes}/styles/mixins.scss +0 -0
- /package/{src/lib → themes}/styles/styles.scss +0 -0
- /package/{src/lib → themes}/styles/translucid.scss +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { CustomInput } from '../custom-input';
|
|
3
|
+
import { GenericService } from '../../../services/generic.service';
|
|
4
|
+
import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
|
|
5
|
+
import { MaskitoOptions } from '@maskito/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
type RGB = {
|
|
8
|
+
r: number;
|
|
9
|
+
g: number;
|
|
10
|
+
b: number;
|
|
11
|
+
};
|
|
12
|
+
type HSL = {
|
|
13
|
+
h: number;
|
|
14
|
+
l: number;
|
|
15
|
+
s: number;
|
|
16
|
+
};
|
|
17
|
+
export declare class InputColorComponent extends CustomInput<string> {
|
|
18
|
+
private genericService;
|
|
19
|
+
input: ElementRef<HTMLInputElement>;
|
|
20
|
+
inputContainer: ElementRef<HTMLDivElement>;
|
|
21
|
+
setFocus(event: MouseEvent | null): void;
|
|
22
|
+
constructor(genericService: GenericService);
|
|
23
|
+
popover: SIonPopoverComponent;
|
|
24
|
+
rgbColor: RGB;
|
|
25
|
+
hslColor: HSL;
|
|
26
|
+
alpha: number;
|
|
27
|
+
writeValue(obj: string): void | Promise<void>;
|
|
28
|
+
SetValue(value: string): void;
|
|
29
|
+
rendering: boolean;
|
|
30
|
+
Present(event: MouseEvent): Promise<void>;
|
|
31
|
+
indicatorX: number;
|
|
32
|
+
indicatorY: number;
|
|
33
|
+
gradient: ElementRef<HTMLCanvasElement>;
|
|
34
|
+
private isGradientDragging;
|
|
35
|
+
private gradientCtx;
|
|
36
|
+
private gradientWidth;
|
|
37
|
+
private gradientHeight;
|
|
38
|
+
InitializeGradient(): void;
|
|
39
|
+
StartGradientDrag(e: MouseEvent): void;
|
|
40
|
+
GradientDrag(e: MouseEvent): void;
|
|
41
|
+
EndGradientDrag(): void;
|
|
42
|
+
HandleGradientTouch(e: TouchEvent): void;
|
|
43
|
+
HandleColorSelection(x: number, y: number): void;
|
|
44
|
+
UpdateSelectedColor(saturation?: number | null, lightness?: number | null, emitChanges?: boolean): void;
|
|
45
|
+
hueSlider: ElementRef<HTMLCanvasElement>;
|
|
46
|
+
private isHueDragging;
|
|
47
|
+
private hueCtx;
|
|
48
|
+
private hueSliderWidth;
|
|
49
|
+
private hueSliderHeight;
|
|
50
|
+
InitializeHueSlider(): void;
|
|
51
|
+
StartHueDrag(e: MouseEvent): void;
|
|
52
|
+
HueDrag(e: MouseEvent): void;
|
|
53
|
+
EndHueDrag(): void;
|
|
54
|
+
HandleHueTouch(e: TouchEvent): void;
|
|
55
|
+
HandleHueSelection(x: number): void;
|
|
56
|
+
alphaSlider: ElementRef<HTMLCanvasElement>;
|
|
57
|
+
private isAlphaDragging;
|
|
58
|
+
private alphaCtx;
|
|
59
|
+
private alphaSliderWidth;
|
|
60
|
+
private alphaSliderHeight;
|
|
61
|
+
InitializeAlphaSlider(): void;
|
|
62
|
+
StartAlphaDrag(e: MouseEvent): void;
|
|
63
|
+
AlphaDrag(e: MouseEvent): void;
|
|
64
|
+
EndAlphaDrag(): void;
|
|
65
|
+
HandleAlphaTouch(e: TouchEvent): void;
|
|
66
|
+
HandleAlphaSelection(x: number): void;
|
|
67
|
+
SetColorFromHex(hexColor: string, updateCanvas?: boolean, emitChanges?: boolean): void;
|
|
68
|
+
DrawColorGradient(): void;
|
|
69
|
+
DrawHueSlider(): void;
|
|
70
|
+
DrawAlphaSlider(): void;
|
|
71
|
+
CopyToClipboard(): Promise<void>;
|
|
72
|
+
UpdateIndicatorPositions(): void;
|
|
73
|
+
HEXMask: MaskitoOptions;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputColorComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputColorComponent, "input-color", never, {}, {}, never, never, false, never>;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
@@ -1,23 +1,10 @@
|
|
|
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
|
-
import { InputTelefoneCelularConfiguration } from "./input-telefone/input-telefone.configuration";
|
|
9
|
-
import { InputCepConfiguration } from "./input-cep/input-cep.configuration";
|
|
10
|
-
|
|
11
|
-
export type InputConfiguration =
|
|
12
|
-
InputBoolConfiguration |
|
|
13
|
-
InputCpfCnpjConfiguration |
|
|
14
|
-
InputDateConfiguration |
|
|
15
|
-
InputDecimalConfiguration |
|
|
16
|
-
InputCurrencyConfiguration |
|
|
17
|
-
InputNumberConfiguration |
|
|
18
|
-
InputFileConfiguration |
|
|
19
|
-
InputSelectConfiguration |
|
|
20
|
-
InputStringConfiguration |
|
|
21
|
-
InputTelefoneCelularConfiguration |
|
|
22
|
-
InputCepConfiguration |
|
|
23
|
-
any;
|
|
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
|
+
import { InputTelefoneCelularConfiguration } from "./input-telefone/input-telefone.configuration";
|
|
9
|
+
import { InputCepConfiguration } from "./input-cep/input-cep.configuration";
|
|
10
|
+
export type InputConfiguration = InputBoolConfiguration | InputCpfCnpjConfiguration | InputDateConfiguration | InputDecimalConfiguration | InputCurrencyConfiguration | InputNumberConfiguration | InputFileConfiguration | InputSelectConfiguration | InputStringConfiguration | InputTelefoneCelularConfiguration | InputCepConfiguration | any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef, ModelSignal } from '@angular/core';
|
|
2
|
+
import { MaskitoOptions } from '@maskito/core';
|
|
3
|
+
import { CustomInput } from '../custom-input';
|
|
4
|
+
import { InputCpfCnpjConfiguration } from './input-cpf-cnpj.configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class InputCpfCnpjComponent extends CustomInput<string> {
|
|
7
|
+
protected elementRef: ElementRef<HTMLInputElement>;
|
|
8
|
+
configuration: ModelSignal<InputCpfCnpjConfiguration>;
|
|
9
|
+
input: ElementRef<HTMLInputElement>;
|
|
10
|
+
inputContainer: ElementRef<HTMLDivElement>;
|
|
11
|
+
setFocus(event: MouseEvent | null): void;
|
|
12
|
+
constructor(elementRef: ElementRef<HTMLInputElement>);
|
|
13
|
+
writeValue(obj: string): void | Promise<void>;
|
|
14
|
+
SetValue(obj: string): void;
|
|
15
|
+
readonly mask: MaskitoOptions;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputCpfCnpjComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputCpfCnpjComponent, "input-cpf-cnpj, input-cpf, input-cnpj", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "configuration": "configurationChange"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
19
|
+
export declare function FormatCpfCnpj(value: string): string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ElementRef, InputSignal, Signal, WritableSignal } from '@angular/core';
|
|
2
|
+
import { MaskitoOptions } from '@maskito/core';
|
|
3
|
+
import moment from 'moment';
|
|
4
|
+
import { InputDateConfiguration } from './input-date.configuration';
|
|
5
|
+
import { CustomInput } from '../custom-input';
|
|
6
|
+
import { IonDatetime, IonModal } from '@ionic/angular';
|
|
7
|
+
import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
|
|
8
|
+
import { MatCalendar } from '@angular/material/datepicker';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class InputDateComponent extends CustomInput<string> {
|
|
11
|
+
elementRef: ElementRef;
|
|
12
|
+
static FormatISO: string;
|
|
13
|
+
configuration: InputSignal<InputDateConfiguration>;
|
|
14
|
+
input: ElementRef<HTMLInputElement>;
|
|
15
|
+
inputContainer: ElementRef<HTMLDivElement>;
|
|
16
|
+
setFocus(event: MouseEvent | null): void;
|
|
17
|
+
options: MaskitoOptions;
|
|
18
|
+
momentFormat: 'DD/MM/YYYY HH:mm' | 'DD/MM/YYYY' | 'HH:mm';
|
|
19
|
+
windowSize: WritableSignal<number>;
|
|
20
|
+
onResize(event: any): void;
|
|
21
|
+
interface: Signal<DateInterfaces>;
|
|
22
|
+
DateInterfaces: typeof DateInterfaces;
|
|
23
|
+
constructor(elementRef: ElementRef);
|
|
24
|
+
ClearValue(event?: MouseEvent): void;
|
|
25
|
+
presentation: DatePresentation;
|
|
26
|
+
readableValue: string;
|
|
27
|
+
SetValueFromReadable(value: string): void;
|
|
28
|
+
SetValueFromMoment(value: moment.Moment | null): void;
|
|
29
|
+
calendar: MatCalendar<moment.Moment>;
|
|
30
|
+
/**
|
|
31
|
+
* @param obj String in ISO format (YYYY-MM-DDThh:mm:ss)
|
|
32
|
+
*/
|
|
33
|
+
SetValue(obj: string): void;
|
|
34
|
+
momentValue?: moment.Moment;
|
|
35
|
+
datetime: IonDatetime;
|
|
36
|
+
writeValue(obj?: string): void | Promise<void>;
|
|
37
|
+
popover: SIonPopoverComponent;
|
|
38
|
+
modal: IonModal;
|
|
39
|
+
Present(event: MouseEvent): Promise<void>;
|
|
40
|
+
Dismiss(): Promise<void>;
|
|
41
|
+
DatePresentation: typeof DatePresentation;
|
|
42
|
+
lstHours: string[];
|
|
43
|
+
lstMinutes: string[];
|
|
44
|
+
hour: string;
|
|
45
|
+
minute: string;
|
|
46
|
+
OnChangeHour(event: string): void;
|
|
47
|
+
OnChangeMinute(event: string): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "input-date, input-date-time, input-time", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
50
|
+
}
|
|
51
|
+
declare enum DatePresentation {
|
|
52
|
+
DateTime = 1,
|
|
53
|
+
Date = 2,
|
|
54
|
+
Time = 3
|
|
55
|
+
}
|
|
56
|
+
declare enum DateInterfaces {
|
|
57
|
+
Popover = 1,
|
|
58
|
+
Modal = 2
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElementRef, ModelSignal, Signal } from '@angular/core';
|
|
2
|
+
import { InputDecimalConfiguration } from './input-decimal.configuration';
|
|
3
|
+
import { CustomInput } from '../custom-input';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputDecimalComponent extends CustomInput<number> {
|
|
6
|
+
elementRef: ElementRef;
|
|
7
|
+
configuration: ModelSignal<InputDecimalConfiguration>;
|
|
8
|
+
digitsInfo: Signal<string>;
|
|
9
|
+
divider: Signal<number>;
|
|
10
|
+
input: ElementRef<HTMLInputElement>;
|
|
11
|
+
inputContainer: ElementRef<HTMLDivElement>;
|
|
12
|
+
setFocus(event: MouseEvent | null): void;
|
|
13
|
+
constructor(elementRef: ElementRef);
|
|
14
|
+
writeValue(obj: number): void | Promise<void>;
|
|
15
|
+
SetValue(obj: number): void;
|
|
16
|
+
SetValueString(): void;
|
|
17
|
+
valueString: string;
|
|
18
|
+
onPaste(event: ClipboardEvent): void;
|
|
19
|
+
onKeyDown(event: KeyboardEvent): Promise<void>;
|
|
20
|
+
HandleNegative(event: KeyboardEvent, selectionStart: number, selectionEnd: number, value: string, atLeft: string, atRight: string): Promise<void>;
|
|
21
|
+
HandleNumber(event: KeyboardEvent, selectionStart: number, selectionEnd: number, value: string, atLeft: string, atRight: string): Promise<void>;
|
|
22
|
+
SanitizeValue(f: string): number;
|
|
23
|
+
HandleEspecial(event: KeyboardEvent, selectionStart: number, selectionEnd: number, value: string, atLeft: string, atRight: string): Promise<void>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDecimalComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputDecimalComponent, "input-decimal, input-number, input-currency, input-percentage", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "configuration": "configurationChange"; }, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
26
|
+
export declare class InputPercentageConfiguration extends InputDecimalConfiguration {
|
|
27
|
+
constructor(prefix?: string, sufix?: string, thousandSeparator?: string);
|
|
28
|
+
}
|
|
@@ -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,39 @@
|
|
|
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
|
+
color: string;
|
|
15
|
+
params: any;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
post: boolean;
|
|
18
|
+
configuration: InputFileConfiguration;
|
|
19
|
+
customLabel: boolean;
|
|
20
|
+
label: string;
|
|
21
|
+
constructor(storageService: StorageService, elementRef: ElementRef, apiUrlProviderService: ApiUrlProviderService);
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
registerOnTouched(fn: any): void;
|
|
24
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
25
|
+
guid: string;
|
|
26
|
+
apiUrl: string;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
lstFiles: Signal<string[]>;
|
|
29
|
+
writeValue(value: string): void;
|
|
30
|
+
Download(value: string): void;
|
|
31
|
+
Sanitize(v: any): string;
|
|
32
|
+
ExtensionIsImage(v: any): boolean;
|
|
33
|
+
lstLoading: string[];
|
|
34
|
+
SetLoading(path: string): void;
|
|
35
|
+
SetNotLoading(path: string): void;
|
|
36
|
+
isLoading(path: string): boolean;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadButtonComponent, never>;
|
|
38
|
+
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; }; "color": { "alias": "color"; "required": false; }; "params": { "alias": "params"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "post": { "alias": "post"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; "customLabel": { "alias": "customLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "value": "valueChange"; }, never, never, false, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, InputSignal } from '@angular/core';
|
|
2
|
+
import { CustomInput } from '../custom-input';
|
|
3
|
+
import { InputFileConfiguration } from './input-file.configuration';
|
|
4
|
+
import { UtilsService } from '../../../services/utils.service';
|
|
5
|
+
import { StorageService } from '../../../services/web/storage.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class InputFileComponent extends CustomInput<File | string> {
|
|
8
|
+
private utilsService;
|
|
9
|
+
storageService: StorageService;
|
|
10
|
+
configuration: InputSignal<InputFileConfiguration>;
|
|
11
|
+
inputContainer: ElementRef<HTMLDivElement>;
|
|
12
|
+
setFocus(event: MouseEvent | null): void;
|
|
13
|
+
constructor(utilsService: UtilsService, storageService: StorageService);
|
|
14
|
+
valueString: string;
|
|
15
|
+
isString: boolean;
|
|
16
|
+
isImage: boolean;
|
|
17
|
+
objectURL: string | null;
|
|
18
|
+
writeValue(obj: File | string): void | Promise<void>;
|
|
19
|
+
SetValue(value: File | string): void;
|
|
20
|
+
SetValueString(): void;
|
|
21
|
+
Upload(): Promise<void>;
|
|
22
|
+
Clear(event: MouseEvent): void;
|
|
23
|
+
Download(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputFileComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "input-file", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
27
|
+
export declare const lstImage: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const lstFluenticons: string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { CustomInput } from '../custom-input';
|
|
3
|
+
import { EnvironmentService } from '../../../services/environment.service';
|
|
4
|
+
import { InputSelectConfiguration } from '../input-select/input.select.configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class InputIconComponent extends CustomInput<string> {
|
|
7
|
+
private environmentService;
|
|
8
|
+
lstIcons: {
|
|
9
|
+
name: string;
|
|
10
|
+
}[];
|
|
11
|
+
input: ElementRef<HTMLInputElement>;
|
|
12
|
+
inputContainer: ElementRef<HTMLDivElement>;
|
|
13
|
+
setFocus(event: MouseEvent | null): void;
|
|
14
|
+
config: InputSelectConfiguration;
|
|
15
|
+
constructor(environmentService: EnvironmentService);
|
|
16
|
+
writeValue(obj: string): void | Promise<void>;
|
|
17
|
+
SetValue(obj: string): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputIconComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputIconComponent, "input-icon", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const lstIconsIonicons: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SIonLabelTemplateDirective<T> {
|
|
4
|
+
template: TemplateRef<LabelTemplateContext<T>>;
|
|
5
|
+
constructor(template: TemplateRef<LabelTemplateContext<T>>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SIonLabelTemplateDirective<any>, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SIonLabelTemplateDirective<any>, "[sionLabelTemplate]", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
export interface LabelTemplateContext<T> {
|
|
10
|
+
/**
|
|
11
|
+
* O valor do item via bindLabel que está sendo renderizado.
|
|
12
|
+
*/
|
|
13
|
+
$implicit: string;
|
|
14
|
+
/**
|
|
15
|
+
* O item selecionado no componente de input select.
|
|
16
|
+
*/
|
|
17
|
+
item: T;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SIonOptionTemplateDirective<T> {
|
|
4
|
+
template: TemplateRef<OptionTemplateContext<T>>;
|
|
5
|
+
constructor(template: TemplateRef<OptionTemplateContext<T>>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SIonOptionTemplateDirective<any>, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SIonOptionTemplateDirective<any>, "[sionOptionTemplate]", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
export interface OptionTemplateContext<T> {
|
|
10
|
+
/**
|
|
11
|
+
* O item naquela opção
|
|
12
|
+
*/
|
|
13
|
+
item: T;
|
|
14
|
+
}
|
package/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SIonPlaceholderTemplateDirective {
|
|
4
|
+
template: TemplateRef<PlaceholderTemplateContext>;
|
|
5
|
+
constructor(template: TemplateRef<PlaceholderTemplateContext>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SIonPlaceholderTemplateDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SIonPlaceholderTemplateDirective, "[sionPlaceholderTemplate]", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
export interface PlaceholderTemplateContext {
|
|
10
|
+
/**
|
|
11
|
+
* Placeholder na configuração do componente de input select.
|
|
12
|
+
*/
|
|
13
|
+
$implicit: string;
|
|
14
|
+
/**
|
|
15
|
+
* Placeholder na configuração do componente de input select.
|
|
16
|
+
*/
|
|
17
|
+
placeholder: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, InputSignal, ModelSignal, Signal, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { ActionSheetButton, AlertButton, AlertInput, InfiniteScrollCustomEvent, IonActionSheet, IonAlert, IonContent, IonModal } from '@ionic/angular';
|
|
4
|
+
import { InputSelectConfiguration, SelectInterfaces } from './input.select.configuration';
|
|
5
|
+
import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
|
|
6
|
+
import { CustomInput } from '../custom-input';
|
|
7
|
+
import { PlaceholderTemplateContext } from './directives/sion-placeholder-template.directive';
|
|
8
|
+
import { OptionTemplateContext } from './directives/sion-option-template.directive';
|
|
9
|
+
import { LabelTemplateContext } from './directives/sion-label-template.directive';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]> implements AfterViewInit {
|
|
12
|
+
private cdr;
|
|
13
|
+
SelectInterfaces: typeof SelectInterfaces;
|
|
14
|
+
/** Items disponíveis no select */
|
|
15
|
+
items: ModelSignal<any[]>;
|
|
16
|
+
/** Configuração do select */
|
|
17
|
+
configuration: InputSignal<InputSelectConfiguration>;
|
|
18
|
+
loadingFromLoader: boolean;
|
|
19
|
+
currentLabel: string | undefined;
|
|
20
|
+
currentItems: any | ItemValue<any>[] | undefined;
|
|
21
|
+
SetCurrentItemLabel(): void;
|
|
22
|
+
lstOptionsItemValue: Signal<ItemValue<any>[]>;
|
|
23
|
+
windowSize: WritableSignal<number>;
|
|
24
|
+
onResize(event: any): void;
|
|
25
|
+
SetInterface(): void;
|
|
26
|
+
interface: WritableSignal<SelectInterfaces>;
|
|
27
|
+
lstOptions: ItemValue<any>[];
|
|
28
|
+
lstOptionsAlert: AlertInput[];
|
|
29
|
+
lstButtonsAlert: AlertButton[];
|
|
30
|
+
lstOptionsActionSheet: ActionSheetButton[];
|
|
31
|
+
infiniteScrollPage: WritableSignal<number>;
|
|
32
|
+
AddPage(event: InfiniteScrollCustomEvent): void;
|
|
33
|
+
UpdateLstOptions(search: string): void;
|
|
34
|
+
UpdateSelected(): void;
|
|
35
|
+
labelTemplate: TemplateRef<LabelTemplateContext<T>>;
|
|
36
|
+
optionTemplate: TemplateRef<OptionTemplateContext<T>>;
|
|
37
|
+
placeholderTemplate: TemplateRef<PlaceholderTemplateContext>;
|
|
38
|
+
inputContainer: ElementRef<HTMLDivElement>;
|
|
39
|
+
inputSelectLabel: ElementRef<HTMLDivElement>;
|
|
40
|
+
setFocus(event: MouseEvent | null): void;
|
|
41
|
+
constructor(cdr: ChangeDetectorRef);
|
|
42
|
+
ngOnInit(): Promise<void>;
|
|
43
|
+
isServiceAtivo: Signal<boolean>;
|
|
44
|
+
somenteAtivos: WritableSignal<boolean>;
|
|
45
|
+
HandleKeyboardEvent(event: KeyboardEvent): void;
|
|
46
|
+
selectedIndex: number | undefined;
|
|
47
|
+
inputSearchBar: ElementRef<HTMLInputElement>;
|
|
48
|
+
searchBarControl: FormControl;
|
|
49
|
+
searchValue: WritableSignal<string>;
|
|
50
|
+
private searchBarSubscription;
|
|
51
|
+
private destroy$;
|
|
52
|
+
destroyed: boolean;
|
|
53
|
+
ngAfterViewInit(): void;
|
|
54
|
+
ClearSearchBar(): void;
|
|
55
|
+
ngOnDestroy(): void;
|
|
56
|
+
writeValue(obj: T | T[]): void | Promise<void>;
|
|
57
|
+
SetValue(obj: T | T[]): void;
|
|
58
|
+
Clear(event: MouseEvent): void;
|
|
59
|
+
Select(itemValue: ItemValue<T>): void;
|
|
60
|
+
selectContent: ElementRef<HTMLDivElement>;
|
|
61
|
+
popover: SIonPopoverComponent;
|
|
62
|
+
modal: IonModal;
|
|
63
|
+
alert: IonAlert;
|
|
64
|
+
actionSheet: IonActionSheet;
|
|
65
|
+
floatingVisible: boolean;
|
|
66
|
+
renderInterface: boolean;
|
|
67
|
+
ionContent: IonContent;
|
|
68
|
+
Present(event: Event): Promise<void>;
|
|
69
|
+
Dismiss(): Promise<void>;
|
|
70
|
+
OnDismiss(): void;
|
|
71
|
+
OnPresent(): void;
|
|
72
|
+
isArray(obj: any): obj is any[];
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectComponent<any>, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent<any>, "input-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; }, ["labelTemplate", "optionTemplate", "placeholderTemplate"], never, false, never>;
|
|
75
|
+
}
|
|
76
|
+
declare class ItemValue<T> {
|
|
77
|
+
label: string;
|
|
78
|
+
value: T;
|
|
79
|
+
selected: boolean;
|
|
80
|
+
item: any;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
}
|
|
83
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { Comparison } from "../../../classes/comparison/comparison";
|
|
6
|
+
import { InputSelectComponent } from "./input-select.component";
|
|
7
|
+
import { Placement } from "@floating-ui/dom";
|
|
8
|
+
export type DefaultModelOptions = {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
export declare enum SelectInterfaces {
|
|
13
|
+
/** Interface padrão do select
|
|
14
|
+
* Popover quando web, Modal quando mobile
|
|
15
|
+
*/
|
|
16
|
+
Dynamic = 0,
|
|
17
|
+
Popover = 0,
|
|
18
|
+
Modal = 1,
|
|
19
|
+
ActionSheet = 2
|
|
20
|
+
}
|
|
21
|
+
export declare class InputSelectConfiguration {
|
|
22
|
+
/** Valor que será setado no formControl */
|
|
23
|
+
bindValue: string | ((obj: any) => any);
|
|
24
|
+
/** Valor que será exibido */
|
|
25
|
+
bindLabel: string | ((obj: any) => string);
|
|
26
|
+
/** Indica se o select pode ser nulo e limpavel */
|
|
27
|
+
clearable: boolean;
|
|
28
|
+
/** Indica se o select pode ser pesquisado */
|
|
29
|
+
searcheable: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Se LoadFrom instanceof HttpService -> Os dados serão carregados do List()
|
|
32
|
+
* Se LoadFrom instanceof Observable -> Os dados serão carregados da função indicada
|
|
33
|
+
* Se LoadFrom instanceof Array -> Os dados serão o array
|
|
34
|
+
*/
|
|
35
|
+
loadFrom?: HttpService | Observable<ViewRetorno> | any[];
|
|
36
|
+
/** Se = true Os valores no form control seráo um array dos items selecionados */
|
|
37
|
+
multiple: boolean;
|
|
38
|
+
/** Desativa os items que estão de acordo com a função */
|
|
39
|
+
disableConditional: ((obj: any) => boolean) | null;
|
|
40
|
+
static Create(options: {
|
|
41
|
+
bindLabel: string | ((obj: any) => string);
|
|
42
|
+
bindValue: string | ((obj: any) => any);
|
|
43
|
+
clearable?: boolean;
|
|
44
|
+
searcheable?: boolean;
|
|
45
|
+
loadFrom?: HttpService | Observable<ViewRetorno> | any[];
|
|
46
|
+
multiple?: boolean;
|
|
47
|
+
vFiltros?: Partial<{
|
|
48
|
+
search: string;
|
|
49
|
+
orderByProperty: string;
|
|
50
|
+
ascending: boolean;
|
|
51
|
+
filter: Comparison[];
|
|
52
|
+
}>;
|
|
53
|
+
disableConditional?: ((obj: any) => boolean);
|
|
54
|
+
useInfiniteScroll?: boolean | undefined;
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
noItensFoundText?: string;
|
|
57
|
+
interface?: SelectInterfaces;
|
|
58
|
+
}): InputSelectConfiguration;
|
|
59
|
+
placeholder: string;
|
|
60
|
+
noItensFoundText: string;
|
|
61
|
+
loader: InputSelectDataLoader;
|
|
62
|
+
loadFromArray: any[];
|
|
63
|
+
loadFromService: HttpService | HttpServiceAtivo;
|
|
64
|
+
loadFromFunction: Observable<any>;
|
|
65
|
+
popoverConfiguration: {
|
|
66
|
+
flip: boolean;
|
|
67
|
+
placement: Placement;
|
|
68
|
+
};
|
|
69
|
+
vFiltros: ViewFiltros | null;
|
|
70
|
+
useInfiniteScroll?: boolean | undefined;
|
|
71
|
+
/** Interface do select */
|
|
72
|
+
interface: SelectInterfaces;
|
|
73
|
+
constructor(
|
|
74
|
+
/** Valor que será setado no formControl */
|
|
75
|
+
bindValue?: string | ((obj: any) => any),
|
|
76
|
+
/** Valor que será exibido */
|
|
77
|
+
bindLabel?: string | ((obj: any) => string),
|
|
78
|
+
/** Indica se o select pode ser nulo e limpavel */
|
|
79
|
+
clearable?: boolean,
|
|
80
|
+
/** Indica se o select pode ser pesquisado */
|
|
81
|
+
searcheable?: boolean,
|
|
82
|
+
/**
|
|
83
|
+
* Se LoadFrom instanceof HttpService -> Os dados serão carregados do List()
|
|
84
|
+
* Se LoadFrom instanceof Observable -> Os dados serão carregados da função indicada
|
|
85
|
+
* Se LoadFrom instanceof Array -> Os dados serão o array
|
|
86
|
+
*/
|
|
87
|
+
loadFrom?: HttpService | Observable<ViewRetorno> | any[],
|
|
88
|
+
/** Se = true Os valores no form control seráo um array dos items selecionados */
|
|
89
|
+
multiple?: boolean,
|
|
90
|
+
/** Aplica os filtros na pesquisa */
|
|
91
|
+
vFiltros?: Partial<{
|
|
92
|
+
/** Aplica uma pesquisa em texto */
|
|
93
|
+
search: string;
|
|
94
|
+
/** Propriedade de ordenação */
|
|
95
|
+
orderByProperty: string;
|
|
96
|
+
/** Orientação de ordenação */
|
|
97
|
+
ascending: boolean;
|
|
98
|
+
/** Filtro */
|
|
99
|
+
filter: Comparison[];
|
|
100
|
+
}> | null,
|
|
101
|
+
/** Desativa os items que estão de acordo com a função */
|
|
102
|
+
disableConditional?: ((obj: any) => boolean) | null);
|
|
103
|
+
}
|
|
104
|
+
export declare class InputSelectDataLoader {
|
|
105
|
+
private lstComponents;
|
|
106
|
+
private configuration;
|
|
107
|
+
/** Valor que será setado no formControl */
|
|
108
|
+
bindValue: ((obj: any) => any) | null;
|
|
109
|
+
/** Valor que será exibido */
|
|
110
|
+
bindLabel: ((obj: any) => string) | null;
|
|
111
|
+
constructor(configuration: InputSelectConfiguration);
|
|
112
|
+
AddComponent(component: InputSelectComponent): void;
|
|
113
|
+
GetLabel(value: any): string;
|
|
114
|
+
isLoaded: boolean;
|
|
115
|
+
error: boolean;
|
|
116
|
+
Refresh(items?: any[]): Promise<void>;
|
|
117
|
+
CheckForInfiniteScroll(): void;
|
|
118
|
+
items: any[];
|
|
119
|
+
Load(): Promise<void>;
|
|
120
|
+
}
|
|
121
|
+
export declare function BindValueFactory(configuration: InputSelectConfiguration): ((obj: any) => any);
|
|
122
|
+
export declare function BindLabelFactory(configuration: InputSelectConfiguration): ((obj: any) => string);
|