@datorama/core 22.8.1-rc.1 → 22.8.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.
- package/bundles/datorama-core.umd.js +97 -118
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +15 -15
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.d.ts +0 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/datorama-core.js +1 -2
- package/esm2015/lib/breadcrumbs/breadcrumbs.component.js +2 -4
- package/esm2015/lib/grid-v2/grid/grid-v2.types.js +1 -1
- package/esm2015/lib/grid-v2/grid-column-header/grid-column-header.component.js +9 -3
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +3 -6
- package/esm2015/lib/grid-v2/grid-settings.js +2 -2
- package/esm2015/lib/grid-v2/grid-store/grid.query.js +23 -22
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +22 -22
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -7
- package/esm2015/lib/rich-text/rich-text.directive.js +33 -15
- package/esm2015/lib/select/select.component.js +10 -5
- package/esm2015/lib/version.js +2 -2
- package/esm5/datorama-core.js +1 -2
- package/esm5/lib/breadcrumbs/breadcrumbs.component.js +2 -4
- package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
- package/esm5/lib/grid-v2/grid-column-header/grid-column-header.component.js +9 -3
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +3 -6
- package/esm5/lib/grid-v2/grid-settings.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.query.js +24 -22
- package/esm5/lib/grid-v2/grid-store/grid.service.js +22 -22
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -13
- package/esm5/lib/rich-text/rich-text.directive.js +34 -16
- package/esm5/lib/select/select.component.js +10 -5
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +96 -110
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +98 -118
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -1
- package/lib/grid-v2/grid-settings.d.ts +2 -2
- package/lib/grid-v2/grid-store/grid.query.d.ts +3 -3
- package/lib/grid-v2/grid-store/grid.service.d.ts +1 -0
- package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +0 -2
- package/lib/rich-text/rich-text.directive.d.ts +6 -4
- package/package.json +1 -1
- package/esm2015/lib/rich-text/rich-text.service.js +0 -50
- package/esm5/lib/rich-text/rich-text.service.js +0 -51
- package/lib/rich-text/rich-text.service.d.ts +0 -10
|
@@ -8748,8 +8748,9 @@
|
|
|
8748
8748
|
DatoSelectComponent.prototype.writeValue = function (activeOptions) {
|
|
8749
8749
|
this._model = activeOptions ? akita.coerceArray(activeOptions) : [];
|
|
8750
8750
|
if (this.options) {
|
|
8751
|
+
var overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
|
|
8751
8752
|
this.markAsActive(this._model, { deselectAll: true });
|
|
8752
|
-
|
|
8753
|
+
overTheLimit && this.updateDisabledState();
|
|
8753
8754
|
}
|
|
8754
8755
|
/** For later updates */
|
|
8755
8756
|
this.cdr.markForCheck();
|
|
@@ -8786,7 +8787,7 @@
|
|
|
8786
8787
|
*/
|
|
8787
8788
|
if (this.hasValue && this._initialOpen) {
|
|
8788
8789
|
this.markAsActive(this._model);
|
|
8789
|
-
if (this.limitSelectedTo) {
|
|
8790
|
+
if (this.limitSelectedTo && this._model.length === this.limitSelectedTo) {
|
|
8790
8791
|
this.updateDisabledState();
|
|
8791
8792
|
}
|
|
8792
8793
|
this._initialOpen = false;
|
|
@@ -8875,6 +8876,7 @@
|
|
|
8875
8876
|
};
|
|
8876
8877
|
DatoSelectComponent.prototype.removeOption = function (option) {
|
|
8877
8878
|
var _this = this;
|
|
8879
|
+
var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
|
|
8878
8880
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
|
|
8879
8881
|
var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
|
|
8880
8882
|
/**
|
|
@@ -8884,7 +8886,7 @@
|
|
|
8884
8886
|
if (optionToRemove) {
|
|
8885
8887
|
optionToRemove.active = false;
|
|
8886
8888
|
}
|
|
8887
|
-
|
|
8889
|
+
updateDisabled && this.updateDisabledState();
|
|
8888
8890
|
this.onChange(this._model);
|
|
8889
8891
|
this.cdr.markForCheck();
|
|
8890
8892
|
this.asyncUpdateDropdownPosition();
|
|
@@ -9232,6 +9234,9 @@
|
|
|
9232
9234
|
if (!datoOption) {
|
|
9233
9235
|
return;
|
|
9234
9236
|
}
|
|
9237
|
+
var modelLength = this._model.length;
|
|
9238
|
+
var updateDisabled = this.limitSelectedTo &&
|
|
9239
|
+
(modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
|
|
9235
9240
|
datoOption.active = !datoOption.active;
|
|
9236
9241
|
var rawOption = datoOption.option;
|
|
9237
9242
|
if (datoOption.active) {
|
|
@@ -9240,7 +9245,7 @@
|
|
|
9240
9245
|
else {
|
|
9241
9246
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
|
|
9242
9247
|
}
|
|
9243
|
-
|
|
9248
|
+
updateDisabled && this.updateDisabledState();
|
|
9244
9249
|
this.onChange(this._model);
|
|
9245
9250
|
this.cdr.markForCheck();
|
|
9246
9251
|
this.asyncUpdateDropdownPosition();
|
|
@@ -11581,7 +11586,7 @@
|
|
|
11581
11586
|
var storeSettings = this.getValue().settings;
|
|
11582
11587
|
var settings = {
|
|
11583
11588
|
gridAlignment: storeSettings.gridAlignment,
|
|
11584
|
-
sort: this.
|
|
11589
|
+
sort: this.getGridOptions().sortByStore ? this.getSavedSort() : this.getSortModel(),
|
|
11585
11590
|
hiddenColumns: hiddenColumns,
|
|
11586
11591
|
groupedColumns: groupedColumns.map(toColId),
|
|
11587
11592
|
filter: this.getFilter(),
|
|
@@ -11595,30 +11600,32 @@
|
|
|
11595
11600
|
}
|
|
11596
11601
|
return settings;
|
|
11597
11602
|
};
|
|
11598
|
-
GridQuery.prototype.
|
|
11603
|
+
GridQuery.prototype.getSortModel = function () {
|
|
11599
11604
|
return this.api.grid.getSortModel().pop();
|
|
11600
11605
|
};
|
|
11601
|
-
GridQuery.prototype.
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
if (
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
var
|
|
11610
|
-
if (
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11606
|
+
GridQuery.prototype.getSavedSort = function () {
|
|
11607
|
+
return this.getValue().settings.sort || this.getSortModel();
|
|
11608
|
+
};
|
|
11609
|
+
GridQuery.prototype.getSort = function (savedSort) {
|
|
11610
|
+
if (savedSort === void 0) { savedSort = this.getSavedSort(); }
|
|
11611
|
+
if (savedSort) {
|
|
11612
|
+
var colId = savedSort.colId, sort = savedSort.sort, sortIndex = savedSort.sortIndex;
|
|
11613
|
+
var column = this.api.columns.getColumn(colId);
|
|
11614
|
+
var allColumns = this.api.columns.getAllGridColumns();
|
|
11615
|
+
if (column) {
|
|
11616
|
+
var field = getColField(column.getColDef());
|
|
11617
|
+
return { colId: colId, sort: sort, field: field };
|
|
11618
|
+
}
|
|
11619
|
+
else {
|
|
11620
|
+
var secondaryColumn = this.getSecondaryColumn(colId);
|
|
11621
|
+
if (secondaryColumn) {
|
|
11622
|
+
var columnIndex = sortIndex || allColumns.indexOf(secondaryColumn);
|
|
11623
|
+
var field = getColField(secondaryColumn.getColDef());
|
|
11624
|
+
return { colId: colId, sort: sort, field: field, sortIndex: columnIndex };
|
|
11625
|
+
}
|
|
11617
11626
|
}
|
|
11618
11627
|
}
|
|
11619
|
-
|
|
11620
|
-
GridQuery.prototype.selectSort = function () {
|
|
11621
|
-
return this.select(function (state) { return state.settings.sort; });
|
|
11628
|
+
return { colId: null, sort: null };
|
|
11622
11629
|
};
|
|
11623
11630
|
/* @internal */
|
|
11624
11631
|
GridQuery.prototype._setApi = function (api, gridRef) {
|
|
@@ -12043,7 +12050,7 @@
|
|
|
12043
12050
|
return contextActions;
|
|
12044
12051
|
}
|
|
12045
12052
|
|
|
12046
|
-
var DATO_GRID_STORAGE_API = new core.InjectionToken('
|
|
12053
|
+
var DATO_GRID_STORAGE_API = new core.InjectionToken('DATO_GRID_STORAGE_API');
|
|
12047
12054
|
|
|
12048
12055
|
var defaultEditableColumnRenderer = function (params) {
|
|
12049
12056
|
return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
|
|
@@ -13493,6 +13500,7 @@
|
|
|
13493
13500
|
var sortingOrder = _this.column.getColDef() ? _this.column.getColDef().sortingOrder : null;
|
|
13494
13501
|
var sort;
|
|
13495
13502
|
var currentSort = _this.column.getSort();
|
|
13503
|
+
var colId = _this.column.getColId();
|
|
13496
13504
|
if (sortingOrder && sortingOrder.length > 0) {
|
|
13497
13505
|
var currentSortIndex = sortingOrder.indexOf(currentSort);
|
|
13498
13506
|
var newSortIndex = void 0;
|
|
@@ -13509,10 +13517,15 @@
|
|
|
13509
13517
|
}
|
|
13510
13518
|
gridService._logEvent("Grids - Column Action" /* GRID_COLUMN_ACTION */, {
|
|
13511
13519
|
action: 'Sort',
|
|
13512
|
-
column:
|
|
13520
|
+
column: colId
|
|
13513
13521
|
});
|
|
13514
13522
|
gridQuery.isServerSide && gridService.setLoading(true);
|
|
13515
|
-
|
|
13523
|
+
if (gridQuery.getGridOptions().sortByStore) {
|
|
13524
|
+
gridService.setSortByColumn(colId, sort);
|
|
13525
|
+
}
|
|
13526
|
+
else {
|
|
13527
|
+
_this.params.setSort(sort);
|
|
13528
|
+
}
|
|
13516
13529
|
});
|
|
13517
13530
|
this.sortingInfo$ = gridQuery
|
|
13518
13531
|
.waitForGrid(function () { return gridQuery.gridRef.sortChanged; })
|
|
@@ -14459,37 +14472,38 @@
|
|
|
14459
14472
|
this.notifyFilterUpdate();
|
|
14460
14473
|
}
|
|
14461
14474
|
};
|
|
14475
|
+
GridService.prototype.setSortByColumn = function (colId, sort) {
|
|
14476
|
+
var sortToSet = this.gridQuery.getSort({ colId: colId, sort: sort });
|
|
14477
|
+
this.setGridSort(sortToSet);
|
|
14478
|
+
};
|
|
14462
14479
|
GridService.prototype.setGridSort = function (gridSort) {
|
|
14463
|
-
if (this.api &&
|
|
14480
|
+
if (gridSort && this.api && this.api.grid.getDisplayedRowCount() > 0) {
|
|
14464
14481
|
var colId_1 = gridSort.colId, sort = gridSort.sort, sortIndex = gridSort.sortIndex;
|
|
14465
|
-
var
|
|
14466
|
-
if (
|
|
14467
|
-
var
|
|
14468
|
-
if (
|
|
14482
|
+
var gridColumns = this.api.columns.getAllGridColumns();
|
|
14483
|
+
if (gridColumns) {
|
|
14484
|
+
var sortToApply = gridSort;
|
|
14485
|
+
if (!isNil(sortIndex)) {
|
|
14469
14486
|
var valueColumns = this.api.columns.getValueColumns();
|
|
14470
14487
|
var valueColumn = valueColumns.find(function (col) { return col.getColId() === colId_1; });
|
|
14471
14488
|
var isPivotColId = colId_1.startsWith('pivot');
|
|
14472
14489
|
if (isPivotColId || valueColumn) {
|
|
14473
14490
|
/** Column is pivot value column, sort by index */
|
|
14474
14491
|
var columnByIndex = gridColumns[sortIndex];
|
|
14475
|
-
|
|
14476
|
-
if (valueColumnId === colId_1) {
|
|
14477
|
-
sortToApply = { colId: columnByIndex.getColId(), sort: sort };
|
|
14478
|
-
}
|
|
14492
|
+
sortToApply = { colId: columnByIndex.getColId(), sort: sort, sortIndex: sortIndex };
|
|
14479
14493
|
}
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
}
|
|
14494
|
+
}
|
|
14495
|
+
else {
|
|
14496
|
+
/** Sort by column id */
|
|
14497
|
+
var columnById = gridColumns.find(function (col) {
|
|
14498
|
+
return (col.getColDef().showRowGroup || col.getColId()) === colId_1;
|
|
14499
|
+
});
|
|
14500
|
+
if (columnById) {
|
|
14501
|
+
sortToApply = { colId: columnById.getColId(), sort: sort };
|
|
14488
14502
|
}
|
|
14489
14503
|
}
|
|
14504
|
+
this.updateSettings({ sort: sortToApply });
|
|
14505
|
+
this.api.grid.setSortModel([sortToApply]);
|
|
14490
14506
|
}
|
|
14491
|
-
this.updateSettings({ sort: sortToApply });
|
|
14492
|
-
this.api.grid.setSortModel([sortToApply]);
|
|
14493
14507
|
}
|
|
14494
14508
|
};
|
|
14495
14509
|
GridService.prototype.updateFilter = function (column, filter) {
|
|
@@ -14547,8 +14561,7 @@
|
|
|
14547
14561
|
this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
|
|
14548
14562
|
};
|
|
14549
14563
|
GridService.prototype.saveSettingsToServer = function (settings) {
|
|
14550
|
-
|
|
14551
|
-
this.storageAPI.set(this.gridName, settings, isGlobal);
|
|
14564
|
+
this.storageAPI.set(this.gridName, settings);
|
|
14552
14565
|
};
|
|
14553
14566
|
/**
|
|
14554
14567
|
* @internal used to log grid events to the platform's logging service
|
|
@@ -15553,10 +15566,7 @@
|
|
|
15553
15566
|
.pipe(operators.switchMap(function () {
|
|
15554
15567
|
_this.gridOptions = _this.normalizeOptions();
|
|
15555
15568
|
agGrid.gridOptions = _this.gridOptions;
|
|
15556
|
-
var
|
|
15557
|
-
var settingsLoader = _this.gridOptions.saveSettings === false
|
|
15558
|
-
? rxjs.of(null)
|
|
15559
|
-
: _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
|
|
15569
|
+
var settingsLoader = _this.gridOptions.saveSettings === false ? rxjs.of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
|
|
15560
15570
|
return rxjs.combineLatest([agGrid.gridReady, settingsLoader]);
|
|
15561
15571
|
}), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
15562
15572
|
.subscribe(function (_a) {
|
|
@@ -15670,7 +15680,7 @@
|
|
|
15670
15680
|
var data = _this.getGridData();
|
|
15671
15681
|
_this.onGridChange.emit({
|
|
15672
15682
|
filter: _this.gridQuery.getExternalFilter(),
|
|
15673
|
-
sort: _this.gridQuery.
|
|
15683
|
+
sort: _this.gridQuery.getSort(),
|
|
15674
15684
|
type: type,
|
|
15675
15685
|
data: data
|
|
15676
15686
|
});
|
|
@@ -16838,18 +16848,6 @@
|
|
|
16838
16848
|
this.registerGroupListeners();
|
|
16839
16849
|
this.subscribeRowsSelectionData();
|
|
16840
16850
|
};
|
|
16841
|
-
DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
|
|
16842
|
-
var _this = this;
|
|
16843
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16844
|
-
return _this.gridQuery.gridRef.cellValueChanged.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16845
|
-
});
|
|
16846
|
-
};
|
|
16847
|
-
DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
|
|
16848
|
-
var _this = this;
|
|
16849
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16850
|
-
return _this.gridQuery.gridRef.rowDataUpdated.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16851
|
-
});
|
|
16852
|
-
};
|
|
16853
16851
|
DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
|
|
16854
16852
|
if (isFunction(action.onClick)) {
|
|
16855
16853
|
var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
|
|
@@ -21325,40 +21323,6 @@
|
|
|
21325
21323
|
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
21326
21324
|
*/
|
|
21327
21325
|
|
|
21328
|
-
var RichTextService = /** @class */ (function () {
|
|
21329
|
-
function RichTextService(http, config) {
|
|
21330
|
-
this.http = http;
|
|
21331
|
-
this.config = config;
|
|
21332
|
-
}
|
|
21333
|
-
RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21334
|
-
if (!this.richTextScript$) {
|
|
21335
|
-
this.initLib(appendScriptFunc, appendStyleFunc);
|
|
21336
|
-
}
|
|
21337
|
-
return this.richTextScript$;
|
|
21338
|
-
};
|
|
21339
|
-
RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21340
|
-
this.richTextScript$ = rxjs.combineLatest([
|
|
21341
|
-
this.http
|
|
21342
|
-
.get(this.config.paths.richText + "/index.js", { responseType: 'text' })
|
|
21343
|
-
.pipe(operators.tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
|
|
21344
|
-
this.http
|
|
21345
|
-
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21346
|
-
.pipe(operators.tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
|
|
21347
|
-
]).pipe(operators.shareReplay(1));
|
|
21348
|
-
};
|
|
21349
|
-
RichTextService.ctorParameters = function () { return [
|
|
21350
|
-
{ type: http.HttpClient },
|
|
21351
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21352
|
-
]; };
|
|
21353
|
-
RichTextService.ɵprov = core.ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
|
|
21354
|
-
RichTextService = __decorate([
|
|
21355
|
-
core.Injectable({ providedIn: 'root' }),
|
|
21356
|
-
__param(1, core.Inject(DATO_CORE_CONFIG)),
|
|
21357
|
-
__metadata("design:paramtypes", [http.HttpClient, Object])
|
|
21358
|
-
], RichTextService);
|
|
21359
|
-
return RichTextService;
|
|
21360
|
-
}());
|
|
21361
|
-
|
|
21362
21326
|
/**
|
|
21363
21327
|
* @license
|
|
21364
21328
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -21372,12 +21336,12 @@
|
|
|
21372
21336
|
var ɵ0$3 = getTinymce;
|
|
21373
21337
|
var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
21374
21338
|
__extends(DatoRichTextDirective, _super);
|
|
21375
|
-
function DatoRichTextDirective(ngZone,
|
|
21339
|
+
function DatoRichTextDirective(ngZone, http, host, config) {
|
|
21376
21340
|
var _this = _super.call(this) || this;
|
|
21377
21341
|
_this.ngZone = ngZone;
|
|
21378
|
-
_this.
|
|
21379
|
-
_this.config = config;
|
|
21342
|
+
_this.http = http;
|
|
21380
21343
|
_this.host = host;
|
|
21344
|
+
_this.config = config;
|
|
21381
21345
|
_this.autocompleteOptions = {};
|
|
21382
21346
|
_this.forcePlainTextPasting = false;
|
|
21383
21347
|
_this.format = 'html';
|
|
@@ -21411,11 +21375,28 @@
|
|
|
21411
21375
|
base: this.config.paths.richText,
|
|
21412
21376
|
query: ''
|
|
21413
21377
|
};
|
|
21414
|
-
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21378
|
+
/**
|
|
21379
|
+
* We support only one instance in load time
|
|
21380
|
+
*/
|
|
21381
|
+
if (window.tinymce) {
|
|
21382
|
+
this.init.call(this);
|
|
21383
|
+
}
|
|
21384
|
+
else {
|
|
21385
|
+
this.loadLib().subscribe(function (lib) {
|
|
21386
|
+
appendScript(lib, 'rich-text-editor');
|
|
21387
|
+
_this.init.call(_this);
|
|
21388
|
+
_this.loadAutoCompleteStyle();
|
|
21389
|
+
});
|
|
21390
|
+
}
|
|
21391
|
+
};
|
|
21392
|
+
DatoRichTextDirective.prototype.loadLib = function () {
|
|
21393
|
+
return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
|
|
21394
|
+
};
|
|
21395
|
+
DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
|
|
21396
|
+
this.http
|
|
21397
|
+
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21398
|
+
.subscribe(function (style) {
|
|
21399
|
+
appendStyle(style, 'tinymce-autocomplete');
|
|
21419
21400
|
});
|
|
21420
21401
|
};
|
|
21421
21402
|
DatoRichTextDirective.prototype.initEditor = function (_, editor) {
|
|
@@ -21508,9 +21489,9 @@
|
|
|
21508
21489
|
var DatoRichTextDirective_1;
|
|
21509
21490
|
DatoRichTextDirective.ctorParameters = function () { return [
|
|
21510
21491
|
{ type: core.NgZone },
|
|
21511
|
-
{ type:
|
|
21512
|
-
{ type:
|
|
21513
|
-
{ type: core.
|
|
21492
|
+
{ type: http.HttpClient },
|
|
21493
|
+
{ type: core.ElementRef },
|
|
21494
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21514
21495
|
]; };
|
|
21515
21496
|
__decorate([
|
|
21516
21497
|
core.Input(),
|
|
@@ -21576,9 +21557,10 @@
|
|
|
21576
21557
|
}
|
|
21577
21558
|
]
|
|
21578
21559
|
}),
|
|
21579
|
-
__param(
|
|
21560
|
+
__param(3, core.Inject(DATO_CORE_CONFIG)),
|
|
21580
21561
|
__metadata("design:paramtypes", [core.NgZone,
|
|
21581
|
-
|
|
21562
|
+
http.HttpClient,
|
|
21563
|
+
core.ElementRef, Object])
|
|
21582
21564
|
], DatoRichTextDirective);
|
|
21583
21565
|
return DatoRichTextDirective;
|
|
21584
21566
|
}(BaseCustomControl));
|
|
@@ -24101,9 +24083,7 @@
|
|
|
24101
24083
|
};
|
|
24102
24084
|
DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
|
|
24103
24085
|
var _this = this;
|
|
24104
|
-
this.headerControl.valueChanges
|
|
24105
|
-
.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
24106
|
-
.subscribe(function (res) {
|
|
24086
|
+
this.headerControl.valueChanges.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function (res) {
|
|
24107
24087
|
_this.updateEditableText.emit(res);
|
|
24108
24088
|
_this.cdr.detectChanges();
|
|
24109
24089
|
});
|
|
@@ -25466,7 +25446,7 @@
|
|
|
25466
25446
|
};
|
|
25467
25447
|
}
|
|
25468
25448
|
|
|
25469
|
-
window.coreVersion = '22.8.1
|
|
25449
|
+
window.coreVersion = '22.8.1';
|
|
25470
25450
|
|
|
25471
25451
|
exports.APP_TRANSLATE = APP_TRANSLATE;
|
|
25472
25452
|
exports.AceService = AceService;
|
|
@@ -25908,7 +25888,6 @@
|
|
|
25908
25888
|
exports.ɵl = DatoGridItemsCountCellComponent;
|
|
25909
25889
|
exports.ɵm = DatoGridV2ToolbarMoreMenuComponent;
|
|
25910
25890
|
exports.ɵn = DatoGridSearchBarComponent;
|
|
25911
|
-
exports.ɵo = RichTextService;
|
|
25912
25891
|
|
|
25913
25892
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
25914
25893
|
|