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
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { SpinProps } from 'antd';
3
+ import { BaseComponentProps } from '../../typings';
4
+ export interface OnChainLoadingProps extends BaseComponentProps, SpinProps {
5
+ /** 大小,单位px */
6
+ loadingSize?: number;
7
+ }
8
+ /** 加载框 */
9
+ declare const OnChainLoading: React.FC<OnChainLoadingProps>;
10
+ export default OnChainLoading;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainLoadingProps>;
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,6 @@
1
+ export interface OnChainLoadingSkCubeProps {
2
+ children?: React.ReactNode;
3
+ }
4
+ /** SkCube样式的加载框 */
5
+ declare const OnChainLoadingSkCube: React.FC<OnChainLoadingSkCubeProps>;
6
+ export default OnChainLoadingSkCube;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainLoadingSkCubeProps>;
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,16 @@
1
+ import { default as React } from 'react';
2
+ export interface OnChainMarkdownProps {
3
+ value?: string;
4
+ readOnly: boolean;
5
+ onChange?: (value: string) => void;
6
+ height?: number;
7
+ OSS_URL?: string;
8
+ token?: string;
9
+ toPostFileRecord?: ({ file, response, type }: {
10
+ file: any;
11
+ response: any;
12
+ type: any;
13
+ }) => void;
14
+ }
15
+ declare const OnChainMarkdown: React.FC<OnChainMarkdownProps>;
16
+ export default OnChainMarkdown;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainMarkdownProps>;
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,22 @@
1
+ import { default as React } from 'react';
2
+ import { ModalFuncProps, ModalProps } from 'antd';
3
+ import { BaseComponentProps } from '../../typings';
4
+ export interface OnChainModalProps extends BaseComponentProps, ModalProps {
5
+ modalTitle: any;
6
+ visible: boolean;
7
+ okText?: string;
8
+ /**
9
+ * 彩色进度条的进度 0-1 ,空则不显示
10
+ */
11
+ progressPercent?: number;
12
+ styleUnify?: boolean;
13
+ }
14
+ export declare function confirmModalConfig(params: {
15
+ title: any;
16
+ content: any;
17
+ onOk: () => any;
18
+ onCancel?: () => any;
19
+ isShowBtnIcon?: boolean;
20
+ } & ModalFuncProps): ModalFuncProps;
21
+ declare const OnChainModal: React.FC<OnChainModalProps>;
22
+ export default OnChainModal;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainModalProps>;
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,7 @@
1
+ import { default as React } from 'react';
2
+ export interface OnChainMosaicProps {
3
+ /** true:display=inline-block 否则display=block */
4
+ inLine?: boolean;
5
+ }
6
+ declare const OnChainMosaic: React.FC<OnChainMosaicProps>;
7
+ export default OnChainMosaic;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainMosaicProps>;
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,49 @@
1
+ import { TableProps, TransferProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ import { TransferDirection, TransferItem } from 'antd/es/transfer';
4
+ import { Panes } from '../OnChainTabs';
5
+ import { BasicsAttribute } from '../../utils/attribute';
6
+ export interface PlmPopoverTransferProps {
7
+ title?: React.ReactNode;
8
+ allListOptions: Record<string, any[]>;
9
+ showFooter?: boolean;
10
+ getListCodeItem: (params: {
11
+ search: Record<TransferDirection, string>;
12
+ tabKey: Panes['tabKey'];
13
+ pageNo: Record<TransferDirection, number>;
14
+ isPaging?: boolean;
15
+ }) => Promise<any[] | void>;
16
+ onTabsChange?: (e: string) => void;
17
+ isRadio?: boolean;
18
+ pager?: Record<string, {
19
+ pageSize?: number;
20
+ total?: number;
21
+ }>;
22
+ mandatory?: boolean;
23
+ panes?: Panes[];
24
+ modalWidth?: number;
25
+ scroll?: {
26
+ x: number;
27
+ y: number;
28
+ };
29
+ columns?: TableProps<TransferItem>['columns'] | Record<string, TableProps<TransferItem>['columns']>;
30
+ transfer?: TransferProps<TransferItem>;
31
+ defaultValue?: string | string[];
32
+ onCancel?: () => void;
33
+ onSubmit?: (keys: string[], currentTabKey: string, getActualTabKey?: (allOptions?: Record<string, any[]>) => string, targets?: Record<string, any>) => void;
34
+ attr?: BasicsAttribute;
35
+ defaultActiveKey?: string;
36
+ placeholder?: string;
37
+ }
38
+ export interface PlmPopoverTransferRef {
39
+ dataSource: any[];
40
+ targetKeys: any[];
41
+ loading: boolean;
42
+ submit: () => Promise<any>;
43
+ open: (params: {
44
+ ok?: (keys: string[], tabKey: string, targets: Record<string, any>) => void;
45
+ cancel?: () => void;
46
+ }) => void;
47
+ }
48
+ declare const PlmPopoverTransfer: React.ForwardRefExoticComponent<PlmPopoverTransferProps & React.RefAttributes<PlmPopoverTransferRef>>;
49
+ export default PlmPopoverTransfer;
@@ -0,0 +1,18 @@
1
+ import { BasicsAttribute } from '../../../utils/attribute';
2
+ import { SelectProps } from 'antd';
3
+ import { default as React } from 'react';
4
+ import { PlmPopoverTransferProps } from '..';
5
+ export interface PlmSelectTransferProps {
6
+ selectProps: Omit<SelectProps, 'onChange'> & {
7
+ attr: BasicsAttribute;
8
+ allListOptions: Record<string, any[]>;
9
+ popoverTransfer: Omit<PlmPopoverTransferProps, 'allListOptions'>;
10
+ /** Table Form 发生改变后的回调 */
11
+ onBlur?: () => void;
12
+ };
13
+ readOnly?: boolean;
14
+ value?: string;
15
+ onChange?: (value: string | string[]) => void;
16
+ }
17
+ declare const PlmSelectTransfer: React.ForwardRefExoticComponent<PlmSelectTransferProps & React.RefAttributes<any>>;
18
+ export default PlmSelectTransfer;
@@ -0,0 +1,32 @@
1
+ import { FC } from 'react';
2
+ export interface OnChainPopupSelectProps {
3
+ url: string;
4
+ columns: Array<{}>;
5
+ id?: any;
6
+ onChange?: (url: string) => {};
7
+ value?: any;
8
+ height?: any;
9
+ width: any;
10
+ disabled?: boolean;
11
+ userLink?: boolean;
12
+ options?: any;
13
+ fieldNames?: Object;
14
+ noSearch?: boolean;
15
+ title?: string;
16
+ formate?: string;
17
+ showButton?: boolean;
18
+ params?: Object;
19
+ isCheckbox?: boolean;
20
+ maxSelect?: number;
21
+ placeholder?: string;
22
+ searchPlaceholder?: string;
23
+ placeholderCode?: string;
24
+ isUseRuleSort?: boolean;
25
+ onClick?: (e: any) => void;
26
+ onSubmit?: (row: any) => void;
27
+ modalWidth: number;
28
+ isBroadside?: boolean;
29
+ isLibrary?: boolean;
30
+ }
31
+ declare const OnChainPopupSelect: FC<OnChainPopupSelectProps>;
32
+ export default OnChainPopupSelect;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainPopupSelectProps>;
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,7 @@
1
+ import { ProgressProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ /** 进度条 */
4
+ declare const OnChainProgress: React.FC<ProgressProps & {
5
+ highlight?: string[];
6
+ }>;
7
+ export default OnChainProgress;
@@ -0,0 +1,16 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('antd').ProgressProps & {
5
+ highlight?: string[];
6
+ }>;
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ tags: string[];
11
+ argTypes: {};
12
+ args: {};
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+ export declare const Init: Story;
@@ -0,0 +1,18 @@
1
+ import { ContextData } from '../../app/main/model/context';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Antd Provider
5
+ */
6
+ export interface OnChainProviderProps {
7
+ /** context共享对象 */
8
+ contextData?: ContextData;
9
+ /** 设置AntD统一样式前缀 */
10
+ prefixCls?: string;
11
+ /** 内容 */
12
+ children?: React.ReactNode;
13
+ }
14
+ /**
15
+ * icon、AntD、国际化等全局配置
16
+ */
17
+ declare const OnChainProvider: ({ prefixCls, ...props }: OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
18
+ export default OnChainProvider;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ prefixCls, ...props }: import('.').OnChainProviderProps, ref: any) => 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,20 @@
1
+ export interface PlmPublicTree {
2
+ treeData: any[];
3
+ closeDrag?: boolean;
4
+ closeCondition?: boolean;
5
+ selectedKeys: any;
6
+ treeCrumbs?: any;
7
+ readOnly?: boolean;
8
+ editLoading?: boolean;
9
+ editConditioLoading?: boolean;
10
+ confirmLoading?: boolean;
11
+ onSelect?: (selectedKeys: any[], info: any) => void;
12
+ getTreeList: (id?: any) => void;
13
+ conditionEdit: (val: any) => void;
14
+ addRun: (val: any) => void;
15
+ editRun: (val: any) => void;
16
+ conditionDelete: (val: any) => Promise<any>;
17
+ deleteFolder: (val: any) => Promise<any>;
18
+ }
19
+ declare const publicTree: React.FC<PlmPublicTree>;
20
+ export default publicTree;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').PlmPublicTree>;
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,15 @@
1
+ export interface SelectTransferProps {
2
+ title: string;
3
+ dataSource: any;
4
+ loading: boolean;
5
+ visible: boolean;
6
+ targetKeys: any;
7
+ searchPlaceholder?: string;
8
+ isRadio?: boolean;
9
+ onCancel?: any;
10
+ onSubmit?: any;
11
+ columns: any[];
12
+ defaultPageSize?: number;
13
+ }
14
+ declare const AbcSelectTransfer: React.FC<SelectTransferProps>;
15
+ export default AbcSelectTransfer;
@@ -0,0 +1,31 @@
1
+ export interface OnChainQueryBuilderProps {
2
+ typeData: any;
3
+ searchTree: any;
4
+ readOnly?: boolean;
5
+ cleanUpBtn?: boolean;
6
+ subcategory?: any;
7
+ horizontalStyle?: any;
8
+ closeAdvancedSearch?: any;
9
+ conditionObj?: any;
10
+ setCondition?: any;
11
+ emptyCondition?: any;
12
+ eliminateSearch?: any;
13
+ setConditionValue?: any;
14
+ searchBtn?: any;
15
+ defaultValue?: any;
16
+ storageCondition: (v: any) => Promise<any>;
17
+ conditionEdit: (v: any) => Promise<any>;
18
+ getTreeList: (v: any, a?: any, b?: any) => Promise<any>;
19
+ treeList: () => Promise<any>;
20
+ getLifecycles: (code: string) => Promise<any>;
21
+ getListbycode: (code: string) => Promise<any>;
22
+ getOverview: (id: string) => Promise<any>;
23
+ getLifecyclesNopage: (id: string, code: string) => Promise<any>;
24
+ getHistory: () => Promise<any>;
25
+ getRelation: () => Promise<any>;
26
+ getObjects: (code: string) => Promise<any>;
27
+ getRoles: () => Promise<any>;
28
+ getInstanceParams: (val: any) => Promise<any>;
29
+ }
30
+ declare const OnChainQueryBuilder: React.FC<OnChainQueryBuilderProps>;
31
+ export default OnChainQueryBuilder;
@@ -0,0 +1,26 @@
1
+ import { BasicsItemCode } from '../../utils/itemCode';
2
+ export type TreeDataRef = {
3
+ id: string;
4
+ icon: string;
5
+ name: string;
6
+ apicode: string;
7
+ attrId: string;
8
+ attrValue: string;
9
+ itemCode: string;
10
+ itemEditPurview: boolean;
11
+ parentId: string;
12
+ isDelete: boolean;
13
+ sort: number;
14
+ children: [];
15
+ };
16
+ export interface OnChainResourceTreeProps {
17
+ outIsSelected: boolean;
18
+ onSelected: (dataRef: TreeDataRef) => void;
19
+ onGetTreeFields: (fields: any[]) => void;
20
+ itemCode?: BasicsItemCode;
21
+ treeResult?: Array<object>;
22
+ getInstanceMenu: (val: any) => void;
23
+ getAttributeByTab: (val: any) => void;
24
+ }
25
+ declare const OnChainResourceTree: (props: OnChainResourceTreeProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default OnChainResourceTree;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: (props: import('.').OnChainResourceTreeProps) => 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,7 @@
1
+ import { default as React } from 'react';
2
+ import { ScrollbarProps } from 'react-custom-scrollbars';
3
+ import { BaseComponentProps } from '../../typings';
4
+ export interface OnChainScrollBarProps extends BaseComponentProps, ScrollbarProps {
5
+ }
6
+ declare const OnChainScrollBar: React.FC<OnChainScrollBarProps>;
7
+ export default OnChainScrollBar;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').OnChainScrollBarProps>;
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,11 @@
1
+ export interface ScrollBarAssembly {
2
+ loading?: boolean;
3
+ dataList?: any;
4
+ style?: any;
5
+ direction?: boolean;
6
+ class?: string;
7
+ resetButton?: boolean;
8
+ children?: React.ReactNode;
9
+ }
10
+ declare const OnChainScrollBarAssembly: React.FC<ScrollBarAssembly>;
11
+ export default OnChainScrollBarAssembly;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('.').ScrollBarAssembly>;
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 { BaseComponentProps } from '../../typings';
2
+ import { default as React } from 'react';
3
+ import { SelectProps } from 'antd';
4
+ export interface OnChainSelectProps extends BaseComponentProps, SelectProps<any> {
5
+ pane?: {
6
+ cols?: number;
7
+ item?: BaseComponentProps;
8
+ };
9
+ }
10
+ export interface OnChainSelectForwardRefProps {
11
+ }
12
+ /** select组件 */
13
+ declare const OnChainSelect: React.FC<OnChainSelectProps>;
14
+ export default OnChainSelect;
@@ -1,21 +1,26 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('react').ForwardRefExoticComponent<Omit<import('.').PlmSelectProps, "ref"> & import('react').RefAttributes<unknown>>;
4
+ component: import('react').FC<import('.').OnChainSelectProps>;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
8
8
  tags: string[];
9
- argTypes: {};
9
+ argTypes: {
10
+ style: {
11
+ width: string;
12
+ };
13
+ };
10
14
  args: {
11
15
  /** 列表值 */
12
16
  options: {
13
17
  label: string;
14
18
  value: string;
15
19
  }[];
20
+ /** 默认值 */
21
+ defaultValue: string;
16
22
  };
17
23
  };
18
24
  export default meta;
19
25
  type Story = StoryObj<typeof meta>;
20
26
  export declare const Large: Story;
21
- export declare const Small: Story;
@@ -0,0 +1,45 @@
1
+ import { InputProps } from 'antd';
2
+ import { default as React } from 'react';
3
+ import { PlmTableColumnProps } from '../OnChainTable';
4
+ import { BasicsAttribute } from '../../utils/attribute';
5
+ import { APP } from '../../typings';
6
+ export interface PopupSelectProps {
7
+ generateColumns: (params: React.MutableRefObject<Record<string, any>>) => PlmTableColumnProps;
8
+ getDataSource: (params: {
9
+ search: string;
10
+ sorters: string;
11
+ filters: string;
12
+ pageNo: number;
13
+ pageSize: number;
14
+ record?: APP.instanceInfoType;
15
+ }) => Promise<{
16
+ data: any[];
17
+ total: number;
18
+ }>;
19
+ rowKey?: string;
20
+ searchProps?: Partial<Omit<InputProps, 'value' | 'onChange' | 'onSearch' | 'suffix'>>;
21
+ record?: APP.instanceInfoType;
22
+ attr?: BasicsAttribute;
23
+ title?: React.ReactNode;
24
+ showFooter?: boolean;
25
+ mandatory?: boolean;
26
+ modalWidth?: number;
27
+ scroll?: {
28
+ x: number;
29
+ y: number;
30
+ };
31
+ defaultValue?: string | string[];
32
+ onCancel?: () => void;
33
+ onSubmit?: (keys: string[], currentTabKey: string, getActualTabKey?: (allOptions?: Record<string, any[]>) => string) => void;
34
+ }
35
+ export interface PopupSelectRef {
36
+ dataSource: any[];
37
+ loading: boolean;
38
+ submit: () => Promise<any>;
39
+ open: (params: {
40
+ ok?: (keys: string[]) => void;
41
+ cancel?: () => void;
42
+ }) => void;
43
+ }
44
+ declare const PopupSelect: React.ForwardRefExoticComponent<PopupSelectProps & React.RefAttributes<PopupSelectRef>>;
45
+ export default PopupSelect;
@@ -0,0 +1,20 @@
1
+ import { BasicsAttribute } from '../../../utils/attribute';
2
+ import { SelectProps } from 'antd';
3
+ import { default as React } from 'react';
4
+ import { PopupSelectProps } from '..';
5
+ import { APP } from '../../../typings';
6
+ export interface PlmSelectPopupProps {
7
+ selectProps: Omit<SelectProps, 'options'> & {
8
+ attr: BasicsAttribute;
9
+ allListOptions: Record<string, any[]>;
10
+ selectPopupProps: Omit<PopupSelectProps, 'attr' | 'record'>;
11
+ record?: APP.instanceInfoType;
12
+ /** Table Form 发生改变后的回调 */
13
+ onBlur?: () => void;
14
+ };
15
+ readOnly?: boolean;
16
+ value?: string;
17
+ onChange?: (value: string | string[]) => void;
18
+ }
19
+ declare const PlmSelectPopupForm: React.ForwardRefExoticComponent<PlmSelectPopupProps & React.RefAttributes<any>>;
20
+ export default PlmSelectPopupForm;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { PlmTableProps } from '.';
3
+ export declare const generateSnowId: () => string;
4
+ declare const ContextMenu: FC<{
5
+ onFill?: PlmTableProps['onFill'];
6
+ menuId: string;
7
+ }>;
8
+ export default ContextMenu;