@smartsoft001/crud-shell-angular 1.1.614 → 1.1.619

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.
@@ -1773,6 +1773,7 @@
1773
1773
  var _this = this;
1774
1774
  return __generator(this, function (_a) {
1775
1775
  return [2 /*return*/, {
1776
+ mode: options.mode,
1776
1777
  limit: options.limit,
1777
1778
  loadNextPage: function () {
1778
1779
  if (!options.provider.getLinks() || !options.provider.getLinks().next)
@@ -1909,7 +1910,10 @@
1909
1910
  return Object.assign(Object.assign({}, state), { loaded: false, filter: action.filter, error: null, totalCount: null, links: null });
1910
1911
  case "[" + entity + "] Read Success":
1911
1912
  var list_1 = [];
1912
- if (action.filter && action.filter.offset && state.list) {
1913
+ if (action.filter
1914
+ && action.filter.offset
1915
+ && state.list
1916
+ && action.filter.paginationMode !== angular.PaginationMode.singlePage) {
1913
1917
  state.list.forEach(function (i) {
1914
1918
  list_1.push(i);
1915
1919
  });
@@ -2032,6 +2036,7 @@
2032
2036
  _this.filter$ = _this.facade.filter$.pipe(operators.tap(function (filter) {
2033
2037
  _this.filter = filter;
2034
2038
  }));
2039
+ _this.dynamicContents = new core.QueryList();
2035
2040
  _this.facade.links$.pipe(_this.takeUntilDestroy).subscribe(function (links) {
2036
2041
  _this.links = links;
2037
2042
  });
@@ -2051,6 +2056,7 @@
2051
2056
  case 1:
2052
2057
  _h.sent();
2053
2058
  this.facade.read({
2059
+ paginationMode: this.config.list.paginationMode,
2054
2060
  limit: this.config.pagination ? this.config.pagination.limit : null,
2055
2061
  offset: this.config.pagination ? 0 : null,
2056
2062
  sortBy: this.config.sort ? this.config.sort["default"] : null,
@@ -2168,9 +2174,12 @@
2168
2174
  : null
2169
2175
  };
2170
2176
  return [4 /*yield*/, this.paginationFacade.create({
2177
+ mode: this.config.list.paginationMode,
2171
2178
  limit: this.config.pagination.limit,
2172
2179
  provider: {
2173
- getFilter: function () { return _this.filter; },
2180
+ getFilter: function () {
2181
+ return _this.filter;
2182
+ },
2174
2183
  getLinks: function () { return _this.links; },
2175
2184
  },
2176
2185
  })];
@@ -2339,7 +2348,9 @@
2339
2348
  ]; };
2340
2349
  /** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
2341
2350
  ListComponent.propDecorators = {
2342
- topTpl: [{ type: core.ViewChild, args: ["topTpl", { read: core.ViewContainerRef, static: false },] }]
2351
+ topTpl: [{ type: core.ViewChild, args: ["topTpl", { read: core.ViewContainerRef, static: false },] }],
2352
+ contentTpl: [{ type: core.ViewChild, args: ["contentTpl", { read: core.TemplateRef, static: false },] }],
2353
+ dynamicContents: [{ type: core.ViewChildren, args: [angular.DynamicContentDirective, { read: angular.DynamicContentDirective },] }]
2343
2354
  };
2344
2355
 
2345
2356
  var CrudItemPageBaseComponent = /** @class */ (function (_super) {
@@ -2428,6 +2439,7 @@
2428
2439
  };
2429
2440
  _this.formValid = false;
2430
2441
  _this.standardComponents = new core.QueryList();
2442
+ _this.dynamicContents = new core.QueryList();
2431
2443
  _this.selected$ = _this.facade.selected$;
2432
2444
  return _this;
2433
2445
  }
@@ -2727,7 +2739,9 @@
2727
2739
  /** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
2728
2740
  ItemComponent.propDecorators = {
2729
2741
  standardComponents: [{ type: core.ViewChildren, args: [ItemStandardComponent, { read: ItemStandardComponent },] }],
2730
- content: [{ type: core.ViewChild, args: [angular$1.IonContent, { static: true },] }]
2742
+ content: [{ type: core.ViewChild, args: [angular$1.IonContent, { static: true },] }],
2743
+ contentTpl: [{ type: core.ViewChild, args: ["contentTpl", { read: core.TemplateRef, static: false },] }],
2744
+ dynamicContents: [{ type: core.ViewChildren, args: [angular.DynamicContentDirective, { read: angular.DynamicContentDirective },] }]
2731
2745
  };
2732
2746
 
2733
2747
  var CrudListPageBaseComponent = /** @class */ (function (_super) {