tnx-shared 5.3.187 → 5.3.189
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 +148 -91
- 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/list-base.d.ts +3 -0
- package/classes/base/list-base.d.ts.map +1 -1
- package/classes/base/list-component-base.d.ts +1 -1
- package/classes/base/list-component-base.d.ts.map +1 -1
- package/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/common-search-form/common-search-form.component.d.ts +1 -0
- package/components/common-search-form/common-search-form.component.d.ts.map +1 -1
- package/components/dropdown/dropdown.component.d.ts.map +1 -1
- package/esm2015/classes/base/list-base.js +35 -3
- package/esm2015/classes/base/list-component-base.js +9 -6
- package/esm2015/classes/base/validators.js +2 -2
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/access-denied-component/access-denied.component.js +1 -1
- package/esm2015/components/common-search-form/common-search-form.component.js +31 -28
- package/esm2015/components/dropdown/dropdown.component.js +4 -9
- package/esm2015/components/equation-editor/equation-editor.component.js +1 -1
- package/esm2015/components/settings/settings-authorize-button/settings-authorize-button.component.js +2 -2
- 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 +100 -66
- 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
|
@@ -82,28 +82,13 @@ export class LoggerService {
|
|
|
82
82
|
this.flushGroupWarning(category);
|
|
83
83
|
}
|
|
84
84
|
flushGroupInfo(category) {
|
|
85
|
-
|
|
86
|
-
this.logGroups.info[category] = [];
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
this.logGroups.info[category] = [];
|
|
90
|
-
}
|
|
85
|
+
this.logGroups.info[category] = [];
|
|
91
86
|
}
|
|
92
87
|
flushGroupError(category) {
|
|
93
|
-
|
|
94
|
-
this.logGroups.error[category] = [];
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
this.logGroups.error[category] = [];
|
|
98
|
-
}
|
|
88
|
+
this.logGroups.error[category] = [];
|
|
99
89
|
}
|
|
100
90
|
flushGroupWarning(category) {
|
|
101
|
-
|
|
102
|
-
this.logGroups.warning[category] = [];
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
this.logGroups.warning[category] = [];
|
|
106
|
-
}
|
|
91
|
+
this.logGroups.warning[category] = [];
|
|
107
92
|
}
|
|
108
93
|
}
|
|
109
94
|
LoggerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoggerService_Factory() { return new LoggerService(i0.ɵɵinject(i1.ModuleConfigService)); }, token: LoggerService, providedIn: "root" });
|
|
@@ -115,4 +100,4 @@ LoggerService.decorators = [
|
|
|
115
100
|
LoggerService.ctorParameters = () => [
|
|
116
101
|
{ type: ModuleConfigService }
|
|
117
102
|
];
|
|
118
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
103
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy90bngtc2hhcmVkL3NyYy9saWIvc2VydmljZXMvbG9nZ2VyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxP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91cEVycm9yKGNhdGVnb3J5KTtcbiAgICB9XG5cbiAgICB3cml0ZUFuZEZsdXNoR3JvdXBXYXJuaW5nKGNhdGVnb3J5OiBzdHJpbmcpIHtcbiAgICAgICAgdGhpcy53cml0ZUdyb3VwV2FybmluZyhjYXRlZ29yeSk7XG4gICAgICAgIHRoaXMuZmx1c2hHcm91cFdhcm5pbmcoY2F0ZWdvcnkpO1xuICAgIH1cblxuICAgIGZsdXNoR3JvdXBJbmZvKGNhdGVnb3J5OiBzdHJpbmcpIHtcbiAgICAgICAgdGhpcy5sb2dHcm91cHMuaW5mb1tjYXRlZ29yeV0gPSBbXTtcbiAgICAgICAgXG5cbiAgICB9XG5cbiAgICBmbHVzaEdyb3VwRXJyb3IoY2F0ZWdvcnk6IHN0cmluZykge1xuICAgICAgICB0aGlzLmxvZ0dyb3Vwcy5lcnJvcltjYXRlZ29yeV0gPSBbXTtcbiAgICB9XG5cbiAgICBmbHVzaEdyb3VwV2FybmluZyhjYXRlZ29yeTogc3RyaW5nKSB7XG4gICAgICAgIHRoaXMubG9nR3JvdXBzLndhcm5pbmdbY2F0ZWdvcnldID0gW107XG4gICAgfVxufVxuIl19
|
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -686,6 +686,7 @@ class CrudListSetting {
|
|
|
686
686
|
this.showHistory = false;
|
|
687
687
|
this.colorFilterField = '';
|
|
688
688
|
this.colorFilterTable = [];
|
|
689
|
+
this.buttonsPermissionCustom = [];
|
|
689
690
|
this.entityMetadataSetting = new CrudFormSetting();
|
|
690
691
|
this.fieldSearchText = [];
|
|
691
692
|
this.function = new CrudListCustomFunction();
|
|
@@ -3323,6 +3324,20 @@ class CommonService {
|
|
|
3323
3324
|
getCurrentMonth() {
|
|
3324
3325
|
return new Date().getMonth();
|
|
3325
3326
|
}
|
|
3327
|
+
getRangeYearBetween(previousYear, nextYear) {
|
|
3328
|
+
let dataSourceYear = [];
|
|
3329
|
+
if (nextYear >= previousYear) {
|
|
3330
|
+
const tmp = [...Array(nextYear - previousYear + 1).keys()].map(x => {
|
|
3331
|
+
const year = x + previousYear;
|
|
3332
|
+
return {
|
|
3333
|
+
id: year,
|
|
3334
|
+
ten: year
|
|
3335
|
+
};
|
|
3336
|
+
});
|
|
3337
|
+
dataSourceYear = tmp;
|
|
3338
|
+
}
|
|
3339
|
+
return dataSourceYear.reverse();
|
|
3340
|
+
}
|
|
3326
3341
|
getDynamicFormId(service, entity, action) {
|
|
3327
3342
|
return `${service}_${entity}_${action}`.toUpperCase();
|
|
3328
3343
|
}
|
|
@@ -4803,28 +4818,13 @@ class LoggerService {
|
|
|
4803
4818
|
this.flushGroupWarning(category);
|
|
4804
4819
|
}
|
|
4805
4820
|
flushGroupInfo(category) {
|
|
4806
|
-
|
|
4807
|
-
this.logGroups.info[category] = [];
|
|
4808
|
-
}
|
|
4809
|
-
else {
|
|
4810
|
-
this.logGroups.info[category] = [];
|
|
4811
|
-
}
|
|
4821
|
+
this.logGroups.info[category] = [];
|
|
4812
4822
|
}
|
|
4813
4823
|
flushGroupError(category) {
|
|
4814
|
-
|
|
4815
|
-
this.logGroups.error[category] = [];
|
|
4816
|
-
}
|
|
4817
|
-
else {
|
|
4818
|
-
this.logGroups.error[category] = [];
|
|
4819
|
-
}
|
|
4824
|
+
this.logGroups.error[category] = [];
|
|
4820
4825
|
}
|
|
4821
4826
|
flushGroupWarning(category) {
|
|
4822
|
-
|
|
4823
|
-
this.logGroups.warning[category] = [];
|
|
4824
|
-
}
|
|
4825
|
-
else {
|
|
4826
|
-
this.logGroups.warning[category] = [];
|
|
4827
|
-
}
|
|
4827
|
+
this.logGroups.warning[category] = [];
|
|
4828
4828
|
}
|
|
4829
4829
|
}
|
|
4830
4830
|
LoggerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoggerService_Factory() { return new LoggerService(i0.ɵɵinject(ModuleConfigService)); }, token: LoggerService, providedIn: "root" });
|
|
@@ -11673,7 +11673,7 @@ class PhoneNumberValidator {
|
|
|
11673
11673
|
const value = event.value;
|
|
11674
11674
|
if (value == null || value === '')
|
|
11675
11675
|
return true;
|
|
11676
|
-
const re = /^[ ]|[+(]*[0-9]{1,4}[)]{0,1}[-\s\./0-9]
|
|
11676
|
+
const re = /^([ ]|[+(]*[0-9]{1,4}[)]{0,1}[-\s\./0-9]*)$/g;
|
|
11677
11677
|
return re.test(String(value).toLowerCase());
|
|
11678
11678
|
}
|
|
11679
11679
|
getError() {
|
|
@@ -21370,11 +21370,14 @@ class ListComponentBase extends ComponentBase {
|
|
|
21370
21370
|
if (!buttonText || lstBtnAction.some(p => p.rawText === buttonText)) {
|
|
21371
21371
|
continue;
|
|
21372
21372
|
}
|
|
21373
|
-
this.addButtonAction(lstBtnAction,
|
|
21373
|
+
this.addButtonAction(lstBtnAction, buttonText);
|
|
21374
21374
|
}
|
|
21375
21375
|
const lstMenuButtons = (_e = yield this.menuButtons({})) !== null && _e !== void 0 ? _e : [];
|
|
21376
21376
|
if (lstMenuButtons.length) {
|
|
21377
|
-
lstMenuButtons.forEach(item => this.addButtonAction(lstBtnAction,
|
|
21377
|
+
lstMenuButtons.forEach(item => this.addButtonAction(lstBtnAction, item.label));
|
|
21378
|
+
}
|
|
21379
|
+
if (this.setting.buttonsPermissionCustom.length) {
|
|
21380
|
+
lstBtnAction.push(...this.setting.buttonsPermissionCustom);
|
|
21378
21381
|
}
|
|
21379
21382
|
const buttonSetting = JSON.parse(sessionStorage.getItem(ComCtxConstants.LOCALSTORAGE_KEY.BUTTON_AUTHORIZE) || '{}');
|
|
21380
21383
|
((_f = buttonSetting[this.authorizeButtonKey]) === null || _f === void 0 ? void 0 : _f.length) && buttonSetting[this.authorizeButtonKey].forEach(item => {
|
|
@@ -21400,13 +21403,13 @@ class ListComponentBase extends ComponentBase {
|
|
|
21400
21403
|
setBtnReady(isReady) {
|
|
21401
21404
|
this.isBtnReady = isReady;
|
|
21402
21405
|
}
|
|
21403
|
-
addButtonAction(lstBtnAction,
|
|
21406
|
+
addButtonAction(lstBtnAction, rawText, id) {
|
|
21404
21407
|
id !== null && id !== void 0 ? id : (id = this._commonService.guid());
|
|
21405
21408
|
const permissionCode = this._commonService.convertStringToUnSign(rawText).replace(/ /g, '_').toUpperCase();
|
|
21406
21409
|
lstBtnAction.push(new ButtonAction({
|
|
21407
21410
|
id: id,
|
|
21408
21411
|
rawText: rawText,
|
|
21409
|
-
permissionCode: `[${
|
|
21412
|
+
permissionCode: `[${this.authorizeButtonKey}]_[${permissionCode}]`
|
|
21410
21413
|
}));
|
|
21411
21414
|
}
|
|
21412
21415
|
setAuthorizeButton(lstButtonTemplate) {
|
|
@@ -21432,7 +21435,7 @@ class ListComponentBase extends ComponentBase {
|
|
|
21432
21435
|
this.isBtnReady = true;
|
|
21433
21436
|
return;
|
|
21434
21437
|
}
|
|
21435
|
-
lstMenuButtons.forEach(item => this.addButtonAction(lstMenuButton,
|
|
21438
|
+
lstMenuButtons.forEach(item => this.addButtonAction(lstMenuButton, item.label));
|
|
21436
21439
|
buttonSetting[this.authorizeButtonKey].forEach(item => {
|
|
21437
21440
|
const itemBtnMenu = lstMenuButton.find(p => p.permissionCode == item.code);
|
|
21438
21441
|
if (itemBtnMenu) {
|
|
@@ -21605,34 +21608,8 @@ class CommonSearchFormComponent extends DataFormBase {
|
|
|
21605
21608
|
this.searchBoxTooltip += `${(lstTextSearchControl.map(x => x.label)).join(', ')}`;
|
|
21606
21609
|
this._index = 2;
|
|
21607
21610
|
}
|
|
21608
|
-
const totalControlPerRow = 12 / this.mdWidth;
|
|
21609
21611
|
if (this.isCustomGenerateSearch) {
|
|
21610
|
-
this.
|
|
21611
|
-
column.showLabel = false;
|
|
21612
|
-
column.mdWidth = this.mdWidth;
|
|
21613
|
-
column['placeholder'] = column.label;
|
|
21614
|
-
if (!(column instanceof TextControlSchema) || column instanceof NumberRangeControlSchema || column instanceof DropdownControlSchema) {
|
|
21615
|
-
column.onAfterChanged = (evt) => {
|
|
21616
|
-
this.handleSearch(null, evt.control.field);
|
|
21617
|
-
};
|
|
21618
|
-
}
|
|
21619
|
-
if (column instanceof NumberRangeControlSchema) {
|
|
21620
|
-
this.lstNumberRangeControl.push(column.field);
|
|
21621
|
-
}
|
|
21622
|
-
if (column.hasOwnProperty('defaultValue') && (column instanceof DropdownControlSchema || column instanceof DateTimeControlSchema)) {
|
|
21623
|
-
this.defaultValues[column.field] = column.defaultValue;
|
|
21624
|
-
}
|
|
21625
|
-
if (column.addToGridInfo) {
|
|
21626
|
-
this.lstControlAddToGridInfo.push(column.field);
|
|
21627
|
-
}
|
|
21628
|
-
column.isLazyLoad = !this.parentSetting.disableLazyLoadCommonSearch && this._index > totalControlPerRow
|
|
21629
|
-
&& column instanceof DropdownControlSchema && !!column.baseService && !(column.baseService instanceof MasterDataService);
|
|
21630
|
-
if (column.isLazyLoad) {
|
|
21631
|
-
this.lstControlLazyLoad.push(column.field);
|
|
21632
|
-
}
|
|
21633
|
-
this._index++;
|
|
21634
|
-
});
|
|
21635
|
-
this.setting.schema = this.addSearchBox(this.parentSetting.commonSchemas.sort((prev, next) => prev.order - next.order));
|
|
21612
|
+
this.getFormSchemaCustom();
|
|
21636
21613
|
}
|
|
21637
21614
|
else {
|
|
21638
21615
|
this.setting.schema = this.genFormSchema(columnFilters);
|
|
@@ -21643,6 +21620,35 @@ class CommonSearchFormComponent extends DataFormBase {
|
|
|
21643
21620
|
this.handleSearch();
|
|
21644
21621
|
}
|
|
21645
21622
|
}
|
|
21623
|
+
getFormSchemaCustom() {
|
|
21624
|
+
const totalControlPerRow = 12 / this.mdWidth;
|
|
21625
|
+
this.parentSetting.commonSchemas.forEach(column => {
|
|
21626
|
+
column.showLabel = false;
|
|
21627
|
+
column.mdWidth = this.mdWidth;
|
|
21628
|
+
column['placeholder'] = column.label;
|
|
21629
|
+
if (!(column instanceof TextControlSchema) || column instanceof NumberRangeControlSchema || column instanceof DropdownControlSchema) {
|
|
21630
|
+
column.onAfterChanged = (evt) => {
|
|
21631
|
+
this.handleSearch(null, evt.control.field);
|
|
21632
|
+
};
|
|
21633
|
+
}
|
|
21634
|
+
if (column instanceof NumberRangeControlSchema) {
|
|
21635
|
+
this.lstNumberRangeControl.push(column.field);
|
|
21636
|
+
}
|
|
21637
|
+
if (column.hasOwnProperty('defaultValue') && (column instanceof DropdownControlSchema || column instanceof DateTimeControlSchema)) {
|
|
21638
|
+
this.defaultValues[column.field] = column.defaultValue;
|
|
21639
|
+
}
|
|
21640
|
+
if (column.addToGridInfo) {
|
|
21641
|
+
this.lstControlAddToGridInfo.push(column.field);
|
|
21642
|
+
}
|
|
21643
|
+
column.isLazyLoad = !this.parentSetting.disableLazyLoadCommonSearch && this._index > totalControlPerRow
|
|
21644
|
+
&& column instanceof DropdownControlSchema && !!column.baseService && !(column.baseService instanceof MasterDataService);
|
|
21645
|
+
if (column.isLazyLoad) {
|
|
21646
|
+
this.lstControlLazyLoad.push(column.field);
|
|
21647
|
+
}
|
|
21648
|
+
this._index++;
|
|
21649
|
+
});
|
|
21650
|
+
this.setting.schema = this.addSearchBox(this.parentSetting.commonSchemas.sort((prev, next) => prev.order - next.order));
|
|
21651
|
+
}
|
|
21646
21652
|
genFormSchema(columns) {
|
|
21647
21653
|
const result = [];
|
|
21648
21654
|
const totalControlPerRow = 12 / this.mdWidth;
|
|
@@ -22345,6 +22351,7 @@ class ListBase extends ComponentBaseWithButton {
|
|
|
22345
22351
|
this._workflowPermissionDetailService = this._injector.get(WorkflowPermissionDetailService);
|
|
22346
22352
|
this._stateMachinesService = this._injector.get(StateMachinesService);
|
|
22347
22353
|
this._congViecServiceInBase = this._injector.get(CongViecService);
|
|
22354
|
+
this._permissionService = this._injector.get(PermissionService);
|
|
22348
22355
|
this._loggerService = this._injector.get(LoggerService);
|
|
22349
22356
|
this.setting.key = this._commonService.guid();
|
|
22350
22357
|
}
|
|
@@ -22707,6 +22714,37 @@ class ListBase extends ComponentBaseWithButton {
|
|
|
22707
22714
|
}
|
|
22708
22715
|
});
|
|
22709
22716
|
}
|
|
22717
|
+
getMenuButtonCustomAuthorized(menuButtons) {
|
|
22718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22719
|
+
const buttonSetting = JSON.parse(sessionStorage.getItem(ComCtxConstants.LOCALSTORAGE_KEY.BUTTON_AUTHORIZE) || '{}');
|
|
22720
|
+
let authorizeButtonKey = window.location.pathname.substring(1).toUpperCase().replace(/\//g, '_');
|
|
22721
|
+
const serviceCode = this.setting.baseService.serviceCode.toUpperCase();
|
|
22722
|
+
if (isDevMode()) {
|
|
22723
|
+
authorizeButtonKey = `${serviceCode}_${window.location.pathname.substring(1).toUpperCase()}`;
|
|
22724
|
+
}
|
|
22725
|
+
const lstButtonAuthorize = buttonSetting[authorizeButtonKey];
|
|
22726
|
+
if (!(lstButtonAuthorize === null || lstButtonAuthorize === void 0 ? void 0 : lstButtonAuthorize.length)) {
|
|
22727
|
+
return menuButtons;
|
|
22728
|
+
}
|
|
22729
|
+
const promises = [];
|
|
22730
|
+
const authorizedButtons = [];
|
|
22731
|
+
for (const item of menuButtons) {
|
|
22732
|
+
const permission = lstButtonAuthorize.find(p => p.code == item.authorizationPermission);
|
|
22733
|
+
if (!item.authorizationPermission || !permission) {
|
|
22734
|
+
authorizedButtons.push(item);
|
|
22735
|
+
continue;
|
|
22736
|
+
}
|
|
22737
|
+
promises.push(this._permissionService.isAuthorized(item.authorizationServiceCode || serviceCode, permission ? permission.code : item.authorizationPermission, true).then(authorized => {
|
|
22738
|
+
if (authorized !== true) {
|
|
22739
|
+
return;
|
|
22740
|
+
}
|
|
22741
|
+
authorizedButtons.push(item);
|
|
22742
|
+
}));
|
|
22743
|
+
}
|
|
22744
|
+
yield Promise.all(promises);
|
|
22745
|
+
return authorizedButtons;
|
|
22746
|
+
});
|
|
22747
|
+
}
|
|
22710
22748
|
beforeRenderDataSource(datasource) {
|
|
22711
22749
|
return datasource;
|
|
22712
22750
|
}
|
|
@@ -23601,7 +23639,7 @@ SplashComponentComponent.decorators = [
|
|
|
23601
23639
|
selector: 'common-splash-component',
|
|
23602
23640
|
template: "<ng-template viewContainerRef></ng-template>\n",
|
|
23603
23641
|
providers: [ComponentContextService],
|
|
23604
|
-
styles: [".modules{
|
|
23642
|
+
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}}"]
|
|
23605
23643
|
},] }
|
|
23606
23644
|
];
|
|
23607
23645
|
SplashComponentComponent.ctorParameters = () => [
|
|
@@ -24220,7 +24258,7 @@ AccessDeniedComponent.decorators = [
|
|
|
24220
24258
|
selector: 'common-access-denied',
|
|
24221
24259
|
template: "<ng-template viewContainerRef></ng-template>\n",
|
|
24222
24260
|
providers: [ComponentContextService],
|
|
24223
|
-
styles: [".modules{
|
|
24261
|
+
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}"]
|
|
24224
24262
|
},] }
|
|
24225
24263
|
];
|
|
24226
24264
|
AccessDeniedComponent.ctorParameters = () => [
|
|
@@ -27549,7 +27587,7 @@ class DropdownComponent extends ComponentBase {
|
|
|
27549
27587
|
this.handleScroll = (evt) => {
|
|
27550
27588
|
if (evt.srcElement.scrollTop > 0
|
|
27551
27589
|
&& !this.firstScroll
|
|
27552
|
-
&& evt.srcElement.offsetHeight + evt.srcElement.scrollTop
|
|
27590
|
+
&& evt.srcElement.offsetHeight + evt.srcElement.scrollTop >= evt.srcElement.scrollHeight - 1) {
|
|
27553
27591
|
this.firstScroll = true;
|
|
27554
27592
|
if (this.timeoutScroll)
|
|
27555
27593
|
clearTimeout(this.timeoutScroll);
|
|
@@ -27604,12 +27642,7 @@ class DropdownComponent extends ComponentBase {
|
|
|
27604
27642
|
}
|
|
27605
27643
|
}
|
|
27606
27644
|
set itemSelectedStyleClass(value) {
|
|
27607
|
-
|
|
27608
|
-
this._itemSelectedStyleClass = `${this.defaultSelectedStyleClass} ${value}`;
|
|
27609
|
-
}
|
|
27610
|
-
else {
|
|
27611
|
-
this._itemSelectedStyleClass = `${this.defaultSelectedStyleClass} ${value}`;
|
|
27612
|
-
}
|
|
27645
|
+
this._itemSelectedStyleClass = `${this.defaultSelectedStyleClass} ${value}`;
|
|
27613
27646
|
}
|
|
27614
27647
|
ngOnInit() {
|
|
27615
27648
|
if (this.control.quickAdd) {
|
|
@@ -28040,7 +28073,7 @@ class DropdownComponent extends ComponentBase {
|
|
|
28040
28073
|
}
|
|
28041
28074
|
_getDataSource(page) {
|
|
28042
28075
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28043
|
-
this.page = page;
|
|
28076
|
+
this.page = page || 1;
|
|
28044
28077
|
this.loading = true;
|
|
28045
28078
|
const filters = yield this.filterProcess(this.filterFromParents);
|
|
28046
28079
|
if (filters == null) {
|
|
@@ -33753,7 +33786,7 @@ class AuthorizeDirective {
|
|
|
33753
33786
|
});
|
|
33754
33787
|
}
|
|
33755
33788
|
setAuthorizeButton() {
|
|
33756
|
-
var _a, _b, _c, _d;
|
|
33789
|
+
var _a, _b, _c, _d, _e;
|
|
33757
33790
|
let key = window.location.pathname.substring(1).toUpperCase().replace(/\//g, '_');
|
|
33758
33791
|
if (isDevMode()) {
|
|
33759
33792
|
key = `${this.appCode}_${window.location.pathname.substring(1).toUpperCase()}`;
|
|
@@ -33762,14 +33795,14 @@ class AuthorizeDirective {
|
|
|
33762
33795
|
// if (componentName && !key.endsWith(componentName)) {
|
|
33763
33796
|
// key += `_${componentName}`;
|
|
33764
33797
|
// }
|
|
33765
|
-
const buttonText = (_c = (_b = (_a = this._element.getAttribute(EnumProperties.LABEL)) !== null && _a !== void 0 ? _a : this._element.getAttribute(EnumProperties.TOOLTIP)) !== null && _b !== void 0 ? _b : this._element.getAttribute(EnumProperties.NG_REFLECT_TEXT)) !== null && _c !== void 0 ? _c : this._element.getAttribute(EnumProperties.NG_REFLECT_LABEL);
|
|
33798
|
+
const buttonText = (_d = (_c = (_b = (_a = this._element.getAttribute(EnumProperties.LABEL)) !== null && _a !== void 0 ? _a : this._element.getAttribute(EnumProperties.TOOLTIP)) !== null && _b !== void 0 ? _b : this._element.getAttribute(EnumProperties.NG_REFLECT_TEXT)) !== null && _c !== void 0 ? _c : this._element.getAttribute(EnumProperties.NG_REFLECT_LABEL)) !== null && _d !== void 0 ? _d : this._element.innerText;
|
|
33766
33799
|
if (!buttonText) {
|
|
33767
33800
|
this.enableAuthorize = false;
|
|
33768
33801
|
return;
|
|
33769
33802
|
}
|
|
33770
33803
|
this.buttonSetting = JSON.parse(sessionStorage.getItem(ComCtxConstants.LOCALSTORAGE_KEY.BUTTON_AUTHORIZE) || '{}');
|
|
33771
33804
|
const permissionCode = `[${key}]_[${this._commonService.convertStringToUnSign(buttonText).replace(/ /g, '_').toUpperCase()}]`;
|
|
33772
|
-
const isSetAuthorize = (
|
|
33805
|
+
const isSetAuthorize = (_e = this.buttonSetting[key]) === null || _e === void 0 ? void 0 : _e.find(p => p.code == permissionCode);
|
|
33773
33806
|
if (isSetAuthorize) {
|
|
33774
33807
|
this.permission = permissionCode;
|
|
33775
33808
|
}
|
|
@@ -34912,6 +34945,7 @@ class BaseMenuService {
|
|
|
34912
34945
|
}
|
|
34913
34946
|
}
|
|
34914
34947
|
|
|
34948
|
+
//1/1/1/
|
|
34915
34949
|
class AnnouncementReadsService extends BaseService {
|
|
34916
34950
|
constructor(http, injector, _moduleConfigService) {
|
|
34917
34951
|
super(http, injector, `${_moduleConfigService.getConfig().environment.apiDomain.thongbaoEndpoint}/${_moduleConfigService.getConfig().environment.apiVersion}/AnnouncementReads`);
|
|
@@ -41124,7 +41158,7 @@ EquationEditorComponent.decorators = [
|
|
|
41124
41158
|
selector: 'equation-editor',
|
|
41125
41159
|
template: "<div class=\"ui-fluid\">\n <textarea #textarea class=\"latexContent\" placeholder=\"G\u00F5 c\u00F4ng th\u1EE9c to\u00E1n h\u1ECDc t\u1EA1i \u0111\u00E2y...\" rows=\"6\" pInputTextarea\n (ngModelChange)=\"onModelChange($event)\" [(ngModel)]=\"equationLatex\"></textarea>\n</div>\n<div class=\"preview\">\n <img #preview latex=\"true\" *ngIf=\"imageSrc\" [attr.height]=\"data.height != 0 ? data.height : null\"\n class=\"latex\" [style]=\"data.style | safeStyle\" [src]=\"imageSrc\" [alt]=\"equationLatex\" />\n</div>",
|
|
41126
41160
|
providers: [ComponentContextService],
|
|
41127
|
-
styles: [".btn-equation{width:
|
|
41161
|
+
styles: [".btn-equation{width:30px;height:30px;cursor:pointer}.preview{text-align:center;margin-top:10px;padding:0 10px}.latexContent{resize:none;border-radius:0}"]
|
|
41128
41162
|
},] }
|
|
41129
41163
|
];
|
|
41130
41164
|
EquationEditorComponent.ctorParameters = () => [
|
|
@@ -43299,7 +43333,7 @@ class SettingAuthorizeButtonComponent extends DataListBase {
|
|
|
43299
43333
|
];
|
|
43300
43334
|
this.setting.cols = [
|
|
43301
43335
|
new ColumnSchemaBase({ field: 'permissionCode', sort: false, showEditLink: false }),
|
|
43302
|
-
new ColumnSchemaBase({ field: 'rawText', width: '
|
|
43336
|
+
new ColumnSchemaBase({ field: 'rawText', width: '300px', sort: false }),
|
|
43303
43337
|
new ColumnSchemaBase({ field: 'isAuthorize', dataType: DataType.boolean, width: '100px', sort: false }),
|
|
43304
43338
|
];
|
|
43305
43339
|
super.ngOnInit();
|