@bagelink/vue 0.0.441 → 0.0.447

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.
@@ -197,7 +197,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
197
197
  uploaded?: boolean | undefined;
198
198
  }[]>;
199
199
  }): any;
200
- placeholder?(_: {}): any;
200
+ placeholder?(_: {
201
+ browse: () => void;
202
+ }): any;
201
203
  }>;
202
204
  export default _default;
203
205
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAyEA;AAGA,OAAO,EAAO,KAAK,WAAW,EAA0B,MAAM,eAAe,CAAC;AAgB9E,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmf1C,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAyEA;AAGA,OAAO,EACD,KAAK,WAAW,EACrB,MAAM,eAAe,CAAC;AAgBvB,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -4908,7 +4908,15 @@ function numField(id, label, options) {
4908
4908
  id,
4909
4909
  label,
4910
4910
  placeholder: options == null ? void 0 : options.placeholder,
4911
- attrs: { type: "number" }
4911
+ helptext: options == null ? void 0 : options.helptext,
4912
+ attrs: {
4913
+ type: "number",
4914
+ nativeInputAttrs: {
4915
+ step: options == null ? void 0 : options.step,
4916
+ min: options == null ? void 0 : options.min,
4917
+ max: options == null ? void 0 : options.max
4918
+ }
4919
+ }
4912
4920
  };
4913
4921
  }
4914
4922
  function frmRow(...children2) {
@@ -18450,7 +18458,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18450
18458
  disabled: _ctx.disabled,
18451
18459
  required: _ctx.required,
18452
18460
  pattern: _ctx.pattern
18453
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)), [
18461
+ }, _ctx.nativeInputAttrs, { onInput: updateInputVal }), null, 16, _hoisted_4$9)), [
18454
18462
  [vue.vModelText, vue.unref(inputVal)]
18455
18463
  ]),
18456
18464
  _ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$8, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true)
@@ -18468,7 +18476,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18468
18476
  };
18469
18477
  }
18470
18478
  });
18471
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d2e87e5e"]]);
18479
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-06fc66fe"]]);
18472
18480
  const _hoisted_1$k = { class: "primary-checkbox" };
18473
18481
  const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
18474
18482
  __name: "Checkbox",
@@ -18701,7 +18709,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
18701
18709
  }
18702
18710
  });
18703
18711
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-880c5069"]]);
18704
- const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-7efccba8"), n2 = n2(), vue.popScopeId(), n2);
18712
+ const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-52599888"), n2 = n2(), vue.popScopeId(), n2);
18705
18713
  const _hoisted_1$g = { class: "bagel-input" };
18706
18714
  const _hoisted_2$d = {
18707
18715
  key: 0,
@@ -18824,9 +18832,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18824
18832
  input.onchange = (e) => {
18825
18833
  const target = e == null ? void 0 : e.target;
18826
18834
  if (target == null ? void 0 : target.files) {
18827
- Array.from(target.files).forEach(
18828
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18829
- );
18835
+ Array.from(target.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18830
18836
  }
18831
18837
  flushQueue();
18832
18838
  };
@@ -18849,9 +18855,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18849
18855
  const drop3 = (e) => {
18850
18856
  preventDefault(e);
18851
18857
  if (e.dataTransfer) {
18852
- Array.from(e.dataTransfer.files).forEach(
18853
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18854
- );
18858
+ Array.from(e.dataTransfer.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18855
18859
  }
18856
18860
  isDragOver.value = false;
18857
18861
  flushQueue();
@@ -18935,7 +18939,10 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18935
18939
  ], 64);
18936
18940
  }), 128))
18937
18941
  ], true),
18938
- !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? vue.renderSlot(_ctx.$slots, "placeholder", { key: 0 }, () => [
18942
+ !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? vue.renderSlot(_ctx.$slots, "placeholder", {
18943
+ key: 0,
18944
+ browse
18945
+ }, () => [
18939
18946
  _hoisted_13
18940
18947
  ], true) : vue.createCommentVNode("", true)
18941
18948
  ], 34)
@@ -18943,7 +18950,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18943
18950
  };
18944
18951
  }
18945
18952
  });
18946
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7efccba8"]]);
18953
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-52599888"]]);
18947
18954
  const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-b87221d6"), n2 = n2(), vue.popScopeId(), n2);
18948
18955
  const _hoisted_1$f = ["title"];
18949
18956
  const _hoisted_2$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
package/dist/index.mjs CHANGED
@@ -4906,7 +4906,15 @@ function numField(id, label, options) {
4906
4906
  id,
4907
4907
  label,
4908
4908
  placeholder: options == null ? void 0 : options.placeholder,
4909
- attrs: { type: "number" }
4909
+ helptext: options == null ? void 0 : options.helptext,
4910
+ attrs: {
4911
+ type: "number",
4912
+ nativeInputAttrs: {
4913
+ step: options == null ? void 0 : options.step,
4914
+ min: options == null ? void 0 : options.min,
4915
+ max: options == null ? void 0 : options.max
4916
+ }
4917
+ }
4910
4918
  };
4911
4919
  }
4912
4920
  function frmRow(...children2) {
@@ -18448,7 +18456,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18448
18456
  disabled: _ctx.disabled,
18449
18457
  required: _ctx.required,
18450
18458
  pattern: _ctx.pattern
18451
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)), [
18459
+ }, _ctx.nativeInputAttrs, { onInput: updateInputVal }), null, 16, _hoisted_4$9)), [
18452
18460
  [vModelText, unref(inputVal)]
18453
18461
  ]),
18454
18462
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
@@ -18466,7 +18474,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18466
18474
  };
18467
18475
  }
18468
18476
  });
18469
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d2e87e5e"]]);
18477
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-06fc66fe"]]);
18470
18478
  const _hoisted_1$k = { class: "primary-checkbox" };
18471
18479
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
18472
18480
  __name: "Checkbox",
@@ -18699,7 +18707,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
18699
18707
  }
18700
18708
  });
18701
18709
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-880c5069"]]);
18702
- const _withScopeId$2 = (n2) => (pushScopeId("data-v-7efccba8"), n2 = n2(), popScopeId(), n2);
18710
+ const _withScopeId$2 = (n2) => (pushScopeId("data-v-52599888"), n2 = n2(), popScopeId(), n2);
18703
18711
  const _hoisted_1$g = { class: "bagel-input" };
18704
18712
  const _hoisted_2$d = {
18705
18713
  key: 0,
@@ -18822,9 +18830,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18822
18830
  input.onchange = (e) => {
18823
18831
  const target = e == null ? void 0 : e.target;
18824
18832
  if (target == null ? void 0 : target.files) {
18825
- Array.from(target.files).forEach(
18826
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18827
- );
18833
+ Array.from(target.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18828
18834
  }
18829
18835
  flushQueue();
18830
18836
  };
@@ -18847,9 +18853,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18847
18853
  const drop3 = (e) => {
18848
18854
  preventDefault(e);
18849
18855
  if (e.dataTransfer) {
18850
- Array.from(e.dataTransfer.files).forEach(
18851
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18852
- );
18856
+ Array.from(e.dataTransfer.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18853
18857
  }
18854
18858
  isDragOver.value = false;
18855
18859
  flushQueue();
@@ -18933,7 +18937,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18933
18937
  ], 64);
18934
18938
  }), 128))
18935
18939
  ], true),
18936
- !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? renderSlot(_ctx.$slots, "placeholder", { key: 0 }, () => [
18940
+ !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? renderSlot(_ctx.$slots, "placeholder", {
18941
+ key: 0,
18942
+ browse
18943
+ }, () => [
18937
18944
  _hoisted_13
18938
18945
  ], true) : createCommentVNode("", true)
18939
18946
  ], 34)
@@ -18941,7 +18948,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18941
18948
  };
18942
18949
  }
18943
18950
  });
18944
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7efccba8"]]);
18951
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-52599888"]]);
18945
18952
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-b87221d6"), n2 = n2(), popScopeId(), n2);
18946
18953
  const _hoisted_1$f = ["title"];
18947
18954
  const _hoisted_2$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
package/dist/style.css CHANGED
@@ -2382,58 +2382,58 @@ display: block;
2382
2382
  font-size: var(--label-font-size);
2383
2383
  }
2384
2384
 
2385
- .bagel-input textarea[data-v-d2e87e5e] {
2385
+ .bagel-input textarea[data-v-06fc66fe] {
2386
2386
  min-height: unset;
2387
2387
  font-size: var(--input-font-size);
2388
2388
  }
2389
- .bagel-input.text-input textarea[data-v-d2e87e5e] {
2389
+ .bagel-input.text-input textarea[data-v-06fc66fe] {
2390
2390
  resize: none;
2391
2391
  }
2392
- .code textarea[data-v-d2e87e5e] {
2392
+ .code textarea[data-v-06fc66fe] {
2393
2393
  font-family: 'Inconsolata', monospace;
2394
2394
  background: var(--bgl-black) !important;
2395
2395
  color: var(--bgl-white) !important;
2396
2396
  }
2397
- .code textarea[data-v-d2e87e5e]::placeholder{
2397
+ .code textarea[data-v-06fc66fe]::placeholder{
2398
2398
  color: var(--bgl-white) !important;
2399
2399
  opacity: 0.3;
2400
2400
  }
2401
- .bagel-input.small[data-v-d2e87e5e] {
2401
+ .bagel-input.small[data-v-06fc66fe] {
2402
2402
  margin-bottom: 0;
2403
2403
  height: 30px;
2404
2404
  }
2405
- .bagel-input.dense label[data-v-d2e87e5e] {
2405
+ .bagel-input.dense label[data-v-06fc66fe] {
2406
2406
  display: flex;
2407
2407
  align-items: center;
2408
2408
  gap: 0.5rem;
2409
2409
  }
2410
- .bagel-input input[data-v-d2e87e5e]:disabled {
2410
+ .bagel-input input[data-v-06fc66fe]:disabled {
2411
2411
  background: #f5f5f5;
2412
2412
  }
2413
- .bagel-input label[data-v-d2e87e5e] {
2413
+ .bagel-input label[data-v-06fc66fe] {
2414
2414
  font-size: var(--label-font-size);
2415
2415
  }
2416
- .textInputIconWrap[data-v-d2e87e5e] {
2416
+ .textInputIconWrap[data-v-06fc66fe] {
2417
2417
  position: relative;
2418
2418
  }
2419
- .textInputIconWrap .bgl_icon-font[data-v-d2e87e5e] {
2419
+ .textInputIconWrap .bgl_icon-font[data-v-06fc66fe] {
2420
2420
  position: absolute;
2421
2421
  inset-inline-end: 0.7rem;
2422
2422
  bottom: 50%;
2423
2423
  line-height: 0;
2424
2424
  color: var(--bgl-gray);
2425
2425
  }
2426
- .txtInputIconStart .iconStart[data-v-d2e87e5e] {
2426
+ .txtInputIconStart .iconStart[data-v-06fc66fe] {
2427
2427
  position: absolute;
2428
2428
  inset-inline-start: 0.7rem;
2429
2429
  top: 50%;
2430
2430
  line-height: 0;
2431
2431
  color: var(--bgl-gray);
2432
2432
  }
2433
- .txtInputIconStart textarea[data-v-d2e87e5e] {
2433
+ .txtInputIconStart textarea[data-v-06fc66fe] {
2434
2434
  padding-inline-start: 2rem;
2435
2435
  }
2436
- .bagel-input.small textarea[data-v-d2e87e5e] {
2436
+ .bagel-input.small textarea[data-v-06fc66fe] {
2437
2437
  height: 30px;
2438
2438
  }
2439
2439
 
@@ -2596,7 +2596,7 @@ display: block;
2596
2596
  color: var(--bgl-white);
2597
2597
  }
2598
2598
 
2599
- .bagel-input .fileUploadWrap[data-v-7efccba8] {
2599
+ .bagel-input .fileUploadWrap[data-v-52599888] {
2600
2600
  --width: 320px;
2601
2601
  outline: 1px solid var(--border-color);
2602
2602
  border-radius: var(--input-border-radius);
@@ -2609,7 +2609,7 @@ display: block;
2609
2609
  overflow-y: auto;
2610
2610
  background: var(--input-bg);
2611
2611
  }
2612
- .previewName[data-v-7efccba8] {
2612
+ .previewName[data-v-52599888] {
2613
2613
  padding: 0.5rem;
2614
2614
  text-align: start;
2615
2615
  color: var(--input-color);
@@ -2619,18 +2619,18 @@ display: block;
2619
2619
  align-items: center;
2620
2620
  padding-inline: 14px;
2621
2621
  }
2622
- .previewName p[data-v-7efccba8] {
2622
+ .previewName p[data-v-52599888] {
2623
2623
  overflow: hidden;
2624
2624
  text-overflow: ellipsis;
2625
2625
  white-space: nowrap;
2626
2626
  }
2627
- .imagePreviewWrap[data-v-7efccba8] {
2627
+ .imagePreviewWrap[data-v-52599888] {
2628
2628
  background: var(--input-bg);
2629
2629
  border-radius: var(--input-border-radius);
2630
2630
  padding: 5px;
2631
2631
  min-height: 90px;
2632
2632
  }
2633
- img.preview[data-v-7efccba8] {
2633
+ img.preview[data-v-52599888] {
2634
2634
  /* max-height: calc(var(--width) / 2); */
2635
2635
  /* max-width: calc(var(--width) * 2); */
2636
2636
  width: 40px;
@@ -2640,7 +2640,7 @@ img.preview[data-v-7efccba8] {
2640
2640
  background: var(--bgl-gray-light);
2641
2641
  box-shadow: 0 0 10px #00000012;
2642
2642
  }
2643
- img.preview.single[data-v-7efccba8]{
2643
+ img.preview.single[data-v-52599888]{
2644
2644
  max-width: var(--width);
2645
2645
  width: auto;
2646
2646
  object-fit: contain;
@@ -2648,18 +2648,18 @@ img.preview.single[data-v-7efccba8]{
2648
2648
  max-height: calc(var(--width) / 2);
2649
2649
  margin: 1rem;
2650
2650
  }
2651
- .fileUploadWrap.dragover[data-v-7efccba8],
2652
- .fileUploadWrap[data-v-7efccba8]:hover {
2651
+ .fileUploadWrap.dragover[data-v-52599888],
2652
+ .fileUploadWrap[data-v-52599888]:hover {
2653
2653
  box-shadow: inset 0 0 10px #00000012;
2654
2654
  }
2655
- .bagel-input .fileUploadWrap.fileDropZone[data-v-7efccba8] {
2655
+ .bagel-input .fileUploadWrap.fileDropZone[data-v-52599888] {
2656
2656
  background: var(--input-bg);
2657
2657
  display: flex;
2658
2658
  align-items: center;
2659
2659
  justify-content: center;
2660
2660
  color: var(--bgl-gray);
2661
2661
  }
2662
- .pie[data-v-7efccba8] {
2662
+ .pie[data-v-52599888] {
2663
2663
  width: 30px;
2664
2664
  height: 30px;
2665
2665
  position: relative;
@@ -2667,7 +2667,7 @@ img.preview.single[data-v-7efccba8]{
2667
2667
  align-items: center;
2668
2668
  justify-content: center;
2669
2669
  }
2670
- .pie[data-v-7efccba8]:before {
2670
+ .pie[data-v-52599888]:before {
2671
2671
  content: '';
2672
2672
  position: absolute;
2673
2673
  border-radius: 50%;
@@ -2685,26 +2685,26 @@ img.preview.single[data-v-7efccba8]{
2685
2685
  #000 calc(100% - var(--b))
2686
2686
  );
2687
2687
  }
2688
- .pie .success[data-v-7efccba8] {
2688
+ .pie .success[data-v-52599888] {
2689
2689
  transform: scale(0);
2690
2690
  opacity: 0;
2691
2691
  transition: all 0.3s ease-in-out;
2692
2692
  }
2693
- .pie .progress[data-v-7efccba8] {
2693
+ .pie .progress[data-v-52599888] {
2694
2694
  position: absolute;
2695
2695
  font-size: 10px;
2696
2696
  }
2697
- .pie.complete .progress[data-v-7efccba8] {
2697
+ .pie.complete .progress[data-v-52599888] {
2698
2698
  display: none;
2699
2699
  }
2700
- .pie.complete .success[data-v-7efccba8] {
2700
+ .pie.complete .success[data-v-52599888] {
2701
2701
  transform: scale(1.3);
2702
2702
  opacity: 1;
2703
2703
  }
2704
- .pie.complete[data-v-7efccba8]:before {
2704
+ .pie.complete[data-v-52599888]:before {
2705
2705
  background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
2706
2706
  }
2707
- .pie.complete[data-v-7efccba8] {
2707
+ .pie.complete[data-v-52599888] {
2708
2708
  color: var(--bgl-green);
2709
2709
  }
2710
2710
 
@@ -1 +1 @@
1
- {"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,MAAM,GACf,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE7C,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CA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EAAE,CAAC,EACrC,MAAM,CAAC,EAAE,gBAAgB,GACvB,KAAK,CAgBP;AAED,wBAAgB,UAAU,CACzB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACvB,KAAK,CAQP;AAED,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACvB,KAAK,CAmBP;AAED,wBAAgB,MAAM,CAAC,GAAG,QAAQ,EAAE,KAAK,EAAE;;;;EAM1C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.441",
4
+ "version": "0.0.447",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -14,58 +14,58 @@
14
14
  dragover: isDragOver,
15
15
  }"
16
16
  >
17
- <slot name="files" :files="storageFiles" :fileQueue>
18
- <template v-for="file in storageFiles" :key="file.id">
19
- <div class="single-image" v-if="!multiple">
20
- <img class="single preview" :src="file.url" alt="" />
17
+ <slot name="files" :files="storageFiles" :fileQueue>
18
+ <template v-for="file in storageFiles" :key="file.id">
19
+ <div class="single-image" v-if="!multiple">
20
+ <img class="single preview" :src="file.url" alt="" >
21
21
  <!-- <p class="no-margin">
22
22
  {{ file.name }}
23
23
  </p> -->
24
- </div>
25
- <div class="multi-image-item previewName" v-if="multiple">
26
- <img class="preview" :src="file.url" alt="" />
27
- <p class="no-margin">
28
- {{ file.name }}
29
- </p>
30
- <Btn
31
- thin
32
- @click.stop="removeFile(file)"
33
- flat
34
- icon="delete"
35
- color="red"
36
- />
37
- </div>
38
- </template>
39
- <template v-for="fileQ in fileQueue" :key="fileQ.file">
40
- <div class="imagePreviewWrap" v-if="!multiple">
41
- <img class="preview" :src="fileToUrl(fileQ.file)" alt="" />
42
- </div>
43
- <div class="previewName">
44
- <img
45
- :width="width || '220'"
46
- v-if="multiple"
47
- class="preview"
48
- :src="fileToUrl(fileQ.file)"
49
- alt=""
50
- />
51
- <p class="no-margin">
52
- {{ fileQ.name }}
53
- </p>
54
- <div
55
- class="pie"
56
- :style="`--p:${fileQ.progress}`"
57
- style="--b: 2px"
58
- :class="{ complete: fileQ.progress === 100 }"
59
- >
60
- <span class="progress" v-if="fileQ.progress < 100">
61
- {{ `${fileQ.progress.toFixed(0)}` }}
62
- </span>
63
- <MaterialIcon class="success" icon="check" />
64
24
  </div>
65
- </div>
66
- </template>
67
- </slot>
68
- <slot v-if="(!storageFiles.length && !fileQueue.length) || multiple" name="placeholder">
25
+ <div class="multi-image-item previewName" v-if="multiple">
26
+ <img class="preview" :src="file.url" alt="" >
27
+ <p class="no-margin">
28
+ {{ file.name }}
29
+ </p>
30
+ <Btn
31
+ thin
32
+ @click.stop="removeFile(file)"
33
+ flat
34
+ icon="delete"
35
+ color="red"
36
+ />
37
+ </div>
38
+ </template>
39
+ <template v-for="fileQ in fileQueue" :key="fileQ.file">
40
+ <div class="imagePreviewWrap" v-if="!multiple">
41
+ <img class="preview" :src="fileToUrl(fileQ.file)" alt="" >
42
+ </div>
43
+ <div class="previewName">
44
+ <img
45
+ :width="width || '220'"
46
+ v-if="multiple"
47
+ class="preview"
48
+ :src="fileToUrl(fileQ.file)"
49
+ alt=""
50
+ >
51
+ <p class="no-margin">
52
+ {{ fileQ.name }}
53
+ </p>
54
+ <div
55
+ class="pie"
56
+ :style="`--p:${fileQ.progress}`"
57
+ style="--b: 2px"
58
+ :class="{ complete: fileQ.progress === 100 }"
59
+ >
60
+ <span class="progress" v-if="fileQ.progress < 100">
61
+ {{ `${fileQ.progress.toFixed(0)}` }}
62
+ </span>
63
+ <MaterialIcon class="success" icon="check" />
64
+ </div>
65
+ </div>
66
+ </template>
67
+ </slot>
68
+ <slot v-if="(!storageFiles.length && !fileQueue.length) || multiple" name="placeholder" :browse>
69
69
  <p>Drop files here or click to upload</p>
70
70
  </slot>
71
71
  </div>
@@ -74,7 +74,9 @@
74
74
 
75
75
  <script setup lang="ts">
76
76
  import { onMounted, watch } from 'vue';
77
- import { Btn, type StorageFile, useBagel, MaterialIcon } from '@bagelink/vue';
77
+ import {
78
+ Btn, type StorageFile, useBagel, MaterialIcon,
79
+ } from '@bagelink/vue';
78
80
 
79
81
  const bagel = useBagel();
80
82
 
@@ -104,8 +106,7 @@ const bindKey: StrKey = props.bindkey || 'id';
104
106
  const file_bindkeys = defineModel<FSValue>('modelValue');
105
107
  const storageFiles = $ref<StorageFile[]>([]);
106
108
 
107
- const compareIds = (v1?: FSValue, v2?: FSValue) =>
108
- [v1].flat().join(',') === [v2].flat().join(',');
109
+ const compareIds = (v1?: FSValue, v2?: FSValue) => [v1].flat().join(',') === [v2].flat().join(',');
109
110
 
110
111
  onMounted(() => {
111
112
  if (!props.files && [file_bindkeys.value].flat().length) {
@@ -190,9 +191,7 @@ const browse = () => {
190
191
  input.onchange = (e: Event) => {
191
192
  const target = e?.target as HTMLInputElement;
192
193
  if (target?.files) {
193
- Array.from(target.files).forEach((file: File) =>
194
- fileQueue.push({ name: file.name, file, progress: 0 }),
195
- );
194
+ Array.from(target.files).forEach((file: File) => fileQueue.push({ name: file.name, file, progress: 0 }));
196
195
  }
197
196
  flushQueue();
198
197
  };
@@ -214,9 +213,7 @@ const dragover = (e: DragEvent) => {
214
213
  const drop = (e: DragEvent) => {
215
214
  preventDefault(e);
216
215
  if (e.dataTransfer) {
217
- Array.from(e.dataTransfer.files).forEach((file: File) =>
218
- fileQueue.push({ name: file.name, file, progress: 0 }),
219
- );
216
+ Array.from(e.dataTransfer.files).forEach((file: File) => fileQueue.push({ name: file.name, file, progress: 0 }));
220
217
  }
221
218
  isDragOver = false;
222
219
  flushQueue();
@@ -296,7 +293,6 @@ img.preview.single{
296
293
  color: var(--bgl-gray);
297
294
  }
298
295
 
299
-
300
296
  .pie {
301
297
  width: 30px;
302
298
  height: 30px;
@@ -39,6 +39,7 @@
39
39
  :required="required"
40
40
  :pattern="pattern"
41
41
  v-bind="nativeInputAttrs"
42
+ @input="updateInputVal"
42
43
  />
43
44
  <p v-if="helptext">{{ helptext }}</p>
44
45
  </label>
@@ -121,7 +121,15 @@ export function numField(
121
121
  id,
122
122
  label,
123
123
  placeholder: options?.placeholder,
124
- attrs: { type: 'number' },
124
+ helptext: options?.helptext,
125
+ attrs: {
126
+ type: 'number',
127
+ nativeInputAttrs: {
128
+ step: options?.step,
129
+ min: options?.min,
130
+ max: options?.max,
131
+ },
132
+ },
125
133
  };
126
134
  }
127
135