@sarafapp/ant-design 1.0.0
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 +66 -0
- package/dist/Constants.es.js +4 -0
- package/dist/_virtual/_commonjsHelpers.es.js +8 -0
- package/dist/_virtual/_plugin-vue_export-helper.es.js +9 -0
- package/dist/_virtual/dayjs.min.es.js +4 -0
- package/dist/baseForm/SarafFiledInvalidMessage.vue.es.js +7 -0
- package/dist/baseForm/SarafFiledInvalidMessage.vue.es2.js +20 -0
- package/dist/baseForm/SarafSearchFiled.vue.es.js +56 -0
- package/dist/baseForm/SarafSearchFiled.vue.es2.js +4 -0
- package/dist/baseForm/SarafSelect.vue.es.js +7 -0
- package/dist/baseForm/SarafSelect.vue.es2.js +153 -0
- package/dist/baseForm/SarafTextFiled.vue.es.js +7 -0
- package/dist/baseForm/SarafTextFiled.vue.es2.js +88 -0
- package/dist/baseForm/model/Constants.es.js +8 -0
- package/dist/baseTable/SarafBankCardTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafBankCardTableCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafDynamicCurrencyPriceTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafDynamicCurrencyPriceTableCell.vue.es2.js +19 -0
- package/dist/baseTable/SarafIbanTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafIbanTableCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafPriceTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafPriceTableCell.vue.es2.js +20 -0
- package/dist/baseTable/SarafSymbolTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafSymbolTableCell.vue.es2.js +20 -0
- package/dist/baseTable/SarafTable.vue.es.js +7 -0
- package/dist/baseTable/SarafTable.vue.es2.js +257 -0
- package/dist/baseTable/SarafTradeAmountTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeAmountTableCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafTradeDateCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeDateCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafTradeSymbolCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeSymbolCell.vue.es2.js +29 -0
- package/dist/baseTable/SarafTradeSymbolPriceCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeSymbolPriceCell.vue.es2.js +32 -0
- package/dist/dataDisplay/chart/SarafChart.vue.es.js +23 -0
- package/dist/dataDisplay/chart/SarafChart.vue.es2.js +4 -0
- package/dist/dataDisplay/chart/model/AreaChartDataSource.es.js +30 -0
- package/dist/dataDisplay/chart/model/CategoricalDataSource.es.js +21 -0
- package/dist/dataDisplay/chart/model/ChartTypes.es.js +34 -0
- package/dist/dataDisplay/chart/model/DataSource.es.js +62 -0
- package/dist/dataDisplay/chart/model/DonutChartDataSource.es.js +62 -0
- package/dist/dataDisplay/tag/SarafTag.vue.es.js +7 -0
- package/dist/dataDisplay/tag/SarafTag.vue.es2.js +40 -0
- package/dist/dataDisplay/tag/model/Constants.es.js +4 -0
- package/dist/dataDisplay/tooltip/model/tooltipDirective.es.js +29 -0
- package/dist/dataEntry/checkbox/SarafCheckbox.vue.es.js +7 -0
- package/dist/dataEntry/checkbox/SarafCheckbox.vue.es2.js +34 -0
- package/dist/datePicker/SarafDatePicker.vue.es.js +7 -0
- package/dist/datePicker/SarafDatePicker.vue.es2.js +75 -0
- package/dist/datePicker/SarafRangePicker.vue.es.js +7 -0
- package/dist/datePicker/SarafRangePicker.vue.es2.js +79 -0
- package/dist/general/button/SarafButton.vue.es.js +7 -0
- package/dist/general/button/SarafButton.vue.es2.js +56 -0
- package/dist/general/button/model/Constants.es.js +5 -0
- package/dist/icons/ArrowDownIcon.vue.es.js +28 -0
- package/dist/icons/ArrowDownIcon.vue.es2.js +4 -0
- package/dist/icons/ArrowUpIcon.vue.es.js +28 -0
- package/dist/icons/ArrowUpIcon.vue.es2.js +4 -0
- package/dist/icons/BurgerIcon.vue.es.js +26 -0
- package/dist/icons/BurgerIcon.vue.es2.js +4 -0
- package/dist/icons/GiftCardIcon.vue.es.js +19 -0
- package/dist/icons/PlusIcon.vue.es.js +24 -0
- package/dist/icons/ResetIcon.vue.es.js +23 -0
- package/dist/icons/SarafArrowIcon.vue.es.js +24 -0
- package/dist/icons/SarafLogoIcon.vue.es.js +42 -0
- package/dist/icons/SearchIcon.vue.es.js +29 -0
- package/dist/index.d.ts +584 -0
- package/dist/index.es.js +90 -0
- package/dist/index.js +57 -0
- package/dist/layout/SarafDialog.vue.es.js +36 -0
- package/dist/layout/SarafDialog.vue.es3.js +5 -0
- package/dist/layout/SarafDialogFooter.vue.es.js +13 -0
- package/dist/loaders/spinners/SarafDefaultSpinner.vue.es.js +21 -0
- package/dist/loaders/spinners/SarafDefaultSpinner.vue.es2.js +4 -0
- package/dist/loaders/spinners/model/Constants.es.js +4 -0
- package/dist/loaders/spinners/model/SarafDefaultSpinner.es.js +13 -0
- package/dist/node_modules/@ant-design/colors/dist/index.esm.es.js +119 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.es.js +4 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/AntdIcon.es.js +117 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/Context.es.js +11 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/IconBase.es.js +77 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/InsertStyle.es.js +13 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/twoTonePrimaryColor.es.js +60 -0
- package/dist/node_modules/@ant-design/icons-vue/es/dynamicCSS.es.js +72 -0
- package/dist/node_modules/@ant-design/icons-vue/es/icons/LoadingOutlined.es.js +28 -0
- package/dist/node_modules/@ant-design/icons-vue/es/utils.es.js +131 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.es.js +70 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.es.js +153 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.es.js +68 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.es.js +28 -0
- package/dist/node_modules/dayjs/dayjs.min.es.js +282 -0
- package/dist/style.css +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as d, computed as t, resolveComponent as i, createBlock as u, openBlock as p, normalizeClass as f, withCtx as m, createElementVNode as a, createTextVNode as g, renderSlot as r, toDisplayString as _ } from "vue";
|
|
2
|
+
import { TagColors as h } from "./model/Constants.es.js";
|
|
3
|
+
const B = { class: "tag-icon" }, b = { class: "tag-icon" }, y = /* @__PURE__ */ d({
|
|
4
|
+
__name: "SarafTag",
|
|
5
|
+
props: {
|
|
6
|
+
content: {},
|
|
7
|
+
color: { default: h.Default },
|
|
8
|
+
disabled: { type: Boolean, default: !1 },
|
|
9
|
+
hasBorder: { type: Boolean, default: !0 }
|
|
10
|
+
},
|
|
11
|
+
setup(s) {
|
|
12
|
+
const e = s, n = t(() => e.disabled ? "disabled" : e.color), l = t(() => [
|
|
13
|
+
n.value,
|
|
14
|
+
{
|
|
15
|
+
"tag-border": e.hasBorder,
|
|
16
|
+
"unset-background": e.hasBorder
|
|
17
|
+
}
|
|
18
|
+
]);
|
|
19
|
+
return (o, C) => {
|
|
20
|
+
const c = i("a-tag");
|
|
21
|
+
return p(), u(c, {
|
|
22
|
+
class: f(["tag", l.value])
|
|
23
|
+
}, {
|
|
24
|
+
default: m(() => [
|
|
25
|
+
a("span", B, [
|
|
26
|
+
r(o.$slots, "before-icon", {}, void 0, !0)
|
|
27
|
+
]),
|
|
28
|
+
g(" " + _(o.content) + " ", 1),
|
|
29
|
+
a("span", b, [
|
|
30
|
+
r(o.$slots, "after-icon", {}, void 0, !0)
|
|
31
|
+
])
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["class"]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
y as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class l {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.getTooltipContainer = this.getTooltipContainer.bind(this), this.createTooltipElement = this.createTooltipElement.bind(this), this.mounted = this.mounted.bind(this), this.removeTooltips = this.removeTooltips.bind(this);
|
|
4
|
+
}
|
|
5
|
+
mounted(t, e) {
|
|
6
|
+
t.addEventListener("mouseenter", this.appendTooltipElementToDom.bind(this, t, e.value)), t.addEventListener("mouseleave", this.removeTooltips);
|
|
7
|
+
}
|
|
8
|
+
appendTooltipElementToDom(t, e) {
|
|
9
|
+
const n = this.getTooltipContainer(), o = this.createTooltipElement(e), i = t.getBoundingClientRect();
|
|
10
|
+
o.style.position = "absolute", o.style.top = i.y - 20 + "px", o.style.left = i.right - 150 + "px", n.appendChild(o);
|
|
11
|
+
}
|
|
12
|
+
getTooltipContainer() {
|
|
13
|
+
return document.querySelector("#tooltip-container");
|
|
14
|
+
}
|
|
15
|
+
createTooltipElement(t) {
|
|
16
|
+
const e = document.createElement("div");
|
|
17
|
+
return e.classList.add("tooltip"), e.innerText = t, e;
|
|
18
|
+
}
|
|
19
|
+
unMounted(t) {
|
|
20
|
+
this.removeTooltips(), t.removeEventListener("mouseenter", this.appendTooltipElementToDom.bind(this, t, "")), t.removeEventListener("mouseleave", this.removeTooltips);
|
|
21
|
+
}
|
|
22
|
+
removeTooltips() {
|
|
23
|
+
const t = this.getTooltipContainer();
|
|
24
|
+
t.textContent = "";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
l as TooltipDirective
|
|
29
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as n, mergeModels as s, useModel as c, resolveComponent as i, createBlock as r, openBlock as m, withCtx as p, createTextVNode as u, toDisplayString as f } from "vue";
|
|
2
|
+
const x = /* @__PURE__ */ n({
|
|
3
|
+
__name: "SarafCheckbox",
|
|
4
|
+
props: /* @__PURE__ */ s({
|
|
5
|
+
label: { default: "" },
|
|
6
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
7
|
+
isIndeterminate: { type: Boolean, default: !1 }
|
|
8
|
+
}, {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
}),
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(a) {
|
|
14
|
+
const e = a, o = c(a, "modelValue");
|
|
15
|
+
return (b, t) => {
|
|
16
|
+
const l = i("a-checkbox");
|
|
17
|
+
return m(), r(l, {
|
|
18
|
+
checked: o.value,
|
|
19
|
+
"onUpdate:checked": t[0] || (t[0] = (d) => o.value = d),
|
|
20
|
+
class: "saraf-checkbox",
|
|
21
|
+
disabled: e.isDisabled,
|
|
22
|
+
indeterminate: e.isIndeterminate
|
|
23
|
+
}, {
|
|
24
|
+
default: p(() => [
|
|
25
|
+
u(f(e.label), 1)
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
}, 8, ["checked", "disabled", "indeterminate"]);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
x as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as C, mergeModels as g, useModel as V, computed as a, resolveComponent as k, resolveDirective as x, withDirectives as S, createElementBlock as w, openBlock as z, normalizeClass as M, createVNode as d, unref as y } from "vue";
|
|
2
|
+
import { setupJalaliDate as B, DateFormats as o, DateDisabledOptions as T, DateTools as F, DateConverter as N } from "@sarafapp/iron_core";
|
|
3
|
+
import { ComponentSize as O } from "../Constants.es.js";
|
|
4
|
+
import I from "../node_modules/dayjs/dayjs.min.es.js";
|
|
5
|
+
import { InputStatus as u } from "../baseForm/model/Constants.es.js";
|
|
6
|
+
import E from "../baseForm/SarafFiledInvalidMessage.vue.es.js";
|
|
7
|
+
const q = /* @__PURE__ */ C({
|
|
8
|
+
__name: "SarafDatePicker",
|
|
9
|
+
props: /* @__PURE__ */ g({
|
|
10
|
+
inputControl: {},
|
|
11
|
+
placeholder: { default: "تاریخ مورد نظر را انتخاب کنید" },
|
|
12
|
+
isClearable: { type: Boolean, default: !0 },
|
|
13
|
+
disabled: { type: Boolean, default: !1 },
|
|
14
|
+
size: { default: O.Large },
|
|
15
|
+
hasTime: { type: Boolean, default: !1 },
|
|
16
|
+
disabledDates: { default() {
|
|
17
|
+
return [];
|
|
18
|
+
} },
|
|
19
|
+
maxDate: { default: null },
|
|
20
|
+
minDate: { default: null }
|
|
21
|
+
}, {
|
|
22
|
+
modelValue: {},
|
|
23
|
+
modelModifiers: {}
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(s) {
|
|
27
|
+
B();
|
|
28
|
+
const e = s, l = V(s, "modelValue"), i = a(() => e.inputControl.getNotValidMessage()), m = a(() => !i.value), c = a(() => m.value ? u.Default : u.Error), p = a(() => ({
|
|
29
|
+
disabled: e.disabled
|
|
30
|
+
})), f = a(() => l.value ? I.unix(l.value) : null), v = a(() => e.hasTime ? {
|
|
31
|
+
format: o.OnlyHour
|
|
32
|
+
} : !1), b = a(() => e.hasTime ? o.ContainsHour : o.Normal);
|
|
33
|
+
function D(t) {
|
|
34
|
+
const r = new T(
|
|
35
|
+
e.maxDate,
|
|
36
|
+
e.minDate,
|
|
37
|
+
e.disabledDates
|
|
38
|
+
);
|
|
39
|
+
return F.isDateDisabled(r, t);
|
|
40
|
+
}
|
|
41
|
+
function n(t) {
|
|
42
|
+
t ? l.value = N.standardToUnix(t) : l.value = null;
|
|
43
|
+
}
|
|
44
|
+
return (t, r) => {
|
|
45
|
+
const h = k("a-date-picker"), _ = x("touch-sensitive-control");
|
|
46
|
+
return S((z(), w("div", {
|
|
47
|
+
tabindex: "1",
|
|
48
|
+
class: M(["input__container", p.value])
|
|
49
|
+
}, [
|
|
50
|
+
d(h, {
|
|
51
|
+
value: f.value,
|
|
52
|
+
size: e.size,
|
|
53
|
+
"allow-clear": e.isClearable,
|
|
54
|
+
placeholder: e.placeholder,
|
|
55
|
+
status: c.value,
|
|
56
|
+
disabled: e.disabled,
|
|
57
|
+
"disabled-date": D,
|
|
58
|
+
"show-time": v.value,
|
|
59
|
+
format: b.value,
|
|
60
|
+
onChange: n,
|
|
61
|
+
onOk: n
|
|
62
|
+
}, null, 8, ["value", "size", "allow-clear", "placeholder", "status", "disabled", "show-time", "format"]),
|
|
63
|
+
d(y(E), {
|
|
64
|
+
"invalid-message": i.value,
|
|
65
|
+
disabled: e.disabled
|
|
66
|
+
}, null, 8, ["invalid-message", "disabled"])
|
|
67
|
+
], 2)), [
|
|
68
|
+
[_, e.inputControl]
|
|
69
|
+
]);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
q as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as h, mergeModels as x, useModel as k, computed as t, resolveComponent as V, resolveDirective as w, withDirectives as S, createElementBlock as z, openBlock as M, normalizeClass as y, createVNode as d, unref as B } from "vue";
|
|
2
|
+
import m from "../node_modules/dayjs/dayjs.min.es.js";
|
|
3
|
+
import { setupJalaliDate as F, DateFormats as r, DateDisabledOptions as I, DateTools as O, RangeValue as P } from "@sarafapp/iron_core";
|
|
4
|
+
import { ComponentSize as T } from "../Constants.es.js";
|
|
5
|
+
import { InputStatus as c } from "../baseForm/model/Constants.es.js";
|
|
6
|
+
import N from "../baseForm/SarafFiledInvalidMessage.vue.es.js";
|
|
7
|
+
const L = /* @__PURE__ */ h({
|
|
8
|
+
__name: "SarafRangePicker",
|
|
9
|
+
props: /* @__PURE__ */ x({
|
|
10
|
+
inputControl: {},
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
isClearable: { type: Boolean, default: !1 },
|
|
13
|
+
size: { default: T.Large },
|
|
14
|
+
hasTime: { type: Boolean, default: !1 },
|
|
15
|
+
maxDate: { default: null },
|
|
16
|
+
minDate: { default: null },
|
|
17
|
+
disabledDates: { default() {
|
|
18
|
+
return [];
|
|
19
|
+
} }
|
|
20
|
+
}, {
|
|
21
|
+
modelValue: {},
|
|
22
|
+
modelModifiers: {}
|
|
23
|
+
}),
|
|
24
|
+
emits: ["update:modelValue"],
|
|
25
|
+
setup(s) {
|
|
26
|
+
F();
|
|
27
|
+
const e = s, n = k(s, "modelValue"), o = t(() => e.inputControl.getNotValidMessage()), f = t(() => !o.value), p = t(() => n.value ? [m.unix(n.value.start), m.unix(n.value.end)] : []), v = t(() => f.value ? c.Default : c.Error), D = t(() => ({
|
|
28
|
+
disabled: e.disabled
|
|
29
|
+
})), b = t(() => e.hasTime ? r.ContainsHour : r.Normal), g = t(() => e.hasTime ? {
|
|
30
|
+
format: r.OnlyHour
|
|
31
|
+
} : !1);
|
|
32
|
+
function _(a) {
|
|
33
|
+
const l = new I(
|
|
34
|
+
e.maxDate,
|
|
35
|
+
e.minDate,
|
|
36
|
+
e.disabledDates
|
|
37
|
+
);
|
|
38
|
+
return O.isDateDisabled(l, a);
|
|
39
|
+
}
|
|
40
|
+
function u(a) {
|
|
41
|
+
if (!a) {
|
|
42
|
+
n.value = null;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (!a[0] || !a[1]) return;
|
|
46
|
+
const l = a[0].unix(), i = a[1].unix();
|
|
47
|
+
n.value = new P(l, i);
|
|
48
|
+
}
|
|
49
|
+
return (a, l) => {
|
|
50
|
+
const i = V("a-range-picker"), C = w("touch-sensitive-control");
|
|
51
|
+
return S((M(), z("div", {
|
|
52
|
+
tabindex: "1",
|
|
53
|
+
class: y(["range__container", D.value])
|
|
54
|
+
}, [
|
|
55
|
+
d(i, {
|
|
56
|
+
value: p.value,
|
|
57
|
+
status: v.value,
|
|
58
|
+
disabled: e.disabled,
|
|
59
|
+
format: b.value,
|
|
60
|
+
"show-time": g.value,
|
|
61
|
+
"disabled-date": _,
|
|
62
|
+
size: e.size,
|
|
63
|
+
"allow-clear": e.isClearable,
|
|
64
|
+
onChange: u,
|
|
65
|
+
onOk: u
|
|
66
|
+
}, null, 8, ["value", "status", "disabled", "format", "show-time", "size", "allow-clear"]),
|
|
67
|
+
d(B(N), {
|
|
68
|
+
"invalid-message": o.value,
|
|
69
|
+
disabled: e.disabled
|
|
70
|
+
}, null, 8, ["invalid-message", "disabled"])
|
|
71
|
+
], 2)), [
|
|
72
|
+
[C, e.inputControl]
|
|
73
|
+
]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
L as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as f, resolveComponent as m, createBlock as p, openBlock as a, normalizeClass as o, unref as b, withCtx as y, createElementBlock as z, createCommentVNode as C, createElementVNode as n, renderSlot as s } from "vue";
|
|
2
|
+
import { ComponentSize as _ } from "../../Constants.es.js";
|
|
3
|
+
import { ButtonColor as i, ButtonType as g } from "./model/Constants.es.js";
|
|
4
|
+
const k = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "saraf-button-content"
|
|
7
|
+
}, L = /* @__PURE__ */ f({
|
|
8
|
+
__name: "SarafButton",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: _.Medium },
|
|
11
|
+
type: { default: g.Fill },
|
|
12
|
+
color: { default: i.Primary },
|
|
13
|
+
isLoading: { type: Boolean, default: !1 },
|
|
14
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
15
|
+
class: { default: "" }
|
|
16
|
+
},
|
|
17
|
+
emits: ["click"],
|
|
18
|
+
setup(l, { emit: r }) {
|
|
19
|
+
const e = l, c = r;
|
|
20
|
+
function d() {
|
|
21
|
+
c("click");
|
|
22
|
+
}
|
|
23
|
+
return (t, B) => {
|
|
24
|
+
const u = m("a-button");
|
|
25
|
+
return a(), p(u, {
|
|
26
|
+
disabled: e.isDisabled,
|
|
27
|
+
type: e.type,
|
|
28
|
+
size: e.size,
|
|
29
|
+
danger: e.color === b(i).Danger,
|
|
30
|
+
loading: e.isLoading,
|
|
31
|
+
class: o(["saraf-button", [e.class, e.size]]),
|
|
32
|
+
onClick: d
|
|
33
|
+
}, {
|
|
34
|
+
default: y(() => [
|
|
35
|
+
e.isLoading ? C("", !0) : (a(), z("div", k, [
|
|
36
|
+
n("span", {
|
|
37
|
+
class: o(["saraf-button-icon", e.size])
|
|
38
|
+
}, [
|
|
39
|
+
s(t.$slots, "beforeIcon", {}, void 0, !0)
|
|
40
|
+
], 2),
|
|
41
|
+
s(t.$slots, "default", {}, void 0, !0),
|
|
42
|
+
n("span", {
|
|
43
|
+
class: o(["saraf-button-icon", e.size])
|
|
44
|
+
}, [
|
|
45
|
+
s(t.$slots, "afterIcon", {}, void 0, !0)
|
|
46
|
+
], 2)
|
|
47
|
+
]))
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
}, 8, ["disabled", "type", "size", "danger", "loading", "class"]);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
L as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as n, createElementBlock as l, openBlock as i, createElementVNode as r } from "vue";
|
|
2
|
+
const d = ["width", "height"], s = /* @__PURE__ */ n({
|
|
3
|
+
__name: "ArrowDownIcon",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: 24 },
|
|
6
|
+
height: { default: 24 }
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const e = o;
|
|
10
|
+
return (h, t) => (i(), l("svg", {
|
|
11
|
+
width: e.width,
|
|
12
|
+
height: e.height,
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
16
|
+
}, t[0] || (t[0] = [
|
|
17
|
+
r("path", {
|
|
18
|
+
"fill-rule": "evenodd",
|
|
19
|
+
"clip-rule": "evenodd",
|
|
20
|
+
d: "M7.46967 10.4697C7.76256 10.1768 8.23744 10.1768 8.53033 10.4697L12 13.9393L15.4697 10.4697C15.7626 10.1768 16.2374 10.1768 16.5303 10.4697C16.8232 10.7626 16.8232 11.2374 16.5303 11.5303L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L7.46967 11.5303C7.17678 11.2374 7.17678 10.7626 7.46967 10.4697Z",
|
|
21
|
+
fill: "#16191D"
|
|
22
|
+
}, null, -1)
|
|
23
|
+
]), 8, d));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
s as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as n, createElementBlock as l, openBlock as i, createElementVNode as r } from "vue";
|
|
2
|
+
const d = ["width", "height"], s = /* @__PURE__ */ n({
|
|
3
|
+
__name: "ArrowUpIcon",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: 24 },
|
|
6
|
+
height: { default: 24 }
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const e = o;
|
|
10
|
+
return (h, t) => (i(), l("svg", {
|
|
11
|
+
width: e.width,
|
|
12
|
+
height: e.height,
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
16
|
+
}, t[0] || (t[0] = [
|
|
17
|
+
r("path", {
|
|
18
|
+
"fill-rule": "evenodd",
|
|
19
|
+
"clip-rule": "evenodd",
|
|
20
|
+
d: "M15.7803 13.7803C15.4874 14.0732 15.0126 14.0732 14.7197 13.7803L11.25 10.3107L7.7803 13.7803C7.4874 14.0732 7.0126 14.0732 6.7197 13.7803C6.4268 13.4874 6.4268 13.0126 6.7197 12.7197L10.7197 8.71972C11.0126 8.42682 11.4874 8.42682 11.7803 8.71972L15.7803 12.7197C16.0732 13.0126 16.0732 13.4874 15.7803 13.7803Z",
|
|
21
|
+
fill: "#16191D"
|
|
22
|
+
}, null, -1)
|
|
23
|
+
]), 8, d));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
s as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as n, openBlock as i, createElementVNode as h } from "vue";
|
|
2
|
+
const r = ["width", "height"], p = /* @__PURE__ */ o({
|
|
3
|
+
__name: "BurgerIcon",
|
|
4
|
+
props: {
|
|
5
|
+
width: {},
|
|
6
|
+
height: {}
|
|
7
|
+
},
|
|
8
|
+
setup(C) {
|
|
9
|
+
const t = C;
|
|
10
|
+
return (l, e) => (i(), n("svg", {
|
|
11
|
+
width: t.width,
|
|
12
|
+
height: t.height,
|
|
13
|
+
viewBox: "0 0 18 12",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
16
|
+
}, e[0] || (e[0] = [
|
|
17
|
+
h("path", {
|
|
18
|
+
d: "M1.25 11.6346C1.0375 11.6346 0.859375 11.5626 0.715625 11.4188C0.571875 11.275 0.5 11.0968 0.5 10.8842C0.5 10.6716 0.571875 10.4935 0.715625 10.35C0.859375 10.2064 1.0375 10.1346 1.25 10.1346H16.75C16.9625 10.1346 17.1406 10.2065 17.2843 10.3503C17.4281 10.4941 17.5 10.6723 17.5 10.8849C17.5 11.0975 17.4281 11.2756 17.2843 11.4192C17.1406 11.5628 16.9625 11.6346 16.75 11.6346H1.25ZM1.25 6.74993C1.0375 6.74993 0.859375 6.67803 0.715625 6.53423C0.571875 6.39041 0.5 6.21221 0.5 5.99963C0.5 5.78703 0.571875 5.60894 0.715625 5.46536C0.859375 5.32177 1.0375 5.24998 1.25 5.24998H16.75C16.9625 5.24998 17.1406 5.32188 17.2843 5.46568C17.4281 5.6095 17.5 5.7877 17.5 6.00028C17.5 6.21288 17.4281 6.39097 17.2843 6.53456C17.1406 6.67814 16.9625 6.74993 16.75 6.74993H1.25ZM1.25 1.86533C1.0375 1.86533 0.859375 1.79342 0.715625 1.64961C0.571875 1.50581 0.5 1.32761 0.5 1.11501C0.5 0.902422 0.571875 0.724339 0.715625 0.580756C0.859375 0.437156 1.0375 0.365356 1.25 0.365356H16.75C16.9625 0.365356 17.1406 0.437264 17.2843 0.581081C17.4281 0.724897 17.5 0.903098 17.5 1.11568C17.5 1.32828 17.4281 1.50637 17.2843 1.64996C17.1406 1.79354 16.9625 1.86533 16.75 1.86533H1.25Z",
|
|
19
|
+
fill: "#212121"
|
|
20
|
+
}, null, -1)
|
|
21
|
+
]), 8, r));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
p as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createElementBlock as l, openBlock as C, createStaticVNode as d } from "vue";
|
|
2
|
+
import t from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
3
|
+
const o = {}, i = {
|
|
4
|
+
class: "gift_icon",
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: "20",
|
|
7
|
+
height: "20",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
fill: "none"
|
|
10
|
+
};
|
|
11
|
+
function n(r, e) {
|
|
12
|
+
return C(), l("svg", i, e[0] || (e[0] = [
|
|
13
|
+
d('<path fill-rule="evenodd" clip-rule="evenodd" d="M14.2539 10.4404C14.2539 10.6072 14.4487 10.7037 14.5906 10.616C15.0705 10.3194 15.6143 10.1424 16.1989 10.1424C17.2539 10.1424 18.1109 11.0044 18.1109 12.0624C18.1109 12.6895 17.8658 13.2645 17.4488 13.7551C17.3293 13.8957 17.4223 14.1324 17.6068 14.1324H21.2999C21.4104 14.1324 21.4999 14.0429 21.4999 13.9324V8.03244C21.4999 4.72544 19.3769 2.50244 16.2169 2.50244H14.4539C14.3435 2.50244 14.2539 2.59198 14.2539 2.70244V10.4404Z" fill="#CBDAE1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.7987 11.6428C10.5677 11.6428 10.3867 11.8278 10.3867 12.0628C10.3867 12.7384 11.2106 13.4767 12.4849 13.7409C12.6119 13.7672 12.7247 13.6609 12.702 13.5333C12.5092 12.453 11.7295 11.6428 10.7987 11.6428Z" fill="#CBDAE1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.1994 11.6428C15.2686 11.6428 14.4879 12.4531 14.2959 13.5343C14.2733 13.6619 14.3862 13.7681 14.5131 13.7418C15.7875 13.4768 16.6114 12.7384 16.6114 12.0628C16.6114 11.8278 16.4304 11.6428 16.1994 11.6428Z" fill="#CBDAE1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.39113 14.1319C9.57563 14.1319 9.66863 13.8952 9.54905 13.7547C9.13179 13.2644 8.886 12.69 8.886 12.0629C8.886 11.0039 9.744 10.1429 10.799 10.1429C11.3866 10.1429 11.9338 10.3215 12.4167 10.6217C12.5586 10.7099 12.754 10.6134 12.754 10.4464V2.70293C12.754 2.59247 12.6645 2.50293 12.554 2.50293H7.782C4.623 2.50293 2.5 4.72493 2.5 8.03293V13.9319C2.5 14.0423 2.58954 14.1319 2.7 14.1319H9.39113Z" fill="#CBDAE1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9102 15.6318C15.7366 15.6318 15.6454 15.8379 15.7623 15.9664L16.9189 17.2378C17.1979 17.5448 17.1759 18.0188 16.8689 18.2978C16.5639 18.5758 16.0879 18.5538 15.8099 18.2478L14.6018 16.9202C14.4788 16.785 14.2539 16.872 14.2539 17.0548V21.3028C14.2539 21.4133 14.3434 21.5028 14.4539 21.5028H16.2159C19.3759 21.5028 21.4999 19.2798 21.4999 15.9718V15.8318C21.4999 15.7214 21.4104 15.6318 21.2999 15.6318H15.9102Z" fill="#CBDAE1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.754 17.0412C12.754 16.8584 12.5291 16.7714 12.4061 16.9066L11.186 18.2473C11.037 18.4103 10.834 18.4933 10.631 18.4933C10.45 18.4933 10.27 18.4283 10.126 18.2973C9.819 18.0183 9.798 17.5443 10.076 17.2383L11.2334 15.9669C11.3503 15.8385 11.2592 15.6323 11.0855 15.6323H2.7C2.58954 15.6323 2.5 15.7218 2.5 15.8323V15.9723C2.5 19.2803 4.623 21.5023 7.782 21.5023H12.554C12.6645 21.5023 12.754 21.4127 12.754 21.3023V17.0412Z" fill="#CBDAE1"></path>', 6)
|
|
14
|
+
]));
|
|
15
|
+
}
|
|
16
|
+
const c = /* @__PURE__ */ t(o, [["render", n]]);
|
|
17
|
+
export {
|
|
18
|
+
c as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
|
|
2
|
+
import n from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
3
|
+
const s = {}, l = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
class: "h-5 w-5 text-white",
|
|
6
|
+
fill: "none",
|
|
7
|
+
style: { color: "black" },
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
stroke: "currentColor"
|
|
10
|
+
};
|
|
11
|
+
function c(i, e) {
|
|
12
|
+
return t(), o("svg", l, e[0] || (e[0] = [
|
|
13
|
+
r("path", {
|
|
14
|
+
"stroke-linecap": "round",
|
|
15
|
+
"stroke-linejoin": "round",
|
|
16
|
+
"stroke-width": "2",
|
|
17
|
+
d: "M12 4v16m8-8H4"
|
|
18
|
+
}, null, -1)
|
|
19
|
+
]));
|
|
20
|
+
}
|
|
21
|
+
const a = /* @__PURE__ */ n(s, [["render", c]]);
|
|
22
|
+
export {
|
|
23
|
+
a as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
|
|
2
|
+
import n from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
3
|
+
const s = {}, c = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
"stroke-width": "1.5",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
class: "size-4"
|
|
10
|
+
};
|
|
11
|
+
function l(i, e) {
|
|
12
|
+
return t(), o("svg", c, e[0] || (e[0] = [
|
|
13
|
+
r("path", {
|
|
14
|
+
"stroke-linecap": "round",
|
|
15
|
+
"stroke-linejoin": "round",
|
|
16
|
+
d: "M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 0 0-3.7-3.7 48.678 48.678 0 0 0-7.324 0 4.006 4.006 0 0 0-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 0 0 3.7 3.7 48.656 48.656 0 0 0 7.324 0 4.006 4.006 0 0 0 3.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3-3 3"
|
|
17
|
+
}, null, -1)
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
const d = /* @__PURE__ */ n(s, [["render", l]]);
|
|
21
|
+
export {
|
|
22
|
+
d as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
|
|
2
|
+
import n from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
3
|
+
const l = {}, c = {
|
|
4
|
+
class: "saraf-arrow-icon",
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: "16",
|
|
7
|
+
height: "16",
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
fill: "none"
|
|
10
|
+
};
|
|
11
|
+
function s(i, e) {
|
|
12
|
+
return r(), o("svg", c, e[0] || (e[0] = [
|
|
13
|
+
t("path", {
|
|
14
|
+
"fill-rule": "evenodd",
|
|
15
|
+
"clip-rule": "evenodd",
|
|
16
|
+
d: "M8.00008 1.5C8.27621 1.5 8.50008 1.72386 8.50008 2V12.7929L10.9799 10.3131C11.1751 10.1179 11.4917 10.1179 11.6869 10.3131C11.8822 10.5084 11.8822 10.8249 11.6869 11.0202L8.35361 14.3535C8.15835 14.5488 7.84181 14.5488 7.64655 14.3535L4.31319 11.0202C4.11793 10.8249 4.11793 10.5084 4.31319 10.3131C4.50845 10.1179 4.82504 10.1179 5.0203 10.3131L7.50008 12.7929V2C7.50008 1.72386 7.72395 1.5 8.00008 1.5Z",
|
|
17
|
+
fill: "#586F8F"
|
|
18
|
+
}, null, -1)
|
|
19
|
+
]));
|
|
20
|
+
}
|
|
21
|
+
const d = /* @__PURE__ */ n(l, [["render", s]]);
|
|
22
|
+
export {
|
|
23
|
+
d as default
|
|
24
|
+
};
|