tnx-shared 5.1.646 → 5.1.647
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 +21 -15
- 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/addressv2/address-new.component.d.ts.map +1 -1
- package/esm2015/components/addressv2/address-new.component.js +22 -16
- package/fesm2015/tnx-shared.js +21 -15
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -67625,21 +67625,25 @@
|
|
|
67625
67625
|
callbackDataFinish: function (evt) {
|
|
67626
67626
|
_this.readyToReload = true;
|
|
67627
67627
|
},
|
|
67628
|
-
onChanged: function (
|
|
67628
|
+
onChanged: function (evt) {
|
|
67629
67629
|
var control = _this.formControls['idDistrict'];
|
|
67630
|
-
if (control == null) {
|
|
67630
|
+
if (control == null || control.hidden) {
|
|
67631
67631
|
control = _this.formControls['idWard'];
|
|
67632
67632
|
if (control && control._component && control._component.getData) {
|
|
67633
|
-
control._component.getData(
|
|
67633
|
+
control._component.getData([
|
|
67634
|
+
_this.newFilter('parentId', exports.Operator.equal, evt.value.idRoot)
|
|
67635
|
+
]);
|
|
67634
67636
|
}
|
|
67635
67637
|
}
|
|
67636
67638
|
},
|
|
67637
|
-
onAdjustedValue: function (
|
|
67639
|
+
onAdjustedValue: function (evt) {
|
|
67638
67640
|
var control = _this.formControls['idDistrict'];
|
|
67639
|
-
if (control == null) {
|
|
67641
|
+
if (control == null || control.hidden) {
|
|
67640
67642
|
control = _this.formControls['idWard'];
|
|
67641
67643
|
if (control && control._component && control._component.getData) {
|
|
67642
|
-
control._component.getData(
|
|
67644
|
+
control._component.getData([
|
|
67645
|
+
_this.newFilter('parentId', exports.Operator.equal, evt.value.idRoot)
|
|
67646
|
+
]);
|
|
67643
67647
|
}
|
|
67644
67648
|
}
|
|
67645
67649
|
}
|
|
@@ -67659,11 +67663,12 @@
|
|
|
67659
67663
|
mdWidth: this.control.districtWidth,
|
|
67660
67664
|
disabled: this._disabled,
|
|
67661
67665
|
hidden: true,
|
|
67662
|
-
onChanged: function (
|
|
67663
|
-
_this._modelData.idDistrict = value;
|
|
67666
|
+
onChanged: function (evt) {
|
|
67664
67667
|
var control = _this.formControls['idWard'];
|
|
67665
67668
|
if (control && control._component && control._component.getData) {
|
|
67666
|
-
control._component.getData(
|
|
67669
|
+
control._component.getData([
|
|
67670
|
+
_this.newFilter('parentId', exports.Operator.equal, evt.value.idRoot)
|
|
67671
|
+
]);
|
|
67667
67672
|
}
|
|
67668
67673
|
}
|
|
67669
67674
|
}),
|
|
@@ -67674,12 +67679,13 @@
|
|
|
67674
67679
|
required: this.control.required && this.control.requiredWard,
|
|
67675
67680
|
baseService: this.control.baseService,
|
|
67676
67681
|
defaultFilters: [{ field: 'level', operator: exports.Operator.equal, value: exports.ENUM_DON_VI_HANH_CHINH.PHUONG_XA.toString() }],
|
|
67677
|
-
modifyFilter:
|
|
67678
|
-
|
|
67679
|
-
|
|
67680
|
-
|
|
67681
|
-
|
|
67682
|
-
}
|
|
67682
|
+
// modifyFilter: (filters: Filter[]) =>
|
|
67683
|
+
// {
|
|
67684
|
+
// const parentId = this.formControls['idDistrict'] && !this.formControls['idDistrict'].hidden
|
|
67685
|
+
// ? this._modelData.idDistrict
|
|
67686
|
+
// : this._modelData.idProvince;
|
|
67687
|
+
// filters.push({ field: 'parentId', operator: Operator.equal, value: parentId });
|
|
67688
|
+
// },
|
|
67683
67689
|
valueField: 'id',
|
|
67684
67690
|
displayField: 'name',
|
|
67685
67691
|
fieldPlus: 'idRoot',
|