@smartsoft001/angular 1.1.734 → 1.1.738

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.
@@ -2865,6 +2865,7 @@
2865
2865
  listRef: [{ type: i0.ViewChild, args: ['listRef', { read: i0.ElementRef },] }]
2866
2866
  };
2867
2867
 
2868
+ var DYNAMIC_COMPONENTS_STORE = new i0.InjectionToken("DYNAMIC_COMPONENTS_STORE");
2868
2869
  var DynamicComponentStorageService = /** @class */ (function () {
2869
2870
  function DynamicComponentStorageService() {
2870
2871
  }
@@ -2873,7 +2874,8 @@
2873
2874
  var getComponents = function (k, m) {
2874
2875
  if (!m)
2875
2876
  return [];
2876
- return m.instance.constructor['ɵmod'].declarations
2877
+ var fromStore = m.injector.get(DYNAMIC_COMPONENTS_STORE, null);
2878
+ return (fromStore ? fromStore : m.instance.constructor['ɵmod'].declarations)
2877
2879
  .filter(function (c) { return c['smartType'] === k; });
2878
2880
  };
2879
2881
  var components = getComponents(key, moduleRef);
@@ -5180,7 +5182,7 @@
5180
5182
  ListDesktopComponent.decorators = [
5181
5183
  { type: i0.Component, args: [{
5182
5184
  selector: "smart-list-desktop",
5183
- template: "<div #topTpl></div>\n\n<table mat-table matSort [dataSource]=\"list$ | async\" style=\"width: 100%\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td mat-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td mat-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n</table>\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n",
5185
+ template: "<div #topTpl></div>\n\n<div style=\"width: 100%; overflow-y: auto\">\n <table mat-table matSort [dataSource]=\"list$ | async\" style=\"width: 100%\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td mat-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td mat-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n </table>\n</div>\n\n\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n",
5184
5186
  styles: [".cell-details{width:20px}\n", ""]
5185
5187
  },] }
5186
5188
  ];
@@ -8554,6 +8556,13 @@
8554
8556
  return fn;
8555
8557
  }
8556
8558
 
8559
+ var SmartNgModule = SmartNgModuleDecorator;
8560
+ function SmartNgModuleDecorator(options) {
8561
+ return function (constructor) {
8562
+ return i0.NgModule(options)(constructor);
8563
+ };
8564
+ }
8565
+
8557
8566
  /**
8558
8567
  * Generated bundle index. Do not edit.
8559
8568
  */
@@ -8589,6 +8598,7 @@
8589
8598
  exports.DETAILS_COMPONENTS = DETAILS_COMPONENTS;
8590
8599
  exports.DETAIL_COMPONENTS = DETAIL_COMPONENTS;
8591
8600
  exports.DYNAMIC_COMPONENTS = DYNAMIC_COMPONENTS;
8601
+ exports.DYNAMIC_COMPONENTS_STORE = DYNAMIC_COMPONENTS_STORE;
8592
8602
  exports.DateEditComponent = DateEditComponent;
8593
8603
  exports.DateRangeComponent = DateRangeComponent;
8594
8604
  exports.DateRangeModalComponent = DateRangeModalComponent;
@@ -8617,6 +8627,7 @@
8617
8627
  exports.DetailsStandardComponent = DetailsStandardComponent;
8618
8628
  exports.DynamicComponent = DynamicComponent;
8619
8629
  exports.DynamicComponentLoader = DynamicComponentLoader;
8630
+ exports.DynamicComponentStorageService = DynamicComponentStorageService;
8620
8631
  exports.DynamicContentDirective = DynamicContentDirective;
8621
8632
  exports.EnumToListPipe = EnumToListPipe;
8622
8633
  exports.ErrorContextComponent = ErrorContextComponent;
@@ -8723,6 +8734,8 @@
8723
8734
  exports.SharedPipesModule = SharedPipesModule;
8724
8735
  exports.SharedServicesModule = SharedServicesModule;
8725
8736
  exports.SmartFormGroup = SmartFormGroup;
8737
+ exports.SmartNgModule = SmartNgModule;
8738
+ exports.SmartNgModuleDecorator = SmartNgModuleDecorator;
8726
8739
  exports.StorageService = StorageService;
8727
8740
  exports.StyleService = StyleService;
8728
8741
  exports.TABS_COMPONENTS = TABS_COMPONENTS;