@kato-lee/components 1.1.4 → 3.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 +1 -1
- package/assets/_fields.scss +82 -21
- package/assets/_grids.scss +8 -0
- package/assets/assets.scss +4 -0
- package/assets/bundle.css +1 -0
- package/assets/{themes/_default.scss → colors.scss} +7 -6
- package/assets/components/_checkbox.scss +11 -0
- package/assets/components/_fields.scss +53 -13
- package/assets/components/_scroll-bar.scss +8 -0
- package/assets/components/_snack-bar.scss +21 -10
- package/assets/components/_tables.scss +75 -84
- package/assets/components/main.scss +9 -10
- package/assets/material/theme.scss +91 -0
- package/box-form/index.d.ts +51 -3
- package/box-form/package.json +3 -0
- package/capsule/index.d.ts +25 -2
- package/capsule/package.json +3 -0
- package/cards/index.d.ts +18 -2
- package/cards/package.json +3 -0
- package/dialogs/index.d.ts +18 -2
- package/dialogs/package.json +3 -0
- package/fesm2022/kato-lee-components-box-form.mjs +19 -19
- package/fesm2022/kato-lee-components-box-form.mjs.map +1 -1
- package/fesm2022/kato-lee-components-capsule.mjs +8 -8
- package/fesm2022/kato-lee-components-capsule.mjs.map +1 -1
- package/fesm2022/kato-lee-components-cards.mjs +8 -8
- package/fesm2022/kato-lee-components-cards.mjs.map +1 -1
- package/fesm2022/kato-lee-components-dialogs.mjs +17 -17
- package/fesm2022/kato-lee-components-dialogs.mjs.map +1 -1
- package/fesm2022/kato-lee-components-fields.mjs +76 -80
- package/fesm2022/kato-lee-components-fields.mjs.map +1 -1
- package/fesm2022/kato-lee-components-modal.mjs +24 -20
- package/fesm2022/kato-lee-components-modal.mjs.map +1 -1
- package/fesm2022/kato-lee-components-pretty-box.mjs +4 -4
- package/fesm2022/kato-lee-components-pretty-box.mjs.map +1 -1
- package/fesm2022/kato-lee-components-tables.mjs +65 -25
- package/fesm2022/kato-lee-components-tables.mjs.map +1 -1
- package/fesm2022/kato-lee-components-toast.mjs +4 -4
- package/fesm2022/kato-lee-components-toast.mjs.map +1 -1
- package/fields/index.d.ts +464 -15
- package/fields/package.json +3 -0
- package/index.d.ts +2 -1
- package/modal/index.d.ts +66 -4
- package/modal/package.json +3 -0
- package/package.json +11 -28
- package/pretty-box/index.d.ts +27 -1
- package/pretty-box/package.json +3 -0
- package/tables/index.d.ts +27 -3
- package/tables/package.json +3 -0
- package/toast/index.d.ts +25 -1
- package/toast/package.json +3 -0
- package/assets/components/_material.scss +0 -15
- package/assets/main.scss +0 -4
- package/assets/material/themes/dark.scss +0 -52
- package/assets/material/themes/default.scss +0 -105
- package/assets/material/themes/main.scss +0 -2907
- package/assets/themes/_dark.scss +0 -16
- package/assets/themes/main.scss +0 -2
- package/assets/variables.scss +0 -7
- package/box-form/common.d.ts +0 -5
- package/box-form/component.d.ts +0 -34
- package/box-form/module.d.ts +0 -8
- package/capsule/component.d.ts +0 -14
- package/capsule/module.d.ts +0 -8
- package/cards/component.d.ts +0 -8
- package/cards/module.d.ts +0 -8
- package/dialogs/dismiss-dialog-button.component.d.ts +0 -8
- package/dialogs/module.d.ts +0 -8
- package/esm2022/box-form/common.mjs +0 -2
- package/esm2022/box-form/component.mjs +0 -112
- package/esm2022/box-form/index.mjs +0 -7
- package/esm2022/box-form/kato-lee-components-box-form.mjs +0 -5
- package/esm2022/box-form/module.mjs +0 -17
- package/esm2022/capsule/component.mjs +0 -78
- package/esm2022/capsule/index.mjs +0 -6
- package/esm2022/capsule/kato-lee-components-capsule.mjs +0 -5
- package/esm2022/capsule/module.mjs +0 -17
- package/esm2022/cards/component.mjs +0 -48
- package/esm2022/cards/index.mjs +0 -6
- package/esm2022/cards/kato-lee-components-cards.mjs +0 -5
- package/esm2022/cards/module.mjs +0 -18
- package/esm2022/dialogs/dismiss-dialog-button.component.mjs +0 -46
- package/esm2022/dialogs/index.mjs +0 -6
- package/esm2022/dialogs/kato-lee-components-dialogs.mjs +0 -5
- package/esm2022/dialogs/module.mjs +0 -18
- package/esm2022/fields/autocomplete/component.mjs +0 -259
- package/esm2022/fields/common.mjs +0 -11
- package/esm2022/fields/date/component.mjs +0 -163
- package/esm2022/fields/date-range/component.mjs +0 -85
- package/esm2022/fields/error/component.mjs +0 -57
- package/esm2022/fields/error/error-equals.pipe.mjs +0 -19
- package/esm2022/fields/error/error.msg.pipe.mjs +0 -19
- package/esm2022/fields/error/lang/_en.mjs +0 -12
- package/esm2022/fields/error/lang/_es.mjs +0 -12
- package/esm2022/fields/error/lang/index.mjs +0 -3
- package/esm2022/fields/general/component.mjs +0 -202
- package/esm2022/fields/index.mjs +0 -19
- package/esm2022/fields/kato-lee-components-fields.mjs +0 -5
- package/esm2022/fields/module.mjs +0 -82
- package/esm2022/fields/money/component.mjs +0 -202
- package/esm2022/fields/number/component.mjs +0 -179
- package/esm2022/fields/remote-autocomplete/component.mjs +0 -188
- package/esm2022/fields/select/component.mjs +0 -158
- package/esm2022/fields/text-area/component.mjs +0 -186
- package/esm2022/fields/validators.mjs +0 -11
- package/esm2022/index.mjs +0 -2
- package/esm2022/kato-lee-components.mjs +0 -5
- package/esm2022/modal/component.mjs +0 -66
- package/esm2022/modal/config.mjs +0 -2
- package/esm2022/modal/index.mjs +0 -8
- package/esm2022/modal/kato-lee-components-modal.mjs +0 -5
- package/esm2022/modal/module.mjs +0 -17
- package/esm2022/modal/service.mjs +0 -33
- package/esm2022/pretty-box/component.mjs +0 -94
- package/esm2022/pretty-box/index.mjs +0 -5
- package/esm2022/pretty-box/kato-lee-components-pretty-box.mjs +0 -5
- package/esm2022/tables/index.mjs +0 -7
- package/esm2022/tables/kato-lee-components-tables.mjs +0 -5
- package/esm2022/tables/mat-paginator.translation.mjs +0 -22
- package/esm2022/tables/module.mjs +0 -22
- package/esm2022/tables/no-records.component.mjs +0 -58
- package/esm2022/toast/index.mjs +0 -5
- package/esm2022/toast/kato-lee-components-toast.mjs +0 -5
- package/esm2022/toast/service.mjs +0 -42
- package/fields/autocomplete/component.d.ts +0 -65
- package/fields/common.d.ts +0 -8
- package/fields/date/component.d.ts +0 -46
- package/fields/date-range/component.d.ts +0 -23
- package/fields/error/component.d.ts +0 -22
- package/fields/error/error-equals.pipe.d.ts +0 -7
- package/fields/error/error.msg.pipe.d.ts +0 -7
- package/fields/error/lang/_en.d.ts +0 -1
- package/fields/error/lang/_es.d.ts +0 -1
- package/fields/error/lang/index.d.ts +0 -2
- package/fields/general/component.d.ts +0 -56
- package/fields/module.d.ts +0 -19
- package/fields/money/component.d.ts +0 -53
- package/fields/number/component.d.ts +0 -52
- package/fields/remote-autocomplete/component.d.ts +0 -43
- package/fields/select/component.d.ts +0 -44
- package/fields/text-area/component.d.ts +0 -55
- package/fields/validators.d.ts +0 -9
- package/modal/component.d.ts +0 -35
- package/modal/config.d.ts +0 -9
- package/modal/module.d.ts +0 -8
- package/modal/service.d.ts +0 -13
- package/pretty-box/component.d.ts +0 -24
- package/tables/mat-paginator.translation.d.ts +0 -2
- package/tables/module.d.ts +0 -10
- package/tables/no-records.component.d.ts +0 -12
- package/toast/service.d.ts +0 -21
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter,
|
|
2
|
+
import { EventEmitter, Input, Output, ViewChild, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import * as i6 from '@
|
|
6
|
-
import { MatProgressBarModule } from '@
|
|
7
|
-
import * as i5 from '@
|
|
8
|
-
import { MatDividerModule } from '@
|
|
9
|
-
import * as i4 from '@
|
|
10
|
-
import { MatButtonModule } from '@
|
|
11
|
-
import * as i1 from '@
|
|
12
|
-
import { MatCardModule } from '@
|
|
13
|
-
import * as i3 from '@
|
|
14
|
-
import { MatIconModule } from '@
|
|
5
|
+
import * as i6 from '@angular/material/progress-bar';
|
|
6
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
7
|
+
import * as i5 from '@angular/material/divider';
|
|
8
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
9
|
+
import * as i4 from '@angular/material/button';
|
|
10
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
+
import * as i1 from '@angular/material/card';
|
|
12
|
+
import { MatCardModule } from '@angular/material/card';
|
|
13
|
+
import * as i3 from '@angular/material/icon';
|
|
14
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
15
15
|
|
|
16
16
|
class TakBoxFormComponent {
|
|
17
17
|
constructor(_href, _cd) {
|
|
@@ -62,10 +62,10 @@ class TakBoxFormComponent {
|
|
|
62
62
|
get orResetButton() {
|
|
63
63
|
return this._resetButton;
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakBoxFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TakBoxFormComponent, isStandalone: true, selector: "tak-box-form", inputs: { formGroup: "formGroup", takTitle: "takTitle", takSubtitle: "takSubtitle", showActionButtons: "showActionButtons", hasResetButton: "hasResetButton", hasBreadcrumbs: "hasBreadcrumbs", hasBackButton: "hasBackButton", hasBranding: "hasBranding", isLoading: "isLoading", exedentInPx: "exedentInPx", submitButton: "submitButton", resetButton: "resetButton" }, outputs: { ngSubmit: "ngSubmit", ngReset: "ngReset", onBack: "onBack" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: "<mat-card [class.actions-hidden]=\"!showActionButtons\">\r\n <form [formGroup]=\"formGroup\" #ngForm=\"ngForm\">\r\n @if (hasBackButton || takTitle || takSubtitle) {\r\n <section class=\"tak-box-form__branding\">\r\n @if (hasBackButton) {\r\n <div style=\"margin-right: 5px; float: left\">\r\n <button mat-icon-button type=\"button\" (click)=\"onBack.emit()\">\r\n <mat-icon>arrow_back</mat-icon>\r\n </button>\r\n </div>\r\n }\r\n <span class=\"tak-box-form__branding__title\">{{ takTitle }}</span>\r\n @if (takSubtitle) {\r\n <span class=\"tak-box-form__branding__subtitle\">{{ takSubtitle }}</span>\r\n }\r\n </section>\r\n } @if (hasBackButton || takTitle || takSubtitle) {\r\n <mat-divider></mat-divider>\r\n }\r\n <ng-content select=\"[tak-custom-branding]\"></ng-content>\r\n @if (!takTitle && !takSubtitle && !hasBackButton && hasBranding) {\r\n <mat-divider></mat-divider>\r\n }\r\n <div class=\"tak-box-form__scroll\" attr.style=\"max-height: calc(100vh - {{ exedentInPx }}px)\">\r\n <div class=\"tak-box-form__content\" #content>\r\n <ng-content />\r\n </div>\r\n </div>\r\n <mat-divider [style.margin-bottom.px]=\"!isLoading ? 4 : 0\"></mat-divider>\r\n @if (isLoading) {\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n }\r\n </form>\r\n @if (showActionButtons) {\r\n <mat-card-actions>\r\n @if (hasResetButton) {\r\n <button mat-button type=\"button\" color=\"warn\" class=\"action-button\" (click)=\"clickOnReset()\">\r\n {{ orResetButton }}\r\n </button>\r\n }\r\n <button\r\n mat-button\r\n type=\"button\"\r\n color=\"accent\"\r\n class=\"action-button\"\r\n [disabled]=\"formGroup.invalid || isLoading\"\r\n (click)=\"formGroup ? ngSubmit.emit(formGroup.value) : ngSubmit.emit()\"\r\n >\r\n {{ orSubmitButton }}\r\n </button>\r\n </mat-card-actions>\r\n }\r\n</mat-card>\r\n", styles: [".tak-box-form .mat-mdc-card{background-color:var(--tak-card-background-color)}.tak-box-form .mdc-card.actions-hidden{padding:0}.tak-box-form .mdc-card>.mdc-card-actions:last-child{margin-bottom:-8px;padding:8px}.tak-box-form .mat-mdc-card-actions{margin-left:0;margin-right:0}.tak-box-form .mdc-card{padding:0 0 8px}.tak-box-form .tak-box-form__branding{font-family:Roboto,Helvetica Neue,sans-serif;padding:10px;text-overflow:ellipsis;font-weight:bolder;white-space:nowrap;overflow:hidden}.tak-box-form .tak-box-form__branding__title{color:var(--tak-box-form-title-color)}.tak-box-form .tak-box-form__branding__subtitle{color:var(--tak-box-form-subtitle-color)}.tak-box-form .tak-box-form__branding__subtitle:before{content:\"\\a\";white-space:pre}.tak-box-form .tak-box-form__scroll{height:auto;overflow:auto}.tak-box-form .tak-box-form__content{padding:10px}.tak-box-form .action-button{font-weight:bolder!important}.tak-box-form .mdc-card__actions{overflow:hidden;display:flex;align-items:center;justify-content:right;gap:10px}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i5.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakBoxFormComponent, decorators: [{
|
|
69
69
|
type: Component,
|
|
70
70
|
args: [{ standalone: true, imports: [
|
|
71
71
|
MatCardModule,
|
|
@@ -74,7 +74,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
74
74
|
MatButtonModule,
|
|
75
75
|
MatDividerModule,
|
|
76
76
|
MatProgressBarModule,
|
|
77
|
-
], selector: 'tak-box-form', encapsulation: ViewEncapsulation.None, template: "<mat-card [class.actions-hidden]=\"!showActionButtons\">\r\n <form [formGroup]=\"formGroup\" #ngForm=\"ngForm\">\r\n @if (hasBackButton || takTitle || takSubtitle) {\r\n <section class=\"tak-box-form__branding\">\r\n @if (hasBackButton) {\r\n <div style=\"margin-right: 5px; float: left\">\r\n <button mat-icon-button type=\"button\" (click)=\"onBack.emit()\">\r\n <mat-icon>arrow_back</mat-icon>\r\n </button>\r\n </div>\r\n }\r\n <span class=\"tak-box-form__branding__title\">{{ takTitle }}</span>\r\n @if (takSubtitle) {\r\n <span class=\"tak-box-form__branding__subtitle\">{{ takSubtitle }}</span>\r\n }\r\n </section>\r\n } @if (hasBackButton || takTitle || takSubtitle) {\r\n <mat-divider></mat-divider>\r\n }\r\n <ng-content select=\"[tak-custom-branding]\"></ng-content>\r\n @if (!takTitle && !takSubtitle && !hasBackButton && hasBranding) {\r\n <mat-divider></mat-divider>\r\n }\r\n <div class=\"tak-box-form__scroll\" attr.style=\"max-height: calc(100vh - {{ exedentInPx }}px)\">\r\n <div class=\"tak-box-form__content\" #content>\r\n <ng-content />\r\n </div>\r\n </div>\r\n <mat-divider [style.margin-bottom.px]=\"!isLoading ? 4 : 0\"></mat-divider>\r\n @if (isLoading) {\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n }\r\n </form>\r\n @if (showActionButtons) {\r\n <mat-card-actions>\r\n <button\r\n mat-button\r\n type=\"button\"\r\n color=\"accent\"\r\n class=\"action-button\"\r\n [disabled]=\"formGroup.invalid || isLoading\"\r\n (click)=\"formGroup ? ngSubmit.emit(formGroup.value) : ngSubmit.emit()\"\r\n >\r\n {{ orSubmitButton }}\r\n </button>\r\n
|
|
77
|
+
], selector: 'tak-box-form', encapsulation: ViewEncapsulation.None, template: "<mat-card [class.actions-hidden]=\"!showActionButtons\">\r\n <form [formGroup]=\"formGroup\" #ngForm=\"ngForm\">\r\n @if (hasBackButton || takTitle || takSubtitle) {\r\n <section class=\"tak-box-form__branding\">\r\n @if (hasBackButton) {\r\n <div style=\"margin-right: 5px; float: left\">\r\n <button mat-icon-button type=\"button\" (click)=\"onBack.emit()\">\r\n <mat-icon>arrow_back</mat-icon>\r\n </button>\r\n </div>\r\n }\r\n <span class=\"tak-box-form__branding__title\">{{ takTitle }}</span>\r\n @if (takSubtitle) {\r\n <span class=\"tak-box-form__branding__subtitle\">{{ takSubtitle }}</span>\r\n }\r\n </section>\r\n } @if (hasBackButton || takTitle || takSubtitle) {\r\n <mat-divider></mat-divider>\r\n }\r\n <ng-content select=\"[tak-custom-branding]\"></ng-content>\r\n @if (!takTitle && !takSubtitle && !hasBackButton && hasBranding) {\r\n <mat-divider></mat-divider>\r\n }\r\n <div class=\"tak-box-form__scroll\" attr.style=\"max-height: calc(100vh - {{ exedentInPx }}px)\">\r\n <div class=\"tak-box-form__content\" #content>\r\n <ng-content />\r\n </div>\r\n </div>\r\n <mat-divider [style.margin-bottom.px]=\"!isLoading ? 4 : 0\"></mat-divider>\r\n @if (isLoading) {\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n }\r\n </form>\r\n @if (showActionButtons) {\r\n <mat-card-actions>\r\n @if (hasResetButton) {\r\n <button mat-button type=\"button\" color=\"warn\" class=\"action-button\" (click)=\"clickOnReset()\">\r\n {{ orResetButton }}\r\n </button>\r\n }\r\n <button\r\n mat-button\r\n type=\"button\"\r\n color=\"accent\"\r\n class=\"action-button\"\r\n [disabled]=\"formGroup.invalid || isLoading\"\r\n (click)=\"formGroup ? ngSubmit.emit(formGroup.value) : ngSubmit.emit()\"\r\n >\r\n {{ orSubmitButton }}\r\n </button>\r\n </mat-card-actions>\r\n }\r\n</mat-card>\r\n", styles: [".tak-box-form .mat-mdc-card{background-color:var(--tak-card-background-color)}.tak-box-form .mdc-card.actions-hidden{padding:0}.tak-box-form .mdc-card>.mdc-card-actions:last-child{margin-bottom:-8px;padding:8px}.tak-box-form .mat-mdc-card-actions{margin-left:0;margin-right:0}.tak-box-form .mdc-card{padding:0 0 8px}.tak-box-form .tak-box-form__branding{font-family:Roboto,Helvetica Neue,sans-serif;padding:10px;text-overflow:ellipsis;font-weight:bolder;white-space:nowrap;overflow:hidden}.tak-box-form .tak-box-form__branding__title{color:var(--tak-box-form-title-color)}.tak-box-form .tak-box-form__branding__subtitle{color:var(--tak-box-form-subtitle-color)}.tak-box-form .tak-box-form__branding__subtitle:before{content:\"\\a\";white-space:pre}.tak-box-form .tak-box-form__scroll{height:auto;overflow:auto}.tak-box-form .tak-box-form__content{padding:10px}.tak-box-form .action-button{font-weight:bolder!important}.tak-box-form .mdc-card__actions{overflow:hidden;display:flex;align-items:center;justify-content:right;gap:10px}\n"] }]
|
|
78
78
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { content: [{
|
|
79
79
|
type: ViewChild,
|
|
80
80
|
args: ['content']
|
|
@@ -112,11 +112,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
112
112
|
|
|
113
113
|
/** @deprecated Use standalone */
|
|
114
114
|
class TakBoxFormModule {
|
|
115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
116
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
117
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakBoxFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
116
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TakBoxFormModule, imports: [TakBoxFormComponent], exports: [TakBoxFormComponent] }); }
|
|
117
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakBoxFormModule, imports: [TakBoxFormComponent] }); }
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakBoxFormModule, decorators: [{
|
|
120
120
|
type: NgModule,
|
|
121
121
|
args: [{
|
|
122
122
|
imports: [TakBoxFormComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-box-form.mjs","sources":["../../../libraries/components/box-form/component.ts","../../../libraries/components/box-form/component.html","../../../libraries/components/box-form/module.ts","../../../libraries/components/box-form/index.ts","../../../libraries/components/box-form/kato-lee-components-box-form.ts"],"sourcesContent":["import {\r\n ChangeDetectorRef,\r\n ViewEncapsulation,\r\n EventEmitter,\r\n ElementRef,\r\n Component,\r\n ViewChild,\r\n Output,\r\n Input,\r\n} from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatProgressBarModule } from '@kato-lee/material/progress-bar';\r\nimport { MatDividerModule } from '@kato-lee/material/divider';\r\nimport { MatButtonModule } from '@kato-lee/material/button';\r\nimport { MatCardModule } from '@kato-lee/material/card';\r\nimport { MatIconModule } from '@kato-lee/material/icon';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [\r\n MatCardModule,\r\n ReactiveFormsModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatDividerModule,\r\n MatProgressBarModule,\r\n ],\r\n selector: 'tak-box-form',\r\n templateUrl: './component.html',\r\n styleUrls: ['./component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class TakBoxFormComponent {\r\n @ViewChild('content') content!: ElementRef;\r\n\r\n @Output() ngSubmit = new EventEmitter();\r\n @Output() ngReset = new EventEmitter();\r\n\r\n @Output() onBack = new EventEmitter();\r\n\r\n @Input() formGroup: FormGroup = new FormGroup({});\r\n @Input() takTitle = '';\r\n @Input() takSubtitle = '';\r\n\r\n @Input() showActionButtons = true;\r\n @Input() hasResetButton = false;\r\n @Input() hasBreadcrumbs = false;\r\n @Input() hasBackButton = false;\r\n @Input() hasBranding = true;\r\n @Input() isLoading = false;\r\n\r\n @Input() exedentInPx = 265;\r\n\r\n @Input() submitButton = '';\r\n @Input() resetButton = '';\r\n\r\n private _submitButton = '';\r\n private _resetButton = '';\r\n\r\n private _formGroupSubs!: Subscription;\r\n\r\n constructor(\r\n private _href: ElementRef<HTMLElement>,\r\n private _cd: ChangeDetectorRef\r\n ) {\r\n _href.nativeElement.classList.add('tak-box-form');\r\n }\r\n\r\n public ngOnInit(): void {\r\n this._formGroupSubs = this.formGroup.statusChanges.subscribe(() => {\r\n this._cd.markForCheck();\r\n });\r\n\r\n if (!this.showActionButtons) this.exedentInPx -= 58;\r\n\r\n this._submitButton = this.submitButton ? this.submitButton : 'ENVIAR';\r\n this._resetButton = this.resetButton ? this.resetButton : 'REINICIAR';\r\n\r\n if (this.hasBreadcrumbs) this.exedentInPx = this.exedentInPx + 45;\r\n }\r\n\r\n public clickOnReset() {\r\n if (this.formGroup) this.formGroup.reset();\r\n this.ngReset.emit();\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n if (this._formGroupSubs) this._formGroupSubs.unsubscribe();\r\n }\r\n\r\n get orSubmitButton() {\r\n return this._submitButton;\r\n }\r\n\r\n get orResetButton() {\r\n return this._resetButton;\r\n }\r\n}\r\n","<mat-card [class.actions-hidden]=\"!showActionButtons\">\r\n <form [formGroup]=\"formGroup\" #ngForm=\"ngForm\">\r\n @if (hasBackButton || takTitle || takSubtitle) {\r\n <section class=\"tak-box-form__branding\">\r\n @if (hasBackButton) {\r\n <div style=\"margin-right: 5px; float: left\">\r\n <button mat-icon-button type=\"button\" (click)=\"onBack.emit()\">\r\n <mat-icon>arrow_back</mat-icon>\r\n </button>\r\n </div>\r\n }\r\n <span class=\"tak-box-form__branding__title\">{{ takTitle }}</span>\r\n @if (takSubtitle) {\r\n <span class=\"tak-box-form__branding__subtitle\">{{ takSubtitle }}</span>\r\n }\r\n </section>\r\n } @if (hasBackButton || takTitle || takSubtitle) {\r\n <mat-divider></mat-divider>\r\n }\r\n <ng-content select=\"[tak-custom-branding]\"></ng-content>\r\n @if (!takTitle && !takSubtitle && !hasBackButton && hasBranding) {\r\n <mat-divider></mat-divider>\r\n }\r\n <div class=\"tak-box-form__scroll\" attr.style=\"max-height: calc(100vh - {{ exedentInPx }}px)\">\r\n <div class=\"tak-box-form__content\" #content>\r\n <ng-content />\r\n </div>\r\n </div>\r\n <mat-divider [style.margin-bottom.px]=\"!isLoading ? 4 : 0\"></mat-divider>\r\n @if (isLoading) {\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n }\r\n </form>\r\n @if (showActionButtons) {\r\n <mat-card-actions>\r\n <button\r\n mat-button\r\n type=\"button\"\r\n color=\"accent\"\r\n class=\"action-button\"\r\n [disabled]=\"formGroup.invalid || isLoading\"\r\n (click)=\"formGroup ? ngSubmit.emit(formGroup.value) : ngSubmit.emit()\"\r\n >\r\n {{ orSubmitButton }}\r\n </button>\r\n @if (hasResetButton) {\r\n <button mat-button type=\"button\" color=\"warn\" class=\"action-button\" (click)=\"clickOnReset()\">\r\n {{ orResetButton }}\r\n </button>\r\n }\r\n </mat-card-actions>\r\n }\r\n</mat-card>\r\n","import { NgModule } from '@angular/core';\r\nimport { TakBoxFormComponent } from './component';\r\n\r\n/** @deprecated Use standalone */\r\n@NgModule({\r\n imports: [TakBoxFormComponent],\r\n exports: [TakBoxFormComponent],\r\n})\r\nexport class TakBoxFormModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/box-form\r\n */\r\nexport * from './component';\r\nexport * from './module';\r\nexport * from './common';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAkCa,mBAAmB,CAAA;IA6B9B,WACU,CAAA,KAA8B,EAC9B,GAAsB,EAAA;QADtB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAyB;QAC9B,IAAG,CAAA,GAAA,GAAH,GAAG,CAAmB;AA5BtB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;AAC9B,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,YAAY,EAAE,CAAC;AAE7B,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;AAE7B,QAAA,IAAA,CAAA,SAAS,GAAc,IAAI,SAAS,CAAC,EAAE,CAAC,CAAC;QACzC,IAAQ,CAAA,QAAA,GAAG,EAAE,CAAC;QACd,IAAW,CAAA,WAAA,GAAG,EAA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BAAjB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBAEG,iBAAiB,EAAA,CAAA;sBAAzB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBAEG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBAEG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;;;AErDR;MAKa,gBAAgB,CAAA;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAhB,gBAAgB,EAAA,OAAA,EAAA,CAHjB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACnB,mBAAmB,CAAA,EAAA,CAAA,CAAA,EAAA;AAElB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAHjB,mBAAmB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGlB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,mBAAmB,CAAC;oBAC9B,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC/B,iBAAA,CAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"kato-lee-components-box-form.mjs","sources":["../../../libraries/components/box-form/component.ts","../../../libraries/components/box-form/component.html","../../../libraries/components/box-form/module.ts","../../../libraries/components/box-form/index.ts","../../../libraries/components/box-form/kato-lee-components-box-form.ts"],"sourcesContent":["import {\r\n ChangeDetectorRef,\r\n ViewEncapsulation,\r\n EventEmitter,\r\n ElementRef,\r\n Component,\r\n ViewChild,\r\n Output,\r\n Input,\r\n} from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatIconModule } from '@angular/material/icon';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [\r\n MatCardModule,\r\n ReactiveFormsModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatDividerModule,\r\n MatProgressBarModule,\r\n ],\r\n selector: 'tak-box-form',\r\n templateUrl: './component.html',\r\n styleUrls: ['./component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class TakBoxFormComponent {\r\n @ViewChild('content') content!: ElementRef;\r\n\r\n @Output() ngSubmit = new EventEmitter();\r\n @Output() ngReset = new EventEmitter();\r\n\r\n @Output() onBack = new EventEmitter();\r\n\r\n @Input() formGroup: FormGroup = new FormGroup({});\r\n @Input() takTitle = '';\r\n @Input() takSubtitle = '';\r\n\r\n @Input() showActionButtons = true;\r\n @Input() hasResetButton = false;\r\n @Input() hasBreadcrumbs = false;\r\n @Input() hasBackButton = false;\r\n @Input() hasBranding = true;\r\n @Input() isLoading = false;\r\n\r\n @Input() exedentInPx = 265;\r\n\r\n @Input() submitButton = '';\r\n @Input() resetButton = '';\r\n\r\n private _submitButton = '';\r\n private _resetButton = '';\r\n\r\n private _formGroupSubs!: Subscription;\r\n\r\n constructor(\r\n private _href: ElementRef,\r\n private _cd: ChangeDetectorRef\r\n ) {\r\n _href.nativeElement.classList.add('tak-box-form');\r\n }\r\n\r\n public ngOnInit(): void {\r\n this._formGroupSubs = this.formGroup.statusChanges.subscribe(() => {\r\n this._cd.markForCheck();\r\n });\r\n\r\n if (!this.showActionButtons) this.exedentInPx -= 58;\r\n\r\n this._submitButton = this.submitButton ? this.submitButton : 'ENVIAR';\r\n this._resetButton = this.resetButton ? this.resetButton : 'REINICIAR';\r\n\r\n if (this.hasBreadcrumbs) this.exedentInPx = this.exedentInPx + 45;\r\n }\r\n\r\n public clickOnReset() {\r\n if (this.formGroup) this.formGroup.reset();\r\n this.ngReset.emit();\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n if (this._formGroupSubs) this._formGroupSubs.unsubscribe();\r\n }\r\n\r\n get orSubmitButton() {\r\n return this._submitButton;\r\n }\r\n\r\n get orResetButton() {\r\n return this._resetButton;\r\n }\r\n}\r\n","<mat-card [class.actions-hidden]=\"!showActionButtons\">\r\n <form [formGroup]=\"formGroup\" #ngForm=\"ngForm\">\r\n @if (hasBackButton || takTitle || takSubtitle) {\r\n <section class=\"tak-box-form__branding\">\r\n @if (hasBackButton) {\r\n <div style=\"margin-right: 5px; float: left\">\r\n <button mat-icon-button type=\"button\" (click)=\"onBack.emit()\">\r\n <mat-icon>arrow_back</mat-icon>\r\n </button>\r\n </div>\r\n }\r\n <span class=\"tak-box-form__branding__title\">{{ takTitle }}</span>\r\n @if (takSubtitle) {\r\n <span class=\"tak-box-form__branding__subtitle\">{{ takSubtitle }}</span>\r\n }\r\n </section>\r\n } @if (hasBackButton || takTitle || takSubtitle) {\r\n <mat-divider></mat-divider>\r\n }\r\n <ng-content select=\"[tak-custom-branding]\"></ng-content>\r\n @if (!takTitle && !takSubtitle && !hasBackButton && hasBranding) {\r\n <mat-divider></mat-divider>\r\n }\r\n <div class=\"tak-box-form__scroll\" attr.style=\"max-height: calc(100vh - {{ exedentInPx }}px)\">\r\n <div class=\"tak-box-form__content\" #content>\r\n <ng-content />\r\n </div>\r\n </div>\r\n <mat-divider [style.margin-bottom.px]=\"!isLoading ? 4 : 0\"></mat-divider>\r\n @if (isLoading) {\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n }\r\n </form>\r\n @if (showActionButtons) {\r\n <mat-card-actions>\r\n @if (hasResetButton) {\r\n <button mat-button type=\"button\" color=\"warn\" class=\"action-button\" (click)=\"clickOnReset()\">\r\n {{ orResetButton }}\r\n </button>\r\n }\r\n <button\r\n mat-button\r\n type=\"button\"\r\n color=\"accent\"\r\n class=\"action-button\"\r\n [disabled]=\"formGroup.invalid || isLoading\"\r\n (click)=\"formGroup ? ngSubmit.emit(formGroup.value) : ngSubmit.emit()\"\r\n >\r\n {{ orSubmitButton }}\r\n </button>\r\n </mat-card-actions>\r\n }\r\n</mat-card>\r\n","import { NgModule } from '@angular/core';\r\nimport { TakBoxFormComponent } from './component';\r\n\r\n/** @deprecated Use standalone */\r\n@NgModule({\r\n imports: [TakBoxFormComponent],\r\n exports: [TakBoxFormComponent],\r\n})\r\nexport class TakBoxFormModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/box-form\r\n */\r\nexport * from './component';\r\nexport * from './module';\r\nexport * from './common';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAkCa,mBAAmB,CAAA;IA6B9B,WAAA,CACU,KAAiB,EACjB,GAAsB,EAAA;QADtB,IAAA,CAAA,KAAK,GAAL,KAAK;QACL,IAAA,CAAA,GAAG,GAAH,GAAG;AA5BH,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAE;AAC7B,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,YAAY,EAAE;AAE5B,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAE;AAE5B,QAAA,IAAA,CAAA,SAAS,GAAc,IAAI,SAAS,CAAC,EAAE,CAAC;QACxC,IAAA,CAAA,QAAQ,GAAG,EAAE;QACb,IAAA,CAAA,WAAW,GAAG,EAAE;QA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EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAhB,gBAAgB,EAAA,OAAA,EAAA,CAHjB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACnB,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAElB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAHjB,mBAAmB,CAAA,EAAA,CAAA,CAAA;;4FAGlB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,mBAAmB,CAAC;oBAC9B,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC/B,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Input, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class TakCapsuleComponent {
|
|
5
5
|
constructor() {
|
|
@@ -65,10 +65,10 @@ class TakCapsuleComponent {
|
|
|
65
65
|
get gridPrincipal() {
|
|
66
66
|
return this._gridPrincipal;
|
|
67
67
|
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
68
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCapsuleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
69
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TakCapsuleComponent, isStandalone: true, selector: "tak-capsule", inputs: { predefinedGrid: "predefinedGrid", grids: "grids" }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"row no-padding\">\r\n <div [class]=\"gridsOnSides\"></div>\r\n <div [class]=\"gridPrincipal\">\r\n <ng-content />\r\n </div>\r\n <div [class]=\"gridsOnSides\"></div>\r\n </div>\r\n</div>\r\n", encapsulation: i0.ViewEncapsulation.None }); }
|
|
70
70
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCapsuleComponent, decorators: [{
|
|
72
72
|
type: Component,
|
|
73
73
|
args: [{ standalone: true, selector: 'tak-capsule', encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\r\n <div class=\"row no-padding\">\r\n <div [class]=\"gridsOnSides\"></div>\r\n <div [class]=\"gridPrincipal\">\r\n <ng-content />\r\n </div>\r\n <div [class]=\"gridsOnSides\"></div>\r\n </div>\r\n</div>\r\n" }]
|
|
74
74
|
}], propDecorators: { predefinedGrid: [{
|
|
@@ -79,11 +79,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
79
79
|
|
|
80
80
|
/** @deprecated Use standalone */
|
|
81
81
|
class TakCapsuleModule {
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
83
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
84
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCapsuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
83
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TakCapsuleModule, imports: [TakCapsuleComponent], exports: [TakCapsuleComponent] }); }
|
|
84
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCapsuleModule }); }
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCapsuleModule, decorators: [{
|
|
87
87
|
type: NgModule,
|
|
88
88
|
args: [{
|
|
89
89
|
imports: [TakCapsuleComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-capsule.mjs","sources":["../../../libraries/components/capsule/component.ts","../../../libraries/components/capsule/component.html","../../../libraries/components/capsule/module.ts","../../../libraries/components/capsule/index.ts","../../../libraries/components/capsule/kato-lee-components-capsule.ts"],"sourcesContent":["import { Component, Input, ViewEncapsulation } from '@angular/core';\r\n\r\nexport type TakPredefinedGrid = 'small' | 'medium' | 'big' | undefined;\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'tak-capsule',\r\n templateUrl: './component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class TakCapsuleComponent {\r\n @Input() predefinedGrid: TakPredefinedGrid;\r\n @Input() grids!: number[];\r\n\r\n private _gridsOnSides = '';\r\n private _gridPrincipal = '';\r\n\r\n public ngOnInit(): void {\r\n const gridsGenerated = this._generateGridsFromArray(this.grids, this.predefinedGrid);\r\n this._gridsOnSides = gridsGenerated.onSides;\r\n this._gridPrincipal = gridsGenerated.principal;\r\n }\r\n\r\n get gridsOnSides() {\r\n return this._gridsOnSides;\r\n }\r\n\r\n get gridPrincipal() {\r\n return this._gridPrincipal;\r\n }\r\n\r\n private _generateGridsFromArray = (grids?: number[], predefinedGrid?: TakPredefinedGrid) => {\r\n let onSides = '',\r\n principal = '',\r\n counter = 0,\r\n customizedGrids = [0];\r\n\r\n if (predefinedGrid) {\r\n if (predefinedGrid === 'small') customizedGrids = [12, 10, 8, 6, 4];\r\n if (predefinedGrid === 'medium') customizedGrids = [12, 10, 8, 6, 4];\r\n if (predefinedGrid === 'big') customizedGrids = [12, 12, 10, 10, 8, 6];\r\n } else customizedGrids = grids || [12, 12, 10, 8, 6, 4];\r\n\r\n customizedGrids.map(r => {\r\n if (r % 2) r++;\r\n\r\n if (r >= 1 && r <= 12) {\r\n if (counter === 0) {\r\n onSides = `col-bt-${(12 - r) / 2}`;\r\n principal = `col-bt-${r}`;\r\n }\r\n if (counter === 1) {\r\n onSides = `${onSides} col-bt-sm-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-sm-${r}`;\r\n }\r\n if (counter === 2) {\r\n onSides = `${onSides} col-bt-md-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-md-${r}`;\r\n }\r\n if (counter === 3) {\r\n onSides = `${onSides} col-bt-lg-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-lg-${r}`;\r\n }\r\n if (counter === 4) {\r\n onSides = `${onSides} col-bt-xl-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-xl-${r}`;\r\n }\r\n if (counter === 5) {\r\n onSides = `${onSides} col-bt-xxl-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-xxl-${r}`;\r\n }\r\n }\r\n counter++;\r\n });\r\n\r\n return {\r\n onSides,\r\n principal,\r\n };\r\n };\r\n}\r\n","<div class=\"container\">\r\n <div class=\"row no-padding\">\r\n <div [class]=\"gridsOnSides\"></div>\r\n <div [class]=\"gridPrincipal\">\r\n <ng-content />\r\n </div>\r\n <div [class]=\"gridsOnSides\"></div>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { TakCapsuleComponent } from './component';\r\n\r\n/** @deprecated Use standalone */\r\n@NgModule({\r\n imports: [TakCapsuleComponent],\r\n exports: [TakCapsuleComponent],\r\n})\r\nexport class TakCapsuleModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/capsule\r\n */\r\nexport * from './component';\r\nexport * from './module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,mBAAmB,CAAA;AANhC,IAAA,WAAA,GAAA;QAUU,
|
|
1
|
+
{"version":3,"file":"kato-lee-components-capsule.mjs","sources":["../../../libraries/components/capsule/component.ts","../../../libraries/components/capsule/component.html","../../../libraries/components/capsule/module.ts","../../../libraries/components/capsule/index.ts","../../../libraries/components/capsule/kato-lee-components-capsule.ts"],"sourcesContent":["import { Component, Input, ViewEncapsulation } from '@angular/core';\r\n\r\nexport type TakPredefinedGrid = 'small' | 'medium' | 'big' | undefined;\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'tak-capsule',\r\n templateUrl: './component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class TakCapsuleComponent {\r\n @Input() predefinedGrid: TakPredefinedGrid;\r\n @Input() grids!: number[];\r\n\r\n private _gridsOnSides = '';\r\n private _gridPrincipal = '';\r\n\r\n public ngOnInit(): void {\r\n const gridsGenerated = this._generateGridsFromArray(this.grids, this.predefinedGrid);\r\n this._gridsOnSides = gridsGenerated.onSides;\r\n this._gridPrincipal = gridsGenerated.principal;\r\n }\r\n\r\n get gridsOnSides() {\r\n return this._gridsOnSides;\r\n }\r\n\r\n get gridPrincipal() {\r\n return this._gridPrincipal;\r\n }\r\n\r\n private _generateGridsFromArray = (grids?: number[], predefinedGrid?: TakPredefinedGrid) => {\r\n let onSides = '',\r\n principal = '',\r\n counter = 0,\r\n customizedGrids = [0];\r\n\r\n if (predefinedGrid) {\r\n if (predefinedGrid === 'small') customizedGrids = [12, 10, 8, 6, 4];\r\n if (predefinedGrid === 'medium') customizedGrids = [12, 10, 8, 6, 4];\r\n if (predefinedGrid === 'big') customizedGrids = [12, 12, 10, 10, 8, 6];\r\n } else customizedGrids = grids || [12, 12, 10, 8, 6, 4];\r\n\r\n customizedGrids.map(r => {\r\n if (r % 2) r++;\r\n\r\n if (r >= 1 && r <= 12) {\r\n if (counter === 0) {\r\n onSides = `col-bt-${(12 - r) / 2}`;\r\n principal = `col-bt-${r}`;\r\n }\r\n if (counter === 1) {\r\n onSides = `${onSides} col-bt-sm-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-sm-${r}`;\r\n }\r\n if (counter === 2) {\r\n onSides = `${onSides} col-bt-md-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-md-${r}`;\r\n }\r\n if (counter === 3) {\r\n onSides = `${onSides} col-bt-lg-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-lg-${r}`;\r\n }\r\n if (counter === 4) {\r\n onSides = `${onSides} col-bt-xl-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-xl-${r}`;\r\n }\r\n if (counter === 5) {\r\n onSides = `${onSides} col-bt-xxl-${(12 - r) / 2}`;\r\n principal = `${principal} col-bt-xxl-${r}`;\r\n }\r\n }\r\n counter++;\r\n });\r\n\r\n return {\r\n onSides,\r\n principal,\r\n };\r\n };\r\n}\r\n","<div class=\"container\">\r\n <div class=\"row no-padding\">\r\n <div [class]=\"gridsOnSides\"></div>\r\n <div [class]=\"gridPrincipal\">\r\n <ng-content />\r\n </div>\r\n <div [class]=\"gridsOnSides\"></div>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { TakCapsuleComponent } from './component';\r\n\r\n/** @deprecated Use standalone */\r\n@NgModule({\r\n imports: [TakCapsuleComponent],\r\n exports: [TakCapsuleComponent],\r\n})\r\nexport class TakCapsuleModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/capsule\r\n */\r\nexport * from './component';\r\nexport * from './module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,mBAAmB,CAAA;AANhC,IAAA,WAAA,GAAA;QAUU,I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Q;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,mBAAmB,CAAC;oBAC9B,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC/B,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Input, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class TakSimpleCardComponent {
|
|
5
5
|
constructor() {
|
|
@@ -7,8 +7,8 @@ class TakSimpleCardComponent {
|
|
|
7
7
|
this.topLineClass = '';
|
|
8
8
|
this.topLineColor = '';
|
|
9
9
|
}
|
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakSimpleCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TakSimpleCardComponent, isStandalone: true, selector: "tak-simple-card", inputs: { hasTopLine: "hasTopLine", topLineClass: "topLineClass", topLineColor: "topLineColor" }, ngImport: i0, template: `
|
|
12
12
|
@if (hasTopLine) {
|
|
13
13
|
<div
|
|
14
14
|
class="tak-simple-card--topline {{ topLineClass }}"
|
|
@@ -20,7 +20,7 @@ class TakSimpleCardComponent {
|
|
|
20
20
|
</div>
|
|
21
21
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakSimpleCardComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{
|
|
26
26
|
standalone: true,
|
|
@@ -50,11 +50,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
50
50
|
const components = [TakSimpleCardComponent];
|
|
51
51
|
/** @deprecated Use standalone */
|
|
52
52
|
class TakCardsModule {
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
55
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCardsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
54
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TakCardsModule, imports: [TakSimpleCardComponent], exports: [TakSimpleCardComponent] }); }
|
|
55
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCardsModule }); }
|
|
56
56
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakCardsModule, decorators: [{
|
|
58
58
|
type: NgModule,
|
|
59
59
|
args: [{
|
|
60
60
|
imports: components,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-cards.mjs","sources":["../../../libraries/components/cards/component.ts","../../../libraries/components/cards/module.ts","../../../libraries/components/cards/index.ts","../../../libraries/components/cards/kato-lee-components-cards.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\r\n\r\n@Component({\r\n standalone:true,\r\n selector: 'tak-simple-card',\r\n template: `\r\n @if (hasTopLine) {\r\n <div\r\n class=\"tak-simple-card--topline {{ topLineClass }}\"\r\n [style.background]=\"topLineColor\"\r\n ></div>\r\n }\r\n <div class=\"tak-simple-card\" [class.no-card-topline]=\"!hasTopLine\">\r\n <ng-content/>\r\n </div>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakSimpleCardComponent {\r\n @Input() hasTopLine: boolean = true;\r\n @Input() topLineClass: string = '';\r\n @Input() topLineColor: string = '';\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { TakSimpleCardComponent } from './component';\r\n\r\nconst components = [TakSimpleCardComponent];\r\n\r\n/** @deprecated Use standalone */\r\n@NgModule({\r\n imports: components,\r\n exports: components,\r\n})\r\nexport class TakCardsModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/cards\r\n */\r\n\r\nexport * from './module';\r\nexport * from './component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAmBa,sBAAsB,CAAA;AAjBnC,IAAA,WAAA,GAAA;QAkBW,
|
|
1
|
+
{"version":3,"file":"kato-lee-components-cards.mjs","sources":["../../../libraries/components/cards/component.ts","../../../libraries/components/cards/module.ts","../../../libraries/components/cards/index.ts","../../../libraries/components/cards/kato-lee-components-cards.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\r\n\r\n@Component({\r\n standalone:true,\r\n selector: 'tak-simple-card',\r\n template: `\r\n @if (hasTopLine) {\r\n <div\r\n class=\"tak-simple-card--topline {{ topLineClass }}\"\r\n [style.background]=\"topLineColor\"\r\n ></div>\r\n }\r\n <div class=\"tak-simple-card\" [class.no-card-topline]=\"!hasTopLine\">\r\n <ng-content/>\r\n </div>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakSimpleCardComponent {\r\n @Input() hasTopLine: boolean = true;\r\n @Input() topLineClass: string = '';\r\n @Input() topLineColor: string = '';\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { TakSimpleCardComponent } from './component';\r\n\r\nconst components = [TakSimpleCardComponent];\r\n\r\n/** @deprecated Use standalone */\r\n@NgModule({\r\n imports: components,\r\n exports: components,\r\n})\r\nexport class TakCardsModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/cards\r\n */\r\n\r\nexport * from './module';\r\nexport * from './component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAmBa,sBAAsB,CAAA;AAjBnC,IAAA,WAAA,GAAA;QAkBW,IAAA,CAAA,UAAU,GAAY,IAAI;QAC1B,IAAA,CAAA,YAAY,GAAW,EAAE;QACzB,IAAA,CAAA,YAAY,GAAW,EAAE;AACnC,IAAA;+GAJY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,YAAA,EAAA,cAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAdvB,CAAA;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAIU,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAjBlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAC,IAAI;AACf,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;AAUT,EAAA,CAAA;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;sBAEE;;sBACA;;sBACA;;;ACnBH,MAAM,UAAU,GAAG,CAAC,sBAAsB,CAAC;AAE3C;MAKa,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAd,cAAc,EAAA,OAAA,EAAA,CAPP,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAAtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;gHAO7B,cAAc,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,UAAU;AACnB,oBAAA,OAAO,EAAE,UAAU;AACpB,iBAAA;;;ACTD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as i3 from '@
|
|
4
|
-
import { MatButtonModule } from '@
|
|
5
|
-
import * as i2 from '@
|
|
6
|
-
import { MatIconModule } from '@
|
|
7
|
-
import * as i4 from '@
|
|
8
|
-
import { MatDividerModule } from '@
|
|
9
|
-
import * as i1 from '@
|
|
10
|
-
import { MatDialogModule } from '@
|
|
2
|
+
import { ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/material/button';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import * as i2 from '@angular/material/icon';
|
|
6
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
7
|
+
import * as i4 from '@angular/material/divider';
|
|
8
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
9
|
+
import * as i1 from '@angular/material/dialog';
|
|
10
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
11
11
|
|
|
12
12
|
class TakDismissDialogButtonComponent {
|
|
13
13
|
constructor(dialogRef) {
|
|
14
14
|
this.dialogRef = dialogRef;
|
|
15
15
|
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakDismissDialogButtonComponent, deps: [{ token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TakDismissDialogButtonComponent, isStandalone: true, selector: "tak-dismiss-dialog-button", host: { attributes: { "directive": "tak-dialog-title" } }, ngImport: i0, template: `
|
|
18
18
|
<div class="tak-modal__top-container--custom">
|
|
19
19
|
<h1 class="tak-modal__top-container--custom--title"><ng-content /></h1>
|
|
20
20
|
<button mat-icon-button (click)="dialogRef.close()"><mat-icon>close</mat-icon></button>
|
|
21
21
|
</div>
|
|
22
22
|
<mat-divider />
|
|
23
23
|
<input style="display: none !important;" cdkFocusInitial />
|
|
24
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.
|
|
24
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatDialogModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakDismissDialogButtonComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{
|
|
29
29
|
standalone: true,
|
|
@@ -47,11 +47,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
47
47
|
|
|
48
48
|
const components = [TakDismissDialogButtonComponent];
|
|
49
49
|
class TakDialogModule {
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
51
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
52
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
51
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TakDialogModule, imports: [TakDismissDialogButtonComponent], exports: [TakDismissDialogButtonComponent, MatDialogModule] }); }
|
|
52
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakDialogModule, imports: [components, MatDialogModule] }); }
|
|
53
53
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TakDialogModule, decorators: [{
|
|
55
55
|
type: NgModule,
|
|
56
56
|
args: [{
|
|
57
57
|
imports: [...components],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-dialogs.mjs","sources":["../../../libraries/components/dialogs/dismiss-dialog-button.component.ts","../../../libraries/components/dialogs/module.ts","../../../libraries/components/dialogs/index.ts","../../../libraries/components/dialogs/kato-lee-components-dialogs.ts"],"sourcesContent":["import { ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';\r\nimport { MatDialogRef } from '@
|
|
1
|
+
{"version":3,"file":"kato-lee-components-dialogs.mjs","sources":["../../../libraries/components/dialogs/dismiss-dialog-button.component.ts","../../../libraries/components/dialogs/module.ts","../../../libraries/components/dialogs/index.ts","../../../libraries/components/dialogs/kato-lee-components-dialogs.ts"],"sourcesContent":["import { ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';\r\nimport { MatDialogRef } from '@angular/material/dialog';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [MatIconModule, MatButtonModule, MatDividerModule, MatDialogModule],\r\n selector: 'tak-dismiss-dialog-button',\r\n host: {\r\n directive: 'tak-dialog-title',\r\n },\r\n template: `\r\n <div class=\"tak-modal__top-container--custom\">\r\n <h1 class=\"tak-modal__top-container--custom--title\"><ng-content /></h1>\r\n <button mat-icon-button (click)=\"dialogRef.close()\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n <mat-divider />\r\n <input style=\"display: none !important;\" cdkFocusInitial />\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakDismissDialogButtonComponent {\r\n constructor(public dialogRef: MatDialogRef<TakDismissDialogButtonComponent>) {}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { TakDismissDialogButtonComponent } from './dismiss-dialog-button.component';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\n\r\nconst components = [TakDismissDialogButtonComponent];\r\n\r\n@NgModule({\r\n imports: [...components],\r\n exports: [...components, MatDialogModule],\r\n})\r\nexport class TakDialogModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/dialogs\r\n */\r\n\r\nexport * from './module';\r\nexport * from './dismiss-dialog-button.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAyBa,+BAA+B,CAAA;AAC1C,IAAA,WAAA,CAAmB,SAAwD,EAAA;QAAxD,IAAA,CAAA,SAAS,GAAT,SAAS;IAAkD;+GADnE,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,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