@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/index33.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index33.js","sources":["../../../node_modules/imask/esm/controls/mask-element.js"],"sourcesContent":["import IMask from '../core/holder.js';\n\n/**
|
|
1
|
+
{"version":3,"file":"index33.js","sources":["../../../node_modules/imask/esm/controls/html-input-mask-element.js"],"sourcesContent":["import HTMLMaskElement from './html-mask-element.js';\nimport IMask from '../core/holder.js';\nimport './mask-element.js';\n\n/** Bridge between InputElement and {@link Masked} */\nclass HTMLInputMaskElement extends HTMLMaskElement {\n /** InputElement to use mask on */\n\n constructor(input) {\n super(input);\n this.input = input;\n }\n\n /** Returns InputElement selection start */\n get _unsafeSelectionStart() {\n return this.input.selectionStart != null ? this.input.selectionStart : this.value.length;\n }\n\n /** Returns InputElement selection end */\n get _unsafeSelectionEnd() {\n return this.input.selectionEnd;\n }\n\n /** Sets InputElement selection */\n _unsafeSelect(start, end) {\n this.input.setSelectionRange(start, end);\n }\n get value() {\n return this.input.value;\n }\n set value(value) {\n this.input.value = value;\n }\n}\nIMask.HTMLMaskElement = HTMLMaskElement;\n\nexport { HTMLInputMaskElement as default };\n"],"names":["HTMLInputMaskElement","HTMLMaskElement","input","start","end","value","IMask"],"mappings":";;;AAKA,MAAMA,UAA6BC,EAAgB;AAAA;AAAA,EAGjD,YAAYC,GAAO;AACjB,UAAMA,CAAK,GACX,KAAK,QAAQA;AAAA,EACf;AAAA;AAAA,EAGA,IAAI,wBAAwB;AAC1B,WAAO,KAAK,MAAM,kBAAkB,OAAO,KAAK,MAAM,iBAAiB,KAAK,MAAM;AAAA,EACpF;AAAA;AAAA,EAGA,IAAI,sBAAsB;AACxB,WAAO,KAAK,MAAM;AAAA,EACpB;AAAA;AAAA,EAGA,cAAcC,GAAOC,GAAK;AACxB,SAAK,MAAM,kBAAkBD,GAAOC,CAAG;AAAA,EACzC;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,KAAK,MAAM;AAAA,EACpB;AAAA,EACA,IAAI,MAAMC,GAAO;AACf,SAAK,MAAM,QAAQA;AAAA,EACrB;AACF;AACAC,EAAM,kBAAkBL;","x_google_ignoreList":[0]}
|
package/dist/index331.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDayOfYear as m } from "./index335.js";
|
|
2
|
-
import { getISOWeek as g } from "./
|
|
2
|
+
import { getISOWeek as g } from "./index233.js";
|
|
3
3
|
import { getISOWeekYear as w } from "./index338.js";
|
|
4
|
-
import { getWeek as b } from "./
|
|
4
|
+
import { getWeek as b } from "./index236.js";
|
|
5
5
|
import { getWeekYear as x } from "./index340.js";
|
|
6
6
|
import { addLeadingZeros as i } from "./index346.js";
|
|
7
7
|
import { lightFormatters as u } from "./index347.js";
|
package/dist/index334.js
CHANGED
package/dist/index335.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { differenceInCalendarDays as f } from "./
|
|
2
|
-
import { startOfYear as e } from "./
|
|
1
|
+
import { differenceInCalendarDays as f } from "./index225.js";
|
|
2
|
+
import { startOfYear as e } from "./index251.js";
|
|
3
3
|
import { toDate as o } from "./index325.js";
|
|
4
4
|
function c(t, a) {
|
|
5
5
|
const r = o(t, a?.in);
|
package/dist/index337.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { constructFrom as a } from "./index324.js";
|
|
2
2
|
import { getISOWeekYear as f } from "./index338.js";
|
|
3
|
-
import { startOfISOWeek as s } from "./
|
|
3
|
+
import { startOfISOWeek as s } from "./index248.js";
|
|
4
4
|
function O(t, e) {
|
|
5
5
|
const o = f(t, e), r = a(t, 0);
|
|
6
6
|
return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), s(r);
|
package/dist/index338.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { constructFrom as s } from "./index324.js";
|
|
2
|
-
import { startOfISOWeek as a } from "./
|
|
2
|
+
import { startOfISOWeek as a } from "./index248.js";
|
|
3
3
|
import { toDate as m } from "./index325.js";
|
|
4
4
|
function Y(f, n) {
|
|
5
5
|
const e = m(f, n?.in), t = e.getFullYear(), r = s(e, 0);
|
package/dist/index339.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultOptions as n } from "./index330.js";
|
|
2
2
|
import { constructFrom as i } from "./index324.js";
|
|
3
3
|
import { getWeekYear as f } from "./index340.js";
|
|
4
|
-
import { startOfWeek as c } from "./
|
|
4
|
+
import { startOfWeek as c } from "./index250.js";
|
|
5
5
|
function D(r, t) {
|
|
6
6
|
const a = n(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = f(r, t), e = i(t?.in || r, 0);
|
|
7
7
|
return e.setFullYear(s, 0, o), e.setHours(0, 0, 0, 0), c(e, t);
|
package/dist/index34.js
CHANGED
|
@@ -1,32 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
class
|
|
5
|
-
/**
|
|
1
|
+
import s from "./index32.js";
|
|
2
|
+
import o from "./index156.js";
|
|
3
|
+
const e = 90, r = 89;
|
|
4
|
+
class h extends s {
|
|
5
|
+
/** HTMLElement to use mask on */
|
|
6
6
|
constructor(t) {
|
|
7
|
-
super(
|
|
7
|
+
super(), this.input = t, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return this.input.
|
|
9
|
+
get rootElement() {
|
|
10
|
+
var t, n, i;
|
|
11
|
+
return (t = (n = (i = this.input).getRootNode) == null ? void 0 : n.call(i)) != null ? t : document;
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
14
|
-
get
|
|
15
|
-
return this.input.
|
|
13
|
+
/** Is element in focus */
|
|
14
|
+
get isActive() {
|
|
15
|
+
return this.input === this.rootElement.activeElement;
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
this.input.
|
|
17
|
+
/** Binds HTMLElement events to mask internal events */
|
|
18
|
+
bindEvents(t) {
|
|
19
|
+
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
_onKeydown(t) {
|
|
22
|
+
if (this._handlers.redo && (t.keyCode === e && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === r && t.ctrlKey))
|
|
23
|
+
return t.preventDefault(), this._handlers.redo(t);
|
|
24
|
+
if (this._handlers.undo && t.keyCode === e && (t.metaKey || t.ctrlKey))
|
|
25
|
+
return t.preventDefault(), this._handlers.undo(t);
|
|
26
|
+
t.isComposing || this._handlers.selectionChange(t);
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
this.
|
|
28
|
+
_onBeforeinput(t) {
|
|
29
|
+
if (t.inputType === "historyUndo" && this._handlers.undo)
|
|
30
|
+
return t.preventDefault(), this._handlers.undo(t);
|
|
31
|
+
if (t.inputType === "historyRedo" && this._handlers.redo)
|
|
32
|
+
return t.preventDefault(), this._handlers.redo(t);
|
|
33
|
+
}
|
|
34
|
+
_onCompositionEnd(t) {
|
|
35
|
+
this._handlers.input(t);
|
|
36
|
+
}
|
|
37
|
+
_onInput(t) {
|
|
38
|
+
t.isComposing || this._handlers.input(t);
|
|
39
|
+
}
|
|
40
|
+
/** Unbinds HTMLElement events to mask internal events */
|
|
41
|
+
unbindEvents() {
|
|
42
|
+
this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
|
|
26
43
|
}
|
|
27
44
|
}
|
|
28
|
-
|
|
45
|
+
o.HTMLMaskElement = h;
|
|
29
46
|
export {
|
|
30
|
-
|
|
47
|
+
h as default
|
|
31
48
|
};
|
|
32
49
|
//# sourceMappingURL=index34.js.map
|
package/dist/index34.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index34.js","sources":["../../../node_modules/imask/esm/controls/html-
|
|
1
|
+
{"version":3,"file":"index34.js","sources":["../../../node_modules/imask/esm/controls/html-mask-element.js"],"sourcesContent":["import MaskElement from './mask-element.js';\nimport IMask from '../core/holder.js';\n\nconst KEY_Z = 90;\nconst KEY_Y = 89;\n\n/** Bridge between HTMLElement and {@link Masked} */\nclass HTMLMaskElement extends MaskElement {\n /** HTMLElement to use mask on */\n\n constructor(input) {\n super();\n this.input = input;\n this._onKeydown = this._onKeydown.bind(this);\n this._onInput = this._onInput.bind(this);\n this._onBeforeinput = this._onBeforeinput.bind(this);\n this._onCompositionEnd = this._onCompositionEnd.bind(this);\n }\n get rootElement() {\n var _this$input$getRootNo, _this$input$getRootNo2, _this$input;\n return (_this$input$getRootNo = (_this$input$getRootNo2 = (_this$input = this.input).getRootNode) == null ? void 0 : _this$input$getRootNo2.call(_this$input)) != null ? _this$input$getRootNo : document;\n }\n\n /** Is element in focus */\n get isActive() {\n return this.input === this.rootElement.activeElement;\n }\n\n /** Binds HTMLElement events to mask internal events */\n bindEvents(handlers) {\n this.input.addEventListener('keydown', this._onKeydown);\n this.input.addEventListener('input', this._onInput);\n this.input.addEventListener('beforeinput', this._onBeforeinput);\n this.input.addEventListener('compositionend', this._onCompositionEnd);\n this.input.addEventListener('drop', handlers.drop);\n this.input.addEventListener('click', handlers.click);\n this.input.addEventListener('focus', handlers.focus);\n this.input.addEventListener('blur', handlers.commit);\n this._handlers = handlers;\n }\n _onKeydown(e) {\n if (this._handlers.redo && (e.keyCode === KEY_Z && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode === KEY_Y && e.ctrlKey)) {\n e.preventDefault();\n return this._handlers.redo(e);\n }\n if (this._handlers.undo && e.keyCode === KEY_Z && (e.metaKey || e.ctrlKey)) {\n e.preventDefault();\n return this._handlers.undo(e);\n }\n if (!e.isComposing) this._handlers.selectionChange(e);\n }\n _onBeforeinput(e) {\n if (e.inputType === 'historyUndo' && this._handlers.undo) {\n e.preventDefault();\n return this._handlers.undo(e);\n }\n if (e.inputType === 'historyRedo' && this._handlers.redo) {\n e.preventDefault();\n return this._handlers.redo(e);\n }\n }\n _onCompositionEnd(e) {\n this._handlers.input(e);\n }\n _onInput(e) {\n if (!e.isComposing) this._handlers.input(e);\n }\n\n /** Unbinds HTMLElement events to mask internal events */\n unbindEvents() {\n this.input.removeEventListener('keydown', this._onKeydown);\n this.input.removeEventListener('input', this._onInput);\n this.input.removeEventListener('beforeinput', this._onBeforeinput);\n this.input.removeEventListener('compositionend', this._onCompositionEnd);\n this.input.removeEventListener('drop', this._handlers.drop);\n this.input.removeEventListener('click', this._handlers.click);\n this.input.removeEventListener('focus', this._handlers.focus);\n this.input.removeEventListener('blur', this._handlers.commit);\n this._handlers = {};\n }\n}\nIMask.HTMLMaskElement = HTMLMaskElement;\n\nexport { HTMLMaskElement as default };\n"],"names":["KEY_Z","KEY_Y","HTMLMaskElement","MaskElement","input","_this$input$getRootNo","_this$input$getRootNo2","_this$input","handlers","e","IMask"],"mappings":";;AAGA,MAAMA,IAAQ,IACRC,IAAQ;AAGd,MAAMC,UAAwBC,EAAY;AAAA;AAAA,EAGxC,YAAYC,GAAO;AACjB,UAAK,GACL,KAAK,QAAQA,GACb,KAAK,aAAa,KAAK,WAAW,KAAK,IAAI,GAC3C,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI,GACvC,KAAK,iBAAiB,KAAK,eAAe,KAAK,IAAI,GACnD,KAAK,oBAAoB,KAAK,kBAAkB,KAAK,IAAI;AAAA,EAC3D;AAAA,EACA,IAAI,cAAc;AAChB,QAAIC,GAAuBC,GAAwBC;AACnD,YAAQF,KAAyBC,KAA0BC,IAAc,KAAK,OAAO,gBAAgB,OAAO,SAASD,EAAuB,KAAKC,CAAW,MAAM,OAAOF,IAAwB;AAAA,EACnM;AAAA;AAAA,EAGA,IAAI,WAAW;AACb,WAAO,KAAK,UAAU,KAAK,YAAY;AAAA,EACzC;AAAA;AAAA,EAGA,WAAWG,GAAU;AACnB,SAAK,MAAM,iBAAiB,WAAW,KAAK,UAAU,GACtD,KAAK,MAAM,iBAAiB,SAAS,KAAK,QAAQ,GAClD,KAAK,MAAM,iBAAiB,eAAe,KAAK,cAAc,GAC9D,KAAK,MAAM,iBAAiB,kBAAkB,KAAK,iBAAiB,GACpE,KAAK,MAAM,iBAAiB,QAAQA,EAAS,IAAI,GACjD,KAAK,MAAM,iBAAiB,SAASA,EAAS,KAAK,GACnD,KAAK,MAAM,iBAAiB,SAASA,EAAS,KAAK,GACnD,KAAK,MAAM,iBAAiB,QAAQA,EAAS,MAAM,GACnD,KAAK,YAAYA;AAAA,EACnB;AAAA,EACA,WAAWC,GAAG;AACZ,QAAI,KAAK,UAAU,SAASA,EAAE,YAAYT,KAASS,EAAE,aAAaA,EAAE,WAAWA,EAAE,YAAYA,EAAE,YAAYR,KAASQ,EAAE;AACpH,aAAAA,EAAE,eAAc,GACT,KAAK,UAAU,KAAKA,CAAC;AAE9B,QAAI,KAAK,UAAU,QAAQA,EAAE,YAAYT,MAAUS,EAAE,WAAWA,EAAE;AAChE,aAAAA,EAAE,eAAc,GACT,KAAK,UAAU,KAAKA,CAAC;AAE9B,IAAKA,EAAE,eAAa,KAAK,UAAU,gBAAgBA,CAAC;AAAA,EACtD;AAAA,EACA,eAAeA,GAAG;AAChB,QAAIA,EAAE,cAAc,iBAAiB,KAAK,UAAU;AAClD,aAAAA,EAAE,eAAc,GACT,KAAK,UAAU,KAAKA,CAAC;AAE9B,QAAIA,EAAE,cAAc,iBAAiB,KAAK,UAAU;AAClD,aAAAA,EAAE,eAAc,GACT,KAAK,UAAU,KAAKA,CAAC;AAAA,EAEhC;AAAA,EACA,kBAAkBA,GAAG;AACnB,SAAK,UAAU,MAAMA,CAAC;AAAA,EACxB;AAAA,EACA,SAASA,GAAG;AACV,IAAKA,EAAE,eAAa,KAAK,UAAU,MAAMA,CAAC;AAAA,EAC5C;AAAA;AAAA,EAGA,eAAe;AACb,SAAK,MAAM,oBAAoB,WAAW,KAAK,UAAU,GACzD,KAAK,MAAM,oBAAoB,SAAS,KAAK,QAAQ,GACrD,KAAK,MAAM,oBAAoB,eAAe,KAAK,cAAc,GACjE,KAAK,MAAM,oBAAoB,kBAAkB,KAAK,iBAAiB,GACvE,KAAK,MAAM,oBAAoB,QAAQ,KAAK,UAAU,IAAI,GAC1D,KAAK,MAAM,oBAAoB,SAAS,KAAK,UAAU,KAAK,GAC5D,KAAK,MAAM,oBAAoB,SAAS,KAAK,UAAU,KAAK,GAC5D,KAAK,MAAM,oBAAoB,QAAQ,KAAK,UAAU,MAAM,GAC5D,KAAK,YAAY,CAAA;AAAA,EACnB;AACF;AACAC,EAAM,kBAAkBR;","x_google_ignoreList":[0]}
|
package/dist/index340.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDefaultOptions as k } from "./index330.js";
|
|
2
2
|
import { constructFrom as i } from "./index324.js";
|
|
3
|
-
import { startOfWeek as l } from "./
|
|
3
|
+
import { startOfWeek as l } from "./index250.js";
|
|
4
4
|
import { toDate as m } from "./index325.js";
|
|
5
5
|
function C(r, e) {
|
|
6
6
|
const s = m(r, e?.in), t = s.getFullYear(), o = k(), f = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = i(e?.in || r, 0);
|
package/dist/index341.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
2
|
import { styleSingleton as f } from "./index342.js";
|
|
3
3
|
import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index315.js";
|
|
4
|
-
import { getGapWidth as m } from "./
|
|
4
|
+
import { getGapWidth as m } from "./index362.js";
|
|
5
5
|
var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
|
|
6
6
|
var r = n.left, i = n.top, s = n.right, c = n.gap;
|
|
7
7
|
return o === void 0 && (o = "margin"), `
|
package/dist/index342.js
CHANGED
package/dist/index345.js
CHANGED
package/dist/index35.js
CHANGED
|
@@ -1,49 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
class
|
|
5
|
-
/** HTMLElement
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (t.inputType === "historyUndo" && this._handlers.undo)
|
|
30
|
-
return t.preventDefault(), this._handlers.undo(t);
|
|
31
|
-
if (t.inputType === "historyRedo" && this._handlers.redo)
|
|
32
|
-
return t.preventDefault(), this._handlers.redo(t);
|
|
33
|
-
}
|
|
34
|
-
_onCompositionEnd(t) {
|
|
35
|
-
this._handlers.input(t);
|
|
36
|
-
}
|
|
37
|
-
_onInput(t) {
|
|
38
|
-
t.isComposing || this._handlers.input(t);
|
|
39
|
-
}
|
|
40
|
-
/** Unbinds HTMLElement events to mask internal events */
|
|
41
|
-
unbindEvents() {
|
|
42
|
-
this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
|
|
1
|
+
import i from "./index34.js";
|
|
2
|
+
import l from "./index156.js";
|
|
3
|
+
import "./index32.js";
|
|
4
|
+
class r extends i {
|
|
5
|
+
/** Returns HTMLElement selection start */
|
|
6
|
+
get _unsafeSelectionStart() {
|
|
7
|
+
const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
|
|
8
|
+
return n == null || e == null || e < n ? e : n;
|
|
9
|
+
}
|
|
10
|
+
/** Returns HTMLElement selection end */
|
|
11
|
+
get _unsafeSelectionEnd() {
|
|
12
|
+
const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
|
|
13
|
+
return n == null || e == null || e > n ? e : n;
|
|
14
|
+
}
|
|
15
|
+
/** Sets HTMLElement selection */
|
|
16
|
+
_unsafeSelect(o, t) {
|
|
17
|
+
if (!this.rootElement.createRange) return;
|
|
18
|
+
const e = this.rootElement.createRange();
|
|
19
|
+
e.setStart(this.input.firstChild || this.input, o), e.setEnd(this.input.lastChild || this.input, t);
|
|
20
|
+
const n = this.rootElement, s = n.getSelection && n.getSelection();
|
|
21
|
+
s && (s.removeAllRanges(), s.addRange(e));
|
|
22
|
+
}
|
|
23
|
+
/** HTMLElement value */
|
|
24
|
+
get value() {
|
|
25
|
+
return this.input.textContent || "";
|
|
26
|
+
}
|
|
27
|
+
set value(o) {
|
|
28
|
+
this.input.textContent = o;
|
|
43
29
|
}
|
|
44
30
|
}
|
|
45
|
-
|
|
31
|
+
l.HTMLContenteditableMaskElement = r;
|
|
46
32
|
export {
|
|
47
|
-
|
|
33
|
+
r as default
|
|
48
34
|
};
|
|
49
35
|
//# sourceMappingURL=index35.js.map
|
package/dist/index35.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index35.js","sources":["../../../node_modules/imask/esm/controls/html-mask-element.js"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index35.js","sources":["../../../node_modules/imask/esm/controls/html-contenteditable-mask-element.js"],"sourcesContent":["import HTMLMaskElement from './html-mask-element.js';\nimport IMask from '../core/holder.js';\nimport './mask-element.js';\n\nclass HTMLContenteditableMaskElement extends HTMLMaskElement {\n /** Returns HTMLElement selection start */\n get _unsafeSelectionStart() {\n const root = this.rootElement;\n const selection = root.getSelection && root.getSelection();\n const anchorOffset = selection && selection.anchorOffset;\n const focusOffset = selection && selection.focusOffset;\n if (focusOffset == null || anchorOffset == null || anchorOffset < focusOffset) {\n return anchorOffset;\n }\n return focusOffset;\n }\n\n /** Returns HTMLElement selection end */\n get _unsafeSelectionEnd() {\n const root = this.rootElement;\n const selection = root.getSelection && root.getSelection();\n const anchorOffset = selection && selection.anchorOffset;\n const focusOffset = selection && selection.focusOffset;\n if (focusOffset == null || anchorOffset == null || anchorOffset > focusOffset) {\n return anchorOffset;\n }\n return focusOffset;\n }\n\n /** Sets HTMLElement selection */\n _unsafeSelect(start, end) {\n if (!this.rootElement.createRange) return;\n const range = this.rootElement.createRange();\n range.setStart(this.input.firstChild || this.input, start);\n range.setEnd(this.input.lastChild || this.input, end);\n const root = this.rootElement;\n const selection = root.getSelection && root.getSelection();\n if (selection) {\n selection.removeAllRanges();\n selection.addRange(range);\n }\n }\n\n /** HTMLElement value */\n get value() {\n return this.input.textContent || '';\n }\n set value(value) {\n this.input.textContent = value;\n }\n}\nIMask.HTMLContenteditableMaskElement = HTMLContenteditableMaskElement;\n\nexport { HTMLContenteditableMaskElement as default };\n"],"names":["HTMLContenteditableMaskElement","HTMLMaskElement","root","selection","anchorOffset","focusOffset","start","end","range","value","IMask"],"mappings":";;;AAIA,MAAMA,UAAuCC,EAAgB;AAAA;AAAA,EAE3D,IAAI,wBAAwB;AAC1B,UAAMC,IAAO,KAAK,aACZC,IAAYD,EAAK,gBAAgBA,EAAK,aAAY,GAClDE,IAAeD,KAAaA,EAAU,cACtCE,IAAcF,KAAaA,EAAU;AAC3C,WAAIE,KAAe,QAAQD,KAAgB,QAAQA,IAAeC,IACzDD,IAEFC;AAAA,EACT;AAAA;AAAA,EAGA,IAAI,sBAAsB;AACxB,UAAMH,IAAO,KAAK,aACZC,IAAYD,EAAK,gBAAgBA,EAAK,aAAY,GAClDE,IAAeD,KAAaA,EAAU,cACtCE,IAAcF,KAAaA,EAAU;AAC3C,WAAIE,KAAe,QAAQD,KAAgB,QAAQA,IAAeC,IACzDD,IAEFC;AAAA,EACT;AAAA;AAAA,EAGA,cAAcC,GAAOC,GAAK;AACxB,QAAI,CAAC,KAAK,YAAY,YAAa;AACnC,UAAMC,IAAQ,KAAK,YAAY,YAAW;AAC1C,IAAAA,EAAM,SAAS,KAAK,MAAM,cAAc,KAAK,OAAOF,CAAK,GACzDE,EAAM,OAAO,KAAK,MAAM,aAAa,KAAK,OAAOD,CAAG;AACpD,UAAML,IAAO,KAAK,aACZC,IAAYD,EAAK,gBAAgBA,EAAK,aAAY;AACxD,IAAIC,MACFA,EAAU,gBAAe,GACzBA,EAAU,SAASK,CAAK;AAAA,EAE5B;AAAA;AAAA,EAGA,IAAI,QAAQ;AACV,WAAO,KAAK,MAAM,eAAe;AAAA,EACnC;AAAA,EACA,IAAI,MAAMC,GAAO;AACf,SAAK,MAAM,cAAcA;AAAA,EAC3B;AACF;AACAC,EAAM,iCAAiCV;","x_google_ignoreList":[0]}
|
package/dist/index359.js
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, f = function(t) {
|
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
-
return a;
|
|
14
|
-
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
-
return {
|
|
16
|
-
left: n[0],
|
|
17
|
-
top: n[1],
|
|
18
|
-
right: n[2],
|
|
19
|
-
gap: Math.max(0, r - i + n[2] - n[0])
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { stylesheetSingleton as r } from "./index360.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = r();
|
|
5
|
+
return function(e, n) {
|
|
6
|
+
o.useEffect(function() {
|
|
7
|
+
return t.add(e), function() {
|
|
8
|
+
t.remove();
|
|
9
|
+
};
|
|
10
|
+
}, [e && n]);
|
|
20
11
|
};
|
|
21
12
|
};
|
|
22
13
|
export {
|
|
23
|
-
|
|
24
|
-
a as zeroGap
|
|
14
|
+
i as styleHookSingleton
|
|
25
15
|
};
|
|
26
16
|
//# sourceMappingURL=index359.js.map
|
package/dist/index359.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index359.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index359.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAmB;AAC/B,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAM;AAAA,MAChB;AAAA,IACJ,GAAG,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC5B;AACJ;","x_google_ignoreList":[0]}
|
package/dist/index36.js
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return this.input.textContent || "";
|
|
26
|
-
}
|
|
27
|
-
set value(o) {
|
|
28
|
-
this.input.textContent = o;
|
|
1
|
+
class s {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.states = [], this.currentIndex = 0;
|
|
4
|
+
}
|
|
5
|
+
get currentState() {
|
|
6
|
+
return this.states[this.currentIndex];
|
|
7
|
+
}
|
|
8
|
+
get isEmpty() {
|
|
9
|
+
return this.states.length === 0;
|
|
10
|
+
}
|
|
11
|
+
push(t) {
|
|
12
|
+
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > s.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
|
|
13
|
+
}
|
|
14
|
+
go(t) {
|
|
15
|
+
return this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1), this.currentState;
|
|
16
|
+
}
|
|
17
|
+
undo() {
|
|
18
|
+
return this.go(-1);
|
|
19
|
+
}
|
|
20
|
+
redo() {
|
|
21
|
+
return this.go(1);
|
|
22
|
+
}
|
|
23
|
+
clear() {
|
|
24
|
+
this.states.length = 0, this.currentIndex = 0;
|
|
29
25
|
}
|
|
30
26
|
}
|
|
31
|
-
|
|
27
|
+
s.MAX_LENGTH = 100;
|
|
32
28
|
export {
|
|
33
|
-
|
|
29
|
+
s as default
|
|
34
30
|
};
|
|
35
31
|
//# sourceMappingURL=index36.js.map
|
package/dist/index36.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index36.js","sources":["../../../node_modules/imask/esm/controls/
|
|
1
|
+
{"version":3,"file":"index36.js","sources":["../../../node_modules/imask/esm/controls/input-history.js"],"sourcesContent":["class InputHistory {\n constructor() {\n this.states = [];\n this.currentIndex = 0;\n }\n get currentState() {\n return this.states[this.currentIndex];\n }\n get isEmpty() {\n return this.states.length === 0;\n }\n push(state) {\n // if current index points before the last element then remove the future\n if (this.currentIndex < this.states.length - 1) this.states.length = this.currentIndex + 1;\n this.states.push(state);\n if (this.states.length > InputHistory.MAX_LENGTH) this.states.shift();\n this.currentIndex = this.states.length - 1;\n }\n go(steps) {\n this.currentIndex = Math.min(Math.max(this.currentIndex + steps, 0), this.states.length - 1);\n return this.currentState;\n }\n undo() {\n return this.go(-1);\n }\n redo() {\n return this.go(+1);\n }\n clear() {\n this.states.length = 0;\n this.currentIndex = 0;\n }\n}\nInputHistory.MAX_LENGTH = 100;\n\nexport { InputHistory as default };\n"],"names":["InputHistory","state","steps"],"mappings":"AAAA,MAAMA,EAAa;AAAA,EACjB,cAAc;AACZ,SAAK,SAAS,CAAA,GACd,KAAK,eAAe;AAAA,EACtB;AAAA,EACA,IAAI,eAAe;AACjB,WAAO,KAAK,OAAO,KAAK,YAAY;AAAA,EACtC;AAAA,EACA,IAAI,UAAU;AACZ,WAAO,KAAK,OAAO,WAAW;AAAA,EAChC;AAAA,EACA,KAAKC,GAAO;AAEV,IAAI,KAAK,eAAe,KAAK,OAAO,SAAS,MAAG,KAAK,OAAO,SAAS,KAAK,eAAe,IACzF,KAAK,OAAO,KAAKA,CAAK,GAClB,KAAK,OAAO,SAASD,EAAa,cAAY,KAAK,OAAO,MAAK,GACnE,KAAK,eAAe,KAAK,OAAO,SAAS;AAAA,EAC3C;AAAA,EACA,GAAGE,GAAO;AACR,gBAAK,eAAe,KAAK,IAAI,KAAK,IAAI,KAAK,eAAeA,GAAO,CAAC,GAAG,KAAK,OAAO,SAAS,CAAC,GACpF,KAAK;AAAA,EACd;AAAA,EACA,OAAO;AACL,WAAO,KAAK,GAAG,EAAE;AAAA,EACnB;AAAA,EACA,OAAO;AACL,WAAO,KAAK,GAAG,CAAE;AAAA,EACnB;AAAA,EACA,QAAQ;AACN,SAAK,OAAO,SAAS,GACrB,KAAK,eAAe;AAAA,EACtB;AACF;AACAF,EAAa,aAAa;","x_google_ignoreList":[0]}
|
package/dist/index360.js
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { getNonce as o } from "./index361.js";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
9
|
+
}
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
16
|
+
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
11
26
|
};
|
|
12
27
|
};
|
|
13
28
|
export {
|
|
14
|
-
|
|
29
|
+
c as stylesheetSingleton
|
|
15
30
|
};
|
|
16
31
|
//# sourceMappingURL=index360.js.map
|
package/dist/index360.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index360.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index360.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAQ;AACpB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACJ;AAAA,IACA,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAErB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index361.js
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return null;
|
|
5
|
-
var t = document.createElement("style");
|
|
6
|
-
t.type = "text/css";
|
|
7
|
-
var e = o();
|
|
8
|
-
return e && t.setAttribute("nonce", e), t;
|
|
9
|
-
}
|
|
10
|
-
function l(t, e) {
|
|
11
|
-
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
-
}
|
|
13
|
-
function a(t) {
|
|
14
|
-
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
-
e.appendChild(t);
|
|
16
|
-
}
|
|
17
|
-
var c = function() {
|
|
18
|
-
var t = 0, e = null;
|
|
19
|
-
return {
|
|
20
|
-
add: function(n) {
|
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
-
},
|
|
23
|
-
remove: function() {
|
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
1
|
+
var e = function() {
|
|
2
|
+
if (typeof __webpack_nonce__ < "u")
|
|
3
|
+
return __webpack_nonce__;
|
|
27
4
|
};
|
|
28
5
|
export {
|
|
29
|
-
|
|
6
|
+
e as getNonce
|
|
30
7
|
};
|
|
31
8
|
//# sourceMappingURL=index361.js.map
|
package/dist/index361.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index361.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index361.js","sources":["../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
|
package/dist/index362.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var a = {
|
|
2
|
+
left: 0,
|
|
3
|
+
top: 0,
|
|
4
|
+
right: 0,
|
|
5
|
+
gap: 0
|
|
6
|
+
}, e = function(t) {
|
|
7
|
+
return parseInt(t || "", 10) || 0;
|
|
8
|
+
}, o = function(t) {
|
|
9
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
10
|
+
return [e(i), e(r), e(d)];
|
|
11
|
+
}, f = function(t) {
|
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
+
return a;
|
|
14
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
+
return {
|
|
16
|
+
left: n[0],
|
|
17
|
+
top: n[1],
|
|
18
|
+
right: n[2],
|
|
19
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
|
20
|
+
};
|
|
4
21
|
};
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
f as getGapWidth,
|
|
24
|
+
a as zeroGap
|
|
7
25
|
};
|
|
8
26
|
//# sourceMappingURL=index362.js.map
|