@ehfuse/mui-form-controls 3.5.3 → 3.5.5
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.
|
@@ -17,6 +17,8 @@ import { type PropertyBindingProps } from "./binding";
|
|
|
17
17
|
export interface PropertyOption {
|
|
18
18
|
value: string | number;
|
|
19
19
|
label: string;
|
|
20
|
+
/** 보이지만 고를 수 없는 칸(3.5.5) — "준비 중" 처럼 있다는 것만 알릴 때. */
|
|
21
|
+
disabled?: boolean;
|
|
20
22
|
}
|
|
21
23
|
/** 속성 줄 머리(아이콘 · 라벨 · 자리). */
|
|
22
24
|
interface PropertyHeadProps extends PropertyRowLayoutProps {
|
|
@@ -19,6 +19,12 @@ export interface PropertyInputProps extends PropertyBindingProps<string> {
|
|
|
19
19
|
inputMode?: "text" | "tel" | "email" | "numeric" | "decimal" | "url" | "search" | "none";
|
|
20
20
|
maxLength?: number;
|
|
21
21
|
readOnly?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 한 줄 칸의 입력 종류(3.5.5) — "password" 면 친 글을 가린다(비밀번호 · 비밀 키를 속성 줄에 둘 때). 여러 줄(multiline)에는 쓰지 않는다.
|
|
24
|
+
*/
|
|
25
|
+
type?: "text" | "password";
|
|
26
|
+
/** 브라우저 자동완성 — 비밀 칸은 "new-password" · "off" 로 저장된 비밀번호가 채워지지 않게. */
|
|
27
|
+
autoComplete?: string;
|
|
22
28
|
/**
|
|
23
29
|
* 저장 전에 친 글을 바꾼다(전화번호 하이픈 · 8자리 날짜 등). null 을 돌려주면 틀린 값 — 저장하지 않고 되돌린다.
|
|
24
30
|
*/
|
|
@@ -67,12 +73,26 @@ export declare function parseDateText(raw: string): string | null;
|
|
|
67
73
|
export interface PropertyDateInputProps extends PropertyInputProps {
|
|
68
74
|
/** 달력의 빨간 날(공휴일). */
|
|
69
75
|
holidays?: Date[];
|
|
76
|
+
/**
|
|
77
|
+
* 값을 누르면 달력을 연다(기본 true — 날짜 전용 칸). false 면 오른쪽 아이콘으로만 연다 — 글을 자유롭게 적는 칸(PropertyTextDate)이
|
|
78
|
+
* 글을 고치려고 누를 때마다 달력이 덮지 않게.
|
|
79
|
+
*/
|
|
80
|
+
openOnClick?: boolean;
|
|
70
81
|
}
|
|
71
82
|
/** 날짜 칸(줄 없이 칸만). `form` + `name` 또는 `value` + `onCommit`. */
|
|
72
83
|
export declare const PropertyDateInput: {
|
|
73
84
|
(props: PropertyDateInputProps): import("react/jsx-runtime").JSX.Element;
|
|
74
85
|
displayName: string;
|
|
75
86
|
};
|
|
87
|
+
/** 글 + 달력 칸(줄 없이 칸만). `form` + `name` 또는 `value` + `onCommit`. */
|
|
88
|
+
export declare const PropertyTextDateInput: {
|
|
89
|
+
(props: PropertyDateInputProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
displayName: string;
|
|
91
|
+
};
|
|
92
|
+
/** 글 + 달력 속성 줄 — 자유롭게 적거나 오른쪽 아이콘으로 날짜를 고른다. */
|
|
93
|
+
export declare function PropertyTextDate({ icon, label, wide, full, rowStart, alignTop, rowSx, endAdornment, appearance, ...input }: PropertyTextProps & {
|
|
94
|
+
holidays?: Date[];
|
|
95
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
76
96
|
/** 날짜 속성 줄 — 달력에서 고르거나 YYYY-MM-DD(8자리 숫자도)로 친다. 꼴이 틀리면 저장하지 않고 되돌린다. */
|
|
77
97
|
export declare function PropertyDate({ icon, label, wide, full, rowStart, alignTop, rowSx, endAdornment, appearance, ...input }: PropertyTextProps & {
|
|
78
98
|
holidays?: Date[];
|
package/dist/property/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { PropertyRow, PropertyGrid, PropertyEmpty, PROPERTY_GRID_TWO_COLUMN_MIN,
|
|
|
11
11
|
export type { PropertyRowProps, PropertyRowLayoutProps, PropertyGridProps } from "./PropertyRow";
|
|
12
12
|
export { withPropertyForm, writeFormValue } from "./binding";
|
|
13
13
|
export type { PropertyBindingProps, PropertyCommitHandler } from "./binding";
|
|
14
|
-
export { PropertyInput, PROPERTY_BORDERED_SX, PropertyText, PropertyTextArea, PropertyDate, PropertyDateInput, isDateText, normalizeDateText, parseDateText } from "./PropertyText";
|
|
14
|
+
export { PropertyInput, PROPERTY_BORDERED_SX, PropertyText, PropertyTextArea, PropertyDate, PropertyDateInput, PropertyTextDate, PropertyTextDateInput, isDateText, normalizeDateText, parseDateText } from "./PropertyText";
|
|
15
15
|
export type { PropertyInputProps, PropertyTextProps, PropertyDateInputProps } from "./PropertyText";
|
|
16
16
|
export { PropertySelect, PropertyMultiSelect, PropertySwitch } from "./PropertySelect";
|
|
17
17
|
export type { PropertyOption, PropertySelectValue, PropertySelectProps, PropertyMultiSelectProps, PropertySwitchProps } from "./PropertySelect";
|