@craterapp/vue-sdk 0.0.2-alpha.4 → 0.0.2-alpha.41
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/README.md +39 -1
- package/dist/{AddressType-8PU0QNGJ.js → AddressType-p464QTMJ.js} +93 -66
- package/dist/AmountType-rDKjqCi3.js +72 -0
- package/dist/BusinessType-uWSTq2OD.js +72 -0
- package/dist/{CheckboxType-C5lpH21J.js → CheckboxType-_ObNUiwW.js} +19 -19
- package/dist/DOBType-CRxx0XUD.js +129 -0
- package/dist/{DocumentType-GO5DTq0Z.js → DocumentType-CByDTkN8.js} +26 -26
- package/dist/{DropdownType-4jsWtYZp.js → DropdownType-ES6dnnh8.js} +1 -1
- package/dist/{EmailType-eEkcNiZo.js → EmailType-5R1vVctz.js} +4 -4
- package/dist/{ExternalAccountType-IAgoVvRA.js → ExternalAccountType-dzHvc0EK.js} +145 -111
- package/dist/{IdentityNumberType-eqbpWGqv.js → IdentityNumberType-Iym1d0fw.js} +5 -5
- package/dist/{InputType-sOejaH9_.js → InputType-LLnsMIae.js} +20 -19
- package/dist/{MCCType-G9pgwc9A.js → MCCType-q1-iWzd6.js} +1 -1
- package/dist/PercentageType-w0OlbA7l.js +75 -0
- package/dist/PhoneType-35hXi784.js +67 -0
- package/dist/{SSNType-BEvc-Buf.js → SSNType-e7EkHAE-.js} +4 -4
- package/dist/TaxType-MWMRrP-A.js +71 -0
- package/dist/{TextAreaType--obAg2K-.js → TextAreaType-Woc00ded.js} +6 -6
- package/dist/UrlType-J-0TFpJa.js +120 -0
- package/dist/crater-vue-sdk.es.js +45 -23
- package/dist/crater-vue-sdk.umd.js +88 -92
- package/dist/index-OQm7r3Dg.js +111548 -0
- package/dist/stripe.esm-Bik5J_JE.js +65 -0
- package/dist/style.css +2 -2
- package/dist/types/interfaces.d.ts +2 -1
- package/dist/views/BillCreate.vue.d.ts +32 -0
- package/dist/views/BillDetails.vue.d.ts +146 -0
- package/dist/views/BillEdit.vue.d.ts +41 -0
- package/dist/views/BillTable.vue.d.ts +175 -0
- package/dist/views/{SalesChartYearlyWidget.vue.d.ts → Breadcrumb.vue.d.ts} +3 -1
- package/dist/views/BreadcrumbItem.vue.d.ts +29 -0
- package/dist/views/BusinessOverviewLineChartWidget.vue.d.ts +75 -0
- package/dist/views/BusinessOverviewVerticalBarChartWidget.vue.d.ts +90 -0
- package/dist/views/BusinessPaymentStatus.vue.d.ts +9 -0
- package/dist/views/{CustomerEdit.vue.d.ts → BusinessStat.vue.d.ts} +12 -10
- package/dist/views/{PlatformSalesChartMonthlyWidget.vue.d.ts → BusinessStatItem.vue.d.ts} +15 -19
- package/dist/views/CreditNoteDetails.vue.d.ts +68 -0
- package/dist/views/CreditNoteTable.vue.d.ts +79 -0
- package/dist/views/CustomerCreate.vue.d.ts +35 -5
- package/dist/views/CustomerDetails.vue.d.ts +53 -12
- package/dist/views/CustomerTable.vue.d.ts +58 -11
- package/dist/views/EstimateCreate.vue.d.ts +26 -5
- package/dist/views/EstimateDetails.vue.d.ts +53 -6
- package/dist/views/EstimateEdit.vue.d.ts +20 -2
- package/dist/views/EstimateTable.vue.d.ts +88 -16
- package/dist/views/InvoiceCreate.vue.d.ts +26 -5
- package/dist/views/InvoiceDetails.vue.d.ts +80 -13
- package/dist/views/InvoiceEdit.vue.d.ts +20 -2
- package/dist/views/InvoiceTable.vue.d.ts +104 -23
- package/dist/views/ItemCreate.vue.d.ts +32 -0
- package/dist/views/ItemDetails.vue.d.ts +50 -0
- package/dist/views/ItemEdit.vue.d.ts +41 -0
- package/dist/views/ItemTable.vue.d.ts +110 -0
- package/dist/views/Payment.vue.d.ts +11 -2
- package/dist/views/PaymentDetails.vue.d.ts +68 -0
- package/dist/views/PaymentMethodCreate.vue.d.ts +50 -0
- package/dist/views/PaymentMethodTable.vue.d.ts +86 -0
- package/dist/views/PaymentTable.vue.d.ts +97 -0
- package/dist/views/{PlatformSalesChartYearlyWidget.vue.d.ts → PlatformOverviewChartWidget.vue.d.ts} +11 -0
- package/dist/views/RecurringInvoiceCreate.vue.d.ts +32 -0
- package/dist/views/RecurringInvoiceDetails.vue.d.ts +135 -0
- package/dist/views/RecurringInvoiceEdit.vue.d.ts +45 -0
- package/dist/views/RecurringInvoiceTable.vue.d.ts +119 -0
- package/dist/views/VendorCreate.vue.d.ts +32 -0
- package/dist/views/VendorDetails.vue.d.ts +73 -0
- package/dist/views/VendorTable.vue.d.ts +101 -0
- package/dist/views/index.d.ts +28 -6
- package/package.json +19 -18
- package/dist/DOBType-pINw7W9N.js +0 -129
- package/dist/PhoneType-anUg_IHm.js +0 -69
- package/dist/TaxType-v4merd3R.js +0 -68
- package/dist/UrlType-_XIXbmVm.js +0 -114
- package/dist/index-Pe5A-Fvf.js +0 -86463
- package/dist/views/HelloWorld.vue.d.ts +0 -6
- package/dist/views/SalesChartMonthlyWidget.vue.d.ts +0 -28
package/dist/TaxType-v4merd3R.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { c as s, t as c, r as m, a as p, u as f, d as v, b as q } from "./index-Pe5A-Fvf.js";
|
|
2
|
-
import { defineComponent as y, computed as _, resolveDirective as $, openBlock as b, createBlock as S, unref as a, withCtx as V, withDirectives as g, createVNode as x } from "vue";
|
|
3
|
-
const w = /* @__PURE__ */ y({
|
|
4
|
-
__name: "TaxType",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: null
|
|
9
|
-
},
|
|
10
|
-
requirements: {
|
|
11
|
-
type: Array,
|
|
12
|
-
default: () => []
|
|
13
|
-
},
|
|
14
|
-
field: {
|
|
15
|
-
type: Object,
|
|
16
|
-
required: !0
|
|
17
|
-
},
|
|
18
|
-
placeholder: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
validationScope: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: !0
|
|
25
|
-
},
|
|
26
|
-
step: {
|
|
27
|
-
type: Object,
|
|
28
|
-
required: !0
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
setup(e) {
|
|
32
|
-
const r = e, l = {
|
|
33
|
-
value: {
|
|
34
|
-
required: s.withMessage(
|
|
35
|
-
c("validation.required"),
|
|
36
|
-
m(r.field.is_required)
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
}, t = p(
|
|
40
|
-
l,
|
|
41
|
-
_(() => r.field),
|
|
42
|
-
{ $scope: r.validationScope }
|
|
43
|
-
);
|
|
44
|
-
return f(), (k, i) => {
|
|
45
|
-
const u = v, o = q, d = $("maska");
|
|
46
|
-
return b(), S(o, {
|
|
47
|
-
label: e.field.label,
|
|
48
|
-
required: !!e.field.is_required,
|
|
49
|
-
error: a(t).value.$error && a(t).value.$errors[0].$message
|
|
50
|
-
}, {
|
|
51
|
-
default: V(() => [
|
|
52
|
-
g(x(u, {
|
|
53
|
-
modelValue: e.field.value,
|
|
54
|
-
"onUpdate:modelValue": i[0] || (i[0] = (n) => e.field.value = n),
|
|
55
|
-
type: "text",
|
|
56
|
-
invalid: a(t).value.$error
|
|
57
|
-
}, null, 8, ["modelValue", "invalid"]), [
|
|
58
|
-
[d, "##-#######"]
|
|
59
|
-
])
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["label", "required", "error"]);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
export {
|
|
67
|
-
w as default
|
|
68
|
-
};
|
package/dist/UrlType-_XIXbmVm.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { c as m, t as p, r as f, a as w, u as q, d as g, b as x } from "./index-Pe5A-Fvf.js";
|
|
2
|
-
import { defineComponent as S, ref as h, computed as k, watch as A, openBlock as B, createElementBlock as C, Fragment as N, withDirectives as v, createVNode as d, unref as t, withCtx as V, createElementVNode as o, createTextVNode as y, vShow as $ } from "vue";
|
|
3
|
-
const U = { class: "text-sm mt-1 text-gray-600" }, D = { class: "text-sm mt-1 text-gray-600" }, j = /* @__PURE__ */ S({
|
|
4
|
-
inheritAttrs: !1,
|
|
5
|
-
__name: "UrlType",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: null
|
|
10
|
-
},
|
|
11
|
-
requirements: {
|
|
12
|
-
type: Array,
|
|
13
|
-
default: () => []
|
|
14
|
-
},
|
|
15
|
-
field: {
|
|
16
|
-
type: Object,
|
|
17
|
-
required: !0
|
|
18
|
-
},
|
|
19
|
-
placeholder: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
validationScope: {
|
|
24
|
-
type: String,
|
|
25
|
-
required: !0
|
|
26
|
-
},
|
|
27
|
-
step: {
|
|
28
|
-
type: Object,
|
|
29
|
-
required: !0
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(r) {
|
|
33
|
-
const u = r, a = h(!1), b = {
|
|
34
|
-
value: {
|
|
35
|
-
required: m.withMessage(
|
|
36
|
-
p("validation.required"),
|
|
37
|
-
f((n) => a.value == !1)
|
|
38
|
-
)
|
|
39
|
-
},
|
|
40
|
-
alternateValue: {
|
|
41
|
-
required: m.withMessage(
|
|
42
|
-
p("validation.required"),
|
|
43
|
-
f((n) => a.value == !0)
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
}, l = w(
|
|
47
|
-
b,
|
|
48
|
-
k(() => u.field),
|
|
49
|
-
{ $scope: u.validationScope }
|
|
50
|
-
);
|
|
51
|
-
return A(a, () => {
|
|
52
|
-
u.field.value = null, u.field.alternateValue = null;
|
|
53
|
-
}), q(), (n, e) => {
|
|
54
|
-
const s = g, c = x;
|
|
55
|
-
return B(), C(N, null, [
|
|
56
|
-
v(d(c, {
|
|
57
|
-
label: r.field.label,
|
|
58
|
-
required: "",
|
|
59
|
-
error: t(l).value.$error && t(l).value.$errors[0].$message,
|
|
60
|
-
"data-cy": "website-url"
|
|
61
|
-
}, {
|
|
62
|
-
default: V(() => [
|
|
63
|
-
d(s, {
|
|
64
|
-
modelValue: r.field.value,
|
|
65
|
-
"onUpdate:modelValue": e[0] || (e[0] = (i) => r.field.value = i),
|
|
66
|
-
invalid: t(l).value.$error
|
|
67
|
-
}, null, 8, ["modelValue", "invalid"]),
|
|
68
|
-
o("p", U, [
|
|
69
|
-
y(" No website? "),
|
|
70
|
-
o("a", {
|
|
71
|
-
href: "#",
|
|
72
|
-
class: "text-primary-500",
|
|
73
|
-
"data-cy": "add-product-description",
|
|
74
|
-
onClick: e[1] || (e[1] = (i) => a.value = !0)
|
|
75
|
-
}, " Add a product description instead ")
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}, 8, ["label", "error"]), [
|
|
80
|
-
[$, !t(a)]
|
|
81
|
-
]),
|
|
82
|
-
v(d(c, {
|
|
83
|
-
label: "Product Description",
|
|
84
|
-
required: "",
|
|
85
|
-
"data-cy": "product-description",
|
|
86
|
-
error: t(l).alternateValue.$error && t(l).alternateValue.$errors[0].$message
|
|
87
|
-
}, {
|
|
88
|
-
default: V(() => [
|
|
89
|
-
d(s, {
|
|
90
|
-
modelValue: r.field.alternateValue,
|
|
91
|
-
"onUpdate:modelValue": e[2] || (e[2] = (i) => r.field.alternateValue = i),
|
|
92
|
-
invalid: t(l).alternateValue.$error
|
|
93
|
-
}, null, 8, ["modelValue", "invalid"]),
|
|
94
|
-
o("p", D, [
|
|
95
|
-
y(" Have a website? "),
|
|
96
|
-
o("a", {
|
|
97
|
-
href: "#",
|
|
98
|
-
class: "text-primary-500",
|
|
99
|
-
"data-cy": "add-website-url",
|
|
100
|
-
onClick: e[3] || (e[3] = (i) => a.value = !1)
|
|
101
|
-
}, " Add a website URL ")
|
|
102
|
-
])
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
}, 8, ["error"]), [
|
|
106
|
-
[$, t(a)]
|
|
107
|
-
])
|
|
108
|
-
], 64);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
export {
|
|
113
|
-
j as default
|
|
114
|
-
};
|