tnx-shared 5.3.361 → 5.3.363
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 +33 -13
- 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 +10 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +11 -1
- package/esm2015/components/address/address.component.js +11 -11
- package/fesm2015/tnx-shared.js +20 -10
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -642,14 +642,24 @@
|
|
|
642
642
|
}) : function (o, v) {
|
|
643
643
|
o["default"] = v;
|
|
644
644
|
};
|
|
645
|
+
var ownKeys = function (o) {
|
|
646
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
647
|
+
var ar = [];
|
|
648
|
+
for (var k in o)
|
|
649
|
+
if (Object.prototype.hasOwnProperty.call(o, k))
|
|
650
|
+
ar[ar.length] = k;
|
|
651
|
+
return ar;
|
|
652
|
+
};
|
|
653
|
+
return ownKeys(o);
|
|
654
|
+
};
|
|
645
655
|
function __importStar(mod) {
|
|
646
656
|
if (mod && mod.__esModule)
|
|
647
657
|
return mod;
|
|
648
658
|
var result = {};
|
|
649
659
|
if (mod != null)
|
|
650
|
-
for (var k
|
|
651
|
-
if (k !== "default"
|
|
652
|
-
__createBinding(result, mod, k);
|
|
660
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
661
|
+
if (k[i] !== "default")
|
|
662
|
+
__createBinding(result, mod, k[i]);
|
|
653
663
|
__setModuleDefault(result, mod);
|
|
654
664
|
return result;
|
|
655
665
|
}
|
|
@@ -2145,6 +2155,16 @@
|
|
|
2145
2155
|
_this.districtWidth = 2;
|
|
2146
2156
|
_this.provinceWidth = 3;
|
|
2147
2157
|
_this.showInBox = false;
|
|
2158
|
+
_this.provinceLabel = 'Tỉnh/Thành phố';
|
|
2159
|
+
_this.provincePlaceholder = 'Chọn Tỉnh/Thành phố';
|
|
2160
|
+
_this.districtLabel = 'Quận/Huyện';
|
|
2161
|
+
_this.districtPlaceholder = 'Chọn Quận/Huyện';
|
|
2162
|
+
_this.wardLabel = 'Phường/Xã';
|
|
2163
|
+
_this.wardPlaceholder = 'Chọn Phường/Xã';
|
|
2164
|
+
_this.streetLabel = 'Đường';
|
|
2165
|
+
_this.streetPlaceholder = 'Ví dụ: Nguyễn Xiển';
|
|
2166
|
+
_this.noLabel = 'Số nhà';
|
|
2167
|
+
_this.noPlaceholder = 'Ví dụ: 09';
|
|
2148
2168
|
_this.hideHolder = true;
|
|
2149
2169
|
_this.caching = false;
|
|
2150
2170
|
for (var key in init) {
|
|
@@ -44370,8 +44390,8 @@
|
|
|
44370
44390
|
this.setting.schema = [
|
|
44371
44391
|
new DropdownControlSchema({
|
|
44372
44392
|
field: 'idProvince',
|
|
44373
|
-
label:
|
|
44374
|
-
placeholder:
|
|
44393
|
+
label: this.control.provinceLabel,
|
|
44394
|
+
placeholder: this.control.provincePlaceholder,
|
|
44375
44395
|
required: this.control.required && this.control.requiredProvince,
|
|
44376
44396
|
baseService: this.control.baseService,
|
|
44377
44397
|
plusUrl: this.control.caching ? 'GetDataProvince' : '',
|
|
@@ -44388,8 +44408,8 @@
|
|
|
44388
44408
|
}),
|
|
44389
44409
|
new DropdownControlSchema({
|
|
44390
44410
|
field: 'idDistrict',
|
|
44391
|
-
label:
|
|
44392
|
-
placeholder:
|
|
44411
|
+
label: this.control.districtLabel,
|
|
44412
|
+
placeholder: this.control.districtPlaceholder,
|
|
44393
44413
|
required: this.control.required && this.control.requiredDistrict,
|
|
44394
44414
|
baseService: this.control.baseService,
|
|
44395
44415
|
defaultFilters: [{ field: 'level', operator: exports.Operator.equal, value: exports.ENUM_DON_VI_HANH_CHINH.QUAN_HUYEN.toString() }],
|
|
@@ -44404,8 +44424,8 @@
|
|
|
44404
44424
|
}),
|
|
44405
44425
|
new DropdownControlSchema({
|
|
44406
44426
|
field: 'idWard',
|
|
44407
|
-
label:
|
|
44408
|
-
placeholder:
|
|
44427
|
+
label: this.control.wardLabel,
|
|
44428
|
+
placeholder: this.control.wardPlaceholder,
|
|
44409
44429
|
required: this.control.required && this.control.requiredWard,
|
|
44410
44430
|
baseService: this.control.baseService,
|
|
44411
44431
|
defaultFilters: [{ field: 'level', operator: exports.Operator.equal, value: exports.ENUM_DON_VI_HANH_CHINH.PHUONG_XA.toString() }],
|
|
@@ -44420,8 +44440,8 @@
|
|
|
44420
44440
|
}),
|
|
44421
44441
|
new TextControlSchema({
|
|
44422
44442
|
field: 'street',
|
|
44423
|
-
label:
|
|
44424
|
-
placeholder:
|
|
44443
|
+
label: this.control.streetLabel,
|
|
44444
|
+
placeholder: this.control.streetPlaceholder,
|
|
44425
44445
|
required: this.control.required && this.control.requiredStreet,
|
|
44426
44446
|
mdWidth: this.control.streetWidth,
|
|
44427
44447
|
disabled: this._disabled,
|
|
@@ -44429,8 +44449,8 @@
|
|
|
44429
44449
|
}),
|
|
44430
44450
|
new TextControlSchema({
|
|
44431
44451
|
field: 'no',
|
|
44432
|
-
label:
|
|
44433
|
-
placeholder:
|
|
44452
|
+
label: this.control.noLabel,
|
|
44453
|
+
placeholder: this.control.noPlaceholder,
|
|
44434
44454
|
required: this.control.required && this.control.requiredNo,
|
|
44435
44455
|
mdWidth: this.control.noWidth,
|
|
44436
44456
|
disabled: this._disabled,
|