@bagelink/vue 1.4.12 → 1.4.16
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/AddressSearch.vue.d.ts.map +1 -1
- package/dist/components/Carousel2.vue.d.ts +89 -0
- package/dist/components/Carousel2.vue.d.ts.map +1 -0
- package/dist/components/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/ImportData.vue.d.ts +2 -1
- package/dist/components/ImportData.vue.d.ts.map +1 -1
- package/dist/components/Slider.vue.d.ts +6 -0
- package/dist/components/Slider.vue.d.ts.map +1 -1
- package/dist/components/calendar/CalendarPopover.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/CalendarPopover.vue.d.ts +2 -2
- package/dist/components/calendar/views/CalendarPopover.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/index.cjs +467 -243
- package/dist/index.mjs +468 -244
- package/dist/style.css +99 -99
- package/package.json +1 -1
- package/src/components/ImportData.vue +20 -247
- package/src/components/Slider.vue +508 -85
- package/src/components/form/inputs/SignaturePad.vue +8 -14
- package/dist/components/Icon.vue.d.ts +0 -16
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/form/BglFieldSet.vue.d.ts +0 -25
- package/dist/components/form/BglFieldSet.vue.d.ts.map +0 -1
- package/dist/iconify-0J3vK-m1.cjs +0 -1693
- package/dist/iconify-Bc1B42Ak.cjs +0 -1771
- package/dist/iconify-BiLGk5km.js +0 -1693
- package/dist/iconify-DVnNdzog.js +0 -1771
- package/dist/types/timeago.d.ts +0 -23
- package/dist/types/timeago.d.ts.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Options as SignaturePadOptions } from 'signature_pad'
|
|
3
3
|
import { Btn } from '@bagelink/vue'
|
|
4
|
+
import { useEventListener, useResizeObserver } from '@vueuse/core'
|
|
4
5
|
import SignaturePad from 'signature_pad'
|
|
5
|
-
import { onMounted,
|
|
6
|
+
import { onMounted, watch } from 'vue'
|
|
6
7
|
|
|
7
8
|
export interface WaterMark {
|
|
8
9
|
text: string
|
|
@@ -186,12 +187,10 @@ function resizeCanvas() {
|
|
|
186
187
|
|
|
187
188
|
function draw() {
|
|
188
189
|
sig = new SignaturePad(vCanvas!, signatureOptions)
|
|
189
|
-
window.addEventListener('resize', resizeCanvas)
|
|
190
190
|
resizeCanvas()
|
|
191
191
|
if (props.disabled) sig.off()
|
|
192
192
|
else sig.on()
|
|
193
193
|
_isEmpty = sig.isEmpty()
|
|
194
|
-
sig.addEventListener('endStroke', onEndStroke)
|
|
195
194
|
|
|
196
195
|
// Load initial file if provided
|
|
197
196
|
if (fileData.value) {
|
|
@@ -200,10 +199,8 @@ function draw() {
|
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
onMounted(draw)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
window.removeEventListener('resize', resizeCanvas)
|
|
206
|
-
})
|
|
202
|
+
useResizeObserver(() => vCanvas, resizeCanvas)
|
|
203
|
+
useEventListener(() => sig, 'endStroke', onEndStroke)
|
|
207
204
|
|
|
208
205
|
defineExpose({
|
|
209
206
|
save,
|
|
@@ -239,16 +236,13 @@ defineExpose({
|
|
|
239
236
|
type="text"
|
|
240
237
|
:required="required && _isEmpty"
|
|
241
238
|
class="pixel opacity-0"
|
|
242
|
-
|
|
243
|
-
aria-hidden="true"
|
|
244
|
-
@focus="event => (event.target as any)?.blur?.()"
|
|
239
|
+
inputMode="none"
|
|
245
240
|
>
|
|
246
241
|
<!--
|
|
247
242
|
we add a hidden input to make the signature pad required
|
|
248
|
-
we need to set
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
-->
|
|
243
|
+
we need to set inputMode="none"
|
|
244
|
+
! this prevents the keyboard from opening on mobile
|
|
245
|
+
-->
|
|
252
246
|
</div>
|
|
253
247
|
</template>
|
|
254
248
|
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IconType } from '..';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
icon?: IconType;
|
|
4
|
-
name?: IconType;
|
|
5
|
-
size?: number | string;
|
|
6
|
-
color?: string;
|
|
7
|
-
round?: boolean;
|
|
8
|
-
weight?: number | string;
|
|
9
|
-
fontAwesome?: boolean;
|
|
10
|
-
fill?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
size: number | string;
|
|
14
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
export default _default;
|
|
16
|
-
//# sourceMappingURL=Icon.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.vue.d.ts","sourceRoot":"","sources":["../../src/components/Icon.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAK7C,KAAK,WAAW,GAAG;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACd,CAAC;;UANM,MAAM,GAAG,MAAM;;AAgIvB,wBAOG"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {
|
|
7
|
-
fieldSet: HTMLFieldSetElement;
|
|
8
|
-
};
|
|
9
|
-
rootEl: HTMLFieldSetElement;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
13
|
-
validateForm: () => boolean | undefined;
|
|
14
|
-
isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
|
|
15
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
16
|
-
fieldSet: HTMLFieldSetElement;
|
|
17
|
-
}, HTMLFieldSetElement>;
|
|
18
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=BglFieldSet.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BglFieldSet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglFieldSet.vue"],"names":[],"mappings":"AAsBA,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;uBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|