tnx-shared 5.3.380 → 5.3.382
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 +12 -1
- 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/components/settings/settings.component.js +2 -2
- package/esm2015/services/common.service.js +12 -1
- package/fesm2015/tnx-shared.js +12 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +1 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -4133,6 +4133,17 @@ class CommonService {
|
|
|
4133
4133
|
const temp = s.normalize('NFD');
|
|
4134
4134
|
return temp.replace(regex, '').replace('\u0111', 'd').replace('\u0110', 'D');
|
|
4135
4135
|
}
|
|
4136
|
+
extractInnerText(htmlString) {
|
|
4137
|
+
if (!htmlString)
|
|
4138
|
+
return '';
|
|
4139
|
+
const withoutComments = htmlString.replace(/<!--[\s\S]*?-->/g, '');
|
|
4140
|
+
// Tạo một DOM element từ chuỗi HTML đã loại bỏ comment
|
|
4141
|
+
const parser = new DOMParser();
|
|
4142
|
+
let doc = parser.parseFromString(withoutComments, 'text/html');
|
|
4143
|
+
const result = doc.body.innerText.trim();
|
|
4144
|
+
doc = null; // Dọn dẹp tham chiếu (không cần thiết nếu scope kết thúc)
|
|
4145
|
+
return result;
|
|
4146
|
+
}
|
|
4136
4147
|
}
|
|
4137
4148
|
CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
4138
4149
|
CommonService.decorators = [
|
|
@@ -45694,7 +45705,7 @@ class SettingsComponent extends ComponentBase {
|
|
|
45694
45705
|
if (!element.rawColumn) {
|
|
45695
45706
|
if (!this.model.data.details.some(q => q.columnCode == element.field)) {
|
|
45696
45707
|
let visible = false;
|
|
45697
|
-
if (element.baseService) {
|
|
45708
|
+
if (element.baseService || element.dataSource) {
|
|
45698
45709
|
const refField = this.parentSetting.cols.find(f => f.field == 'str' + element.field);
|
|
45699
45710
|
if (refField) {
|
|
45700
45711
|
visible = refField.visible;
|