tin-spa 2.4.3 → 2.4.4

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.
@@ -6611,10 +6611,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
6611
6611
  }], ctorParameters: function () { return []; } });
6612
6612
 
6613
6613
  class PageComponent {
6614
- constructor(messageService, dataServiceLib) {
6615
- this.messageService = messageService;
6614
+ constructor(dataServiceLib) {
6616
6615
  this.dataServiceLib = dataServiceLib;
6617
6616
  this.searchModeActivated = new EventEmitter();
6617
+ this.refreshClick = new EventEmitter();
6618
6618
  this.tableReload = new Subject();
6619
6619
  this.searchMode = false;
6620
6620
  this.searchTableData = [];
@@ -6631,7 +6631,6 @@ class PageComponent {
6631
6631
  }
6632
6632
  toggleSearch() {
6633
6633
  if (this.searchMode) {
6634
- // this.loadSearchMeta();
6635
6634
  this.searchModeActivated.emit();
6636
6635
  }
6637
6636
  }
@@ -6662,16 +6661,21 @@ class PageComponent {
6662
6661
  loadAction: null,
6663
6662
  };
6664
6663
  }
6664
+ refreshClicked() {
6665
+ this.refreshClick.emit();
6666
+ }
6665
6667
  }
6666
- PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PageComponent, deps: [{ token: MessageService }, { token: DataServiceLib }], target: i0.ɵɵFactoryTarget.Component });
6667
- PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PageComponent, selector: "spa-page", inputs: { config: "config" }, outputs: { searchModeActivated: "searchModeActivated" }, ngImport: i0, template: "<div class=\"row\">\n\n <div class=\"col\">\n <h4>{{config.title ?? 'Untitled'}} </h4>\n </div>\n\n <div class=\"col d-flex justify-content-end\" style=\"font-size: 14px;\">\n <spa-check *ngIf=\"config.searchConfig\" [(value)]=\"searchMode\" display=\"Search Mode\" (valueChange)=\"toggleSearch()\" style=\"margin-right: 10px;\"></spa-check>\n </div>\n\n</div>\n\n<hr style=\"margin-top: 0px;\" />\n\n<!-- Normal -->\n<div *ngIf=\"!searchMode\" style=\" font-size: 14px;\">\n <spa-table [config]=\"getNormalTableConfig()\" [reload]=\"tableReload\"></spa-table>\n</div>\n\n<!-- Search -->\n<div *ngIf=\"searchMode\" style=\" font-size: 14px;\">\n <spa-search [config]=\"config.searchConfig\" (searchClick)=\"searchClicked($event, false)\"></spa-search>\n <spa-table [config]=\"getSearchTableConfig()\" [reload]=\"tableReload\" [data]=\"searchTableData\" [tileData]=\"searchTileData\" (refreshClick)=\"searchClicked(lastSearch, false)\"></spa-table>\n</div>\n", styles: [".mat-mini-fab{width:32px;height:32px}.mat-mini-fab mat-icon{font-size:16px;margin-top:-3px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CheckComponent, selector: "spa-check", inputs: ["readonly", "display", "value", "infoMessage"], outputs: ["valueChange", "click", "check", "uncheck", "infoClick"] }, { kind: "component", type: TableComponent, selector: "spa-table", inputs: ["hideTitle", "data", "tileData", "config", "reload"], outputs: ["dataLoad", "refreshClick", "searchClick", "createClick", "actionClick", "inputChange"] }, { kind: "component", type: SearchComponent, selector: "spa-search", inputs: ["config"], outputs: ["searchClick"] }] });
6668
+ PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PageComponent, deps: [{ token: DataServiceLib }], target: i0.ɵɵFactoryTarget.Component });
6669
+ PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PageComponent, selector: "spa-page", inputs: { config: "config" }, outputs: { searchModeActivated: "searchModeActivated", refreshClick: "refreshClick" }, ngImport: i0, template: "<div class=\"row\">\n\n <div class=\"col\">\n <h4>{{config.title ?? 'Untitled'}} </h4>\n </div>\n\n <div class=\"col d-flex justify-content-end\" style=\"font-size: 14px;\">\n <spa-check *ngIf=\"config.searchConfig\" [(value)]=\"searchMode\" display=\"Search Mode\" (valueChange)=\"toggleSearch()\" style=\"margin-right: 10px;\"></spa-check>\n </div>\n\n</div>\n\n<hr style=\"margin-top: 0px;\" />\n\n<!-- Normal -->\n<div *ngIf=\"!searchMode\" style=\" font-size: 14px;\">\n <spa-table [config]=\"getNormalTableConfig()\" [reload]=\"tableReload\" (refreshClick)=\"refreshClicked()\"></spa-table>\n</div>\n\n<!-- Search -->\n<div *ngIf=\"searchMode\" style=\" font-size: 14px;\">\n <spa-search [config]=\"config.searchConfig\" (searchClick)=\"searchClicked($event, false)\"></spa-search>\n <spa-table [config]=\"getSearchTableConfig()\" [reload]=\"tableReload\" [data]=\"searchTableData\" [tileData]=\"searchTileData\" (refreshClick)=\"searchClicked(lastSearch, false)\" (refreshClick)=\"refreshClicked()\"></spa-table>\n</div>\n", styles: [".mat-mini-fab{width:32px;height:32px}.mat-mini-fab mat-icon{font-size:16px;margin-top:-3px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CheckComponent, selector: "spa-check", inputs: ["readonly", "display", "value", "infoMessage"], outputs: ["valueChange", "click", "check", "uncheck", "infoClick"] }, { kind: "component", type: TableComponent, selector: "spa-table", inputs: ["hideTitle", "data", "tileData", "config", "reload"], outputs: ["dataLoad", "refreshClick", "searchClick", "createClick", "actionClick", "inputChange"] }, { kind: "component", type: SearchComponent, selector: "spa-search", inputs: ["config"], outputs: ["searchClick"] }] });
6668
6670
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PageComponent, decorators: [{
6669
6671
  type: Component,
6670
- args: [{ selector: 'spa-page', template: "<div class=\"row\">\n\n <div class=\"col\">\n <h4>{{config.title ?? 'Untitled'}} </h4>\n </div>\n\n <div class=\"col d-flex justify-content-end\" style=\"font-size: 14px;\">\n <spa-check *ngIf=\"config.searchConfig\" [(value)]=\"searchMode\" display=\"Search Mode\" (valueChange)=\"toggleSearch()\" style=\"margin-right: 10px;\"></spa-check>\n </div>\n\n</div>\n\n<hr style=\"margin-top: 0px;\" />\n\n<!-- Normal -->\n<div *ngIf=\"!searchMode\" style=\" font-size: 14px;\">\n <spa-table [config]=\"getNormalTableConfig()\" [reload]=\"tableReload\"></spa-table>\n</div>\n\n<!-- Search -->\n<div *ngIf=\"searchMode\" style=\" font-size: 14px;\">\n <spa-search [config]=\"config.searchConfig\" (searchClick)=\"searchClicked($event, false)\"></spa-search>\n <spa-table [config]=\"getSearchTableConfig()\" [reload]=\"tableReload\" [data]=\"searchTableData\" [tileData]=\"searchTileData\" (refreshClick)=\"searchClicked(lastSearch, false)\"></spa-table>\n</div>\n", styles: [".mat-mini-fab{width:32px;height:32px}.mat-mini-fab mat-icon{font-size:16px;margin-top:-3px}\n"] }]
6671
- }], ctorParameters: function () { return [{ type: MessageService }, { type: DataServiceLib }]; }, propDecorators: { config: [{
6672
+ args: [{ selector: 'spa-page', template: "<div class=\"row\">\n\n <div class=\"col\">\n <h4>{{config.title ?? 'Untitled'}} </h4>\n </div>\n\n <div class=\"col d-flex justify-content-end\" style=\"font-size: 14px;\">\n <spa-check *ngIf=\"config.searchConfig\" [(value)]=\"searchMode\" display=\"Search Mode\" (valueChange)=\"toggleSearch()\" style=\"margin-right: 10px;\"></spa-check>\n </div>\n\n</div>\n\n<hr style=\"margin-top: 0px;\" />\n\n<!-- Normal -->\n<div *ngIf=\"!searchMode\" style=\" font-size: 14px;\">\n <spa-table [config]=\"getNormalTableConfig()\" [reload]=\"tableReload\" (refreshClick)=\"refreshClicked()\"></spa-table>\n</div>\n\n<!-- Search -->\n<div *ngIf=\"searchMode\" style=\" font-size: 14px;\">\n <spa-search [config]=\"config.searchConfig\" (searchClick)=\"searchClicked($event, false)\"></spa-search>\n <spa-table [config]=\"getSearchTableConfig()\" [reload]=\"tableReload\" [data]=\"searchTableData\" [tileData]=\"searchTileData\" (refreshClick)=\"searchClicked(lastSearch, false)\" (refreshClick)=\"refreshClicked()\"></spa-table>\n</div>\n", styles: [".mat-mini-fab{width:32px;height:32px}.mat-mini-fab mat-icon{font-size:16px;margin-top:-3px}\n"] }]
6673
+ }], ctorParameters: function () { return [{ type: DataServiceLib }]; }, propDecorators: { config: [{
6672
6674
  type: Input
6673
6675
  }], searchModeActivated: [{
6674
6676
  type: Output
6677
+ }], refreshClick: [{
6678
+ type: Output
6675
6679
  }] } });
6676
6680
 
6677
6681
  class TinSpaModule {