tnx-shared 5.3.428 → 5.3.429
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 +36 -5
- 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/form-schema.d.ts +2 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.d.ts +8 -0
- package/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.d.ts.map +1 -1
- package/components/file-upload/file-upload.component.d.ts.map +1 -1
- package/components/service-file-upload/service-file-upload.component.d.ts.map +1 -1
- package/components/user-picker/user-picker-box/user-picker-box.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +1 -1
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.js +35 -5
- package/esm2015/components/file-upload/file-upload.component.js +1 -2
- package/esm2015/components/service-file-upload/service-file-upload.component.js +1 -2
- package/esm2015/components/user-picker/user-picker-box/user-picker-box.component.js +4 -1
- package/fesm2015/tnx-shared.js +36 -5
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -38393,7 +38393,6 @@
|
|
|
38393
38393
|
if (!dataKySo) {
|
|
38394
38394
|
this._notifierService.showWarning('Người dùng chưa cấu hình thông tin ký số');
|
|
38395
38395
|
}
|
|
38396
|
-
debugger;
|
|
38397
38396
|
this.forms.fileViewer.formData.data = {
|
|
38398
38397
|
fileId: sourceFileId,
|
|
38399
38398
|
isFileVersion: false,
|
|
@@ -40521,7 +40520,6 @@
|
|
|
40521
40520
|
if (!dataKySo) {
|
|
40522
40521
|
this._notifierService.showWarning('Người dùng chưa cấu hình thông tin ký số');
|
|
40523
40522
|
}
|
|
40524
|
-
debugger;
|
|
40525
40523
|
this.forms.fileViewer.formData.data = {
|
|
40526
40524
|
fileId: sourceFileId,
|
|
40527
40525
|
isFileVersion: false,
|
|
@@ -48910,8 +48908,16 @@
|
|
|
48910
48908
|
_this.onPick = new i0.EventEmitter();
|
|
48911
48909
|
_this.onPickAll = new i0.EventEmitter();
|
|
48912
48910
|
_this.onPickSelected = new i0.EventEmitter();
|
|
48911
|
+
_this.template = {};
|
|
48912
|
+
// Context truyền vào templateFilterHeader để template gọi ngược lại (onChange/reload)
|
|
48913
|
+
_this.filterHeaderContext = {
|
|
48914
|
+
$implicit: _this,
|
|
48915
|
+
onChange: function (value) { return _this.handleFilterHeaderChange(value); },
|
|
48916
|
+
reload: function () { return _this._triggerProcessData(); },
|
|
48917
|
+
};
|
|
48913
48918
|
_this.showFormAdvancedSearch = false;
|
|
48914
48919
|
_this.popupSizeSearchForm = new PopupSize({ width: 1000, height: 700 });
|
|
48920
|
+
_this.schemaData = {};
|
|
48915
48921
|
_this.lstDataNotExist = [];
|
|
48916
48922
|
return _this;
|
|
48917
48923
|
}
|
|
@@ -49154,14 +49160,35 @@
|
|
|
49154
49160
|
this.searchData = model;
|
|
49155
49161
|
this._triggerProcessData();
|
|
49156
49162
|
};
|
|
49163
|
+
EntityPickerDataComponent.prototype.handleFilterHeaderChange = function (value) {
|
|
49164
|
+
console.log(value);
|
|
49165
|
+
// Nhận sự kiện onChange từ templateFilterHeader, mặc định lọc lại lưới
|
|
49166
|
+
this._triggerProcessData();
|
|
49167
|
+
};
|
|
49168
|
+
EntityPickerDataComponent.prototype.findTemplate = function (templateName) {
|
|
49169
|
+
var _a;
|
|
49170
|
+
return (_a = this._commonService.findTemplateFromList(this.children, templateName)) !== null && _a !== void 0 ? _a : this._commonService.findTemplateFromList(this.templates, templateName);
|
|
49171
|
+
};
|
|
49172
|
+
EntityPickerDataComponent.prototype.hasTemplate = function (templateName) {
|
|
49173
|
+
if (this.template[templateName] === undefined) {
|
|
49174
|
+
this.template[templateName] = this.findTemplate(templateName);
|
|
49175
|
+
}
|
|
49176
|
+
return this.template[templateName] != null;
|
|
49177
|
+
};
|
|
49178
|
+
EntityPickerDataComponent.prototype.getTemplate = function (templateName) {
|
|
49179
|
+
if (this.template[templateName] === undefined) {
|
|
49180
|
+
this.template[templateName] = this.findTemplate(templateName);
|
|
49181
|
+
}
|
|
49182
|
+
return this.template[templateName];
|
|
49183
|
+
};
|
|
49157
49184
|
return EntityPickerDataComponent;
|
|
49158
49185
|
}(DataListBase));
|
|
49159
49186
|
EntityPickerDataComponent.decorators = [
|
|
49160
49187
|
{ type: i0.Component, args: [{
|
|
49161
49188
|
selector: 'app-entity-picker-data',
|
|
49162
|
-
template: "<crud-list #crudList [templates]=\"templates\" [menuButtons]=\"getMenuButtons\" [model]=\"model\" [setting]=\"setting\"
|
|
49189
|
+
template: "<crud-list #crudList [templates]=\"templates\" [menuButtons]=\"getMenuButtons\" [model]=\"model\" [setting]=\"setting\"\n [dataSource]=\"model.dataSource\" [showScrollHorizontal]=\"true\" (onContentInit)=\"onContentInit.emit($event)\"\n (onReload)=\"_triggerProcessData($event)\" (onAdd)=\"_add($event)\" (onRowSelect)=\"handleRowSelect($event)\"\n (onEdit)=\"_edit($event)\" (onView)=\"_view($event)\" (onDelete)=\"_delete($event)\"\n (onDeleteMultiple)=\"_deleteMultiple($event)\" (onReloaded)=\"_unmarkLoading()\">\n <ng-template #customTitle>\n <h1 [innerHTML]=\"dom.bypassSecurityTrustHtml(control.titleUnPicked)\"></h1>\n <div class=\"header-search-box\" *ngIf=\"control.templateFilterHeader\">\n <ng-container *ngTemplateOutlet=\"control.templateFilterHeader; context: filterHeaderContext\">\n </ng-container>\n </div>\n </ng-template>\n\n <ng-template #toolbar let-crudList=\"crudList\" let-selectedItems=\"selectedItems\">\n <button\n *ngIf=\"(isSingleSelection || model.total <= 0) && !model.dataSource.length && setting.hiddenAdvanceSearch\"\n pButton style=\"visibility: hidden\"></button>\n <button *ngIf=\"!isSingleSelection && model.total > 0\" type=\"button\" pButton pRipple\n label=\"L\u1EA5y t\u1EA5t c\u1EA3 ({{model.total}})\" icon=\"pi pi-angle-double-right\" class=\"p-button-text p-button-success\"\n [disabled]=\"model.loading\" (click)=\"pickAll()\"></button>\n <button *ngIf=\"!isSingleSelection && selectedItems.length > 0\" type=\"button\" pButton pRipple\n label=\"L\u1EA5y m\u1EE5c \u0111\u00E3 ch\u1ECDn ({{selectedItems.length}})\" icon=\"pi pi-angle-right\"\n class=\"p-button-text p-button-success\" [disabled]=\"model.loading\"\n (click)=\"pickSelected(selectedItems)\"></button>\n <button *ngIf=\"datasourceFieldFilter.length\" type=\"button\" pButton pRipple label=\"T\u00ECm ki\u1EBFm nhi\u1EC1u ng\u01B0\u1EDDi d\u00F9ng\"\n icon=\"pi pi-search\" class=\"p-button-text p-button-primary\" [disabled]=\"model.loading\"\n (click)=\"handleAdvansearch()\"></button>\n <button *ngIf=\"datasourceFieldFilter.length && searchData\" type=\"button\" pButton pRipple\n label=\"X\u00F3a danh s\u00E1ch t\u00ECm ki\u1EBFm\" pTooltip=\"X\u00F3a t\u1EA5t c\u1EA3 ng\u01B0\u1EDDi d\u00F9ng \u1EDF Danh s\u00E1ch t\u00ECm ki\u1EBFm\" icon=\"pi pi-times\"\n class=\"p-button-text p-button-primary\" [disabled]=\"model.loading\" (click)=\"handleSearch(null)\"></button>\n </ng-template>\n <ng-template let-crudList=\"crudList\" #function let-rowData=\"rowData\">\n <button pButton type=\"button\" class=\"link-or-action p-button-success p-button-text p-button-rounded\"\n icon=\"pi pi-check\" pTooltip=\"Ch\u1ECDn m\u1EE5c n\u00E0y\" tooltipPosition=\"top\" [disabled]=\"rowData.disabled\"\n (click)=\"pickEntity(rowData)\"></button>\n </ng-template>\n</crud-list>\n\n\n<tn-dialog *ngIf=\"showFormAdvancedSearch\" #dialog [styleClass]=\"'address-form'\" [header]=\"'T\u00ECm ki\u1EBFm nhi\u1EC1u ng\u01B0\u1EDDi d\u00F9ng'\"\n [popupSize]=\"popupSizeSearchForm\" [maskClass]=\"setting.maskClass\" (onHide)=\"showFormAdvancedSearch = false\">\n <entity-picker-search-form #formBase [parentModel]=\"model\" [parentContext]=\"context\" [parentSetting]=\"setting\"\n [datasourceFieldFilter]=\"datasourceFieldFilter\" [lstDataNotExist]=\"lstDataNotExist\" [model]=\"formModel\"\n (onSearch)=\"handleSearch($event)\" (onCancel)=\"showFormAdvancedSearch = false;\">\n </entity-picker-search-form>\n</tn-dialog>",
|
|
49163
49190
|
providers: [ComponentContextService],
|
|
49164
|
-
styles: ["::ng-deep app-entity-picker-data .custom-card{padding:.5em!important}"]
|
|
49191
|
+
styles: ["::ng-deep app-entity-picker-data .custom-card{padding:.5em!important}::ng-deep app-entity-picker-data .header-search-box{padding:1rem 0}::ng-deep app-entity-picker-data .header-search-box p-dropdown .p-dropdown{min-width:300px}"]
|
|
49165
49192
|
},] }
|
|
49166
49193
|
];
|
|
49167
49194
|
EntityPickerDataComponent.ctorParameters = function () { return [
|
|
@@ -49183,7 +49210,8 @@
|
|
|
49183
49210
|
onRowSelect: [{ type: i0.Output }],
|
|
49184
49211
|
onPick: [{ type: i0.Output }],
|
|
49185
49212
|
onPickAll: [{ type: i0.Output }],
|
|
49186
|
-
onPickSelected: [{ type: i0.Output }]
|
|
49213
|
+
onPickSelected: [{ type: i0.Output }],
|
|
49214
|
+
children: [{ type: i0.ContentChildren, args: [i0.TemplateRef,] }]
|
|
49187
49215
|
};
|
|
49188
49216
|
|
|
49189
49217
|
var EntityPickerSelectedComponent = /** @class */ (function (_super) {
|
|
@@ -57637,6 +57665,9 @@
|
|
|
57637
57665
|
return _this;
|
|
57638
57666
|
}
|
|
57639
57667
|
UserPickerBoxComponent.prototype.ngOnInit = function () {
|
|
57668
|
+
if (this.controlSetting.templateFilterHeader) {
|
|
57669
|
+
this.control.templateFilterHeader = this.controlSetting.templateFilterHeader;
|
|
57670
|
+
}
|
|
57640
57671
|
this.control.plusUrl = 'ForUserPicker';
|
|
57641
57672
|
this.control.filterWhileProcess = [
|
|
57642
57673
|
this.newFilter('userType', exports.Operator.equal, this.controlSetting.userType)
|