@pumpkin-tech/pumpkin-tech-ng 0.1.9 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs +556 -450
- package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs.map +1 -1
- package/index.d.ts +1585 -3
- package/package.json +9 -11
- package/esm2022/lib/base/base-field.mjs +0 -96
- package/esm2022/lib/components/action-dialog/action-dialog-config.mjs +0 -2
- package/esm2022/lib/components/action-dialog/action-dialog.component.mjs +0 -198
- package/esm2022/lib/components/action-dialog/index.mjs +0 -3
- package/esm2022/lib/components/action-result-dialog/action-result-dialog-data.mjs +0 -2
- package/esm2022/lib/components/action-result-dialog/action-result-dialog.component.mjs +0 -70
- package/esm2022/lib/components/action-result-dialog/index.mjs +0 -3
- package/esm2022/lib/components/action-row/action-row.component.mjs +0 -19
- package/esm2022/lib/components/action-row/index.mjs +0 -2
- package/esm2022/lib/components/alert/alert-data.mjs +0 -2
- package/esm2022/lib/components/alert/alert.component.mjs +0 -59
- package/esm2022/lib/components/alert/index.mjs +0 -3
- package/esm2022/lib/components/badge/badge-stack.component.mjs +0 -107
- package/esm2022/lib/components/badge/badge.component.mjs +0 -241
- package/esm2022/lib/components/badge/index.mjs +0 -3
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +0 -62
- package/esm2022/lib/components/breadcrumb/index.mjs +0 -2
- package/esm2022/lib/components/button/button.component.mjs +0 -738
- package/esm2022/lib/components/button/index.mjs +0 -2
- package/esm2022/lib/components/check-box/check-box.component.mjs +0 -109
- package/esm2022/lib/components/check-box/index.mjs +0 -2
- package/esm2022/lib/components/confirmation-dialog/confirmation-dialog-data.mjs +0 -2
- package/esm2022/lib/components/confirmation-dialog/confirmation-dialog.component.mjs +0 -66
- package/esm2022/lib/components/confirmation-dialog/index.mjs +0 -3
- package/esm2022/lib/components/flag/flag.component.mjs +0 -113
- package/esm2022/lib/components/flag/index.mjs +0 -2
- package/esm2022/lib/components/footer/footer.component.mjs +0 -29
- package/esm2022/lib/components/footer/index.mjs +0 -2
- package/esm2022/lib/components/header/header.component.mjs +0 -85
- package/esm2022/lib/components/header/index.mjs +0 -2
- package/esm2022/lib/components/icon/icon.component.mjs +0 -100
- package/esm2022/lib/components/icon/index.mjs +0 -2
- package/esm2022/lib/components/info-detail/index.mjs +0 -3
- package/esm2022/lib/components/info-detail/info-detail-dialog.component.mjs +0 -136
- package/esm2022/lib/components/info-detail/info-detail.component.mjs +0 -61
- package/esm2022/lib/components/input/index.mjs +0 -2
- package/esm2022/lib/components/input/input.component.mjs +0 -333
- package/esm2022/lib/components/input-currency/index.mjs +0 -2
- package/esm2022/lib/components/input-currency/input-currency.component.mjs +0 -134
- package/esm2022/lib/components/input-date/index.mjs +0 -2
- package/esm2022/lib/components/input-date/input-date.component.mjs +0 -349
- package/esm2022/lib/components/input-date-range/index.mjs +0 -2
- package/esm2022/lib/components/input-date-range/input-date-range.component.mjs +0 -165
- package/esm2022/lib/components/input-time/index.mjs +0 -2
- package/esm2022/lib/components/input-time/input-time.component.mjs +0 -184
- package/esm2022/lib/components/loading-overlay/index.mjs +0 -2
- package/esm2022/lib/components/loading-overlay/loading-overlay.component.mjs +0 -29
- package/esm2022/lib/components/nav/index.mjs +0 -2
- package/esm2022/lib/components/nav/nav.component.mjs +0 -363
- package/esm2022/lib/components/profile-menu/index.mjs +0 -2
- package/esm2022/lib/components/profile-menu/profile-menu.component.mjs +0 -79
- package/esm2022/lib/components/progress-bar/index.mjs +0 -2
- package/esm2022/lib/components/progress-bar/progress-bar.component.mjs +0 -59
- package/esm2022/lib/components/progress-bar-multiple/index.mjs +0 -2
- package/esm2022/lib/components/progress-bar-multiple/progress-bar-multiple.component.mjs +0 -69
- package/esm2022/lib/components/quantity-items/index.mjs +0 -2
- package/esm2022/lib/components/quantity-items/quantity-items.component.mjs +0 -143
- package/esm2022/lib/components/radio-group-entity/index.mjs +0 -2
- package/esm2022/lib/components/radio-group-entity/radio-group-entity.component.mjs +0 -97
- package/esm2022/lib/components/radio-group-enum/index.mjs +0 -2
- package/esm2022/lib/components/radio-group-enum/radio-group-enum.component.mjs +0 -107
- package/esm2022/lib/components/select-entity/index.mjs +0 -2
- package/esm2022/lib/components/select-entity/select-entity.component.mjs +0 -250
- package/esm2022/lib/components/select-enum/index.mjs +0 -2
- package/esm2022/lib/components/select-enum/select-enum.component.mjs +0 -153
- package/esm2022/lib/components/slide-toggle/index.mjs +0 -2
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +0 -105
- package/esm2022/lib/components/table/index.mjs +0 -2
- package/esm2022/lib/components/table/table.component.mjs +0 -788
- package/esm2022/lib/components/textarea/index.mjs +0 -2
- package/esm2022/lib/components/textarea/textarea.component.mjs +0 -156
- package/esm2022/lib/components/title/index.mjs +0 -2
- package/esm2022/lib/components/title/title.component.mjs +0 -27
- package/esm2022/lib/directives/click-catcher.directive.mjs +0 -20
- package/esm2022/lib/directives/date-mask.directive.mjs +0 -58
- package/esm2022/lib/directives/dynamic-tab.directive.mjs +0 -18
- package/esm2022/lib/directives/for.directive.mjs +0 -35
- package/esm2022/lib/directives/index.mjs +0 -12
- package/esm2022/lib/directives/lower-case.directive.mjs +0 -48
- package/esm2022/lib/directives/phone-mask-brazil.directive.mjs +0 -64
- package/esm2022/lib/directives/phone-mask-spain.directive.mjs +0 -66
- package/esm2022/lib/directives/red.directive.mjs +0 -21
- package/esm2022/lib/directives/space-drop.directive.mjs +0 -48
- package/esm2022/lib/directives/table-cell.directive.mjs +0 -22
- package/esm2022/lib/directives/upper-case.directive.mjs +0 -48
- package/esm2022/lib/layout/ptech-col.directive.mjs +0 -162
- package/esm2022/lib/layout/ptech-grid.directive.mjs +0 -125
- package/esm2022/lib/mock/fake-data.service.mjs +0 -69
- package/esm2022/lib/mock/index.mjs +0 -2
- package/esm2022/lib/modules/core.material.module.mjs +0 -166
- package/esm2022/lib/modules/directives.module.mjs +0 -79
- package/esm2022/lib/modules/pipes.module.mjs +0 -64
- package/esm2022/lib/modules/pumpkin-tech.module.mjs +0 -240
- package/esm2022/lib/modules/shared/portuguese.matpaginatorintl.mjs +0 -28
- package/esm2022/lib/pipes/currency-brl.pipe.mjs +0 -27
- package/esm2022/lib/pipes/date-ago.pipe.mjs +0 -59
- package/esm2022/lib/pipes/get-first-string-before-space.pipe.mjs +0 -21
- package/esm2022/lib/pipes/index.mjs +0 -12
- package/esm2022/lib/pipes/is-longer-than.pipe.mjs +0 -55
- package/esm2022/lib/pipes/line-break-after-period.pipe.mjs +0 -20
- package/esm2022/lib/pipes/line-break-after.pipe.mjs +0 -29
- package/esm2022/lib/pipes/memory-format.pipe.mjs +0 -35
- package/esm2022/lib/pipes/phone-brazil.pipe.mjs +0 -43
- package/esm2022/lib/pipes/phone-spain.pipe.mjs +0 -37
- package/esm2022/lib/pipes/time.durantion.pipe.mjs +0 -34
- package/esm2022/lib/pipes/uptime-format.pipe.mjs +0 -36
- package/esm2022/lib/services/breadcrumb.service.mjs +0 -51
- package/esm2022/lib/services/breadcrumb.tokens.mjs +0 -10
- package/esm2022/lib/services/currency-preference.service.mjs +0 -98
- package/esm2022/lib/services/dialog.service.mjs +0 -89
- package/esm2022/lib/services/index.mjs +0 -10
- package/esm2022/lib/services/loading.service.mjs +0 -27
- package/esm2022/lib/services/message-token.mjs +0 -16
- package/esm2022/lib/services/module.change.service.mjs +0 -19
- package/esm2022/lib/services/nav.service.mjs +0 -31
- package/esm2022/lib/services/snackbar-message.service.mjs +0 -59
- package/esm2022/lib/utils/array.util.mjs +0 -19
- package/esm2022/lib/utils/currency.util.mjs +0 -18
- package/esm2022/lib/utils/date.util.mjs +0 -80
- package/esm2022/lib/utils/document.util.mjs +0 -92
- package/esm2022/lib/utils/index.mjs +0 -9
- package/esm2022/lib/utils/number.util.mjs +0 -19
- package/esm2022/lib/utils/object.util.mjs +0 -28
- package/esm2022/lib/utils/string.util.mjs +0 -87
- package/esm2022/lib/utils/uuid.util.mjs +0 -18
- package/esm2022/public-api.mjs +0 -53
- package/esm2022/pumpkin-tech-pumpkin-tech-ng.mjs +0 -5
- package/lib/base/base-field.d.ts +0 -44
- package/lib/components/action-dialog/action-dialog-config.d.ts +0 -15
- package/lib/components/action-dialog/action-dialog.component.d.ts +0 -17
- package/lib/components/action-dialog/index.d.ts +0 -2
- package/lib/components/action-result-dialog/action-result-dialog-data.d.ts +0 -6
- package/lib/components/action-result-dialog/action-result-dialog.component.d.ts +0 -21
- package/lib/components/action-result-dialog/index.d.ts +0 -2
- package/lib/components/action-row/action-row.component.d.ts +0 -5
- package/lib/components/action-row/index.d.ts +0 -1
- package/lib/components/alert/alert-data.d.ts +0 -9
- package/lib/components/alert/alert.component.d.ts +0 -13
- package/lib/components/alert/index.d.ts +0 -2
- package/lib/components/badge/badge-stack.component.d.ts +0 -36
- package/lib/components/badge/badge.component.d.ts +0 -61
- package/lib/components/badge/index.d.ts +0 -2
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -11
- package/lib/components/breadcrumb/index.d.ts +0 -1
- package/lib/components/button/button.component.d.ts +0 -52
- package/lib/components/button/index.d.ts +0 -1
- package/lib/components/check-box/check-box.component.d.ts +0 -35
- package/lib/components/check-box/index.d.ts +0 -1
- package/lib/components/confirmation-dialog/confirmation-dialog-data.d.ts +0 -7
- package/lib/components/confirmation-dialog/confirmation-dialog.component.d.ts +0 -12
- package/lib/components/confirmation-dialog/index.d.ts +0 -2
- package/lib/components/flag/flag.component.d.ts +0 -35
- package/lib/components/flag/index.d.ts +0 -1
- package/lib/components/footer/footer.component.d.ts +0 -6
- package/lib/components/footer/index.d.ts +0 -1
- package/lib/components/header/header.component.d.ts +0 -14
- package/lib/components/header/index.d.ts +0 -1
- package/lib/components/icon/icon.component.d.ts +0 -27
- package/lib/components/icon/index.d.ts +0 -1
- package/lib/components/info-detail/index.d.ts +0 -2
- package/lib/components/info-detail/info-detail-dialog.component.d.ts +0 -22
- package/lib/components/info-detail/info-detail.component.d.ts +0 -13
- package/lib/components/input/index.d.ts +0 -1
- package/lib/components/input/input.component.d.ts +0 -42
- package/lib/components/input-currency/index.d.ts +0 -1
- package/lib/components/input-currency/input-currency.component.d.ts +0 -24
- package/lib/components/input-date/index.d.ts +0 -1
- package/lib/components/input-date/input-date.component.d.ts +0 -55
- package/lib/components/input-date-range/index.d.ts +0 -1
- package/lib/components/input-date-range/input-date-range.component.d.ts +0 -35
- package/lib/components/input-time/index.d.ts +0 -1
- package/lib/components/input-time/input-time.component.d.ts +0 -31
- package/lib/components/loading-overlay/index.d.ts +0 -1
- package/lib/components/loading-overlay/loading-overlay.component.d.ts +0 -10
- package/lib/components/nav/index.d.ts +0 -1
- package/lib/components/nav/nav.component.d.ts +0 -69
- package/lib/components/profile-menu/index.d.ts +0 -1
- package/lib/components/profile-menu/profile-menu.component.d.ts +0 -14
- package/lib/components/progress-bar/index.d.ts +0 -1
- package/lib/components/progress-bar/progress-bar.component.d.ts +0 -12
- package/lib/components/progress-bar-multiple/index.d.ts +0 -1
- package/lib/components/progress-bar-multiple/progress-bar-multiple.component.d.ts +0 -19
- package/lib/components/quantity-items/index.d.ts +0 -1
- package/lib/components/quantity-items/quantity-items.component.d.ts +0 -27
- package/lib/components/radio-group-entity/index.d.ts +0 -1
- package/lib/components/radio-group-entity/radio-group-entity.component.d.ts +0 -21
- package/lib/components/radio-group-enum/index.d.ts +0 -1
- package/lib/components/radio-group-enum/radio-group-enum.component.d.ts +0 -33
- package/lib/components/select-entity/index.d.ts +0 -1
- package/lib/components/select-entity/select-entity.component.d.ts +0 -44
- package/lib/components/select-enum/index.d.ts +0 -1
- package/lib/components/select-enum/select-enum.component.d.ts +0 -29
- package/lib/components/slide-toggle/index.d.ts +0 -1
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +0 -35
- package/lib/components/table/index.d.ts +0 -1
- package/lib/components/table/table.component.d.ts +0 -109
- package/lib/components/textarea/index.d.ts +0 -1
- package/lib/components/textarea/textarea.component.d.ts +0 -29
- package/lib/components/title/index.d.ts +0 -1
- package/lib/components/title/title.component.d.ts +0 -11
- package/lib/directives/click-catcher.directive.d.ts +0 -6
- package/lib/directives/date-mask.directive.d.ts +0 -8
- package/lib/directives/dynamic-tab.directive.d.ts +0 -8
- package/lib/directives/for.directive.d.ts +0 -12
- package/lib/directives/index.d.ts +0 -11
- package/lib/directives/lower-case.directive.d.ts +0 -12
- package/lib/directives/phone-mask-brazil.directive.d.ts +0 -11
- package/lib/directives/phone-mask-spain.directive.d.ts +0 -11
- package/lib/directives/red.directive.d.ts +0 -9
- package/lib/directives/space-drop.directive.d.ts +0 -12
- package/lib/directives/table-cell.directive.d.ts +0 -9
- package/lib/directives/upper-case.directive.d.ts +0 -12
- package/lib/layout/ptech-col.directive.d.ts +0 -34
- package/lib/layout/ptech-grid.directive.d.ts +0 -32
- package/lib/mock/fake-data.service.d.ts +0 -34
- package/lib/mock/index.d.ts +0 -1
- package/lib/modules/core.material.module.d.ts +0 -43
- package/lib/modules/directives.module.d.ts +0 -19
- package/lib/modules/pipes.module.d.ts +0 -18
- package/lib/modules/pumpkin-tech.module.d.ts +0 -41
- package/lib/modules/shared/portuguese.matpaginatorintl.d.ts +0 -12
- package/lib/pipes/currency-brl.pipe.d.ts +0 -8
- package/lib/pipes/date-ago.pipe.d.ts +0 -8
- package/lib/pipes/get-first-string-before-space.pipe.d.ts +0 -7
- package/lib/pipes/index.d.ts +0 -11
- package/lib/pipes/is-longer-than.pipe.d.ts +0 -9
- package/lib/pipes/line-break-after-period.pipe.d.ts +0 -7
- package/lib/pipes/line-break-after.pipe.d.ts +0 -7
- package/lib/pipes/memory-format.pipe.d.ts +0 -7
- package/lib/pipes/phone-brazil.pipe.d.ts +0 -7
- package/lib/pipes/phone-spain.pipe.d.ts +0 -7
- package/lib/pipes/time.durantion.pipe.d.ts +0 -7
- package/lib/pipes/uptime-format.pipe.d.ts +0 -7
- package/lib/services/breadcrumb.service.d.ts +0 -14
- package/lib/services/breadcrumb.tokens.d.ts +0 -9
- package/lib/services/currency-preference.service.d.ts +0 -24
- package/lib/services/dialog.service.d.ts +0 -41
- package/lib/services/index.d.ts +0 -9
- package/lib/services/loading.service.d.ts +0 -9
- package/lib/services/message-token.d.ts +0 -9
- package/lib/services/module.change.service.d.ts +0 -8
- package/lib/services/nav.service.d.ts +0 -11
- package/lib/services/snackbar-message.service.d.ts +0 -13
- package/lib/utils/array.util.d.ts +0 -9
- package/lib/utils/currency.util.d.ts +0 -8
- package/lib/utils/date.util.d.ts +0 -18
- package/lib/utils/document.util.d.ts +0 -4
- package/lib/utils/index.d.ts +0 -8
- package/lib/utils/number.util.d.ts +0 -5
- package/lib/utils/object.util.d.ts +0 -9
- package/lib/utils/string.util.d.ts +0 -27
- package/lib/utils/uuid.util.d.ts +0 -5
- package/public-api.d.ts +0 -47
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './button.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wdW1wa2luLXRlY2gtbmcvc3JjL2xpYi9jb21wb25lbnRzL2J1dHRvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9idXR0b24uY29tcG9uZW50JzsiXX0=
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output, forwardRef, ChangeDetectionStrategy, ElementRef } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { CoreMaterialModule } from '../../modules/core.material.module';
|
|
5
|
-
import { BaseField } from '../../base/base-field';
|
|
6
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/material/checkbox";
|
|
9
|
-
export class CheckBoxComponent extends BaseField {
|
|
10
|
-
constructor(el) { super(el); }
|
|
11
|
-
/** Cor do checkbox: 'primary' | 'accent' | 'warn' (ou custom) */
|
|
12
|
-
color = 'primary';
|
|
13
|
-
/** Estado indeterminado com coerção booleana */
|
|
14
|
-
static ngAcceptInputType_indeterminate;
|
|
15
|
-
_indeterminate = false;
|
|
16
|
-
get indeterminate() { return this._indeterminate; }
|
|
17
|
-
set indeterminate(v) { this._indeterminate = coerceBooleanProperty(v); }
|
|
18
|
-
/** Eventos públicos */
|
|
19
|
-
change = new EventEmitter();
|
|
20
|
-
indeterminateChange = new EventEmitter();
|
|
21
|
-
/** Modelo interno (CVA) */
|
|
22
|
-
_value = false;
|
|
23
|
-
/** Atualização programática não emite eventos */
|
|
24
|
-
set value(v) { this._value = this.toBool(v); }
|
|
25
|
-
get value() { return this._value; }
|
|
26
|
-
// ===== CVA =====
|
|
27
|
-
onChangeFn = () => { };
|
|
28
|
-
onTouchFn = () => { };
|
|
29
|
-
writeValue(v) { this._value = this.toBool(v); }
|
|
30
|
-
registerOnChange(fn) { this.onChangeFn = fn; }
|
|
31
|
-
registerOnTouched(fn) { this.onTouchFn = fn; }
|
|
32
|
-
setDisabledState(isDisabled) { this.disabled = isDisabled; }
|
|
33
|
-
/** Apenas interação do usuário dispara CVA + outputs */
|
|
34
|
-
onCheckboxChange(checked) {
|
|
35
|
-
const next = this.toBool(checked);
|
|
36
|
-
if (next !== this._value) {
|
|
37
|
-
this._value = next;
|
|
38
|
-
this.onChangeFn(this._value);
|
|
39
|
-
this.onTouchFn();
|
|
40
|
-
this.change.emit(this._value);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/** Coerção robusta para boolean */
|
|
44
|
-
toBool(v) {
|
|
45
|
-
if (typeof v === 'string') {
|
|
46
|
-
const s = v.trim().toLowerCase();
|
|
47
|
-
if (['false', '0', 'no', 'off', ''].includes(s))
|
|
48
|
-
return false;
|
|
49
|
-
if (['true', '1', 'yes', 'on'].includes(s))
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
return !!v;
|
|
53
|
-
}
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CheckBoxComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
55
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CheckBoxComponent, isStandalone: true, selector: "ptech-check-box", inputs: { color: "color", indeterminate: "indeterminate", value: "value" }, outputs: { change: "change", indeterminateChange: "indeterminateChange" }, providers: [{
|
|
56
|
-
provide: NG_VALUE_ACCESSOR,
|
|
57
|
-
useExisting: forwardRef(() => CheckBoxComponent),
|
|
58
|
-
multi: true
|
|
59
|
-
}], usesInheritance: true, ngImport: i0, template: `
|
|
60
|
-
<div class="ptech-checkbox-container" [class.full-width]="fullWidth">
|
|
61
|
-
<mat-checkbox
|
|
62
|
-
[checked]="_value"
|
|
63
|
-
[required]="required"
|
|
64
|
-
[disabled]="disabled"
|
|
65
|
-
[color]="color"
|
|
66
|
-
[indeterminate]="indeterminate"
|
|
67
|
-
[attr.aria-label]="ariaLabel || null"
|
|
68
|
-
[attr.aria-labelledby]="ariaLabelledby || null"
|
|
69
|
-
(indeterminateChange)="indeterminateChange.emit($event)"
|
|
70
|
-
(change)="onCheckboxChange($event.checked)">
|
|
71
|
-
{{ label }}
|
|
72
|
-
</mat-checkbox>
|
|
73
|
-
</div>
|
|
74
|
-
`, isInline: true, styles: [":host{display:block}.ptech-checkbox-container{display:flex;flex-direction:column}.ptech-checkbox-container.full-width{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
75
|
-
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CheckBoxComponent, decorators: [{
|
|
77
|
-
type: Component,
|
|
78
|
-
args: [{ selector: 'ptech-check-box', standalone: true, imports: [CommonModule, CoreMaterialModule], template: `
|
|
79
|
-
<div class="ptech-checkbox-container" [class.full-width]="fullWidth">
|
|
80
|
-
<mat-checkbox
|
|
81
|
-
[checked]="_value"
|
|
82
|
-
[required]="required"
|
|
83
|
-
[disabled]="disabled"
|
|
84
|
-
[color]="color"
|
|
85
|
-
[indeterminate]="indeterminate"
|
|
86
|
-
[attr.aria-label]="ariaLabel || null"
|
|
87
|
-
[attr.aria-labelledby]="ariaLabelledby || null"
|
|
88
|
-
(indeterminateChange)="indeterminateChange.emit($event)"
|
|
89
|
-
(change)="onCheckboxChange($event.checked)">
|
|
90
|
-
{{ label }}
|
|
91
|
-
</mat-checkbox>
|
|
92
|
-
</div>
|
|
93
|
-
`, providers: [{
|
|
94
|
-
provide: NG_VALUE_ACCESSOR,
|
|
95
|
-
useExisting: forwardRef(() => CheckBoxComponent),
|
|
96
|
-
multi: true
|
|
97
|
-
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.ptech-checkbox-container{display:flex;flex-direction:column}.ptech-checkbox-container.full-width{width:100%}\n"] }]
|
|
98
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { color: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], indeterminate: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], change: [{
|
|
103
|
-
type: Output
|
|
104
|
-
}], indeterminateChange: [{
|
|
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AhIXY7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './check-box.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wdW1wa2luLXRlY2gtbmcvc3JjL2xpYi9jb21wb25lbnRzL2NoZWNrLWJveC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jaGVjay1ib3guY29tcG9uZW50JzsiXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybWF0aW9uLWRpYWxvZy1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHVtcGtpbi10ZWNoLW5nL3NyYy9saWIvY29tcG9uZW50cy9jb25maXJtYXRpb24tZGlhbG9nL2NvbmZpcm1hdGlvbi1kaWFsb2ctZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBDb25maXJtYXRpb25EVE8ge1xuICAgIHRpdGxlOiBzdHJpbmc7XG4gICAgbWVzc2FnZTogc3RyaW5nO1xuICAgIGFjY2VwdDogKCkgPT4gdm9pZDtcbiAgICBjYW5jZWxUZXh0Pzogc3RyaW5nO1xuICAgIGNvbmZpcm1UZXh0Pzogc3RyaW5nO1xufSJdfQ==
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Component, Inject } from '@angular/core';
|
|
2
|
-
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
-
import { CoreMaterialModule } from '../../modules/core.material.module';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/material/dialog";
|
|
7
|
-
import * as i2 from "@angular/material/button";
|
|
8
|
-
export class ConfirmationDialogComponent {
|
|
9
|
-
dialogRef;
|
|
10
|
-
confirmation;
|
|
11
|
-
constructor(dialogRef, confirmation) {
|
|
12
|
-
this.dialogRef = dialogRef;
|
|
13
|
-
this.confirmation = confirmation;
|
|
14
|
-
}
|
|
15
|
-
confirm() {
|
|
16
|
-
this.confirmation.accept();
|
|
17
|
-
this.dialogRef.close(true);
|
|
18
|
-
}
|
|
19
|
-
cancel() {
|
|
20
|
-
this.dialogRef.close(false);
|
|
21
|
-
}
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
|
|
24
|
-
<div class="dialog">
|
|
25
|
-
<h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
|
|
26
|
-
|
|
27
|
-
<div mat-dialog-content class="dialog-content">
|
|
28
|
-
<p>{{ confirmation.message }}</p>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div class="dialog-actions">
|
|
32
|
-
<button mat-flat-button color="primary" (click)="confirm()">
|
|
33
|
-
{{ confirmation.confirmText || 'OK' }}
|
|
34
|
-
</button>
|
|
35
|
-
<button mat-flat-button color="warn" (click)="cancel()">
|
|
36
|
-
{{ confirmation.cancelText || 'Cancelar' }}
|
|
37
|
-
</button>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
`, isInline: true, styles: [".dialog{padding:10px;background-color:#f7f7f7;border-radius:8px}.dialog-title{font-size:20px;font-weight:500;margin-bottom:12px;text-align:center}.dialog-content{font-size:16px;margin-bottom:20px;text-align:center}.dialog-actions{display:flex;justify-content:center;gap:20px}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{ selector: 'ptech-confirmation-dialog', standalone: true, imports: [CommonModule, CoreMaterialModule], template: `
|
|
45
|
-
<div class="dialog">
|
|
46
|
-
<h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
|
|
47
|
-
|
|
48
|
-
<div mat-dialog-content class="dialog-content">
|
|
49
|
-
<p>{{ confirmation.message }}</p>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<div class="dialog-actions">
|
|
53
|
-
<button mat-flat-button color="primary" (click)="confirm()">
|
|
54
|
-
{{ confirmation.confirmText || 'OK' }}
|
|
55
|
-
</button>
|
|
56
|
-
<button mat-flat-button color="warn" (click)="cancel()">
|
|
57
|
-
{{ confirmation.cancelText || 'Cancelar' }}
|
|
58
|
-
</button>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
`, styles: [".dialog{padding:10px;background-color:#f7f7f7;border-radius:8px}.dialog-title{font-size:20px;font-weight:500;margin-bottom:12px;text-align:center}.dialog-content{font-size:16px;margin-bottom:20px;text-align:center}.dialog-actions{display:flex;justify-content:center;gap:20px}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"] }]
|
|
62
|
-
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
63
|
-
type: Inject,
|
|
64
|
-
args: [MAT_DIALOG_DATA]
|
|
65
|
-
}] }] });
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybWF0aW9uLWRpYWxvZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wdW1wa2luLXRlY2gtbmcvc3JjL2xpYi9jb21wb25lbnRzL2NvbmZpcm1hdGlvbi1kaWFsb2cvY29uZmlybWF0aW9uLWRpYWxvZy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLFlBQVksRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUV6RSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUN4RSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7Ozs7QUEwRC9DLE1BQU0sT0FBTywyQkFBMkI7SUFFN0I7SUFDeUI7SUFGbEMsWUFDUyxTQUFvRCxFQUMzQixZQUE2QjtRQUR0RCxjQUFTLEdBQVQsU0FBUyxDQUEyQztRQUMzQixpQkFBWSxHQUFaLFlBQVksQ0FBaUI7SUFD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
|
|
1
|
-
export * from './confirmation-dialog.component';
|
|
2
|
-
export * from './confirmation-dialog-data';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wdW1wa2luLXRlY2gtbmcvc3JjL2xpYi9jb21wb25lbnRzL2NvbmZpcm1hdGlvbi1kaWFsb2cvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb25maXJtYXRpb24tZGlhbG9nLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbmZpcm1hdGlvbi1kaWFsb2ctZGF0YSc7XG4iXX0=
|