@datorama/core 22.2.6 → 22.5.3
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 +22 -0
- package/bundles/datorama-core.umd.js +139 -118
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +18 -18
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/accordion/accordion/accordion.component.js +11 -3
- package/esm2015/lib/date-picker/date-picker-container/date-picker-container.component.js +5 -5
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +1 -1
- package/esm2015/lib/grid-v2/grid-filter/grid-filter.component.js +1 -1
- 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-store/grid.service.js +2 -2
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -1
- package/esm2015/lib/icon/icon.types.js +1 -1
- package/esm2015/lib/select/select.component.js +12 -7
- package/esm2015/lib/sortable/sortable.component.js +7 -2
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/accordion/accordion/accordion.component.js +15 -3
- package/esm5/lib/date-picker/date-picker-container/date-picker-container.component.js +5 -5
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +1 -1
- package/esm5/lib/grid-v2/grid-filter/grid-filter.component.js +1 -1
- 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-store/grid.service.js +2 -2
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +1 -1
- package/esm5/lib/icon/icon.types.js +1 -1
- package/esm5/lib/select/select.component.js +13 -7
- package/esm5/lib/sortable/sortable.component.js +7 -2
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +128 -112
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +139 -118
- package/fesm5/datorama-core.js.map +1 -1
- package/i18n/locale-en_US.json +2 -0
- package/lib/accordion/accordion/accordion.component.d.ts +4 -1
- package/lib/date-picker/date-picker-container/date-picker-container.component.d.ts +1 -1
- package/lib/icon/icon.types.d.ts +1 -1
- package/lib/select/select.component.d.ts +1 -0
- package/lib/sortable/sortable.component.d.ts +3 -1
- package/package.json +1 -1
package/fesm5/datorama-core.js
CHANGED
|
@@ -7410,6 +7410,114 @@ var defaultClientSearchStrategy = function (searchIn, searchValue, labelKey) {
|
|
|
7410
7410
|
return false;
|
|
7411
7411
|
};
|
|
7412
7412
|
|
|
7413
|
+
/**
|
|
7414
|
+
* @license
|
|
7415
|
+
* Copyright Datorama. All Rights Reserved.
|
|
7416
|
+
*
|
|
7417
|
+
* Use of this source code is governed by an Apache License 2.0 license that can be
|
|
7418
|
+
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
7419
|
+
*/
|
|
7420
|
+
var DatoSortableComponent = /** @class */ (function () {
|
|
7421
|
+
function DatoSortableComponent() {
|
|
7422
|
+
this.list = [];
|
|
7423
|
+
this.noop = noop;
|
|
7424
|
+
/**
|
|
7425
|
+
* Sortablejs options
|
|
7426
|
+
*/
|
|
7427
|
+
this.datoOptions = {};
|
|
7428
|
+
/**
|
|
7429
|
+
* Fired once items order has changed
|
|
7430
|
+
*/
|
|
7431
|
+
this.orderUpdated = new EventEmitter();
|
|
7432
|
+
this.defaultOptions = {
|
|
7433
|
+
handle: '.dato-sortable-handler',
|
|
7434
|
+
ghostClass: 'dato-sortable-ghost',
|
|
7435
|
+
chosenClass: 'dato-sortable-chosen',
|
|
7436
|
+
dragClass: 'dato-sortable-drag'
|
|
7437
|
+
};
|
|
7438
|
+
}
|
|
7439
|
+
Object.defineProperty(DatoSortableComponent.prototype, "datoList", {
|
|
7440
|
+
set: function (list) {
|
|
7441
|
+
var isArr = Array.isArray(list);
|
|
7442
|
+
var validInput = isArr || (list instanceof FormControl && Array.isArray(list.value));
|
|
7443
|
+
if (!validInput) {
|
|
7444
|
+
throw new Error("DatoSortable - datoList expected array or form control but got " + typeof list);
|
|
7445
|
+
}
|
|
7446
|
+
if (!isArr) {
|
|
7447
|
+
this.formControl = list;
|
|
7448
|
+
this.list = __spread(this.formControl.value);
|
|
7449
|
+
}
|
|
7450
|
+
else {
|
|
7451
|
+
this.list = list;
|
|
7452
|
+
}
|
|
7453
|
+
},
|
|
7454
|
+
enumerable: true,
|
|
7455
|
+
configurable: true
|
|
7456
|
+
});
|
|
7457
|
+
DatoSortableComponent.prototype.ngOnInit = function () {
|
|
7458
|
+
var _this = this;
|
|
7459
|
+
var _a = this.datoOptions, dynamicGhostHeight = _a.dynamicGhostHeight, hasStaticItems = _a.hasStaticItems, sortableOptions = __rest(_a, ["dynamicGhostHeight", "hasStaticItems"]);
|
|
7460
|
+
var mergedOptions = __assign(__assign(__assign({}, this.defaultOptions), sortableOptions), { onUpdate: function (event) { return (sortableOptions.onUpdate ? sortableOptions.onUpdate(event) : _this.emitUpdate(event)); } });
|
|
7461
|
+
if (dynamicGhostHeight) {
|
|
7462
|
+
mergedOptions.onStart = function (event) { return _this.setGhostHeight(event); };
|
|
7463
|
+
}
|
|
7464
|
+
if (hasStaticItems) {
|
|
7465
|
+
mergedOptions.onMove = function (event) {
|
|
7466
|
+
if (event.related.classList.contains('dato-sortable-static-item')) {
|
|
7467
|
+
return false;
|
|
7468
|
+
}
|
|
7469
|
+
return sortableOptions.onMove ? sortableOptions.onMove(event) : true;
|
|
7470
|
+
};
|
|
7471
|
+
}
|
|
7472
|
+
this.mergedOptions = mergedOptions;
|
|
7473
|
+
};
|
|
7474
|
+
DatoSortableComponent.prototype.emitUpdate = function (event) {
|
|
7475
|
+
if (this.formControl) {
|
|
7476
|
+
this.formControl.setValue(this.list);
|
|
7477
|
+
}
|
|
7478
|
+
this.orderUpdated.emit(event);
|
|
7479
|
+
};
|
|
7480
|
+
DatoSortableComponent.prototype.setGhostHeight = function (event) {
|
|
7481
|
+
var originalEl = event.from.children[event.oldIndex];
|
|
7482
|
+
setStyle(originalEl, 'display', 'block');
|
|
7483
|
+
var height = originalEl.getBoundingClientRect().height;
|
|
7484
|
+
setStyle(originalEl, 'display', 'none');
|
|
7485
|
+
var ghostEl = query('.dato-sortable-ghost');
|
|
7486
|
+
setStyle(ghostEl, 'height', height + "px");
|
|
7487
|
+
};
|
|
7488
|
+
__decorate([
|
|
7489
|
+
ContentChildren(DatoAccordionGroupComponent),
|
|
7490
|
+
__metadata("design:type", QueryList)
|
|
7491
|
+
], DatoSortableComponent.prototype, "accordionGroups", void 0);
|
|
7492
|
+
__decorate([
|
|
7493
|
+
Input(),
|
|
7494
|
+
__metadata("design:type", Object),
|
|
7495
|
+
__metadata("design:paramtypes", [Object])
|
|
7496
|
+
], DatoSortableComponent.prototype, "datoList", null);
|
|
7497
|
+
__decorate([
|
|
7498
|
+
Input(),
|
|
7499
|
+
__metadata("design:type", Object)
|
|
7500
|
+
], DatoSortableComponent.prototype, "datoOptions", void 0);
|
|
7501
|
+
__decorate([
|
|
7502
|
+
Input(),
|
|
7503
|
+
__metadata("design:type", String)
|
|
7504
|
+
], DatoSortableComponent.prototype, "containerClass", void 0);
|
|
7505
|
+
__decorate([
|
|
7506
|
+
Output(),
|
|
7507
|
+
__metadata("design:type", Object)
|
|
7508
|
+
], DatoSortableComponent.prototype, "orderUpdated", void 0);
|
|
7509
|
+
DatoSortableComponent = __decorate([
|
|
7510
|
+
Component({
|
|
7511
|
+
selector: 'dato-sortable',
|
|
7512
|
+
template: "<section [sortablejs]=\"list\" [sortablejsOptions]=\"mergedOptions\" [ngClass]=\"containerClass\"\n (update.stop)=\"noop()\" (add.stop)=\"noop()\" (sort.stop)=\"noop()\" (remove.stop)=\"noop()\"\n (filter.stop)=\"noop()\" (change.stop)=\"noop()\" (drag.stop)=\"noop()\">\n <ng-content></ng-content>\n</section>",
|
|
7513
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7514
|
+
encapsulation: ViewEncapsulation.None,
|
|
7515
|
+
styles: ["dato-sortable{display:inline-block}dato-sortable .dato-sortable-handler{cursor:move;cursor:-webkit-grabbing}.dato-sortable-ghost>*{display:none!important}.dato-sortable-drag{box-shadow:0 2px 14px 0 rgba(0,0,0,.2)}"]
|
|
7516
|
+
})
|
|
7517
|
+
], DatoSortableComponent);
|
|
7518
|
+
return DatoSortableComponent;
|
|
7519
|
+
}());
|
|
7520
|
+
|
|
7413
7521
|
/**
|
|
7414
7522
|
* @license
|
|
7415
7523
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -7455,6 +7563,13 @@ var DatoAccordionComponent = /** @class */ (function () {
|
|
|
7455
7563
|
enumerable: true,
|
|
7456
7564
|
configurable: true
|
|
7457
7565
|
});
|
|
7566
|
+
Object.defineProperty(DatoAccordionComponent.prototype, "groups", {
|
|
7567
|
+
get: function () {
|
|
7568
|
+
return this.sortable && this.sortable.accordionGroups.length > 0 ? this.sortable.accordionGroups : this.childGroups;
|
|
7569
|
+
},
|
|
7570
|
+
enumerable: true,
|
|
7571
|
+
configurable: true
|
|
7572
|
+
});
|
|
7458
7573
|
DatoAccordionComponent.prototype.ngOnChanges = function (changes) {
|
|
7459
7574
|
var _this = this;
|
|
7460
7575
|
if (changes.expandAll && !changes.expandAll.firstChange) {
|
|
@@ -7672,11 +7787,15 @@ var DatoAccordionComponent = /** @class */ (function () {
|
|
|
7672
7787
|
__decorate([
|
|
7673
7788
|
ContentChildren(DatoAccordionGroupComponent),
|
|
7674
7789
|
__metadata("design:type", QueryList)
|
|
7675
|
-
], DatoAccordionComponent.prototype, "
|
|
7790
|
+
], DatoAccordionComponent.prototype, "childGroups", void 0);
|
|
7676
7791
|
__decorate([
|
|
7677
7792
|
ContentChildren(DatoAccordionComponent_1, { descendants: true }),
|
|
7678
7793
|
__metadata("design:type", QueryList)
|
|
7679
7794
|
], DatoAccordionComponent.prototype, "childAccordion", void 0);
|
|
7795
|
+
__decorate([
|
|
7796
|
+
ContentChild(DatoSortableComponent, { static: true }),
|
|
7797
|
+
__metadata("design:type", DatoSortableComponent)
|
|
7798
|
+
], DatoAccordionComponent.prototype, "sortable", void 0);
|
|
7680
7799
|
__decorate([
|
|
7681
7800
|
Input(),
|
|
7682
7801
|
__metadata("design:type", Object)
|
|
@@ -8549,8 +8668,8 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8549
8668
|
}
|
|
8550
8669
|
}
|
|
8551
8670
|
this.onChange(this._model);
|
|
8552
|
-
this.datoOverlay.scheduleUpdate();
|
|
8553
8671
|
this.cdr.markForCheck();
|
|
8672
|
+
this.asyncUpdateDropdownPosition();
|
|
8554
8673
|
};
|
|
8555
8674
|
DatoSelectComponent.prototype.reorderOptions = function (newOrder) {
|
|
8556
8675
|
this._model = newOrder;
|
|
@@ -8571,9 +8690,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8571
8690
|
updateDisabled && this.updateDisabledState();
|
|
8572
8691
|
this.onChange(this._model);
|
|
8573
8692
|
this.cdr.markForCheck();
|
|
8574
|
-
|
|
8575
|
-
this.datoOverlay.scheduleUpdate();
|
|
8576
|
-
}
|
|
8693
|
+
this.asyncUpdateDropdownPosition();
|
|
8577
8694
|
};
|
|
8578
8695
|
DatoSelectComponent.prototype.preventBodyScroll = function (event) {
|
|
8579
8696
|
if (isArrowUpDown(event)) {
|
|
@@ -8828,7 +8945,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8828
8945
|
_this.searchTerm = value;
|
|
8829
8946
|
_this.keyManager.setActiveItem(-1);
|
|
8830
8947
|
_this.cdr.markForCheck();
|
|
8831
|
-
_this.
|
|
8948
|
+
_this.asyncUpdateDropdownPosition();
|
|
8832
8949
|
});
|
|
8833
8950
|
};
|
|
8834
8951
|
/**
|
|
@@ -8932,7 +9049,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8932
9049
|
updateDisabled && this.updateDisabledState();
|
|
8933
9050
|
this.onChange(this._model);
|
|
8934
9051
|
this.cdr.markForCheck();
|
|
8935
|
-
this.
|
|
9052
|
+
this.asyncUpdateDropdownPosition();
|
|
8936
9053
|
};
|
|
8937
9054
|
DatoSelectComponent.prototype.activateInfiniteScroll = function () {
|
|
8938
9055
|
var _this = this;
|
|
@@ -8985,6 +9102,14 @@ var DatoSelectComponent = /** @class */ (function (_super) {
|
|
|
8985
9102
|
finally { if (e_9) throw e_9.error; }
|
|
8986
9103
|
}
|
|
8987
9104
|
};
|
|
9105
|
+
// Make sure the overlay will be update AFTER Change Detection was done
|
|
9106
|
+
// So the items in the input (and its height) is update
|
|
9107
|
+
DatoSelectComponent.prototype.asyncUpdateDropdownPosition = function () {
|
|
9108
|
+
var _this = this;
|
|
9109
|
+
if (this.datoOverlay && this.datoOverlay.attached) {
|
|
9110
|
+
setTimeout(function () { return _this.datoOverlay.scheduleUpdate(); }, 0);
|
|
9111
|
+
}
|
|
9112
|
+
};
|
|
8988
9113
|
DatoSelectComponent.ctorParameters = function () { return [
|
|
8989
9114
|
{ type: ChangeDetectorRef },
|
|
8990
9115
|
{ type: DatoTranslateService },
|
|
@@ -9977,110 +10102,6 @@ var DatoOptionsModule = /** @class */ (function () {
|
|
|
9977
10102
|
return DatoOptionsModule;
|
|
9978
10103
|
}());
|
|
9979
10104
|
|
|
9980
|
-
/**
|
|
9981
|
-
* @license
|
|
9982
|
-
* Copyright Datorama. All Rights Reserved.
|
|
9983
|
-
*
|
|
9984
|
-
* Use of this source code is governed by an Apache License 2.0 license that can be
|
|
9985
|
-
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
9986
|
-
*/
|
|
9987
|
-
var DatoSortableComponent = /** @class */ (function () {
|
|
9988
|
-
function DatoSortableComponent() {
|
|
9989
|
-
this.list = [];
|
|
9990
|
-
this.noop = noop;
|
|
9991
|
-
/**
|
|
9992
|
-
* Sortablejs options
|
|
9993
|
-
*/
|
|
9994
|
-
this.datoOptions = {};
|
|
9995
|
-
/**
|
|
9996
|
-
* Fired once items order has changed
|
|
9997
|
-
*/
|
|
9998
|
-
this.orderUpdated = new EventEmitter();
|
|
9999
|
-
this.defaultOptions = {
|
|
10000
|
-
handle: '.dato-sortable-handler',
|
|
10001
|
-
ghostClass: 'dato-sortable-ghost',
|
|
10002
|
-
chosenClass: 'dato-sortable-chosen',
|
|
10003
|
-
dragClass: 'dato-sortable-drag'
|
|
10004
|
-
};
|
|
10005
|
-
}
|
|
10006
|
-
Object.defineProperty(DatoSortableComponent.prototype, "datoList", {
|
|
10007
|
-
set: function (list) {
|
|
10008
|
-
var isArr = Array.isArray(list);
|
|
10009
|
-
var validInput = isArr || (list instanceof FormControl && Array.isArray(list.value));
|
|
10010
|
-
if (!validInput) {
|
|
10011
|
-
throw new Error("DatoSortable - datoList expected array or form control but got " + typeof list);
|
|
10012
|
-
}
|
|
10013
|
-
if (!isArr) {
|
|
10014
|
-
this.formControl = list;
|
|
10015
|
-
this.list = __spread(this.formControl.value);
|
|
10016
|
-
}
|
|
10017
|
-
else {
|
|
10018
|
-
this.list = list;
|
|
10019
|
-
}
|
|
10020
|
-
},
|
|
10021
|
-
enumerable: true,
|
|
10022
|
-
configurable: true
|
|
10023
|
-
});
|
|
10024
|
-
DatoSortableComponent.prototype.ngOnInit = function () {
|
|
10025
|
-
var _this = this;
|
|
10026
|
-
var _a = this.datoOptions, dynamicGhostHeight = _a.dynamicGhostHeight, hasStaticItems = _a.hasStaticItems, sortableOptions = __rest(_a, ["dynamicGhostHeight", "hasStaticItems"]);
|
|
10027
|
-
var mergedOptions = __assign(__assign(__assign({}, this.defaultOptions), sortableOptions), { onUpdate: function (event) { return (sortableOptions.onUpdate ? sortableOptions.onUpdate(event) : _this.emitUpdate(event)); } });
|
|
10028
|
-
if (dynamicGhostHeight) {
|
|
10029
|
-
mergedOptions.onStart = function (event) { return _this.setGhostHeight(event); };
|
|
10030
|
-
}
|
|
10031
|
-
if (hasStaticItems) {
|
|
10032
|
-
mergedOptions.onMove = function (event) {
|
|
10033
|
-
if (event.related.classList.contains('dato-sortable-static-item')) {
|
|
10034
|
-
return false;
|
|
10035
|
-
}
|
|
10036
|
-
return sortableOptions.onMove ? sortableOptions.onMove(event) : true;
|
|
10037
|
-
};
|
|
10038
|
-
}
|
|
10039
|
-
this.mergedOptions = mergedOptions;
|
|
10040
|
-
};
|
|
10041
|
-
DatoSortableComponent.prototype.emitUpdate = function (event) {
|
|
10042
|
-
if (this.formControl) {
|
|
10043
|
-
this.formControl.setValue(this.list);
|
|
10044
|
-
}
|
|
10045
|
-
this.orderUpdated.emit(event);
|
|
10046
|
-
};
|
|
10047
|
-
DatoSortableComponent.prototype.setGhostHeight = function (event) {
|
|
10048
|
-
var originalEl = event.from.children[event.oldIndex];
|
|
10049
|
-
setStyle(originalEl, 'display', 'block');
|
|
10050
|
-
var height = originalEl.getBoundingClientRect().height;
|
|
10051
|
-
setStyle(originalEl, 'display', 'none');
|
|
10052
|
-
var ghostEl = query('.dato-sortable-ghost');
|
|
10053
|
-
setStyle(ghostEl, 'height', height + "px");
|
|
10054
|
-
};
|
|
10055
|
-
__decorate([
|
|
10056
|
-
Input(),
|
|
10057
|
-
__metadata("design:type", Object),
|
|
10058
|
-
__metadata("design:paramtypes", [Object])
|
|
10059
|
-
], DatoSortableComponent.prototype, "datoList", null);
|
|
10060
|
-
__decorate([
|
|
10061
|
-
Input(),
|
|
10062
|
-
__metadata("design:type", Object)
|
|
10063
|
-
], DatoSortableComponent.prototype, "datoOptions", void 0);
|
|
10064
|
-
__decorate([
|
|
10065
|
-
Input(),
|
|
10066
|
-
__metadata("design:type", String)
|
|
10067
|
-
], DatoSortableComponent.prototype, "containerClass", void 0);
|
|
10068
|
-
__decorate([
|
|
10069
|
-
Output(),
|
|
10070
|
-
__metadata("design:type", Object)
|
|
10071
|
-
], DatoSortableComponent.prototype, "orderUpdated", void 0);
|
|
10072
|
-
DatoSortableComponent = __decorate([
|
|
10073
|
-
Component({
|
|
10074
|
-
selector: 'dato-sortable',
|
|
10075
|
-
template: "<section [sortablejs]=\"list\" [sortablejsOptions]=\"mergedOptions\" [ngClass]=\"containerClass\"\n (update.stop)=\"noop()\" (add.stop)=\"noop()\" (sort.stop)=\"noop()\" (remove.stop)=\"noop()\"\n (filter.stop)=\"noop()\" (change.stop)=\"noop()\" (drag.stop)=\"noop()\">\n <ng-content></ng-content>\n</section>",
|
|
10076
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10077
|
-
encapsulation: ViewEncapsulation.None,
|
|
10078
|
-
styles: ["dato-sortable{display:inline-block}dato-sortable .dato-sortable-handler{cursor:move;cursor:-webkit-grabbing}.dato-sortable-ghost>*{display:none!important}.dato-sortable-drag{box-shadow:0 2px 14px 0 rgba(0,0,0,.2)}"]
|
|
10079
|
-
})
|
|
10080
|
-
], DatoSortableComponent);
|
|
10081
|
-
return DatoSortableComponent;
|
|
10082
|
-
}());
|
|
10083
|
-
|
|
10084
10105
|
/**
|
|
10085
10106
|
* @license
|
|
10086
10107
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -14224,7 +14245,7 @@ var GridService = /** @class */ (function () {
|
|
|
14224
14245
|
finally { if (e_2) throw e_2.error; }
|
|
14225
14246
|
}
|
|
14226
14247
|
this.updateSettings({ filter: appliedFilter });
|
|
14227
|
-
this.
|
|
14248
|
+
this.notifyFilterUpdate();
|
|
14228
14249
|
}
|
|
14229
14250
|
};
|
|
14230
14251
|
GridService.prototype.setGridSort = function (gridSort) {
|
|
@@ -16366,7 +16387,7 @@ var DatoGridPaginationV2Component = /** @class */ (function () {
|
|
|
16366
16387
|
Component({
|
|
16367
16388
|
selector: 'dato-grid-pagination-v2',
|
|
16368
16389
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16369
|
-
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 *ngIf=\"hasRowGroupColumns\" [icon]=\"isExpanded ? 'collapse' : 'expand'\" datoType=\"secondary\"\n datoSize=\"md\" (click)=\"toggleGroupsState()\" data-auto-id=\"pagination-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-
|
|
16390
|
+
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 *ngIf=\"hasRowGroupColumns\" [icon]=\"isExpanded ? 'collapse' : 'expand'\" datoType=\"secondary\"\n datoSize=\"md\" (click)=\"toggleGroupsState()\" data-auto-id=\"pagination-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-text'\"\n data-auto-id=\"pagination-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.revert-to-default-size'\"\n data-auto-id=\"pagination-fit-to-container\">\n </dato-icon-button>\n </div>\n</div>\n",
|
|
16370
16391
|
providers: [DecimalPipe],
|
|
16371
16392
|
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}"]
|
|
16372
16393
|
}),
|
|
@@ -18271,9 +18292,11 @@ var DatoDatePickerContainerComponent = /** @class */ (function (_super) {
|
|
|
18271
18292
|
.subscribe(function (event) {
|
|
18272
18293
|
_this.toggle.emit(event);
|
|
18273
18294
|
_this.open = false;
|
|
18295
|
+
_this.cdr.detectChanges();
|
|
18274
18296
|
_this.input && _this.setInputValue();
|
|
18275
18297
|
});
|
|
18276
18298
|
this.open = true;
|
|
18299
|
+
this.cdr.detectChanges();
|
|
18277
18300
|
this.input && this.handleEnter();
|
|
18278
18301
|
}
|
|
18279
18302
|
};
|
|
@@ -18327,9 +18350,7 @@ var DatoDatePickerContainerComponent = /** @class */ (function (_super) {
|
|
|
18327
18350
|
};
|
|
18328
18351
|
DatoDatePickerContainerComponent.prototype.handleEnter = function () {
|
|
18329
18352
|
var _this = this;
|
|
18330
|
-
this.input.keydown$
|
|
18331
|
-
.pipe(filter$1(isEnter), takeUntil(this.toggle))
|
|
18332
|
-
.subscribe(function () {
|
|
18353
|
+
this.input.keydown$.pipe(filter$1(isEnter), takeUntil(this.toggle)).subscribe(function () {
|
|
18333
18354
|
_this.setInputValue();
|
|
18334
18355
|
_this.popover.closeById(DATE_PICKER_POPOVER_ID);
|
|
18335
18356
|
_this.input.blur();
|
|
@@ -18394,7 +18415,7 @@ var DatoDatePickerContainerComponent = /** @class */ (function (_super) {
|
|
|
18394
18415
|
DatoDatePickerContainerComponent = __decorate([
|
|
18395
18416
|
Component({
|
|
18396
18417
|
selector: 'dato-date-picker',
|
|
18397
|
-
template: "<div class=\"d-flex {{ triggerStyle }} items-center dato-date-picker-trigger\" (click)=\"openDatepicker(origin)\" #origin\n [class.pointer]=\"!viewMode\">\n <ng-template #defaultView>\n <dato-icon datoIcon=\"calendarcore\" width=\"16px\" class=\"primary-400-color\"></dato-icon>\n <div class=\"ellipsis\"\n [datoTooltip]=\"dateLabel + ' ' + dateRange\"\n [datoTooltipPosition]=\"labelTooltipPosition\"\n [datoTooltipOnTextOverflow]=\"true\">\n <span class=\"dato-note date-label\" *ngIf=\"dateLabel\">{{dateLabel | translate}} </span>\n <span class=\"dato-note date-range\">{{dateRange}}</span>\n </div>\n </ng-template>\n\n <ng-template [ngTemplateOutlet]=\"triggerTpl ? triggerTpl : defaultView\"\n [ngTemplateOutletContext]=\"{label: dateLabel, range: dateRange, icon: 'calendar'}\"></ng-template>\n </div>\n",
|
|
18418
|
+
template: "<div class=\"d-flex {{ triggerStyle }} items-center dato-date-picker-trigger\" [class.open]=\"open\" (click)=\"openDatepicker(origin)\" #origin\n [class.pointer]=\"!viewMode\">\n <ng-template #defaultView>\n <dato-icon datoIcon=\"calendarcore\" width=\"16px\" class=\"primary-400-color\"></dato-icon>\n <div class=\"ellipsis\"\n [datoTooltip]=\"dateLabel + ' ' + dateRange\"\n [datoTooltipPosition]=\"labelTooltipPosition\"\n [datoTooltipOnTextOverflow]=\"true\">\n <span class=\"dato-note date-label\" *ngIf=\"dateLabel\">{{dateLabel | translate}} </span>\n <span class=\"dato-note date-range\">{{dateRange}}</span>\n </div>\n </ng-template>\n\n <ng-template [ngTemplateOutlet]=\"triggerTpl ? triggerTpl : defaultView\"\n [ngTemplateOutletContext]=\"{label: dateLabel, range: dateRange, icon: 'calendar'}\"></ng-template>\n </div>\n",
|
|
18398
18419
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
18399
18420
|
}),
|
|
18400
18421
|
__param(0, Self()), __param(0, Optional()),
|
|
@@ -25187,7 +25208,7 @@ function fixNgLeaks() {
|
|
|
25187
25208
|
};
|
|
25188
25209
|
}
|
|
25189
25210
|
|
|
25190
|
-
window.coreVersion = '22.
|
|
25211
|
+
window.coreVersion = '22.5.3';
|
|
25191
25212
|
|
|
25192
25213
|
/**
|
|
25193
25214
|
* @license
|