onchain-uikit 0.0.7 → 3.9.4-alpha2

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.
Files changed (146) hide show
  1. package/dist/filePreview/fontawesome-webfont.woff2 +0 -0
  2. package/dist/filePreview/iconfont.css +457 -0
  3. package/dist/filePreview/loading.gif +0 -0
  4. package/dist/filePreview/logo.svg +1 -0
  5. package/dist/filePreview/luckyexcel.umd.js +26153 -0
  6. package/dist/filePreview/luckysheet.css +7145 -0
  7. package/dist/filePreview/luckysheet.umd.js +137608 -0
  8. package/dist/filePreview/plugin.js +29474 -0
  9. package/dist/filePreview/plugins.css +10 -0
  10. package/dist/filePreview/pluginsCss.css +1 -0
  11. package/dist/filePreview/waffle_sprite.png +0 -0
  12. package/dist/font/demo.css +539 -0
  13. package/dist/font/demo_index.html +20820 -0
  14. package/dist/font/iconfont.css +3604 -0
  15. package/dist/font/iconfont.js +70 -0
  16. package/dist/font/iconfont.json +6288 -0
  17. package/dist/font/iconfont.svg +1813 -0
  18. package/dist/font/iconfont.ttf +0 -0
  19. package/dist/font/iconfont.woff +0 -0
  20. package/dist/font/iconfont.woff2 +0 -0
  21. package/dist/index.cjs.js +529 -0
  22. package/dist/index.es.js +44594 -0
  23. package/dist/index.umd.js +633 -0
  24. package/dist/logo.svg +1 -0
  25. package/dist/onchain-uikit.css +10 -0
  26. package/dist/xlsx-C9icP-aY.mjs +24775 -0
  27. package/dist/xlsx-qn1xoUuv.js +105 -0
  28. package/lib/src/App.d.ts +1 -1
  29. package/lib/src/app/main/model/context.d.ts +30 -0
  30. package/lib/src/components/OnChainAI/index.d.ts +3 -0
  31. package/lib/src/{stories/Page.stories.d.ts → components/OnChainAI/index.stories.d.ts} +4 -2
  32. package/lib/src/components/OnChainAI/welcome.d.ts +6 -0
  33. package/lib/src/components/OnChainAdvancedSearch/index.d.ts +8 -0
  34. package/lib/src/{stories/XsButton.stories.d.ts → components/OnChainAdvancedSearch/index.stories.d.ts} +1 -1
  35. package/lib/src/components/OnChainBadge/index.d.ts +52 -0
  36. package/lib/src/{stories/PlmMosaic.stories.d.ts → components/OnChainBadge/index.stories.d.ts} +2 -2
  37. package/lib/src/components/OnChainCompositeForm/index.d.ts +26 -0
  38. package/lib/src/components/OnChainCompositeForm/index.stories.d.ts +14 -0
  39. package/lib/src/components/OnChainDropMenu/index.d.ts +21 -0
  40. package/lib/src/components/OnChainDropMenu/index.stories.d.ts +14 -0
  41. package/lib/src/components/OnChainExcelViewer/index.d.ts +8 -0
  42. package/lib/src/components/OnChainExcelViewer/index.stories.d.ts +14 -0
  43. package/lib/src/components/OnChainForm/index.d.ts +14 -0
  44. package/lib/src/components/OnChainForm/index.stories.d.ts +14 -0
  45. package/lib/src/components/OnChainFormItem/index.d.ts +175 -0
  46. package/lib/src/components/OnChainFormItem/index.stories.d.ts +19 -0
  47. package/lib/src/components/OnChainFormItem/title/index.d.ts +2 -0
  48. package/lib/src/components/OnChainGenAntImage/index.d.ts +5 -0
  49. package/lib/src/components/OnChainGenAntImage/index.stories.d.ts +14 -0
  50. package/lib/src/components/OnChainGlobalLoading/index.d.ts +9 -0
  51. package/lib/src/components/OnChainGlobalLoading/index.stories.d.ts +14 -0
  52. package/lib/src/components/OnChainHighLightWords/index.d.ts +9 -0
  53. package/lib/src/components/OnChainHighLightWords/index.stories.d.ts +14 -0
  54. package/lib/src/components/OnChainIcon/index.d.ts +31 -0
  55. package/lib/src/components/OnChainIcon/index.stories.d.ts +15 -0
  56. package/lib/src/components/OnChainImage/index.d.ts +9 -0
  57. package/lib/src/components/OnChainImage/index.stories.d.ts +18 -0
  58. package/lib/src/components/OnChainInput/index.d.ts +13 -0
  59. package/lib/src/components/OnChainInput/index.stories.d.ts +14 -0
  60. package/lib/src/components/OnChainLinkInstance/index.d.ts +1 -0
  61. package/lib/src/components/OnChainLoading/index.d.ts +10 -0
  62. package/lib/src/components/OnChainLoading/index.stories.d.ts +14 -0
  63. package/lib/src/components/OnChainLoadingSkCube/index.d.ts +6 -0
  64. package/lib/src/components/OnChainLoadingSkCube/index.stories.d.ts +14 -0
  65. package/lib/src/components/OnChainMarkdown/index.d.ts +16 -0
  66. package/lib/src/components/OnChainMarkdown/index.stories.d.ts +14 -0
  67. package/lib/src/components/OnChainModal/index.d.ts +22 -0
  68. package/lib/src/components/OnChainModal/index.stories.d.ts +14 -0
  69. package/lib/src/components/OnChainMosaic/index.d.ts +7 -0
  70. package/lib/src/components/OnChainMosaic/index.stories.d.ts +14 -0
  71. package/lib/src/components/OnChainPopoverTransfer/index.d.ts +49 -0
  72. package/lib/src/components/OnChainPopoverTransfer/select/index.d.ts +18 -0
  73. package/lib/src/components/OnChainPopupSelect/index.d.ts +32 -0
  74. package/lib/src/components/OnChainPopupSelect/index.stories.d.ts +14 -0
  75. package/lib/src/components/OnChainProgress/index.d.ts +7 -0
  76. package/lib/src/components/OnChainProgress/index.stories.d.ts +16 -0
  77. package/lib/src/components/OnChainProvider/index.d.ts +18 -0
  78. package/lib/src/components/OnChainProvider/index.stories.d.ts +14 -0
  79. package/lib/src/components/OnChainPublicTree/index.d.ts +20 -0
  80. package/lib/src/components/OnChainPublicTree/index.stories.d.ts +14 -0
  81. package/lib/src/components/OnChainQueryBuilder/AbcSelectTransfer/index.d.ts +15 -0
  82. package/lib/src/components/OnChainQueryBuilder/index.d.ts +31 -0
  83. package/lib/src/components/OnChainResourceTree/index.d.ts +26 -0
  84. package/lib/src/components/OnChainResourceTree/index.stories.d.ts +14 -0
  85. package/lib/src/components/OnChainScrollBar/index.d.ts +7 -0
  86. package/lib/src/components/OnChainScrollBar/index.stories.d.ts +14 -0
  87. package/lib/src/components/OnChainScrollBarAssembly/index.d.ts +11 -0
  88. package/lib/src/components/OnChainScrollBarAssembly/index.stories.d.ts +14 -0
  89. package/lib/src/components/OnChainSelect/index.d.ts +14 -0
  90. package/lib/src/{stories/PlmSelect/PlmSelect.stories.d.ts → components/OnChainSelect/index.stories.d.ts} +8 -3
  91. package/lib/src/components/OnChainSelectPopupForm/index.d.ts +45 -0
  92. package/lib/src/components/OnChainSelectPopupForm/select/index.d.ts +20 -0
  93. package/lib/src/components/OnChainTable/ContextMenu.d.ts +8 -0
  94. package/lib/src/components/OnChainTable/EditableCell.d.ts +39 -0
  95. package/lib/src/components/OnChainTable/EditableRow.d.ts +6 -0
  96. package/lib/src/components/OnChainTable/OnChainTableFormItem/index.d.ts +14 -0
  97. package/lib/src/components/OnChainTable/ResizableTitle.d.ts +2 -0
  98. package/lib/src/components/OnChainTable/TableFooter.d.ts +13 -0
  99. package/lib/src/components/OnChainTable/TableUtils.d.ts +78 -0
  100. package/lib/src/components/OnChainTable/const.d.ts +2 -0
  101. package/lib/src/components/OnChainTable/index.d.ts +101 -0
  102. package/lib/src/components/OnChainTable/index.stories.d.ts +28 -0
  103. package/lib/src/components/OnChainTable/type.d.ts +10 -0
  104. package/lib/src/components/OnChainTable/useClipboard.d.ts +67 -0
  105. package/lib/src/components/OnChainTable/useColumn.d.ts +5 -0
  106. package/lib/src/components/OnChainTable/useCopy.d.ts +5 -0
  107. package/lib/src/components/OnChainTable/useDynamicHeight.d.ts +13 -0
  108. package/lib/src/components/OnChainTable/useFiltered.d.ts +23 -0
  109. package/lib/src/components/OnChainTable/usePaste.d.ts +5 -0
  110. package/lib/src/components/OnChainTable/useVirtualScroll.d.ts +3 -0
  111. package/lib/src/components/OnChainTable/virtualScroll.d.ts +91 -0
  112. package/lib/src/components/OnChainTableSelection/index.d.ts +40 -0
  113. package/lib/src/components/OnChainTableSelection/index.stories.d.ts +14 -0
  114. package/lib/src/components/OnChainTabs/index.d.ts +20 -0
  115. package/lib/src/components/OnChainTabs/index.stories.d.ts +14 -0
  116. package/lib/src/components/OnChainViewerError/index.d.ts +6 -0
  117. package/lib/src/components/OnChainViewerError/index.stories.d.ts +14 -0
  118. package/lib/src/components/OnChainformUploader/index.d.ts +1 -0
  119. package/lib/src/components/PlmSearchSelect/index.d.ts +18 -0
  120. package/lib/src/hooks/useShortcutKey/index.d.ts +5 -0
  121. package/lib/src/hooks/useStore/index.d.ts +14 -0
  122. package/lib/src/index.d.ts +32 -4
  123. package/lib/src/language/index.d.ts +23 -0
  124. package/lib/src/language/translate.d.ts +5 -0
  125. package/lib/src/types/gantt.d.ts +269 -0
  126. package/lib/src/typings.d.ts +610 -612
  127. package/lib/src/utils/attribute.d.ts +70 -0
  128. package/lib/src/utils/authority/basicsAuthority.d.ts +0 -5
  129. package/lib/src/utils/authority/const.d.ts +30 -0
  130. package/lib/src/utils/itemCode.d.ts +159 -0
  131. package/lib/src/utils/utility.d.ts +46 -0
  132. package/lib/typings.d.ts +126 -130
  133. package/package.json +31 -7
  134. package/lib/instance.cjs.mjs +0 -366
  135. package/lib/instance.es.mjs +0 -29301
  136. package/lib/instance.umd.mjs +0 -366
  137. package/lib/src/components/PlmMosaic/index.d.ts +0 -5
  138. package/lib/src/stories/Button.d.ts +0 -14
  139. package/lib/src/stories/Button.stories.d.ts +0 -23
  140. package/lib/src/stories/Header.d.ts +0 -11
  141. package/lib/src/stories/Header.stories.d.ts +0 -18
  142. package/lib/src/stories/OnChainProvider.d.ts +0 -12
  143. package/lib/src/stories/Page.d.ts +0 -2
  144. package/lib/src/stories/PlmSelect/index.d.ts +0 -20
  145. package/lib/src/stories/XsButton.d.ts +0 -22
  146. /package/{lib → dist}/vite.svg +0 -0
package/lib/src/App.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  /** vite工程入口,跟storybook无关 */
3
- export declare function rootContainer(container: any): React.FunctionComponentElement<import('antd/es/config-provider').ConfigProviderProps>;
3
+ export declare function rootContainer(container: any): React.FunctionComponentElement<import('antd').ConfigProviderProps>;
4
4
  declare function App(): import("react/jsx-runtime").JSX.Element;
5
5
  export default App;
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * context共享对象
4
+ */
5
+ export interface ContextData {
6
+ /** icon图标URL */
7
+ iconScriptUrl?: string;
8
+ /** 图标前缀是否固定为icon- */
9
+ isOnlyPrefixIcon?: boolean;
10
+ /** 国际化语言 */
11
+ languageMap?: Record<string, any>;
12
+ /** 额外的Form组件 */
13
+ formItemCom?: Record<string, React.FC<any>>;
14
+ /** 覆盖a跳转标签 */
15
+ overrideLinkCom?: Record<string, React.FC<any>>;
16
+ /**
17
+ * 根据patchCode翻译国际化文本
18
+ * @param key pathCode
19
+ * @param extra
20
+ * @param languageMap 国际化语言
21
+ * @returns
22
+ */
23
+ translate?: (
24
+ /** pathCode路径 */
25
+ key: string, extra?: {
26
+ variate?: object;
27
+ placeholder?: string;
28
+ }, languageMap?: Record<string, string | undefined>) => string;
29
+ }
30
+ export declare const ModelContext: React.Context<ContextData | undefined>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Independent: React.FC;
3
+ export default Independent;
@@ -5,8 +5,10 @@ declare const meta: {
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
8
11
  };
9
12
  export default meta;
10
13
  type Story = StoryObj<typeof meta>;
11
- export declare const LoggedOut: Story;
12
- export declare const LoggedIn: Story;
14
+ export declare const Init: Story;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ export interface placeholderNodeProps {
3
+ onPromptsItemClick: (...args: any[]) => any;
4
+ }
5
+ declare const PlaceholderNode: FC<placeholderNodeProps>;
6
+ export default PlaceholderNode;
@@ -0,0 +1,8 @@
1
+ export interface OnChainAdvancedSearchProps {
2
+ children: any;
3
+ advancedSearchClassify: Array<object>;
4
+ getInterface: (value: string, objectId?: any, isDefaultAttribute?: boolean) => void;
5
+ getAttribute: (val: any, value?: any, isDefaultAttribute?: boolean) => void;
6
+ }
7
+ declare const OnChainAdvancedSearch: (props: OnChainAdvancedSearchProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default OnChainAdvancedSearch;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: (props: import('./XsButton').XsButtonProps, ref: any) => import("react/jsx-runtime").JSX.Element;
4
+ component: (props: import('.').OnChainAdvancedSearchProps) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -0,0 +1,52 @@
1
+ import { default as React } from 'react';
2
+ import { BadgeProps } from 'antd';
3
+ import { BaseComponentProps } from '../../typings';
4
+ import { HealthStatus, HealthStatusObject } from '../../utils/authority/const';
5
+ export interface OnChainBadgeProps extends BaseComponentProps, BadgeProps {
6
+ }
7
+ /**
8
+ * 徽标数
9
+ * 图标右上角的圆形徽标数字。
10
+ */
11
+ declare const OnChainBadge: React.FC<OnChainBadgeProps>;
12
+ export declare enum Color {
13
+ /** 浅绿 */
14
+ LightGreen = "LightGreen",
15
+ /** 粉 */
16
+ Pink = "Pink",
17
+ /** 蓝 */
18
+ Blue = "blue",
19
+ /** 黑蓝 */
20
+ BlackBlue = "BlackBlue",
21
+ /** 灰色 */
22
+ Gray = "Gray"
23
+ }
24
+ export declare const StatusColors: {
25
+ /** 红 */
26
+ Delay: string;
27
+ /** 绿 */
28
+ Healthy: string;
29
+ /** 浅绿 */
30
+ LightGreen: string;
31
+ /** 黄 */
32
+ Warning: string;
33
+ /** 灰 */
34
+ Failure: string;
35
+ /** 蓝 */
36
+ blue: string;
37
+ /** 粉 */
38
+ Pink: string;
39
+ /** 黑蓝 */
40
+ BlackBlue: string;
41
+ /** 灰色 */
42
+ Gray: string;
43
+ };
44
+ interface HealthStateProps {
45
+ /** @deprecated */
46
+ healthList?: HealthStatusObject[];
47
+ /** @deprecated */
48
+ healthId?: string;
49
+ healthStatus: HealthStatus | Color;
50
+ }
51
+ export declare const HealthStateComponent: React.FC<HealthStateProps>;
52
+ export default OnChainBadge;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: (props: import('../components/PlmMosaic').PlmMosaicProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: import('react').FC<import('.').OnChainBadgeProps>;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -11,4 +11,4 @@ declare const meta: {
11
11
  };
12
12
  export default meta;
13
13
  type Story = StoryObj<typeof meta>;
14
- export declare const InLineTrue: Story;
14
+ export declare const Init: Story;
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ import { DefaultOptionType } from 'antd/es/select';
3
+ export interface OnChainCompositeFormForm {
4
+ /** 值 */
5
+ value: any;
6
+ /** 最小值 */
7
+ min: number;
8
+ /** 最大值 */
9
+ max: number;
10
+ /** 最大长度 */
11
+ maxLength: number;
12
+ /** 小数位 */
13
+ precision: number;
14
+ /** 样式大小 */
15
+ size?: 'large' | 'middle' | 'small';
16
+ /** 输入框类型,12:Input,13:InputNumber*/
17
+ valueType?: '12' | '13';
18
+ /** 是否只读 */
19
+ readOnly: boolean;
20
+ options: DefaultOptionType[];
21
+ onBlur?: any;
22
+ onChange?: (e: string) => void;
23
+ }
24
+ /** 复合文本 */
25
+ declare const OnChainCompositeForm: React.FC<OnChainCompositeFormForm>;
26
+ export default OnChainCompositeForm;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainCompositeFormForm>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
@@ -0,0 +1,21 @@
1
+ import { DropDownProps, MenuItemProps, MenuProps, PopconfirmProps } from 'antd';
2
+ import { BaseComponentProps } from '../../typings';
3
+ type menuitem = MenuItemProps & {
4
+ confirm?: PopconfirmProps;
5
+ request?: {
6
+ url: string;
7
+ middleware?: () => Promise<void>;
8
+ options?: any;
9
+ onSuccess?: () => void;
10
+ };
11
+ };
12
+ export interface OnChainDropMenuProps extends BaseComponentProps, DropDownProps {
13
+ overlay?: any;
14
+ menu: MenuProps & {
15
+ items: menuitem[];
16
+ };
17
+ request?: (url: any, options: any) => Promise<any>;
18
+ }
19
+ /** 下拉菜单 */
20
+ declare const OnChainDropMenu: (props: OnChainDropMenuProps) => import("react/jsx-runtime").JSX.Element;
21
+ export default OnChainDropMenu;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: (props: import('.').OnChainDropMenuProps) => import("react/jsx-runtime").JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface OnChainExcelViewerProps {
3
+ /** 文件URL */
4
+ url: string;
5
+ }
6
+ /** Excel预览 */
7
+ declare const OnChainExcelViewer: React.FC<OnChainExcelViewerProps>;
8
+ export default OnChainExcelViewer;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainExcelViewerProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
@@ -0,0 +1,14 @@
1
+ import { default as React, CSSProperties, FC } from 'react';
2
+ import { FormInstance } from 'antd';
3
+ export interface OnChainFormProps {
4
+ readOnly?: boolean;
5
+ name?: string;
6
+ height?: number;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ children?: React.ReactNode;
10
+ }
11
+ export interface OnChainFormForwardRefProps extends FormInstance {
12
+ }
13
+ declare const OnChainForm: FC<OnChainFormProps>;
14
+ export default OnChainForm;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainFormProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
@@ -0,0 +1,175 @@
1
+ import { FormItemProps, DatePickerProps, SwitchProps, InputNumberProps, CascaderProps, TreeSelectProps, RadioProps, RadioGroupProps, SliderSingleProps, CheckboxProps, InputProps } from 'antd';
2
+ import { TextAreaProps } from 'antd/lib/input';
3
+ import { RangePickerProps } from 'antd/lib/date-picker/generatePicker';
4
+ import { CheckboxGroupProps } from 'antd/lib/checkbox';
5
+ import { OnChainSelectProps } from '../OnChainSelect';
6
+ import { BasicsAttribute } from '../../utils/attribute';
7
+ import { PlmPopoverTransferProps } from '../OnChainPopoverTransfer';
8
+ import { FC } from 'react';
9
+ import { PlmSelectPopupProps } from '../OnChainSelectPopupForm/select';
10
+ export declare const PlmTreeSelect: FC<TreeSelectProps>;
11
+ export type contentProps = ({
12
+ formatFormProps?: (props: contentProps['props'], record: any, columnApicode: string) => contentProps;
13
+ } & ({
14
+ type: 'Input';
15
+ cannotread?: string;
16
+ middleware?: any;
17
+ isbomtag?: boolean;
18
+ props?: (InputProps & {
19
+ options?: Record<string, any>[];
20
+ }) | (Record<string, any> & {
21
+ options?: Record<string, any>[];
22
+ });
23
+ } | {
24
+ type: 'Select';
25
+ middleware?: any;
26
+ cannotread?: string;
27
+ props?: OnChainSelectProps;
28
+ } | {
29
+ type: 'PopupSelect';
30
+ cannotread?: string;
31
+ middleware?: any;
32
+ props?: any;
33
+ } | {
34
+ type: 'SearchSelect';
35
+ middleware?: any;
36
+ cannotread?: string;
37
+ props?: any;
38
+ } | {
39
+ type: 'Checkbox.Group';
40
+ cannotread?: string;
41
+ middleware?: any;
42
+ props?: CheckboxGroupProps;
43
+ } | {
44
+ type: 'Checkbox';
45
+ cannotread?: string;
46
+ middleware?: any;
47
+ props?: CheckboxProps;
48
+ } | {
49
+ type: 'Input.TextArea';
50
+ cannotread?: string;
51
+ middleware?: any;
52
+ props?: TextAreaProps;
53
+ } | {
54
+ type: 'Input.Password';
55
+ cannotread?: string;
56
+ props?: any;
57
+ middleware?: any;
58
+ } | {
59
+ type: 'Date';
60
+ cannotread?: string;
61
+ middleware?: any;
62
+ props?: DatePickerProps;
63
+ } | {
64
+ type: 'DatePicker.RangePicker';
65
+ cannotread?: string;
66
+ middleware?: any;
67
+ props?: RangePickerProps<any>;
68
+ } | {
69
+ type: 'TimePicker.RangePicker';
70
+ cannotread?: string;
71
+ middleware?: any;
72
+ props?: any;
73
+ } | {
74
+ type: 'Image';
75
+ cannotread?: string;
76
+ middleware?: any;
77
+ props: {};
78
+ } | {
79
+ type: 'File';
80
+ cannotread?: string;
81
+ middleware?: any;
82
+ props: {};
83
+ } | {
84
+ type: 'Switch';
85
+ cannotread?: string;
86
+ middleware?: any;
87
+ props?: SwitchProps;
88
+ } | {
89
+ type: 'Number';
90
+ cannotread?: string;
91
+ props?: {
92
+ apicode?: string;
93
+ } & InputNumberProps;
94
+ middleware?: any;
95
+ } | {
96
+ type: 'Cascader';
97
+ cannotread?: string;
98
+ middleware?: any;
99
+ props?: CascaderProps;
100
+ } | {
101
+ type: 'TreeSelect';
102
+ cannotread?: string;
103
+ middleware?: any;
104
+ props?: TreeSelectProps<any>;
105
+ } | {
106
+ type: 'Radio';
107
+ cannotread?: string;
108
+ middleware?: any;
109
+ props?: RadioProps;
110
+ } | {
111
+ type: 'Radio.Group';
112
+ cannotread?: string;
113
+ middleware?: any;
114
+ props?: RadioGroupProps;
115
+ } | {
116
+ type: 'Slider';
117
+ middleware?: any;
118
+ cannotread?: string;
119
+ props?: SliderSingleProps;
120
+ } | {
121
+ type: 'dynamicTable';
122
+ middleware?: any;
123
+ cannotread?: string;
124
+ props?: any;
125
+ } | {
126
+ type: 'Markdown';
127
+ cannotread?: string;
128
+ middleware?: any;
129
+ props?: any;
130
+ } | {
131
+ type: 'InputFile';
132
+ cannotread?: string;
133
+ middleware?: any;
134
+ props?: any;
135
+ } | {
136
+ type: 'DocumentFile';
137
+ middleware?: any;
138
+ cannotread?: string;
139
+ props?: any;
140
+ } | {
141
+ type: 'SelectTransfer';
142
+ middleware?: any;
143
+ cannotread?: string;
144
+ props?: OnChainSelectProps & {
145
+ attr: BasicsAttribute;
146
+ allListOptions: Record<string, any[]>;
147
+ popoverTransfer: Omit<PlmPopoverTransferProps, 'allListOptions' | 'attr'>;
148
+ };
149
+ } | {
150
+ type: 'CompositeForm';
151
+ middleware?: any;
152
+ cannotread?: string;
153
+ props?: any;
154
+ } | {
155
+ type: 'Title';
156
+ middleware?: any;
157
+ cannotread?: string;
158
+ props?: any;
159
+ } | {
160
+ type: 'SelectPopup';
161
+ middleware?: any;
162
+ cannotread?: string;
163
+ props?: PlmSelectPopupProps['selectProps'];
164
+ }));
165
+ export interface OnChainFormItemProps extends BaseComponentProps, FormItemProps {
166
+ content: contentProps;
167
+ ignoreNoWhiteSpaceStart?: boolean;
168
+ readOnly?: boolean | (() => boolean);
169
+ name?: string;
170
+ suffix?: React.ReactNode | string;
171
+ requiredMark?: any;
172
+ NoWhiteSpaceStart?: TreeSelectProps;
173
+ }
174
+ declare const OnChainFormItem: React.FC<OnChainFormItemProps>;
175
+ export default OnChainFormItem;
@@ -0,0 +1,19 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainFormItemProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {
11
+ content: {
12
+ type: "Input";
13
+ };
14
+ label: string;
15
+ };
16
+ };
17
+ export default meta;
18
+ type Story = StoryObj<typeof meta>;
19
+ export declare const Init: Story;
@@ -0,0 +1,2 @@
1
+ declare const OnChainFormTitle: React.FC;
2
+ export default OnChainFormTitle;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { ImageProps } from 'antd';
3
+ /** 图片 */
4
+ declare const OnChainGenAntImage: FC<ImageProps>;
5
+ export default OnChainGenAntImage;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('rc-image').ImageProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
@@ -0,0 +1,9 @@
1
+ import { BaseComponentProps } from '../../typings';
2
+ import { FC } from 'react';
3
+ export interface PlmGlobalModalLoadingProps extends BaseComponentProps {
4
+ /** 是否加载 */
5
+ isSpinning?: boolean;
6
+ }
7
+ /** Global加载 */
8
+ declare const PlmGlobalModalLoading: FC<PlmGlobalModalLoadingProps>;
9
+ export default PlmGlobalModalLoading;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').PlmGlobalModalLoadingProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ export interface OnChainHighLightWordsProps {
3
+ /** 文本内容 */
4
+ value: string;
5
+ /** 高亮字符数组 */
6
+ highlight: string[];
7
+ }
8
+ declare const OnChainHighLightWords: FC<OnChainHighLightWordsProps>;
9
+ export default OnChainHighLightWords;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainHighLightWordsProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ import { PopoverProps, TooltipProps } from 'antd';
3
+ import { BaseComponentProps } from '../../typings';
4
+ export interface OnChainIconProps extends BaseComponentProps {
5
+ /** 图标名称 */
6
+ type: string;
7
+ /** true(icon-) false(icon-front-) */
8
+ isBackend?: boolean;
9
+ /** 国际化语言,控制不同语言的默认图标大小,English、ChineseSimplified */
10
+ languageApicode?: string;
11
+ className?: string;
12
+ disabled?: boolean;
13
+ backgroundColor?: string;
14
+ number?: number;
15
+ style?: React.CSSProperties | undefined;
16
+ divStyle?: any;
17
+ color?: string;
18
+ marginTop?: string;
19
+ button?: boolean;
20
+ tooltip?: TooltipProps;
21
+ popover?: PopoverProps;
22
+ placement?: string | boolean;
23
+ onClick?: (e?: any) => void;
24
+ onDivClick?: () => void;
25
+ onMouseEnter?: () => void;
26
+ onMouseLeave?: () => void;
27
+ }
28
+ /** 单纯的ali图标 */
29
+ export declare const AliIconFontFn: (scriptUrl?: string) => React.FC<import('@ant-design/icons/lib/components/IconFont').IconFontProps<string>>;
30
+ declare const OnChainIcon: React.FC<OnChainIconProps>;
31
+ export default OnChainIcon;
@@ -0,0 +1,15 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainIconProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;
15
+ export declare const Init2: Story;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type OnChainImageProps = {
3
+ src: string;
4
+ height?: string;
5
+ width?: string;
6
+ };
7
+ /** 图片组件 */
8
+ declare const OnChainImage: React.FC<OnChainImageProps>;
9
+ export default OnChainImage;
@@ -0,0 +1,18 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<{
5
+ src: string;
6
+ height?: string;
7
+ width?: string;
8
+ }>;
9
+ parameters: {
10
+ layout: string;
11
+ };
12
+ tags: string[];
13
+ argTypes: {};
14
+ args: {};
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Init: Story;
@@ -0,0 +1,13 @@
1
+ import { InputProps } from 'antd';
2
+ import { FC } from 'react';
3
+ export interface OnChainInputProps extends InputProps {
4
+ /** 值 */
5
+ value?: string;
6
+ /** 是否自动获取焦点 */
7
+ isFocus?: boolean;
8
+ }
9
+ /**
10
+ * 输入框
11
+ */
12
+ declare const OnChainInput: FC<OnChainInputProps>;
13
+ export default OnChainInput;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainInputProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ args: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Init: Story;