primeng 7.1.0-rc.1 → 7.1.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/CHANGELOG.md +137 -1
- package/components/accordion/accordion.js +1 -1
- package/components/accordion/accordion.js.map +1 -1
- package/components/accordion/accordion.metadata.json +1 -1
- package/components/autocomplete/autocomplete.d.ts +2 -2
- package/components/autocomplete/autocomplete.js +6 -4
- package/components/autocomplete/autocomplete.js.map +1 -1
- package/components/autocomplete/autocomplete.metadata.json +1 -1
- package/components/calendar/calendar.d.ts +11 -4
- package/components/calendar/calendar.js +84 -31
- package/components/calendar/calendar.js.map +1 -1
- package/components/calendar/calendar.metadata.json +1 -1
- package/components/checkbox/checkbox.d.ts +1 -0
- package/components/checkbox/checkbox.js +6 -1
- package/components/checkbox/checkbox.js.map +1 -1
- package/components/checkbox/checkbox.metadata.json +1 -1
- package/components/common/confirmation.d.ts +1 -1
- package/components/confirmdialog/confirmdialog.js +4 -4
- package/components/confirmdialog/confirmdialog.js.map +1 -1
- package/components/confirmdialog/confirmdialog.metadata.json +1 -1
- package/components/contextmenu/contextmenu.js +3 -3
- package/components/contextmenu/contextmenu.js.map +1 -1
- package/components/contextmenu/contextmenu.metadata.json +1 -1
- package/components/dataview/dataview.d.ts +2 -0
- package/components/dataview/dataview.js +13 -2
- package/components/dataview/dataview.js.map +1 -1
- package/components/dataview/dataview.metadata.json +1 -1
- package/components/dialog/dialog.d.ts +6 -0
- package/components/dialog/dialog.js +65 -4
- package/components/dialog/dialog.js.map +1 -1
- package/components/dialog/dialog.metadata.json +1 -1
- package/components/dom/domhandler.d.ts +1 -1
- package/components/dom/domhandler.js +22 -13
- package/components/dom/domhandler.js.map +1 -1
- package/components/dom/domhandler.metadata.json +1 -1
- package/components/dropdown/dropdown.d.ts +3 -3
- package/components/dropdown/dropdown.js +19 -9
- package/components/dropdown/dropdown.js.map +1 -1
- package/components/dropdown/dropdown.metadata.json +1 -1
- package/components/dynamicdialog/dynamicdialog.js +3 -3
- package/components/dynamicdialog/dynamicdialog.js.map +1 -1
- package/components/dynamicdialog/dynamicdialog.metadata.json +1 -1
- package/components/fullcalendar/fullcalendar.js +2 -2
- package/components/fullcalendar/fullcalendar.js.map +1 -1
- package/components/galleria/galleria.js +3 -1
- package/components/galleria/galleria.js.map +1 -1
- package/components/galleria/galleria.metadata.json +1 -1
- package/components/gmap/gmap.d.ts +1 -0
- package/components/gmap/gmap.js +14 -0
- package/components/gmap/gmap.js.map +1 -1
- package/components/gmap/gmap.metadata.json +1 -1
- package/components/inputmask/inputmask.d.ts +1 -1
- package/components/inputmask/inputmask.js +2 -2
- package/components/inputmask/inputmask.js.map +1 -1
- package/components/inputtextarea/inputtextarea.js +0 -1
- package/components/inputtextarea/inputtextarea.js.map +1 -1
- package/components/inputtextarea/inputtextarea.metadata.json +1 -1
- package/components/listbox/listbox.d.ts +1 -0
- package/components/listbox/listbox.js +9 -0
- package/components/listbox/listbox.js.map +1 -1
- package/components/listbox/listbox.metadata.json +1 -1
- package/components/menu/menu.js +1 -1
- package/components/menu/menu.js.map +1 -1
- package/components/menu/menu.metadata.json +1 -1
- package/components/menubar/menubar.js +2 -2
- package/components/menubar/menubar.js.map +1 -1
- package/components/multiselect/multiselect.d.ts +1 -0
- package/components/multiselect/multiselect.js +14 -7
- package/components/multiselect/multiselect.js.map +1 -1
- package/components/multiselect/multiselect.metadata.json +1 -1
- package/components/orderlist/orderlist.js +1 -1
- package/components/orderlist/orderlist.js.map +1 -1
- package/components/paginator/paginator.d.ts +7 -1
- package/components/paginator/paginator.js +30 -3
- package/components/paginator/paginator.js.map +1 -1
- package/components/paginator/paginator.metadata.json +1 -1
- package/components/panelmenu/panelmenu.d.ts +5 -0
- package/components/panelmenu/panelmenu.js +11 -7
- package/components/panelmenu/panelmenu.js.map +1 -1
- package/components/panelmenu/panelmenu.metadata.json +1 -1
- package/components/picklist/picklist.js +1 -1
- package/components/picklist/picklist.js.map +1 -1
- package/components/radiobutton/radiobutton.d.ts +5 -3
- package/components/radiobutton/radiobutton.js +19 -7
- package/components/radiobutton/radiobutton.js.map +1 -1
- package/components/radiobutton/radiobutton.metadata.json +1 -1
- package/components/slider/slider.js +9 -0
- package/components/slider/slider.js.map +1 -1
- package/components/slider/slider.metadata.json +1 -1
- package/components/spinner/spinner.d.ts +4 -4
- package/components/spinner/spinner.js +23 -14
- package/components/spinner/spinner.js.map +1 -1
- package/components/spinner/spinner.metadata.json +1 -1
- package/components/table/table.d.ts +15 -4
- package/components/table/table.js +126 -40
- package/components/table/table.js.map +1 -1
- package/components/table/table.metadata.json +1 -1
- package/components/tieredmenu/tieredmenu.d.ts +3 -2
- package/components/tieredmenu/tieredmenu.js +4 -2
- package/components/tieredmenu/tieredmenu.js.map +1 -1
- package/components/tieredmenu/tieredmenu.metadata.json +1 -1
- package/components/tree/tree.js +8 -2
- package/components/tree/tree.js.map +1 -1
- package/components/tree/tree.metadata.json +1 -1
- package/components/treetable/treetable.d.ts +18 -1
- package/components/treetable/treetable.js +128 -8
- package/components/treetable/treetable.js.map +1 -1
- package/components/treetable/treetable.metadata.json +1 -1
- package/package.json +28 -25
- package/resources/components/calendar/calendar.css +1 -0
- package/resources/components/dialog/dialog.css +2 -4
- package/resources/components/dropdown/dropdown.css +1 -0
- package/resources/components/fileupload/fileupload.css +1 -0
- package/resources/components/galleria/galleria.css +1 -2
- package/resources/components/radiobutton/radiobutton.css +1 -1
- package/resources/primeng.css +562 -562
- package/resources/primeng.min.css +1 -1
- package/resources/themes/luna-amber/theme.css +77 -8
- package/resources/themes/luna-blue/theme.css +77 -8
- package/resources/themes/luna-green/theme.css +77 -8
- package/resources/themes/luna-pink/theme.css +77 -8
- package/resources/themes/nova-colored/theme.css +77 -8
- package/resources/themes/nova-dark/theme.css +77 -8
- package/resources/themes/nova-light/theme.css +77 -8
- package/resources/themes/rhea/theme.css +77 -8
@@ -1 +1 @@
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"SLIDER_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":6,"character":11},"useExisting":{"__symbolic":"reference","name":"Slider"},"multi":true},"Slider":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"p-slider","template":"\n <div [ngStyle]=\"style\" [class]=\"styleClass\" [ngClass]=\"{'ui-slider ui-widget ui-widget-content ui-corner-all':true,'ui-state-disabled':disabled,\n 'ui-slider-horizontal':orientation == 'horizontal','ui-slider-vertical':orientation == 'vertical','ui-slider-animate':animate}\"\n (click)=\"onBarClick($event)\">\n <span *ngIf=\"range && orientation == 'horizontal'\" class=\"ui-slider-range ui-widget-header ui-corner-all\" [ngStyle]=\"{'left':handleValues[0] + '%',width: (handleValues[1] - handleValues[0] + '%')}\"></span>\n <span *ngIf=\"range && orientation == 'vertical'\" class=\"ui-slider-range ui-widget-header ui-corner-all\" [ngStyle]=\"{'bottom':handleValues[0] + '%',height: (handleValues[1] - handleValues[0] + '%')}\"></span>\n <span *ngIf=\"!range && orientation=='vertical'\" class=\"ui-slider-range ui-slider-range-min ui-widget-header ui-corner-all\" [ngStyle]=\"{'height': handleValue + '%'}\"></span>\n <span *ngIf=\"!range && orientation=='horizontal'\" class=\"ui-slider-range ui-slider-range-min ui-widget-header ui-corner-all\" [ngStyle]=\"{'width': handleValue + '%'}\"></span>\n <span *ngIf=\"!range\" class=\"ui-slider-handle ui-state-default ui-corner-all ui-clickable\" (mousedown)=\"onMouseDown($event)\" (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\"\n [style.transition]=\"dragging ? 'none': null\" [ngStyle]=\"{'left': orientation == 'horizontal' ? handleValue + '%' : null,'bottom': orientation == 'vertical' ? handleValue + '%' : null}\"></span>\n <span *ngIf=\"range\" (mousedown)=\"onMouseDown($event,0)\" (touchstart)=\"onTouchStart($event,0)\" (touchmove)=\"onTouchMove($event,0)\" (touchend)=\"onTouchEnd($event)\" [style.transition]=\"dragging ? 'none': null\" class=\"ui-slider-handle ui-state-default ui-corner-all ui-clickable\" \n [ngStyle]=\"{'left': rangeStartLeft, 'bottom': rangeStartBottom}\" [ngClass]=\"{'ui-slider-handle-active':handleIndex==0}\"></span>\n <span *ngIf=\"range\" (mousedown)=\"onMouseDown($event,1)\" (touchstart)=\"onTouchStart($event,1)\" (touchmove)=\"onTouchMove($event,1)\" (touchend)=\"onTouchEnd($event)\" [style.transition]=\"dragging ? 'none': null\" class=\"ui-slider-handle ui-state-default ui-corner-all ui-clickable\" \n [ngStyle]=\"{'left': rangeEndLeft, 'bottom': rangeEndBottom}\" [ngClass]=\"{'ui-slider-handle-active':handleIndex==1}\"></span>\n </div>\n ","providers":[{"__symbolic":"reference","name":"SLIDER_VALUE_ACCESSOR"}]}]}],"members":{"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":5}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":5}}]}],"step":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"range":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":5}}]}],"styleClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":5}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":5}}]}],"onSlideEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":53,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":91,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":91,"character":56},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":91,"character":83},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":91,"character":102}]}],"onMouseDown":[{"__symbolic":"method"}],"onTouchStart":[{"__symbolic":"method"}],"onTouchMove":[{"__symbolic":"method"}],"onTouchEnd":[{"__symbolic":"method"}],"onBarClick":[{"__symbolic":"method"}],"handleChange":[{"__symbolic":"method"}],"bindDragListeners":[{"__symbolic":"method"}],"unbindDragListeners":[{"__symbolic":"method"}],"setValueFromHandle":[{"__symbolic":"method"}],"handleStepChange":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"isVertical":[{"__symbolic":"method"}],"updateDomData":[{"__symbolic":"method"}],"calculateHandleValue":[{"__symbolic":"method"}],"updateHandleValue":[{"__symbolic":"method"}],"updateValue":[{"__symbolic":"method"}],"getValueFromHandle":[{"__symbolic":"method"}],"getDecimalsCount":[{"__symbolic":"method"}],"getNormalizedValue":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"SliderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"SLIDER_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":6,"character":11},"useExisting":{"__symbolic":"reference","name":"Slider"},"multi":true},"Slider":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"p-slider","template":"\n <div [ngStyle]=\"style\" [class]=\"styleClass\" [ngClass]=\"{'ui-slider ui-widget ui-widget-content ui-corner-all':true,'ui-state-disabled':disabled,\n 'ui-slider-horizontal':orientation == 'horizontal','ui-slider-vertical':orientation == 'vertical','ui-slider-animate':animate}\"\n (click)=\"onBarClick($event)\">\n <span *ngIf=\"range && orientation == 'horizontal'\" class=\"ui-slider-range ui-widget-header ui-corner-all\" [ngStyle]=\"{'left':handleValues[0] + '%',width: (handleValues[1] - handleValues[0] + '%')}\"></span>\n <span *ngIf=\"range && orientation == 'vertical'\" class=\"ui-slider-range ui-widget-header ui-corner-all\" [ngStyle]=\"{'bottom':handleValues[0] + '%',height: (handleValues[1] - handleValues[0] + '%')}\"></span>\n <span *ngIf=\"!range && orientation=='vertical'\" class=\"ui-slider-range ui-slider-range-min ui-widget-header ui-corner-all\" [ngStyle]=\"{'height': handleValue + '%'}\"></span>\n <span *ngIf=\"!range && orientation=='horizontal'\" class=\"ui-slider-range ui-slider-range-min ui-widget-header ui-corner-all\" [ngStyle]=\"{'width': handleValue + '%'}\"></span>\n <span *ngIf=\"!range\" class=\"ui-slider-handle ui-state-default ui-corner-all ui-clickable\" (mousedown)=\"onMouseDown($event)\" (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\"\n [style.transition]=\"dragging ? 'none': null\" [ngStyle]=\"{'left': orientation == 'horizontal' ? handleValue + '%' : null,'bottom': orientation == 'vertical' ? handleValue + '%' : null}\"></span>\n <span *ngIf=\"range\" (mousedown)=\"onMouseDown($event,0)\" (touchstart)=\"onTouchStart($event,0)\" (touchmove)=\"onTouchMove($event,0)\" (touchend)=\"onTouchEnd($event)\" [style.transition]=\"dragging ? 'none': null\" class=\"ui-slider-handle ui-state-default ui-corner-all ui-clickable\" \n [ngStyle]=\"{'left': rangeStartLeft, 'bottom': rangeStartBottom}\" [ngClass]=\"{'ui-slider-handle-active':handleIndex==0}\"></span>\n <span *ngIf=\"range\" (mousedown)=\"onMouseDown($event,1)\" (touchstart)=\"onTouchStart($event,1)\" (touchmove)=\"onTouchMove($event,1)\" (touchend)=\"onTouchEnd($event)\" [style.transition]=\"dragging ? 'none': null\" class=\"ui-slider-handle ui-state-default ui-corner-all ui-clickable\" \n [ngStyle]=\"{'left': rangeEndLeft, 'bottom': rangeEndBottom}\" [ngClass]=\"{'ui-slider-handle-active':handleIndex==1}\"></span>\n </div>\n ","providers":[{"__symbolic":"reference","name":"SLIDER_VALUE_ACCESSOR"}]}]}],"members":{"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":5}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":5}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":5}}]}],"step":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"range":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":5}}]}],"styleClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":5}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":5}}]}],"onSlideEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":53,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":91,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":91,"character":56},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":91,"character":83},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":91,"character":102}]}],"onMouseDown":[{"__symbolic":"method"}],"onTouchStart":[{"__symbolic":"method"}],"onTouchMove":[{"__symbolic":"method"}],"onTouchEnd":[{"__symbolic":"method"}],"onBarClick":[{"__symbolic":"method"}],"handleChange":[{"__symbolic":"method"}],"bindDragListeners":[{"__symbolic":"method"}],"unbindDragListeners":[{"__symbolic":"method"}],"setValueFromHandle":[{"__symbolic":"method"}],"handleStepChange":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"isVertical":[{"__symbolic":"method"}],"updateDomData":[{"__symbolic":"method"}],"calculateHandleValue":[{"__symbolic":"method"}],"updateHandleValue":[{"__symbolic":"method"}],"updateValue":[{"__symbolic":"method"}],"getValueFromHandle":[{"__symbolic":"method"}],"getDecimalsCount":[{"__symbolic":"method"}],"getNormalizedValue":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"SliderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":401,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":402,"character":14}],"exports":[{"__symbolic":"reference","name":"Slider"}],"declarations":[{"__symbolic":"reference","name":"Slider"}]}]}]}}}]
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ElementRef,
|
1
|
+
import { ElementRef, AfterViewInit, EventEmitter } from '@angular/core';
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
3
3
|
export declare const SPINNER_VALUE_ACCESSOR: any;
|
4
|
-
export declare class Spinner implements
|
4
|
+
export declare class Spinner implements AfterViewInit, ControlValueAccessor {
|
5
5
|
el: ElementRef;
|
6
6
|
onChange: EventEmitter<any>;
|
7
7
|
onFocus: EventEmitter<any>;
|
@@ -16,7 +16,6 @@ export declare class Spinner implements OnInit, ControlValueAccessor {
|
|
16
16
|
disabled: boolean;
|
17
17
|
readonly: boolean;
|
18
18
|
tabindex: number;
|
19
|
-
type: string;
|
20
19
|
required: boolean;
|
21
20
|
name: string;
|
22
21
|
inputStyle: any;
|
@@ -35,7 +34,8 @@ export declare class Spinner implements OnInit, ControlValueAccessor {
|
|
35
34
|
decimalSeparator: string;
|
36
35
|
thousandSeparator: string;
|
37
36
|
formatInput: boolean;
|
38
|
-
|
37
|
+
type: string;
|
38
|
+
ngAfterViewInit(): void;
|
39
39
|
repeat(event: Event, interval: number, dir: number): void;
|
40
40
|
spin(event: Event, dir: number): void;
|
41
41
|
toFixed(value: number, precision: number): string;
|
@@ -25,7 +25,6 @@ var Spinner = /** @class */ (function () {
|
|
25
25
|
this.onFocus = new core_1.EventEmitter();
|
26
26
|
this.onBlur = new core_1.EventEmitter();
|
27
27
|
this.step = 1;
|
28
|
-
this.type = 'text';
|
29
28
|
this.onModelChange = function () { };
|
30
29
|
this.onModelTouched = function () { };
|
31
30
|
this.keyPattern = /[0-9\+\-]/;
|
@@ -33,27 +32,37 @@ var Spinner = /** @class */ (function () {
|
|
33
32
|
}
|
34
33
|
Object.defineProperty(Spinner.prototype, "decimalSeparator", {
|
35
34
|
set: function (value) {
|
36
|
-
console.warn("decimalSeparator property is removed
|
35
|
+
console.warn("decimalSeparator property is removed as Spinner does not format the value anymore.");
|
37
36
|
},
|
38
37
|
enumerable: true,
|
39
38
|
configurable: true
|
40
39
|
});
|
41
40
|
Object.defineProperty(Spinner.prototype, "thousandSeparator", {
|
42
41
|
set: function (value) {
|
43
|
-
console.warn("thousandSeparator property is removed
|
42
|
+
console.warn("thousandSeparator property is removed as Spinner does not format the value anymore.");
|
44
43
|
},
|
45
44
|
enumerable: true,
|
46
45
|
configurable: true
|
47
46
|
});
|
48
47
|
Object.defineProperty(Spinner.prototype, "formatInput", {
|
49
48
|
set: function (value) {
|
50
|
-
console.warn("formatInput property is removed
|
49
|
+
console.warn("formatInput property is removed as Spinner does not format the value anymore.");
|
51
50
|
},
|
52
51
|
enumerable: true,
|
53
52
|
configurable: true
|
54
53
|
});
|
55
|
-
Spinner.prototype
|
56
|
-
|
54
|
+
Object.defineProperty(Spinner.prototype, "type", {
|
55
|
+
set: function (value) {
|
56
|
+
console.warn("type property is removed as Spinner does not format the value anymore");
|
57
|
+
},
|
58
|
+
enumerable: true,
|
59
|
+
configurable: true
|
60
|
+
});
|
61
|
+
Spinner.prototype.ngAfterViewInit = function () {
|
62
|
+
if (this.value && this.value.toString().indexOf('.') > 0) {
|
63
|
+
this.precision = this.value.toString().split(/[.]/)[1].length;
|
64
|
+
}
|
65
|
+
else if (this.step % 1 !== 0) {
|
57
66
|
// If step is not an integer then extract the length of the decimal part
|
58
67
|
this.precision = this.step.toString().split(/[,]|[.]/)[1].length;
|
59
68
|
}
|
@@ -144,12 +153,11 @@ var Spinner = /** @class */ (function () {
|
|
144
153
|
this.onChange.emit(event);
|
145
154
|
};
|
146
155
|
Spinner.prototype.onInput = function (event) {
|
147
|
-
this.value = event.target.value;
|
156
|
+
this.value = this.parseValue(event.target.value);
|
148
157
|
this.onModelChange(this.value);
|
158
|
+
this.updateFilledState();
|
149
159
|
};
|
150
160
|
Spinner.prototype.onInputBlur = function (event) {
|
151
|
-
this.value = this.parseValue(event.target.value);
|
152
|
-
this.onModelChange(this.value);
|
153
161
|
this.focus = false;
|
154
162
|
this.onModelTouched();
|
155
163
|
this.onBlur.emit(event);
|
@@ -255,10 +263,6 @@ var Spinner = /** @class */ (function () {
|
|
255
263
|
core_1.Input(),
|
256
264
|
__metadata("design:type", Number)
|
257
265
|
], Spinner.prototype, "tabindex", void 0);
|
258
|
-
__decorate([
|
259
|
-
core_1.Input(),
|
260
|
-
__metadata("design:type", String)
|
261
|
-
], Spinner.prototype, "type", void 0);
|
262
266
|
__decorate([
|
263
267
|
core_1.Input(),
|
264
268
|
__metadata("design:type", Boolean)
|
@@ -294,10 +298,15 @@ var Spinner = /** @class */ (function () {
|
|
294
298
|
__metadata("design:type", Boolean),
|
295
299
|
__metadata("design:paramtypes", [Boolean])
|
296
300
|
], Spinner.prototype, "formatInput", null);
|
301
|
+
__decorate([
|
302
|
+
core_1.Input(),
|
303
|
+
__metadata("design:type", String),
|
304
|
+
__metadata("design:paramtypes", [String])
|
305
|
+
], Spinner.prototype, "type", null);
|
297
306
|
Spinner = __decorate([
|
298
307
|
core_1.Component({
|
299
308
|
selector: 'p-spinner',
|
300
|
-
template: "\n <span class=\"ui-spinner ui-widget ui-corner-all\">\n <input #inputfield
|
309
|
+
template: "\n <span class=\"ui-spinner ui-widget ui-corner-all\">\n <input #inputfield type=\"text\" [attr.id]=\"inputId\" [value]=\"value === 0 ? '0' : value||null\" [attr.name]=\"name\"\n [attr.size]=\"size\" [attr.maxlength]=\"maxlength\" [attr.tabindex]=\"tabindex\" [attr.placeholder]=\"placeholder\" [disabled]=\"disabled\" [readonly]=\"readonly\" [attr.required]=\"required\"\n (keydown)=\"onInputKeydown($event)\" (blur)=\"onInputBlur($event)\" (input)=\"onInput($event)\" (change)=\"onInputChange($event)\" (focus)=\"onInputFocus($event)\"\n [ngStyle]=\"inputStyle\" [class]=\"inputStyleClass\" [ngClass]=\"'ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all'\">\n <button type=\"button\" [ngClass]=\"{'ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default':true,'ui-state-disabled':disabled}\" [disabled]=\"disabled||readonly\" [attr.tabindex]=\"tabindex\" [attr.readonly]=\"readonly\"\n (mouseleave)=\"onUpButtonMouseleave($event)\" (mousedown)=\"onUpButtonMousedown($event)\" (mouseup)=\"onUpButtonMouseup($event)\">\n <span class=\"ui-spinner-button-icon pi pi-caret-up ui-clickable\"></span>\n </button>\n <button type=\"button\" [ngClass]=\"{'ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default':true,'ui-state-disabled':disabled}\" [disabled]=\"disabled||readonly\" [attr.tabindex]=\"tabindex\" [attr.readonly]=\"readonly\"\n (mouseleave)=\"onDownButtonMouseleave($event)\" (mousedown)=\"onDownButtonMousedown($event)\" (mouseup)=\"onDownButtonMouseup($event)\">\n <span class=\"ui-spinner-button-icon pi pi-caret-down ui-clickable\"></span>\n </button>\n </span>\n ",
|
301
310
|
host: {
|
302
311
|
'[class.ui-inputwrapper-filled]': 'filled',
|
303
312
|
'[class.ui-inputwrapper-focus]': 'focus'
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/app/components/spinner/spinner.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/app/components/spinner/spinner.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAyH;AACzH,0CAA6C;AAC7C,oDAAuD;AACvD,wCAAuE;AAE1D,QAAA,sBAAsB,GAAQ;IACvC,OAAO,EAAE,yBAAiB;IAC1B,WAAW,EAAE,iBAAU,CAAC,cAAM,OAAA,OAAO,E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;;oDAAyB;IAoBR;QAAxB,gBAAS,CAAC,YAAY,CAAC;kCAAsB,iBAAU;wDAAC;IAIhD;QAAR,YAAK,EAAE;;;mDAEP;IAEQ;QAAR,YAAK,EAAE;;;oDAEP;IAEQ;QAAR,YAAK,EAAE;;;8CAEP;IAEQ;QAAR,YAAK,EAAE;;;uCAEP;IAxEQ,OAAO;QAxBnB,gBAAS,CAAC;YACP,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,0xDAeT;YACD,IAAI,EAAE;gBACF,gCAAgC,EAAE,QAAQ;gBAC1C,+BAA+B,EAAE,OAAO;aAC3C;YACD,SAAS,EAAE,CAAC,8BAAsB,CAAC;SACtC,CAAC;yCAyDyB,iBAAU;OAxDxB,OAAO,CAmQnB;IAAD,cAAC;CAAA,AAnQD,IAmQC;AAnQY,0BAAO;AA2QpB;IAAA;IAA6B,CAAC;IAAjB,aAAa;QALzB,eAAQ,CAAC;YACN,OAAO,EAAE,CAAC,qBAAY,EAAC,2BAAe,CAAC;YACvC,OAAO,EAAE,CAAC,OAAO,CAAC;YAClB,YAAY,EAAE,CAAC,OAAO,CAAC;SAC1B,CAAC;OACW,aAAa,CAAI;IAAD,oBAAC;CAAA,AAA9B,IAA8B;AAAjB,sCAAa"}
|
@@ -1 +1 @@
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"SPINNER_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":6,"character":13},"useExisting":{"__symbolic":"reference","name":"Spinner"},"multi":true},"Spinner":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"p-spinner","template":"\n <span class=\"ui-spinner ui-widget ui-corner-all\">\n <input #inputfield
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"SPINNER_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":6,"character":13},"useExisting":{"__symbolic":"reference","name":"Spinner"},"multi":true},"Spinner":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"p-spinner","template":"\n <span class=\"ui-spinner ui-widget ui-corner-all\">\n <input #inputfield type=\"text\" [attr.id]=\"inputId\" [value]=\"value === 0 ? '0' : value||null\" [attr.name]=\"name\"\n [attr.size]=\"size\" [attr.maxlength]=\"maxlength\" [attr.tabindex]=\"tabindex\" [attr.placeholder]=\"placeholder\" [disabled]=\"disabled\" [readonly]=\"readonly\" [attr.required]=\"required\"\n (keydown)=\"onInputKeydown($event)\" (blur)=\"onInputBlur($event)\" (input)=\"onInput($event)\" (change)=\"onInputChange($event)\" (focus)=\"onInputFocus($event)\"\n [ngStyle]=\"inputStyle\" [class]=\"inputStyleClass\" [ngClass]=\"'ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all'\">\n <button type=\"button\" [ngClass]=\"{'ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default':true,'ui-state-disabled':disabled}\" [disabled]=\"disabled||readonly\" [attr.tabindex]=\"tabindex\" [attr.readonly]=\"readonly\"\n (mouseleave)=\"onUpButtonMouseleave($event)\" (mousedown)=\"onUpButtonMousedown($event)\" (mouseup)=\"onUpButtonMouseup($event)\">\n <span class=\"ui-spinner-button-icon pi pi-caret-up ui-clickable\"></span>\n </button>\n <button type=\"button\" [ngClass]=\"{'ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default':true,'ui-state-disabled':disabled}\" [disabled]=\"disabled||readonly\" [attr.tabindex]=\"tabindex\" [attr.readonly]=\"readonly\"\n (mouseleave)=\"onDownButtonMouseleave($event)\" (mousedown)=\"onDownButtonMousedown($event)\" (mouseup)=\"onDownButtonMouseup($event)\">\n <span class=\"ui-spinner-button-icon pi pi-caret-down ui-clickable\"></span>\n </button>\n </span>\n ","host":{"[class.ui-inputwrapper-filled]":"filled","[class.ui-inputwrapper-focus]":"focus","$quoted$":["[class.ui-inputwrapper-filled]","[class.ui-inputwrapper-focus]"]},"providers":[{"__symbolic":"reference","name":"SPINNER_VALUE_ACCESSOR"}]}]}],"members":{"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":5}}]}],"onFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":5}}]}],"onBlur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":5}}]}],"step":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":5}}]}],"maxlength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":5}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":5}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":5}}]}],"inputId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":5}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":5}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":5}}]}],"tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":5}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":5}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":65,"character":5}}]}],"inputStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":67,"character":5}}]}],"inputStyleClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":69,"character":5}}]}],"inputfieldViewChild":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":89,"character":5},"arguments":["inputfield"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":91,"character":27}]}],"decimalSeparator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":93,"character":5}}]}],"thousandSeparator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":97,"character":5}}]}],"formatInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":101,"character":5}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":105,"character":5}}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"repeat":[{"__symbolic":"method"}],"spin":[{"__symbolic":"method"}],"toFixed":[{"__symbolic":"method"}],"onUpButtonMousedown":[{"__symbolic":"method"}],"onUpButtonMouseup":[{"__symbolic":"method"}],"onUpButtonMouseleave":[{"__symbolic":"method"}],"onDownButtonMousedown":[{"__symbolic":"method"}],"onDownButtonMouseup":[{"__symbolic":"method"}],"onDownButtonMouseleave":[{"__symbolic":"method"}],"onInputKeydown":[{"__symbolic":"method"}],"onInputChange":[{"__symbolic":"method"}],"onInput":[{"__symbolic":"method"}],"onInputBlur":[{"__symbolic":"method"}],"onInputFocus":[{"__symbolic":"method"}],"parseValue":[{"__symbolic":"method"}],"clearTimer":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"updateFilledState":[{"__symbolic":"method"}]}},"SpinnerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":297,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":298,"character":14},{"__symbolic":"reference","module":"../inputtext/inputtext","name":"InputTextModule","line":298,"character":27}],"exports":[{"__symbolic":"reference","name":"Spinner"}],"declarations":[{"__symbolic":"reference","name":"Spinner"}]}]}]}}}]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OnInit, AfterViewInit, AfterViewChecked, AfterContentInit, EventEmitter, ElementRef, TemplateRef, QueryList, NgZone } from '@angular/core';
|
1
|
+
import { OnInit, AfterViewInit, AfterViewChecked, AfterContentInit, EventEmitter, ElementRef, TemplateRef, QueryList, NgZone, ChangeDetectorRef } from '@angular/core';
|
2
2
|
import { Column, PrimeTemplate } from '../common/shared';
|
3
3
|
import { SortMeta } from '../common/sortmeta';
|
4
4
|
import { FilterMetadata } from '../common/filtermetadata';
|
@@ -29,6 +29,7 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
29
29
|
el: ElementRef;
|
30
30
|
zone: NgZone;
|
31
31
|
tableService: TableService;
|
32
|
+
cd: ChangeDetectorRef;
|
32
33
|
frozenColumns: any[];
|
33
34
|
frozenValue: any[];
|
34
35
|
style: any;
|
@@ -37,12 +38,13 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
37
38
|
tableStyleClass: string;
|
38
39
|
paginator: boolean;
|
39
40
|
rows: number;
|
40
|
-
first: number;
|
41
41
|
pageLinks: number;
|
42
42
|
rowsPerPageOptions: number[];
|
43
43
|
alwaysShowPaginator: boolean;
|
44
44
|
paginatorPosition: string;
|
45
45
|
paginatorDropdownAppendTo: any;
|
46
|
+
currentPageReportTemplate: string;
|
47
|
+
showCurrentPageReport: boolean;
|
46
48
|
defaultSortOrder: number;
|
47
49
|
sortMode: string;
|
48
50
|
resetPageOnSort: boolean;
|
@@ -109,6 +111,9 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
109
111
|
onEditCancel: EventEmitter<any>;
|
110
112
|
onHeaderCheckboxToggle: EventEmitter<any>;
|
111
113
|
sortFunction: EventEmitter<any>;
|
114
|
+
firstChange: EventEmitter<number>;
|
115
|
+
onStateSave: EventEmitter<any>;
|
116
|
+
onStateRestore: EventEmitter<any>;
|
112
117
|
containerViewChild: ElementRef;
|
113
118
|
resizeHelperViewChild: ElementRef;
|
114
119
|
reorderIndicatorUpViewChild: ElementRef;
|
@@ -118,6 +123,7 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
118
123
|
_value: any[];
|
119
124
|
_columns: any[];
|
120
125
|
_totalRecords: number;
|
126
|
+
_first: number;
|
121
127
|
filteredValue: any[];
|
122
128
|
headerTemplate: TemplateRef<any>;
|
123
129
|
bodyTemplate: TemplateRef<any>;
|
@@ -145,6 +151,8 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
145
151
|
rowDragging: boolean;
|
146
152
|
dropPosition: number;
|
147
153
|
editingCell: Element;
|
154
|
+
editingCellData: any;
|
155
|
+
editingCellField: any;
|
148
156
|
editingCellClick: boolean;
|
149
157
|
documentEditListener: any;
|
150
158
|
_multiSortMeta: SortMeta[];
|
@@ -165,12 +173,13 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
165
173
|
columnOrderStateRestored: boolean;
|
166
174
|
columnWidthsState: string;
|
167
175
|
tableWidthState: string;
|
168
|
-
constructor(el: ElementRef, zone: NgZone, tableService: TableService);
|
176
|
+
constructor(el: ElementRef, zone: NgZone, tableService: TableService, cd: ChangeDetectorRef);
|
169
177
|
ngOnInit(): void;
|
170
178
|
ngAfterContentInit(): void;
|
171
179
|
ngAfterViewInit(): void;
|
172
180
|
value: any[];
|
173
181
|
columns: any[];
|
182
|
+
first: number;
|
174
183
|
totalRecords: number;
|
175
184
|
sortField: string;
|
176
185
|
sortOrder: number;
|
@@ -215,7 +224,7 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
215
224
|
createLazyLoadMetadata(): any;
|
216
225
|
reset(): void;
|
217
226
|
exportCSV(options?: any): void;
|
218
|
-
updateEditingCell(cell: any): void;
|
227
|
+
updateEditingCell(cell: any, data: any, field: any): void;
|
219
228
|
isEditingCellValid(): boolean;
|
220
229
|
bindDocumentEditListener(): void;
|
221
230
|
unbindDocumentEditListener(): void;
|
@@ -230,6 +239,7 @@ export declare class Table implements OnInit, AfterViewInit, AfterContentInit, B
|
|
230
239
|
onColumnResizeBegin(event: any): void;
|
231
240
|
onColumnResize(event: any): void;
|
232
241
|
onColumnResizeEnd(event: any, column: any): void;
|
242
|
+
setScrollableItemsWidthOnExpandResize(column: any, newColumnWidth: any, delta: any): void;
|
233
243
|
findParentScrollableView(column: any): any;
|
234
244
|
resizeColGroup(table: any, resizeColumnIndex: any, newColumnWidth: any, nextColumnWidth: any): void;
|
235
245
|
onColumnDragStart(event: any, columnElement: any): void;
|
@@ -286,6 +296,7 @@ export declare class ScrollableView implements AfterViewInit, OnDestroy, AfterVi
|
|
286
296
|
totalRecordsSubscription: Subscription;
|
287
297
|
columnsSubscription: Subscription;
|
288
298
|
initialized: boolean;
|
299
|
+
preventBodyScrollPropagation: boolean;
|
289
300
|
loadingArray: number[];
|
290
301
|
constructor(dt: Table, el: ElementRef, zone: NgZone);
|
291
302
|
scrollHeight: string;
|