@rpcbase/ui 0.161.0 → 0.162.0
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/dist/components/DayPickerField/index.d.ts.map +1 -1
- package/dist/index10.js +1 -1
- package/dist/index11.js +97 -89
- package/dist/index11.js.map +1 -1
- package/dist/index112.js +36 -36
- package/dist/index113.js +1 -1
- package/dist/index12.js +1 -1
- package/dist/index124.js +6 -6
- package/dist/index127.js +10 -10
- package/dist/index129.js +2 -2
- package/dist/index13.js +2 -2
- package/dist/index130.js +3 -3
- package/dist/index131.js +1 -1
- package/dist/index133.js +2 -2
- package/dist/index135.js +1 -1
- package/dist/index14.js +4 -4
- package/dist/index15.js +1 -1
- package/dist/index158.js +2 -2
- package/dist/index159.js +2 -2
- package/dist/index16.js +1 -1
- package/dist/index160.js +2 -2
- package/dist/index161.js +3 -3
- package/dist/index163.js +1 -1
- package/dist/index164.js +5 -5
- package/dist/index165.js +2 -2
- package/dist/index166.js +1 -1
- package/dist/index167.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +599 -40
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +41 -200
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +204 -20
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +236 -236
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +22 -25
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +23 -398
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +383 -589
- package/dist/index182.js.map +1 -1
- package/dist/index184.js +4 -4
- package/dist/index189.js +1 -1
- package/dist/index19.js +7 -7
- package/dist/index190.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +6 -6
- package/dist/index20.js +2 -2
- package/dist/index200.js +4 -4
- package/dist/index202.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +1 -1
- package/dist/index21.js +1 -1
- package/dist/index211.js +3 -16
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +57 -4
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +8 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +55 -47
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +17 -64
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +16 -6
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +5 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +5 -7
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +6 -17
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +1 -1
- package/dist/index220.js +4 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +7 -5
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +17 -13
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +5 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +5 -14
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +13 -14
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +10 -5
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +14 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +14 -7
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +6 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +6 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +8 -8
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +5 -5
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +9 -4
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +5 -11
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +5 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +4 -10
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +11 -11
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +10 -11
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +10 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -7
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +11 -6
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +10 -5
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7 -6
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +6 -7
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -6
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +6 -55
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +7 -8
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +6 -19
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +53 -21
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +22 -15
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +16 -7
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +7 -10
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +9 -9
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +10 -21
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +21 -10
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +10 -9
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +6 -6
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +4 -5
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +5 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +16 -9
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +9 -18
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +15 -12
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +12 -9
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +12 -29
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +62 -10
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +3 -37
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +48 -25
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +39 -5
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +98 -62
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +96 -47
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +88 -28
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +29 -100
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +12 -97
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +23 -97
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +5 -3
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +65 -22
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +125 -3
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +179 -27
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +47 -5
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +22 -65
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +27 -179
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +5 -47
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +31 -2
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +10 -2
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +46 -12
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +10 -153
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +42 -28
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +47 -124
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +95 -9
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +82 -43
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +104 -10
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +50 -42
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +12 -94
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +10 -85
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +28 -96
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +8 -52
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +153 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +110 -31
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +219 -47
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +17 -8
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +13 -114
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +3 -17
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +33 -12
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +20 -3
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +9 -36
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +8 -20
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +19 -9
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +28 -8
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +15 -18
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +40 -216
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +2 -29
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +2 -17
- package/dist/index311.js.map +1 -1
- package/dist/index318.js +1 -1
- package/dist/index319.js +1 -1
- package/dist/index32.js +38 -41
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +24 -36
- package/dist/index33.js.map +1 -1
- package/dist/index331.js +2 -2
- package/dist/index334.js +1 -1
- package/dist/index335.js +2 -2
- package/dist/index337.js +1 -1
- package/dist/index338.js +1 -1
- package/dist/index339.js +1 -1
- package/dist/index34.js +38 -21
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +1 -1
- package/dist/index341.js +1 -1
- package/dist/index342.js +1 -1
- package/dist/index345.js +1 -1
- package/dist/index35.js +30 -44
- package/dist/index35.js.map +1 -1
- package/dist/index359.js +11 -21
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +26 -30
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +26 -11
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +4 -27
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +22 -4
- package/dist/index362.js.map +1 -1
- package/dist/index37.js +23 -28
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +123 -17
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +230 -127
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +49 -230
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +2640 -50
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +351 -2598
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +214 -375
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +19 -230
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +138 -18
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +170 -125
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +64 -174
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +88 -74
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +5 -90
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +843 -5
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +54 -832
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +37 -66
- package/dist/index52.js.map +1 -1
- package/dist/index55.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index59.js +1 -1
- package/dist/index64.js +2 -2
- package/dist/index65.js +1 -1
- package/dist/index66.js +1 -1
- package/dist/index68.js +1 -1
- package/dist/index70.js +5 -5
- package/dist/index71.js +1 -1
- package/dist/index72.js +1 -1
- package/dist/index76.js +1 -1
- package/dist/index78.js +3 -3
- package/dist/index79.js +53 -5
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +1 -1
- package/dist/index80.js +2 -8
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -6
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -53
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +8 -2
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +6 -2
- package/dist/index84.js.map +1 -1
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index269.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index269.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index269.js","sources":["../../../node_modules/imask/esm/core/utils.js"],"sourcesContent":["/** Checks if value is string */\nfunction isString(str) {\n return typeof str === 'string' || str instanceof String;\n}\n\n/** Checks if value is object */\nfunction isObject(obj) {\n var _obj$constructor;\n return typeof obj === 'object' && obj != null && (obj == null || (_obj$constructor = obj.constructor) == null ? void 0 : _obj$constructor.name) === 'Object';\n}\nfunction pick(obj, keys) {\n if (Array.isArray(keys)) return pick(obj, (_, k) => keys.includes(k));\n return Object.entries(obj).reduce((acc, _ref) => {\n let [k, v] = _ref;\n if (keys(v, k)) acc[k] = v;\n return acc;\n }, {});\n}\n\n/** Direction */\nconst DIRECTION = {\n NONE: 'NONE',\n LEFT: 'LEFT',\n FORCE_LEFT: 'FORCE_LEFT',\n RIGHT: 'RIGHT',\n FORCE_RIGHT: 'FORCE_RIGHT'\n};\n\n/** Direction */\n\nfunction forceDirection(direction) {\n switch (direction) {\n case DIRECTION.LEFT:\n return DIRECTION.FORCE_LEFT;\n case DIRECTION.RIGHT:\n return DIRECTION.FORCE_RIGHT;\n default:\n return direction;\n }\n}\n\n/** Escapes regular expression control chars */\nfunction escapeRegExp(str) {\n return str.replace(/([.*+?^=!:${}()|[\\]/\\\\])/g, '\\\\$1');\n}\n\n// cloned from https://github.com/epoberezkin/fast-deep-equal with small changes\nfunction objectIncludes(b, a) {\n if (a === b) return true;\n const arrA = Array.isArray(a),\n arrB = Array.isArray(b);\n let i;\n if (arrA && arrB) {\n if (a.length != b.length) return false;\n for (i = 0; i < a.length; i++) if (!objectIncludes(a[i], b[i])) return false;\n return true;\n }\n if (arrA != arrB) return false;\n if (a && b && typeof a === 'object' && typeof b === 'object') {\n const dateA = a instanceof Date,\n dateB = b instanceof Date;\n if (dateA && dateB) return a.getTime() == b.getTime();\n if (dateA != dateB) return false;\n const regexpA = a instanceof RegExp,\n regexpB = b instanceof RegExp;\n if (regexpA && regexpB) return a.toString() == b.toString();\n if (regexpA != regexpB) return false;\n const keys = Object.keys(a);\n // if (keys.length !== Object.keys(b).length) return false;\n\n for (i = 0; i < keys.length; i++) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n for (i = 0; i < keys.length; i++) if (!objectIncludes(b[keys[i]], a[keys[i]])) return false;\n return true;\n } else if (a && b && typeof a === 'function' && typeof b === 'function') {\n return a.toString() === b.toString();\n }\n return false;\n}\n\n/** Selection range */\n\nexport { DIRECTION, escapeRegExp, forceDirection, isObject, isString, objectIncludes, pick };\n"],"names":["isString","str","isObject","obj","_obj$constructor","pick","keys","_","k","acc","_ref","v","DIRECTION","forceDirection","direction","escapeRegExp","objectIncludes","b","a","arrA","arrB","i","dateA","dateB","regexpA","regexpB"],"mappings":"AACA,SAASA,EAASC,GAAK;AACrB,SAAO,OAAOA,KAAQ,YAAYA,aAAe;AACnD;AAGA,SAASC,EAASC,GAAK;AACrB,MAAIC;AACJ,SAAO,OAAOD,KAAQ,YAAYA,KAAO,SAASA,KAAO,SAASC,IAAmBD,EAAI,gBAAgB,OAAO,SAASC,EAAiB,UAAU;AACtJ;AACA,SAASC,EAAKF,GAAKG,GAAM;AACvB,SAAI,MAAM,QAAQA,CAAI,IAAUD,EAAKF,GAAK,CAACI,GAAGC,MAAMF,EAAK,SAASE,CAAC,CAAC,IAC7D,OAAO,QAAQL,CAAG,EAAE,OAAO,CAACM,GAAKC,MAAS;AAC/C,QAAI,CAACF,GAAGG,CAAC,IAAID;AACb,WAAIJ,EAAKK,GAAGH,CAAC,MAAGC,EAAID,CAAC,IAAIG,IAClBF;AAAA,EACT,GAAG,CAAA,CAAE;AACP;AAGK,MAACG,IAAY;AAAA,EAChB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO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K,QAAQe,IAAK,KAAI,CAACL,EAAeC,EAAEX,EAAKe,CAAC,CAAC,GAAGH,EAAEZ,EAAKe,CAAC,CAAC,CAAC,EAAG,QAAO;AACtF,WAAO;AAAA,EACT,WAAWH,KAAKD,KAAK,OAAOC,KAAM,cAAc,OAAOD,KAAM;AAC3D,WAAOC,EAAE,eAAeD,EAAE,SAAQ;AAEpC,SAAO;AACT;","x_google_ignoreList":[0]}
|
package/dist/index27.js
CHANGED
|
@@ -1,40 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
const v = (o) => {
|
|
5
|
-
var e, r, a, m = "The Google Maps JavaScript API", n = "google", p = "importLibrary", _ = "__ib__", l = document, E = window, u = E[n] || (E[n] = {}), i = u.maps || (u.maps = {}), f = /* @__PURE__ */ new Set(), t = new URLSearchParams(), S = () => e || (e = new Promise(async (s, c) => {
|
|
6
|
-
await (r = l.createElement("script")), t.set("libraries", [...f] + "");
|
|
7
|
-
for (a in o)
|
|
8
|
-
t.set(a.replace(/[A-Z]/g, (b) => "_" + b[0].toLowerCase()), o[a]);
|
|
9
|
-
t.set("callback", n + ".maps." + _), w(r, "https://maps.googleapis.com/maps/api/js?" + t), i[_] = s, r.onerror = () => e = c(Error(m + " could not load.")), r.nonce = l.querySelector("script[nonce]")?.nonce || "", l.head.append(r);
|
|
10
|
-
}));
|
|
11
|
-
i[p] ? console.warn(m + " only loads once. Ignoring:", o) : i[p] = (s, ...c) => f.add(s) && S().then(() => i[p](s, ...c));
|
|
12
|
-
}, y = (o) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(o)}) will be ignored.`, O = (o) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(o)}) will be ignored.`, T = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", L = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", h = process.env.NODE_ENV !== "production", d = h ? (o) => {
|
|
13
|
-
console.warn(`[@googlemaps/js-api-loader] ${o}`);
|
|
14
|
-
} : () => {
|
|
15
|
-
}, P = h ? (o) => {
|
|
16
|
-
console.info(`[@googlemaps/js-api-loader] ${o}`);
|
|
17
|
-
} : () => {
|
|
18
|
-
}, I = process.env.NODE_ENV !== "production";
|
|
19
|
-
let g = !1;
|
|
20
|
-
function A(o) {
|
|
21
|
-
if (g) {
|
|
22
|
-
d(y(o));
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
N(o), g = !0;
|
|
26
|
-
}
|
|
27
|
-
async function M(o) {
|
|
28
|
-
if (g || d(T), !window?.google?.maps?.importLibrary)
|
|
29
|
-
throw new Error("google.maps.importLibrary is not installed.");
|
|
30
|
-
return await google.maps.importLibrary(o);
|
|
31
|
-
}
|
|
32
|
-
function N(o) {
|
|
33
|
-
const e = !!window.google?.maps?.importLibrary;
|
|
34
|
-
e ? P(O(o)) : I && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && d(L), e || v(o);
|
|
35
|
-
}
|
|
1
|
+
import { __require as r } from "./index53.js";
|
|
2
|
+
var i = r();
|
|
36
3
|
export {
|
|
37
|
-
|
|
38
|
-
A as setOptions
|
|
4
|
+
i as j
|
|
39
5
|
};
|
|
40
6
|
//# sourceMappingURL=index27.js.map
|
package/dist/index27.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index27.js","sources":[
|
|
1
|
+
{"version":3,"file":"index27.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index270.js
CHANGED
|
@@ -1,29 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { DIRECTION as t } from "./index269.js";
|
|
2
|
+
class o {
|
|
3
|
+
/** Current input value */
|
|
4
|
+
/** Current cursor position */
|
|
5
|
+
/** Old input value */
|
|
6
|
+
/** Old selection */
|
|
7
|
+
constructor(s) {
|
|
8
|
+
for (Object.assign(this, s); this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos); )
|
|
9
|
+
--this.oldSelection.start;
|
|
10
|
+
if (this.insertedCount)
|
|
11
|
+
for (; this.value.slice(this.cursorPos) !== this.oldValue.slice(this.oldSelection.end); )
|
|
12
|
+
this.value.length - this.cursorPos < this.oldValue.length - this.oldSelection.end ? ++this.oldSelection.end : ++this.cursorPos;
|
|
13
|
+
}
|
|
14
|
+
/** Start changing position */
|
|
15
|
+
get startChangePos() {
|
|
16
|
+
return Math.min(this.cursorPos, this.oldSelection.start);
|
|
17
|
+
}
|
|
18
|
+
/** Inserted symbols count */
|
|
19
|
+
get insertedCount() {
|
|
20
|
+
return this.cursorPos - this.startChangePos;
|
|
21
|
+
}
|
|
22
|
+
/** Inserted symbols */
|
|
23
|
+
get inserted() {
|
|
24
|
+
return this.value.substr(this.startChangePos, this.insertedCount);
|
|
25
|
+
}
|
|
26
|
+
/** Removed symbols count */
|
|
27
|
+
get removedCount() {
|
|
28
|
+
return Math.max(this.oldSelection.end - this.startChangePos || // for Delete
|
|
29
|
+
this.oldValue.length - this.value.length, 0);
|
|
30
|
+
}
|
|
31
|
+
/** Removed symbols */
|
|
32
|
+
get removed() {
|
|
33
|
+
return this.oldValue.substr(this.startChangePos, this.removedCount);
|
|
34
|
+
}
|
|
35
|
+
/** Unchanged head symbols */
|
|
36
|
+
get head() {
|
|
37
|
+
return this.value.substring(0, this.startChangePos);
|
|
38
|
+
}
|
|
39
|
+
/** Unchanged tail symbols */
|
|
40
|
+
get tail() {
|
|
41
|
+
return this.value.substring(this.startChangePos + this.insertedCount);
|
|
42
|
+
}
|
|
43
|
+
/** Remove direction */
|
|
44
|
+
get removeDirection() {
|
|
45
|
+
return !this.removedCount || this.insertedCount ? t.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
|
|
46
|
+
this.oldSelection.end === this.oldSelection.start ? t.RIGHT : t.LEFT;
|
|
47
|
+
}
|
|
25
48
|
}
|
|
26
49
|
export {
|
|
27
|
-
|
|
50
|
+
o as default
|
|
28
51
|
};
|
|
29
52
|
//# sourceMappingURL=index270.js.map
|
package/dist/index270.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index270.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index270.js","sources":["../../../node_modules/imask/esm/core/action-details.js"],"sourcesContent":["import { DIRECTION } from './utils.js';\n\n/** Provides details of changing input */\nclass ActionDetails {\n /** Current input value */\n\n /** Current cursor position */\n\n /** Old input value */\n\n /** Old selection */\n\n constructor(opts) {\n Object.assign(this, opts);\n\n // double check if left part was changed (autofilling, other non-standard input triggers)\n while (this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos)) {\n --this.oldSelection.start;\n }\n if (this.insertedCount) {\n // double check right part\n while (this.value.slice(this.cursorPos) !== this.oldValue.slice(this.oldSelection.end)) {\n if (this.value.length - this.cursorPos < this.oldValue.length - this.oldSelection.end) ++this.oldSelection.end;else ++this.cursorPos;\n }\n }\n }\n\n /** Start changing position */\n get startChangePos() {\n return Math.min(this.cursorPos, this.oldSelection.start);\n }\n\n /** Inserted symbols count */\n get insertedCount() {\n return this.cursorPos - this.startChangePos;\n }\n\n /** Inserted symbols */\n get inserted() {\n return this.value.substr(this.startChangePos, this.insertedCount);\n }\n\n /** Removed symbols count */\n get removedCount() {\n // Math.max for opposite operation\n return Math.max(this.oldSelection.end - this.startChangePos ||\n // for Delete\n this.oldValue.length - this.value.length, 0);\n }\n\n /** Removed symbols */\n get removed() {\n return this.oldValue.substr(this.startChangePos, this.removedCount);\n }\n\n /** Unchanged head symbols */\n get head() {\n return this.value.substring(0, this.startChangePos);\n }\n\n /** Unchanged tail symbols */\n get tail() {\n return this.value.substring(this.startChangePos + this.insertedCount);\n }\n\n /** Remove direction */\n get removeDirection() {\n if (!this.removedCount || this.insertedCount) return DIRECTION.NONE;\n\n // align right if delete at right\n return (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) &&\n // if not range removed (event with backspace)\n this.oldSelection.end === this.oldSelection.start ? DIRECTION.RIGHT : DIRECTION.LEFT;\n }\n}\n\nexport { ActionDetails as default };\n"],"names":["ActionDetails","opts","DIRECTION"],"mappings":";AAGA,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EASlB,YAAYC,GAAM;AAIhB,SAHA,OAAO,OAAO,MAAMA,CAAI,GAGjB,KAAK,MAAM,MAAM,GAAG,KAAK,cAAc,MAAM,KAAK,SAAS,MAAM,GAAG,KAAK,cAAc;AAC5F,QAAE,KAAK,aAAa;AAEtB,QAAI,KAAK;AAEP,aAAO,KAAK,MAAM,MAAM,KAAK,SAAS,MAAM,KAAK,SAAS,MAAM,KAAK,aAAa,GAAG;AACnF,QAAI,KAAK,MAAM,SAAS,KAAK,YAAY,KAAK,SAAS,SAAS,KAAK,aAAa,MAAK,EAAE,KAAK,aAAa,MAAS,EAAE,KAAK;AAAA,EAGjI;AAAA;AAAA,EAGA,IAAI,iBAAiB;AACnB,WAAO,KAAK,IAAI,KAAK,WAAW,KAAK,aAAa,KAAK;AAAA,EACzD;AAAA;AAAA,EAGA,IAAI,gBAAgB;AAClB,WAAO,KAAK,YAAY,KAAK;AAAA,EAC/B;AAAA;AAAA,EAGA,IAAI,WAAW;AACb,WAAO,KAAK,MAAM,OAAO,KAAK,gBAAgB,KAAK,aAAa;AAAA,EAClE;AAAA;AAAA,EAGA,IAAI,eAAe;AAEjB,WAAO,KAAK,IAAI,KAAK,aAAa,MAAM,KAAK;AAAA,IAE7C,KAAK,SAAS,SAAS,KAAK,MAAM,QAAQ,CAAC;AAAA,EAC7C;AAAA;AAAA,EAGA,IAAI,UAAU;AACZ,WAAO,KAAK,SAAS,OAAO,KAAK,gBAAgB,KAAK,YAAY;AAAA,EACpE;AAAA;AAAA,EAGA,IAAI,OAAO;AACT,WAAO,KAAK,MAAM,UAAU,GAAG,KAAK,cAAc;AAAA,EACpD;AAAA;AAAA,EAGA,IAAI,OAAO;AACT,WAAO,KAAK,MAAM,UAAU,KAAK,iBAAiB,KAAK,aAAa;AAAA,EACtE;AAAA;AAAA,EAGA,IAAI,kBAAkB;AACpB,WAAI,CAAC,KAAK,gBAAgB,KAAK,gBAAsBC,EAAU,QAGvD,KAAK,aAAa,QAAQ,KAAK,aAAa,KAAK,aAAa,UAAU,KAAK;AAAA,IAErF,KAAK,aAAa,QAAQ,KAAK,aAAa,QAAQA,EAAU,QAAQA,EAAU;AAAA,EAClF;AACF;","x_google_ignoreList":[0]}
|
package/dist/index271.js
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
class h {
|
|
2
|
+
/** Tail value as string */
|
|
3
|
+
/** Tail start position */
|
|
4
|
+
/** Start position */
|
|
5
|
+
constructor(t, i, s) {
|
|
6
|
+
t === void 0 && (t = ""), i === void 0 && (i = 0), this.value = t, this.from = i, this.stop = s;
|
|
7
|
+
}
|
|
8
|
+
toString() {
|
|
9
|
+
return this.value;
|
|
10
|
+
}
|
|
11
|
+
extend(t) {
|
|
12
|
+
this.value += String(t);
|
|
13
|
+
}
|
|
14
|
+
appendTo(t) {
|
|
15
|
+
return t.append(this.toString(), {
|
|
16
|
+
tail: !0
|
|
17
|
+
}).aggregate(t._appendPlaceholder());
|
|
18
|
+
}
|
|
19
|
+
get state() {
|
|
20
|
+
return {
|
|
21
|
+
value: this.value,
|
|
22
|
+
from: this.from,
|
|
23
|
+
stop: this.stop
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
set state(t) {
|
|
27
|
+
Object.assign(this, t);
|
|
28
|
+
}
|
|
29
|
+
unshift(t) {
|
|
30
|
+
if (!this.value.length || t != null && this.from >= t) return "";
|
|
31
|
+
const i = this.value[0];
|
|
32
|
+
return this.value = this.value.slice(1), i;
|
|
33
|
+
}
|
|
34
|
+
shift() {
|
|
35
|
+
if (!this.value.length) return "";
|
|
36
|
+
const t = this.value[this.value.length - 1];
|
|
37
|
+
return this.value = this.value.slice(0, -1), t;
|
|
38
|
+
}
|
|
5
39
|
}
|
|
6
40
|
export {
|
|
7
|
-
|
|
41
|
+
h as default
|
|
8
42
|
};
|
|
9
43
|
//# sourceMappingURL=index271.js.map
|
package/dist/index271.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index271.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index271.js","sources":["../../../node_modules/imask/esm/core/continuous-tail-details.js"],"sourcesContent":["/** Provides details of continuous extracted tail */\nclass ContinuousTailDetails {\n /** Tail value as string */\n\n /** Tail start position */\n\n /** Start position */\n\n constructor(value, from, stop) {\n if (value === void 0) {\n value = '';\n }\n if (from === void 0) {\n from = 0;\n }\n this.value = value;\n this.from = from;\n this.stop = stop;\n }\n toString() {\n return this.value;\n }\n extend(tail) {\n this.value += String(tail);\n }\n appendTo(masked) {\n return masked.append(this.toString(), {\n tail: true\n }).aggregate(masked._appendPlaceholder());\n }\n get state() {\n return {\n value: this.value,\n from: this.from,\n stop: this.stop\n };\n }\n set state(state) {\n Object.assign(this, state);\n }\n unshift(beforePos) {\n if (!this.value.length || beforePos != null && this.from >= beforePos) return '';\n const shiftChar = this.value[0];\n this.value = this.value.slice(1);\n return shiftChar;\n }\n shift() {\n if (!this.value.length) return '';\n const shiftChar = this.value[this.value.length - 1];\n this.value = this.value.slice(0, -1);\n return shiftChar;\n }\n}\n\nexport { ContinuousTailDetails as default };\n"],"names":["ContinuousTailDetails","value","from","stop","tail","masked","state","beforePos","shiftChar"],"mappings":"AACA,MAAMA,EAAsB;AAAA;AAAA;AAAA;AAAA,EAO1B,YAAYC,GAAOC,GAAMC,GAAM;AAC7B,IAAIF,MAAU,WACZA,IAAQ,KAENC,MAAS,WACXA,IAAO,IAET,KAAK,QAAQD,GACb,KAAK,OAAOC,GACZ,KAAK,OAAOC;AAAA,EACd;AAAA,EACA,WAAW;AACT,WAAO,KAAK;AAAA,EACd;AAAA,EACA,OAAOC,GAAM;AACX,SAAK,SAAS,OAAOA,CAAI;AAAA,EAC3B;AAAA,EACA,SAASC,GAAQ;AACf,WAAOA,EAAO,OAAO,KAAK,SAAQ,GAAI;AAAA,MACpC,MAAM;AAAA,IACZ,CAAK,EAAE,UAAUA,EAAO,oBAAoB;AAAA,EAC1C;AAAA,EACA,IAAI,QAAQ;AACV,WAAO;AAAA,MACL,OAAO,KAAK;AAAA,MACZ,MAAM,KAAK;AAAA,MACX,MAAM,KAAK;AAAA,IACjB;AAAA,EACE;AAAA,EACA,IAAI,MAAMC,GAAO;AACf,WAAO,OAAO,MAAMA,CAAK;AAAA,EAC3B;AAAA,EACA,QAAQC,GAAW;AACjB,QAAI,CAAC,KAAK,MAAM,UAAUA,KAAa,QAAQ,KAAK,QAAQA,EAAW,QAAO;AAC9E,UAAMC,IAAY,KAAK,MAAM,CAAC;AAC9B,gBAAK,QAAQ,KAAK,MAAM,MAAM,CAAC,GACxBA;AAAA,EACT;AAAA,EACA,QAAQ;AACN,QAAI,CAAC,KAAK,MAAM,OAAQ,QAAO;AAC/B,UAAMA,IAAY,KAAK,MAAM,KAAK,MAAM,SAAS,CAAC;AAClD,gBAAK,QAAQ,KAAK,MAAM,MAAM,GAAG,EAAE,GAC5BA;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
|
package/dist/index272.js
CHANGED
|
@@ -1,68 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return Array.isArray(t) ? a(e, (n, i) => t.includes(i)) : Object.entries(e).reduce((n, i) => {
|
|
10
|
-
let [r, f] = i;
|
|
11
|
-
return t(f, r) && (n[r] = f), n;
|
|
12
|
-
}, {});
|
|
13
|
-
}
|
|
14
|
-
const o = {
|
|
15
|
-
NONE: "NONE",
|
|
16
|
-
LEFT: "LEFT",
|
|
17
|
-
FORCE_LEFT: "FORCE_LEFT",
|
|
18
|
-
RIGHT: "RIGHT",
|
|
19
|
-
FORCE_RIGHT: "FORCE_RIGHT"
|
|
20
|
-
};
|
|
21
|
-
function R(e) {
|
|
22
|
-
switch (e) {
|
|
23
|
-
case o.LEFT:
|
|
24
|
-
return o.FORCE_LEFT;
|
|
25
|
-
case o.RIGHT:
|
|
26
|
-
return o.FORCE_RIGHT;
|
|
27
|
-
default:
|
|
28
|
-
return e;
|
|
1
|
+
import p from "./index157.js";
|
|
2
|
+
import { isString as g } from "./index269.js";
|
|
3
|
+
import c from "./index271.js";
|
|
4
|
+
import u from "./index156.js";
|
|
5
|
+
class r {
|
|
6
|
+
/** */
|
|
7
|
+
constructor(t, s) {
|
|
8
|
+
t === void 0 && (t = []), s === void 0 && (s = 0), this.chunks = t, this.from = s;
|
|
29
9
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
if (t
|
|
40
|
-
|
|
41
|
-
|
|
10
|
+
toString() {
|
|
11
|
+
return this.chunks.map(String).join("");
|
|
12
|
+
}
|
|
13
|
+
extend(t) {
|
|
14
|
+
if (!String(t)) return;
|
|
15
|
+
t = g(t) ? new c(String(t)) : t;
|
|
16
|
+
const s = this.chunks[this.chunks.length - 1], n = s && // if stops are same or tail has no stop
|
|
17
|
+
(s.stop === t.stop || t.stop == null) && // if tail chunk goes just after last chunk
|
|
18
|
+
t.from === s.from + s.toString().length;
|
|
19
|
+
if (t instanceof c)
|
|
20
|
+
n ? s.extend(t.toString()) : this.chunks.push(t);
|
|
21
|
+
else if (t instanceof r) {
|
|
22
|
+
if (t.stop == null) {
|
|
23
|
+
let e;
|
|
24
|
+
for (; t.chunks.length && t.chunks[0].stop == null; )
|
|
25
|
+
e = t.chunks.shift(), e.from += t.from, this.extend(e);
|
|
26
|
+
}
|
|
27
|
+
t.toString() && (t.stop = t.blockIndex, this.chunks.push(t));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
appendTo(t) {
|
|
31
|
+
if (!(t instanceof u.MaskedPattern))
|
|
32
|
+
return new c(this.toString()).appendTo(t);
|
|
33
|
+
const s = new p();
|
|
34
|
+
for (let n = 0; n < this.chunks.length; ++n) {
|
|
35
|
+
const e = this.chunks[n], i = t._mapPosToBlock(t.displayValue.length), o = e.stop;
|
|
36
|
+
let h;
|
|
37
|
+
if (o != null && // if block not found or stop is behind lastBlock
|
|
38
|
+
(!i || i.index <= o) && ((e instanceof r || // for continuous block also check if stop is exist
|
|
39
|
+
t._stops.indexOf(o) >= 0) && s.aggregate(t._appendPlaceholder(o)), h = e instanceof r && t._blocks[o]), h) {
|
|
40
|
+
const f = h.appendTail(e);
|
|
41
|
+
s.aggregate(f);
|
|
42
|
+
const l = e.toString().slice(f.rawInserted.length);
|
|
43
|
+
l && s.aggregate(t.append(l, {
|
|
44
|
+
tail: !0
|
|
45
|
+
}));
|
|
46
|
+
} else
|
|
47
|
+
s.aggregate(t.append(e.toString(), {
|
|
48
|
+
tail: !0
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
return s;
|
|
52
|
+
}
|
|
53
|
+
get state() {
|
|
54
|
+
return {
|
|
55
|
+
chunks: this.chunks.map((t) => t.state),
|
|
56
|
+
from: this.from,
|
|
57
|
+
stop: this.stop,
|
|
58
|
+
blockIndex: this.blockIndex
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
set state(t) {
|
|
62
|
+
const {
|
|
63
|
+
chunks: s,
|
|
64
|
+
...n
|
|
65
|
+
} = t;
|
|
66
|
+
Object.assign(this, n), this.chunks = s.map((e) => {
|
|
67
|
+
const i = "chunks" in e ? new r() : new c();
|
|
68
|
+
return i.state = e, i;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
unshift(t) {
|
|
72
|
+
if (!this.chunks.length || t != null && this.from >= t) return "";
|
|
73
|
+
const s = t != null ? t - this.from : t;
|
|
74
|
+
let n = 0;
|
|
75
|
+
for (; n < this.chunks.length; ) {
|
|
76
|
+
const e = this.chunks[n], i = e.unshift(s);
|
|
77
|
+
if (e.toString()) {
|
|
78
|
+
if (!i) break;
|
|
79
|
+
++n;
|
|
80
|
+
} else
|
|
81
|
+
this.chunks.splice(n, 1);
|
|
82
|
+
if (i) return i;
|
|
83
|
+
}
|
|
84
|
+
return "";
|
|
85
|
+
}
|
|
86
|
+
shift() {
|
|
87
|
+
if (!this.chunks.length) return "";
|
|
88
|
+
let t = this.chunks.length - 1;
|
|
89
|
+
for (; 0 <= t; ) {
|
|
90
|
+
const s = this.chunks[t], n = s.shift();
|
|
91
|
+
if (s.toString()) {
|
|
92
|
+
if (!n) break;
|
|
93
|
+
--t;
|
|
94
|
+
} else
|
|
95
|
+
this.chunks.splice(t, 1);
|
|
96
|
+
if (n) return n;
|
|
97
|
+
}
|
|
98
|
+
return "";
|
|
42
99
|
}
|
|
43
|
-
if (n != i) return !1;
|
|
44
|
-
if (t && e && typeof t == "object" && typeof e == "object") {
|
|
45
|
-
const f = t instanceof Date, c = e instanceof Date;
|
|
46
|
-
if (f && c) return t.getTime() == e.getTime();
|
|
47
|
-
if (f != c) return !1;
|
|
48
|
-
const s = t instanceof RegExp, l = e instanceof RegExp;
|
|
49
|
-
if (s && l) return t.toString() == e.toString();
|
|
50
|
-
if (s != l) return !1;
|
|
51
|
-
const u = Object.keys(t);
|
|
52
|
-
for (r = 0; r < u.length; r++) if (!Object.prototype.hasOwnProperty.call(e, u[r])) return !1;
|
|
53
|
-
for (r = 0; r < u.length; r++) if (!g(e[u[r]], t[u[r]])) return !1;
|
|
54
|
-
return !0;
|
|
55
|
-
} else if (t && e && typeof t == "function" && typeof e == "function")
|
|
56
|
-
return t.toString() === e.toString();
|
|
57
|
-
return !1;
|
|
58
100
|
}
|
|
59
101
|
export {
|
|
60
|
-
|
|
61
|
-
O as escapeRegExp,
|
|
62
|
-
R as forceDirection,
|
|
63
|
-
E as isObject,
|
|
64
|
-
p as isString,
|
|
65
|
-
g as objectIncludes,
|
|
66
|
-
a as pick
|
|
102
|
+
r as default
|
|
67
103
|
};
|
|
68
104
|
//# sourceMappingURL=index272.js.map
|
package/dist/index272.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index272.js","sources":["../../../node_modules/imask/esm/
|
|
1
|
+
{"version":3,"file":"index272.js","sources":["../../../node_modules/imask/esm/masked/pattern/chunk-tail-details.js"],"sourcesContent":["import ChangeDetails from '../../core/change-details.js';\nimport { isString } from '../../core/utils.js';\nimport ContinuousTailDetails from '../../core/continuous-tail-details.js';\nimport IMask from '../../core/holder.js';\n\nclass ChunksTailDetails {\n /** */\n\n constructor(chunks, from) {\n if (chunks === void 0) {\n chunks = [];\n }\n if (from === void 0) {\n from = 0;\n }\n this.chunks = chunks;\n this.from = from;\n }\n toString() {\n return this.chunks.map(String).join('');\n }\n extend(tailChunk) {\n if (!String(tailChunk)) return;\n tailChunk = isString(tailChunk) ? new ContinuousTailDetails(String(tailChunk)) : tailChunk;\n const lastChunk = this.chunks[this.chunks.length - 1];\n const extendLast = lastChunk && (\n // if stops are same or tail has no stop\n lastChunk.stop === tailChunk.stop || tailChunk.stop == null) &&\n // if tail chunk goes just after last chunk\n tailChunk.from === lastChunk.from + lastChunk.toString().length;\n if (tailChunk instanceof ContinuousTailDetails) {\n // check the ability to extend previous chunk\n if (extendLast) {\n // extend previous chunk\n lastChunk.extend(tailChunk.toString());\n } else {\n // append new chunk\n this.chunks.push(tailChunk);\n }\n } else if (tailChunk instanceof ChunksTailDetails) {\n if (tailChunk.stop == null) {\n // unwrap floating chunks to parent, keeping `from` pos\n let firstTailChunk;\n while (tailChunk.chunks.length && tailChunk.chunks[0].stop == null) {\n firstTailChunk = tailChunk.chunks.shift(); // not possible to be `undefined` because length was checked above\n firstTailChunk.from += tailChunk.from;\n this.extend(firstTailChunk);\n }\n }\n\n // if tail chunk still has value\n if (tailChunk.toString()) {\n // if chunks contains stops, then popup stop to container\n tailChunk.stop = tailChunk.blockIndex;\n this.chunks.push(tailChunk);\n }\n }\n }\n appendTo(masked) {\n if (!(masked instanceof IMask.MaskedPattern)) {\n const tail = new ContinuousTailDetails(this.toString());\n return tail.appendTo(masked);\n }\n const details = new ChangeDetails();\n for (let ci = 0; ci < this.chunks.length; ++ci) {\n const chunk = this.chunks[ci];\n const lastBlockIter = masked._mapPosToBlock(masked.displayValue.length);\n const stop = chunk.stop;\n let chunkBlock;\n if (stop != null && (\n // if block not found or stop is behind lastBlock\n !lastBlockIter || lastBlockIter.index <= stop)) {\n if (chunk instanceof ChunksTailDetails ||\n // for continuous block also check if stop is exist\n masked._stops.indexOf(stop) >= 0) {\n details.aggregate(masked._appendPlaceholder(stop));\n }\n chunkBlock = chunk instanceof ChunksTailDetails && masked._blocks[stop];\n }\n if (chunkBlock) {\n const tailDetails = chunkBlock.appendTail(chunk);\n details.aggregate(tailDetails);\n\n // get not inserted chars\n const remainChars = chunk.toString().slice(tailDetails.rawInserted.length);\n if (remainChars) details.aggregate(masked.append(remainChars, {\n tail: true\n }));\n } else {\n details.aggregate(masked.append(chunk.toString(), {\n tail: true\n }));\n }\n }\n return details;\n }\n get state() {\n return {\n chunks: this.chunks.map(c => c.state),\n from: this.from,\n stop: this.stop,\n blockIndex: this.blockIndex\n };\n }\n set state(state) {\n const {\n chunks,\n ...props\n } = state;\n Object.assign(this, props);\n this.chunks = chunks.map(cstate => {\n const chunk = \"chunks\" in cstate ? new ChunksTailDetails() : new ContinuousTailDetails();\n chunk.state = cstate;\n return chunk;\n });\n }\n unshift(beforePos) {\n if (!this.chunks.length || beforePos != null && this.from >= beforePos) return '';\n const chunkShiftPos = beforePos != null ? beforePos - this.from : beforePos;\n let ci = 0;\n while (ci < this.chunks.length) {\n const chunk = this.chunks[ci];\n const shiftChar = chunk.unshift(chunkShiftPos);\n if (chunk.toString()) {\n // chunk still contains value\n // but not shifted - means no more available chars to shift\n if (!shiftChar) break;\n ++ci;\n } else {\n // clean if chunk has no value\n this.chunks.splice(ci, 1);\n }\n if (shiftChar) return shiftChar;\n }\n return '';\n }\n shift() {\n if (!this.chunks.length) return '';\n let ci = this.chunks.length - 1;\n while (0 <= ci) {\n const chunk = this.chunks[ci];\n const shiftChar = chunk.shift();\n if (chunk.toString()) {\n // chunk still contains value\n // but not shifted - means no more available chars to shift\n if (!shiftChar) break;\n --ci;\n } else {\n // clean if chunk has no value\n this.chunks.splice(ci, 1);\n }\n if (shiftChar) return shiftChar;\n }\n return '';\n }\n}\n\nexport { ChunksTailDetails as default };\n"],"names":["ChunksTailDetails","chunks","from","tailChunk","isString","ContinuousTailDetails","lastChunk","extendLast","firstTailChunk","masked","IMask","details","ChangeDetails","ci","chunk","lastBlockIter","stop","chunkBlock","tailDetails","remainChars","c","state","props","cstate","beforePos","chunkShiftPos","shiftChar"],"mappings":";;;;AAKA,MAAMA,EAAkB;AAAA;AAAA,EAGtB,YAAYC,GAAQC,GAAM;AACxB,IAAID,MAAW,WACbA,IAAS,CAAA,IAEPC,MAAS,WACXA,IAAO,IAET,KAAK,SAASD,GACd,KAAK,OAAOC;AAAA,EACd;AAAA,EACA,WAAW;AACT,WAAO,KAAK,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE;AAAA,EACxC;AAAA,EACA,OAAOC,GAAW;AAChB,QAAI,CAAC,OAAOA,CAAS,EAAG;AACxB,IAAAA,IAAYC,EAASD,CAAS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