@kato-lee/components 1.1.4 → 2.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 +9 -9
- 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 +9 -9
- package/fesm2022/kato-lee-components-dialogs.mjs.map +1 -1
- package/fesm2022/kato-lee-components-fields.mjs +60 -64
- package/fesm2022/kato-lee-components-fields.mjs.map +1 -1
- package/fesm2022/kato-lee-components-modal.mjs +16 -12
- 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 +60 -20
- package/fesm2022/kato-lee-components-tables.mjs.map +1 -1
- package/fesm2022/kato-lee-components-toast.mjs +3 -3
- 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 +8 -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,22 +0,0 @@
|
|
|
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
|
-
export class TakTablesModule {
|
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11
|
-
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] }); }
|
|
12
|
-
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] }); }
|
|
13
|
-
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, decorators: [{
|
|
15
|
-
type: NgModule,
|
|
16
|
-
args: [{
|
|
17
|
-
imports: modules,
|
|
18
|
-
exports: modules,
|
|
19
|
-
providers: [{ provide: MatPaginatorIntl, useValue: getSpanishMatPaginatorIntl() }],
|
|
20
|
-
}]
|
|
21
|
-
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvbXBvbmVudHMvdGFibGVzL21vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ3BGLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN4RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDMUQsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDekUsT0FBTyxFQUFFLDBCQ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cmlhbC90YWJsZSc7XHJcbmltcG9ydCB7IGdldFNwYW5pc2hNYXRQYWdpbmF0b3JJbnRsIH0gZnJvbSAnLi9tYXQtcGFnaW5hdG9yLnRyYW5zbGF0aW9uJztcclxuaW1wb3J0IHsgVGFrVGFibGVOb1JlY29yZHNDb21wb25lbnQgfSBmcm9tICcuL25vLXJlY29yZHMuY29tcG9uZW50JztcclxuXHJcbmNvbnN0IG1vZHVsZXMgPSBbTWF0VGFibGVNb2R1bGUsIE1hdFNvcnRNb2R1bGUsIE1hdFBhZ2luYXRvck1vZHVsZSwgVGFrVGFibGVOb1JlY29yZHNDb21wb25lbnRdO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICBpbXBvcnRzOiBtb2R1bGVzLFxyXG4gIGV4cG9ydHM6IG1vZHVsZXMsXHJcbiAgcHJvdmlkZXJzOiBbeyBwcm92aWRlOiBNYXRQYWdpbmF0b3JJbnRsLCB1c2VWYWx1ZTogZ2V0U3BhbmlzaE1hdFBhZ2luYXRvckludGwoKSB9XSxcclxufSlcclxuZXhwb3J0IGNsYXNzIFRha1RhYmxlc01vZHVsZSB7fVxyXG4iXX0=
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { MatProgressSpinnerModule } from '@kato-lee/material/progress-spinner';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@kato-lee/material/progress-spinner";
|
|
5
|
-
export class TakTableNoRecordsComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.isLoading = false;
|
|
8
|
-
this._secondImage = true;
|
|
9
|
-
}
|
|
10
|
-
ngOnInit() {
|
|
11
|
-
if (this.dataSource) {
|
|
12
|
-
if (this.dataSource.data.length && !this.dataSource.filteredData.length)
|
|
13
|
-
this._secondImage = false;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
get secondImage() {
|
|
17
|
-
return this._secondImage;
|
|
18
|
-
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTableNoRecordsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: TakTableNoRecordsComponent, isStandalone: true, selector: "tak-table-no-records", inputs: { dataSource: "dataSource", isLoading: "isLoading" }, ngImport: i0, template: `
|
|
21
|
-
@if (isLoading) {
|
|
22
|
-
<div class="tak-progress-circle__container">
|
|
23
|
-
<mat-progress-spinner mode="indeterminate" />
|
|
24
|
-
</div>
|
|
25
|
-
} @else {
|
|
26
|
-
<div class="tak-progress-circle__container">
|
|
27
|
-
@if (secondImage) {
|
|
28
|
-
No hay resultados que contengan esta palabra clave
|
|
29
|
-
} @else {
|
|
30
|
-
No se encontraron resultados
|
|
31
|
-
}
|
|
32
|
-
</div>
|
|
33
|
-
}
|
|
34
|
-
`, isInline: true, styles: [".tak-progress-circle__container{min-height:calc(100vh - 315px);display:flex;align-items:center;justify-content:center}@media only screen and (min-width: 640px){.tak-progress-circle__container{min-height:calc(100vh - 230px)}}.tak-progress-circle__container{min-height:calc(100vh - 230px);display:flex;align-items:center;justify-content:center}.tak-progress-circle__container-image{min-height:calc(100vh - 230px)}\n"], dependencies: [{ kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTableNoRecordsComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{ standalone: true, imports: [MatProgressSpinnerModule], selector: 'tak-table-no-records', template: `
|
|
39
|
-
@if (isLoading) {
|
|
40
|
-
<div class="tak-progress-circle__container">
|
|
41
|
-
<mat-progress-spinner mode="indeterminate" />
|
|
42
|
-
</div>
|
|
43
|
-
} @else {
|
|
44
|
-
<div class="tak-progress-circle__container">
|
|
45
|
-
@if (secondImage) {
|
|
46
|
-
No hay resultados que contengan esta palabra clave
|
|
47
|
-
} @else {
|
|
48
|
-
No se encontraron resultados
|
|
49
|
-
}
|
|
50
|
-
</div>
|
|
51
|
-
}
|
|
52
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".tak-progress-circle__container{min-height:calc(100vh - 315px);display:flex;align-items:center;justify-content:center}@media only screen and (min-width: 640px){.tak-progress-circle__container{min-height:calc(100vh - 230px)}}.tak-progress-circle__container{min-height:calc(100vh - 230px);display:flex;align-items:center;justify-content:center}.tak-progress-circle__container-image{min-height:calc(100vh - 230px)}\n"] }]
|
|
53
|
-
}], propDecorators: { dataSource: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], isLoading: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}] } });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm8tcmVjb3Jkcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJyYXJpZXMvY29tcG9uZW50cy90YWJsZXMvbm8tcmVjb3Jkcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEYsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0scUNBQXFDLENBQUM7OztBQThDL0UsTUFBTSxPQUFPLDBCQUEwQjtJQTNDdkM7UUE4Q1csY0FBUyxHQUFHLEtBQUssQ0FBQztRQUVuQixpQkFBWSxHQUFHLElBQUksQ0F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ICAgcmV0dXJuIHRoaXMuX3NlY29uZEltYWdlO1xyXG4gIH1cclxufVxyXG4iXX0=
|
package/esm2022/toast/index.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of @kato-lee/components/toast
|
|
3
|
-
*/
|
|
4
|
-
export * from './service';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJyYXJpZXMvY29tcG9uZW50cy90b2FzdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILGNBQWMsV0FBVyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBrYXRvLWxlZS9jb21wb25lbnRzL3RvYXN0XHJcbiAqL1xyXG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2UnO1xyXG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2F0by1sZWUtY29tcG9uZW50cy10b2FzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb21wb25lbnRzL3RvYXN0L2thdG8tbGVlLWNvbXBvbmVudHMtdG9hc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
|
|
@@ -1,42 +0,0 @@
|
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb21wb25lbnRzL3RvYXN0L3NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBa0IzQyxNQUFNLE9BQU8sUUFBUTtJQUNuQixZQUFvQixTQUFzQjtRQUF0QixjQUFTLEdBQVQsU0FBUyxDQUFhO0lBQUcsQ0FBQztJQUV2QyxZQUFZLENBQUMsT0FBZSxFQUFFLFVBQTBCLEVBQUU7UUFDL0QsSUFBSSxDQUFDLGlCQUFpQixDQUFDLE9BQU8sRUFBRSxjQUFjLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO0lBQ2hGLENBQUM7SUFFTSxPQUFPLENBQUMsT0FBZSxFQUFFLFVBQTBCLEVBQUU7UUFDMUQsSUFBSSxDQUFDLGlCQUFpQixDQUFDLE9BQU8sRUFBRSxTQUFTLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO0lBQzNFLENBQUM7SUFDTSxNQUFNLENBQUMsT0FBZSxFQUFFLFVBQTBCLEVBQU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HJcbiAgICAgIHBhbmVsQ2xhc3M6IGB0YWstc25hY2tiYXItJHt0eXBlfWAsXHJcbiAgICB9KTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgX21hbmFnZVBheWxvYWQocGF5bG9hZDogVGFrVG9hc3RDb25maWcpOiBUYWtUb2FzdENvbmZpZyB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBoYXNEaXNzbWlzc0J1dHRvbjogcGF5bG9hZC5oYXNEaXNzbWlzc0J1dHRvbiB8fCB0cnVlLFxyXG4gICAgICBkdXJhdGlvbjogcGF5bG9hZC5kdXJhdGlvbiB8fCA1MDAwLFxyXG4gICAgICBkaXNzbWlzc0J1dHRvbk1lc3NhZ2U6IHBheWxvYWQuZGlzc21pc3NCdXR0b25NZXNzYWdlIHx8ICdDZXJyYXInLFxyXG4gICAgICBob3Jpem9udGFsUG9zaXRpb246IHBheWxvYWQuaG9yaXpvbnRhbFBvc2l0aW9uIHx8ICdjZW50ZXInLFxyXG4gICAgICB2ZXJ0aWNhbFBvc2l0aW9uOiBwYXlsb2FkLnZlcnRpY2FsUG9zaXRpb24gfHwgJ2JvdHRvbScsXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormGroupDirective, FormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
|
|
5
|
-
import { MatOptionSelectionChange, ThemePalette } from '@kato-lee/material/core';
|
|
6
|
-
import { TakAutocompleteFieldType } from '../common';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class TakAutocompleteFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
9
|
-
private _ngControl;
|
|
10
|
-
private _formGroupDirective;
|
|
11
|
-
private _cd;
|
|
12
|
-
private _unsubscribe$;
|
|
13
|
-
option: string;
|
|
14
|
-
extraInfo: string;
|
|
15
|
-
autocomplete: TakAutocompleteFieldType;
|
|
16
|
-
appearance: MatFormFieldAppearance;
|
|
17
|
-
color: ThemePalette;
|
|
18
|
-
hasClearButton: boolean;
|
|
19
|
-
suggestions: any[];
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
hasTitle: boolean;
|
|
22
|
-
isLoading: boolean;
|
|
23
|
-
isRemoteSearch: boolean;
|
|
24
|
-
debounceTimeForRemoteSearch: number;
|
|
25
|
-
onSelect: EventEmitter<any>;
|
|
26
|
-
onSearch: EventEmitter<any>;
|
|
27
|
-
onChangeFn: (_: any) => void;
|
|
28
|
-
onTouchFn: (_: any) => void;
|
|
29
|
-
private _isSubmitted;
|
|
30
|
-
private _isInvalid;
|
|
31
|
-
private _required;
|
|
32
|
-
private _value;
|
|
33
|
-
private _filteredOptions;
|
|
34
|
-
private _notSuggestions;
|
|
35
|
-
private _lastValue;
|
|
36
|
-
constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
private _filter;
|
|
39
|
-
writeValue(value: string): void;
|
|
40
|
-
registerOnChange(fn: any): void;
|
|
41
|
-
registerOnTouched(fn: any): void;
|
|
42
|
-
onChange(event: any): void;
|
|
43
|
-
private _setValue;
|
|
44
|
-
emit(el: MatOptionSelectionChange): void;
|
|
45
|
-
emitWithClick(suggestionOption: any): void;
|
|
46
|
-
onFocusout(): void;
|
|
47
|
-
setValue(value: any): void;
|
|
48
|
-
onUpdateSuggestions(suggestions: any[]): void;
|
|
49
|
-
private _onValidate;
|
|
50
|
-
onFocus(): void;
|
|
51
|
-
onClearControl(): void;
|
|
52
|
-
ngOnDestroy(): void;
|
|
53
|
-
get control(): FormControl;
|
|
54
|
-
get directive(): FormGroupDirective;
|
|
55
|
-
get isDisabled(): boolean | null;
|
|
56
|
-
get isSubmitted(): boolean;
|
|
57
|
-
get isInvalid(): boolean;
|
|
58
|
-
get required(): boolean;
|
|
59
|
-
get value(): string;
|
|
60
|
-
get filteredOptions(): Observable<any[]>;
|
|
61
|
-
get notSuggestions(): boolean;
|
|
62
|
-
get lastValue(): string;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakAutocompleteFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakAutocompleteFieldComponent, "tak-autocomplete-field", never, { "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasTitle": { "alias": "hasTitle"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isRemoteSearch": { "alias": "isRemoteSearch"; "required": false; }; "debounceTimeForRemoteSearch": { "alias": "debounceTimeForRemoteSearch"; "required": false; }; }, { "onSelect": "onSelect"; "onSearch": "onSearch"; }, never, ["*"], true, never>;
|
|
65
|
-
}
|
package/fields/common.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
|
|
2
|
-
export declare const TAK_DEFAULT_APPEARANCE_FORM: MatFormFieldAppearance;
|
|
3
|
-
export type TakGeneralFieldType = 'text' | 'password' | 'filter';
|
|
4
|
-
export type TakAutocompleteFieldType = 'off' | 'on';
|
|
5
|
-
export declare const TAK_PRESS_ESC_KEY: KeyboardEvent;
|
|
6
|
-
export declare const TAK_PTRN_EMAIL = "^[^@]+@[^@]+.[a-zA-Z]{2,}$";
|
|
7
|
-
export declare const TAK_PTRN_NUMRC: RegExp;
|
|
8
|
-
export declare const TAK_PTRN_NONSP: RegExp;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ThemePalette } from '@kato-lee/material/core';
|
|
3
|
-
import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
|
|
4
|
-
import { ControlValueAccessor, FormControl, FormGroupDirective, NgControl } from '@angular/forms';
|
|
5
|
-
import { TakAutocompleteFieldType } from '../common';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TakDateFieldComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
8
|
-
private _ngControl;
|
|
9
|
-
private _formGroupDirective;
|
|
10
|
-
private _cd;
|
|
11
|
-
private _unsubscribe$;
|
|
12
|
-
appearance: MatFormFieldAppearance;
|
|
13
|
-
autocomplete: TakAutocompleteFieldType;
|
|
14
|
-
color: ThemePalette;
|
|
15
|
-
placeholder: string;
|
|
16
|
-
notInput: boolean;
|
|
17
|
-
minDate: Date | string;
|
|
18
|
-
maxDate: Date | string;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
onChangeFn: (_: any) => void;
|
|
21
|
-
onTouchFn: (_: any) => void;
|
|
22
|
-
private _isSubmitted;
|
|
23
|
-
private _isInvalid;
|
|
24
|
-
private _required;
|
|
25
|
-
private _value;
|
|
26
|
-
constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
ngAfterViewInit(): void;
|
|
29
|
-
writeValue(value: string): void;
|
|
30
|
-
registerOnChange(fn: any): void;
|
|
31
|
-
registerOnTouched(fn: any): void;
|
|
32
|
-
onChange(event: any): void;
|
|
33
|
-
onFocusout(): void;
|
|
34
|
-
onCloseDatePicker(): void;
|
|
35
|
-
private _onValidate;
|
|
36
|
-
ngOnDestroy(): void;
|
|
37
|
-
get control(): FormControl;
|
|
38
|
-
get directive(): FormGroupDirective;
|
|
39
|
-
get isDisabled(): boolean | null;
|
|
40
|
-
get isSubmitted(): boolean;
|
|
41
|
-
get isInvalid(): boolean;
|
|
42
|
-
get required(): boolean;
|
|
43
|
-
get value(): string;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakDateFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakDateFieldComponent, "tak-date-field", never, { "appearance": { "alias": "appearance"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
46
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
|
|
4
|
-
import { ThemePalette } from '@kato-lee/material/core';
|
|
5
|
-
import { TakAutocompleteFieldType } from '../common';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TakDateRangeFieldComponent implements OnInit {
|
|
8
|
-
autocomplete: TakAutocompleteFieldType;
|
|
9
|
-
startPlaceholder: string;
|
|
10
|
-
endPlaceholder: string;
|
|
11
|
-
appearance: MatFormFieldAppearance;
|
|
12
|
-
color: ThemePalette;
|
|
13
|
-
start: FormControl;
|
|
14
|
-
end: FormControl;
|
|
15
|
-
notInput: boolean;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
private _required;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
get required(): boolean;
|
|
20
|
-
get isDisabled(): boolean;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakDateRangeFieldComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakDateRangeFieldComponent, "tak-date-range-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
23
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { FormControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TakErrorComponent {
|
|
5
|
-
error: ElementRef | undefined;
|
|
6
|
-
control: FormControl;
|
|
7
|
-
start: FormControl;
|
|
8
|
-
end: FormControl;
|
|
9
|
-
isDateField: boolean;
|
|
10
|
-
isNumberField: boolean;
|
|
11
|
-
marginTop: number;
|
|
12
|
-
hasPatternError: boolean;
|
|
13
|
-
get required(): ValidationErrors;
|
|
14
|
-
get pattern(): ValidationErrors;
|
|
15
|
-
get max(): any;
|
|
16
|
-
get min(): any;
|
|
17
|
-
get maxlength(): any;
|
|
18
|
-
get minlength(): any;
|
|
19
|
-
get email(): ValidationErrors;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakErrorComponent, "tak-error", never, { "control": { "alias": "control"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "isDateField": { "alias": "isDateField"; "required": false; }; "isNumberField": { "alias": "isNumberField"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TakErrorEqualsPipe implements PipeTransform {
|
|
4
|
-
transform(errors: any, error: any, args?: any): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorEqualsPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorEqualsPipe, "errorEquals", true>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TakErrorMsgPipe implements PipeTransform {
|
|
4
|
-
transform(parameter: string, aditionalValue?: any): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorMsgPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorMsgPipe, "errorMsg", true>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const en: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const es: any;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormGroupDirective, FormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { TakGeneralFieldType } from '../common';
|
|
4
|
-
import { FloatLabelType, MatFormFieldAppearance } from '@kato-lee/material/form-field';
|
|
5
|
-
import { ThemePalette } from '@kato-lee/material/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TakGeneralFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
8
|
-
private _ngControl;
|
|
9
|
-
private _formGroupDirective;
|
|
10
|
-
private _cd;
|
|
11
|
-
autocomplete: 'off' | 'on';
|
|
12
|
-
appearance: MatFormFieldAppearance;
|
|
13
|
-
type: TakGeneralFieldType;
|
|
14
|
-
floatLabel: FloatLabelType;
|
|
15
|
-
color: ThemePalette;
|
|
16
|
-
actionIcon: string;
|
|
17
|
-
defaultFilterStyle: boolean;
|
|
18
|
-
hasActionButton: boolean;
|
|
19
|
-
hasClearButton: boolean;
|
|
20
|
-
countCaracters: boolean;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
maxLength: number;
|
|
23
|
-
minLength: number;
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
onExecuteAction: EventEmitter<any>;
|
|
26
|
-
onKeyUp: EventEmitter<any>;
|
|
27
|
-
onChangeFn: (_: any) => void;
|
|
28
|
-
onTouchFn: (_: any) => void;
|
|
29
|
-
private _isSubmitted;
|
|
30
|
-
private _isInvalid;
|
|
31
|
-
private _required;
|
|
32
|
-
private _value;
|
|
33
|
-
private _subscription;
|
|
34
|
-
private _decrypted;
|
|
35
|
-
constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
|
|
36
|
-
ngOnInit(): void;
|
|
37
|
-
writeValue(value: string): void;
|
|
38
|
-
registerOnChange(fn: any): void;
|
|
39
|
-
registerOnTouched(fn: any): void;
|
|
40
|
-
onChange(event: any): void;
|
|
41
|
-
showPassword(): void;
|
|
42
|
-
onFocusOut(): void;
|
|
43
|
-
private _onValidate;
|
|
44
|
-
onClearControl(): void;
|
|
45
|
-
ngOnDestroy(): void;
|
|
46
|
-
get control(): FormControl;
|
|
47
|
-
get directive(): FormGroupDirective;
|
|
48
|
-
get decrypted(): boolean;
|
|
49
|
-
get isDisabled(): boolean | null;
|
|
50
|
-
get isSubmitted(): boolean;
|
|
51
|
-
get isInvalid(): boolean;
|
|
52
|
-
get required(): boolean;
|
|
53
|
-
get value(): string;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakGeneralFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakGeneralFieldComponent, "tak-general-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "type": { "alias": "type"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
|
|
56
|
-
}
|
package/fields/module.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./select/component";
|
|
3
|
-
import * as i2 from "./date/component";
|
|
4
|
-
import * as i3 from "./autocomplete/component";
|
|
5
|
-
import * as i4 from "./date-range/component";
|
|
6
|
-
import * as i5 from "./general/component";
|
|
7
|
-
import * as i6 from "./money/component";
|
|
8
|
-
import * as i7 from "./text-area/component";
|
|
9
|
-
import * as i8 from "./number/component";
|
|
10
|
-
import * as i9 from "@angular/forms";
|
|
11
|
-
import * as i10 from "@kato-lee/material/autocomplete";
|
|
12
|
-
import * as i11 from "@kato-lee/material/core";
|
|
13
|
-
import * as i12 from "./remote-autocomplete/component";
|
|
14
|
-
/** @deprecated Use standalone */
|
|
15
|
-
export declare class TakFieldsModule {
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakFieldsModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TakFieldsModule, never, [typeof i1.TakSelectFieldComponent, typeof i2.TakDateFieldComponent, typeof i3.TakAutocompleteFieldComponent, typeof i4.TakDateRangeFieldComponent, typeof i5.TakGeneralFieldComponent, typeof i6.TakMoneyFieldComponent, typeof i7.TakTextareaComponent, typeof i8.TakNumberFieldComponent, typeof i9.ReactiveFormsModule, typeof i10.MatAutocompleteModule, typeof i9.FormsModule, typeof i11.MatNativeDateModule, typeof i12.TakRemoteAutocompleteFieldComponent], [typeof i9.ReactiveFormsModule, typeof i10.MatAutocompleteModule, typeof i9.FormsModule, typeof i11.MatNativeDateModule, typeof i12.TakRemoteAutocompleteFieldComponent, typeof i1.TakSelectFieldComponent, typeof i2.TakDateFieldComponent, typeof i3.TakAutocompleteFieldComponent, typeof i4.TakDateRangeFieldComponent, typeof i5.TakGeneralFieldComponent, typeof i6.TakMoneyFieldComponent, typeof i7.TakTextareaComponent, typeof i8.TakNumberFieldComponent]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TakFieldsModule>;
|
|
19
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormGroupDirective, FormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { FloatLabelType, MatFormFieldAppearance } from '@kato-lee/material/form-field';
|
|
4
|
-
import { ThemePalette } from '@kato-lee/material/core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TakMoneyFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
7
|
-
private _ngControl;
|
|
8
|
-
private _formGroupDirective;
|
|
9
|
-
private _cd;
|
|
10
|
-
autocomplete: 'off' | 'on';
|
|
11
|
-
appearance: MatFormFieldAppearance;
|
|
12
|
-
floatLabel: FloatLabelType;
|
|
13
|
-
color: ThemePalette;
|
|
14
|
-
actionIcon: string;
|
|
15
|
-
defaultFilterStyle: boolean;
|
|
16
|
-
hasActionButton: boolean;
|
|
17
|
-
hasClearButton: boolean;
|
|
18
|
-
countCaracters: boolean;
|
|
19
|
-
placeholder: string;
|
|
20
|
-
maxLength: number;
|
|
21
|
-
minLength: number;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
onExecuteAction: EventEmitter<any>;
|
|
24
|
-
onKeyUp: EventEmitter<any>;
|
|
25
|
-
onChangeFn: (_: any) => void;
|
|
26
|
-
onTouchFn: (_: any) => void;
|
|
27
|
-
private _isSubmitted;
|
|
28
|
-
private _isInvalid;
|
|
29
|
-
private _required;
|
|
30
|
-
private _value;
|
|
31
|
-
private _subscription;
|
|
32
|
-
constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
|
|
33
|
-
ngOnInit(): void;
|
|
34
|
-
writeValue(value: string): void;
|
|
35
|
-
registerOnChange(fn: any): void;
|
|
36
|
-
registerOnTouched(fn: any): void;
|
|
37
|
-
onChange(event: any): void;
|
|
38
|
-
private _addCurrencyMask;
|
|
39
|
-
onFocusOut(): void;
|
|
40
|
-
private _onValidate;
|
|
41
|
-
onKeyDown(event: any): boolean;
|
|
42
|
-
onClearControl(): void;
|
|
43
|
-
ngOnDestroy(): void;
|
|
44
|
-
get control(): FormControl;
|
|
45
|
-
get directive(): FormGroupDirective;
|
|
46
|
-
get isDisabled(): boolean | null;
|
|
47
|
-
get isSubmitted(): boolean;
|
|
48
|
-
get isInvalid(): boolean;
|
|
49
|
-
get required(): boolean;
|
|
50
|
-
get value(): string;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakMoneyFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakMoneyFieldComponent, "tak-money-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
|
|
53
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormGroupDirective, FormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { FloatLabelType, MatFormFieldAppearance } from '@kato-lee/material/form-field';
|
|
4
|
-
import { ThemePalette } from '@kato-lee/material/core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TakNumberFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
7
|
-
private _ngControl;
|
|
8
|
-
private _formGroupDirective;
|
|
9
|
-
private _cd;
|
|
10
|
-
autocomplete: 'off' | 'on';
|
|
11
|
-
appearance: MatFormFieldAppearance;
|
|
12
|
-
floatLabel: FloatLabelType;
|
|
13
|
-
color: ThemePalette;
|
|
14
|
-
actionIcon: string;
|
|
15
|
-
hasActionButton: boolean;
|
|
16
|
-
hasClearButton: boolean;
|
|
17
|
-
countCaracters: boolean;
|
|
18
|
-
placeholder: string;
|
|
19
|
-
min: number;
|
|
20
|
-
max: number;
|
|
21
|
-
minLength: number;
|
|
22
|
-
maxLength: number;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
onExecuteAction: EventEmitter<any>;
|
|
25
|
-
onKeyUp: EventEmitter<any>;
|
|
26
|
-
onChangeFn: (_: any) => void;
|
|
27
|
-
onTouchFn: (_: any) => void;
|
|
28
|
-
private _isSubmitted;
|
|
29
|
-
private _isInvalid;
|
|
30
|
-
private _required;
|
|
31
|
-
private _value;
|
|
32
|
-
private _subscription;
|
|
33
|
-
constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
|
|
34
|
-
ngOnInit(): void;
|
|
35
|
-
writeValue(value: string): void;
|
|
36
|
-
registerOnChange(fn: any): void;
|
|
37
|
-
registerOnTouched(fn: any): void;
|
|
38
|
-
onChange(event: any): void;
|
|
39
|
-
onFocusOut(): void;
|
|
40
|
-
private _onValidate;
|
|
41
|
-
onClearControl(): void;
|
|
42
|
-
ngOnDestroy(): void;
|
|
43
|
-
get control(): FormControl;
|
|
44
|
-
get directive(): FormGroupDirective;
|
|
45
|
-
get isDisabled(): boolean | null;
|
|
46
|
-
get isSubmitted(): boolean;
|
|
47
|
-
get isInvalid(): boolean;
|
|
48
|
-
get required(): boolean;
|
|
49
|
-
get value(): string;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakNumberFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakNumberFieldComponent, "tak-number-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
|
|
52
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { TakToast } from '@kato-lee/components/toast';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { HttpClient } from '@angular/common/http';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TakRemoteAutocompleteFieldComponent implements OnInit, OnDestroy {
|
|
8
|
-
private _http;
|
|
9
|
-
private _cd;
|
|
10
|
-
private _toast;
|
|
11
|
-
remoteUrl: string;
|
|
12
|
-
params: any;
|
|
13
|
-
option: string;
|
|
14
|
-
extraInfo: string;
|
|
15
|
-
justOneLoad: boolean;
|
|
16
|
-
onSelect: EventEmitter<any>;
|
|
17
|
-
suggestions: any[];
|
|
18
|
-
autocomplete: FormControl<any>;
|
|
19
|
-
private _isLoading;
|
|
20
|
-
isValueSelected: boolean;
|
|
21
|
-
private _unsubscribe$;
|
|
22
|
-
private _isLoadingItem;
|
|
23
|
-
private _isRequired;
|
|
24
|
-
private _filteredOptions;
|
|
25
|
-
private _value;
|
|
26
|
-
private _notSuggestions;
|
|
27
|
-
wasLoaded: boolean;
|
|
28
|
-
constructor(_http: HttpClient, _cd: ChangeDetectorRef, _toast: TakToast);
|
|
29
|
-
ngOnInit(): Promise<void>;
|
|
30
|
-
private _filter;
|
|
31
|
-
refresh(): Promise<void>;
|
|
32
|
-
reset(): void;
|
|
33
|
-
emit(el: any, option: any): void;
|
|
34
|
-
ngOnDestroy(): void;
|
|
35
|
-
get isLoading(): boolean;
|
|
36
|
-
get isRequired(): boolean;
|
|
37
|
-
get isLoadingItem(): boolean;
|
|
38
|
-
get filteredOptions(): Observable<any[]>;
|
|
39
|
-
get value(): string;
|
|
40
|
-
get notSuggestions(): boolean;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TakRemoteAutocompleteFieldComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TakRemoteAutocompleteFieldComponent, "tak-remote-autocomplete-field", never, { "remoteUrl": { "alias": "remoteUrl"; "required": false; }; "params": { "alias": "params"; "required": false; }; "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "justOneLoad": { "alias": "justOneLoad"; "required": false; }; }, { "onSelect": "onSelect"; }, never, ["*"], true, never>;
|
|
43
|
-
}
|