@thefreshop/tb 1.0.1 → 1.0.3

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.
Files changed (58) hide show
  1. package/dist/cjs/index.d.ts +12 -4
  2. package/dist/cjs/index.js +376 -416
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/tbframe/index.d.ts +3 -3
  5. package/dist/cjs/tbframe/layout/bottom.d.ts +1 -1
  6. package/dist/cjs/tbframe/layout/frame.d.ts +3 -3
  7. package/dist/cjs/tbframe/layout/nav.d.ts +4 -3
  8. package/dist/cjs/tbframe/layout/top.d.ts +3 -3
  9. package/dist/cjs/tbframe/page/loginpage.d.ts +1 -1
  10. package/dist/cjs/tbframe/provider/provider.d.ts +2 -3
  11. package/dist/cjs/tbframe/provider/tbContext.d.ts +3 -0
  12. package/dist/cjs/tbpage/component/authTable.d.ts +1 -1
  13. package/dist/cjs/tbpage/component/modules/antBaseModalCreate/index.d.ts +3 -3
  14. package/dist/cjs/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +4 -4
  15. package/dist/cjs/tbpage/component/modules/antBaseTable/btn_widget.d.ts +4 -4
  16. package/dist/cjs/tbpage/component/modules/antBaseTable/index.d.ts +4 -4
  17. package/dist/cjs/tbpage/component/modules/antBaseTable/table_props.d.ts +5 -5
  18. package/dist/cjs/tbpage/component/modules/loading_layout.d.ts +2 -2
  19. package/dist/cjs/tbpage/component/modules/searchbox.d.ts +2 -2
  20. package/dist/cjs/tbpage/component/modules/util.d.ts +2 -2
  21. package/dist/cjs/tbpage/index.d.ts +0 -1
  22. package/dist/cjs/{tbframe/types → types}/index.d.ts +6 -4
  23. package/dist/cjs/{tbframe/types → types}/provider.types.d.ts +2 -2
  24. package/dist/esm/index.d.ts +12 -4
  25. package/dist/esm/index.js +376 -416
  26. package/dist/esm/index.js.map +1 -1
  27. package/dist/esm/tbframe/index.d.ts +3 -3
  28. package/dist/esm/tbframe/layout/bottom.d.ts +1 -1
  29. package/dist/esm/tbframe/layout/frame.d.ts +3 -3
  30. package/dist/esm/tbframe/layout/nav.d.ts +4 -3
  31. package/dist/esm/tbframe/layout/top.d.ts +3 -3
  32. package/dist/esm/tbframe/page/loginpage.d.ts +1 -1
  33. package/dist/esm/tbframe/provider/provider.d.ts +2 -3
  34. package/dist/esm/tbframe/provider/tbContext.d.ts +3 -0
  35. package/dist/esm/tbpage/component/authTable.d.ts +1 -1
  36. package/dist/esm/tbpage/component/modules/antBaseModalCreate/index.d.ts +3 -3
  37. package/dist/esm/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +4 -4
  38. package/dist/esm/tbpage/component/modules/antBaseTable/btn_widget.d.ts +4 -4
  39. package/dist/esm/tbpage/component/modules/antBaseTable/index.d.ts +4 -4
  40. package/dist/esm/tbpage/component/modules/antBaseTable/table_props.d.ts +5 -5
  41. package/dist/esm/tbpage/component/modules/loading_layout.d.ts +2 -2
  42. package/dist/esm/tbpage/component/modules/searchbox.d.ts +2 -2
  43. package/dist/esm/tbpage/component/modules/util.d.ts +2 -2
  44. package/dist/esm/tbpage/index.d.ts +0 -1
  45. package/dist/esm/{tbframe/types → types}/index.d.ts +6 -4
  46. package/dist/esm/{tbframe/types → types}/provider.types.d.ts +2 -2
  47. package/dist/index.d.ts +265 -0
  48. package/package.json +6 -5
  49. package/dist/cjs/tbpage/types/index.d.ts +0 -2
  50. package/dist/esm/tbpage/types/index.d.ts +0 -2
  51. /package/dist/cjs/{tbpage/types → types}/antBaseTable.types.d.ts +0 -0
  52. /package/dist/cjs/{tbpage/types → types}/searchbox.type.d.ts +0 -0
  53. /package/dist/cjs/{tbframe/types → types}/tbframe.types.d.ts +0 -0
  54. /package/dist/cjs/{tbframe/types → types}/user.types.d.ts +0 -0
  55. /package/dist/esm/{tbpage/types → types}/antBaseTable.types.d.ts +0 -0
  56. /package/dist/esm/{tbpage/types → types}/searchbox.type.d.ts +0 -0
  57. /package/dist/esm/{tbframe/types → types}/tbframe.types.d.ts +0 -0
  58. /package/dist/esm/{tbframe/types → types}/user.types.d.ts +0 -0
package/dist/cjs/index.js CHANGED
@@ -36,10 +36,11 @@ function _interopNamespaceDefault(e) {
36
36
 
37
37
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
38
38
 
39
+ const tbContext = React.createContext(undefined);
40
+
39
41
  // export const TbBase = createContext<TbBaseProviderType>({})
40
- const TbContext = React.createContext(undefined);
41
42
  const TbProvider = ({ children }) => {
42
- const [topkey, setTopkey] = React.useState('');
43
+ const [topkey, setTopkey] = React.useState("");
43
44
  const [currentTab, setCurrentTab] = React.useState();
44
45
  const [user, setloginUser] = React.useState();
45
46
  const [tabs, setTabs] = React.useState([]);
@@ -73,15 +74,15 @@ const TbProvider = ({ children }) => {
73
74
  if (user !== null) {
74
75
  if (startpage) {
75
76
  addTabs({
76
- title: 'HOME',
77
- key: 'HOME',
77
+ title: "HOME",
78
+ key: "HOME",
78
79
  page: startpage,
79
- noremove: true
80
+ noremove: true,
80
81
  });
81
82
  setCurrentTab({
82
- title: 'HOME',
83
- key: 'HOME',
84
- page: startpage
83
+ title: "HOME",
84
+ key: "HOME",
85
+ page: startpage,
85
86
  });
86
87
  }
87
88
  if (user?.user_group?.group_section_start) {
@@ -97,7 +98,7 @@ const TbProvider = ({ children }) => {
97
98
  setloginUser(undefined);
98
99
  setCurrentTab(undefined);
99
100
  setTabs([]);
100
- setTopkey('');
101
+ setTopkey("");
101
102
  if (force)
102
103
  window.location.reload();
103
104
  };
@@ -132,7 +133,7 @@ const TbProvider = ({ children }) => {
132
133
  addTabs(newtab);
133
134
  }
134
135
  };
135
- return (React.createElement(TbContext.Provider, { value: {
136
+ return (React.createElement(tbContext.Provider, { value: {
136
137
  topkey,
137
138
  setTopkey,
138
139
  tabs,
@@ -152,13 +153,13 @@ const TbProvider = ({ children }) => {
152
153
  setGlobalpages,
153
154
  addGlobalTabs,
154
155
  setMenupages,
155
- goTabs
156
+ goTabs,
156
157
  } }, children));
157
158
  };
158
159
  const useTbState = () => {
159
- const value = React.useContext(TbContext);
160
+ const value = React.useContext(tbContext);
160
161
  if (value === undefined) {
161
- throw new Error('useTopkeyState should be used within TbProvider');
162
+ throw new Error("useTopkeyState should be used within TbProvider");
162
163
  }
163
164
  return value;
164
165
  };
@@ -197,15 +198,15 @@ styleInject(css_248z$b);
197
198
  const topbase = {
198
199
  title: 'title'};
199
200
 
200
- var css_248z$a = ".top-module_topframe__LhKDg{align-items:center;border-bottom:1px solid #aaa;display:flex;height:80px;justify-content:left;text-align:center}.top-module_top_left__MBLyP{align-items:center;display:flex;gap:4px}.top-module_toplogo__lQMPi{background-color:#eee;height:70px}.top-module_top_menu__vOqqG{display:flex;flex-direction:row}.top-module_top_menu_item__pHknH{display:flex;flex-direction:column;width:120px}.top-module_top_menu_item_icon__-Ckvh{font-size:30px}.top-module_top_menu_item_text__SmZnj{font-size:20px}.top-module_menu_nomal__n4Rl-{color:#ccc}.top-module_menu_hover__KmK0A,.top-module_menu_select__w3Jdd{background-color:#fff;color:#333;cursor:pointer}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRvcC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRCQUdFLGtCQUFtQixDQUVuQiw0QkFBNkIsQ0FKN0IsWUFBYSxDQUdiLFdBQVksQ0FGWixvQkFBcUIsQ0FJckIsaUJBQ0YsQ0FFQSw0QkFHRSxrQkFBbUIsQ0FGbkIsWUFBYSxDQUNiLE9BRUYsQ0FFQSwyQkFFRSxxQkFBc0IsQ0FEdEIsV0FFRixDQUVBLDRCQUNFLFlBQWEsQ0FDYixrQkFDRixDQUNBLGlDQUNFLFlBQWEsQ0FDYixxQkFBc0IsQ0FDdEIsV0FDRixDQUVBLHNDQUNFLGNBQ0YsQ0FFQSxzQ0FDRSxjQUNGLENBRUEsOEJBQ0UsVUFDRixDQU9BLDZEQUNFLHFCQUFzQixDQUN0QixVQUFX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uZC1jb2xvcjogI2ZmZjtcclxuICBjb2xvcjogIzMzMztcclxuICBjdXJzb3I6IHBvaW50ZXI7XHJcbn1cclxuIl19 */";
201
+ var css_248z$a = ".top-module_topframe__LhKDg{align-items:center;border-bottom:1px solid #aaa;color:#ccc;display:flex;height:80px;justify-content:left;text-align:center}.top-module_top_left__MBLyP{align-items:center;color:#333;display:flex;gap:4px}.top-module_toplogo__lQMPi{background-color:#eee;height:70px}.top-module_top_menu__vOqqG{display:flex;flex-direction:row}.top-module_top_menu_item__pHknH{display:flex;flex-direction:column;width:120px}.top-module_top_menu_item_icon__-Ckvh{font-size:30px}.top-module_top_menu_item_text__SmZnj{font-size:20px}.top-module_menu_nomal__n4Rl-{color:#ccc}.top-module_menu_hover__KmK0A,.top-module_menu_select__w3Jdd{background-color:#fff;color:#333;cursor:pointer}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRvcC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRCQUdJLGtCQUFtQixDQUVuQiw0QkFBNkIsQ0FFN0IsVUFBVyxDQU5YLFlBQWEsQ0FHYixXQUFZLENBRlosb0JBQXFCLENBSXJCLGlCQUVKLENBRUEsNEJBR0ksa0JBQW1CLENBQ25CLFVBQVcsQ0FIWCxZQUFhLENBQ2IsT0FHSixDQUVBLDJCQUVJLHFCQUFzQixDQUR0QixXQUVKLENBRUEsNEJBQ0ksWUFBYSxDQUNiLGtCQUNKLENBQ0EsaUNBQ0ksWUFBYSxDQUNiLHFCQUFzQixDQUN0QixXQUNKLENBRUEsc0NBQ0ksY0FDSixDQUVBLHNDQUNJLGNBQ0osQ0FFQSw4QkFDSSxVQUNKLENBT0EsNkRBQ0kscUJBQXNCLENBQ3RCLFVBQVcsQ0FDWCxjQUNKIiwiZmlsZSI6InRvcC5tb2R1bGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnRvcGZyYW1lIHt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HtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBjb2xvcjogIzMzMztcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxufVxyXG4iXX0= */";
201
202
  var styles$8 = {"topframe":"top-module_topframe__LhKDg","top_left":"top-module_top_left__MBLyP","toplogo":"top-module_toplogo__lQMPi","top_menu":"top-module_top_menu__vOqqG","top_menu_item":"top-module_top_menu_item__pHknH","top_menu_item_icon":"top-module_top_menu_item_icon__-Ckvh","top_menu_item_text":"top-module_top_menu_item_text__SmZnj","menu_nomal":"top-module_menu_nomal__n4Rl-","menu_hover":"top-module_menu_hover__KmK0A"};
202
203
  styleInject(css_248z$a);
203
204
 
204
- const Top = ({ setting, top: { title = topbase.title, titleimage, topMenuSetting, menuStyle, imgstyle, titleStyle, topRight } }) => {
205
+ const Top = ({ setting, top: { title = topbase.title, titleimage, topMenuSetting, menuStyle, imgstyle, titleStyle, topRight }, }) => {
205
206
  const { logout, user, setCurrentTab, startpage } = useTbState();
206
207
  const userTop = () => {
207
208
  let topmenutable = [];
208
- if (user?.user_group?.group_key === 'master') {
209
+ if (user?.user_group?.group_key === "master" || setting.islogin === false) {
209
210
  topMenuSetting.forEach((m, index) => {
210
211
  topmenutable.push(React.createElement(TopMenu, { key: index, topMenuSetting: m, menuStyle: menuStyle }));
211
212
  });
@@ -221,21 +222,21 @@ const Top = ({ setting, top: { title = topbase.title, titleimage, topMenuSetting
221
222
  return topmenutable;
222
223
  };
223
224
  return (React.createElement("div", { className: styles$8.topframe },
224
- React.createElement("div", { className: styles$8.top_left, style: { cursor: 'pointer' }, onClick: () => {
225
+ React.createElement("div", { className: styles$8.top_left, style: { cursor: "pointer" }, onClick: () => {
225
226
  if (startpage)
226
227
  setCurrentTab({
227
- title: 'startpage',
228
- key: 'startpage',
229
- page: startpage
228
+ title: "startpage",
229
+ key: "startpage",
230
+ page: startpage,
230
231
  });
231
- console.log('home');
232
+ console.log("home");
232
233
  } },
233
- titleimage ? (React.createElement("img", { src: titleimage, className: styles$8.toplogo, alt: 'logo', style: imgstyle })) : null,
234
- React.createElement("div", { style: titleStyle }, title)),
234
+ titleimage ? React.createElement("img", { src: titleimage, className: styles$8.toplogo, alt: "logo", style: imgstyle }) : null,
235
+ React.createElement("div", { style: { padding: 10, fontWeight: "bold", ...titleStyle } }, title)),
235
236
  React.createElement("div", { className: styles$8.top_menu }, userTop()),
236
237
  topRight ? (topRight) : setting?.islogin && setting?.logoutComponent ? (setting?.logoutComponent) : (React.createElement("button", { onClick: () => logout() }, "\uB85C\uADF8\uC544\uC6C3"))));
237
238
  };
238
- const TopMenu = ({ topMenuSetting: { title, icon, key }, menuStyle }) => {
239
+ const TopMenu = ({ topMenuSetting: { title, icon, key }, menuStyle = {} }) => {
239
240
  const [hover, setHover] = React.useState(false);
240
241
  const { topkey, setTopkey } = useTbState();
241
242
  return (React.createElement("div", { className: `${styles$8.top_menu_item} ${hover ? styles$8.menu_hover : styles$8.menu_nomal}`, style: menuStyle.menuWidth ? { width: menuStyle.menuWidth } : {}, onMouseEnter: () => {
@@ -249,14 +250,15 @@ const TopMenu = ({ topMenuSetting: { title, icon, key }, menuStyle }) => {
249
250
  React.createElement("div", { className: `${styles$8.top_menu_item_text} ${topkey === key ? styles$8.menu_hover : styles$8.menu_nomal}`, style: menuStyle.fontSize ? { fontSize: menuStyle.fontSize } : {} }, title)));
250
251
  };
251
252
 
252
- const Nav = ({ nav: { menuSet, openIcon, closeIcon } }) => {
253
+ const Nav = ({ nav: { menuSet, openIcon, closeIcon }, islogin }) => {
253
254
  const { topkey, user } = useTbState();
254
255
  const currentMenu = menuSet.find((m) => m.parentkey === topkey);
255
256
  const userMenu = () => {
256
257
  let usermenutable = [];
257
- if (user?.user_group?.group_key === 'master') {
258
+ if (user?.user_group?.group_key === "master" || islogin === false) {
259
+ console.log(menuSet);
258
260
  currentMenu?.menuSetting.forEach((m, index) => {
259
- usermenutable.push(React.createElement(Menu, { key: index, menu_setting: m, openIcon: openIcon, closeIcon: closeIcon }));
261
+ usermenutable.push(React.createElement(Menu, { key: index, menu_setting: m, openIcon: openIcon, closeIcon: closeIcon, islogin: islogin }));
260
262
  });
261
263
  }
262
264
  else {
@@ -264,14 +266,14 @@ const Nav = ({ nav: { menuSet, openIcon, closeIcon } }) => {
264
266
  return user?.user_group?.group_menu_auth.includes(m.key);
265
267
  });
266
268
  userCurrentMenu?.forEach((m, index) => {
267
- usermenutable.push(React.createElement(Menu, { key: index, menu_setting: m, openIcon: openIcon, closeIcon: closeIcon }));
269
+ usermenutable.push(React.createElement(Menu, { key: index, menu_setting: m, openIcon: openIcon, closeIcon: closeIcon, islogin: islogin }));
268
270
  });
269
271
  }
270
272
  return usermenutable;
271
273
  };
272
274
  return React.createElement("div", { className: styles$9.naviFrame }, userMenu());
273
275
  };
274
- const Menu = ({ menu_setting: { title, icon, key, children, hasPage, page, defalultOpen }, openIcon, closeIcon }) => {
276
+ const Menu = ({ menu_setting: { title, icon, key, children, hasPage, page, defalultOpen }, openIcon, closeIcon, islogin, }) => {
275
277
  const [hover, setHover] = React.useState(false);
276
278
  const [subOpen, setSubOpen] = React.useState(false);
277
279
  const { addTabs, currentTab, user } = useTbState();
@@ -284,7 +286,7 @@ const Menu = ({ menu_setting: { title, icon, key, children, hasPage, page, defal
284
286
  }, [defalultOpen, setSubOpen]); //데이터 빈 화면 깜박임 방지
285
287
  const userSubMenu = () => {
286
288
  let usersubmenutable = [];
287
- if (user?.user_group?.group_key === 'master') {
289
+ if (user?.user_group?.group_key === "master" || islogin === false) {
288
290
  children?.forEach((m, index) => {
289
291
  usersubmenutable.push(React.createElement(SubMenu, { key: index, menu_setting: m }));
290
292
  });
@@ -300,11 +302,7 @@ const Menu = ({ menu_setting: { title, icon, key, children, hasPage, page, defal
300
302
  return usersubmenutable;
301
303
  };
302
304
  return (React.createElement("div", null,
303
- React.createElement("div", { className: `${styles$9.nav_item} ${currentTab?.key === key
304
- ? styles$9.menu_select
305
- : hover
306
- ? styles$9.menu_hover
307
- : styles$9.menu_nomal}`, onMouseEnter: () => {
305
+ React.createElement("div", { className: `${styles$9.nav_item} ${currentTab?.key === key ? styles$9.menu_select : hover ? styles$9.menu_hover : styles$9.menu_nomal}`, onMouseEnter: () => {
308
306
  setHover(true);
309
307
  }, onMouseLeave: () => {
310
308
  setHover(false);
@@ -314,24 +312,19 @@ const Menu = ({ menu_setting: { title, icon, key, children, hasPage, page, defal
314
312
  addTabs({
315
313
  title,
316
314
  key,
317
- page
315
+ page,
318
316
  });
319
317
  // console.log(tabs)
320
318
  } },
321
319
  React.createElement("div", { className: styles$9.nav_icon }, icon),
322
320
  React.createElement("div", { className: styles$9.nav_text }, title),
323
- React.createElement("div", { className: styles$9.nav_open }, children &&
324
- (subOpen ? React.createElement("div", null, openIcon) : React.createElement("div", null, closeIcon)))),
321
+ React.createElement("div", { className: styles$9.nav_open }, children && (subOpen ? React.createElement("div", null, openIcon) : React.createElement("div", null, closeIcon)))),
325
322
  children && subOpen && userSubMenu()));
326
323
  };
327
324
  const SubMenu = ({ menu_setting: { title, icon, key, page, hasPage } }) => {
328
325
  const [hover, setHover] = React.useState(false);
329
326
  const { addTabs, currentTab } = useTbState();
330
- return (React.createElement("div", { className: `${styles$9.sub_item} ${currentTab?.key === key
331
- ? styles$9.menu_select
332
- : hover
333
- ? styles$9.menu_hover
334
- : styles$9.menu_nomal}`, onMouseEnter: () => {
327
+ return (React.createElement("div", { className: `${styles$9.sub_item} ${currentTab?.key === key ? styles$9.menu_select : hover ? styles$9.menu_hover : styles$9.menu_nomal}`, onMouseEnter: () => {
335
328
  setHover(true);
336
329
  }, onMouseLeave: () => {
337
330
  setHover(false);
@@ -340,7 +333,7 @@ const SubMenu = ({ menu_setting: { title, icon, key, page, hasPage } }) => {
340
333
  addTabs({
341
334
  title,
342
335
  key,
343
- page
336
+ page,
344
337
  });
345
338
  // console.log(tabs)
346
339
  } },
@@ -411,7 +404,7 @@ const LoginPage = () => {
411
404
  const [isTypeCheck, setTypeCheck] = React.useState(true);
412
405
  const [editorValue, setEditorValue] = React.useState(JSON.stringify(defaultuser, null, 2));
413
406
  return (React.createElement("div", { className: styles$3.loginpage },
414
- React.createElement("div", { style: { display: 'flex' } },
407
+ React.createElement("div", { style: { display: "flex" } },
415
408
  React.createElement("button", { onClick: () => {
416
409
  setEditorValue(JSON.stringify(alluser, null, 2));
417
410
  setUser(alluser);
@@ -424,7 +417,7 @@ const LoginPage = () => {
424
417
  setEditorValue(JSON.stringify(defaultuser, null, 2));
425
418
  setUser(defaultuser);
426
419
  } }, "Test2")),
427
- React.createElement(Editor, { theme: 'vs-dark', width: 500, height: 500, defaultLanguage: 'json', value: editorValue, onChange: (value) => {
420
+ React.createElement(Editor, { theme: "vs-dark", width: 500, height: 500, defaultLanguage: "json", value: editorValue, onChange: (value) => {
428
421
  if (value !== undefined) {
429
422
  setEditorValue(value);
430
423
  try {
@@ -434,7 +427,7 @@ const LoginPage = () => {
434
427
  }
435
428
  catch (e) {
436
429
  setTypeCheck(false);
437
- console.log('JSON err');
430
+ console.log("JSON err");
438
431
  }
439
432
  }
440
433
  else
@@ -446,43 +439,43 @@ const LoginPage = () => {
446
439
  } }, "\uB85C\uADF8\uC778")));
447
440
  };
448
441
  const defaultuser = {
449
- user_id: 'defaultuser',
450
- user_name: '기본유저',
442
+ user_id: "defaultuser",
443
+ user_name: "기본유저",
451
444
  user_profile: {},
452
445
  user_group: {
453
446
  group_id: 0,
454
- group_key: 'master',
455
- group_name: '기본그룹',
456
- group_section_auth: ['top1', 'top2'],
457
- group_menu_auth: ['key1', 'sub1', 'key2']
458
- }
447
+ group_key: "master",
448
+ group_name: "기본그룹",
449
+ group_section_auth: ["top1", "top2"],
450
+ group_menu_auth: ["key1", "sub1", "key2"],
451
+ },
459
452
  };
460
453
  const alluser = {
461
- user_id: 'masteruser',
462
- user_name: '마스터유저',
454
+ user_id: "masteruser",
455
+ user_name: "마스터유저",
463
456
  user_profile: {},
464
457
  user_group: {
465
458
  group_id: 0,
466
- group_key: 'master',
467
- group_name: '마스터그룹',
468
- group_section_auth: 'all',
469
- group_menu_auth: 'all'
470
- }
459
+ group_key: "master",
460
+ group_name: "마스터그룹",
461
+ group_section_auth: "all",
462
+ group_menu_auth: "all",
463
+ },
471
464
  };
472
465
  const testuser = {
473
- user_id: 'testuser',
474
- user_name: '테스트유저',
466
+ user_id: "testuser",
467
+ user_name: "테스트유저",
475
468
  user_profile: {},
476
469
  user_group: {
477
470
  group_id: 0,
478
- group_key: 'master',
479
- group_name: '테스트그룹',
480
- group_section_auth: ['top1', 'top2', 'top3'],
481
- group_menu_auth: ['key1', 'sub1', 'key2', 'sub2']
482
- }
471
+ group_key: "master",
472
+ group_name: "테스트그룹",
473
+ group_section_auth: ["top1", "top2", "top3"],
474
+ group_menu_auth: ["key1", "sub1", "key2", "sub2"],
475
+ },
483
476
  };
484
477
 
485
- const TbFrame = ({ setting, top, bottom, nav, top_banner }) => {
478
+ const TbFrame = ({ setting, top, bottom, nav, top_banner, }) => {
486
479
  const { user, startpage, setStartpage, errMsg, isBanner, setIsBanner, setGlobalpages, setMenupages } = useTbState();
487
480
  React.useEffect(() => {
488
481
  if (setting.startpage) {
@@ -516,42 +509,40 @@ const TbFrame = ({ setting, top, bottom, nav, top_banner }) => {
516
509
  }, [top_banner]);
517
510
  const ErrWarning = () => {
518
511
  return (React.createElement("div", { style: {
519
- width: '100vw',
520
- height: '100vh',
521
- background: '#1A1C20FF',
522
- display: 'flex',
523
- justifyContent: 'center'
512
+ width: "100vw",
513
+ height: "100vh",
514
+ background: "#1A1C20FF",
515
+ display: "flex",
516
+ justifyContent: "center",
524
517
  } },
525
518
  React.createElement("div", { style: {
526
- marginTop: '100px',
527
- display: 'flex',
528
- flexDirection: 'column',
529
- height: '200px',
530
- width: ' 400px',
531
- border: '2px solid #6F5E5EFF',
532
- background: '#C2C2C2FF'
519
+ marginTop: "100px",
520
+ display: "flex",
521
+ flexDirection: "column",
522
+ height: "200px",
523
+ width: " 400px",
524
+ border: "2px solid #6F5E5EFF",
525
+ background: "#C2C2C2FF",
533
526
  } },
534
527
  React.createElement("div", { style: {
535
- marginTop: '10px',
536
- marginBottom: '20px',
528
+ marginTop: "10px",
529
+ marginBottom: "20px",
537
530
  fontSize: 24,
538
- textAlign: 'center'
539
- } }, errMsg?.notiTitle ? errMsg?.notiTitle : '오류가 발생하였습니다.'),
540
- React.createElement("div", { style: { textAlign: 'left', padding: '10px' } }, errMsg?.notimessage),
531
+ textAlign: "center",
532
+ } }, errMsg?.notiTitle ? errMsg?.notiTitle : "오류가 발생하였습니다."),
533
+ React.createElement("div", { style: { textAlign: "left", padding: "10px" } }, errMsg?.notimessage),
541
534
  React.createElement("div", { style: {
542
- textAlign: 'left',
543
- padding: '10px',
544
- color: '#760707FF',
545
- fontSize: '10px'
535
+ textAlign: "left",
536
+ padding: "10px",
537
+ color: "#760707FF",
538
+ fontSize: "10px",
546
539
  } }, errMsg?.err))));
547
540
  };
548
541
  return (React.createElement("div", { className: styles$9.main }, errMsg ? (errMsg.isPopup ? (React.createElement(ErrWarning, null)) : null) : setting?.islogin && !user ? (React.createElement(LOGIN, null)) : (React.createElement("div", { className: styles$9.mainframe },
549
542
  React.createElement(Top, { setting: setting, top: top }),
550
543
  isBanner && React.createElement(TOPBANNER, null),
551
- React.createElement("div", { className: styles$9.centerFrame, style: isBanner
552
- ? { height: 'calc(100vh - 120px)' }
553
- : { height: 'calc(100vh - 80px)' } },
554
- React.createElement(Nav, { nav: nav }),
544
+ React.createElement("div", { className: styles$9.centerFrame, style: isBanner ? { height: "calc(100vh - 120px)" } : { height: "calc(100vh - 80px)" } },
545
+ React.createElement(Nav, { nav: nav, islogin: setting.islogin ?? false }),
555
546
  React.createElement("div", { className: styles$9.contentsFrame },
556
547
  React.createElement(Tabs, null),
557
548
  React.createElement(Main, null))),
@@ -623,14 +614,8 @@ const FORM_CREATE = "등록";
623
614
 
624
615
  * @todo
625
616
  */
626
- const TableTopButtonGroup = ({ isSelect, onRefresh, isCounter, autoRefreshTime, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps }) => {
627
- if (!addProps &&
628
- !modifyProps &&
629
- !deleteProps &&
630
- !removeProps &&
631
- !resetProps &&
632
- !customProps &&
633
- !onRefresh) {
617
+ const TableTopButtonGroup = ({ isSelect, onRefresh, isCounter, autoRefreshTime, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps, }) => {
618
+ if (!addProps && !modifyProps && !deleteProps && !removeProps && !resetProps && !customProps && !onRefresh) {
634
619
  return null;
635
620
  }
636
621
  const [count, setCount] = React.useState(1); // 카운트다운 시작 값
@@ -653,10 +638,10 @@ const TableTopButtonGroup = ({ isSelect, onRefresh, isCounter, autoRefreshTime,
653
638
  }, 1000);
654
639
  return () => clearInterval(interval); // 정리
655
640
  }, [isCounter, autoRefreshTime]);
656
- return (React.createElement(antd.Row, { justify: 'space-between' },
641
+ return (React.createElement(antd.Row, { justify: "space-between" },
657
642
  React.createElement(antd.Col, { span: 8, style: {
658
- display: 'flex',
659
- justifyContent: 'left'
643
+ display: "flex",
644
+ justifyContent: "left",
660
645
  } },
661
646
  React.createElement(antd.Space, null,
662
647
  onRefresh !== undefined ? (autoRefreshTime && isCounter ? (React.createElement(antd.Button, { icon: React.createElement(icons.LoadingOutlined, null), onClick: () => {
@@ -665,24 +650,24 @@ const TableTopButtonGroup = ({ isSelect, onRefresh, isCounter, autoRefreshTime,
665
650
  } }, isCounter && autoRefreshTime - count + 1)) : (React.createElement(antd.Button, { icon: React.createElement(icons.ReloadOutlined, null), onClick: onRefresh }))) : null,
666
651
  customProps?.render && customProps?.render(),
667
652
  addProps ? (React.createElement(antd.Button, { disabled: addProps.disable, onClick: addProps.onFun }, addProps.title ? addProps.title : TABLE_CREATE)) : null,
668
- addProps && modifyProps && '|',
653
+ addProps && modifyProps && "|",
669
654
  modifyProps ? (React.createElement(antd.Button, { disabled: !isSelect || modifyProps.disable, onClick: modifyProps.onFun }, modifyProps.title ? modifyProps.title : TABLE_MODIFY)) : null,
670
655
  customProps?.leftRender && customProps?.leftRender())),
671
656
  React.createElement(antd.Col, { span: 8, style: {
672
- display: 'flex',
673
- justifyContent: 'right'
657
+ display: "flex",
658
+ justifyContent: "right",
674
659
  } },
675
660
  React.createElement(antd.Space, null,
676
661
  deleteProps ? (React.createElement(antd.Button, { danger: true, disabled: !isSelect || deleteProps.disable, onClick: deleteProps.onFun }, deleteProps.title ? deleteProps.title : TABLE_DELETE)) : null,
677
662
  resetProps ? (React.createElement(antd.Button, { disabled: !isSelect || resetProps.disable, onClick: resetProps.onFun }, resetProps.title ? resetProps.title : TABLE_RESET)) : null,
678
- removeProps ? (React.createElement(antd.Button, { danger: true, type: 'primary', disabled: !isSelect || removeProps.disable, onClick: removeProps.onFun }, removeProps.title ? removeProps.title : TABLE_REMOVE)) : null,
663
+ removeProps ? (React.createElement(antd.Button, { danger: true, type: "primary", disabled: !isSelect || removeProps.disable, onClick: removeProps.onFun }, removeProps.title ? removeProps.title : TABLE_REMOVE)) : null,
679
664
  customProps?.rightRender && customProps?.rightRender()))));
680
665
  };
681
- const TableBottomButtonGroup = ({ isSelect, topProps, bottomProps, upProps, downProps }) => {
682
- return (React.createElement(antd.Row, { justify: 'space-between' },
666
+ const TableBottomButtonGroup = ({ isSelect, topProps, bottomProps, upProps, downProps, }) => {
667
+ return (React.createElement(antd.Row, { justify: "space-between" },
683
668
  React.createElement(antd.Col, { span: 24, style: {
684
- display: 'flex',
685
- justifyContent: 'right'
669
+ display: "flex",
670
+ justifyContent: "right",
686
671
  } },
687
672
  React.createElement(antd.Space, null,
688
673
  topProps ? (React.createElement(antd.Button, { disabled: !isSelect || topProps.disable, onClick: topProps.onFun }, TABLE_TOP)) : null,
@@ -6481,22 +6466,18 @@ const tableColumns = (columns) => {
6481
6466
  if (!i.hidden) {
6482
6467
  if (i.sort) {
6483
6468
  item.sorter = (a, b) => {
6484
- return a[i.tableProps.dataIndex] < b[i.tableProps.dataIndex]
6485
- ? -1
6486
- : a[i.tableProps.dataIndex] > b[i.tableProps.dataIndex]
6487
- ? 1
6488
- : 0;
6469
+ return a[i.tableProps.dataIndex] < b[i.tableProps.dataIndex] ? -1 : a[i.tableProps.dataIndex] > b[i.tableProps.dataIndex] ? 1 : 0;
6489
6470
  };
6490
6471
  }
6491
6472
  if (item.filters) {
6492
6473
  item.onFilter = (value, record) => record[i.tableProps.dataIndex].includes(value);
6493
6474
  }
6494
6475
  if (i.formatProps) {
6495
- if (i.formatProps.type.toLowerCase() === 'tag') {
6476
+ if (i.formatProps.type.toLowerCase() === "tag") {
6496
6477
  item.render = (text, record, index) => {
6497
- let asText = '';
6498
- let Tcolor = 'default';
6499
- let fdefault = i.formatProps?.formatter?.find((m) => m.text === 'default');
6478
+ let asText = "";
6479
+ let Tcolor = "default";
6480
+ let fdefault = i.formatProps?.formatter?.find((m) => m.text === "default");
6500
6481
  if (fdefault) {
6501
6482
  Tcolor = fdefault.color;
6502
6483
  asText = fdefault.asText;
@@ -6510,15 +6491,13 @@ const tableColumns = (columns) => {
6510
6491
  React.createElement(antd.Tag, { color: Tcolor, key: text }, !asText ? text : asText)));
6511
6492
  };
6512
6493
  }
6513
- else if (i.formatProps.type.toLowerCase() === 'json_tags') {
6494
+ else if (i.formatProps.type.toLowerCase() === "json_tags") {
6514
6495
  item.render = (text, record, index) => {
6515
6496
  let table = [];
6516
6497
  text.forEach((textItem, index) => {
6517
6498
  if (textItem) {
6518
- let asText = i.formatProps?.itemProps?.text_id
6519
- ? textItem[i.formatProps.itemProps.text_id]
6520
- : textItem ?? '';
6521
- let Tcolor = 'default';
6499
+ let asText = i.formatProps?.itemProps?.text_id ? textItem[i.formatProps.itemProps.text_id] : textItem ?? "";
6500
+ let Tcolor = "default";
6522
6501
  let fcol = i.formatProps?.formatter?.find((m) => m.text === asText);
6523
6502
  if (fcol) {
6524
6503
  Tcolor = fcol.color;
@@ -6531,7 +6510,7 @@ const tableColumns = (columns) => {
6531
6510
  return React.createElement("span", null, table);
6532
6511
  };
6533
6512
  }
6534
- else if (i.formatProps.type.toLowerCase() === 'tagarr') {
6513
+ else if (i.formatProps.type.toLowerCase() === "tagarr") {
6535
6514
  item.render = (text, record, index) => {
6536
6515
  let textarr = [];
6537
6516
  if (text !== undefined)
@@ -6539,8 +6518,8 @@ const tableColumns = (columns) => {
6539
6518
  let table = [];
6540
6519
  textarr.forEach((textItem, index) => {
6541
6520
  if (textItem) {
6542
- let asText = '';
6543
- let Tcolor = 'default';
6521
+ let asText = "";
6522
+ let Tcolor = "default";
6544
6523
  let fcol = i.formatProps?.formatter?.find((m) => m.text === textItem);
6545
6524
  if (fcol) {
6546
6525
  Tcolor = fcol.color;
@@ -6552,10 +6531,10 @@ const tableColumns = (columns) => {
6552
6531
  return React.createElement("span", null, table);
6553
6532
  };
6554
6533
  }
6555
- else if (i.formatProps.type.toLowerCase() === 'switch') {
6534
+ else if (i.formatProps.type.toLowerCase() === "switch") {
6556
6535
  item.render = (text, record, index) => {
6557
- let asText = '';
6558
- let Tcolor = 'default';
6536
+ let asText = "";
6537
+ let Tcolor = "default";
6559
6538
  let fcol = i.formatProps?.formatter?.find((m) => m.text === text);
6560
6539
  if (fcol) {
6561
6540
  asText = fcol.asText;
@@ -6564,7 +6543,7 @@ const tableColumns = (columns) => {
6564
6543
  return (React.createElement(antd.Tag, { color: Tcolor, key: index }, !asText ? text : asText));
6565
6544
  };
6566
6545
  }
6567
- else if (i.formatProps.type.toLowerCase() === 'price') {
6546
+ else if (i.formatProps.type.toLowerCase() === "price") {
6568
6547
  item.render = (text, record, index) => {
6569
6548
  if (text)
6570
6549
  return React.createElement("span", null, commaFormat(text));
@@ -6572,64 +6551,63 @@ const tableColumns = (columns) => {
6572
6551
  return null;
6573
6552
  };
6574
6553
  }
6575
- else if (i.formatProps.type.toLowerCase() === 'length') {
6554
+ else if (i.formatProps.type.toLowerCase() === "length") {
6576
6555
  item.render = (text, record, index) => {
6577
6556
  return React.createElement("span", null, text.length);
6578
6557
  };
6579
6558
  }
6580
- else if (i.formatProps.type.toLowerCase() === 'tel') {
6559
+ else if (i.formatProps.type.toLowerCase() === "tel") {
6581
6560
  item.render = (text, record, index) => {
6582
- return (React.createElement("span", null, phoneFormat(text.replaceAll('-', '').replaceAll(' ', ''))));
6561
+ return React.createElement("span", null, phoneFormat(text.replaceAll("-", "").replaceAll(" ", "")));
6583
6562
  };
6584
6563
  }
6585
- else if (i.formatProps.type.toLowerCase() === 'file') {
6564
+ else if (i.formatProps.type.toLowerCase() === "file") {
6586
6565
  item.render = (text, record, index) => {
6587
6566
  return React.createElement("span", null, text);
6588
6567
  };
6589
6568
  }
6590
- else if (i.formatProps.type.toLowerCase() === 'copy') {
6569
+ else if (i.formatProps.type.toLowerCase() === "copy") {
6591
6570
  item.render = (text, record, index) => {
6592
6571
  return (React.createElement(Paragraph, { copyable: true, style: { marginBottom: 0 } }, text));
6593
6572
  };
6594
6573
  }
6595
- else if (i.formatProps.type.toLowerCase() === 'email') {
6574
+ else if (i.formatProps.type.toLowerCase() === "email") {
6596
6575
  item.render = (text, record, index) => {
6597
- return (React.createElement("a", { href: 'https://mail.naver.com/write/ext?srvid=note&to=' + text, target: '_blank', rel: 'noreferrer' }, text));
6576
+ return (React.createElement("a", { href: "https://mail.naver.com/write/ext?srvid=note&to=" + text, target: "_blank", rel: "noreferrer" }, text));
6598
6577
  };
6599
6578
  }
6600
- else if (i.formatProps.type.toLowerCase() === 'image' ||
6601
- i.formatProps.type.toLowerCase() === 'imagecrop') {
6579
+ else if (i.formatProps.type.toLowerCase() === "image" || i.formatProps.type.toLowerCase() === "imagecrop") {
6602
6580
  item.render = (text, record, index) => {
6603
6581
  if (text !== undefined && text !== null) {
6604
6582
  if (text.length > 0)
6605
6583
  return (React.createElement(antd.Image, { width: i.formatProps?.image_width, height: i.formatProps?.image_height, src: text, preview: {
6606
- src: '/api/getImage/' + record[i.formatProps?.imagesId ?? '']
6607
- }, alt: 'img' }));
6584
+ src: "/api/getImage/" + record[i.formatProps?.imagesId ?? ""],
6585
+ }, alt: "img" }));
6608
6586
  }
6609
6587
  return React.createElement("span", null, text);
6610
6588
  };
6611
6589
  }
6612
- else if (i.formatProps.type.toLowerCase() === 'addcount') {
6590
+ else if (i.formatProps.type.toLowerCase() === "addcount") {
6613
6591
  item.render = (text, record, index) => {
6614
6592
  return (React.createElement("span", null,
6615
6593
  text,
6616
6594
  " ",
6617
- i.countIndex ? `(${record[i.countIndex]})` : ''));
6595
+ i.countIndex ? `(${record[i.countIndex]})` : ""));
6618
6596
  };
6619
6597
  }
6620
- else if (i.formatProps.type.toLowerCase() === 'tostring') {
6598
+ else if (i.formatProps.type.toLowerCase() === "tostring") {
6621
6599
  item.render = (text, record, index) => {
6622
6600
  return React.createElement("span", null, text?.toString());
6623
6601
  };
6624
6602
  }
6625
- else if (i.formatProps.type.toLowerCase() === 'jsonarr') {
6603
+ else if (i.formatProps.type.toLowerCase() === "jsonarr") {
6626
6604
  item.render = (text, record, index) => {
6627
6605
  let textarr = [];
6628
6606
  if (!text)
6629
6607
  textarr = JSON.parse(text);
6630
6608
  let table = [];
6631
6609
  textarr.forEach((textItem, index) => {
6632
- let Tcolor = 'default';
6610
+ let Tcolor = "default";
6633
6611
  let fcol = i.formatProps?.formatter?.find((m) => m.text === textItem);
6634
6612
  if (fcol) {
6635
6613
  Tcolor = fcol.color;
@@ -6640,14 +6618,14 @@ const tableColumns = (columns) => {
6640
6618
  return React.createElement("span", null, table);
6641
6619
  };
6642
6620
  }
6643
- else if (i.formatProps.type.toLowerCase() === 'arr') {
6621
+ else if (i.formatProps.type.toLowerCase() === "arr") {
6644
6622
  item.render = (text, record, index) => {
6645
- let textarr = text.split(',');
6623
+ let textarr = text.split(",");
6646
6624
  if (textarr === null)
6647
6625
  textarr = [];
6648
6626
  let table = [];
6649
6627
  textarr.forEach((item, index) => {
6650
- let Tcolor = 'default';
6628
+ let Tcolor = "default";
6651
6629
  let fcol = i.formatProps?.formatter?.find((m) => m.text === item);
6652
6630
  if (fcol)
6653
6631
  Tcolor = fcol.color;
@@ -6656,7 +6634,7 @@ const tableColumns = (columns) => {
6656
6634
  return React.createElement("span", null, table);
6657
6635
  };
6658
6636
  }
6659
- else if (i.formatProps.type.toLowerCase() === 'remainingtime') {
6637
+ else if (i.formatProps.type.toLowerCase() === "remainingtime") {
6660
6638
  item.render = (text, record, index) => {
6661
6639
  const input_time = moment$1(text);
6662
6640
  const now_time = moment$1();
@@ -6667,22 +6645,22 @@ const tableColumns = (columns) => {
6667
6645
  const hours = minutes / 60;
6668
6646
  const days = hours / 24;
6669
6647
  if (seconds < 60)
6670
- output = '방금 전';
6648
+ output = "방금 전";
6671
6649
  else if (minutes < 60)
6672
6650
  output = `${Math.floor(minutes)}분 전`;
6673
6651
  else if (hours < 24)
6674
6652
  output = `${Math.floor(hours)}시간 전`;
6675
6653
  else if (days < 1)
6676
- output = moment$1(text).format('a hh:mm');
6654
+ output = moment$1(text).format("a hh:mm");
6677
6655
  else if (input_time.year() === now_time.year())
6678
- output = moment$1(text).format('MM.DD HH:mm');
6656
+ output = moment$1(text).format("MM.DD HH:mm");
6679
6657
  else {
6680
- output = moment$1(text).format('YYYY-MM-DD HH:mm:ss');
6658
+ output = moment$1(text).format("YYYY-MM-DD HH:mm:ss");
6681
6659
  }
6682
- return (React.createElement(antd.Tooltip, { title: moment$1(text).format('YYYY년 MM월 DD일 HH시 mm분 ss초'), color: '#108ee9' }, output));
6660
+ return (React.createElement(antd.Tooltip, { title: moment$1(text).format("YYYY년 MM월 DD일 HH시 mm분 ss초"), color: "#108ee9" }, output));
6683
6661
  };
6684
6662
  }
6685
- else if (i.formatProps.type.toLowerCase() === 'sleeptime') {
6663
+ else if (i.formatProps.type.toLowerCase() === "sleeptime") {
6686
6664
  item.render = (text, record, index) => {
6687
6665
  return (React.createElement("span", null,
6688
6666
  text[0],
@@ -6693,7 +6671,7 @@ const tableColumns = (columns) => {
6693
6671
  "\uBD84"));
6694
6672
  };
6695
6673
  }
6696
- else if (i.formatProps.type.toLowerCase() === 'sleeptimes') {
6674
+ else if (i.formatProps.type.toLowerCase() === "sleeptimes") {
6697
6675
  item.render = (text, record, index) => {
6698
6676
  return (React.createElement("span", null,
6699
6677
  text[0],
@@ -6702,7 +6680,7 @@ const tableColumns = (columns) => {
6702
6680
  "\uBD84"));
6703
6681
  };
6704
6682
  }
6705
- else if (i.formatProps.type.toLowerCase() === 'compute') {
6683
+ else if (i.formatProps.type.toLowerCase() === "compute") {
6706
6684
  item.render = (text, record, index) => {
6707
6685
  return (React.createElement(antd.Space, null,
6708
6686
  React.createElement(Text$2, null,
@@ -6711,10 +6689,10 @@ const tableColumns = (columns) => {
6711
6689
  React.createElement(antd.Button, { onClick: () => { } }, "\uACC4\uC0B0")));
6712
6690
  };
6713
6691
  }
6714
- else if (i.formatProps.type.toLowerCase() === 'answer') {
6692
+ else if (i.formatProps.type.toLowerCase() === "answer") {
6715
6693
  item.render = (text, record, index) => {
6716
- return (React.createElement(antd.Space, { direction: 'vertical' }, text.map((m) => {
6717
- if (m.type === 'radio')
6694
+ return (React.createElement(antd.Space, { direction: "vertical" }, text.map((m) => {
6695
+ if (m.type === "radio")
6718
6696
  return (React.createElement(antd.Space, { key: m.key },
6719
6697
  React.createElement(antd.Tag, null,
6720
6698
  m.key,
@@ -6722,21 +6700,21 @@ const tableColumns = (columns) => {
6722
6700
  React.createElement(Text$2, null,
6723
6701
  m.decs,
6724
6702
  " ")));
6725
- else if (m.type === 'input_number') {
6726
- return (React.createElement(antd.Tag, { key: m.key, color: 'green' },
6703
+ else if (m.type === "input_number") {
6704
+ return (React.createElement(antd.Tag, { key: m.key, color: "green" },
6727
6705
  m.left,
6728
6706
  " \uC22B\uC790\uAC12 \uC785\uB825",
6729
- ' '));
6707
+ " "));
6730
6708
  }
6731
- else if (m.type === 'input_roll') {
6732
- return (React.createElement(antd.Tag, { key: m.key, color: 'red' },
6709
+ else if (m.type === "input_roll") {
6710
+ return (React.createElement(antd.Tag, { key: m.key, color: "red" },
6733
6711
  m.right,
6734
6712
  " \uC785\uB825",
6735
- ' '));
6713
+ " "));
6736
6714
  }
6737
- else if (m.type === 'checkbox') {
6715
+ else if (m.type === "checkbox") {
6738
6716
  return (React.createElement(antd.Space, { key: m.key },
6739
- React.createElement(antd.Tag, { color: 'blue' },
6717
+ React.createElement(antd.Tag, { color: "blue" },
6740
6718
  " \uCCB4\uD06C",
6741
6719
  m.key,
6742
6720
  " "),
@@ -6754,7 +6732,7 @@ const tableColumns = (columns) => {
6754
6732
  }
6755
6733
  item = {
6756
6734
  ...item,
6757
- ...i.tableProps
6735
+ ...i.tableProps,
6758
6736
  };
6759
6737
  if (i.search) {
6760
6738
  const search = useColumnSearchProps(i.tableProps.dataIndex);
@@ -6772,21 +6750,21 @@ const convert2FormData = ({ data, columns }) => {
6772
6750
  let ant_data = { ...data };
6773
6751
  let columns_arr = Object.values(columns);
6774
6752
  columns_arr.forEach((item) => {
6775
- if (item.formatProps?.type === 'DateTime') {
6753
+ if (item.formatProps?.type === "DateTime") {
6776
6754
  ant_data[item.tableProps.dataIndex] = moment$1(ant_data[item.tableProps.dataIndex]);
6777
6755
  }
6778
6756
  });
6779
6757
  return ant_data;
6780
6758
  };
6781
- const tableRowSelection = ({ selectedRowKeys, radioProps, checkboxProps }) => {
6759
+ const tableRowSelection = ({ selectedRowKeys, radioProps, checkboxProps, }) => {
6782
6760
  if (radioProps) {
6783
6761
  // console.log(selectedRowKeys)
6784
6762
  return {
6785
- type: 'radio',
6763
+ type: "radio",
6786
6764
  selectedRowKeys: selectedRowKeys,
6787
6765
  onChange: (selectedRowKeys, selectedRows) => {
6788
- console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
6789
- }
6766
+ console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
6767
+ },
6790
6768
  // onSelect: (record, rowIndex) => {
6791
6769
  // radioProps.onFun(record)
6792
6770
  // }
@@ -6794,12 +6772,12 @@ const tableRowSelection = ({ selectedRowKeys, radioProps, checkboxProps }) => {
6794
6772
  }
6795
6773
  else if (checkboxProps) {
6796
6774
  return {
6797
- type: 'checkbox',
6775
+ type: "checkbox",
6798
6776
  selectedRowKeys: selectedRowKeys,
6799
6777
  onChange: (newSelectedRowKeys) => {
6800
6778
  checkboxProps.onFun(newSelectedRowKeys);
6801
6779
  },
6802
- getCheckboxProps: checkboxProps.props
6780
+ getCheckboxProps: checkboxProps.props,
6803
6781
  };
6804
6782
  }
6805
6783
  else
@@ -6808,8 +6786,8 @@ const tableRowSelection = ({ selectedRowKeys, radioProps, checkboxProps }) => {
6808
6786
  // 컬럼 검색 props
6809
6787
  const useColumnSearchProps = (dataIndex) => {
6810
6788
  const searchInput = React.useRef(null);
6811
- const [searchText, setSearchText] = React.useState('');
6812
- const [searchedColumn, setSearchedColumn] = React.useState('');
6789
+ const [searchText, setSearchText] = React.useState("");
6790
+ const [searchedColumn, setSearchedColumn] = React.useState("");
6813
6791
  //검색
6814
6792
  const handleSearch = (selectedKeys, confirm, dataIndex) => {
6815
6793
  confirm();
@@ -6819,39 +6797,36 @@ const useColumnSearchProps = (dataIndex) => {
6819
6797
  //검색 필터 리셋
6820
6798
  const handleReset = (clearFilters) => {
6821
6799
  clearFilters();
6822
- setSearchText('');
6800
+ setSearchText("");
6823
6801
  };
6824
6802
  return {
6825
6803
  filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters, close }) => (React.createElement("div", { style: {
6826
- padding: 8
6804
+ padding: 8,
6827
6805
  }, onKeyDown: (e) => e.stopPropagation() },
6828
6806
  React.createElement(antd.Input, { ref: searchInput, placeholder: `Search ${dataIndex}`, value: selectedKeys[0], onChange: (e) => setSelectedKeys(e.target.value ? [e.target.value] : []), onPressEnter: () => handleSearch(selectedKeys, confirm, dataIndex), style: {
6829
6807
  marginBottom: 8,
6830
- display: 'block'
6808
+ display: "block",
6831
6809
  } }),
6832
6810
  React.createElement(antd.Space, null,
6833
- React.createElement(antd.Button, { type: 'primary', onClick: () => handleSearch(selectedKeys, confirm, dataIndex), icon: React.createElement(icons.SearchOutlined, null), size: 'small', style: {
6834
- width: 90
6811
+ React.createElement(antd.Button, { type: "primary", onClick: () => handleSearch(selectedKeys, confirm, dataIndex), icon: React.createElement(icons.SearchOutlined, null), size: "small", style: {
6812
+ width: 90,
6835
6813
  } }, "Search"),
6836
- React.createElement(antd.Button, { onClick: () => clearFilters && handleReset(clearFilters), size: 'small', style: {
6837
- width: 90
6814
+ React.createElement(antd.Button, { onClick: () => clearFilters && handleReset(clearFilters), size: "small", style: {
6815
+ width: 90,
6838
6816
  } }, "Reset")))),
6839
6817
  filterIcon: (filtered) => (React.createElement(icons.SearchOutlined, { style: {
6840
- color: filtered ? '#1890ff' : undefined
6818
+ color: filtered ? "#1890ff" : undefined,
6841
6819
  } })),
6842
6820
  onFilter: (value, record) => {
6843
6821
  if (dataIndex)
6844
- return record[dataIndex]
6845
- .toString()
6846
- .toLowerCase()
6847
- .includes(value.toString().toLowerCase());
6822
+ return record[dataIndex].toString().toLowerCase().includes(value.toString().toLowerCase());
6848
6823
  },
6849
6824
  onFilterDropdownOpenChange: (visible) => {
6850
6825
  if (visible) {
6851
6826
  setTimeout(() => searchInput.current?.select(), 100);
6852
6827
  }
6853
6828
  },
6854
- render: (text) => searchedColumn === dataIndex ? React.createElement("strong", null, text) : text
6829
+ render: (text) => (searchedColumn === dataIndex ? React.createElement("strong", null, text) : text),
6855
6830
  };
6856
6831
  };
6857
6832
 
@@ -23010,58 +22985,58 @@ var build = {exports: {}};
23010
22985
  var buildExports = build.exports;
23011
22986
  var Resizer = /*@__PURE__*/getDefaultExportFromCjs(buildExports);
23012
22987
 
23013
- const useFormColumns = ({ isModify, columns, onChange }) => {
23014
- const [valueTextEditer, setValueTextEditer] = React.useState('');
22988
+ const useFormColumns = ({ isModify, columns, onChange, }) => {
22989
+ const [valueTextEditer, setValueTextEditer] = React.useState("");
23015
22990
  let ant_form = [];
23016
22991
  columns?.forEach((i) => {
23017
22992
  if ((!isModify && i.create !== false) || (isModify && i.modify !== false)) {
23018
22993
  if (i.formatProps) {
23019
- if (i.formatProps.type === 'select') {
22994
+ if (i.formatProps.type === "select") {
23020
22995
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23021
22996
  React.createElement(antd.Select, { ...i.formatProps.itemProps, placeholder: i.placeholder, options: i.formatProps.formatData?.map((i) => {
23022
22997
  return {
23023
22998
  value: i.key,
23024
- label: i.name
22999
+ label: i.name,
23025
23000
  };
23026
23001
  }) })));
23027
23002
  }
23028
- else if (i.formatProps.type === 'DateTime') {
23003
+ else if (i.formatProps.type === "DateTime") {
23029
23004
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23030
- React.createElement(antd.DatePicker, { ...i.formatProps.itemProps, format: 'YYYY-MM-DD' })));
23005
+ React.createElement(antd.DatePicker, { ...i.formatProps.itemProps, format: "YYYY-MM-DD" })));
23031
23006
  }
23032
- else if (i.formatProps.type === 'code') {
23007
+ else if (i.formatProps.type === "code") {
23033
23008
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23034
- React.createElement(antd.Input, { ...i.formatProps.itemProps, placeholder: i.placeholder, defaultValue: moment$1().format('X') })));
23009
+ React.createElement(antd.Input, { ...i.formatProps.itemProps, placeholder: i.placeholder, defaultValue: moment$1().format("X") })));
23035
23010
  }
23036
- else if (i.formatProps.type === 'switch') {
23011
+ else if (i.formatProps.type === "switch") {
23037
23012
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23038
23013
  React.createElement(antd.Switch, { ...i.formatProps.itemProps })));
23039
23014
  }
23040
- else if (i.formatProps.type === 'number') {
23015
+ else if (i.formatProps.type === "number") {
23041
23016
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23042
- React.createElement(antd.Input, { ...i.formatProps.itemProps, placeholder: i.placeholder, type: 'number' })));
23017
+ React.createElement(antd.Input, { ...i.formatProps.itemProps, placeholder: i.placeholder, type: "number" })));
23043
23018
  }
23044
- else if (i.formatProps.type === 'password') {
23019
+ else if (i.formatProps.type === "password") {
23045
23020
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23046
23021
  React.createElement(antd.Input.Password, { ...i.formatProps.itemProps, placeholder: i.placeholder })));
23047
23022
  }
23048
- else if (i.formatProps.type === 'textEditer') {
23023
+ else if (i.formatProps.type === "textEditer") {
23049
23024
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23050
23025
  React.createElement(ReactQuill$1, { ...i.formatProps.itemProps, style: {
23051
23026
  height: 500,
23052
- background: '#fff',
23053
- color: '#000'
23054
- }, theme: 'snow', value: valueTextEditer, modules: {
23027
+ background: "#fff",
23028
+ color: "#000",
23029
+ }, theme: "snow", value: valueTextEditer, modules: {
23055
23030
  toolbar: {
23056
23031
  container: [
23057
23032
  [
23058
23033
  {
23059
- header: [1, 2, 3, 4, 5, false]
23060
- }
23034
+ header: [1, 2, 3, 4, 5, false],
23035
+ },
23061
23036
  ],
23062
- ['bold', 'underline']
23063
- ]
23064
- }
23037
+ ["bold", "underline"],
23038
+ ],
23039
+ },
23065
23040
  // toolbar: [
23066
23041
  // ['bold', 'italic', 'underline', 'strike'], // toggled buttons
23067
23042
  // ['blockquote', 'code-block'],
@@ -23087,10 +23062,10 @@ const useFormColumns = ({ isModify, columns, onChange }) => {
23087
23062
  // ]
23088
23063
  }, onChange: (value, delta, source, editor) => setValueTextEditer(editor.getHTML()) })));
23089
23064
  }
23090
- else if (i.formatProps.type === 'file' ||
23091
- i.formatProps.type === 'files' ||
23092
- i.formatProps.type === 'images' ||
23093
- i.formatProps.type === 'image') {
23065
+ else if (i.formatProps.type === "file" ||
23066
+ i.formatProps.type === "files" ||
23067
+ i.formatProps.type === "images" ||
23068
+ i.formatProps.type === "image") {
23094
23069
  // console.log(i)
23095
23070
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23096
23071
  React.createElement(Files, { ...i.formatProps.itemProps,
@@ -23098,45 +23073,44 @@ const useFormColumns = ({ isModify, columns, onChange }) => {
23098
23073
  // i.formatProps.type === 'images' ||
23099
23074
  // (i.formatProps.type === 'image' && 'picture')
23100
23075
  // }
23101
- count: i.formatProps.type === 'files' ? 10 : 1 })));
23076
+ count: i.formatProps.type === "files" ? 10 : 1 })));
23102
23077
  }
23103
- else if (i.formatProps.type === 'imageCrop') {
23078
+ else if (i.formatProps.type === "imageCrop") {
23104
23079
  ant_form = ant_form.concat([
23105
23080
  React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23106
23081
  React.createElement(UploadImage, { ...i.formatProps.itemProps, onChange: (e) => {
23107
23082
  onChange({
23108
- [i.tableProps.dataIndex + '_changeCheck']: true,
23109
- [i.tableProps.dataIndex]: e
23083
+ [i.tableProps.dataIndex + "_changeCheck"]: true,
23084
+ [i.tableProps.dataIndex]: e,
23110
23085
  });
23111
23086
  } })),
23112
- React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex + '_changeCheck', label: i.tableProps.title + '변경 유무', name: i.tableProps.dataIndex + '_changeCheck', hidden: true },
23113
- React.createElement(antd.Input, null))
23087
+ React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex + "_changeCheck", label: i.tableProps.title + "변경 유무", name: i.tableProps.dataIndex + "_changeCheck", hidden: true },
23088
+ React.createElement(antd.Input, null)),
23114
23089
  ]);
23115
23090
  }
23116
- else if (i.formatProps.type === 'sleeptime') {
23091
+ else if (i.formatProps.type === "sleeptime") {
23117
23092
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden, required: true },
23118
23093
  React.createElement(antd.Space, { size: 10 },
23119
- React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + '_hour', rules: i.rules },
23120
- React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: '\uC2DC', type: 'number' })),
23121
- React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + '_min', rules: i.rules },
23122
- React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: '\uBD84', type: 'number' })))));
23094
+ React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + "_hour", rules: i.rules },
23095
+ React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: "\uC2DC", type: "number" })),
23096
+ React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + "_min", rules: i.rules },
23097
+ React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: "\uBD84", type: "number" })))));
23123
23098
  }
23124
- else if (i.formatProps.type === 'sleeptimes') {
23099
+ else if (i.formatProps.type === "sleeptimes") {
23125
23100
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, hidden: i.formatProps.hidden, required: true },
23126
23101
  React.createElement(antd.Space, { size: 10 },
23127
- React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + '_hour', rules: i.rules },
23128
- React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: '\uC2DC\uAC04', type: 'number' })),
23129
- React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + '_min', rules: i.rules },
23130
- React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: '\uBD84', type: 'number' })))));
23102
+ React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + "_hour", rules: i.rules },
23103
+ React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: "\uC2DC\uAC04", type: "number" })),
23104
+ React.createElement(antd.Form.Item, { name: i.tableProps.dataIndex + "_min", rules: i.rules },
23105
+ React.createElement(antd.Input, { placeholder: i.placeholder, addonAfter: "\uBD84", type: "number" })))));
23131
23106
  }
23132
- else if (i.formatProps.type === 'custom' &&
23133
- i.formatProps.customRender) {
23107
+ else if (i.formatProps.type === "custom" && i.formatProps.customRender) {
23134
23108
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden }, i.formatProps.customRender({
23135
23109
  dataIndex: i.tableProps.dataIndex,
23136
23110
  title: i.tableProps.title,
23137
23111
  onChange(data) {
23138
23112
  onChange(data);
23139
- }
23113
+ },
23140
23114
  })));
23141
23115
  // ant_form.push(
23142
23116
  // i.formatProps.customRender({
@@ -23148,9 +23122,9 @@ const useFormColumns = ({ isModify, columns, onChange }) => {
23148
23122
  // })
23149
23123
  // )
23150
23124
  }
23151
- else if (i.formatProps.type === 'price') {
23125
+ else if (i.formatProps.type === "price") {
23152
23126
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
23153
- React.createElement(antd.InputNumber, { ...i.formatProps.itemProps, style: { width: '100%', ...i.formatProps.itemProps.style }, placeholder: i.placeholder, formatter: (value) => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',') })));
23127
+ React.createElement(antd.InputNumber, { ...i.formatProps.itemProps, style: { width: "100%", ...i.formatProps.itemProps.style }, placeholder: i.placeholder, formatter: (value) => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",") })));
23154
23128
  }
23155
23129
  else {
23156
23130
  ant_form.push(React.createElement(antd.Form.Item, { key: i.tableProps.dataIndex, name: i.tableProps.dataIndex, label: i.tableProps.title, tooltip: i.tooltip, rules: i.rules, hidden: i.formatProps.hidden },
@@ -23185,21 +23159,21 @@ const UploadImage = (props) => {
23185
23159
  // })
23186
23160
  // }
23187
23161
  const resizeFile = (file) => new Promise((resolve) => {
23188
- Resizer.imageFileResizer(file, 500, 500, 'PNG', 100, 0, (uri) => {
23162
+ Resizer.imageFileResizer(file, 500, 500, "PNG", 100, 0, (uri) => {
23189
23163
  resolve(uri);
23190
- }, 'base64');
23164
+ }, "base64");
23191
23165
  });
23192
- return (React.createElement(antd.Flex, { style: { padding: 2, alignItems: 'center' }, gap: 3 },
23166
+ return (React.createElement(antd.Flex, { style: { padding: 2, alignItems: "center" }, gap: 3 },
23193
23167
  React.createElement(antd.Image, { src: value ?? baseImage, width: 50, height: 50 }),
23194
- React.createElement(ImgCrop, { showGrid: true, modalWidth: 800, zoomSlider: true, quality: 1, modalClassName: 'ImgCropModal', modalProps: { style: { height: 1000 } }, cropperProps: {
23168
+ React.createElement(ImgCrop, { showGrid: true, modalWidth: 800, zoomSlider: true, quality: 1, modalClassName: "ImgCropModal", modalProps: { style: { height: 1000 } }, cropperProps: {
23195
23169
  cropSize: { width: 500, height: 500 },
23196
23170
  style: {},
23197
23171
  mediaProps: {},
23198
23172
  zoomSpeed: 1,
23199
23173
  restrictPosition: false,
23200
- keyboardStep: 1
23174
+ keyboardStep: 1,
23201
23175
  } },
23202
- React.createElement(antd.Upload, { accept: 'image/*', listType: 'picture', showUploadList: false, beforeUpload: async (file) => {
23176
+ React.createElement(antd.Upload, { accept: "image/*", listType: "picture", showUploadList: false, beforeUpload: async (file) => {
23203
23177
  try {
23204
23178
  const image = await resizeFile(file);
23205
23179
  onChange(image);
@@ -23212,17 +23186,17 @@ const UploadImage = (props) => {
23212
23186
  } },
23213
23187
  React.createElement(antd.Button, { icon: React.createElement(icons.UploadOutlined, null) }, "\uD30C\uC77C\uC120\uD0DD")))));
23214
23188
  };
23215
- const baseImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQ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BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==';
23189
+ const baseImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQ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AhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==";
23216
23190
 
23217
23191
  const formItemLayout = {
23218
23192
  labelCol: {
23219
23193
  xs: { span: 6 },
23220
- sm: { span: 6 }
23194
+ sm: { span: 6 },
23221
23195
  },
23222
23196
  wrapperCol: {
23223
23197
  xs: { span: 15 },
23224
- sm: { span: 15 }
23225
- }
23198
+ sm: { span: 15 },
23199
+ },
23226
23200
  };
23227
23201
  const AntBaseModalCreate = ({ modalProps, formProps, props }) => {
23228
23202
  const [form] = antd.Form.useForm();
@@ -23235,7 +23209,7 @@ const AntBaseModalCreate = ({ modalProps, formProps, props }) => {
23235
23209
  columns,
23236
23210
  onChange: (data) => {
23237
23211
  form.setFieldsValue(data);
23238
- }
23212
+ },
23239
23213
  });
23240
23214
  React.useEffect(() => {
23241
23215
  if (open && isModify && initialValues) {
@@ -23245,11 +23219,11 @@ const AntBaseModalCreate = ({ modalProps, formProps, props }) => {
23245
23219
  form.setFieldsValue(value);
23246
23220
  }
23247
23221
  }, [open, isModify]);
23248
- if (type === 'not_modal') {
23222
+ if (type === "not_modal") {
23249
23223
  return (React.createElement(antd.Form, { ...formItemLayout, form: form, onFinish: onFinish },
23250
23224
  column,
23251
23225
  React.createElement(antd.Form.Item, { wrapperCol: { span: 1, offset: 20 } },
23252
- React.createElement(antd.Button, { htmlType: 'submit' }, props.buttonName ?? (isModify ? FORM_MODIFY : FORM_CREATE)))));
23226
+ React.createElement(antd.Button, { htmlType: "submit" }, props.buttonName ?? (isModify ? FORM_MODIFY : FORM_CREATE)))));
23253
23227
  }
23254
23228
  return (React.createElement(antd.Modal, { ...modalProps, footer: null, destroyOnClose: true, onCancel: () => {
23255
23229
  form.resetFields();
@@ -23265,12 +23239,12 @@ const AntBaseModalCreate = ({ modalProps, formProps, props }) => {
23265
23239
  column,
23266
23240
  customColumn,
23267
23241
  React.createElement(antd.Form.Item, { wrapperCol: { span: 1, offset: 20 } },
23268
- React.createElement(antd.Button, { htmlType: 'submit' }, props.buttonName ?? (isModify ? FORM_MODIFY : FORM_CREATE))))));
23242
+ React.createElement(antd.Button, { htmlType: "submit" }, props.buttonName ?? (isModify ? FORM_MODIFY : FORM_CREATE))))));
23269
23243
  };
23270
23244
 
23271
23245
  const { Title } = antd.Typography;
23272
23246
  const { confirm } = antd.Modal;
23273
- const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initData, customColumn, customValue, columns, expandable, size, onDoubleClick, onClick, selectProps, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps, topProps, bottomProps, upProps, downProps, pageProps, scroll, onRefresh, isCounter, autoRefreshTime, createModalWidth = 1000, onCreateClose }, ref) => {
23247
+ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initData, customColumn, customValue, columns, expandable, size, onDoubleClick, onClick, selectProps, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps, topProps, bottomProps, upProps, downProps, pageProps, scroll, onRefresh, isCounter, autoRefreshTime, createModalWidth = 1000, onCreateClose, }, ref) => {
23274
23248
  const [selectedRowKeys, setSelectedRowKeys] = React.useState([]);
23275
23249
  const [selectedRow, setSelectedRow] = React.useState();
23276
23250
  const [popupCreate, setPopupCreate] = React.useState(false);
@@ -23278,7 +23252,7 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23278
23252
  React.useEffect(() => {
23279
23253
  setSelectedRow(dataSource?.find((m) => {
23280
23254
  if (m) {
23281
- let key = typeof rowKey === 'function' ? rowKey(m) : m[rowKey];
23255
+ let key = typeof rowKey === "function" ? rowKey(m) : m[rowKey];
23282
23256
  return key === selectedRowKeys[0];
23283
23257
  }
23284
23258
  return false;
@@ -23295,7 +23269,7 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23295
23269
  if (selectedRowKeys.length !== 0 && dataSource?.length !== 0) {
23296
23270
  setSelectedRow(dataSource?.find((m) => {
23297
23271
  if (m) {
23298
- let key = typeof rowKey === 'function' ? rowKey(m) : m[rowKey];
23272
+ let key = typeof rowKey === "function" ? rowKey(m) : m[rowKey];
23299
23273
  return key === selectedRowKeys[0];
23300
23274
  }
23301
23275
  return false;
@@ -23303,7 +23277,7 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23303
23277
  if (selectProps.onUpdateData) {
23304
23278
  selectProps.onUpdateData(dataSource?.find((m) => {
23305
23279
  if (m) {
23306
- let key = typeof rowKey === 'function' ? rowKey(m) : m[rowKey];
23280
+ let key = typeof rowKey === "function" ? rowKey(m) : m[rowKey];
23307
23281
  return key === selectedRowKeys[0];
23308
23282
  }
23309
23283
  return false;
@@ -23318,7 +23292,7 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23318
23292
  reSelection,
23319
23293
  popupCreate,
23320
23294
  popupModify,
23321
- selectedRow
23295
+ selectedRow,
23322
23296
  }), [selectedRow, popupCreate, popupModify]);
23323
23297
  // 추가 팝업 on/off
23324
23298
  const showCreatePopup = (show) => {
@@ -23330,7 +23304,7 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23330
23304
  setPopupCreate(false);
23331
23305
  setPopupModify(false);
23332
23306
  if (popupModify && modifyProps) {
23333
- let key = typeof rowKey === 'function' ? rowKey(selectedRow) : rowKey;
23307
+ let key = typeof rowKey === "function" ? rowKey(selectedRow) : rowKey;
23334
23308
  modifyProps.onFun({ [key.toString()]: key, ...value }, selectedRow);
23335
23309
  // 키 값과 함꼐 전달
23336
23310
  }
@@ -23360,12 +23334,12 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23360
23334
  //선택 유무
23361
23335
  const isSelect = selectedRowKeys.length !== 0;
23362
23336
  return (React.createElement("div", { className: className, style: {
23363
- display: 'flex',
23364
- flexDirection: 'column',
23337
+ display: "flex",
23338
+ flexDirection: "column",
23365
23339
  flex: 1,
23366
23340
  gap: 10,
23367
- height: '100%',
23368
- padding: '20px'
23341
+ height: "100%",
23342
+ padding: "20px",
23369
23343
  } },
23370
23344
  React.createElement(TableTopButtonGroup, { isSelect: isSelect, isCounter: isCounter, onRefresh: onRefresh, autoRefreshTime: autoRefreshTime, addProps: addProps && {
23371
23345
  ...addProps,
@@ -23376,7 +23350,7 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23376
23350
  else {
23377
23351
  showCreatePopup(true);
23378
23352
  }
23379
- }
23353
+ },
23380
23354
  }, modifyProps: modifyProps && {
23381
23355
  ...modifyProps,
23382
23356
  onFun() {
@@ -23386,88 +23360,88 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23386
23360
  else {
23387
23361
  showModify();
23388
23362
  }
23389
- }
23363
+ },
23390
23364
  }, deleteProps: deleteProps && {
23391
23365
  ...deleteProps,
23392
23366
  onFun() {
23393
23367
  if (selectedRow) {
23394
23368
  let content = (rowName
23395
- ? typeof rowName === 'function'
23369
+ ? typeof rowName === "function"
23396
23370
  ? rowName(selectedRow)
23397
23371
  : selectedRow[rowName]
23398
- : typeof rowKey === 'function'
23372
+ : typeof rowKey === "function"
23399
23373
  ? rowKey(selectedRow)
23400
23374
  : selectedRow[rowKey]);
23401
23375
  confirm({
23402
- title: '삭제 하시겠습니까?',
23376
+ title: "삭제 하시겠습니까?",
23403
23377
  icon: React.createElement(icons.ExclamationCircleOutlined, null),
23404
23378
  content: content,
23405
- okText: 'Yes',
23406
- okType: 'danger',
23407
- cancelText: 'No',
23379
+ okText: "Yes",
23380
+ okType: "danger",
23381
+ cancelText: "No",
23408
23382
  onOk: () => {
23409
23383
  deleteProps.onFun(selectedRow);
23410
23384
  },
23411
23385
  onCancel() {
23412
- console.log('Cancel');
23413
- }
23386
+ console.log("Cancel");
23387
+ },
23414
23388
  });
23415
23389
  }
23416
- }
23390
+ },
23417
23391
  }, resetProps: resetProps && {
23418
23392
  ...resetProps,
23419
23393
  onFun() {
23420
23394
  if (selectedRow) {
23421
23395
  let content = (rowName
23422
- ? typeof rowName === 'function'
23396
+ ? typeof rowName === "function"
23423
23397
  ? rowName(selectedRow)
23424
23398
  : selectedRow[rowName]
23425
- : typeof rowKey === 'function'
23399
+ : typeof rowKey === "function"
23426
23400
  ? rowKey(selectedRow)
23427
23401
  : selectedRow[rowKey]);
23428
23402
  confirm({
23429
- title: '복구 하시겠습니까?',
23403
+ title: "복구 하시겠습니까?",
23430
23404
  icon: React.createElement(icons.ExclamationCircleOutlined, null),
23431
23405
  content: content,
23432
- okText: 'Yes',
23433
- okType: 'primary',
23434
- cancelText: 'No',
23406
+ okText: "Yes",
23407
+ okType: "primary",
23408
+ cancelText: "No",
23435
23409
  onOk: () => {
23436
23410
  resetProps.onFun(selectedRow);
23437
23411
  },
23438
23412
  onCancel() {
23439
- console.log('Cancel');
23440
- }
23413
+ console.log("Cancel");
23414
+ },
23441
23415
  });
23442
23416
  }
23443
- }
23417
+ },
23444
23418
  }, removeProps: removeProps && {
23445
23419
  ...removeProps,
23446
23420
  onFun() {
23447
23421
  if (selectedRow) {
23448
23422
  let content = (rowName
23449
- ? typeof rowName === 'function'
23423
+ ? typeof rowName === "function"
23450
23424
  ? rowName(selectedRow)
23451
23425
  : selectedRow[rowName]
23452
- : typeof rowKey === 'function'
23426
+ : typeof rowKey === "function"
23453
23427
  ? rowKey(selectedRow)
23454
23428
  : selectedRow[rowKey]);
23455
23429
  confirm({
23456
- title: '완전 삭제 하시겠습니까?',
23430
+ title: "완전 삭제 하시겠습니까?",
23457
23431
  icon: React.createElement(icons.ExclamationCircleOutlined, null),
23458
23432
  content: content,
23459
- okText: 'Yes',
23460
- okType: 'danger',
23461
- cancelText: 'No',
23433
+ okText: "Yes",
23434
+ okType: "danger",
23435
+ cancelText: "No",
23462
23436
  onOk: () => {
23463
23437
  removeProps.onFun(selectedRow);
23464
23438
  },
23465
23439
  onCancel() {
23466
- console.log('Cancel');
23467
- }
23440
+ console.log("Cancel");
23441
+ },
23468
23442
  });
23469
23443
  }
23470
- }
23444
+ },
23471
23445
  }, customProps: customProps && {
23472
23446
  ...customProps,
23473
23447
  render: () => {
@@ -23487,38 +23461,38 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23487
23461
  return customProps.rightRender(isSelect, selectedRow);
23488
23462
  else
23489
23463
  return null;
23490
- }
23464
+ },
23491
23465
  } }),
23492
23466
  React.createElement(antd.Table, { bordered: true, rowKey: rowKey, scroll: scroll, pagination: pageProps === false
23493
23467
  ? pageProps
23494
23468
  : pageProps && {
23495
23469
  showSizeChanger: false,
23496
23470
  defaultPageSize: 20,
23497
- ...pageProps
23471
+ ...pageProps,
23498
23472
  },
23499
23473
  // rowSelection={{ type: 'radio' }}
23500
23474
  rowSelection: tableRowSelection({
23501
23475
  selectedRowKeys,
23502
- radioProps: selectProps?.type === 'radio' && {
23476
+ radioProps: selectProps?.type === "radio" && {
23503
23477
  },
23504
- checkboxProps: selectProps?.type === 'checkbox' && {
23478
+ checkboxProps: selectProps?.type === "checkbox" && {
23505
23479
  onFun: (keys) => {
23506
23480
  setSelectedRowKeys(keys);
23507
23481
  if (selectProps.onFun) {
23508
23482
  selectProps.onFun(keys);
23509
23483
  }
23510
23484
  },
23511
- props: selectProps.checkboxProps
23512
- }
23513
- }), size: size ?? 'small', onRow: (record, rowIndex) => {
23485
+ props: selectProps.checkboxProps,
23486
+ },
23487
+ }), size: size ?? "small", onRow: (record, rowIndex) => {
23514
23488
  return {
23515
23489
  onClick: () => {
23516
- if (selectProps?.type === 'radio') {
23490
+ if (selectProps?.type === "radio") {
23517
23491
  // console.log(typeof rowKey)
23518
23492
  // console.log(
23519
23493
  // typeof rowKey === 'function' ? rowKey(record) : rowKey
23520
23494
  // )
23521
- if (typeof rowKey === 'function') {
23495
+ if (typeof rowKey === "function") {
23522
23496
  setSelectedRowKeys([rowKey(record)]);
23523
23497
  }
23524
23498
  else {
@@ -23542,11 +23516,11 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23542
23516
  }, // double click row
23543
23517
  onContextMenu: () => { }, // right button click row
23544
23518
  onMouseEnter: () => { }, // mouse enter row
23545
- onMouseLeave: () => { } // mouse leave row
23519
+ onMouseLeave: () => { }, // mouse leave row
23546
23520
  };
23547
23521
  }, onHeaderRow: () => {
23548
23522
  return {
23549
- onClick: () => { } // click header row
23523
+ onClick: () => { }, // click header row
23550
23524
  };
23551
23525
  }, dataSource: dataSource?.map((i) => i),
23552
23526
  // columns={tableColumns(
@@ -23564,61 +23538,55 @@ const AntBaseTable = ({ bordered, className, rowKey, rowName, dataSource, initDa
23564
23538
  onFun() {
23565
23539
  if (selectedRow)
23566
23540
  topProps.onFun(selectedRow);
23567
- }
23541
+ },
23568
23542
  }, bottomProps: bottomProps && {
23569
23543
  ...bottomProps,
23570
23544
  onFun() {
23571
23545
  if (selectedRow)
23572
23546
  bottomProps.onFun(selectedRow);
23573
- }
23547
+ },
23574
23548
  }, upProps: upProps && {
23575
23549
  ...upProps,
23576
23550
  onFun() {
23577
23551
  if (selectedRow)
23578
23552
  upProps.onFun(selectedRow);
23579
- }
23553
+ },
23580
23554
  }, downProps: downProps && {
23581
23555
  ...downProps,
23582
23556
  onFun() {
23583
23557
  if (selectedRow)
23584
23558
  downProps.onFun(selectedRow);
23585
- }
23559
+ },
23586
23560
  } }),
23587
23561
  React.createElement(AntBaseModalCreate, { modalProps: {
23588
23562
  width: createModalWidth,
23589
23563
  title: (React.createElement("div", { style: { marginBottom: 20, marginTop: 10 } },
23590
- React.createElement(Title, { level: 4, style: { margin: 0 } }, popupModify ? '정보 수정' : '신규 등록'))),
23564
+ React.createElement(Title, { level: 4, style: { margin: 0 } }, popupModify ? "정보 수정" : "신규 등록"))),
23591
23565
  maskClosable: false,
23592
23566
  open: popupCreate,
23593
23567
  onCancel: () => {
23594
23568
  if (onCreateClose)
23595
23569
  onCreateClose();
23596
23570
  showCreatePopup(false);
23597
- }
23571
+ },
23598
23572
  }, formProps: {
23599
23573
  initialValues: popupModify
23600
23574
  ? convert2FormData({
23601
23575
  data: selectedRow,
23602
- columns: columns
23576
+ columns: columns,
23603
23577
  })
23604
23578
  : initData
23605
23579
  ? convert2FormData({
23606
23580
  data: initData,
23607
- columns: columns
23581
+ columns: columns,
23608
23582
  })
23609
23583
  : {},
23610
- onFinish: onCreate
23584
+ onFinish: onCreate,
23611
23585
  }, props: {
23612
23586
  customColumn,
23613
23587
  customValue,
23614
- columns: popupModify
23615
- ? modifyProps?.columns
23616
- ? modifyProps?.columns
23617
- : columns
23618
- : addProps?.columns
23619
- ? addProps?.columns
23620
- : columns,
23621
- isModify: popupModify
23588
+ columns: popupModify ? (modifyProps?.columns ? modifyProps?.columns : columns) : addProps?.columns ? addProps?.columns : columns,
23589
+ isModify: popupModify,
23622
23590
  } })));
23623
23591
  };
23624
23592
  /**
@@ -23654,7 +23622,7 @@ const SearchBox = ({ searchOption = [], searchDisabled = false, onSubmit, onRese
23654
23622
  searchOption.forEach((item) => {
23655
23623
  item.items.forEach((item2) => {
23656
23624
  if (item2.value) {
23657
- if (item2.type === 'date') {
23625
+ if (item2.type === "date") {
23658
23626
  a = { ...a, ...item2.value };
23659
23627
  }
23660
23628
  else {
@@ -23671,17 +23639,17 @@ const SearchBox = ({ searchOption = [], searchDisabled = false, onSubmit, onRese
23671
23639
  setData(null);
23672
23640
  };
23673
23641
  const activeEnter = (e) => {
23674
- if (e.key === 'Enter') ;
23642
+ if (e.key === "Enter") ;
23675
23643
  };
23676
23644
  return (React.createElement("div", { className: styles$2.searchboxFrame },
23677
23645
  React.createElement("div", { className: styles$2.searchboxRow }, searchOption.map((item) => {
23678
- return (React.createElement("div", { style: { marginBottom: '5px' }, key: item.key },
23646
+ return (React.createElement("div", { style: { marginBottom: "5px" }, key: item.key },
23679
23647
  React.createElement(antd.Row, null,
23680
23648
  React.createElement(antd.Col, { span: item.title ? 1 : 0 },
23681
- React.createElement(Text$1, { style: { fontWeight: 'bold' } }, item.title)),
23682
- React.createElement(antd.Col, { span: item.title ? 23 : 24, style: { textAlign: 'left', paddingLeft: '10px' } },
23683
- React.createElement(antd.Space, { size: 'large', wrap: true }, item.items?.map((item2) => {
23684
- if (item2.type === 'select') {
23649
+ React.createElement(Text$1, { style: { fontWeight: "bold" } }, item.title)),
23650
+ React.createElement(antd.Col, { span: item.title ? 23 : 24, style: { textAlign: "left", paddingLeft: "10px" } },
23651
+ React.createElement(antd.Space, { size: "large", wrap: true }, item.items?.map((item2) => {
23652
+ if (item2.type === "select") {
23685
23653
  return (React.createElement(SelectSearch, { key: item2.key, title: item2.title, options: item2.options, value: data ? data[item2.key] : item2.value, disabled: item2.disabled, onChange: (value) => {
23686
23654
  if (item2.onChange) {
23687
23655
  let db = item2.options?.find((i) => i.value === value);
@@ -23689,54 +23657,53 @@ const SearchBox = ({ searchOption = [], searchDisabled = false, onSubmit, onRese
23689
23657
  }
23690
23658
  setData({
23691
23659
  ...data,
23692
- [item2.key]: value
23660
+ [item2.key]: value,
23693
23661
  });
23694
23662
  } }));
23695
23663
  }
23696
- else if (item2.type === 'date') {
23664
+ else if (item2.type === "date") {
23697
23665
  return (React.createElement(DateSearch, { key: item2.key, type: item2.dateType, title: item2.title, single: item2.single, disabled: item2.disabled, value: {
23698
- start: data?.[item2.key + '_start'] ??
23699
- null,
23700
- end: data?.[item2.key + '_end'] ?? null
23666
+ start: data?.[item2.key + "_start"] ?? null,
23667
+ end: data?.[item2.key + "_end"] ?? null,
23701
23668
  }, onChange: (value) => {
23702
23669
  setData({
23703
23670
  ...data,
23704
- [item2.key + '_start']: value.start ?? '',
23705
- [item2.key + '_end']: value.end ?? ''
23671
+ [item2.key + "_start"]: value.start ?? "",
23672
+ [item2.key + "_end"]: value.end ?? "",
23706
23673
  });
23707
23674
  } }));
23708
23675
  }
23709
- else if (item2.type === 'input') {
23710
- return (React.createElement(InputSearch, { key: item2.key, title: item2.title, value: data ? data[item2.key]?.toString() : '', disabled: item2.disabled, onChange: (value) => {
23676
+ else if (item2.type === "input") {
23677
+ return (React.createElement(InputSearch, { key: item2.key, title: item2.title, value: data ? data[item2.key]?.toString() : "", disabled: item2.disabled, onChange: (value) => {
23711
23678
  if (item2.onChange) {
23712
23679
  let db = item2.options?.find((i) => i.value === value);
23713
23680
  item2.onChange(db);
23714
23681
  }
23715
23682
  setData({
23716
23683
  ...data,
23717
- [item2.key]: value
23684
+ [item2.key]: value,
23718
23685
  });
23719
23686
  }, activeEnter: activeEnter }));
23720
23687
  }
23721
- else if (item2.type === 'switch') {
23688
+ else if (item2.type === "switch") {
23722
23689
  return (React.createElement(SwitchSearch, { key: item2.key, title: item2.title, value: data ? Boolean(data[item2.key]) : false, disabled: item2.disabled, onChange: (value) => {
23723
23690
  if (item2.onChange) {
23724
23691
  item2.onChange(value);
23725
23692
  }
23726
23693
  setData({
23727
23694
  ...data,
23728
- [item2.key]: value
23695
+ [item2.key]: value,
23729
23696
  });
23730
23697
  } }));
23731
23698
  }
23732
- else if (item2.type === 'check') {
23699
+ else if (item2.type === "check") {
23733
23700
  return (React.createElement(CheckSearch, { key: item2.key, title: item2.title, value: data ? Boolean(data[item2.key]) : false, disabled: item2.disabled, onChange: (value) => {
23734
23701
  if (item2.onChange) {
23735
23702
  item2.onChange(value);
23736
23703
  }
23737
23704
  setData({
23738
23705
  ...data,
23739
- [item2.key]: value
23706
+ [item2.key]: value,
23740
23707
  });
23741
23708
  } }));
23742
23709
  }
@@ -23745,36 +23712,34 @@ const SearchBox = ({ searchOption = [], searchDisabled = false, onSubmit, onRese
23745
23712
  }
23746
23713
  }))))));
23747
23714
  })),
23748
- React.createElement(antd.Space, { size: 'small', className: styles$2.searchboxBtn },
23749
- React.createElement(antd.Button, { disabled: searchDisabled, type: 'text', icon: React.createElement(icons.RedoOutlined, null), onClick: resetSubmit }, "\uC120\uD0DD\uCD08\uAE30\uD654"),
23750
- React.createElement(antd.Button, { disabled: searchDisabled, style: { width: 100 }, type: 'primary', onClick: (e) => {
23715
+ React.createElement(antd.Space, { size: "small", className: styles$2.searchboxBtn },
23716
+ React.createElement(antd.Button, { disabled: searchDisabled, type: "text", icon: React.createElement(icons.RedoOutlined, null), onClick: resetSubmit }, "\uC120\uD0DD\uCD08\uAE30\uD654"),
23717
+ React.createElement(antd.Button, { disabled: searchDisabled, style: { width: 100 }, type: "primary", onClick: (e) => {
23751
23718
  let id = [];
23752
23719
  searchOption.forEach((item) => {
23753
23720
  item.items.forEach((item2) => {
23754
23721
  if (data) {
23755
- if (item2.type === 'date' &&
23756
- data[item2.key + '_start'] &&
23757
- data[item2.key + '_end']) {
23722
+ if (item2.type === "date" && data[item2.key + "_start"] && data[item2.key + "_end"]) {
23758
23723
  id = id.concat([
23759
23724
  {
23760
- key: item2.key + '_start',
23761
- id: data[item2.key + '_start']
23725
+ key: item2.key + "_start",
23726
+ id: data[item2.key + "_start"],
23762
23727
  },
23763
- { key: item2.key + '_end', id: data[item2.key + '_end'] }
23728
+ { key: item2.key + "_end", id: data[item2.key + "_end"] },
23764
23729
  ]);
23765
23730
  }
23766
23731
  else {
23767
23732
  if (data[item2.key]) {
23768
23733
  id.push({
23769
23734
  key: item2.key,
23770
- id: data[item2.key]
23735
+ id: data[item2.key],
23771
23736
  });
23772
23737
  }
23773
23738
  }
23774
23739
  }
23775
23740
  });
23776
23741
  });
23777
- var searchQuery = '';
23742
+ var searchQuery = "";
23778
23743
  id.forEach((item, index) => {
23779
23744
  let txt = `${item.key}=${item.id}`;
23780
23745
  if (index == 0)
@@ -23785,14 +23750,14 @@ const SearchBox = ({ searchOption = [], searchDisabled = false, onSubmit, onRese
23785
23750
  onSubmit && onSubmit(searchQuery, data);
23786
23751
  } }, "\uC870\uD68C"))));
23787
23752
  };
23788
- const SwitchSearch = ({ title, value, disabled = false, onChange }) => {
23753
+ const SwitchSearch = ({ title, value, disabled = false, onChange, }) => {
23789
23754
  return (React.createElement(antd.Space, null,
23790
23755
  title && React.createElement(Text$1, null, title),
23791
23756
  React.createElement(antd.Switch, { disabled: disabled, onChange: (value) => {
23792
23757
  onChange(value);
23793
23758
  }, value: value })));
23794
23759
  };
23795
- const CheckSearch = ({ title, value, disabled = false, onChange }) => {
23760
+ const CheckSearch = ({ title, value, disabled = false, onChange, }) => {
23796
23761
  return (React.createElement(antd.Space, null,
23797
23762
  title && React.createElement(Text$1, null, title),
23798
23763
  React.createElement(antd.Checkbox, { disabled: disabled, onChange: (value) => {
@@ -23800,48 +23765,48 @@ const CheckSearch = ({ title, value, disabled = false, onChange }) => {
23800
23765
  onChange(value.target.checked);
23801
23766
  }, checked: value })));
23802
23767
  };
23803
- const SelectSearch = ({ title, options, value, disabled = false, onChange }) => {
23768
+ const SelectSearch = ({ title, options, value, disabled = false, onChange, }) => {
23804
23769
  return (React.createElement(antd.Space, null,
23805
23770
  title && React.createElement(Text$1, null, title),
23806
- React.createElement(antd.Select, { disabled: disabled, style: { minWidth: '120px' }, options: options, onChange: (value) => {
23771
+ React.createElement(antd.Select, { disabled: disabled, style: { minWidth: "120px" }, options: options, onChange: (value) => {
23807
23772
  onChange(value);
23808
23773
  }, value: value })));
23809
23774
  };
23810
- const DateSearch = ({ single = false, type, title, value, disabled = false, onChange }) => {
23775
+ const DateSearch = ({ single = false, type, title, value, disabled = false, onChange, }) => {
23811
23776
  if (single) {
23812
23777
  return (React.createElement(antd.Space, null,
23813
23778
  title && React.createElement(Text$1, null, title),
23814
- React.createElement(antd.DatePicker, { picker: type ?? 'date',
23779
+ React.createElement(antd.DatePicker, { picker: type ?? "date",
23815
23780
  // disabledDate={disabledDate}
23816
- value: value.start ? dayjs(value.start) : undefined, placeholder: '', disabled: disabled, onChange: (e) => {
23781
+ value: value.start ? dayjs(value.start) : undefined, placeholder: "", disabled: disabled, onChange: (e) => {
23817
23782
  if (e) {
23818
- let format = 'YYYY-MM-DD 00:00:00';
23819
- if (type === 'year') {
23820
- format = 'YYYY';
23783
+ let format = "YYYY-MM-DD 00:00:00";
23784
+ if (type === "year") {
23785
+ format = "YYYY";
23821
23786
  onChange({
23822
23787
  start: e?.format(format) ?? null,
23823
- end: null
23788
+ end: null,
23824
23789
  });
23825
23790
  }
23826
- else if (type === 'month') {
23827
- format = 'YYYY-MM';
23791
+ else if (type === "month") {
23792
+ format = "YYYY-MM";
23828
23793
  onChange({
23829
23794
  start: e?.format(format) ?? null,
23830
- end: null
23795
+ end: null,
23831
23796
  });
23832
23797
  }
23833
- else if (type === 'date') {
23834
- format = 'YYYY-MM-DD HH:mm:ss';
23798
+ else if (type === "date") {
23799
+ format = "YYYY-MM-DD HH:mm:ss";
23835
23800
  onChange({
23836
23801
  start: e?.format(format) ?? null,
23837
- end: null
23802
+ end: null,
23838
23803
  });
23839
23804
  }
23840
- else if (type === 'time') {
23841
- format = 'YYYY-MM-DD HH:mm:ss';
23805
+ else if (type === "time") {
23806
+ format = "YYYY-MM-DD HH:mm:ss";
23842
23807
  onChange({
23843
23808
  start: e?.format(format) ?? null,
23844
- end: null
23809
+ end: null,
23845
23810
  });
23846
23811
  }
23847
23812
  }
@@ -23852,42 +23817,37 @@ const DateSearch = ({ single = false, type, title, value, disabled = false, onCh
23852
23817
  }
23853
23818
  return (React.createElement(antd.Space, null,
23854
23819
  title && React.createElement(Text$1, null, title),
23855
- React.createElement(RangePicker, { picker: type ?? 'date',
23820
+ React.createElement(RangePicker, { picker: type ?? "date",
23856
23821
  // disabledDate={disabledDate}
23857
- disabled: disabled, value: value
23858
- ? [
23859
- value.start ? dayjs(value.start) : undefined,
23860
- value.end ? dayjs(value.end) : undefined
23861
- ]
23862
- : null, placeholder: ['', ''], onChange: (e) => {
23822
+ disabled: disabled, value: value ? [value.start ? dayjs(value.start) : undefined, value.end ? dayjs(value.end) : undefined] : null, placeholder: ["", ""], onChange: (e) => {
23863
23823
  if (e) {
23864
- let format = 'YYYY-MM-DD 00:00:00';
23865
- if (type === 'year') {
23866
- format = 'YYYY';
23824
+ let format = "YYYY-MM-DD 00:00:00";
23825
+ if (type === "year") {
23826
+ format = "YYYY";
23867
23827
  onChange({
23868
23828
  start: e[0]?.format(format) ?? null,
23869
- end: e[1]?.format(format) ?? null
23829
+ end: e[1]?.format(format) ?? null,
23870
23830
  });
23871
23831
  }
23872
- else if (type === 'month') {
23873
- format = 'YYYY-MM';
23832
+ else if (type === "month") {
23833
+ format = "YYYY-MM";
23874
23834
  onChange({
23875
23835
  start: e[0]?.format(format) ?? null,
23876
- end: e[1]?.format(format) ?? null
23836
+ end: e[1]?.format(format) ?? null,
23877
23837
  });
23878
23838
  }
23879
- else if (type === 'date') {
23880
- format = 'YYYY-MM-DD HH:mm:ss';
23839
+ else if (type === "date") {
23840
+ format = "YYYY-MM-DD HH:mm:ss";
23881
23841
  onChange({
23882
- start: e[0]?.startOf('date').format(format) ?? null,
23883
- end: e[1]?.endOf('date').format(format) ?? null
23842
+ start: e[0]?.startOf("date").format(format) ?? null,
23843
+ end: e[1]?.endOf("date").format(format) ?? null,
23884
23844
  });
23885
23845
  }
23886
- else if (type === 'time') {
23887
- format = 'YYYY-MM-DD HH:mm:ss';
23846
+ else if (type === "time") {
23847
+ format = "YYYY-MM-DD HH:mm:ss";
23888
23848
  onChange({
23889
23849
  start: e[0]?.format(format) ?? null,
23890
- end: e[1]?.format(format) ?? null
23850
+ end: e[1]?.format(format) ?? null,
23891
23851
  });
23892
23852
  }
23893
23853
  }
@@ -23896,10 +23856,10 @@ const DateSearch = ({ single = false, type, title, value, disabled = false, onCh
23896
23856
  }
23897
23857
  } })));
23898
23858
  };
23899
- const InputSearch = ({ title, value, disabled = false, onChange, activeEnter }) => {
23859
+ const InputSearch = ({ title, value, disabled = false, onChange, activeEnter, }) => {
23900
23860
  return (React.createElement(antd.Space, null,
23901
23861
  title && React.createElement(Text$1, null, title),
23902
- React.createElement(antd.Input, { style: { width: '170px' }, disabled: disabled, onChange: (e) => {
23862
+ React.createElement(antd.Input, { style: { width: "170px" }, disabled: disabled, onChange: (e) => {
23903
23863
  onChange(e.target.value);
23904
23864
  }, value: value, onKeyDown: (e) => activeEnter(e) })));
23905
23865
  };
@@ -24031,32 +23991,32 @@ const ErrorPage = ({ name, message, onHome }) => {
24031
23991
  * 로딩 레이아웃
24032
23992
  * @author 신민우
24033
23993
  */
24034
- const LoadingLayout = ({ tip, isLoading, error, isError, style, children, className, notFullScreen }) => {
23994
+ const LoadingLayout = ({ tip, isLoading, error, isError, style, children, className, notFullScreen, }) => {
24035
23995
  if (isError && error) {
24036
- return (React.createElement(antd.Flex, { flex: 1, style: { alignItems: 'center', justifyContent: 'center' } },
23996
+ return (React.createElement(antd.Flex, { flex: 1, style: { alignItems: "center", justifyContent: "center" } },
24037
23997
  React.createElement(ErrorPage, { name: error.name, message: error.message })));
24038
23998
  }
24039
23999
  return (React.createElement(antd.Flex, { className: className, flex: 1, style: {
24040
24000
  ...style,
24041
- alignItems: 'flex-start',
24042
- height: '100%',
24043
- overflowY: 'auto',
24044
- overflowX: 'hidden',
24045
- marginBottom: '60px',
24046
- width: '100%'
24001
+ alignItems: "flex-start",
24002
+ height: "100%",
24003
+ overflowY: "auto",
24004
+ overflowX: "hidden",
24005
+ marginBottom: "60px",
24006
+ width: "100%",
24047
24007
  }, vertical: true },
24048
24008
  React.createElement("div", { style: {
24049
- position: 'absolute',
24050
- width: 'calc(100vw - 350px)',
24051
- height: 'calc(100vh - 350px)',
24052
- background: '#ffffffcc',
24009
+ position: "absolute",
24010
+ width: "calc(100vw - 350px)",
24011
+ height: "calc(100vh - 350px)",
24012
+ background: "#ffffffcc",
24053
24013
  zIndex: isLoading ? 1001 : -1,
24054
- display: 'flex',
24055
- justifyContent: 'center',
24056
- alignItems: 'center',
24014
+ display: "flex",
24015
+ justifyContent: "center",
24016
+ alignItems: "center",
24057
24017
  opacity: isLoading ? 1 : 0,
24058
- transition: 'opacity 0.5s'
24059
- } }, isLoading && (React.createElement(antd.Spin, { fullscreen: notFullScreen === undefined ? false : true, tip: notFullScreen === undefined ? undefined : tip ?? '목록 불러오는중', size: 'large', indicator: React.createElement(icons.LoadingOutlined, { style: { fontSize: 48 }, spin: true }) }))),
24018
+ transition: "opacity 0.5s",
24019
+ } }, isLoading && (React.createElement(antd.Spin, { fullscreen: notFullScreen === undefined ? false : true, tip: notFullScreen === undefined ? undefined : tip ?? "목록 불러오는중", size: "large", indicator: React.createElement(icons.LoadingOutlined, { style: { fontSize: 48 }, spin: true }) }))),
24060
24020
  children));
24061
24021
  };
24062
24022
 
@@ -24124,12 +24084,12 @@ exports.AntBaseModalCreate = AntBaseModalCreate;
24124
24084
  exports.AntBaseTable = AntBaseTable$1;
24125
24085
  exports.AuthTable = AuthTable;
24126
24086
  exports.ContentLayout = ContentLayout;
24127
- exports.TbContext = TbContext;
24128
24087
  exports.TbFrame = TbFrame;
24129
24088
  exports.TbProvider = TbProvider;
24130
24089
  exports.TbpProvider = TbpProvider;
24131
24090
  exports.Tbpage = Tbpage;
24132
24091
  exports.TbpageMulti = TbpageMulti;
24133
24092
  exports.TbpageSm = TbpageSm;
24093
+ exports.tbContext = tbContext;
24134
24094
  exports.useTbState = useTbState;
24135
24095
  //# sourceMappingURL=index.js.map