GULP DIST
This commit is contained in:
73
dist/assets/vendor/imask/esm/masked/dynamic.js
vendored
73
dist/assets/vendor/imask/esm/masked/dynamic.js
vendored
@@ -1,4 +1,4 @@
|
||||
import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf, i as _set, b as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-a0b34764.js';
|
||||
import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf, i as _set, b as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-b054ecd2.js';
|
||||
import ChangeDetails from '../core/change-details.js';
|
||||
import createMask from './factory.js';
|
||||
import Masked from './base.js';
|
||||
@@ -122,6 +122,21 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
|
||||
return details;
|
||||
}
|
||||
/**
|
||||
@override
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "_appendEager",
|
||||
value: function _appendEager() {
|
||||
var details = this._applyDispatch.apply(this, arguments);
|
||||
|
||||
if (this.currentMask) {
|
||||
details.aggregate(this.currentMask._appendEager());
|
||||
}
|
||||
|
||||
return details;
|
||||
}
|
||||
/**
|
||||
@override
|
||||
*/
|
||||
@@ -154,7 +169,9 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
}, {
|
||||
key: "reset",
|
||||
value: function reset() {
|
||||
if (this.currentMask) this.currentMask.reset();
|
||||
var _this$currentMask2;
|
||||
|
||||
(_this$currentMask2 = this.currentMask) === null || _this$currentMask2 === void 0 ? void 0 : _this$currentMask2.reset();
|
||||
this.compiledMasks.forEach(function (m) {
|
||||
return m.reset();
|
||||
});
|
||||
@@ -210,7 +227,20 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
}, {
|
||||
key: "isComplete",
|
||||
get: function get() {
|
||||
return !!this.currentMask && this.currentMask.isComplete;
|
||||
var _this$currentMask3;
|
||||
|
||||
return Boolean((_this$currentMask3 = this.currentMask) === null || _this$currentMask3 === void 0 ? void 0 : _this$currentMask3.isComplete);
|
||||
}
|
||||
/**
|
||||
@override
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "isFilled",
|
||||
get: function get() {
|
||||
var _this$currentMask4;
|
||||
|
||||
return Boolean((_this$currentMask4 = this.currentMask) === null || _this$currentMask4 === void 0 ? void 0 : _this$currentMask4.isFilled);
|
||||
}
|
||||
/**
|
||||
@override
|
||||
@@ -222,9 +252,9 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
var details = new ChangeDetails();
|
||||
|
||||
if (this.currentMask) {
|
||||
var _this$currentMask2;
|
||||
var _this$currentMask5;
|
||||
|
||||
details.aggregate((_this$currentMask2 = this.currentMask).remove.apply(_this$currentMask2, arguments)) // update with dispatch
|
||||
details.aggregate((_this$currentMask5 = this.currentMask).remove.apply(_this$currentMask5, arguments)) // update with dispatch
|
||||
.aggregate(this._applyDispatch());
|
||||
}
|
||||
|
||||
@@ -270,9 +300,9 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
}, {
|
||||
key: "extractInput",
|
||||
value: function extractInput() {
|
||||
var _this$currentMask3;
|
||||
var _this$currentMask6;
|
||||
|
||||
return this.currentMask ? (_this$currentMask3 = this.currentMask).extractInput.apply(_this$currentMask3, arguments) : '';
|
||||
return this.currentMask ? (_this$currentMask6 = this.currentMask).extractInput.apply(_this$currentMask6, arguments) : '';
|
||||
}
|
||||
/**
|
||||
@override
|
||||
@@ -281,13 +311,13 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
}, {
|
||||
key: "extractTail",
|
||||
value: function extractTail() {
|
||||
var _this$currentMask4, _get3;
|
||||
var _this$currentMask7, _get3;
|
||||
|
||||
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||||
args[_key2] = arguments[_key2];
|
||||
}
|
||||
|
||||
return this.currentMask ? (_this$currentMask4 = this.currentMask).extractTail.apply(_this$currentMask4, args) : (_get3 = _get(_getPrototypeOf(MaskedDynamic.prototype), "extractTail", this)).call.apply(_get3, [this].concat(args));
|
||||
return this.currentMask ? (_this$currentMask7 = this.currentMask).extractTail.apply(_this$currentMask7, args) : (_get3 = _get(_getPrototypeOf(MaskedDynamic.prototype), "extractTail", this)).call.apply(_get3, [this].concat(args));
|
||||
}
|
||||
/**
|
||||
@override
|
||||
@@ -307,13 +337,13 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
}, {
|
||||
key: "nearestInputPos",
|
||||
value: function nearestInputPos() {
|
||||
var _this$currentMask5, _get4;
|
||||
var _this$currentMask8, _get4;
|
||||
|
||||
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
||||
args[_key3] = arguments[_key3];
|
||||
}
|
||||
|
||||
return this.currentMask ? (_this$currentMask5 = this.currentMask).nearestInputPos.apply(_this$currentMask5, args) : (_get4 = _get(_getPrototypeOf(MaskedDynamic.prototype), "nearestInputPos", this)).call.apply(_get4, [this].concat(args));
|
||||
return this.currentMask ? (_this$currentMask8 = this.currentMask).nearestInputPos.apply(_this$currentMask8, args) : (_get4 = _get(_getPrototypeOf(MaskedDynamic.prototype), "nearestInputPos", this)).call.apply(_get4, [this].concat(args));
|
||||
}
|
||||
}, {
|
||||
key: "overwrite",
|
||||
@@ -323,6 +353,27 @@ var MaskedDynamic = /*#__PURE__*/function (_Masked) {
|
||||
set: function set(overwrite) {
|
||||
console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings');
|
||||
}
|
||||
}, {
|
||||
key: "eager",
|
||||
get: function get() {
|
||||
return this.currentMask ? this.currentMask.eager : _get(_getPrototypeOf(MaskedDynamic.prototype), "eager", this);
|
||||
},
|
||||
set: function set(eager) {
|
||||
console.warn('"eager" option is not available in dynamic mask, use this option in siblings');
|
||||
}
|
||||
/**
|
||||
@override
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "maskEquals",
|
||||
value: function maskEquals(mask) {
|
||||
return Array.isArray(mask) && this.compiledMasks.every(function (m, mi) {
|
||||
var _mask$mi;
|
||||
|
||||
return m.maskEquals((_mask$mi = mask[mi]) === null || _mask$mi === void 0 ? void 0 : _mask$mi.mask);
|
||||
});
|
||||
}
|
||||
}]);
|
||||
|
||||
return MaskedDynamic;
|
||||
|
||||
Reference in New Issue
Block a user