tnx-shared 5.3.187 → 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 +27 -32
- 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/components/dropdown/dropdown.component.d.ts.map +1 -1
- 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 -32
- 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 () {
|
|
@@ -27567,7 +27566,7 @@
|
|
|
27567
27566
|
selector: 'common-splash-component',
|
|
27568
27567
|
template: "<ng-template viewContainerRef></ng-template>\n",
|
|
27569
27568
|
providers: [ComponentContextService],
|
|
27570
|
-
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}}"]
|
|
27571
27570
|
},] }
|
|
27572
27571
|
];
|
|
27573
27572
|
SplashComponentComponent.ctorParameters = function () { return [
|
|
@@ -28283,7 +28282,7 @@
|
|
|
28283
28282
|
selector: 'common-access-denied',
|
|
28284
28283
|
template: "<ng-template viewContainerRef></ng-template>\n",
|
|
28285
28284
|
providers: [ComponentContextService],
|
|
28286
|
-
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}"]
|
|
28287
28286
|
},] }
|
|
28288
28287
|
];
|
|
28289
28288
|
AccessDeniedComponent.ctorParameters = function () { return [
|
|
@@ -32056,7 +32055,7 @@
|
|
|
32056
32055
|
_this.handleScroll = function (evt) {
|
|
32057
32056
|
if (evt.srcElement.scrollTop > 0
|
|
32058
32057
|
&& !_this.firstScroll
|
|
32059
|
-
&& evt.srcElement.offsetHeight + evt.srcElement.scrollTop
|
|
32058
|
+
&& evt.srcElement.offsetHeight + evt.srcElement.scrollTop >= evt.srcElement.scrollHeight - 1) {
|
|
32060
32059
|
_this.firstScroll = true;
|
|
32061
32060
|
if (_this.timeoutScroll)
|
|
32062
32061
|
clearTimeout(_this.timeoutScroll);
|
|
@@ -32140,12 +32139,7 @@
|
|
|
32140
32139
|
});
|
|
32141
32140
|
Object.defineProperty(DropdownComponent.prototype, "itemSelectedStyleClass", {
|
|
32142
32141
|
set: function (value) {
|
|
32143
|
-
|
|
32144
|
-
this._itemSelectedStyleClass = this.defaultSelectedStyleClass + " " + value;
|
|
32145
|
-
}
|
|
32146
|
-
else {
|
|
32147
|
-
this._itemSelectedStyleClass = this.defaultSelectedStyleClass + " " + value;
|
|
32148
|
-
}
|
|
32142
|
+
this._itemSelectedStyleClass = this.defaultSelectedStyleClass + " " + value;
|
|
32149
32143
|
},
|
|
32150
32144
|
enumerable: false,
|
|
32151
32145
|
configurable: true
|
|
@@ -32640,7 +32634,7 @@
|
|
|
32640
32634
|
return __generator(this, function (_b) {
|
|
32641
32635
|
switch (_b.label) {
|
|
32642
32636
|
case 0:
|
|
32643
|
-
this.page = page;
|
|
32637
|
+
this.page = page || 1;
|
|
32644
32638
|
this.loading = true;
|
|
32645
32639
|
return [4 /*yield*/, this.filterProcess(this.filterFromParents)];
|
|
32646
32640
|
case 1:
|
|
@@ -38746,7 +38740,7 @@
|
|
|
38746
38740
|
});
|
|
38747
38741
|
};
|
|
38748
38742
|
AuthorizeDirective.prototype.setAuthorizeButton = function () {
|
|
38749
|
-
var _a, _b, _c, _d;
|
|
38743
|
+
var _a, _b, _c, _d, _e;
|
|
38750
38744
|
var key = window.location.pathname.substring(1).toUpperCase().replace(/\//g, '_');
|
|
38751
38745
|
if (i0.isDevMode()) {
|
|
38752
38746
|
key = this.appCode + "_" + window.location.pathname.substring(1).toUpperCase();
|
|
@@ -38755,14 +38749,14 @@
|
|
|
38755
38749
|
// if (componentName && !key.endsWith(componentName)) {
|
|
38756
38750
|
// key += `_${componentName}`;
|
|
38757
38751
|
// }
|
|
38758
|
-
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;
|
|
38759
38753
|
if (!buttonText) {
|
|
38760
38754
|
this.enableAuthorize = false;
|
|
38761
38755
|
return;
|
|
38762
38756
|
}
|
|
38763
38757
|
this.buttonSetting = JSON.parse(sessionStorage.getItem(ComCtxConstants.LOCALSTORAGE_KEY.BUTTON_AUTHORIZE) || '{}');
|
|
38764
38758
|
var permissionCode = "[" + key + "]_[" + this._commonService.convertStringToUnSign(buttonText).replace(/ /g, '_').toUpperCase() + "]";
|
|
38765
|
-
var isSetAuthorize = (
|
|
38759
|
+
var isSetAuthorize = (_e = this.buttonSetting[key]) === null || _e === void 0 ? void 0 : _e.find(function (p) { return p.code == permissionCode; });
|
|
38766
38760
|
if (isSetAuthorize) {
|
|
38767
38761
|
this.permission = permissionCode;
|
|
38768
38762
|
}
|
|
@@ -40041,6 +40035,7 @@
|
|
|
40041
40035
|
return BaseMenuService;
|
|
40042
40036
|
}());
|
|
40043
40037
|
|
|
40038
|
+
//1/1/1/
|
|
40044
40039
|
var AnnouncementReadsService = /** @class */ (function (_super) {
|
|
40045
40040
|
__extends(AnnouncementReadsService, _super);
|
|
40046
40041
|
function AnnouncementReadsService(http, injector, _moduleConfigService) {
|