@kato-lee/components 1.0.7 → 1.1.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/assets/_grids.scss +5 -5
- package/assets/fonts/fonts.scss +11 -0
- package/assets/material/themes/dark.scss +2 -1
- package/assets/themes/_dark.scss +2 -1
- package/assets/themes/_default.scss +0 -1
- package/box-form/{box-form.component.d.ts → component.d.ts} +2 -2
- package/box-form/index.d.ts +2 -2
- package/box-form/module.d.ts +8 -0
- package/capsule/{capsule.component.d.ts → component.d.ts} +1 -1
- package/capsule/index.d.ts +2 -2
- package/capsule/{capsule.module.d.ts → module.d.ts} +3 -2
- package/cards/{simple-card.component.d.ts → component.d.ts} +1 -1
- package/cards/index.d.ts +2 -2
- package/cards/{cards.module.d.ts → module.d.ts} +3 -2
- package/dialogs/dismiss-dialog-button.component.d.ts +1 -1
- package/dialogs/index.d.ts +1 -1
- package/dialogs/module.d.ts +9 -0
- package/esm2022/box-form/component.mjs +112 -0
- package/esm2022/box-form/index.mjs +3 -3
- package/esm2022/box-form/module.mjs +17 -0
- package/esm2022/capsule/component.mjs +78 -0
- package/esm2022/capsule/index.mjs +3 -3
- package/esm2022/capsule/module.mjs +17 -0
- package/esm2022/cards/component.mjs +48 -0
- package/esm2022/cards/index.mjs +3 -3
- package/esm2022/cards/module.mjs +18 -0
- package/esm2022/dialogs/dismiss-dialog-button.component.mjs +14 -12
- package/esm2022/dialogs/index.mjs +2 -2
- package/esm2022/dialogs/module.mjs +19 -0
- package/esm2022/fields/autocomplete/component.mjs +259 -0
- package/esm2022/fields/autocomplete/index.mjs +2 -0
- package/esm2022/fields/common.mjs +11 -0
- package/esm2022/fields/date/component.mjs +163 -0
- package/esm2022/fields/date/index.mjs +2 -0
- package/esm2022/fields/date-range/component.mjs +85 -0
- package/esm2022/fields/date-range/index.mjs +2 -0
- package/esm2022/fields/error/component.mjs +57 -0
- package/esm2022/fields/error/error-equals.pipe.mjs +3 -3
- package/esm2022/fields/error/error.msg.pipe.mjs +3 -3
- package/esm2022/fields/general/component.mjs +202 -0
- package/esm2022/fields/general/index.mjs +2 -0
- package/esm2022/fields/index.mjs +14 -14
- package/esm2022/fields/module.mjs +82 -0
- package/esm2022/fields/money/component.mjs +202 -0
- package/esm2022/fields/money/index.mjs +2 -0
- package/esm2022/fields/number/component.mjs +179 -0
- package/esm2022/fields/number/index.mjs +2 -0
- package/esm2022/fields/remote-autocomplete/component.mjs +188 -0
- package/esm2022/fields/remote-autocomplete/index.mjs +2 -0
- package/esm2022/fields/select/component.mjs +158 -0
- package/esm2022/fields/select/index.mjs +2 -0
- package/esm2022/fields/text-area/component.mjs +186 -0
- package/esm2022/fields/validators.mjs +11 -0
- package/esm2022/modal/component.mjs +66 -0
- package/esm2022/modal/index.mjs +4 -4
- package/esm2022/modal/module.mjs +17 -0
- package/esm2022/modal/service.mjs +33 -0
- package/esm2022/pretty-box/component.mjs +94 -0
- package/esm2022/pretty-box/index.mjs +2 -2
- package/esm2022/tables/index.mjs +2 -2
- package/esm2022/tables/module.mjs +23 -0
- package/esm2022/toast/index.mjs +2 -2
- package/esm2022/toast/service.mjs +42 -0
- package/fesm2022/kato-lee-components-box-form.mjs +19 -29
- package/fesm2022/kato-lee-components-box-form.mjs.map +1 -1
- package/fesm2022/kato-lee-components-capsule.mjs +5 -4
- package/fesm2022/kato-lee-components-capsule.mjs.map +1 -1
- package/fesm2022/kato-lee-components-cards.mjs +7 -5
- package/fesm2022/kato-lee-components-cards.mjs.map +1 -1
- package/fesm2022/kato-lee-components-dialogs.mjs +16 -18
- package/fesm2022/kato-lee-components-dialogs.mjs.map +1 -1
- package/fesm2022/kato-lee-components-fields.mjs +135 -106
- package/fesm2022/kato-lee-components-fields.mjs.map +1 -1
- package/fesm2022/kato-lee-components-modal.mjs +9 -10
- package/fesm2022/kato-lee-components-modal.mjs.map +1 -1
- package/fesm2022/kato-lee-components-pretty-box.mjs +6 -6
- package/fesm2022/kato-lee-components-pretty-box.mjs.map +1 -1
- package/fesm2022/kato-lee-components-tables.mjs +1 -0
- package/fesm2022/kato-lee-components-tables.mjs.map +1 -1
- package/fesm2022/kato-lee-components-toast.mjs.map +1 -1
- package/fields/{autocomplete-field/autocomplete-field.component.d.ts → autocomplete/component.d.ts} +2 -2
- package/fields/autocomplete/index.d.ts +1 -0
- package/fields/{date-field/date-field.component.d.ts → date/component.d.ts} +2 -2
- package/fields/date/index.d.ts +1 -0
- package/fields/{date-range-field/date-range-field.component.d.ts → date-range/component.d.ts} +2 -2
- package/fields/date-range/index.d.ts +1 -0
- package/fields/error/{error.component.d.ts → component.d.ts} +1 -1
- package/fields/error/error-equals.pipe.d.ts +1 -1
- package/fields/error/error.msg.pipe.d.ts +1 -1
- package/fields/{general-field/general-field.component.d.ts → general/component.d.ts} +2 -2
- package/fields/general/index.d.ts +1 -0
- package/fields/index.d.ts +13 -13
- package/fields/module.d.ts +19 -0
- package/fields/{money-field/money-field.component.d.ts → money/component.d.ts} +1 -1
- package/fields/money/index.d.ts +1 -0
- package/fields/{number-field/number-field.component.d.ts → number/component.d.ts} +1 -1
- package/fields/number/index.d.ts +1 -0
- package/fields/remote-autocomplete/index.d.ts +1 -0
- package/fields/{select-field/select-field.component.d.ts → select/component.d.ts} +2 -2
- package/fields/select/index.d.ts +1 -0
- package/fields/text-area/{textarea.component.d.ts → component.d.ts} +1 -1
- package/modal/{modal.component.d.ts → component.d.ts} +1 -1
- package/modal/index.d.ts +3 -3
- package/modal/module.d.ts +8 -0
- package/package.json +1 -7
- package/pretty-box/component.d.ts +24 -0
- package/pretty-box/index.d.ts +1 -1
- package/tables/index.d.ts +1 -1
- package/tables/{tables.module.d.ts → module.d.ts} +1 -0
- package/toast/index.d.ts +1 -1
- package/assets/fonts/body/Transpass-Bold.ttf +0 -0
- package/assets/fonts/body/Transpass-Light.ttf +0 -0
- package/assets/fonts/body/Transpass-Medium.ttf +0 -0
- package/assets/fonts/body/Transpass-Regular.ttf +0 -0
- package/assets/fonts/body/style-font.scss +0 -40
- package/assets/fonts/main.scss +0 -18
- package/assets/fonts/title/Poppins-Bold.ttf +0 -0
- package/assets/fonts/title/Poppins-Light.ttf +0 -0
- package/assets/fonts/title/Poppins-Medium.ttf +0 -0
- package/assets/fonts/title/Poppins-Regular.ttf +0 -0
- package/assets/fonts/title/Poppins-SemiBold.ttf +0 -0
- package/assets/fonts/title/style-font.scss +0 -39
- package/assets/layouts/_loader.scss +0 -71
- package/assets/layouts/origin.scss +0 -775
- package/box-form/box-form.module.d.ts +0 -13
- package/dialogs/dialogs.module.d.ts +0 -11
- package/esm2022/box-form/box-form.component.mjs +0 -99
- package/esm2022/box-form/box-form.module.mjs +0 -40
- package/esm2022/capsule/capsule.component.mjs +0 -78
- package/esm2022/capsule/capsule.module.mjs +0 -16
- package/esm2022/cards/cards.module.mjs +0 -17
- package/esm2022/cards/simple-card.component.mjs +0 -47
- package/esm2022/dialogs/dialogs.module.mjs +0 -22
- package/esm2022/fields/autocomplete-field/autocomplete-field.component.mjs +0 -240
- package/esm2022/fields/date-field/date-field.component.mjs +0 -148
- package/esm2022/fields/date-range-field/date-range-field.component.mjs +0 -70
- package/esm2022/fields/error/error.component.mjs +0 -55
- package/esm2022/fields/error/error.module.mjs +0 -21
- package/esm2022/fields/fields.common.mjs +0 -11
- package/esm2022/fields/fields.module.mjs +0 -128
- package/esm2022/fields/fields.validators.mjs +0 -11
- package/esm2022/fields/general-field/general-field.component.mjs +0 -188
- package/esm2022/fields/money-field/money-field.component.mjs +0 -188
- package/esm2022/fields/number-field/number-field.component.mjs +0 -165
- package/esm2022/fields/remote-autocomplete-field/remote-autocomplete-field.component.mjs +0 -188
- package/esm2022/fields/select-field/select-field.component.mjs +0 -135
- package/esm2022/fields/text-area/textarea.component.mjs +0 -171
- package/esm2022/layouts/origin/breadcrumb/breadcrumb.component.mjs +0 -65
- package/esm2022/layouts/origin/footer/footer.component.mjs +0 -11
- package/esm2022/layouts/origin/header/header.component.mjs +0 -46
- package/esm2022/layouts/origin/index.mjs +0 -12
- package/esm2022/layouts/origin/kato-lee-components-layouts-origin.mjs +0 -5
- package/esm2022/layouts/origin/layout.component.mjs +0 -210
- package/esm2022/layouts/origin/layout.module.mjs +0 -52
- package/esm2022/layouts/origin/layout.navigation.mjs +0 -19
- package/esm2022/layouts/origin/navigation-interfaces.mjs +0 -2
- package/esm2022/layouts/origin/services/index.mjs +0 -4
- package/esm2022/layouts/origin/services/route-parts.service.mjs +0 -28
- package/esm2022/layouts/origin/services/toggle-sidebar.mjs +0 -48
- package/esm2022/layouts/origin/services/validate-access.pipe.mjs +0 -53
- package/esm2022/layouts/origin/sidebar/sidebar.component.mjs +0 -69
- package/esm2022/layouts/origin/sidebar/sidenav/expansion/accordion.component.mjs +0 -74
- package/esm2022/layouts/origin/sidebar/sidenav/expansion/expansion-panel-header.component.mjs +0 -51
- package/esm2022/layouts/origin/sidebar/sidenav/expansion/expansion-panel.component.mjs +0 -63
- package/esm2022/layouts/origin/sidebar/sidenav/sidenav.component.mjs +0 -130
- package/esm2022/modal/modal.component.mjs +0 -63
- package/esm2022/modal/modal.module.mjs +0 -21
- package/esm2022/modal/modal.service.mjs +0 -33
- package/esm2022/pretty-box/pretty-box.component.mjs +0 -94
- package/esm2022/tables/tables.module.mjs +0 -22
- package/esm2022/toast/toast.service.mjs +0 -42
- package/fesm2022/kato-lee-components-layouts-origin.mjs +0 -872
- package/fesm2022/kato-lee-components-layouts-origin.mjs.map +0 -1
- package/fields/error/error.module.d.ts +0 -11
- package/fields/fields.module.d.ts +0 -29
- package/layouts/origin/breadcrumb/breadcrumb.component.d.ts +0 -24
- package/layouts/origin/footer/footer.component.d.ts +0 -5
- package/layouts/origin/header/header.component.d.ts +0 -15
- package/layouts/origin/index.d.ts +0 -8
- package/layouts/origin/layout.component.d.ts +0 -58
- package/layouts/origin/layout.module.d.ts +0 -18
- package/layouts/origin/layout.navigation.d.ts +0 -10
- package/layouts/origin/navigation-interfaces.d.ts +0 -24
- package/layouts/origin/services/index.d.ts +0 -3
- package/layouts/origin/services/route-parts.service.d.ts +0 -15
- package/layouts/origin/services/toggle-sidebar.d.ts +0 -10
- package/layouts/origin/services/validate-access.pipe.d.ts +0 -7
- package/layouts/origin/sidebar/sidebar.component.d.ts +0 -27
- package/layouts/origin/sidebar/sidenav/expansion/accordion.component.d.ts +0 -10
- package/layouts/origin/sidebar/sidenav/expansion/expansion-panel-header.component.d.ts +0 -11
- package/layouts/origin/sidebar/sidenav/expansion/expansion-panel.component.d.ts +0 -12
- package/layouts/origin/sidebar/sidenav/sidenav.component.d.ts +0 -23
- package/modal/modal.module.d.ts +0 -11
- package/pretty-box/pretty-box.component.d.ts +0 -24
- /package/fields/{fields.common.d.ts → common.d.ts} +0 -0
- /package/fields/{remote-autocomplete-field/remote-autocomplete-field.component.d.ts → remote-autocomplete/component.d.ts} +0 -0
- /package/fields/{fields.validators.d.ts → validators.d.ts} +0 -0
- /package/modal/{modal.service.d.ts → service.d.ts} +0 -0
- /package/toast/{toast.service.d.ts → service.d.ts} +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, ViewChild, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class TakPrettyBoxComponent {
|
|
4
|
+
constructor(_cd) {
|
|
5
|
+
this._cd = _cd;
|
|
6
|
+
this.calcHeight = 94;
|
|
7
|
+
this.headerHeightPx = 0;
|
|
8
|
+
this.footerHeightPx = 0;
|
|
9
|
+
this.encapsulated = true;
|
|
10
|
+
this._hasHeader = false;
|
|
11
|
+
this._hasFooter = false;
|
|
12
|
+
this._substractFromHeight = 0;
|
|
13
|
+
}
|
|
14
|
+
ngAfterViewInit() {
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
this._config();
|
|
17
|
+
}, 100);
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
this._config();
|
|
20
|
+
}, 2000);
|
|
21
|
+
}
|
|
22
|
+
scrollTop() {
|
|
23
|
+
if (this.scroll)
|
|
24
|
+
this.scroll.nativeElement.scrollTo({ top: 0 });
|
|
25
|
+
}
|
|
26
|
+
_config() {
|
|
27
|
+
const header = this.header.nativeElement.querySelector('[tak-pretty-box-header]');
|
|
28
|
+
const footer = this.footer.nativeElement.querySelector('[tak-pretty-box-footer]');
|
|
29
|
+
this._hasHeader = header ? true : false;
|
|
30
|
+
this._hasFooter = footer ? true : false;
|
|
31
|
+
if (typeof this.calcHeight === 'number') {
|
|
32
|
+
const refreshInterval = setInterval(() => {
|
|
33
|
+
if (this._substractFromHeight === 0) {
|
|
34
|
+
const headerHeight = this._hasHeader
|
|
35
|
+
? !this.headerHeightPx
|
|
36
|
+
? this.header.nativeElement.offsetHeight
|
|
37
|
+
: this.headerHeightPx
|
|
38
|
+
: 0;
|
|
39
|
+
const footerHeight = this._hasFooter
|
|
40
|
+
? !this.footerHeightPx
|
|
41
|
+
? this.footer.nativeElement.offsetHeight
|
|
42
|
+
: this.footerHeightPx
|
|
43
|
+
: 0;
|
|
44
|
+
this._substractFromHeight = +this.calcHeight + headerHeight + footerHeight;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
clearInterval(refreshInterval);
|
|
48
|
+
this._cd.markForCheck();
|
|
49
|
+
}
|
|
50
|
+
}, 10);
|
|
51
|
+
}
|
|
52
|
+
if (!this._hasHeader)
|
|
53
|
+
this.scroll.nativeElement.classList.add('tak-pretty-box-border-top');
|
|
54
|
+
if (!this._hasFooter)
|
|
55
|
+
this.scroll.nativeElement.classList.add('tak-pretty-box-border-bottom');
|
|
56
|
+
this._cd.markForCheck();
|
|
57
|
+
}
|
|
58
|
+
get minHeightFt() {
|
|
59
|
+
if (typeof this.calcHeight === 'number')
|
|
60
|
+
return `calc(100vh - ${this._substractFromHeight}px)`;
|
|
61
|
+
else
|
|
62
|
+
return this.calcHeight;
|
|
63
|
+
}
|
|
64
|
+
get hasHeader() {
|
|
65
|
+
return this._hasHeader;
|
|
66
|
+
}
|
|
67
|
+
get hasFooter() {
|
|
68
|
+
return this._hasFooter;
|
|
69
|
+
}
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakPrettyBoxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
71
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: TakPrettyBoxComponent, isStandalone: true, selector: "tak-pretty-box", inputs: { calcHeight: "calcHeight", headerHeightPx: "headerHeightPx", footerHeightPx: "footerHeightPx", encapsulated: "encapsulated" }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "footer", first: true, predicate: ["footer"], descendants: true }, { propertyName: "scroll", first: true, predicate: ["scroll"], descendants: true }], ngImport: i0, template: "<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakPrettyBoxComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{ standalone: true, selector: 'tak-pretty-box', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
76
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { header: [{
|
|
77
|
+
type: ViewChild,
|
|
78
|
+
args: ['header']
|
|
79
|
+
}], footer: [{
|
|
80
|
+
type: ViewChild,
|
|
81
|
+
args: ['footer']
|
|
82
|
+
}], scroll: [{
|
|
83
|
+
type: ViewChild,
|
|
84
|
+
args: ['scroll']
|
|
85
|
+
}], calcHeight: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], headerHeightPx: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], footerHeightPx: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], encapsulated: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}] } });
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvbXBvbmVudHMvcHJldHR5LWJveC9jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9saWJyYXJpZXMvY29tcG9uZW50cy9wcmV0dHktYm94L2NvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCx1QkFBdUIsRUFFdkIsU0FBUyxFQUVULEtBQUssRUFDTCxTQUFTLEVBQ1QsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDOztBQVN2QixNQUFNLE9BQU8scUJBQXFCO0lBY2hDLFlBQW9CLEdBQXNCO1FBQXRCLFFBQUcsR0FBSCxHQUFHLENBQW1CO1FBVGpDLGVBQVUsR0FBb0IsRUFBRSxDQUFDO1FBQ2pDLG1CQUFjLEdBQVcsQ0FBQyxDQUFDO1FBQzNCLG1CQUFjLEdBQVcsQ0FBQyxDQUFDO1FBQzNCLGlCQUFZLEdBQUcsSUFBSSxDQUFDO1FBRXJCLGVBQVUsR0FBRyxLQUFLLENBQUM7UUFDbkIsZUFBVSxHQUFHLEtBQUssQ0FBQztRQUNuQix5QkFBb0IsR0FBRyxDQUFDLENBQUM7SUFFWSxDQUFDO0lBRXZDLGVBQWU7UUFDcEIsVUFBVSxDQUFDLEdBQUcsRUFBRTtZQUNkLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztRQUNq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CBzZWxlY3Q9XCJbdGFrLXByZXR0eS1ib3gtaGVhZGVyXVwiPjwvbmctY29udGVudD5cclxuICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgPGRpdiBjbGFzcz1cInRhay1wcmV0dHktYm94LS1zY3JvbGxcIiAjc2Nyb2xsIFtzdHlsZV09XCInaGVpZ2h0OiAnICsgbWluSGVpZ2h0RnRcIj5cclxuICAgICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cIlt0YWstcHJldHR5LWJveC1jb250ZW50XVwiPjwvbmctY29udGVudD5cclxuICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgPGRpdlxyXG4gICAgICAgICAgI2Zvb3RlclxyXG4gICAgICAgICAgW2hpZGRlbl09XCIhaGFzRm9vdGVyXCJcclxuICAgICAgICAgIGNsYXNzPVwidGFrLXByZXR0eS1ib3gtLWZvb3RlclwiXHJcbiAgICAgICAgICBbc3R5bGVdPVwiZm9vdGVySGVpZ2h0UHggPyAnaGVpZ2h0OicgKyBmb290ZXJIZWlnaHRQeCArICdweCcgOiAnJ1wiXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW3Rhay1wcmV0dHktYm94LWZvb3Rlcl1cIj48L25nLWNvbnRlbnQ+XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICAgIDwvZGl2PlxyXG4gICAgPC9kaXY+XHJcbiAgPC9kaXY+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Public API Surface of @kato-lee/components/pretty-box
|
|
3
3
|
*/
|
|
4
|
-
export * from './
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
export * from './component';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJyYXJpZXMvY29tcG9uZW50cy9wcmV0dHktYm94L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgQGthdG8tbGVlL2NvbXBvbmVudHMvcHJldHR5LWJveFxyXG4gKi9cclxuZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnQnO1xyXG4iXX0=
|
package/esm2022/tables/index.mjs
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './mat-paginator.translation';
|
|
5
5
|
export * from './no-records.component';
|
|
6
|
-
export * from './
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
export * from './module';
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJyYXJpZXMvY29tcG9uZW50cy90YWJsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgQGthdG8tbGVlL2NvbXBvbmVudHMvdGFibGVzXHJcbiAqL1xyXG5leHBvcnQgKiBmcm9tICcuL21hdC1wYWdpbmF0b3IudHJhbnNsYXRpb24nO1xyXG5leHBvcnQgKiBmcm9tICcuL25vLXJlY29yZHMuY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9tb2R1bGUnO1xyXG4iXX0=
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { MatPaginatorIntl, MatPaginatorModule } from '@kato-lee/material/paginator';
|
|
3
|
+
import { MatSortModule } from '@kato-lee/material/sort';
|
|
4
|
+
import { MatTableModule } from '@kato-lee/material/table';
|
|
5
|
+
import { getSpanishMatPaginatorIntl } from './mat-paginator.translation';
|
|
6
|
+
import { TakTableNoRecordsComponent } from './no-records.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
const modules = [MatTableModule, MatSortModule, MatPaginatorModule, TakTableNoRecordsComponent];
|
|
9
|
+
/** @deprecated Use standalone */
|
|
10
|
+
export class TakTablesModule {
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
12
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, imports: [MatTableModule, MatSortModule, MatPaginatorModule, TakTableNoRecordsComponent], exports: [MatTableModule, MatSortModule, MatPaginatorModule, TakTableNoRecordsComponent] }); }
|
|
13
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, providers: [{ provide: MatPaginatorIntl, useValue: getSpanishMatPaginatorIntl() }], imports: [modules, MatTableModule, MatSortModule, MatPaginatorModule] }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, decorators: [{
|
|
16
|
+
type: NgModule,
|
|
17
|
+
args: [{
|
|
18
|
+
imports: modules,
|
|
19
|
+
exports: modules,
|
|
20
|
+
providers: [{ provide: MatPaginatorIntl, useValue: getSpanishMatPaginatorIntl() }],
|
|
21
|
+
}]
|
|
22
|
+
}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M6IFt7IHByb3ZpZGU6IE1hdFBhZ2luYXRvckludGwsIHVzZVZhbHVlOiBnZXRTcGFuaXNoTWF0UGFnaW5hdG9ySW50bCgpIH1dLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgVGFrVGFibGVzTW9kdWxlIHt9XHJcbiJdfQ==
|
package/esm2022/toast/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Public API Surface of @kato-lee/components/toast
|
|
3
3
|
*/
|
|
4
|
-
export * from './
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
export * from './service';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJyYXJpZXMvY29tcG9uZW50cy90b2FzdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILGNBQWMsV0FBVyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBrYXRvLWxlZS9jb21wb25lbnRzL3RvYXN0XHJcbiAqL1xyXG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2UnO1xyXG4iXX0=
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@kato-lee/material/snack-bar";
|
|
4
|
+
export class TakToast {
|
|
5
|
+
constructor(_snackBar) {
|
|
6
|
+
this._snackBar = _snackBar;
|
|
7
|
+
}
|
|
8
|
+
notification(message, payload = {}) {
|
|
9
|
+
this._generateTakToast(message, 'notification', this._managePayload(payload));
|
|
10
|
+
}
|
|
11
|
+
success(message, payload = {}) {
|
|
12
|
+
this._generateTakToast(message, 'success', this._managePayload(payload));
|
|
13
|
+
}
|
|
14
|
+
danger(message, payload = {}) {
|
|
15
|
+
this._generateTakToast(message, 'danger', this._managePayload(payload));
|
|
16
|
+
}
|
|
17
|
+
_generateTakToast(message, type, payload) {
|
|
18
|
+
const { duration, verticalPosition, horizontalPosition, hasDissmissButton, dissmissButtonMessage, } = payload;
|
|
19
|
+
this._snackBar.open(message, `${hasDissmissButton ? dissmissButtonMessage : ''}`, {
|
|
20
|
+
duration,
|
|
21
|
+
verticalPosition,
|
|
22
|
+
horizontalPosition,
|
|
23
|
+
panelClass: `tak-snackbar-${type}`,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
_managePayload(payload) {
|
|
27
|
+
return {
|
|
28
|
+
hasDissmissButton: payload.hasDissmissButton || true,
|
|
29
|
+
duration: payload.duration || 5000,
|
|
30
|
+
dissmissButtonMessage: payload.dissmissButtonMessage || 'Cerrar',
|
|
31
|
+
horizontalPosition: payload.horizontalPosition || 'center',
|
|
32
|
+
verticalPosition: payload.verticalPosition || 'bottom',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakToast, deps: [{ token: i1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakToast, providedIn: 'root' }); }
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakToast, decorators: [{
|
|
39
|
+
type: Injectable,
|
|
40
|
+
args: [{ providedIn: 'root' }]
|
|
41
|
+
}], ctorParameters: () => [{ type: i1.MatSnackBar }] });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3Vy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Z2U6IHBheWxvYWQuZGlzc21pc3NCdXR0b25NZXNzYWdlIHx8ICdDZXJyYXInLFxyXG4gICAgICBob3Jpem9udGFsUG9zaXRpb246IHBheWxvYWQuaG9yaXpvbnRhbFBvc2l0aW9uIHx8ICdjZW50ZXInLFxyXG4gICAgICB2ZXJ0aWNhbFBvc2l0aW9uOiBwYXlsb2FkLnZlcnRpY2FsUG9zaXRpb24gfHwgJ2JvdHRvbScsXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -2,16 +2,16 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter, Component, ViewEncapsulation, ViewChild, Output, Input, 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 '@kato-lee/material/progress-bar';
|
|
6
|
+
import { MatProgressBarModule } from '@kato-lee/material/progress-bar';
|
|
7
|
+
import * as i5 from '@kato-lee/material/divider';
|
|
8
|
+
import { MatDividerModule } from '@kato-lee/material/divider';
|
|
9
|
+
import * as i4 from '@kato-lee/material/button';
|
|
10
|
+
import { MatButtonModule } from '@kato-lee/material/button';
|
|
5
11
|
import * as i1 from '@kato-lee/material/card';
|
|
6
12
|
import { MatCardModule } from '@kato-lee/material/card';
|
|
7
13
|
import * as i3 from '@kato-lee/material/icon';
|
|
8
14
|
import { MatIconModule } from '@kato-lee/material/icon';
|
|
9
|
-
import * as i4 from '@kato-lee/material/button';
|
|
10
|
-
import { MatButtonModule } from '@kato-lee/material/button';
|
|
11
|
-
import * as i5 from '@kato-lee/material/divider';
|
|
12
|
-
import { MatDividerModule } from '@kato-lee/material/divider';
|
|
13
|
-
import * as i6 from '@kato-lee/material/progress-bar';
|
|
14
|
-
import { MatProgressBarModule } from '@kato-lee/material/progress-bar';
|
|
15
15
|
|
|
16
16
|
class TakBoxFormComponent {
|
|
17
17
|
constructor(_href, _cd) {
|
|
@@ -63,11 +63,18 @@ class TakBoxFormComponent {
|
|
|
63
63
|
return this._resetButton;
|
|
64
64
|
}
|
|
65
65
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", 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: "17.3.3", type: TakBoxFormComponent, 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
|
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", 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 <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", styles: [".tak-box-form .mat-card.actions-hidden{padding:0}.tak-box-form .mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding:8px}.tak-box-form .mat-card-actions{margin-left:0;margin-right:0}.tak-box-form .mat-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 .mat-card__actions{overflow:hidden}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1.MatCard, selector: "mat-card", 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[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { 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
68
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakBoxFormComponent, decorators: [{
|
|
69
69
|
type: Component,
|
|
70
|
-
args: [{
|
|
70
|
+
args: [{ standalone: true, imports: [
|
|
71
|
+
MatCardModule,
|
|
72
|
+
ReactiveFormsModule,
|
|
73
|
+
MatIconModule,
|
|
74
|
+
MatButtonModule,
|
|
75
|
+
MatDividerModule,
|
|
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 @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", styles: [".tak-box-form .mat-card.actions-hidden{padding:0}.tak-box-form .mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding:8px}.tak-box-form .mat-card-actions{margin-left:0;margin-right:0}.tak-box-form .mat-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 .mat-card__actions{overflow:hidden}\n"] }]
|
|
71
78
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { content: [{
|
|
72
79
|
type: ViewChild,
|
|
73
80
|
args: ['content']
|
|
@@ -103,33 +110,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
103
110
|
type: Input
|
|
104
111
|
}] } });
|
|
105
112
|
|
|
113
|
+
/** @deprecated Use standalone */
|
|
106
114
|
class TakBoxFormModule {
|
|
107
115
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakBoxFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
108
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakBoxFormModule,
|
|
109
|
-
|
|
110
|
-
MatIconModule,
|
|
111
|
-
MatButtonModule,
|
|
112
|
-
MatDividerModule,
|
|
113
|
-
MatProgressBarModule], exports: [TakBoxFormComponent] }); }
|
|
114
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakBoxFormModule, imports: [MatCardModule,
|
|
115
|
-
ReactiveFormsModule,
|
|
116
|
-
MatIconModule,
|
|
117
|
-
MatButtonModule,
|
|
118
|
-
MatDividerModule,
|
|
119
|
-
MatProgressBarModule] }); }
|
|
116
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakBoxFormModule, imports: [TakBoxFormComponent], exports: [TakBoxFormComponent] }); }
|
|
117
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakBoxFormModule, imports: [TakBoxFormComponent] }); }
|
|
120
118
|
}
|
|
121
119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakBoxFormModule, decorators: [{
|
|
122
120
|
type: NgModule,
|
|
123
121
|
args: [{
|
|
124
|
-
|
|
125
|
-
imports: [
|
|
126
|
-
MatCardModule,
|
|
127
|
-
ReactiveFormsModule,
|
|
128
|
-
MatIconModule,
|
|
129
|
-
MatButtonModule,
|
|
130
|
-
MatDividerModule,
|
|
131
|
-
MatProgressBarModule,
|
|
132
|
-
],
|
|
122
|
+
imports: [TakBoxFormComponent],
|
|
133
123
|
exports: [TakBoxFormComponent],
|
|
134
124
|
}]
|
|
135
125
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-box-form.mjs","sources":["../../../libraries/components/box-form/box-form.component.ts","../../../libraries/components/box-form/box-form.component.html","../../../libraries/components/box-form/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 Component,\r\n ElementRef,\r\n EventEmitter,\r\n Input,\r\n Output,\r\n ViewChild,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'tak-box-form',\r\n templateUrl: './box-form.component.html',\r\n styleUrls: ['./box-form.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 }\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></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\r\n mat-button\r\n type=\"button\"\r\n color=\"warn\"\r\n class=\"action-button\"\r\n (click)=\"clickOnReset()\"\r\n >\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 { ReactiveFormsModule } from '@angular/forms';\r\nimport { TakBoxFormComponent } from './box-form.component';\r\nimport { MatCardModule } from '@kato-lee/material/card';\r\nimport { MatIconModule } from '@kato-lee/material/icon';\r\nimport { MatProgressBarModule } from '@kato-lee/material/progress-bar';\r\nimport { MatButtonModule } from '@kato-lee/material/button';\r\nimport { MatDividerModule } from '@kato-lee/material/divider';\r\n\r\n@NgModule({\r\n declarations: [TakBoxFormComponent],\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 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 './box-form.component';\r\nexport * from './box-form.module';\r\nexport * from './common';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAmBa,mBAAmB,CAAA;IA6B9B,WACU,CAAA,KAA8B,EAC9B,GAAsB,EAAA;QADtB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAyB;QAC9B,IAAG,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Z,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAEhC,aAAa;YACb,mBAAmB;YACnB,aAAa;YACb,eAAe;YACf,gBAAgB;AAChB,YAAA,oBAAoB,aAEZ,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,YATzB,aAAa;YACb,mBAAmB;YACnB,aAAa;YACb,eAAe;YACf,gBAAgB;YAChB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAZ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,aAAa;wBACb,mBAAmB;wBACnB,aAAa;wBACb,eAAe;wBACf,gBAAgB;wBAChB,oBAAoB;AACrB,qBAAA;oBACD,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC/B,iBAAA,CAAA;;;ACpBD;;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 '@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,EAAE,CAAC;QAEjB,IAAiB,CAAA,iBAAA,GAAG,IAAI,CAAC;QACzB,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;QACvB,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;QACvB,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;QACtB,IAAW,CAAA,WAAA,GAAG,IAAI,CAAC;QACnB,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;QAElB,IAAW,CAAA,WAAA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BACG,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;;;;"}
|
|
@@ -66,26 +66,27 @@ class TakCapsuleComponent {
|
|
|
66
66
|
return this._gridPrincipal;
|
|
67
67
|
}
|
|
68
68
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCapsuleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
69
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: TakCapsuleComponent, 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 }); }
|
|
69
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", 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
71
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCapsuleComponent, decorators: [{
|
|
72
72
|
type: Component,
|
|
73
|
-
args: [{ 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" }]
|
|
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: [{
|
|
75
75
|
type: Input
|
|
76
76
|
}], grids: [{
|
|
77
77
|
type: Input
|
|
78
78
|
}] } });
|
|
79
79
|
|
|
80
|
+
/** @deprecated Use standalone */
|
|
80
81
|
class TakCapsuleModule {
|
|
81
82
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCapsuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
82
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakCapsuleModule,
|
|
83
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakCapsuleModule, imports: [TakCapsuleComponent], exports: [TakCapsuleComponent] }); }
|
|
83
84
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCapsuleModule }); }
|
|
84
85
|
}
|
|
85
86
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCapsuleModule, decorators: [{
|
|
86
87
|
type: NgModule,
|
|
87
88
|
args: [{
|
|
88
|
-
|
|
89
|
+
imports: [TakCapsuleComponent],
|
|
89
90
|
exports: [TakCapsuleComponent],
|
|
90
91
|
}]
|
|
91
92
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-capsule.mjs","sources":["../../../libraries/components/capsule/
|
|
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-t-${(12 - r) / 2}`;\r\n principal = `col-t-${r}`;\r\n }\r\n if (counter === 1) {\r\n onSides = `${onSides} col-t-sm-${(12 - r) / 2}`;\r\n principal = `${principal} col-t-sm-${r}`;\r\n }\r\n if (counter === 2) {\r\n onSides = `${onSides} col-t-md-${(12 - r) / 2}`;\r\n principal = `${principal} col-t-md-${r}`;\r\n }\r\n if (counter === 3) {\r\n onSides = `${onSides} col-t-lg-${(12 - r) / 2}`;\r\n principal = `${principal} col-t-lg-${r}`;\r\n }\r\n if (counter === 4) {\r\n onSides = `${onSides} col-t-xl-${(12 - r) / 2}`;\r\n principal = `${principal} col-t-xl-${r}`;\r\n }\r\n if (counter === 5) {\r\n onSides = `${onSides} col-t-xxl-${(12 - r) / 2}`;\r\n principal = `${principal} col-t-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,IAAa,CAAA,aAAA,GAAG,EAAE,CAAC;QACnB,IAAc,CAAA,cAAA,GAAG,EAAE,CAAC;AAgBpB,QAAA,IAAA,CAAA,uBAAuB,GAAG,CAAC,KAAgB,EAAE,cAAkC,KAAI;AACzF,YAAA,IAAI,OAAO,GAAG,EAAE,EACd,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,CAAC,EACX,eAAe,GAAG,CAAC,CAAC,CAAC,CAAC;AAExB,YAAA,IAAI,cAAc,EAAE;gBAClB,IAAI,cAAc,KAAK,OAAO;AAAE,oBAAA,eAAe,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;gBACpE,IAAI,cAAc,KAAK,QAAQ;AAAE,oBAAA,eAAe,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;gBACrE,IAAI,cAAc,KAAK,KAAK;AAAE,oBAAA,eAAe,GAAG,CAAC,EAAE,EAAE,EA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EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,qICVhC,8PASA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FDCa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,aAAa,EAER,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,8PAAA,EAAA,CAAA;8BAG5B,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;;;AETR;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;+GAElB,gBAAgB,EAAA,CAAA,CAAA,EAAA;;2FAAhB,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;;;;"}
|
|
@@ -8,7 +8,7 @@ class TakSimpleCardComponent {
|
|
|
8
8
|
this.topLineColor = '';
|
|
9
9
|
}
|
|
10
10
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakSimpleCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: TakSimpleCardComponent, selector: "tak-simple-card", inputs: { hasTopLine: "hasTopLine", topLineClass: "topLineClass", topLineColor: "topLineColor" }, ngImport: i0, template: `
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", 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 }}"
|
|
@@ -16,13 +16,14 @@ class TakSimpleCardComponent {
|
|
|
16
16
|
></div>
|
|
17
17
|
}
|
|
18
18
|
<div class="tak-simple-card" [class.no-card-topline]="!hasTopLine">
|
|
19
|
-
<ng-content
|
|
19
|
+
<ng-content/>
|
|
20
20
|
</div>
|
|
21
21
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
22
22
|
}
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakSimpleCardComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{
|
|
26
|
+
standalone: true,
|
|
26
27
|
selector: 'tak-simple-card',
|
|
27
28
|
template: `
|
|
28
29
|
@if (hasTopLine) {
|
|
@@ -32,7 +33,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
32
33
|
></div>
|
|
33
34
|
}
|
|
34
35
|
<div class="tak-simple-card" [class.no-card-topline]="!hasTopLine">
|
|
35
|
-
<ng-content
|
|
36
|
+
<ng-content/>
|
|
36
37
|
</div>
|
|
37
38
|
`,
|
|
38
39
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -47,15 +48,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
47
48
|
}] } });
|
|
48
49
|
|
|
49
50
|
const components = [TakSimpleCardComponent];
|
|
51
|
+
/** @deprecated Use standalone */
|
|
50
52
|
class TakCardsModule {
|
|
51
53
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCardsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
52
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakCardsModule,
|
|
54
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakCardsModule, imports: [TakSimpleCardComponent], exports: [TakSimpleCardComponent] }); }
|
|
53
55
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCardsModule }); }
|
|
54
56
|
}
|
|
55
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakCardsModule, decorators: [{
|
|
56
58
|
type: NgModule,
|
|
57
59
|
args: [{
|
|
58
|
-
|
|
60
|
+
imports: components,
|
|
59
61
|
exports: components,
|
|
60
62
|
}]
|
|
61
63
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-cards.mjs","sources":["../../../libraries/components/cards/
|
|
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,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAC3B,IAAY,CAAA,YAAA,GAAW,EAAE,CAAC;QAC1B,IAAY,CAAA,YAAA,GAAW,EAAE,CAAC;AACpC,KAAA;8GAJY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAdvB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,YAAA,EAAA,cAAA,EAAA,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