tnx-shared 5.3.375 → 5.3.376
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 +16 -6
- 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/entity-picker/entity-picker-dialog/components/entity-picker-search-form/entity-picker-search-form.component.d.ts +1 -0
- package/components/entity-picker/entity-picker-dialog/components/entity-picker-search-form/entity-picker-search-form.component.d.ts.map +1 -1
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-search-form/entity-picker-search-form.component.js +17 -7
- package/fesm2015/tnx-shared.js +16 -6
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -47708,6 +47708,12 @@
|
|
|
47708
47708
|
var _this = _super.call(this, _injector) || this;
|
|
47709
47709
|
_this._injector = _injector;
|
|
47710
47710
|
_this.datasourceFieldFilter = [];
|
|
47711
|
+
_this.formData = {
|
|
47712
|
+
placeholder: 'linh123\nnam123',
|
|
47713
|
+
doiTuong: 'người dùng',
|
|
47714
|
+
iconSave: 'pi pi-search',
|
|
47715
|
+
labelSave: 'Tìm kiếm'
|
|
47716
|
+
};
|
|
47711
47717
|
_this.onSearch = new i0.EventEmitter();
|
|
47712
47718
|
return _this;
|
|
47713
47719
|
}
|
|
@@ -47732,6 +47738,7 @@
|
|
|
47732
47738
|
dataSource: this.datasourceFieldFilter,
|
|
47733
47739
|
required: true,
|
|
47734
47740
|
mdWidth: 12,
|
|
47741
|
+
hidden: !this.datasourceFieldFilter.length,
|
|
47735
47742
|
onChanged: function (evt) {
|
|
47736
47743
|
var plusPlaceholder = evt.parentModel.fieldFilter == 'email' ? '@gmail.com' : '';
|
|
47737
47744
|
evt.formControls['lstDataCheck'].placeholder = "linh123" + plusPlaceholder + "\nnam123" + plusPlaceholder;
|
|
@@ -47739,16 +47746,16 @@
|
|
|
47739
47746
|
}),
|
|
47740
47747
|
new TextAreaControlSchema({
|
|
47741
47748
|
field: 'lstDataCheck',
|
|
47742
|
-
label:
|
|
47743
|
-
description:
|
|
47749
|
+
label: "Danh s\u00E1ch " + this.formData.doiTuong,
|
|
47750
|
+
description: "nh\u1EADp m\u1ED7i " + this.formData.doiTuong + " l\u00E0 m\u1ED9t d\u00F2ng",
|
|
47744
47751
|
mdWidth: 12,
|
|
47745
47752
|
rows: 10,
|
|
47746
47753
|
required: true,
|
|
47747
|
-
placeholder:
|
|
47754
|
+
placeholder: this.formData.placeholder
|
|
47748
47755
|
}),
|
|
47749
47756
|
new TextAreaControlSchema({
|
|
47750
47757
|
field: 'lstDataNotExist',
|
|
47751
|
-
label:
|
|
47758
|
+
label: "Danh s\u00E1ch " + this.formData.doiTuong + " kh\u00F4ng h\u1EE3p l\u1EC7",
|
|
47752
47759
|
hidden: true,
|
|
47753
47760
|
mdWidth: 12
|
|
47754
47761
|
}),
|
|
@@ -47765,7 +47772,9 @@
|
|
|
47765
47772
|
EntityPickerSearchFormComponent.prototype.initDataAdd = function (evt) {
|
|
47766
47773
|
return __awaiter(this, void 0, void 0, function () {
|
|
47767
47774
|
return __generator(this, function (_a) {
|
|
47768
|
-
|
|
47775
|
+
if (this.datasourceFieldFilter.length) {
|
|
47776
|
+
evt.rootModel.fieldFilter = this.datasourceFieldFilter[0].id;
|
|
47777
|
+
}
|
|
47769
47778
|
evt.rootModel.lstDataCheck = undefined;
|
|
47770
47779
|
evt.rootModel.lstDataNotExist = undefined;
|
|
47771
47780
|
return [2 /*return*/];
|
|
@@ -47801,7 +47810,7 @@
|
|
|
47801
47810
|
EntityPickerSearchFormComponent.decorators = [
|
|
47802
47811
|
{ type: i0.Component, args: [{
|
|
47803
47812
|
selector: 'entity-picker-search-form',
|
|
47804
|
-
template: "<crud-form #crudForm [setting]=\"setting\" [context]=\"context\" [disableCaching]=\"true\" [(data)]=\"model.data\"\n (onFormReady)=\"_handleFormReady($event)\">\n</crud-form>\n<ng-template #buttonTemplate>\n <button pButton type=\"button\" icon=\"
|
|
47813
|
+
template: "<crud-form #crudForm [setting]=\"setting\" [context]=\"context\" [disableCaching]=\"true\" [(data)]=\"model.data\"\n (onFormReady)=\"_handleFormReady($event)\">\n</crud-form>\n<ng-template #buttonTemplate>\n <button pButton type=\"button\" [icon]=\"formData.iconSave\" class=\"p-button-text\" [label]=\"formData.labelSave\"\n (click)=\"customSave()\"></button>\n <button pButton preventTab type=\"button\" icon=\"pi pi-replay\" class=\"p-button-text p-button-secondary\"\n [label]=\"'FORM.CANCEL' | translate\" (click)=\"_handleCancel($event)\"></button>\n</ng-template>",
|
|
47805
47814
|
providers: [ComponentContextService],
|
|
47806
47815
|
styles: [""]
|
|
47807
47816
|
},] }
|
|
@@ -47811,6 +47820,7 @@
|
|
|
47811
47820
|
]; };
|
|
47812
47821
|
EntityPickerSearchFormComponent.propDecorators = {
|
|
47813
47822
|
datasourceFieldFilter: [{ type: i0.Input }],
|
|
47823
|
+
formData: [{ type: i0.Input }],
|
|
47814
47824
|
lstDataNotExist: [{ type: i0.Input }],
|
|
47815
47825
|
onSearch: [{ type: i0.Output }]
|
|
47816
47826
|
};
|