@dev-tcloud/tcloud-ui 2.4.14 → 4.0.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 +2 -1
- package/esm2022/dev-tcloud-tcloud-ui.mjs +4 -4
- package/esm2022/lib/_directives/align/align.directive.mjs +42 -42
- package/esm2022/lib/_directives/currency/currency.directive.mjs +160 -160
- package/esm2022/lib/_directives/directives.module.mjs +40 -40
- package/esm2022/lib/_directives/el-copy/el-copy.directive.mjs +68 -68
- package/esm2022/lib/_directives/hover-parent/hover-parent.directive.mjs +58 -58
- package/esm2022/lib/_directives/tooltip/tooltip.directive.mjs +151 -151
- package/esm2022/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-body/tcloud-ui-accordion-body.component.mjs +35 -35
- package/esm2022/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-title/tcloud-ui-accordion-title.component.mjs +54 -54
- package/esm2022/lib/_modules/tcloud-ui-accordion/services/tcloud-ui-accordion.service.mjs +38 -38
- package/esm2022/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.component.mjs +75 -75
- package/esm2022/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.module.mjs +35 -35
- package/esm2022/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.component.mjs +87 -87
- package/esm2022/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.module.mjs +32 -32
- package/esm2022/lib/_modules/tcloud-ui-data-list/services/data-list.service.mjs +38 -38
- package/esm2022/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list-option/tcloud-ui-data-list-option.component.mjs +65 -65
- package/esm2022/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.component.mjs +317 -317
- package/esm2022/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.mjs +2 -2
- package/esm2022/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.module.mjs +37 -37
- package/esm2022/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.component.mjs +440 -440
- package/esm2022/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.module.mjs +32 -32
- package/esm2022/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.component.mjs +320 -320
- package/esm2022/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.module.mjs +40 -40
- package/esm2022/lib/_modules/tcloud-ui-filters/components/range-date/range-date.component.mjs +213 -213
- package/esm2022/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.mjs +537 -534
- package/esm2022/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.mjs +19 -19
- package/esm2022/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.module.mjs +45 -45
- package/esm2022/lib/_modules/tcloud-ui-input-password/tcloud-ui-input-password.component.mjs +142 -142
- package/esm2022/lib/_modules/tcloud-ui-input-password/tcloud-ui-input-password.module.mjs +32 -32
- package/esm2022/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.component.mjs +66 -66
- package/esm2022/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.module.mjs +32 -32
- package/esm2022/lib/_modules/tcloud-ui-label-token/tcloud-ui-label-token.component.mjs +36 -36
- package/esm2022/lib/_modules/tcloud-ui-label-token/tcloud-ui-label-token.module.mjs +31 -31
- package/esm2022/lib/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.component.mjs +93 -93
- package/esm2022/lib/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.module.mjs +25 -25
- package/esm2022/lib/_modules/tcloud-ui-line-step-title/tcloud-ui-line-step-title.component.mjs +43 -43
- package/esm2022/lib/_modules/tcloud-ui-line-step-title/tcloud-ui-line-step-title.mjs +1 -1
- package/esm2022/lib/_modules/tcloud-ui-line-step-title/tcloud-ui-line-step-title.module.mjs +19 -19
- package/esm2022/lib/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.component.mjs +65 -65
- package/esm2022/lib/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.module.mjs +25 -25
- package/esm2022/lib/_modules/tcloud-ui-loading/components/tcloud-ui-cubes/tcloud-ui-cubes.component.mjs +11 -11
- package/esm2022/lib/_modules/tcloud-ui-loading/tcloud-ui-loading.component.mjs +29 -29
- package/esm2022/lib/_modules/tcloud-ui-loading/tcloud-ui-loading.module.mjs +21 -21
- package/esm2022/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-body/tcloud-ui-modal-body.component.mjs +14 -14
- package/esm2022/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-footer/tcloud-ui-modal-footer.component.mjs +61 -61
- package/esm2022/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-header/tcloud-ui-modal-header.component.mjs +24 -24
- package/esm2022/lib/_modules/tcloud-ui-modal/services/tcloud-modal.service.mjs +63 -63
- package/esm2022/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.mjs +203 -203
- package/esm2022/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.mjs +1 -1
- package/esm2022/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.module.mjs +47 -47
- package/esm2022/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.component.mjs +152 -152
- package/esm2022/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.module.mjs +28 -28
- package/esm2022/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.component.mjs +167 -167
- package/esm2022/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.module.mjs +28 -28
- package/esm2022/lib/_modules/tcloud-ui-multiples-values/tcloud-ui-multiples-values.component.mjs +348 -348
- package/esm2022/lib/_modules/tcloud-ui-multiples-values/tcloud-ui-multiples-values.module.mjs +36 -36
- package/esm2022/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.component.mjs +20 -20
- package/esm2022/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.module.mjs +25 -25
- package/esm2022/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.component.mjs +99 -99
- package/esm2022/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.module.mjs +25 -25
- package/esm2022/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.mjs +165 -161
- package/esm2022/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.module.mjs +21 -21
- package/esm2022/lib/_modules/tcloud-ui-reorder-items/tcloud-ui-reorder-items.component.mjs +105 -105
- package/esm2022/lib/_modules/tcloud-ui-reorder-items/tcloud-ui-reorder-items.mjs +1 -1
- package/esm2022/lib/_modules/tcloud-ui-reorder-items/tcloud-ui-reorder-items.module.mjs +24 -24
- package/esm2022/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.component.mjs +46 -46
- package/esm2022/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.module.mjs +25 -25
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-content/tcloud-ui-tab-content.component.mjs +36 -36
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-head/tcloud-ui-tab-head.component.mjs +85 -85
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-subtitle/tcloud-ui-tab-subtitle.component.mjs +69 -69
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-title/tcloud-ui-tab-title.component.mjs +71 -71
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/services/tab-menu.service.mjs +104 -104
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.component.mjs +64 -64
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.mjs +1 -1
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.module.mjs +45 -45
- package/esm2022/lib/_modules/tcloud-ui-table/tcloud-ui-table.component.mjs +21 -21
- package/esm2022/lib/_modules/tcloud-ui-table/tcloud-ui-table.module.mjs +25 -25
- package/esm2022/lib/_modules/tcloud-ui-welcome/tcloud-ui-welcome.component.mjs +37 -37
- package/esm2022/lib/_modules/tcloud-ui-welcome/tcloud-ui-welcome.module.mjs +25 -25
- package/esm2022/lib/_pipes/array-to-text.mjs +29 -29
- package/esm2022/lib/_pipes/bytes.mjs +31 -31
- package/esm2022/lib/_pipes/cnpj.mjs +37 -37
- package/esm2022/lib/_pipes/cpf.mjs +37 -37
- package/esm2022/lib/_pipes/datebr.mjs +102 -102
- package/esm2022/lib/_pipes/index.mjs +8 -8
- package/esm2022/lib/_pipes/monthname.mjs +25 -25
- package/esm2022/lib/_pipes/respective.mjs +73 -73
- package/esm2022/lib/_pipes/statusinfo.mjs +78 -78
- package/esm2022/lib/_pipes/tcloud-pipes.module.mjs +75 -75
- package/esm2022/lib/_services/loading-transitions.service.mjs +52 -52
- package/esm2022/lib/_services/search-in-object.service.mjs +99 -99
- package/esm2022/lib/tcloud-ui.module.mjs +223 -223
- package/esm2022/public-api.mjs +107 -107
- package/fesm2022/dev-tcloud-tcloud-ui.mjs +6284 -6277
- package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/_directives/align/align.directive.d.ts +13 -13
- package/lib/_directives/currency/currency.directive.d.ts +24 -24
- package/lib/_directives/directives.module.d.ts +11 -11
- package/lib/_directives/el-copy/el-copy.directive.d.ts +13 -13
- package/lib/_directives/hover-parent/hover-parent.directive.d.ts +15 -15
- package/lib/_directives/tooltip/tooltip.directive.d.ts +18 -18
- package/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-body/tcloud-ui-accordion-body.component.d.ts +11 -11
- package/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-title/tcloud-ui-accordion-title.component.d.ts +20 -20
- package/lib/_modules/tcloud-ui-accordion/services/tcloud-ui-accordion.service.d.ts +20 -20
- package/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.component.d.ts +27 -27
- package/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.module.d.ts +10 -10
- package/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.component.d.ts +27 -27
- package/lib/_modules/tcloud-ui-choice-issues/tcloud-ui-choice-issues.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-data-list/services/data-list.service.d.ts +20 -20
- package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list-option/tcloud-ui-data-list-option.component.d.ts +23 -23
- package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.component.d.ts +74 -74
- package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.d.ts +5 -5
- package/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.module.d.ts +10 -10
- package/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.component.d.ts +59 -59
- package/lib/_modules/tcloud-ui-datepicker/tcloud-ui-datepicker.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.component.d.ts +52 -52
- package/lib/_modules/tcloud-ui-datepicker-time/tcloud-ui-datepicker-time.module.d.ts +11 -11
- package/lib/_modules/tcloud-ui-filters/components/range-date/range-date.component.d.ts +41 -41
- package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.d.ts +64 -63
- package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.d.ts +40 -40
- package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.module.d.ts +12 -12
- package/lib/_modules/tcloud-ui-input-password/tcloud-ui-input-password.component.d.ts +36 -36
- package/lib/_modules/tcloud-ui-input-password/tcloud-ui-input-password.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.component.d.ts +28 -28
- package/lib/_modules/tcloud-ui-input-search/tcloud-ui-input-search.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-label-token/tcloud-ui-label-token.component.d.ts +14 -14
- package/lib/_modules/tcloud-ui-label-token/tcloud-ui-label-token.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.component.d.ts +28 -28
- package/lib/_modules/tcloud-ui-line-step-circle/tcloud-ui-line-step-circle.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-line-step-title/tcloud-ui-line-step-title.component.d.ts +12 -12
- package/lib/_modules/tcloud-ui-line-step-title/tcloud-ui-line-step-title.d.ts +5 -5
- package/lib/_modules/tcloud-ui-line-step-title/tcloud-ui-line-step-title.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.component.d.ts +17 -17
- package/lib/_modules/tcloud-ui-linha-logo/tcloud-ui-linha-logo.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-loading/components/tcloud-ui-cubes/tcloud-ui-cubes.component.d.ts +5 -5
- package/lib/_modules/tcloud-ui-loading/tcloud-ui-loading.component.d.ts +11 -11
- package/lib/_modules/tcloud-ui-loading/tcloud-ui-loading.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-body/tcloud-ui-modal-body.component.d.ts +8 -8
- package/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-footer/tcloud-ui-modal-footer.component.d.ts +26 -26
- package/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-header/tcloud-ui-modal-header.component.d.ts +12 -12
- package/lib/_modules/tcloud-ui-modal/services/tcloud-modal.service.d.ts +28 -28
- package/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.d.ts +68 -68
- package/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.d.ts +4 -4
- package/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.module.d.ts +12 -12
- package/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.component.d.ts +39 -39
- package/lib/_modules/tcloud-ui-multi-input/tcloud-ui-multi-input.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.component.d.ts +39 -39
- package/lib/_modules/tcloud-ui-multi-select/tcloud-ui-multi-select.module.d.ts +9 -9
- package/lib/_modules/tcloud-ui-multiples-values/tcloud-ui-multiples-values.component.d.ts +69 -69
- package/lib/_modules/tcloud-ui-multiples-values/tcloud-ui-multiples-values.module.d.ts +10 -10
- package/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.component.d.ts +8 -8
- package/lib/_modules/tcloud-ui-not-found/tcloud-ui-not-found.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.component.d.ts +29 -29
- package/lib/_modules/tcloud-ui-number-step/tcloud-ui-number-step.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.d.ts +31 -29
- package/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-reorder-items/tcloud-ui-reorder-items.component.d.ts +17 -17
- package/lib/_modules/tcloud-ui-reorder-items/tcloud-ui-reorder-items.d.ts +4 -4
- package/lib/_modules/tcloud-ui-reorder-items/tcloud-ui-reorder-items.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.component.d.ts +13 -13
- package/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-content/tcloud-ui-tab-content.component.d.ts +15 -15
- package/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-head/tcloud-ui-tab-head.component.d.ts +24 -24
- package/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-subtitle/tcloud-ui-tab-subtitle.component.d.ts +21 -21
- package/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-title/tcloud-ui-tab-title.component.d.ts +22 -22
- package/lib/_modules/tcloud-ui-tab-menu/services/tab-menu.service.d.ts +38 -38
- package/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.component.d.ts +23 -23
- package/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.d.ts +4 -4
- package/lib/_modules/tcloud-ui-tab-menu/tcloud-ui-tab-menu.module.d.ts +12 -12
- package/lib/_modules/tcloud-ui-table/tcloud-ui-table.component.d.ts +10 -10
- package/lib/_modules/tcloud-ui-table/tcloud-ui-table.module.d.ts +8 -8
- package/lib/_modules/tcloud-ui-welcome/tcloud-ui-welcome.component.d.ts +17 -17
- package/lib/_modules/tcloud-ui-welcome/tcloud-ui-welcome.module.d.ts +8 -8
- package/lib/_pipes/array-to-text.d.ts +8 -8
- package/lib/_pipes/bytes.d.ts +8 -8
- package/lib/_pipes/cnpj.d.ts +9 -9
- package/lib/_pipes/cpf.d.ts +9 -9
- package/lib/_pipes/datebr.d.ts +11 -11
- package/lib/_pipes/index.d.ts +8 -8
- package/lib/_pipes/monthname.d.ts +8 -8
- package/lib/_pipes/respective.d.ts +11 -11
- package/lib/_pipes/statusinfo.d.ts +15 -15
- package/lib/_pipes/tcloud-pipes.module.d.ts +15 -15
- package/lib/_services/loading-transitions.service.d.ts +16 -16
- package/lib/_services/search-in-object.service.d.ts +19 -19
- package/lib/tcloud-ui.module.d.ts +33 -33
- package/package.json +3 -3
- package/public-api.d.ts +76 -76
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { Component, ViewChild, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./../../services/tcloud-modal.service";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
import * as i3 from "@angular/forms";
|
|
6
|
-
export class TCloudUiModalFooterComponent {
|
|
7
|
-
constructor(tcloudModalService) {
|
|
8
|
-
this.tcloudModalService = tcloudModalService;
|
|
9
|
-
this.btnCloseText = 'Fechar';
|
|
10
|
-
this.btnCancelText = 'Cancelar';
|
|
11
|
-
this.btnConfirmText = 'Confirmar';
|
|
12
|
-
this.txt_value = '';
|
|
13
|
-
this.param_confirm = {};
|
|
14
|
-
this.loading = false;
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
this.txt_value = '';
|
|
18
|
-
this.param_confirm = this.tcloudModalService.getParamConfirm();
|
|
19
|
-
this.toStateLoading();
|
|
20
|
-
}
|
|
21
|
-
toClose() {
|
|
22
|
-
this.tcloudModalService.toModal('close');
|
|
23
|
-
}
|
|
24
|
-
toConfirm(valid) {
|
|
25
|
-
if (typeof valid === 'boolean') {
|
|
26
|
-
if (valid && (this.txt_value).toLowerCase() === (this.param_confirm.confirmText).toLowerCase()) {
|
|
27
|
-
this.tcloudModalService.toRespConfirm(true);
|
|
28
|
-
this.txt_value = '';
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
toCancel() {
|
|
33
|
-
this.tcloudModalService.toRespConfirm(false);
|
|
34
|
-
}
|
|
35
|
-
toStateLoading() {
|
|
36
|
-
this.loading = this.tcloudModalService.getLoading();
|
|
37
|
-
this.subscription = this.tcloudModalService.stateLoading$.subscribe((loading) => { this.loading = loading; });
|
|
38
|
-
}
|
|
39
|
-
ngOnDestroy() {
|
|
40
|
-
this.tcloudModalService.fixed_body('off');
|
|
41
|
-
if (this.subscription) {
|
|
42
|
-
this.subscription.unsubscribe();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
46
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{ selector: 'tcloud-ui-modal-footer', template: "<div class=\"tcloud-ui-modal-footer tc-modal-footer\">\r\n\r\n <div class=\"input-confirm\" *ngIf=\"param_confirm && param_confirm.confirmText\">\r\n <p>Digite a palavra <strong>"{{ param_confirm.confirmText }}"</strong> para confirmar.</p>\r\n \r\n <form #_formulario=\"ngForm\" (ngSubmit)=\"toConfirm(_formulario.valid)\">\r\n <input \r\n [disabled]=\"loading\"\r\n placeholder=\"{{ param_confirm.confirmText }}\"\r\n name=\"txt_value\" \r\n [(ngModel)]=\"txt_value\" \r\n type=\"text\" \r\n class=\"tc-form-confirm tc-form-control\" \r\n required \r\n [class.different-text]=\"(txt_value).length >= (param_confirm.confirmText).length && (txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase()\" >\r\n </form>\r\n\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"actions-footer {{ (loading) ? 'state-loading' : '' }}\">\r\n <!-- {{ param_confirm | json }} -->\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && !param_confirm.confirm\" type=\"button\" class=\"tc-btn margin-l-5\" (click)=\"toClose()\">{{ btnCloseText }}</button>\r\n\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"tc-btn margin-l-5\" (click)=\"toCancel()\">{{ btnCancelText }}</button>\r\n <button [disabled]=\"(txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase() || loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"tc-btn tc-btn-primary margin-l-5\" (click)=\"toConfirm(_formulario?.valid)\">{{ btnConfirmText }}</button>\r\n\r\n </div>\r\n</div>\r\n", styles: [".actions-footer{text-align:right}.ng-valid.ng-touched.different-text{border-color:#fb9c23}.form-confirm{max-width:200px}button:disabled{opacity:.7!important;cursor:not-allowed}.input-confirm{padding:5px 14px}.state-loading button{cursor:progress!important}.margin-l-5{margin-left:5px}.tc-form-confirm{max-width:240px}\n"] }]
|
|
51
|
-
}], ctorParameters:
|
|
52
|
-
type: Input
|
|
53
|
-
}], btnCancelText: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], btnConfirmText: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], _formulario: [{
|
|
58
|
-
type: ViewChild,
|
|
59
|
-
args: ['_formulario']
|
|
60
|
-
}] } });
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ViewChild, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./../../services/tcloud-modal.service";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/forms";
|
|
6
|
+
export class TCloudUiModalFooterComponent {
|
|
7
|
+
constructor(tcloudModalService) {
|
|
8
|
+
this.tcloudModalService = tcloudModalService;
|
|
9
|
+
this.btnCloseText = 'Fechar';
|
|
10
|
+
this.btnCancelText = 'Cancelar';
|
|
11
|
+
this.btnConfirmText = 'Confirmar';
|
|
12
|
+
this.txt_value = '';
|
|
13
|
+
this.param_confirm = {};
|
|
14
|
+
this.loading = false;
|
|
15
|
+
}
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
this.txt_value = '';
|
|
18
|
+
this.param_confirm = this.tcloudModalService.getParamConfirm();
|
|
19
|
+
this.toStateLoading();
|
|
20
|
+
}
|
|
21
|
+
toClose() {
|
|
22
|
+
this.tcloudModalService.toModal('close');
|
|
23
|
+
}
|
|
24
|
+
toConfirm(valid) {
|
|
25
|
+
if (typeof valid === 'boolean') {
|
|
26
|
+
if (valid && (this.txt_value).toLowerCase() === (this.param_confirm.confirmText).toLowerCase()) {
|
|
27
|
+
this.tcloudModalService.toRespConfirm(true);
|
|
28
|
+
this.txt_value = '';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
toCancel() {
|
|
33
|
+
this.tcloudModalService.toRespConfirm(false);
|
|
34
|
+
}
|
|
35
|
+
toStateLoading() {
|
|
36
|
+
this.loading = this.tcloudModalService.getLoading();
|
|
37
|
+
this.subscription = this.tcloudModalService.stateLoading$.subscribe((loading) => { this.loading = loading; });
|
|
38
|
+
}
|
|
39
|
+
ngOnDestroy() {
|
|
40
|
+
this.tcloudModalService.fixed_body('off');
|
|
41
|
+
if (this.subscription) {
|
|
42
|
+
this.subscription.unsubscribe();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiModalFooterComponent, deps: [{ token: i1.TcloudModalService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiModalFooterComponent, selector: "tcloud-ui-modal-footer", inputs: { btnCloseText: "btnCloseText", btnCancelText: "btnCancelText", btnConfirmText: "btnConfirmText" }, viewQueries: [{ propertyName: "_formulario", first: true, predicate: ["_formulario"], descendants: true }], ngImport: i0, template: "<div class=\"tcloud-ui-modal-footer tc-modal-footer\">\r\n\r\n <div class=\"input-confirm\" *ngIf=\"param_confirm && param_confirm.confirmText\">\r\n <p>Digite a palavra <strong>"{{ param_confirm.confirmText }}"</strong> para confirmar.</p>\r\n \r\n <form #_formulario=\"ngForm\" (ngSubmit)=\"toConfirm(_formulario.valid)\">\r\n <input \r\n [disabled]=\"loading\"\r\n placeholder=\"{{ param_confirm.confirmText }}\"\r\n name=\"txt_value\" \r\n [(ngModel)]=\"txt_value\" \r\n type=\"text\" \r\n class=\"tc-form-confirm tc-form-control\" \r\n required \r\n [class.different-text]=\"(txt_value).length >= (param_confirm.confirmText).length && (txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase()\" >\r\n </form>\r\n\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"actions-footer {{ (loading) ? 'state-loading' : '' }}\">\r\n <!-- {{ param_confirm | json }} -->\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && !param_confirm.confirm\" type=\"button\" class=\"tc-btn margin-l-5\" (click)=\"toClose()\">{{ btnCloseText }}</button>\r\n\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"tc-btn margin-l-5\" (click)=\"toCancel()\">{{ btnCancelText }}</button>\r\n <button [disabled]=\"(txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase() || loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"tc-btn tc-btn-primary margin-l-5\" (click)=\"toConfirm(_formulario?.valid)\">{{ btnConfirmText }}</button>\r\n\r\n </div>\r\n</div>\r\n", styles: [".actions-footer{text-align:right}.ng-valid.ng-touched.different-text{border-color:#fb9c23}.form-confirm{max-width:200px}button:disabled{opacity:.7!important;cursor:not-allowed}.input-confirm{padding:5px 14px}.state-loading button{cursor:progress!important}.margin-l-5{margin-left:5px}.tc-form-confirm{max-width:240px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] }); }
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiModalFooterComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{ selector: 'tcloud-ui-modal-footer', template: "<div class=\"tcloud-ui-modal-footer tc-modal-footer\">\r\n\r\n <div class=\"input-confirm\" *ngIf=\"param_confirm && param_confirm.confirmText\">\r\n <p>Digite a palavra <strong>"{{ param_confirm.confirmText }}"</strong> para confirmar.</p>\r\n \r\n <form #_formulario=\"ngForm\" (ngSubmit)=\"toConfirm(_formulario.valid)\">\r\n <input \r\n [disabled]=\"loading\"\r\n placeholder=\"{{ param_confirm.confirmText }}\"\r\n name=\"txt_value\" \r\n [(ngModel)]=\"txt_value\" \r\n type=\"text\" \r\n class=\"tc-form-confirm tc-form-control\" \r\n required \r\n [class.different-text]=\"(txt_value).length >= (param_confirm.confirmText).length && (txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase()\" >\r\n </form>\r\n\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"actions-footer {{ (loading) ? 'state-loading' : '' }}\">\r\n <!-- {{ param_confirm | json }} -->\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && !param_confirm.confirm\" type=\"button\" class=\"tc-btn margin-l-5\" (click)=\"toClose()\">{{ btnCloseText }}</button>\r\n\r\n <button [disabled]=\"loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"tc-btn margin-l-5\" (click)=\"toCancel()\">{{ btnCancelText }}</button>\r\n <button [disabled]=\"(txt_value).toLowerCase() !== (param_confirm.confirmText).toLowerCase() || loading\" *ngIf=\"param_confirm && param_confirm.confirm\" type=\"button\" class=\"tc-btn tc-btn-primary margin-l-5\" (click)=\"toConfirm(_formulario?.valid)\">{{ btnConfirmText }}</button>\r\n\r\n </div>\r\n</div>\r\n", styles: [".actions-footer{text-align:right}.ng-valid.ng-touched.different-text{border-color:#fb9c23}.form-confirm{max-width:200px}button:disabled{opacity:.7!important;cursor:not-allowed}.input-confirm{padding:5px 14px}.state-loading button{cursor:progress!important}.margin-l-5{margin-left:5px}.tc-form-confirm{max-width:240px}\n"] }]
|
|
51
|
+
}], ctorParameters: () => [{ type: i1.TcloudModalService }], propDecorators: { btnCloseText: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], btnCancelText: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], btnConfirmText: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], _formulario: [{
|
|
58
|
+
type: ViewChild,
|
|
59
|
+
args: ['_formulario']
|
|
60
|
+
}] } });
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGNsb3VkLXVpLW1vZGFsLWZvb3Rlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90Y2xvdWQtdWkvc3JjL2xpYi9fbW9kdWxlcy90Y2xvdWQtdWktbW9kYWwvY29tcG9uZW50cy90Y2xvdWQtdWktbW9kYWwtZm9vdGVyL3RjbG91ZC11aS1tb2RhbC1mb290ZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdGNsb3VkLXVpL3NyYy9saWIvX21vZHVsZXMvdGNsb3VkLXVpLW1vZGFsL2NvbXBvbmVudHMvdGNsb3VkLXVpLW1vZGFsLWZvb3Rlci90Y2xvdWQtdWktbW9kYWwtZm9vdGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxTQUFTLEVBQVUsU0FBUyxFQUFFLEtBQUssRUFBYSxNQUFNLGVBQWUsQ0FBQzs7Ozs7QUFTL0UsTUFBTSxPQUFPLDRCQUE0QjtJQWV2QyxZQUNVLGtCQUFzQztRQUF0Qyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQW9CO1FBZHZDLGlCQUFZL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T0gKHBhcmFtX2NvbmZpcm0uY29uZmlybVRleHQpLnRvTG93ZXJDYXNlKCkgfHwgbG9hZGluZ1wiICpuZ0lmPVwicGFyYW1fY29uZmlybSAmJiBwYXJhbV9jb25maXJtLmNvbmZpcm1cIiB0eXBlPVwiYnV0dG9uXCIgY2xhc3M9XCJ0Yy1idG4gdGMtYnRuLXByaW1hcnkgbWFyZ2luLWwtNVwiIChjbGljayk9XCJ0b0NvbmZpcm0oX2Zvcm11bGFyaW8/LnZhbGlkKVwiPnt7IGJ0bkNvbmZpcm1UZXh0IH19PC9idXR0b24+XHJcblxyXG4gIDwvZGl2PlxyXG48L2Rpdj5cclxuIl19
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../../services/tcloud-modal.service";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
export class TCloudUiModalHeaderComponent {
|
|
6
|
-
constructor(_tcloudModalService) {
|
|
7
|
-
this._tcloudModalService = _tcloudModalService;
|
|
8
|
-
this.mode = 'info';
|
|
9
|
-
}
|
|
10
|
-
ngOnInit() {
|
|
11
|
-
this._tcloudModalService.toMode(this.mode);
|
|
12
|
-
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
15
|
-
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
17
|
-
type: Component,
|
|
18
|
-
args: [{ selector: 'tcloud-ui-modal-header', template: "<div class=\"tcloud-ui-modal-header tc-modal-header tc-mode-{{ mode }}\" >\r\n <h4 *ngIf=\"title\" [innerHTML]=\"title\"></h4>\r\n <ng-content></ng-content>\r\n\r\n <hr>\r\n</div>\r\n", styles: ["h4{font-size:16px;margin:5px 30px 10px 0;font-weight:700}.tc-modal-header{padding:12px;color:#fff;margin:-12px -12px 15px;border-radius:7px 7px 0 0}hr{display:none}.tc-mode-success{background:#62c46d}.tc-mode-info{background:var(--tc-primary)}.tc-mode-danger{background:#f06868}.tc-mode-warning{background:#e8b02e}.tc-mode-colorless{color:var(--tc-gray-600)}\n"] }]
|
|
19
|
-
}], ctorParameters:
|
|
20
|
-
type: Input
|
|
21
|
-
}], title: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}] } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../services/tcloud-modal.service";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export class TCloudUiModalHeaderComponent {
|
|
6
|
+
constructor(_tcloudModalService) {
|
|
7
|
+
this._tcloudModalService = _tcloudModalService;
|
|
8
|
+
this.mode = 'info';
|
|
9
|
+
}
|
|
10
|
+
ngOnInit() {
|
|
11
|
+
this._tcloudModalService.toMode(this.mode);
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiModalHeaderComponent, deps: [{ token: i1.TcloudModalService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: TCloudUiModalHeaderComponent, selector: "tcloud-ui-modal-header", inputs: { mode: "mode", title: "title" }, ngImport: i0, template: "<div class=\"tcloud-ui-modal-header tc-modal-header tc-mode-{{ mode }}\" >\r\n <h4 *ngIf=\"title\" [innerHTML]=\"title\"></h4>\r\n <ng-content></ng-content>\r\n\r\n <hr>\r\n</div>\r\n", styles: ["h4{font-size:16px;margin:5px 30px 10px 0;font-weight:700}.tc-modal-header{padding:12px;color:#fff;margin:-12px -12px 15px;border-radius:7px 7px 0 0}hr{display:none}.tc-mode-success{background:#62c46d}.tc-mode-info{background:var(--tc-primary)}.tc-mode-danger{background:#f06868}.tc-mode-warning{background:#e8b02e}.tc-mode-colorless{color:var(--tc-gray-600)}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TCloudUiModalHeaderComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: 'tcloud-ui-modal-header', template: "<div class=\"tcloud-ui-modal-header tc-modal-header tc-mode-{{ mode }}\" >\r\n <h4 *ngIf=\"title\" [innerHTML]=\"title\"></h4>\r\n <ng-content></ng-content>\r\n\r\n <hr>\r\n</div>\r\n", styles: ["h4{font-size:16px;margin:5px 30px 10px 0;font-weight:700}.tc-modal-header{padding:12px;color:#fff;margin:-12px -12px 15px;border-radius:7px 7px 0 0}hr{display:none}.tc-mode-success{background:#62c46d}.tc-mode-info{background:var(--tc-primary)}.tc-mode-danger{background:#f06868}.tc-mode-warning{background:#e8b02e}.tc-mode-colorless{color:var(--tc-gray-600)}\n"] }]
|
|
19
|
+
}], ctorParameters: () => [{ type: i1.TcloudModalService }], propDecorators: { mode: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}], title: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}] } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGNsb3VkLXVpLW1vZGFsLWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90Y2xvdWQtdWkvc3JjL2xpYi9fbW9kdWxlcy90Y2xvdWQtdWktbW9kYWwvY29tcG9uZW50cy90Y2xvdWQtdWktbW9kYWwtaGVh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LWhlYWRlcicsXHJcbiAgdGVtcGxhdGVVcmw6ICcuL3RjbG91ZC11aS1tb2RhbC1oZWFkZXIuY29tcG9uZW50Lmh0bWwnLFxyXG4gIHN0eWxlVXJsczogWycuL3RjbG91ZC11aS1tb2RhbC1oZWFkZXIuY29tcG9uZW50LnNjc3MnXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgVENsb3VkVWlNb2RhbEhlYWRlckNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XHJcblxyXG4gIEBJbnB1dCgpIG1vZGU6ICdjb2xvcmxlc3MnIHwgJ2luZm8nIHwgJ3N1Y2Nlc3MnIHwgJ2RhbmdlcicgfCAnd2FybmluZycgPSAnaW5mbyc7XHJcbiAgQElucHV0KCkgdGl0bGU6IGFueSB8IHVuZGVmaW5lZDtcclxuICBcclxuICBjb25zdHJ1Y3RvcihcclxuICAgIHByaXZhdGUgX3RjbG91ZE1vZGFsU2VydmljZTogVGNsb3VkTW9kYWxTZXJ2aWNlXHJcbiAgKSB7IH1cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICB0aGlzLl90Y2xvdWRNb2RhbFNlcnZpY2UudG9Nb2RlKCB0aGlzLm1vZGUgKTtcclxuICB9XHJcblxyXG59XHJcbiIsIjxkaXYgY2xhc3M9XCJ0Y2xvdWQtdWktbW9kYWwtaGVhZGVyIHRjLW1vZGFsLWhlYWRlciB0Yy1tb2RlLXt7IG1vZGUgfX1cIiA+XHJcbiAgPGg0ICpuZ0lmPVwidGl0bGVcIiBbaW5uZXJIVE1MXT1cInRpdGxlXCI+PC9oND5cclxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XHJcblxyXG4gIDxocj5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TcloudModalService {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.param_mode = '';
|
|
7
|
-
this.param_confirm = {};
|
|
8
|
-
this._stateClose = new Subject();
|
|
9
|
-
this.stateClose$ = this._stateClose.asObservable();
|
|
10
|
-
this._stateConfirm = new Subject();
|
|
11
|
-
this.stateConfirm$ = this._stateConfirm.asObservable();
|
|
12
|
-
this._stateRespConfirm = new Subject();
|
|
13
|
-
this.stateRespConfirm$ = this._stateRespConfirm.asObservable();
|
|
14
|
-
this._stateLoading = new Subject();
|
|
15
|
-
this.stateLoading$ = this._stateLoading.asObservable();
|
|
16
|
-
this._stateMode = new Subject();
|
|
17
|
-
this.stateMode$ = this._stateMode.asObservable();
|
|
18
|
-
}
|
|
19
|
-
toModal(action) {
|
|
20
|
-
if (action === 'close') {
|
|
21
|
-
this.fixed_body('off');
|
|
22
|
-
}
|
|
23
|
-
this._stateClose.next((action === 'open'));
|
|
24
|
-
}
|
|
25
|
-
toRespConfirm(resp) {
|
|
26
|
-
this._stateRespConfirm.next(resp);
|
|
27
|
-
}
|
|
28
|
-
getParamConfirm() {
|
|
29
|
-
return this.param_confirm;
|
|
30
|
-
}
|
|
31
|
-
toConfirm(confirm) {
|
|
32
|
-
this.param_confirm = confirm;
|
|
33
|
-
this._stateConfirm.next(confirm);
|
|
34
|
-
}
|
|
35
|
-
toMode(mode) {
|
|
36
|
-
this.param_mode = mode;
|
|
37
|
-
this._stateMode.next(mode);
|
|
38
|
-
}
|
|
39
|
-
getLoading() {
|
|
40
|
-
return this.loading;
|
|
41
|
-
}
|
|
42
|
-
setLoading(loading) {
|
|
43
|
-
this.loading = loading;
|
|
44
|
-
this._stateLoading.next(loading);
|
|
45
|
-
}
|
|
46
|
-
fixed_body(fixed) {
|
|
47
|
-
let body = document.getElementsByTagName("BODY")[0];
|
|
48
|
-
if (body && body.style) {
|
|
49
|
-
if (fixed === 'on') {
|
|
50
|
-
body.style.overflowY = "hidden";
|
|
51
|
-
}
|
|
52
|
-
if (fixed === 'off') {
|
|
53
|
-
body.style.removeProperty('overflow-y');
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
59
|
-
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
-
type: Injectable
|
|
62
|
-
}] });
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class TcloudModalService {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.param_mode = '';
|
|
7
|
+
this.param_confirm = {};
|
|
8
|
+
this._stateClose = new Subject();
|
|
9
|
+
this.stateClose$ = this._stateClose.asObservable();
|
|
10
|
+
this._stateConfirm = new Subject();
|
|
11
|
+
this.stateConfirm$ = this._stateConfirm.asObservable();
|
|
12
|
+
this._stateRespConfirm = new Subject();
|
|
13
|
+
this.stateRespConfirm$ = this._stateRespConfirm.asObservable();
|
|
14
|
+
this._stateLoading = new Subject();
|
|
15
|
+
this.stateLoading$ = this._stateLoading.asObservable();
|
|
16
|
+
this._stateMode = new Subject();
|
|
17
|
+
this.stateMode$ = this._stateMode.asObservable();
|
|
18
|
+
}
|
|
19
|
+
toModal(action) {
|
|
20
|
+
if (action === 'close') {
|
|
21
|
+
this.fixed_body('off');
|
|
22
|
+
}
|
|
23
|
+
this._stateClose.next((action === 'open'));
|
|
24
|
+
}
|
|
25
|
+
toRespConfirm(resp) {
|
|
26
|
+
this._stateRespConfirm.next(resp);
|
|
27
|
+
}
|
|
28
|
+
getParamConfirm() {
|
|
29
|
+
return this.param_confirm;
|
|
30
|
+
}
|
|
31
|
+
toConfirm(confirm) {
|
|
32
|
+
this.param_confirm = confirm;
|
|
33
|
+
this._stateConfirm.next(confirm);
|
|
34
|
+
}
|
|
35
|
+
toMode(mode) {
|
|
36
|
+
this.param_mode = mode;
|
|
37
|
+
this._stateMode.next(mode);
|
|
38
|
+
}
|
|
39
|
+
getLoading() {
|
|
40
|
+
return this.loading;
|
|
41
|
+
}
|
|
42
|
+
setLoading(loading) {
|
|
43
|
+
this.loading = loading;
|
|
44
|
+
this._stateLoading.next(loading);
|
|
45
|
+
}
|
|
46
|
+
fixed_body(fixed) {
|
|
47
|
+
let body = document.getElementsByTagName("BODY")[0];
|
|
48
|
+
if (body && body.style) {
|
|
49
|
+
if (fixed === 'on') {
|
|
50
|
+
body.style.overflowY = "hidden";
|
|
51
|
+
}
|
|
52
|
+
if (fixed === 'off') {
|
|
53
|
+
body.style.removeProperty('overflow-y');
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TcloudModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
58
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TcloudModalService }); }
|
|
59
|
+
}
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TcloudModalService, decorators: [{
|
|
61
|
+
type: Injectable
|
|
62
|
+
}] });
|
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGNsb3VkLW1vZGFsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90Y2xvdWQtdWkvc3JjL2xpYi9fbW9kdWxlcy90Y2xvdWQtdWktbW9kYWwvc2VydmljZXMvdGNsb3VkLW1vZGFsLnNlcnZpY2UudHMiXS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