@datorama/core 22.9.9-rc.2 → 22.9.9
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 +62 -91
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +16 -16
- 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-cell-components/grid-status-cell/grid-status-cell.component.js +10 -6
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +2 -5
- package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +3 -2
- package/esm2015/lib/grid-v2/grid-settings.js +2 -2
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +2 -3
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -7
- package/esm2015/lib/loaders/page-loader/page-loader.component.js +2 -7
- package/esm2015/lib/rich-text/rich-text.directive.js +38 -20
- package/esm2015/lib/select/select.component.js +9 -4
- 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-cell-components/grid-status-cell/grid-status-cell.component.js +10 -6
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +2 -5
- package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +5 -2
- package/esm5/lib/grid-v2/grid-settings.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +2 -3
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -13
- package/esm5/lib/loaders/page-loader/page-loader.component.js +2 -7
- package/esm5/lib/rich-text/rich-text.directive.js +39 -21
- package/esm5/lib/select/select.component.js +9 -4
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +60 -83
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +63 -91
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +4 -3
- package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts +6 -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/loaders/page-loader/page-loader.component.d.ts +0 -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
|
@@ -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();
|
|
@@ -8877,6 +8878,7 @@
|
|
|
8877
8878
|
};
|
|
8878
8879
|
DatoSelectComponent.prototype.removeOption = function (option) {
|
|
8879
8880
|
var _this = this;
|
|
8881
|
+
var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
|
|
8880
8882
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
|
|
8881
8883
|
var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
|
|
8882
8884
|
/**
|
|
@@ -8886,7 +8888,7 @@
|
|
|
8886
8888
|
if (optionToRemove) {
|
|
8887
8889
|
optionToRemove.active = false;
|
|
8888
8890
|
}
|
|
8889
|
-
|
|
8891
|
+
updateDisabled && this.updateDisabledState();
|
|
8890
8892
|
this.onChange(this._model);
|
|
8891
8893
|
this.cdr.markForCheck();
|
|
8892
8894
|
this.asyncUpdateDropdownPosition();
|
|
@@ -9234,6 +9236,9 @@
|
|
|
9234
9236
|
if (!datoOption) {
|
|
9235
9237
|
return;
|
|
9236
9238
|
}
|
|
9239
|
+
var modelLength = this._model.length;
|
|
9240
|
+
var updateDisabled = this.limitSelectedTo &&
|
|
9241
|
+
(modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
|
|
9237
9242
|
datoOption.active = !datoOption.active;
|
|
9238
9243
|
var rawOption = datoOption.option;
|
|
9239
9244
|
if (datoOption.active) {
|
|
@@ -9242,7 +9247,7 @@
|
|
|
9242
9247
|
else {
|
|
9243
9248
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
|
|
9244
9249
|
}
|
|
9245
|
-
|
|
9250
|
+
updateDisabled && this.updateDisabledState();
|
|
9246
9251
|
this.onChange(this._model);
|
|
9247
9252
|
this.cdr.markForCheck();
|
|
9248
9253
|
this.asyncUpdateDropdownPosition();
|
|
@@ -12047,7 +12052,7 @@
|
|
|
12047
12052
|
return contextActions;
|
|
12048
12053
|
}
|
|
12049
12054
|
|
|
12050
|
-
var DATO_GRID_STORAGE_API = new core.InjectionToken('
|
|
12055
|
+
var DATO_GRID_STORAGE_API = new core.InjectionToken('DATO_GRID_STORAGE_API');
|
|
12051
12056
|
|
|
12052
12057
|
var defaultEditableColumnRenderer = function (params) {
|
|
12053
12058
|
return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
|
|
@@ -14634,8 +14639,7 @@
|
|
|
14634
14639
|
this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
|
|
14635
14640
|
};
|
|
14636
14641
|
GridService.prototype.saveSettingsToServer = function (settings) {
|
|
14637
|
-
|
|
14638
|
-
this.storageAPI.set(this.gridName, settings, isGlobal);
|
|
14642
|
+
this.storageAPI.set(this.gridName, settings);
|
|
14639
14643
|
};
|
|
14640
14644
|
/**
|
|
14641
14645
|
* @internal used to log grid events to the platform's logging service
|
|
@@ -15640,10 +15644,7 @@
|
|
|
15640
15644
|
.pipe(operators.switchMap(function () {
|
|
15641
15645
|
_this.gridOptions = _this.normalizeOptions();
|
|
15642
15646
|
agGrid.gridOptions = _this.gridOptions;
|
|
15643
|
-
var
|
|
15644
|
-
var settingsLoader = _this.gridOptions.saveSettings === false
|
|
15645
|
-
? rxjs.of(null)
|
|
15646
|
-
: _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
|
|
15647
|
+
var settingsLoader = _this.gridOptions.saveSettings === false ? rxjs.of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
|
|
15647
15648
|
return rxjs.combineLatest([agGrid.gridReady, settingsLoader]);
|
|
15648
15649
|
}), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
15649
15650
|
.subscribe(function (_a) {
|
|
@@ -16473,7 +16474,9 @@
|
|
|
16473
16474
|
DatoGridPaginationV2Component.prototype.ngOnInit = function () {
|
|
16474
16475
|
var _this = this;
|
|
16475
16476
|
this.gridQuery
|
|
16476
|
-
.waitForGrid(function () {
|
|
16477
|
+
.waitForGrid(function () {
|
|
16478
|
+
return rxjs.merge(_this.gridQuery.gridRef.filterChanged, _this.gridQuery.gridRef.rowGroupOpened, _this.gridQuery.gridRef.expandOrCollapseAll);
|
|
16479
|
+
})
|
|
16477
16480
|
.pipe(ngxTakeUntilDestroy.untilDestroyed(this))
|
|
16478
16481
|
.subscribe(function () {
|
|
16479
16482
|
_this.gridApi.paginationGoToPage(0);
|
|
@@ -16925,18 +16928,6 @@
|
|
|
16925
16928
|
this.registerGroupListeners();
|
|
16926
16929
|
this.subscribeRowsSelectionData();
|
|
16927
16930
|
};
|
|
16928
|
-
DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
|
|
16929
|
-
var _this = this;
|
|
16930
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16931
|
-
return _this.gridQuery.gridRef.cellValueChanged.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16932
|
-
});
|
|
16933
|
-
};
|
|
16934
|
-
DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
|
|
16935
|
-
var _this = this;
|
|
16936
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16937
|
-
return _this.gridQuery.gridRef.rowDataUpdated.pipe(operators.debounceTime(100), ngxTakeUntilDestroy.untilDestroyed(_this));
|
|
16938
|
-
});
|
|
16939
|
-
};
|
|
16940
16931
|
DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
|
|
16941
16932
|
if (isFunction(action.onClick)) {
|
|
16942
16933
|
var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
|
|
@@ -19551,7 +19542,6 @@
|
|
|
19551
19542
|
function DatoPageLoaderComponent() {
|
|
19552
19543
|
this.msg = '';
|
|
19553
19544
|
this.salesforce = false;
|
|
19554
|
-
this.size = 'medium';
|
|
19555
19545
|
this.circleIds = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];
|
|
19556
19546
|
}
|
|
19557
19547
|
__decorate([
|
|
@@ -19562,14 +19552,10 @@
|
|
|
19562
19552
|
core.Input(),
|
|
19563
19553
|
__metadata("design:type", Object)
|
|
19564
19554
|
], DatoPageLoaderComponent.prototype, "salesforce", void 0);
|
|
19565
|
-
__decorate([
|
|
19566
|
-
core.Input(),
|
|
19567
|
-
__metadata("design:type", String)
|
|
19568
|
-
], DatoPageLoaderComponent.prototype, "size", void 0);
|
|
19569
19555
|
DatoPageLoaderComponent = __decorate([
|
|
19570
19556
|
core.Component({
|
|
19571
19557
|
selector: 'dato-page-loader',
|
|
19572
|
-
template: "<div class=\"d-flex-column align-center\">\n <ng-container *ngIf=\"salesforce; else datoramaPageLoader\">\n <div class=\"slds-spinner_container\">\n <div role=\"status\" class=\"slds-spinner slds-
|
|
19558
|
+
template: "<div class=\"d-flex-column align-center\">\n <ng-container *ngIf=\"salesforce; else datoramaPageLoader\">\n <div class=\"slds-spinner_container\">\n <div role=\"status\" class=\"slds-spinner slds-spinner_medium slds-spinner_brand\">\n <div class=\"slds-spinner__dot-a\"></div>\n <div class=\"slds-spinner__dot-b\"></div>\n </div>\n </div>\n </ng-container>\n <ng-template #datoramaPageLoader>\n <div class=\"animation-container d-flex align-center d-flex-wrap\">\n <div class=\"circle d-flex align-center\" *ngFor=\"let id of circleIds\" [ngClass]=\"'circle-' + id\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\">\n <circle cx=\"6\" cy=\"6\" r=\"5\" />\n </svg>\n </div>\n </div>\n </ng-template>\n <span class=\"loading-message simple-bold\">{{msg | translate}}</span>\n</div>",
|
|
19573
19559
|
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
19574
19560
|
})
|
|
19575
19561
|
], DatoPageLoaderComponent);
|
|
@@ -20548,6 +20534,7 @@
|
|
|
20548
20534
|
var DatoGridStatusCellComponent = /** @class */ (function () {
|
|
20549
20535
|
function DatoGridStatusCellComponent(cdr) {
|
|
20550
20536
|
this.cdr = cdr;
|
|
20537
|
+
this.DEFAULT_MIN_WIDTH = 100;
|
|
20551
20538
|
}
|
|
20552
20539
|
DatoGridStatusCellComponent.prototype.agInit = function (params) {
|
|
20553
20540
|
var value = params.value, valueFormatted = params.valueFormatted, node = params.node;
|
|
@@ -20562,12 +20549,16 @@
|
|
|
20562
20549
|
var mainCustomCellConfig = customCellConfig || {};
|
|
20563
20550
|
var valueCustomCellConfig = valueToCustomCellConfig ? valueToCustomCellConfig[params.value] || {} : {};
|
|
20564
20551
|
var config = __assign(__assign({}, mainCustomCellConfig), valueCustomCellConfig);
|
|
20565
|
-
var
|
|
20552
|
+
var color = config.color, icon = config.icon, cssClass = config.cssClass, iconCssClass = config.iconCssClass, minWidth = config.minWidth, showSpinner = config.showSpinner, getAdditionalText = config.getAdditionalText, getIsVisible = config.getIsVisible;
|
|
20566
20553
|
this.isVisible = !getIsVisible || getIsVisible(params.data);
|
|
20554
|
+
this.color = color || 'primary';
|
|
20555
|
+
this.backgroundClass = this.color + "-" + (this.color === 'accent' ? '100' : '200') + "-background-color";
|
|
20567
20556
|
this.icon = icon;
|
|
20557
|
+
this.minWidth = minWidth || this.DEFAULT_MIN_WIDTH;
|
|
20558
|
+
this.cssClass = cssClass || '';
|
|
20568
20559
|
this.iconCssClass = iconCssClass || '';
|
|
20569
|
-
this.textCssClass = textCssClass || '';
|
|
20570
20560
|
this.showSpinner = showSpinner;
|
|
20561
|
+
this.additionalText = getAdditionalText ? getAdditionalText(params.data) : null;
|
|
20571
20562
|
};
|
|
20572
20563
|
DatoGridStatusCellComponent.prototype.refresh = function (params) {
|
|
20573
20564
|
this.agInit(params);
|
|
@@ -20580,9 +20571,8 @@
|
|
|
20580
20571
|
DatoGridStatusCellComponent = __decorate([
|
|
20581
20572
|
core.Component({
|
|
20582
20573
|
selector: 'dato-grid-status-cell',
|
|
20583
|
-
template: "<div *ngIf=\"!isGroup && isVisible\" class=\"height-100 d-flex items-center\">\n <dato-icon *ngIf=\"icon\" class=\"mr-
|
|
20584
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
20585
|
-
styles: [".status{line-height:18px}"]
|
|
20574
|
+
template: "<div *ngIf=\"!isGroup && isVisible\" class=\"height-100 d-flex items-center\">\n <div *ngIf=\"status\" class=\"d-flex justify-center items-center px-15 py-5 {{backgroundClass}} {{cssClass}}\" [style.min-width.px]=\"minWidth\">\n <dato-icon *ngIf=\"icon\" class=\"mr-5 {{iconCssClass}}\" [icon]=\"icon\" datoSize=\"sm\"></dato-icon>\n <div class=\"dato-note {{color}}-800-color\" [class.ellipsis]=\"!additionalText\"\n [datoTooltipV2]=\"status\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\" [datoTooltipDisabled]=\"!!additionalText\">\n {{status}}\n </div>\n <div *ngIf=\"additionalText\" class=\"dato-note {{color}}-800-color ml-3 ellipsis\"\n [datoTooltipV2]=\"status + ' ' + additionalText\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{additionalText}}\n </div>\n <span *ngIf=\"showSpinner\" class=\"dato-spinner-loader ml-5\"></span>\n </div>\n</div>\n<span *ngIf=\"isGroup\">{{status}}</span>\n",
|
|
20575
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
20586
20576
|
}),
|
|
20587
20577
|
__metadata("design:paramtypes", [core.ChangeDetectorRef])
|
|
20588
20578
|
], DatoGridStatusCellComponent);
|
|
@@ -21413,40 +21403,6 @@
|
|
|
21413
21403
|
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
21414
21404
|
*/
|
|
21415
21405
|
|
|
21416
|
-
var RichTextService = /** @class */ (function () {
|
|
21417
|
-
function RichTextService(http, config) {
|
|
21418
|
-
this.http = http;
|
|
21419
|
-
this.config = config;
|
|
21420
|
-
}
|
|
21421
|
-
RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21422
|
-
if (!this.richTextScript$) {
|
|
21423
|
-
this.initLib(appendScriptFunc, appendStyleFunc);
|
|
21424
|
-
}
|
|
21425
|
-
return this.richTextScript$;
|
|
21426
|
-
};
|
|
21427
|
-
RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
|
|
21428
|
-
this.richTextScript$ = rxjs.combineLatest([
|
|
21429
|
-
this.http
|
|
21430
|
-
.get(this.config.paths.richText + "/index.js", { responseType: 'text' })
|
|
21431
|
-
.pipe(operators.tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
|
|
21432
|
-
this.http
|
|
21433
|
-
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21434
|
-
.pipe(operators.tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
|
|
21435
|
-
]).pipe(operators.shareReplay(1));
|
|
21436
|
-
};
|
|
21437
|
-
RichTextService.ctorParameters = function () { return [
|
|
21438
|
-
{ type: http.HttpClient },
|
|
21439
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21440
|
-
]; };
|
|
21441
|
-
RichTextService.ɵprov = core.ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
|
|
21442
|
-
RichTextService = __decorate([
|
|
21443
|
-
core.Injectable({ providedIn: 'root' }),
|
|
21444
|
-
__param(1, core.Inject(DATO_CORE_CONFIG)),
|
|
21445
|
-
__metadata("design:paramtypes", [http.HttpClient, Object])
|
|
21446
|
-
], RichTextService);
|
|
21447
|
-
return RichTextService;
|
|
21448
|
-
}());
|
|
21449
|
-
|
|
21450
21406
|
/**
|
|
21451
21407
|
* @license
|
|
21452
21408
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -21460,20 +21416,20 @@
|
|
|
21460
21416
|
var ɵ0$3 = getTinymce;
|
|
21461
21417
|
var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
21462
21418
|
__extends(DatoRichTextDirective, _super);
|
|
21463
|
-
function DatoRichTextDirective(ngZone,
|
|
21419
|
+
function DatoRichTextDirective(ngZone, http, host, config) {
|
|
21464
21420
|
var _this = _super.call(this) || this;
|
|
21465
21421
|
_this.ngZone = ngZone;
|
|
21466
|
-
_this.
|
|
21467
|
-
_this.config = config;
|
|
21422
|
+
_this.http = http;
|
|
21468
21423
|
_this.host = host;
|
|
21424
|
+
_this.config = config;
|
|
21469
21425
|
_this.autocompleteOptions = {};
|
|
21470
21426
|
_this.forcePlainTextPasting = false;
|
|
21471
21427
|
_this.format = 'html';
|
|
21472
21428
|
_this.isOneLine = false;
|
|
21473
21429
|
_this.initialValue = '';
|
|
21474
|
-
_this.defaultPlugins = 'link fullscreen image lists table autocomplete';
|
|
21430
|
+
_this.defaultPlugins = 'link fullscreen textcolor colorpicker image lists table textpattern autocomplete';
|
|
21475
21431
|
_this.defaultToolbar = [
|
|
21476
|
-
'
|
|
21432
|
+
'fontselect fontsizeselect forecolor backcolor bold italic underline link',
|
|
21477
21433
|
'alignleft aligncenter alignright alignjustify outdent indent | table numlist bullist | image fullscreen'
|
|
21478
21434
|
];
|
|
21479
21435
|
return _this;
|
|
@@ -21499,11 +21455,28 @@
|
|
|
21499
21455
|
base: this.config.paths.richText,
|
|
21500
21456
|
query: ''
|
|
21501
21457
|
};
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
|
|
21505
|
-
|
|
21506
|
-
|
|
21458
|
+
/**
|
|
21459
|
+
* We support only one instance in load time
|
|
21460
|
+
*/
|
|
21461
|
+
if (window.tinymce) {
|
|
21462
|
+
this.init.call(this);
|
|
21463
|
+
}
|
|
21464
|
+
else {
|
|
21465
|
+
this.loadLib().subscribe(function (lib) {
|
|
21466
|
+
appendScript(lib, 'rich-text-editor');
|
|
21467
|
+
_this.init.call(_this);
|
|
21468
|
+
_this.loadAutoCompleteStyle();
|
|
21469
|
+
});
|
|
21470
|
+
}
|
|
21471
|
+
};
|
|
21472
|
+
DatoRichTextDirective.prototype.loadLib = function () {
|
|
21473
|
+
return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
|
|
21474
|
+
};
|
|
21475
|
+
DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
|
|
21476
|
+
this.http
|
|
21477
|
+
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21478
|
+
.subscribe(function (style) {
|
|
21479
|
+
appendStyle(style, 'tinymce-autocomplete');
|
|
21507
21480
|
});
|
|
21508
21481
|
};
|
|
21509
21482
|
DatoRichTextDirective.prototype.initEditor = function (_, editor) {
|
|
@@ -21527,6 +21500,8 @@
|
|
|
21527
21500
|
target: this.host.nativeElement,
|
|
21528
21501
|
width: this.width || 600,
|
|
21529
21502
|
height: this.height || 300,
|
|
21503
|
+
force_br_newlines: true,
|
|
21504
|
+
force_p_newlines: false,
|
|
21530
21505
|
resize: 'both',
|
|
21531
21506
|
branding: false,
|
|
21532
21507
|
inline: this.inline,
|
|
@@ -21534,12 +21509,10 @@
|
|
|
21534
21509
|
readonly: this.disabled,
|
|
21535
21510
|
plugins: this.plugins || this.defaultPlugins,
|
|
21536
21511
|
toolbar: isNil(this.toolbar) ? this.defaultToolbar : this.toolbar,
|
|
21537
|
-
|
|
21512
|
+
fontsize_formats: '8px 10px 12px 14px 18px 24px 36px',
|
|
21538
21513
|
min_width: 480,
|
|
21539
21514
|
menubar: false,
|
|
21540
21515
|
autocomplete: this.autocompleteOptions,
|
|
21541
|
-
suffix: '.min',
|
|
21542
|
-
skin: 'tinymce-5',
|
|
21543
21516
|
setup: function (editor) {
|
|
21544
21517
|
_this.editor = editor;
|
|
21545
21518
|
editor.on('init', function (e) {
|
|
@@ -21596,9 +21569,9 @@
|
|
|
21596
21569
|
var DatoRichTextDirective_1;
|
|
21597
21570
|
DatoRichTextDirective.ctorParameters = function () { return [
|
|
21598
21571
|
{ type: core.NgZone },
|
|
21599
|
-
{ type:
|
|
21600
|
-
{ type:
|
|
21601
|
-
{ type: core.
|
|
21572
|
+
{ type: http.HttpClient },
|
|
21573
|
+
{ type: core.ElementRef },
|
|
21574
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21602
21575
|
]; };
|
|
21603
21576
|
__decorate([
|
|
21604
21577
|
core.Input(),
|
|
@@ -21664,9 +21637,10 @@
|
|
|
21664
21637
|
}
|
|
21665
21638
|
]
|
|
21666
21639
|
}),
|
|
21667
|
-
__param(
|
|
21640
|
+
__param(3, core.Inject(DATO_CORE_CONFIG)),
|
|
21668
21641
|
__metadata("design:paramtypes", [core.NgZone,
|
|
21669
|
-
|
|
21642
|
+
http.HttpClient,
|
|
21643
|
+
core.ElementRef, Object])
|
|
21670
21644
|
], DatoRichTextDirective);
|
|
21671
21645
|
return DatoRichTextDirective;
|
|
21672
21646
|
}(BaseCustomControl));
|
|
@@ -24189,9 +24163,7 @@
|
|
|
24189
24163
|
};
|
|
24190
24164
|
DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
|
|
24191
24165
|
var _this = this;
|
|
24192
|
-
this.headerControl.valueChanges
|
|
24193
|
-
.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this))
|
|
24194
|
-
.subscribe(function (res) {
|
|
24166
|
+
this.headerControl.valueChanges.pipe(operators.debounceTime(300), ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function (res) {
|
|
24195
24167
|
_this.updateEditableText.emit(res);
|
|
24196
24168
|
_this.cdr.detectChanges();
|
|
24197
24169
|
});
|
|
@@ -25554,7 +25526,7 @@
|
|
|
25554
25526
|
};
|
|
25555
25527
|
}
|
|
25556
25528
|
|
|
25557
|
-
window.coreVersion = '22.
|
|
25529
|
+
window.coreVersion = '22.9.9';
|
|
25558
25530
|
|
|
25559
25531
|
exports.APP_TRANSLATE = APP_TRANSLATE;
|
|
25560
25532
|
exports.AceService = AceService;
|
|
@@ -25996,7 +25968,6 @@
|
|
|
25996
25968
|
exports.ɵl = DatoGridItemsCountCellComponent;
|
|
25997
25969
|
exports.ɵm = DatoGridV2ToolbarMoreMenuComponent;
|
|
25998
25970
|
exports.ɵn = DatoGridSearchBarComponent;
|
|
25999
|
-
exports.ɵo = RichTextService;
|
|
26000
25971
|
|
|
26001
25972
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
26002
25973
|
|