@datorama/core 22.8.1-rc.3 → 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 +96 -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 +21 -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 +21 -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 +95 -110
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +97 -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,38 +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
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
|
-
var pivotValueColumnId = pivotValueColumn && pivotValueColumn.getColId();
|
|
14477
|
-
if (pivotValueColumnId === colId_1) {
|
|
14478
|
-
sortToApply = { colId: columnByIndex.getColId(), sort: sort };
|
|
14479
|
-
}
|
|
14492
|
+
sortToApply = { colId: columnByIndex.getColId(), sort: sort, sortIndex: sortIndex };
|
|
14480
14493
|
}
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
}
|
|
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 };
|
|
14489
14502
|
}
|
|
14490
14503
|
}
|
|
14504
|
+
this.updateSettings({ sort: sortToApply });
|
|
14505
|
+
this.api.grid.setSortModel([sortToApply]);
|
|
14491
14506
|
}
|
|
14492
|
-
this.updateSettings({ sort: sortToApply });
|
|
14493
|
-
this.api.grid.setSortModel([sortToApply]);
|
|
14494
14507
|
}
|
|
14495
14508
|
};
|
|
14496
14509
|
GridService.prototype.updateFilter = function (column, filter) {
|
|
@@ -14548,8 +14561,7 @@
|
|
|
14548
14561
|
this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
|
|
14549
14562
|
};
|
|
14550
14563
|
GridService.prototype.saveSettingsToServer = function (settings) {
|
|
14551
|
-
|
|
14552
|
-
this.storageAPI.set(this.gridName, settings, isGlobal);
|
|
14564
|
+
this.storageAPI.set(this.gridName, settings);
|
|
14553
14565
|
};
|
|
14554
14566
|
/**
|
|
14555
14567
|
* @internal used to log grid events to the platform's logging service
|
|
@@ -15554,10 +15566,7 @@
|
|
|
15554
15566
|
.pipe(operators.switchMap(function () {
|
|
15555
15567
|
_this.gridOptions = _this.normalizeOptions();
|
|
15556
15568
|
agGrid.gridOptions = _this.gridOptions;
|
|
15557
|
-
var
|
|
15558
|
-
var settingsLoader = _this.gridOptions.saveSettings === false
|
|
15559
|
-
? rxjs.of(null)
|
|
15560
|
-
: _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
|
|
15569
|
+
var settingsLoader = _this.gridOptions.saveSettings === false ? rxjs.of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
|
|
15561
15570
|
return rxjs.combineLatest([agGrid.gridReady, settingsLoader]);
|
|
15562
15571
|
}), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
15563
15572
|
.subscribe(function (_a) {
|
|
@@ -15671,7 +15680,7 @@
|
|
|
15671
15680
|
var data = _this.getGridData();
|
|
15672
15681
|
_this.onGridChange.emit({
|
|
15673
15682
|
filter: _this.gridQuery.getExternalFilter(),
|
|
15674
|
-
sort: _this.gridQuery.
|
|
15683
|
+
sort: _this.gridQuery.getSort(),
|
|
15675
15684
|
type: type,
|
|
15676
15685
|
data: data
|
|
15677
15686
|
});
|
|
@@ -16839,18 +16848,6 @@
|
|
|
16839
16848
|
this.registerGroupListeners();
|
|
16840
16849
|
this.subscribeRowsSelectionData();
|
|
16841
16850
|
};
|
|
16842
|
-
DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
|
|
16843
|
-
var _this = this;
|
|
16844
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16845
|
-
return _this.gridQuery.gridRef.cellValueChanged.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16846
|
-
});
|
|
16847
|
-
};
|
|
16848
|
-
DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
|
|
16849
|
-
var _this = this;
|
|
16850
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16851
|
-
return _this.gridQuery.gridRef.rowDataUpdated.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16852
|
-
});
|
|
16853
|
-
};
|
|
16854
16851
|
DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
|
|
16855
16852
|
if (isFunction(action.onClick)) {
|
|
16856
16853
|
var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
|
|
@@ -21326,40 +21323,6 @@
|
|
|
21326
21323
|
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
21327
21324
|
*/
|
|
21328
21325
|
|
|
21329
|
-
var RichTextService = /** @class */ (function () {
|
|
21330
|
-
function RichTextService(http, config) {
|
|
21331
|
-
this.http = http;
|
|
21332
|
-
this.config = config;
|
|
21333
|
-
}
|
|
21334
|
-
RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21335
|
-
if (!this.richTextScript$) {
|
|
21336
|
-
this.initLib(appendScriptFunc, appendStyleFunc);
|
|
21337
|
-
}
|
|
21338
|
-
return this.richTextScript$;
|
|
21339
|
-
};
|
|
21340
|
-
RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21341
|
-
this.richTextScript$ = rxjs.combineLatest([
|
|
21342
|
-
this.http
|
|
21343
|
-
.get(this.config.paths.richText + "/index.js", { responseType: 'text' })
|
|
21344
|
-
.pipe(operators.tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
|
|
21345
|
-
this.http
|
|
21346
|
-
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21347
|
-
.pipe(operators.tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
|
|
21348
|
-
]).pipe(operators.shareReplay(1));
|
|
21349
|
-
};
|
|
21350
|
-
RichTextService.ctorParameters = function () { return [
|
|
21351
|
-
{ type: http.HttpClient },
|
|
21352
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21353
|
-
]; };
|
|
21354
|
-
RichTextService.ɵprov = core.ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
|
|
21355
|
-
RichTextService = __decorate([
|
|
21356
|
-
core.Injectable({ providedIn: 'root' }),
|
|
21357
|
-
__param(1, core.Inject(DATO_CORE_CONFIG)),
|
|
21358
|
-
__metadata("design:paramtypes", [http.HttpClient, Object])
|
|
21359
|
-
], RichTextService);
|
|
21360
|
-
return RichTextService;
|
|
21361
|
-
}());
|
|
21362
|
-
|
|
21363
21326
|
/**
|
|
21364
21327
|
* @license
|
|
21365
21328
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -21373,12 +21336,12 @@
|
|
|
21373
21336
|
var ɵ0$3 = getTinymce;
|
|
21374
21337
|
var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
21375
21338
|
__extends(DatoRichTextDirective, _super);
|
|
21376
|
-
function DatoRichTextDirective(ngZone,
|
|
21339
|
+
function DatoRichTextDirective(ngZone, http, host, config) {
|
|
21377
21340
|
var _this = _super.call(this) || this;
|
|
21378
21341
|
_this.ngZone = ngZone;
|
|
21379
|
-
_this.
|
|
21380
|
-
_this.config = config;
|
|
21342
|
+
_this.http = http;
|
|
21381
21343
|
_this.host = host;
|
|
21344
|
+
_this.config = config;
|
|
21382
21345
|
_this.autocompleteOptions = {};
|
|
21383
21346
|
_this.forcePlainTextPasting = false;
|
|
21384
21347
|
_this.format = 'html';
|
|
@@ -21412,11 +21375,28 @@
|
|
|
21412
21375
|
base: this.config.paths.richText,
|
|
21413
21376
|
query: ''
|
|
21414
21377
|
};
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
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');
|
|
21420
21400
|
});
|
|
21421
21401
|
};
|
|
21422
21402
|
DatoRichTextDirective.prototype.initEditor = function (_, editor) {
|
|
@@ -21509,9 +21489,9 @@
|
|
|
21509
21489
|
var DatoRichTextDirective_1;
|
|
21510
21490
|
DatoRichTextDirective.ctorParameters = function () { return [
|
|
21511
21491
|
{ type: core.NgZone },
|
|
21512
|
-
{ type:
|
|
21513
|
-
{ type:
|
|
21514
|
-
{ type: core.
|
|
21492
|
+
{ type: http.HttpClient },
|
|
21493
|
+
{ type: core.ElementRef },
|
|
21494
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21515
21495
|
]; };
|
|
21516
21496
|
__decorate([
|
|
21517
21497
|
core.Input(),
|
|
@@ -21577,9 +21557,10 @@
|
|
|
21577
21557
|
}
|
|
21578
21558
|
]
|
|
21579
21559
|
}),
|
|
21580
|
-
__param(
|
|
21560
|
+
__param(3, core.Inject(DATO_CORE_CONFIG)),
|
|
21581
21561
|
__metadata("design:paramtypes", [core.NgZone,
|
|
21582
|
-
|
|
21562
|
+
http.HttpClient,
|
|
21563
|
+
core.ElementRef, Object])
|
|
21583
21564
|
], DatoRichTextDirective);
|
|
21584
21565
|
return DatoRichTextDirective;
|
|
21585
21566
|
}(BaseCustomControl));
|
|
@@ -24102,9 +24083,7 @@
|
|
|
24102
24083
|
};
|
|
24103
24084
|
DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
|
|
24104
24085
|
var _this = this;
|
|
24105
|
-
this.headerControl.valueChanges
|
|
24106
|
-
.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
24107
|
-
.subscribe(function (res) {
|
|
24086
|
+
this.headerControl.valueChanges.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function (res) {
|
|
24108
24087
|
_this.updateEditableText.emit(res);
|
|
24109
24088
|
_this.cdr.detectChanges();
|
|
24110
24089
|
});
|
|
@@ -25467,7 +25446,7 @@
|
|
|
25467
25446
|
};
|
|
25468
25447
|
}
|
|
25469
25448
|
|
|
25470
|
-
window.coreVersion = '22.8.1
|
|
25449
|
+
window.coreVersion = '22.8.1';
|
|
25471
25450
|
|
|
25472
25451
|
exports.APP_TRANSLATE = APP_TRANSLATE;
|
|
25473
25452
|
exports.AceService = AceService;
|
|
@@ -25909,7 +25888,6 @@
|
|
|
25909
25888
|
exports.ɵl = DatoGridItemsCountCellComponent;
|
|
25910
25889
|
exports.ɵm = DatoGridV2ToolbarMoreMenuComponent;
|
|
25911
25890
|
exports.ɵn = DatoGridSearchBarComponent;
|
|
25912
|
-
exports.ɵo = RichTextService;
|
|
25913
25891
|
|
|
25914
25892
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
25915
25893
|
|