@datorama/core 22.9.8-rc.1 → 22.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/datorama-core.umd.js +90 -88
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +3 -10
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +8 -3
- package/esm2015/lib/select/select.component.js +2 -7
- package/esm2015/lib/select/trigger-single/trigger-single.component.js +1 -1
- package/esm2015/lib/version.js +1 -1
- package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +10 -3
- package/esm5/lib/select/select.component.js +2 -7
- package/esm5/lib/select/trigger-single/trigger-single.component.js +1 -1
- package/esm5/lib/version.js +1 -1
- package/fesm2015/datorama-core.js +71 -71
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +90 -88
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/select/select.component.d.ts +0 -2
- package/lib/select/trigger-single/trigger-single.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7362,71 +7362,6 @@ function isTestEnv() {
|
|
|
7362
7362
|
return !!window.Cypress;
|
|
7363
7363
|
}
|
|
7364
7364
|
|
|
7365
|
-
/**
|
|
7366
|
-
* @license
|
|
7367
|
-
* Copyright Datorama. All Rights Reserved.
|
|
7368
|
-
*
|
|
7369
|
-
* Use of this source code is governed by an Apache License 2.0 license that can be
|
|
7370
|
-
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
7371
|
-
*/
|
|
7372
|
-
let DatoTriggerSingle = class DatoTriggerSingle {
|
|
7373
|
-
constructor(cdr) {
|
|
7374
|
-
this.cdr = cdr;
|
|
7375
|
-
this._placeholder = '';
|
|
7376
|
-
}
|
|
7377
|
-
set placeholder(value) {
|
|
7378
|
-
this._placeholder = value;
|
|
7379
|
-
this.cdr.detectChanges();
|
|
7380
|
-
}
|
|
7381
|
-
set context(value) {
|
|
7382
|
-
this._model = { $implicit: value };
|
|
7383
|
-
this.cdr.detectChanges();
|
|
7384
|
-
}
|
|
7385
|
-
get hidePlaceholder() {
|
|
7386
|
-
return !this._model || !this._model.$implicit;
|
|
7387
|
-
}
|
|
7388
|
-
ngOnInit() {
|
|
7389
|
-
this.cdr.detach();
|
|
7390
|
-
}
|
|
7391
|
-
get getLabel() {
|
|
7392
|
-
return this._model && this._model.$implicit && this._model.$implicit[this.labelKey];
|
|
7393
|
-
}
|
|
7394
|
-
};
|
|
7395
|
-
DatoTriggerSingle.ctorParameters = () => [
|
|
7396
|
-
{ type: ChangeDetectorRef }
|
|
7397
|
-
];
|
|
7398
|
-
__decorate([
|
|
7399
|
-
Input(),
|
|
7400
|
-
__metadata("design:type", TemplateRef)
|
|
7401
|
-
], DatoTriggerSingle.prototype, "loadingTemplate", void 0);
|
|
7402
|
-
__decorate([
|
|
7403
|
-
Input(),
|
|
7404
|
-
__metadata("design:type", DatoSelectActiveDirective)
|
|
7405
|
-
], DatoTriggerSingle.prototype, "active", void 0);
|
|
7406
|
-
__decorate([
|
|
7407
|
-
Input(),
|
|
7408
|
-
__metadata("design:type", Object),
|
|
7409
|
-
__metadata("design:paramtypes", [Object])
|
|
7410
|
-
], DatoTriggerSingle.prototype, "placeholder", null);
|
|
7411
|
-
__decorate([
|
|
7412
|
-
Input(),
|
|
7413
|
-
__metadata("design:type", String)
|
|
7414
|
-
], DatoTriggerSingle.prototype, "labelKey", void 0);
|
|
7415
|
-
__decorate([
|
|
7416
|
-
Input(),
|
|
7417
|
-
__metadata("design:type", Object),
|
|
7418
|
-
__metadata("design:paramtypes", [Object])
|
|
7419
|
-
], DatoTriggerSingle.prototype, "context", null);
|
|
7420
|
-
DatoTriggerSingle = __decorate([
|
|
7421
|
-
Component({
|
|
7422
|
-
selector: 'dato-trigger-single',
|
|
7423
|
-
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",
|
|
7424
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7425
|
-
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}"]
|
|
7426
|
-
}),
|
|
7427
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
7428
|
-
], DatoTriggerSingle);
|
|
7429
|
-
|
|
7430
7365
|
/**
|
|
7431
7366
|
* @license
|
|
7432
7367
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -8132,10 +8067,6 @@ DatoSelectComponent.ctorParameters = () => [
|
|
|
8132
8067
|
{ type: undefined, decorators: [{ type: Attribute, args: ['datoSize',] }] },
|
|
8133
8068
|
{ type: String, decorators: [{ type: Attribute, args: ['width',] }] }
|
|
8134
8069
|
];
|
|
8135
|
-
__decorate([
|
|
8136
|
-
ViewChild('datoTriggerSingle'),
|
|
8137
|
-
__metadata("design:type", DatoTriggerSingle)
|
|
8138
|
-
], DatoSelectComponent.prototype, "datoTriggerSingle", void 0);
|
|
8139
8070
|
__decorate([
|
|
8140
8071
|
ViewChild('dropdown'),
|
|
8141
8072
|
__metadata("design:type", TemplateRef)
|
|
@@ -8302,7 +8233,7 @@ __decorate([
|
|
|
8302
8233
|
DatoSelectComponent = __decorate([
|
|
8303
8234
|
Component({
|
|
8304
8235
|
selector: 'dato-select',
|
|
8305
|
-
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
|
|
8236
|
+
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",
|
|
8306
8237
|
preserveWhitespaces: false,
|
|
8307
8238
|
providers: [valueAccessor$3, DatoOverlay],
|
|
8308
8239
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -8318,6 +8249,71 @@ DatoSelectComponent = __decorate([
|
|
|
8318
8249
|
DatoOverlay, Object, Object, String])
|
|
8319
8250
|
], DatoSelectComponent);
|
|
8320
8251
|
|
|
8252
|
+
/**
|
|
8253
|
+
* @license
|
|
8254
|
+
* Copyright Datorama. All Rights Reserved.
|
|
8255
|
+
*
|
|
8256
|
+
* Use of this source code is governed by an Apache License 2.0 license that can be
|
|
8257
|
+
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
8258
|
+
*/
|
|
8259
|
+
let DatoTriggerSingle = class DatoTriggerSingle {
|
|
8260
|
+
constructor(cdr) {
|
|
8261
|
+
this.cdr = cdr;
|
|
8262
|
+
this._placeholder = '';
|
|
8263
|
+
}
|
|
8264
|
+
set placeholder(value) {
|
|
8265
|
+
this._placeholder = value;
|
|
8266
|
+
this.cdr.detectChanges();
|
|
8267
|
+
}
|
|
8268
|
+
set context(value) {
|
|
8269
|
+
this._model = { $implicit: value };
|
|
8270
|
+
this.cdr.detectChanges();
|
|
8271
|
+
}
|
|
8272
|
+
get hidePlaceholder() {
|
|
8273
|
+
return !this._model || !this._model.$implicit;
|
|
8274
|
+
}
|
|
8275
|
+
ngOnInit() {
|
|
8276
|
+
this.cdr.detach();
|
|
8277
|
+
}
|
|
8278
|
+
get getLabel() {
|
|
8279
|
+
return this._model && this._model.$implicit && this._model.$implicit[this.labelKey];
|
|
8280
|
+
}
|
|
8281
|
+
};
|
|
8282
|
+
DatoTriggerSingle.ctorParameters = () => [
|
|
8283
|
+
{ type: ChangeDetectorRef }
|
|
8284
|
+
];
|
|
8285
|
+
__decorate([
|
|
8286
|
+
Input(),
|
|
8287
|
+
__metadata("design:type", TemplateRef)
|
|
8288
|
+
], DatoTriggerSingle.prototype, "loadingTemplate", void 0);
|
|
8289
|
+
__decorate([
|
|
8290
|
+
Input(),
|
|
8291
|
+
__metadata("design:type", DatoSelectActiveDirective)
|
|
8292
|
+
], DatoTriggerSingle.prototype, "active", void 0);
|
|
8293
|
+
__decorate([
|
|
8294
|
+
Input(),
|
|
8295
|
+
__metadata("design:type", Object),
|
|
8296
|
+
__metadata("design:paramtypes", [Object])
|
|
8297
|
+
], DatoTriggerSingle.prototype, "placeholder", null);
|
|
8298
|
+
__decorate([
|
|
8299
|
+
Input(),
|
|
8300
|
+
__metadata("design:type", String)
|
|
8301
|
+
], DatoTriggerSingle.prototype, "labelKey", void 0);
|
|
8302
|
+
__decorate([
|
|
8303
|
+
Input(),
|
|
8304
|
+
__metadata("design:type", Object),
|
|
8305
|
+
__metadata("design:paramtypes", [Object])
|
|
8306
|
+
], DatoTriggerSingle.prototype, "context", null);
|
|
8307
|
+
DatoTriggerSingle = __decorate([
|
|
8308
|
+
Component({
|
|
8309
|
+
selector: 'dato-trigger-single',
|
|
8310
|
+
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",
|
|
8311
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8312
|
+
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}"]
|
|
8313
|
+
}),
|
|
8314
|
+
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
8315
|
+
], DatoTriggerSingle);
|
|
8316
|
+
|
|
8321
8317
|
/**
|
|
8322
8318
|
* @license
|
|
8323
8319
|
* Copyright Datorama. All Rights Reserved.
|
|
@@ -14514,7 +14510,11 @@ let DatoGridPaginationV2Component = class DatoGridPaginationV2Component {
|
|
|
14514
14510
|
}
|
|
14515
14511
|
ngOnInit() {
|
|
14516
14512
|
this.gridQuery
|
|
14517
|
-
.waitForGrid(() =>
|
|
14513
|
+
.waitForGrid(() => combineLatest([
|
|
14514
|
+
this.gridQuery.gridRef.filterChanged,
|
|
14515
|
+
this.gridQuery.gridRef.rowGroupOpened.pipe(startWith(true)),
|
|
14516
|
+
this.gridQuery.gridRef.expandOrCollapseAll.pipe(startWith(true))
|
|
14517
|
+
]))
|
|
14518
14518
|
.pipe(untilDestroyed(this))
|
|
14519
14519
|
.subscribe(() => {
|
|
14520
14520
|
this.gridApi.paginationGoToPage(0);
|