@datorama/core 22.0.4-rc.3 → 22.0.5
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/bundle.scss +13 -13
- package/bundles/datorama-core.umd.js +72 -78
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +14 -14
- 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-controller/grid-controller.component.js +8 -6
- package/esm2015/lib/grid-v2/grid-filter/filter-validator.js +3 -1
- package/esm2015/lib/grid-v2/grid-filter/grid-filter.component.js +12 -4
- package/esm2015/lib/grid-v2/grid-filter/grid-filter.types.js +3 -1
- package/esm2015/lib/grid-v2/grid-settings.js +2 -2
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +9 -3
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -7
- package/esm2015/lib/icon/icon.types.js +1 -1
- 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-controller/grid-controller.component.js +8 -6
- package/esm5/lib/grid-v2/grid-filter/filter-validator.js +3 -1
- package/esm5/lib/grid-v2/grid-filter/grid-filter.component.js +12 -4
- package/esm5/lib/grid-v2/grid-filter/grid-filter.types.js +3 -1
- package/esm5/lib/grid-v2/grid-settings.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +9 -3
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -13
- package/esm5/lib/icon/icon.types.js +1 -1
- 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 +72 -70
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +73 -78
- package/fesm5/datorama-core.js.map +1 -1
- package/i18n/locale-en_US.json +2 -0
- package/lib/grid-v2/grid/grid-v2.types.d.ts +0 -1
- package/lib/grid-v2/grid-filter/grid-filter.types.d.ts +3 -1
- package/lib/grid-v2/grid-settings.d.ts +2 -2
- package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +0 -2
- package/lib/icon/icon.types.d.ts +1 -1
- package/lib/rich-text/rich-text.directive.d.ts +6 -4
- package/package.json +2 -2
- 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
package/bundle.scss
CHANGED
|
@@ -14300,6 +14300,19 @@ dato-grid-v2 .ag-cell {
|
|
|
14300
14300
|
border-right: solid 1px themify(primary-300, 0.5);
|
|
14301
14301
|
}
|
|
14302
14302
|
|
|
14303
|
+
dato-grid-v2 ag-grid-angular .ag-floating-bottom {
|
|
14304
|
+
border: none !important;
|
|
14305
|
+
}
|
|
14306
|
+
|
|
14307
|
+
dato-grid-v2 ag-grid-angular .ag-floating-bottom .ag-row {
|
|
14308
|
+
background-color: themify(primary-0) !important;
|
|
14309
|
+
border: 1px solid themify(primary-200);
|
|
14310
|
+
}
|
|
14311
|
+
|
|
14312
|
+
dato-grid-v2 ag-grid-angular .ag-floating-bottom .ag-row .ag-cell {
|
|
14313
|
+
border-right: none;
|
|
14314
|
+
}
|
|
14315
|
+
|
|
14303
14316
|
dato-grid-v2 ag-grid-angular.enable-v2_1 {
|
|
14304
14317
|
padding-top: 8px;
|
|
14305
14318
|
}
|
|
@@ -14341,19 +14354,6 @@ dato-grid-v2 ag-grid-angular.pivot-mode .ag-row.ag-row-group:not(.ag-row-level-0
|
|
|
14341
14354
|
font-weight: 400;
|
|
14342
14355
|
}
|
|
14343
14356
|
|
|
14344
|
-
dato-grid-v2 ag-grid-angular.pivot-mode .ag-floating-bottom {
|
|
14345
|
-
border: none;
|
|
14346
|
-
}
|
|
14347
|
-
|
|
14348
|
-
dato-grid-v2 ag-grid-angular.pivot-mode .ag-floating-bottom .ag-row {
|
|
14349
|
-
background-color: themify(primary-0);
|
|
14350
|
-
border: 1px solid themify(primary-200);
|
|
14351
|
-
}
|
|
14352
|
-
|
|
14353
|
-
dato-grid-v2 ag-grid-angular.pivot-mode .ag-floating-bottom .ag-row .ag-cell {
|
|
14354
|
-
border-right: none;
|
|
14355
|
-
}
|
|
14356
|
-
|
|
14357
14357
|
dato-grid-v2 ag-grid-angular.pivot-mode .ag-ltr .ag-row-group-leaf-indent {
|
|
14358
14358
|
margin-left: 0;
|
|
14359
14359
|
}
|
|
@@ -8629,8 +8629,9 @@
|
|
|
8629
8629
|
DatoSelectComponent.prototype.writeValue = function (activeOptions) {
|
|
8630
8630
|
this._model = activeOptions ? akita.coerceArray(activeOptions) : [];
|
|
8631
8631
|
if (this.options) {
|
|
8632
|
+
var overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
|
|
8632
8633
|
this.markAsActive(this._model, { deselectAll: true });
|
|
8633
|
-
|
|
8634
|
+
overTheLimit && this.updateDisabledState();
|
|
8634
8635
|
}
|
|
8635
8636
|
/** For later updates */
|
|
8636
8637
|
this.cdr.markForCheck();
|
|
@@ -8667,7 +8668,7 @@
|
|
|
8667
8668
|
*/
|
|
8668
8669
|
if (this.hasValue && this._initialOpen) {
|
|
8669
8670
|
this.markAsActive(this._model);
|
|
8670
|
-
if (this.limitSelectedTo) {
|
|
8671
|
+
if (this.limitSelectedTo && this._model.length === this.limitSelectedTo) {
|
|
8671
8672
|
this.updateDisabledState();
|
|
8672
8673
|
}
|
|
8673
8674
|
this._initialOpen = false;
|
|
@@ -8756,6 +8757,7 @@
|
|
|
8756
8757
|
};
|
|
8757
8758
|
DatoSelectComponent.prototype.removeOption = function (option) {
|
|
8758
8759
|
var _this = this;
|
|
8760
|
+
var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
|
|
8759
8761
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
|
|
8760
8762
|
var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
|
|
8761
8763
|
/**
|
|
@@ -8765,7 +8767,7 @@
|
|
|
8765
8767
|
if (optionToRemove) {
|
|
8766
8768
|
optionToRemove.active = false;
|
|
8767
8769
|
}
|
|
8768
|
-
|
|
8770
|
+
updateDisabled && this.updateDisabledState();
|
|
8769
8771
|
this.onChange(this._model);
|
|
8770
8772
|
this.cdr.markForCheck();
|
|
8771
8773
|
if (this.datoOverlay.attached) {
|
|
@@ -9115,6 +9117,9 @@
|
|
|
9115
9117
|
if (!datoOption) {
|
|
9116
9118
|
return;
|
|
9117
9119
|
}
|
|
9120
|
+
var modelLength = this._model.length;
|
|
9121
|
+
var updateDisabled = this.limitSelectedTo &&
|
|
9122
|
+
(modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
|
|
9118
9123
|
datoOption.active = !datoOption.active;
|
|
9119
9124
|
var rawOption = datoOption.option;
|
|
9120
9125
|
if (datoOption.active) {
|
|
@@ -9123,7 +9128,7 @@
|
|
|
9123
9128
|
else {
|
|
9124
9129
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
|
|
9125
9130
|
}
|
|
9126
|
-
|
|
9131
|
+
updateDisabled && this.updateDisabledState();
|
|
9127
9132
|
this.onChange(this._model);
|
|
9128
9133
|
this.cdr.markForCheck();
|
|
9129
9134
|
this.datoOverlay.scheduleUpdate();
|
|
@@ -11740,6 +11745,8 @@
|
|
|
11740
11745
|
DatoFilterConditions["NOT_IN_LIST"] = "NOT_IN_LIST";
|
|
11741
11746
|
DatoFilterConditions["IS_EMPTY"] = "IS_EMPTY";
|
|
11742
11747
|
DatoFilterConditions["NOT_EMPTY"] = "NOT_EMPTY";
|
|
11748
|
+
DatoFilterConditions["IS_NULL"] = "IS_NULL";
|
|
11749
|
+
DatoFilterConditions["NOT_NULL"] = "NOT_NULL";
|
|
11743
11750
|
})(exports.DatoFilterConditions || (exports.DatoFilterConditions = {}));
|
|
11744
11751
|
var DatoGridDateFilterOptions = [
|
|
11745
11752
|
exports.DatoFilterConditions.IN_RANGE,
|
|
@@ -11823,8 +11830,10 @@
|
|
|
11823
11830
|
case exports.DatoFilterConditions.IN_RANGE:
|
|
11824
11831
|
return rowValue >= filterValue && rowValue <= parseFloat(rangeEnd);
|
|
11825
11832
|
case exports.DatoFilterConditions.IS_EMPTY:
|
|
11833
|
+
case exports.DatoFilterConditions.IS_NULL:
|
|
11826
11834
|
return isNil(rowValue);
|
|
11827
11835
|
case exports.DatoFilterConditions.NOT_EMPTY:
|
|
11836
|
+
case exports.DatoFilterConditions.NOT_NULL:
|
|
11828
11837
|
return !isNil(rowValue);
|
|
11829
11838
|
}
|
|
11830
11839
|
}
|
|
@@ -12010,7 +12019,7 @@
|
|
|
12010
12019
|
return contextActions;
|
|
12011
12020
|
}
|
|
12012
12021
|
|
|
12013
|
-
var DATO_GRID_STORAGE_API = new core.InjectionToken('
|
|
12022
|
+
var DATO_GRID_STORAGE_API = new core.InjectionToken('DATO_GRID_STORAGE_API');
|
|
12014
12023
|
|
|
12015
12024
|
var defaultEditableColumnRenderer = function (params) {
|
|
12016
12025
|
return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
|
|
@@ -12825,10 +12834,11 @@
|
|
|
12825
12834
|
var _a;
|
|
12826
12835
|
var _this = this;
|
|
12827
12836
|
var _b = this.popover.data, gridService = _b.gridService, gridQuery = _b.gridQuery;
|
|
12828
|
-
var _c = this.colDef, filter = _c.filter,
|
|
12837
|
+
var _c = this.colDef, filter = _c.filter, pivotValueColumn = _c.pivotValueColumn, pivotKeys = _c.pivotKeys;
|
|
12829
12838
|
var colDefs = gridQuery.api.columns.getAllColumns().map(function (column) { return column.getColDef(); });
|
|
12830
12839
|
this.colField = getColField(this.colDef);
|
|
12831
12840
|
var colDef = colDefs.find(function (colDef) { return colDef.field === _this.colField; });
|
|
12841
|
+
var filtersConfig = colDef.filtersConfig || this.colDef.filtersConfig || {};
|
|
12832
12842
|
var colFilter = filter || colDef.filter;
|
|
12833
12843
|
var filterOptions = DatoGridFilterOptionsMap[colFilter];
|
|
12834
12844
|
this.pivotColumn = gridQuery.api.columns.getSecondaryPivotColumn(pivotKeys, pivotValueColumn);
|
|
@@ -12850,7 +12860,11 @@
|
|
|
12850
12860
|
if (this.filterSections.Conditional) {
|
|
12851
12861
|
var filterConditions = filterOptions || DatoGridStringFilterOptions;
|
|
12852
12862
|
if (filtersConfig.showEmptyConditions) {
|
|
12853
|
-
|
|
12863
|
+
var emptyConditions = [exports.DatoFilterConditions.IS_EMPTY, exports.DatoFilterConditions.NOT_EMPTY];
|
|
12864
|
+
if (this.filterType === exports.DatoGridFilterTypes.Number) {
|
|
12865
|
+
emptyConditions = [exports.DatoFilterConditions.IS_NULL, exports.DatoFilterConditions.NOT_NULL];
|
|
12866
|
+
}
|
|
12867
|
+
filterConditions = __spread(filterConditions, emptyConditions);
|
|
12854
12868
|
}
|
|
12855
12869
|
this.conditionalFilterOptions = filterConditions.map(function (operand, id) { return ({
|
|
12856
12870
|
id: id,
|
|
@@ -13241,7 +13255,10 @@
|
|
|
13241
13255
|
valueControl.updateValueAndValidity();
|
|
13242
13256
|
};
|
|
13243
13257
|
DatoGridFilterComponent.prototype.isEmptyOperand = function (operand) {
|
|
13244
|
-
return operand === exports.DatoFilterConditions.IS_EMPTY ||
|
|
13258
|
+
return (operand === exports.DatoFilterConditions.IS_EMPTY ||
|
|
13259
|
+
operand === exports.DatoFilterConditions.NOT_EMPTY ||
|
|
13260
|
+
operand === exports.DatoFilterConditions.IS_NULL ||
|
|
13261
|
+
operand === exports.DatoFilterConditions.NOT_NULL);
|
|
13245
13262
|
};
|
|
13246
13263
|
DatoGridFilterComponent.prototype.isStringArray = function (value) {
|
|
13247
13264
|
return isString(value[0]);
|
|
@@ -14461,8 +14478,7 @@
|
|
|
14461
14478
|
this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
|
|
14462
14479
|
};
|
|
14463
14480
|
GridService.prototype.saveSettingsToServer = function (settings) {
|
|
14464
|
-
|
|
14465
|
-
this.storageAPI.set(this.gridName, settings, isGlobal);
|
|
14481
|
+
this.storageAPI.set(this.gridName, settings);
|
|
14466
14482
|
};
|
|
14467
14483
|
/**
|
|
14468
14484
|
* @internal used to log grid events to the platform's logging service
|
|
@@ -14869,6 +14885,13 @@
|
|
|
14869
14885
|
column: column
|
|
14870
14886
|
};
|
|
14871
14887
|
}
|
|
14888
|
+
if (condition === exports.DatoFilterConditions.IS_NULL || condition === exports.DatoFilterConditions.NOT_NULL) {
|
|
14889
|
+
return {
|
|
14890
|
+
condition: exports.DatoFilterConditions.IS_NULL,
|
|
14891
|
+
value: condition === exports.DatoFilterConditions.IS_NULL ? 'true' : 'false',
|
|
14892
|
+
column: column
|
|
14893
|
+
};
|
|
14894
|
+
}
|
|
14872
14895
|
return __assign(__assign({}, item), { column: column });
|
|
14873
14896
|
})
|
|
14874
14897
|
};
|
|
@@ -15460,10 +15483,7 @@
|
|
|
15460
15483
|
.pipe(operators.switchMap(function () {
|
|
15461
15484
|
_this.gridOptions = _this.normalizeOptions();
|
|
15462
15485
|
agGrid.gridOptions = _this.gridOptions;
|
|
15463
|
-
var
|
|
15464
|
-
var settingsLoader = _this.gridOptions.saveSettings === false
|
|
15465
|
-
? rxjs.of(null)
|
|
15466
|
-
: _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
|
|
15486
|
+
var settingsLoader = _this.gridOptions.saveSettings === false ? rxjs.of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
|
|
15467
15487
|
return rxjs.combineLatest([agGrid.gridReady, settingsLoader]);
|
|
15468
15488
|
}), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
15469
15489
|
.subscribe(function (_a) {
|
|
@@ -15471,6 +15491,11 @@
|
|
|
15471
15491
|
if (!_this.gridOptions.rowData) {
|
|
15472
15492
|
api.showLoadingOverlay();
|
|
15473
15493
|
}
|
|
15494
|
+
if (!_this.gridOptions.statusBar) {
|
|
15495
|
+
/** Fix ag-grid bug that doesn't add ag-hidden class to the status bar, which only get fixed in later versions */
|
|
15496
|
+
var el = agGridEl.querySelector('.ag-status-bar');
|
|
15497
|
+
addClass(el, 'ag-hidden');
|
|
15498
|
+
}
|
|
15474
15499
|
var gridApi = { grid: api, columns: columnApi };
|
|
15475
15500
|
_this.gridService._setApi(gridApi, agGrid);
|
|
15476
15501
|
_this.gridQuery._setApi(gridApi, agGrid);
|
|
@@ -16738,18 +16763,6 @@
|
|
|
16738
16763
|
this.registerGroupListeners();
|
|
16739
16764
|
this.subscribeRowsSelectionData();
|
|
16740
16765
|
};
|
|
16741
|
-
DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
|
|
16742
|
-
var _this = this;
|
|
16743
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16744
|
-
return _this.gridQuery.gridRef.cellValueChanged.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16745
|
-
});
|
|
16746
|
-
};
|
|
16747
|
-
DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
|
|
16748
|
-
var _this = this;
|
|
16749
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16750
|
-
return _this.gridQuery.gridRef.rowDataUpdated.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16751
|
-
});
|
|
16752
|
-
};
|
|
16753
16766
|
DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
|
|
16754
16767
|
if (isFunction(action.onClick)) {
|
|
16755
16768
|
var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
|
|
@@ -21225,40 +21238,6 @@
|
|
|
21225
21238
|
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
21226
21239
|
*/
|
|
21227
21240
|
|
|
21228
|
-
var RichTextService = /** @class */ (function () {
|
|
21229
|
-
function RichTextService(http, config) {
|
|
21230
|
-
this.http = http;
|
|
21231
|
-
this.config = config;
|
|
21232
|
-
}
|
|
21233
|
-
RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21234
|
-
if (!this.richTextScript$) {
|
|
21235
|
-
this.initLib(appendScriptFunc, appendStyleFunc);
|
|
21236
|
-
}
|
|
21237
|
-
return this.richTextScript$;
|
|
21238
|
-
};
|
|
21239
|
-
RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21240
|
-
this.richTextScript$ = rxjs.combineLatest([
|
|
21241
|
-
this.http
|
|
21242
|
-
.get(this.config.paths.richText + "/index.js", { responseType: 'text' })
|
|
21243
|
-
.pipe(operators.tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
|
|
21244
|
-
this.http
|
|
21245
|
-
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21246
|
-
.pipe(operators.tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
|
|
21247
|
-
]).pipe(operators.shareReplay(1));
|
|
21248
|
-
};
|
|
21249
|
-
RichTextService.ctorParameters = function () { return [
|
|
21250
|
-
{ type: http.HttpClient },
|
|
21251
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21252
|
-
]; };
|
|
21253
|
-
RichTextService.ɵprov = core.ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
|
|
21254
|
-
RichTextService = __decorate([
|
|
21255
|
-
core.Injectable({ providedIn: 'root' }),
|
|
21256
|
-
__param(1, core.Inject(DATO_CORE_CONFIG)),
|
|
21257
|
-
__metadata("design:paramtypes", [http.HttpClient, Object])
|
|
21258
|
-
], RichTextService);
|
|
21259
|
-
return RichTextService;
|
|
21260
|
-
}());
|
|
21261
|
-
|
|
21262
21241
|
/**
|
|
21263
21242
|
* @license
|
|
21264
21243
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -21272,12 +21251,12 @@
|
|
|
21272
21251
|
var ɵ0$3 = getTinymce;
|
|
21273
21252
|
var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
21274
21253
|
__extends(DatoRichTextDirective, _super);
|
|
21275
|
-
function DatoRichTextDirective(ngZone,
|
|
21254
|
+
function DatoRichTextDirective(ngZone, http, host, config) {
|
|
21276
21255
|
var _this = _super.call(this) || this;
|
|
21277
21256
|
_this.ngZone = ngZone;
|
|
21278
|
-
_this.
|
|
21279
|
-
_this.config = config;
|
|
21257
|
+
_this.http = http;
|
|
21280
21258
|
_this.host = host;
|
|
21259
|
+
_this.config = config;
|
|
21281
21260
|
_this.autocompleteOptions = {};
|
|
21282
21261
|
_this.forcePlainTextPasting = false;
|
|
21283
21262
|
_this.format = 'html';
|
|
@@ -21311,11 +21290,28 @@
|
|
|
21311
21290
|
base: this.config.paths.richText,
|
|
21312
21291
|
query: ''
|
|
21313
21292
|
};
|
|
21314
|
-
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21293
|
+
/**
|
|
21294
|
+
* We support only one instance in load time
|
|
21295
|
+
*/
|
|
21296
|
+
if (window.tinymce) {
|
|
21297
|
+
this.init.call(this);
|
|
21298
|
+
}
|
|
21299
|
+
else {
|
|
21300
|
+
this.loadLib().subscribe(function (lib) {
|
|
21301
|
+
appendScript(lib, 'rich-text-editor');
|
|
21302
|
+
_this.init.call(_this);
|
|
21303
|
+
_this.loadAutoCompleteStyle();
|
|
21304
|
+
});
|
|
21305
|
+
}
|
|
21306
|
+
};
|
|
21307
|
+
DatoRichTextDirective.prototype.loadLib = function () {
|
|
21308
|
+
return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
|
|
21309
|
+
};
|
|
21310
|
+
DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
|
|
21311
|
+
this.http
|
|
21312
|
+
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21313
|
+
.subscribe(function (style) {
|
|
21314
|
+
appendStyle(style, 'tinymce-autocomplete');
|
|
21319
21315
|
});
|
|
21320
21316
|
};
|
|
21321
21317
|
DatoRichTextDirective.prototype.initEditor = function (_, editor) {
|
|
@@ -21408,9 +21404,9 @@
|
|
|
21408
21404
|
var DatoRichTextDirective_1;
|
|
21409
21405
|
DatoRichTextDirective.ctorParameters = function () { return [
|
|
21410
21406
|
{ type: core.NgZone },
|
|
21411
|
-
{ type:
|
|
21412
|
-
{ type:
|
|
21413
|
-
{ type: core.
|
|
21407
|
+
{ type: http.HttpClient },
|
|
21408
|
+
{ type: core.ElementRef },
|
|
21409
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21414
21410
|
]; };
|
|
21415
21411
|
__decorate([
|
|
21416
21412
|
core.Input(),
|
|
@@ -21476,9 +21472,10 @@
|
|
|
21476
21472
|
}
|
|
21477
21473
|
]
|
|
21478
21474
|
}),
|
|
21479
|
-
__param(
|
|
21475
|
+
__param(3, core.Inject(DATO_CORE_CONFIG)),
|
|
21480
21476
|
__metadata("design:paramtypes", [core.NgZone,
|
|
21481
|
-
|
|
21477
|
+
http.HttpClient,
|
|
21478
|
+
core.ElementRef, Object])
|
|
21482
21479
|
], DatoRichTextDirective);
|
|
21483
21480
|
return DatoRichTextDirective;
|
|
21484
21481
|
}(BaseCustomControl));
|
|
@@ -24001,9 +23998,7 @@
|
|
|
24001
23998
|
};
|
|
24002
23999
|
DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
|
|
24003
24000
|
var _this = this;
|
|
24004
|
-
this.headerControl.valueChanges
|
|
24005
|
-
.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
24006
|
-
.subscribe(function (res) {
|
|
24001
|
+
this.headerControl.valueChanges.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function (res) {
|
|
24007
24002
|
_this.updateEditableText.emit(res);
|
|
24008
24003
|
_this.cdr.detectChanges();
|
|
24009
24004
|
});
|
|
@@ -25366,7 +25361,7 @@
|
|
|
25366
25361
|
};
|
|
25367
25362
|
}
|
|
25368
25363
|
|
|
25369
|
-
window.coreVersion = '22.
|
|
25364
|
+
window.coreVersion = '22.0.5';
|
|
25370
25365
|
|
|
25371
25366
|
exports.APP_TRANSLATE = APP_TRANSLATE;
|
|
25372
25367
|
exports.AceService = AceService;
|
|
@@ -25808,7 +25803,6 @@
|
|
|
25808
25803
|
exports.ɵl = DatoGridItemsCountCellComponent;
|
|
25809
25804
|
exports.ɵm = DatoGridV2ToolbarMoreMenuComponent;
|
|
25810
25805
|
exports.ɵn = DatoGridSearchBarComponent;
|
|
25811
|
-
exports.ɵo = RichTextService;
|
|
25812
25806
|
|
|
25813
25807
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
25814
25808
|
|