@owp/core 2.5.20 → 2.5.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dayjs.d.ts +4 -0
  2. package/dayjs.js +2 -0
  3. package/dist/_virtual/isBetween.js +8 -0
  4. package/dist/_virtual/isBetween.js.map +1 -0
  5. package/dist/_virtual/isBetween2.js +5 -0
  6. package/dist/_virtual/isBetween2.js.map +1 -0
  7. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js +26 -26
  8. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
  9. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js +29 -29
  10. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
  11. package/dist/components/OwpMrtTable/OwpMrtTable.js +144 -141
  12. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  13. package/dist/components/OwpOptionSelector/OwpOptionSelector.js +20 -20
  14. package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
  15. package/dist/components/OwpPageContent/OwpPageContent.js +20 -19
  16. package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
  17. package/dist/components/OwpPicker/OwpDatePicker.js +216 -235
  18. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  19. package/dist/components/OwpPicker/OwpDateRangePicker.js +21 -21
  20. package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
  21. package/dist/components/OwpPicker/OwpTimePicker.js +310 -340
  22. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  23. package/dist/components/OwpPicker/OwpWeekDatePicker.js +28 -29
  24. package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
  25. package/dist/components/OwpPicker/OwpYearRangePicker.js +1 -1
  26. package/dist/components/OwpPicker/OwpYearRangePicker.js.map +1 -1
  27. package/dist/components/OwpPicker/constants/index.js +21 -6
  28. package/dist/components/OwpPicker/constants/index.js.map +1 -1
  29. package/dist/components/OwpPicker/internal/DatePickerInput.js +5 -5
  30. package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
  31. package/dist/components/OwpPicker/utils/index.js +22 -0
  32. package/dist/components/OwpPicker/utils/index.js.map +1 -0
  33. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +218 -205
  34. package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
  35. package/dist/components/OwpSection/OwpSection.js +118 -111
  36. package/dist/components/OwpSection/OwpSection.js.map +1 -1
  37. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +59 -59
  38. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
  39. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js +88 -85
  40. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
  41. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js +93 -93
  42. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js.map +1 -1
  43. package/dist/components/OwpTable/OwpDataTable.js +329 -317
  44. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  45. package/dist/components/OwpTable/OwpFieldTable.js +77 -74
  46. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  47. package/dist/components/OwpTable/OwpTable.js +66 -219
  48. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  49. package/dist/components/OwpTable/internal/OwpTableBase.js +195 -0
  50. package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -0
  51. package/dist/components/OwpTable/internal/OwpTableTotalCount.js +23 -0
  52. package/dist/components/OwpTable/internal/OwpTableTotalCount.js.map +1 -0
  53. package/dist/components/OwpTable/internal/defaultTableStyle.js +10 -10
  54. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
  55. package/dist/components/OwpTable/utils/tableSx.js +9 -0
  56. package/dist/components/OwpTable/utils/tableSx.js.map +1 -0
  57. package/dist/components/OwpTextField/OwpTextMaskField.js +95 -86
  58. package/dist/components/OwpTextField/OwpTextMaskField.js.map +1 -1
  59. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +1 -1
  60. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  61. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +164 -179
  62. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  63. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +10 -10
  64. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  65. package/dist/components/OwpYesNoSelector/OwpYesNoSelector.js.map +1 -1
  66. package/dist/dayjs.js +18 -0
  67. package/dist/dayjs.js.map +1 -0
  68. package/dist/features/themePreview/components/ThemePreviewCanvas.js +22 -22
  69. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
  70. package/dist/features/themePreview/configs/table.js +4 -4
  71. package/dist/features/themePreview/configs/table.js.map +1 -1
  72. package/dist/features/themePreview/hooks/useThemePreview.js +16 -16
  73. package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
  74. package/dist/hooks/{useInitCommonCodes.js → internal/useInitCommonCodes.js} +6 -6
  75. package/dist/hooks/internal/useInitCommonCodes.js.map +1 -0
  76. package/dist/hooks/internal/useMinimumVisibleState.js +31 -0
  77. package/dist/hooks/internal/useMinimumVisibleState.js.map +1 -0
  78. package/dist/hooks/useInitApp.js +17 -14
  79. package/dist/hooks/useInitApp.js.map +1 -1
  80. package/dist/hooks.js +49 -51
  81. package/dist/hooks.js.map +1 -1
  82. package/dist/index.js +91 -94
  83. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js +23 -0
  84. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js.map +1 -0
  85. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  86. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  87. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  88. package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +3 -3
  89. package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +3 -3
  90. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +1 -0
  91. package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +2 -2
  92. package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +1 -1
  93. package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +2 -2
  94. package/dist/types/components/OwpPicker/constants/index.d.ts +15 -0
  95. package/dist/types/components/OwpPicker/utils/index.d.ts +6 -0
  96. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +1 -1
  97. package/dist/types/components/OwpQuerySelector/types/types.d.ts +1 -0
  98. package/dist/types/components/OwpSection/OwpSection.d.ts +9 -3
  99. package/dist/types/components/OwpSelectorBase/hooks/useOwpSelectorBase.d.ts +1 -1
  100. package/dist/types/components/OwpSelectorBase/types/types.d.ts +1 -1
  101. package/dist/types/components/OwpTable/OwpDataTable.d.ts +5 -1
  102. package/dist/types/components/OwpTable/OwpFieldTable.d.ts +7 -1
  103. package/dist/types/components/OwpTable/OwpTable.d.ts +6 -38
  104. package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +34 -0
  105. package/dist/types/components/OwpTable/internal/OwpTableTotalCount.d.ts +9 -0
  106. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +4 -2
  107. package/dist/types/components/OwpTable/utils/tableSx.d.ts +11 -0
  108. package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +3 -3
  109. package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +1 -1
  110. package/dist/types/dayjs.d.ts +18 -0
  111. package/dist/types/hooks/index.d.ts +0 -1
  112. package/dist/types/hooks/internal/useMinimumVisibleState.d.ts +7 -0
  113. package/dist/types/utils/dayjsBrowser.d.ts +1 -7
  114. package/dist/types/utils/formatDateToYmd.d.ts +1 -1
  115. package/dist/utils/formatDateToYmd.js +3 -3
  116. package/dist/utils/formatDateToYmd.js.map +1 -1
  117. package/dist/utils/treeGridExportExcelUtil.js +1 -1
  118. package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
  119. package/dist/utils/zipUtil.js +3 -3
  120. package/dist/utils/zipUtil.js.map +1 -1
  121. package/package.json +3 -1
  122. package/dist/hooks/useInitCommonCodes.js.map +0 -1
  123. package/dist/utils/dayjsBrowser.js +0 -16
  124. package/dist/utils/dayjsBrowser.js.map +0 -1
  125. /package/dist/types/hooks/{useInitCommonCodes.d.ts → internal/useInitCommonCodes.d.ts} +0 -0
@@ -3,8 +3,10 @@ import type { HTMLAttributes, ReactNode } from 'react';
3
3
  interface OwpSectionProps {
4
4
  className?: string;
5
5
  headerProps?: HTMLAttributes<HTMLDivElement>;
6
+ titleContainerClassName?: string;
7
+ titleIconClassName?: string;
8
+ titleTextClassName?: string;
6
9
  disableTitleIcon?: boolean;
7
- usePageTitle?: boolean;
8
10
  title?: ReactNode;
9
11
  actions?: ReactNode;
10
12
  leftSlot?: ReactNode;
@@ -12,6 +14,7 @@ interface OwpSectionProps {
12
14
  children?: ReactNode;
13
15
  iconSize?: IconProps['fontSize'];
14
16
  loading?: boolean;
17
+ showDivider?: boolean;
15
18
  }
16
19
  /**
17
20
  * OwpSection 컴포넌트
@@ -19,11 +22,14 @@ interface OwpSectionProps {
19
22
  * @param title 제목
20
23
  * @param disableTitleIcon disableTitleIcon 값
21
24
  * @param headerProps headerProps props
22
- * @param usePageTitle usePageTitle
25
+ * @param titleContainerClassName 제목 영역 CSS 클래스명
26
+ * @param titleIconClassName 제목 아이콘 CSS 클래스명
27
+ * @param titleTextClassName 제목 텍스트 CSS 클래스명
23
28
  * @param leftSlot leftSlot 값
24
29
  * @param centerSlot centerSlot 값
25
30
  * @param actions 액션 영역
26
31
  * @param loading 로딩 상태
32
+ * @param showDivider 구분선 표시 여부
27
33
  */
28
- declare const OwpSection: ({ className, title, disableTitleIcon, headerProps, usePageTitle, actions, leftSlot, centerSlot, children, iconSize, loading, }: OwpSectionProps) => import("react/jsx-runtime").JSX.Element;
34
+ declare const OwpSection: ({ className, title, disableTitleIcon, headerProps, titleContainerClassName, titleIconClassName, titleTextClassName, actions, leftSlot, centerSlot, children, iconSize, loading, showDivider, }: OwpSectionProps) => import("react/jsx-runtime").JSX.Element;
29
35
  export { OwpSection };
@@ -3,4 +3,4 @@ import { type OwpSelectorBaseHookResult, type OwpSelectorBaseProps } from '../ty
3
3
  * 공통 선택기 상태 훅
4
4
  * @param props 공통 선택기 props
5
5
  */
6
- export declare const useOwpSelectorBase: ({ allOptions, allValueMode, defaultValue, disableAllValueItem, multiple, name, onChange, options, value, }: OwpSelectorBaseProps) => OwpSelectorBaseHookResult;
6
+ export declare const useOwpSelectorBase: ({ allOptions, allValueMode, defaultValue, multiple, name, onChange, options, showAllOption, value, }: OwpSelectorBaseProps) => OwpSelectorBaseHookResult;
@@ -21,7 +21,7 @@ export interface OwpSelectorBaseProps {
21
21
  selectorType?: OwpSelectorType;
22
22
  allValueMode?: OwpSelectorAllValueMode;
23
23
  defaultValue?: string;
24
- disableAllValueItem?: boolean;
24
+ showAllOption?: boolean;
25
25
  disabled?: boolean;
26
26
  disableClientFilter?: boolean;
27
27
  error?: boolean;
@@ -32,7 +32,9 @@ interface OwpDataTableProps<T extends Row = Row> {
32
32
  canSelectingSingle?: boolean;
33
33
  canUseOrderBy?: boolean;
34
34
  canTableRadiusZero?: boolean;
35
+ canUseTableRadius?: boolean;
35
36
  canUseTreeGridStyle?: boolean;
37
+ tableBorderRadius?: string | number;
36
38
  fixedRowCount?: number;
37
39
  }
38
40
  type OwpDataTableBlurEvent = Record<string, unknown> & {
@@ -49,8 +51,10 @@ type OwpDataTableBlurEvent = Record<string, unknown> & {
49
51
  * @param rows 행 데이터 목록
50
52
  * @param selected selected 값
51
53
  * @param canTableRadiusZero 테이블 radius 0 사용 여부
54
+ * @param canUseTableRadius 테이블 radius 사용 여부
52
55
  * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
56
+ * @param tableBorderRadius 테이블 radius 값
53
57
  * @param fixedRowCount 고정 row 수
54
58
  */
55
- export declare function OwpDataTable<T extends Row = Row>({ className, sx, headSx, headCells, rows, selected, canCheckbox, canTotalCountRow, canSelectingSingle, canUseOrderBy, canTableRadiusZero, canUseTreeGridStyle, fixedRowCount, onSelect, onBlur, }: OwpDataTableProps<T>): import("react/jsx-runtime").JSX.Element;
59
+ export declare function OwpDataTable<T extends Row = Row>({ className, sx, headSx, headCells, rows, selected, canCheckbox, canTotalCountRow, canSelectingSingle, canUseOrderBy, canTableRadiusZero, canUseTableRadius, canUseTreeGridStyle, tableBorderRadius, fixedRowCount, onSelect, onBlur, }: OwpDataTableProps<T>): import("react/jsx-runtime").JSX.Element;
56
60
  export {};
@@ -32,7 +32,10 @@ interface OwpFieldTableProps {
32
32
  colGroupSlot?: ReactNode;
33
33
  className?: string;
34
34
  tableLayout?: 'auto' | 'fixed';
35
+ canTableRadiusZero?: boolean;
36
+ canUseTableRadius?: boolean;
35
37
  canUseTreeGridStyle?: boolean;
38
+ tableBorderRadius?: string | number;
36
39
  }
37
40
  /**
38
41
  * OwpFieldTable 컴포넌트
@@ -45,7 +48,10 @@ interface OwpFieldTableProps {
45
48
  * @param colGroupSlot colGroupSlot 값
46
49
  * @param className className 값
47
50
  * @param tableLayout tableLayout 값
51
+ * @param canTableRadiusZero 테이블 radius 0 사용 여부
52
+ * @param canUseTableRadius 테이블 radius 사용 여부
48
53
  * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
54
+ * @param tableBorderRadius 테이블 radius 값
49
55
  */
50
- export declare function OwpFieldTable({ layout, titleWidth, titleSx, treeGridTitleCellSx, cellSx, data, colGroupSlot, className, tableLayout, canUseTreeGridStyle, }: OwpFieldTableProps): import("react/jsx-runtime").JSX.Element;
56
+ export declare function OwpFieldTable({ layout, titleWidth, titleSx, treeGridTitleCellSx, cellSx, data, colGroupSlot, className, tableLayout, canTableRadiusZero, canUseTableRadius, canUseTreeGridStyle, tableBorderRadius, }: OwpFieldTableProps): import("react/jsx-runtime").JSX.Element;
51
57
  export {};
@@ -1,43 +1,7 @@
1
- import { type OwpResolvedGridThemeConfigType } from '@/constants/gridTheme';
2
- import { type OwpResolvedTableThemeConfigType } from '@/constants/tableTheme';
3
- import { type Theme } from '@mui/material';
4
- import { type TableProps } from '@mui/material/Table';
5
- import { type TableContainerProps } from '@mui/material/TableContainer';
6
- import { type ReactNode } from 'react';
1
+ import { type OwpTableBaseProps } from './internal/OwpTableBase';
7
2
  type OwpTableCellValue = string | number;
8
3
  type OwpTableHeaderRow = Record<string, OwpTableCellValue>;
9
- interface StyledTableProps extends TableProps {
10
- canBodyFullHeight?: boolean;
11
- canUseTreeGridStyle?: boolean;
12
- containerProps?: TableContainerProps;
13
- footerSlot?: ReactNode;
14
- tableTheme?: OwpResolvedTableThemeConfigType;
15
- tableLayout?: 'auto' | 'fixed';
16
- treeGridTheme?: OwpResolvedGridThemeConfigType;
17
- title?: string;
18
- children: ReactNode;
19
- }
20
- /**
21
- * 총 row 수 표시 영역
22
- * @param borderColor 경계선 색상
23
- * @param totalCount 전체 row 수
24
- */
25
- export declare function OwpTableTotalCount({ borderColor, totalCount, }: {
26
- borderColor?: string;
27
- totalCount?: number;
28
- }): import("react/jsx-runtime").JSX.Element;
29
- /**
30
- * StyledTable 스타일 컴포넌트
31
- * @param canBodyFullHeight body full height 사용 여부
32
- * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
33
- * @param children 하위 콘텐츠
34
- * @param containerProps containerProps props
35
- * @param footerSlot footer 영역
36
- * @param tableLayout tableLayout 값
37
- */
38
- export declare const StyledTable: ({ canBodyFullHeight, canUseTreeGridStyle, children, className, containerProps, footerSlot, tableTheme: tableThemeProp, tableLayout, ...tableProps }: StyledTableProps) => import("react/jsx-runtime").JSX.Element;
39
- export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "style" | "hover" | "selected" | "className" | "classes" | "children" | "sx"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
40
- interface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {
4
+ interface OwpTableProps<T> extends Omit<OwpTableBaseProps, 'children'> {
41
5
  canTotalCountRow?: boolean;
42
6
  headers: OwpTableHeaderRow | OwpTableHeaderRow[];
43
7
  rows: T[];
@@ -46,8 +10,12 @@ interface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {
46
10
  /**
47
11
  * OwpTable 컴포넌트
48
12
  * @param canTotalCountRow 전체 row 수 표시 여부
13
+ * @param canTableRadiusZero 테이블 radius 0 사용 여부
14
+ * @param canUseTableRadius 테이블 radius 사용 여부
15
+ * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
49
16
  * @param headers headers 값
50
17
  * @param rows 행 데이터 목록
18
+ * @param tableBorderRadius 테이블 radius 값
51
19
  * @param totalCount 전체 row 수
52
20
  */
53
21
  export declare function OwpTable<T>({ canTotalCountRow, headers, rows, totalCount, ...restTableProps }: OwpTableProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { type OwpResolvedGridThemeConfigType } from '@/constants/gridTheme';
2
+ import { type OwpResolvedTableThemeConfigType } from '@/constants/tableTheme';
3
+ import { type TableProps } from '@mui/material/Table';
4
+ import { type TableContainerProps } from '@mui/material/TableContainer';
5
+ import { type ReactNode } from 'react';
6
+ export interface OwpTableBaseProps extends TableProps {
7
+ canBodyFullHeight?: boolean;
8
+ canTableRadiusZero?: boolean;
9
+ canUseTableRadius?: boolean;
10
+ canUseTreeGridStyle?: boolean;
11
+ containerProps?: TableContainerProps;
12
+ footerSlot?: ReactNode;
13
+ tableTheme?: OwpResolvedTableThemeConfigType;
14
+ tableLayout?: 'auto' | 'fixed';
15
+ tableBorderRadius?: string | number;
16
+ treeGridTheme?: OwpResolvedGridThemeConfigType;
17
+ title?: string;
18
+ children: ReactNode;
19
+ }
20
+ /**
21
+ * OWP Table 기반 컨테이너
22
+ * @param canBodyFullHeight body full height 사용 여부
23
+ * @param canTableRadiusZero 테이블 radius 0 사용 여부
24
+ * @param canUseTableRadius 테이블 radius 사용 여부
25
+ * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
26
+ * @param children 하위 콘텐츠
27
+ * @param containerProps containerProps props
28
+ * @param footerSlot footer 영역
29
+ * @param tableLayout tableLayout 값
30
+ * @param tableBorderRadius 테이블 radius 값
31
+ */
32
+ export declare const OwpTableBase: ({ canBodyFullHeight, canTableRadiusZero, canUseTableRadius, canUseTreeGridStyle, children, className, containerProps, footerSlot, tableTheme: tableThemeProp, tableLayout, tableBorderRadius, ...tableProps }: OwpTableBaseProps) => import("react/jsx-runtime").JSX.Element;
33
+ /** OWP Table 기반 row */
34
+ export declare const OwpTableBaseRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "style" | "hover" | "selected" | "className" | "classes" | "children" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 총 row 수 표시 영역
3
+ * @param borderColor 경계선 색상
4
+ * @param totalCount 전체 row 수
5
+ */
6
+ export declare function OwpTableTotalCount({ borderColor, totalCount, }: {
7
+ borderColor?: string;
8
+ totalCount?: number;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,6 @@
1
1
  import type { OwpResolvedTableThemeConfigType } from '@/constants/tableTheme';
2
+ export declare const DEFAULT_TABLE_RADIUS = "0.5rem";
3
+ export declare const DEFAULT_TABLE_HEADER_BACKGROUND_COLOR = "#f5f5f5";
2
4
  export declare const defaultStyledTableTheme: {
3
5
  borderColor: string;
4
6
  header: {
@@ -16,19 +18,19 @@ export declare const defaultStyledTableTheme: {
16
18
  export declare const getDefaultTableCellSx: (tableTheme: OwpResolvedTableThemeConfigType) => {
17
19
  readonly fontSize: string | number;
18
20
  readonly backgroundColor: string;
19
- readonly borderBottomColor: string;
20
21
  readonly padding: "7px 10px";
22
+ readonly borderBottom: `1px solid ${string}`;
21
23
  readonly borderLeft: "none";
22
24
  readonly borderRight: "none";
23
25
  };
24
26
  /** 기본 table header cell sx */
25
27
  export declare const getDefaultTableHeaderCellSx: (tableTheme: OwpResolvedTableThemeConfigType, fallbackBackgroundColor?: string) => {
26
28
  readonly backgroundColor: string;
27
- readonly borderBottomColor: string;
28
29
  readonly color: string;
29
30
  readonly fontSize: string | number;
30
31
  readonly fontWeight: string | number;
31
32
  readonly padding: "7px 10px";
33
+ readonly borderBottom: `1px solid ${string}`;
32
34
  readonly borderLeft: "none";
33
35
  readonly borderRight: "none";
34
36
  };
@@ -0,0 +1,11 @@
1
+ import type { SxProps, Theme } from '@mui/material';
2
+ /**
3
+ * sx 조건부 배열 병합
4
+ * @param styles sx 목록
5
+ */
6
+ export declare const mergeSx: (...styles: Array<SxProps<Theme> | undefined | false>) => SxProps<Theme>;
7
+ /**
8
+ * table radius CSS 값 변환
9
+ * @param value radius 값
10
+ */
11
+ export declare const toTableRadiusCssValue: (value: number | string) => string;
@@ -2,7 +2,7 @@ import type { FormControlProps } from '@mui/material/FormControl';
2
2
  import type { InputProps as MuiInputProps } from '@mui/material/Input';
3
3
  import { type ReactNode } from 'react';
4
4
  import { type Definitions, type FactoryOpts } from 'imask';
5
- type TextMaskFieldChangeEvent = {
5
+ export type OwpTextMaskFieldChangeEvent = {
6
6
  target: {
7
7
  name: string;
8
8
  value: string;
@@ -11,7 +11,7 @@ type TextMaskFieldChangeEvent = {
11
11
  };
12
12
  type TextMaskValue = FactoryOpts['mask'];
13
13
  interface CustomProps {
14
- onMaskChange: (event: TextMaskFieldChangeEvent) => void;
14
+ onMaskChange: (event: OwpTextMaskFieldChangeEvent) => void;
15
15
  name?: string;
16
16
  mask: TextMaskValue;
17
17
  definitions?: Definitions;
@@ -28,5 +28,5 @@ type OwpTextMaskFieldProps = Omit<MuiInputProps, 'onChange' | 'inputComponent'>
28
28
  * @param definitions 사용자 정의 마스크 정의
29
29
  * @param onChange 마스크 변경 이벤트 핸들러
30
30
  */
31
- export declare function OwpTextMaskField({ className, sx, id: idProp, name, label, value, defaultValue, color, onChange, error, helperText, mask, definitions, variant, fullWidth, disabled, required, placeholder, autoFocus, inputProps, inputRef, }: OwpTextMaskFieldProps): import("react/jsx-runtime").JSX.Element;
31
+ export declare function OwpTextMaskField({ className, sx, id: idProp, name, label, value, defaultValue, color, onChange, error, helperText, mask, definitions, variant, fullWidth, disabled, required, size, placeholder, autoFocus, inputProps, inputRef, ...inputBaseProps }: OwpTextMaskFieldProps): import("react/jsx-runtime").JSX.Element;
32
32
  export {};
@@ -7,10 +7,10 @@ export interface OwpYesNoSelectorProps extends Omit<OwpOptionSelectorProps, 'opt
7
7
  /**
8
8
  * Y/N 선택 Select
9
9
  * @param label 입력 라벨
10
- * @param disableAllValueItem 전체 옵션 노출 여부
11
10
  * @param helperText 하단 안내 문구
12
11
  * @param yesLabel Y 항목 라벨
13
12
  * @param noLabel N 항목 라벨
13
+ * @param showAllOption 전체 옵션 노출 여부
14
14
  */
15
15
  declare const OwpYesNoSelector: ({ yesLabel, noLabel, ...optionSelectorProps }: OwpYesNoSelectorProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export { OwpYesNoSelector };
@@ -0,0 +1,18 @@
1
+ import dayjs from 'dayjs';
2
+ import 'virtual:owp-dayjs-locale-en';
3
+ import 'virtual:owp-dayjs-locale-ko';
4
+ export type { ConfigType, Dayjs, OpUnitType } from 'dayjs';
5
+ declare module 'dayjs' {
6
+ interface Dayjs {
7
+ isBetween(a: import('dayjs').ConfigType, b: import('dayjs').ConfigType, c?: import('dayjs').OpUnitType | null, d?: '()' | '[]' | '[)' | '(]'): boolean;
8
+ }
9
+ }
10
+ /**
11
+ * 브라우저 배포용 dayjs locale/plugin 초기화
12
+ */
13
+ export declare const ensureDayjsBrowserSetup: () => typeof dayjs;
14
+ /**
15
+ * 브라우저 배포용 dayjs 인스턴스
16
+ */
17
+ export declare const owpDayjs: typeof dayjs;
18
+ export default owpDayjs;
@@ -11,7 +11,6 @@ export * from './useDeepCompareEffect';
11
11
  export * from './useFormDataUploadMutation';
12
12
  export * from './useHeaderWrapState';
13
13
  export * from './useInitApp';
14
- export * from './useInitCommonCodes';
15
14
  export * from './useNavbar';
16
15
  export * from './useNavigation';
17
16
  export * from './useOwpSettings';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 최소 표시 상태
3
+ * @param visible 원본 표시 상태
4
+ * @param minDuration 최소 표시 시간
5
+ */
6
+ declare const useMinimumVisibleState: (visible?: boolean, minDuration?: number) => boolean;
7
+ export { useMinimumVisibleState };
@@ -1,7 +1 @@
1
- import dayjs from 'dayjs';
2
- import 'virtual:owp-dayjs-locale-en';
3
- import 'virtual:owp-dayjs-locale-ko';
4
- /**
5
- * 브라우저 배포용 dayjs locale/plugin 초기화
6
- */
7
- export declare const ensureDayjsBrowserSetup: () => typeof dayjs;
1
+ export { default, ensureDayjsBrowserSetup, owpDayjs } from '@/dayjs';
@@ -1,4 +1,4 @@
1
- import { type ConfigType } from 'dayjs';
1
+ import { type ConfigType } from '@/dayjs';
2
2
  /**
3
3
  * 날짜 문자열 포맷 유틸
4
4
  * @param date 원본 날짜 값
@@ -1,9 +1,9 @@
1
1
  var m = Object.defineProperty;
2
2
  var Y = (o, r) => m(o, "name", { value: r, configurable: !0 });
3
- import t from "dayjs";
4
- const D = /* @__PURE__ */ Y((o, r = "YYYY-MM-DD") => o == null || o === "" ? "" : t(o).format(r), "formatDateToYmd"), a = /* @__PURE__ */ Y((o = "YYYY-MM-DD") => t().format(o), "getTodayYmd");
3
+ import { owpDayjs as t } from "../dayjs.js";
4
+ const n = /* @__PURE__ */ Y((o, r = "YYYY-MM-DD") => o == null || o === "" ? "" : t(o).format(r), "formatDateToYmd"), a = /* @__PURE__ */ Y((o = "YYYY-MM-DD") => t().format(o), "getTodayYmd");
5
5
  export {
6
- D as formatDateToYmd,
6
+ n as formatDateToYmd,
7
7
  a as getTodayYmd
8
8
  };
9
9
  //# sourceMappingURL=formatDateToYmd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatDateToYmd.js","sources":["../../src/utils/formatDateToYmd.ts"],"sourcesContent":["import dayjs, { type ConfigType } from 'dayjs';\n\n/**\n * 날짜 문자열 포맷 유틸\n * @param date 원본 날짜 값\n * @param format 출력 포맷\n */\nexport const formatDateToYmd = (date?: ConfigType | null, format = 'YYYY-MM-DD') => {\n if (date == null || date === '') {\n return '';\n }\n\n return dayjs(date).format(format);\n};\n\n/**\n * 오늘 날짜 문자열 포맷 유틸\n * @param format 출력 포맷\n */\nexport const getTodayYmd = (format = 'YYYY-MM-DD') => dayjs().format(format);\n"],"names":["formatDateToYmd","__name","date","format","dayjs","getTodayYmd"],"mappings":";;;AAOO,MAAMA,IAAkB,gBAAAC,EAAA,CAACC,GAA0BC,IAAS,iBAC7DD,KAAQ,QAAQA,MAAS,KACpB,KAGFE,EAAMF,CAAI,EAAE,OAAOC,CAAM,GALH,oBAYlBE,IAAc,gBAAAJ,EAAA,CAACE,IAAS,iBAAiBC,EAAA,EAAQ,OAAOD,CAAM,GAAhD;"}
1
+ {"version":3,"file":"formatDateToYmd.js","sources":["../../src/utils/formatDateToYmd.ts"],"sourcesContent":["import dayjs, { type ConfigType } from '@/dayjs';\n\n/**\n * 날짜 문자열 포맷 유틸\n * @param date 원본 날짜 값\n * @param format 출력 포맷\n */\nexport const formatDateToYmd = (date?: ConfigType | null, format = 'YYYY-MM-DD') => {\n if (date == null || date === '') {\n return '';\n }\n\n return dayjs(date).format(format);\n};\n\n/**\n * 오늘 날짜 문자열 포맷 유틸\n * @param format 출력 포맷\n */\nexport const getTodayYmd = (format = 'YYYY-MM-DD') => dayjs().format(format);\n"],"names":["formatDateToYmd","__name","date","format","dayjs","getTodayYmd"],"mappings":";;;AAOO,MAAMA,IAAkB,gBAAAC,EAAA,CAACC,GAA0BC,IAAS,iBAC7DD,KAAQ,QAAQA,MAAS,KACpB,KAGFE,EAAMF,CAAI,EAAE,OAAOC,CAAM,GALH,oBAYlBE,IAAc,gBAAAJ,EAAA,CAACE,IAAS,iBAAiBC,EAAA,EAAQ,OAAOD,CAAM,GAAhD;"}
@@ -1,6 +1,6 @@
1
1
  var Z = Object.defineProperty;
2
2
  var l = (t, e) => Z(t, "name", { value: e, configurable: !0 });
3
- import $ from "dayjs";
3
+ import { owpDayjs as $ } from "../dayjs.js";
4
4
  import { enqueueSnackbar as Q } from "notistack";
5
5
  import { exportExcelByBuffer as v } from "./excelUtil.js";
6
6
  import { loadExcelJSBrowser as tt } from "./exceljsBrowser.js";