@owp/core 2.5.14 → 2.5.15

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 (44) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index15.js +2 -2
  6. package/dist/_virtual/index5.js +2 -2
  7. package/dist/components/OwpDialog/OwpAlertDialog.js +46 -0
  8. package/dist/components/OwpDialog/OwpAlertDialog.js.map +1 -0
  9. package/dist/components/OwpDialog/OwpDialog.js +41 -38
  10. package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
  11. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +145 -137
  12. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  13. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +195 -160
  14. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  15. package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +7 -6
  16. package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -1
  17. package/dist/features/themePreview/components/ThemePreviewColorField.js +79 -75
  18. package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
  19. package/dist/hooks/useConfirm.js +55 -65
  20. package/dist/hooks/useConfirm.js.map +1 -1
  21. package/dist/index.js +69 -67
  22. package/dist/index.js.map +1 -1
  23. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  24. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  25. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  26. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  30. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  31. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  32. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  33. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  34. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  35. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  36. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  37. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  38. package/dist/types/components/OwpDialog/OwpAlertDialog.d.ts +25 -0
  39. package/dist/types/components/OwpDialog/OwpDialog.d.ts +2 -0
  40. package/dist/types/components/OwpDialog/index.d.ts +1 -0
  41. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
  42. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +6 -2
  43. package/dist/types/hooks/useConfirm.d.ts +7 -14
  44. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  var C = Object.defineProperty;
2
2
  var i = (u, a) => C(u, "name", { value: a, configurable: !0 });
3
- import { __exports as r } from "../../../../../../../../_virtual/index8.js";
3
+ import { __exports as r } from "../../../../../../../../_virtual/index7.js";
4
4
  import { __require as U } from "./EAN13.js";
5
5
  import { __require as s } from "./EAN8.js";
6
6
  import { __require as l } from "./EAN5.js";
@@ -1,6 +1,6 @@
1
1
  var b = Object.defineProperty;
2
2
  var r = (a, f) => b(a, "name", { value: f, configurable: !0 });
3
- import { __exports as u } from "../../../../../../../../_virtual/index14.js";
3
+ import { __exports as u } from "../../../../../../../../_virtual/index13.js";
4
4
  import { __require as p } from "../Barcode.js";
5
5
  var c;
6
6
  function w() {
@@ -1,6 +1,6 @@
1
1
  var o = Object.defineProperty;
2
2
  var r = (n, s) => o(n, "name", { value: s, configurable: !0 });
3
- import { __exports as e } from "../../../../../../../../_virtual/constants3.js";
3
+ import { __exports as e } from "../../../../../../../../_virtual/constants2.js";
4
4
  var t;
5
5
  function _() {
6
6
  return t ? e : (t = 1, Object.defineProperty(e, "__esModule", {
@@ -1,6 +1,6 @@
1
1
  var T = Object.defineProperty;
2
2
  var i = (u, t) => T(u, "name", { value: t, configurable: !0 });
3
- import { __exports as e } from "../../../../../../../../_virtual/index9.js";
3
+ import { __exports as e } from "../../../../../../../../_virtual/index8.js";
4
4
  import { __require as f } from "./ITF.js";
5
5
  import { __require as n } from "./ITF14.js";
6
6
  var a;
@@ -1,6 +1,6 @@
1
1
  var v = Object.defineProperty;
2
2
  var I = (M, _) => v(M, "name", { value: _, configurable: !0 });
3
- import { __exports as r } from "../../../../../../../../_virtual/index10.js";
3
+ import { __exports as r } from "../../../../../../../../_virtual/index9.js";
4
4
  import { __require as n } from "./MSI.js";
5
5
  import { __require as s } from "./MSI10.js";
6
6
  import { __require as l } from "./MSI11.js";
@@ -1,6 +1,6 @@
1
1
  var p = Object.defineProperty;
2
2
  var a = (f, c) => p(f, "name", { value: c, configurable: !0 });
3
- import { __exports as i } from "../../../../../../../../_virtual/index12.js";
3
+ import { __exports as i } from "../../../../../../../../_virtual/index11.js";
4
4
  import { __require as g } from "../Barcode.js";
5
5
  var h;
6
6
  function w() {
@@ -1,6 +1,6 @@
1
1
  var v = Object.defineProperty;
2
2
  var i = (u, f) => v(u, "name", { value: f, configurable: !0 });
3
- import { __exports as a } from "../../../../../../../../_virtual/index11.js";
3
+ import { __exports as a } from "../../../../../../../../_virtual/index10.js";
4
4
  import { __require as y } from "../Barcode.js";
5
5
  var c;
6
6
  function q() {
@@ -1,6 +1,6 @@
1
1
  var v = Object.defineProperty;
2
2
  var _ = (a, t) => v(a, "name", { value: t, configurable: !0 });
3
- import { __exports as r } from "../../../../../../../_virtual/index15.js";
3
+ import { __exports as r } from "../../../../../../../_virtual/index14.js";
4
4
  import { __require as f } from "./canvas.js";
5
5
  import { __require as q } from "./svg.js";
6
6
  import { __require as c } from "./object.js";
@@ -1,6 +1,6 @@
1
1
  var i = Object.defineProperty;
2
2
  var r = (t, s) => i(t, "name", { value: s, configurable: !0 });
3
- import { __module as e } from "../../../../../_virtual/index5.js";
3
+ import { __module as e } from "../../../../../_virtual/index15.js";
4
4
  import { __require as u } from "./cjs/react-is.production.min.js";
5
5
  import { __require as p } from "./cjs/react-is.development.js";
6
6
  var o;
@@ -0,0 +1,25 @@
1
+ import type { ButtonProps } from '@mui/material';
2
+ import type { DialogProps } from '@toolpad/core/useDialogs';
3
+ import type { ReactNode } from 'react';
4
+ export type OwpAlertDialogSeverity = 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
5
+ export interface OwpAlertDialogPayload {
6
+ title?: ReactNode | string;
7
+ description?: ReactNode | string;
8
+ okText?: string;
9
+ cancelText?: string;
10
+ severity?: OwpAlertDialogSeverity;
11
+ useInfo?: boolean;
12
+ okButtonProps?: ButtonProps;
13
+ cancelButtonProps?: ButtonProps;
14
+ }
15
+ /**
16
+ * 경고성 확인 대화상자 컴포넌트
17
+ * @param payload 대화상자 표시 속성
18
+ * @param open 열림 여부
19
+ * @param onClose 닫힘 핸들러
20
+ */
21
+ declare const OwpAlertDialog: {
22
+ ({ payload, open, onClose, }: DialogProps<OwpAlertDialogPayload, boolean>): import("react/jsx-runtime").JSX.Element;
23
+ displayName: string;
24
+ };
25
+ export { OwpAlertDialog };
@@ -4,6 +4,7 @@ export interface OwpDialogProps extends Omit<DialogProps, 'title'> {
4
4
  title?: ReactNode;
5
5
  children?: ReactNode;
6
6
  loading?: boolean;
7
+ alertDialog?: boolean;
7
8
  canConfirm?: boolean;
8
9
  canCancel?: boolean;
9
10
  confirmText?: string;
@@ -19,6 +20,7 @@ export interface OwpDialogProps extends Omit<DialogProps, 'title'> {
19
20
  * @param title 제목
20
21
  * @param children 하위 콘텐츠
21
22
  * @param loading 본문 로딩 여부
23
+ * @param alertDialog alertdialog role 적용 여부
22
24
  * @param canCancel canCancel 값
23
25
  * @param canConfirm canConfirm 값
24
26
  * @param onConfirm onConfirm 핸들러
@@ -1 +1,2 @@
1
+ export * from './OwpAlertDialog';
1
2
  export * from './OwpDialog';
@@ -60,6 +60,7 @@ export interface OwpTreeGridProps<T> {
60
60
  highlightEditableCells?: boolean;
61
61
  highlightChangedCells?: boolean;
62
62
  syncDeletedRowCanEdit?: boolean;
63
+ confirmDeletedRowRemoval?: boolean;
63
64
  loading?: boolean;
64
65
  showLoading?: boolean;
65
66
  }
@@ -75,5 +76,5 @@ export interface OwpTreeGridProps<T> {
75
76
  * @param canUseTableRadius TreeGrid 내부 테이블 radius 사용 여부
76
77
  * @param tableBorderRadius TreeGrid 내부 테이블 radius 값
77
78
  */
78
- declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, toolbarRowBackgroundColor, className, style, height, width, canUseTableRadius, tableBorderRadius, layoutUrl, layoutData, dataUrl, layoutOverrides, data, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, columnEditRules, highlightEditableCells, highlightChangedCells, syncDeletedRowCanEdit, loading, showLoading, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
79
+ declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, toolbarRowBackgroundColor, className, style, height, width, canUseTableRadius, tableBorderRadius, layoutUrl, layoutData, dataUrl, layoutOverrides, data, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, columnEditRules, highlightEditableCells, highlightChangedCells, syncDeletedRowCanEdit, confirmDeletedRowRemoval, loading, showLoading, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
79
80
  export { OwpTreeGrid };
@@ -1,5 +1,5 @@
1
1
  import { type Dispatch, type RefObject, type SetStateAction } from 'react';
2
- import type { OwpTreeGridBodyData, OwpTreeGridColumnEditRule, OwpTreeGridLayoutConfig, OwpTreeGridProps } from '../OwpTreeGrid';
2
+ import type { OwpTreeGridBodyData, OwpTreeGridColumnEditRule, OwpTreeGridLayoutConfig, OwpTreeGridProps, OwpTreeGridRowModel } from '../OwpTreeGrid';
3
3
  import { type TreeGridColumnEditRuleLookup, type TreeGridColumnEditRulesState } from './treeGridColumnEditRules';
4
4
  export declare const TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS = 300;
5
5
  type TreeGridInitializationInput<T> = {
@@ -13,7 +13,11 @@ type TreeGridInitializationInput<T> = {
13
13
  height?: string | number;
14
14
  languageId: string;
15
15
  };
16
- export type TreeGridEventHandlers<T> = Pick<OwpTreeGridProps<T>, 'onSelect' | 'onRowClick' | 'onRowAdd' | 'onRowDelete' | 'onRowUndelete' | 'onRowChange' | 'onClickButton' | 'onSave' | 'onReady' | 'onAfterValueChanged'>;
16
+ type TreeGridBeforeRowUndeleteAction = 'cancel' | 'remove' | 'undelete';
17
+ type TreeGridBeforeRowUndeleteHandler<T> = (grid: TGrid, row: OwpTreeGridRowModel<T>) => TreeGridBeforeRowUndeleteAction | undefined | Promise<TreeGridBeforeRowUndeleteAction | undefined>;
18
+ export type TreeGridEventHandlers<T> = Pick<OwpTreeGridProps<T>, 'onSelect' | 'onRowClick' | 'onRowAdd' | 'onRowDelete' | 'onRowUndelete' | 'onRowChange' | 'onClickButton' | 'onSave' | 'onReady' | 'onAfterValueChanged'> & {
19
+ onBeforeRowUndelete?: TreeGridBeforeRowUndeleteHandler<T>;
20
+ };
17
21
  export type TreeGridEventBindingOptions<T> = Pick<OwpTreeGridProps<T>, 'id'> & {
18
22
  latestEventHandlersRef: RefObject<TreeGridEventHandlers<T>>;
19
23
  highlightEditableCellsRef: RefObject<boolean>;
@@ -1,16 +1,9 @@
1
- import { ButtonProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- export interface ConfirmProps {
4
- title?: ReactNode | string;
5
- okText?: string;
6
- cancelText?: string;
7
- severity?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
8
- useInfo?: boolean;
9
- okButtonProps?: ButtonProps;
1
+ import type { OwpAlertDialogPayload } from '@/components/OwpDialog';
2
+ import type { ButtonProps } from '@mui/material';
3
+ export interface ConfirmProps extends Omit<OwpAlertDialogPayload, 'cancelButtonProps'> {
10
4
  onClose?: (result: boolean) => Promise<void>;
11
5
  }
12
6
  interface ConfirmBaseProps extends ConfirmProps {
13
- okButtonProps?: ButtonProps;
14
7
  cancelButtonProps?: ButtonProps;
15
8
  }
16
9
  /**
@@ -18,9 +11,9 @@ interface ConfirmBaseProps extends ConfirmProps {
18
11
  */
19
12
  export declare const useConfirm: () => {
20
13
  confirm: (props: ConfirmBaseProps) => Promise<boolean>;
21
- confirmInfo: ({ title, okText, severity }?: ConfirmProps | undefined) => Promise<boolean>;
22
- confirmSave: ({ title, okText, cancelText, okButtonProps, }?: ConfirmProps | undefined) => Promise<boolean>;
23
- confirmUpdate: ({ title, okText, cancelText, okButtonProps, }?: ConfirmProps | undefined) => Promise<boolean>;
24
- confirmDelete: ({ title, okText, cancelText, okButtonProps, }?: ConfirmProps | undefined) => Promise<boolean>;
14
+ confirmInfo: ({ title, description, okText, severity, }?: ConfirmProps | undefined) => Promise<boolean>;
15
+ confirmSave: ({ title, description, okText, cancelText, okButtonProps, }?: ConfirmProps | undefined) => Promise<boolean>;
16
+ confirmUpdate: ({ title, description, okText, cancelText, okButtonProps, }?: ConfirmProps | undefined) => Promise<boolean>;
17
+ confirmDelete: ({ title, description, okText, cancelText, okButtonProps, }?: ConfirmProps | undefined) => Promise<boolean>;
25
18
  };
26
19
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owp/core",
3
3
  "private": false,
4
- "version": "2.5.14",
4
+ "version": "2.5.15",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",