tnx-shared 5.1.552 → 5.1.554
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/tnx-shared.umd.js +23 -5
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/models/export-item.js +7 -1
- package/esm2015/services/common.service.js +13 -6
- package/fesm2015/tnx-shared.js +19 -6
- package/fesm2015/tnx-shared.js.map +1 -1
- package/models/export-item.d.ts +5 -0
- package/models/export-item.d.ts.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +2 -2
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -4499,15 +4499,16 @@
|
|
|
4499
4499
|
}
|
|
4500
4500
|
return [startDate, endDate];
|
|
4501
4501
|
};
|
|
4502
|
-
CommonService.prototype.addHtmlContentWithTagAround = function (lstTag, className, tagAround) {
|
|
4502
|
+
CommonService.prototype.addHtmlContentWithTagAround = function (lstTag, className, tagAround, attributes) {
|
|
4503
4503
|
var e_6, _b;
|
|
4504
4504
|
if (className === void 0) { className = ''; }
|
|
4505
4505
|
if (tagAround === void 0) { tagAround = 'div'; }
|
|
4506
|
+
if (attributes === void 0) { attributes = {}; }
|
|
4506
4507
|
var result = '';
|
|
4507
4508
|
try {
|
|
4508
4509
|
for (var lstTag_1 = __values(lstTag), lstTag_1_1 = lstTag_1.next(); !lstTag_1_1.done; lstTag_1_1 = lstTag_1.next()) {
|
|
4509
4510
|
var item = lstTag_1_1.value;
|
|
4510
|
-
result += this.addHtmlContent(item.content, item.className, item.tagName);
|
|
4511
|
+
result += this.addHtmlContent(item.content, item.className, item.tagName, item.attributes);
|
|
4511
4512
|
}
|
|
4512
4513
|
}
|
|
4513
4514
|
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
@@ -4517,12 +4518,21 @@
|
|
|
4517
4518
|
}
|
|
4518
4519
|
finally { if (e_6) throw e_6.error; }
|
|
4519
4520
|
}
|
|
4520
|
-
return
|
|
4521
|
+
return this.addHtmlContent(result, className, tagAround, attributes);
|
|
4521
4522
|
};
|
|
4522
|
-
CommonService.prototype.addHtmlContent = function (content, className, tagName) {
|
|
4523
|
+
CommonService.prototype.addHtmlContent = function (content, className, tagName, attributes) {
|
|
4523
4524
|
if (className === void 0) { className = ''; }
|
|
4524
4525
|
if (tagName === void 0) { tagName = 'div'; }
|
|
4525
|
-
|
|
4526
|
+
if (attributes === void 0) { attributes = {}; }
|
|
4527
|
+
var _a;
|
|
4528
|
+
var strAttribute = '';
|
|
4529
|
+
if ((_a = Object.keys(attributes)) === null || _a === void 0 ? void 0 : _a.length) {
|
|
4530
|
+
Object.entries(attributes).forEach(function (_b) {
|
|
4531
|
+
var _c = __read(_b, 2), key = _c[0], value = _c[1];
|
|
4532
|
+
strAttribute += " " + key + "='" + value + "'";
|
|
4533
|
+
});
|
|
4534
|
+
}
|
|
4535
|
+
return "<" + tagName + " class='" + className + "' " + strAttribute + ">" + content + "</" + tagName + ">";
|
|
4526
4536
|
};
|
|
4527
4537
|
return CommonService;
|
|
4528
4538
|
}());
|
|
@@ -5145,6 +5155,13 @@
|
|
|
5145
5155
|
}
|
|
5146
5156
|
return ExportItem;
|
|
5147
5157
|
}());
|
|
5158
|
+
var MergeConfigModel = /** @class */ (function () {
|
|
5159
|
+
function MergeConfigModel() {
|
|
5160
|
+
this.row = 1;
|
|
5161
|
+
this.columnStart = 1;
|
|
5162
|
+
}
|
|
5163
|
+
return MergeConfigModel;
|
|
5164
|
+
}());
|
|
5148
5165
|
|
|
5149
5166
|
var isLiteralObject = function (obj) {
|
|
5150
5167
|
return (obj instanceof Object)
|
|
@@ -64936,6 +64953,7 @@
|
|
|
64936
64953
|
exports.MasterDataPipe = MasterDataPipe;
|
|
64937
64954
|
exports.MasterDataService = MasterDataService;
|
|
64938
64955
|
exports.MenuService = MenuService;
|
|
64956
|
+
exports.MergeConfigModel = MergeConfigModel;
|
|
64939
64957
|
exports.MethodResult = MethodResult;
|
|
64940
64958
|
exports.ModelKySoDonVi = ModelKySoDonVi;
|
|
64941
64959
|
exports.ModelSchema = ModelSchema;
|