@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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { PayloadInfo } from '@antscorp/antsomi-ui/es/types';
2
3
  export type TDisplayFormat = 'number' | 'percentage' | 'currency' | 'datetime';
3
4
  type DisplayFormatProps = {
@@ -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: _jsx(Tooltip, { mouseEnterDelay: 0.5, title: `${selectedItems ? selectedItems?.map(item => item.title).join(', ') : ''}`, overlayInnerStyle: {
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
- ...dropdownStyle,
380
- display: 'none',
381
- padding: 0,
382
- }, loading: loading, ...restProps }) }) }));
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 */
@@ -3,4 +3,5 @@
3
3
  * Asynchronously loads the component for TemplateListing
4
4
  *
5
5
  */
6
+ /// <reference types="react" />
6
7
  export declare const TemplateListing: (props: import("./types").TemplateListingProps<{}>) => JSX.Element;
@@ -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": "フィルターセットに名前を付けます",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.796",
3
+ "version": "1.3.5-beta.797",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",