@fctc/widget-logic 5.3.7-beta.0 → 5.3.7
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/config.d.mts +1 -0
- package/dist/config.d.ts +1 -0
- package/dist/hooks.d.mts +16 -9
- package/dist/hooks.d.ts +16 -9
- package/dist/hooks.js +166 -355
- package/dist/hooks.mjs +156 -335
- package/dist/icons.d.mts +27 -0
- package/dist/icons.d.ts +27 -0
- package/dist/icons.js +273 -0
- package/dist/icons.mjs +239 -0
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +4727 -609
- package/dist/index.mjs +4609 -472
- package/dist/store.d.mts +1 -0
- package/dist/store.d.ts +1 -0
- package/dist/store.js +24 -0
- package/dist/store.mjs +2 -0
- package/dist/utils.d.mts +8 -5
- package/dist/utils.d.ts +8 -5
- package/dist/utils.js +104 -326
- package/dist/utils.mjs +101 -313
- package/dist/widget.d.mts +6 -10
- package/dist/widget.d.ts +6 -10
- package/dist/widget.js +4367 -531
- package/dist/widget.mjs +4291 -436
- package/package.json +37 -14
package/dist/icons.js
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/icons.ts
|
|
21
|
+
var icons_exports = {};
|
|
22
|
+
__export(icons_exports, {
|
|
23
|
+
CheckIcon: () => CheckIcon,
|
|
24
|
+
ChevronBottomIcon: () => ChevronBottomIcon,
|
|
25
|
+
CloseIcon: () => CloseIcon,
|
|
26
|
+
EyeIcon: () => EyeIcon,
|
|
27
|
+
FilterIcon: () => FilterIcon,
|
|
28
|
+
GroupByIcon: () => GroupByIcon,
|
|
29
|
+
LoadingIcon: () => LoadingIcon,
|
|
30
|
+
SearchIcon: () => SearchIcon
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(icons_exports);
|
|
33
|
+
|
|
34
|
+
// src/icons/eye-icon.tsx
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var EyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
37
|
+
"svg",
|
|
38
|
+
{
|
|
39
|
+
width: "20",
|
|
40
|
+
height: "21",
|
|
41
|
+
viewBox: "0 0 20 21",
|
|
42
|
+
fill: "none",
|
|
43
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
+
"path",
|
|
47
|
+
{
|
|
48
|
+
d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
|
|
49
|
+
stroke: "#ABACAE",
|
|
50
|
+
strokeWidth: "1.5"
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
"path",
|
|
55
|
+
{
|
|
56
|
+
d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
|
|
57
|
+
stroke: "#ABACAE",
|
|
58
|
+
strokeWidth: "1.5"
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
// src/icons/loading-icon.tsx
|
|
66
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
67
|
+
var LoadingIcon = ({
|
|
68
|
+
width = 15,
|
|
69
|
+
height = 15,
|
|
70
|
+
...props
|
|
71
|
+
}) => {
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
73
|
+
"svg",
|
|
74
|
+
{
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
76
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
77
|
+
viewBox: "0 0 100 100",
|
|
78
|
+
preserveAspectRatio: "xMidYMid",
|
|
79
|
+
width,
|
|
80
|
+
height,
|
|
81
|
+
style: {
|
|
82
|
+
shapeRendering: "auto",
|
|
83
|
+
display: "block",
|
|
84
|
+
background: "transparent"
|
|
85
|
+
},
|
|
86
|
+
...props,
|
|
87
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("g", { children: [
|
|
88
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
89
|
+
"circle",
|
|
90
|
+
{
|
|
91
|
+
strokeDasharray: "141.37166941154067 49.12388980384689",
|
|
92
|
+
r: "30",
|
|
93
|
+
strokeWidth: "10",
|
|
94
|
+
stroke: "currentColor",
|
|
95
|
+
fill: "none",
|
|
96
|
+
cy: "50",
|
|
97
|
+
cx: "50",
|
|
98
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
99
|
+
"animateTransform",
|
|
100
|
+
{
|
|
101
|
+
keyTimes: "0;1",
|
|
102
|
+
values: "0 50 50;360 50 50",
|
|
103
|
+
dur: "0.5050505050505051s",
|
|
104
|
+
repeatCount: "indefinite",
|
|
105
|
+
type: "rotate",
|
|
106
|
+
attributeName: "transform"
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("g", {})
|
|
112
|
+
] })
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// src/icons/close-icon.tsx
|
|
118
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
119
|
+
var CloseIcon = ({ className = "" }) => {
|
|
120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
121
|
+
"svg",
|
|
122
|
+
{
|
|
123
|
+
width: "24",
|
|
124
|
+
height: "24",
|
|
125
|
+
viewBox: "0 0 24 24",
|
|
126
|
+
fill: "none",
|
|
127
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
128
|
+
className,
|
|
129
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
130
|
+
"path",
|
|
131
|
+
{
|
|
132
|
+
d: "M12.0001 10.7275L16.4551 6.27246L17.7277 7.54506L13.2727 12.0001L17.7277 16.4551L16.4551 17.7277L12.0001 13.2727L7.54506 17.7277L6.27246 16.4551L10.7275 12.0001L6.27246 7.54506L7.54506 6.27246L12.0001 10.7275Z",
|
|
133
|
+
fill: "#A4A4A4"
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/icons/filter-icon.tsx
|
|
141
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
142
|
+
var FilterIcon = ({ className }) => {
|
|
143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
144
|
+
"svg",
|
|
145
|
+
{
|
|
146
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
147
|
+
width: "16",
|
|
148
|
+
height: "16",
|
|
149
|
+
viewBox: "0 0 24 24",
|
|
150
|
+
fill: "none",
|
|
151
|
+
stroke: "currentColor",
|
|
152
|
+
strokeWidth: "2",
|
|
153
|
+
strokeLinecap: "round",
|
|
154
|
+
strokeLinejoin: "round",
|
|
155
|
+
className: `${className} h-4 w-4`,
|
|
156
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" })
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
// src/icons/check-icon.tsx
|
|
162
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
163
|
+
var CheckIcon = () => {
|
|
164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
165
|
+
"svg",
|
|
166
|
+
{
|
|
167
|
+
stroke: "currentColor",
|
|
168
|
+
fill: "currentColor",
|
|
169
|
+
strokeWidth: "0",
|
|
170
|
+
viewBox: "0 0 512 512",
|
|
171
|
+
height: "1em",
|
|
172
|
+
width: "1em",
|
|
173
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
174
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// src/icons/groupby-icon.tsx
|
|
180
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
181
|
+
var GroupByIcon = ({ className }) => {
|
|
182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
183
|
+
"svg",
|
|
184
|
+
{
|
|
185
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
186
|
+
width: "16",
|
|
187
|
+
height: "16",
|
|
188
|
+
viewBox: "0 0 24 24",
|
|
189
|
+
fill: "none",
|
|
190
|
+
stroke: "currentColor",
|
|
191
|
+
strokeWidth: "2",
|
|
192
|
+
strokeLinecap: "round",
|
|
193
|
+
strokeLinejoin: "round",
|
|
194
|
+
className: `${className} h-4 w-4`,
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("polygon", { points: "12 2 2 7 12 12 22 7 12 2" }),
|
|
197
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("polyline", { points: "2 17 12 22 22 17" }),
|
|
198
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("polyline", { points: "2 12 12 17 22 12" })
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// src/icons/search-icon.tsx
|
|
205
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
206
|
+
var SearchIcon = () => {
|
|
207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
208
|
+
"svg",
|
|
209
|
+
{
|
|
210
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
211
|
+
width: "20",
|
|
212
|
+
height: "20",
|
|
213
|
+
viewBox: "0 0 20 20",
|
|
214
|
+
fill: "none",
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
217
|
+
"path",
|
|
218
|
+
{
|
|
219
|
+
d: "M9.58334 18.1248C4.875 18.1248 1.04167 14.2915 1.04167 9.58317C1.04167 4.87484 4.875 1.0415 9.58334 1.0415C14.2917 1.0415 18.125 4.87484 18.125 9.58317C18.125 14.2915 14.2917 18.1248 9.58334 18.1248ZM9.58334 2.2915C5.55834 2.2915 2.29167 5.5665 2.29167 9.58317C2.29167 13.5998 5.55834 16.8748 9.58334 16.8748C13.6083 16.8748 16.875 13.5998 16.875 9.58317C16.875 5.5665 13.6083 2.2915 9.58334 2.2915Z",
|
|
220
|
+
fill: "#525252"
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
224
|
+
"path",
|
|
225
|
+
{
|
|
226
|
+
d: "M18.3333 18.9585C18.175 18.9585 18.0167 18.9002 17.8917 18.7752L16.225 17.1085C15.9833 16.8669 15.9833 16.4669 16.225 16.2252C16.4667 15.9835 16.8667 15.9835 17.1083 16.2252L18.775 17.8919C19.0167 18.1335 19.0167 18.5335 18.775 18.7752C18.65 18.9002 18.4917 18.9585 18.3333 18.9585Z",
|
|
227
|
+
fill: "#525252"
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// src/icons/chevron-bottom-icon.tsx
|
|
236
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
237
|
+
var ChevronBottomIcon = ({
|
|
238
|
+
className = ""
|
|
239
|
+
}) => {
|
|
240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
241
|
+
"svg",
|
|
242
|
+
{
|
|
243
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
244
|
+
width: "20",
|
|
245
|
+
height: "20",
|
|
246
|
+
viewBox: "0 0 20 20",
|
|
247
|
+
fill: "none",
|
|
248
|
+
className,
|
|
249
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
250
|
+
"path",
|
|
251
|
+
{
|
|
252
|
+
d: "M14 8L10.7071 11.6745C10.3182 12.1085 9.68182 12.1085 9.29293 11.6745L6 8",
|
|
253
|
+
stroke: "#525252",
|
|
254
|
+
strokeWidth: "1.5",
|
|
255
|
+
strokeMiterlimit: "10",
|
|
256
|
+
strokeLinecap: "round",
|
|
257
|
+
strokeLinejoin: "round"
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
}
|
|
261
|
+
);
|
|
262
|
+
};
|
|
263
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
264
|
+
0 && (module.exports = {
|
|
265
|
+
CheckIcon,
|
|
266
|
+
ChevronBottomIcon,
|
|
267
|
+
CloseIcon,
|
|
268
|
+
EyeIcon,
|
|
269
|
+
FilterIcon,
|
|
270
|
+
GroupByIcon,
|
|
271
|
+
LoadingIcon,
|
|
272
|
+
SearchIcon
|
|
273
|
+
});
|
package/dist/icons.mjs
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
// src/icons/eye-icon.tsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var EyeIcon = () => /* @__PURE__ */ jsxs(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: "20",
|
|
7
|
+
height: "21",
|
|
8
|
+
viewBox: "0 0 20 21",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
|
|
16
|
+
stroke: "#ABACAE",
|
|
17
|
+
strokeWidth: "1.5"
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ jsx(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
|
|
24
|
+
stroke: "#ABACAE",
|
|
25
|
+
strokeWidth: "1.5"
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
// src/icons/loading-icon.tsx
|
|
33
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
34
|
+
var LoadingIcon = ({
|
|
35
|
+
width = 15,
|
|
36
|
+
height = 15,
|
|
37
|
+
...props
|
|
38
|
+
}) => {
|
|
39
|
+
return /* @__PURE__ */ jsx2(
|
|
40
|
+
"svg",
|
|
41
|
+
{
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
44
|
+
viewBox: "0 0 100 100",
|
|
45
|
+
preserveAspectRatio: "xMidYMid",
|
|
46
|
+
width,
|
|
47
|
+
height,
|
|
48
|
+
style: {
|
|
49
|
+
shapeRendering: "auto",
|
|
50
|
+
display: "block",
|
|
51
|
+
background: "transparent"
|
|
52
|
+
},
|
|
53
|
+
...props,
|
|
54
|
+
children: /* @__PURE__ */ jsxs2("g", { children: [
|
|
55
|
+
/* @__PURE__ */ jsx2(
|
|
56
|
+
"circle",
|
|
57
|
+
{
|
|
58
|
+
strokeDasharray: "141.37166941154067 49.12388980384689",
|
|
59
|
+
r: "30",
|
|
60
|
+
strokeWidth: "10",
|
|
61
|
+
stroke: "currentColor",
|
|
62
|
+
fill: "none",
|
|
63
|
+
cy: "50",
|
|
64
|
+
cx: "50",
|
|
65
|
+
children: /* @__PURE__ */ jsx2(
|
|
66
|
+
"animateTransform",
|
|
67
|
+
{
|
|
68
|
+
keyTimes: "0;1",
|
|
69
|
+
values: "0 50 50;360 50 50",
|
|
70
|
+
dur: "0.5050505050505051s",
|
|
71
|
+
repeatCount: "indefinite",
|
|
72
|
+
type: "rotate",
|
|
73
|
+
attributeName: "transform"
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ jsx2("g", {})
|
|
79
|
+
] })
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// src/icons/close-icon.tsx
|
|
85
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
86
|
+
var CloseIcon = ({ className = "" }) => {
|
|
87
|
+
return /* @__PURE__ */ jsx3(
|
|
88
|
+
"svg",
|
|
89
|
+
{
|
|
90
|
+
width: "24",
|
|
91
|
+
height: "24",
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
fill: "none",
|
|
94
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
95
|
+
className,
|
|
96
|
+
children: /* @__PURE__ */ jsx3(
|
|
97
|
+
"path",
|
|
98
|
+
{
|
|
99
|
+
d: "M12.0001 10.7275L16.4551 6.27246L17.7277 7.54506L13.2727 12.0001L17.7277 16.4551L16.4551 17.7277L12.0001 13.2727L7.54506 17.7277L6.27246 16.4551L10.7275 12.0001L6.27246 7.54506L7.54506 6.27246L12.0001 10.7275Z",
|
|
100
|
+
fill: "#A4A4A4"
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// src/icons/filter-icon.tsx
|
|
108
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
109
|
+
var FilterIcon = ({ className }) => {
|
|
110
|
+
return /* @__PURE__ */ jsx4(
|
|
111
|
+
"svg",
|
|
112
|
+
{
|
|
113
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
114
|
+
width: "16",
|
|
115
|
+
height: "16",
|
|
116
|
+
viewBox: "0 0 24 24",
|
|
117
|
+
fill: "none",
|
|
118
|
+
stroke: "currentColor",
|
|
119
|
+
strokeWidth: "2",
|
|
120
|
+
strokeLinecap: "round",
|
|
121
|
+
strokeLinejoin: "round",
|
|
122
|
+
className: `${className} h-4 w-4`,
|
|
123
|
+
children: /* @__PURE__ */ jsx4("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" })
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
// src/icons/check-icon.tsx
|
|
129
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
130
|
+
var CheckIcon = () => {
|
|
131
|
+
return /* @__PURE__ */ jsx5(
|
|
132
|
+
"svg",
|
|
133
|
+
{
|
|
134
|
+
stroke: "currentColor",
|
|
135
|
+
fill: "currentColor",
|
|
136
|
+
strokeWidth: "0",
|
|
137
|
+
viewBox: "0 0 512 512",
|
|
138
|
+
height: "1em",
|
|
139
|
+
width: "1em",
|
|
140
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
141
|
+
children: /* @__PURE__ */ jsx5("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// src/icons/groupby-icon.tsx
|
|
147
|
+
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
148
|
+
var GroupByIcon = ({ className }) => {
|
|
149
|
+
return /* @__PURE__ */ jsxs3(
|
|
150
|
+
"svg",
|
|
151
|
+
{
|
|
152
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
153
|
+
width: "16",
|
|
154
|
+
height: "16",
|
|
155
|
+
viewBox: "0 0 24 24",
|
|
156
|
+
fill: "none",
|
|
157
|
+
stroke: "currentColor",
|
|
158
|
+
strokeWidth: "2",
|
|
159
|
+
strokeLinecap: "round",
|
|
160
|
+
strokeLinejoin: "round",
|
|
161
|
+
className: `${className} h-4 w-4`,
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ jsx6("polygon", { points: "12 2 2 7 12 12 22 7 12 2" }),
|
|
164
|
+
/* @__PURE__ */ jsx6("polyline", { points: "2 17 12 22 22 17" }),
|
|
165
|
+
/* @__PURE__ */ jsx6("polyline", { points: "2 12 12 17 22 12" })
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// src/icons/search-icon.tsx
|
|
172
|
+
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
173
|
+
var SearchIcon = () => {
|
|
174
|
+
return /* @__PURE__ */ jsxs4(
|
|
175
|
+
"svg",
|
|
176
|
+
{
|
|
177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
+
width: "20",
|
|
179
|
+
height: "20",
|
|
180
|
+
viewBox: "0 0 20 20",
|
|
181
|
+
fill: "none",
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ jsx7(
|
|
184
|
+
"path",
|
|
185
|
+
{
|
|
186
|
+
d: "M9.58334 18.1248C4.875 18.1248 1.04167 14.2915 1.04167 9.58317C1.04167 4.87484 4.875 1.0415 9.58334 1.0415C14.2917 1.0415 18.125 4.87484 18.125 9.58317C18.125 14.2915 14.2917 18.1248 9.58334 18.1248ZM9.58334 2.2915C5.55834 2.2915 2.29167 5.5665 2.29167 9.58317C2.29167 13.5998 5.55834 16.8748 9.58334 16.8748C13.6083 16.8748 16.875 13.5998 16.875 9.58317C16.875 5.5665 13.6083 2.2915 9.58334 2.2915Z",
|
|
187
|
+
fill: "#525252"
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ jsx7(
|
|
191
|
+
"path",
|
|
192
|
+
{
|
|
193
|
+
d: "M18.3333 18.9585C18.175 18.9585 18.0167 18.9002 17.8917 18.7752L16.225 17.1085C15.9833 16.8669 15.9833 16.4669 16.225 16.2252C16.4667 15.9835 16.8667 15.9835 17.1083 16.2252L18.775 17.8919C19.0167 18.1335 19.0167 18.5335 18.775 18.7752C18.65 18.9002 18.4917 18.9585 18.3333 18.9585Z",
|
|
194
|
+
fill: "#525252"
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
// src/icons/chevron-bottom-icon.tsx
|
|
203
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
204
|
+
var ChevronBottomIcon = ({
|
|
205
|
+
className = ""
|
|
206
|
+
}) => {
|
|
207
|
+
return /* @__PURE__ */ jsx8(
|
|
208
|
+
"svg",
|
|
209
|
+
{
|
|
210
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
211
|
+
width: "20",
|
|
212
|
+
height: "20",
|
|
213
|
+
viewBox: "0 0 20 20",
|
|
214
|
+
fill: "none",
|
|
215
|
+
className,
|
|
216
|
+
children: /* @__PURE__ */ jsx8(
|
|
217
|
+
"path",
|
|
218
|
+
{
|
|
219
|
+
d: "M14 8L10.7071 11.6745C10.3182 12.1085 9.68182 12.1085 9.29293 11.6745L6 8",
|
|
220
|
+
stroke: "#525252",
|
|
221
|
+
strokeWidth: "1.5",
|
|
222
|
+
strokeMiterlimit: "10",
|
|
223
|
+
strokeLinecap: "round",
|
|
224
|
+
strokeLinejoin: "round"
|
|
225
|
+
}
|
|
226
|
+
)
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
};
|
|
230
|
+
export {
|
|
231
|
+
CheckIcon,
|
|
232
|
+
ChevronBottomIcon,
|
|
233
|
+
CloseIcon,
|
|
234
|
+
EyeIcon,
|
|
235
|
+
FilterIcon,
|
|
236
|
+
GroupByIcon,
|
|
237
|
+
LoadingIcon,
|
|
238
|
+
SearchIcon
|
|
239
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPinCode, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
2
|
-
export { ActionResultType, AppProvider, CompanyTuple, ContextProfile, CurrentCompany, RecordMenu, UseMenuReturn, ViewResponse, useAppProvider, useCallAction, useCallActionType, useCompany, useCompanyType, useConfig, useConfigType, useDebounce, useDetail, useGetAction, useGetRowIds, useGetSpecification, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
|
|
1
|
+
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPinCode, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
2
|
+
export { ActionResultType, AppProvider, CompanyTuple, ContextProfile, CurrentCompany, RecordMenu, UseMenuReturn, ViewResponse, useAppProvider, useCallAction, useCallActionType, useClickOutside, useCompany, useCompanyType, useConfig, useConfigType, useDebounce, useDetail, useGetAction, useGetRowIds, useGetSpecification, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
|
|
3
3
|
export * from '@fctc/interface-logic/configs';
|
|
4
|
-
export {
|
|
4
|
+
export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon } from './icons.mjs';
|
|
5
|
+
export { ISelctionStateProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyBinaryController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController } from './widget.mjs';
|
|
5
6
|
export * from '@fctc/interface-logic/types';
|
|
6
7
|
export { IInputFieldProps, ValuePropsType } from './types.mjs';
|
|
7
|
-
export { STORAGES,
|
|
8
|
+
export { STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useStorageState } from './utils.mjs';
|
|
8
9
|
export * from '@fctc/interface-logic/utils';
|
|
10
|
+
export * from '@fctc/interface-logic/store';
|
|
9
11
|
export * from '@fctc/interface-logic/constants';
|
|
10
12
|
export * from '@fctc/interface-logic/environment';
|
|
11
13
|
export * from '@fctc/interface-logic/provider';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPinCode, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
2
|
-
export { ActionResultType, AppProvider, CompanyTuple, ContextProfile, CurrentCompany, RecordMenu, UseMenuReturn, ViewResponse, useAppProvider, useCallAction, useCallActionType, useCompany, useCompanyType, useConfig, useConfigType, useDebounce, useDetail, useGetAction, useGetRowIds, useGetSpecification, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
|
|
1
|
+
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPinCode, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
2
|
+
export { ActionResultType, AppProvider, CompanyTuple, ContextProfile, CurrentCompany, RecordMenu, UseMenuReturn, ViewResponse, useAppProvider, useCallAction, useCallActionType, useClickOutside, useCompany, useCompanyType, useConfig, useConfigType, useDebounce, useDetail, useGetAction, useGetRowIds, useGetSpecification, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
|
|
3
3
|
export * from '@fctc/interface-logic/configs';
|
|
4
|
-
export {
|
|
4
|
+
export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon } from './icons.js';
|
|
5
|
+
export { ISelctionStateProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyBinaryController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController } from './widget.js';
|
|
5
6
|
export * from '@fctc/interface-logic/types';
|
|
6
7
|
export { IInputFieldProps, ValuePropsType } from './types.js';
|
|
7
|
-
export { STORAGES,
|
|
8
|
+
export { STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useStorageState } from './utils.js';
|
|
8
9
|
export * from '@fctc/interface-logic/utils';
|
|
10
|
+
export * from '@fctc/interface-logic/store';
|
|
9
11
|
export * from '@fctc/interface-logic/constants';
|
|
10
12
|
export * from '@fctc/interface-logic/environment';
|
|
11
13
|
export * from '@fctc/interface-logic/provider';
|