@datorama/core 22.0.5-rc.1 → 22.0.6

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 (53) hide show
  1. package/bundle.scss +13 -13
  2. package/bundles/datorama-core.umd.js +80 -92
  3. package/bundles/datorama-core.umd.js.map +1 -1
  4. package/bundles/datorama-core.umd.min.js +15 -15
  5. package/bundles/datorama-core.umd.min.js.map +1 -1
  6. package/datorama-core.d.ts +0 -1
  7. package/datorama-core.metadata.json +1 -1
  8. package/esm2015/datorama-core.js +1 -2
  9. package/esm2015/lib/breadcrumbs/breadcrumbs.component.js +2 -4
  10. package/esm2015/lib/grid-v2/grid/grid-v2.types.js +1 -1
  11. package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +8 -6
  12. package/esm2015/lib/grid-v2/grid-filter/filter-validator.js +3 -1
  13. package/esm2015/lib/grid-v2/grid-filter/grid-filter.component.js +12 -4
  14. package/esm2015/lib/grid-v2/grid-filter/grid-filter.types.js +3 -1
  15. package/esm2015/lib/grid-v2/grid-settings.js +2 -2
  16. package/esm2015/lib/grid-v2/grid-store/grid.query.js +3 -3
  17. package/esm2015/lib/grid-v2/grid-store/grid.service.js +9 -3
  18. package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -7
  19. package/esm2015/lib/icon/icon.types.js +1 -1
  20. package/esm2015/lib/rich-text/rich-text.directive.js +33 -15
  21. package/esm2015/lib/select/select.component.js +16 -16
  22. package/esm2015/lib/version.js +2 -2
  23. package/esm5/datorama-core.js +1 -2
  24. package/esm5/lib/breadcrumbs/breadcrumbs.component.js +2 -4
  25. package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
  26. package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +8 -6
  27. package/esm5/lib/grid-v2/grid-filter/filter-validator.js +3 -1
  28. package/esm5/lib/grid-v2/grid-filter/grid-filter.component.js +12 -4
  29. package/esm5/lib/grid-v2/grid-filter/grid-filter.types.js +3 -1
  30. package/esm5/lib/grid-v2/grid-settings.js +2 -2
  31. package/esm5/lib/grid-v2/grid-store/grid.query.js +3 -3
  32. package/esm5/lib/grid-v2/grid-store/grid.service.js +9 -3
  33. package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -13
  34. package/esm5/lib/icon/icon.types.js +1 -1
  35. package/esm5/lib/rich-text/rich-text.directive.js +34 -16
  36. package/esm5/lib/select/select.component.js +16 -17
  37. package/esm5/lib/version.js +2 -2
  38. package/fesm2015/datorama-core.js +80 -83
  39. package/fesm2015/datorama-core.js.map +1 -1
  40. package/fesm5/datorama-core.js +81 -92
  41. package/fesm5/datorama-core.js.map +1 -1
  42. package/i18n/locale-en_US.json +2 -0
  43. package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -1
  44. package/lib/grid-v2/grid-filter/grid-filter.types.d.ts +3 -1
  45. package/lib/grid-v2/grid-settings.d.ts +2 -2
  46. package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +0 -2
  47. package/lib/icon/icon.types.d.ts +1 -1
  48. package/lib/rich-text/rich-text.directive.d.ts +6 -4
  49. package/lib/select/select.component.d.ts +0 -1
  50. package/package.json +2 -2
  51. package/esm2015/lib/rich-text/rich-text.service.js +0 -50
  52. package/esm5/lib/rich-text/rich-text.service.js +0 -51
  53. package/lib/rich-text/rich-text.service.d.ts +0 -10
@@ -7495,8 +7495,9 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7495
7495
  writeValue(activeOptions) {
7496
7496
  this._model = activeOptions ? coerceArray$1(activeOptions) : [];
7497
7497
  if (this.options) {
7498
+ const overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
7498
7499
  this.markAsActive(this._model, { deselectAll: true });
7499
- this.limitSelectedTo && this.updateDisabledState();
7500
+ overTheLimit && this.updateDisabledState();
7500
7501
  }
7501
7502
  /** For later updates */
7502
7503
  this.cdr.markForCheck();
@@ -7532,7 +7533,7 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7532
7533
  */
7533
7534
  if (this.hasValue && this._initialOpen) {
7534
7535
  this.markAsActive(this._model);
7535
- if (this.limitSelectedTo) {
7536
+ if (this.limitSelectedTo && this._model.length === this.limitSelectedTo) {
7536
7537
  this.updateDisabledState();
7537
7538
  }
7538
7539
  this._initialOpen = false;
@@ -7591,14 +7592,15 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7591
7592
  }
7592
7593
  }
7593
7594
  this.onChange(this._model);
7595
+ this.datoOverlay.scheduleUpdate();
7594
7596
  this.cdr.markForCheck();
7595
- this.asyncUpdateDropdownPosition();
7596
7597
  }
7597
7598
  reorderOptions(newOrder) {
7598
7599
  this._model = newOrder;
7599
7600
  this.onChange(this._model);
7600
7601
  }
7601
7602
  removeOption(option) {
7603
+ const updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
7602
7604
  this._model = this._model.filter(current => current[this.idKey] !== option[this.idKey]);
7603
7605
  const optionToRemove = this.options.find(datoOption => datoOption.option && datoOption.option[this.idKey] === option[this.idKey]);
7604
7606
  /**
@@ -7608,10 +7610,12 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7608
7610
  if (optionToRemove) {
7609
7611
  optionToRemove.active = false;
7610
7612
  }
7611
- this.limitSelectedTo && this.updateDisabledState();
7613
+ updateDisabled && this.updateDisabledState();
7612
7614
  this.onChange(this._model);
7613
7615
  this.cdr.markForCheck();
7614
- this.asyncUpdateDropdownPosition();
7616
+ if (this.datoOverlay.attached) {
7617
+ this.datoOverlay.scheduleUpdate();
7618
+ }
7615
7619
  }
7616
7620
  preventBodyScroll(event) {
7617
7621
  if (isArrowUpDown(event)) {
@@ -7808,7 +7812,7 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7808
7812
  this.searchTerm = value;
7809
7813
  this.keyManager.setActiveItem(-1);
7810
7814
  this.cdr.markForCheck();
7811
- this.asyncUpdateDropdownPosition();
7815
+ this.datoOverlay && this.datoOverlay.scheduleUpdate();
7812
7816
  });
7813
7817
  }
7814
7818
  /**
@@ -7882,6 +7886,9 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7882
7886
  if (!datoOption) {
7883
7887
  return;
7884
7888
  }
7889
+ const modelLength = this._model.length;
7890
+ const updateDisabled = this.limitSelectedTo &&
7891
+ (modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
7885
7892
  datoOption.active = !datoOption.active;
7886
7893
  const rawOption = datoOption.option;
7887
7894
  if (datoOption.active) {
@@ -7890,10 +7897,10 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7890
7897
  else {
7891
7898
  this._model = this._model.filter(current => current[this.idKey] !== rawOption[this.idKey]);
7892
7899
  }
7893
- this.limitSelectedTo && this.updateDisabledState();
7900
+ updateDisabled && this.updateDisabledState();
7894
7901
  this.onChange(this._model);
7895
7902
  this.cdr.markForCheck();
7896
- this.asyncUpdateDropdownPosition();
7903
+ this.datoOverlay.scheduleUpdate();
7897
7904
  }
7898
7905
  activateInfiniteScroll() {
7899
7906
  this.infiniteSubscription = fromEvent(document.querySelector('.dato-select__dropdown'), 'scroll')
@@ -7934,13 +7941,6 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7934
7941
  }
7935
7942
  }
7936
7943
  }
7937
- // Make sure the overlay will be update AFTER Change Detection was done
7938
- // So the items in the input (and its height) is update
7939
- asyncUpdateDropdownPosition() {
7940
- if (this.datoOverlay && this.datoOverlay.attached) {
7941
- setTimeout(() => this.datoOverlay.scheduleUpdate(), 0);
7942
- }
7943
- }
7944
7944
  };
7945
7945
  DatoSelectComponent.ctorParameters = () => [
7946
7946
  { type: ChangeDetectorRef },
@@ -10104,10 +10104,10 @@ let GridQuery = class GridQuery extends Query {
10104
10104
  const uniquePivotParents = uniq(this.api.columns.getSecondaryColumns().map(column => column.getParent()));
10105
10105
  const secondaryColumn = this.getSecondaryColumn(pivotedColumn.getColId());
10106
10106
  const pivotColIndex = uniquePivotParents.indexOf(secondaryColumn.getParent());
10107
- return { colId: getColField(pivotedColumn.getColDef()), sort, pivotColIndex };
10107
+ return { colId, sort, pivotColIndex, colField: getColField(pivotedColumn.getColDef()) };
10108
10108
  }
10109
10109
  else if (column) {
10110
- return { colId: getColField(column.getColDef()), sort };
10110
+ return { colId, sort, colField: getColField(column.getColDef()) };
10111
10111
  }
10112
10112
  }
10113
10113
  else {
@@ -10259,6 +10259,8 @@ var DatoFilterConditions;
10259
10259
  DatoFilterConditions["NOT_IN_LIST"] = "NOT_IN_LIST";
10260
10260
  DatoFilterConditions["IS_EMPTY"] = "IS_EMPTY";
10261
10261
  DatoFilterConditions["NOT_EMPTY"] = "NOT_EMPTY";
10262
+ DatoFilterConditions["IS_NULL"] = "IS_NULL";
10263
+ DatoFilterConditions["NOT_NULL"] = "NOT_NULL";
10262
10264
  })(DatoFilterConditions || (DatoFilterConditions = {}));
10263
10265
  const DatoGridDateFilterOptions = [
10264
10266
  DatoFilterConditions.IN_RANGE,
@@ -10339,8 +10341,10 @@ function validateNumberCondition(unparsedRowValue, { condition, value, rangeEnd
10339
10341
  case DatoFilterConditions.IN_RANGE:
10340
10342
  return rowValue >= filterValue && rowValue <= parseFloat(rangeEnd);
10341
10343
  case DatoFilterConditions.IS_EMPTY:
10344
+ case DatoFilterConditions.IS_NULL:
10342
10345
  return isNil(rowValue);
10343
10346
  case DatoFilterConditions.NOT_EMPTY:
10347
+ case DatoFilterConditions.NOT_NULL:
10344
10348
  return !isNil(rowValue);
10345
10349
  }
10346
10350
  }
@@ -10487,7 +10491,7 @@ function toolbarActionToContextAction(params) {
10487
10491
  return contextActions;
10488
10492
  }
10489
10493
 
10490
- const DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_AP');
10494
+ const DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_API');
10491
10495
 
10492
10496
  const defaultEditableColumnRenderer = params => params && params.value ? `<div class="value-wrapper ellipsis">${params.value}</div>` : null;
10493
10497
  const editableCellRendererWithSearchHighlight = (params, searchTerm) => {
@@ -11216,10 +11220,11 @@ let DatoGridFilterComponent = class DatoGridFilterComponent {
11216
11220
  }
11217
11221
  ngOnInit() {
11218
11222
  const { gridService, gridQuery } = this.popover.data;
11219
- const { filter, filtersConfig = {}, pivotValueColumn, pivotKeys } = this.colDef;
11223
+ const { filter, pivotValueColumn, pivotKeys } = this.colDef;
11220
11224
  const colDefs = gridQuery.api.columns.getAllColumns().map(column => column.getColDef());
11221
11225
  this.colField = getColField(this.colDef);
11222
11226
  const colDef = colDefs.find(colDef => colDef.field === this.colField);
11227
+ const filtersConfig = colDef.filtersConfig || this.colDef.filtersConfig || {};
11223
11228
  const colFilter = filter || colDef.filter;
11224
11229
  const filterOptions = DatoGridFilterOptionsMap[colFilter];
11225
11230
  this.pivotColumn = gridQuery.api.columns.getSecondaryPivotColumn(pivotKeys, pivotValueColumn);
@@ -11241,7 +11246,11 @@ let DatoGridFilterComponent = class DatoGridFilterComponent {
11241
11246
  if (this.filterSections.Conditional) {
11242
11247
  let filterConditions = filterOptions || DatoGridStringFilterOptions;
11243
11248
  if (filtersConfig.showEmptyConditions) {
11244
- filterConditions = [...filterConditions, DatoFilterConditions.IS_EMPTY, DatoFilterConditions.NOT_EMPTY];
11249
+ let emptyConditions = [DatoFilterConditions.IS_EMPTY, DatoFilterConditions.NOT_EMPTY];
11250
+ if (this.filterType === DatoGridFilterTypes.Number) {
11251
+ emptyConditions = [DatoFilterConditions.IS_NULL, DatoFilterConditions.NOT_NULL];
11252
+ }
11253
+ filterConditions = [...filterConditions, ...emptyConditions];
11245
11254
  }
11246
11255
  this.conditionalFilterOptions = filterConditions.map((operand, id) => ({
11247
11256
  id,
@@ -11604,7 +11613,10 @@ let DatoGridFilterComponent = class DatoGridFilterComponent {
11604
11613
  valueControl.updateValueAndValidity();
11605
11614
  }
11606
11615
  isEmptyOperand(operand) {
11607
- return operand === DatoFilterConditions.IS_EMPTY || operand === DatoFilterConditions.NOT_EMPTY;
11616
+ return (operand === DatoFilterConditions.IS_EMPTY ||
11617
+ operand === DatoFilterConditions.NOT_EMPTY ||
11618
+ operand === DatoFilterConditions.IS_NULL ||
11619
+ operand === DatoFilterConditions.NOT_NULL);
11608
11620
  }
11609
11621
  isStringArray(value) {
11610
11622
  return isString(value[0]);
@@ -12730,8 +12742,7 @@ let GridService = class GridService {
12730
12742
  this.updateSettings({ gridAlignment, columnsSizes: null });
12731
12743
  }
12732
12744
  saveSettingsToServer(settings) {
12733
- const isGlobal = this.gridQuery.getGridOptions().isGlobalSettings;
12734
- this.storageAPI.set(this.gridName, settings, isGlobal);
12745
+ this.storageAPI.set(this.gridName, settings);
12735
12746
  }
12736
12747
  /**
12737
12748
  * @internal used to log grid events to the platform's logging service
@@ -13092,6 +13103,13 @@ let GridService = class GridService {
13092
13103
  column
13093
13104
  };
13094
13105
  }
13106
+ if (condition === DatoFilterConditions.IS_NULL || condition === DatoFilterConditions.NOT_NULL) {
13107
+ return {
13108
+ condition: DatoFilterConditions.IS_NULL,
13109
+ value: condition === DatoFilterConditions.IS_NULL ? 'true' : 'false',
13110
+ column
13111
+ };
13112
+ }
13095
13113
  return Object.assign(Object.assign({}, item), { column });
13096
13114
  })
13097
13115
  };
@@ -13633,16 +13651,18 @@ let DatoGridControllerComponent = class DatoGridControllerComponent {
13633
13651
  .pipe(switchMap(() => {
13634
13652
  this.gridOptions = this.normalizeOptions();
13635
13653
  agGrid.gridOptions = this.gridOptions;
13636
- const isGlobal = this.gridOptions.isGlobalSettings;
13637
- const settingsLoader = this.gridOptions.saveSettings === false
13638
- ? of(null)
13639
- : this.storageAPI.get(this.gridOptions.gridName, isGlobal);
13654
+ const settingsLoader = this.gridOptions.saveSettings === false ? of(null) : this.storageAPI.get(this.gridOptions.gridName);
13640
13655
  return combineLatest([agGrid.gridReady, settingsLoader]);
13641
13656
  }), untilDestroyed(this))
13642
13657
  .subscribe(([{ api, columnApi }, savedSettings = {}]) => {
13643
13658
  if (!this.gridOptions.rowData) {
13644
13659
  api.showLoadingOverlay();
13645
13660
  }
13661
+ if (!this.gridOptions.statusBar) {
13662
+ /** Fix ag-grid bug that doesn't add ag-hidden class to the status bar, which only get fixed in later versions */
13663
+ const el = agGridEl.querySelector('.ag-status-bar');
13664
+ addClass(el, 'ag-hidden');
13665
+ }
13646
13666
  const gridApi = { grid: api, columns: columnApi };
13647
13667
  this.gridService._setApi(gridApi, agGrid);
13648
13668
  this.gridQuery._setApi(gridApi, agGrid);
@@ -14754,12 +14774,6 @@ let DatoGridV2ToolbarComponent = class DatoGridV2ToolbarComponent {
14754
14774
  this.registerGroupListeners();
14755
14775
  this.subscribeRowsSelectionData();
14756
14776
  }
14757
- getCellValueChangeEvent() {
14758
- return this.gridController.gridQuery.waitForGrid(() => this.gridQuery.gridRef.cellValueChanged.pipe(debounceTime(100), untilDestroyed(this)));
14759
- }
14760
- getRowDataUpdatedEvent() {
14761
- return this.gridController.gridQuery.waitForGrid(() => this.gridQuery.gridRef.rowDataUpdated.pipe(debounceTime(100), untilDestroyed(this)));
14762
- }
14763
14777
  onActionClick(action) {
14764
14778
  if (isFunction(action.onClick)) {
14765
14779
  const selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
@@ -18827,39 +18841,6 @@ DatoEditableHeaderModule = __decorate([
18827
18841
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
18828
18842
  */
18829
18843
 
18830
- let RichTextService = class RichTextService {
18831
- constructor(http, config) {
18832
- this.http = http;
18833
- this.config = config;
18834
- }
18835
- getLib(appendScriptFunc, appendStyleFunc) {
18836
- if (!this.richTextScript$) {
18837
- this.initLib(appendScriptFunc, appendStyleFunc);
18838
- }
18839
- return this.richTextScript$;
18840
- }
18841
- initLib(appendScriptFunc, appendStyleFunc) {
18842
- this.richTextScript$ = combineLatest([
18843
- this.http
18844
- .get(`${this.config.paths.richText}/index.js`, { responseType: 'text' })
18845
- .pipe(tap(lib => appendScriptFunc(lib, 'rich-text-editor'))),
18846
- this.http
18847
- .get(`${this.config.paths.richText}/plugins/autocomplete/plugin.css`, { responseType: 'text' })
18848
- .pipe(tap(style => appendStyleFunc(style, 'tinymce-autocomplete')))
18849
- ]).pipe(shareReplay(1));
18850
- }
18851
- };
18852
- RichTextService.ctorParameters = () => [
18853
- { type: HttpClient },
18854
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
18855
- ];
18856
- RichTextService.ɵprov = ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(ɵɵinject(HttpClient), ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
18857
- RichTextService = __decorate([
18858
- Injectable({ providedIn: 'root' }),
18859
- __param(1, Inject(DATO_CORE_CONFIG)),
18860
- __metadata("design:paramtypes", [HttpClient, Object])
18861
- ], RichTextService);
18862
-
18863
18844
  /**
18864
18845
  * @license
18865
18846
  * Copyright Datorama. All Rights Reserved.
@@ -18873,12 +18854,12 @@ const getTinymce = () => {
18873
18854
  };
18874
18855
  const ɵ0$3 = getTinymce;
18875
18856
  let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirective extends BaseCustomControl {
18876
- constructor(ngZone, richTextService, config, host) {
18857
+ constructor(ngZone, http, host, config) {
18877
18858
  super();
18878
18859
  this.ngZone = ngZone;
18879
- this.richTextService = richTextService;
18880
- this.config = config;
18860
+ this.http = http;
18881
18861
  this.host = host;
18862
+ this.config = config;
18882
18863
  this.autocompleteOptions = {};
18883
18864
  this.forcePlainTextPasting = false;
18884
18865
  this.format = 'html';
@@ -18905,11 +18886,28 @@ let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirectiv
18905
18886
  base: this.config.paths.richText,
18906
18887
  query: ''
18907
18888
  };
18908
- this.richTextService
18909
- .getLib(appendScript, appendStyle)
18910
- .pipe(untilDestroyed(this))
18911
- .subscribe(() => {
18889
+ /**
18890
+ * We support only one instance in load time
18891
+ */
18892
+ if (window.tinymce) {
18912
18893
  this.init.call(this);
18894
+ }
18895
+ else {
18896
+ this.loadLib().subscribe(lib => {
18897
+ appendScript(lib, 'rich-text-editor');
18898
+ this.init.call(this);
18899
+ this.loadAutoCompleteStyle();
18900
+ });
18901
+ }
18902
+ }
18903
+ loadLib() {
18904
+ return this.http.get(`${this.config.paths.richText}/index.js`, { responseType: 'text' });
18905
+ }
18906
+ loadAutoCompleteStyle() {
18907
+ this.http
18908
+ .get(`${this.config.paths.richText}/plugins/autocomplete/plugin.css`, { responseType: 'text' })
18909
+ .subscribe(style => {
18910
+ appendStyle(style, 'tinymce-autocomplete');
18913
18911
  });
18914
18912
  }
18915
18913
  initEditor(_, editor) {
@@ -19010,9 +19008,9 @@ let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirectiv
19010
19008
  };
19011
19009
  DatoRichTextDirective.ctorParameters = () => [
19012
19010
  { type: NgZone },
19013
- { type: RichTextService },
19014
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] },
19015
- { type: ElementRef }
19011
+ { type: HttpClient },
19012
+ { type: ElementRef },
19013
+ { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
19016
19014
  ];
19017
19015
  __decorate([
19018
19016
  Input(),
@@ -19078,9 +19076,10 @@ DatoRichTextDirective = DatoRichTextDirective_1 = __decorate([
19078
19076
  }
19079
19077
  ]
19080
19078
  }),
19081
- __param(2, Inject(DATO_CORE_CONFIG)),
19079
+ __param(3, Inject(DATO_CORE_CONFIG)),
19082
19080
  __metadata("design:paramtypes", [NgZone,
19083
- RichTextService, Object, ElementRef])
19081
+ HttpClient,
19082
+ ElementRef, Object])
19084
19083
  ], DatoRichTextDirective);
19085
19084
 
19086
19085
  /**
@@ -21361,9 +21360,7 @@ let DatoBreadcrumbsComponent = class DatoBreadcrumbsComponent {
21361
21360
  this._breadcrumbs = [...start, ...dots, ...end];
21362
21361
  }
21363
21362
  initEditableHeader() {
21364
- this.headerControl.valueChanges
21365
- .pipe(debounceTime(300), untilDestroyed(this))
21366
- .subscribe((res) => {
21363
+ this.headerControl.valueChanges.pipe(debounceTime(300), untilDestroyed(this)).subscribe((res) => {
21367
21364
  this.updateEditableText.emit(res);
21368
21365
  this.cdr.detectChanges();
21369
21366
  });
@@ -22628,7 +22625,7 @@ function fixNgLeaks() {
22628
22625
  };
22629
22626
  }
22630
22627
 
22631
- window.coreVersion = '22.1.4-rc.';
22628
+ window.coreVersion = '22.0.6';
22632
22629
 
22633
22630
  /**
22634
22631
  * @license
@@ -22642,5 +22639,5 @@ window.coreVersion = '22.1.4-rc.';
22642
22639
  * Generated bundle index. Do not edit.
22643
22640
  */
22644
22641
 
22645
- 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 };
22642
+ 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 };
22646
22643
  //# sourceMappingURL=datorama-core.js.map