@bagelink/vue 1.0.66 → 1.1.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTP.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/OTP.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OTP.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/OTP.vue"],"names":[],"mappings":"AAgKA,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;;;;;;;;;AA4JjF,wBASG"}
|
package/dist/index.cjs
CHANGED
|
@@ -17773,6 +17773,11 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
17773
17773
|
if (noPreventKeys.includes(event.key)) {
|
|
17774
17774
|
return;
|
|
17775
17775
|
}
|
|
17776
|
+
const preventKeys = ["ArrowUp", "ArrowDown"];
|
|
17777
|
+
if (preventKeys.includes(event.key)) {
|
|
17778
|
+
event.preventDefault();
|
|
17779
|
+
return;
|
|
17780
|
+
}
|
|
17776
17781
|
if (event.key === "Backspace") {
|
|
17777
17782
|
digits[index2] = void 0;
|
|
17778
17783
|
if (index2 !== 0) {
|
|
@@ -17830,14 +17835,16 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
17830
17835
|
pattern: "[0-9]*",
|
|
17831
17836
|
oninput: "this.value = this.value.slice(0, 1)",
|
|
17832
17837
|
onKeydown: ($event) => handleKeyDown($event, ind),
|
|
17833
|
-
onPaste: ($event) => handlePaste($event, ind)
|
|
17838
|
+
onPaste: ($event) => handlePaste($event, ind),
|
|
17839
|
+
onKeyup: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
17840
|
+
}, ["prevent"]))
|
|
17834
17841
|
}, null, 40, _hoisted_1$A);
|
|
17835
17842
|
}), 128))
|
|
17836
17843
|
], 512);
|
|
17837
17844
|
};
|
|
17838
17845
|
}
|
|
17839
17846
|
});
|
|
17840
|
-
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-
|
|
17847
|
+
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ab0a46bf"]]);
|
|
17841
17848
|
const _hoisted_1$z = { class: "relative passwordInput" };
|
|
17842
17849
|
const _hoisted_2$o = { class: "m-password position-bottom-end flex column justify-content-center" };
|
|
17843
17850
|
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -19304,7 +19311,7 @@ const resolveConfig = (config) => {
|
|
|
19304
19311
|
const newConfig = mergeConfig$1({}, config);
|
|
19305
19312
|
let { data: data2, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
19306
19313
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
19307
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
19314
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
19308
19315
|
if (auth) {
|
|
19309
19316
|
headers.set(
|
|
19310
19317
|
"Authorization",
|
|
@@ -19821,7 +19828,7 @@ function dispatchRequest(config) {
|
|
|
19821
19828
|
return Promise.reject(reason);
|
|
19822
19829
|
});
|
|
19823
19830
|
}
|
|
19824
|
-
const VERSION$1 = "1.8.
|
|
19831
|
+
const VERSION$1 = "1.8.3";
|
|
19825
19832
|
const validators$1 = {};
|
|
19826
19833
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
19827
19834
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -36795,7 +36802,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36795
36802
|
};
|
|
36796
36803
|
}
|
|
36797
36804
|
});
|
|
36798
|
-
const Lightbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
36805
|
+
const Lightbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fb2d5763"]]);
|
|
36799
36806
|
const groups = {};
|
|
36800
36807
|
let clickHandler = (_e2) => void 0;
|
|
36801
36808
|
const lightboxDirective = {
|
package/dist/index.mjs
CHANGED
|
@@ -17771,6 +17771,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
17771
17771
|
if (noPreventKeys.includes(event.key)) {
|
|
17772
17772
|
return;
|
|
17773
17773
|
}
|
|
17774
|
+
const preventKeys = ["ArrowUp", "ArrowDown"];
|
|
17775
|
+
if (preventKeys.includes(event.key)) {
|
|
17776
|
+
event.preventDefault();
|
|
17777
|
+
return;
|
|
17778
|
+
}
|
|
17774
17779
|
if (event.key === "Backspace") {
|
|
17775
17780
|
digits[index2] = void 0;
|
|
17776
17781
|
if (index2 !== 0) {
|
|
@@ -17828,14 +17833,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
17828
17833
|
pattern: "[0-9]*",
|
|
17829
17834
|
oninput: "this.value = this.value.slice(0, 1)",
|
|
17830
17835
|
onKeydown: ($event) => handleKeyDown($event, ind),
|
|
17831
|
-
onPaste: ($event) => handlePaste($event, ind)
|
|
17836
|
+
onPaste: ($event) => handlePaste($event, ind),
|
|
17837
|
+
onKeyup: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
17838
|
+
}, ["prevent"]))
|
|
17832
17839
|
}, null, 40, _hoisted_1$A);
|
|
17833
17840
|
}), 128))
|
|
17834
17841
|
], 512);
|
|
17835
17842
|
};
|
|
17836
17843
|
}
|
|
17837
17844
|
});
|
|
17838
|
-
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-
|
|
17845
|
+
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ab0a46bf"]]);
|
|
17839
17846
|
const _hoisted_1$z = { class: "relative passwordInput" };
|
|
17840
17847
|
const _hoisted_2$o = { class: "m-password position-bottom-end flex column justify-content-center" };
|
|
17841
17848
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
@@ -19302,7 +19309,7 @@ const resolveConfig = (config) => {
|
|
|
19302
19309
|
const newConfig = mergeConfig$1({}, config);
|
|
19303
19310
|
let { data: data2, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
19304
19311
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
19305
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
19312
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
19306
19313
|
if (auth) {
|
|
19307
19314
|
headers.set(
|
|
19308
19315
|
"Authorization",
|
|
@@ -19819,7 +19826,7 @@ function dispatchRequest(config) {
|
|
|
19819
19826
|
return Promise.reject(reason);
|
|
19820
19827
|
});
|
|
19821
19828
|
}
|
|
19822
|
-
const VERSION$1 = "1.8.
|
|
19829
|
+
const VERSION$1 = "1.8.3";
|
|
19823
19830
|
const validators$1 = {};
|
|
19824
19831
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
19825
19832
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -36793,7 +36800,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36793
36800
|
};
|
|
36794
36801
|
}
|
|
36795
36802
|
});
|
|
36796
|
-
const Lightbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
36803
|
+
const Lightbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fb2d5763"]]);
|
|
36797
36804
|
const groups = {};
|
|
36798
36805
|
let clickHandler = (_e2) => void 0;
|
|
36799
36806
|
const lightboxDirective = {
|
package/dist/style.css
CHANGED
|
@@ -1912,13 +1912,13 @@ pre code.hljs{
|
|
|
1912
1912
|
padding-inline-end: 1.75rem !important;
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
.otp_wrap[data-v-
|
|
1915
|
+
.otp_wrap[data-v-ab0a46bf] {
|
|
1916
1916
|
display: flex;
|
|
1917
1917
|
flex-direction: row;
|
|
1918
1918
|
justify-content: center;
|
|
1919
1919
|
align-items: center;
|
|
1920
1920
|
}
|
|
1921
|
-
.digit-box[data-v-
|
|
1921
|
+
.digit-box[data-v-ab0a46bf] {
|
|
1922
1922
|
height: 3rem;
|
|
1923
1923
|
flex-grow: 1;
|
|
1924
1924
|
border: 1px solid var(--bgl-primary-tint);
|
|
@@ -1930,20 +1930,28 @@ pre code.hljs{
|
|
|
1930
1930
|
font-size: 2.4rem;
|
|
1931
1931
|
-moz-appearance: textfield; /* Firefox */
|
|
1932
1932
|
caret-color: transparent;
|
|
1933
|
+
/* Remove spinner arrows */
|
|
1934
|
+
appearance: textfield; /* Standardized property */
|
|
1933
1935
|
}
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
+
|
|
1937
|
+
/* Remove spinner arrows for Webkit browsers */
|
|
1938
|
+
.digit-box[data-v-ab0a46bf]::-webkit-outer-spin-button,
|
|
1939
|
+
.digit-box[data-v-ab0a46bf]::-webkit-inner-spin-button {
|
|
1940
|
+
-webkit-appearance: none;
|
|
1941
|
+
appearance: none;
|
|
1936
1942
|
margin: 0;
|
|
1937
1943
|
}
|
|
1938
|
-
.digit-box[data-v-
|
|
1944
|
+
.digit-box[data-v-ab0a46bf]:focus {
|
|
1939
1945
|
outline: 1px solid var(--bgl-primary);
|
|
1940
1946
|
filter: drop-shadow(0 0 0.25rem var(--bgl-primary));
|
|
1941
1947
|
}
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1948
|
+
|
|
1949
|
+
/* Redundant, already covered above */
|
|
1950
|
+
/* .digit-box[type="number"] {
|
|
1951
|
+
-moz-appearance: textfield;
|
|
1952
|
+
} */
|
|
1945
1953
|
@media screen and (max-width: 910px) {
|
|
1946
|
-
.digit-box[data-v-
|
|
1954
|
+
.digit-box[data-v-ab0a46bf] {
|
|
1947
1955
|
padding: 0.25rem;
|
|
1948
1956
|
}
|
|
1949
1957
|
}
|
|
@@ -4613,22 +4621,22 @@ td[data-v-5386c509]:has(:checked){
|
|
|
4613
4621
|
-moz-user-drag: none;
|
|
4614
4622
|
}
|
|
4615
4623
|
|
|
4616
|
-
.bgl-lightbox[data-v-
|
|
4624
|
+
.bgl-lightbox[data-v-fb2d5763]:has(.bgl_vid) {
|
|
4617
4625
|
width: 90vw;
|
|
4618
4626
|
}
|
|
4619
|
-
.lightbox-image[data-v-
|
|
4627
|
+
.lightbox-image[data-v-fb2d5763]{
|
|
4620
4628
|
object-fit: contain;
|
|
4621
4629
|
}
|
|
4622
|
-
.bgl-lightbox-overlay[data-v-
|
|
4630
|
+
.bgl-lightbox-overlay[data-v-fb2d5763] {
|
|
4623
4631
|
background: rgba(0, 0, 0, 0.8);
|
|
4624
4632
|
}
|
|
4625
|
-
.bgl-lightbox[data-v-
|
|
4633
|
+
.bgl-lightbox[data-v-fb2d5763] {
|
|
4626
4634
|
max-height: 90%;
|
|
4627
4635
|
}
|
|
4628
|
-
.bgl-lightbox-item[data-v-
|
|
4629
|
-
animation: 500ms ease bgl-lightbox-load-
|
|
4636
|
+
.bgl-lightbox-item[data-v-fb2d5763]{
|
|
4637
|
+
animation: 500ms ease bgl-lightbox-load-fb2d5763;
|
|
4630
4638
|
}
|
|
4631
|
-
@keyframes bgl-lightbox-load-
|
|
4639
|
+
@keyframes bgl-lightbox-load-fb2d5763 {
|
|
4632
4640
|
from {
|
|
4633
4641
|
scale:0.7;
|
|
4634
4642
|
}
|
|
@@ -4636,46 +4644,46 @@ to {
|
|
|
4636
4644
|
scale:1;
|
|
4637
4645
|
}
|
|
4638
4646
|
}
|
|
4639
|
-
.bgl-lightbox-item[data-v-
|
|
4647
|
+
.bgl-lightbox-item[data-v-fb2d5763] * {
|
|
4640
4648
|
max-height: calc(80vh - 90px);
|
|
4641
4649
|
border-radius: 3px;
|
|
4642
4650
|
margin: auto;
|
|
4643
|
-
animation: 200ms ease bgl-lightbox-load-
|
|
4651
|
+
animation: 200ms ease bgl-lightbox-load-fb2d5763;
|
|
4644
4652
|
transition: max-height 200ms ease;
|
|
4645
4653
|
}
|
|
4646
|
-
.bgl-lightbox-item.zoomed[data-v-
|
|
4654
|
+
.bgl-lightbox-item.zoomed[data-v-fb2d5763] * {
|
|
4647
4655
|
max-height: calc(100vh - 90px);
|
|
4648
4656
|
height: calc(100vh - 90px);
|
|
4649
4657
|
}
|
|
4650
|
-
.navigation[data-v-
|
|
4658
|
+
.navigation[data-v-fb2d5763] {
|
|
4651
4659
|
top: 50%;
|
|
4652
4660
|
transform: translateY(-50%);
|
|
4653
4661
|
}
|
|
4654
|
-
.thumbnail[data-v-
|
|
4662
|
+
.thumbnail[data-v-fb2d5763] {
|
|
4655
4663
|
height: 50px;
|
|
4656
4664
|
width: 50px;
|
|
4657
4665
|
}
|
|
4658
|
-
.thumbnail[data-v-
|
|
4666
|
+
.thumbnail[data-v-fb2d5763]:hover {
|
|
4659
4667
|
opacity: 1;
|
|
4660
4668
|
}
|
|
4661
|
-
.thumbnail[data-v-
|
|
4669
|
+
.thumbnail[data-v-fb2d5763]:active {
|
|
4662
4670
|
opacity: 0.8;
|
|
4663
4671
|
}
|
|
4664
|
-
.thumbnail.active[data-v-
|
|
4672
|
+
.thumbnail.active[data-v-fb2d5763] {
|
|
4665
4673
|
opacity: 1;
|
|
4666
4674
|
outline: 2px solid white;
|
|
4667
4675
|
}
|
|
4668
|
-
.file-info[data-v-
|
|
4676
|
+
.file-info[data-v-fb2d5763]{
|
|
4669
4677
|
max-width: 420px
|
|
4670
4678
|
}
|
|
4671
4679
|
@media screen and (max-width: 910px) {
|
|
4672
|
-
.file-info[data-v-
|
|
4680
|
+
.file-info[data-v-fb2d5763]{
|
|
4673
4681
|
max-width: 220px;
|
|
4674
4682
|
text-align: center !important;
|
|
4675
4683
|
}
|
|
4676
|
-
.file-info[data-v-
|
|
4684
|
+
.file-info[data-v-fb2d5763] *{
|
|
4677
4685
|
text-align: center !important;
|
|
4678
|
-
margin-inline: 0 !important
|
|
4686
|
+
margin-inline: 0 !important;
|
|
4679
4687
|
max-width: 100% !important;
|
|
4680
4688
|
}
|
|
4681
4689
|
}
|
package/package.json
CHANGED
|
@@ -35,6 +35,12 @@ function handleKeyDown(event: KeyboardEvent, index: number) {
|
|
|
35
35
|
return
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
const preventKeys = ['ArrowUp', 'ArrowDown']
|
|
39
|
+
if (preventKeys.includes(event.key)) {
|
|
40
|
+
event.preventDefault()
|
|
41
|
+
return
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
if (event.key === 'Backspace') {
|
|
39
45
|
digits[index] = undefined
|
|
40
46
|
|
|
@@ -95,6 +101,7 @@ function isDigitsFull() {
|
|
|
95
101
|
oninput="this.value = this.value.slice(0, 1)"
|
|
96
102
|
@keydown="handleKeyDown($event, ind)"
|
|
97
103
|
@paste="handlePaste($event, ind)"
|
|
104
|
+
@keyup.prevent
|
|
98
105
|
>
|
|
99
106
|
</div>
|
|
100
107
|
</template>
|
|
@@ -119,10 +126,15 @@ function isDigitsFull() {
|
|
|
119
126
|
font-size: 2.4rem;
|
|
120
127
|
-moz-appearance: textfield; /* Firefox */
|
|
121
128
|
caret-color: transparent;
|
|
129
|
+
/* Remove spinner arrows */
|
|
130
|
+
appearance: textfield; /* Standardized property */
|
|
122
131
|
}
|
|
123
132
|
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
/* Remove spinner arrows for Webkit browsers */
|
|
134
|
+
.digit-box::-webkit-outer-spin-button,
|
|
135
|
+
.digit-box::-webkit-inner-spin-button {
|
|
136
|
+
-webkit-appearance: none;
|
|
137
|
+
appearance: none;
|
|
126
138
|
margin: 0;
|
|
127
139
|
}
|
|
128
140
|
|
|
@@ -131,9 +143,10 @@ function isDigitsFull() {
|
|
|
131
143
|
filter: drop-shadow(0 0 0.25rem var(--bgl-primary));
|
|
132
144
|
}
|
|
133
145
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
146
|
+
/* Redundant, already covered above */
|
|
147
|
+
/* .digit-box[type="number"] {
|
|
148
|
+
-moz-appearance: textfield;
|
|
149
|
+
} */
|
|
137
150
|
|
|
138
151
|
@media screen and (max-width: 910px) {
|
|
139
152
|
.digit-box {
|