@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.
Files changed (30) hide show
  1. package/dist/components/AddressSearch.vue.d.ts.map +1 -1
  2. package/dist/components/Carousel2.vue.d.ts +89 -0
  3. package/dist/components/Carousel2.vue.d.ts.map +1 -0
  4. package/dist/components/Dropdown.vue.d.ts.map +1 -1
  5. package/dist/components/ImportData.vue.d.ts +2 -1
  6. package/dist/components/ImportData.vue.d.ts.map +1 -1
  7. package/dist/components/Slider.vue.d.ts +6 -0
  8. package/dist/components/Slider.vue.d.ts.map +1 -1
  9. package/dist/components/calendar/CalendarPopover.vue.d.ts.map +1 -1
  10. package/dist/components/calendar/views/CalendarPopover.vue.d.ts +2 -2
  11. package/dist/components/calendar/views/CalendarPopover.vue.d.ts.map +1 -1
  12. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  13. package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
  14. package/dist/index.cjs +467 -243
  15. package/dist/index.mjs +468 -244
  16. package/dist/style.css +99 -99
  17. package/package.json +1 -1
  18. package/src/components/ImportData.vue +20 -247
  19. package/src/components/Slider.vue +508 -85
  20. package/src/components/form/inputs/SignaturePad.vue +8 -14
  21. package/dist/components/Icon.vue.d.ts +0 -16
  22. package/dist/components/Icon.vue.d.ts.map +0 -1
  23. package/dist/components/form/BglFieldSet.vue.d.ts +0 -25
  24. package/dist/components/form/BglFieldSet.vue.d.ts.map +0 -1
  25. package/dist/iconify-0J3vK-m1.cjs +0 -1693
  26. package/dist/iconify-Bc1B42Ak.cjs +0 -1771
  27. package/dist/iconify-BiLGk5km.js +0 -1693
  28. package/dist/iconify-DVnNdzog.js +0 -1771
  29. package/dist/types/timeago.d.ts +0 -23
  30. 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, onUnmounted, watch } from 'vue'
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
- onUnmounted(() => {
204
- sig?.removeEventListener('endStroke', onEndStroke)
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
- tabindex="-1"
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 the tabindex to -1 and aria-hidden to true
249
- to make it not focusable and not visible to screen readers
250
- ! most importantally this prevents the keyboard from opening on mobile
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"}