@kato-lee/components 1.0.5 → 1.0.7
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/esm2022/fields/fields.module.mjs +10 -4
- package/esm2022/fields/index.mjs +2 -1
- package/esm2022/fields/remote-autocomplete-field/remote-autocomplete-field.component.mjs +188 -0
- package/esm2022/tables/index.mjs +2 -1
- package/esm2022/tables/no-records.component.mjs +58 -0
- package/esm2022/tables/tables.module.mjs +4 -3
- package/fesm2022/kato-lee-components-fields.mjs +179 -7
- package/fesm2022/kato-lee-components-fields.mjs.map +1 -1
- package/fesm2022/kato-lee-components-tables.mjs +60 -4
- package/fesm2022/kato-lee-components-tables.mjs.map +1 -1
- package/fields/fields.module.d.ts +2 -1
- package/fields/index.d.ts +1 -0
- package/fields/remote-autocomplete-field/remote-autocomplete-field.component.d.ts +43 -0
- package/package.json +19 -19
- package/tables/index.d.ts +1 -0
- package/tables/no-records.component.d.ts +12 -0
- package/tables/tables.module.d.ts +2 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { MatPaginatorIntl, MatPaginatorModule } from '@kato-lee/material/paginator';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { NgModule } from '@angular/core';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
4
|
+
import * as i1 from '@kato-lee/material/progress-spinner';
|
|
5
|
+
import { MatProgressSpinnerModule } from '@kato-lee/material/progress-spinner';
|
|
4
6
|
import { MatSortModule } from '@kato-lee/material/sort';
|
|
5
7
|
import { MatTableModule } from '@kato-lee/material/table';
|
|
6
8
|
|
|
@@ -25,10 +27,64 @@ function getSpanishMatPaginatorIntl() {
|
|
|
25
27
|
return paginatorIntl;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
class TakTableNoRecordsComponent {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.isLoading = false;
|
|
33
|
+
this._secondImage = true;
|
|
34
|
+
}
|
|
35
|
+
ngOnInit() {
|
|
36
|
+
if (this.dataSource) {
|
|
37
|
+
if (this.dataSource.data.length && !this.dataSource.filteredData.length)
|
|
38
|
+
this._secondImage = false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
get secondImage() {
|
|
42
|
+
return this._secondImage;
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTableNoRecordsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
+
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: `
|
|
46
|
+
@if (isLoading) {
|
|
47
|
+
<div class="tak-progress-circle__container">
|
|
48
|
+
<mat-progress-spinner mode="indeterminate" />
|
|
49
|
+
</div>
|
|
50
|
+
} @else {
|
|
51
|
+
<div class="tak-progress-circle__container">
|
|
52
|
+
@if (secondImage) {
|
|
53
|
+
No hay resultados que contengan esta palabra clave
|
|
54
|
+
} @else {
|
|
55
|
+
No se encontraron resultados
|
|
56
|
+
}
|
|
57
|
+
</div>
|
|
58
|
+
}
|
|
59
|
+
`, 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 }); }
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTableNoRecordsComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ standalone: true, imports: [MatProgressSpinnerModule], selector: 'tak-table-no-records', template: `
|
|
64
|
+
@if (isLoading) {
|
|
65
|
+
<div class="tak-progress-circle__container">
|
|
66
|
+
<mat-progress-spinner mode="indeterminate" />
|
|
67
|
+
</div>
|
|
68
|
+
} @else {
|
|
69
|
+
<div class="tak-progress-circle__container">
|
|
70
|
+
@if (secondImage) {
|
|
71
|
+
No hay resultados que contengan esta palabra clave
|
|
72
|
+
} @else {
|
|
73
|
+
No se encontraron resultados
|
|
74
|
+
}
|
|
75
|
+
</div>
|
|
76
|
+
}
|
|
77
|
+
`, 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"] }]
|
|
78
|
+
}], propDecorators: { dataSource: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], isLoading: [{
|
|
81
|
+
type: Input
|
|
82
|
+
}] } });
|
|
83
|
+
|
|
84
|
+
const modules = [MatTableModule, MatSortModule, MatPaginatorModule, TakTableNoRecordsComponent];
|
|
29
85
|
class TakTablesModule {
|
|
30
86
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
31
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, imports: [MatTableModule, MatSortModule, MatPaginatorModule], exports: [MatTableModule, MatSortModule, MatPaginatorModule] }); }
|
|
87
|
+
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] }); }
|
|
32
88
|
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] }); }
|
|
33
89
|
}
|
|
34
90
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakTablesModule, decorators: [{
|
|
@@ -48,5 +104,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
48
104
|
* Generated bundle index. Do not edit.
|
|
49
105
|
*/
|
|
50
106
|
|
|
51
|
-
export { TakTablesModule, getSpanishMatPaginatorIntl };
|
|
107
|
+
export { TakTableNoRecordsComponent, TakTablesModule, getSpanishMatPaginatorIntl };
|
|
52
108
|
//# sourceMappingURL=kato-lee-components-tables.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kato-lee-components-tables.mjs","sources":["../../../libraries/components/tables/mat-paginator.translation.ts","../../../libraries/components/tables/tables.module.ts","../../../libraries/components/tables/index.ts","../../../libraries/components/tables/kato-lee-components-tables.ts"],"sourcesContent":["import { MatPaginatorIntl } from '@kato-lee/material/paginator';\r\n\r\nconst typeEntity = 'item(s)';\r\n\r\nconst SpanishRangeLabel = (page: number, pageSize: number, length: number) => {\r\n if (length == 0 || pageSize == 0) {\r\n return `0 de ${length} ${typeEntity}`;\r\n }\r\n length = Math.max(length, 0);\r\n const startIndex = page * pageSize;\r\n const endIndex =\r\n startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\r\n return `${startIndex + 1} - ${endIndex} de ${length} ${typeEntity}`;\r\n};\r\n\r\nexport function getSpanishMatPaginatorIntl() {\r\n const paginatorIntl = new MatPaginatorIntl();\r\n\r\n paginatorIntl.itemsPerPageLabel = 'Items por página:';\r\n paginatorIntl.firstPageLabel = 'Primer página';\r\n paginatorIntl.nextPageLabel = 'Siguiente';\r\n paginatorIntl.previousPageLabel = 'Anterior';\r\n paginatorIntl.lastPageLabel = 'Ultima página';\r\n paginatorIntl.getRangeLabel = SpanishRangeLabel;\r\n\r\n return paginatorIntl;\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { MatPaginatorIntl, MatPaginatorModule } from '@kato-lee/material/paginator';\r\nimport { MatSortModule } from '@kato-lee/material/sort';\r\nimport { MatTableModule } from '@kato-lee/material/table';\r\nimport { getSpanishMatPaginatorIntl } from './mat-paginator.translation';\r\n\r\nconst modules = [MatTableModule, MatSortModule, MatPaginatorModule];\r\n\r\n@NgModule({\r\n imports: modules,\r\n exports: modules,\r\n providers: [{ provide: MatPaginatorIntl, useValue: getSpanishMatPaginatorIntl() }],\r\n})\r\nexport class TakTablesModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/tables\r\n */\r\nexport * from './mat-paginator.translation';\r\nexport * from './tables.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kato-lee-components-tables.mjs","sources":["../../../libraries/components/tables/mat-paginator.translation.ts","../../../libraries/components/tables/no-records.component.ts","../../../libraries/components/tables/tables.module.ts","../../../libraries/components/tables/index.ts","../../../libraries/components/tables/kato-lee-components-tables.ts"],"sourcesContent":["import { MatPaginatorIntl } from '@kato-lee/material/paginator';\r\n\r\nconst typeEntity = 'item(s)';\r\n\r\nconst SpanishRangeLabel = (page: number, pageSize: number, length: number) => {\r\n if (length == 0 || pageSize == 0) {\r\n return `0 de ${length} ${typeEntity}`;\r\n }\r\n length = Math.max(length, 0);\r\n const startIndex = page * pageSize;\r\n const endIndex =\r\n startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\r\n return `${startIndex + 1} - ${endIndex} de ${length} ${typeEntity}`;\r\n};\r\n\r\nexport function getSpanishMatPaginatorIntl() {\r\n const paginatorIntl = new MatPaginatorIntl();\r\n\r\n paginatorIntl.itemsPerPageLabel = 'Items por página:';\r\n paginatorIntl.firstPageLabel = 'Primer página';\r\n paginatorIntl.nextPageLabel = 'Siguiente';\r\n paginatorIntl.previousPageLabel = 'Anterior';\r\n paginatorIntl.lastPageLabel = 'Ultima página';\r\n paginatorIntl.getRangeLabel = SpanishRangeLabel;\r\n\r\n return paginatorIntl;\r\n}\r\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\r\nimport { MatProgressSpinnerModule } from '@kato-lee/material/progress-spinner';\r\nimport { MatTableDataSource } from '@kato-lee/material/table';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [MatProgressSpinnerModule],\r\n selector: 'tak-table-no-records',\r\n template: `\r\n @if (isLoading) {\r\n <div class=\"tak-progress-circle__container\">\r\n <mat-progress-spinner mode=\"indeterminate\" />\r\n </div>\r\n } @else {\r\n <div class=\"tak-progress-circle__container\">\r\n @if (secondImage) {\r\n No hay resultados que contengan esta palabra clave\r\n } @else {\r\n No se encontraron resultados\r\n }\r\n </div>\r\n }\r\n `,\r\n styles: `\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 315px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n @media only screen and (min-width: 640px) {\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 230px);\r\n }\r\n }\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 230px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n .tak-progress-circle__container-image {\r\n min-height: calc(100vh - 230px);\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakTableNoRecordsComponent implements OnInit {\r\n @Input() dataSource!: MatTableDataSource<any>;\r\n\r\n @Input() isLoading = false;\r\n\r\n private _secondImage = true;\r\n\r\n public ngOnInit(): void {\r\n if (this.dataSource) {\r\n if (this.dataSource.data.length && !this.dataSource.filteredData.length)\r\n this._secondImage = false;\r\n }\r\n }\r\n\r\n get secondImage(): boolean {\r\n return this._secondImage;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { MatPaginatorIntl, MatPaginatorModule } from '@kato-lee/material/paginator';\r\nimport { MatSortModule } from '@kato-lee/material/sort';\r\nimport { MatTableModule } from '@kato-lee/material/table';\r\nimport { getSpanishMatPaginatorIntl } from './mat-paginator.translation';\r\nimport { TakTableNoRecordsComponent } from './no-records.component';\r\n\r\nconst modules = [MatTableModule, MatSortModule, MatPaginatorModule, TakTableNoRecordsComponent];\r\n\r\n@NgModule({\r\n imports: modules,\r\n exports: modules,\r\n providers: [{ provide: MatPaginatorIntl, useValue: getSpanishMatPaginatorIntl() }],\r\n})\r\nexport class TakTablesModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/tables\r\n */\r\nexport * from './mat-paginator.translation';\r\nexport * from './no-records.component';\r\nexport * from './tables.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA,MAAM,UAAU,GAAG,SAAS,CAAC;AAE7B,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,MAAc,KAAI;AAC3E,IAAA,IAAI,MAAM,IAAI,CAAC,IAAI,QAAQ,IAAI,CAAC,EAAE;AAChC,QAAA,OAAO,CAAQ,KAAA,EAAA,MAAM,CAAI,CAAA,EAAA,UAAU,EAAE,CAAC;AACvC,KAAA;IACD,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC7B,IAAA,MAAM,UAAU,GAA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CAAA;sBAAjB,KAAK;;;AC3CR,MAAM,OAAO,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,0BAA0B,CAAC,CAAC;MAOnF,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAf,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,eAAe,EAPX,OAAA,EAAA,CAAA,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,0BAA0B,CAAA,EAAA,OAAA,EAAA,CAA7E,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,0BAA0B,CAAA,EAAA,CAAA,CAAA,EAAA;+GAOjF,eAAe,EAAA,SAAA,EAFf,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,0BAA0B,EAAE,EAAE,CAAC,YAFzE,OAAO,EAHD,cAAc,EAAE,aAAa,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAOrD,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,0BAA0B,EAAE,EAAE,CAAC;AACnF,iBAAA,CAAA;;;ACbD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -21,8 +21,9 @@ import * as i19 from "@kato-lee/material/input";
|
|
|
21
21
|
import * as i20 from "@kato-lee/material/select";
|
|
22
22
|
import * as i21 from "@kato-lee/material/tooltip";
|
|
23
23
|
import * as i22 from "@kato-lee/material/menu";
|
|
24
|
+
import * as i23 from "./remote-autocomplete-field/remote-autocomplete-field.component";
|
|
24
25
|
export declare class TakFieldsModule {
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<TakFieldsModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TakFieldsModule, [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.FormsModule, typeof i10.CommonModule, typeof i11.MatNativeDateModule, typeof i9.ReactiveFormsModule, typeof i12.MatProgressSpinnerModule, typeof i13.MatFormFieldModule, typeof i14.MatButtonModule, typeof i15.MatDatepickerModule, typeof i16.MatAutocompleteModule, typeof i17.TakErrorModule, typeof i18.MatIconModule, typeof i19.MatInputModule, typeof i11.MatOptionModule, typeof i20.MatSelectModule, typeof i21.MatTooltipModule, typeof i22.MatMenuModule], [typeof i9.ReactiveFormsModule, typeof i16.MatAutocompleteModule, typeof i9.FormsModule, typeof i11.MatNativeDateModule, typeof i1.TakSelectFieldComponent, typeof i2.TakDateFieldComponent, typeof i3.TakAutocompleteFieldComponent, typeof i4.TakDateRangeFieldComponent, typeof i5.TakGeneralFieldComponent, typeof i6.TakMoneyFieldComponent, typeof i7.TakTextareaComponent, typeof i8.TakNumberFieldComponent]>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TakFieldsModule, [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.FormsModule, typeof i10.CommonModule, typeof i11.MatNativeDateModule, typeof i9.ReactiveFormsModule, typeof i12.MatProgressSpinnerModule, typeof i13.MatFormFieldModule, typeof i14.MatButtonModule, typeof i15.MatDatepickerModule, typeof i16.MatAutocompleteModule, typeof i17.TakErrorModule, typeof i18.MatIconModule, typeof i19.MatInputModule, typeof i11.MatOptionModule, typeof i20.MatSelectModule, typeof i21.MatTooltipModule, typeof i22.MatMenuModule, typeof i23.TakRemoteAutocompleteFieldComponent], [typeof i9.ReactiveFormsModule, typeof i16.MatAutocompleteModule, typeof i9.FormsModule, typeof i11.MatNativeDateModule, typeof i23.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]>;
|
|
27
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<TakFieldsModule>;
|
|
28
29
|
}
|
package/fields/index.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ export * from './money-field/money-field.component';
|
|
|
12
12
|
export * from './text-area/textarea.component';
|
|
13
13
|
export * from './date-range-field/date-range-field.component';
|
|
14
14
|
export * from './number-field/number-field.component';
|
|
15
|
+
export * from './remote-autocomplete-field/remote-autocomplete-field.component';
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kato-lee/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@kato-lee/cdk": "^14.2.7",
|
|
6
6
|
"@kato-lee/material": "^14.2.7"
|
|
@@ -18,23 +18,17 @@
|
|
|
18
18
|
"esm": "./esm2022/kato-lee-components.mjs",
|
|
19
19
|
"default": "./fesm2022/kato-lee-components.mjs"
|
|
20
20
|
},
|
|
21
|
-
"./capsule": {
|
|
22
|
-
"types": "./capsule/index.d.ts",
|
|
23
|
-
"esm2022": "./esm2022/capsule/kato-lee-components-capsule.mjs",
|
|
24
|
-
"esm": "./esm2022/capsule/kato-lee-components-capsule.mjs",
|
|
25
|
-
"default": "./fesm2022/kato-lee-components-capsule.mjs"
|
|
26
|
-
},
|
|
27
21
|
"./box-form": {
|
|
28
22
|
"types": "./box-form/index.d.ts",
|
|
29
23
|
"esm2022": "./esm2022/box-form/kato-lee-components-box-form.mjs",
|
|
30
24
|
"esm": "./esm2022/box-form/kato-lee-components-box-form.mjs",
|
|
31
25
|
"default": "./fesm2022/kato-lee-components-box-form.mjs"
|
|
32
26
|
},
|
|
33
|
-
"./
|
|
34
|
-
"types": "./
|
|
35
|
-
"esm2022": "./esm2022/
|
|
36
|
-
"esm": "./esm2022/
|
|
37
|
-
"default": "./fesm2022/kato-lee-components-
|
|
27
|
+
"./capsule": {
|
|
28
|
+
"types": "./capsule/index.d.ts",
|
|
29
|
+
"esm2022": "./esm2022/capsule/kato-lee-components-capsule.mjs",
|
|
30
|
+
"esm": "./esm2022/capsule/kato-lee-components-capsule.mjs",
|
|
31
|
+
"default": "./fesm2022/kato-lee-components-capsule.mjs"
|
|
38
32
|
},
|
|
39
33
|
"./cards": {
|
|
40
34
|
"types": "./cards/index.d.ts",
|
|
@@ -42,6 +36,12 @@
|
|
|
42
36
|
"esm": "./esm2022/cards/kato-lee-components-cards.mjs",
|
|
43
37
|
"default": "./fesm2022/kato-lee-components-cards.mjs"
|
|
44
38
|
},
|
|
39
|
+
"./dialogs": {
|
|
40
|
+
"types": "./dialogs/index.d.ts",
|
|
41
|
+
"esm2022": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
|
|
42
|
+
"esm": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
|
|
43
|
+
"default": "./fesm2022/kato-lee-components-dialogs.mjs"
|
|
44
|
+
},
|
|
45
45
|
"./fields": {
|
|
46
46
|
"types": "./fields/index.d.ts",
|
|
47
47
|
"esm2022": "./esm2022/fields/kato-lee-components-fields.mjs",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"esm": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
|
|
61
61
|
"default": "./fesm2022/kato-lee-components-pretty-box.mjs"
|
|
62
62
|
},
|
|
63
|
-
"./toast": {
|
|
64
|
-
"types": "./toast/index.d.ts",
|
|
65
|
-
"esm2022": "./esm2022/toast/kato-lee-components-toast.mjs",
|
|
66
|
-
"esm": "./esm2022/toast/kato-lee-components-toast.mjs",
|
|
67
|
-
"default": "./fesm2022/kato-lee-components-toast.mjs"
|
|
68
|
-
},
|
|
69
63
|
"./tables": {
|
|
70
64
|
"types": "./tables/index.d.ts",
|
|
71
65
|
"esm2022": "./esm2022/tables/kato-lee-components-tables.mjs",
|
|
72
66
|
"esm": "./esm2022/tables/kato-lee-components-tables.mjs",
|
|
73
67
|
"default": "./fesm2022/kato-lee-components-tables.mjs"
|
|
74
68
|
},
|
|
69
|
+
"./toast": {
|
|
70
|
+
"types": "./toast/index.d.ts",
|
|
71
|
+
"esm2022": "./esm2022/toast/kato-lee-components-toast.mjs",
|
|
72
|
+
"esm": "./esm2022/toast/kato-lee-components-toast.mjs",
|
|
73
|
+
"default": "./fesm2022/kato-lee-components-toast.mjs"
|
|
74
|
+
},
|
|
75
75
|
"./layouts/origin": {
|
|
76
76
|
"types": "./layouts/origin/index.d.ts",
|
|
77
77
|
"esm2022": "./esm2022/layouts/origin/kato-lee-components-layouts-origin.mjs",
|
|
78
78
|
"esm": "./esm2022/layouts/origin/kato-lee-components-layouts-origin.mjs",
|
|
79
79
|
"default": "./fesm2022/kato-lee-components-layouts-origin.mjs"
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|
|
82
82
|
}
|
package/tables/index.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatTableDataSource } from '@kato-lee/material/table';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TakTableNoRecordsComponent implements OnInit {
|
|
5
|
+
dataSource: MatTableDataSource<any>;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
private _secondImage;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
get secondImage(): boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TakTableNoRecordsComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TakTableNoRecordsComponent, "tak-table-no-records", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "@kato-lee/material/table";
|
|
3
3
|
import * as i2 from "@kato-lee/material/sort";
|
|
4
4
|
import * as i3 from "@kato-lee/material/paginator";
|
|
5
|
+
import * as i4 from "./no-records.component";
|
|
5
6
|
export declare class TakTablesModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TakTablesModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TakTablesModule, never, [typeof i1.MatTableModule, typeof i2.MatSortModule, typeof i3.MatPaginatorModule], [typeof i1.MatTableModule, typeof i2.MatSortModule, typeof i3.MatPaginatorModule]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TakTablesModule, never, [typeof i1.MatTableModule, typeof i2.MatSortModule, typeof i3.MatPaginatorModule, typeof i4.TakTableNoRecordsComponent], [typeof i1.MatTableModule, typeof i2.MatSortModule, typeof i3.MatPaginatorModule, typeof i4.TakTableNoRecordsComponent]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<TakTablesModule>;
|
|
9
10
|
}
|