kui-utils 0.0.20 → 0.0.22
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/cjs/index.js +4 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -267,7 +267,7 @@ var cropText = function (text, limit) {
|
|
|
267
267
|
|
|
268
268
|
var cases = [2, 0, 1, 1, 1, 2];
|
|
269
269
|
var declineByNumber = function (num, titles, withoutNumber) {
|
|
270
|
-
return num
|
|
270
|
+
return typeof num === "number"
|
|
271
271
|
? "".concat(withoutNumber ? "" : "".concat(num, " ")).concat(titles[num % 100 > 4 && num % 100 < 20
|
|
272
272
|
? 2
|
|
273
273
|
: cases[num % 10 < 5 ? num % 10 : 5]])
|
|
@@ -2299,6 +2299,9 @@ var MultistepForm = /** @class */ (function () {
|
|
|
2299
2299
|
_this.step = _this.associations.indexOf(stage) + 1;
|
|
2300
2300
|
}
|
|
2301
2301
|
};
|
|
2302
|
+
this.setStep = function (step) {
|
|
2303
|
+
_this.step = step;
|
|
2304
|
+
};
|
|
2302
2305
|
this.resetForm = function () {
|
|
2303
2306
|
_this.fields = null;
|
|
2304
2307
|
_this.step = 1;
|