bt-core-app 1.4.366 → 1.4.367

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 (2) hide show
  1. package/dist/bt-core-app.js +17 -17
  2. package/package.json +1 -1
@@ -38421,24 +38421,24 @@ const Z3 = /* @__PURE__ */ Qe({
38421
38421
  disableTextField: { type: Boolean },
38422
38422
  modelValue: {},
38423
38423
  numpadValue: {},
38424
- showAddRemove: { type: Boolean }
38424
+ showAddRemove: { type: Boolean },
38425
+ allowDecimal: { type: Boolean, default: !1 }
38425
38426
  },
38426
38427
  emits: ["ok", "add", "remove", "update:modelValue"],
38427
38428
  setup(e, { emit: t }) {
38428
38429
  var v, m;
38429
- const n = e, a = t, l = U(""), r = C(() => l.value != null && l.value.length > 0 && !Number.isNaN(l.value)), i = C(() => Number.parseInt(l.value)), o = U([
38430
- { num: 1 },
38431
- { num: 2 },
38432
- { num: 3 },
38433
- { num: 4 },
38434
- { num: 5 },
38435
- { num: 6 },
38436
- { num: 7 },
38437
- { num: 8 },
38438
- { num: 9 },
38439
- { num: void 0, icon: "$backspace" },
38440
- { num: 0 }
38430
+ const n = e, a = t, l = U(""), r = C(() => l.value != null && l.value.length > 0 && !Number.isNaN(l.value)), i = C(() => n.allowDecimal == !1 ? Number.parseInt(l.value) : Number.parseFloat(l.value)), o = U([
38431
+ { cols: 4, num: 1 },
38432
+ { cols: 4, num: 2 },
38433
+ { cols: 4, num: 3 },
38434
+ { cols: 4, num: 4 },
38435
+ { cols: 4, num: 5 },
38436
+ { cols: 4, num: 6 },
38437
+ { cols: 4, num: 7 },
38438
+ { cols: 4, num: 8 },
38439
+ { cols: 4, num: 9 }
38441
38440
  ]);
38441
+ n.allowDecimal != !1 ? (o.value.push({ cols: 3, num: void 0, icon: "$backspace" }), o.value.push({ cols: 3, num: 0 }), o.value.push({ cols: 3, num: "." })) : (o.value.push({ cols: 4, num: void 0, icon: "$backspace" }), o.value.push({ cols: 4, num: 0 }));
38442
38442
  function s(h) {
38443
38443
  h != null ? l.value = `${l.value ?? ""}${h}` : l.value.length == 1 ? l.value = "" : l.value = l.value.substring(0, l.value.length - 1);
38444
38444
  }
@@ -38469,7 +38469,7 @@ const Z3 = /* @__PURE__ */ Qe({
38469
38469
  default: R(() => [
38470
38470
  (B(!0), oe(Me, null, at(o.value, (u, b) => (B(), le(it, {
38471
38471
  class: "ma-0 pa-0",
38472
- cols: "4",
38472
+ cols: u.cols,
38473
38473
  key: b
38474
38474
  }, {
38475
38475
  default: R(() => {
@@ -38488,10 +38488,10 @@ const Z3 = /* @__PURE__ */ Qe({
38488
38488
  ];
38489
38489
  }),
38490
38490
  _: 2
38491
- }, 1024))), 128)),
38491
+ }, 1032, ["cols"]))), 128)),
38492
38492
  h.showAddRemove ? Q("", !0) : (B(), le(it, {
38493
38493
  key: 0,
38494
- cols: "4",
38494
+ cols: h.allowDecimal ? "3" : "4",
38495
38495
  class: "ma-0 pa-0"
38496
38496
  }, {
38497
38497
  default: R(() => [
@@ -38513,7 +38513,7 @@ const Z3 = /* @__PURE__ */ Qe({
38513
38513
  })
38514
38514
  ]),
38515
38515
  _: 1
38516
- }))
38516
+ }, 8, ["cols"]))
38517
38517
  ]),
38518
38518
  _: 1
38519
38519
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.366",
3
+ "version": "1.4.367",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {