@datorama/core 22.9.10 → 22.10.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/bundle.scss +137 -131
  2. package/bundles/datorama-core.umd.js +184 -195
  3. package/bundles/datorama-core.umd.js.map +1 -1
  4. package/bundles/datorama-core.umd.min.js +45 -38
  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 -9
  11. package/esm2015/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +12 -19
  12. package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +2 -5
  13. package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +3 -2
  14. package/esm2015/lib/grid-v2/grid-settings.js +2 -2
  15. package/esm2015/lib/grid-v2/grid-store/grid.service.js +29 -3
  16. package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -7
  17. package/esm2015/lib/loaders/page-loader/page-loader.component.js +2 -7
  18. package/esm2015/lib/rich-text/rich-text.directive.js +38 -20
  19. package/esm2015/lib/select/select.component.js +18 -5
  20. package/esm2015/lib/select/trigger-single/trigger-single.component.js +4 -1
  21. package/esm2015/lib/version.js +2 -2
  22. package/esm5/datorama-core.js +1 -2
  23. package/esm5/lib/breadcrumbs/breadcrumbs.component.js +2 -4
  24. package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -9
  25. package/esm5/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +12 -20
  26. package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +2 -5
  27. package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +5 -2
  28. package/esm5/lib/grid-v2/grid-settings.js +2 -2
  29. package/esm5/lib/grid-v2/grid-store/grid.service.js +29 -3
  30. package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -13
  31. package/esm5/lib/loaders/page-loader/page-loader.component.js +2 -7
  32. package/esm5/lib/rich-text/rich-text.directive.js +39 -21
  33. package/esm5/lib/select/select.component.js +18 -5
  34. package/esm5/lib/select/trigger-single/trigger-single.component.js +4 -1
  35. package/esm5/lib/version.js +2 -2
  36. package/fesm2015/datorama-core.js +165 -169
  37. package/fesm2015/datorama-core.js.map +1 -1
  38. package/fesm5/datorama-core.js +185 -195
  39. package/fesm5/datorama-core.js.map +1 -1
  40. package/lib/grid-v2/grid/grid-v2.types.d.ts +3 -12
  41. package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts +5 -3
  42. package/lib/grid-v2/grid-settings.d.ts +2 -2
  43. package/lib/grid-v2/grid-store/grid.service.d.ts +1 -0
  44. package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +0 -2
  45. package/lib/loaders/page-loader/page-loader.component.d.ts +0 -1
  46. package/lib/rich-text/rich-text.directive.d.ts +6 -4
  47. package/lib/select/select.component.d.ts +2 -0
  48. package/lib/select/trigger-single/trigger-single.component.d.ts +1 -0
  49. package/package.json +2 -2
  50. package/esm2015/lib/rich-text/rich-text.service.js +0 -50
  51. package/esm5/lib/rich-text/rich-text.service.js +0 -51
  52. package/lib/rich-text/rich-text.service.d.ts +0 -10
@@ -8231,6 +8231,91 @@ function isTestEnv() {
8231
8231
  return !!window.Cypress;
8232
8232
  }
8233
8233
 
8234
+ /**
8235
+ * @license
8236
+ * Copyright Datorama. All Rights Reserved.
8237
+ *
8238
+ * Use of this source code is governed by an Apache License 2.0 license that can be
8239
+ * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
8240
+ */
8241
+ var DatoTriggerSingle = /** @class */ (function () {
8242
+ function DatoTriggerSingle(cdr) {
8243
+ this.cdr = cdr;
8244
+ this._placeholder = '';
8245
+ }
8246
+ Object.defineProperty(DatoTriggerSingle.prototype, "placeholder", {
8247
+ set: function (value) {
8248
+ this._placeholder = value;
8249
+ this.cdr.detectChanges();
8250
+ },
8251
+ enumerable: true,
8252
+ configurable: true
8253
+ });
8254
+ Object.defineProperty(DatoTriggerSingle.prototype, "context", {
8255
+ set: function (value) {
8256
+ this._model = { $implicit: value };
8257
+ this.cdr.detectChanges();
8258
+ },
8259
+ enumerable: true,
8260
+ configurable: true
8261
+ });
8262
+ Object.defineProperty(DatoTriggerSingle.prototype, "hidePlaceholder", {
8263
+ get: function () {
8264
+ return !this._model || !this._model.$implicit;
8265
+ },
8266
+ enumerable: true,
8267
+ configurable: true
8268
+ });
8269
+ DatoTriggerSingle.prototype.ngOnInit = function () {
8270
+ this.cdr.detach();
8271
+ };
8272
+ Object.defineProperty(DatoTriggerSingle.prototype, "getLabel", {
8273
+ get: function () {
8274
+ return this._model && this._model.$implicit && this._model.$implicit[this.labelKey];
8275
+ },
8276
+ enumerable: true,
8277
+ configurable: true
8278
+ });
8279
+ DatoTriggerSingle.prototype.triggerChangeDetection = function () {
8280
+ this.cdr.detectChanges();
8281
+ };
8282
+ DatoTriggerSingle.ctorParameters = function () { return [
8283
+ { type: ChangeDetectorRef }
8284
+ ]; };
8285
+ __decorate([
8286
+ Input(),
8287
+ __metadata("design:type", TemplateRef)
8288
+ ], DatoTriggerSingle.prototype, "loadingTemplate", void 0);
8289
+ __decorate([
8290
+ Input(),
8291
+ __metadata("design:type", DatoSelectActiveDirective)
8292
+ ], DatoTriggerSingle.prototype, "active", void 0);
8293
+ __decorate([
8294
+ Input(),
8295
+ __metadata("design:type", Object),
8296
+ __metadata("design:paramtypes", [Object])
8297
+ ], DatoTriggerSingle.prototype, "placeholder", null);
8298
+ __decorate([
8299
+ Input(),
8300
+ __metadata("design:type", String)
8301
+ ], DatoTriggerSingle.prototype, "labelKey", void 0);
8302
+ __decorate([
8303
+ Input(),
8304
+ __metadata("design:type", Object),
8305
+ __metadata("design:paramtypes", [Object])
8306
+ ], DatoTriggerSingle.prototype, "context", null);
8307
+ DatoTriggerSingle = __decorate([
8308
+ Component({
8309
+ selector: 'dato-trigger-single',
8310
+ template: "<ng-template *ngIf=\"loadingTemplate\" [ngTemplateOutlet]=\"loadingTemplate\"></ng-template>\n<ng-container\n *ngIf=\"active && !hidePlaceholder\"\n [ngTemplateOutlet]=\"active.tpl\"\n [ngTemplateOutletContext]=\"_model\">\n</ng-container>\n<ng-container *ngIf=\"!active\">{{getLabel | translate}}</ng-container>\n<span class=\"dato-select__placeholder\" *ngIf=\"hidePlaceholder\">{{_placeholder}}</span>\n<dato-icon datoIcon=\"arrow-down\" datoSize=\"sm\" class=\"dato-select__single__arrow\"></dato-icon>\n",
8311
+ changeDetection: ChangeDetectionStrategy.OnPush,
8312
+ styles: [":host{display:block;position:relative;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host dato-icon{position:absolute;top:50%;transform:translateY(-50%);right:10px}"]
8313
+ }),
8314
+ __metadata("design:paramtypes", [ChangeDetectorRef])
8315
+ ], DatoTriggerSingle);
8316
+ return DatoTriggerSingle;
8317
+ }());
8318
+
8234
8319
  /**
8235
8320
  * @license
8236
8321
  * Copyright Datorama. All Rights Reserved.
@@ -8549,8 +8634,9 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8549
8634
  DatoSelectComponent.prototype.writeValue = function (activeOptions) {
8550
8635
  this._model = activeOptions ? coerceArray$1(activeOptions) : [];
8551
8636
  if (this.options) {
8637
+ var overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
8552
8638
  this.markAsActive(this._model, { deselectAll: true });
8553
- this.limitSelectedTo && this.updateDisabledState();
8639
+ overTheLimit && this.updateDisabledState();
8554
8640
  }
8555
8641
  /** For later updates */
8556
8642
  this.cdr.markForCheck();
@@ -8678,6 +8764,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8678
8764
  };
8679
8765
  DatoSelectComponent.prototype.removeOption = function (option) {
8680
8766
  var _this = this;
8767
+ var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
8681
8768
  this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
8682
8769
  var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
8683
8770
  /**
@@ -8687,7 +8774,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8687
8774
  if (optionToRemove) {
8688
8775
  optionToRemove.active = false;
8689
8776
  }
8690
- this.limitSelectedTo && this.updateDisabledState();
8777
+ updateDisabled && this.updateDisabledState();
8691
8778
  this.onChange(this._model);
8692
8779
  this.cdr.markForCheck();
8693
8780
  this.asyncUpdateDropdownPosition();
@@ -9035,6 +9122,9 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9035
9122
  if (!datoOption) {
9036
9123
  return;
9037
9124
  }
9125
+ var modelLength = this._model.length;
9126
+ var updateDisabled = this.limitSelectedTo &&
9127
+ (modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
9038
9128
  datoOption.active = !datoOption.active;
9039
9129
  var rawOption = datoOption.option;
9040
9130
  if (datoOption.active) {
@@ -9043,7 +9133,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9043
9133
  else {
9044
9134
  this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
9045
9135
  }
9046
- this.limitSelectedTo && this.updateDisabledState();
9136
+ updateDisabled && this.updateDisabledState();
9047
9137
  this.onChange(this._model);
9048
9138
  this.cdr.markForCheck();
9049
9139
  this.asyncUpdateDropdownPosition();
@@ -9107,6 +9197,9 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9107
9197
  setTimeout(function () { return _this.datoOverlay.scheduleUpdate(); }, 0);
9108
9198
  }
9109
9199
  };
9200
+ DatoSelectComponent.prototype.triggerChangeDetectionInDatoSingle = function () {
9201
+ this.datoTriggerSingle.triggerChangeDetection();
9202
+ };
9110
9203
  DatoSelectComponent.ctorParameters = function () { return [
9111
9204
  { type: ChangeDetectorRef },
9112
9205
  { type: DatoTranslateService },
@@ -9116,6 +9209,10 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9116
9209
  { type: undefined, decorators: [{ type: Attribute, args: ['datoSize',] }] },
9117
9210
  { type: String, decorators: [{ type: Attribute, args: ['width',] }] }
9118
9211
  ]; };
9212
+ __decorate([
9213
+ ViewChild('datoTriggerSingle'),
9214
+ __metadata("design:type", DatoTriggerSingle)
9215
+ ], DatoSelectComponent.prototype, "datoTriggerSingle", void 0);
9119
9216
  __decorate([
9120
9217
  ViewChild('dropdown'),
9121
9218
  __metadata("design:type", TemplateRef)
@@ -9282,7 +9379,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9282
9379
  DatoSelectComponent = __decorate([
9283
9380
  Component({
9284
9381
  selector: 'dato-select',
9285
- template: "<section class=\"dato-select__trigger\" [class.dato-select--naked]=\"_naked\" [class.dato-select--disabled]=\"_disabled\">\n\n <div class=\"dato-select__single\" *ngIf=\"isSingle\" [ngClass]=\"_dropdownClass\">\n <dato-input [class.force-hide]=\"(!open && isCombo) || !isCombo\" [placeholder]=\"searchPlaceholder | translate\"\n (keyup)=\"keyup($event)\" [isFocused]=\"_focus\" [isLoading]=\"isLoading\" [formControl]=\"searchControl\" type=\"search\">\n </dato-input>\n\n <dato-trigger-single [loadingTemplate]=\"loadingTemplate\" [active]=\"active\" datoErrorValidationBorderAnchor tabindex=\"0\" [labelKey]=\"labelKey\"\n [context]=\"_model[0]\" [class.force-hide]=\"open && isCombo\" [placeholder]=\"placeholder | translate\"\n class=\"ontop-overlay\" (keydown)=\"preventBodyScroll($event)\" (keyup)=\"keyup($event)\" (click)=\"openDropdown()\">\n </dato-trigger-single>\n </div>\n\n <dato-trigger-multi [loadingTemplate]=\"loadingTemplate\" [options]=\"_model\" datoErrorValidationBorderAnchor [control]=\"searchControl\"\n [placeholder]=\"placeholder | translate\" [labelKey]=\"labelKey\" [idKey]=\"idKey\" (keyup)=\"keyup($event)\"\n [isLoading]=\"isLoading\" [keepFocus]=\"keepFocus\" [limitTo]=\"limitTo\" [clickOutside]=\"_clickOutside\" [isSortable]=\"isSortable\"\n [selectAllChipTxt]=\"selectAllChipTxt\"\n [showSelectAllChip]=\"selectAllChipTxt && showSelectAllChip\"\n (unselectAll)=\"checkAll(false)\"\n (removeOption)=\"removeOption($event)\" (reorderOptions)=\"reorderOptions($event)\" *ngIf=\"isMulti\"\n (click)=\"openDropdown($event)\"></dato-trigger-multi>\n\n</section>\n\n<ng-template #dropdown>\n <section class=\"dato-select__dropdown-container\" tabindex=\"0\" (keyup)=\"keyup($event)\">\n\n <!-- HEADER -->\n\n <header class=\"dato-select__header dato-select__option dato-select__option--simple\" data-is-floating\n *ngIf=\"isMulti && allowSelectAll\" [class.force-hide]=\"_showEmptyResults\" [class.ml-10]=\"containsGroups\">\n <dato-checkbox [checked]=\"_isAllChecked\" (check)=\"checkAll($event)\"\n [indeterminatelyChecked]=\"_isIndeterminatelyChecked\">\n {{'core.select-all' | translate}}<span class=\"primary-300-color note-italic ml-5\">{{_count}}</span>\n </dato-checkbox>\n </header>\n\n <!-- END HEADER -->\n\n <!-- DROPDOWN -->\n\n <div class=\"dato-select__dropdown\">\n\n <ng-content></ng-content>\n\n <dato-select-empty [show]=\"_showEmptyResults\">{{_noItemsLabel}}</dato-select-empty>\n <div class=\"dato-select__option dato-select-infinite-spinner\" data-is-floating *ngIf=\"infiniteScrollLoading\">\n <span class=\"dato-input__spinner\"></span>\n </div>\n\n </div>\n\n <!-- END DROPDOWN -->\n\n\n <!-- FOOTER -->\n\n <footer class=\"dato-select__footer d-flex\" [class.with-actions]=\"_withActions\">\n\n <ng-content select=\"[datoSelectFooter]\"></ng-content>\n\n <ng-container *ngIf=\"_withActions\">\n <dato-link class=\"mr-20\" datoType=\"secondary\" (click)=\"close()\">Cancel</dato-link>\n <dato-button datoSize=\"sm\" (click)=\"save.emit(); close();\">Save</dato-button>\n </ng-container>\n\n </footer>\n\n <!-- END FOOTER -->\n\n </section>\n\n</ng-template>\n",
9382
+ template: "<section class=\"dato-select__trigger\" [class.dato-select--naked]=\"_naked\" [class.dato-select--disabled]=\"_disabled\">\n\n <div class=\"dato-select__single\" *ngIf=\"isSingle\" [ngClass]=\"_dropdownClass\">\n <dato-input [class.force-hide]=\"(!open && isCombo) || !isCombo\" [placeholder]=\"searchPlaceholder | translate\"\n (keyup)=\"keyup($event)\" [isFocused]=\"_focus\" [isLoading]=\"isLoading\" [formControl]=\"searchControl\" type=\"search\">\n </dato-input>\n\n <dato-trigger-single #datoTriggerSingle [loadingTemplate]=\"loadingTemplate\" [active]=\"active\" datoErrorValidationBorderAnchor tabindex=\"0\" [labelKey]=\"labelKey\"\n [context]=\"_model[0]\" [class.force-hide]=\"open && isCombo\" [placeholder]=\"placeholder | translate\"\n class=\"ontop-overlay\" (keydown)=\"preventBodyScroll($event)\" (keyup)=\"keyup($event)\" (click)=\"openDropdown()\">\n </dato-trigger-single>\n </div>\n\n <dato-trigger-multi [loadingTemplate]=\"loadingTemplate\" [options]=\"_model\" datoErrorValidationBorderAnchor [control]=\"searchControl\"\n [placeholder]=\"placeholder | translate\" [labelKey]=\"labelKey\" [idKey]=\"idKey\" (keyup)=\"keyup($event)\"\n [isLoading]=\"isLoading\" [keepFocus]=\"keepFocus\" [limitTo]=\"limitTo\" [clickOutside]=\"_clickOutside\" [isSortable]=\"isSortable\"\n [selectAllChipTxt]=\"selectAllChipTxt\"\n [showSelectAllChip]=\"selectAllChipTxt && showSelectAllChip\"\n (unselectAll)=\"checkAll(false)\"\n (removeOption)=\"removeOption($event)\" (reorderOptions)=\"reorderOptions($event)\" *ngIf=\"isMulti\"\n (click)=\"openDropdown($event)\"></dato-trigger-multi>\n\n</section>\n\n<ng-template #dropdown>\n <section class=\"dato-select__dropdown-container\" tabindex=\"0\" (keyup)=\"keyup($event)\">\n\n <!-- HEADER -->\n\n <header class=\"dato-select__header dato-select__option dato-select__option--simple\" data-is-floating\n *ngIf=\"isMulti && allowSelectAll\" [class.force-hide]=\"_showEmptyResults\" [class.ml-10]=\"containsGroups\">\n <dato-checkbox [checked]=\"_isAllChecked\" (check)=\"checkAll($event)\"\n [indeterminatelyChecked]=\"_isIndeterminatelyChecked\">\n {{'core.select-all' | translate}}<span class=\"primary-300-color note-italic ml-5\">{{_count}}</span>\n </dato-checkbox>\n </header>\n\n <!-- END HEADER -->\n\n <!-- DROPDOWN -->\n\n <div class=\"dato-select__dropdown\">\n\n <ng-content></ng-content>\n\n <dato-select-empty [show]=\"_showEmptyResults\">{{_noItemsLabel}}</dato-select-empty>\n <div class=\"dato-select__option dato-select-infinite-spinner\" data-is-floating *ngIf=\"infiniteScrollLoading\">\n <span class=\"dato-input__spinner\"></span>\n </div>\n\n </div>\n\n <!-- END DROPDOWN -->\n\n\n <!-- FOOTER -->\n\n <footer class=\"dato-select__footer d-flex\" [class.with-actions]=\"_withActions\">\n\n <ng-content select=\"[datoSelectFooter]\"></ng-content>\n\n <ng-container *ngIf=\"_withActions\">\n <dato-link class=\"mr-20\" datoType=\"secondary\" (click)=\"close()\">Cancel</dato-link>\n <dato-button datoSize=\"sm\" (click)=\"save.emit(); close();\">Save</dato-button>\n </ng-container>\n\n </footer>\n\n <!-- END FOOTER -->\n\n </section>\n\n</ng-template>\n",
9286
9383
  preserveWhitespaces: false,
9287
9384
  providers: [valueAccessor$3, DatoOverlay],
9288
9385
  encapsulation: ViewEncapsulation.None,
@@ -9300,88 +9397,6 @@ var DatoSelectComponent = /** @class */ (function (_super) {
9300
9397
  return DatoSelectComponent;
9301
9398
  }(BaseCustomControl));
9302
9399
 
9303
- /**
9304
- * @license
9305
- * Copyright Datorama. All Rights Reserved.
9306
- *
9307
- * Use of this source code is governed by an Apache License 2.0 license that can be
9308
- * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
9309
- */
9310
- var DatoTriggerSingle = /** @class */ (function () {
9311
- function DatoTriggerSingle(cdr) {
9312
- this.cdr = cdr;
9313
- this._placeholder = '';
9314
- }
9315
- Object.defineProperty(DatoTriggerSingle.prototype, "placeholder", {
9316
- set: function (value) {
9317
- this._placeholder = value;
9318
- this.cdr.detectChanges();
9319
- },
9320
- enumerable: true,
9321
- configurable: true
9322
- });
9323
- Object.defineProperty(DatoTriggerSingle.prototype, "context", {
9324
- set: function (value) {
9325
- this._model = { $implicit: value };
9326
- this.cdr.detectChanges();
9327
- },
9328
- enumerable: true,
9329
- configurable: true
9330
- });
9331
- Object.defineProperty(DatoTriggerSingle.prototype, "hidePlaceholder", {
9332
- get: function () {
9333
- return !this._model || !this._model.$implicit;
9334
- },
9335
- enumerable: true,
9336
- configurable: true
9337
- });
9338
- DatoTriggerSingle.prototype.ngOnInit = function () {
9339
- this.cdr.detach();
9340
- };
9341
- Object.defineProperty(DatoTriggerSingle.prototype, "getLabel", {
9342
- get: function () {
9343
- return this._model && this._model.$implicit && this._model.$implicit[this.labelKey];
9344
- },
9345
- enumerable: true,
9346
- configurable: true
9347
- });
9348
- DatoTriggerSingle.ctorParameters = function () { return [
9349
- { type: ChangeDetectorRef }
9350
- ]; };
9351
- __decorate([
9352
- Input(),
9353
- __metadata("design:type", TemplateRef)
9354
- ], DatoTriggerSingle.prototype, "loadingTemplate", void 0);
9355
- __decorate([
9356
- Input(),
9357
- __metadata("design:type", DatoSelectActiveDirective)
9358
- ], DatoTriggerSingle.prototype, "active", void 0);
9359
- __decorate([
9360
- Input(),
9361
- __metadata("design:type", Object),
9362
- __metadata("design:paramtypes", [Object])
9363
- ], DatoTriggerSingle.prototype, "placeholder", null);
9364
- __decorate([
9365
- Input(),
9366
- __metadata("design:type", String)
9367
- ], DatoTriggerSingle.prototype, "labelKey", void 0);
9368
- __decorate([
9369
- Input(),
9370
- __metadata("design:type", Object),
9371
- __metadata("design:paramtypes", [Object])
9372
- ], DatoTriggerSingle.prototype, "context", null);
9373
- DatoTriggerSingle = __decorate([
9374
- Component({
9375
- selector: 'dato-trigger-single',
9376
- template: "<ng-template *ngIf=\"loadingTemplate\" [ngTemplateOutlet]=\"loadingTemplate\"></ng-template>\n<ng-container\n *ngIf=\"active && !hidePlaceholder\"\n [ngTemplateOutlet]=\"active.tpl\"\n [ngTemplateOutletContext]=\"_model\">\n</ng-container>\n<ng-container *ngIf=\"!active\">{{getLabel | translate}}</ng-container>\n<span class=\"dato-select__placeholder\" *ngIf=\"hidePlaceholder\">{{_placeholder}}</span>\n<dato-icon datoIcon=\"arrow-down\" datoSize=\"sm\" class=\"dato-select__single__arrow\"></dato-icon>\n",
9377
- changeDetection: ChangeDetectionStrategy.OnPush,
9378
- styles: [":host{display:block;position:relative;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host dato-icon{position:absolute;top:50%;transform:translateY(-50%);right:10px}"]
9379
- }),
9380
- __metadata("design:paramtypes", [ChangeDetectorRef])
9381
- ], DatoTriggerSingle);
9382
- return DatoTriggerSingle;
9383
- }());
9384
-
9385
9400
  /**
9386
9401
  * @license
9387
9402
  * Copyright Datorama. All Rights Reserved.
@@ -11848,7 +11863,7 @@ function toolbarActionToContextAction(params) {
11848
11863
  return contextActions;
11849
11864
  }
11850
11865
 
11851
- var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_AP');
11866
+ var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_API');
11852
11867
 
11853
11868
  var defaultEditableColumnRenderer = function (params) {
11854
11869
  return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
@@ -11887,14 +11902,6 @@ var GridRowSelectionType;
11887
11902
  GridRowSelectionType["SINGLE"] = "single";
11888
11903
  GridRowSelectionType["MULTIPLE"] = "multiple";
11889
11904
  })(GridRowSelectionType || (GridRowSelectionType = {}));
11890
- var GridStatusColumnTypes;
11891
- (function (GridStatusColumnTypes) {
11892
- GridStatusColumnTypes["SUCCESS"] = "SUCCESS";
11893
- GridStatusColumnTypes["FAILURE"] = "FAILURE";
11894
- GridStatusColumnTypes["IN_PROGRESS"] = "IN_PROGRESS";
11895
- GridStatusColumnTypes["PENDING"] = "PENDING";
11896
- GridStatusColumnTypes["WAITING"] = "WAITING";
11897
- })(GridStatusColumnTypes || (GridStatusColumnTypes = {}));
11898
11905
 
11899
11906
  /**
11900
11907
  * @license
@@ -14137,9 +14144,36 @@ var GridService = /** @class */ (function () {
14137
14144
  this.initPivotSecondaryColsProcess(params);
14138
14145
  params.gridOptions.enableV2_1 = true;
14139
14146
  params.gridOptions.saveSettings = false;
14147
+ params.gridOptions.defaultColDef.cellClass = this.getPivotCellClass.bind(this);
14148
+ params.gridOptions.autoGroupColumnDef.cellClass = this.getPivotCellClass.bind(this);
14140
14149
  }
14141
14150
  return params.gridOptions;
14142
14151
  };
14152
+ GridService.prototype.getPivotCellClass = function (params) {
14153
+ var _a = params.node, leafGroup = _a.leafGroup, childIndex = _a.childIndex, rowGroupIndex = _a.rowGroupIndex;
14154
+ var gridQuery = params.colDef.headerComponentParams.gridQuery;
14155
+ var cellClass = "";
14156
+ if (gridQuery && gridQuery.api) {
14157
+ var columns = gridQuery.api.columns;
14158
+ var allDisplayedColumns = columns.getAllDisplayedColumns();
14159
+ var col = allDisplayedColumns.find(function (column) {
14160
+ return column.getColId() === params.colDef.colId;
14161
+ });
14162
+ var colIndex = allDisplayedColumns.indexOf(col);
14163
+ if (rowGroupIndex <= colIndex) {
14164
+ if (leafGroup) {
14165
+ if (childIndex % 2 === 0) {
14166
+ /** If row is even */
14167
+ cellClass += ' primary-100-background-color';
14168
+ }
14169
+ }
14170
+ else {
14171
+ cellClass += 'primary-0-background-color pointer dato-simple-bold';
14172
+ }
14173
+ }
14174
+ }
14175
+ return cellClass;
14176
+ };
14143
14177
  GridService.prototype.normalizeColumns = function (colDefs, gridOptions) {
14144
14178
  var _this = this;
14145
14179
  if (gridOptions === void 0) { gridOptions = null; }
@@ -14443,8 +14477,7 @@ var GridService = /** @class */ (function () {
14443
14477
  this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
14444
14478
  };
14445
14479
  GridService.prototype.saveSettingsToServer = function (settings) {
14446
- var isGlobal = this.gridQuery.getGridOptions().isGlobalSettings;
14447
- this.storageAPI.set(this.gridName, settings, isGlobal);
14480
+ this.storageAPI.set(this.gridName, settings);
14448
14481
  };
14449
14482
  /**
14450
14483
  * @internal used to log grid events to the platform's logging service
@@ -15449,10 +15482,7 @@ var DatoGridControllerComponent = /** @class */ (function () {
15449
15482
  .pipe(switchMap(function () {
15450
15483
  _this.gridOptions = _this.normalizeOptions();
15451
15484
  agGrid.gridOptions = _this.gridOptions;
15452
- var isGlobal = _this.gridOptions.isGlobalSettings;
15453
- var settingsLoader = _this.gridOptions.saveSettings === false
15454
- ? of(null)
15455
- : _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
15485
+ var settingsLoader = _this.gridOptions.saveSettings === false ? of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
15456
15486
  return combineLatest([agGrid.gridReady, settingsLoader]);
15457
15487
  }), untilDestroyed(this))
15458
15488
  .subscribe(function (_a) {
@@ -16293,7 +16323,9 @@ var DatoGridPaginationV2Component = /** @class */ (function () {
16293
16323
  DatoGridPaginationV2Component.prototype.ngOnInit = function () {
16294
16324
  var _this = this;
16295
16325
  this.gridQuery
16296
- .waitForGrid(function () { return _this.gridQuery.gridRef.filterChanged; })
16326
+ .waitForGrid(function () {
16327
+ return merge$1(_this.gridQuery.gridRef.filterChanged, _this.gridQuery.gridRef.rowGroupOpened, _this.gridQuery.gridRef.expandOrCollapseAll);
16328
+ })
16297
16329
  .pipe(untilDestroyed(this))
16298
16330
  .subscribe(function () {
16299
16331
  _this.gridApi.paginationGoToPage(0);
@@ -16745,18 +16777,6 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
16745
16777
  this.registerGroupListeners();
16746
16778
  this.subscribeRowsSelectionData();
16747
16779
  };
16748
- DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
16749
- var _this = this;
16750
- return this.gridController.gridQuery.waitForGrid(function () {
16751
- return _this.gridQuery.gridRef.cellValueChanged.pipe(debounceTime(100), untilDestroyed(_this));
16752
- });
16753
- };
16754
- DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
16755
- var _this = this;
16756
- return this.gridController.gridQuery.waitForGrid(function () {
16757
- return _this.gridQuery.gridRef.rowDataUpdated.pipe(debounceTime(100), untilDestroyed(_this));
16758
- });
16759
- };
16760
16780
  DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
16761
16781
  if (isFunction(action.onClick)) {
16762
16782
  var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
@@ -19371,7 +19391,6 @@ var DatoPageLoaderComponent = /** @class */ (function () {
19371
19391
  function DatoPageLoaderComponent() {
19372
19392
  this.msg = '';
19373
19393
  this.salesforce = false;
19374
- this.size = 'medium';
19375
19394
  this.circleIds = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];
19376
19395
  }
19377
19396
  __decorate([
@@ -19382,14 +19401,10 @@ var DatoPageLoaderComponent = /** @class */ (function () {
19382
19401
  Input(),
19383
19402
  __metadata("design:type", Object)
19384
19403
  ], DatoPageLoaderComponent.prototype, "salesforce", void 0);
19385
- __decorate([
19386
- Input(),
19387
- __metadata("design:type", String)
19388
- ], DatoPageLoaderComponent.prototype, "size", void 0);
19389
19404
  DatoPageLoaderComponent = __decorate([
19390
19405
  Component({
19391
19406
  selector: 'dato-page-loader',
19392
- 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",
19407
+ 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>",
19393
19408
  changeDetection: ChangeDetectionStrategy.OnPush
19394
19409
  })
19395
19410
  ], DatoPageLoaderComponent);
@@ -20367,15 +20382,8 @@ var DatoGridV2ToolbarMoreMenuComponent = /** @class */ (function () {
20367
20382
 
20368
20383
  var DatoGridStatusCellComponent = /** @class */ (function () {
20369
20384
  function DatoGridStatusCellComponent(cdr) {
20370
- var _a;
20371
20385
  this.cdr = cdr;
20372
- this.defaultConfigByStatus = (_a = {},
20373
- _a[GridStatusColumnTypes.SUCCESS] = { icon: 'success-line', iconCssClass: 'green-400-color' },
20374
- _a[GridStatusColumnTypes.FAILURE] = { icon: 'failed-line', iconCssClass: 'red-400-color' },
20375
- _a[GridStatusColumnTypes.PENDING] = { icon: 'time', iconCssClass: 'yellow-400-color' },
20376
- _a[GridStatusColumnTypes.WAITING] = { icon: 'info-line', iconCssClass: 'orange-400-color' },
20377
- _a[GridStatusColumnTypes.IN_PROGRESS] = { showSpinner: true },
20378
- _a);
20386
+ this.DEFAULT_MIN_WIDTH = 100;
20379
20387
  }
20380
20388
  DatoGridStatusCellComponent.prototype.agInit = function (params) {
20381
20389
  var value = params.value, valueFormatted = params.valueFormatted, node = params.node;
@@ -20390,14 +20398,15 @@ var DatoGridStatusCellComponent = /** @class */ (function () {
20390
20398
  var mainCustomCellConfig = customCellConfig || {};
20391
20399
  var valueCustomCellConfig = valueToCustomCellConfig ? valueToCustomCellConfig[params.value] || {} : {};
20392
20400
  var config = __assign(__assign({}, mainCustomCellConfig), valueCustomCellConfig);
20393
- var textCssClass = config.textCssClass, icon = config.icon, iconCssClass = config.iconCssClass, showSpinner = config.showSpinner, getAdditionalText = config.getAdditionalText, additionalTextCssClass = config.additionalTextCssClass, getIsVisible = config.getIsVisible, status = config.status;
20394
- var defaultConfig = this.defaultConfigByStatus[status] || {};
20401
+ 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;
20395
20402
  this.isVisible = !getIsVisible || getIsVisible(params.data);
20396
- this.icon = icon || defaultConfig.icon;
20397
- this.iconCssClass = iconCssClass || defaultConfig.iconCssClass || '';
20398
- this.textCssClass = textCssClass || '';
20399
- this.additionalTextCssClass = additionalTextCssClass || '';
20400
- this.showSpinner = !!showSpinner || !!defaultConfig.showSpinner;
20403
+ this.color = color || 'primary';
20404
+ this.backgroundClass = this.color + "-" + (this.color === 'accent' ? '100' : '200') + "-background-color";
20405
+ this.icon = icon;
20406
+ this.minWidth = minWidth || this.DEFAULT_MIN_WIDTH;
20407
+ this.cssClass = cssClass || '';
20408
+ this.iconCssClass = iconCssClass || '';
20409
+ this.showSpinner = showSpinner;
20401
20410
  this.additionalText = getAdditionalText ? getAdditionalText(params.data) : null;
20402
20411
  };
20403
20412
  DatoGridStatusCellComponent.prototype.refresh = function (params) {
@@ -20411,9 +20420,8 @@ var DatoGridStatusCellComponent = /** @class */ (function () {
20411
20420
  DatoGridStatusCellComponent = __decorate([
20412
20421
  Component({
20413
20422
  selector: 'dato-grid-status-cell',
20414
- 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 status line-height-18 {{textCssClass}}\" [class.ellipsis]=\"!additionalText\"\n [datoTooltipV2]=\"status\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{status}}\n </div>\n <div *ngIf=\"additionalText\" class=\"dato-simple ml-3 ellipsis line-height-18 {{additionalTextCssClass}}\"\n [datoTooltipV2]=\"status + ' ' + additionalText\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{additionalText}}\n </div>\n</div>\n<span *ngIf=\"isGroup\">{{status}}</span>\n",
20415
- changeDetection: ChangeDetectionStrategy.OnPush,
20416
- styles: [".line-height-18{line-height:18px}"]
20423
+ 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",
20424
+ changeDetection: ChangeDetectionStrategy.OnPush
20417
20425
  }),
20418
20426
  __metadata("design:paramtypes", [ChangeDetectorRef])
20419
20427
  ], DatoGridStatusCellComponent);
@@ -21244,40 +21252,6 @@ var DatoEditableHeaderModule = /** @class */ (function () {
21244
21252
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
21245
21253
  */
21246
21254
 
21247
- var RichTextService = /** @class */ (function () {
21248
- function RichTextService(http, config) {
21249
- this.http = http;
21250
- this.config = config;
21251
- }
21252
- RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
21253
- if (!this.richTextScript$) {
21254
- this.initLib(appendScriptFunc, appendStyleFunc);
21255
- }
21256
- return this.richTextScript$;
21257
- };
21258
- RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
21259
- this.richTextScript$ = combineLatest([
21260
- this.http
21261
- .get(this.config.paths.richText + "/index.js", { responseType: 'text' })
21262
- .pipe(tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
21263
- this.http
21264
- .get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
21265
- .pipe(tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
21266
- ]).pipe(shareReplay(1));
21267
- };
21268
- RichTextService.ctorParameters = function () { return [
21269
- { type: HttpClient },
21270
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
21271
- ]; };
21272
- RichTextService.ɵprov = ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(ɵɵinject(HttpClient), ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
21273
- RichTextService = __decorate([
21274
- Injectable({ providedIn: 'root' }),
21275
- __param(1, Inject(DATO_CORE_CONFIG)),
21276
- __metadata("design:paramtypes", [HttpClient, Object])
21277
- ], RichTextService);
21278
- return RichTextService;
21279
- }());
21280
-
21281
21255
  /**
21282
21256
  * @license
21283
21257
  * Copyright Datorama. All Rights Reserved.
@@ -21291,20 +21265,20 @@ var getTinymce = function () {
21291
21265
  var ɵ0$3 = getTinymce;
21292
21266
  var DatoRichTextDirective = /** @class */ (function (_super) {
21293
21267
  __extends(DatoRichTextDirective, _super);
21294
- function DatoRichTextDirective(ngZone, richTextService, config, host) {
21268
+ function DatoRichTextDirective(ngZone, http, host, config) {
21295
21269
  var _this = _super.call(this) || this;
21296
21270
  _this.ngZone = ngZone;
21297
- _this.richTextService = richTextService;
21298
- _this.config = config;
21271
+ _this.http = http;
21299
21272
  _this.host = host;
21273
+ _this.config = config;
21300
21274
  _this.autocompleteOptions = {};
21301
21275
  _this.forcePlainTextPasting = false;
21302
21276
  _this.format = 'html';
21303
21277
  _this.isOneLine = false;
21304
21278
  _this.initialValue = '';
21305
- _this.defaultPlugins = 'link fullscreen image lists table autocomplete';
21279
+ _this.defaultPlugins = 'link fullscreen textcolor colorpicker image lists table textpattern autocomplete';
21306
21280
  _this.defaultToolbar = [
21307
- 'fontfamily fontsize forecolor backcolor bold italic underline link',
21281
+ 'fontselect fontsizeselect forecolor backcolor bold italic underline link',
21308
21282
  'alignleft aligncenter alignright alignjustify outdent indent | table numlist bullist | image fullscreen'
21309
21283
  ];
21310
21284
  return _this;
@@ -21330,11 +21304,28 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21330
21304
  base: this.config.paths.richText,
21331
21305
  query: ''
21332
21306
  };
21333
- this.richTextService
21334
- .getLib(appendScript, appendStyle)
21335
- .pipe(untilDestroyed(this))
21336
- .subscribe(function () {
21337
- _this.init.call(_this);
21307
+ /**
21308
+ * We support only one instance in load time
21309
+ */
21310
+ if (window.tinymce) {
21311
+ this.init.call(this);
21312
+ }
21313
+ else {
21314
+ this.loadLib().subscribe(function (lib) {
21315
+ appendScript(lib, 'rich-text-editor');
21316
+ _this.init.call(_this);
21317
+ _this.loadAutoCompleteStyle();
21318
+ });
21319
+ }
21320
+ };
21321
+ DatoRichTextDirective.prototype.loadLib = function () {
21322
+ return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
21323
+ };
21324
+ DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
21325
+ this.http
21326
+ .get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
21327
+ .subscribe(function (style) {
21328
+ appendStyle(style, 'tinymce-autocomplete');
21338
21329
  });
21339
21330
  };
21340
21331
  DatoRichTextDirective.prototype.initEditor = function (_, editor) {
@@ -21358,6 +21349,8 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21358
21349
  target: this.host.nativeElement,
21359
21350
  width: this.width || 600,
21360
21351
  height: this.height || 300,
21352
+ force_br_newlines: true,
21353
+ force_p_newlines: false,
21361
21354
  resize: 'both',
21362
21355
  branding: false,
21363
21356
  inline: this.inline,
@@ -21365,12 +21358,10 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21365
21358
  readonly: this.disabled,
21366
21359
  plugins: this.plugins || this.defaultPlugins,
21367
21360
  toolbar: isNil(this.toolbar) ? this.defaultToolbar : this.toolbar,
21368
- font_size_formats: '8px 10px 12px 14px 18px 24px 36px',
21361
+ fontsize_formats: '8px 10px 12px 14px 18px 24px 36px',
21369
21362
  min_width: 480,
21370
21363
  menubar: false,
21371
21364
  autocomplete: this.autocompleteOptions,
21372
- suffix: '.min',
21373
- skin: 'tinymce-5',
21374
21365
  setup: function (editor) {
21375
21366
  _this.editor = editor;
21376
21367
  editor.on('init', function (e) {
@@ -21427,9 +21418,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21427
21418
  var DatoRichTextDirective_1;
21428
21419
  DatoRichTextDirective.ctorParameters = function () { return [
21429
21420
  { type: NgZone },
21430
- { type: RichTextService },
21431
- { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] },
21432
- { type: ElementRef }
21421
+ { type: HttpClient },
21422
+ { type: ElementRef },
21423
+ { type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
21433
21424
  ]; };
21434
21425
  __decorate([
21435
21426
  Input(),
@@ -21495,9 +21486,10 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
21495
21486
  }
21496
21487
  ]
21497
21488
  }),
21498
- __param(2, Inject(DATO_CORE_CONFIG)),
21489
+ __param(3, Inject(DATO_CORE_CONFIG)),
21499
21490
  __metadata("design:paramtypes", [NgZone,
21500
- RichTextService, Object, ElementRef])
21491
+ HttpClient,
21492
+ ElementRef, Object])
21501
21493
  ], DatoRichTextDirective);
21502
21494
  return DatoRichTextDirective;
21503
21495
  }(BaseCustomControl));
@@ -24020,9 +24012,7 @@ var DatoBreadcrumbsComponent = /** @class */ (function () {
24020
24012
  };
24021
24013
  DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
24022
24014
  var _this = this;
24023
- this.headerControl.valueChanges
24024
- .pipe(debounceTime(300), untilDestroyed(this))
24025
- .subscribe(function (res) {
24015
+ this.headerControl.valueChanges.pipe(debounceTime(300), untilDestroyed(this)).subscribe(function (res) {
24026
24016
  _this.updateEditableText.emit(res);
24027
24017
  _this.cdr.detectChanges();
24028
24018
  });
@@ -25385,7 +25375,7 @@ function fixNgLeaks() {
25385
25375
  };
25386
25376
  }
25387
25377
 
25388
- window.coreVersion = '22.10.7-rc.';
25378
+ window.coreVersion = '22.10.0';
25389
25379
 
25390
25380
  /**
25391
25381
  * @license
@@ -25399,5 +25389,5 @@ window.coreVersion = '22.10.7-rc.';
25399
25389
  * Generated bundle index. Do not edit.
25400
25390
  */
25401
25391
 
25402
- 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, GridStatusColumnTypes, 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 };
25392
+ 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 };
25403
25393
  //# sourceMappingURL=datorama-core.js.map