tnx-shared 5.3.186 → 5.3.188
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 +28 -36
- 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/classes/base/data-form-base.d.ts.map +1 -1
- package/components/dropdown/dropdown.component.d.ts.map +1 -1
- package/esm2015/classes/base/data-form-base.js +1 -3
- package/esm2015/classes/base/validators.js +2 -2
- package/esm2015/components/access-denied-component/access-denied.component.js +1 -1
- package/esm2015/components/dropdown/dropdown.component.js +4 -9
- package/esm2015/components/splash-component/splash-component.component.js +1 -1
- package/esm2015/directives/authorize.directive.js +4 -4
- package/esm2015/services/announcementreads.service.js +2 -1
- package/esm2015/services/common.service.js +15 -1
- package/esm2015/services/logger.service.js +4 -19
- package/fesm2015/tnx-shared.js +27 -34
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/announcementreads.service.d.ts.map +1 -1
- package/services/common.service.d.ts +1 -0
- package/services/common.service.d.ts.map +1 -1
- package/services/logger.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -4133,6 +4133,20 @@
|
|
|
4133
4133
|
CommonService.prototype.getCurrentMonth = function () {
|
|
4134
4134
|
return new Date().getMonth();
|
|
4135
4135
|
};
|
|
4136
|
+
CommonService.prototype.getRangeYearBetween = function (previousYear, nextYear) {
|
|
4137
|
+
var dataSourceYear = [];
|
|
4138
|
+
if (nextYear >= previousYear) {
|
|
4139
|
+
var tmp = __spreadArray([], __read(Array(nextYear - previousYear + 1).keys())).map(function (x) {
|
|
4140
|
+
var year = x + previousYear;
|
|
4141
|
+
return {
|
|
4142
|
+
id: year,
|
|
4143
|
+
ten: year
|
|
4144
|
+
};
|
|
4145
|
+
});
|
|
4146
|
+
dataSourceYear = tmp;
|
|
4147
|
+
}
|
|
4148
|
+
return dataSourceYear.reverse();
|
|
4149
|
+
};
|
|
4136
4150
|
CommonService.prototype.getDynamicFormId = function (service, entity, action) {
|
|
4137
4151
|
return (service + "_" + entity + "_" + action).toUpperCase();
|
|
4138
4152
|
};
|
|
@@ -5784,28 +5798,13 @@
|
|
|
5784
5798
|
this.flushGroupWarning(category);
|
|
5785
5799
|
};
|
|
5786
5800
|
LoggerService.prototype.flushGroupInfo = function (category) {
|
|
5787
|
-
|
|
5788
|
-
this.logGroups.info[category] = [];
|
|
5789
|
-
}
|
|
5790
|
-
else {
|
|
5791
|
-
this.logGroups.info[category] = [];
|
|
5792
|
-
}
|
|
5801
|
+
this.logGroups.info[category] = [];
|
|
5793
5802
|
};
|
|
5794
5803
|
LoggerService.prototype.flushGroupError = function (category) {
|
|
5795
|
-
|
|
5796
|
-
this.logGroups.error[category] = [];
|
|
5797
|
-
}
|
|
5798
|
-
else {
|
|
5799
|
-
this.logGroups.error[category] = [];
|
|
5800
|
-
}
|
|
5804
|
+
this.logGroups.error[category] = [];
|
|
5801
5805
|
};
|
|
5802
5806
|
LoggerService.prototype.flushGroupWarning = function (category) {
|
|
5803
|
-
|
|
5804
|
-
this.logGroups.warning[category] = [];
|
|
5805
|
-
}
|
|
5806
|
-
else {
|
|
5807
|
-
this.logGroups.warning[category] = [];
|
|
5808
|
-
}
|
|
5807
|
+
this.logGroups.warning[category] = [];
|
|
5809
5808
|
};
|
|
5810
5809
|
return LoggerService;
|
|
5811
5810
|
}());
|
|
@@ -13697,7 +13696,7 @@
|
|
|
13697
13696
|
var value = event.value;
|
|
13698
13697
|
if (value == null || value === '')
|
|
13699
13698
|
return true;
|
|
13700
|
-
var re = /^[ ]|[+(]*[0-9]{1,4}[)]{0,1}[-\s\./0-9]
|
|
13699
|
+
var re = /^([ ]|[+(]*[0-9]{1,4}[)]{0,1}[-\s\./0-9]*)$/g;
|
|
13701
13700
|
return re.test(String(value).toLowerCase());
|
|
13702
13701
|
};
|
|
13703
13702
|
PhoneNumberValidator.prototype.getError = function () {
|
|
@@ -18420,10 +18419,7 @@
|
|
|
18420
18419
|
return __awaiter(this, void 0, void 0, function () {
|
|
18421
18420
|
return __generator(this, function (_e) {
|
|
18422
18421
|
switch (_e.label) {
|
|
18423
|
-
case 0:
|
|
18424
|
-
this.messageInsertSuccess = this._translateService.instant('MESSAGE.INSERT_DATA_SUCCESS');
|
|
18425
|
-
this.messageUpdateSuccess = this._translateService.instant('MESSAGE.UPDATE_DATA_SUCCESS');
|
|
18426
|
-
return [4 /*yield*/, this.__handleFormReady(formEvent)];
|
|
18422
|
+
case 0: return [4 /*yield*/, this.__handleFormReady(formEvent)];
|
|
18427
18423
|
case 1:
|
|
18428
18424
|
_e.sent();
|
|
18429
18425
|
return [2 /*return*/];
|
|
@@ -27570,7 +27566,7 @@
|
|
|
27570
27566
|
selector: 'common-splash-component',
|
|
27571
27567
|
template: "<ng-template viewContainerRef></ng-template>\n",
|
|
27572
27568
|
providers: [ComponentContextService],
|
|
27573
|
-
styles: [".modules{
|
|
27569
|
+
styles: [".modules{font-family:monospace;background:url(/assets/images/splash-bg.png);background-repeat:no-repeat;background-position:50%;background-size:cover;position:fixed;top:0;left:0;z-index:100;display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;flex-direction:column;background-color:#fff}.modules div>span{min-width:100px;height:100px;width:100px;margin:10px;box-shadow:1px 2px 9px 1px #bbb;white-space:normal}.modules div>span,.modules div>span>a{display:inline-block;border-radius:5px}.modules div>span>a{height:100%;width:100%;color:#fff;text-decoration:unset;text-align:center;position:relative;font-weight:700;text-shadow:2px 3px 3px hsla(0,0%,42.7%,.4392156862745098);cursor:pointer}.modules div>span>a i{animation:in 1s}.modules div>span>a:hover i{animation:out 1s}@media (max-width:1370px){.modules{justify-content:flex-start;overflow:auto}.module-icons.module-icons{margin-bottom:20px}.welcome-user.welcome-user{margin-top:30px;margin-bottom:30px}.welcome-user.welcome-user img{width:100px;height:100px}.clock{margin:0 20px;font-size:1.5em}.data-time{margin:10px 0 20px;font-size:1em}}.modules div>span>a>span{display:inline-block;color:#fff;text-decoration:unset;text-align:center;position:absolute;bottom:10px;width:100%;left:0}.modules div>span.implementing{box-shadow:none;background-color:#fff}.modules div>span>a>i{font-size:3em;position:absolute;top:10px;width:100%;left:0}.div22{width:240px}.div33{width:360px}.div44{width:480px}.div55{width:600px}.div88{width:960px}::ng-deep .flexcolumn{max-width:calc(100vh - 20px)}.div1111-wrapper{width:100%;overflow:auto}.div1111{white-space:nowrap}.module-icons{color:#666;width:100%}.module-icons,.welcome-user{margin-bottom:80px;text-align:center}.welcome-user a{background:#c2f3c3;padding:6px;border-radius:3px;cursor:pointer}.welcome-user a i{margin-right:6px}.welcome-user img{border-radius:50%;border:2px dashed rgba(0,144,162,.5019607843137255);height:200px;width:200px;-o-object-fit:contain;object-fit:contain}.welcome-user h2{color:#0090a2}.clock-wrapper{color:rgba(0,144,162,.6666666666666666);font-size:2em;text-align:center}.loader{color:#607d8b;font-size:8px;width:1em;height:1em;border-radius:50%;position:absolute;text-indent:-9999em;animation:load4 1.3s linear infinite;transform:translate(-50%,-50%);top:50%;left:50%}@keyframes load4{0%,to{box-shadow:0 -3em 0 .2em,2em -2em 0 0,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0,2em -2em 0 .2em,3em 0 0 0,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -.5em,2em -2em 0 0,3em 0 0 .2em,2em 2em 0 0,0 3em 0 -1em,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 0,2em 2em 0 .2em,0 3em 0 0,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 0,0 3em 0 .2em,-2em 2em 0 0,-3em 0 0 -1em,-2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 0,-2em 2em 0 .2em,-3em 0 0 0,-2em -2em 0 -1em}75%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 0,-3em 0 0 .2em,-2em -2em 0 0}87.5%{box-shadow:0 -3em 0 0,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 0,-3em 0 0 0,-2em -2em 0 .2em}}"]
|
|
27574
27570
|
},] }
|
|
27575
27571
|
];
|
|
27576
27572
|
SplashComponentComponent.ctorParameters = function () { return [
|
|
@@ -28286,7 +28282,7 @@
|
|
|
28286
28282
|
selector: 'common-access-denied',
|
|
28287
28283
|
template: "<ng-template viewContainerRef></ng-template>\n",
|
|
28288
28284
|
providers: [ComponentContextService],
|
|
28289
|
-
styles: [".modules{
|
|
28285
|
+
styles: [".modules{font-family:monospace;background:url(/assets/images/splash-bg.png);background-repeat:no-repeat;background-position:50%;background-size:cover;position:fixed;top:0;left:0;z-index:100;display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;flex-direction:column;background-color:#fff}.welcome-user{text-align:center;margin-bottom:80px}.welcome-user a{background:#c2f3c3;padding:6px;border-radius:3px;cursor:pointer}.welcome-user a i{margin-right:6px}.welcome-user img{border-radius:50%;border:2px dashed rgba(0,144,162,.5019607843137255);height:250px;width:250px;-o-object-fit:contain;object-fit:contain}.welcome-user h2{color:#0090a2}.welcome-user h1{color:#666;max-width:75vw;font-size:2rem}"]
|
|
28290
28286
|
},] }
|
|
28291
28287
|
];
|
|
28292
28288
|
AccessDeniedComponent.ctorParameters = function () { return [
|
|
@@ -32059,7 +32055,7 @@
|
|
|
32059
32055
|
_this.handleScroll = function (evt) {
|
|
32060
32056
|
if (evt.srcElement.scrollTop > 0
|
|
32061
32057
|
&& !_this.firstScroll
|
|
32062
|
-
&& evt.srcElement.offsetHeight + evt.srcElement.scrollTop
|
|
32058
|
+
&& evt.srcElement.offsetHeight + evt.srcElement.scrollTop >= evt.srcElement.scrollHeight - 1) {
|
|
32063
32059
|
_this.firstScroll = true;
|
|
32064
32060
|
if (_this.timeoutScroll)
|
|
32065
32061
|
clearTimeout(_this.timeoutScroll);
|
|
@@ -32143,12 +32139,7 @@
|
|
|
32143
32139
|
});
|
|
32144
32140
|
Object.defineProperty(DropdownComponent.prototype, "itemSelectedStyleClass", {
|
|
32145
32141
|
set: function (value) {
|
|
32146
|
-
|
|
32147
|
-
this._itemSelectedStyleClass = this.defaultSelectedStyleClass + " " + value;
|
|
32148
|
-
}
|
|
32149
|
-
else {
|
|
32150
|
-
this._itemSelectedStyleClass = this.defaultSelectedStyleClass + " " + value;
|
|
32151
|
-
}
|
|
32142
|
+
this._itemSelectedStyleClass = this.defaultSelectedStyleClass + " " + value;
|
|
32152
32143
|
},
|
|
32153
32144
|
enumerable: false,
|
|
32154
32145
|
configurable: true
|
|
@@ -32643,7 +32634,7 @@
|
|
|
32643
32634
|
return __generator(this, function (_b) {
|
|
32644
32635
|
switch (_b.label) {
|
|
32645
32636
|
case 0:
|
|
32646
|
-
this.page = page;
|
|
32637
|
+
this.page = page || 1;
|
|
32647
32638
|
this.loading = true;
|
|
32648
32639
|
return [4 /*yield*/, this.filterProcess(this.filterFromParents)];
|
|
32649
32640
|
case 1:
|
|
@@ -38749,7 +38740,7 @@
|
|
|
38749
38740
|
});
|
|
38750
38741
|
};
|
|
38751
38742
|
AuthorizeDirective.prototype.setAuthorizeButton = function () {
|
|
38752
|
-
var _a, _b, _c, _d;
|
|
38743
|
+
var _a, _b, _c, _d, _e;
|
|
38753
38744
|
var key = window.location.pathname.substring(1).toUpperCase().replace(/\//g, '_');
|
|
38754
38745
|
if (i0.isDevMode()) {
|
|
38755
38746
|
key = this.appCode + "_" + window.location.pathname.substring(1).toUpperCase();
|
|
@@ -38758,14 +38749,14 @@
|
|
|
38758
38749
|
// if (componentName && !key.endsWith(componentName)) {
|
|
38759
38750
|
// key += `_${componentName}`;
|
|
38760
38751
|
// }
|
|
38761
|
-
var buttonText = (_c = (_b = (_a = this._element.getAttribute(exports.EnumProperties.LABEL)) !== null && _a !== void 0 ? _a : this._element.getAttribute(exports.EnumProperties.TOOLTIP)) !== null && _b !== void 0 ? _b : this._element.getAttribute(exports.EnumProperties.NG_REFLECT_TEXT)) !== null && _c !== void 0 ? _c : this._element.getAttribute(exports.EnumProperties.NG_REFLECT_LABEL);
|
|
38752
|
+
var buttonText = (_d = (_c = (_b = (_a = this._element.getAttribute(exports.EnumProperties.LABEL)) !== null && _a !== void 0 ? _a : this._element.getAttribute(exports.EnumProperties.TOOLTIP)) !== null && _b !== void 0 ? _b : this._element.getAttribute(exports.EnumProperties.NG_REFLECT_TEXT)) !== null && _c !== void 0 ? _c : this._element.getAttribute(exports.EnumProperties.NG_REFLECT_LABEL)) !== null && _d !== void 0 ? _d : this._element.innerText;
|
|
38762
38753
|
if (!buttonText) {
|
|
38763
38754
|
this.enableAuthorize = false;
|
|
38764
38755
|
return;
|
|
38765
38756
|
}
|
|
38766
38757
|
this.buttonSetting = JSON.parse(sessionStorage.getItem(ComCtxConstants.LOCALSTORAGE_KEY.BUTTON_AUTHORIZE) || '{}');
|
|
38767
38758
|
var permissionCode = "[" + key + "]_[" + this._commonService.convertStringToUnSign(buttonText).replace(/ /g, '_').toUpperCase() + "]";
|
|
38768
|
-
var isSetAuthorize = (
|
|
38759
|
+
var isSetAuthorize = (_e = this.buttonSetting[key]) === null || _e === void 0 ? void 0 : _e.find(function (p) { return p.code == permissionCode; });
|
|
38769
38760
|
if (isSetAuthorize) {
|
|
38770
38761
|
this.permission = permissionCode;
|
|
38771
38762
|
}
|
|
@@ -40044,6 +40035,7 @@
|
|
|
40044
40035
|
return BaseMenuService;
|
|
40045
40036
|
}());
|
|
40046
40037
|
|
|
40038
|
+
//1/1/1/
|
|
40047
40039
|
var AnnouncementReadsService = /** @class */ (function (_super) {
|
|
40048
40040
|
__extends(AnnouncementReadsService, _super);
|
|
40049
40041
|
function AnnouncementReadsService(http, injector, _moduleConfigService) {
|