tnx-shared 5.3.312 → 5.3.314
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 +17 -20
- 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/tn-app-notification/tn-app-notification.component.d.ts.map +1 -1
- package/esm2015/components/entity-picker/entity-picker.component.js +2 -2
- package/esm2015/components/tn-app-notification/tn-app-notification.component.js +4 -6
- package/esm2015/services/canbo-hoso.service.js +8 -9
- package/fesm2015/tnx-shared.js +10 -13
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/canbo-hoso.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -20893,11 +20893,8 @@
|
|
|
20893
20893
|
finally { if (e_4) throw e_4.error; }
|
|
20894
20894
|
}
|
|
20895
20895
|
}
|
|
20896
|
-
if (item.ngaySinh) {
|
|
20897
|
-
item.
|
|
20898
|
-
}
|
|
20899
|
-
else {
|
|
20900
|
-
item.strNgaySinh = item.ngaySinh2;
|
|
20896
|
+
if (!item.ngaySinh && item.ngaySinh2) {
|
|
20897
|
+
item.ngaySinh = new Date(item.ngaySinh2);
|
|
20901
20898
|
}
|
|
20902
20899
|
item.hocHamHocVi
|
|
20903
20900
|
= item.idHocHam && item.idHocVi
|
|
@@ -20989,7 +20986,8 @@
|
|
|
20989
20986
|
}),
|
|
20990
20987
|
new EntityPickerColumn({
|
|
20991
20988
|
label: 'Ngày sinh',
|
|
20992
|
-
code: '
|
|
20989
|
+
code: 'ngaySinh',
|
|
20990
|
+
dataType: exports.DataType.date,
|
|
20993
20991
|
isSearchable: true,
|
|
20994
20992
|
width: '120px',
|
|
20995
20993
|
notInFields: true,
|
|
@@ -21068,8 +21066,9 @@
|
|
|
21068
21066
|
}),
|
|
21069
21067
|
new EntityPickerColumn({
|
|
21070
21068
|
label: 'Ngày sinh',
|
|
21071
|
-
code: '
|
|
21069
|
+
code: 'ngaySinh',
|
|
21072
21070
|
isSearchable: true,
|
|
21071
|
+
dataType: exports.DataType.date,
|
|
21073
21072
|
width: '120px',
|
|
21074
21073
|
notInFields: true,
|
|
21075
21074
|
textAlign: 1,
|
|
@@ -47830,7 +47829,7 @@
|
|
|
47830
47829
|
EntityPickerComponent.decorators = [
|
|
47831
47830
|
{ type: i0.Component, args: [{
|
|
47832
47831
|
selector: 'entity-picker',
|
|
47833
|
-
template: "<crud-list #crudList [templates]=\"children\" [model]=\"model\" [setting]=\"setting\" [dataSource]=\"model.dataSource\"\n [hiddenDelete]=\"readOnly\" (onReload)=\"_triggerProcessData($event)\" (onAdd)=\"_add($event)\" (onEdit)=\"_edit($event)\"\n (onView)=\"_view($event)\" (onDelete)=\"_delete($event)\" (onDeleteMultiple)=\"_deleteMultiple($event)\"\n (onReloaded)=\"_unmarkLoading()\" class=\"--no-wrapper-padding\">\n <ng-template #toolbar let-crudList=\"crudList\">\n <button *ngIf=\"!readOnly\" type=\"button\" pButton icon=\"pi pi-external-link\" class=\"p-button-text\"\n [label]=\"control.title\" [disabled]=\"control.disabled\" (click)=\"selectEntity()\"></button>\n <ng-container *ngIf=\"required\">\n <span class=\"star-required\">*</span>\n </ng-container>\n <ng-container *ngIf=\"control.multiple && !readOnly && !setting.hiddenCheckbox\">\n <button type=\"button\" pButton class=\"p-button-warning p-button-text p-button-rounded link-or-action\"\n icon=\"pi pi-trash\" label=\"B\u1ECF m\u1EE5c \u0111\u00E3 ch\u1ECDn\" tooltipPosition=\"top\"\n [disabled]=\"model.selectedItems.length == 0\" (click)=\"handleUnMultiPickEntity()\"></button>\n </ng-container>\n </ng-template>\n <ng-template #function let-crudList=\"crudList\" let-rowData=\"rowData\" let-index=\"index\">\n <div *ngIf=\"!control.rowButtonTemplate && !readOnly\" class=\"p-toolbar-group-center button-group\">\n <ng-container *ngIf=\"control.rowButtonBeforeTemplate\" class=\"p-toolbar-group-center button-group\">\n <ng-container\n *ngTemplateOutlet=\"control.rowButtonBeforeTemplate; context: {rowData: rowData, rowIndex: index, control: control}\">\n </ng-container>\n </ng-container>\n <button type=\"button\" pButton class=\"p-button-warning p-button-text p-button-rounded link-or-action\"\n icon=\"pi pi-trash\" pTooltip=\"B\u1ECF ch\u1ECDn m\u1EE5c n\u00E0y\" tooltipPosition=\"top\"\n (click)=\"handleUnPickEntity(rowData)\"></button>\n </div>\n <div *ngIf=\"control.rowButtonTemplate\" class=\"p-toolbar-group-center button-group\">\n <ng-container\n *ngTemplateOutlet=\"control.rowButtonTemplate; context: {rowData: rowData, rowIndex: index, control: control}\">\n </ng-container>\n </div>\n </ng-template>\n</crud-list>\n<tn-dialog #dialog *ngIf=\"showDetailForm\" styleClass=\"entity-picker-box-dialog no-padding\" [useDefaultScrollBar]=\"true\"\n [header]=\"control.title | translate\" [popupSize]=\"popupSize\" (onHide)=\"handleHide($event)\">\n <entity-picker-box #entityPickerBox [control]=\"control\" [parentSetting]=\"setting\" [advanceData]=\"advanceData\"\n (onRowSelect)=\"handleEntityPickerBoxRowSelect($event)\" [selectedValue]=\"selectedValue\"\n (onChanged)=\"handleChangeEntity($event)\" (onSelect)=\"handleSelectEntity($event)\"\n (onUnSelect)=\"handleUnSelectEntity($event)\" (onDone)=\"handleHide($event)\">\n </entity-picker-box>\n <ng-template #footer>\n <button type=\"button\" pButton class=\"p-button-text\" (click)=\"onClickSubmitButton($event, entityPickerBox)\"\n [label]=\"'Ho\u00E0n th\u00E0nh' | translate\" icon=\"pi pi-check\"></button>\n </ng-template>\n</tn-dialog>",
|
|
47832
|
+
template: "<crud-list #crudList [templates]=\"children\" [model]=\"model\" [setting]=\"setting\" [dataSource]=\"model.dataSource\"\n [hiddenDelete]=\"readOnly\" (onReload)=\"_triggerProcessData($event)\" (onAdd)=\"_add($event)\" (onEdit)=\"_edit($event)\"\n (onView)=\"_view($event)\" (onDelete)=\"_delete($event)\" (onDeleteMultiple)=\"_deleteMultiple($event)\"\n [showScrollHorizontal]=\"true\" (onReloaded)=\"_unmarkLoading()\" class=\"--no-wrapper-padding\">\n <ng-template #toolbar let-crudList=\"crudList\">\n <button *ngIf=\"!readOnly\" type=\"button\" pButton icon=\"pi pi-external-link\" class=\"p-button-text\"\n [label]=\"control.title\" [disabled]=\"control.disabled\" (click)=\"selectEntity()\"></button>\n <ng-container *ngIf=\"required\">\n <span class=\"star-required\">*</span>\n </ng-container>\n <ng-container *ngIf=\"control.multiple && !readOnly && !setting.hiddenCheckbox\">\n <button type=\"button\" pButton class=\"p-button-warning p-button-text p-button-rounded link-or-action\"\n icon=\"pi pi-trash\" label=\"B\u1ECF m\u1EE5c \u0111\u00E3 ch\u1ECDn\" tooltipPosition=\"top\"\n [disabled]=\"model.selectedItems.length == 0\" (click)=\"handleUnMultiPickEntity()\"></button>\n </ng-container>\n </ng-template>\n <ng-template #function let-crudList=\"crudList\" let-rowData=\"rowData\" let-index=\"index\">\n <div *ngIf=\"!control.rowButtonTemplate && !readOnly\" class=\"p-toolbar-group-center button-group\">\n <ng-container *ngIf=\"control.rowButtonBeforeTemplate\" class=\"p-toolbar-group-center button-group\">\n <ng-container\n *ngTemplateOutlet=\"control.rowButtonBeforeTemplate; context: {rowData: rowData, rowIndex: index, control: control}\">\n </ng-container>\n </ng-container>\n <button type=\"button\" pButton class=\"p-button-warning p-button-text p-button-rounded link-or-action\"\n icon=\"pi pi-trash\" pTooltip=\"B\u1ECF ch\u1ECDn m\u1EE5c n\u00E0y\" tooltipPosition=\"top\"\n (click)=\"handleUnPickEntity(rowData)\"></button>\n </div>\n <div *ngIf=\"control.rowButtonTemplate\" class=\"p-toolbar-group-center button-group\">\n <ng-container\n *ngTemplateOutlet=\"control.rowButtonTemplate; context: {rowData: rowData, rowIndex: index, control: control}\">\n </ng-container>\n </div>\n </ng-template>\n</crud-list>\n<tn-dialog #dialog *ngIf=\"showDetailForm\" styleClass=\"entity-picker-box-dialog no-padding\" [useDefaultScrollBar]=\"true\"\n [header]=\"control.title | translate\" [popupSize]=\"popupSize\" (onHide)=\"handleHide($event)\">\n <entity-picker-box #entityPickerBox [control]=\"control\" [parentSetting]=\"setting\" [advanceData]=\"advanceData\"\n (onRowSelect)=\"handleEntityPickerBoxRowSelect($event)\" [selectedValue]=\"selectedValue\"\n (onChanged)=\"handleChangeEntity($event)\" (onSelect)=\"handleSelectEntity($event)\"\n (onUnSelect)=\"handleUnSelectEntity($event)\" (onDone)=\"handleHide($event)\">\n </entity-picker-box>\n <ng-template #footer>\n <button type=\"button\" pButton class=\"p-button-text\" (click)=\"onClickSubmitButton($event, entityPickerBox)\"\n [label]=\"'Ho\u00E0n th\u00E0nh' | translate\" icon=\"pi pi-check\"></button>\n </ng-template>\n</tn-dialog>",
|
|
47834
47833
|
providers: [
|
|
47835
47834
|
{
|
|
47836
47835
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -53151,8 +53150,8 @@
|
|
|
53151
53150
|
TnAppNotificationComponent.prototype.afterGetNotication = function () {
|
|
53152
53151
|
return __awaiter(this, void 0, void 0, function () {
|
|
53153
53152
|
var idsUserCreated, userRes, lstUserInfo;
|
|
53154
|
-
return __generator(this, function (
|
|
53155
|
-
switch (
|
|
53153
|
+
return __generator(this, function (_b) {
|
|
53154
|
+
switch (_b.label) {
|
|
53156
53155
|
case 0:
|
|
53157
53156
|
idsUserCreated = [];
|
|
53158
53157
|
this.notifications.forEach(function (element) {
|
|
@@ -53166,7 +53165,7 @@
|
|
|
53166
53165
|
}
|
|
53167
53166
|
return [4 /*yield*/, this._userV5Service.getAll([this.newFilter('id', exports.Operator.in, idsUserCreated)], 'avatar,id')];
|
|
53168
53167
|
case 1:
|
|
53169
|
-
userRes =
|
|
53168
|
+
userRes = _b.sent();
|
|
53170
53169
|
if (!userRes.success || !userRes.data || userRes.data.length === 0) {
|
|
53171
53170
|
return [2 /*return*/];
|
|
53172
53171
|
}
|
|
@@ -53218,15 +53217,15 @@
|
|
|
53218
53217
|
TnAppNotificationComponent.prototype.goToLink = function (item) {
|
|
53219
53218
|
return __awaiter(this, void 0, void 0, function () {
|
|
53220
53219
|
var link;
|
|
53221
|
-
return __generator(this, function (
|
|
53222
|
-
switch (
|
|
53220
|
+
return __generator(this, function (_b) {
|
|
53221
|
+
switch (_b.label) {
|
|
53223
53222
|
case 0:
|
|
53224
53223
|
if (!!this.isReaded(item)) return [3 /*break*/, 2];
|
|
53225
53224
|
return [4 /*yield*/, this.readById(item)];
|
|
53226
53225
|
case 1:
|
|
53227
|
-
|
|
53226
|
+
_b.sent();
|
|
53228
53227
|
this.totalUnRead--;
|
|
53229
|
-
|
|
53228
|
+
_b.label = 2;
|
|
53230
53229
|
case 2:
|
|
53231
53230
|
// Save current path to go back
|
|
53232
53231
|
localStorage.setItem('currentUrl', top.location.href);
|
|
@@ -53262,11 +53261,9 @@
|
|
|
53262
53261
|
this.bounceNoti = false;
|
|
53263
53262
|
};
|
|
53264
53263
|
TnAppNotificationComponent.prototype.handleClicked = function () {
|
|
53265
|
-
|
|
53266
|
-
|
|
53267
|
-
|
|
53268
|
-
var thongBaoDomain = this.environment.clientDomain.thongbaoDomain + "/quanly-thongbao-noibo";
|
|
53269
|
-
window.open(thongBaoDomain);
|
|
53264
|
+
var _a;
|
|
53265
|
+
var appCode = (_a = window['appCode']) !== null && _a !== void 0 ? _a : '';
|
|
53266
|
+
this._router.navigateByUrl("/" + appCode.toLowerCase() + "/thong-bao");
|
|
53270
53267
|
};
|
|
53271
53268
|
return TnAppNotificationComponent;
|
|
53272
53269
|
}(ComponentBase));
|