hrm_ui_lib 1.6.23 → 1.6.25
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/components/DatePicker/hooks.js +177 -209
- package/components/Input/Input.js +5 -1
- package/package.json +1 -1
|
@@ -54,47 +54,77 @@ var _typeof = {exports: {}};
|
|
|
54
54
|
var _typeof$1 = _typeof.exports["default"];
|
|
55
55
|
function _regeneratorRuntime() {
|
|
56
56
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
57
|
-
return
|
|
57
|
+
return r;
|
|
58
58
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
59
59
|
var t,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
n =
|
|
63
|
-
o =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
configurable: !0,
|
|
75
|
-
writable: !0
|
|
76
|
-
}), t[e];
|
|
60
|
+
r = {},
|
|
61
|
+
e = Object.prototype,
|
|
62
|
+
n = e.hasOwnProperty,
|
|
63
|
+
o = "function" == typeof Symbol ? Symbol : {},
|
|
64
|
+
i = o.iterator || "@@iterator",
|
|
65
|
+
a = o.asyncIterator || "@@asyncIterator",
|
|
66
|
+
u = o.toStringTag || "@@toStringTag";
|
|
67
|
+
function c(t, r, e, n) {
|
|
68
|
+
return Object.defineProperty(t, r, {
|
|
69
|
+
value: e,
|
|
70
|
+
enumerable: !n,
|
|
71
|
+
configurable: !n,
|
|
72
|
+
writable: !n
|
|
73
|
+
});
|
|
77
74
|
}
|
|
78
75
|
try {
|
|
79
|
-
|
|
76
|
+
c({}, "");
|
|
80
77
|
} catch (t) {
|
|
81
|
-
|
|
82
|
-
return t[
|
|
78
|
+
c = function c(t, r, e) {
|
|
79
|
+
return t[r] = e;
|
|
83
80
|
};
|
|
84
81
|
}
|
|
85
|
-
function
|
|
82
|
+
function h(r, e, n, o) {
|
|
86
83
|
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
87
|
-
a = Object.create(i.prototype)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
a = Object.create(i.prototype);
|
|
85
|
+
return c(a, "_invoke", function (r, e, n) {
|
|
86
|
+
var o = 1;
|
|
87
|
+
return function (i, a) {
|
|
88
|
+
if (3 === o) throw Error("Generator is already running");
|
|
89
|
+
if (4 === o) {
|
|
90
|
+
if ("throw" === i) throw a;
|
|
91
|
+
return {
|
|
92
|
+
value: t,
|
|
93
|
+
done: !0
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
for (n.method = i, n.arg = a;;) {
|
|
97
|
+
var u = n.delegate;
|
|
98
|
+
if (u) {
|
|
99
|
+
var c = d(u, n);
|
|
100
|
+
if (c) {
|
|
101
|
+
if (c === f) continue;
|
|
102
|
+
return c;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
106
|
+
if (1 === o) throw o = 4, n.arg;
|
|
107
|
+
n.dispatchException(n.arg);
|
|
108
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
109
|
+
o = 3;
|
|
110
|
+
var h = s(r, e, n);
|
|
111
|
+
if ("normal" === h.type) {
|
|
112
|
+
if (o = n.done ? 4 : 2, h.arg === f) continue;
|
|
113
|
+
return {
|
|
114
|
+
value: h.arg,
|
|
115
|
+
done: n.done
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}(r, n, new Context(o || [])), !0), a;
|
|
92
122
|
}
|
|
93
|
-
function
|
|
123
|
+
function s(t, r, e) {
|
|
94
124
|
try {
|
|
95
125
|
return {
|
|
96
126
|
type: "normal",
|
|
97
|
-
arg: t.call(
|
|
127
|
+
arg: t.call(r, e)
|
|
98
128
|
};
|
|
99
129
|
} catch (t) {
|
|
100
130
|
return {
|
|
@@ -103,255 +133,193 @@ var _typeof = {exports: {}};
|
|
|
103
133
|
};
|
|
104
134
|
}
|
|
105
135
|
}
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
l = "suspendedYield",
|
|
109
|
-
f = "executing",
|
|
110
|
-
s = "completed",
|
|
111
|
-
y = {};
|
|
136
|
+
r.wrap = h;
|
|
137
|
+
var f = {};
|
|
112
138
|
function Generator() {}
|
|
113
139
|
function GeneratorFunction() {}
|
|
114
140
|
function GeneratorFunctionPrototype() {}
|
|
115
|
-
var
|
|
116
|
-
|
|
141
|
+
var l = {};
|
|
142
|
+
c(l, i, function () {
|
|
117
143
|
return this;
|
|
118
144
|
});
|
|
119
|
-
var
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var
|
|
123
|
-
function
|
|
124
|
-
["next", "throw", "return"].forEach(function (
|
|
125
|
-
|
|
126
|
-
return this._invoke(
|
|
145
|
+
var p = Object.getPrototypeOf,
|
|
146
|
+
y = p && p(p(x([])));
|
|
147
|
+
y && y !== e && n.call(y, i) && (l = y);
|
|
148
|
+
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
149
|
+
function g(t) {
|
|
150
|
+
["next", "throw", "return"].forEach(function (r) {
|
|
151
|
+
c(t, r, function (t) {
|
|
152
|
+
return this._invoke(r, t);
|
|
127
153
|
});
|
|
128
154
|
});
|
|
129
155
|
}
|
|
130
|
-
function AsyncIterator(t,
|
|
131
|
-
function
|
|
132
|
-
var c =
|
|
156
|
+
function AsyncIterator(t, r) {
|
|
157
|
+
function e(o, i, a, u) {
|
|
158
|
+
var c = s(t[o], t, i);
|
|
133
159
|
if ("throw" !== c.type) {
|
|
134
|
-
var
|
|
135
|
-
|
|
136
|
-
return
|
|
137
|
-
|
|
160
|
+
var h = c.arg,
|
|
161
|
+
f = h.value;
|
|
162
|
+
return f && "object" == _typeof$1(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
163
|
+
e("next", t, a, u);
|
|
138
164
|
}, function (t) {
|
|
139
|
-
|
|
140
|
-
}) :
|
|
141
|
-
|
|
165
|
+
e("throw", t, a, u);
|
|
166
|
+
}) : r.resolve(f).then(function (t) {
|
|
167
|
+
h.value = t, a(h);
|
|
142
168
|
}, function (t) {
|
|
143
|
-
return
|
|
169
|
+
return e("throw", t, a, u);
|
|
144
170
|
});
|
|
145
171
|
}
|
|
146
|
-
|
|
172
|
+
u(c.arg);
|
|
147
173
|
}
|
|
148
|
-
var
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
function
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function makeInvokeMethod(e, r, n) {
|
|
161
|
-
var o = h;
|
|
162
|
-
return function (i, a) {
|
|
163
|
-
if (o === f) throw Error("Generator is already running");
|
|
164
|
-
if (o === s) {
|
|
165
|
-
if ("throw" === i) throw a;
|
|
166
|
-
return {
|
|
167
|
-
value: t,
|
|
168
|
-
done: !0
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
for (n.method = i, n.arg = a;;) {
|
|
172
|
-
var c = n.delegate;
|
|
173
|
-
if (c) {
|
|
174
|
-
var u = maybeInvokeDelegate(c, n);
|
|
175
|
-
if (u) {
|
|
176
|
-
if (u === y) continue;
|
|
177
|
-
return u;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
181
|
-
if (o === h) throw o = s, n.arg;
|
|
182
|
-
n.dispatchException(n.arg);
|
|
183
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
184
|
-
o = f;
|
|
185
|
-
var p = tryCatch(e, r, n);
|
|
186
|
-
if ("normal" === p.type) {
|
|
187
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
188
|
-
return {
|
|
189
|
-
value: p.arg,
|
|
190
|
-
done: n.done
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
174
|
+
var o;
|
|
175
|
+
c(this, "_invoke", function (t, n) {
|
|
176
|
+
function i() {
|
|
177
|
+
return new r(function (r, o) {
|
|
178
|
+
e(t, n, r, o);
|
|
179
|
+
});
|
|
194
180
|
}
|
|
195
|
-
|
|
181
|
+
return o = o ? o.then(i, i) : i();
|
|
182
|
+
}, !0);
|
|
196
183
|
}
|
|
197
|
-
function
|
|
198
|
-
var n =
|
|
199
|
-
o =
|
|
200
|
-
if (o === t) return
|
|
201
|
-
var i =
|
|
202
|
-
if ("throw" === i.type) return
|
|
184
|
+
function d(r, e) {
|
|
185
|
+
var n = e.method,
|
|
186
|
+
o = r.i[n];
|
|
187
|
+
if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
188
|
+
var i = s(o, r.i, e.arg);
|
|
189
|
+
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
203
190
|
var a = i.arg;
|
|
204
|
-
return a ? a.done ? (r
|
|
191
|
+
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
205
192
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
208
|
-
tryLoc: t[0]
|
|
209
|
-
};
|
|
210
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
193
|
+
function w(t) {
|
|
194
|
+
this.tryEntries.push(t);
|
|
211
195
|
}
|
|
212
|
-
function
|
|
213
|
-
var e =
|
|
214
|
-
e.type = "normal",
|
|
196
|
+
function m(r) {
|
|
197
|
+
var e = r[4] || {};
|
|
198
|
+
e.type = "normal", e.arg = t, r[4] = e;
|
|
215
199
|
}
|
|
216
200
|
function Context(t) {
|
|
217
|
-
this.tryEntries = [
|
|
218
|
-
tryLoc: "root"
|
|
219
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
201
|
+
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
220
202
|
}
|
|
221
|
-
function
|
|
222
|
-
if (
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
225
|
-
if ("function" == typeof
|
|
226
|
-
if (!isNaN(
|
|
203
|
+
function x(r) {
|
|
204
|
+
if (null != r) {
|
|
205
|
+
var e = r[i];
|
|
206
|
+
if (e) return e.call(r);
|
|
207
|
+
if ("function" == typeof r.next) return r;
|
|
208
|
+
if (!isNaN(r.length)) {
|
|
227
209
|
var o = -1,
|
|
228
|
-
|
|
229
|
-
for (; ++o <
|
|
230
|
-
return
|
|
210
|
+
a = function e() {
|
|
211
|
+
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
212
|
+
return e.value = t, e.done = !0, e;
|
|
231
213
|
};
|
|
232
|
-
return
|
|
214
|
+
return a.next = a;
|
|
233
215
|
}
|
|
234
216
|
}
|
|
235
|
-
throw new TypeError(_typeof$1(
|
|
217
|
+
throw new TypeError(_typeof$1(r) + " is not iterable");
|
|
236
218
|
}
|
|
237
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
244
|
-
var e = "function" == typeof t && t.constructor;
|
|
245
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
246
|
-
}, e.mark = function (t) {
|
|
247
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
248
|
-
}, e.awrap = function (t) {
|
|
219
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
220
|
+
var r = "function" == typeof t && t.constructor;
|
|
221
|
+
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
222
|
+
}, r.mark = function (t) {
|
|
223
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
224
|
+
}, r.awrap = function (t) {
|
|
249
225
|
return {
|
|
250
226
|
__await: t
|
|
251
227
|
};
|
|
252
|
-
},
|
|
228
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
253
229
|
return this;
|
|
254
|
-
}),
|
|
230
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
255
231
|
void 0 === i && (i = Promise);
|
|
256
|
-
var a = new AsyncIterator(
|
|
257
|
-
return
|
|
232
|
+
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
233
|
+
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
258
234
|
return t.done ? t.value : a.next();
|
|
259
235
|
});
|
|
260
|
-
},
|
|
236
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
261
237
|
return this;
|
|
262
|
-
}),
|
|
238
|
+
}), c(v, "toString", function () {
|
|
263
239
|
return "[object Generator]";
|
|
264
|
-
}),
|
|
265
|
-
var
|
|
266
|
-
|
|
267
|
-
for (var n in
|
|
268
|
-
return
|
|
269
|
-
for (;
|
|
270
|
-
|
|
271
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
272
|
-
}
|
|
273
|
-
return next.done = !0, next;
|
|
240
|
+
}), r.keys = function (t) {
|
|
241
|
+
var r = Object(t),
|
|
242
|
+
e = [];
|
|
243
|
+
for (var n in r) e.unshift(n);
|
|
244
|
+
return function t() {
|
|
245
|
+
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
246
|
+
return t.done = !0, t;
|
|
274
247
|
};
|
|
275
|
-
},
|
|
248
|
+
}, r.values = x, Context.prototype = {
|
|
276
249
|
constructor: Context,
|
|
277
|
-
reset: function reset(
|
|
278
|
-
if (this.prev =
|
|
250
|
+
reset: function reset(r) {
|
|
251
|
+
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
|
|
279
252
|
},
|
|
280
253
|
stop: function stop() {
|
|
281
254
|
this.done = !0;
|
|
282
|
-
var t = this.tryEntries[0]
|
|
255
|
+
var t = this.tryEntries[0][4];
|
|
283
256
|
if ("throw" === t.type) throw t.arg;
|
|
284
257
|
return this.rval;
|
|
285
258
|
},
|
|
286
|
-
dispatchException: function dispatchException(
|
|
287
|
-
if (this.done) throw
|
|
288
|
-
var
|
|
289
|
-
function
|
|
290
|
-
|
|
259
|
+
dispatchException: function dispatchException(r) {
|
|
260
|
+
if (this.done) throw r;
|
|
261
|
+
var e = this;
|
|
262
|
+
function n(t) {
|
|
263
|
+
a.type = "throw", a.arg = r, e.next = t;
|
|
291
264
|
}
|
|
292
|
-
for (var o =
|
|
265
|
+
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
293
266
|
var i = this.tryEntries[o],
|
|
294
|
-
a = i
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
304
|
-
} else {
|
|
305
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
306
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
307
|
-
}
|
|
267
|
+
a = i[4],
|
|
268
|
+
u = this.prev,
|
|
269
|
+
c = i[1],
|
|
270
|
+
h = i[2];
|
|
271
|
+
if (-1 === i[0]) return n("end"), !1;
|
|
272
|
+
if (!c && !h) throw Error("try statement without catch or finally");
|
|
273
|
+
if (null != i[0] && i[0] <= u) {
|
|
274
|
+
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
275
|
+
if (u < h) return n(h), !1;
|
|
308
276
|
}
|
|
309
277
|
}
|
|
310
278
|
},
|
|
311
|
-
abrupt: function abrupt(t,
|
|
312
|
-
for (var
|
|
313
|
-
var
|
|
314
|
-
if (
|
|
315
|
-
var
|
|
279
|
+
abrupt: function abrupt(t, r) {
|
|
280
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
281
|
+
var n = this.tryEntries[e];
|
|
282
|
+
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
283
|
+
var o = n;
|
|
316
284
|
break;
|
|
317
285
|
}
|
|
318
286
|
}
|
|
319
|
-
|
|
320
|
-
var
|
|
321
|
-
return
|
|
287
|
+
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
288
|
+
var i = o ? o[4] : {};
|
|
289
|
+
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
322
290
|
},
|
|
323
|
-
complete: function complete(t,
|
|
291
|
+
complete: function complete(t, r) {
|
|
324
292
|
if ("throw" === t.type) throw t.arg;
|
|
325
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type &&
|
|
293
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
|
|
326
294
|
},
|
|
327
295
|
finish: function finish(t) {
|
|
328
|
-
for (var
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
296
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
297
|
+
var e = this.tryEntries[r];
|
|
298
|
+
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
331
299
|
}
|
|
332
300
|
},
|
|
333
301
|
"catch": function _catch(t) {
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
if (
|
|
337
|
-
var n =
|
|
302
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
303
|
+
var e = this.tryEntries[r];
|
|
304
|
+
if (e[0] === t) {
|
|
305
|
+
var n = e[4];
|
|
338
306
|
if ("throw" === n.type) {
|
|
339
307
|
var o = n.arg;
|
|
340
|
-
|
|
308
|
+
m(e);
|
|
341
309
|
}
|
|
342
310
|
return o;
|
|
343
311
|
}
|
|
344
312
|
}
|
|
345
313
|
throw Error("illegal catch attempt");
|
|
346
314
|
},
|
|
347
|
-
delegateYield: function delegateYield(
|
|
315
|
+
delegateYield: function delegateYield(r, e, n) {
|
|
348
316
|
return this.delegate = {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}, "next" === this.method && (this.arg = t),
|
|
317
|
+
i: x(r),
|
|
318
|
+
r: e,
|
|
319
|
+
n: n
|
|
320
|
+
}, "next" === this.method && (this.arg = t), f;
|
|
353
321
|
}
|
|
354
|
-
},
|
|
322
|
+
}, r;
|
|
355
323
|
}
|
|
356
324
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
357
325
|
} (regeneratorRuntime$1));
|
|
@@ -55,7 +55,7 @@ import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
|
55
55
|
import '../../helpers/download-file.js';
|
|
56
56
|
import '../Button/consts.js';
|
|
57
57
|
|
|
58
|
-
var _excluded = ["datePlaceHolderText", "className", "size", "error", "hasError", "label", "mask", "maskChar", "maskPlaceholder", "currentValue", "name", "leftIconProps", "rightIconProps", "disabled", "required", "readonly", "placeholder", "type", "helperText", "successMessage", "maxCount", "setFieldValue", "handleChange", "dataId", "isValid", "allowLeadingZeros", "thousandSeparator", "allowNegative", "hideCounter", "labelAddons", "witUpperCase", "isAllowed"];
|
|
58
|
+
var _excluded = ["datePlaceHolderText", "className", "size", "error", "hasError", "label", "mask", "maskChar", "maskPlaceholder", "currentValue", "name", "leftIconProps", "rightIconProps", "disabled", "required", "readonly", "placeholder", "type", "helperText", "successMessage", "maxCount", "setFieldValue", "handleChange", "dataId", "isValid", "allowLeadingZeros", "thousandSeparator", "allowNegative", "hideCounter", "labelAddons", "witUpperCase", "isAllowed", "onChange"];
|
|
59
59
|
var Input = /*#__PURE__*/React.forwardRef(function (_ref, _ref2) {
|
|
60
60
|
var datePlaceHolderText = _ref.datePlaceHolderText,
|
|
61
61
|
className = _ref.className,
|
|
@@ -96,6 +96,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, _ref2) {
|
|
|
96
96
|
_ref$witUpperCase = _ref.witUpperCase,
|
|
97
97
|
witUpperCase = _ref$witUpperCase === void 0 ? false : _ref$witUpperCase,
|
|
98
98
|
isAllowed = _ref.isAllowed,
|
|
99
|
+
onChange = _ref.onChange,
|
|
99
100
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
100
101
|
var isErrorVisible = hasError !== undefined ? hasError : !!error;
|
|
101
102
|
var placeHolder = label === placeholder ? '' : placeholder || datePlaceHolderText;
|
|
@@ -105,6 +106,9 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, _ref2) {
|
|
|
105
106
|
if (eventValue.length - 1 === maxCount) {
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
109
|
+
if (onChange) {
|
|
110
|
+
onChange(event);
|
|
111
|
+
}
|
|
108
112
|
if (setFieldValue && name) {
|
|
109
113
|
setFieldValue(name, valueWithoutSeparator);
|
|
110
114
|
}
|