@thefreshop/tb 1.0.1 → 1.0.2

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