@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.
- package/README.md +24 -0
- 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 +32 -0
- package/esm2022/lib/classes/filters/view-filtros.mjs +18 -0
- package/esm2022/lib/classes/inputs/table-field-form-builder.mjs +10 -0
- package/esm2022/lib/classes/inputs/table-field.mjs +63 -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 +94 -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 +110 -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 +206 -0
- package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +182 -0
- package/esm2022/lib/components/default/default-view/abstract-view.mjs +18 -0
- package/esm2022/lib/components/default/default-view/default-view.component.mjs +51 -0
- package/esm2022/lib/components/default/default-view/header-view/header-view.component.mjs +72 -0
- package/esm2022/lib/components/default/default-view/view.mjs +170 -0
- package/esm2022/lib/components/default/default.module.mjs +87 -0
- package/esm2022/lib/components/default-page/default.page.mjs +73 -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 +49 -0
- package/esm2022/lib/components/drawer/drawer.component.mjs +117 -0
- package/esm2022/lib/components/drawer/menu.mjs +15 -0
- package/esm2022/lib/components/filter/filter.component.mjs +124 -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 +77 -0
- package/esm2022/lib/components/inputs/custom-signal-input.mjs +74 -0
- package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +43 -0
- package/esm2022/lib/components/inputs/input-bool/input-bool.configuration.mjs +16 -0
- package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +487 -0
- package/esm2022/lib/components/inputs/input-configuration.mjs +2 -0
- package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +93 -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 +119 -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 +269 -0
- package/esm2022/lib/components/inputs/input-decimal/input-decimal.configuration.mjs +45 -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 +91 -0
- package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +128 -0
- package/esm2022/lib/components/inputs/input-file/input-file.configuration.mjs +11 -0
- package/esm2022/lib/components/inputs/input-loading/input-loading.component.mjs +16 -0
- package/esm2022/lib/components/inputs/input-provider-factory.mjs +15 -0
- package/esm2022/lib/components/inputs/input-select/ISelect.mjs +11 -0
- package/esm2022/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.mjs +42 -0
- package/esm2022/lib/components/inputs/input-select/input-select-option/input-select-option.component.mjs +46 -0
- package/esm2022/lib/components/inputs/input-select/input-select-template.directive.mjs +16 -0
- package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +322 -0
- package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +164 -0
- package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +50 -0
- package/esm2022/lib/components/inputs/input-string/input-string.configuration.mjs +18 -0
- package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +47 -0
- package/esm2022/lib/components/inputs/input-type.mjs +18 -0
- package/esm2022/lib/components/inputs/input-validators.mjs +90 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +101 -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 +93 -0
- package/esm2022/lib/components/main-content/main-content.component.mjs +62 -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 +29 -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 +106 -0
- package/esm2022/lib/guards/token.interceptor.mjs +25 -0
- package/esm2022/lib/index.mjs +172 -0
- package/esm2022/lib/pipes/secure.pipe.mjs +42 -0
- package/esm2022/lib/services/auth.service.mjs +149 -0
- package/esm2022/lib/services/environment.service.mjs +26 -0
- package/esm2022/lib/services/generics.service.mjs +84 -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 +149 -0
- package/esm2022/lib/services/web/api-url-provider.service.mjs +29 -0
- package/esm2022/lib/services/web/http.ativo.service.mjs +55 -0
- package/esm2022/lib/services/web/http.service.mjs +175 -0
- package/esm2022/lib/services/web/storage.service.mjs +115 -0
- package/esm2022/public-api.mjs +5 -0
- package/esm2022/sapphire-ion-framework.mjs +5 -0
- package/fesm2022/sapphire-ion-framework.mjs +6080 -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/lib/classes/credentials.d.ts +5 -0
- package/lib/classes/environment.d.ts +13 -0
- package/lib/classes/filters/view-filtros.d.ts +10 -0
- package/lib/classes/inputs/table-field-form-builder.d.ts +5 -0
- package/lib/classes/inputs/table-field.d.ts +19 -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 +42 -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 +37 -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 +71 -0
- package/lib/components/default/default-table/th-filter/th-filter.component.d.ts +20 -0
- package/lib/components/default/default-view/abstract-view.d.ts +16 -0
- package/lib/components/default/default-view/default-view.component.d.ts +26 -0
- package/lib/components/default/default-view/header-view/header-view.component.d.ts +25 -0
- package/lib/components/default/default-view/view.d.ts +55 -0
- package/lib/components/default/default.module.d.ts +28 -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 +23 -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 +36 -0
- package/lib/components/inputs/custom-signal-input.d.ts +38 -0
- package/lib/components/inputs/input-bool/input-bool.component.d.ts +19 -0
- package/lib/components/inputs/input-bool/input-bool.configuration.d.ts +17 -0
- package/lib/components/inputs/input-color/input-color.component.d.ts +80 -0
- package/lib/components/inputs/input-configuration.d.ts +8 -0
- package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +24 -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 +30 -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 +41 -0
- package/lib/components/inputs/input-decimal/input-decimal.configuration.d.ts +25 -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 +36 -0
- package/lib/components/inputs/input-file/input-file.component.d.ts +39 -0
- package/lib/components/inputs/input-file/input-file.configuration.d.ts +11 -0
- package/lib/components/inputs/input-loading/input-loading.component.d.ts +7 -0
- package/lib/components/inputs/input-provider-factory.d.ts +4 -0
- package/lib/components/inputs/input-select/ISelect.d.ts +21 -0
- package/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.d.ts +18 -0
- package/lib/components/inputs/input-select/input-select-option/input-select-option.component.d.ts +24 -0
- package/lib/components/inputs/input-select/input-select-template.directive.d.ts +8 -0
- package/lib/components/inputs/input-select/input-select.component.d.ts +66 -0
- package/lib/components/inputs/input-select/input.select.configuration.d.ts +87 -0
- package/lib/components/inputs/input-string/input-string.component.d.ts +19 -0
- package/lib/components/inputs/input-string/input-string.configuration.d.ts +14 -0
- package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +18 -0
- package/lib/components/inputs/input-type.d.ts +16 -0
- package/lib/components/inputs/input-validators.d.ts +19 -0
- package/lib/components/inputs/inputs.module.d.ts +28 -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 +28 -0
- package/lib/components/main-content/main-content.component.d.ts +17 -0
- package/lib/components/stepper/step/step.component.d.ts +15 -0
- package/lib/components/stepper/stepper.component.d.ts +17 -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 +11 -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 +108 -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/generics.service.d.ts +22 -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 +36 -0
- package/lib/services/web/api-url-provider.service.d.ts +13 -0
- package/lib/services/web/http.ativo.service.d.ts +31 -0
- package/lib/services/web/http.service.d.ts +51 -0
- package/lib/services/web/storage.service.d.ts +25 -0
- package/package.json +41 -0
- package/public-api.d.ts +1 -0
- package/themes/compiled-styles.scss +2291 -0
- package/themes/components/_inputs_new/input-string/input-string.component.scss +0 -0
- package/themes/components/_inputs_new/inputs.scss +15 -0
- package/themes/components/carousel/carousel-image/carousel-image.component.scss +0 -0
- package/themes/components/carousel/carousel-item/carousel-item.component.scss +0 -0
- package/themes/components/carousel/carousel.component.scss +9 -0
- package/themes/components/content-block/content-block.component.scss +0 -0
- package/themes/components/default/default-list/default-list.component.scss +0 -0
- package/themes/components/default/default-list/header-list/header-list.component.scss +0 -0
- package/themes/components/default/default-pagination/default-pagination.component.scss +22 -0
- package/themes/components/default/default-table/default-table.component.scss +33 -0
- package/themes/components/default/default-table/th-filter/th-filter.component.scss +24 -0
- package/themes/components/default/default-view/default-view.component.scss +5 -0
- package/themes/components/default/default-view/header-view/header-view.component.scss +7 -0
- package/themes/components/default-page/default.page.scss +4 -0
- package/themes/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.scss +9 -0
- package/themes/components/drawer/default-drawer-end/default-drawer-end.component.scss +0 -0
- package/themes/components/drawer/drawer-group/drawer-group.component.scss +22 -0
- package/themes/components/drawer/drawer.component.scss +46 -0
- package/themes/components/filter/filter.component.scss +0 -0
- package/themes/components/http-responses-pages/forbidden-403/forbidden-403.component.scss +19 -0
- package/themes/components/image/image.component.scss +0 -0
- package/themes/components/info-popover/info-popover.component.scss +3 -0
- package/themes/components/inputs/input-bool/input-bool.component.scss +14 -0
- package/themes/components/inputs/input-color/input-color.component.scss +48 -0
- package/themes/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.scss +0 -0
- package/themes/components/inputs/input-date/input-date.component.scss +41 -0
- package/themes/components/inputs/input-decimal/input-decimal.component.scss +44 -0
- package/themes/components/inputs/input-file/download-button/download-button.component.scss +3 -0
- package/themes/components/inputs/input-file/input-file.component.scss +3 -0
- package/themes/components/inputs/input-loading/input-loading.component.scss +0 -0
- package/themes/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.scss +0 -0
- package/themes/components/inputs/input-select/input-select-option/input-select-option.component.scss +0 -0
- package/themes/components/inputs/input-select/input-select.component.scss +28 -0
- package/themes/components/inputs/input-string/input-string.component.scss +0 -0
- package/themes/components/inputs/input-textarea/input-textarea.component.scss +0 -0
- package/themes/components/inputs/inputs.scss +67 -0
- package/themes/components/loading/loading.component.scss +0 -0
- package/themes/components/login/login-admin/login-admin.component.scss +3 -0
- package/themes/components/login/login.component.scss +40 -0
- package/themes/components/main-content/main-content.component.scss +9 -0
- package/themes/components/stepper/step/step.component.scss +48 -0
- package/themes/components/stepper/stepper.component.scss +0 -0
- package/themes/components/tabs/tab/tab.component.scss +0 -0
- package/themes/components/tabs/tabs/tabs.component.scss +23 -0
- package/themes/components/text-tooltip/text-tooltip.component.scss +0 -0
- package/themes/components/tooltip/tooltip.component.scss +23 -0
- package/themes/styles/components.scss +52 -0
- package/themes/styles/core.styles.scss +409 -0
- package/themes/styles/ionic/ion-action-sheet.scss +8 -0
- package/themes/styles/ionic/ion-alert.scss +9 -0
- package/themes/styles/ionic/ion-button.scss +3 -0
- package/themes/styles/ionic/ion-card.scss +3 -0
- package/themes/styles/ionic/ion-content.scss +3 -0
- package/themes/styles/ionic/ion-datetime.scss +6 -0
- package/themes/styles/ionic/ion-item.scss +10 -0
- package/themes/styles/ionic/ion-list.scss +4 -0
- package/themes/styles/ionic/ion-modal.scss +8 -0
- package/themes/styles/ionic/ion-popover.scss +31 -0
- package/themes/styles/ionic/ion-progress-bar.scss +3 -0
- package/themes/styles/ionic/ion-searchbar.scss +4 -0
- package/themes/styles/ionic/ion-toast.scss +14 -0
- package/themes/styles/ionic.scss +13 -0
- package/themes/styles/login-default.scss +87 -0
- package/themes/styles/mixins.scss +467 -0
- package/themes/styles/styles.scss +1 -0
- package/themes/styles/translucid.scss +21 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ActionSheetController } from '@ionic/angular';
|
|
2
|
+
import { InputFileConfiguration } from '../components/inputs/input-file/input-file.configuration';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UtilsService {
|
|
5
|
+
private actionSheetController;
|
|
6
|
+
constructor(actionSheetController: ActionSheetController);
|
|
7
|
+
/** Retorna um array de arquivos de acordo com o tipo de configutação */
|
|
8
|
+
SelectFile(configuration: InputFileConfiguration): Promise<File[]>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
11
|
+
}
|
|
12
|
+
export declare class Utils {
|
|
13
|
+
/** Converte de unix para Date object */
|
|
14
|
+
static UNIXToDate(unix_timestamp: number): Date;
|
|
15
|
+
/**
|
|
16
|
+
* @param DateStr - Date on ISO format, e.g:
|
|
17
|
+
* [ 2010-10-05T14:48:00.000Z ]
|
|
18
|
+
* @returns Date on format DD/MM/YYYY
|
|
19
|
+
*/
|
|
20
|
+
static DateISOToDDMMYYYYHHMM(iso: string, onInvalidDateString?: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* @param iso - Date on ISO format, e.g:
|
|
23
|
+
* [ 2010-10-05T14:48:00.000Z ]
|
|
24
|
+
* @returns Date on format DD/MM/YYYY
|
|
25
|
+
*/
|
|
26
|
+
static DateISOToDDMMYYYY(iso: string, onInvalidDateString?: string): string;
|
|
27
|
+
static GenerateGUID(): string;
|
|
28
|
+
/**
|
|
29
|
+
* @param file: base64 | Blob
|
|
30
|
+
*/
|
|
31
|
+
static DownloadFile(file: string | Blob, fileName: string): Promise<void>;
|
|
32
|
+
static Base64ToBlob(base64: string): Promise<Blob>;
|
|
33
|
+
}
|
|
34
|
+
export declare function Search<T = any>(items: T[], Search: string, bindLabel: ((obj: T) => string)): T[];
|
|
35
|
+
export declare function Timeout(timeout: number): Promise<void>;
|
|
36
|
+
export declare const INT_MAX = 2147483646;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnvironmentService } from '../environment.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ApiUrlProviderService {
|
|
4
|
+
private coreService;
|
|
5
|
+
constructor(coreService: EnvironmentService);
|
|
6
|
+
_apiUrl: string;
|
|
7
|
+
get apiUrl(): string;
|
|
8
|
+
set apiUrl(value: string);
|
|
9
|
+
private _production;
|
|
10
|
+
get production(): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiUrlProviderService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiUrlProviderService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NavController } from '@ionic/angular';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { HttpService, ViewRetorno } from './http.service';
|
|
6
|
+
import { ApiUrlProviderService } from './api-url-provider.service';
|
|
7
|
+
import { GenericService } from '../generics.service';
|
|
8
|
+
import { ViewFiltros } from '../../classes/filters/view-filtros';
|
|
9
|
+
import { TableField } from '../../classes/inputs/table-field';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare abstract class HttpServiceAtivo<V = any> extends HttpService<V> {
|
|
12
|
+
protected http: HttpClient;
|
|
13
|
+
protected fb: FormBuilder;
|
|
14
|
+
protected genericService: GenericService;
|
|
15
|
+
protected navController: NavController;
|
|
16
|
+
protected apiUrlProviderService: ApiUrlProviderService;
|
|
17
|
+
constructor(http: HttpClient, fb: FormBuilder, genericService: GenericService, navController: NavController, apiUrlProviderService: ApiUrlProviderService);
|
|
18
|
+
/**
|
|
19
|
+
* Troca o status de ativo da entidade
|
|
20
|
+
*/
|
|
21
|
+
Ativar(id: number): Observable<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Lista todos os dados ativos
|
|
24
|
+
* @param vFilter
|
|
25
|
+
*/
|
|
26
|
+
ListAtivo<T = ViewRetorno>(vFilter?: ViewFiltros): Observable<T>;
|
|
27
|
+
/** Table Field padrão de ativo */
|
|
28
|
+
get defaultAtivo(): TableField;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpServiceAtivo<any>, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpServiceAtivo<any>>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { FormBuilder } from '@angular/forms';
|
|
4
|
+
import { NavController } from '@ionic/angular';
|
|
5
|
+
import { ApiUrlProviderService } from './api-url-provider.service';
|
|
6
|
+
import { HttpServiceAtivo } from './http.ativo.service';
|
|
7
|
+
import { GenericService } from '../../services/generics.service';
|
|
8
|
+
import { ViewFiltros } from '../../classes/filters/view-filtros';
|
|
9
|
+
import { TableField } from '../../classes/inputs/table-field';
|
|
10
|
+
import { View } from '../../components/default/default-view/view';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare abstract class HttpService<V = any> {
|
|
13
|
+
protected http: HttpClient;
|
|
14
|
+
protected fb: FormBuilder;
|
|
15
|
+
protected genericService: GenericService;
|
|
16
|
+
protected navController: NavController;
|
|
17
|
+
protected apiUrlProviderService: ApiUrlProviderService;
|
|
18
|
+
abstract route: string;
|
|
19
|
+
abstract title: string;
|
|
20
|
+
constructor(http: HttpClient, fb: FormBuilder, genericService: GenericService, navController: NavController, apiUrlProviderService: ApiUrlProviderService);
|
|
21
|
+
get fullRoute(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Retorna os dados de acordo com os filtros
|
|
24
|
+
* @param vFilter Filtra os dados (Pesquisa, Paginação e IComparison)
|
|
25
|
+
*/
|
|
26
|
+
List(vFilter?: ViewFiltros): Observable<ViewRetorno<V>>;
|
|
27
|
+
/** Retorna o dado da tabela associada com a rota com o id indicado
|
|
28
|
+
* @param id id do dado
|
|
29
|
+
*/
|
|
30
|
+
Get(id: number): Observable<V>;
|
|
31
|
+
/** Salva as alterações no dado recebido */
|
|
32
|
+
Save<T = number>(obj: any | V, view?: View<HttpService | HttpServiceAtivo>): Observable<T>;
|
|
33
|
+
/** Exclui a entidade */
|
|
34
|
+
Delete(id: number): Observable<void>;
|
|
35
|
+
/** Retorna todos os dados */
|
|
36
|
+
Load(vFiltros?: ViewFiltros): Promise<ViewRetorno<V>>;
|
|
37
|
+
get lstTableFields(): TableField[];
|
|
38
|
+
get lstTableFieldsView(): TableField[];
|
|
39
|
+
get defaultId(): TableField;
|
|
40
|
+
get defaultIdEmpresa(): TableField;
|
|
41
|
+
private get hasFileForm();
|
|
42
|
+
protected _Save(formData: FormData, view: View<HttpService | HttpServiceAtivo>): Observable<any | void>;
|
|
43
|
+
private RedirectRoute;
|
|
44
|
+
private FilesToForm;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpService<any>, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService<any>>;
|
|
47
|
+
}
|
|
48
|
+
export declare class ViewRetorno<T = any> {
|
|
49
|
+
lstDados: T[];
|
|
50
|
+
total: number;
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ApiUrlProviderService } from './api-url-provider.service';
|
|
4
|
+
import { GenericService } from '../generics.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StorageService {
|
|
7
|
+
private http;
|
|
8
|
+
private apiUrlProviderService;
|
|
9
|
+
private genericService;
|
|
10
|
+
constructor(http: HttpClient, apiUrlProviderService: ApiUrlProviderService, genericService: GenericService);
|
|
11
|
+
private currentlyDownloading;
|
|
12
|
+
GetProgress(file: string): number;
|
|
13
|
+
StartDownload(file: string, params?: any, post?: boolean): Download;
|
|
14
|
+
private HandleDownload;
|
|
15
|
+
static SanitizeFileName(v: any): string;
|
|
16
|
+
GetFile(fileUrl: string, params?: any, post?: boolean): Observable<any>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
19
|
+
}
|
|
20
|
+
export declare class Download {
|
|
21
|
+
file: string;
|
|
22
|
+
requestProgess: Observable<any>;
|
|
23
|
+
progress: number;
|
|
24
|
+
constructor(file: string);
|
|
25
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sapphire-ion/framework",
|
|
3
|
+
"version": "0.30.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": "^18.2.8",
|
|
7
|
+
"@angular/core": "^18.2.8",
|
|
8
|
+
"@angular/forms": "^18.2.8",
|
|
9
|
+
"@ionic/angular": "^8.3.1",
|
|
10
|
+
"@maskito/angular": "^3.1.2",
|
|
11
|
+
"@maskito/core": "^3.1.2",
|
|
12
|
+
"@maskito/kit": "^3.1.0",
|
|
13
|
+
"@ngx-translate/core": "^16.0.3",
|
|
14
|
+
"jwt-decode": "^4.0.0",
|
|
15
|
+
"@capawesome/capacitor-file-picker": "^7.0.1",
|
|
16
|
+
"@capacitor/preferences": "^7.0.0",
|
|
17
|
+
"@capacitor/clipboard": "^7.0.0",
|
|
18
|
+
"@capacitor/camera": "^7.0.0",
|
|
19
|
+
"@types/node": "^20.11.2",
|
|
20
|
+
"ts-node": "^8.3.0",
|
|
21
|
+
"moment": "^2.30.1",
|
|
22
|
+
"typescript": "~5.5.3"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"tslib": "^2.3.0"
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"module": "fesm2022/sapphire-ion-framework.mjs",
|
|
29
|
+
"typings": "index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
"./package.json": {
|
|
32
|
+
"default": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
|
+
"esm2022": "./esm2022/sapphire-ion-framework.mjs",
|
|
37
|
+
"esm": "./esm2022/sapphire-ion-framework.mjs",
|
|
38
|
+
"default": "./fesm2022/sapphire-ion-framework.mjs"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/index';
|