ingred-ui 31.0.3 → 31.0.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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * useConfigPanelTextInputFocus - ConfigPanel 表示時のテキスト入力フォーカス
3
+ *
4
+ * パネルが位置確定したタイミングで、テキスト入力欄にフォーカスを当てます。
5
+ * 同一セッション内のオペレーター変更では再フォーカスしません。
6
+ */
7
+ /// <reference types="react" />
8
+ export type UseConfigPanelTextInputFocusProps = {
9
+ isOpen: boolean;
10
+ isPositioned: boolean;
11
+ focusSessionKey: string;
12
+ shouldFocus: boolean;
13
+ textInputRef: React.RefObject<HTMLInputElement | null>;
14
+ };
15
+ export declare const useConfigPanelTextInputFocus: ({ isOpen, isPositioned, focusSessionKey, shouldFocus, textInputRef, }: UseConfigPanelTextInputFocusProps) => void;
@@ -56,6 +56,8 @@ export type ConfigPanelValueInputProps = {
56
56
  onKeyDown: (event: React.KeyboardEvent) => void;
57
57
  /** 範囲指定オペレーターかどうかを判定する関数 */
58
58
  isRangeOperator: (operator: string) => boolean;
59
+ /** テキスト入力要素への ref(inputType=text 時のみ使用) */
60
+ textInputRef?: React.Ref<HTMLInputElement>;
59
61
  };
60
62
  /**
61
63
  * 値入力統合コンポーネント
@@ -10,5 +10,6 @@ export type MultiConditionInputProps = {
10
10
  filterConfig?: FilterTypeConfig;
11
11
  multiConditionState: UseMultiConditionStateReturn;
12
12
  onKeyDown: (event: React.KeyboardEvent) => void;
13
+ textInputRef?: React.Ref<HTMLInputElement>;
13
14
  };
14
15
  export declare const MultiConditionInput: React.FC<MultiConditionInputProps>;
@@ -37,6 +37,8 @@ export type TextValueInputProps = {
37
37
  onKeyDown?: (event: React.KeyboardEvent) => void;
38
38
  /** 日付の表示フォーマット(inputType=date時、dayjsのformat形式) @default YYYY-MM-DD */
39
39
  format?: string;
40
+ /** テキスト入力要素への ref(inputType=text 時のみ使用) */
41
+ inputRef?: React.Ref<HTMLInputElement>;
40
42
  };
41
43
  /**
42
44
  * テキスト/日付入力コンポーネント
@@ -168,6 +168,7 @@ export type AdvancedFilterConfigPanelProps = {
168
168
  onApply: (config: FilterConfig) => void;
169
169
  onCancel: () => void;
170
170
  editingFilter?: {
171
+ id?: string;
171
172
  operator: string;
172
173
  values: (string | boolean)[];
173
174
  conditions?: FilterCondition[];
@@ -150,3 +150,13 @@ export declare const getConditionPlaceholder: (conditionConfig: MultiFilterCondi
150
150
  * 条件設定の範囲指定オペレーターかどうかを判定
151
151
  */
152
152
  export declare const isConditionRangeOperator: (conditionConfig: MultiFilterConditionConfig, operator: string) => boolean;
153
+ type ConditionForTextFocus = {
154
+ id: string;
155
+ conditionKey: string;
156
+ operator: string;
157
+ };
158
+ /**
159
+ * 複数条件モードで最初のテキスト入力条件の ID を取得する
160
+ */
161
+ export declare const getFirstTextConditionId: (filterConfig: FilterTypeConfig | undefined, conditions: ConditionForTextFocus[]) => string | null;
162
+ export {};
@@ -2,5 +2,4 @@ export declare const TextWrapper: import("styled-components/dist/types").IStyled
2
2
  export declare const NormalBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
3
3
  export declare const PillBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
4
4
  export declare const SignalWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
5
- export declare const SignalDot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
6
5
  export declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
@@ -10,9 +10,9 @@ export declare const BADGE_SIZE: {
10
10
  pillHeight: string;
11
11
  gap: string;
12
12
  padding: (theme: Theme) => string;
13
- signalPadding: (theme: Theme) => string;
14
- signalGap: (theme: Theme) => string;
15
- dotSize: string;
13
+ signalPaddingLeft: string;
14
+ signalPaddingRight: string;
15
+ dotSize: number;
16
16
  fontSize: string;
17
17
  };
18
18
  small: {
@@ -21,9 +21,9 @@ export declare const BADGE_SIZE: {
21
21
  pillHeight: string;
22
22
  gap: string;
23
23
  padding: (theme: Theme) => string;
24
- signalPadding: (theme: Theme) => string;
25
- signalGap: (theme: Theme) => string;
26
- dotSize: string;
24
+ signalPaddingLeft: string;
25
+ signalPaddingRight: string;
26
+ dotSize: number;
27
27
  fontSize: string;
28
28
  };
29
29
  medium: {
@@ -32,9 +32,9 @@ export declare const BADGE_SIZE: {
32
32
  pillHeight: string;
33
33
  gap: string;
34
34
  padding: (theme: Theme) => string;
35
- signalPadding: (theme: Theme) => string;
36
- signalGap: (theme: Theme) => string;
37
- dotSize: string;
35
+ signalPaddingLeft: string;
36
+ signalPaddingRight: string;
37
+ dotSize: number;
38
38
  fontSize: string;
39
39
  };
40
40
  };