@antscorp/antsomi-ui 1.3.5-beta.796 → 1.3.5-beta.797
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.
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts +1 -0
- package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +7 -7
- package/es/components/molecules/MatchAnySelect/types.d.ts +2 -0
- package/es/components/template/TemplateListing/Loadable.d.ts +1 -0
- package/es/locales/ja/google-sheet.json +1 -1
- package/package.json +1 -1
|
@@ -344,7 +344,7 @@ export function MatchesAny(props) {
|
|
|
344
344
|
return (_jsx(ConfigProvider, { theme: MATCHES_ANY_THEME, children: _jsxs(MatchesAnyWrapper, { ...restOfProps, vertical: true, justify: "space-between", children: [_jsxs(Flex, { style: { width: '100%', height: '100%' }, children: [renderSelectList(), renderSelectedList()] }), _jsxs(Flex, { className: "matches-any__footer", align: "center", justify: "space-between", children: [_jsxs(Flex, { align: "center", gap: 10, children: [_jsx(Button, { type: "primary", disabled: isDisableApply, onClick: onClickApply, children: t(translations.apply.title).toString() }), _jsx(Button, { onClick: () => onCancel(), children: t(translations.cancel.title).toString() })] }), showExtendValue && (_jsx(ExtendValuePopup, { getPopupContainer: trigger => trigger.parentElement || document.body, onApply: onApplyExtendValue, children: _jsx(Button, { icon: _jsx(Icon, { type: "icon-ants-empty-flag" }), children: t(translations.extendValue.title).toString() }) }))] })] }) }));
|
|
345
345
|
}
|
|
346
346
|
export function MatchesAnySelect(props) {
|
|
347
|
-
const { placeholder = 'Select an item', dropdownStyle, objectName, selectedItems, items, loading, popupClassName, groupSelectProps, renderExtraValues, customItemRenders, popoverProps, listEmptyProps, selectedListEmptyProps, selectedTreeData, onChangeSearch, onChange = () => { }, onLoadMore, ...restProps } = props;
|
|
347
|
+
const { placeholder = 'Select an item', dropdownStyle, objectName, selectedItems, items, loading, popupClassName, groupSelectProps, renderExtraValues, customItemRenders, popoverProps, listEmptyProps, selectedListEmptyProps, selectedTreeData, error, onChangeSearch, onChange = () => { }, onLoadMore, ...restProps } = props;
|
|
348
348
|
// State
|
|
349
349
|
const [state, setState] = useState(initialState);
|
|
350
350
|
// Variables
|
|
@@ -372,12 +372,12 @@ export function MatchesAnySelect(props) {
|
|
|
372
372
|
},
|
|
373
373
|
}, overlayStyle: { width: 700 }, overlayInnerStyle: {
|
|
374
374
|
padding: 0,
|
|
375
|
-
}, trigger: ['click'], destroyTooltipOnHide: true, onOpenChange: () => setState(prev => ({ ...prev, isOpenPopover: !isOpenPopover })), zIndex: 1400, ...popoverProps, children:
|
|
375
|
+
}, trigger: ['click'], destroyTooltipOnHide: true, onOpenChange: () => setState(prev => ({ ...prev, isOpenPopover: !isOpenPopover })), zIndex: 1400, ...popoverProps, children: _jsxs(Tooltip, { mouseEnterDelay: 0.5, title: `${selectedItems ? selectedItems?.map(item => item.title).join(', ') : ''}`, overlayInnerStyle: {
|
|
376
376
|
maxHeight: 300,
|
|
377
377
|
overflow: 'auto',
|
|
378
|
-
}, children: _jsx(Select, { title: "", value: value, placeholder: placeholder, popupMatchSelectWidth: 700, dropdownStyle: {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
}, children: [_jsx(Select, { title: "", value: value, placeholder: placeholder, popupMatchSelectWidth: 700, dropdownStyle: {
|
|
379
|
+
...dropdownStyle,
|
|
380
|
+
display: 'none',
|
|
381
|
+
padding: 0,
|
|
382
|
+
}, loading: loading, status: props.status || (error ? 'error' : undefined), ...restProps }), !!error && _jsx(Text, { className: 'ant-form-item-explain-error', type: 'danger', children: error })] }) }));
|
|
383
383
|
}
|
|
@@ -52,6 +52,8 @@ export interface MatchesAnySelectProps<TItem = any> extends Omit<SelectProps, 'o
|
|
|
52
52
|
selectedListEmptyProps?: EmptyDataProps;
|
|
53
53
|
/** Search value */
|
|
54
54
|
searchValue?: string;
|
|
55
|
+
/** Error message */
|
|
56
|
+
error?: string;
|
|
55
57
|
/** Callback function that is called when the selected items change. */
|
|
56
58
|
onChange?: (selectedItems: MatchesAnyItem<TItem>[], selectedTreeData?: MatchesAnyItem<TItem>[]) => void;
|
|
57
59
|
/** Callback function that is called when the search value changes */
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"_BOX_TITL_REMOVE_EVENT_ATTRIBUTE": "イベント属性の削除",
|
|
233
233
|
"_BOX_TITL_REMOVE_FIELD": "フィールドの削除",
|
|
234
234
|
"_BOX_TITL_REMOVE_GROUP": "グループの削除",
|
|
235
|
-
"_BOX_TITL_REMOVE_IMAGE": "
|
|
235
|
+
"_BOX_TITL_REMOVE_IMAGE": "画像を削除する",
|
|
236
236
|
"_BOX_TITL_REMOVE_MODEL": "モデルの削除",
|
|
237
237
|
"_BOX_TITL_REPLACE_FILTER": "フィルターセットを交換する",
|
|
238
238
|
"_BOX_TITL_SAVE_FILTER": "フィルターセットに名前を付けます",
|