@datorama/core 22.9.9-rc.2 → 22.9.9

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 (46) hide show
  1. package/bundles/datorama-core.umd.js +62 -91
  2. package/bundles/datorama-core.umd.js.map +1 -1
  3. package/bundles/datorama-core.umd.min.js +16 -16
  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-cell-components/grid-status-cell/grid-status-cell.component.js +10 -6
  11. package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +2 -5
  12. package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +3 -2
  13. package/esm2015/lib/grid-v2/grid-settings.js +2 -2
  14. package/esm2015/lib/grid-v2/grid-store/grid.service.js +2 -3
  15. package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -7
  16. package/esm2015/lib/loaders/page-loader/page-loader.component.js +2 -7
  17. package/esm2015/lib/rich-text/rich-text.directive.js +38 -20
  18. package/esm2015/lib/select/select.component.js +9 -4
  19. package/esm2015/lib/version.js +2 -2
  20. package/esm5/datorama-core.js +1 -2
  21. package/esm5/lib/breadcrumbs/breadcrumbs.component.js +2 -4
  22. package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
  23. package/esm5/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +10 -6
  24. package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +2 -5
  25. package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +5 -2
  26. package/esm5/lib/grid-v2/grid-settings.js +2 -2
  27. package/esm5/lib/grid-v2/grid-store/grid.service.js +2 -3
  28. package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -13
  29. package/esm5/lib/loaders/page-loader/page-loader.component.js +2 -7
  30. package/esm5/lib/rich-text/rich-text.directive.js +39 -21
  31. package/esm5/lib/select/select.component.js +9 -4
  32. package/esm5/lib/version.js +2 -2
  33. package/fesm2015/datorama-core.js +60 -83
  34. package/fesm2015/datorama-core.js.map +1 -1
  35. package/fesm5/datorama-core.js +63 -91
  36. package/fesm5/datorama-core.js.map +1 -1
  37. package/lib/grid-v2/grid/grid-v2.types.d.ts +4 -3
  38. package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts +6 -1
  39. package/lib/grid-v2/grid-settings.d.ts +2 -2
  40. package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +0 -2
  41. package/lib/loaders/page-loader/page-loader.component.d.ts +0 -1
  42. package/lib/rich-text/rich-text.directive.d.ts +6 -4
  43. package/package.json +2 -2
  44. package/esm2015/lib/rich-text/rich-text.service.js +0 -50
  45. package/esm5/lib/rich-text/rich-text.service.js +0 -51
  46. package/lib/rich-text/rich-text.service.d.ts +0 -10
@@ -7604,8 +7604,9 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7604
7604
  writeValue(activeOptions) {
7605
7605
  this._model = activeOptions ? coerceArray$1(activeOptions) : [];
7606
7606
  if (this.options) {
7607
+ const overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
7607
7608
  this.markAsActive(this._model, { deselectAll: true });
7608
- this.limitSelectedTo && this.updateDisabledState();
7609
+ overTheLimit && this.updateDisabledState();
7609
7610
  }
7610
7611
  /** For later updates */
7611
7612
  this.cdr.markForCheck();
@@ -7710,6 +7711,7 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7710
7711
  this.onChange(this._model);
7711
7712
  }
7712
7713
  removeOption(option) {
7714
+ const updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
7713
7715
  this._model = this._model.filter(current => current[this.idKey] !== option[this.idKey]);
7714
7716
  const optionToRemove = this.options.find(datoOption => datoOption.option && datoOption.option[this.idKey] === option[this.idKey]);
7715
7717
  /**
@@ -7719,7 +7721,7 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7719
7721
  if (optionToRemove) {
7720
7722
  optionToRemove.active = false;
7721
7723
  }
7722
- this.limitSelectedTo && this.updateDisabledState();
7724
+ updateDisabled && this.updateDisabledState();
7723
7725
  this.onChange(this._model);
7724
7726
  this.cdr.markForCheck();
7725
7727
  this.asyncUpdateDropdownPosition();
@@ -7993,6 +7995,9 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
7993
7995
  if (!datoOption) {
7994
7996
  return;
7995
7997
  }
7998
+ const modelLength = this._model.length;
7999
+ const updateDisabled = this.limitSelectedTo &&
8000
+ (modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
7996
8001
  datoOption.active = !datoOption.active;
7997
8002
  const rawOption = datoOption.option;
7998
8003
  if (datoOption.active) {
@@ -8001,7 +8006,7 @@ let DatoSelectComponent = class DatoSelectComponent extends BaseCustomControl {
8001
8006
  else {
8002
8007
  this._model = this._model.filter(current => current[this.idKey] !== rawOption[this.idKey]);
8003
8008
  }
8004
- this.limitSelectedTo && this.updateDisabledState();
8009
+ updateDisabled && this.updateDisabledState();
8005
8010
  this.onChange(this._model);
8006
8011
  this.cdr.markForCheck();
8007
8012
  this.asyncUpdateDropdownPosition();
@@ -10513,7 +10518,7 @@ function toolbarActionToContextAction(params) {
10513
10518
  return contextActions;
10514
10519
  }
10515
10520
 
10516
- const DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_AP');
10521
+ const DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_API');
10517
10522
 
10518
10523
  const defaultEditableColumnRenderer = params => params && params.value ? `<div class="value-wrapper ellipsis">${params.value}</div>` : null;
10519
10524
  const editableCellRendererWithSearchHighlight = (params, searchTerm) => {
@@ -12869,8 +12874,7 @@ let GridService = class GridService {
12869
12874
  this.updateSettings({ gridAlignment, columnsSizes: null });
12870
12875
  }
12871
12876
  saveSettingsToServer(settings) {
12872
- const isGlobal = this.gridQuery.getGridOptions().isGlobalSettings;
12873
- this.storageAPI.set(this.gridName, settings, isGlobal);
12877
+ this.storageAPI.set(this.gridName, settings);
12874
12878
  }
12875
12879
  /**
12876
12880
  * @internal used to log grid events to the platform's logging service
@@ -13779,10 +13783,7 @@ let DatoGridControllerComponent = class DatoGridControllerComponent {
13779
13783
  .pipe(switchMap(() => {
13780
13784
  this.gridOptions = this.normalizeOptions();
13781
13785
  agGrid.gridOptions = this.gridOptions;
13782
- const isGlobal = this.gridOptions.isGlobalSettings;
13783
- const settingsLoader = this.gridOptions.saveSettings === false
13784
- ? of(null)
13785
- : this.storageAPI.get(this.gridOptions.gridName, isGlobal);
13786
+ const settingsLoader = this.gridOptions.saveSettings === false ? of(null) : this.storageAPI.get(this.gridOptions.gridName);
13786
13787
  return combineLatest([agGrid.gridReady, settingsLoader]);
13787
13788
  }), untilDestroyed(this))
13788
13789
  .subscribe(([{ api, columnApi }, savedSettings = {}]) => {
@@ -14509,7 +14510,7 @@ let DatoGridPaginationV2Component = class DatoGridPaginationV2Component {
14509
14510
  }
14510
14511
  ngOnInit() {
14511
14512
  this.gridQuery
14512
- .waitForGrid(() => this.gridQuery.gridRef.filterChanged)
14513
+ .waitForGrid(() => merge$1(this.gridQuery.gridRef.filterChanged, this.gridQuery.gridRef.rowGroupOpened, this.gridQuery.gridRef.expandOrCollapseAll))
14513
14514
  .pipe(untilDestroyed(this))
14514
14515
  .subscribe(() => {
14515
14516
  this.gridApi.paginationGoToPage(0);
@@ -14907,12 +14908,6 @@ let DatoGridV2ToolbarComponent = class DatoGridV2ToolbarComponent {
14907
14908
  this.registerGroupListeners();
14908
14909
  this.subscribeRowsSelectionData();
14909
14910
  }
14910
- getCellValueChangeEvent() {
14911
- return this.gridController.gridQuery.waitForGrid(() => this.gridQuery.gridRef.cellValueChanged.pipe(debounceTime(100), untilDestroyed(this)));
14912
- }
14913
- getRowDataUpdatedEvent() {
14914
- return this.gridController.gridQuery.waitForGrid(() => this.gridQuery.gridRef.rowDataUpdated.pipe(debounceTime(100), untilDestroyed(this)));
14915
- }
14916
14911
  onActionClick(action) {
14917
14912
  if (isFunction(action.onClick)) {
14918
14913
  const selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
@@ -17283,7 +17278,6 @@ let DatoPageLoaderComponent = class DatoPageLoaderComponent {
17283
17278
  constructor() {
17284
17279
  this.msg = '';
17285
17280
  this.salesforce = false;
17286
- this.size = 'medium';
17287
17281
  this.circleIds = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];
17288
17282
  }
17289
17283
  };
@@ -17295,14 +17289,10 @@ __decorate([
17295
17289
  Input(),
17296
17290
  __metadata("design:type", Object)
17297
17291
  ], DatoPageLoaderComponent.prototype, "salesforce", void 0);
17298
- __decorate([
17299
- Input(),
17300
- __metadata("design:type", String)
17301
- ], DatoPageLoaderComponent.prototype, "size", void 0);
17302
17292
  DatoPageLoaderComponent = __decorate([
17303
17293
  Component({
17304
17294
  selector: 'dato-page-loader',
17305
- template: "<div class=\"d-flex-column align-center\">\n <ng-container *ngIf=\"salesforce; else datoramaPageLoader\">\n <div class=\"slds-spinner_container\">\n <div role=\"status\" class=\"slds-spinner slds-spinner_brand\" [ngClass]=\"'slds-spinner_' + size\">\n <div class=\"slds-spinner__dot-a\"></div>\n <div class=\"slds-spinner__dot-b\"></div>\n </div>\n </div>\n </ng-container>\n <ng-template #datoramaPageLoader>\n <div class=\"animation-container d-flex align-center d-flex-wrap\">\n <div class=\"circle d-flex align-center\" *ngFor=\"let id of circleIds\" [ngClass]=\"'circle-' + id\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\">\n <circle cx=\"6\" cy=\"6\" r=\"5\" />\n </svg>\n </div>\n </div>\n </ng-template>\n <span class=\"loading-message simple-bold\">{{msg | translate}}</span>\n</div>\n",
17295
+ template: "<div class=\"d-flex-column align-center\">\n <ng-container *ngIf=\"salesforce; else datoramaPageLoader\">\n <div class=\"slds-spinner_container\">\n <div role=\"status\" class=\"slds-spinner slds-spinner_medium slds-spinner_brand\">\n <div class=\"slds-spinner__dot-a\"></div>\n <div class=\"slds-spinner__dot-b\"></div>\n </div>\n </div>\n </ng-container>\n <ng-template #datoramaPageLoader>\n <div class=\"animation-container d-flex align-center d-flex-wrap\">\n <div class=\"circle d-flex align-center\" *ngFor=\"let id of circleIds\" [ngClass]=\"'circle-' + id\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\">\n <circle cx=\"6\" cy=\"6\" r=\"5\" />\n </svg>\n </div>\n </div>\n </ng-template>\n <span class=\"loading-message simple-bold\">{{msg | translate}}</span>\n</div>",
17306
17296
  changeDetection: ChangeDetectionStrategy.OnPush
17307
17297
  })
17308
17298
  ], DatoPageLoaderComponent);
@@ -18190,6 +18180,7 @@ DatoGridV2ToolbarMoreMenuComponent = __decorate([
18190
18180
  let DatoGridStatusCellComponent = class DatoGridStatusCellComponent {
18191
18181
  constructor(cdr) {
18192
18182
  this.cdr = cdr;
18183
+ this.DEFAULT_MIN_WIDTH = 100;
18193
18184
  }
18194
18185
  agInit(params) {
18195
18186
  const { value, valueFormatted, node } = params;
@@ -18204,12 +18195,16 @@ let DatoGridStatusCellComponent = class DatoGridStatusCellComponent {
18204
18195
  const mainCustomCellConfig = customCellConfig || {};
18205
18196
  const valueCustomCellConfig = valueToCustomCellConfig ? valueToCustomCellConfig[params.value] || {} : {};
18206
18197
  const config = Object.assign(Object.assign({}, mainCustomCellConfig), valueCustomCellConfig);
18207
- const { textCssClass, icon, iconCssClass, showSpinner, getIsVisible } = config;
18198
+ const { color, icon, cssClass, iconCssClass, minWidth, showSpinner, getAdditionalText, getIsVisible } = config;
18208
18199
  this.isVisible = !getIsVisible || getIsVisible(params.data);
18200
+ this.color = color || 'primary';
18201
+ this.backgroundClass = `${this.color}-${this.color === 'accent' ? '100' : '200'}-background-color`;
18209
18202
  this.icon = icon;
18203
+ this.minWidth = minWidth || this.DEFAULT_MIN_WIDTH;
18204
+ this.cssClass = cssClass || '';
18210
18205
  this.iconCssClass = iconCssClass || '';
18211
- this.textCssClass = textCssClass || '';
18212
18206
  this.showSpinner = showSpinner;
18207
+ this.additionalText = getAdditionalText ? getAdditionalText(params.data) : null;
18213
18208
  }
18214
18209
  refresh(params) {
18215
18210
  this.agInit(params);
@@ -18223,9 +18218,8 @@ DatoGridStatusCellComponent.ctorParameters = () => [
18223
18218
  DatoGridStatusCellComponent = __decorate([
18224
18219
  Component({
18225
18220
  selector: 'dato-grid-status-cell',
18226
- template: "<div *ngIf=\"!isGroup && isVisible\" class=\"height-100 d-flex items-center\">\n <dato-icon *ngIf=\"icon\" class=\"mr-6 {{iconCssClass}}\" [icon]=\"icon\" datoSize=\"sm\"></dato-icon>\n <dato-page-loader *ngIf=\"showSpinner\" [salesforce]=\"true\" size=\"x-small\" class=\"mr-10 mt-15\"></dato-page-loader>\n <div class=\"dato-simple ellipsis status {{textCssClass}}\"\n [datoTooltipV2]=\"status\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{status}}\n </div>\n</div>\n<span *ngIf=\"isGroup\">{{status}}</span>\n",
18227
- changeDetection: ChangeDetectionStrategy.OnPush,
18228
- styles: [".status{line-height:18px}"]
18221
+ template: "<div *ngIf=\"!isGroup && isVisible\" class=\"height-100 d-flex items-center\">\n <div *ngIf=\"status\" class=\"d-flex justify-center items-center px-15 py-5 {{backgroundClass}} {{cssClass}}\" [style.min-width.px]=\"minWidth\">\n <dato-icon *ngIf=\"icon\" class=\"mr-5 {{iconCssClass}}\" [icon]=\"icon\" datoSize=\"sm\"></dato-icon>\n <div class=\"dato-note {{color}}-800-color\" [class.ellipsis]=\"!additionalText\"\n [datoTooltipV2]=\"status\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\" [datoTooltipDisabled]=\"!!additionalText\">\n {{status}}\n </div>\n <div *ngIf=\"additionalText\" class=\"dato-note {{color}}-800-color ml-3 ellipsis\"\n [datoTooltipV2]=\"status + ' ' + additionalText\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{additionalText}}\n </div>\n <span *ngIf=\"showSpinner\" class=\"dato-spinner-loader ml-5\"></span>\n </div>\n</div>\n<span *ngIf=\"isGroup\">{{status}}</span>\n",
18222
+ changeDetection: ChangeDetectionStrategy.OnPush
18229
18223
  }),
18230
18224
  __metadata("design:paramtypes", [ChangeDetectorRef])
18231
18225
  ], DatoGridStatusCellComponent);
@@ -18981,39 +18975,6 @@ DatoEditableHeaderModule = __decorate([
18981
18975
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
18982
18976
  */
18983
18977
 
18984
- let RichTextService = class RichTextService {
18985
- constructor(http, config) {
18986
- this.http = http;
18987
- this.config = config;
18988
- }
18989
- getLib(appendScriptFunc, appendStyleFunc) {
18990
- if (!this.richTextScript$) {
18991
- this.initLib(appendScriptFunc, appendStyleFunc);
18992
- }
18993
- return this.richTextScript$;
18994
- }
18995
- initLib(appendScriptFunc, appendStyleFunc) {
18996
- this.richTextScript$ = combineLatest([
18997
- this.http
18998
- .get(`${this.config.paths.richText}/index.js`, { responseType: 'text' })
18999
- .pipe(tap(lib => appendScriptFunc(lib, 'rich-text-editor'))),
19000
- this.http
19001
- .get(`${this.config.paths.richText}/plugins/autocomplete/plugin.css`, { responseType: 'text' })
19002
- .pipe(tap(style => appendStyleFunc(style, 'tinymce-autocomplete')))
19003
- ]).pipe(shareReplay(1));
19004
- }
19005
- };
19006
- RichTextService.ctorParameters = () => [
19007
- { type: HttpClient },
19008
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
19009
- ];
19010
- RichTextService.ɵprov = ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(ɵɵinject(HttpClient), ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
19011
- RichTextService = __decorate([
19012
- Injectable({ providedIn: 'root' }),
19013
- __param(1, Inject(DATO_CORE_CONFIG)),
19014
- __metadata("design:paramtypes", [HttpClient, Object])
19015
- ], RichTextService);
19016
-
19017
18978
  /**
19018
18979
  * @license
19019
18980
  * Copyright Datorama. All Rights Reserved.
@@ -19027,20 +18988,20 @@ const getTinymce = () => {
19027
18988
  };
19028
18989
  const ɵ0$3 = getTinymce;
19029
18990
  let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirective extends BaseCustomControl {
19030
- constructor(ngZone, richTextService, config, host) {
18991
+ constructor(ngZone, http, host, config) {
19031
18992
  super();
19032
18993
  this.ngZone = ngZone;
19033
- this.richTextService = richTextService;
19034
- this.config = config;
18994
+ this.http = http;
19035
18995
  this.host = host;
18996
+ this.config = config;
19036
18997
  this.autocompleteOptions = {};
19037
18998
  this.forcePlainTextPasting = false;
19038
18999
  this.format = 'html';
19039
19000
  this.isOneLine = false;
19040
19001
  this.initialValue = '';
19041
- this.defaultPlugins = 'link fullscreen image lists table autocomplete';
19002
+ this.defaultPlugins = 'link fullscreen textcolor colorpicker image lists table textpattern autocomplete';
19042
19003
  this.defaultToolbar = [
19043
- 'fontfamily fontsize forecolor backcolor bold italic underline link',
19004
+ 'fontselect fontsizeselect forecolor backcolor bold italic underline link',
19044
19005
  'alignleft aligncenter alignright alignjustify outdent indent | table numlist bullist | image fullscreen'
19045
19006
  ];
19046
19007
  }
@@ -19059,11 +19020,28 @@ let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirectiv
19059
19020
  base: this.config.paths.richText,
19060
19021
  query: ''
19061
19022
  };
19062
- this.richTextService
19063
- .getLib(appendScript, appendStyle)
19064
- .pipe(untilDestroyed(this))
19065
- .subscribe(() => {
19023
+ /**
19024
+ * We support only one instance in load time
19025
+ */
19026
+ if (window.tinymce) {
19066
19027
  this.init.call(this);
19028
+ }
19029
+ else {
19030
+ this.loadLib().subscribe(lib => {
19031
+ appendScript(lib, 'rich-text-editor');
19032
+ this.init.call(this);
19033
+ this.loadAutoCompleteStyle();
19034
+ });
19035
+ }
19036
+ }
19037
+ loadLib() {
19038
+ return this.http.get(`${this.config.paths.richText}/index.js`, { responseType: 'text' });
19039
+ }
19040
+ loadAutoCompleteStyle() {
19041
+ this.http
19042
+ .get(`${this.config.paths.richText}/plugins/autocomplete/plugin.css`, { responseType: 'text' })
19043
+ .subscribe(style => {
19044
+ appendStyle(style, 'tinymce-autocomplete');
19067
19045
  });
19068
19046
  }
19069
19047
  initEditor(_, editor) {
@@ -19084,6 +19062,8 @@ let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirectiv
19084
19062
  target: this.host.nativeElement,
19085
19063
  width: this.width || 600,
19086
19064
  height: this.height || 300,
19065
+ force_br_newlines: true,
19066
+ force_p_newlines: false,
19087
19067
  resize: 'both',
19088
19068
  branding: false,
19089
19069
  inline: this.inline,
@@ -19091,12 +19071,10 @@ let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirectiv
19091
19071
  readonly: this.disabled,
19092
19072
  plugins: this.plugins || this.defaultPlugins,
19093
19073
  toolbar: isNil(this.toolbar) ? this.defaultToolbar : this.toolbar,
19094
- font_size_formats: '8px 10px 12px 14px 18px 24px 36px',
19074
+ fontsize_formats: '8px 10px 12px 14px 18px 24px 36px',
19095
19075
  min_width: 480,
19096
19076
  menubar: false,
19097
19077
  autocomplete: this.autocompleteOptions,
19098
- suffix: '.min',
19099
- skin: 'tinymce-5',
19100
19078
  setup: editor => {
19101
19079
  this.editor = editor;
19102
19080
  editor.on('init', (e) => {
@@ -19164,9 +19142,9 @@ let DatoRichTextDirective = DatoRichTextDirective_1 = class DatoRichTextDirectiv
19164
19142
  };
19165
19143
  DatoRichTextDirective.ctorParameters = () => [
19166
19144
  { type: NgZone },
19167
- { type: RichTextService },
19168
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] },
19169
- { type: ElementRef }
19145
+ { type: HttpClient },
19146
+ { type: ElementRef },
19147
+ { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
19170
19148
  ];
19171
19149
  __decorate([
19172
19150
  Input(),
@@ -19232,9 +19210,10 @@ DatoRichTextDirective = DatoRichTextDirective_1 = __decorate([
19232
19210
  }
19233
19211
  ]
19234
19212
  }),
19235
- __param(2, Inject(DATO_CORE_CONFIG)),
19213
+ __param(3, Inject(DATO_CORE_CONFIG)),
19236
19214
  __metadata("design:paramtypes", [NgZone,
19237
- RichTextService, Object, ElementRef])
19215
+ HttpClient,
19216
+ ElementRef, Object])
19238
19217
  ], DatoRichTextDirective);
19239
19218
 
19240
19219
  /**
@@ -21515,9 +21494,7 @@ let DatoBreadcrumbsComponent = class DatoBreadcrumbsComponent {
21515
21494
  this._breadcrumbs = [...start, ...dots, ...end];
21516
21495
  }
21517
21496
  initEditableHeader() {
21518
- this.headerControl.valueChanges
21519
- .pipe(debounceTime(300), untilDestroyed(this))
21520
- .subscribe((res) => {
21497
+ this.headerControl.valueChanges.pipe(debounceTime(300), untilDestroyed(this)).subscribe((res) => {
21521
21498
  this.updateEditableText.emit(res);
21522
21499
  this.cdr.detectChanges();
21523
21500
  });
@@ -22782,7 +22759,7 @@ function fixNgLeaks() {
22782
22759
  };
22783
22760
  }
22784
22761
 
22785
- window.coreVersion = '22.10.7-rc.';
22762
+ window.coreVersion = '22.9.9';
22786
22763
 
22787
22764
  /**
22788
22765
  * @license
@@ -22796,5 +22773,5 @@ window.coreVersion = '22.10.7-rc.';
22796
22773
  * Generated bundle index. Do not edit.
22797
22774
  */
22798
22775
 
22799
- 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 };
22776
+ 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 };
22800
22777
  //# sourceMappingURL=datorama-core.js.map