@feedmepos/mf-payment 1.4.13 → 1.4.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.4.13",
3
+ "version": "1.4.15",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,46 +0,0 @@
1
- import { defineComponent as D, useModel as _, computed as g, resolveComponent as d, openBlock as V, createBlock as Y, unref as e, withCtx as v, createVNode as h } from "vue";
2
- import { z as k, a as o } from "./validator-D5jtpt9A.js";
3
- import { h as i } from "./moment-h96o7c8I.js";
4
- const F = /* @__PURE__ */ D({
5
- __name: "DateRangePicker",
6
- props: {
7
- modelValue: { required: !0 },
8
- modelModifiers: {}
9
- },
10
- emits: ["update:modelValue"],
11
- setup(m) {
12
- const t = _(m, "modelValue"), u = g(() => t.value ? `${t.value.startDate ?? "Start"} ~ ${t.value.endDate ?? "End"}` : "No dates selected.");
13
- return (M, n) => {
14
- const c = d("FmChip"), p = d("FmSimpleDateRangePicker");
15
- return V(), Y(p, {
16
- modelValue: t.value,
17
- "onUpdate:modelValue": n[0] || (n[0] = (a) => t.value = a),
18
- "show-predefined-range": "",
19
- rules: e(k)(
20
- e(o).object({
21
- startDate: e(o).string(),
22
- endDate: e(o).string()
23
- }).refine(({ startDate: a, endDate: f }) => {
24
- const r = e(i)(a, "YYYY-MM-DD"), l = e(i)(f, "YYYY-MM-DD");
25
- if (!r.isValid() || !l.isValid()) return !1;
26
- const s = l.diff(r, "days");
27
- return s <= 30 && s >= 0;
28
- }, {
29
- message: "Date range cannot exceed 30 days"
30
- })
31
- )
32
- }, {
33
- "trigger-button": v(() => [
34
- h(c, {
35
- icon: "calendar_month",
36
- label: u.value
37
- }, null, 8, ["label"])
38
- ]),
39
- _: 1
40
- }, 8, ["modelValue", "rules"]);
41
- };
42
- }
43
- });
44
- export {
45
- F as _
46
- };