@sarafapp/ant-design 1.0.20 → 1.0.22
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/baseTable/SarafTableGenerator.vue.d.ts +1 -0
- package/dist/baseTable/SarafTableGenerator.vue.es.js +2 -2
- package/dist/baseTable/SarafTableGenerator.vue.es2.js +118 -98
- package/dist/baseTable/SarafTradeDateCell.vue.es.js +1 -1
- package/dist/baseTable/SarafTradeDateCell.vue.es2.js +17 -14
- package/dist/dataDisplay/index.d.ts +2 -1
- package/dist/dataDisplay/tooltip/SarafTooltip.vue.d.ts +24 -0
- package/dist/dataDisplay/tooltip/SarafTooltip.vue.es.js +27 -0
- package/dist/dataDisplay/tooltip/SarafTooltip.vue.es2.js +4 -0
- package/dist/dataDisplay/tooltip/model/Constants.d.ts +10 -0
- package/dist/dataDisplay/tooltip/model/Constants.es.js +4 -0
- package/dist/index.es.js +96 -94
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
4
4
|
dataSource: TableGenerator<T> | SelectableTableGenerator<T>;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
tableConfig: TableConfig;
|
|
7
|
+
hasInitialLoad: boolean;
|
|
7
8
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
8
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
9
10
|
attrs: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SarafTableGenerator.vue.es2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9fe97d01"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { SelectableTableGenerator as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as he, ref as r, computed as i, onBeforeMount as ye, onBeforeUpdate as _e, onBeforeUnmount as ge, resolveComponent as d, createBlock as h, openBlock as n, createSlots as ve, withCtx as l, createElementBlock as p, createCommentVNode as C, unref as y, toDisplayString as m, resolveDynamicComponent as Ce, normalizeProps as Te, mergeProps as we, createVNode as f, createElementVNode as be, Fragment as T, renderList as F, withModifiers as Ae, createTextVNode as w, renderSlot as ke } from "vue";
|
|
2
|
+
import { SelectableTableGenerator as Ie, TableConstants as b, CellType as A, HeaderType as Re, SortDetail as Pe, SortOrderTableHeader as xe, SortOrder as W, TABLE_ACTION_COLUMN as Ee, isOnlyOneItem as Oe, isLastItem as Ne } from "@sarafapp/iron_core";
|
|
3
|
+
import Le from "../dataDisplay/tooltip/SarafTooltip.vue.es.js";
|
|
4
|
+
const Be = { key: 0 }, De = {
|
|
5
|
+
key: 2,
|
|
6
|
+
class: "action-column"
|
|
7
|
+
}, Ue = /* @__PURE__ */ he({
|
|
4
8
|
__name: "SarafTableGenerator",
|
|
5
9
|
props: {
|
|
6
10
|
dataSource: {},
|
|
7
11
|
isLoading: { type: Boolean },
|
|
8
|
-
tableConfig: {}
|
|
12
|
+
tableConfig: {},
|
|
13
|
+
hasInitialLoad: { type: Boolean, default: !0 }
|
|
9
14
|
},
|
|
10
15
|
setup(j) {
|
|
11
|
-
const t = j,
|
|
12
|
-
total:
|
|
16
|
+
const t = j, k = r(""), u = r([]), I = r([]), R = r([]), S = r(), _ = i(() => t.dataSource instanceof Ie), P = i(() => u.value.length > b.MINIMAL_LOADABLE_HEADER_COUNT), x = r(0), E = r(0), O = r(0), N = r(!1), q = i(() => ({
|
|
17
|
+
total: x.value,
|
|
13
18
|
current: E.value,
|
|
14
19
|
showLessItems: !0,
|
|
15
20
|
showTotal(e) {
|
|
@@ -18,159 +23,174 @@ const Oe = { key: 0 }, xe = { key: 1 }, Ne = { key: 2 }, ze = /* @__PURE__ */ Se
|
|
|
18
23
|
defaultPageSize: b.DEFAULT_ITEM_COUNT_PER_PAGE,
|
|
19
24
|
pageSize: O.value,
|
|
20
25
|
position: [b.PAGINATION_POSITION]
|
|
21
|
-
})),
|
|
26
|
+
})), L = i(() => {
|
|
22
27
|
var e;
|
|
23
|
-
return ((e =
|
|
24
|
-
}), J =
|
|
25
|
-
onSelect:
|
|
26
|
-
onSelectAll:
|
|
28
|
+
return ((e = u.value[u.value.length - 1]) == null ? void 0 : e.cellType) === A.ACTION;
|
|
29
|
+
}), J = i(() => _.value ? {
|
|
30
|
+
onSelect: Y,
|
|
31
|
+
onSelectAll: Z,
|
|
27
32
|
selectedRowKeys: R.value
|
|
28
|
-
} : null), Q =
|
|
29
|
-
function
|
|
33
|
+
} : null), Q = i(() => !!S.value.summaryItems.length);
|
|
34
|
+
function X(e) {
|
|
35
|
+
const o = e.currentTarget;
|
|
36
|
+
k.value = o.scrollWidth > o.clientWidth ? o.innerText : "";
|
|
37
|
+
}
|
|
38
|
+
function Y(e) {
|
|
30
39
|
t.dataSource.selectRow(e);
|
|
31
40
|
}
|
|
32
|
-
function
|
|
41
|
+
function Z() {
|
|
33
42
|
t.dataSource.selectAll();
|
|
34
43
|
}
|
|
35
|
-
async function
|
|
36
|
-
if (e && await t.dataSource.paginate(
|
|
37
|
-
|
|
38
|
-
e.pageSize
|
|
39
|
-
), s != null && s.columnKey) {
|
|
40
|
-
const _ = new ke(
|
|
44
|
+
async function ee(e, o, s) {
|
|
45
|
+
if (e && await t.dataSource.paginate(e.current, e.pageSize), s != null && s.columnKey) {
|
|
46
|
+
const g = new Pe(
|
|
41
47
|
s.columnKey,
|
|
42
|
-
|
|
48
|
+
te(s.order)
|
|
43
49
|
);
|
|
44
|
-
await t.dataSource.sort(
|
|
50
|
+
await t.dataSource.sort(g);
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
|
-
function
|
|
48
|
-
return e ===
|
|
53
|
+
function te(e) {
|
|
54
|
+
return e === xe.ASC ? W.ASC : W.DESC;
|
|
49
55
|
}
|
|
50
|
-
async function
|
|
56
|
+
async function ae() {
|
|
51
57
|
await t.dataSource.load(), B();
|
|
52
58
|
}
|
|
53
59
|
function B() {
|
|
54
60
|
const e = t.dataSource.hasAnyAction();
|
|
55
|
-
e && !
|
|
61
|
+
e && !L.value && oe(), !e && L.value && ne();
|
|
56
62
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
63
|
+
function oe() {
|
|
64
|
+
u.value.push(Ee);
|
|
59
65
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
66
|
+
function ne() {
|
|
67
|
+
u.value.pop();
|
|
62
68
|
}
|
|
63
|
-
function
|
|
69
|
+
function le(e) {
|
|
64
70
|
t.dataSource.handleClick(e);
|
|
65
71
|
}
|
|
66
|
-
function
|
|
72
|
+
function re(e) {
|
|
67
73
|
t.dataSource.handleMetaClick(e);
|
|
68
74
|
}
|
|
69
|
-
function
|
|
75
|
+
function ce(e) {
|
|
70
76
|
t.dataSource.handleDoubleClick(e);
|
|
71
77
|
}
|
|
72
|
-
function
|
|
78
|
+
function ue(e) {
|
|
73
79
|
return {
|
|
74
|
-
onClick(
|
|
75
|
-
|
|
80
|
+
onClick(o) {
|
|
81
|
+
o.metaKey ? re(e) : le(e);
|
|
76
82
|
},
|
|
77
83
|
onDblclick() {
|
|
78
|
-
|
|
84
|
+
ce(e);
|
|
79
85
|
}
|
|
80
86
|
};
|
|
81
87
|
}
|
|
82
|
-
function
|
|
88
|
+
function se(e) {
|
|
83
89
|
return e.id;
|
|
84
90
|
}
|
|
85
|
-
function
|
|
86
|
-
return !
|
|
91
|
+
function ie(e, o) {
|
|
92
|
+
return !Oe(e) && !Ne(e, o);
|
|
87
93
|
}
|
|
88
|
-
function
|
|
89
|
-
return e.getProps ? e.getProps(
|
|
94
|
+
function de(e, o) {
|
|
95
|
+
return e.getProps ? e.getProps(o) : null;
|
|
90
96
|
}
|
|
91
97
|
function D() {
|
|
92
98
|
S.value = t.dataSource.loadSummarySchema();
|
|
93
99
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
100
|
+
function M(e) {
|
|
101
|
+
u.value = e;
|
|
96
102
|
}
|
|
97
103
|
function z(e) {
|
|
98
|
-
|
|
104
|
+
I.value = e;
|
|
99
105
|
}
|
|
100
|
-
function
|
|
106
|
+
function V(e) {
|
|
101
107
|
R.value = t.dataSource.getSelectedRowIds();
|
|
102
108
|
}
|
|
103
109
|
function H(e) {
|
|
104
|
-
|
|
110
|
+
x.value = e;
|
|
105
111
|
}
|
|
106
112
|
function U(e) {
|
|
107
113
|
E.value = e;
|
|
108
114
|
}
|
|
109
|
-
function
|
|
115
|
+
function K(e) {
|
|
110
116
|
O.value = e;
|
|
111
117
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
118
|
+
function G(e) {
|
|
119
|
+
N.value = e;
|
|
114
120
|
}
|
|
115
|
-
return
|
|
116
|
-
|
|
117
|
-
}),
|
|
121
|
+
return ye(() => {
|
|
122
|
+
t.hasInitialLoad && (ae(), D()), t.dataSource.headerSchema.attach(M), t.dataSource.rows.attach(z), t.dataSource.currentPage.attach(U), t.dataSource.currentPageSize.attach(K), t.dataSource.totalItems.attach(H), t.dataSource.isExpandable.attach(G), _.value && t.dataSource.selectedRows.attach(V);
|
|
123
|
+
}), _e(() => {
|
|
118
124
|
B(), D();
|
|
119
|
-
}),
|
|
120
|
-
t.dataSource.onDestroy(), t.dataSource.headerSchema.detach(
|
|
121
|
-
}), (e,
|
|
122
|
-
const s =
|
|
123
|
-
return
|
|
124
|
-
columns:
|
|
125
|
-
"data-source":
|
|
125
|
+
}), ge(() => {
|
|
126
|
+
t.dataSource.onDestroy(), t.dataSource.headerSchema.detach(M), t.dataSource.rows.detach(z), t.dataSource.currentPage.detach(U), t.dataSource.currentPageSize.detach(K), t.dataSource.totalItems.detach(H), t.dataSource.isExpandable.detach(G), _.value && t.dataSource.selectedRows.detach(V);
|
|
127
|
+
}), (e, o) => {
|
|
128
|
+
const s = d("a-button"), g = d("a-divider"), $ = d("a-table-summary-cell"), pe = d("a-typography-text"), me = d("a-table-summary-row"), fe = d("a-table");
|
|
129
|
+
return n(), h(fe, {
|
|
130
|
+
columns: u.value,
|
|
131
|
+
"data-source": I.value,
|
|
126
132
|
pagination: q.value,
|
|
127
|
-
"custom-row":
|
|
128
|
-
"row-key":
|
|
133
|
+
"custom-row": ue,
|
|
134
|
+
"row-key": se,
|
|
129
135
|
loading: t.isLoading,
|
|
130
136
|
scroll: t.dataSource.scrollDetail,
|
|
131
137
|
"row-selection": J.value,
|
|
132
138
|
class: "saraf-table",
|
|
133
|
-
onChange:
|
|
134
|
-
},
|
|
135
|
-
|
|
139
|
+
onChange: ee
|
|
140
|
+
}, ve({ _: 2 }, [
|
|
141
|
+
P.value ? {
|
|
136
142
|
name: "headerCell",
|
|
137
|
-
fn:
|
|
138
|
-
a.headerType ===
|
|
143
|
+
fn: l(({ column: a }) => [
|
|
144
|
+
a.headerType === y(Re).Text ? (n(), p("span", Be, m(a.title), 1)) : C("", !0)
|
|
139
145
|
]),
|
|
140
146
|
key: "0"
|
|
141
147
|
} : void 0,
|
|
142
|
-
|
|
148
|
+
P.value ? {
|
|
143
149
|
name: "bodyCell",
|
|
144
|
-
fn:
|
|
145
|
-
t.tableConfig.getCellComponentRegistry().getRegisteredComponents().has(a.cellType) ? (
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
fn: l(({ column: a, record: c }) => [
|
|
151
|
+
t.tableConfig.getCellComponentRegistry().getRegisteredComponents().has(a.cellType) ? (n(), h(Ce(
|
|
152
|
+
t.tableConfig.getCellComponentRegistry().getRegisteredComponents().get(a.cellType)
|
|
153
|
+
), Te(we({ key: 0 }, { ...de(a, c), data: c[a.path] })), null, 16)) : a.cellType === y(A).Text ? (n(), p("div", {
|
|
154
|
+
key: 1,
|
|
155
|
+
ref: "tooltipTarget",
|
|
156
|
+
class: "ellipsis-cell",
|
|
157
|
+
onMouseenter: X
|
|
158
|
+
}, [
|
|
159
|
+
f(y(Le), { title: k.value }, {
|
|
160
|
+
default: l(() => [
|
|
161
|
+
be("span", null, m(c[a.path]), 1)
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, 1032, ["title"])
|
|
165
|
+
], 544)) : a.cellType === y(A).ACTION ? (n(), p("span", De, [
|
|
166
|
+
(n(!0), p(T, null, F(t.dataSource.getRowActions(c), (v, Se) => (n(), p(T, {
|
|
167
|
+
key: v.actionName
|
|
148
168
|
}, [
|
|
149
|
-
|
|
169
|
+
f(s, {
|
|
150
170
|
type: "link",
|
|
151
|
-
onClick:
|
|
171
|
+
onClick: Ae((Me) => v.handler(c), ["stop"])
|
|
152
172
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
|
|
173
|
+
default: l(() => [
|
|
174
|
+
w(m(v.actionName), 1)
|
|
155
175
|
]),
|
|
156
176
|
_: 2
|
|
157
177
|
}, 1032, ["onClick"]),
|
|
158
|
-
|
|
159
|
-
t.dataSource.getRowActions(
|
|
160
|
-
|
|
161
|
-
) ? (
|
|
178
|
+
ie(
|
|
179
|
+
t.dataSource.getRowActions(c).length,
|
|
180
|
+
Se
|
|
181
|
+
) ? (n(), h(g, {
|
|
162
182
|
key: 0,
|
|
163
183
|
type: "vertical"
|
|
164
|
-
})) :
|
|
184
|
+
})) : C("", !0)
|
|
165
185
|
], 64))), 128))
|
|
166
|
-
])) :
|
|
186
|
+
])) : C("", !0)
|
|
167
187
|
]),
|
|
168
188
|
key: "1"
|
|
169
189
|
} : void 0,
|
|
170
|
-
|
|
190
|
+
N.value ? {
|
|
171
191
|
name: "expandedRowRender",
|
|
172
|
-
fn:
|
|
173
|
-
|
|
192
|
+
fn: l(({ record: a }) => [
|
|
193
|
+
ke(e.$slots, "expandedRowRender", {
|
|
174
194
|
row: a
|
|
175
195
|
}, void 0, !0)
|
|
176
196
|
]),
|
|
@@ -178,23 +198,23 @@ const Oe = { key: 0 }, xe = { key: 1 }, Ne = { key: 2 }, ze = /* @__PURE__ */ Se
|
|
|
178
198
|
} : void 0,
|
|
179
199
|
Q.value ? {
|
|
180
200
|
name: "summary",
|
|
181
|
-
fn:
|
|
182
|
-
|
|
183
|
-
default:
|
|
184
|
-
|
|
185
|
-
default:
|
|
186
|
-
|
|
201
|
+
fn: l(() => [
|
|
202
|
+
f(me, null, {
|
|
203
|
+
default: l(() => [
|
|
204
|
+
f($, null, {
|
|
205
|
+
default: l(() => [
|
|
206
|
+
w(m(S.value.summaryTitle), 1)
|
|
187
207
|
]),
|
|
188
208
|
_: 1
|
|
189
209
|
}),
|
|
190
|
-
(
|
|
191
|
-
key:
|
|
210
|
+
(n(!0), p(T, null, F(S.value.summaryItems, (a, c) => (n(), h($, {
|
|
211
|
+
key: c,
|
|
192
212
|
align: a.align
|
|
193
213
|
}, {
|
|
194
|
-
default:
|
|
195
|
-
|
|
196
|
-
default:
|
|
197
|
-
|
|
214
|
+
default: l(() => [
|
|
215
|
+
f(pe, null, {
|
|
216
|
+
default: l(() => [
|
|
217
|
+
w(m(a.data), 1)
|
|
198
218
|
]),
|
|
199
219
|
_: 2
|
|
200
220
|
}, 1024)
|
|
@@ -212,5 +232,5 @@ const Oe = { key: 0 }, xe = { key: 1 }, Ne = { key: 2 }, ze = /* @__PURE__ */ Se
|
|
|
212
232
|
}
|
|
213
233
|
});
|
|
214
234
|
export {
|
|
215
|
-
|
|
235
|
+
Ue as default
|
|
216
236
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "./SarafTradeDateCell.vue.es2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
4
|
-
const f = /* @__PURE__ */ o(a, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ o(a, [["__scopeId", "data-v-964bffe7"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, createElementBlock as n, openBlock as i, createVNode as l, createElementVNode as t, unref as _, toDisplayString as r } from "vue";
|
|
2
|
+
import D from "../icons/SarafArrowIcon.vue.es.js";
|
|
3
|
+
const u = { class: "saraf-trade-date-cell-container" }, p = { class: "date-info" }, f = { class: "date" }, m = { class: "time" }, h = { class: "date-info" }, x = { class: "date" }, q = { class: "time" }, S = /* @__PURE__ */ c({
|
|
4
4
|
__name: "SarafTradeDateCell",
|
|
5
5
|
props: {
|
|
6
6
|
tradeDate: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
setup(o) {
|
|
9
|
+
const e = o;
|
|
10
|
+
function a(d, s) {
|
|
11
|
+
return s === 0 || !s ? "-" : d;
|
|
12
|
+
}
|
|
13
|
+
return (d, s) => (i(), n("div", u, [
|
|
14
|
+
l(_(D)),
|
|
15
|
+
t("div", null, [
|
|
16
|
+
t("div", p, [
|
|
17
|
+
t("p", f, r(a(e.tradeDate.requestedDateInJalali, e.tradeDate.requestedDate)), 1),
|
|
18
|
+
t("p", m, r(a(e.tradeDate.requestedTime, e.tradeDate.requestedDate)), 1)
|
|
16
19
|
]),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
t("div", h, [
|
|
21
|
+
t("p", x, r(a(e.tradeDate.executedDateInJalali, e.tradeDate.executedDate)), 1),
|
|
22
|
+
t("p", q, r(a(e.tradeDate.executedDateTime, e.tradeDate.executedDate)), 1)
|
|
20
23
|
])
|
|
21
24
|
])
|
|
22
25
|
]));
|
|
@@ -6,5 +6,6 @@ export { SarafTab } from './tab/model/SarafTab';
|
|
|
6
6
|
export { default as SarafChart } from './chart/SarafChart.vue';
|
|
7
7
|
export { AreaChartDataSource } from './chart/model/AreaChartDataSource';
|
|
8
8
|
export { DonutChartDataSource } from './chart/model/DonutChartDataSource';
|
|
9
|
-
export { ChartType, RawChartDataPoint, ChartSettings, ChartSeries
|
|
9
|
+
export { ChartType, RawChartDataPoint, ChartSettings, ChartSeries } from './chart/model/ChartTypes';
|
|
10
10
|
export { TooltipDirective } from './tooltip/model/tooltipDirective';
|
|
11
|
+
export { default as SarafTooltip } from './tooltip/SarafTooltip.vue';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TooltipPlacement } from './model/Constants.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
placement?: TooltipPlacement.Top | TooltipPlacement.Left | TooltipPlacement.Right | TooltipPlacement.Bottom | TooltipPlacement.TopLeft | TooltipPlacement.TopRight | TooltipPlacement.BottomLeft | TooltipPlacement.BottomRight;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
placement: TooltipPlacement.Top | TooltipPlacement.Left | TooltipPlacement.Right | TooltipPlacement.Bottom | TooltipPlacement.TopLeft | TooltipPlacement.TopRight | TooltipPlacement.BottomLeft | TooltipPlacement.BottomRight;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as n, resolveComponent as p, createBlock as a, openBlock as r, withCtx as c, renderSlot as m } from "vue";
|
|
2
|
+
import { TooltipPlacement as i } from "./model/Constants.es.js";
|
|
3
|
+
const u = /* @__PURE__ */ n({
|
|
4
|
+
__name: "SarafTooltip",
|
|
5
|
+
props: {
|
|
6
|
+
title: {},
|
|
7
|
+
placement: { default: i.BottomRight }
|
|
8
|
+
},
|
|
9
|
+
setup(e) {
|
|
10
|
+
const t = e;
|
|
11
|
+
return (o, s) => {
|
|
12
|
+
const l = p("a-tooltip");
|
|
13
|
+
return r(), a(l, {
|
|
14
|
+
title: t.title,
|
|
15
|
+
placement: t.placement
|
|
16
|
+
}, {
|
|
17
|
+
default: c(() => [
|
|
18
|
+
m(o.$slots, "default")
|
|
19
|
+
]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 8, ["title", "placement"]);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
u as default
|
|
27
|
+
};
|