@kato-lee/components 1.0.4 → 1.0.6

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.
@@ -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
- const modules = [MatTableModule, MatSortModule, MatPaginatorModule];
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":";;;;;;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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,cAAc,EAAE,aAAa,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAOrD,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;;;ACZD;;AAEG;;ACFH;;AAEG;;;;"}
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,GAAG,IAAI,GAAG,QAAQ,CAAC;IACnC,MAAM,QAAQ,GACZ,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,QAAQ,EAAE,MAAM,CAAC,GAAG,UAAU,GAAG,QAAQ,CAAC;IACxF,OAAO,CAAA,EAAG,UAAU,GAAG,CAAC,CAAA,GAAA,EAAM,QAAQ,CAAA,IAAA,EAAO,MAAM,CAAA,CAAA,EAAI,UAAU,CAAA,CAAE,CAAC;AACtE,CAAC,CAAC;SAEc,0BAA0B,GAAA;AACxC,I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A,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;;;;"}
@@ -0,0 +1,9 @@
1
+ import { Validators } from '@angular/forms';
2
+ export declare const required: typeof Validators.required;
3
+ export declare const max: (max: number) => import("@angular/forms").ValidatorFn;
4
+ export declare const min: (min: number) => import("@angular/forms").ValidatorFn;
5
+ export declare const maxLength: (maxLength: number) => import("@angular/forms").ValidatorFn;
6
+ export declare const minLength: (minLength: number) => import("@angular/forms").ValidatorFn;
7
+ export declare const withOutSpaces: import("@angular/forms").ValidatorFn;
8
+ export declare const onlyNumber: import("@angular/forms").ValidatorFn;
9
+ export declare const email: import("@angular/forms").ValidatorFn;
package/fields/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './error/error.component';
3
3
  export * from './error/error.msg.pipe';
4
4
  export * from './fields.common';
5
5
  export * from './fields.module';
6
+ export * from './fields.validators';
6
7
  export * from './select-field/select-field.component';
7
8
  export * from './date-field/date-field.component';
8
9
  export * from './autocomplete-field/autocomplete-field.component';
@@ -11,3 +12,4 @@ export * from './money-field/money-field.component';
11
12
  export * from './text-area/textarea.component';
12
13
  export * from './date-range-field/date-range-field.component';
13
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.4",
3
+ "version": "1.0.6",
4
4
  "dependencies": {
5
5
  "@kato-lee/cdk": "^14.2.7",
6
6
  "@kato-lee/material": "^14.2.7"
@@ -18,54 +18,54 @@
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
+ },
21
27
  "./box-form": {
22
28
  "types": "./box-form/index.d.ts",
23
29
  "esm2022": "./esm2022/box-form/kato-lee-components-box-form.mjs",
24
30
  "esm": "./esm2022/box-form/kato-lee-components-box-form.mjs",
25
31
  "default": "./fesm2022/kato-lee-components-box-form.mjs"
26
32
  },
33
+ "./dialogs": {
34
+ "types": "./dialogs/index.d.ts",
35
+ "esm2022": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
36
+ "esm": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
37
+ "default": "./fesm2022/kato-lee-components-dialogs.mjs"
38
+ },
27
39
  "./cards": {
28
40
  "types": "./cards/index.d.ts",
29
41
  "esm2022": "./esm2022/cards/kato-lee-components-cards.mjs",
30
42
  "esm": "./esm2022/cards/kato-lee-components-cards.mjs",
31
43
  "default": "./fesm2022/kato-lee-components-cards.mjs"
32
44
  },
33
- "./capsule": {
34
- "types": "./capsule/index.d.ts",
35
- "esm2022": "./esm2022/capsule/kato-lee-components-capsule.mjs",
36
- "esm": "./esm2022/capsule/kato-lee-components-capsule.mjs",
37
- "default": "./fesm2022/kato-lee-components-capsule.mjs"
38
- },
39
45
  "./fields": {
40
46
  "types": "./fields/index.d.ts",
41
47
  "esm2022": "./esm2022/fields/kato-lee-components-fields.mjs",
42
48
  "esm": "./esm2022/fields/kato-lee-components-fields.mjs",
43
49
  "default": "./fesm2022/kato-lee-components-fields.mjs"
44
50
  },
45
- "./dialogs": {
46
- "types": "./dialogs/index.d.ts",
47
- "esm2022": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
48
- "esm": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
49
- "default": "./fesm2022/kato-lee-components-dialogs.mjs"
50
- },
51
51
  "./modal": {
52
52
  "types": "./modal/index.d.ts",
53
53
  "esm2022": "./esm2022/modal/kato-lee-components-modal.mjs",
54
54
  "esm": "./esm2022/modal/kato-lee-components-modal.mjs",
55
55
  "default": "./fesm2022/kato-lee-components-modal.mjs"
56
56
  },
57
- "./pretty-box": {
58
- "types": "./pretty-box/index.d.ts",
59
- "esm2022": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
60
- "esm": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
61
- "default": "./fesm2022/kato-lee-components-pretty-box.mjs"
62
- },
63
57
  "./tables": {
64
58
  "types": "./tables/index.d.ts",
65
59
  "esm2022": "./esm2022/tables/kato-lee-components-tables.mjs",
66
60
  "esm": "./esm2022/tables/kato-lee-components-tables.mjs",
67
61
  "default": "./fesm2022/kato-lee-components-tables.mjs"
68
62
  },
63
+ "./pretty-box": {
64
+ "types": "./pretty-box/index.d.ts",
65
+ "esm2022": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
66
+ "esm": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
67
+ "default": "./fesm2022/kato-lee-components-pretty-box.mjs"
68
+ },
69
69
  "./toast": {
70
70
  "types": "./toast/index.d.ts",
71
71
  "esm2022": "./esm2022/toast/kato-lee-components-toast.mjs",
@@ -78,5 +78,5 @@
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
@@ -1,2 +1,3 @@
1
1
  export * from './mat-paginator.translation';
2
+ export * from './no-records.component';
2
3
  export * from './tables.module';
@@ -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
  }