@easydata/crud 1.3.6 → 1.4.0-beta01
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/dist/browser/easydata.css +8 -0
- package/dist/browser/easydata.css.map +1 -1
- package/dist/browser/easydata.js +35 -6
- package/dist/browser/easydata.js.map +1 -1
- package/dist/browser/easydata.min.css +1 -1
- package/dist/browser/easydata.min.js +1 -1
- package/dist/browser/easydata.min.js.map +1 -1
- package/dist/bundles/easydata.crud.js +35 -6
- package/dist/bundles/easydata.crud.js.map +1 -1
- package/dist/bundles/easydata.crud.min.js +1 -1
- package/dist/bundles/easydata.crud.min.js.map +1 -1
- package/dist/lib/form/entity_form_builder.js +11 -3
- package/dist/lib/form/entity_form_builder.js.map +1 -1
- package/package.json +3 -3
|
@@ -2392,6 +2392,7 @@ var data_column_DataColumn = /** @class */ (function () {
|
|
|
2392
2392
|
this.displayFormat = desc.dfmt;
|
|
2393
2393
|
this.groupFooterColumnTemplate = desc.gfct;
|
|
2394
2394
|
this.style = desc.style || {};
|
|
2395
|
+
this.description = desc.description;
|
|
2395
2396
|
}
|
|
2396
2397
|
return DataColumn;
|
|
2397
2398
|
}());
|
|
@@ -4309,6 +4310,7 @@ var easy_grid_columns_GridColumn = /** @class */ (function () {
|
|
|
4309
4310
|
function GridColumn(column, grid, isRowNum) {
|
|
4310
4311
|
if (isRowNum === void 0) { isRowNum = false; }
|
|
4311
4312
|
this._label = null;
|
|
4313
|
+
this._description = null;
|
|
4312
4314
|
//public left: number;
|
|
4313
4315
|
this.align = GridColumnAlign.NONE;
|
|
4314
4316
|
this.isVisible = true;
|
|
@@ -4335,6 +4337,7 @@ var easy_grid_columns_GridColumn = /** @class */ (function () {
|
|
|
4335
4337
|
this.width = DEFAULT_WIDTH_STRING;
|
|
4336
4338
|
}
|
|
4337
4339
|
this.cellRenderer = this.grid.cellRendererStore.getDefaultRenderer(column.type);
|
|
4340
|
+
this._description = column.description;
|
|
4338
4341
|
}
|
|
4339
4342
|
else if (isRowNum) {
|
|
4340
4343
|
this.isRowNum = true;
|
|
@@ -4357,6 +4360,14 @@ var easy_grid_columns_GridColumn = /** @class */ (function () {
|
|
|
4357
4360
|
configurable: true
|
|
4358
4361
|
});
|
|
4359
4362
|
;
|
|
4363
|
+
Object.defineProperty(GridColumn.prototype, "description", {
|
|
4364
|
+
/** Get column description. */
|
|
4365
|
+
get: function () {
|
|
4366
|
+
return this._description;
|
|
4367
|
+
},
|
|
4368
|
+
enumerable: true,
|
|
4369
|
+
configurable: true
|
|
4370
|
+
});
|
|
4360
4371
|
Object.defineProperty(GridColumn.prototype, "type", {
|
|
4361
4372
|
get: function () {
|
|
4362
4373
|
return this.dataColumn ? this.dataColumn.type : null;
|
|
@@ -4699,6 +4710,12 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4699
4710
|
}
|
|
4700
4711
|
});
|
|
4701
4712
|
};
|
|
4713
|
+
EasyGrid.prototype.getContainerWidth = function () {
|
|
4714
|
+
return this.columns.getItems()
|
|
4715
|
+
.filter(function (col) { return col.isVisible; })
|
|
4716
|
+
.map(function (col) { return col.width; })
|
|
4717
|
+
.reduce(function (sum, current) { return sum + current; });
|
|
4718
|
+
};
|
|
4702
4719
|
EasyGrid.prototype.renderHeader = function () {
|
|
4703
4720
|
var _this = this;
|
|
4704
4721
|
this.headerDiv = domel('div')
|
|
@@ -4724,7 +4741,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4724
4741
|
.addChildElement(_this.renderAddColumnButton());
|
|
4725
4742
|
}
|
|
4726
4743
|
});
|
|
4727
|
-
var containerWidth = this.
|
|
4744
|
+
var containerWidth = this.getContainerWidth();
|
|
4728
4745
|
domel(this.headerCellContainerDiv)
|
|
4729
4746
|
.setStyle('width', containerWidth + "px");
|
|
4730
4747
|
};
|
|
@@ -4749,6 +4766,11 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4749
4766
|
.addClass(this.cssPrefix + "-header-cell-label")
|
|
4750
4767
|
.text(column.label);
|
|
4751
4768
|
}
|
|
4769
|
+
if (column.description) {
|
|
4770
|
+
domel('div', colDiv)
|
|
4771
|
+
.addClass('question-mark')
|
|
4772
|
+
.title(column.description);
|
|
4773
|
+
}
|
|
4752
4774
|
if (this.options.allowDragDrop) {
|
|
4753
4775
|
eqDragManager.registerDraggableItem({
|
|
4754
4776
|
element: colDiv,
|
|
@@ -4818,8 +4840,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4818
4840
|
_this.updateTotalsState(groups_1, row, true);
|
|
4819
4841
|
}
|
|
4820
4842
|
}
|
|
4821
|
-
var containerWidth = _this.
|
|
4822
|
-
.map(function (column) { return column.width; }).reduce(function (sum, current) { return sum + current; });
|
|
4843
|
+
var containerWidth = _this.getContainerWidth();
|
|
4823
4844
|
domel(_this.bodyCellContainerDiv)
|
|
4824
4845
|
.setStyle('width', containerWidth + "px");
|
|
4825
4846
|
return rows.length;
|
|
@@ -7381,9 +7402,17 @@ var entity_form_builder_EntityEditFormBuilder = /** @class */ (function () {
|
|
|
7381
7402
|
.toDOM();
|
|
7382
7403
|
}
|
|
7383
7404
|
domel(parent)
|
|
7384
|
-
.addChild('label', function (b) {
|
|
7385
|
-
.attr('for', attr.id)
|
|
7386
|
-
.addHtml(attr.caption + " " + (required ? '<sup style="color: red">*</sup>' : '') + ": ");
|
|
7405
|
+
.addChild('label', function (b) {
|
|
7406
|
+
b.attr('for', attr.id);
|
|
7407
|
+
b.addHtml(attr.caption + " " + (required ? '<sup style="color: red">*</sup>' : '') + ": ");
|
|
7408
|
+
if (attr.description) {
|
|
7409
|
+
b.addChild('div', function (b) { return b
|
|
7410
|
+
.attr('title', attr.description)
|
|
7411
|
+
.addClass('question-mark')
|
|
7412
|
+
.setStyle('vertical-align', 'middle')
|
|
7413
|
+
.setStyle('display', 'inline-block'); });
|
|
7414
|
+
}
|
|
7415
|
+
});
|
|
7387
7416
|
if (attr.kind === EntityAttrKind.Lookup) {
|
|
7388
7417
|
this.setupLookupField(parent, attr, readOnly, value);
|
|
7389
7418
|
return;
|