ps-toolkit-ui 1.11.72 → 1.11.73
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/ps-toolkit-ui.umd.js +16 -17
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +3 -3
- package/esm2015/lib/components/form/date/form.date.component.js +1 -2
- package/fesm2015/ps-toolkit-ui.js +2 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1814,7 +1814,7 @@
|
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
1816
|
var setD = function (n, vl) {
|
|
1817
|
-
var e_1,
|
|
1817
|
+
var e_1, _b;
|
|
1818
1818
|
if (d instanceof FormData) {
|
|
1819
1819
|
if (vl instanceof Array) {
|
|
1820
1820
|
try {
|
|
@@ -1826,7 +1826,7 @@
|
|
|
1826
1826
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1827
1827
|
finally {
|
|
1828
1828
|
try {
|
|
1829
|
-
if (vl_1_1 && !vl_1_1.done && (
|
|
1829
|
+
if (vl_1_1 && !vl_1_1.done && (_b = vl_1.return)) _b.call(vl_1);
|
|
1830
1830
|
}
|
|
1831
1831
|
finally { if (e_1) throw e_1.error; }
|
|
1832
1832
|
}
|
|
@@ -1850,20 +1850,20 @@
|
|
|
1850
1850
|
}
|
|
1851
1851
|
};
|
|
1852
1852
|
this.inputs.forEach(function (inp) {
|
|
1853
|
-
var e_2,
|
|
1853
|
+
var e_2, _b;
|
|
1854
1854
|
var vl = inp.data();
|
|
1855
1855
|
if (vl !== null) {
|
|
1856
1856
|
if (typeof vl === 'object' && !(vl instanceof Array)) {
|
|
1857
1857
|
try {
|
|
1858
|
-
for (var
|
|
1859
|
-
var
|
|
1858
|
+
for (var _c = __values(Object.entries(vl)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1859
|
+
var _e = __read(_d.value, 2), key = _e[0], value = _e[1];
|
|
1860
1860
|
setD(key, value);
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
1863
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1864
1864
|
finally {
|
|
1865
1865
|
try {
|
|
1866
|
-
if (
|
|
1866
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
1867
1867
|
}
|
|
1868
1868
|
finally { if (e_2) throw e_2.error; }
|
|
1869
1869
|
}
|
|
@@ -1881,7 +1881,7 @@
|
|
|
1881
1881
|
d = {};
|
|
1882
1882
|
}
|
|
1883
1883
|
this.inputs.forEach(function (inp) {
|
|
1884
|
-
var e_3,
|
|
1884
|
+
var e_3, _b;
|
|
1885
1885
|
var vl = inp.data();
|
|
1886
1886
|
if (vl !== null && vl !== '') {
|
|
1887
1887
|
if (vl instanceof Array) {
|
|
@@ -1894,7 +1894,7 @@
|
|
|
1894
1894
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1895
1895
|
finally {
|
|
1896
1896
|
try {
|
|
1897
|
-
if (vl_2_1 && !vl_2_1.done && (
|
|
1897
|
+
if (vl_2_1 && !vl_2_1.done && (_b = vl_2.return)) _b.call(vl_2);
|
|
1898
1898
|
}
|
|
1899
1899
|
finally { if (e_3) throw e_3.error; }
|
|
1900
1900
|
}
|
|
@@ -1908,8 +1908,8 @@
|
|
|
1908
1908
|
};
|
|
1909
1909
|
FormClass.prototype.setData = function (d) {
|
|
1910
1910
|
this.inputs.forEach(function (inp) {
|
|
1911
|
-
var
|
|
1912
|
-
|
|
1911
|
+
var _a;
|
|
1912
|
+
var iv = (_a = _.get(d, inp.name)) !== null && _a !== void 0 ? _a : null;
|
|
1913
1913
|
if (inp.type === exports.InputType.Vehicle) {
|
|
1914
1914
|
var ivt = _.get(d, inp.name + 'Type');
|
|
1915
1915
|
inp.setValue({ Value: iv, Type: ivt }, true);
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
return this.getSelectedOptions(opts).map(function (x) { return x.value; });
|
|
2117
2117
|
};
|
|
2118
2118
|
InputClass.prototype.getSelectedOptions = function (opts) {
|
|
2119
|
-
var e_4,
|
|
2119
|
+
var e_4, _b;
|
|
2120
2120
|
if (opts === void 0) { opts = this.options; }
|
|
2121
2121
|
var l = [];
|
|
2122
2122
|
try {
|
|
@@ -2132,7 +2132,7 @@
|
|
|
2132
2132
|
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
2133
2133
|
finally {
|
|
2134
2134
|
try {
|
|
2135
|
-
if (opts_1_1 && !opts_1_1.done && (
|
|
2135
|
+
if (opts_1_1 && !opts_1_1.done && (_b = opts_1.return)) _b.call(opts_1);
|
|
2136
2136
|
}
|
|
2137
2137
|
finally { if (e_4) throw e_4.error; }
|
|
2138
2138
|
}
|
|
@@ -2188,10 +2188,10 @@
|
|
|
2188
2188
|
this.rows = rows;
|
|
2189
2189
|
}
|
|
2190
2190
|
AccordionClass.prototype.check = function () {
|
|
2191
|
-
var e_5,
|
|
2191
|
+
var e_5, _b;
|
|
2192
2192
|
try {
|
|
2193
|
-
for (var
|
|
2194
|
-
var row =
|
|
2193
|
+
for (var _c = __values(this.rows), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
2194
|
+
var row = _d.value;
|
|
2195
2195
|
if (!row.form.check()) {
|
|
2196
2196
|
row.open();
|
|
2197
2197
|
return false;
|
|
@@ -2201,7 +2201,7 @@
|
|
|
2201
2201
|
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
2202
2202
|
finally {
|
|
2203
2203
|
try {
|
|
2204
|
-
if (
|
|
2204
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
2205
2205
|
}
|
|
2206
2206
|
finally { if (e_5) throw e_5.error; }
|
|
2207
2207
|
}
|
|
@@ -3847,7 +3847,6 @@
|
|
|
3847
3847
|
};
|
|
3848
3848
|
};
|
|
3849
3849
|
FormDateComponent.prototype.setInpValue = function (v) {
|
|
3850
|
-
console.log(v, 'setInpValue');
|
|
3851
3850
|
if (v === null) {
|
|
3852
3851
|
this.inp.clear();
|
|
3853
3852
|
this.active = moment__namespace().locale('fa');
|