ingred-ui 33.1.1 → 33.2.1

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.
@@ -32,4 +32,4 @@ export type { ValueDefinition } from "./utils/values";
32
32
  export { isRangeOperator, isCustomOperator, isValidFilterConfig, isValidFilterType, generateTagText, generateTagTitle, getTagBoldText, getAvailableTypes, getFilterTypeLabel, buildFilterSlots, getPresetSlotId, isConfiguredFilter, getConfiguredFilters, } from "./utils/helpers";
33
33
  export { FilterPositionCalculator } from "./utils/positionCalculator";
34
34
  export { ADVANCED_FILTER_CONSTANTS } from "./constants";
35
- export type { AdvancedFilterProps, FilterType, FilterTypeConfig, FilterConfig, AppliedFilter, OperatorDefinition, AdvancedFilterSize, AdvancedFilterVariant, FilterOperator, FilterInputType, FilterPresetType, AdvancedFilterSelectionMode, FilterSlotView, } from "./types";
35
+ export type { AdvancedFilterProps, FilterType, FilterTypeConfig, FilterConfig, AppliedFilter, OperatorDefinition, AdvancedFilterSize, AdvancedFilterVariant, FilterOperator, FilterInputType, FilterPresetType, AdvancedFilterSelectionMode, FilterSlotView, MultiConditionLogic, } from "./types";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * MultiConditionLogicDivider - 複数条件フィルタの条件間区切り
3
+ *
4
+ * 条件と条件の間に AND / OR バッジと水平線を表示する。
5
+ */
6
+ import React from "react";
7
+ import { MultiConditionLogic } from "../types";
8
+ export type MultiConditionLogicDividerProps = {
9
+ logic: MultiConditionLogic;
10
+ };
11
+ export declare const MultiConditionLogicDivider: React.FC<MultiConditionLogicDividerProps>;
@@ -143,6 +143,16 @@ export declare const FilterTypeName: import("styled-components/dist/types").ISty
143
143
  * コンテンツエリア
144
144
  */
145
145
  export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
146
+ /**
147
+ * 複数条件フィルタの条件見出し
148
+ */
149
+ export declare const MultiConditionHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
150
+ export declare const MultiConditionHeaderLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
151
+ /**
152
+ * 複数条件フィルタの条件間区切り(AND / OR バッジ + 水平線)
153
+ */
154
+ export declare const MultiConditionLogicDividerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
155
+ export declare const MultiConditionLogicDividerLine: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>>> & string;
146
156
  /**
147
157
  * セクション
148
158
  */
@@ -53,6 +53,8 @@ export type ValueDefinition = {
53
53
  value: string | boolean;
54
54
  label: string;
55
55
  };
56
+ /** 複数条件フィルタ内の条件結合ロジック */
57
+ export type MultiConditionLogic = "and" | "or";
56
58
  /**
57
59
  * 1つのフィルタタイプで複数のフィルタリング条件を設定するための設定定義
58
60
  * 例: 複合フィルタで「性別」と「年齢」の2つの条件を設定
@@ -112,6 +114,13 @@ export type FilterTypeConfig = {
112
114
  };
113
115
  /** このフィルタタイプで設定可能な複数条件の設定(複数条件フィルタ用) */
114
116
  multiConditionConfigs?: MultiFilterConditionConfig[];
117
+ /**
118
+ * 複数条件フィルタ内の条件結合ロジック(区切り線バッジの表示用)
119
+ * - "and" または未指定: AND(デフォルト)
120
+ * - "or": OR
121
+ * 注: 現時点のフィルタ評価は AND 固定。OR は表示のみ対応。
122
+ */
123
+ multiConditionLogic?: MultiConditionLogic;
115
124
  /** 日付の表示フォーマット(dayjs形式)。指定時は Tag と DatePicker で同一フォーマット。未指定は YYYY-MM-DD */
116
125
  dateFormat?: string;
117
126
  };
@@ -11,7 +11,7 @@
11
11
  * - タグ表示: タグのテキスト・タイトル生成
12
12
  * - バリデーション: フィルター設定・タイプの有効性チェック
13
13
  */
14
- import { AppliedFilter, FilterConfig, FilterInputType, FilterSlotView, FilterTypeConfig, MultiFilterConditionConfig, OperatorDefinition, ValueDefinition } from "../types";
14
+ import { AppliedFilter, FilterConfig, FilterInputType, FilterSlotView, FilterTypeConfig, MultiConditionLogic, MultiFilterConditionConfig, OperatorDefinition, ValueDefinition } from "../types";
15
15
  /**
16
16
  * 範囲指定が必要なオペレーターかどうかを判定
17
17
  * @param operator オペレーターのvalue
@@ -121,6 +121,10 @@ export declare const hasMultiConditions: (filterConfig?: FilterTypeConfig) => bo
121
121
  * 複数条件設定を取得する
122
122
  */
123
123
  export declare const getMultiConditionConfigs: (filterConfig?: FilterTypeConfig) => MultiFilterConditionConfig[];
124
+ /**
125
+ * 複数条件フィルタ内の条件結合ロジックを取得する
126
+ */
127
+ export declare const getMultiConditionLogic: (filterConfig?: FilterTypeConfig) => MultiConditionLogic;
124
128
  /**
125
129
  * 条件キーから条件設定を取得する
126
130
  */
@@ -90,7 +90,7 @@ export declare const DataTable2ColumnInner: import("styled-components/dist/types
90
90
  export declare const DragHandle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
91
91
  export declare const DragArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
92
92
  export declare const DataTable2ColumnLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
93
- export declare const SortButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
93
+ export declare const SortableColumnLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
94
94
  export declare const DataTable2Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "isSmallLayout"> & {
95
95
  isSmallLayout: boolean;
96
96
  }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "isSmallLayout"> & {
@@ -1,6 +1,8 @@
1
1
  import React from "react";
2
2
  import type { Theme } from "../../../themes/createTheme";
3
3
  import type { TableAction } from "../types/tableActions";
4
+ /** ページング表示用。4桁以上(1000以上)のとき千の位区切りにカンマを入れる。 */
5
+ export declare const formatPaginationCount: (count: number) => string;
4
6
  /**
5
7
  * アイコンの色を動的に変更するヘルパー関数
6
8
  *