@datorama/core 22.12.7-beta.1 → 22.12.8-rc
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.
- package/bundles/datorama-core.umd.js +100 -57
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +41 -41
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.d.ts +1 -0
- package/datorama-core.metadata.json +1 -1
- package/esm2015/datorama-core.js +2 -1
- package/esm2015/lib/breadcrumbs/breadcrumbs.component.js +4 -2
- package/esm2015/lib/grid-v2/grid/grid-v2.types.js +4 -4
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +7 -6
- package/esm2015/lib/grid-v2/grid-settings.js +2 -2
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +12 -6
- package/esm2015/lib/grid-v2/grid-store/util.js +4 -1
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +13 -1
- package/esm2015/lib/grid-v2/grid-v2.util.js +1 -1
- package/esm2015/lib/icon/icon.types.js +1 -1
- package/esm2015/lib/rich-text/rich-text.directive.js +20 -38
- package/esm2015/lib/rich-text/rich-text.service.js +50 -0
- package/esm2015/lib/select/select.component.js +4 -9
- package/esm2015/lib/version.js +2 -2
- package/esm5/datorama-core.js +2 -1
- package/esm5/lib/breadcrumbs/breadcrumbs.component.js +4 -2
- package/esm5/lib/grid-v2/grid/grid-v2.types.js +4 -4
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +7 -6
- package/esm5/lib/grid-v2/grid-settings.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +12 -6
- package/esm5/lib/grid-v2/grid-store/util.js +4 -1
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +20 -1
- package/esm5/lib/grid-v2/grid-v2.util.js +1 -1
- package/esm5/lib/icon/icon.types.js +1 -1
- package/esm5/lib/rich-text/rich-text.directive.js +21 -39
- package/esm5/lib/rich-text/rich-text.service.js +51 -0
- package/esm5/lib/select/select.component.js +4 -9
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +91 -57
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +100 -58
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -0
- package/lib/grid-v2/grid-settings.d.ts +2 -2
- package/lib/grid-v2/grid-store/grid.service.d.ts +4 -0
- package/lib/grid-v2/grid-store/util.d.ts +2 -0
- package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +3 -0
- package/lib/grid-v2/grid-v2.util.d.ts +1 -1
- package/lib/rich-text/rich-text.directive.d.ts +4 -6
- package/lib/rich-text/rich-text.service.d.ts +10 -0
- package/package.json +2 -2
package/fesm5/datorama-core.js
CHANGED
|
@@ -8674,9 +8674,8 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8674
8674
|
DatoSelectComponent.prototype.writeValue = function (activeOptions) {
|
|
8675
8675
|
this._model = activeOptions ? coerceArray$1(activeOptions) : [];
|
|
8676
8676
|
if (this.options) {
|
|
8677
|
-
var overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
|
|
8678
8677
|
this.markAsActive(this._model, { deselectAll: true });
|
|
8679
|
-
|
|
8678
|
+
this.limitSelectedTo && this.updateDisabledState();
|
|
8680
8679
|
}
|
|
8681
8680
|
/** For later updates */
|
|
8682
8681
|
this.cdr.markForCheck();
|
|
@@ -8804,7 +8803,6 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8804
8803
|
};
|
|
8805
8804
|
DatoSelectComponent.prototype.removeOption = function (option) {
|
|
8806
8805
|
var _this = this;
|
|
8807
|
-
var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
|
|
8808
8806
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
|
|
8809
8807
|
var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
|
|
8810
8808
|
/**
|
|
@@ -8814,7 +8812,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8814
8812
|
if (optionToRemove) {
|
|
8815
8813
|
optionToRemove.active = false;
|
|
8816
8814
|
}
|
|
8817
|
-
|
|
8815
|
+
this.limitSelectedTo && this.updateDisabledState();
|
|
8818
8816
|
this.onChange(this._model);
|
|
8819
8817
|
this.cdr.markForCheck();
|
|
8820
8818
|
this.asyncUpdateDropdownPosition();
|
|
@@ -9162,9 +9160,6 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
9162
9160
|
if (!datoOption) {
|
|
9163
9161
|
return;
|
|
9164
9162
|
}
|
|
9165
|
-
var modelLength = this._model.length;
|
|
9166
|
-
var updateDisabled = this.limitSelectedTo &&
|
|
9167
|
-
(modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
|
|
9168
9163
|
datoOption.active = !datoOption.active;
|
|
9169
9164
|
var rawOption = datoOption.option;
|
|
9170
9165
|
if (datoOption.active) {
|
|
@@ -9173,7 +9168,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
9173
9168
|
else {
|
|
9174
9169
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
|
|
9175
9170
|
}
|
|
9176
|
-
|
|
9171
|
+
this.limitSelectedTo && this.updateDisabledState();
|
|
9177
9172
|
this.onChange(this._model);
|
|
9178
9173
|
this.cdr.markForCheck();
|
|
9179
9174
|
this.asyncUpdateDropdownPosition();
|
|
@@ -11355,6 +11350,9 @@ function tryParsePivotValue(str) {
|
|
|
11355
11350
|
}
|
|
11356
11351
|
return value;
|
|
11357
11352
|
}
|
|
11353
|
+
function isHtmlAllowedForCol(gridOptions, colDef) {
|
|
11354
|
+
return (!gridOptions.disabledHTMLRenderingFields || !gridOptions.disabledHTMLRenderingFields.includes(getColField(colDef)));
|
|
11355
|
+
}
|
|
11358
11356
|
|
|
11359
11357
|
var GridQuery = /** @class */ (function (_super) {
|
|
11360
11358
|
__extends(GridQuery, _super);
|
|
@@ -11906,7 +11904,7 @@ function toolbarActionToContextAction(params) {
|
|
|
11906
11904
|
return contextActions;
|
|
11907
11905
|
}
|
|
11908
11906
|
|
|
11909
|
-
var DATO_GRID_STORAGE_API = new InjectionToken('
|
|
11907
|
+
var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_AP');
|
|
11910
11908
|
|
|
11911
11909
|
var defaultEditableColumnRenderer = function (params) {
|
|
11912
11910
|
return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
|
|
@@ -11927,9 +11925,9 @@ var searchHighlightCellRenderer = function (params, searchTerm, allowHTML) {
|
|
|
11927
11925
|
cellValue = DOMPurify.sanitize(cellValue);
|
|
11928
11926
|
}
|
|
11929
11927
|
searchTerm = (searchTerm || '').trim();
|
|
11930
|
-
return searchTerm
|
|
11931
|
-
cellValue.replace(new RegExp(searchTerm, 'gi'), function (str) { return "<span class=\"search-highlight\">" + str + "</span>"; })
|
|
11932
|
-
cellValue;
|
|
11928
|
+
return searchTerm
|
|
11929
|
+
? cellValue.replace(new RegExp(searchTerm, 'gi'), function (str) { return "<span class=\"search-highlight\">" + str + "</span>"; })
|
|
11930
|
+
: cellValue;
|
|
11933
11931
|
};
|
|
11934
11932
|
var GridMinWidths;
|
|
11935
11933
|
(function (GridMinWidths) {
|
|
@@ -14058,6 +14056,12 @@ var GridService = /** @class */ (function () {
|
|
|
14058
14056
|
? context
|
|
14059
14057
|
: deepmerge(this.gridRef.gridOptions.context || {}, context);
|
|
14060
14058
|
};
|
|
14059
|
+
GridService.prototype.updateGridActions = function () {
|
|
14060
|
+
this.updateGridActionsSubject.next(true);
|
|
14061
|
+
};
|
|
14062
|
+
GridService.prototype.getUpdateGridActionsStatus = function () {
|
|
14063
|
+
return this.updateGridActionsSubject.asObservable();
|
|
14064
|
+
};
|
|
14061
14065
|
/**
|
|
14062
14066
|
* @deprecated use selectRows instead
|
|
14063
14067
|
* @param row
|
|
@@ -14288,8 +14292,7 @@ var GridService = /** @class */ (function () {
|
|
|
14288
14292
|
!this.hasCellRenderer(normalized, gridOptions) &&
|
|
14289
14293
|
gridOptions.enableSearchHighlight) {
|
|
14290
14294
|
normalized.cellRenderer = function (params) {
|
|
14291
|
-
var
|
|
14292
|
-
var allowHTML = !gridOptions.disabledHTMLRenderingFields || !gridOptions.disabledHTMLRenderingFields.includes(colField);
|
|
14295
|
+
var allowHTML = isHtmlAllowedForCol(gridOptions, params.colDef);
|
|
14293
14296
|
var isEditable = (isFunction(normalized.editable) && normalized.editable(params)) ||
|
|
14294
14297
|
(!isFunction(normalized.editable) && normalized.editable);
|
|
14295
14298
|
return isEditable
|
|
@@ -14554,7 +14557,8 @@ var GridService = /** @class */ (function () {
|
|
|
14554
14557
|
this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
|
|
14555
14558
|
};
|
|
14556
14559
|
GridService.prototype.saveSettingsToServer = function (settings) {
|
|
14557
|
-
this.
|
|
14560
|
+
var isGlobal = this.gridQuery.getGridOptions().isGlobalSettings;
|
|
14561
|
+
this.storageAPI.set(this.gridName, settings, isGlobal);
|
|
14558
14562
|
};
|
|
14559
14563
|
/**
|
|
14560
14564
|
* @internal used to log grid events to the platform's logging service
|
|
@@ -15592,7 +15596,10 @@ var DatoGridControllerComponent = /** @class */ (function () {
|
|
|
15592
15596
|
.pipe(switchMap(function () {
|
|
15593
15597
|
_this.gridOptions = _this.normalizeOptions();
|
|
15594
15598
|
agGrid.gridOptions = _this.gridOptions;
|
|
15595
|
-
var
|
|
15599
|
+
var isGlobal = _this.gridOptions.isGlobalSettings;
|
|
15600
|
+
var settingsLoader = _this.gridOptions.saveSettings === false
|
|
15601
|
+
? of(null)
|
|
15602
|
+
: _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
|
|
15596
15603
|
return combineLatest([agGrid.gridReady, settingsLoader]);
|
|
15597
15604
|
}), untilDestroyed(this))
|
|
15598
15605
|
.subscribe(function (_a) {
|
|
@@ -15607,7 +15614,6 @@ var DatoGridControllerComponent = /** @class */ (function () {
|
|
|
15607
15614
|
}
|
|
15608
15615
|
var gridApi = { grid: api, columns: columnApi };
|
|
15609
15616
|
_this.gridService._setApi(gridApi, agGrid);
|
|
15610
|
-
debugger;
|
|
15611
15617
|
_this.gridQuery._setApi(gridApi, agGrid);
|
|
15612
15618
|
_this.gridService.initSettings(savedSettings || {});
|
|
15613
15619
|
_this.registerSettingsListeners(gridApi, agGrid);
|
|
@@ -15848,8 +15854,7 @@ var DatoGridControllerComponent = /** @class */ (function () {
|
|
|
15848
15854
|
var textOverflow = cell.offsetWidth < cell.scrollWidth;
|
|
15849
15855
|
if (textOverflow) {
|
|
15850
15856
|
clearTimeout(this.cellMouseOutTimer);
|
|
15851
|
-
var
|
|
15852
|
-
var allowHTML = !this.gridOptions.disabledHTMLRenderingFields || !this.gridOptions.disabledHTMLRenderingFields.includes(colField);
|
|
15857
|
+
var allowHTML = isHtmlAllowedForCol(this.gridOptions, event.colDef);
|
|
15853
15858
|
var params = { cell: cell, value: cell.innerText, allowHTML: allowHTML };
|
|
15854
15859
|
isNil(this.tooltip) ? this.createAndShowTooltip(params) : this.updateTooltip(params);
|
|
15855
15860
|
}
|
|
@@ -16889,6 +16894,19 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
|
|
|
16889
16894
|
});
|
|
16890
16895
|
this.registerGroupListeners();
|
|
16891
16896
|
this.subscribeRowsSelectionData();
|
|
16897
|
+
this.subscribeUpdateGridActions();
|
|
16898
|
+
};
|
|
16899
|
+
DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
|
|
16900
|
+
var _this = this;
|
|
16901
|
+
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16902
|
+
return _this.gridQuery.gridRef.cellValueChanged.pipe(debounceTime(100), untilDestroyed(_this));
|
|
16903
|
+
});
|
|
16904
|
+
};
|
|
16905
|
+
DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
|
|
16906
|
+
var _this = this;
|
|
16907
|
+
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16908
|
+
return _this.gridQuery.gridRef.rowDataUpdated.pipe(debounceTime(100), untilDestroyed(_this));
|
|
16909
|
+
});
|
|
16892
16910
|
};
|
|
16893
16911
|
DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
|
|
16894
16912
|
if (isFunction(action.onClick)) {
|
|
@@ -17144,6 +17162,12 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
|
|
|
17144
17162
|
_this.cdr.detectChanges();
|
|
17145
17163
|
});
|
|
17146
17164
|
};
|
|
17165
|
+
DatoGridV2ToolbarComponent.prototype.subscribeUpdateGridActions = function () {
|
|
17166
|
+
var _this = this;
|
|
17167
|
+
this.gridService.getUpdateGridActionsStatus().subscribe(function () {
|
|
17168
|
+
_this.initGridActions();
|
|
17169
|
+
});
|
|
17170
|
+
};
|
|
17147
17171
|
DatoGridV2ToolbarComponent.prototype.selectAllPages = function () {
|
|
17148
17172
|
if (this.gridQuery.isServerSide) {
|
|
17149
17173
|
this.gridService.setServerSidePagination({ selectAllRowsEnabled: true, excludedFromSelectAll: [] });
|
|
@@ -21377,6 +21401,40 @@ var DatoEditableHeaderModule = /** @class */ (function () {
|
|
|
21377
21401
|
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
21378
21402
|
*/
|
|
21379
21403
|
|
|
21404
|
+
var RichTextService = /** @class */ (function () {
|
|
21405
|
+
function RichTextService(http, config) {
|
|
21406
|
+
this.http = http;
|
|
21407
|
+
this.config = config;
|
|
21408
|
+
}
|
|
21409
|
+
RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21410
|
+
if (!this.richTextScript$) {
|
|
21411
|
+
this.initLib(appendScriptFunc, appendStyleFunc);
|
|
21412
|
+
}
|
|
21413
|
+
return this.richTextScript$;
|
|
21414
|
+
};
|
|
21415
|
+
RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21416
|
+
this.richTextScript$ = combineLatest([
|
|
21417
|
+
this.http
|
|
21418
|
+
.get(this.config.paths.richText + "/index.js", { responseType: 'text' })
|
|
21419
|
+
.pipe(tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
|
|
21420
|
+
this.http
|
|
21421
|
+
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21422
|
+
.pipe(tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
|
|
21423
|
+
]).pipe(shareReplay(1));
|
|
21424
|
+
};
|
|
21425
|
+
RichTextService.ctorParameters = function () { return [
|
|
21426
|
+
{ type: HttpClient },
|
|
21427
|
+
{ type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21428
|
+
]; };
|
|
21429
|
+
RichTextService.ɵprov = ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(ɵɵinject(HttpClient), ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
|
|
21430
|
+
RichTextService = __decorate([
|
|
21431
|
+
Injectable({ providedIn: 'root' }),
|
|
21432
|
+
__param(1, Inject(DATO_CORE_CONFIG)),
|
|
21433
|
+
__metadata("design:paramtypes", [HttpClient, Object])
|
|
21434
|
+
], RichTextService);
|
|
21435
|
+
return RichTextService;
|
|
21436
|
+
}());
|
|
21437
|
+
|
|
21380
21438
|
/**
|
|
21381
21439
|
* @license
|
|
21382
21440
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -21390,20 +21448,20 @@ var getTinymce = function () {
|
|
|
21390
21448
|
var ɵ0$3 = getTinymce;
|
|
21391
21449
|
var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
21392
21450
|
__extends(DatoRichTextDirective, _super);
|
|
21393
|
-
function DatoRichTextDirective(ngZone,
|
|
21451
|
+
function DatoRichTextDirective(ngZone, richTextService, config, host) {
|
|
21394
21452
|
var _this = _super.call(this) || this;
|
|
21395
21453
|
_this.ngZone = ngZone;
|
|
21396
|
-
_this.
|
|
21397
|
-
_this.host = host;
|
|
21454
|
+
_this.richTextService = richTextService;
|
|
21398
21455
|
_this.config = config;
|
|
21456
|
+
_this.host = host;
|
|
21399
21457
|
_this.autocompleteOptions = {};
|
|
21400
21458
|
_this.forcePlainTextPasting = false;
|
|
21401
21459
|
_this.format = 'html';
|
|
21402
21460
|
_this.isOneLine = false;
|
|
21403
21461
|
_this.initialValue = '';
|
|
21404
|
-
_this.defaultPlugins = 'link fullscreen
|
|
21462
|
+
_this.defaultPlugins = 'link fullscreen image lists table autocomplete';
|
|
21405
21463
|
_this.defaultToolbar = [
|
|
21406
|
-
'
|
|
21464
|
+
'fontfamily fontsize forecolor backcolor bold italic underline link',
|
|
21407
21465
|
'alignleft aligncenter alignright alignjustify outdent indent | table numlist bullist | image fullscreen'
|
|
21408
21466
|
];
|
|
21409
21467
|
return _this;
|
|
@@ -21429,28 +21487,11 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21429
21487
|
base: this.config.paths.richText,
|
|
21430
21488
|
query: ''
|
|
21431
21489
|
};
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
}
|
|
21438
|
-
else {
|
|
21439
|
-
this.loadLib().subscribe(function (lib) {
|
|
21440
|
-
appendScript(lib, 'rich-text-editor');
|
|
21441
|
-
_this.init.call(_this);
|
|
21442
|
-
_this.loadAutoCompleteStyle();
|
|
21443
|
-
});
|
|
21444
|
-
}
|
|
21445
|
-
};
|
|
21446
|
-
DatoRichTextDirective.prototype.loadLib = function () {
|
|
21447
|
-
return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
|
|
21448
|
-
};
|
|
21449
|
-
DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
|
|
21450
|
-
this.http
|
|
21451
|
-
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21452
|
-
.subscribe(function (style) {
|
|
21453
|
-
appendStyle(style, 'tinymce-autocomplete');
|
|
21490
|
+
this.richTextService
|
|
21491
|
+
.getLib(appendScript, appendStyle)
|
|
21492
|
+
.pipe(untilDestroyed(this))
|
|
21493
|
+
.subscribe(function () {
|
|
21494
|
+
_this.init.call(_this);
|
|
21454
21495
|
});
|
|
21455
21496
|
};
|
|
21456
21497
|
DatoRichTextDirective.prototype.initEditor = function (_, editor) {
|
|
@@ -21474,8 +21515,6 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21474
21515
|
target: this.host.nativeElement,
|
|
21475
21516
|
width: this.width || 600,
|
|
21476
21517
|
height: this.height || 300,
|
|
21477
|
-
force_br_newlines: true,
|
|
21478
|
-
force_p_newlines: false,
|
|
21479
21518
|
resize: 'both',
|
|
21480
21519
|
branding: false,
|
|
21481
21520
|
inline: this.inline,
|
|
@@ -21483,10 +21522,12 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21483
21522
|
readonly: this.disabled,
|
|
21484
21523
|
plugins: this.plugins || this.defaultPlugins,
|
|
21485
21524
|
toolbar: isNil(this.toolbar) ? this.defaultToolbar : this.toolbar,
|
|
21486
|
-
|
|
21525
|
+
font_size_formats: '8px 10px 12px 14px 18px 24px 36px',
|
|
21487
21526
|
min_width: 480,
|
|
21488
21527
|
menubar: false,
|
|
21489
21528
|
autocomplete: this.autocompleteOptions,
|
|
21529
|
+
suffix: '.min',
|
|
21530
|
+
skin: 'tinymce-5',
|
|
21490
21531
|
setup: function (editor) {
|
|
21491
21532
|
_this.editor = editor;
|
|
21492
21533
|
editor.on('init', function (e) {
|
|
@@ -21543,9 +21584,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21543
21584
|
var DatoRichTextDirective_1;
|
|
21544
21585
|
DatoRichTextDirective.ctorParameters = function () { return [
|
|
21545
21586
|
{ type: NgZone },
|
|
21546
|
-
{ type:
|
|
21547
|
-
{ type:
|
|
21548
|
-
{ type:
|
|
21587
|
+
{ type: RichTextService },
|
|
21588
|
+
{ type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] },
|
|
21589
|
+
{ type: ElementRef }
|
|
21549
21590
|
]; };
|
|
21550
21591
|
__decorate([
|
|
21551
21592
|
Input(),
|
|
@@ -21611,10 +21652,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21611
21652
|
}
|
|
21612
21653
|
]
|
|
21613
21654
|
}),
|
|
21614
|
-
__param(
|
|
21655
|
+
__param(2, Inject(DATO_CORE_CONFIG)),
|
|
21615
21656
|
__metadata("design:paramtypes", [NgZone,
|
|
21616
|
-
|
|
21617
|
-
ElementRef, Object])
|
|
21657
|
+
RichTextService, Object, ElementRef])
|
|
21618
21658
|
], DatoRichTextDirective);
|
|
21619
21659
|
return DatoRichTextDirective;
|
|
21620
21660
|
}(BaseCustomControl));
|
|
@@ -24137,7 +24177,9 @@ var DatoBreadcrumbsComponent = /** @class */ (function () {
|
|
|
24137
24177
|
};
|
|
24138
24178
|
DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
|
|
24139
24179
|
var _this = this;
|
|
24140
|
-
this.headerControl.valueChanges
|
|
24180
|
+
this.headerControl.valueChanges
|
|
24181
|
+
.pipe(debounceTime(300), untilDestroyed(this))
|
|
24182
|
+
.subscribe(function (res) {
|
|
24141
24183
|
_this.updateEditableText.emit(res);
|
|
24142
24184
|
_this.cdr.detectChanges();
|
|
24143
24185
|
});
|
|
@@ -25500,7 +25542,7 @@ function fixNgLeaks() {
|
|
|
25500
25542
|
};
|
|
25501
25543
|
}
|
|
25502
25544
|
|
|
25503
|
-
window.coreVersion = '22.
|
|
25545
|
+
window.coreVersion = '22.13.7-rc.';
|
|
25504
25546
|
|
|
25505
25547
|
/**
|
|
25506
25548
|
* @license
|
|
@@ -25514,5 +25556,5 @@ window.coreVersion = '22.12.7';
|
|
|
25514
25556
|
* Generated bundle index. Do not edit.
|
|
25515
25557
|
*/
|
|
25516
25558
|
|
|
25517
|
-
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, DatoShortNumberPipe, 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, shortNumber, 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 };
|
|
25559
|
+
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, DatoShortNumberPipe, 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, shortNumber, 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 };
|
|
25518
25560
|
//# sourceMappingURL=datorama-core.js.map
|