@bagelink/vue 0.0.1163 → 0.0.1167

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/index.cjs CHANGED
@@ -21644,7 +21644,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
21644
21644
  const emit2 = __emit;
21645
21645
  let numberValue = vue.ref(Number.parseFloat(`${__props.modelValue}`) || void 0);
21646
21646
  const btnLayouts = ["horizontal", "vertical"];
21647
- const canAdd = vue.computed(() => !(__props.max !== void 0 && (numberValue.value || 0 + __props.step) > __props.max));
21647
+ const canAdd = vue.computed(() => !(__props.max !== void 0 && (numberValue.value || 0) + __props.step > __props.max));
21648
21648
  const canDecrement = vue.computed(() => !(__props.min !== void 0 && (numberValue.value || 0 - __props.step) < __props.min));
21649
21649
  function increment() {
21650
21650
  if (!canAdd.value) return;
@@ -21780,7 +21780,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
21780
21780
  };
21781
21781
  }
21782
21782
  });
21783
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-8ae5f930"]]);
21783
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-eddf76f4"]]);
21784
21784
  const _hoisted_1$y = ["value", "autofocus", "onKeydown", "onPaste"];
21785
21785
  const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
21786
21786
  __name: "OTP",
@@ -38245,7 +38245,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38245
38245
  }
38246
38246
  function runDelete() {
38247
38247
  var _a2;
38248
- (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value.id);
38248
+ (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value);
38249
38249
  closeModal();
38250
38250
  }
38251
38251
  function setFormValues(values3) {
@@ -38286,7 +38286,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38286
38286
  value: _ctx.cancelText || "Cancel",
38287
38287
  onClick: closeModal
38288
38288
  }, null, 8, ["value"]),
38289
- _ctx.onDelete && formData.value.id ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
38289
+ _ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
38290
38290
  key: 0,
38291
38291
  thin: "",
38292
38292
  icon: "delete",
@@ -38319,7 +38319,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38319
38319
  };
38320
38320
  }
38321
38321
  });
38322
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f8e6d41e"]]);
38322
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7a736620"]]);
38323
38323
  const _hoisted_1$5 = { class: "full-nav" };
38324
38324
  const _hoisted_2$3 = { class: "nav-scroll" };
38325
38325
  const _hoisted_3$2 = { class: "nav-links-wrapper" };
package/dist/index.mjs CHANGED
@@ -21642,7 +21642,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
21642
21642
  const emit2 = __emit;
21643
21643
  let numberValue = ref(Number.parseFloat(`${__props.modelValue}`) || void 0);
21644
21644
  const btnLayouts = ["horizontal", "vertical"];
21645
- const canAdd = computed(() => !(__props.max !== void 0 && (numberValue.value || 0 + __props.step) > __props.max));
21645
+ const canAdd = computed(() => !(__props.max !== void 0 && (numberValue.value || 0) + __props.step > __props.max));
21646
21646
  const canDecrement = computed(() => !(__props.min !== void 0 && (numberValue.value || 0 - __props.step) < __props.min));
21647
21647
  function increment() {
21648
21648
  if (!canAdd.value) return;
@@ -21778,7 +21778,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
21778
21778
  };
21779
21779
  }
21780
21780
  });
21781
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-8ae5f930"]]);
21781
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-eddf76f4"]]);
21782
21782
  const _hoisted_1$y = ["value", "autofocus", "onKeydown", "onPaste"];
21783
21783
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
21784
21784
  __name: "OTP",
@@ -38243,7 +38243,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
38243
38243
  }
38244
38244
  function runDelete() {
38245
38245
  var _a2;
38246
- (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value.id);
38246
+ (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value);
38247
38247
  closeModal();
38248
38248
  }
38249
38249
  function setFormValues(values3) {
@@ -38284,7 +38284,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
38284
38284
  value: _ctx.cancelText || "Cancel",
38285
38285
  onClick: closeModal
38286
38286
  }, null, 8, ["value"]),
38287
- _ctx.onDelete && formData.value.id ? (openBlock(), createBlock(unref(Btn), {
38287
+ _ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
38288
38288
  key: 0,
38289
38289
  thin: "",
38290
38290
  icon: "delete",
@@ -38317,7 +38317,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
38317
38317
  };
38318
38318
  }
38319
38319
  });
38320
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f8e6d41e"]]);
38320
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7a736620"]]);
38321
38321
  const _hoisted_1$5 = { class: "full-nav" };
38322
38322
  const _hoisted_2$3 = { class: "nav-scroll" };
38323
38323
  const _hoisted_3$2 = { class: "nav-links-wrapper" };
package/dist/style.css CHANGED
@@ -1240,14 +1240,14 @@ pre code.hljs{
1240
1240
  direction: ltr;
1241
1241
  }
1242
1242
 
1243
- .txtInputIconStart .iconStart[data-v-8ae5f930] {
1243
+ .txtInputIconStart .iconStart[data-v-eddf76f4] {
1244
1244
  color: var(--input-color);
1245
1245
  position: absolute;
1246
1246
  inset-inline-start:calc(var(--input-height) / 3 - 0.25rem);
1247
1247
  margin-top: calc(var(--input-height) / 2 );
1248
1248
  line-height: 0;
1249
1249
  }
1250
- .textInputSpinnerWrap .spinner[data-v-8ae5f930] {
1250
+ .textInputSpinnerWrap .spinner[data-v-eddf76f4] {
1251
1251
  color: var(--input-color);
1252
1252
  position: absolute;
1253
1253
  inset-inline-end: 0;
@@ -1257,18 +1257,18 @@ pre code.hljs{
1257
1257
  flex-direction: column;
1258
1258
  gap: 0;
1259
1259
  }
1260
- .top-bgl-ctrl-num-btn[data-v-8ae5f930]{
1260
+ .top-bgl-ctrl-num-btn[data-v-eddf76f4]{
1261
1261
  margin-top: calc(var(--input-height) / 10) !important;
1262
1262
  }
1263
- .bgl-ctrl-num-btn[data-v-8ae5f930]{
1263
+ .bgl-ctrl-num-btn[data-v-eddf76f4]{
1264
1264
  height: calc(var(--input-height) / 2.5) !important;
1265
1265
  isolation: isolate;
1266
1266
  }
1267
- .bgl-big-ctrl-num-btn[data-v-8ae5f930]{
1267
+ .bgl-big-ctrl-num-btn[data-v-eddf76f4]{
1268
1268
  width: 100% !important;
1269
1269
  isolation: isolate;
1270
1270
  }
1271
- .bgl-number-input[data-v-8ae5f930]{
1271
+ .bgl-number-input[data-v-eddf76f4]{
1272
1272
  padding-inline-end: 1.75rem !important;
1273
1273
  }
1274
1274
 
@@ -3437,11 +3437,11 @@ body:has(.bg-dark.is-active) {
3437
3437
  border-radius: var(--card-border-radius);
3438
3438
  }
3439
3439
 
3440
- .modal-title[data-v-f8e6d41e] {
3440
+ .modal-title[data-v-7a736620] {
3441
3441
  margin-top: 0.5rem;
3442
3442
  }
3443
3443
  @media screen and (max-width: 910px) {
3444
- .modal-title[data-v-f8e6d41e] {
3444
+ .modal-title[data-v-7a736620] {
3445
3445
  margin-top: 1rem;
3446
3446
  }
3447
3447
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1163",
4
+ "version": "0.0.1167",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -16,7 +16,7 @@ const props = defineProps<{
16
16
  cancelText?: string
17
17
  deleteText?: string
18
18
  duplicateText?: string
19
- onDelete?: (id: string) => void
19
+ onDelete?: (formData: any) => void
20
20
  visible?: boolean
21
21
  onError?: (err: any) => void
22
22
  modelValue?: { [key: string]: any }
@@ -56,7 +56,7 @@ async function runSubmit() {
56
56
  }
57
57
 
58
58
  function runDelete() {
59
- props.onDelete?.(formData.value.id)
59
+ props.onDelete?.(formData.value)
60
60
  closeModal()
61
61
  }
62
62
 
@@ -88,7 +88,7 @@ defineExpose({ setFormValues })
88
88
  <div class="flex gap-0">
89
89
  <Btn thin flat :value="cancelText || 'Cancel'" @click="closeModal" />
90
90
  <Btn
91
- v-if="onDelete && formData.id"
91
+ v-if="onDelete"
92
92
  thin
93
93
  icon="delete"
94
94
  flat
@@ -48,7 +48,7 @@ let numberValue = $ref(Number.parseFloat(`${modelValue}`) || undefined)
48
48
 
49
49
  const btnLayouts: NumberLayout[] = ['horizontal', 'vertical']
50
50
 
51
- const canAdd = $computed(() => !(max !== undefined && (numberValue || 0 + step) > max))
51
+ const canAdd = $computed(() => !(max !== undefined && ((numberValue || 0) + step) > max))
52
52
  const canDecrement = $computed(() => !(min !== undefined && (numberValue || 0 - step) < min))
53
53
 
54
54
  // Methods