@datorama/core 22.8.1-rc.3 → 22.8.1

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.
Files changed (44) hide show
  1. package/bundles/datorama-core.umd.js +96 -118
  2. package/bundles/datorama-core.umd.js.map +1 -1
  3. package/bundles/datorama-core.umd.min.js +15 -15
  4. package/bundles/datorama-core.umd.min.js.map +1 -1
  5. package/datorama-core.d.ts +0 -1
  6. package/datorama-core.metadata.json +1 -1
  7. package/esm2015/datorama-core.js +1 -2
  8. package/esm2015/lib/breadcrumbs/breadcrumbs.component.js +2 -4
  9. package/esm2015/lib/grid-v2/grid/grid-v2.types.js +1 -1
  10. package/esm2015/lib/grid-v2/grid-column-header/grid-column-header.component.js +9 -3
  11. package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +3 -6
  12. package/esm2015/lib/grid-v2/grid-settings.js +2 -2
  13. package/esm2015/lib/grid-v2/grid-store/grid.query.js +23 -22
  14. package/esm2015/lib/grid-v2/grid-store/grid.service.js +21 -22
  15. package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -7
  16. package/esm2015/lib/rich-text/rich-text.directive.js +33 -15
  17. package/esm2015/lib/select/select.component.js +10 -5
  18. package/esm2015/lib/version.js +2 -2
  19. package/esm5/datorama-core.js +1 -2
  20. package/esm5/lib/breadcrumbs/breadcrumbs.component.js +2 -4
  21. package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
  22. package/esm5/lib/grid-v2/grid-column-header/grid-column-header.component.js +9 -3
  23. package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +3 -6
  24. package/esm5/lib/grid-v2/grid-settings.js +2 -2
  25. package/esm5/lib/grid-v2/grid-store/grid.query.js +24 -22
  26. package/esm5/lib/grid-v2/grid-store/grid.service.js +21 -22
  27. package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -13
  28. package/esm5/lib/rich-text/rich-text.directive.js +34 -16
  29. package/esm5/lib/select/select.component.js +10 -5
  30. package/esm5/lib/version.js +2 -2
  31. package/fesm2015/datorama-core.js +95 -110
  32. package/fesm2015/datorama-core.js.map +1 -1
  33. package/fesm5/datorama-core.js +97 -118
  34. package/fesm5/datorama-core.js.map +1 -1
  35. package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -1
  36. package/lib/grid-v2/grid-settings.d.ts +2 -2
  37. package/lib/grid-v2/grid-store/grid.query.d.ts +3 -3
  38. package/lib/grid-v2/grid-store/grid.service.d.ts +1 -0
  39. package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +0 -2
  40. package/lib/rich-text/rich-text.directive.d.ts +6 -4
  41. package/package.json +1 -1
  42. package/esm2015/lib/rich-text/rich-text.service.js +0 -50
  43. package/esm5/lib/rich-text/rich-text.service.js +0 -51
  44. package/lib/rich-text/rich-text.service.d.ts +0 -10
@@ -8549,8 +8549,9 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8549
8549
  DatoSelectComponent.prototype.writeValue = function (activeOptions) {
8550
8550
  this._model = activeOptions ? coerceArray$1(activeOptions) : [];
8551
8551
  if (this.options) {
8552
+ var overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
8552
8553
  this.markAsActive(this._model, { deselectAll: true });
8553
- this.limitSelectedTo && this.updateDisabledState();
8554
+ overTheLimit && this.updateDisabledState();
8554
8555
  }
8555
8556
  /** For later updates */
8556
8557
  this.cdr.markForCheck();
@@ -8587,7 +8588,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8587
8588
  */
8588
8589
  if (this.hasValue && this._initialOpen) {
8589
8590
  this.markAsActive(this._model);
8590
- if (this.limitSelectedTo) {
8591
+ if (this.limitSelectedTo && this._model.length === this.limitSelectedTo) {
8591
8592
  this.updateDisabledState();
8592
8593
  }
8593
8594
  this._initialOpen = false;
@@ -8676,6 +8677,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8676
8677
  };
8677
8678
  DatoSelectComponent.prototype.removeOption = function (option) {
8678
8679
  var _this = this;
8680
+ var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
8679
8681
  this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
8680
8682
  var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
8681
8683
  /**
@@ -8685,7 +8687,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8685
8687
  if (optionToRemove) {
8686
8688
  optionToRemove.active = false;
8687
8689
  }
8688
- this.limitSelectedTo && this.updateDisabledState();
8690
+ updateDisabled && this.updateDisabledState();
8689
8691
  this.onChange(this._model);
8690
8692
  this.cdr.markForCheck();
8691
8693
  this.asyncUpdateDropdownPosition();
@@ -9033,6 +9035,9 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9033
9035
  if (!datoOption) {
9034
9036
  return;
9035
9037
  }
9038
+ var modelLength = this._model.length;
9039
+ var updateDisabled = this.limitSelectedTo &&
9040
+ (modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
9036
9041
  datoOption.active = !datoOption.active;
9037
9042
  var rawOption = datoOption.option;
9038
9043
  if (datoOption.active) {
@@ -9041,7 +9046,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9041
9046
  else {
9042
9047
  this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
9043
9048
  }
9044
- this.limitSelectedTo && this.updateDisabledState();
9049
+ updateDisabled && this.updateDisabledState();
9045
9050
  this.onChange(this._model);
9046
9051
  this.cdr.markForCheck();
9047
9052
  this.asyncUpdateDropdownPosition();
@@ -11382,7 +11387,7 @@ var GridQuery = /** @class */ (function (_super) {
11382
11387
  var storeSettings = this.getValue().settings;
11383
11388
  var settings = {
11384
11389
  gridAlignment: storeSettings.gridAlignment,
11385
- sort: this.getSort(),
11390
+ sort: this.getGridOptions().sortByStore ? this.getSavedSort() : this.getSortModel(),
11386
11391
  hiddenColumns: hiddenColumns,
11387
11392
  groupedColumns: groupedColumns.map(toColId),
11388
11393
  filter: this.getFilter(),
@@ -11396,30 +11401,32 @@ var GridQuery = /** @class */ (function (_super) {
11396
11401
  }
11397
11402
  return settings;
11398
11403
  };
11399
- GridQuery.prototype.getSort = function () {
11404
+ GridQuery.prototype.getSortModel = function () {
11400
11405
  return this.api.grid.getSortModel().pop();
11401
11406
  };
11402
- GridQuery.prototype.getExternalSort = function () {
11403
- var _a = this.getSort() || {}, sort = _a.sort, colId = _a.colId;
11404
- var column = this.api.columns.getColumn(colId);
11405
- var allColumns = this.api.columns.getAllGridColumns();
11406
- if (column) {
11407
- return { colId: colId, sort: sort, field: getColField(column.getColDef()), sortIndex: allColumns.indexOf(column) };
11408
- }
11409
- else {
11410
- var secondaryColumn = this.getSecondaryColumn(colId);
11411
- if (secondaryColumn) {
11412
- return {
11413
- colId: colId,
11414
- sort: sort,
11415
- field: getColField(secondaryColumn.getColDef()),
11416
- sortIndex: allColumns.indexOf(secondaryColumn)
11417
- };
11407
+ GridQuery.prototype.getSavedSort = function () {
11408
+ return this.getValue().settings.sort || this.getSortModel();
11409
+ };
11410
+ GridQuery.prototype.getSort = function (savedSort) {
11411
+ if (savedSort === void 0) { savedSort = this.getSavedSort(); }
11412
+ if (savedSort) {
11413
+ var colId = savedSort.colId, sort = savedSort.sort, sortIndex = savedSort.sortIndex;
11414
+ var column = this.api.columns.getColumn(colId);
11415
+ var allColumns = this.api.columns.getAllGridColumns();
11416
+ if (column) {
11417
+ var field = getColField(column.getColDef());
11418
+ return { colId: colId, sort: sort, field: field };
11419
+ }
11420
+ else {
11421
+ var secondaryColumn = this.getSecondaryColumn(colId);
11422
+ if (secondaryColumn) {
11423
+ var columnIndex = sortIndex || allColumns.indexOf(secondaryColumn);
11424
+ var field = getColField(secondaryColumn.getColDef());
11425
+ return { colId: colId, sort: sort, field: field, sortIndex: columnIndex };
11426
+ }
11418
11427
  }
11419
11428
  }
11420
- };
11421
- GridQuery.prototype.selectSort = function () {
11422
- return this.select(function (state) { return state.settings.sort; });
11429
+ return { colId: null, sort: null };
11423
11430
  };
11424
11431
  /* @internal */
11425
11432
  GridQuery.prototype._setApi = function (api, gridRef) {
@@ -11844,7 +11851,7 @@ function toolbarActionToContextAction(params) {
11844
11851
  return contextActions;
11845
11852
  }
11846
11853
 
11847
- var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_AP');
11854
+ var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_API');
11848
11855
 
11849
11856
  var defaultEditableColumnRenderer = function (params) {
11850
11857
  return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
@@ -13294,6 +13301,7 @@ var DatoGridColumnHeaderComponent = /** @class */ (function () {
13294
13301
  var sortingOrder = _this.column.getColDef() ? _this.column.getColDef().sortingOrder : null;
13295
13302
  var sort;
13296
13303
  var currentSort = _this.column.getSort();
13304
+ var colId = _this.column.getColId();
13297
13305
  if (sortingOrder && sortingOrder.length > 0) {
13298
13306
  var currentSortIndex = sortingOrder.indexOf(currentSort);
13299
13307
  var newSortIndex = void 0;
@@ -13310,10 +13318,15 @@ var DatoGridColumnHeaderComponent = /** @class */ (function () {
13310
13318
  }
13311
13319
  gridService._logEvent("Grids - Column Action" /* GRID_COLUMN_ACTION */, {
13312
13320
  action: 'Sort',
13313
- column: _this.column.getColId()
13321
+ column: colId
13314
13322
  });
13315
13323
  gridQuery.isServerSide && gridService.setLoading(true);
13316
- _this.params.setSort(sort);
13324
+ if (gridQuery.getGridOptions().sortByStore) {
13325
+ gridService.setSortByColumn(colId, sort);
13326
+ }
13327
+ else {
13328
+ _this.params.setSort(sort);
13329
+ }
13317
13330
  });
13318
13331
  this.sortingInfo$ = gridQuery
13319
13332
  .waitForGrid(function () { return gridQuery.gridRef.sortChanged; })
@@ -14260,38 +14273,38 @@ var GridService = /** @class */ (function () {
14260
14273
  this.notifyFilterUpdate();
14261
14274
  }
14262
14275
  };
14276
+ GridService.prototype.setSortByColumn = function (colId, sort) {
14277
+ var sortToSet = this.gridQuery.getSort({ colId: colId, sort: sort });
14278
+ this.setGridSort(sortToSet);
14279
+ };
14263
14280
  GridService.prototype.setGridSort = function (gridSort) {
14264
14281
  if (gridSort && this.api && this.api.grid.getDisplayedRowCount() > 0) {
14265
14282
  var colId_1 = gridSort.colId, sort = gridSort.sort, sortIndex = gridSort.sortIndex;
14266
- var sortToApply = gridSort;
14267
- if (!isNil(sortIndex)) {
14268
- var gridColumns = this.api.columns.getAllGridColumns();
14269
- if (gridColumns) {
14283
+ var gridColumns = this.api.columns.getAllGridColumns();
14284
+ if (gridColumns) {
14285
+ var sortToApply = gridSort;
14286
+ if (!isNil(sortIndex)) {
14270
14287
  var valueColumns = this.api.columns.getValueColumns();
14271
14288
  var valueColumn = valueColumns.find(function (col) { return col.getColId() === colId_1; });
14272
14289
  var isPivotColId = colId_1.startsWith('pivot');
14273
14290
  if (isPivotColId || valueColumn) {
14274
14291
  /** Column is pivot value column, sort by index */
14275
14292
  var columnByIndex = gridColumns[sortIndex];
14276
- var pivotValueColumn = columnByIndex && columnByIndex.getColDef().pivotValueColumn;
14277
- var pivotValueColumnId = pivotValueColumn && pivotValueColumn.getColId();
14278
- if (pivotValueColumnId === colId_1) {
14279
- sortToApply = { colId: columnByIndex.getColId(), sort: sort };
14280
- }
14293
+ sortToApply = { colId: columnByIndex.getColId(), sort: sort, sortIndex: sortIndex };
14281
14294
  }
14282
- else {
14283
- /** Sort by column id */
14284
- var columnById = gridColumns.find(function (col) {
14285
- return (col.getColDef().showRowGroup || col.getColId()) === colId_1;
14286
- });
14287
- if (columnById) {
14288
- sortToApply = { colId: columnById.getColId(), sort: sort };
14289
- }
14295
+ }
14296
+ else {
14297
+ /** Sort by column id */
14298
+ var columnById = gridColumns.find(function (col) {
14299
+ return (col.getColDef().showRowGroup || col.getColId()) === colId_1;
14300
+ });
14301
+ if (columnById) {
14302
+ sortToApply = { colId: columnById.getColId(), sort: sort };
14290
14303
  }
14291
14304
  }
14305
+ this.updateSettings({ sort: sortToApply });
14306
+ this.api.grid.setSortModel([sortToApply]);
14292
14307
  }
14293
- this.updateSettings({ sort: sortToApply });
14294
- this.api.grid.setSortModel([sortToApply]);
14295
14308
  }
14296
14309
  };
14297
14310
  GridService.prototype.updateFilter = function (column, filter) {
@@ -14349,8 +14362,7 @@ var GridService = /** @class */ (function () {
14349
14362
  this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
14350
14363
  };
14351
14364
  GridService.prototype.saveSettingsToServer = function (settings) {
14352
- var isGlobal = this.gridQuery.getGridOptions().isGlobalSettings;
14353
- this.storageAPI.set(this.gridName, settings, isGlobal);
14365
+ this.storageAPI.set(this.gridName, settings);
14354
14366
  };
14355
14367
  /**
14356
14368
  * @internal used to log grid events to the platform's logging service
@@ -15355,10 +15367,7 @@ var DatoGridControllerComponent = /** @class */ (function () {
15355
15367
  .pipe(switchMap(function () {
15356
15368
  _this.gridOptions = _this.normalizeOptions();
15357
15369
  agGrid.gridOptions = _this.gridOptions;
15358
- var isGlobal = _this.gridOptions.isGlobalSettings;
15359
- var settingsLoader = _this.gridOptions.saveSettings === false
15360
- ? of(null)
15361
- : _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
15370
+ var settingsLoader = _this.gridOptions.saveSettings === false ? of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
15362
15371
  return combineLatest([agGrid.gridReady, settingsLoader]);
15363
15372
  }), untilDestroyed(this))
15364
15373
  .subscribe(function (_a) {
@@ -15472,7 +15481,7 @@ var DatoGridControllerComponent = /** @class */ (function () {
15472
15481
  var data = _this.getGridData();
15473
15482
  _this.onGridChange.emit({
15474
15483
  filter: _this.gridQuery.getExternalFilter(),
15475
- sort: _this.gridQuery.getExternalSort(),
15484
+ sort: _this.gridQuery.getSort(),
15476
15485
  type: type,
15477
15486
  data: data
15478
15487
  });
@@ -16640,18 +16649,6 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
16640
16649
  this.registerGroupListeners();
16641
16650
  this.subscribeRowsSelectionData();
16642
16651
  };
16643
- DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
16644
- var _this = this;
16645
- return this.gridController.gridQuery.waitForGrid(function () {
16646
- return _this.gridQuery.gridRef.cellValueChanged.pipe(debounceTime(100), untilDestroyed(_this));
16647
- });
16648
- };
16649
- DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
16650
- var _this = this;
16651
- return this.gridController.gridQuery.waitForGrid(function () {
16652
- return _this.gridQuery.gridRef.rowDataUpdated.pipe(debounceTime(100), untilDestroyed(_this));
16653
- });
16654
- };
16655
16652
  DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
16656
16653
  if (isFunction(action.onClick)) {
16657
16654
  var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
@@ -21127,40 +21124,6 @@ var DatoEditableHeaderModule = /** @class */ (function () {
21127
21124
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
21128
21125
  */
21129
21126
 
21130
- var RichTextService = /** @class */ (function () {
21131
- function RichTextService(http, config) {
21132
- this.http = http;
21133
- this.config = config;
21134
- }
21135
- RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
21136
- if (!this.richTextScript$) {
21137
- this.initLib(appendScriptFunc, appendStyleFunc);
21138
- }
21139
- return this.richTextScript$;
21140
- };
21141
- RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
21142
- this.richTextScript$ = combineLatest([
21143
- this.http
21144
- .get(this.config.paths.richText + "/index.js", { responseType: 'text' })
21145
- .pipe(tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
21146
- this.http
21147
- .get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
21148
- .pipe(tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
21149
- ]).pipe(shareReplay(1));
21150
- };
21151
- RichTextService.ctorParameters = function () { return [
21152
- { type: HttpClient },
21153
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
21154
- ]; };
21155
- RichTextService.ɵprov = ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(ɵɵinject(HttpClient), ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
21156
- RichTextService = __decorate([
21157
- Injectable({ providedIn: 'root' }),
21158
- __param(1, Inject(DATO_CORE_CONFIG)),
21159
- __metadata("design:paramtypes", [HttpClient, Object])
21160
- ], RichTextService);
21161
- return RichTextService;
21162
- }());
21163
-
21164
21127
  /**
21165
21128
  * @license
21166
21129
  * Copyright Datorama. All Rights Reserved.
@@ -21174,12 +21137,12 @@ var getTinymce = function () {
21174
21137
  var ɵ0$3 = getTinymce;
21175
21138
  var DatoRichTextDirective = /** @class */ (function (_super) {
21176
21139
  __extends(DatoRichTextDirective, _super);
21177
- function DatoRichTextDirective(ngZone, richTextService, config, host) {
21140
+ function DatoRichTextDirective(ngZone, http, host, config) {
21178
21141
  var _this = _super.call(this) || this;
21179
21142
  _this.ngZone = ngZone;
21180
- _this.richTextService = richTextService;
21181
- _this.config = config;
21143
+ _this.http = http;
21182
21144
  _this.host = host;
21145
+ _this.config = config;
21183
21146
  _this.autocompleteOptions = {};
21184
21147
  _this.forcePlainTextPasting = false;
21185
21148
  _this.format = 'html';
@@ -21213,11 +21176,28 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21213
21176
  base: this.config.paths.richText,
21214
21177
  query: ''
21215
21178
  };
21216
- this.richTextService
21217
- .getLib(appendScript, appendStyle)
21218
- .pipe(untilDestroyed(this))
21219
- .subscribe(function () {
21220
- _this.init.call(_this);
21179
+ /**
21180
+ * We support only one instance in load time
21181
+ */
21182
+ if (window.tinymce) {
21183
+ this.init.call(this);
21184
+ }
21185
+ else {
21186
+ this.loadLib().subscribe(function (lib) {
21187
+ appendScript(lib, 'rich-text-editor');
21188
+ _this.init.call(_this);
21189
+ _this.loadAutoCompleteStyle();
21190
+ });
21191
+ }
21192
+ };
21193
+ DatoRichTextDirective.prototype.loadLib = function () {
21194
+ return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
21195
+ };
21196
+ DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
21197
+ this.http
21198
+ .get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
21199
+ .subscribe(function (style) {
21200
+ appendStyle(style, 'tinymce-autocomplete');
21221
21201
  });
21222
21202
  };
21223
21203
  DatoRichTextDirective.prototype.initEditor = function (_, editor) {
@@ -21310,9 +21290,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21310
21290
  var DatoRichTextDirective_1;
21311
21291
  DatoRichTextDirective.ctorParameters = function () { return [
21312
21292
  { type: NgZone },
21313
- { type: RichTextService },
21314
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] },
21315
- { type: ElementRef }
21293
+ { type: HttpClient },
21294
+ { type: ElementRef },
21295
+ { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
21316
21296
  ]; };
21317
21297
  __decorate([
21318
21298
  Input(),
@@ -21378,9 +21358,10 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21378
21358
  }
21379
21359
  ]
21380
21360
  }),
21381
- __param(2, Inject(DATO_CORE_CONFIG)),
21361
+ __param(3, Inject(DATO_CORE_CONFIG)),
21382
21362
  __metadata("design:paramtypes", [NgZone,
21383
- RichTextService, Object, ElementRef])
21363
+ HttpClient,
21364
+ ElementRef, Object])
21384
21365
  ], DatoRichTextDirective);
21385
21366
  return DatoRichTextDirective;
21386
21367
  }(BaseCustomControl));
@@ -23903,9 +23884,7 @@ var DatoBreadcrumbsComponent = /** @class */ (function () {
23903
23884
  };
23904
23885
  DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
23905
23886
  var _this = this;
23906
- this.headerControl.valueChanges
23907
- .pipe(debounceTime(300), untilDestroyed(this))
23908
- .subscribe(function (res) {
23887
+ this.headerControl.valueChanges.pipe(debounceTime(300), untilDestroyed(this)).subscribe(function (res) {
23909
23888
  _this.updateEditableText.emit(res);
23910
23889
  _this.cdr.detectChanges();
23911
23890
  });
@@ -25268,7 +25247,7 @@ function fixNgLeaks() {
25268
25247
  };
25269
25248
  }
25270
25249
 
25271
- window.coreVersion = '22.8.1-rc.';
25250
+ window.coreVersion = '22.8.1';
25272
25251
 
25273
25252
  /**
25274
25253
  * @license
@@ -25282,5 +25261,5 @@ window.coreVersion = '22.8.1-rc.';
25282
25261
  * Generated bundle index. Do not edit.
25283
25262
  */
25284
25263
 
25285
- export { APP_TRANSLATE, AceService, BaseCustomControl, COMPARE_RESULT, CUSTOM_RANGE_ID, ColorPalette, ConfirmationType, ContentRef, ContentType, CustomHeaderControllerService, DATE_PICKER_CONFIG, DATE_PICKER_POPOVER_ID, DATO_CORE_LOGGER, DATO_FORM_ERRORS, DATO_GRID_STORAGE_API, DEFAULT_FORMAT, DEFAULT_GRID_SEARCH_DEBOUNCE_TIME, DatePickerConfig, DatePickerMonthComponent, DateType, DatoAccordionComponent, DatoAccordionContentComponent, DatoAccordionGroupComponent, DatoAccordionHeaderComponent, DatoAccordionModule, DatoAceDirective, DatoAceDraggableDirective, DatoAceModule, DatoActionType, DatoAutoCompleteContentDirective, DatoAutoFocusDirective, DatoAutocompleteComponent, DatoAutocompleteDirective, DatoAutocompleteModule, DatoBreadcrumbsComponent, DatoBreadcrumbsModule, DatoButtonComponent, DatoButtonGroupComponent, DatoButtonGroupModule, DatoButtonModule, DatoCamelCasePipe, DatoCarouselComponent, DatoCarouselItemDirective, DatoCarouselItemElement, DatoCarouselModule, DatoCheckboxComponent, DatoCheckboxModule, DatoClipboardDirective, DatoColorDirective, DatoConfirmationDialogComponent, DatoControlErrorComponent, DatoControlErrorContainerDirective, DatoControlErrorsDirective, DatoCoreError, DatoCoreModule, DatoCustomHeaderTemplateComponent, DatoCustomHeaderTemplateDirective, DatoCustomMoreMenuTemplateDirective, DatoDatePickerContainerComponent, DatoDatePickerModule, DatoDatePickerRangeComponent, DatoDatePickerSingleComponent, DatoDialog, DatoDialogCloseDirective, DatoDialogComponent, DatoDialogContentComponent, DatoDialogDismissDirective, DatoDialogFooterComponent, DatoDialogHeaderComponent, DatoDialogModule, DatoDialogRef, DatoDirectivesModule, DatoDisableControlDirective, DatoDraggableDirective, DatoDynamicContentComponent, DatoDynamicContentModule, DatoEditableHeaderComponent, DatoEditableHeaderModule, DatoFileInputComponent, DatoFileInputDefaultComponent, DatoFileInputModule, DatoFilterConditions, DatoFontDirective, DatoFontIconComponent, DatoFontIconModule, DatoFormSubmitDirective, DatoFormValidationModule, DatoGrid, DatoGridAPI, DatoGridAvatarCellComponent, DatoGridColumnDisplayMenuComponent, DatoGridColumnHeaderComponent, DatoGridColumnHeaderMoreMenuComponent, DatoGridColumnTypes, DatoGridComponent, DatoGridControllerComponent, DatoGridDateFilterOptions, DatoGridFilterComponent, DatoGridFilterOptionsMap, DatoGridFilterSections, DatoGridFilterTypes, DatoGridGroupsMenuComponent, DatoGridHeaderComponent, DatoGridHeaderV2Component, DatoGridInitialsCellComponent, DatoGridItemsCellComponent, DatoGridModule, DatoGridMoreMenuActions, DatoGridNumberFilterOptions, DatoGridOnHoverComponent, DatoGridPaginationComponent, DatoGridPaginationV2Component, DatoGridStatusCellComponent, DatoGridStringFilterOptions, DatoGridToolbarComponent, DatoGridToolbarItemDirective, DatoGridToolbarItemElementDirective, DatoGridV2Component, DatoGridV2LoaderComponent, DatoGridV2Module, DatoGridV2NoDataOverlayComponent, DatoGridV2ToolbarButtonComponent, DatoGridV2ToolbarComponent, DatoGroupComponent, DatoHighlightPipe, DatoHotkeys, DatoHotkeysDirective, DatoHotkeysHelpComponent, DatoHotkeysModule, DatoIconButtonComponent, DatoIconButtonModule, DatoIconComponent, DatoIconModule, DatoInfiniteScrollComponent, DatoInfiniteScrollModule, DatoInputComponent, DatoInputModule, DatoInputNumberComponent, DatoInputNumberDirective, DatoInputNumberModule, DatoKebabCasePipe, DatoLinkButtonComponent, DatoLinkButtonModule, DatoListComponent, DatoListModule, DatoListNoDataComponent, DatoListNoResultComponent, DatoListV2Component, DatoListV2Module, DatoLoaderComponent, DatoLoadersModule, DatoMenuComponent, DatoMenuContentDirective, DatoMenuItemDirective, DatoMenuModule, DatoMenuTriggerForDirective, DatoMultiOptionComponent, DatoMultiOptionV2Component, DatoOperatorTogglerComponent, DatoOperatorTogglerModule, DatoOptionComponent, DatoOptionV2Component, DatoOptionsModule, DatoOriginDirective, DatoOverlay, DatoPageLoaderComponent, DatoPanel, DatoPanelComponent, DatoPanelContentComponent, DatoPanelFooterComponent, DatoPanelHeaderComponent, DatoPanelInternalConfig, DatoPanelModule, DatoPanelRef, DatoPillsComponent, DatoPillsModule, DatoPipesModule, DatoPopover, DatoPopoverComponent, DatoPopoverModule, DatoProgressBarComponent, DatoProgressBarModule, DatoRadioComponent, DatoRadioModule, DatoRichTextDirective, DatoRichTextModule, DatoSearchResultsGroupSortPipe, DatoSearchResultsSortPipe, DatoSearchableContainerComponent, DatoSearchableDirective, DatoSearchableHighlightDirective, DatoSearchableModule, DatoSelectActiveDirective, DatoSelectComponent, DatoSelectEmptyComponent, DatoSelectModule, DatoSliderComponent, DatoSliderModule, DatoSnackbar, DatoSnackbarComponent, DatoSnackbarModule, DatoSortableComponent, DatoSortableHandleDirective, DatoSortableModule, DatoStaticImageSrcDirective, DatoStaticImagesSrcModule, DatoSubscribeContext, DatoSubscribeDirective, DatoTab, DatoTabContent, DatoTabTitle, DatoTabsModule, DatoTabset, DatoTemplatePortal, DatoTextModule, DatoThemesModule, DatoToast, DatoToastComponent, DatoToastModule, DatoTogglerComponent, DatoTogglerModule, DatoTooltipDirective, DatoTooltipV2Directive, DatoTrackByPropPipe, DatoTranslateService, DatoTreePipe, DatoTriggerMulti, DatoTriggerSingle, DialogConfig, DialogResultStatus, Dimensions, EventModifiersPlugin, GridActionType, GridMinWidths, GridRowSelectionType, GridToolbarService, ISO_FORMAT, IconRegistry, KeyCodes, KeyboardEventKeys, ListValueTypes, MockService, OperatorTypes, POPPER_BOUNDARY, PaletteDirective, PanelResultCloseTrigger, PillType, PopoverCloseDirective, PopoverContentDirective, PopoverRef, PopoverTrigger, ROOT_NODE_ID, RelativeDateType, RenderMethod, RowSelectionType, RowSelectionTypeV2, SELECT_MAX_HEIGHT, SUPPORTED_LOCALES, SelectType, SnackbarRef, SnackbarType, Store, SvgRegistry, ToolbarActionType, ToolbarArea, ToolbarConfirmation, ToolbarDeleteConfirmation, ToolbarHandler, TranslatePipe, Types, _valueChanges, a, addClass, addJSObjectCompletor, allowedFileTypes, alphabeticalGroupSort, alphabeticalSort, appendChild, appendScript, appendStyle, appendToBody, assertString, camelCase, capitalize, cloneDeep, closest, coerceArray, coerceElement, compareWith, compose, convertFromTreeData, convertToTreeData, copyToClipboard, createComponent, createElement, createGUID, createHTMLCompletor, curry, dateCompare, daysOfTheMonth, debounce, declarations$2 as declarations, deepEqual, deepmerge, defaultActions$1 as defaultActions, defaultConfig, defaultEditableColumnRenderer, defaultGridOptions, defaultGridTreeLabel, defaultOptionsDisplayLimit, defaultTreeOptions, dialogSizePreset, diff, difference, differenceBy, dimensionsChanges, directives, drop, editableCellRendererWithSearchHighlight, escape, escapeRegExp, filter, filterByControlValue, filterByTerm, filterDialogDismissed, filterDialogSuccess, filterGroupByControlValue, filterGroupByTerm, filterKey, find, findIndex, findKey, fixNgLeaks, forEach, formatKeys, generateMonths, get, getAttr, getCustomRange, getDateISOString, getDefaultConfirmationOptions, getDefaultOptions, getDefaultsToastOptions, getElementCoords, getFunctionName, getGridConfiguration, getGridModel, getInitials, getLocalizedFormat, getMultiTemplate, getOptionTemplate, getPopperDefaults, getUTCDate, getVisibleActions, gridTreeFilePathKey, groupBy, groupSortOrder, has, inView, intersection, invert, isArrayValuesEqual, isArrowUpDown, isBoolean, isEmpty, isEmptyString, isEnter, isEqual, isEscape, isFraction, isFunction, isMacintosh, isNil, isNumber, isObject, isRangeCondition, isRangeCustom, isString, isTestEnv, isValidMediaLink, kebabCase, keyBy, keysSymbols, last, map, mapKeys, mapValues, maxFileSize, merge, minBy, mockInDev, mocks, ngContentResolver, noop, normalizeData, omit, omitBy, optionalDebounce, pallete, parseDateString, partial, polling, prependChild, publicApi$1 as publicApi, query, queryAll, random, rawDiff, reject, relativeDateTypes, removeClass, resolveRange, round, searchHighlightCellRenderer, searchResultsGroupSort, searchResultsSort, setAttr, setAttribute, setDimensions, setEmptyFolderClass, setGridConfiguration, setGridModel, setMaxDimensions, setMinDimensions, setStyle, setStyles, size, sortBy, stubs, supportedLocales, tapLog, tapOnce, throttle, toBoolean, toFormData, toNumber, toResponseBody, toString, toggleClass, toolbarActionToContextAction, tryParsePivotValue, unescape, union, uniq, uniqBy, uploadProgress, validBase64Image, validUrl, validateCondition, validateDate, validateDateCondition, validateFilter, validateNumberCondition, validateRange, validateStringCondition, values, workerMap, zoneStable, ɵ0$2 as ɵ0, ɵ1$2 as ɵ1, ɵ2, DATO_CORE_CONFIG as ɵb, DatoGridHelper as ɵc, Popper as ɵd, GridQuery as ɵe, GridStore as ɵf, GridService as ɵg, DatoDateRangesFilterPipe as ɵh, ListStore as ɵi, DatoListSelectAllComponent as ɵj, DatoGridMultiSelectColumnHeaderComponent as ɵk, DatoGridItemsCountCellComponent as ɵl, DatoGridV2ToolbarMoreMenuComponent as ɵm, DatoGridSearchBarComponent as ɵn, RichTextService as ɵo };
25264
+ export { APP_TRANSLATE, AceService, BaseCustomControl, COMPARE_RESULT, CUSTOM_RANGE_ID, ColorPalette, ConfirmationType, ContentRef, ContentType, CustomHeaderControllerService, DATE_PICKER_CONFIG, DATE_PICKER_POPOVER_ID, DATO_CORE_LOGGER, DATO_FORM_ERRORS, DATO_GRID_STORAGE_API, DEFAULT_FORMAT, DEFAULT_GRID_SEARCH_DEBOUNCE_TIME, DatePickerConfig, DatePickerMonthComponent, DateType, DatoAccordionComponent, DatoAccordionContentComponent, DatoAccordionGroupComponent, DatoAccordionHeaderComponent, DatoAccordionModule, DatoAceDirective, DatoAceDraggableDirective, DatoAceModule, DatoActionType, DatoAutoCompleteContentDirective, DatoAutoFocusDirective, DatoAutocompleteComponent, DatoAutocompleteDirective, DatoAutocompleteModule, DatoBreadcrumbsComponent, DatoBreadcrumbsModule, DatoButtonComponent, DatoButtonGroupComponent, DatoButtonGroupModule, DatoButtonModule, DatoCamelCasePipe, DatoCarouselComponent, DatoCarouselItemDirective, DatoCarouselItemElement, DatoCarouselModule, DatoCheckboxComponent, DatoCheckboxModule, DatoClipboardDirective, DatoColorDirective, DatoConfirmationDialogComponent, DatoControlErrorComponent, DatoControlErrorContainerDirective, DatoControlErrorsDirective, DatoCoreError, DatoCoreModule, DatoCustomHeaderTemplateComponent, DatoCustomHeaderTemplateDirective, DatoCustomMoreMenuTemplateDirective, DatoDatePickerContainerComponent, DatoDatePickerModule, DatoDatePickerRangeComponent, DatoDatePickerSingleComponent, DatoDialog, DatoDialogCloseDirective, DatoDialogComponent, DatoDialogContentComponent, DatoDialogDismissDirective, DatoDialogFooterComponent, DatoDialogHeaderComponent, DatoDialogModule, DatoDialogRef, DatoDirectivesModule, DatoDisableControlDirective, DatoDraggableDirective, DatoDynamicContentComponent, DatoDynamicContentModule, DatoEditableHeaderComponent, DatoEditableHeaderModule, DatoFileInputComponent, DatoFileInputDefaultComponent, DatoFileInputModule, DatoFilterConditions, DatoFontDirective, DatoFontIconComponent, DatoFontIconModule, DatoFormSubmitDirective, DatoFormValidationModule, DatoGrid, DatoGridAPI, DatoGridAvatarCellComponent, DatoGridColumnDisplayMenuComponent, DatoGridColumnHeaderComponent, DatoGridColumnHeaderMoreMenuComponent, DatoGridColumnTypes, DatoGridComponent, DatoGridControllerComponent, DatoGridDateFilterOptions, DatoGridFilterComponent, DatoGridFilterOptionsMap, DatoGridFilterSections, DatoGridFilterTypes, DatoGridGroupsMenuComponent, DatoGridHeaderComponent, DatoGridHeaderV2Component, DatoGridInitialsCellComponent, DatoGridItemsCellComponent, DatoGridModule, DatoGridMoreMenuActions, DatoGridNumberFilterOptions, DatoGridOnHoverComponent, DatoGridPaginationComponent, DatoGridPaginationV2Component, DatoGridStatusCellComponent, DatoGridStringFilterOptions, DatoGridToolbarComponent, DatoGridToolbarItemDirective, DatoGridToolbarItemElementDirective, DatoGridV2Component, DatoGridV2LoaderComponent, DatoGridV2Module, DatoGridV2NoDataOverlayComponent, DatoGridV2ToolbarButtonComponent, DatoGridV2ToolbarComponent, DatoGroupComponent, DatoHighlightPipe, DatoHotkeys, DatoHotkeysDirective, DatoHotkeysHelpComponent, DatoHotkeysModule, DatoIconButtonComponent, DatoIconButtonModule, DatoIconComponent, DatoIconModule, DatoInfiniteScrollComponent, DatoInfiniteScrollModule, DatoInputComponent, DatoInputModule, DatoInputNumberComponent, DatoInputNumberDirective, DatoInputNumberModule, DatoKebabCasePipe, DatoLinkButtonComponent, DatoLinkButtonModule, DatoListComponent, DatoListModule, DatoListNoDataComponent, DatoListNoResultComponent, DatoListV2Component, DatoListV2Module, DatoLoaderComponent, DatoLoadersModule, DatoMenuComponent, DatoMenuContentDirective, DatoMenuItemDirective, DatoMenuModule, DatoMenuTriggerForDirective, DatoMultiOptionComponent, DatoMultiOptionV2Component, DatoOperatorTogglerComponent, DatoOperatorTogglerModule, DatoOptionComponent, DatoOptionV2Component, DatoOptionsModule, DatoOriginDirective, DatoOverlay, DatoPageLoaderComponent, DatoPanel, DatoPanelComponent, DatoPanelContentComponent, DatoPanelFooterComponent, DatoPanelHeaderComponent, DatoPanelInternalConfig, DatoPanelModule, DatoPanelRef, DatoPillsComponent, DatoPillsModule, DatoPipesModule, DatoPopover, DatoPopoverComponent, DatoPopoverModule, DatoProgressBarComponent, DatoProgressBarModule, DatoRadioComponent, DatoRadioModule, DatoRichTextDirective, DatoRichTextModule, DatoSearchResultsGroupSortPipe, DatoSearchResultsSortPipe, DatoSearchableContainerComponent, DatoSearchableDirective, DatoSearchableHighlightDirective, DatoSearchableModule, DatoSelectActiveDirective, DatoSelectComponent, DatoSelectEmptyComponent, DatoSelectModule, DatoSliderComponent, DatoSliderModule, DatoSnackbar, DatoSnackbarComponent, DatoSnackbarModule, DatoSortableComponent, DatoSortableHandleDirective, DatoSortableModule, DatoStaticImageSrcDirective, DatoStaticImagesSrcModule, DatoSubscribeContext, DatoSubscribeDirective, DatoTab, DatoTabContent, DatoTabTitle, DatoTabsModule, DatoTabset, DatoTemplatePortal, DatoTextModule, DatoThemesModule, DatoToast, DatoToastComponent, DatoToastModule, DatoTogglerComponent, DatoTogglerModule, DatoTooltipDirective, DatoTooltipV2Directive, DatoTrackByPropPipe, DatoTranslateService, DatoTreePipe, DatoTriggerMulti, DatoTriggerSingle, DialogConfig, DialogResultStatus, Dimensions, EventModifiersPlugin, GridActionType, GridMinWidths, GridRowSelectionType, GridToolbarService, ISO_FORMAT, IconRegistry, KeyCodes, KeyboardEventKeys, ListValueTypes, MockService, OperatorTypes, POPPER_BOUNDARY, PaletteDirective, PanelResultCloseTrigger, PillType, PopoverCloseDirective, PopoverContentDirective, PopoverRef, PopoverTrigger, ROOT_NODE_ID, RelativeDateType, RenderMethod, RowSelectionType, RowSelectionTypeV2, SELECT_MAX_HEIGHT, SUPPORTED_LOCALES, SelectType, SnackbarRef, SnackbarType, Store, SvgRegistry, ToolbarActionType, ToolbarArea, ToolbarConfirmation, ToolbarDeleteConfirmation, ToolbarHandler, TranslatePipe, Types, _valueChanges, a, addClass, addJSObjectCompletor, allowedFileTypes, alphabeticalGroupSort, alphabeticalSort, appendChild, appendScript, appendStyle, appendToBody, assertString, camelCase, capitalize, cloneDeep, closest, coerceArray, coerceElement, compareWith, compose, convertFromTreeData, convertToTreeData, copyToClipboard, createComponent, createElement, createGUID, createHTMLCompletor, curry, dateCompare, daysOfTheMonth, debounce, declarations$2 as declarations, deepEqual, deepmerge, defaultActions$1 as defaultActions, defaultConfig, defaultEditableColumnRenderer, defaultGridOptions, defaultGridTreeLabel, defaultOptionsDisplayLimit, defaultTreeOptions, dialogSizePreset, diff, difference, differenceBy, dimensionsChanges, directives, drop, editableCellRendererWithSearchHighlight, escape, escapeRegExp, filter, filterByControlValue, filterByTerm, filterDialogDismissed, filterDialogSuccess, filterGroupByControlValue, filterGroupByTerm, filterKey, find, findIndex, findKey, fixNgLeaks, forEach, formatKeys, generateMonths, get, getAttr, getCustomRange, getDateISOString, getDefaultConfirmationOptions, getDefaultOptions, getDefaultsToastOptions, getElementCoords, getFunctionName, getGridConfiguration, getGridModel, getInitials, getLocalizedFormat, getMultiTemplate, getOptionTemplate, getPopperDefaults, getUTCDate, getVisibleActions, gridTreeFilePathKey, groupBy, groupSortOrder, has, inView, intersection, invert, isArrayValuesEqual, isArrowUpDown, isBoolean, isEmpty, isEmptyString, isEnter, isEqual, isEscape, isFraction, isFunction, isMacintosh, isNil, isNumber, isObject, isRangeCondition, isRangeCustom, isString, isTestEnv, isValidMediaLink, kebabCase, keyBy, keysSymbols, last, map, mapKeys, mapValues, maxFileSize, merge, minBy, mockInDev, mocks, ngContentResolver, noop, normalizeData, omit, omitBy, optionalDebounce, pallete, parseDateString, partial, polling, prependChild, publicApi$1 as publicApi, query, queryAll, random, rawDiff, reject, relativeDateTypes, removeClass, resolveRange, round, searchHighlightCellRenderer, searchResultsGroupSort, searchResultsSort, setAttr, setAttribute, setDimensions, setEmptyFolderClass, setGridConfiguration, setGridModel, setMaxDimensions, setMinDimensions, setStyle, setStyles, size, sortBy, stubs, supportedLocales, tapLog, tapOnce, throttle, toBoolean, toFormData, toNumber, toResponseBody, toString, toggleClass, toolbarActionToContextAction, tryParsePivotValue, unescape, union, uniq, uniqBy, uploadProgress, validBase64Image, validUrl, validateCondition, validateDate, validateDateCondition, validateFilter, validateNumberCondition, validateRange, validateStringCondition, values, workerMap, zoneStable, ɵ0$2 as ɵ0, ɵ1$2 as ɵ1, ɵ2, DATO_CORE_CONFIG as ɵb, DatoGridHelper as ɵc, Popper as ɵd, GridQuery as ɵe, GridStore as ɵf, GridService as ɵg, DatoDateRangesFilterPipe as ɵh, ListStore as ɵi, DatoListSelectAllComponent as ɵj, DatoGridMultiSelectColumnHeaderComponent as ɵk, DatoGridItemsCountCellComponent as ɵl, DatoGridV2ToolbarMoreMenuComponent as ɵm, DatoGridSearchBarComponent as ɵn };
25286
25265
  //# sourceMappingURL=datorama-core.js.map