@datorama/core 22.9.8-rc → 22.9.9-rc.2

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 (47) hide show
  1. package/bundles/datorama-core.umd.js +90 -59
  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 +1 -0
  6. package/datorama-core.metadata.json +1 -1
  7. package/esm2015/datorama-core.js +2 -1
  8. package/esm2015/lib/breadcrumbs/breadcrumbs.component.js +4 -2
  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 +6 -10
  11. package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +5 -2
  12. package/esm2015/lib/grid-v2/grid-settings.js +2 -2
  13. package/esm2015/lib/grid-v2/grid-store/grid.service.js +3 -2
  14. package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +7 -1
  15. package/esm2015/lib/loaders/page-loader/page-loader.component.js +7 -2
  16. package/esm2015/lib/rich-text/rich-text.directive.js +20 -38
  17. package/esm2015/lib/rich-text/rich-text.service.js +50 -0
  18. package/esm2015/lib/select/select.component.js +4 -9
  19. package/esm2015/lib/select/trigger-single/trigger-single.component.js +1 -1
  20. package/esm2015/lib/version.js +2 -2
  21. package/esm5/datorama-core.js +2 -1
  22. package/esm5/lib/breadcrumbs/breadcrumbs.component.js +4 -2
  23. package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
  24. package/esm5/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +6 -10
  25. package/esm5/lib/grid-v2/grid-controller/grid-controller.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 +3 -2
  28. package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +13 -1
  29. package/esm5/lib/loaders/page-loader/page-loader.component.js +7 -2
  30. package/esm5/lib/rich-text/rich-text.directive.js +21 -39
  31. package/esm5/lib/rich-text/rich-text.service.js +51 -0
  32. package/esm5/lib/select/select.component.js +4 -9
  33. package/esm5/lib/select/trigger-single/trigger-single.component.js +1 -1
  34. package/esm5/lib/version.js +2 -2
  35. package/fesm2015/datorama-core.js +82 -59
  36. package/fesm2015/datorama-core.js.map +1 -1
  37. package/fesm5/datorama-core.js +90 -60
  38. package/fesm5/datorama-core.js.map +1 -1
  39. package/lib/grid-v2/grid/grid-v2.types.d.ts +3 -4
  40. package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts +1 -6
  41. package/lib/grid-v2/grid-settings.d.ts +2 -2
  42. package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +2 -0
  43. package/lib/loaders/page-loader/page-loader.component.d.ts +1 -0
  44. package/lib/rich-text/rich-text.directive.d.ts +4 -6
  45. package/lib/rich-text/rich-text.service.d.ts +10 -0
  46. package/lib/select/trigger-single/trigger-single.component.d.ts +1 -1
  47. package/package.json +2 -2
@@ -8549,9 +8549,8 @@ 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;
8553
8552
  this.markAsActive(this._model, { deselectAll: true });
8554
- overTheLimit && this.updateDisabledState();
8553
+ this.limitSelectedTo && this.updateDisabledState();
8555
8554
  }
8556
8555
  /** For later updates */
8557
8556
  this.cdr.markForCheck();
@@ -8679,7 +8678,6 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8679
8678
  };
8680
8679
  DatoSelectComponent.prototype.removeOption = function (option) {
8681
8680
  var _this = this;
8682
- var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
8683
8681
  this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
8684
8682
  var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
8685
8683
  /**
@@ -8689,7 +8687,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8689
8687
  if (optionToRemove) {
8690
8688
  optionToRemove.active = false;
8691
8689
  }
8692
- updateDisabled && this.updateDisabledState();
8690
+ this.limitSelectedTo && this.updateDisabledState();
8693
8691
  this.onChange(this._model);
8694
8692
  this.cdr.markForCheck();
8695
8693
  this.asyncUpdateDropdownPosition();
@@ -9037,9 +9035,6 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9037
9035
  if (!datoOption) {
9038
9036
  return;
9039
9037
  }
9040
- var modelLength = this._model.length;
9041
- var updateDisabled = this.limitSelectedTo &&
9042
- (modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
9043
9038
  datoOption.active = !datoOption.active;
9044
9039
  var rawOption = datoOption.option;
9045
9040
  if (datoOption.active) {
@@ -9048,7 +9043,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9048
9043
  else {
9049
9044
  this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
9050
9045
  }
9051
- updateDisabled && this.updateDisabledState();
9046
+ this.limitSelectedTo && this.updateDisabledState();
9052
9047
  this.onChange(this._model);
9053
9048
  this.cdr.markForCheck();
9054
9049
  this.asyncUpdateDropdownPosition();
@@ -11853,7 +11848,7 @@ function toolbarActionToContextAction(params) {
11853
11848
  return contextActions;
11854
11849
  }
11855
11850
 
11856
- var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_API');
11851
+ var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_AP');
11857
11852
 
11858
11853
  var defaultEditableColumnRenderer = function (params) {
11859
11854
  return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
@@ -14440,7 +14435,8 @@ var GridService = /** @class */ (function () {
14440
14435
  this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
14441
14436
  };
14442
14437
  GridService.prototype.saveSettingsToServer = function (settings) {
14443
- this.storageAPI.set(this.gridName, settings);
14438
+ var isGlobal = this.gridQuery.getGridOptions().isGlobalSettings;
14439
+ this.storageAPI.set(this.gridName, settings, isGlobal);
14444
14440
  };
14445
14441
  /**
14446
14442
  * @internal used to log grid events to the platform's logging service
@@ -15445,7 +15441,10 @@ var DatoGridControllerComponent = /** @class */ (function () {
15445
15441
  .pipe(switchMap(function () {
15446
15442
  _this.gridOptions = _this.normalizeOptions();
15447
15443
  agGrid.gridOptions = _this.gridOptions;
15448
- var settingsLoader = _this.gridOptions.saveSettings === false ? of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
15444
+ var isGlobal = _this.gridOptions.isGlobalSettings;
15445
+ var settingsLoader = _this.gridOptions.saveSettings === false
15446
+ ? of(null)
15447
+ : _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
15449
15448
  return combineLatest([agGrid.gridReady, settingsLoader]);
15450
15449
  }), untilDestroyed(this))
15451
15450
  .subscribe(function (_a) {
@@ -16727,6 +16726,18 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
16727
16726
  this.registerGroupListeners();
16728
16727
  this.subscribeRowsSelectionData();
16729
16728
  };
16729
+ DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
16730
+ var _this = this;
16731
+ return this.gridController.gridQuery.waitForGrid(function () {
16732
+ return _this.gridQuery.gridRef.cellValueChanged.pipe(debounceTime(100), untilDestroyed(_this));
16733
+ });
16734
+ };
16735
+ DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
16736
+ var _this = this;
16737
+ return this.gridController.gridQuery.waitForGrid(function () {
16738
+ return _this.gridQuery.gridRef.rowDataUpdated.pipe(debounceTime(100), untilDestroyed(_this));
16739
+ });
16740
+ };
16730
16741
  DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
16731
16742
  if (isFunction(action.onClick)) {
16732
16743
  var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
@@ -19341,6 +19352,7 @@ var DatoPageLoaderComponent = /** @class */ (function () {
19341
19352
  function DatoPageLoaderComponent() {
19342
19353
  this.msg = '';
19343
19354
  this.salesforce = false;
19355
+ this.size = 'medium';
19344
19356
  this.circleIds = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];
19345
19357
  }
19346
19358
  __decorate([
@@ -19351,10 +19363,14 @@ var DatoPageLoaderComponent = /** @class */ (function () {
19351
19363
  Input(),
19352
19364
  __metadata("design:type", Object)
19353
19365
  ], DatoPageLoaderComponent.prototype, "salesforce", void 0);
19366
+ __decorate([
19367
+ Input(),
19368
+ __metadata("design:type", String)
19369
+ ], DatoPageLoaderComponent.prototype, "size", void 0);
19354
19370
  DatoPageLoaderComponent = __decorate([
19355
19371
  Component({
19356
19372
  selector: 'dato-page-loader',
19357
- 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>",
19373
+ 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",
19358
19374
  changeDetection: ChangeDetectionStrategy.OnPush
19359
19375
  })
19360
19376
  ], DatoPageLoaderComponent);
@@ -20333,7 +20349,6 @@ var DatoGridV2ToolbarMoreMenuComponent = /** @class */ (function () {
20333
20349
  var DatoGridStatusCellComponent = /** @class */ (function () {
20334
20350
  function DatoGridStatusCellComponent(cdr) {
20335
20351
  this.cdr = cdr;
20336
- this.DEFAULT_MIN_WIDTH = 100;
20337
20352
  }
20338
20353
  DatoGridStatusCellComponent.prototype.agInit = function (params) {
20339
20354
  var value = params.value, valueFormatted = params.valueFormatted, node = params.node;
@@ -20348,16 +20363,12 @@ var DatoGridStatusCellComponent = /** @class */ (function () {
20348
20363
  var mainCustomCellConfig = customCellConfig || {};
20349
20364
  var valueCustomCellConfig = valueToCustomCellConfig ? valueToCustomCellConfig[params.value] || {} : {};
20350
20365
  var config = __assign(__assign({}, mainCustomCellConfig), valueCustomCellConfig);
20351
- var color = config.color, icon = config.icon, cssClass = config.cssClass, iconCssClass = config.iconCssClass, minWidth = config.minWidth, showSpinner = config.showSpinner, getAdditionalText = config.getAdditionalText, getIsVisible = config.getIsVisible;
20366
+ var textCssClass = config.textCssClass, icon = config.icon, iconCssClass = config.iconCssClass, showSpinner = config.showSpinner, getIsVisible = config.getIsVisible;
20352
20367
  this.isVisible = !getIsVisible || getIsVisible(params.data);
20353
- this.color = color || 'primary';
20354
- this.backgroundClass = this.color + "-" + (this.color === 'accent' ? '100' : '200') + "-background-color";
20355
20368
  this.icon = icon;
20356
- this.minWidth = minWidth || this.DEFAULT_MIN_WIDTH;
20357
- this.cssClass = cssClass || '';
20358
20369
  this.iconCssClass = iconCssClass || '';
20370
+ this.textCssClass = textCssClass || '';
20359
20371
  this.showSpinner = showSpinner;
20360
- this.additionalText = getAdditionalText ? getAdditionalText(params.data) : null;
20361
20372
  };
20362
20373
  DatoGridStatusCellComponent.prototype.refresh = function (params) {
20363
20374
  this.agInit(params);
@@ -20370,8 +20381,9 @@ var DatoGridStatusCellComponent = /** @class */ (function () {
20370
20381
  DatoGridStatusCellComponent = __decorate([
20371
20382
  Component({
20372
20383
  selector: 'dato-grid-status-cell',
20373
- 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",
20374
- changeDetection: ChangeDetectionStrategy.OnPush
20384
+ 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",
20385
+ changeDetection: ChangeDetectionStrategy.OnPush,
20386
+ styles: [".status{line-height:18px}"]
20375
20387
  }),
20376
20388
  __metadata("design:paramtypes", [ChangeDetectorRef])
20377
20389
  ], DatoGridStatusCellComponent);
@@ -21202,6 +21214,40 @@ var DatoEditableHeaderModule = /** @class */ (function () {
21202
21214
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
21203
21215
  */
21204
21216
 
21217
+ var RichTextService = /** @class */ (function () {
21218
+ function RichTextService(http, config) {
21219
+ this.http = http;
21220
+ this.config = config;
21221
+ }
21222
+ RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
21223
+ if (!this.richTextScript$) {
21224
+ this.initLib(appendScriptFunc, appendStyleFunc);
21225
+ }
21226
+ return this.richTextScript$;
21227
+ };
21228
+ RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
21229
+ this.richTextScript$ = combineLatest([
21230
+ this.http
21231
+ .get(this.config.paths.richText + "/index.js", { responseType: 'text' })
21232
+ .pipe(tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
21233
+ this.http
21234
+ .get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
21235
+ .pipe(tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
21236
+ ]).pipe(shareReplay(1));
21237
+ };
21238
+ RichTextService.ctorParameters = function () { return [
21239
+ { type: HttpClient },
21240
+ { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
21241
+ ]; };
21242
+ RichTextService.ɵprov = ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(ɵɵinject(HttpClient), ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
21243
+ RichTextService = __decorate([
21244
+ Injectable({ providedIn: 'root' }),
21245
+ __param(1, Inject(DATO_CORE_CONFIG)),
21246
+ __metadata("design:paramtypes", [HttpClient, Object])
21247
+ ], RichTextService);
21248
+ return RichTextService;
21249
+ }());
21250
+
21205
21251
  /**
21206
21252
  * @license
21207
21253
  * Copyright Datorama. All Rights Reserved.
@@ -21215,20 +21261,20 @@ var getTinymce = function () {
21215
21261
  var ɵ0$3 = getTinymce;
21216
21262
  var DatoRichTextDirective = /** @class */ (function (_super) {
21217
21263
  __extends(DatoRichTextDirective, _super);
21218
- function DatoRichTextDirective(ngZone, http, host, config) {
21264
+ function DatoRichTextDirective(ngZone, richTextService, config, host) {
21219
21265
  var _this = _super.call(this) || this;
21220
21266
  _this.ngZone = ngZone;
21221
- _this.http = http;
21222
- _this.host = host;
21267
+ _this.richTextService = richTextService;
21223
21268
  _this.config = config;
21269
+ _this.host = host;
21224
21270
  _this.autocompleteOptions = {};
21225
21271
  _this.forcePlainTextPasting = false;
21226
21272
  _this.format = 'html';
21227
21273
  _this.isOneLine = false;
21228
21274
  _this.initialValue = '';
21229
- _this.defaultPlugins = 'link fullscreen textcolor colorpicker image lists table textpattern autocomplete';
21275
+ _this.defaultPlugins = 'link fullscreen image lists table autocomplete';
21230
21276
  _this.defaultToolbar = [
21231
- 'fontselect fontsizeselect forecolor backcolor bold italic underline link',
21277
+ 'fontfamily fontsize forecolor backcolor bold italic underline link',
21232
21278
  'alignleft aligncenter alignright alignjustify outdent indent | table numlist bullist | image fullscreen'
21233
21279
  ];
21234
21280
  return _this;
@@ -21254,28 +21300,11 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21254
21300
  base: this.config.paths.richText,
21255
21301
  query: ''
21256
21302
  };
21257
- /**
21258
- * We support only one instance in load time
21259
- */
21260
- if (window.tinymce) {
21261
- this.init.call(this);
21262
- }
21263
- else {
21264
- this.loadLib().subscribe(function (lib) {
21265
- appendScript(lib, 'rich-text-editor');
21266
- _this.init.call(_this);
21267
- _this.loadAutoCompleteStyle();
21268
- });
21269
- }
21270
- };
21271
- DatoRichTextDirective.prototype.loadLib = function () {
21272
- return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
21273
- };
21274
- DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
21275
- this.http
21276
- .get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
21277
- .subscribe(function (style) {
21278
- appendStyle(style, 'tinymce-autocomplete');
21303
+ this.richTextService
21304
+ .getLib(appendScript, appendStyle)
21305
+ .pipe(untilDestroyed(this))
21306
+ .subscribe(function () {
21307
+ _this.init.call(_this);
21279
21308
  });
21280
21309
  };
21281
21310
  DatoRichTextDirective.prototype.initEditor = function (_, editor) {
@@ -21299,8 +21328,6 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21299
21328
  target: this.host.nativeElement,
21300
21329
  width: this.width || 600,
21301
21330
  height: this.height || 300,
21302
- force_br_newlines: true,
21303
- force_p_newlines: false,
21304
21331
  resize: 'both',
21305
21332
  branding: false,
21306
21333
  inline: this.inline,
@@ -21308,10 +21335,12 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21308
21335
  readonly: this.disabled,
21309
21336
  plugins: this.plugins || this.defaultPlugins,
21310
21337
  toolbar: isNil(this.toolbar) ? this.defaultToolbar : this.toolbar,
21311
- fontsize_formats: '8px 10px 12px 14px 18px 24px 36px',
21338
+ font_size_formats: '8px 10px 12px 14px 18px 24px 36px',
21312
21339
  min_width: 480,
21313
21340
  menubar: false,
21314
21341
  autocomplete: this.autocompleteOptions,
21342
+ suffix: '.min',
21343
+ skin: 'tinymce-5',
21315
21344
  setup: function (editor) {
21316
21345
  _this.editor = editor;
21317
21346
  editor.on('init', function (e) {
@@ -21368,9 +21397,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21368
21397
  var DatoRichTextDirective_1;
21369
21398
  DatoRichTextDirective.ctorParameters = function () { return [
21370
21399
  { type: NgZone },
21371
- { type: HttpClient },
21372
- { type: ElementRef },
21373
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
21400
+ { type: RichTextService },
21401
+ { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] },
21402
+ { type: ElementRef }
21374
21403
  ]; };
21375
21404
  __decorate([
21376
21405
  Input(),
@@ -21436,10 +21465,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21436
21465
  }
21437
21466
  ]
21438
21467
  }),
21439
- __param(3, Inject(DATO_CORE_CONFIG)),
21468
+ __param(2, Inject(DATO_CORE_CONFIG)),
21440
21469
  __metadata("design:paramtypes", [NgZone,
21441
- HttpClient,
21442
- ElementRef, Object])
21470
+ RichTextService, Object, ElementRef])
21443
21471
  ], DatoRichTextDirective);
21444
21472
  return DatoRichTextDirective;
21445
21473
  }(BaseCustomControl));
@@ -23962,7 +23990,9 @@ var DatoBreadcrumbsComponent = /** @class */ (function () {
23962
23990
  };
23963
23991
  DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
23964
23992
  var _this = this;
23965
- this.headerControl.valueChanges.pipe(debounceTime(300), untilDestroyed(this)).subscribe(function (res) {
23993
+ this.headerControl.valueChanges
23994
+ .pipe(debounceTime(300), untilDestroyed(this))
23995
+ .subscribe(function (res) {
23966
23996
  _this.updateEditableText.emit(res);
23967
23997
  _this.cdr.detectChanges();
23968
23998
  });
@@ -25325,7 +25355,7 @@ function fixNgLeaks() {
25325
25355
  };
25326
25356
  }
25327
25357
 
25328
- window.coreVersion = '22.9.7';
25358
+ window.coreVersion = '22.10.7-rc.';
25329
25359
 
25330
25360
  /**
25331
25361
  * @license
@@ -25339,5 +25369,5 @@ window.coreVersion = '22.9.7';
25339
25369
  * Generated bundle index. Do not edit.
25340
25370
  */
25341
25371
 
25342
- 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 };
25372
+ 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 };
25343
25373
  //# sourceMappingURL=datorama-core.js.map