@fctc/widget-logic 1.7.9 → 1.8.1

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/hooks.js CHANGED
@@ -534,7 +534,6 @@ var useAuth = () => {
534
534
  },
535
535
  {
536
536
  onSuccess: (res) => {
537
- setAccessToken(res.access_token);
538
537
  },
539
538
  onError: (err) => {
540
539
  }
package/dist/hooks.mjs CHANGED
@@ -507,7 +507,6 @@ var useAuth = () => {
507
507
  },
508
508
  {
509
509
  onSuccess: (res) => {
510
- setAccessToken(res.access_token);
511
510
  },
512
511
  onError: (err) => {
513
512
  }
package/dist/icons.d.mts CHANGED
@@ -8,4 +8,20 @@ declare const CloseIcon: ({ className }: {
8
8
  className?: string;
9
9
  }) => react_jsx_runtime.JSX.Element;
10
10
 
11
- export { CloseIcon, EyeIcon, LoadingIcon };
11
+ declare const FilterIcon: ({ className }: {
12
+ className?: string;
13
+ }) => react_jsx_runtime.JSX.Element;
14
+
15
+ declare const CheckIcon: () => react_jsx_runtime.JSX.Element;
16
+
17
+ declare const GroupByIcon: ({ className }: {
18
+ className?: string;
19
+ }) => react_jsx_runtime.JSX.Element;
20
+
21
+ declare const SearchIcon: () => react_jsx_runtime.JSX.Element;
22
+
23
+ declare const ChevronBottomIcon: ({ className, }: {
24
+ className?: string;
25
+ }) => react_jsx_runtime.JSX.Element;
26
+
27
+ export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon };
package/dist/icons.d.ts CHANGED
@@ -8,4 +8,20 @@ declare const CloseIcon: ({ className }: {
8
8
  className?: string;
9
9
  }) => react_jsx_runtime.JSX.Element;
10
10
 
11
- export { CloseIcon, EyeIcon, LoadingIcon };
11
+ declare const FilterIcon: ({ className }: {
12
+ className?: string;
13
+ }) => react_jsx_runtime.JSX.Element;
14
+
15
+ declare const CheckIcon: () => react_jsx_runtime.JSX.Element;
16
+
17
+ declare const GroupByIcon: ({ className }: {
18
+ className?: string;
19
+ }) => react_jsx_runtime.JSX.Element;
20
+
21
+ declare const SearchIcon: () => react_jsx_runtime.JSX.Element;
22
+
23
+ declare const ChevronBottomIcon: ({ className, }: {
24
+ className?: string;
25
+ }) => react_jsx_runtime.JSX.Element;
26
+
27
+ export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon };
package/dist/icons.js CHANGED
@@ -20,9 +20,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/icons.ts
21
21
  var icons_exports = {};
22
22
  __export(icons_exports, {
23
+ CheckIcon: () => CheckIcon,
24
+ ChevronBottomIcon: () => ChevronBottomIcon,
23
25
  CloseIcon: () => CloseIcon,
24
26
  EyeIcon: () => EyeIcon,
25
- LoadingIcon: () => LoadingIcon
27
+ FilterIcon: () => FilterIcon,
28
+ GroupByIcon: () => GroupByIcon,
29
+ LoadingIcon: () => LoadingIcon,
30
+ SearchIcon: () => SearchIcon
26
31
  });
27
32
  module.exports = __toCommonJS(icons_exports);
28
33
 
@@ -131,9 +136,138 @@ var CloseIcon = ({ className = "" }) => {
131
136
  }
132
137
  );
133
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
+ };
134
263
  // Annotate the CommonJS export names for ESM import in node:
135
264
  0 && (module.exports = {
265
+ CheckIcon,
266
+ ChevronBottomIcon,
136
267
  CloseIcon,
137
268
  EyeIcon,
138
- LoadingIcon
269
+ FilterIcon,
270
+ GroupByIcon,
271
+ LoadingIcon,
272
+ SearchIcon
139
273
  });
package/dist/icons.mjs CHANGED
@@ -103,8 +103,137 @@ var CloseIcon = ({ className = "" }) => {
103
103
  }
104
104
  );
105
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
+ };
106
230
  export {
231
+ CheckIcon,
232
+ ChevronBottomIcon,
107
233
  CloseIcon,
108
234
  EyeIcon,
109
- LoadingIcon
235
+ FilterIcon,
236
+ GroupByIcon,
237
+ LoadingIcon,
238
+ SearchIcon
110
239
  };
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
2
2
  export * from '@fctc/interface-logic/hooks';
3
3
  export * from '@fctc/interface-logic/configs';
4
- export { CloseIcon, EyeIcon, LoadingIcon } from './icons.mjs';
5
- export { ISelctionStateProps, ITableBodyProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController } from './widget.mjs';
4
+ export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon } from './icons.mjs';
5
+ export { ISelctionStateProps, ITableBodyProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController } from './widget.mjs';
6
6
  export * from '@fctc/interface-logic/types';
7
7
  export { IInputFieldProps, ValuePropsType } from './types.mjs';
8
8
  export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.mjs';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
2
2
  export * from '@fctc/interface-logic/hooks';
3
3
  export * from '@fctc/interface-logic/configs';
4
- export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
5
- export { ISelctionStateProps, ITableBodyProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController } from './widget.js';
4
+ export { CheckIcon, ChevronBottomIcon, CloseIcon, EyeIcon, FilterIcon, GroupByIcon, LoadingIcon, SearchIcon } from './icons.js';
5
+ export { ISelctionStateProps, ITableBodyProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController } from './widget.js';
6
6
  export * from '@fctc/interface-logic/types';
7
7
  export { IInputFieldProps, ValuePropsType } from './types.js';
8
8
  export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.js';