linkmore-design 1.0.59 → 1.0.63
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/dist/AutoComplete/demos/basic.d.ts +3 -0
- package/dist/AutoComplete/index.d.ts +30 -0
- package/dist/AutoComplete/style/index.d.ts +1 -0
- package/dist/Avatar/demos/basic.d.ts +2 -0
- package/dist/Avatar/index.d.ts +3 -0
- package/dist/Avatar/style/index.d.ts +1 -0
- package/dist/Breadcrumb/demos/basic.d.ts +2 -0
- package/dist/Breadcrumb/demos/basic1.d.ts +2 -0
- package/dist/Breadcrumb/index.d.ts +4 -0
- package/dist/Breadcrumb/style/index.d.ts +1 -0
- package/dist/CardTable/fns/index.d.ts +1 -0
- package/dist/CardTable/utils.d.ts +1 -1
- package/dist/Col/demos/basic.d.ts +2 -0
- package/dist/Col/index.d.ts +3 -0
- package/dist/Col/style/index.d.ts +1 -0
- package/dist/Form/demos/error-tip.d.ts +2 -0
- package/dist/Form/index.d.ts +7 -2
- package/dist/Grid/RowContext.d.ts +8 -0
- package/dist/Grid/col.d.ts +28 -0
- package/dist/Grid/demos/basic.d.ts +2 -0
- package/dist/Grid/hooks/useBreakpoint.d.ts +3 -0
- package/dist/Grid/index.d.ts +11 -0
- package/dist/Grid/row.d.ts +14 -0
- package/dist/Grid/style/index.d.ts +1 -0
- package/dist/Layout/demos/basic.d.ts +2 -0
- package/dist/Layout/index.d.ts +4 -0
- package/dist/Layout/style/index.d.ts +1 -0
- package/dist/LmEditTable/EditTable.d.ts +2 -0
- package/dist/LmEditTable/demos/colsort.d.ts +2 -0
- package/dist/LmEditTable/demos/sinleEdit.d.ts +2 -0
- package/dist/LmEditTable/demos/size.d.ts +2 -0
- package/dist/LmEditTable/sortableBoxCol.d.ts +5 -0
- package/dist/LmEditTable/sortableItemCol.d.ts +1 -0
- package/dist/LmFilter/components/CustomSelectFilter.d.ts +4 -0
- package/dist/LmFilter/filterFns/index.d.ts +27 -10
- package/dist/LmFilter/localization.d.ts +8 -2
- package/dist/LmFilter/utils.d.ts +2 -0
- package/dist/PageHeader/demos/basic.d.ts +2 -0
- package/dist/PageHeader/index.d.ts +24 -0
- package/dist/PageHeader/style/index.d.ts +1 -0
- package/dist/Popover/demos/basic.d.ts +2 -0
- package/dist/Popover/demos/basic1.d.ts +2 -0
- package/dist/Popover/index.d.ts +11 -0
- package/dist/Popover/style/index.d.ts +1 -0
- package/dist/Row/demos/basic.d.ts +2 -0
- package/dist/Row/index.d.ts +3 -0
- package/dist/Row/style/index.d.ts +1 -0
- package/dist/Tooltip/index.d.ts +43 -1
- package/dist/Typography/Base/Ellipsis.d.ts +14 -0
- package/dist/Typography/Base/EllipsisTooltip.d.ts +13 -0
- package/dist/Typography/Base/index.d.ts +54 -0
- package/dist/Typography/Editable.d.ts +20 -0
- package/dist/Typography/Link.d.ts +7 -0
- package/dist/Typography/Paragraph.d.ts +7 -0
- package/dist/Typography/Text.d.ts +8 -0
- package/dist/Typography/Title.d.ts +9 -0
- package/dist/Typography/Typography.d.ts +11 -0
- package/dist/Typography/demos/basic.d.ts +2 -0
- package/dist/Typography/hooks/useMergedConfig.d.ts +1 -0
- package/dist/Typography/hooks/useUpdatedEffect.d.ts +3 -0
- package/dist/Typography/index.d.ts +15 -0
- package/dist/Typography/style/index.d.ts +1 -0
- package/dist/_util/colors.d.ts +5 -0
- package/dist/_util/getRenderPropValue.d.ts +3 -0
- package/dist/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/dist/_util/hooks/useForceUpdate.d.ts +2 -0
- package/dist/_util/placements.d.ts +16 -0
- package/dist/_util/responsiveObserve.d.ts +21 -0
- package/dist/_util/styleChecker.d.ts +4 -0
- package/dist/_util/transButton.d.ts +9 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.umd.js +17392 -8920
- package/dist/index.umd.min.js +6 -6
- package/es/AutoComplete/index.d.ts +30 -0
- package/es/AutoComplete/index.js +101 -0
- package/es/AutoComplete/style/index.css +505 -0
- package/es/AutoComplete/style/index.d.ts +1 -0
- package/es/AutoComplete/style/index.js +1 -0
- package/es/Avatar/index.d.ts +3 -0
- package/es/Avatar/index.js +3 -0
- package/es/Avatar/style/index.css +505 -0
- package/es/Avatar/style/index.d.ts +1 -0
- package/es/Avatar/style/index.js +1 -0
- package/es/Breadcrumb/index.d.ts +4 -0
- package/es/Breadcrumb/index.js +3 -0
- package/es/Breadcrumb/style/index.css +505 -0
- package/es/Breadcrumb/style/index.d.ts +1 -0
- package/es/Breadcrumb/style/index.js +1 -0
- package/es/CardTable/body/TableBodyCell.js +10 -5
- package/es/CardTable/fns/index.js +29 -2
- package/es/CardTable/table/TableRoot.js +46 -13
- package/es/Col/README.md.old +22 -0
- package/es/Col/index.d.ts +3 -0
- package/es/Col/index.js +2 -0
- package/es/Col/style/index.css +505 -0
- package/es/Col/style/index.d.ts +1 -0
- package/es/Col/style/index.js +1 -0
- package/es/Dropdown/index.js +2 -2
- package/es/Dropdown/style/index.css +19 -1
- package/es/Form/index.d.ts +7 -2
- package/es/Form/index.js +18 -2
- package/es/Form/style/index.css +86 -1
- package/es/Grid/RowContext.d.ts +8 -0
- package/es/Grid/RowContext.js +3 -0
- package/es/Grid/col.d.ts +28 -0
- package/es/Grid/col.js +112 -0
- package/es/Grid/hooks/useBreakpoint.d.ts +3 -0
- package/es/Grid/hooks/useBreakpoint.js +24 -0
- package/es/Grid/index.d.ts +11 -0
- package/es/Grid/index.js +14 -0
- package/es/Grid/row.d.ts +14 -0
- package/es/Grid/row.js +142 -0
- package/es/Grid/style/index.css +505 -0
- package/es/Grid/style/index.d.ts +1 -0
- package/es/Grid/style/index.js +1 -0
- package/es/IconFont/index.js +1 -1
- package/es/Layout/index.d.ts +4 -0
- package/es/Layout/index.js +3 -0
- package/es/Layout/style/index.css +505 -0
- package/es/Layout/style/index.d.ts +1 -0
- package/es/Layout/style/index.js +1 -0
- package/es/LmEditTable/EditTable.d.ts +2 -0
- package/es/LmEditTable/EditTable.js +206 -58
- package/es/LmEditTable/sortableBoxCol.d.ts +5 -0
- package/es/LmEditTable/sortableBoxCol.js +13 -0
- package/es/LmEditTable/sortableItemCol.d.ts +1 -0
- package/es/LmEditTable/sortableItemCol.js +48 -0
- package/es/LmFilter/LmFilter.js +22 -4
- package/es/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
- package/es/LmFilter/baseFilter/fuzzySearch.js +6 -1
- package/es/LmFilter/baseFilter/index.js +1 -3
- package/es/LmFilter/clearFilter/index.js +3 -5
- package/es/LmFilter/complexFilter/drawer.js +32 -20
- package/es/LmFilter/components/CheckboxFilter.js +1 -1
- package/es/LmFilter/components/CustomSelectFilter.js +128 -0
- package/es/LmFilter/components/EmptyFilter.js +2 -2
- package/es/LmFilter/components/SelectFilter.js +1 -1
- package/es/LmFilter/components/index.js +1 -1
- package/es/LmFilter/customFilter/index.js +75 -2
- package/es/LmFilter/filterFns/index.js +290 -62
- package/es/LmFilter/localization.d.ts +8 -2
- package/es/LmFilter/localization.js +20 -2
- package/es/LmFilter/style/style.css +50 -8
- package/es/LmFilter/utils.js +34 -0
- package/es/LmFilter/wrapper/Filter.js +4 -0
- package/es/LmFilter/wrapper/FilterContainer.js +0 -4
- package/es/LmFilter/wrapper/FilterRoot.js +28 -63
- package/es/LmTable/Table.js +9 -3
- package/es/LmTable/style/index.css +5 -0
- package/es/PageHeader/index.d.ts +24 -0
- package/es/PageHeader/index.js +169 -0
- package/es/PageHeader/style/index.css +505 -0
- package/es/PageHeader/style/index.d.ts +1 -0
- package/es/PageHeader/style/index.js +1 -0
- package/es/Popover/index.d.ts +11 -0
- package/es/Popover/index.js +63 -0
- package/es/Popover/style/index.css +505 -0
- package/es/Popover/style/index.d.ts +1 -0
- package/es/Popover/style/index.js +1 -0
- package/es/Row/README.md.old +22 -0
- package/es/Row/index.d.ts +3 -0
- package/es/Row/index.js +2 -0
- package/es/Row/style/index.css +505 -0
- package/es/Row/style/index.d.ts +1 -0
- package/es/Row/style/index.js +1 -0
- package/es/Tooltip/index.d.ts +43 -1
- package/es/Tooltip/index.js +236 -1
- package/es/Typography/Base/Ellipsis.d.ts +14 -0
- package/es/Typography/Base/Ellipsis.js +197 -0
- package/es/Typography/Base/EllipsisTooltip.d.ts +13 -0
- package/es/Typography/Base/EllipsisTooltip.js +23 -0
- package/es/Typography/Base/index.d.ts +54 -0
- package/es/Typography/Base/index.js +509 -0
- package/es/Typography/Editable.d.ts +20 -0
- package/es/Typography/Editable.js +117 -0
- package/es/Typography/Link.d.ts +7 -0
- package/es/Typography/Link.js +43 -0
- package/es/Typography/Paragraph.d.ts +7 -0
- package/es/Typography/Paragraph.js +12 -0
- package/es/Typography/Text.d.ts +8 -0
- package/es/Typography/Text.js +41 -0
- package/es/Typography/Title.d.ts +9 -0
- package/es/Typography/Title.js +41 -0
- package/es/Typography/Typography.d.ts +11 -0
- package/es/Typography/Typography.js +61 -0
- package/es/Typography/hooks/useMergedConfig.d.ts +1 -0
- package/es/Typography/hooks/useMergedConfig.js +8 -0
- package/es/Typography/hooks/useUpdatedEffect.d.ts +3 -0
- package/es/Typography/hooks/useUpdatedEffect.js +13 -0
- package/es/Typography/index.d.ts +15 -0
- package/es/Typography/index.js +14 -0
- package/es/Typography/style/index.css +505 -0
- package/es/Typography/style/index.d.ts +1 -0
- package/es/Typography/style/index.js +1 -0
- package/es/_util/colors.d.ts +5 -0
- package/es/_util/colors.js +4 -0
- package/es/_util/getRenderPropValue.d.ts +3 -0
- package/es/_util/getRenderPropValue.js +13 -0
- package/es/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/es/_util/hooks/useFlexGapSupport.js +14 -0
- package/es/_util/hooks/useForceUpdate.d.ts +2 -0
- package/es/_util/hooks/useForceUpdate.js +11 -0
- package/es/_util/placements.d.ts +16 -0
- package/es/_util/placements.js +87 -0
- package/es/_util/responsiveObserve.d.ts +21 -0
- package/es/_util/responsiveObserve.js +66 -0
- package/es/_util/styleChecker.d.ts +4 -0
- package/es/_util/styleChecker.js +31 -0
- package/es/_util/transButton.d.ts +9 -0
- package/es/_util/transButton.js +73 -0
- package/es/index.d.ts +14 -0
- package/es/index.js +8 -1
- package/lib/AutoComplete/index.d.ts +30 -0
- package/lib/AutoComplete/index.js +125 -0
- package/lib/AutoComplete/style/index.css +505 -0
- package/lib/AutoComplete/style/index.d.ts +1 -0
- package/lib/AutoComplete/style/index.js +3 -0
- package/lib/Avatar/index.d.ts +3 -0
- package/lib/Avatar/index.js +15 -0
- package/lib/Avatar/style/index.css +505 -0
- package/lib/Avatar/style/index.d.ts +1 -0
- package/lib/Avatar/style/index.js +3 -0
- package/lib/Breadcrumb/index.d.ts +4 -0
- package/lib/Breadcrumb/index.js +15 -0
- package/lib/Breadcrumb/style/index.css +505 -0
- package/lib/Breadcrumb/style/index.d.ts +1 -0
- package/lib/Breadcrumb/style/index.js +3 -0
- package/lib/CardTable/body/TableBodyCell.js +10 -5
- package/lib/CardTable/fns/index.js +29 -2
- package/lib/CardTable/table/TableRoot.js +46 -13
- package/lib/Col/README.md.old +22 -0
- package/lib/Col/index.d.ts +3 -0
- package/lib/Col/index.js +11 -0
- package/lib/Col/style/index.css +505 -0
- package/lib/Col/style/index.d.ts +1 -0
- package/lib/Col/style/index.js +3 -0
- package/lib/Dropdown/index.js +2 -2
- package/lib/Dropdown/style/index.css +19 -1
- package/lib/Form/index.d.ts +7 -2
- package/lib/Form/index.js +16 -1
- package/lib/Form/style/index.css +86 -1
- package/lib/Grid/RowContext.d.ts +8 -0
- package/lib/Grid/RowContext.js +12 -0
- package/lib/Grid/col.d.ts +28 -0
- package/lib/Grid/col.js +128 -0
- package/lib/Grid/hooks/useBreakpoint.d.ts +3 -0
- package/lib/Grid/hooks/useBreakpoint.js +37 -0
- package/lib/Grid/index.d.ts +11 -0
- package/lib/Grid/index.js +45 -0
- package/lib/Grid/row.d.ts +14 -0
- package/lib/Grid/row.js +164 -0
- package/lib/Grid/style/index.css +505 -0
- package/lib/Grid/style/index.d.ts +1 -0
- package/lib/Grid/style/index.js +3 -0
- package/lib/IconFont/index.js +1 -1
- package/lib/Layout/index.d.ts +4 -0
- package/lib/Layout/index.js +15 -0
- package/lib/Layout/style/index.css +505 -0
- package/lib/Layout/style/index.d.ts +1 -0
- package/lib/Layout/style/index.js +3 -0
- package/lib/LmEditTable/EditTable.d.ts +2 -0
- package/lib/LmEditTable/EditTable.js +207 -59
- package/lib/LmEditTable/sortableBoxCol.d.ts +5 -0
- package/lib/LmEditTable/sortableBoxCol.js +24 -0
- package/lib/LmEditTable/sortableItemCol.d.ts +1 -0
- package/lib/LmEditTable/sortableItemCol.js +61 -0
- package/lib/LmFilter/LmFilter.js +22 -4
- package/lib/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
- package/lib/LmFilter/baseFilter/fuzzySearch.js +6 -1
- package/lib/LmFilter/baseFilter/index.js +1 -3
- package/lib/LmFilter/clearFilter/index.js +3 -5
- package/lib/LmFilter/complexFilter/drawer.js +32 -20
- package/lib/LmFilter/components/CheckboxFilter.js +1 -1
- package/lib/LmFilter/components/CustomSelectFilter.js +128 -0
- package/lib/LmFilter/components/EmptyFilter.js +2 -2
- package/lib/LmFilter/components/SelectFilter.js +1 -1
- package/lib/LmFilter/components/index.js +1 -1
- package/lib/LmFilter/customFilter/index.js +75 -2
- package/lib/LmFilter/filterFns/index.js +290 -62
- package/lib/LmFilter/localization.d.ts +8 -2
- package/lib/LmFilter/localization.js +20 -2
- package/lib/LmFilter/style/style.css +50 -8
- package/lib/LmFilter/utils.js +34 -0
- package/lib/LmFilter/wrapper/Filter.js +4 -0
- package/lib/LmFilter/wrapper/FilterContainer.js +0 -4
- package/lib/LmFilter/wrapper/FilterRoot.js +28 -63
- package/lib/LmTable/Table.js +9 -3
- package/lib/LmTable/style/index.css +5 -0
- package/lib/PageHeader/index.d.ts +24 -0
- package/lib/PageHeader/index.js +194 -0
- package/lib/PageHeader/style/index.css +505 -0
- package/lib/PageHeader/style/index.d.ts +1 -0
- package/lib/PageHeader/style/index.js +3 -0
- package/lib/Popover/index.d.ts +11 -0
- package/lib/Popover/index.js +81 -0
- package/lib/Popover/style/index.css +505 -0
- package/lib/Popover/style/index.d.ts +1 -0
- package/lib/Popover/style/index.js +3 -0
- package/lib/Row/README.md.old +22 -0
- package/lib/Row/index.d.ts +3 -0
- package/lib/Row/index.js +11 -0
- package/lib/Row/style/index.css +505 -0
- package/lib/Row/style/index.d.ts +1 -0
- package/lib/Row/style/index.js +3 -0
- package/lib/Tooltip/index.d.ts +43 -1
- package/lib/Tooltip/index.js +247 -1
- package/lib/Typography/Base/Ellipsis.d.ts +14 -0
- package/lib/Typography/Base/Ellipsis.js +212 -0
- package/lib/Typography/Base/EllipsisTooltip.d.ts +13 -0
- package/lib/Typography/Base/EllipsisTooltip.js +36 -0
- package/lib/Typography/Base/index.d.ts +54 -0
- package/lib/Typography/Base/index.js +545 -0
- package/lib/Typography/Editable.d.ts +20 -0
- package/lib/Typography/Editable.js +137 -0
- package/lib/Typography/Link.d.ts +7 -0
- package/lib/Typography/Link.js +58 -0
- package/lib/Typography/Paragraph.d.ts +7 -0
- package/lib/Typography/Paragraph.js +26 -0
- package/lib/Typography/Text.d.ts +8 -0
- package/lib/Typography/Text.js +57 -0
- package/lib/Typography/Title.d.ts +9 -0
- package/lib/Typography/Title.js +58 -0
- package/lib/Typography/Typography.d.ts +11 -0
- package/lib/Typography/Typography.js +77 -0
- package/lib/Typography/hooks/useMergedConfig.d.ts +1 -0
- package/lib/Typography/hooks/useMergedConfig.js +21 -0
- package/lib/Typography/hooks/useUpdatedEffect.d.ts +3 -0
- package/lib/Typography/hooks/useUpdatedEffect.js +24 -0
- package/lib/Typography/index.d.ts +15 -0
- package/lib/Typography/index.js +31 -0
- package/lib/Typography/style/index.css +505 -0
- package/lib/Typography/style/index.d.ts +1 -0
- package/lib/Typography/style/index.js +3 -0
- package/lib/_util/colors.d.ts +5 -0
- package/lib/_util/colors.js +14 -0
- package/lib/_util/getRenderPropValue.d.ts +3 -0
- package/lib/_util/getRenderPropValue.js +22 -0
- package/lib/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/lib/_util/hooks/useFlexGapSupport.js +30 -0
- package/lib/_util/hooks/useForceUpdate.d.ts +2 -0
- package/lib/_util/hooks/useForceUpdate.js +24 -0
- package/lib/_util/placements.d.ts +16 -0
- package/lib/_util/placements.js +98 -0
- package/lib/_util/responsiveObserve.d.ts +21 -0
- package/lib/_util/responsiveObserve.js +79 -0
- package/lib/_util/styleChecker.d.ts +4 -0
- package/lib/_util/styleChecker.js +52 -0
- package/lib/_util/transButton.d.ts +9 -0
- package/lib/_util/transButton.js +87 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.js +57 -1
- package/package.json +3 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO: 4.0
|
|
3
|
+
*
|
|
4
|
+
* - Remove `dataSource`
|
|
5
|
+
* - `size` not work with customizeInput
|
|
6
|
+
* - CustomizeInput not feedback `ENTER` key since accessibility enhancement
|
|
7
|
+
*/
|
|
8
|
+
import type { BaseSelectRef } from 'rc-select';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from 'antd/es/select';
|
|
11
|
+
import type { InputStatus } from '../_util/statusUtils';
|
|
12
|
+
import { AutoComplete as AntdAutoComplete } from 'antd';
|
|
13
|
+
export interface DataSourceItemObject {
|
|
14
|
+
value: string;
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type DataSourceItemType = DataSourceItemObject | React.ReactNode;
|
|
18
|
+
export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
|
|
19
|
+
dataSource?: DataSourceItemType[];
|
|
20
|
+
status?: InputStatus;
|
|
21
|
+
}
|
|
22
|
+
declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: AutoCompleteProps<ValueType, OptionType> & {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
} & {
|
|
25
|
+
ref?: React.Ref<BaseSelectRef>;
|
|
26
|
+
}) => React.ReactElement) & {
|
|
27
|
+
Option: import("rc-select/lib/Option").OptionFC;
|
|
28
|
+
AntdAutoComplete: typeof AntdAutoComplete;
|
|
29
|
+
};
|
|
30
|
+
export default RefAutoComplete;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
package/dist/Form/index.d.ts
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Form as AntdForm, FormInstance, FormProps, List } from 'antd';
|
|
2
|
+
import { Form as AntdForm, FormInstance, FormProps, List, FormItemProps } from 'antd';
|
|
3
3
|
import useFormInstance from 'antd/lib/form/hooks/useFormInstance';
|
|
4
4
|
import { FormProvider } from 'antd/lib/form/context';
|
|
5
5
|
import { useForm, useWatch } from 'antd/lib/form/Form';
|
|
6
6
|
export interface LmFormProps extends FormProps {
|
|
7
7
|
responsive?: Boolean;
|
|
8
8
|
}
|
|
9
|
+
export interface LmFormItemProps extends FormItemProps {
|
|
10
|
+
useStatus?: any;
|
|
11
|
+
errorPlacement?: string;
|
|
12
|
+
}
|
|
9
13
|
declare const Reform: <Values = any>(props: FormProps<Values> & {
|
|
10
14
|
children?: React.ReactNode;
|
|
11
15
|
} & {
|
|
12
16
|
ref?: React.Ref<FormInstance<Values>>;
|
|
13
17
|
}) => React.ReactElement;
|
|
18
|
+
declare const LMFormItem: (props: LmFormItemProps) => JSX.Element;
|
|
14
19
|
declare type InternalFormType = typeof Reform;
|
|
15
20
|
interface FormInterface extends InternalFormType {
|
|
16
21
|
useForm: typeof useForm;
|
|
17
22
|
useFormInstance: typeof useFormInstance;
|
|
18
23
|
useWatch: typeof useWatch;
|
|
19
|
-
Item: typeof
|
|
24
|
+
Item: typeof LMFormItem;
|
|
20
25
|
List: typeof List;
|
|
21
26
|
ErrorList: typeof AntdForm.ErrorList;
|
|
22
27
|
Provider: typeof FormProvider;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type ColSpanType = number | string;
|
|
3
|
+
declare type FlexType = number | 'none' | 'auto' | string;
|
|
4
|
+
export interface ColSize {
|
|
5
|
+
flex?: FlexType;
|
|
6
|
+
span?: ColSpanType;
|
|
7
|
+
order?: ColSpanType;
|
|
8
|
+
offset?: ColSpanType;
|
|
9
|
+
push?: ColSpanType;
|
|
10
|
+
pull?: ColSpanType;
|
|
11
|
+
}
|
|
12
|
+
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
flex?: FlexType;
|
|
14
|
+
span?: ColSpanType;
|
|
15
|
+
order?: ColSpanType;
|
|
16
|
+
offset?: ColSpanType;
|
|
17
|
+
push?: ColSpanType;
|
|
18
|
+
pull?: ColSpanType;
|
|
19
|
+
xs?: ColSpanType | ColSize;
|
|
20
|
+
sm?: ColSpanType | ColSize;
|
|
21
|
+
md?: ColSpanType | ColSize;
|
|
22
|
+
lg?: ColSpanType | ColSize;
|
|
23
|
+
xl?: ColSpanType | ColSize;
|
|
24
|
+
xxl?: ColSpanType | ColSize;
|
|
25
|
+
prefixCls?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export default Col;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Col from './col';
|
|
2
|
+
import Row from './row';
|
|
3
|
+
declare function useBreakpoint(): Partial<Record<import("../_util/responsiveObserve").Breakpoint, boolean>>;
|
|
4
|
+
export type { ColProps, ColSize } from './col';
|
|
5
|
+
export type { RowProps } from './row';
|
|
6
|
+
export { Row, Col };
|
|
7
|
+
export { Grid as AntdGrid } from 'antd';
|
|
8
|
+
declare const _default: {
|
|
9
|
+
useBreakpoint: typeof useBreakpoint;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Breakpoint } from '../_util/responsiveObserve';
|
|
3
|
+
declare const RowAligns: ["top", "middle", "bottom", "stretch"];
|
|
4
|
+
declare const RowJustify: ["start", "end", "center", "space-around", "space-between", "space-evenly"];
|
|
5
|
+
export declare type Gutter = number | undefined | Partial<Record<Breakpoint, number>>;
|
|
6
|
+
export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
gutter?: Gutter | [Gutter, Gutter];
|
|
8
|
+
align?: typeof RowAligns[number];
|
|
9
|
+
justify?: typeof RowJustify[number];
|
|
10
|
+
prefixCls?: string;
|
|
11
|
+
wrap?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default Row;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -11,6 +11,8 @@ interface ILmEditTable extends TableProps<any> {
|
|
|
11
11
|
useQuickOpetate?: boolean;
|
|
12
12
|
sortOpen?: boolean;
|
|
13
13
|
size?: TableProps<any>['size'];
|
|
14
|
+
colSortOpen?: boolean;
|
|
15
|
+
filterChange?: (data: TableProps<any>['columns']) => void;
|
|
14
16
|
}
|
|
15
17
|
interface ILmColumns extends TableColumnType<any> {
|
|
16
18
|
editable?: 'input' | 'number' | 'inputRange' | 'date' | 'select' | 'multiple' | 'checkbox' | 'radio' | 'switch' | 'upload' | 'operate' | 'lm_edit_opetate' | 'render';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SortableItem(props: any): JSX.Element;
|
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export function initLocalization(props: any): {
|
|
2
|
+
basicFilter: any;
|
|
3
|
+
basicQuery: {};
|
|
4
|
+
};
|
|
5
|
+
export default useCoreOptions;
|
|
6
|
+
declare function useCoreOptions({ state, dispatch, props }: {
|
|
3
7
|
state: any;
|
|
4
8
|
dispatch: any;
|
|
5
9
|
props: any;
|
|
6
10
|
}): {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
CoreMethods: {
|
|
12
|
+
onQuery: ({ basicFilter, complexFilter, basicQuery, type }?: any) => void;
|
|
13
|
+
};
|
|
14
|
+
RefMethods: {
|
|
15
|
+
getState: () => any;
|
|
16
|
+
getBasicFilter: () => any;
|
|
17
|
+
getFilterValue: ({ field, type }: any) => any;
|
|
18
|
+
getFilterQuery: (originData?: any) => {
|
|
19
|
+
basicFilter: {};
|
|
20
|
+
filterQuery: {
|
|
21
|
+
filters: {
|
|
22
|
+
conditions: any[];
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
setFilterValue: (itemValue: any, item: any) => void;
|
|
28
|
+
setFilterFieldValue: (field: any, value: any) => void;
|
|
29
|
+
setLocalization: (localization?: any) => void;
|
|
30
|
+
onClearChange: () => void;
|
|
31
|
+
};
|
|
15
32
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export declare const DefaultLocalization: {
|
|
2
|
+
customFilter: {};
|
|
3
|
+
basicFilter: {};
|
|
2
4
|
globalQuery: {
|
|
3
|
-
filter:
|
|
5
|
+
filter: {
|
|
6
|
+
conditions: any[];
|
|
7
|
+
}[];
|
|
4
8
|
};
|
|
5
9
|
filterQuery: {
|
|
6
|
-
filter:
|
|
10
|
+
filter: {
|
|
11
|
+
conditions: any[];
|
|
12
|
+
}[];
|
|
7
13
|
};
|
|
8
14
|
};
|
package/dist/LmFilter/utils.d.ts
CHANGED
|
@@ -7,3 +7,5 @@ export function getRanges(): {
|
|
|
7
7
|
近一年: string[];
|
|
8
8
|
};
|
|
9
9
|
export function getFlatItem(filterValues: any, originArr: any, type?: string): any[];
|
|
10
|
+
export function getFilterShow(basicFilter: any, dataSource: any): {};
|
|
11
|
+
export function getFilterShowQuery(basicQuery: any, dataSource: any): any[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AvatarProps } from '../Avatar';
|
|
3
|
+
import type { BreadcrumbProps } from '../Breadcrumb';
|
|
4
|
+
import Breadcrumb from '../Breadcrumb';
|
|
5
|
+
import type { TagType } from 'antd/es/tag';
|
|
6
|
+
export interface PageHeaderProps {
|
|
7
|
+
backIcon?: React.ReactNode;
|
|
8
|
+
prefixCls?: string;
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
subTitle?: React.ReactNode;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
breadcrumb?: BreadcrumbProps | React.ReactElement<typeof Breadcrumb>;
|
|
13
|
+
breadcrumbRender?: (props: PageHeaderProps, defaultDom: React.ReactNode) => React.ReactNode;
|
|
14
|
+
tags?: React.ReactElement<TagType> | React.ReactElement<TagType>[];
|
|
15
|
+
footer?: React.ReactNode;
|
|
16
|
+
extra?: React.ReactNode;
|
|
17
|
+
avatar?: AvatarProps;
|
|
18
|
+
onBack?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
ghost?: boolean;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare const PageHeader: React.FC<PageHeaderProps>;
|
|
24
|
+
export default PageHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AbstractTooltipProps } from '../Tooltip';
|
|
3
|
+
import type { RenderFunction } from '../_util/getRenderPropValue';
|
|
4
|
+
export interface PopoverProps extends AbstractTooltipProps {
|
|
5
|
+
title?: React.ReactNode | RenderFunction;
|
|
6
|
+
content?: React.ReactNode | RenderFunction;
|
|
7
|
+
/** @private Used For Popconfirm. Safe to remove. */
|
|
8
|
+
_overlay?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, keyof PopoverProps> & React.RefAttributes<unknown>>;
|
|
11
|
+
export default Popover;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,2 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { placements as Placements } from 'rc-tooltip/lib/placements';
|
|
2
|
+
import type { TooltipProps as RcTooltipProps } from 'rc-tooltip/lib/Tooltip';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import type { PresetColorType } from '../_util/colors';
|
|
5
|
+
import { AdjustOverflow, PlacementsConfig } from '../_util/placements';
|
|
6
|
+
import type { LiteralUnion } from '../_util/type';
|
|
7
|
+
export type { AdjustOverflow, PlacementsConfig };
|
|
8
|
+
export declare type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
9
|
+
export interface TooltipAlignConfig {
|
|
10
|
+
points?: [string, string];
|
|
11
|
+
offset?: [number | string, number | string];
|
|
12
|
+
targetOffset?: [number | string, number | string];
|
|
13
|
+
overflow?: {
|
|
14
|
+
adjustX: boolean;
|
|
15
|
+
adjustY: boolean;
|
|
16
|
+
};
|
|
17
|
+
useCssRight?: boolean;
|
|
18
|
+
useCssBottom?: boolean;
|
|
19
|
+
useCssTransform?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface AbstractTooltipProps extends Partial<Omit<RcTooltipProps, 'children'>> {
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
className?: string;
|
|
24
|
+
color?: LiteralUnion<PresetColorType, string>;
|
|
25
|
+
placement?: TooltipPlacement;
|
|
26
|
+
builtinPlacements?: typeof Placements;
|
|
27
|
+
openClassName?: string;
|
|
28
|
+
arrowPointAtCenter?: boolean;
|
|
29
|
+
autoAdjustOverflow?: boolean | AdjustOverflow;
|
|
30
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export declare type RenderFunction = () => React.ReactNode;
|
|
34
|
+
export interface TooltipPropsWithOverlay extends AbstractTooltipProps {
|
|
35
|
+
title?: React.ReactNode | RenderFunction;
|
|
36
|
+
overlay?: React.ReactNode | RenderFunction;
|
|
37
|
+
}
|
|
38
|
+
export interface TooltipPropsWithTitle extends AbstractTooltipProps {
|
|
39
|
+
title: React.ReactNode | RenderFunction;
|
|
40
|
+
overlay?: React.ReactNode | RenderFunction;
|
|
41
|
+
}
|
|
42
|
+
export declare type TooltipProps = TooltipPropsWithTitle | TooltipPropsWithOverlay;
|
|
43
|
+
declare const Tooltip: React.ForwardRefExoticComponent<Pick<TooltipProps, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
2
44
|
export default Tooltip;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EllipsisProps {
|
|
3
|
+
enabledMeasure?: boolean;
|
|
4
|
+
text?: React.ReactNode;
|
|
5
|
+
width: number;
|
|
6
|
+
rows: number;
|
|
7
|
+
children: (cutChildren: React.ReactNode[], needEllipsis: boolean) => React.ReactNode;
|
|
8
|
+
onEllipsis: (isEllipsis: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Ellipsis: {
|
|
11
|
+
({ enabledMeasure, children, text, width, rows, onEllipsis }: EllipsisProps): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export default Ellipsis;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TooltipProps } from '../../Tooltip';
|
|
3
|
+
export interface EllipsisTooltipProps {
|
|
4
|
+
tooltipProps?: TooltipProps;
|
|
5
|
+
enabledEllipsis: boolean;
|
|
6
|
+
isEllipsis?: boolean;
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
declare const EllipsisTooltip: {
|
|
10
|
+
({ enabledEllipsis, isEllipsis, children, tooltipProps, }: EllipsisTooltipProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default EllipsisTooltip;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { AutoSizeType } from 'rc-textarea/lib/ResizableTextArea';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { TooltipProps } from '../../Tooltip';
|
|
4
|
+
import type { TypographyProps } from '../Typography';
|
|
5
|
+
export declare type BaseType = 'secondary' | 'success' | 'warning' | 'danger';
|
|
6
|
+
interface CopyConfig {
|
|
7
|
+
text?: string;
|
|
8
|
+
onCopy?: (event?: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
tooltips?: boolean | React.ReactNode;
|
|
11
|
+
format?: 'text/plain' | 'text/html';
|
|
12
|
+
}
|
|
13
|
+
interface EditConfig {
|
|
14
|
+
editing?: boolean;
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
tooltip?: boolean | React.ReactNode;
|
|
17
|
+
onStart?: () => void;
|
|
18
|
+
onChange?: (value: string) => void;
|
|
19
|
+
onCancel?: () => void;
|
|
20
|
+
onEnd?: () => void;
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
autoSize?: boolean | AutoSizeType;
|
|
23
|
+
triggerType?: ('icon' | 'text')[];
|
|
24
|
+
enterIcon?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export interface EllipsisConfig {
|
|
27
|
+
rows?: number;
|
|
28
|
+
expandable?: boolean;
|
|
29
|
+
suffix?: string;
|
|
30
|
+
symbol?: React.ReactNode;
|
|
31
|
+
onExpand?: React.MouseEventHandler<HTMLElement>;
|
|
32
|
+
onEllipsis?: (ellipsis: boolean) => void;
|
|
33
|
+
tooltip?: React.ReactNode | TooltipProps;
|
|
34
|
+
}
|
|
35
|
+
export interface BlockProps extends TypographyProps {
|
|
36
|
+
title?: string;
|
|
37
|
+
editable?: boolean | EditConfig;
|
|
38
|
+
copyable?: boolean | CopyConfig;
|
|
39
|
+
type?: BaseType;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
ellipsis?: boolean | EllipsisConfig;
|
|
42
|
+
code?: boolean;
|
|
43
|
+
mark?: boolean;
|
|
44
|
+
underline?: boolean;
|
|
45
|
+
delete?: boolean;
|
|
46
|
+
strong?: boolean;
|
|
47
|
+
keyboard?: boolean;
|
|
48
|
+
italic?: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface InternalBlockProps extends BlockProps {
|
|
51
|
+
component: string;
|
|
52
|
+
}
|
|
53
|
+
declare const Base: React.ForwardRefExoticComponent<InternalBlockProps & React.RefAttributes<unknown>>;
|
|
54
|
+
export default Base;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AutoSizeType } from 'rc-textarea/lib/ResizableTextArea';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { DirectionType } from 'antd/es/config-provider';
|
|
4
|
+
interface EditableProps {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
['aria-label']?: string;
|
|
8
|
+
onSave: (value: string) => void;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
onEnd?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
direction?: DirectionType;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
autoSize?: boolean | AutoSizeType;
|
|
16
|
+
enterIcon?: React.ReactNode;
|
|
17
|
+
component?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const Editable: React.FC<EditableProps>;
|
|
20
|
+
export default Editable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BlockProps } from './Base';
|
|
3
|
+
export interface LinkProps extends BlockProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'type'> {
|
|
4
|
+
ellipsis?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BlockProps } from './Base';
|
|
3
|
+
export interface ParagraphProps extends BlockProps {
|
|
4
|
+
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BlockProps, EllipsisConfig } from './Base';
|
|
3
|
+
export interface TextProps extends BlockProps {
|
|
4
|
+
ellipsis?: boolean | Omit<EllipsisConfig, 'expandable' | 'rows' | 'onExpand'>;
|
|
5
|
+
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BlockProps } from './Base';
|
|
3
|
+
declare const TITLE_ELE_LIST: [1, 2, 3, 4, 5];
|
|
4
|
+
export declare type TitleProps = Omit<BlockProps & {
|
|
5
|
+
level?: typeof TITLE_ELE_LIST[number];
|
|
6
|
+
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
|
7
|
+
}, 'strong'>;
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TypographyProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
prefixCls?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
['aria-label']?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ExportTypography: React.FC<TypographyProps>;
|
|
11
|
+
export default ExportTypography;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useMergedConfig<Target>(propConfig: any, templateConfig?: Target): [boolean, Target];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Link from './Link';
|
|
2
|
+
import Paragraph from './Paragraph';
|
|
3
|
+
import Text from './Text';
|
|
4
|
+
import Title from './Title';
|
|
5
|
+
import OriginTypography from './Typography';
|
|
6
|
+
import { Typography as AntdTypography } from 'antd';
|
|
7
|
+
export declare type TypographyProps = typeof OriginTypography & {
|
|
8
|
+
Text: typeof Text;
|
|
9
|
+
Link: typeof Link;
|
|
10
|
+
Title: typeof Title;
|
|
11
|
+
Paragraph: typeof Paragraph;
|
|
12
|
+
AntdTypography: typeof AntdTypography;
|
|
13
|
+
};
|
|
14
|
+
declare const Typography: TypographyProps;
|
|
15
|
+
export default Typography;
|