@datorama/core 22.2.5 → 22.5.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 +22 -0
- package/bundles/datorama-core.umd.js +143 -118
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +17 -17
- 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/grid-v2.types.js +1 -1
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +7 -3
- 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-store/grid.service.js +1 -1
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.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/grid-v2.types.js +1 -1
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +7 -3
- 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-store/grid.service.js +1 -1
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.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 +132 -112
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +143 -118
- package/fesm5/datorama-core.js.map +1 -1
- 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/grid-v2/grid/grid-v2.types.d.ts +2 -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.
|
|
@@ -15419,8 +15440,12 @@ var DatoGridControllerComponent = /** @class */ (function () {
|
|
|
15419
15440
|
var settingsDiff = _this.gridService.getSettingsDiff();
|
|
15420
15441
|
_this.gridService.updateSettings(settingsDiff);
|
|
15421
15442
|
var data = _this.getGridData();
|
|
15422
|
-
_this.onGridChange.emit(
|
|
15423
|
-
|
|
15443
|
+
_this.onGridChange.emit({
|
|
15444
|
+
filter: _this.gridQuery.getExternalFilter(),
|
|
15445
|
+
sort: _this.gridQuery.getSort(),
|
|
15446
|
+
type: type,
|
|
15447
|
+
data: data
|
|
15448
|
+
});
|
|
15424
15449
|
});
|
|
15425
15450
|
};
|
|
15426
15451
|
DatoGridControllerComponent.prototype.listenToStoreSettingsChanges = function () {
|
|
@@ -18267,9 +18292,11 @@ var DatoDatePickerContainerComponent = /** @class */ (function (_super) {
|
|
|
18267
18292
|
.subscribe(function (event) {
|
|
18268
18293
|
_this.toggle.emit(event);
|
|
18269
18294
|
_this.open = false;
|
|
18295
|
+
_this.cdr.detectChanges();
|
|
18270
18296
|
_this.input && _this.setInputValue();
|
|
18271
18297
|
});
|
|
18272
18298
|
this.open = true;
|
|
18299
|
+
this.cdr.detectChanges();
|
|
18273
18300
|
this.input && this.handleEnter();
|
|
18274
18301
|
}
|
|
18275
18302
|
};
|
|
@@ -18323,9 +18350,7 @@ var DatoDatePickerContainerComponent = /** @class */ (function (_super) {
|
|
|
18323
18350
|
};
|
|
18324
18351
|
DatoDatePickerContainerComponent.prototype.handleEnter = function () {
|
|
18325
18352
|
var _this = this;
|
|
18326
|
-
this.input.keydown$
|
|
18327
|
-
.pipe(filter$1(isEnter), takeUntil(this.toggle))
|
|
18328
|
-
.subscribe(function () {
|
|
18353
|
+
this.input.keydown$.pipe(filter$1(isEnter), takeUntil(this.toggle)).subscribe(function () {
|
|
18329
18354
|
_this.setInputValue();
|
|
18330
18355
|
_this.popover.closeById(DATE_PICKER_POPOVER_ID);
|
|
18331
18356
|
_this.input.blur();
|
|
@@ -18390,7 +18415,7 @@ var DatoDatePickerContainerComponent = /** @class */ (function (_super) {
|
|
|
18390
18415
|
DatoDatePickerContainerComponent = __decorate([
|
|
18391
18416
|
Component({
|
|
18392
18417
|
selector: 'dato-date-picker',
|
|
18393
|
-
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",
|
|
18394
18419
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
18395
18420
|
}),
|
|
18396
18421
|
__param(0, Self()), __param(0, Optional()),
|
|
@@ -25183,7 +25208,7 @@ function fixNgLeaks() {
|
|
|
25183
25208
|
};
|
|
25184
25209
|
}
|
|
25185
25210
|
|
|
25186
|
-
window.coreVersion = '22.2
|
|
25211
|
+
window.coreVersion = '22.5.2';
|
|
25187
25212
|
|
|
25188
25213
|
/**
|
|
25189
25214
|
* @license
|