@colijnit/corecomponents_v12 12.0.26 → 12.0.29
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/colijnit-corecomponents_v12.umd.js +172 -31
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/base/base-input.component.js +2 -2
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +46 -0
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.module.js +23 -0
- package/esm2015/lib/components/input-search/input-search.component.js +26 -25
- package/esm2015/lib/components/input-search/input-search.module.js +6 -2
- package/esm2015/lib/components/input-text/input-text.component.js +10 -4
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +61 -8
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +7 -3
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +59 -36
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +221 -67
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-date-picker/style/_theme.scss +1 -1
- package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +12 -0
- package/lib/components/input-date-range-picker/input-date-range-picker.module.d.ts +2 -0
- package/lib/components/input-date-range-picker/style/_layout.scss +7 -0
- package/lib/components/input-date-range-picker/style/_material-definition.scss +12 -0
- package/lib/components/input-date-range-picker/style/_theme.scss +3 -0
- package/lib/components/input-date-range-picker/style/material.scss +6 -0
- package/lib/components/input-search/input-search.component.d.ts +7 -13
- package/lib/components/input-search/style/_layout.scss +0 -35
- package/lib/components/input-search/style/_material-definition.scss +0 -6
- package/lib/components/input-search/style/_theme.scss +0 -2
- package/lib/components/input-text/input-text.component.d.ts +3 -1
- package/lib/components/input-text/style/_layout.scss +11 -0
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +12 -1
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +4 -1
- package/lib/components/simple-grid/simple-grid.component.d.ts +2 -1
- package/lib/components/simple-grid/style/_layout.scss +26 -9
- package/lib/components/simple-grid/style/_material-definition.scss +1 -1
- package/lib/style/_variables.scss +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -4408,7 +4408,7 @@
|
|
|
4408
4408
|
return node;
|
|
4409
4409
|
}
|
|
4410
4410
|
else if (node.children.length > 0) {
|
|
4411
|
-
|
|
4411
|
+
this._findInputNode(node.children);
|
|
4412
4412
|
}
|
|
4413
4413
|
}
|
|
4414
4414
|
};
|
|
@@ -5854,6 +5854,63 @@
|
|
|
5854
5854
|
},] }
|
|
5855
5855
|
];
|
|
5856
5856
|
|
|
5857
|
+
var InputDateRangePickerComponent = /** @class */ (function (_super) {
|
|
5858
|
+
__extends(InputDateRangePickerComponent, _super);
|
|
5859
|
+
function InputDateRangePickerComponent() {
|
|
5860
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
5861
|
+
_this.dateFormat = "dd-MM-yyyy";
|
|
5862
|
+
_this.placeholder = "";
|
|
5863
|
+
_this.startDateChange = new core.EventEmitter();
|
|
5864
|
+
_this.endDateChange = new core.EventEmitter();
|
|
5865
|
+
return _this;
|
|
5866
|
+
}
|
|
5867
|
+
InputDateRangePickerComponent.prototype.showClass = function () {
|
|
5868
|
+
return true;
|
|
5869
|
+
};
|
|
5870
|
+
InputDateRangePickerComponent.prototype.dateRangeChange = function () {
|
|
5871
|
+
this.startDateChange.emit(this.startDate);
|
|
5872
|
+
this.endDateChange.emit(this.endDate);
|
|
5873
|
+
};
|
|
5874
|
+
return InputDateRangePickerComponent;
|
|
5875
|
+
}(BaseInputComponent));
|
|
5876
|
+
InputDateRangePickerComponent.decorators = [
|
|
5877
|
+
{ type: core.Component, args: [{
|
|
5878
|
+
selector: "co-input-date-range",
|
|
5879
|
+
template: "\n <ejs-daterangepicker\n [format]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n (ngModelChange)=\"dateRangeChange()\"\n [(startDate)]=\"startDate\"\n [(endDate)]=\"endDate\"\n ></ejs-daterangepicker>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
5880
|
+
encapsulation: core.ViewEncapsulation.None
|
|
5881
|
+
},] }
|
|
5882
|
+
];
|
|
5883
|
+
InputDateRangePickerComponent.propDecorators = {
|
|
5884
|
+
dateFormat: [{ type: core.Input }],
|
|
5885
|
+
placeholder: [{ type: core.Input }],
|
|
5886
|
+
startDate: [{ type: core.Input }],
|
|
5887
|
+
endDate: [{ type: core.Input }],
|
|
5888
|
+
startDateChange: [{ type: core.Output }],
|
|
5889
|
+
endDateChange: [{ type: core.Output }],
|
|
5890
|
+
showClass: [{ type: core.HostBinding, args: ["class.co-input-date-range-picker",] }]
|
|
5891
|
+
};
|
|
5892
|
+
|
|
5893
|
+
var InputDateRangePickerModule = /** @class */ (function () {
|
|
5894
|
+
function InputDateRangePickerModule() {
|
|
5895
|
+
}
|
|
5896
|
+
return InputDateRangePickerModule;
|
|
5897
|
+
}());
|
|
5898
|
+
InputDateRangePickerModule.decorators = [
|
|
5899
|
+
{ type: core.NgModule, args: [{
|
|
5900
|
+
imports: [
|
|
5901
|
+
BaseModule,
|
|
5902
|
+
ej2AngularCalendars.DateRangePickerModule,
|
|
5903
|
+
forms.FormsModule
|
|
5904
|
+
],
|
|
5905
|
+
declarations: [
|
|
5906
|
+
InputDateRangePickerComponent
|
|
5907
|
+
],
|
|
5908
|
+
exports: [
|
|
5909
|
+
InputDateRangePickerComponent
|
|
5910
|
+
]
|
|
5911
|
+
},] }
|
|
5912
|
+
];
|
|
5913
|
+
|
|
5857
5914
|
ej2AngularDropdowns.ListBoxComponent.Inject(ej2AngularDropdowns.CheckBoxSelection);
|
|
5858
5915
|
var InputListboxComponent = /** @class */ (function (_super) {
|
|
5859
5916
|
__extends(InputListboxComponent, _super);
|
|
@@ -6593,10 +6650,10 @@
|
|
|
6593
6650
|
_this.formUserChangeListener = formUserChangeListener;
|
|
6594
6651
|
_this.ngZoneWrapper = ngZoneWrapper;
|
|
6595
6652
|
_this.elementRef = elementRef;
|
|
6596
|
-
_this.Icons = exports.CoreComponentsIcon;
|
|
6597
6653
|
_this.placeholder = "";
|
|
6598
6654
|
_this.type = "text";
|
|
6599
6655
|
_this.showClearButton = undefined;
|
|
6656
|
+
_this.showPlaceholderOnFocus = true;
|
|
6600
6657
|
_this.hasOwnLabel = true;
|
|
6601
6658
|
_super.prototype._markAsOnPush.call(_this);
|
|
6602
6659
|
return _this;
|
|
@@ -6604,12 +6661,19 @@
|
|
|
6604
6661
|
InputTextComponent.prototype.showClass = function () {
|
|
6605
6662
|
return true;
|
|
6606
6663
|
};
|
|
6664
|
+
Object.defineProperty(InputTextComponent.prototype, "hasLeftIcon", {
|
|
6665
|
+
get: function () {
|
|
6666
|
+
return this.leftIcon !== undefined && this.leftIcon !== null;
|
|
6667
|
+
},
|
|
6668
|
+
enumerable: false,
|
|
6669
|
+
configurable: true
|
|
6670
|
+
});
|
|
6607
6671
|
return InputTextComponent;
|
|
6608
6672
|
}(BaseInputComponent));
|
|
6609
6673
|
InputTextComponent.decorators = [
|
|
6610
6674
|
{ type: core.Component, args: [{
|
|
6611
6675
|
selector: "co-input-text",
|
|
6612
|
-
template: "\n <label [textContent]=\"placeholder\"></label>\n <input #input\n [type]=\"type\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n >\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
6676
|
+
template: "\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\" [textContent]=\"placeholder\"></label>\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\"></co-icon>\n <input #input\n [type]=\"type\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n >\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
6613
6677
|
providers: [{
|
|
6614
6678
|
provide: COMPONENT_INTERFACE_NAME,
|
|
6615
6679
|
useExisting: core.forwardRef(function () { return InputTextComponent; })
|
|
@@ -6633,7 +6697,10 @@
|
|
|
6633
6697
|
type: [{ type: core.Input }],
|
|
6634
6698
|
showClearButton: [{ type: core.Input }],
|
|
6635
6699
|
keyDownWhiteList: [{ type: core.Input }],
|
|
6700
|
+
showPlaceholderOnFocus: [{ type: core.Input }],
|
|
6701
|
+
leftIcon: [{ type: core.Input }],
|
|
6636
6702
|
showClass: [{ type: core.HostBinding, args: ["class.co-input-text",] }],
|
|
6703
|
+
hasLeftIcon: [{ type: core.HostBinding, args: ['class.has-left-icon',] }],
|
|
6637
6704
|
hasOwnLabel: [{ type: core.HostBinding, args: ["class.has-own-label",] }]
|
|
6638
6705
|
};
|
|
6639
6706
|
|
|
@@ -6884,39 +6951,37 @@
|
|
|
6884
6951
|
|
|
6885
6952
|
var InputSearchComponent = /** @class */ (function (_super) {
|
|
6886
6953
|
__extends(InputSearchComponent, _super);
|
|
6887
|
-
function InputSearchComponent(
|
|
6888
|
-
var _this = _super.
|
|
6889
|
-
_this._elementRef = _elementRef;
|
|
6890
|
-
_this.changeDetector = changeDetector;
|
|
6891
|
-
_this.componentFactoryResolver = componentFactoryResolver;
|
|
6892
|
-
_this.formUserChangeListener = formUserChangeListener;
|
|
6893
|
-
_this.ngZoneWrapper = ngZoneWrapper;
|
|
6954
|
+
function InputSearchComponent() {
|
|
6955
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
6894
6956
|
_this.searchIcon = exports.CoreComponentsIcon.Magnifier;
|
|
6957
|
+
_this.search = new core.EventEmitter();
|
|
6895
6958
|
return _this;
|
|
6896
6959
|
}
|
|
6897
6960
|
InputSearchComponent.prototype.showClass = function () {
|
|
6898
6961
|
return true;
|
|
6899
6962
|
};
|
|
6963
|
+
InputSearchComponent.prototype.handleKeyDown = function (event) {
|
|
6964
|
+
switch (event.code) {
|
|
6965
|
+
case 'Enter':
|
|
6966
|
+
event.preventDefault();
|
|
6967
|
+
this.search.next(this.model);
|
|
6968
|
+
return;
|
|
6969
|
+
}
|
|
6970
|
+
};
|
|
6900
6971
|
return InputSearchComponent;
|
|
6901
6972
|
}(BaseInputComponent));
|
|
6902
6973
|
InputSearchComponent.decorators = [
|
|
6903
6974
|
{ type: core.Component, args: [{
|
|
6904
|
-
selector:
|
|
6905
|
-
template: "\n <co-
|
|
6975
|
+
selector: 'co-input-search',
|
|
6976
|
+
template: "\n <co-input-text\n [model]=\"model\"\n [leftIcon]=\"searchIcon\"\n [placeholder]=\"placeholder\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n ></co-input-text>\n ",
|
|
6906
6977
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
6907
6978
|
encapsulation: core.ViewEncapsulation.None
|
|
6908
6979
|
},] }
|
|
6909
6980
|
];
|
|
6910
|
-
InputSearchComponent.ctorParameters = function () { return [
|
|
6911
|
-
{ type: core.ElementRef },
|
|
6912
|
-
{ type: core.ChangeDetectorRef },
|
|
6913
|
-
{ type: core.ComponentFactoryResolver },
|
|
6914
|
-
{ type: FormInputUserModelChangeListenerService },
|
|
6915
|
-
{ type: NgZoneWrapperService }
|
|
6916
|
-
]; };
|
|
6917
6981
|
InputSearchComponent.propDecorators = {
|
|
6918
|
-
|
|
6919
|
-
|
|
6982
|
+
placeholder: [{ type: core.Input }],
|
|
6983
|
+
search: [{ type: core.Output }],
|
|
6984
|
+
showClass: [{ type: core.HostBinding, args: ['class.co-input-search',] }]
|
|
6920
6985
|
};
|
|
6921
6986
|
|
|
6922
6987
|
var InputSearchModule = /** @class */ (function () {
|
|
@@ -6928,7 +6993,9 @@
|
|
|
6928
6993
|
{ type: core.NgModule, args: [{
|
|
6929
6994
|
imports: [
|
|
6930
6995
|
common.CommonModule,
|
|
6931
|
-
IconModule
|
|
6996
|
+
IconModule,
|
|
6997
|
+
forms.FormsModule,
|
|
6998
|
+
InputTextModule
|
|
6932
6999
|
],
|
|
6933
7000
|
declarations: [InputSearchComponent],
|
|
6934
7001
|
exports: [InputSearchComponent]
|
|
@@ -8531,7 +8598,8 @@
|
|
|
8531
8598
|
ColumnAlign["Right"] = "right-align";
|
|
8532
8599
|
})(exports.ColumnAlign || (exports.ColumnAlign = {}));
|
|
8533
8600
|
var SimpleGridColumnDirective = /** @class */ (function () {
|
|
8534
|
-
function SimpleGridColumnDirective() {
|
|
8601
|
+
function SimpleGridColumnDirective(elementRef) {
|
|
8602
|
+
this.elementRef = elementRef;
|
|
8535
8603
|
this.resizable = true;
|
|
8536
8604
|
this.required = false;
|
|
8537
8605
|
this.readonly = false;
|
|
@@ -8590,6 +8658,9 @@
|
|
|
8590
8658
|
selector: "co-simple-grid-column"
|
|
8591
8659
|
},] }
|
|
8592
8660
|
];
|
|
8661
|
+
SimpleGridColumnDirective.ctorParameters = function () { return [
|
|
8662
|
+
{ type: core.ElementRef }
|
|
8663
|
+
]; };
|
|
8593
8664
|
SimpleGridColumnDirective.propDecorators = {
|
|
8594
8665
|
template: [{ type: core.ContentChild, args: ['template',] }],
|
|
8595
8666
|
editTemplate: [{ type: core.ContentChild, args: ['editTemplate',] }],
|
|
@@ -8610,8 +8681,9 @@
|
|
|
8610
8681
|
|
|
8611
8682
|
var BaseSimpleGridComponent = /** @class */ (function () {
|
|
8612
8683
|
function BaseSimpleGridComponent() {
|
|
8613
|
-
this.
|
|
8684
|
+
this.MIN_COLUMN_WIDTH = 60;
|
|
8614
8685
|
this.dragDropEnabled = false;
|
|
8686
|
+
this.resizable = false;
|
|
8615
8687
|
this.inlineEdit = false;
|
|
8616
8688
|
this.showToolbar = false;
|
|
8617
8689
|
/**
|
|
@@ -8624,10 +8696,25 @@
|
|
|
8624
8696
|
this.dblClickRow = new core.EventEmitter();
|
|
8625
8697
|
this.saveRow = new core.EventEmitter();
|
|
8626
8698
|
this.columns = [];
|
|
8699
|
+
this.headerColumns = [];
|
|
8700
|
+
this._data = [];
|
|
8701
|
+
this._prepared = false;
|
|
8627
8702
|
}
|
|
8628
8703
|
Object.defineProperty(BaseSimpleGridComponent.prototype, "content", {
|
|
8629
8704
|
set: function (columnComponents) {
|
|
8630
8705
|
this._setColumns(columnComponents.toArray());
|
|
8706
|
+
this._prepareData();
|
|
8707
|
+
},
|
|
8708
|
+
enumerable: false,
|
|
8709
|
+
configurable: true
|
|
8710
|
+
});
|
|
8711
|
+
Object.defineProperty(BaseSimpleGridComponent.prototype, "data", {
|
|
8712
|
+
get: function () {
|
|
8713
|
+
return this._data;
|
|
8714
|
+
},
|
|
8715
|
+
set: function (value) {
|
|
8716
|
+
this._data = value;
|
|
8717
|
+
this._prepareData();
|
|
8631
8718
|
},
|
|
8632
8719
|
enumerable: false,
|
|
8633
8720
|
configurable: true
|
|
@@ -8640,19 +8727,19 @@
|
|
|
8640
8727
|
configurable: true
|
|
8641
8728
|
});
|
|
8642
8729
|
BaseSimpleGridComponent.prototype.handleMouseMove = function (event) {
|
|
8643
|
-
if (event.buttons === 1 && this._columnForResize) {
|
|
8644
|
-
|
|
8645
|
-
var rect = event.target.parentElement.getBoundingClientRect();
|
|
8646
|
-
this._columnForResize.width = rect.width;
|
|
8647
|
-
}
|
|
8648
|
-
this._columnForResize.width += event.movementX;
|
|
8730
|
+
if (this.resizable && event.buttons === 1 && this._columnForResize) {
|
|
8731
|
+
this._columnForResize.width = this._columnForResize.originalWidth - (this._startMousePositionX - event.clientX);
|
|
8649
8732
|
}
|
|
8650
8733
|
};
|
|
8651
8734
|
BaseSimpleGridComponent.prototype.handleMouseUp = function (event) {
|
|
8735
|
+
this._startMousePositionX = undefined;
|
|
8652
8736
|
this._columnForResize = undefined;
|
|
8653
8737
|
};
|
|
8654
8738
|
BaseSimpleGridComponent.prototype.handleSizerMouseDown = function (event, column) {
|
|
8739
|
+
this._setWidthOfAllColumns();
|
|
8740
|
+
this._startMousePositionX = event.clientX;
|
|
8655
8741
|
this._columnForResize = column;
|
|
8742
|
+
this._columnForResize.originalWidth = this._columnForResize.width;
|
|
8656
8743
|
};
|
|
8657
8744
|
BaseSimpleGridComponent.prototype.handleCanDragDrop = function (drag, drop) {
|
|
8658
8745
|
return true;
|
|
@@ -8675,11 +8762,51 @@
|
|
|
8675
8762
|
console.error(e);
|
|
8676
8763
|
}
|
|
8677
8764
|
};
|
|
8765
|
+
BaseSimpleGridComponent.prototype.isSingleColumnRow = function (row) {
|
|
8766
|
+
return row.hasOwnProperty('singleColumnIndex');
|
|
8767
|
+
};
|
|
8768
|
+
BaseSimpleGridComponent.prototype.singleColumnIndex = function (row) {
|
|
8769
|
+
return row.singleColumnIndex;
|
|
8770
|
+
};
|
|
8678
8771
|
BaseSimpleGridComponent.prototype._setColumns = function (columns) {
|
|
8679
8772
|
var _a;
|
|
8680
8773
|
(_a = this.columns).push.apply(_a, __spreadArray([], __read(columns)));
|
|
8681
8774
|
this.columns.sort(function (a, b) { return a.order < b.order ? -1 : 1; });
|
|
8682
8775
|
};
|
|
8776
|
+
BaseSimpleGridComponent.prototype._prepareData = function () {
|
|
8777
|
+
if (this._prepared) {
|
|
8778
|
+
return;
|
|
8779
|
+
}
|
|
8780
|
+
if (this.columns && this.columns.length > 0 && this.data && this.data.length > 0) {
|
|
8781
|
+
this.headerColumns = this.columns.filter(function (c) { return !c.singleColumn; });
|
|
8782
|
+
var singleColumnIndex = -1;
|
|
8783
|
+
for (var i = 0; i < this.columns.length; i++) {
|
|
8784
|
+
if (this.columns[i].singleColumn) {
|
|
8785
|
+
singleColumnIndex = i;
|
|
8786
|
+
break;
|
|
8787
|
+
}
|
|
8788
|
+
}
|
|
8789
|
+
// first check if there's single column data
|
|
8790
|
+
if (singleColumnIndex > -1) {
|
|
8791
|
+
var field = this.columns[singleColumnIndex].field;
|
|
8792
|
+
for (var i = 0; i < this.data.length; i++) { // then mark row as single column row
|
|
8793
|
+
if (this.data[i][field] !== undefined && this.data[i][field] !== null && this.data[i][field] !== "") {
|
|
8794
|
+
// bit nasty to add prop, but cool for now
|
|
8795
|
+
this.data[i].singleColumnIndex = singleColumnIndex;
|
|
8796
|
+
}
|
|
8797
|
+
}
|
|
8798
|
+
}
|
|
8799
|
+
this._prepared = true;
|
|
8800
|
+
}
|
|
8801
|
+
};
|
|
8802
|
+
BaseSimpleGridComponent.prototype._setWidthOfAllColumns = function () {
|
|
8803
|
+
this.columns.forEach(function (column) {
|
|
8804
|
+
if ((column.width === undefined || column.width === null) && column.elementRef && column.elementRef.nativeElement) {
|
|
8805
|
+
var rect = column.elementRef.nativeElement.getBoundingClientRect();
|
|
8806
|
+
column.width = rect.width;
|
|
8807
|
+
}
|
|
8808
|
+
});
|
|
8809
|
+
};
|
|
8683
8810
|
return BaseSimpleGridComponent;
|
|
8684
8811
|
}());
|
|
8685
8812
|
BaseSimpleGridComponent.decorators = [
|
|
@@ -8689,6 +8816,7 @@
|
|
|
8689
8816
|
content: [{ type: core.ContentChildren, args: [SimpleGridColumnDirective,] }],
|
|
8690
8817
|
data: [{ type: core.Input }],
|
|
8691
8818
|
dragDropEnabled: [{ type: core.Input }],
|
|
8819
|
+
resizable: [{ type: core.Input }],
|
|
8692
8820
|
inlineEdit: [{ type: core.Input }],
|
|
8693
8821
|
showToolbar: [{ type: core.Input }],
|
|
8694
8822
|
emitDragDrop: [{ type: core.Input }],
|
|
@@ -8716,6 +8844,16 @@
|
|
|
8716
8844
|
_this._newRow = false;
|
|
8717
8845
|
return _this;
|
|
8718
8846
|
}
|
|
8847
|
+
Object.defineProperty(SimpleGridComponent.prototype, "headerCells", {
|
|
8848
|
+
set: function (cells) {
|
|
8849
|
+
var headerElements = cells.toArray();
|
|
8850
|
+
for (var i = 0; i < headerElements.length; i++) {
|
|
8851
|
+
this.columns[i].elementRef = headerElements[i];
|
|
8852
|
+
}
|
|
8853
|
+
},
|
|
8854
|
+
enumerable: false,
|
|
8855
|
+
configurable: true
|
|
8856
|
+
});
|
|
8719
8857
|
SimpleGridComponent.prototype.showClass = function () {
|
|
8720
8858
|
return true;
|
|
8721
8859
|
};
|
|
@@ -8960,7 +9098,7 @@
|
|
|
8960
9098
|
SimpleGridComponent.decorators = [
|
|
8961
9099
|
{ type: core.Component, args: [{
|
|
8962
9100
|
selector: "co-simple-grid",
|
|
8963
|
-
template: "\n <co-grid-toolbar *ngIf=\"inlineEdit && showToolbar\"\n (addClick)=\"addRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n ></co-grid-toolbar>\n <
|
|
9101
|
+
template: "\n <co-grid-toolbar *ngIf=\"inlineEdit && showToolbar\"\n (addClick)=\"addRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\" [attr.width]=\"column.width\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\">\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText\"\n ></div>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex\"\n [class.editting]=\"rowIndex === editRowIndex\" *ngFor=\"let row of data; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex)\" (dblclick)=\"handleDblClickRow($event, rowIndex)\">\n <co-form class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editting && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex\"\n (cellClick)=\"handleCellClick(columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form>\n </tr>\n </tbody>\n </table>\n ",
|
|
8964
9102
|
providers: [
|
|
8965
9103
|
FormMasterService
|
|
8966
9104
|
],
|
|
@@ -8973,6 +9111,7 @@
|
|
|
8973
9111
|
{ type: FormMasterService }
|
|
8974
9112
|
]; };
|
|
8975
9113
|
SimpleGridComponent.propDecorators = {
|
|
9114
|
+
headerCells: [{ type: core.ViewChildren, args: ["headerCell",] }],
|
|
8976
9115
|
showClass: [{ type: core.HostBinding, args: ["class.co-simple-grid",] }],
|
|
8977
9116
|
handleKeyDown: [{ type: core.HostListener, args: ['keydown', ['$event'],] }]
|
|
8978
9117
|
};
|
|
@@ -9216,6 +9355,8 @@
|
|
|
9216
9355
|
exports.InputComboBoxModule = InputComboBoxModule;
|
|
9217
9356
|
exports.InputDatePickerComponent = InputDatePickerComponent;
|
|
9218
9357
|
exports.InputDatePickerModule = InputDatePickerModule;
|
|
9358
|
+
exports.InputDateRangePickerComponent = InputDateRangePickerComponent;
|
|
9359
|
+
exports.InputDateRangePickerModule = InputDateRangePickerModule;
|
|
9219
9360
|
exports.InputListboxComponent = InputListboxComponent;
|
|
9220
9361
|
exports.InputListboxModule = InputListboxModule;
|
|
9221
9362
|
exports.InputNumberPickerComponent = InputNumberPickerComponent;
|