@datorama/core 22.11.2 → 22.12.1-beta.1
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 +91 -89
- package/bundles/datorama-core.umd.js +110 -92
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +10 -3
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/grid-v2/grid/grid-v2.component.js +4 -4
- package/esm2015/lib/grid-v2/grid/grid-v2.config.js +2 -2
- package/esm2015/lib/grid-v2/grid/grid-v2.types.js +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +13 -5
- package/esm2015/lib/select/select.component.js +10 -2
- package/esm2015/lib/select/trigger-single/trigger-single.component.js +4 -1
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/grid-v2/grid/grid-v2.component.js +4 -4
- package/esm5/lib/grid-v2/grid/grid-v2.config.js +2 -2
- package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
- package/esm5/lib/grid-v2/grid-store/grid.service.js +13 -5
- package/esm5/lib/select/select.component.js +10 -2
- package/esm5/lib/select/trigger-single/trigger-single.component.js +4 -1
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +93 -75
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +110 -92
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.component.d.ts +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -0
- package/lib/select/select.component.d.ts +2 -0
- package/lib/select/trigger-single/trigger-single.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8430,6 +8430,91 @@
|
|
|
8430
8430
|
return !!window.Cypress;
|
|
8431
8431
|
}
|
|
8432
8432
|
|
|
8433
|
+
/**
|
|
8434
|
+
* @license
|
|
8435
|
+
* Copyright Datorama. All Rights Reserved.
|
|
8436
|
+
*
|
|
8437
|
+
* Use of this source code is governed by an Apache License 2.0 license that can be
|
|
8438
|
+
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
8439
|
+
*/
|
|
8440
|
+
var DatoTriggerSingle = /** @class */ (function () {
|
|
8441
|
+
function DatoTriggerSingle(cdr) {
|
|
8442
|
+
this.cdr = cdr;
|
|
8443
|
+
this._placeholder = '';
|
|
8444
|
+
}
|
|
8445
|
+
Object.defineProperty(DatoTriggerSingle.prototype, "placeholder", {
|
|
8446
|
+
set: function (value) {
|
|
8447
|
+
this._placeholder = value;
|
|
8448
|
+
this.cdr.detectChanges();
|
|
8449
|
+
},
|
|
8450
|
+
enumerable: true,
|
|
8451
|
+
configurable: true
|
|
8452
|
+
});
|
|
8453
|
+
Object.defineProperty(DatoTriggerSingle.prototype, "context", {
|
|
8454
|
+
set: function (value) {
|
|
8455
|
+
this._model = { $implicit: value };
|
|
8456
|
+
this.cdr.detectChanges();
|
|
8457
|
+
},
|
|
8458
|
+
enumerable: true,
|
|
8459
|
+
configurable: true
|
|
8460
|
+
});
|
|
8461
|
+
Object.defineProperty(DatoTriggerSingle.prototype, "hidePlaceholder", {
|
|
8462
|
+
get: function () {
|
|
8463
|
+
return !this._model || !this._model.$implicit;
|
|
8464
|
+
},
|
|
8465
|
+
enumerable: true,
|
|
8466
|
+
configurable: true
|
|
8467
|
+
});
|
|
8468
|
+
DatoTriggerSingle.prototype.ngOnInit = function () {
|
|
8469
|
+
this.cdr.detach();
|
|
8470
|
+
};
|
|
8471
|
+
Object.defineProperty(DatoTriggerSingle.prototype, "getLabel", {
|
|
8472
|
+
get: function () {
|
|
8473
|
+
return this._model && this._model.$implicit && this._model.$implicit[this.labelKey];
|
|
8474
|
+
},
|
|
8475
|
+
enumerable: true,
|
|
8476
|
+
configurable: true
|
|
8477
|
+
});
|
|
8478
|
+
DatoTriggerSingle.prototype.triggerChangeDetection = function () {
|
|
8479
|
+
this.cdr.detectChanges();
|
|
8480
|
+
};
|
|
8481
|
+
DatoTriggerSingle.ctorParameters = function () { return [
|
|
8482
|
+
{ type: core.ChangeDetectorRef }
|
|
8483
|
+
]; };
|
|
8484
|
+
__decorate([
|
|
8485
|
+
core.Input(),
|
|
8486
|
+
__metadata("design:type", core.TemplateRef)
|
|
8487
|
+
], DatoTriggerSingle.prototype, "loadingTemplate", void 0);
|
|
8488
|
+
__decorate([
|
|
8489
|
+
core.Input(),
|
|
8490
|
+
__metadata("design:type", DatoSelectActiveDirective)
|
|
8491
|
+
], DatoTriggerSingle.prototype, "active", void 0);
|
|
8492
|
+
__decorate([
|
|
8493
|
+
core.Input(),
|
|
8494
|
+
__metadata("design:type", Object),
|
|
8495
|
+
__metadata("design:paramtypes", [Object])
|
|
8496
|
+
], DatoTriggerSingle.prototype, "placeholder", null);
|
|
8497
|
+
__decorate([
|
|
8498
|
+
core.Input(),
|
|
8499
|
+
__metadata("design:type", String)
|
|
8500
|
+
], DatoTriggerSingle.prototype, "labelKey", void 0);
|
|
8501
|
+
__decorate([
|
|
8502
|
+
core.Input(),
|
|
8503
|
+
__metadata("design:type", Object),
|
|
8504
|
+
__metadata("design:paramtypes", [Object])
|
|
8505
|
+
], DatoTriggerSingle.prototype, "context", null);
|
|
8506
|
+
DatoTriggerSingle = __decorate([
|
|
8507
|
+
core.Component({
|
|
8508
|
+
selector: 'dato-trigger-single',
|
|
8509
|
+
template: "<ng-template *ngIf=\"loadingTemplate\" [ngTemplateOutlet]=\"loadingTemplate\"></ng-template>\n<ng-container\n *ngIf=\"active && !hidePlaceholder\"\n [ngTemplateOutlet]=\"active.tpl\"\n [ngTemplateOutletContext]=\"_model\">\n</ng-container>\n<ng-container *ngIf=\"!active\">{{getLabel | translate}}</ng-container>\n<span class=\"dato-select__placeholder\" *ngIf=\"hidePlaceholder\">{{_placeholder}}</span>\n<dato-icon datoIcon=\"arrow-down\" datoSize=\"sm\" class=\"dato-select__single__arrow\"></dato-icon>\n",
|
|
8510
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
8511
|
+
styles: [":host{display:block;position:relative;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host dato-icon{position:absolute;top:50%;transform:translateY(-50%);right:10px}"]
|
|
8512
|
+
}),
|
|
8513
|
+
__metadata("design:paramtypes", [core.ChangeDetectorRef])
|
|
8514
|
+
], DatoTriggerSingle);
|
|
8515
|
+
return DatoTriggerSingle;
|
|
8516
|
+
}());
|
|
8517
|
+
|
|
8433
8518
|
/**
|
|
8434
8519
|
* @license
|
|
8435
8520
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -9311,6 +9396,9 @@
|
|
|
9311
9396
|
setTimeout(function () { return _this.datoOverlay.scheduleUpdate(); }, 0);
|
|
9312
9397
|
}
|
|
9313
9398
|
};
|
|
9399
|
+
DatoSelectComponent.prototype.triggerChangeDetectionInDatoSingle = function () {
|
|
9400
|
+
this.datoTriggerSingle.triggerChangeDetection();
|
|
9401
|
+
};
|
|
9314
9402
|
DatoSelectComponent.ctorParameters = function () { return [
|
|
9315
9403
|
{ type: core.ChangeDetectorRef },
|
|
9316
9404
|
{ type: DatoTranslateService },
|
|
@@ -9320,6 +9408,10 @@
|
|
|
9320
9408
|
{ type: undefined, decorators: [{ type: core.Attribute, args: ['datoSize',] }] },
|
|
9321
9409
|
{ type: String, decorators: [{ type: core.Attribute, args: ['width',] }] }
|
|
9322
9410
|
]; };
|
|
9411
|
+
__decorate([
|
|
9412
|
+
core.ViewChild('datoTriggerSingle'),
|
|
9413
|
+
__metadata("design:type", DatoTriggerSingle)
|
|
9414
|
+
], DatoSelectComponent.prototype, "datoTriggerSingle", void 0);
|
|
9323
9415
|
__decorate([
|
|
9324
9416
|
core.ViewChild('dropdown'),
|
|
9325
9417
|
__metadata("design:type", core.TemplateRef)
|
|
@@ -9486,7 +9578,7 @@
|
|
|
9486
9578
|
DatoSelectComponent = __decorate([
|
|
9487
9579
|
core.Component({
|
|
9488
9580
|
selector: 'dato-select',
|
|
9489
|
-
template: "<section class=\"dato-select__trigger\" [class.dato-select--naked]=\"_naked\" [class.dato-select--disabled]=\"_disabled\">\n\n <div class=\"dato-select__single\" *ngIf=\"isSingle\" [ngClass]=\"_dropdownClass\">\n <dato-input [class.force-hide]=\"(!open && isCombo) || !isCombo\" [placeholder]=\"searchPlaceholder | translate\"\n (keyup)=\"keyup($event)\" [isFocused]=\"_focus\" [isLoading]=\"isLoading\" [formControl]=\"searchControl\" type=\"search\">\n </dato-input>\n\n <dato-trigger-single [loadingTemplate]=\"loadingTemplate\" [active]=\"active\" datoErrorValidationBorderAnchor tabindex=\"0\" [labelKey]=\"labelKey\"\n [context]=\"_model[0]\" [class.force-hide]=\"open && isCombo\" [placeholder]=\"placeholder | translate\"\n class=\"ontop-overlay\" (keydown)=\"preventBodyScroll($event)\" (keyup)=\"keyup($event)\" (click)=\"openDropdown()\">\n </dato-trigger-single>\n </div>\n\n <dato-trigger-multi [loadingTemplate]=\"loadingTemplate\" [options]=\"_model\" datoErrorValidationBorderAnchor [control]=\"searchControl\"\n [placeholder]=\"placeholder | translate\" [labelKey]=\"labelKey\" [idKey]=\"idKey\" (keyup)=\"keyup($event)\"\n [isLoading]=\"isLoading\" [keepFocus]=\"keepFocus\" [limitTo]=\"limitTo\" [clickOutside]=\"_clickOutside\" [isSortable]=\"isSortable\"\n [selectAllChipTxt]=\"selectAllChipTxt\"\n [showSelectAllChip]=\"selectAllChipTxt && showSelectAllChip\"\n (unselectAll)=\"checkAll(false)\"\n (removeOption)=\"removeOption($event)\" (reorderOptions)=\"reorderOptions($event)\" *ngIf=\"isMulti\"\n (click)=\"openDropdown($event)\"></dato-trigger-multi>\n\n</section>\n\n<ng-template #dropdown>\n <section class=\"dato-select__dropdown-container\" tabindex=\"0\" (keyup)=\"keyup($event)\">\n\n <!-- HEADER -->\n\n <header class=\"dato-select__header dato-select__option dato-select__option--simple\" data-is-floating\n *ngIf=\"isMulti && allowSelectAll\" [class.force-hide]=\"_showEmptyResults\" [class.ml-10]=\"containsGroups\">\n <dato-checkbox [checked]=\"_isAllChecked\" (check)=\"checkAll($event)\"\n [indeterminatelyChecked]=\"_isIndeterminatelyChecked\">\n {{'core.select-all' | translate}}<span class=\"primary-300-color note-italic ml-5\">{{_count}}</span>\n </dato-checkbox>\n </header>\n\n <!-- END HEADER -->\n\n <!-- DROPDOWN -->\n\n <div class=\"dato-select__dropdown\">\n\n <ng-content></ng-content>\n\n <dato-select-empty [show]=\"_showEmptyResults\">{{_noItemsLabel}}</dato-select-empty>\n <div class=\"dato-select__option dato-select-infinite-spinner\" data-is-floating *ngIf=\"infiniteScrollLoading\">\n <span class=\"dato-input__spinner\"></span>\n </div>\n\n </div>\n\n <!-- END DROPDOWN -->\n\n\n <!-- FOOTER -->\n\n <footer class=\"dato-select__footer d-flex\" [class.with-actions]=\"_withActions\">\n\n <ng-content select=\"[datoSelectFooter]\"></ng-content>\n\n <ng-container *ngIf=\"_withActions\">\n <dato-link class=\"mr-20\" datoType=\"secondary\" (click)=\"close()\">Cancel</dato-link>\n <dato-button datoSize=\"sm\" (click)=\"save.emit(); close();\">Save</dato-button>\n </ng-container>\n\n </footer>\n\n <!-- END FOOTER -->\n\n </section>\n\n</ng-template>\n",
|
|
9581
|
+
template: "<section class=\"dato-select__trigger\" [class.dato-select--naked]=\"_naked\" [class.dato-select--disabled]=\"_disabled\">\n\n <div class=\"dato-select__single\" *ngIf=\"isSingle\" [ngClass]=\"_dropdownClass\">\n <dato-input [class.force-hide]=\"(!open && isCombo) || !isCombo\" [placeholder]=\"searchPlaceholder | translate\"\n (keyup)=\"keyup($event)\" [isFocused]=\"_focus\" [isLoading]=\"isLoading\" [formControl]=\"searchControl\" type=\"search\">\n </dato-input>\n\n <dato-trigger-single #datoTriggerSingle [loadingTemplate]=\"loadingTemplate\" [active]=\"active\" datoErrorValidationBorderAnchor tabindex=\"0\" [labelKey]=\"labelKey\"\n [context]=\"_model[0]\" [class.force-hide]=\"open && isCombo\" [placeholder]=\"placeholder | translate\"\n class=\"ontop-overlay\" (keydown)=\"preventBodyScroll($event)\" (keyup)=\"keyup($event)\" (click)=\"openDropdown()\">\n </dato-trigger-single>\n </div>\n\n <dato-trigger-multi [loadingTemplate]=\"loadingTemplate\" [options]=\"_model\" datoErrorValidationBorderAnchor [control]=\"searchControl\"\n [placeholder]=\"placeholder | translate\" [labelKey]=\"labelKey\" [idKey]=\"idKey\" (keyup)=\"keyup($event)\"\n [isLoading]=\"isLoading\" [keepFocus]=\"keepFocus\" [limitTo]=\"limitTo\" [clickOutside]=\"_clickOutside\" [isSortable]=\"isSortable\"\n [selectAllChipTxt]=\"selectAllChipTxt\"\n [showSelectAllChip]=\"selectAllChipTxt && showSelectAllChip\"\n (unselectAll)=\"checkAll(false)\"\n (removeOption)=\"removeOption($event)\" (reorderOptions)=\"reorderOptions($event)\" *ngIf=\"isMulti\"\n (click)=\"openDropdown($event)\"></dato-trigger-multi>\n\n</section>\n\n<ng-template #dropdown>\n <section class=\"dato-select__dropdown-container\" tabindex=\"0\" (keyup)=\"keyup($event)\">\n\n <!-- HEADER -->\n\n <header class=\"dato-select__header dato-select__option dato-select__option--simple\" data-is-floating\n *ngIf=\"isMulti && allowSelectAll\" [class.force-hide]=\"_showEmptyResults\" [class.ml-10]=\"containsGroups\">\n <dato-checkbox [checked]=\"_isAllChecked\" (check)=\"checkAll($event)\"\n [indeterminatelyChecked]=\"_isIndeterminatelyChecked\">\n {{'core.select-all' | translate}}<span class=\"primary-300-color note-italic ml-5\">{{_count}}</span>\n </dato-checkbox>\n </header>\n\n <!-- END HEADER -->\n\n <!-- DROPDOWN -->\n\n <div class=\"dato-select__dropdown\">\n\n <ng-content></ng-content>\n\n <dato-select-empty [show]=\"_showEmptyResults\">{{_noItemsLabel}}</dato-select-empty>\n <div class=\"dato-select__option dato-select-infinite-spinner\" data-is-floating *ngIf=\"infiniteScrollLoading\">\n <span class=\"dato-input__spinner\"></span>\n </div>\n\n </div>\n\n <!-- END DROPDOWN -->\n\n\n <!-- FOOTER -->\n\n <footer class=\"dato-select__footer d-flex\" [class.with-actions]=\"_withActions\">\n\n <ng-content select=\"[datoSelectFooter]\"></ng-content>\n\n <ng-container *ngIf=\"_withActions\">\n <dato-link class=\"mr-20\" datoType=\"secondary\" (click)=\"close()\">Cancel</dato-link>\n <dato-button datoSize=\"sm\" (click)=\"save.emit(); close();\">Save</dato-button>\n </ng-container>\n\n </footer>\n\n <!-- END FOOTER -->\n\n </section>\n\n</ng-template>\n",
|
|
9490
9582
|
preserveWhitespaces: false,
|
|
9491
9583
|
providers: [valueAccessor$3, DatoOverlay],
|
|
9492
9584
|
encapsulation: core.ViewEncapsulation.None,
|
|
@@ -9504,88 +9596,6 @@
|
|
|
9504
9596
|
return DatoSelectComponent;
|
|
9505
9597
|
}(BaseCustomControl));
|
|
9506
9598
|
|
|
9507
|
-
/**
|
|
9508
|
-
* @license
|
|
9509
|
-
* Copyright Datorama. All Rights Reserved.
|
|
9510
|
-
*
|
|
9511
|
-
* Use of this source code is governed by an Apache License 2.0 license that can be
|
|
9512
|
-
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
9513
|
-
*/
|
|
9514
|
-
var DatoTriggerSingle = /** @class */ (function () {
|
|
9515
|
-
function DatoTriggerSingle(cdr) {
|
|
9516
|
-
this.cdr = cdr;
|
|
9517
|
-
this._placeholder = '';
|
|
9518
|
-
}
|
|
9519
|
-
Object.defineProperty(DatoTriggerSingle.prototype, "placeholder", {
|
|
9520
|
-
set: function (value) {
|
|
9521
|
-
this._placeholder = value;
|
|
9522
|
-
this.cdr.detectChanges();
|
|
9523
|
-
},
|
|
9524
|
-
enumerable: true,
|
|
9525
|
-
configurable: true
|
|
9526
|
-
});
|
|
9527
|
-
Object.defineProperty(DatoTriggerSingle.prototype, "context", {
|
|
9528
|
-
set: function (value) {
|
|
9529
|
-
this._model = { $implicit: value };
|
|
9530
|
-
this.cdr.detectChanges();
|
|
9531
|
-
},
|
|
9532
|
-
enumerable: true,
|
|
9533
|
-
configurable: true
|
|
9534
|
-
});
|
|
9535
|
-
Object.defineProperty(DatoTriggerSingle.prototype, "hidePlaceholder", {
|
|
9536
|
-
get: function () {
|
|
9537
|
-
return !this._model || !this._model.$implicit;
|
|
9538
|
-
},
|
|
9539
|
-
enumerable: true,
|
|
9540
|
-
configurable: true
|
|
9541
|
-
});
|
|
9542
|
-
DatoTriggerSingle.prototype.ngOnInit = function () {
|
|
9543
|
-
this.cdr.detach();
|
|
9544
|
-
};
|
|
9545
|
-
Object.defineProperty(DatoTriggerSingle.prototype, "getLabel", {
|
|
9546
|
-
get: function () {
|
|
9547
|
-
return this._model && this._model.$implicit && this._model.$implicit[this.labelKey];
|
|
9548
|
-
},
|
|
9549
|
-
enumerable: true,
|
|
9550
|
-
configurable: true
|
|
9551
|
-
});
|
|
9552
|
-
DatoTriggerSingle.ctorParameters = function () { return [
|
|
9553
|
-
{ type: core.ChangeDetectorRef }
|
|
9554
|
-
]; };
|
|
9555
|
-
__decorate([
|
|
9556
|
-
core.Input(),
|
|
9557
|
-
__metadata("design:type", core.TemplateRef)
|
|
9558
|
-
], DatoTriggerSingle.prototype, "loadingTemplate", void 0);
|
|
9559
|
-
__decorate([
|
|
9560
|
-
core.Input(),
|
|
9561
|
-
__metadata("design:type", DatoSelectActiveDirective)
|
|
9562
|
-
], DatoTriggerSingle.prototype, "active", void 0);
|
|
9563
|
-
__decorate([
|
|
9564
|
-
core.Input(),
|
|
9565
|
-
__metadata("design:type", Object),
|
|
9566
|
-
__metadata("design:paramtypes", [Object])
|
|
9567
|
-
], DatoTriggerSingle.prototype, "placeholder", null);
|
|
9568
|
-
__decorate([
|
|
9569
|
-
core.Input(),
|
|
9570
|
-
__metadata("design:type", String)
|
|
9571
|
-
], DatoTriggerSingle.prototype, "labelKey", void 0);
|
|
9572
|
-
__decorate([
|
|
9573
|
-
core.Input(),
|
|
9574
|
-
__metadata("design:type", Object),
|
|
9575
|
-
__metadata("design:paramtypes", [Object])
|
|
9576
|
-
], DatoTriggerSingle.prototype, "context", null);
|
|
9577
|
-
DatoTriggerSingle = __decorate([
|
|
9578
|
-
core.Component({
|
|
9579
|
-
selector: 'dato-trigger-single',
|
|
9580
|
-
template: "<ng-template *ngIf=\"loadingTemplate\" [ngTemplateOutlet]=\"loadingTemplate\"></ng-template>\n<ng-container\n *ngIf=\"active && !hidePlaceholder\"\n [ngTemplateOutlet]=\"active.tpl\"\n [ngTemplateOutletContext]=\"_model\">\n</ng-container>\n<ng-container *ngIf=\"!active\">{{getLabel | translate}}</ng-container>\n<span class=\"dato-select__placeholder\" *ngIf=\"hidePlaceholder\">{{_placeholder}}</span>\n<dato-icon datoIcon=\"arrow-down\" datoSize=\"sm\" class=\"dato-select__single__arrow\"></dato-icon>\n",
|
|
9581
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
9582
|
-
styles: [":host{display:block;position:relative;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host dato-icon{position:absolute;top:50%;transform:translateY(-50%);right:10px}"]
|
|
9583
|
-
}),
|
|
9584
|
-
__metadata("design:paramtypes", [core.ChangeDetectorRef])
|
|
9585
|
-
], DatoTriggerSingle);
|
|
9586
|
-
return DatoTriggerSingle;
|
|
9587
|
-
}());
|
|
9588
|
-
|
|
9589
9599
|
/**
|
|
9590
9600
|
* @license
|
|
9591
9601
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -13726,7 +13736,7 @@
|
|
|
13726
13736
|
type: exports.DatoGridColumnTypes.String,
|
|
13727
13737
|
menuTabs: ['filterMenuTab'],
|
|
13728
13738
|
headerComponentFramework: DatoGridColumnHeaderComponent
|
|
13729
|
-
}, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: exports.GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1 }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
|
|
13739
|
+
}, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: exports.GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1, pivotGridStyle: false }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
|
|
13730
13740
|
var DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
|
|
13731
13741
|
CLIENT: 200,
|
|
13732
13742
|
SERVER: 250
|
|
@@ -14343,9 +14353,17 @@
|
|
|
14343
14353
|
/** Add pivot specific required settings */
|
|
14344
14354
|
if (params.gridOptions.pivotMode) {
|
|
14345
14355
|
this.initPivotSecondaryColsProcess(params);
|
|
14346
|
-
params.gridOptions.enableV2_1 = true;
|
|
14347
14356
|
params.gridOptions.saveSettings = false;
|
|
14348
|
-
|
|
14357
|
+
}
|
|
14358
|
+
if (params.gridOptions.pivotGridStyle) {
|
|
14359
|
+
params.gridOptions.rowHeight = 30;
|
|
14360
|
+
params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
|
|
14361
|
+
var style = { lineHeight: '30px' };
|
|
14362
|
+
if (params.colDef.type === exports.DatoGridColumnTypes.Number) {
|
|
14363
|
+
style.textAlign = 'end';
|
|
14364
|
+
}
|
|
14365
|
+
return style;
|
|
14366
|
+
} });
|
|
14349
14367
|
params.gridOptions.autoGroupColumnDef = __assign(__assign({}, params.gridOptions.autoGroupColumnDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this) });
|
|
14350
14368
|
}
|
|
14351
14369
|
return params.gridOptions;
|
|
@@ -14378,11 +14396,11 @@
|
|
|
14378
14396
|
if (leafGroup) {
|
|
14379
14397
|
if (childIndex % 2 === 0) {
|
|
14380
14398
|
/** If row is even */
|
|
14381
|
-
cellClass += '
|
|
14399
|
+
cellClass += 'primary-0-background-color';
|
|
14382
14400
|
}
|
|
14383
14401
|
}
|
|
14384
14402
|
else {
|
|
14385
|
-
cellClass += '
|
|
14403
|
+
cellClass += 'primary-100-background-color pointer dato-simple-bold';
|
|
14386
14404
|
}
|
|
14387
14405
|
}
|
|
14388
14406
|
}
|
|
@@ -16178,9 +16196,9 @@
|
|
|
16178
16196
|
enumerable: true,
|
|
16179
16197
|
configurable: true
|
|
16180
16198
|
});
|
|
16181
|
-
Object.defineProperty(DatoGridV2Component.prototype, "
|
|
16199
|
+
Object.defineProperty(DatoGridV2Component.prototype, "isPivotStyle", {
|
|
16182
16200
|
get: function () {
|
|
16183
|
-
return this.gridOptions ? this.gridOptions.
|
|
16201
|
+
return this.gridOptions ? this.gridOptions.pivotGridStyle : false;
|
|
16184
16202
|
},
|
|
16185
16203
|
enumerable: true,
|
|
16186
16204
|
configurable: true
|
|
@@ -16197,7 +16215,7 @@
|
|
|
16197
16215
|
DatoGridV2Component = __decorate([
|
|
16198
16216
|
core.Component({
|
|
16199
16217
|
selector: 'dato-grid-v2',
|
|
16200
|
-
template: "<ag-grid-angular data-auto-id=\"grid\" class=\"dato-grid ag-theme-material\" [class.has-background]=\"enableBackground\" [class.enable-v2_1]=\"enableV2_1\"\n [class.with-multi-selection-col]=\"gridOptions?.showMultiSelectionCheckboxes\" [class.pivot-
|
|
16218
|
+
template: "<ag-grid-angular data-auto-id=\"grid\" class=\"dato-grid ag-theme-material\" [class.has-background]=\"enableBackground\" [class.enable-v2_1]=\"enableV2_1\"\n [class.with-multi-selection-col]=\"gridOptions?.showMultiSelectionCheckboxes\" [class.pivot-style]=\"isPivotStyle\">\n</ag-grid-angular>\n<dato-grid-pagination-v2 [class.has-background]=\"enableBackground\"></dato-grid-pagination-v2>\n",
|
|
16201
16219
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
16202
16220
|
encapsulation: core.ViewEncapsulation.None,
|
|
16203
16221
|
styles: ["dato-grid-v2{flex-grow:1;display:flex;flex-direction:column;position:relative}dato-grid-v2 .dato-grid,dato-grid-v2 dato-grid-pagination-v2{position:absolute;left:0;right:0;bottom:0}dato-grid-v2 .dato-grid{top:0;bottom:50px}dato-grid-v2 .grid-hover-actions{position:absolute;z-index:2;transition:opacity .2s ease-in-out}dato-grid-v2 .ag-row-drag{width:initial!important}dato-grid-v2 .da-grid-icon{display:inline-block;line-height:31px;vertical-align:middle;width:initial;height:initial}dato-grid-v2 .da-grid-icon.drag{width:14px;height:14px;margin-right:6px;opacity:0;transition:opacity .3s;transform:translateY(-50%)}dato-grid-v2 .da-grid-icon.folder{width:18px;height:35px;margin:0 8px}dato-grid-v2 .ag-row.ag-row-hover .da-grid-icon.drag{opacity:1}dato-grid-v2 ag-grid-angular.tree .ag-group-contracted,dato-grid-v2 ag-grid-angular.tree .ag-group-expanded{display:inline-block;width:18px;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-group-checkbox{display:none}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-empty-folder .folder{margin-left:26px}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-1 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 1)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-1{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-2 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 2)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-2{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-3 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 3)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-3{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-4 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 4)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-4{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row div[col-id=ag-Grid-AutoColumn]{padding-left:0}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell{display:flex;align-items:center}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .ag-group-value>span{display:inline-block;vertical-align:middle}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .initials{border-radius:50%;padding:4px;margin-right:8px;margin-left:20px;width:28px;height:28px;display:inline-block;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-row-group-leaf-indent{margin-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-selection-checkbox .ag-icon-checkbox-indeterminate:before{text-align:center;content:'-';display:inline-block;position:absolute;top:0;left:0;right:0;bottom:0;line-height:.5;color:#fff}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell{line-height:33px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.dato-editable-cell{line-height:29px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.ag-cell-inline-editing{height:35px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell{line-height:42px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.dato-editable-cell{line-height:38px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.ag-cell-inline-editing{height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell{line-height:48px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.dato-editable-cell{line-height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.ag-cell-inline-editing{height:50px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell{line-height:57px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.dato-editable-cell{line-height:53px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.ag-cell-inline-editing{height:59px}dato-grid-v2 ag-grid-angular .ag-cell.checkbox-selection-cell{display:flex}dato-grid-v2 .ag-menu .da-grid-icon svg{vertical-align:middle}dato-grid-v2 .ag-header-cell-sortable .ag-sort-none-icon{opacity:0;transition:opacity .2s}dato-grid-v2 .ag-header-cell-sortable:hover .ag-sort-none-icon{opacity:1}dato-grid-v2 .group-contracted-icon,dato-grid-v2 .group-expanded-icon{width:7px}dato-grid-v2 .group-expanded-icon{transform:rotate(90deg)}dato-grid-v2 .dato-grid .ag-cell{border-top:0;border-bottom:0}dato-grid-v2 .ag-overlay-wrapper ng-component{display:flex}.ag-dnd-ghost{min-width:100px;border:none;display:flex;justify-content:flex-start;align-content:center;align-items:center;cursor:-webkit-grabbing;cursor:grabbing;z-index:10000000}.ag-dnd-ghost .da-grid-icon.column-move-hide svg{height:18px;width:18px}.ag-dnd-ghost .da-grid-icon.column-move svg,.ag-dnd-ghost .da-grid-icon.column-move-pin svg{height:16px;width:16px}"]
|
|
@@ -25606,7 +25624,7 @@
|
|
|
25606
25624
|
};
|
|
25607
25625
|
}
|
|
25608
25626
|
|
|
25609
|
-
window.coreVersion = '22.
|
|
25627
|
+
window.coreVersion = '22.12.0';
|
|
25610
25628
|
|
|
25611
25629
|
exports.APP_TRANSLATE = APP_TRANSLATE;
|
|
25612
25630
|
exports.AceService = AceService;
|