kivio 1.2.2 → 1.2.3
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.
|
@@ -14,6 +14,7 @@ export class KvMainTableComponent {
|
|
|
14
14
|
this.loading = false;
|
|
15
15
|
this.totalRecords = 0;
|
|
16
16
|
this.message = '';
|
|
17
|
+
this.hasMoreItems = true;
|
|
17
18
|
this.onNameClicked = new EventEmitter();
|
|
18
19
|
this.onPageChange = new EventEmitter();
|
|
19
20
|
this.searchText = '';
|
|
@@ -102,11 +103,11 @@ export class KvMainTableComponent {
|
|
|
102
103
|
this.onNameClicked.emit(data);
|
|
103
104
|
}
|
|
104
105
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvMainTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
105
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: KvMainTableComponent, isStandalone: true, selector: "lib-kv-main-table", inputs: { columns: "columns", data: "data", extraData: "extraData", showPaginator: "showPaginator", lazyLoading: "lazyLoading", loading: "loading", totalRecords: "totalRecords", message: "message" }, outputs: { onNameClicked: "onNameClicked", onPageChange: "onPageChange" }, queries: [{ propertyName: "cellActionsTemplate", first: true, predicate: ["cellActions"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages()\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: KvLoadingComponent, selector: "lib-kv-loading", inputs: ["message", "isLoading"] }] }); }
|
|
106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: KvMainTableComponent, isStandalone: true, selector: "lib-kv-main-table", inputs: { columns: "columns", data: "data", extraData: "extraData", showPaginator: "showPaginator", lazyLoading: "lazyLoading", loading: "loading", totalRecords: "totalRecords", message: "message", hasMoreItems: "hasMoreItems" }, outputs: { onNameClicked: "onNameClicked", onPageChange: "onPageChange" }, queries: [{ propertyName: "cellActionsTemplate", first: true, predicate: ["cellActions"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages() && !hasMoreItems\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: KvLoadingComponent, selector: "lib-kv-loading", inputs: ["message", "isLoading"] }] }); }
|
|
106
107
|
}
|
|
107
108
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvMainTableComponent, decorators: [{
|
|
108
109
|
type: Component,
|
|
109
|
-
args: [{ selector: 'lib-kv-main-table', standalone: true, imports: [CommonModule, FormsModule, KvLoadingComponent], template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages()\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"] }]
|
|
110
|
+
args: [{ selector: 'lib-kv-main-table', standalone: true, imports: [CommonModule, FormsModule, KvLoadingComponent], template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages() && !hasMoreItems\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"] }]
|
|
110
111
|
}], propDecorators: { columns: [{
|
|
111
112
|
type: Input
|
|
112
113
|
}], data: [{
|
|
@@ -123,6 +124,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
123
124
|
type: Input
|
|
124
125
|
}], message: [{
|
|
125
126
|
type: Input
|
|
127
|
+
}], hasMoreItems: [{
|
|
128
|
+
type: Input
|
|
126
129
|
}], cellActionsTemplate: [{
|
|
127
130
|
type: ContentChild,
|
|
128
131
|
args: ['cellActions']
|
|
@@ -131,4 +134,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
131
134
|
}], onPageChange: [{
|
|
132
135
|
type: Output
|
|
133
136
|
}] } });
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3YtbWFpbi10YWJsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXZpby9zcmMvbGliL2NvbXBvbmVudHMva3YtbWFpbi10YWJsZS9rdi1tYWluLXRhYmxlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdmlvL3NyYy9saWIvY29tcG9uZW50cy9rdi1tYWluLXRhYmxlL2t2LW1haW4tdGFibGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFDTCxTQUFTLEVBQ1QsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBSU4sWUFBWSxHQUNiLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQzs7OztBQVN4RSxNQUFNLE9BQU8sb0JBQW9CO0lBUGpDO1FBUVcsWUFBTyxHQUFxQyxFQUFFLENBQUM7UUFDL0MsU0FBSSxHQUFVLEVBQUUsQ0FBQztRQUVqQixrQkFBYSxHQUFZLElBQUksQ0FBQztRQUM5QixnQkFBVyxHQUFZLEtBQUssQ0FBQztRQUM3QixZQUFPLEdBQVksS0FBSyxDQUFDO1FBQ3pCLGlCQUFZLEdBQVcsQ0FBQyxDQUFDO1FBQ3pCLFlBQU8sR0FBVyxF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AgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cIml0ZW1bY29sdW1uLmtleV0/Lmxlbmd0aCA+IDNcIiBjbGFzcz1cImV4dHJhLWltYWdlc1wiPlxyXG4gICAgICAgICAgICAgICAgICAre3sgaXRlbVtjb2x1bW4ua2V5XS5sZW5ndGggLSAzIH19XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJjb2x1bW4ua2V5ID09PSAnZXhwaXJlX2F0J1wiPlxyXG4gICAgICAgICAgICAgIHt7IGl0ZW1bY29sdW1uLmtleV0gfCBkYXRlIDogXCJkZC9NTS95eXl5XCIgfX1cclxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJjb2x1bW4ua2V5ID09PSAnYWN0aW9ucydcIj5cclxuICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwiY2VsbEFjdGlvbnNUZW1wbGF0ZTsgY29udGV4dDogeyAkaW1wbGljaXQ6IGl0ZW0gfVwiPjwvbmctY29udGFpbmVyPlxyXG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxyXG4gICAgICAgICAgICAgICpuZ0lmPVwiXHJcbiAgICAgICAgICAgICAgICBjb2x1bW4ua2V5ICE9PSAnZXhwaXJlX2F0JyAmJlxyXG4gICAgICAgICAgICAgICAgY29sdW1uLmtleSAhPT0gJ3BvaW50X29mX3NhbGVfaWQnICYmXHJcbiAgICAgICAgICAgICAgICBjb2x1bW4ua2V5ICE9PSAnbmFtZScgJiZcclxuICAgICAgICAgICAgICAgIGNvbHVtbi5rZXkgIT09ICdwb3NfaWQnICYmXHJcbiAgICAgICAgICAgICAgICBjb2x1bW4ua2V5ICE9PSAnaW1hZ2VzJyAmJlxyXG4gICAgICAgICAgICAgICAgY29sdW1uLmtleSAhPT0gJ2FjdGlvbnMnXHJcbiAgICAgICAgICAgICAgXCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgIHt7IGl0ZW1bY29sdW1uLmtleV0gfX1cclxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXJcclxuICAgICAgICAgICAgICAqbmdJZj1cImNvbHVtbi5rZXkgPT09ICdwb2ludF9vZl9zYWxlX2lkJyB8fCBjb2x1bW4ua2V5ID09PSAncG9zX2lkJ1wiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICB7eyBnZXRQb3NOYW1lKGl0ZW1bY29sdW1uLmtleV0pIH19XHJcbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgPC90ZD5cclxuICAgICAgPC90cj5cclxuICAgIDwvdGJvZHk+XHJcbiAgPC90YWJsZT5cclxuXHJcbiAgPG5nLWNvbnRhaW5lciAqbmdJZj1cInNob3dQYWdpbmF0b3JcIj5cclxuICAgIDx0YWJsZSBjbGFzcz1cInRhYmxlLXBhZ2luYXRpb25cIj5cclxuICAgICAgPHRib2R5PlxyXG4gICAgICAgIDx0cj5cclxuICAgICAgICAgIDxkaXYgY2xhc3M9XCJwYWdpbmF0aW9uXCI+XHJcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJidXR0b24tc2VjdGlvblwiPlxyXG4gICAgICAgICAgICAgIDxidXR0b24gKGNsaWNrKT1cImNoYW5nZVBhZ2UoLTEpXCIgW2Rpc2FibGVkXT1cImN1cnJlbnRQYWdlID09PSAxXCI+XHJcbiAgICAgICAgICAgICAgICBQcmV2aW91c1xyXG4gICAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICAgIChjbGljayk9XCJjaGFuZ2VQYWdlKDEpXCJcclxuICAgICAgICAgICAgICAgIFtkaXNhYmxlZF09XCJjdXJyZW50UGFnZSA9PT0gdG90YWxQYWdlcygpXCJcclxuICAgICAgICAgICAgICAgIFtkaXNhYmxlZF09XCJsb2FkaW5nXCJcclxuICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICBOZXh0XHJcbiAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY3VycmVudC1zZWN0aW9uXCI+XHJcbiAgICAgICAgICAgICAgPHNwYW4+UGFnZSB7eyBjdXJyZW50UGFnZSB9fSBvZiB7eyB0b3RhbFBhZ2VzKCkgfX08L3NwYW4+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgPC90cj5cclxuICAgICAgPC90Ym9keT5cclxuICAgIDwvdGFibGU+XHJcbiAgPC9uZy1jb250YWluZXI+XHJcbjwvbmctY29udGFpbmVyPlxyXG4iXX0=
|
|
137
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3YtbWFpbi10YWJsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXZpby9zcmMvbGliL2NvbXBvbmVudHMva3YtbWFpbi10YWJsZS9rdi1tYWluLXRhYmxlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdmlvL3NyYy9saWIvY29tcG9uZW50cy9rdi1tYWluLXRhYmxlL2t2LW1haW4tdGFibGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTy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0aGlzLmRhdGFcclxuICAgICAgLmZpbHRlcigoaXRlbSkgPT5cclxuICAgICAgICB0aGlzLmNvbHVtbnMuc29tZSgoY29sKSA9PlxyXG4gICAgICAgICAgaXRlbVtjb2wua2V5XVxyXG4gICAgICAgICAgICA/LnRvU3RyaW5nKClcclxuICAgICAgICAgICAgLnRvTG93ZXJDYXNlKClcclxuICAgICAgICAgICAgLmluY2x1ZGVzKHRoaXMuc2VhcmNoVGV4dC50b0xvd2VyQ2FzZSgpKVxyXG4gICAgICAgIClcclxuICAgICAgKVxyXG4gICAgICAuc2xpY2UoXHJcbiAgICAgICAgKHRoaXMuY3VycmVudFBhZ2UgLSAxKSAqIHRoaXMucGFnZVNpemUsXHJcbiAgICAgICAgdGhpcy5jdXJyZW50UGFnZSAqIHRoaXMucGFnZVNpemVcclxuICAgICAgKTtcclxuICB9XHJcblxyXG4gIGdldCBmaWx0ZXJlZERhdGEoKSB7XHJcbiAgICByZXR1cm4gdGhpcy5sYXp5TG9hZGluZyA/IHRoaXMuZGF0YSA6IHRoaXMuZ2V0RmlsdGVyZWREYXRhKCk7XHJcbiAgfVxyXG5cclxuICB0b3RhbFBhZ2VzKCk6IG51bWJlciB7XHJcbiAgICBpZiAodGhpcy5sYXp5TG9hZGluZykge1xyXG4gICAgICByZXR1cm4gTWF0aC5jZWlsKHRoaXMudG90YWxSZWNvcmRzIC8gdGhpcy5wYWdlU2l6ZSk7XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIE1hdGguY2VpbChcclxuICAgICAgdGhpcy5kYXRhLmZpbHRlcigoaXRlbSkgPT5cclxuICAgICAgICB0aGlzLmNvbHVtbnMuc29tZSgoY29sKSA9PlxyXG4gICAgICAgICAgaXRlbVtjb2wua2V5XVxyXG4gICAgICAgICAgICA/LnRvU3RyaW5nKClcclxuICAgICAgICAgICAgLnRvTG93ZXJDYXNlKClcclxuICAgICAgICAgICAgLmluY2x1ZGVzKHRoaXMuc2VhcmNoVGV4dC50b0xvd2VyQ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hdGUgOiBcImRkL01NL3l5eXlcIiB9fVxyXG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImNvbHVtbi5rZXkgPT09ICdhY3Rpb25zJ1wiPlxyXG4gICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjZWxsQWN0aW9uc1RlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogaXRlbSB9XCI+PC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgICAgICAgICA8bmctY29udGFpbmVyXHJcbiAgICAgICAgICAgICAgKm5nSWY9XCJcclxuICAgICAgICAgICAgICAgIGNvbHVtbi5rZXkgIT09ICdleHBpcmVfYXQnICYmXHJcbiAgICAgICAgICAgICAgICBjb2x1bW4ua2V5ICE9PSAncG9pbnRfb2Zfc2FsZV9pZCcgJiZcclxuICAgICAgICAgICAgICAgIGNvbHVtbi5rZXkgIT09ICduYW1lJyAmJlxyXG4gICAgICAgICAgICAgICAgY29sdW1uLmtleSAhPT0gJ3Bvc19pZCcgJiZcclxuICAgICAgICAgICAgICAgIGNvbHVtbi5rZXkgIT09ICdpbWFnZXMnICYmXHJcbiAgICAgICAgICAgICAgICBjb2x1bW4ua2V5ICE9PSAnYWN0aW9ucydcclxuICAgICAgICAgICAgICBcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAge3sgaXRlbVtjb2x1bW4ua2V5XSB9fVxyXG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxyXG4gICAgICAgICAgICAgICpuZ0lmPVwiY29sdW1uLmtleSA9PT0gJ3BvaW50X29mX3NhbGVfaWQnIHx8IGNvbHVtbi5rZXkgPT09ICdwb3NfaWQnXCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgIHt7IGdldFBvc05hbWUoaXRlbVtjb2x1bW4ua2V5XSkgfX1cclxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8L3RkPlxyXG4gICAgICA8L3RyPlxyXG4gICAgPC90Ym9keT5cclxuICA8L3RhYmxlPlxyXG5cclxuICA8bmctY29udGFpbmVyICpuZ0lmPVwic2hvd1BhZ2luYXRvclwiPlxyXG4gICAgPHRhYmxlIGNsYXNzPVwidGFibGUtcGFnaW5hdGlvblwiPlxyXG4gICAgICA8dGJvZHk+XHJcbiAgICAgICAgPHRyPlxyXG4gICAgICAgICAgPGRpdiBjbGFzcz1cInBhZ2luYXRpb25cIj5cclxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImJ1dHRvbi1zZWN0aW9uXCI+XHJcbiAgICAgICAgICAgICAgPGJ1dHRvbiAoY2xpY2spPVwiY2hhbmdlUGFnZSgtMSlcIiBbZGlzYWJsZWRdPVwiY3VycmVudFBhZ2UgPT09IDFcIj5cclxuICAgICAgICAgICAgICAgIFByZXZpb3VzXHJcbiAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cImNoYW5nZVBhZ2UoMSlcIlxyXG4gICAgICAgICAgICAgICAgW2Rpc2FibGVkXT1cImN1cnJlbnRQYWdlID09PSB0b3RhbFBhZ2VzKCkgJiYgIWhhc01vcmVJdGVtc1wiXHJcbiAgICAgICAgICAgICAgICBbZGlzYWJsZWRdPVwibG9hZGluZ1wiXHJcbiAgICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgTmV4dFxyXG4gICAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImN1cnJlbnQtc2VjdGlvblwiPlxyXG4gICAgICAgICAgICAgIDxzcGFuPlBhZ2Uge3sgY3VycmVudFBhZ2UgfX0gb2Yge3sgdG90YWxQYWdlcygpIH19PC9zcGFuPlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwvdHI+XHJcbiAgICAgIDwvdGJvZHk+XHJcbiAgICA8L3RhYmxlPlxyXG4gIDwvbmctY29udGFpbmVyPlxyXG48L25nLWNvbnRhaW5lcj5cclxuIl19
|
package/fesm2022/kivio.mjs
CHANGED
|
@@ -311,6 +311,7 @@ class KvMainTableComponent {
|
|
|
311
311
|
this.loading = false;
|
|
312
312
|
this.totalRecords = 0;
|
|
313
313
|
this.message = '';
|
|
314
|
+
this.hasMoreItems = true;
|
|
314
315
|
this.onNameClicked = new EventEmitter();
|
|
315
316
|
this.onPageChange = new EventEmitter();
|
|
316
317
|
this.searchText = '';
|
|
@@ -399,11 +400,11 @@ class KvMainTableComponent {
|
|
|
399
400
|
this.onNameClicked.emit(data);
|
|
400
401
|
}
|
|
401
402
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvMainTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
402
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: KvMainTableComponent, isStandalone: true, selector: "lib-kv-main-table", inputs: { columns: "columns", data: "data", extraData: "extraData", showPaginator: "showPaginator", lazyLoading: "lazyLoading", loading: "loading", totalRecords: "totalRecords", message: "message" }, outputs: { onNameClicked: "onNameClicked", onPageChange: "onPageChange" }, queries: [{ propertyName: "cellActionsTemplate", first: true, predicate: ["cellActions"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages()\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: KvLoadingComponent, selector: "lib-kv-loading", inputs: ["message", "isLoading"] }] }); }
|
|
403
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: KvMainTableComponent, isStandalone: true, selector: "lib-kv-main-table", inputs: { columns: "columns", data: "data", extraData: "extraData", showPaginator: "showPaginator", lazyLoading: "lazyLoading", loading: "loading", totalRecords: "totalRecords", message: "message", hasMoreItems: "hasMoreItems" }, outputs: { onNameClicked: "onNameClicked", onPageChange: "onPageChange" }, queries: [{ propertyName: "cellActionsTemplate", first: true, predicate: ["cellActions"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages() && !hasMoreItems\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: KvLoadingComponent, selector: "lib-kv-loading", inputs: ["message", "isLoading"] }] }); }
|
|
403
404
|
}
|
|
404
405
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvMainTableComponent, decorators: [{
|
|
405
406
|
type: Component,
|
|
406
|
-
args: [{ selector: 'lib-kv-main-table', standalone: true, imports: [CommonModule, FormsModule, KvLoadingComponent], template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages()\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"] }]
|
|
407
|
+
args: [{ selector: 'lib-kv-main-table', standalone: true, imports: [CommonModule, FormsModule, KvLoadingComponent], template: "<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages() && !hasMoreItems\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n", styles: ["input,textarea{padding:10px;width:-webkit-fill-available;border:1px solid #ccc;border-radius:5px;font-size:16px;font-family:Roboto,sans-serif!important;color:#101828;background-color:#fff}input::placeholder,textarea::placeholder{color:#475467}input:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 8px #007bff80;background-color:#fff}input.error,textarea.error{border-color:#fcd9d9;box-shadow:0 0 8px #fcd9d980}.input-group{margin-bottom:15px}.input-group label{font-size:14px;margin-bottom:5px;color:#555}.input-group .error-message{color:red}.input-cost{display:flex;gap:10px}table{width:100%;border-collapse:collapse;text-align:left;border:1px solid #ccc;border-radius:4px}thead{background-color:#fff;color:#101828}tbody{color:#475467}th,td{padding:10px;font-size:14px;border-bottom:1px solid #ccc}tbody tr:hover{background-color:#fff}.state.Active{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Active a{color:#036338!important}.state.Waiting{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Waiting a{color:#b53701!important}.state.Created{background-color:#f8e0d1;color:#b53701!important;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Created a{color:#b53701!important}.state.Offered{background-color:#12b76a26;color:#036338!important;font-weight:700;width:min-content;padding:8px;border-radius:4px;white-space:nowrap}.state.Offered a{color:#036338!important}.state.Closed{background-color:#fcd9d9;color:#581d1d;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Closed a{color:#581d1d!important}.state.Approved{background-color:#d1e7dd;color:#0f5132;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Approved a{color:#0f5132!important}.state.Rejected{background-color:#f8d7da;color:#842029;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Rejected a{color:#842029!important}.state.Pending{background-color:#f8e0d1;color:#b53701;font-weight:700;width:min-content;padding:8px;border-radius:4px}.state.Pending a{color:#b53701!important}.pagination{display:flex;justify-content:space-between;margin-top:10px}.pagination button{padding:5px 10px;border:1px solid #ccc;background-color:#fff;cursor:pointer}.pagination button:disabled{color:#555;cursor:not-allowed}.search-container{margin-bottom:10px;display:flex;justify-content:flex-end;width:100%}.search-container .search-section input{width:min-content!important}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px;color:#101828}.pagination button{padding:6px 12px;border:none;color:#101828;cursor:pointer;border-radius:4px;margin-right:6px}.pagination button:disabled{background-color:#ededed;cursor:not-allowed}.table-pagination{border-top:0!important}.a-link{text-decoration:none}.a-link:hover{cursor:pointer;text-decoration:underline}.a-link2{text-decoration:underline}.a-link2:hover{cursor:pointer;text-decoration:underline}.column-direction{display:flex;flex-direction:row;gap:1rem;padding:2rem;width:100%}.main-text{font-size:30px;color:#101828}.secondary-text{font-size:16px;color:#475467}.sidebar-title{font-size:24px;color:#101828;font-weight:700;margin-bottom:20px}.description-section{margin-top:30px}.description-section .description-title{color:#101828}.description-section .description-body{color:#475467}.list-container{width:100%;border:1px solid #ccc;border-radius:12px;margin-top:22px}.list-container .list-section{margin:1rem;color:#101828}.list-container .list-section .list{margin-top:12px;color:#475467}.required{color:#b90000;font-weight:700}.service-info{align-items:center;display:flex}.service-info img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin:5px}table{width:100%;table-layout:fixed}th{text-align:flex-start;padding:10px}.image-container{display:flex;align-items:center}.image-container img{width:40px;height:40px;border:2px solid #ccc;border-radius:50%;margin-left:-10px}.extra-images{width:40px;height:40px;border-radius:50%;border:2px solid #ccc;margin-left:-10px;background-color:#0052cc;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center}.loading-indicator{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#0000000d;margin:10px 0;border-radius:4px}.search-section{display:flex;gap:10px;align-items:center}.search-section button{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.search-section button:hover{background-color:#e0e0e0}\n"] }]
|
|
407
408
|
}], propDecorators: { columns: [{
|
|
408
409
|
type: Input
|
|
409
410
|
}], data: [{
|
|
@@ -420,6 +421,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
420
421
|
type: Input
|
|
421
422
|
}], message: [{
|
|
422
423
|
type: Input
|
|
424
|
+
}], hasMoreItems: [{
|
|
425
|
+
type: Input
|
|
423
426
|
}], cellActionsTemplate: [{
|
|
424
427
|
type: ContentChild,
|
|
425
428
|
args: ['cellActions']
|
package/fesm2022/kivio.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kivio.mjs","sources":["../../../projects/kivio/src/lib/enums/action-type.enum.ts","../../../projects/kivio/src/lib/components/kv-popup/kv-popup.component.ts","../../../projects/kivio/src/lib/components/kv-popup/kv-popup.component.html","../../../projects/kivio/src/lib/components/date-picker/date-picker.component.ts","../../../projects/kivio/src/lib/components/date-picker/date-picker.component.html","../../../projects/kivio/src/lib/components/kv-resource-not-found/kv-resource-not-found.component.ts","../../../projects/kivio/src/lib/components/kv-resource-not-found/kv-resource-not-found.component.html","../../../projects/kivio/src/lib/components/kv-step/kv-step.component.ts","../../../projects/kivio/src/lib/components/kv-step/kv-step.component.html","../../../projects/kivio/src/lib/components/kv-stepper/kv-stepper.component.ts","../../../projects/kivio/src/lib/components/kv-stepper/kv-stepper.component.html","../../../projects/kivio/src/lib/components/kv-accordion/kv-accordion.component.ts","../../../projects/kivio/src/lib/components/kv-accordion/kv-accordion.component.html","../../../projects/kivio/src/lib/components/kv-alert/kv-alert.component.ts","../../../projects/kivio/src/lib/components/kv-alert/kv-alert.component.html","../../../projects/kivio/src/lib/components/kv-side-menu/kv-side-menu.component.ts","../../../projects/kivio/src/lib/components/kv-side-menu/kv-side-menu.component.html","../../../projects/kivio/src/lib/components/kv-loading/kv-loading.component.ts","../../../projects/kivio/src/lib/components/kv-loading/kv-loading.component.html","../../../projects/kivio/src/lib/components/kv-main-table/kv-main-table.component.ts","../../../projects/kivio/src/lib/components/kv-main-table/kv-main-table.component.html","../../../projects/kivio/src/lib/factories/form-factory.service.ts","../../../projects/kivio/src/lib/services/navigation.service.ts","../../../projects/kivio/src/lib/services/notification.service.ts","../../../projects/kivio/src/lib/services/session.service.ts","../../../projects/kivio/src/lib/injection-tokens/auth-config.ts","../../../projects/kivio/src/lib/services/auth-interceptor.service.ts","../../../projects/kivio/src/lib/services/auth.service.ts","../../../projects/kivio/src/lib/helpers/auth.helper.ts","../../../projects/kivio/src/lib/validators/password-missmatch.validator.ts","../../../projects/kivio/src/public-api.ts","../../../projects/kivio/src/kivio.ts"],"sourcesContent":["export enum ActionType {\r\n Info = \"info\",\r\n Warn = \"warn\",\r\n Error = \"error\",\r\n Advertise = \"advertise\"\r\n}","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { ActionType } from '../../enums/action-type.enum';\r\n\r\n@Component({\r\n selector: 'lib-kv-popup',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-popup.component.html',\r\n styleUrl: './kv-popup.component.scss'\r\n})\r\nexport class KvPopupComponent{\r\n\r\n @Input() title: string = '';\r\n @Input() description!: string;\r\n @Input() isCustomTemplate!: boolean;\r\n @Input() actionType!: ActionType;\r\n @Output() onAccept: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() onClose: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n public actionTypeEnum = ActionType;\r\n\r\n public onAcceptSubmit(): void {\r\n this.onAccept.emit();\r\n }\r\n\r\n public onCloseSubmit(): void {\r\n this.onClose.emit();\r\n }\r\n}","<div class=\"popup-backdrop\">\r\n <div class=\"popup-container\">\r\n <div class=\"content-container\">\r\n <div *ngIf=\"!isCustomTemplate\">\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Warn\">\r\n <i class=\"icon material-icons\">error</i>\r\n </ng-container>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Advertise\">\r\n <i class=\"icon material-icons\">warning</i>\r\n </ng-container>\r\n </div>\r\n <div>\r\n <div class=\"title\">{{ title }}</div>\r\n <div *ngIf=\"description\">\r\n <p class=\"description\">{{ description }}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"isCustomTemplate; else defaultContent\">\r\n <ng-content></ng-content>\r\n </ng-container>\r\n <ng-template #defaultContent>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Info\">\r\n <div class=\"button-container\">\r\n <button class=\"button--cancel\" (click)=\"onCloseSubmit()\">Cancel</button>\r\n <button class=\"button--primary\" (click)=\"onAcceptSubmit()\">Aceptar</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Warn\">\r\n <div class=\"button-container\">\r\n <button class=\"button--cancel\" (click)=\"onCloseSubmit()\">Cancel</button>\r\n <button class=\"button--warn\" (click)=\"onAcceptSubmit()\">Delete</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Advertise\">\r\n <div class=\"button-container\">\r\n <button class=\"button--cancel\" (click)=\"onCloseSubmit()\">Cancel</button>\r\n <button class=\"button--warn\" (click)=\"onAcceptSubmit()\">Continuar</button>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Output, Input } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'lib-kv-date-picker',\r\n standalone: true,\r\n imports: [FormsModule, CommonModule],\r\n templateUrl: './date-picker.component.html',\r\n styleUrl: './date-picker.component.scss'\r\n})\r\nexport class DatePickerComponent {\r\n @Input() initialDate?: Date;\r\n @Input() showDetails = false;\r\n @Output() dateSelected = new EventEmitter<Date>();\r\n\r\n selectedDate: Date = new Date();\r\n minDate: string = '';\r\n\r\n ngOnInit() {\r\n this.minDate = this.formatDateForInput(new Date());\r\n\r\n if (this.initialDate) {\r\n this.selectedDate = this.initialDate >= new Date(this.minDate) ? this.initialDate : new Date();\r\n }\r\n }\r\n\r\n formatDateForInput(date: Date): string {\r\n const year = date.getFullYear();\r\n const month = String(date.getMonth() + 1).padStart(2, '0');\r\n const day = String(date.getDate()).padStart(2, '0');\r\n return `${year}-${month}-${day}`;\r\n }\r\n\r\n onDateChange(event: Event) {\r\n const input = event.target as HTMLInputElement;\r\n const newDate = new Date(input.value + \"T00:00:00\");\r\n\r\n if (newDate >= new Date(this.minDate)) {\r\n this.selectedDate = newDate;\r\n this.dateSelected.emit(this.selectedDate);\r\n } else {\r\n input.value = this.minDate;\r\n }\r\n }\r\n}\r\n","<div class=\"date-picker\">\r\n <input \r\n type=\"date\" \r\n [value]=\"formatDateForInput(selectedDate)\" \r\n [min]=\"minDate\" \r\n (input)=\"onDateChange($event)\" \r\n class=\"form-control\">\r\n \r\n <div *ngIf=\"showDetails\" class=\"date-details\">\r\n <p>{{ selectedDate | date:'fullDate' }}</p>\r\n </div>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-resource-not-found',\r\n standalone: true,\r\n imports: [],\r\n templateUrl: './kv-resource-not-found.component.html',\r\n styleUrl: './kv-resource-not-found.component.scss'\r\n})\r\nexport class ResourceNotFoundComponent {\r\n @Input() messageTitle: string = 'Resource not found';\r\n @Input() messageDescription: string = 'The requested resource could not be found.';\r\n}\r\n","<div class=\"empty-state\">\r\n <div class=\"empty-state-content\">\r\n <i class=\"material-icons empty-icon\">rule</i>\r\n <h3>{{ messageTitle }}</h3>\r\n <p>{{ messageDescription }}</p>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, ContentChild, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-step',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-step.component.html',\r\n styleUrl: './kv-step.component.scss'\r\n})\r\nexport class KvStepComponent {\r\n @Input() title!: string;\r\n @Input() description!: string;\r\n @ContentChild(TemplateRef) content!: TemplateRef<any>;\r\n}\r\n","<p>kv-step works!</p>\r\n","import { CommonModule } from '@angular/common';\r\nimport { AfterContentInit, Component, ContentChildren, EventEmitter, Input, Output, QueryList, signal, TemplateRef } from '@angular/core';\r\nimport { KvStepComponent } from '../kv-step/kv-step.component';\r\n\r\n@Component({\r\n selector: 'lib-kv-stepper',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-stepper.component.html',\r\n styleUrl: './kv-stepper.component.scss'\r\n})\r\n\r\nexport class KvStepperComponent implements AfterContentInit {\r\n currentStep = signal(0);\r\n \r\n @ContentChildren(KvStepComponent) steps!: QueryList<KvStepComponent>;\r\n\r\n @Input() public isSimpleStepper: boolean = false;\r\n @Input() public isVertical: boolean = false;\r\n @Input() public isAssociated: boolean = false;\r\n @Output() submit = new EventEmitter<void>();\r\n @Output() closeEvent = new EventEmitter<void>();\r\n @Output() isLastStep = new EventEmitter<boolean>();\r\n\r\n ngAfterContentInit() {\r\n if (this.steps.length === 0) {\r\n console.error('No se encontraron pasos en el stepper');\r\n }\r\n }\r\n\r\n next() {\r\n this.isLastStep.emit(true);\r\n if (this.currentStep() < this.steps.length - 1) {\r\n this.currentStep.update(val => val + 1);\r\n }\r\n }\r\n\r\n previous() {\r\n if (this.currentStep() > 0) {\r\n this.currentStep.update(val => val - 1);\r\n this.isLastStep.emit(true);\r\n }\r\n }\r\n\r\n close() {\r\n this.closeEvent.emit();\r\n }\r\n}","<ng-container *ngIf=\"!isSimpleStepper\">\r\n <div class=\"stepper-container\">\r\n <div class=\"step-header\">\r\n <div *ngFor=\"let step of steps; let i = index\" class=\"step-item\" [class.active]=\"currentStep() === i\"\r\n [class.completed]=\"i < currentStep()\">\r\n <div class=\"step-number\">{{ i + 1 }}</div>\r\n <div class=\"step-title\">{{ step.title }}</div>\r\n </div>\r\n </div>\r\n \r\n <div class=\"step-content\">\r\n <ng-container *ngIf=\"steps.get(currentStep())?.content\">\r\n <ng-container *ngTemplateOutlet=\"steps.get(currentStep())!.content\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"step-actions\">\r\n <button class=\"button--cancel\" (click)=\"close()\">Cancel</button>\r\n <button class=\"button--primary-min\" *ngIf=\"currentStep() > 0\" (click)=\"previous()\">Anterior</button>\r\n <button class=\"button--primary-min\" *ngIf=\"currentStep() < steps.length - 1\" (click)=\"next()\" [disabled]=\"!isAssociated\">Next</button>\r\n <button class=\"button--primary-min\" *ngIf=\"currentStep() === steps.length - 1\" (click)=\"submit.emit()\">Create</button>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"isSimpleStepper && !isVertical\">\r\n <div class=\"stepper-container-simple\">\r\n <div class=\"step-header\">\r\n <div *ngFor=\"let step of steps; let i = index\" class=\"step-item\" [class.active]=\"currentStep() === i\"\r\n [class.completed]=\"i < currentStep()\">\r\n <div class=\"step-number\">{{ i + 1 }}</div>\r\n <div class=\"step-title\">{{ step.title }}</div>\r\n </div>\r\n </div>\r\n \r\n <div class=\"step-content-simple\">\r\n <ng-container *ngIf=\"steps.get(currentStep())?.content\">\r\n <ng-container *ngTemplateOutlet=\"steps.get(currentStep())!.content\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"isSimpleStepper && isVertical\">\r\n <div class=\"stepper-container-vertical\">\r\n <div class=\"vertical-steps\">\r\n <div *ngFor=\"let step of steps; let i = index\" class=\"vertical-step-item\">\r\n <div class=\"step-indicator-container\">\r\n <div class=\"vertical-step-indicator\" \r\n [class.active]=\"currentStep() === i\"\r\n [class.completed]=\"i < currentStep()\">\r\n <div class=\"step-number\">{{ i + 1 }}</div>\r\n </div>\r\n <div class=\"vertical-line\" *ngIf=\"i !== steps.length - 1\"></div>\r\n </div>\r\n <div class=\"title-container\">\r\n <div class=\"step-title\">{{ step.title }}</div>\r\n <div class=\"step-description\">{{ step.description }}</div>\r\n </div>\r\n <div class=\"vertical-step-content\" \r\n [class.active]=\"currentStep() === i\"\r\n (click)=\"currentStep.set(i)\">\r\n <div class=\"step-content-vertical\" *ngIf=\"currentStep() === i\">\r\n <ng-container *ngTemplateOutlet=\"step.content\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-accordion',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-accordion.component.html',\r\n styleUrl: './kv-accordion.component.scss'\r\n})\r\nexport class KvAccordionComponent {\r\n @Input() isOpen = false;\r\n @Input() title = '';\r\n @Input() shouldShowImage = true;\r\n @Output() opened = new EventEmitter<void>();\r\n\r\n toggle() {\r\n this.isOpen = !this.isOpen;\r\n if(this.isOpen) {\r\n this.opened.emit();\r\n }\r\n }\r\n}\r\n","<div class=\"accordion\">\r\n <div class=\"accordion-header\" (click)=\"toggle()\">\r\n <div class=\"accordion-title\">\r\n <ng-container *ngIf=\"shouldShowImage\">\r\n <img width=\"40px\" [src]=\"'https://i.imgur.com/InRaVrL.jpg'\" alt=\"User Avatar\" class=\"avatar\">\r\n </ng-container>\r\n <span>{{ title }}</span>\r\n </div>\r\n <span class=\"accordion-icon\" [class.open]=\"isOpen\">▼</span>\r\n </div>\r\n <div class=\"accordion-content\" [class.open]=\"isOpen\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-alert',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-alert.component.html',\r\n styleUrl: './kv-alert.component.scss'\r\n})\r\nexport class KvAlertComponent implements OnInit{\r\n\r\n @Input() message: string = '';\r\n @Input() description: string = '';\r\n @Input() type = 'warning';\r\n @Input() timeoutDuration: number = 5000;\r\n @Output() close = new EventEmitter<void>();\r\n\r\n ngOnInit() {\r\n if (this.timeoutDuration > 0) {\r\n setTimeout(() => this.onClose(), this.timeoutDuration);\r\n }\r\n }\r\n\r\n onClose() {\r\n this.close.emit();\r\n }\r\n\r\n}\r\n","<div class=\"alert-container\">\r\n <div class=\"icon\" [ngClass]=\"type\">\r\n <ng-container *ngIf=\"type === 'success'\">\r\n <i class=\"icon material-icons\">check</i>\r\n </ng-container>\r\n <ng-container *ngIf=\"type !== 'success'\">\r\n <i class=\"icon material-icons\">close</i>\r\n </ng-container>\r\n </div>\r\n <div class=\"message\">\r\n <strong>{{ message }}</strong>\r\n <p>{{ description }}</p>\r\n </div>\r\n <button class=\"close-btn\" (click)=\"onClose()\">✖</button>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-side-menu',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-side-menu.component.html',\r\n styleUrl: './kv-side-menu.component.scss'\r\n})\r\nexport class KvSideMenuComponent {\r\n @Input() breadcrumb: string = '';\r\n @Output() onEdit: EventEmitter<boolean> = new EventEmitter<boolean>();\r\n @Output() onClose: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() onDelete: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() onSaveChanges: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n public isEditMode: boolean = false;\r\n\r\n public handleEditButtonClicked(): void {\r\n this.isEditMode = !this.isEditMode;\r\n this.onEdit.emit(this.isEditMode);\r\n }\r\n\r\n public handleCloseButtonClicked(): void {\r\n this.onClose.emit();\r\n }\r\n\r\n public handleDeleteButtonClicked(): void {\r\n this.onDelete.emit();\r\n }\r\n\r\n public handleSaveChangesButtonClicked(): void {\r\n this.onSaveChanges.emit();\r\n }\r\n}\r\n","<div class=\"right-menu\">\r\n <div class=\"header\">\r\n <ng-container *ngIf=\"!isEditMode\">\r\n <span>{{ breadcrumb }}</span>\r\n <div>\r\n <button class=\"delete-button section-button\" (click)=\"handleDeleteButtonClicked()\"><i class=\"icon material-icons\">delete</i></button>\r\n <button class=\"edit-button section-button\" (click)=\"handleEditButtonClicked()\"><i class=\"icon material-icons\">edit</i></button>\r\n <button class=\"close-button section-button\" (click)=\"handleCloseButtonClicked()\"><i class=\"icon material-icons\">close</i></button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"isEditMode\">\r\n <button class=\"edit-button section-button\" (click)=\"handleEditButtonClicked()\"><i class=\"icon material-icons\">arrow_back</i></button>\r\n <div>\r\n <button class=\"button--primary-min\" (click)=\"handleSaveChangesButtonClicked()\">Save changes</button>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>","import { CommonModule } from \"@angular/common\";\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n@Component({\r\n selector: 'lib-kv-loading',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-loading.component.html',\r\n styleUrl: './kv-loading.component.scss'\r\n })\r\n export class KvLoadingComponent{\r\n \r\n @Input() message: string = '';\r\n @Input() isLoading: boolean = false;\r\n \r\n }","<div class=\"loading-component\">\r\n <div class=\"loading-container\" *ngIf=\"isLoading\">\r\n <div class=\"loading-spinner\"></div>\r\n <p>{{message}}</p>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport {\r\n Component,\r\n EventEmitter,\r\n Input,\r\n Output,\r\n OnInit,\r\n OnChanges,\r\n SimpleChanges,\r\n ContentChild,\r\n} from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { KvLoadingComponent } from '../kv-loading/kv-loading.component';\r\n\r\n@Component({\r\n selector: 'lib-kv-main-table',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule, KvLoadingComponent],\r\n templateUrl: './kv-main-table.component.html',\r\n styleUrl: './kv-main-table.component.scss',\r\n})\r\nexport class KvMainTableComponent implements OnInit, OnChanges {\r\n @Input() columns: { key: string; label: string }[] = [];\r\n @Input() data: any[] = [];\r\n @Input() extraData!: any[];\r\n @Input() showPaginator: boolean = true;\r\n @Input() lazyLoading: boolean = false;\r\n @Input() loading: boolean = false;\r\n @Input() totalRecords: number = 0;\r\n @Input() message: string = '';\r\n\r\n @ContentChild('cellActions') cellActionsTemplate: any;\r\n @Output() onNameClicked: EventEmitter<any> = new EventEmitter<any>();\r\n @Output() onPageChange: EventEmitter<{\r\n page: number;\r\n pageSize: number;\r\n searchText: string;\r\n }> = new EventEmitter<{\r\n page: number;\r\n pageSize: number;\r\n searchText: string;\r\n }>();\r\n\r\n searchText: string = '';\r\n currentPage: number = 1;\r\n pageSize: number = 5;\r\n filteredItems: any[] = [];\r\n\r\n ngOnInit() {\r\n this.updateFilteredData();\r\n if (this.lazyLoading) {\r\n this.loadLazyData();\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['data'] || changes['searchText']) {\r\n this.updateFilteredData();\r\n }\r\n }\r\n\r\n private updateFilteredData() {\r\n if (!this.lazyLoading) {\r\n this.filteredItems = this.getFilteredData();\r\n }\r\n }\r\n\r\n private getFilteredData() {\r\n return this.data\r\n .filter((item) =>\r\n this.columns.some((col) =>\r\n item[col.key]\r\n ?.toString()\r\n .toLowerCase()\r\n .includes(this.searchText.toLowerCase())\r\n )\r\n )\r\n .slice(\r\n (this.currentPage - 1) * this.pageSize,\r\n this.currentPage * this.pageSize\r\n );\r\n }\r\n\r\n get filteredData() {\r\n return this.lazyLoading ? this.data : this.getFilteredData();\r\n }\r\n\r\n totalPages(): number {\r\n if (this.lazyLoading) {\r\n return Math.ceil(this.totalRecords / this.pageSize);\r\n }\r\n\r\n return Math.ceil(\r\n this.data.filter((item) =>\r\n this.columns.some((col) =>\r\n item[col.key]\r\n ?.toString()\r\n .toLowerCase()\r\n .includes(this.searchText.toLowerCase())\r\n )\r\n ).length / this.pageSize\r\n );\r\n }\r\n\r\n changePage(direction: number) {\r\n if (this.lazyLoading) {\r\n const newPage = this.currentPage + direction;\r\n if (newPage >= 1) {\r\n this.currentPage = newPage;\r\n this.loadLazyData();\r\n } else {\r\n if (this.currentPage !== 1) {\r\n this.currentPage = 1;\r\n this.loadLazyData();\r\n }\r\n }\r\n } else {\r\n const newPage = this.currentPage + direction;\r\n if (newPage > 0 && newPage <= this.totalPages()) {\r\n this.currentPage = newPage;\r\n this.updateFilteredData();\r\n }\r\n }\r\n }\r\n\r\n onSearch() {\r\n this.currentPage = 1;\r\n if (this.lazyLoading) {\r\n this.loadLazyData();\r\n } else {\r\n this.updateFilteredData();\r\n }\r\n }\r\n\r\n loadLazyData() {\r\n this.onPageChange.emit({\r\n page: this.currentPage,\r\n pageSize: this.pageSize,\r\n searchText: this.searchText,\r\n });\r\n }\r\n\r\n public getPosName(posId: string): string {\r\n return (\r\n this.extraData?.find((pos) => pos.point_of_sale_id === posId)?.name || ''\r\n );\r\n }\r\n\r\n public emitData(data: any) {\r\n this.onNameClicked.emit(data);\r\n }\r\n}\r\n","<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages()\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n","import { Injectable } from '@angular/core';\r\nimport { FormArray, FormBuilder, FormGroup, ValidatorFn, Validators } from '@angular/forms';\r\nimport { FormFieldConfig } from '../interfaces/form-field.config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FormFactoryService {\r\n constructor(private fb: FormBuilder) { }\r\n\r\n createForm(config: FormFieldConfig[], customValidator?: ValidatorFn): FormGroup {\r\n const formGroup = this.fb.group({}, { validators: customValidator });\r\n config.forEach((field) => {\r\n const control = this.fb.control(\r\n field.defaultValue || '',\r\n field.validators || []\r\n );\r\n formGroup.addControl(field.name, control);\r\n });\r\n return formGroup;\r\n }\r\n\r\n createFormArray(config: FormFieldConfig[], customValidator?: ValidatorFn): FormArray {\r\n const formArray = this.fb.array([], { validators: customValidator });\r\n config.forEach((field) => {\r\n const control = this.fb.control(\r\n field.defaultValue || '',\r\n field.validators || []\r\n );\r\n formArray.push(control);\r\n });\r\n return formArray;\r\n }\r\n\r\n createFormArrayOfGroups(config: FormFieldConfig[], initialCount: number, customValidator?: ValidatorFn): FormArray {\r\n const formArray = this.fb.array<FormGroup>([], { validators: customValidator });\r\n\r\n for (let i = 0; i < initialCount; i++) {\r\n const group = this.createForm(config);\r\n formArray.push(group);\r\n }\r\n\r\n return formArray;\r\n }\r\n\r\n createLoginForm(): FormGroup {\r\n return this.fb.group({\r\n email: ['', [Validators.required, Validators.email]],\r\n password: ['', [Validators.required, Validators.minLength(8)]],\r\n });\r\n }\r\n}","import { Injectable } from \"@angular/core\";\r\nimport { Router } from \"@angular/router\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NavigationService {\r\n constructor(private router: Router) { }\r\n\r\n navigateToLogin(): Promise<boolean> {\r\n return this.router.navigate(['/login']);\r\n }\r\n\r\n navigateToOffers(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/offers']);\r\n }\r\n\r\n navigateToOffersDetails(id: string): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/offers-details'], {\r\n queryParams: { offerId: id }\r\n });\r\n }\r\n\r\n navigateToResetPassword(): Promise<boolean> {\r\n return this.router.navigate(['/login/reset-password']);\r\n }\r\n\r\n navigateToPointOfSaleDetails(id: string): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/point-of-sale-details'], {\r\n queryParams: { pointOfSaleId: id }\r\n });\r\n }\r\n\r\n navigateToPointOfSale(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/point-of-sale']);\r\n }\r\n\r\n navigateToItems(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/items']);\r\n }\r\n\r\n navigateToItemsDetails(id: string, posId: string): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/items-details'], {\r\n queryParams: { itemId: id, pointOfSaleId: posId}\r\n });\r\n }\r\n\r\n navigateToRules(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/rules']);\r\n }\r\n\r\n navigateToRulesManager(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/rules-manager']);\r\n }\r\n\r\n navigateToOfferFlow(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/offer-flow']);\r\n }\r\n\r\n navigateToPayment(price: number): Promise<boolean> {\r\n return this.router.navigate(['/auctions/payment']);\r\n }\r\n\r\n navigateToBillingRecords(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/billing-record']);\r\n }\r\n\r\n navigateToIntegrations(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/integrations']);\r\n }\r\n\r\n navigateToOrders(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/orders']);\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { ActionType } from '../enums/action-type.enum';\r\n\r\ninterface PopupState {\r\n show: boolean;\r\n title: string;\r\n actionType?: ActionType;\r\n description: string;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NotificationService {\r\n private popupState = new BehaviorSubject<PopupState>({\r\n show: false,\r\n title: '',\r\n description: '',\r\n actionType: ActionType.Info\r\n });\r\n\r\n popupState$ = this.popupState.asObservable();\r\n\r\n showNotification(title: string, description: string, actionType?: ActionType): void {\r\n this.popupState.next({\r\n show: true,\r\n title,\r\n description,\r\n actionType: actionType || ActionType.Info\r\n });\r\n }\r\n\r\n hideNotification(): void {\r\n this.popupState.next({\r\n show: false,\r\n title: '',\r\n description: '',\r\n actionType: ActionType.Info\r\n });\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable, ReplaySubject, map } from 'rxjs';\r\n\r\ninterface SessionData {\r\n pointsOfSale?: any[];\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class SessionService {\r\n private sessionSubject = new ReplaySubject<SessionData | null>(1);\r\n\r\n constructor() {\r\n this.sessionSubject.next(null);\r\n }\r\n\r\n setSessionData(data: SessionData): void {\r\n this.sessionSubject.next(data);\r\n }\r\n\r\n getCurrentSessionData(): SessionData | null {\r\n let value: SessionData | null = null;\r\n this.sessionSubject.subscribe(v => value = v).unsubscribe();\r\n return value;\r\n }\r\n}","import { InjectionToken } from '@angular/core';\r\n\r\nexport const API_KEY = new InjectionToken<string>('API_KEY');","import { inject, Injectable } from '@angular/core';\r\nimport {\r\n HttpRequest,\r\n HttpHandler,\r\n HttpEvent,\r\n HttpInterceptor\r\n} from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { CookieService } from \"ngx-cookie-service\";\r\nimport { API_KEY } from '../injection-tokens/auth-config';\r\n\r\n@Injectable()\r\nexport class AuthInterceptor implements HttpInterceptor {\r\n intercept(\r\n request: HttpRequest<unknown>,\r\n next: HttpHandler\r\n ): Observable<HttpEvent<unknown>> {\r\n const cookieService = inject(CookieService);\r\n const apiKey = inject(API_KEY);\r\n const token = cookieService.get('jwt');\r\n const modifiedReq = request.clone({\r\n headers: request.headers\r\n .set('Access_token', token)\r\n .set('Api_Key', apiKey) \r\n });\r\n return next.handle(modifiedReq);\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { CookieService } from \"ngx-cookie-service\";\r\nimport { BehaviorSubject, firstValueFrom } from \"rxjs\";\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\n\r\nexport interface Session {\r\n access_token: string;\r\n refresh_token: string;\r\n expires_in?: number;\r\n user?: any;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthService {\r\n\r\n private sessionSubject = new BehaviorSubject<Session | null>(null);\r\n protected refreshTimeout: any;\r\n private apiUrl = 'http://localhost:9090/v1';\r\n private apiKey = '';\r\n\r\n constructor(\r\n private readonly cookieService: CookieService,\r\n private readonly http: HttpClient\r\n ) {\r\n this.getSession().catch(() => null);\r\n }\r\n\r\n private getHeaders(): HttpHeaders {\r\n return new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Api_Key': this.apiKey\r\n });\r\n }\r\n\r\n public configureApi(apiUrl: string, apiKey?: string): void {\r\n if (apiUrl) this.apiUrl = apiUrl;\r\n if (apiKey) this.apiKey = apiKey;\r\n }\r\n\r\n public getCurrentSession(): Session | null {\r\n return this.sessionSubject.getValue();\r\n }\r\n\r\n public signIn(email: string, password: string): Promise<any> {\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-auth`, { email, password }, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n if (response) {\r\n this.sessionSubject.next(response);\r\n localStorage.setItem('refresh_token', response.refresh_token || '');\r\n if (this.isValidLoginResponse(response)) {\r\n this.handleSuccessfulRefresh(response);\r\n this.startRefreshTimer(response);\r\n }\r\n }\r\n return response;\r\n });\r\n }\r\n\r\n public signOut(): Promise<any> {\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-signout`, {}, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n this.sessionSubject.next(null);\r\n this.cookieService.deleteAll();\r\n localStorage.removeItem('refresh_token');\r\n return response;\r\n }).catch(error => {\r\n console.error('Error signing out:', error);\r\n this.sessionSubject.next(null);\r\n this.cookieService.deleteAll();\r\n localStorage.removeItem('refresh_token');\r\n throw error;\r\n });\r\n }\r\n\r\n public sendResetPasswordEmail(email: string): Promise<any> {\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-reset-password`, { email }, { headers: this.getHeaders() })\r\n );\r\n }\r\n\r\n public setNewPassword(newPassword: string): Promise<any> {\r\n const accessToken = this.cookieService.get('access_token');\r\n const headers = this.getHeaders().set('Authorization', `Bearer ${accessToken}`);\r\n\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-set-password`, { password: newPassword }, { headers })\r\n );\r\n }\r\n\r\n public getSession(): Promise<any> {\r\n const refreshToken = localStorage.getItem('refresh_token');\r\n if (!refreshToken) {\r\n return Promise.resolve({ data: { session: null } });\r\n }\r\n \r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-session`, { refresh_token: refreshToken }, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n if (response?.data?.session) {\r\n this.sessionSubject.next(response.data.session);\r\n if (this.isValidLoginResponse(response.data)) {\r\n this.handleSuccessfulRefresh(response.data);\r\n this.startRefreshTimer(response.data.session);\r\n }\r\n }\r\n return response;\r\n });\r\n }\r\n\r\n public refreshSession(): Promise<any> {\r\n const refreshToken = localStorage.getItem('refresh_token');\r\n if (!refreshToken) {\r\n return Promise.resolve({ data: { session: null } });\r\n }\r\n \r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-refresh`, { refresh_token: refreshToken }, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n if (response?.data) {\r\n this.sessionSubject.next(response.data);\r\n localStorage.setItem('refresh_token', response.data.refresh_token || '');\r\n if (this.isValidLoginResponse(response.data)) {\r\n this.handleSuccessfulRefresh(response.data);\r\n this.startRefreshTimer(response.data);\r\n }\r\n }\r\n return response;\r\n });\r\n }\r\n\r\n public startRefreshTimer(session: Session) {\r\n const expiresIn = session.expires_in || 3200;\r\n this.refreshTimeout = setTimeout(() => {\r\n this.refreshSession().catch(console.error);\r\n }, (expiresIn - 60) * 1000);\r\n }\r\n\r\n public getSessionObservable() {\r\n return this.sessionSubject.asObservable();\r\n }\r\n\r\n private isValidLoginResponse(data: any): boolean {\r\n return !!(\r\n data?.access_token &&\r\n data?.user?.app_metadata?.role\r\n );\r\n }\r\n\r\n private handleSuccessfulRefresh(data: any): void {\r\n const token = data!.access_token;\r\n this.cookieService.delete('jwt');\r\n this.cookieService.set('jwt', token);\r\n }\r\n}\r\n","export class AuthHelper {\r\n\r\n public static getUserId(): string | null {\r\n return localStorage.getItem(\"userId\") || null;\r\n }\r\n\r\n public static getUserRole(): string | null {\r\n return localStorage.getItem(\"userRole\") || null;\r\n }\r\n}","import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\r\n\r\nexport const passwordMatchValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {\r\n const password = control.get('password');\r\n const confirmPassword = control.get('confirmPassword');\r\n\r\n if (!password || !confirmPassword) {\r\n return null;\r\n }\r\n\r\n if (password.pristine || confirmPassword.pristine) {\r\n return null;\r\n }\r\n\r\n return password.value === confirmPassword.value ? null : { passwordMismatch: true };\r\n};","/*\r\n * Public API Surface of kivio\r\n */\r\n\r\n//Components\r\nexport * from './lib/components/kv-popup/kv-popup.component';\r\nexport * from './lib/components/date-picker/date-picker.component';\r\nexport * from './lib/components/kv-resource-not-found/kv-resource-not-found.component'\r\nexport * from './lib/components/kv-stepper/kv-stepper.component';\r\nexport * from './lib/components/kv-step/kv-step.component';\r\nexport * from './lib/components/kv-accordion/kv-accordion.component';\r\nexport * from './lib/components/kv-alert/kv-alert.component';\r\nexport * from './lib/components/kv-side-menu/kv-side-menu.component'\r\nexport * from './lib/components/kv-main-table/kv-main-table.component'\r\nexport * from './lib/components/kv-loading/kv-loading.component';\r\n\r\n//Services\r\nexport * from './lib/factories/form-factory.service';\r\nexport * from './lib/services/navigation.service';\r\nexport * from './lib/services/notification.service';\r\nexport * from './lib/services/session.service';\r\nexport * from './lib/services/auth-interceptor.service';\r\nexport * from './lib/services/auth.service';\r\n\r\n//Configs\r\nexport * from './lib/interfaces/form-field.config';\r\n\r\n//Helpers\r\nexport * from './lib/helpers/auth.helper'\r\n\r\n//Validators\r\nexport * from './lib/validators/password-missmatch.validator'\r\n\r\n//Enums\r\nexport * from './lib/enums/action-type.enum'\r\n\r\n// Injection Tokens\r\nexport * from './lib/injection-tokens/auth-config';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,UAAU,EAAA;AAClB,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,UAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,UAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAC3B,CAAC,EALW,UAAU,KAAV,UAAU,GAKrB,EAAA,CAAA,CAAA;;MCMY,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;QASW,IAAK,CAAA,KAAA,GAAW,EAAE;AAIjB,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ;AACvD,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ;QAEzD,IAAc,CAAA,cAAA,GAAG,UAAU;AASnC;IAPQ,cAAc,GAAA;AACnB,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;;IAGf,aAAa,GAAA;AAClB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;;+GAhBV,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EA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AAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,cAFV,MAAM,EAAA,CAAA,CAAA;;4FAEP,WAAW,EAAA,UAAA,EAAA,CAAA;kBAHvB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCdY,UAAU,CAAA;AAEZ,IAAA,OAAO,SAAS,GAAA;QACnB,OAAO,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI;;AAG1C,IAAA,OAAO,WAAW,GAAA;QACrB,OAAO,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,IAAI;;AAEtD;;ACPY,MAAA,sBAAsB,GAAgB,CAAC,OAAwB,KAA6B;IACrG,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;IACxC,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAEtD,IAAA,IAAI,CAAC,QAAQ,IAAI,CAAC,eAAe,EAAE;AAC/B,QAAA,OAAO,IAAI;AACd;AAED,IAAA,IAAI,QAAQ,CAAC,QAAQ,IAAI,eAAe,CAAC,QAAQ,EAAE;AAC/C,QAAA,OAAO,IAAI;AACd;AAED,IAAA,OAAO,QAAQ,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE;AACvF;;ACfA;;AAEG;AAEH;;ACJA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"kivio.mjs","sources":["../../../projects/kivio/src/lib/enums/action-type.enum.ts","../../../projects/kivio/src/lib/components/kv-popup/kv-popup.component.ts","../../../projects/kivio/src/lib/components/kv-popup/kv-popup.component.html","../../../projects/kivio/src/lib/components/date-picker/date-picker.component.ts","../../../projects/kivio/src/lib/components/date-picker/date-picker.component.html","../../../projects/kivio/src/lib/components/kv-resource-not-found/kv-resource-not-found.component.ts","../../../projects/kivio/src/lib/components/kv-resource-not-found/kv-resource-not-found.component.html","../../../projects/kivio/src/lib/components/kv-step/kv-step.component.ts","../../../projects/kivio/src/lib/components/kv-step/kv-step.component.html","../../../projects/kivio/src/lib/components/kv-stepper/kv-stepper.component.ts","../../../projects/kivio/src/lib/components/kv-stepper/kv-stepper.component.html","../../../projects/kivio/src/lib/components/kv-accordion/kv-accordion.component.ts","../../../projects/kivio/src/lib/components/kv-accordion/kv-accordion.component.html","../../../projects/kivio/src/lib/components/kv-alert/kv-alert.component.ts","../../../projects/kivio/src/lib/components/kv-alert/kv-alert.component.html","../../../projects/kivio/src/lib/components/kv-side-menu/kv-side-menu.component.ts","../../../projects/kivio/src/lib/components/kv-side-menu/kv-side-menu.component.html","../../../projects/kivio/src/lib/components/kv-loading/kv-loading.component.ts","../../../projects/kivio/src/lib/components/kv-loading/kv-loading.component.html","../../../projects/kivio/src/lib/components/kv-main-table/kv-main-table.component.ts","../../../projects/kivio/src/lib/components/kv-main-table/kv-main-table.component.html","../../../projects/kivio/src/lib/factories/form-factory.service.ts","../../../projects/kivio/src/lib/services/navigation.service.ts","../../../projects/kivio/src/lib/services/notification.service.ts","../../../projects/kivio/src/lib/services/session.service.ts","../../../projects/kivio/src/lib/injection-tokens/auth-config.ts","../../../projects/kivio/src/lib/services/auth-interceptor.service.ts","../../../projects/kivio/src/lib/services/auth.service.ts","../../../projects/kivio/src/lib/helpers/auth.helper.ts","../../../projects/kivio/src/lib/validators/password-missmatch.validator.ts","../../../projects/kivio/src/public-api.ts","../../../projects/kivio/src/kivio.ts"],"sourcesContent":["export enum ActionType {\r\n Info = \"info\",\r\n Warn = \"warn\",\r\n Error = \"error\",\r\n Advertise = \"advertise\"\r\n}","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { ActionType } from '../../enums/action-type.enum';\r\n\r\n@Component({\r\n selector: 'lib-kv-popup',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-popup.component.html',\r\n styleUrl: './kv-popup.component.scss'\r\n})\r\nexport class KvPopupComponent{\r\n\r\n @Input() title: string = '';\r\n @Input() description!: string;\r\n @Input() isCustomTemplate!: boolean;\r\n @Input() actionType!: ActionType;\r\n @Output() onAccept: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() onClose: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n public actionTypeEnum = ActionType;\r\n\r\n public onAcceptSubmit(): void {\r\n this.onAccept.emit();\r\n }\r\n\r\n public onCloseSubmit(): void {\r\n this.onClose.emit();\r\n }\r\n}","<div class=\"popup-backdrop\">\r\n <div class=\"popup-container\">\r\n <div class=\"content-container\">\r\n <div *ngIf=\"!isCustomTemplate\">\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Warn\">\r\n <i class=\"icon material-icons\">error</i>\r\n </ng-container>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Advertise\">\r\n <i class=\"icon material-icons\">warning</i>\r\n </ng-container>\r\n </div>\r\n <div>\r\n <div class=\"title\">{{ title }}</div>\r\n <div *ngIf=\"description\">\r\n <p class=\"description\">{{ description }}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"isCustomTemplate; else defaultContent\">\r\n <ng-content></ng-content>\r\n </ng-container>\r\n <ng-template #defaultContent>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Info\">\r\n <div class=\"button-container\">\r\n <button class=\"button--cancel\" (click)=\"onCloseSubmit()\">Cancel</button>\r\n <button class=\"button--primary\" (click)=\"onAcceptSubmit()\">Aceptar</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Warn\">\r\n <div class=\"button-container\">\r\n <button class=\"button--cancel\" (click)=\"onCloseSubmit()\">Cancel</button>\r\n <button class=\"button--warn\" (click)=\"onAcceptSubmit()\">Delete</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"actionType === actionTypeEnum.Advertise\">\r\n <div class=\"button-container\">\r\n <button class=\"button--cancel\" (click)=\"onCloseSubmit()\">Cancel</button>\r\n <button class=\"button--warn\" (click)=\"onAcceptSubmit()\">Continuar</button>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Output, Input } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'lib-kv-date-picker',\r\n standalone: true,\r\n imports: [FormsModule, CommonModule],\r\n templateUrl: './date-picker.component.html',\r\n styleUrl: './date-picker.component.scss'\r\n})\r\nexport class DatePickerComponent {\r\n @Input() initialDate?: Date;\r\n @Input() showDetails = false;\r\n @Output() dateSelected = new EventEmitter<Date>();\r\n\r\n selectedDate: Date = new Date();\r\n minDate: string = '';\r\n\r\n ngOnInit() {\r\n this.minDate = this.formatDateForInput(new Date());\r\n\r\n if (this.initialDate) {\r\n this.selectedDate = this.initialDate >= new Date(this.minDate) ? this.initialDate : new Date();\r\n }\r\n }\r\n\r\n formatDateForInput(date: Date): string {\r\n const year = date.getFullYear();\r\n const month = String(date.getMonth() + 1).padStart(2, '0');\r\n const day = String(date.getDate()).padStart(2, '0');\r\n return `${year}-${month}-${day}`;\r\n }\r\n\r\n onDateChange(event: Event) {\r\n const input = event.target as HTMLInputElement;\r\n const newDate = new Date(input.value + \"T00:00:00\");\r\n\r\n if (newDate >= new Date(this.minDate)) {\r\n this.selectedDate = newDate;\r\n this.dateSelected.emit(this.selectedDate);\r\n } else {\r\n input.value = this.minDate;\r\n }\r\n }\r\n}\r\n","<div class=\"date-picker\">\r\n <input \r\n type=\"date\" \r\n [value]=\"formatDateForInput(selectedDate)\" \r\n [min]=\"minDate\" \r\n (input)=\"onDateChange($event)\" \r\n class=\"form-control\">\r\n \r\n <div *ngIf=\"showDetails\" class=\"date-details\">\r\n <p>{{ selectedDate | date:'fullDate' }}</p>\r\n </div>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-resource-not-found',\r\n standalone: true,\r\n imports: [],\r\n templateUrl: './kv-resource-not-found.component.html',\r\n styleUrl: './kv-resource-not-found.component.scss'\r\n})\r\nexport class ResourceNotFoundComponent {\r\n @Input() messageTitle: string = 'Resource not found';\r\n @Input() messageDescription: string = 'The requested resource could not be found.';\r\n}\r\n","<div class=\"empty-state\">\r\n <div class=\"empty-state-content\">\r\n <i class=\"material-icons empty-icon\">rule</i>\r\n <h3>{{ messageTitle }}</h3>\r\n <p>{{ messageDescription }}</p>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, ContentChild, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-step',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-step.component.html',\r\n styleUrl: './kv-step.component.scss'\r\n})\r\nexport class KvStepComponent {\r\n @Input() title!: string;\r\n @Input() description!: string;\r\n @ContentChild(TemplateRef) content!: TemplateRef<any>;\r\n}\r\n","<p>kv-step works!</p>\r\n","import { CommonModule } from '@angular/common';\r\nimport { AfterContentInit, Component, ContentChildren, EventEmitter, Input, Output, QueryList, signal, TemplateRef } from '@angular/core';\r\nimport { KvStepComponent } from '../kv-step/kv-step.component';\r\n\r\n@Component({\r\n selector: 'lib-kv-stepper',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-stepper.component.html',\r\n styleUrl: './kv-stepper.component.scss'\r\n})\r\n\r\nexport class KvStepperComponent implements AfterContentInit {\r\n currentStep = signal(0);\r\n \r\n @ContentChildren(KvStepComponent) steps!: QueryList<KvStepComponent>;\r\n\r\n @Input() public isSimpleStepper: boolean = false;\r\n @Input() public isVertical: boolean = false;\r\n @Input() public isAssociated: boolean = false;\r\n @Output() submit = new EventEmitter<void>();\r\n @Output() closeEvent = new EventEmitter<void>();\r\n @Output() isLastStep = new EventEmitter<boolean>();\r\n\r\n ngAfterContentInit() {\r\n if (this.steps.length === 0) {\r\n console.error('No se encontraron pasos en el stepper');\r\n }\r\n }\r\n\r\n next() {\r\n this.isLastStep.emit(true);\r\n if (this.currentStep() < this.steps.length - 1) {\r\n this.currentStep.update(val => val + 1);\r\n }\r\n }\r\n\r\n previous() {\r\n if (this.currentStep() > 0) {\r\n this.currentStep.update(val => val - 1);\r\n this.isLastStep.emit(true);\r\n }\r\n }\r\n\r\n close() {\r\n this.closeEvent.emit();\r\n }\r\n}","<ng-container *ngIf=\"!isSimpleStepper\">\r\n <div class=\"stepper-container\">\r\n <div class=\"step-header\">\r\n <div *ngFor=\"let step of steps; let i = index\" class=\"step-item\" [class.active]=\"currentStep() === i\"\r\n [class.completed]=\"i < currentStep()\">\r\n <div class=\"step-number\">{{ i + 1 }}</div>\r\n <div class=\"step-title\">{{ step.title }}</div>\r\n </div>\r\n </div>\r\n \r\n <div class=\"step-content\">\r\n <ng-container *ngIf=\"steps.get(currentStep())?.content\">\r\n <ng-container *ngTemplateOutlet=\"steps.get(currentStep())!.content\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"step-actions\">\r\n <button class=\"button--cancel\" (click)=\"close()\">Cancel</button>\r\n <button class=\"button--primary-min\" *ngIf=\"currentStep() > 0\" (click)=\"previous()\">Anterior</button>\r\n <button class=\"button--primary-min\" *ngIf=\"currentStep() < steps.length - 1\" (click)=\"next()\" [disabled]=\"!isAssociated\">Next</button>\r\n <button class=\"button--primary-min\" *ngIf=\"currentStep() === steps.length - 1\" (click)=\"submit.emit()\">Create</button>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"isSimpleStepper && !isVertical\">\r\n <div class=\"stepper-container-simple\">\r\n <div class=\"step-header\">\r\n <div *ngFor=\"let step of steps; let i = index\" class=\"step-item\" [class.active]=\"currentStep() === i\"\r\n [class.completed]=\"i < currentStep()\">\r\n <div class=\"step-number\">{{ i + 1 }}</div>\r\n <div class=\"step-title\">{{ step.title }}</div>\r\n </div>\r\n </div>\r\n \r\n <div class=\"step-content-simple\">\r\n <ng-container *ngIf=\"steps.get(currentStep())?.content\">\r\n <ng-container *ngTemplateOutlet=\"steps.get(currentStep())!.content\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"isSimpleStepper && isVertical\">\r\n <div class=\"stepper-container-vertical\">\r\n <div class=\"vertical-steps\">\r\n <div *ngFor=\"let step of steps; let i = index\" class=\"vertical-step-item\">\r\n <div class=\"step-indicator-container\">\r\n <div class=\"vertical-step-indicator\" \r\n [class.active]=\"currentStep() === i\"\r\n [class.completed]=\"i < currentStep()\">\r\n <div class=\"step-number\">{{ i + 1 }}</div>\r\n </div>\r\n <div class=\"vertical-line\" *ngIf=\"i !== steps.length - 1\"></div>\r\n </div>\r\n <div class=\"title-container\">\r\n <div class=\"step-title\">{{ step.title }}</div>\r\n <div class=\"step-description\">{{ step.description }}</div>\r\n </div>\r\n <div class=\"vertical-step-content\" \r\n [class.active]=\"currentStep() === i\"\r\n (click)=\"currentStep.set(i)\">\r\n <div class=\"step-content-vertical\" *ngIf=\"currentStep() === i\">\r\n <ng-container *ngTemplateOutlet=\"step.content\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-accordion',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-accordion.component.html',\r\n styleUrl: './kv-accordion.component.scss'\r\n})\r\nexport class KvAccordionComponent {\r\n @Input() isOpen = false;\r\n @Input() title = '';\r\n @Input() shouldShowImage = true;\r\n @Output() opened = new EventEmitter<void>();\r\n\r\n toggle() {\r\n this.isOpen = !this.isOpen;\r\n if(this.isOpen) {\r\n this.opened.emit();\r\n }\r\n }\r\n}\r\n","<div class=\"accordion\">\r\n <div class=\"accordion-header\" (click)=\"toggle()\">\r\n <div class=\"accordion-title\">\r\n <ng-container *ngIf=\"shouldShowImage\">\r\n <img width=\"40px\" [src]=\"'https://i.imgur.com/InRaVrL.jpg'\" alt=\"User Avatar\" class=\"avatar\">\r\n </ng-container>\r\n <span>{{ title }}</span>\r\n </div>\r\n <span class=\"accordion-icon\" [class.open]=\"isOpen\">▼</span>\r\n </div>\r\n <div class=\"accordion-content\" [class.open]=\"isOpen\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-alert',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-alert.component.html',\r\n styleUrl: './kv-alert.component.scss'\r\n})\r\nexport class KvAlertComponent implements OnInit{\r\n\r\n @Input() message: string = '';\r\n @Input() description: string = '';\r\n @Input() type = 'warning';\r\n @Input() timeoutDuration: number = 5000;\r\n @Output() close = new EventEmitter<void>();\r\n\r\n ngOnInit() {\r\n if (this.timeoutDuration > 0) {\r\n setTimeout(() => this.onClose(), this.timeoutDuration);\r\n }\r\n }\r\n\r\n onClose() {\r\n this.close.emit();\r\n }\r\n\r\n}\r\n","<div class=\"alert-container\">\r\n <div class=\"icon\" [ngClass]=\"type\">\r\n <ng-container *ngIf=\"type === 'success'\">\r\n <i class=\"icon material-icons\">check</i>\r\n </ng-container>\r\n <ng-container *ngIf=\"type !== 'success'\">\r\n <i class=\"icon material-icons\">close</i>\r\n </ng-container>\r\n </div>\r\n <div class=\"message\">\r\n <strong>{{ message }}</strong>\r\n <p>{{ description }}</p>\r\n </div>\r\n <button class=\"close-btn\" (click)=\"onClose()\">✖</button>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-side-menu',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-side-menu.component.html',\r\n styleUrl: './kv-side-menu.component.scss'\r\n})\r\nexport class KvSideMenuComponent {\r\n @Input() breadcrumb: string = '';\r\n @Output() onEdit: EventEmitter<boolean> = new EventEmitter<boolean>();\r\n @Output() onClose: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() onDelete: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() onSaveChanges: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n public isEditMode: boolean = false;\r\n\r\n public handleEditButtonClicked(): void {\r\n this.isEditMode = !this.isEditMode;\r\n this.onEdit.emit(this.isEditMode);\r\n }\r\n\r\n public handleCloseButtonClicked(): void {\r\n this.onClose.emit();\r\n }\r\n\r\n public handleDeleteButtonClicked(): void {\r\n this.onDelete.emit();\r\n }\r\n\r\n public handleSaveChangesButtonClicked(): void {\r\n this.onSaveChanges.emit();\r\n }\r\n}\r\n","<div class=\"right-menu\">\r\n <div class=\"header\">\r\n <ng-container *ngIf=\"!isEditMode\">\r\n <span>{{ breadcrumb }}</span>\r\n <div>\r\n <button class=\"delete-button section-button\" (click)=\"handleDeleteButtonClicked()\"><i class=\"icon material-icons\">delete</i></button>\r\n <button class=\"edit-button section-button\" (click)=\"handleEditButtonClicked()\"><i class=\"icon material-icons\">edit</i></button>\r\n <button class=\"close-button section-button\" (click)=\"handleCloseButtonClicked()\"><i class=\"icon material-icons\">close</i></button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"isEditMode\">\r\n <button class=\"edit-button section-button\" (click)=\"handleEditButtonClicked()\"><i class=\"icon material-icons\">arrow_back</i></button>\r\n <div>\r\n <button class=\"button--primary-min\" (click)=\"handleSaveChangesButtonClicked()\">Save changes</button>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>","import { CommonModule } from \"@angular/common\";\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n@Component({\r\n selector: 'lib-kv-loading',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-loading.component.html',\r\n styleUrl: './kv-loading.component.scss'\r\n })\r\n export class KvLoadingComponent{\r\n \r\n @Input() message: string = '';\r\n @Input() isLoading: boolean = false;\r\n \r\n }","<div class=\"loading-component\">\r\n <div class=\"loading-container\" *ngIf=\"isLoading\">\r\n <div class=\"loading-spinner\"></div>\r\n <p>{{message}}</p>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport {\r\n Component,\r\n EventEmitter,\r\n Input,\r\n Output,\r\n OnInit,\r\n OnChanges,\r\n SimpleChanges,\r\n ContentChild,\r\n} from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { KvLoadingComponent } from '../kv-loading/kv-loading.component';\r\n\r\n@Component({\r\n selector: 'lib-kv-main-table',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule, KvLoadingComponent],\r\n templateUrl: './kv-main-table.component.html',\r\n styleUrl: './kv-main-table.component.scss',\r\n})\r\nexport class KvMainTableComponent implements OnInit, OnChanges {\r\n @Input() columns: { key: string; label: string }[] = [];\r\n @Input() data: any[] = [];\r\n @Input() extraData!: any[];\r\n @Input() showPaginator: boolean = true;\r\n @Input() lazyLoading: boolean = false;\r\n @Input() loading: boolean = false;\r\n @Input() totalRecords: number = 0;\r\n @Input() message: string = '';\r\n @Input() hasMoreItems: boolean = true;\r\n\r\n @ContentChild('cellActions') cellActionsTemplate: any;\r\n @Output() onNameClicked: EventEmitter<any> = new EventEmitter<any>();\r\n @Output() onPageChange: EventEmitter<{\r\n page: number;\r\n pageSize: number;\r\n searchText: string;\r\n }> = new EventEmitter<{\r\n page: number;\r\n pageSize: number;\r\n searchText: string;\r\n }>();\r\n\r\n searchText: string = '';\r\n currentPage: number = 1;\r\n pageSize: number = 5;\r\n filteredItems: any[] = [];\r\n\r\n ngOnInit() {\r\n this.updateFilteredData();\r\n if (this.lazyLoading) {\r\n this.loadLazyData();\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['data'] || changes['searchText']) {\r\n this.updateFilteredData();\r\n }\r\n }\r\n\r\n private updateFilteredData() {\r\n if (!this.lazyLoading) {\r\n this.filteredItems = this.getFilteredData();\r\n }\r\n }\r\n\r\n private getFilteredData() {\r\n return this.data\r\n .filter((item) =>\r\n this.columns.some((col) =>\r\n item[col.key]\r\n ?.toString()\r\n .toLowerCase()\r\n .includes(this.searchText.toLowerCase())\r\n )\r\n )\r\n .slice(\r\n (this.currentPage - 1) * this.pageSize,\r\n this.currentPage * this.pageSize\r\n );\r\n }\r\n\r\n get filteredData() {\r\n return this.lazyLoading ? this.data : this.getFilteredData();\r\n }\r\n\r\n totalPages(): number {\r\n if (this.lazyLoading) {\r\n return Math.ceil(this.totalRecords / this.pageSize);\r\n }\r\n\r\n return Math.ceil(\r\n this.data.filter((item) =>\r\n this.columns.some((col) =>\r\n item[col.key]\r\n ?.toString()\r\n .toLowerCase()\r\n .includes(this.searchText.toLowerCase())\r\n )\r\n ).length / this.pageSize\r\n );\r\n }\r\n\r\n changePage(direction: number) {\r\n if (this.lazyLoading) {\r\n const newPage = this.currentPage + direction;\r\n if (newPage >= 1) {\r\n this.currentPage = newPage;\r\n this.loadLazyData();\r\n } else {\r\n if (this.currentPage !== 1) {\r\n this.currentPage = 1;\r\n this.loadLazyData();\r\n }\r\n }\r\n } else {\r\n const newPage = this.currentPage + direction;\r\n if (newPage > 0 && newPage <= this.totalPages()) {\r\n this.currentPage = newPage;\r\n this.updateFilteredData();\r\n }\r\n }\r\n }\r\n\r\n onSearch() {\r\n this.currentPage = 1;\r\n if (this.lazyLoading) {\r\n this.loadLazyData();\r\n } else {\r\n this.updateFilteredData();\r\n }\r\n }\r\n\r\n loadLazyData() {\r\n this.onPageChange.emit({\r\n page: this.currentPage,\r\n pageSize: this.pageSize,\r\n searchText: this.searchText,\r\n });\r\n }\r\n\r\n public getPosName(posId: string): string {\r\n return (\r\n this.extraData?.find((pos) => pos.point_of_sale_id === posId)?.name || ''\r\n );\r\n }\r\n\r\n public emitData(data: any) {\r\n this.onNameClicked.emit(data);\r\n }\r\n}\r\n","<lib-kv-loading [message]=\"message\" [isLoading]=\"loading\" > </lib-kv-loading>\r\n<ng-container *ngIf=\"!loading\">\r\n <div class=\"search-container\">\r\n <div class=\"search-section\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"Buscar...\"\r\n [(ngModel)]=\"searchText\"\r\n (keyup.enter)=\"onSearch()\"\r\n />\r\n <button *ngIf=\"lazyLoading\" (click)=\"onSearch()\">Buscar</button>\r\n </div>\r\n </div>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of columns\">{{ column.label }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredData\">\r\n <td *ngFor=\"let column of columns\">\r\n <div class=\"state\" [ngClass]=\"item[column.key]\">\r\n <ng-container *ngIf=\"column.label === 'Services'\">\r\n <div class=\"service-info\" (click)=\"emitData(item)\">\r\n <img [src]=\"item.url || 'https://i.imgur.com/InRaVrL.jpg'\" alt=\"Imagen\" class=\"service-image\" />\r\n <a class=\"a-link\">{{ item.name }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'name' && column.label !== 'Services'\">\r\n <a class=\"a-link\" (click)=\"emitData(item)\">{{\r\n item[column.key]\r\n }}</a>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'images'\">\r\n <div class=\"image-container\">\r\n <div *ngFor=\"let image of item[column.key]?.slice(0, 3)\">\r\n <img [src]=\"image\" alt=\"Imagen\" />\r\n </div>\r\n <div *ngIf=\"item[column.key]?.length > 3\" class=\"extra-images\">\r\n +{{ item[column.key].length - 3 }}\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'expire_at'\">\r\n {{ item[column.key] | date : \"dd/MM/yyyy\" }}\r\n </ng-container>\r\n <ng-container *ngIf=\"column.key === 'actions'\">\r\n <ng-container *ngTemplateOutlet=\"cellActionsTemplate; context: { $implicit: item }\"></ng-container>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n column.key !== 'expire_at' &&\r\n column.key !== 'point_of_sale_id' &&\r\n column.key !== 'name' &&\r\n column.key !== 'pos_id' &&\r\n column.key !== 'images' &&\r\n column.key !== 'actions'\r\n \"\r\n >\r\n {{ item[column.key] }}\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"column.key === 'point_of_sale_id' || column.key === 'pos_id'\"\r\n >\r\n {{ getPosName(item[column.key]) }}\r\n </ng-container>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <ng-container *ngIf=\"showPaginator\">\r\n <table class=\"table-pagination\">\r\n <tbody>\r\n <tr>\r\n <div class=\"pagination\">\r\n <div class=\"button-section\">\r\n <button (click)=\"changePage(-1)\" [disabled]=\"currentPage === 1\">\r\n Previous\r\n </button>\r\n <button\r\n (click)=\"changePage(1)\"\r\n [disabled]=\"currentPage === totalPages() && !hasMoreItems\"\r\n [disabled]=\"loading\"\r\n >\r\n Next\r\n </button>\r\n </div>\r\n <div class=\"current-section\">\r\n <span>Page {{ currentPage }} of {{ totalPages() }}</span>\r\n </div>\r\n </div>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n</ng-container>\r\n","import { Injectable } from '@angular/core';\r\nimport { FormArray, FormBuilder, FormGroup, ValidatorFn, Validators } from '@angular/forms';\r\nimport { FormFieldConfig } from '../interfaces/form-field.config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FormFactoryService {\r\n constructor(private fb: FormBuilder) { }\r\n\r\n createForm(config: FormFieldConfig[], customValidator?: ValidatorFn): FormGroup {\r\n const formGroup = this.fb.group({}, { validators: customValidator });\r\n config.forEach((field) => {\r\n const control = this.fb.control(\r\n field.defaultValue || '',\r\n field.validators || []\r\n );\r\n formGroup.addControl(field.name, control);\r\n });\r\n return formGroup;\r\n }\r\n\r\n createFormArray(config: FormFieldConfig[], customValidator?: ValidatorFn): FormArray {\r\n const formArray = this.fb.array([], { validators: customValidator });\r\n config.forEach((field) => {\r\n const control = this.fb.control(\r\n field.defaultValue || '',\r\n field.validators || []\r\n );\r\n formArray.push(control);\r\n });\r\n return formArray;\r\n }\r\n\r\n createFormArrayOfGroups(config: FormFieldConfig[], initialCount: number, customValidator?: ValidatorFn): FormArray {\r\n const formArray = this.fb.array<FormGroup>([], { validators: customValidator });\r\n\r\n for (let i = 0; i < initialCount; i++) {\r\n const group = this.createForm(config);\r\n formArray.push(group);\r\n }\r\n\r\n return formArray;\r\n }\r\n\r\n createLoginForm(): FormGroup {\r\n return this.fb.group({\r\n email: ['', [Validators.required, Validators.email]],\r\n password: ['', [Validators.required, Validators.minLength(8)]],\r\n });\r\n }\r\n}","import { Injectable } from \"@angular/core\";\r\nimport { Router } from \"@angular/router\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NavigationService {\r\n constructor(private router: Router) { }\r\n\r\n navigateToLogin(): Promise<boolean> {\r\n return this.router.navigate(['/login']);\r\n }\r\n\r\n navigateToOffers(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/offers']);\r\n }\r\n\r\n navigateToOffersDetails(id: string): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/offers-details'], {\r\n queryParams: { offerId: id }\r\n });\r\n }\r\n\r\n navigateToResetPassword(): Promise<boolean> {\r\n return this.router.navigate(['/login/reset-password']);\r\n }\r\n\r\n navigateToPointOfSaleDetails(id: string): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/point-of-sale-details'], {\r\n queryParams: { pointOfSaleId: id }\r\n });\r\n }\r\n\r\n navigateToPointOfSale(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/point-of-sale']);\r\n }\r\n\r\n navigateToItems(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/items']);\r\n }\r\n\r\n navigateToItemsDetails(id: string, posId: string): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/items-details'], {\r\n queryParams: { itemId: id, pointOfSaleId: posId}\r\n });\r\n }\r\n\r\n navigateToRules(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/rules']);\r\n }\r\n\r\n navigateToRulesManager(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/rules-manager']);\r\n }\r\n\r\n navigateToOfferFlow(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/offer-flow']);\r\n }\r\n\r\n navigateToPayment(price: number): Promise<boolean> {\r\n return this.router.navigate(['/auctions/payment']);\r\n }\r\n\r\n navigateToBillingRecords(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/billing-record']);\r\n }\r\n\r\n navigateToIntegrations(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/integrations']);\r\n }\r\n\r\n navigateToOrders(): Promise<boolean> {\r\n return this.router.navigate(['/dashboard/orders']);\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { ActionType } from '../enums/action-type.enum';\r\n\r\ninterface PopupState {\r\n show: boolean;\r\n title: string;\r\n actionType?: ActionType;\r\n description: string;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NotificationService {\r\n private popupState = new BehaviorSubject<PopupState>({\r\n show: false,\r\n title: '',\r\n description: '',\r\n actionType: ActionType.Info\r\n });\r\n\r\n popupState$ = this.popupState.asObservable();\r\n\r\n showNotification(title: string, description: string, actionType?: ActionType): void {\r\n this.popupState.next({\r\n show: true,\r\n title,\r\n description,\r\n actionType: actionType || ActionType.Info\r\n });\r\n }\r\n\r\n hideNotification(): void {\r\n this.popupState.next({\r\n show: false,\r\n title: '',\r\n description: '',\r\n actionType: ActionType.Info\r\n });\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable, ReplaySubject, map } from 'rxjs';\r\n\r\ninterface SessionData {\r\n pointsOfSale?: any[];\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class SessionService {\r\n private sessionSubject = new ReplaySubject<SessionData | null>(1);\r\n\r\n constructor() {\r\n this.sessionSubject.next(null);\r\n }\r\n\r\n setSessionData(data: SessionData): void {\r\n this.sessionSubject.next(data);\r\n }\r\n\r\n getCurrentSessionData(): SessionData | null {\r\n let value: SessionData | null = null;\r\n this.sessionSubject.subscribe(v => value = v).unsubscribe();\r\n return value;\r\n }\r\n}","import { InjectionToken } from '@angular/core';\r\n\r\nexport const API_KEY = new InjectionToken<string>('API_KEY');","import { inject, Injectable } from '@angular/core';\r\nimport {\r\n HttpRequest,\r\n HttpHandler,\r\n HttpEvent,\r\n HttpInterceptor\r\n} from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { CookieService } from \"ngx-cookie-service\";\r\nimport { API_KEY } from '../injection-tokens/auth-config';\r\n\r\n@Injectable()\r\nexport class AuthInterceptor implements HttpInterceptor {\r\n intercept(\r\n request: HttpRequest<unknown>,\r\n next: HttpHandler\r\n ): Observable<HttpEvent<unknown>> {\r\n const cookieService = inject(CookieService);\r\n const apiKey = inject(API_KEY);\r\n const token = cookieService.get('jwt');\r\n const modifiedReq = request.clone({\r\n headers: request.headers\r\n .set('Access_token', token)\r\n .set('Api_Key', apiKey) \r\n });\r\n return next.handle(modifiedReq);\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { CookieService } from \"ngx-cookie-service\";\r\nimport { BehaviorSubject, firstValueFrom } from \"rxjs\";\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\n\r\nexport interface Session {\r\n access_token: string;\r\n refresh_token: string;\r\n expires_in?: number;\r\n user?: any;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthService {\r\n\r\n private sessionSubject = new BehaviorSubject<Session | null>(null);\r\n protected refreshTimeout: any;\r\n private apiUrl = 'http://localhost:9090/v1';\r\n private apiKey = '';\r\n\r\n constructor(\r\n private readonly cookieService: CookieService,\r\n private readonly http: HttpClient\r\n ) {\r\n this.getSession().catch(() => null);\r\n }\r\n\r\n private getHeaders(): HttpHeaders {\r\n return new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Api_Key': this.apiKey\r\n });\r\n }\r\n\r\n public configureApi(apiUrl: string, apiKey?: string): void {\r\n if (apiUrl) this.apiUrl = apiUrl;\r\n if (apiKey) this.apiKey = apiKey;\r\n }\r\n\r\n public getCurrentSession(): Session | null {\r\n return this.sessionSubject.getValue();\r\n }\r\n\r\n public signIn(email: string, password: string): Promise<any> {\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-auth`, { email, password }, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n if (response) {\r\n this.sessionSubject.next(response);\r\n localStorage.setItem('refresh_token', response.refresh_token || '');\r\n if (this.isValidLoginResponse(response)) {\r\n this.handleSuccessfulRefresh(response);\r\n this.startRefreshTimer(response);\r\n }\r\n }\r\n return response;\r\n });\r\n }\r\n\r\n public signOut(): Promise<any> {\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-signout`, {}, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n this.sessionSubject.next(null);\r\n this.cookieService.deleteAll();\r\n localStorage.removeItem('refresh_token');\r\n return response;\r\n }).catch(error => {\r\n console.error('Error signing out:', error);\r\n this.sessionSubject.next(null);\r\n this.cookieService.deleteAll();\r\n localStorage.removeItem('refresh_token');\r\n throw error;\r\n });\r\n }\r\n\r\n public sendResetPasswordEmail(email: string): Promise<any> {\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-reset-password`, { email }, { headers: this.getHeaders() })\r\n );\r\n }\r\n\r\n public setNewPassword(newPassword: string): Promise<any> {\r\n const accessToken = this.cookieService.get('access_token');\r\n const headers = this.getHeaders().set('Authorization', `Bearer ${accessToken}`);\r\n\r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-set-password`, { password: newPassword }, { headers })\r\n );\r\n }\r\n\r\n public getSession(): Promise<any> {\r\n const refreshToken = localStorage.getItem('refresh_token');\r\n if (!refreshToken) {\r\n return Promise.resolve({ data: { session: null } });\r\n }\r\n \r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-session`, { refresh_token: refreshToken }, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n if (response?.data?.session) {\r\n this.sessionSubject.next(response.data.session);\r\n if (this.isValidLoginResponse(response.data)) {\r\n this.handleSuccessfulRefresh(response.data);\r\n this.startRefreshTimer(response.data.session);\r\n }\r\n }\r\n return response;\r\n });\r\n }\r\n\r\n public refreshSession(): Promise<any> {\r\n const refreshToken = localStorage.getItem('refresh_token');\r\n if (!refreshToken) {\r\n return Promise.resolve({ data: { session: null } });\r\n }\r\n \r\n return firstValueFrom(\r\n this.http.post(`${this.apiUrl}/supabase-refresh`, { refresh_token: refreshToken }, { headers: this.getHeaders() })\r\n ).then((response: any) => {\r\n if (response?.data) {\r\n this.sessionSubject.next(response.data);\r\n localStorage.setItem('refresh_token', response.data.refresh_token || '');\r\n if (this.isValidLoginResponse(response.data)) {\r\n this.handleSuccessfulRefresh(response.data);\r\n this.startRefreshTimer(response.data);\r\n }\r\n }\r\n return response;\r\n });\r\n }\r\n\r\n public startRefreshTimer(session: Session) {\r\n const expiresIn = session.expires_in || 3200;\r\n this.refreshTimeout = setTimeout(() => {\r\n this.refreshSession().catch(console.error);\r\n }, (expiresIn - 60) * 1000);\r\n }\r\n\r\n public getSessionObservable() {\r\n return this.sessionSubject.asObservable();\r\n }\r\n\r\n private isValidLoginResponse(data: any): boolean {\r\n return !!(\r\n data?.access_token &&\r\n data?.user?.app_metadata?.role\r\n );\r\n }\r\n\r\n private handleSuccessfulRefresh(data: any): void {\r\n const token = data!.access_token;\r\n this.cookieService.delete('jwt');\r\n this.cookieService.set('jwt', token);\r\n }\r\n}\r\n","export class AuthHelper {\r\n\r\n public static getUserId(): string | null {\r\n return localStorage.getItem(\"userId\") || null;\r\n }\r\n\r\n public static getUserRole(): string | null {\r\n return localStorage.getItem(\"userRole\") || null;\r\n }\r\n}","import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\r\n\r\nexport const passwordMatchValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {\r\n const password = control.get('password');\r\n const confirmPassword = control.get('confirmPassword');\r\n\r\n if (!password || !confirmPassword) {\r\n return null;\r\n }\r\n\r\n if (password.pristine || confirmPassword.pristine) {\r\n return null;\r\n }\r\n\r\n return password.value === confirmPassword.value ? null : { passwordMismatch: true };\r\n};","/*\r\n * Public API Surface of kivio\r\n */\r\n\r\n//Components\r\nexport * from './lib/components/kv-popup/kv-popup.component';\r\nexport * from './lib/components/date-picker/date-picker.component';\r\nexport * from './lib/components/kv-resource-not-found/kv-resource-not-found.component'\r\nexport * from './lib/components/kv-stepper/kv-stepper.component';\r\nexport * from './lib/components/kv-step/kv-step.component';\r\nexport * from './lib/components/kv-accordion/kv-accordion.component';\r\nexport * from './lib/components/kv-alert/kv-alert.component';\r\nexport * from './lib/components/kv-side-menu/kv-side-menu.component'\r\nexport * from './lib/components/kv-main-table/kv-main-table.component'\r\nexport * from './lib/components/kv-loading/kv-loading.component';\r\n\r\n//Services\r\nexport * from './lib/factories/form-factory.service';\r\nexport * from './lib/services/navigation.service';\r\nexport * from './lib/services/notification.service';\r\nexport * from './lib/services/session.service';\r\nexport * from './lib/services/auth-interceptor.service';\r\nexport * from './lib/services/auth.service';\r\n\r\n//Configs\r\nexport * from './lib/interfaces/form-field.config';\r\n\r\n//Helpers\r\nexport * from './lib/helpers/auth.helper'\r\n\r\n//Validators\r\nexport * from './lib/validators/password-missmatch.validator'\r\n\r\n//Enums\r\nexport * from './lib/enums/action-type.enum'\r\n\r\n// Injection Tokens\r\nexport * from './lib/injection-tokens/auth-config';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,UAAU,EAAA;AAClB,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MA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A,OAAO,WAAW,GAAA;QACrB,OAAO,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,IAAI;;AAEtD;;ACPY,MAAA,sBAAsB,GAAgB,CAAC,OAAwB,KAA6B;IACrG,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;IACxC,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAEtD,IAAA,IAAI,CAAC,QAAQ,IAAI,CAAC,eAAe,EAAE;AAC/B,QAAA,OAAO,IAAI;AACd;AAED,IAAA,IAAI,QAAQ,CAAC,QAAQ,IAAI,eAAe,CAAC,QAAQ,EAAE;AAC/C,QAAA,OAAO,IAAI;AACd;AAED,IAAA,OAAO,QAAQ,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE;AACvF;;ACfA;;AAEG;AAEH;;ACJA;;AAEG;;;;"}
|
|
@@ -12,6 +12,7 @@ export declare class KvMainTableComponent implements OnInit, OnChanges {
|
|
|
12
12
|
loading: boolean;
|
|
13
13
|
totalRecords: number;
|
|
14
14
|
message: string;
|
|
15
|
+
hasMoreItems: boolean;
|
|
15
16
|
cellActionsTemplate: any;
|
|
16
17
|
onNameClicked: EventEmitter<any>;
|
|
17
18
|
onPageChange: EventEmitter<{
|
|
@@ -35,5 +36,5 @@ export declare class KvMainTableComponent implements OnInit, OnChanges {
|
|
|
35
36
|
getPosName(posId: string): string;
|
|
36
37
|
emitData(data: any): void;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvMainTableComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvMainTableComponent, "lib-kv-main-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "extraData": { "alias": "extraData"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onNameClicked": "onNameClicked"; "onPageChange": "onPageChange"; }, ["cellActionsTemplate"], never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvMainTableComponent, "lib-kv-main-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "extraData": { "alias": "extraData"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "lazyLoading": { "alias": "lazyLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "message": { "alias": "message"; "required": false; }; "hasMoreItems": { "alias": "hasMoreItems"; "required": false; }; }, { "onNameClicked": "onNameClicked"; "onPageChange": "onPageChange"; }, ["cellActionsTemplate"], never, true, never>;
|
|
39
40
|
}
|