@datorama/core 21.4.0-rc.9 → 22.0.2
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 +2 -2
- package/bundles/datorama-core.umd.js +148 -138
- 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-controller/grid-controller.component.js +5 -5
- package/esm2015/lib/grid-v2/grid-filter/filter-validator.js +9 -9
- package/esm2015/lib/grid-v2/grid-filter/grid-filter.component.js +28 -16
- package/esm2015/lib/grid-v2/grid-filter/grid-filter.types.js +1 -1
- package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +2 -2
- package/esm2015/lib/grid-v2/grid-settings.js +2 -2
- package/esm2015/lib/grid-v2/grid-store/grid.query.js +11 -8
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +28 -16
- 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-controller/grid-controller.component.js +5 -5
- package/esm5/lib/grid-v2/grid-filter/filter-validator.js +12 -9
- package/esm5/lib/grid-v2/grid-filter/grid-filter.component.js +28 -16
- package/esm5/lib/grid-v2/grid-filter/grid-filter.types.js +1 -1
- package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +2 -2
- package/esm5/lib/grid-v2/grid-settings.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.query.js +15 -12
- package/esm5/lib/grid-v2/grid-store/grid.service.js +49 -31
- 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 +120 -111
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +149 -138
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +0 -1
- package/lib/grid-v2/grid-controller/grid-controller.component.d.ts +3 -2
- package/lib/grid-v2/grid-filter/filter-validator.d.ts +4 -3
- package/lib/grid-v2/grid-filter/grid-filter.types.d.ts +3 -2
- package/lib/grid-v2/grid-settings.d.ts +2 -2
- package/lib/grid-v2/grid-store/grid.query.d.ts +3 -2
- package/lib/grid-v2/grid-store/grid.service.d.ts +4 -3
- 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
package/fesm5/datorama-core.js
CHANGED
|
@@ -8430,8 +8430,9 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8430
8430
|
DatoSelectComponent.prototype.writeValue = function (activeOptions) {
|
|
8431
8431
|
this._model = activeOptions ? coerceArray$1(activeOptions) : [];
|
|
8432
8432
|
if (this.options) {
|
|
8433
|
+
var overTheLimit = this.limitSelectedTo && this.isMulti && this._model.length >= this.limitSelectedTo;
|
|
8433
8434
|
this.markAsActive(this._model, { deselectAll: true });
|
|
8434
|
-
|
|
8435
|
+
overTheLimit && this.updateDisabledState();
|
|
8435
8436
|
}
|
|
8436
8437
|
/** For later updates */
|
|
8437
8438
|
this.cdr.markForCheck();
|
|
@@ -8468,7 +8469,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8468
8469
|
*/
|
|
8469
8470
|
if (this.hasValue && this._initialOpen) {
|
|
8470
8471
|
this.markAsActive(this._model);
|
|
8471
|
-
if (this.limitSelectedTo) {
|
|
8472
|
+
if (this.limitSelectedTo && this._model.length === this.limitSelectedTo) {
|
|
8472
8473
|
this.updateDisabledState();
|
|
8473
8474
|
}
|
|
8474
8475
|
this._initialOpen = false;
|
|
@@ -8557,6 +8558,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8557
8558
|
};
|
|
8558
8559
|
DatoSelectComponent.prototype.removeOption = function (option) {
|
|
8559
8560
|
var _this = this;
|
|
8561
|
+
var updateDisabled = this.limitSelectedTo && this._model.length === this.limitSelectedTo;
|
|
8560
8562
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== option[_this.idKey]; });
|
|
8561
8563
|
var optionToRemove = this.options.find(function (datoOption) { return datoOption.option && datoOption.option[_this.idKey] === option[_this.idKey]; });
|
|
8562
8564
|
/**
|
|
@@ -8566,7 +8568,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8566
8568
|
if (optionToRemove) {
|
|
8567
8569
|
optionToRemove.active = false;
|
|
8568
8570
|
}
|
|
8569
|
-
|
|
8571
|
+
updateDisabled && this.updateDisabledState();
|
|
8570
8572
|
this.onChange(this._model);
|
|
8571
8573
|
this.cdr.markForCheck();
|
|
8572
8574
|
if (this.datoOverlay.attached) {
|
|
@@ -8916,6 +8918,9 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8916
8918
|
if (!datoOption) {
|
|
8917
8919
|
return;
|
|
8918
8920
|
}
|
|
8921
|
+
var modelLength = this._model.length;
|
|
8922
|
+
var updateDisabled = this.limitSelectedTo &&
|
|
8923
|
+
(modelLength === this.limitSelectedTo || (modelLength === this.limitSelectedTo - 1 && !datoOption.active));
|
|
8919
8924
|
datoOption.active = !datoOption.active;
|
|
8920
8925
|
var rawOption = datoOption.option;
|
|
8921
8926
|
if (datoOption.active) {
|
|
@@ -8924,7 +8929,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8924
8929
|
else {
|
|
8925
8930
|
this._model = this._model.filter(function (current) { return current[_this.idKey] !== rawOption[_this.idKey]; });
|
|
8926
8931
|
}
|
|
8927
|
-
|
|
8932
|
+
updateDisabled && this.updateDisabledState();
|
|
8928
8933
|
this.onChange(this._model);
|
|
8929
8934
|
this.cdr.markForCheck();
|
|
8930
8935
|
this.datoOverlay.scheduleUpdate();
|
|
@@ -11377,15 +11382,14 @@ var GridQuery = /** @class */ (function (_super) {
|
|
|
11377
11382
|
};
|
|
11378
11383
|
GridQuery.prototype.getSort = function () {
|
|
11379
11384
|
if (this.gridRef.gridOptions.pivotMode) {
|
|
11380
|
-
var _a = this.api.grid.getSortModel().pop() || {}, sort = _a.sort,
|
|
11381
|
-
var column = this.api.columns.getColumn(
|
|
11382
|
-
var
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
var
|
|
11386
|
-
var secondaryColumn = secondaryColumns.find(function (col) { return col.getColId() === pivotedColumn_1.getColId(); });
|
|
11385
|
+
var _a = this.api.grid.getSortModel().pop() || {}, sort = _a.sort, colId = _a.colId;
|
|
11386
|
+
var column = this.api.columns.getColumn(colId);
|
|
11387
|
+
var pivotedColumn = this.getSecondaryColumn(colId);
|
|
11388
|
+
if (pivotedColumn) {
|
|
11389
|
+
var uniquePivotParents = uniq(this.api.columns.getSecondaryColumns().map(function (column) { return column.getParent(); }));
|
|
11390
|
+
var secondaryColumn = this.getSecondaryColumn(pivotedColumn.getColId());
|
|
11387
11391
|
var pivotColIndex = uniquePivotParents.indexOf(secondaryColumn.getParent());
|
|
11388
|
-
return { colId: getColField(
|
|
11392
|
+
return { colId: getColField(pivotedColumn.getColDef()), sort: sort, pivotColIndex: pivotColIndex };
|
|
11389
11393
|
}
|
|
11390
11394
|
else if (column) {
|
|
11391
11395
|
return { colId: getColField(column.getColDef()), sort: sort };
|
|
@@ -11420,9 +11424,9 @@ var GridQuery = /** @class */ (function (_super) {
|
|
|
11420
11424
|
GridQuery.prototype.filterChanged = function () {
|
|
11421
11425
|
return this.selectFilter().pipe(map$1(function (filter) {
|
|
11422
11426
|
return Object.keys(filter).reduce(function (filters, field) {
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
filters.push({ field: field, filter:
|
|
11427
|
+
var datoFilter = filter[field];
|
|
11428
|
+
if (datoFilter) {
|
|
11429
|
+
filters.push({ field: field, filter: datoFilter });
|
|
11426
11430
|
}
|
|
11427
11431
|
return filters;
|
|
11428
11432
|
}, []);
|
|
@@ -11488,6 +11492,10 @@ var GridQuery = /** @class */ (function (_super) {
|
|
|
11488
11492
|
GridQuery.prototype.selectIsSelectAllRowsEnabled = function () {
|
|
11489
11493
|
return this.select(function (state) { return state.serverSidePagination.selectAllRowsEnabled; });
|
|
11490
11494
|
};
|
|
11495
|
+
GridQuery.prototype.getSecondaryColumn = function (colId) {
|
|
11496
|
+
var secondaryColumns = this.api.columns.getSecondaryColumns();
|
|
11497
|
+
return secondaryColumns && secondaryColumns.find(function (col) { return col.getColId() === colId; });
|
|
11498
|
+
};
|
|
11491
11499
|
GridQuery.prototype.filterCheckboxSelectionColumn = function (columns) {
|
|
11492
11500
|
return columns.filter(function (column) { return !column.getUserProvidedColDef() || !column.getUserProvidedColDef().checkboxSelection; });
|
|
11493
11501
|
};
|
|
@@ -11600,9 +11608,10 @@ function validateStringCondition(rowValue, _a) {
|
|
|
11600
11608
|
return !isEmpty(valueLowerCase);
|
|
11601
11609
|
}
|
|
11602
11610
|
}
|
|
11603
|
-
function validateNumberCondition(unparsedRowValue, _a) {
|
|
11611
|
+
function validateNumberCondition(unparsedRowValue, _a, filterKey) {
|
|
11604
11612
|
var condition = _a.condition, value = _a.value, rangeEnd = _a.rangeEnd;
|
|
11605
|
-
|
|
11613
|
+
if (filterKey === void 0) { filterKey = ''; }
|
|
11614
|
+
var rowValue = !!unparsedRowValue ? parseFloat(unparsedRowValue[filterKey] || unparsedRowValue) : null;
|
|
11606
11615
|
var filterValue = parseFloat(value);
|
|
11607
11616
|
switch (condition) {
|
|
11608
11617
|
case DatoFilterConditions.EQUALS:
|
|
@@ -11650,14 +11659,14 @@ function validateDateCondition(rowValue, _a) {
|
|
|
11650
11659
|
}
|
|
11651
11660
|
}
|
|
11652
11661
|
function validateCondition(_a) {
|
|
11653
|
-
var rowValue = _a.rowValue,
|
|
11662
|
+
var rowValue = _a.rowValue, condition = _a.condition, type = _a.type, filterKey = _a.filterKey;
|
|
11654
11663
|
switch (type) {
|
|
11655
11664
|
case DatoGridFilterTypes.Date:
|
|
11656
|
-
return validateDateCondition(rowValue,
|
|
11665
|
+
return validateDateCondition(rowValue, condition);
|
|
11657
11666
|
case DatoGridFilterTypes.Number:
|
|
11658
|
-
return validateNumberCondition(rowValue,
|
|
11667
|
+
return validateNumberCondition(rowValue, condition, filterKey);
|
|
11659
11668
|
default:
|
|
11660
|
-
return validateStringCondition(rowValue,
|
|
11669
|
+
return validateStringCondition(rowValue, condition);
|
|
11661
11670
|
}
|
|
11662
11671
|
}
|
|
11663
11672
|
function validateFilter(_a, activeFilters) {
|
|
@@ -11668,7 +11677,7 @@ function validateFilter(_a, activeFilters) {
|
|
|
11668
11677
|
var _loop_1 = function (filter) {
|
|
11669
11678
|
var filterPasses = true;
|
|
11670
11679
|
var _a = activeFilters[filter], byValue = _a.byValue, conditional = _a.conditional, pivotKeys = _a.pivotKeys;
|
|
11671
|
-
var currentRowPivotKeys = row.parent.childrenMapped && getRowPivotKeys(row.parent.childrenMapped);
|
|
11680
|
+
var currentRowPivotKeys = (row.parent && row.parent.childrenMapped && getRowPivotKeys(row.parent.childrenMapped)) || [];
|
|
11672
11681
|
var rowValue = api.getValue(filter, row);
|
|
11673
11682
|
/** If value is under a pivoted column but doesn't match the filter pivot */
|
|
11674
11683
|
if (pivotKeys && pivotKeys.length > 0 && !isArrayValuesEqual(pivotKeys, currentRowPivotKeys)) {
|
|
@@ -11677,7 +11686,9 @@ function validateFilter(_a, activeFilters) {
|
|
|
11677
11686
|
if (conditional) {
|
|
11678
11687
|
var operator = conditional.operator, conditions = conditional.conditions, type_1 = conditional.type;
|
|
11679
11688
|
var conditionsRelation = operator === OperatorTypes.AND ? 'every' : 'some';
|
|
11680
|
-
filterPasses = conditions[conditionsRelation](function (
|
|
11689
|
+
filterPasses = conditions[conditionsRelation](function (condition) {
|
|
11690
|
+
return validateCondition({ rowValue: rowValue, condition: condition, type: type_1, filterKey: filter });
|
|
11691
|
+
});
|
|
11681
11692
|
}
|
|
11682
11693
|
if (filterPasses && byValue) {
|
|
11683
11694
|
var includesValue = byValue.values.includes(rowValue);
|
|
@@ -11805,7 +11816,7 @@ function toolbarActionToContextAction(params) {
|
|
|
11805
11816
|
return contextActions;
|
|
11806
11817
|
}
|
|
11807
11818
|
|
|
11808
|
-
var DATO_GRID_STORAGE_API = new InjectionToken('
|
|
11819
|
+
var DATO_GRID_STORAGE_API = new InjectionToken('DATO_GRID_STORAGE_API');
|
|
11809
11820
|
|
|
11810
11821
|
var defaultEditableColumnRenderer = function (params) {
|
|
11811
11822
|
return params && params.value ? "<div class=\"value-wrapper ellipsis\">" + params.value + "</div>" : null;
|
|
@@ -12477,12 +12488,12 @@ var mapToValue = function (_a) {
|
|
|
12477
12488
|
var ɵ0$1 = mapToValue;
|
|
12478
12489
|
var mapToListItem = function (val) { return ({ id: val, label: isNil(val) ? "(Empty)" : ("" + val).trim(), value: val }); };
|
|
12479
12490
|
var ɵ1$1 = mapToListItem;
|
|
12480
|
-
var mapToListItemWithFormatted = function (_a) {
|
|
12491
|
+
var mapToListItemWithFormatted = function (_a, key) {
|
|
12481
12492
|
var value = _a.value, formattedValue = _a.formattedValue;
|
|
12482
12493
|
return ({
|
|
12483
|
-
id: value,
|
|
12484
|
-
label: isNil(formattedValue) ? "(Empty)" : ("" + formattedValue).trim(),
|
|
12485
|
-
value: value
|
|
12494
|
+
id: key && value ? value[key] : value,
|
|
12495
|
+
label: isNil(formattedValue) ? "(Empty)" : ("" + (key ? formattedValue[key] : formattedValue)).trim(),
|
|
12496
|
+
value: key && value ? value[key] : value
|
|
12486
12497
|
});
|
|
12487
12498
|
};
|
|
12488
12499
|
var ɵ2$1 = mapToListItemWithFormatted;
|
|
@@ -12621,15 +12632,18 @@ var DatoGridFilterComponent = /** @class */ (function () {
|
|
|
12621
12632
|
var _this = this;
|
|
12622
12633
|
var _b = this.popover.data, gridService = _b.gridService, gridQuery = _b.gridQuery;
|
|
12623
12634
|
var _c = this.colDef, filter = _c.filter, _d = _c.filtersConfig, filtersConfig = _d === void 0 ? {} : _d, pivotValueColumn = _c.pivotValueColumn, pivotKeys = _c.pivotKeys;
|
|
12635
|
+
var colDefs = gridQuery.api.columns.getAllColumns().map(function (column) { return column.getColDef(); });
|
|
12624
12636
|
this.colField = getColField(this.colDef);
|
|
12637
|
+
var colDef = colDefs.find(function (colDef) { return colDef.field === _this.colField; });
|
|
12638
|
+
var colFilter = filter || colDef.filter;
|
|
12639
|
+
var filterOptions = DatoGridFilterOptionsMap[colFilter];
|
|
12625
12640
|
this.pivotColumn = gridQuery.api.columns.getSecondaryPivotColumn(pivotKeys, pivotValueColumn);
|
|
12626
12641
|
if (filtersConfig.sections) {
|
|
12627
12642
|
this.filterSections = (_a = {}, _a[filtersConfig.sections] = true, _a);
|
|
12628
12643
|
}
|
|
12629
12644
|
this.keepPredefinedListOriginalOrder =
|
|
12630
12645
|
filtersConfig.keepPredefinedListOriginalOrder && !isEmpty(filtersConfig.predefinedListValues);
|
|
12631
|
-
|
|
12632
|
-
this.filterType = filterOptions ? filter : DatoGridFilterTypes.String;
|
|
12646
|
+
this.filterType = filterOptions ? colFilter : DatoGridFilterTypes.String;
|
|
12633
12647
|
this.listLabelType = this.filterType.toLowerCase();
|
|
12634
12648
|
this.listSortByKey = this.filterType === DatoGridFilterTypes.Number && this.colDef.valueFormatter ? 'id' : 'label';
|
|
12635
12649
|
this.gridQuery = gridQuery;
|
|
@@ -12664,9 +12678,11 @@ var DatoGridFilterComponent = /** @class */ (function () {
|
|
|
12664
12678
|
var columnValues = this.getColumnValues();
|
|
12665
12679
|
this.columnValues = columnValues.map(function (_a) {
|
|
12666
12680
|
var value = _a.value;
|
|
12667
|
-
return value;
|
|
12681
|
+
return !isNil(_this.pivotColumn) && value ? value[_this.colField] : value;
|
|
12682
|
+
});
|
|
12683
|
+
this.listOptions = columnValues.map(function (colValue) {
|
|
12684
|
+
return mapToListItemWithFormatted(colValue, !isNil(_this.pivotColumn) && _this.colField);
|
|
12668
12685
|
});
|
|
12669
|
-
this.listOptions = columnValues.map(mapToListItemWithFormatted);
|
|
12670
12686
|
}
|
|
12671
12687
|
}
|
|
12672
12688
|
else {
|
|
@@ -12704,6 +12720,7 @@ var DatoGridFilterComponent = /** @class */ (function () {
|
|
|
12704
12720
|
isEmpty(filter)
|
|
12705
12721
|
? this.gridService.clearColumnFilter(this.colField)
|
|
12706
12722
|
: this.gridService.setColumnFilter(column, filter);
|
|
12723
|
+
this.gridService.notifyFilterUpdate();
|
|
12707
12724
|
}
|
|
12708
12725
|
};
|
|
12709
12726
|
DatoGridFilterComponent.prototype.clearFilters = function () {
|
|
@@ -12757,19 +12774,25 @@ var DatoGridFilterComponent = /** @class */ (function () {
|
|
|
12757
12774
|
var _this = this;
|
|
12758
12775
|
var _a = this.filterForm.value, byValue = _a.byValue, conditional = _a.conditional;
|
|
12759
12776
|
var filter = {};
|
|
12760
|
-
filter.pivotKeys = this.pivotKeys;
|
|
12761
|
-
if (this.pivotColumn) {
|
|
12762
|
-
filter.pivotFieldsMap = this.getPivotFields(this.pivotColumn.getParent()).reduce(function (fieldMap, field, index) {
|
|
12763
|
-
fieldMap[field] = _this.pivotKeys[index];
|
|
12764
|
-
return fieldMap;
|
|
12765
|
-
}, {});
|
|
12766
|
-
}
|
|
12767
12777
|
if (this.filterSections.Conditional) {
|
|
12768
12778
|
this.setConditionalFilter(filter, conditional);
|
|
12769
12779
|
}
|
|
12770
12780
|
if (this.filterSections.By_Value) {
|
|
12771
12781
|
this.setByValueFilter(filter, byValue);
|
|
12772
12782
|
}
|
|
12783
|
+
/** If filters applied, add the extra properties to be used by pivot mode */
|
|
12784
|
+
if (filter.byValue || filter.conditional) {
|
|
12785
|
+
filter.colId = this.colDef.colId;
|
|
12786
|
+
filter.pivotKeys = this.pivotKeys;
|
|
12787
|
+
if (this.pivotColumn) {
|
|
12788
|
+
filter.pivotFieldsMap = this.getPivotFields(this.pivotColumn.getParent()).reduce(function (fieldMap, field, index) {
|
|
12789
|
+
if (_this.pivotKeys[index]) {
|
|
12790
|
+
fieldMap[field] = _this.pivotKeys[index];
|
|
12791
|
+
}
|
|
12792
|
+
return fieldMap;
|
|
12793
|
+
}, {});
|
|
12794
|
+
}
|
|
12795
|
+
}
|
|
12773
12796
|
return filter;
|
|
12774
12797
|
};
|
|
12775
12798
|
DatoGridFilterComponent.prototype.initForm = function () {
|
|
@@ -14151,12 +14174,45 @@ var GridService = /** @class */ (function () {
|
|
|
14151
14174
|
});
|
|
14152
14175
|
this.notifyFilterUpdate();
|
|
14153
14176
|
};
|
|
14154
|
-
GridService.prototype.setColumnFilter = function (column, filter) {
|
|
14177
|
+
GridService.prototype.setColumnFilter = function (column, filter, notifyGrid) {
|
|
14178
|
+
if (notifyGrid === void 0) { notifyGrid = true; }
|
|
14155
14179
|
this._logEvent("Grids - Filter Applied" /* GRID_FILTER_APPLIED */, {
|
|
14156
14180
|
column: column.getColId(),
|
|
14157
14181
|
numOfConditions: (filter.conditional && filter.conditional.conditions.length) || 0,
|
|
14158
14182
|
byValue: !!filter.byValue ? 'Yes' : 'No'
|
|
14159
14183
|
});
|
|
14184
|
+
this.updateFilter(column, filter);
|
|
14185
|
+
if (notifyGrid) {
|
|
14186
|
+
this.notifyFilterUpdate();
|
|
14187
|
+
}
|
|
14188
|
+
};
|
|
14189
|
+
GridService.prototype.setGridFilters = function (filters) {
|
|
14190
|
+
var e_2, _a;
|
|
14191
|
+
if (this.api) {
|
|
14192
|
+
try {
|
|
14193
|
+
for (var filters_1 = __values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {
|
|
14194
|
+
var filter = filters_1_1.value.filter;
|
|
14195
|
+
var column = this.api.columns.getColumn(filter.colId);
|
|
14196
|
+
if (column) {
|
|
14197
|
+
this.setColumnFilter(column, filter);
|
|
14198
|
+
}
|
|
14199
|
+
else {
|
|
14200
|
+
var pivotColumn = this.gridQuery.getSecondaryColumn(filter.colId);
|
|
14201
|
+
this.setColumnFilter(pivotColumn, filter);
|
|
14202
|
+
}
|
|
14203
|
+
}
|
|
14204
|
+
}
|
|
14205
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
14206
|
+
finally {
|
|
14207
|
+
try {
|
|
14208
|
+
if (filters_1_1 && !filters_1_1.done && (_a = filters_1.return)) _a.call(filters_1);
|
|
14209
|
+
}
|
|
14210
|
+
finally { if (e_2) throw e_2.error; }
|
|
14211
|
+
}
|
|
14212
|
+
this.notifyFilterUpdate();
|
|
14213
|
+
}
|
|
14214
|
+
};
|
|
14215
|
+
GridService.prototype.updateFilter = function (column, filter) {
|
|
14160
14216
|
var colField = getColField(column.getColDef());
|
|
14161
14217
|
this.store.update(function (state) {
|
|
14162
14218
|
var _a;
|
|
@@ -14164,7 +14220,6 @@ var GridService = /** @class */ (function () {
|
|
|
14164
14220
|
settings: __assign(__assign({}, state.settings), { filter: __assign(__assign({}, state.settings.filter), (_a = {}, _a[colField] = filter, _a)) })
|
|
14165
14221
|
};
|
|
14166
14222
|
});
|
|
14167
|
-
this.notifyFilterUpdate();
|
|
14168
14223
|
};
|
|
14169
14224
|
GridService.prototype.setSearchTerm = function (searchTerm) {
|
|
14170
14225
|
this.store.update(function (state) {
|
|
@@ -14212,8 +14267,7 @@ var GridService = /** @class */ (function () {
|
|
|
14212
14267
|
this.updateSettings({ gridAlignment: gridAlignment, columnsSizes: null });
|
|
14213
14268
|
};
|
|
14214
14269
|
GridService.prototype.saveSettingsToServer = function (settings) {
|
|
14215
|
-
|
|
14216
|
-
this.storageAPI.set(this.gridName, settings, isGlobal);
|
|
14270
|
+
this.storageAPI.set(this.gridName, settings);
|
|
14217
14271
|
};
|
|
14218
14272
|
/**
|
|
14219
14273
|
* @internal used to log grid events to the platform's logging service
|
|
@@ -14457,7 +14511,7 @@ var GridService = /** @class */ (function () {
|
|
|
14457
14511
|
this.api.grid.onFilterChanged();
|
|
14458
14512
|
};
|
|
14459
14513
|
GridService.prototype.buildServerRequestFilters = function (filter) {
|
|
14460
|
-
var
|
|
14514
|
+
var e_3, _a;
|
|
14461
14515
|
var columnsFilters = {};
|
|
14462
14516
|
try {
|
|
14463
14517
|
for (var _b = __values(Object.entries(filter)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -14493,12 +14547,12 @@ var GridService = /** @class */ (function () {
|
|
|
14493
14547
|
}
|
|
14494
14548
|
}
|
|
14495
14549
|
}
|
|
14496
|
-
catch (
|
|
14550
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
14497
14551
|
finally {
|
|
14498
14552
|
try {
|
|
14499
14553
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
14500
14554
|
}
|
|
14501
|
-
finally { if (
|
|
14555
|
+
finally { if (e_3) throw e_3.error; }
|
|
14502
14556
|
}
|
|
14503
14557
|
return columnsFilters;
|
|
14504
14558
|
};
|
|
@@ -14551,7 +14605,7 @@ var GridService = /** @class */ (function () {
|
|
|
14551
14605
|
return { operator: OperatorTypes.AND, filters: [columnFilter, searchFilter] };
|
|
14552
14606
|
};
|
|
14553
14607
|
GridService.prototype.buildServerColumnFilters_v2_1 = function (filter) {
|
|
14554
|
-
var
|
|
14608
|
+
var e_4, _a;
|
|
14555
14609
|
var columnFilters = [];
|
|
14556
14610
|
try {
|
|
14557
14611
|
for (var _b = __values(Object.entries(filter)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -14576,12 +14630,12 @@ var GridService = /** @class */ (function () {
|
|
|
14576
14630
|
columnFilters.push(columnFilter);
|
|
14577
14631
|
}
|
|
14578
14632
|
}
|
|
14579
|
-
catch (
|
|
14633
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
14580
14634
|
finally {
|
|
14581
14635
|
try {
|
|
14582
14636
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
14583
14637
|
}
|
|
14584
|
-
finally { if (
|
|
14638
|
+
finally { if (e_4) throw e_4.error; }
|
|
14585
14639
|
}
|
|
14586
14640
|
return columnFilters;
|
|
14587
14641
|
};
|
|
@@ -14674,27 +14728,14 @@ var GridService = /** @class */ (function () {
|
|
|
14674
14728
|
/**
|
|
14675
14729
|
* When pivoting,
|
|
14676
14730
|
* we add the field name to the column header class in order to access it through the auto generated pivot column.
|
|
14677
|
-
* @private
|
|
14678
14731
|
*/
|
|
14679
14732
|
GridService.prototype.initPivotSecondaryColsProcess = function (_a) {
|
|
14680
14733
|
var _this = this;
|
|
14681
14734
|
var gridOptions = _a.gridOptions;
|
|
14682
14735
|
gridOptions.processSecondaryColDef = function (colDef) {
|
|
14683
|
-
var
|
|
14684
|
-
if (
|
|
14685
|
-
|
|
14686
|
-
var originalColDef = valueColumns
|
|
14687
|
-
.map(function (_a) {
|
|
14688
|
-
var userProvidedColDef = _a.userProvidedColDef;
|
|
14689
|
-
return userProvidedColDef;
|
|
14690
|
-
})
|
|
14691
|
-
.find(function (_a) {
|
|
14692
|
-
var colId = _a.colId;
|
|
14693
|
-
return colId === colDef.pivotValueColumn.getColId();
|
|
14694
|
-
});
|
|
14695
|
-
if (originalColDef) {
|
|
14696
|
-
colDef.filter = originalColDef.filter;
|
|
14697
|
-
}
|
|
14736
|
+
var userProvidedColDef = colDef.pivotValueColumn && colDef.pivotValueColumn.getUserProvidedColDef();
|
|
14737
|
+
if (userProvidedColDef) {
|
|
14738
|
+
colDef.filter = userProvidedColDef.filter;
|
|
14698
14739
|
}
|
|
14699
14740
|
if (colDef.pivotKeys) {
|
|
14700
14741
|
colDef.pivotKeys = colDef.pivotKeys.map(function (key) {
|
|
@@ -14710,7 +14751,7 @@ var GridService = /** @class */ (function () {
|
|
|
14710
14751
|
var field = parsedValue.field, value = parsedValue.value;
|
|
14711
14752
|
colGroupDef.headerClass = [field];
|
|
14712
14753
|
colGroupDef.headerName = value;
|
|
14713
|
-
if (colGroupDef.children && colGroupDef.children.length >
|
|
14754
|
+
if (colGroupDef.children && colGroupDef.children.length > 0) {
|
|
14714
14755
|
colGroupDef.headerClass.push('group-pivot-cell');
|
|
14715
14756
|
}
|
|
14716
14757
|
}
|
|
@@ -14737,7 +14778,7 @@ var GridService = /** @class */ (function () {
|
|
|
14737
14778
|
GridService.prototype.setPivotModeRows = function (data) {
|
|
14738
14779
|
var pivotColumns = this.gridQuery.getAllPivotColumns();
|
|
14739
14780
|
var convertedData = data.map(function (currentValue, index) {
|
|
14740
|
-
var
|
|
14781
|
+
var e_5, _a;
|
|
14741
14782
|
var mappedValues = __assign({}, currentValue);
|
|
14742
14783
|
try {
|
|
14743
14784
|
for (var pivotColumns_1 = __values(pivotColumns), pivotColumns_1_1 = pivotColumns_1.next(); !pivotColumns_1_1.done; pivotColumns_1_1 = pivotColumns_1.next()) {
|
|
@@ -14747,12 +14788,12 @@ var GridService = /** @class */ (function () {
|
|
|
14747
14788
|
mappedValues[field] = JSON.stringify(pivotValue);
|
|
14748
14789
|
}
|
|
14749
14790
|
}
|
|
14750
|
-
catch (
|
|
14791
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
14751
14792
|
finally {
|
|
14752
14793
|
try {
|
|
14753
14794
|
if (pivotColumns_1_1 && !pivotColumns_1_1.done && (_a = pivotColumns_1.return)) _a.call(pivotColumns_1);
|
|
14754
14795
|
}
|
|
14755
|
-
finally { if (
|
|
14796
|
+
finally { if (e_5) throw e_5.error; }
|
|
14756
14797
|
}
|
|
14757
14798
|
return mappedValues;
|
|
14758
14799
|
});
|
|
@@ -15224,10 +15265,7 @@ var DatoGridControllerComponent = /** @class */ (function () {
|
|
|
15224
15265
|
.pipe(switchMap(function () {
|
|
15225
15266
|
_this.gridOptions = _this.normalizeOptions();
|
|
15226
15267
|
agGrid.gridOptions = _this.gridOptions;
|
|
15227
|
-
var
|
|
15228
|
-
var settingsLoader = _this.gridOptions.saveSettings === false
|
|
15229
|
-
? of(null)
|
|
15230
|
-
: _this.storageAPI.get(_this.gridOptions.gridName, isGlobal);
|
|
15268
|
+
var settingsLoader = _this.gridOptions.saveSettings === false ? of(null) : _this.storageAPI.get(_this.gridOptions.gridName);
|
|
15231
15269
|
return combineLatest([agGrid.gridReady, settingsLoader]);
|
|
15232
15270
|
}), untilDestroyed(this))
|
|
15233
15271
|
.subscribe(function (_a) {
|
|
@@ -15271,6 +15309,9 @@ var DatoGridControllerComponent = /** @class */ (function () {
|
|
|
15271
15309
|
DatoGridControllerComponent.prototype.setGridRows = function (data) {
|
|
15272
15310
|
this.gridService.setRows(data);
|
|
15273
15311
|
};
|
|
15312
|
+
DatoGridControllerComponent.prototype.setGridFilters = function (filters) {
|
|
15313
|
+
this.gridService.setGridFilters(filters);
|
|
15314
|
+
};
|
|
15274
15315
|
DatoGridControllerComponent.prototype.onFilterChanged = function () {
|
|
15275
15316
|
return this.gridQuery.filterChanged();
|
|
15276
15317
|
};
|
|
@@ -16276,7 +16317,7 @@ var DatoGridPaginationV2Component = /** @class */ (function () {
|
|
|
16276
16317
|
Component({
|
|
16277
16318
|
selector: 'dato-grid-pagination-v2',
|
|
16278
16319
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16279
|
-
template: "<div class=\"d-flex-row d-flex-auto d-flex-wrap container\" [class.small]=\"smallVersion\"\n [attr.data-pages-count]=\"totalPages\"\n [attr.data-current-page]=\"pageNumbersDisplay.currentPage\"\n [attr.data-page-size]=\"rowsPerPage\"\n [attr.data-rows-count]=\"rowCount\">\n <div *ngIf=\"totalPages > 1\" #navigation\n class=\"navigation d-flex-row d-flex-0-0-auto align-center\">\n\n <!-- First Page -->\n <dato-icon-button *ngIf=\"!disableButtons\"\n class=\"mr-4\" data-auto-id=\"pagiantion-first-page\"\n icon=\"chevron-left-double\"\n datoType=\"secondary\"\n datoSize=\"md\"\n [disabled]=\"prevPageDisabled\"\n (click)=\"navigateFirstPage()\">\n </dato-icon-button>\n\n <!-- Previous Page -->\n <dato-icon-button icon=\"arrow-left\" datoType=\"secondary\" datoSize=\"md\"\n [disabled]=\"prevPageDisabled\" data-auto-id=\"pagiantion-previous-page\"\n (click)=\"navigatePrevPage()\">\n </dato-icon-button>\n\n\n <div class=\"d-flex mx-5 align-center number-container\">\n <dato-link class=\"page-number mx-5\" datoType=\"secondary\" datoSize=\"sm\" data-auto-id=\"pagiantion-previous-batch\"\n *ngIf=\"pageNumbersDisplay.showFirstEllipsis && !smallVersion\"\n (click)=\"showPreviousBatch()\">...\n </dato-link>\n <dato-link class=\"page-number mx-5\" [datoType]=\"page === pageNumbersDisplay.currentPage ? 'primary' : 'secondary'\" datoSize=\"sm\"\n *ngFor=\"let page of pageNumbersDisplay.pages; index as i; trackBy: trackByPage;\" [attr.data-auto-id]=\"'pagiantion-page-' + i\"\n (click)=\"navigatePage(page - 1)\">\n {{page}}\n </dato-link>\n\n <div class=\"d-flex\" *ngIf=\"pageNumbersDisplay.showLastPage && !smallVersion\">\n <dato-link class=\"page-number mx-5\" datoType=\"secondary\" datoSize=\"sm\" data-auto-id=\"pagiantion-next-batch\"\n (click)=\"showNextBatch()\">...</dato-link>\n <dato-link class=\"page-number mx-5\" datoType=\"secondary\" datoSize=\"sm\"\n [attr.data-auto-id]=\"'pagiantion-page-' + totalPages\"\n (click)=\"navigatePage(totalPages - 1)\">\n {{totalPages}}\n </dato-link>\n </div>\n\n </div>\n\n <!-- Next Page -->\n <dato-icon-button icon=\"arrow-right\" datoType=\"secondary\" datoSize=\"md\"\n (click)=\"navigateNextPage()\" data-auto-id=\"pagiantion-next-page\"\n [disabled]=\"nextPageDisabled\">\n </dato-icon-button>\n\n <!-- Last Page -->\n <dato-icon-button *ngIf=\"!disableButtons\"\n class=\"ml-4\" icon=\"chevron-right-double\"\n datoType=\"secondary\" datoSize=\"md\" data-auto-id=\"pagiantion-last-page\"\n [disabled]=\"nextPageDisabled\"\n (click)=\"navigatePage(totalPages - 1)\">\n </dato-icon-button>\n\n </div>\n\n <div *ngIf=\"totalPages > 1 && !smallVersion\"\n class=\"separator mx-10 my-auto primary-100-background-color\">\n </div>\n\n <div class=\"total d-flex-0-0-auto d-flex-row align-center\">\n <span class=\"dato-note primary-300-color\">{{rowsRange}}</span>\n </div>\n\n <div *ngIf=\"showBottomControls\" class=\"grid-controls d-flex d-flex-1 justify-end\">\n <dato-icon-button [icon]=\"isExpanded ? 'collapse' : 'expand'\" datoType=\"secondary\" datoSize=\"md\"\n (click)=\"toggleGroupsState()\" data-auto-id=\"pagiantion-
|
|
16320
|
+
template: "<div class=\"d-flex-row d-flex-auto d-flex-wrap container\" [class.small]=\"smallVersion\"\n [attr.data-pages-count]=\"totalPages\"\n [attr.data-current-page]=\"pageNumbersDisplay.currentPage\"\n [attr.data-page-size]=\"rowsPerPage\"\n [attr.data-rows-count]=\"rowCount\">\n <div *ngIf=\"totalPages > 1\" #navigation\n class=\"navigation d-flex-row d-flex-0-0-auto align-center\">\n\n <!-- First Page -->\n <dato-icon-button *ngIf=\"!disableButtons\"\n class=\"mr-4\" data-auto-id=\"pagiantion-first-page\"\n icon=\"chevron-left-double\"\n datoType=\"secondary\"\n datoSize=\"md\"\n [disabled]=\"prevPageDisabled\"\n (click)=\"navigateFirstPage()\">\n </dato-icon-button>\n\n <!-- Previous Page -->\n <dato-icon-button icon=\"arrow-left\" datoType=\"secondary\" datoSize=\"md\"\n [disabled]=\"prevPageDisabled\" data-auto-id=\"pagiantion-previous-page\"\n (click)=\"navigatePrevPage()\">\n </dato-icon-button>\n\n\n <div class=\"d-flex mx-5 align-center number-container\">\n <dato-link class=\"page-number mx-5\" datoType=\"secondary\" datoSize=\"sm\" data-auto-id=\"pagiantion-previous-batch\"\n *ngIf=\"pageNumbersDisplay.showFirstEllipsis && !smallVersion\"\n (click)=\"showPreviousBatch()\">...\n </dato-link>\n <dato-link class=\"page-number mx-5\" [datoType]=\"page === pageNumbersDisplay.currentPage ? 'primary' : 'secondary'\" datoSize=\"sm\"\n *ngFor=\"let page of pageNumbersDisplay.pages; index as i; trackBy: trackByPage;\" [attr.data-auto-id]=\"'pagiantion-page-' + i\"\n (click)=\"navigatePage(page - 1)\">\n {{page}}\n </dato-link>\n\n <div class=\"d-flex\" *ngIf=\"pageNumbersDisplay.showLastPage && !smallVersion\">\n <dato-link class=\"page-number mx-5\" datoType=\"secondary\" datoSize=\"sm\" data-auto-id=\"pagiantion-next-batch\"\n (click)=\"showNextBatch()\">...</dato-link>\n <dato-link class=\"page-number mx-5\" datoType=\"secondary\" datoSize=\"sm\"\n [attr.data-auto-id]=\"'pagiantion-page-' + totalPages\"\n (click)=\"navigatePage(totalPages - 1)\">\n {{totalPages}}\n </dato-link>\n </div>\n\n </div>\n\n <!-- Next Page -->\n <dato-icon-button icon=\"arrow-right\" datoType=\"secondary\" datoSize=\"md\"\n (click)=\"navigateNextPage()\" data-auto-id=\"pagiantion-next-page\"\n [disabled]=\"nextPageDisabled\">\n </dato-icon-button>\n\n <!-- Last Page -->\n <dato-icon-button *ngIf=\"!disableButtons\"\n class=\"ml-4\" icon=\"chevron-right-double\"\n datoType=\"secondary\" datoSize=\"md\" data-auto-id=\"pagiantion-last-page\"\n [disabled]=\"nextPageDisabled\"\n (click)=\"navigatePage(totalPages - 1)\">\n </dato-icon-button>\n\n </div>\n\n <div *ngIf=\"totalPages > 1 && !smallVersion\"\n class=\"separator mx-10 my-auto primary-100-background-color\">\n </div>\n\n <div class=\"total d-flex-0-0-auto d-flex-row align-center\">\n <span class=\"dato-note primary-300-color\">{{rowsRange}}</span>\n </div>\n\n <div *ngIf=\"showBottomControls\" class=\"grid-controls d-flex d-flex-1 justify-end\">\n <dato-icon-button [icon]=\"isExpanded ? 'collapse' : 'expand'\" datoType=\"secondary\" datoSize=\"md\"\n (click)=\"toggleGroupsState()\" data-auto-id=\"pagiantion-expand-collapse\"\n [datoTooltipV2]=\"isExpanded ? 'core.collapse-rows' : 'core.expand-rows'\">\n </dato-icon-button>\n\n <dato-icon-button class=\"mx-4\" icon=\"maximize-horizontal\" datoType=\"secondary\" datoSize=\"md\"\n (click)=\"autoFitGrid('content')\" [datoTooltipV2]=\"'core.fit-to-content'\"\n data-auto-id=\"pagiantion-fit-to-content\">\n </dato-icon-button>\n\n <dato-icon-button icon=\"minimize-horizontal\" datoType=\"secondary\" datoSize=\"md\"\n (click)=\"autoFitGrid('container')\" [datoTooltipV2]=\"'core.fit-to-container'\"\n data-auto-id=\"pagiantion-fit-to-container\">\n </dato-icon-button>\n </div>\n</div>\n",
|
|
16280
16321
|
providers: [DecimalPipe],
|
|
16281
16322
|
styles: [":host{padding:12px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:25px}:host .container{height:25px}:host .navigation .page-number{transition:color .3s ease-in-out}:host .navigation .page-number:first-of-type{margin-left:7px}:host .navigation .page-number:last-of-type{margin-right:7px}:host .separator{width:1px;height:25px}:host .container.small .navigation,:host .container.small .total{margin-top:8px;margin-left:auto;margin-right:auto}"]
|
|
16282
16323
|
}),
|
|
@@ -16498,18 +16539,6 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
|
|
|
16498
16539
|
this.registerGroupListeners();
|
|
16499
16540
|
this.subscribeRowsSelectionData();
|
|
16500
16541
|
};
|
|
16501
|
-
DatoGridV2ToolbarComponent.prototype.getCellValueChangeEvent = function () {
|
|
16502
|
-
var _this = this;
|
|
16503
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16504
|
-
return _this.gridQuery.gridRef.cellValueChanged.pipe(debounceTime(100), untilDestroyed(_this));
|
|
16505
|
-
});
|
|
16506
|
-
};
|
|
16507
|
-
DatoGridV2ToolbarComponent.prototype.getRowDataUpdatedEvent = function () {
|
|
16508
|
-
var _this = this;
|
|
16509
|
-
return this.gridController.gridQuery.waitForGrid(function () {
|
|
16510
|
-
return _this.gridQuery.gridRef.rowDataUpdated.pipe(debounceTime(100), untilDestroyed(_this));
|
|
16511
|
-
});
|
|
16512
|
-
};
|
|
16513
16542
|
DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
|
|
16514
16543
|
if (isFunction(action.onClick)) {
|
|
16515
16544
|
var selectedRowsCount = this.gridController.gridQuery.getSelectedRowsCount();
|
|
@@ -20981,40 +21010,6 @@ var DatoEditableHeaderModule = /** @class */ (function () {
|
|
|
20981
21010
|
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
20982
21011
|
*/
|
|
20983
21012
|
|
|
20984
|
-
var RichTextService = /** @class */ (function () {
|
|
20985
|
-
function RichTextService(http, config) {
|
|
20986
|
-
this.http = http;
|
|
20987
|
-
this.config = config;
|
|
20988
|
-
}
|
|
20989
|
-
RichTextService.prototype.getLib = function (appendScriptFunc, appendStyleFunc) {
|
|
20990
|
-
if (!this.richTextScript$) {
|
|
20991
|
-
this.initLib(appendScriptFunc, appendStyleFunc);
|
|
20992
|
-
}
|
|
20993
|
-
return this.richTextScript$;
|
|
20994
|
-
};
|
|
20995
|
-
RichTextService.prototype.initLib = function (appendScriptFunc, appendStyleFunc) {
|
|
20996
|
-
this.richTextScript$ = combineLatest([
|
|
20997
|
-
this.http
|
|
20998
|
-
.get(this.config.paths.richText + "/index.js", { responseType: 'text' })
|
|
20999
|
-
.pipe(tap(function (lib) { return appendScriptFunc(lib, 'rich-text-editor'); })),
|
|
21000
|
-
this.http
|
|
21001
|
-
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21002
|
-
.pipe(tap(function (style) { return appendStyleFunc(style, 'tinymce-autocomplete'); }))
|
|
21003
|
-
]).pipe(shareReplay(1));
|
|
21004
|
-
};
|
|
21005
|
-
RichTextService.ctorParameters = function () { return [
|
|
21006
|
-
{ type: HttpClient },
|
|
21007
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21008
|
-
]; };
|
|
21009
|
-
RichTextService.ɵprov = ɵɵdefineInjectable({ factory: function RichTextService_Factory() { return new RichTextService(ɵɵinject(HttpClient), ɵɵinject(DATO_CORE_CONFIG)); }, token: RichTextService, providedIn: "root" });
|
|
21010
|
-
RichTextService = __decorate([
|
|
21011
|
-
Injectable({ providedIn: 'root' }),
|
|
21012
|
-
__param(1, Inject(DATO_CORE_CONFIG)),
|
|
21013
|
-
__metadata("design:paramtypes", [HttpClient, Object])
|
|
21014
|
-
], RichTextService);
|
|
21015
|
-
return RichTextService;
|
|
21016
|
-
}());
|
|
21017
|
-
|
|
21018
21013
|
/**
|
|
21019
21014
|
* @license
|
|
21020
21015
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -21028,12 +21023,12 @@ var getTinymce = function () {
|
|
|
21028
21023
|
var ɵ0$3 = getTinymce;
|
|
21029
21024
|
var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
21030
21025
|
__extends(DatoRichTextDirective, _super);
|
|
21031
|
-
function DatoRichTextDirective(ngZone,
|
|
21026
|
+
function DatoRichTextDirective(ngZone, http, host, config) {
|
|
21032
21027
|
var _this = _super.call(this) || this;
|
|
21033
21028
|
_this.ngZone = ngZone;
|
|
21034
|
-
_this.
|
|
21035
|
-
_this.config = config;
|
|
21029
|
+
_this.http = http;
|
|
21036
21030
|
_this.host = host;
|
|
21031
|
+
_this.config = config;
|
|
21037
21032
|
_this.autocompleteOptions = {};
|
|
21038
21033
|
_this.forcePlainTextPasting = false;
|
|
21039
21034
|
_this.format = 'html';
|
|
@@ -21067,11 +21062,28 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21067
21062
|
base: this.config.paths.richText,
|
|
21068
21063
|
query: ''
|
|
21069
21064
|
};
|
|
21070
|
-
|
|
21071
|
-
|
|
21072
|
-
|
|
21073
|
-
|
|
21074
|
-
|
|
21065
|
+
/**
|
|
21066
|
+
* We support only one instance in load time
|
|
21067
|
+
*/
|
|
21068
|
+
if (window.tinymce) {
|
|
21069
|
+
this.init.call(this);
|
|
21070
|
+
}
|
|
21071
|
+
else {
|
|
21072
|
+
this.loadLib().subscribe(function (lib) {
|
|
21073
|
+
appendScript(lib, 'rich-text-editor');
|
|
21074
|
+
_this.init.call(_this);
|
|
21075
|
+
_this.loadAutoCompleteStyle();
|
|
21076
|
+
});
|
|
21077
|
+
}
|
|
21078
|
+
};
|
|
21079
|
+
DatoRichTextDirective.prototype.loadLib = function () {
|
|
21080
|
+
return this.http.get(this.config.paths.richText + "/index.js", { responseType: 'text' });
|
|
21081
|
+
};
|
|
21082
|
+
DatoRichTextDirective.prototype.loadAutoCompleteStyle = function () {
|
|
21083
|
+
this.http
|
|
21084
|
+
.get(this.config.paths.richText + "/plugins/autocomplete/plugin.css", { responseType: 'text' })
|
|
21085
|
+
.subscribe(function (style) {
|
|
21086
|
+
appendStyle(style, 'tinymce-autocomplete');
|
|
21075
21087
|
});
|
|
21076
21088
|
};
|
|
21077
21089
|
DatoRichTextDirective.prototype.initEditor = function (_, editor) {
|
|
@@ -21164,9 +21176,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21164
21176
|
var DatoRichTextDirective_1;
|
|
21165
21177
|
DatoRichTextDirective.ctorParameters = function () { return [
|
|
21166
21178
|
{ type: NgZone },
|
|
21167
|
-
{ type:
|
|
21168
|
-
{ type:
|
|
21169
|
-
{ type:
|
|
21179
|
+
{ type: HttpClient },
|
|
21180
|
+
{ type: ElementRef },
|
|
21181
|
+
{ type: undefined, decorators: [{ type: Inject, args: [DATO_CORE_CONFIG,] }] }
|
|
21170
21182
|
]; };
|
|
21171
21183
|
__decorate([
|
|
21172
21184
|
Input(),
|
|
@@ -21232,9 +21244,10 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21232
21244
|
}
|
|
21233
21245
|
]
|
|
21234
21246
|
}),
|
|
21235
|
-
__param(
|
|
21247
|
+
__param(3, Inject(DATO_CORE_CONFIG)),
|
|
21236
21248
|
__metadata("design:paramtypes", [NgZone,
|
|
21237
|
-
|
|
21249
|
+
HttpClient,
|
|
21250
|
+
ElementRef, Object])
|
|
21238
21251
|
], DatoRichTextDirective);
|
|
21239
21252
|
return DatoRichTextDirective;
|
|
21240
21253
|
}(BaseCustomControl));
|
|
@@ -23757,9 +23770,7 @@ var DatoBreadcrumbsComponent = /** @class */ (function () {
|
|
|
23757
23770
|
};
|
|
23758
23771
|
DatoBreadcrumbsComponent.prototype.initEditableHeader = function () {
|
|
23759
23772
|
var _this = this;
|
|
23760
|
-
this.headerControl.valueChanges
|
|
23761
|
-
.pipe(debounceTime(300), untilDestroyed(this))
|
|
23762
|
-
.subscribe(function (res) {
|
|
23773
|
+
this.headerControl.valueChanges.pipe(debounceTime(300), untilDestroyed(this)).subscribe(function (res) {
|
|
23763
23774
|
_this.updateEditableText.emit(res);
|
|
23764
23775
|
_this.cdr.detectChanges();
|
|
23765
23776
|
});
|
|
@@ -25102,7 +25113,7 @@ function fixNgLeaks() {
|
|
|
25102
25113
|
};
|
|
25103
25114
|
}
|
|
25104
25115
|
|
|
25105
|
-
window.coreVersion = '
|
|
25116
|
+
window.coreVersion = '22.0.2';
|
|
25106
25117
|
|
|
25107
25118
|
/**
|
|
25108
25119
|
* @license
|
|
@@ -25116,5 +25127,5 @@ window.coreVersion = '21.4.0-rc.';
|
|
|
25116
25127
|
* Generated bundle index. Do not edit.
|
|
25117
25128
|
*/
|
|
25118
25129
|
|
|
25119
|
-
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, 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, 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, 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
|
|
25130
|
+
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, 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, 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, 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 };
|
|
25120
25131
|
//# sourceMappingURL=datorama-core.js.map
|