@smartsoft001/angular 1.1.733 → 1.1.737

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.
@@ -259,10 +259,16 @@
259
259
  r[k] = a[j];
260
260
  return r;
261
261
  }
262
- function __spreadArray(to, from) {
263
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
264
- to[j] = from[i];
265
- return to;
262
+ function __spreadArray(to, from, pack) {
263
+ if (pack || arguments.length === 2)
264
+ for (var i = 0, l = from.length, ar; i < l; i++) {
265
+ if (ar || !(i in from)) {
266
+ if (!ar)
267
+ ar = Array.prototype.slice.call(from, 0, i);
268
+ ar[i] = from[i];
269
+ }
270
+ }
271
+ return to.concat(ar || Array.prototype.slice.call(from));
266
272
  }
267
273
  function __await(v) {
268
274
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -2865,6 +2871,7 @@
2865
2871
  listRef: [{ type: i0.ViewChild, args: ['listRef', { read: i0.ElementRef },] }]
2866
2872
  };
2867
2873
 
2874
+ var DYNAMIC_COMPONENTS_STORE = new i0.InjectionToken("DYNAMIC_COMPONENTS_STORE");
2868
2875
  var DynamicComponentStorageService = /** @class */ (function () {
2869
2876
  function DynamicComponentStorageService() {
2870
2877
  }
@@ -2873,7 +2880,8 @@
2873
2880
  var getComponents = function (k, m) {
2874
2881
  if (!m)
2875
2882
  return [];
2876
- return m.instance.constructor['ɵmod'].declarations
2883
+ var fromStore = m.injector.get(DYNAMIC_COMPONENTS_STORE, null);
2884
+ return (fromStore ? fromStore : m.instance.constructor['ɵmod'].declarations)
2877
2885
  .filter(function (c) { return c['smartType'] === k; });
2878
2886
  };
2879
2887
  var components = getComponents(key, moduleRef);
@@ -5180,7 +5188,7 @@
5180
5188
  ListDesktopComponent.decorators = [
5181
5189
  { type: i0.Component, args: [{
5182
5190
  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",
5191
+ 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
5192
  styles: [".cell-details{width:20px}\n", ""]
5185
5193
  },] }
5186
5194
  ];
@@ -8554,6 +8562,13 @@
8554
8562
  return fn;
8555
8563
  }
8556
8564
 
8565
+ var SmartNgModule = SmartNgModuleDecorator;
8566
+ function SmartNgModuleDecorator(options) {
8567
+ return function (constructor) {
8568
+ return i0.NgModule(options)(constructor);
8569
+ };
8570
+ }
8571
+
8557
8572
  /**
8558
8573
  * Generated bundle index. Do not edit.
8559
8574
  */
@@ -8589,6 +8604,7 @@
8589
8604
  exports.DETAILS_COMPONENTS = DETAILS_COMPONENTS;
8590
8605
  exports.DETAIL_COMPONENTS = DETAIL_COMPONENTS;
8591
8606
  exports.DYNAMIC_COMPONENTS = DYNAMIC_COMPONENTS;
8607
+ exports.DYNAMIC_COMPONENTS_STORE = DYNAMIC_COMPONENTS_STORE;
8592
8608
  exports.DateEditComponent = DateEditComponent;
8593
8609
  exports.DateRangeComponent = DateRangeComponent;
8594
8610
  exports.DateRangeModalComponent = DateRangeModalComponent;
@@ -8617,6 +8633,7 @@
8617
8633
  exports.DetailsStandardComponent = DetailsStandardComponent;
8618
8634
  exports.DynamicComponent = DynamicComponent;
8619
8635
  exports.DynamicComponentLoader = DynamicComponentLoader;
8636
+ exports.DynamicComponentStorageService = DynamicComponentStorageService;
8620
8637
  exports.DynamicContentDirective = DynamicContentDirective;
8621
8638
  exports.EnumToListPipe = EnumToListPipe;
8622
8639
  exports.ErrorContextComponent = ErrorContextComponent;
@@ -8723,6 +8740,8 @@
8723
8740
  exports.SharedPipesModule = SharedPipesModule;
8724
8741
  exports.SharedServicesModule = SharedServicesModule;
8725
8742
  exports.SmartFormGroup = SmartFormGroup;
8743
+ exports.SmartNgModule = SmartNgModule;
8744
+ exports.SmartNgModuleDecorator = SmartNgModuleDecorator;
8726
8745
  exports.StorageService = StorageService;
8727
8746
  exports.StyleService = StyleService;
8728
8747
  exports.TABS_COMPONENTS = TABS_COMPONENTS;