@tachybase/module-hera 1.6.8-alpha.1

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 (149) hide show
  1. package/README.md +1 -0
  2. package/client.d.ts +2 -0
  3. package/client.js +1 -0
  4. package/dist/client/components/PDFViewer.d.ts +11 -0
  5. package/dist/client/components/SignatureInput.d.ts +2 -0
  6. package/dist/client/components/SignaturePad.d.ts +240 -0
  7. package/dist/client/components/custom-components/CustomAssociatedField.d.ts +1 -0
  8. package/dist/client/components/custom-components/CustomComponentDispatcher.d.ts +4 -0
  9. package/dist/client/components/custom-components/CustomField.d.ts +1 -0
  10. package/dist/client/components/custom-components/ErrorBoundary.d.ts +1 -0
  11. package/dist/client/components/custom-components/custom-components.d.ts +21 -0
  12. package/dist/client/components/excel-table/ExcelFile.d.ts +2 -0
  13. package/dist/client/components/excel-table/Sheet.d.ts +10 -0
  14. package/dist/client/components/fields/AssociatedField.d.ts +7 -0
  15. package/dist/client/components/fields/CalcResult.d.ts +1 -0
  16. package/dist/client/components/fields/Expression.d.ts +2 -0
  17. package/dist/client/components/index.d.ts +11 -0
  18. package/dist/client/components/modal-full-screen/ModalFullScreen.d.ts +15 -0
  19. package/dist/client/components/modal-full-screen/ModalFullScreenChild.d.ts +1 -0
  20. package/dist/client/features/custom-components/index.d.ts +5 -0
  21. package/dist/client/features/embed/EmbedLayout.d.ts +1 -0
  22. package/dist/client/features/embed/EmbedPage.d.ts +1 -0
  23. package/dist/client/features/embed/EmbedSchemaComponent.d.ts +1 -0
  24. package/dist/client/features/embed/NotAuthorityResult.d.ts +1 -0
  25. package/dist/client/features/embed/index.d.ts +4 -0
  26. package/dist/client/features/embed/useEmbedToken.d.ts +1 -0
  27. package/dist/client/features/embed/usePageSettingsProps.d.ts +4 -0
  28. package/dist/client/features/field-appends/index.d.ts +4 -0
  29. package/dist/client/features/field-appends/show-code/Code.interface.d.ts +74 -0
  30. package/dist/client/features/field-appends/show-code/Code.view.d.ts +2 -0
  31. package/dist/client/features/field-appends/show-formula/Formula.interface.d.ts +75 -0
  32. package/dist/client/features/field-appends/show-formula/Formula.view.d.ts +2 -0
  33. package/dist/client/features/hera-version/HeraVersion.provider.d.ts +3 -0
  34. package/dist/client/features/hera-version/index.d.ts +4 -0
  35. package/dist/client/features/mode-highlight/ModeHighlight.provider.d.ts +3 -0
  36. package/dist/client/features/mode-highlight/index.d.ts +4 -0
  37. package/dist/client/features/outbound/OutboundLinkActionInitializer.d.ts +6 -0
  38. package/dist/client/features/outbound/OutboundPage.d.ts +1 -0
  39. package/dist/client/features/outbound/index.d.ts +4 -0
  40. package/dist/client/features/outbound/useOutboundActionProps.d.ts +3 -0
  41. package/dist/client/features/pdf/PDFVIewerBlockInitializer.d.ts +9 -0
  42. package/dist/client/features/pdf/PDFViewer.d.ts +1 -0
  43. package/dist/client/features/pdf/index.d.ts +4 -0
  44. package/dist/client/features/sheet/SheetBlockInitializer.d.ts +8 -0
  45. package/dist/client/features/sheet/index.d.ts +4 -0
  46. package/dist/client/hooks/useCustomComponent.d.ts +5 -0
  47. package/dist/client/hooks/useGetCustomAssociatedComponents.d.ts +4 -0
  48. package/dist/client/hooks/useGetCustomComponents.d.ts +4 -0
  49. package/dist/client/hooks/useNotifications.d.ts +2 -0
  50. package/dist/client/hooks/usePluginVersion.d.ts +1 -0
  51. package/dist/client/hooks/useTokenConfiguration.d.ts +3 -0
  52. package/dist/client/index.d.ts +16 -0
  53. package/dist/client/index.js +79 -0
  54. package/dist/client/interfaces/AssociatedFieldInterface.d.ts +118 -0
  55. package/dist/client/interfaces/CalcFieldInterface.d.ts +120 -0
  56. package/dist/client/interfaces/CustomAssociatedFieldInterface.d.ts +69 -0
  57. package/dist/client/interfaces/CustomFieldInterface.d.ts +45 -0
  58. package/dist/client/interfaces/ExcelFieldInterface.d.ts +38 -0
  59. package/dist/client/interfaces/SignaturePadFieldInterface.d.ts +38 -0
  60. package/dist/client/interfaces/TstzrangeFieldInterface.d.ts +41 -0
  61. package/dist/client/interfaces/index.d.ts +6 -0
  62. package/dist/client/locale.d.ts +9 -0
  63. package/dist/client/schema-initializer/blocks/SettingBlockInitializer.d.ts +1 -0
  64. package/dist/client/schema-initializer/index.d.ts +1 -0
  65. package/dist/client/schema-settings/SchemaSettingsDatePickerType.d.ts +2 -0
  66. package/dist/client/schema-settings/SchemaSettingsDatePresets.d.ts +11 -0
  67. package/dist/client/schema-settings/SchemaSettingsSubmitDataType.d.ts +4 -0
  68. package/dist/client/schema-settings/index.d.ts +3 -0
  69. package/dist/client/settings-manager-components/LinkManager.d.ts +1 -0
  70. package/dist/client/settings-manager-components/TokenConfiguration.d.ts +5 -0
  71. package/dist/client/settings-manager-components/index.d.ts +8 -0
  72. package/dist/client/utils.d.ts +2 -0
  73. package/dist/externalVersion.js +15 -0
  74. package/dist/index.d.ts +2 -0
  75. package/dist/index.js +39 -0
  76. package/dist/locale/en-US.json +94 -0
  77. package/dist/locale/zh-CN.json +94 -0
  78. package/dist/node_modules/fs-extra/LICENSE +15 -0
  79. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
  80. package/dist/node_modules/fs-extra/lib/copy/copy.js +182 -0
  81. package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
  82. package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
  83. package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
  84. package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
  85. package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
  86. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
  87. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
  88. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
  89. package/dist/node_modules/fs-extra/lib/fs/index.js +146 -0
  90. package/dist/node_modules/fs-extra/lib/index.js +1 -0
  91. package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
  92. package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  93. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  94. package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
  95. package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  96. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  97. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  98. package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
  99. package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  100. package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
  101. package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
  102. package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  103. package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
  104. package/dist/node_modules/fs-extra/lib/util/stat.js +158 -0
  105. package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
  106. package/dist/node_modules/fs-extra/package.json +1 -0
  107. package/dist/server/actions/index.d.ts +5 -0
  108. package/dist/server/actions/index.js +29 -0
  109. package/dist/server/actions/link-manager-controller.d.ts +6 -0
  110. package/dist/server/actions/link-manager-controller.js +133 -0
  111. package/dist/server/actions/plugin-version.d.ts +6 -0
  112. package/dist/server/actions/plugin-version.js +90 -0
  113. package/dist/server/actions/robot-controller.d.ts +5 -0
  114. package/dist/server/actions/robot-controller.js +134 -0
  115. package/dist/server/actions/system-message-controller.d.ts +5 -0
  116. package/dist/server/actions/system-message-controller.js +106 -0
  117. package/dist/server/actions/token-configuration-controller.d.ts +5 -0
  118. package/dist/server/actions/token-configuration-controller.js +120 -0
  119. package/dist/server/collections/link-manage.d.ts +2 -0
  120. package/dist/server/collections/link-manage.js +42 -0
  121. package/dist/server/collections/systemSettings.d.ts +2 -0
  122. package/dist/server/collections/systemSettings.js +33 -0
  123. package/dist/server/collections/system_message.d.ts +2 -0
  124. package/dist/server/collections/system_message.js +67 -0
  125. package/dist/server/collections/token-configuration.d.ts +2 -0
  126. package/dist/server/collections/token-configuration.js +54 -0
  127. package/dist/server/fields/calc.d.ts +11 -0
  128. package/dist/server/fields/calc.js +43 -0
  129. package/dist/server/fields/tstzrange.d.ts +7 -0
  130. package/dist/server/fields/tstzrange.js +28 -0
  131. package/dist/server/index.d.ts +3 -0
  132. package/dist/server/index.js +41 -0
  133. package/dist/server/migrations/20250102010713-add-plugin-department.d.ts +6 -0
  134. package/dist/server/migrations/20250102010713-add-plugin-department.js +58 -0
  135. package/dist/server/plugin.d.ts +6 -0
  136. package/dist/server/plugin.js +117 -0
  137. package/dist/server/services/plugin-version.d.ts +5 -0
  138. package/dist/server/services/plugin-version.js +88 -0
  139. package/dist/server/services/sql-loader.d.ts +10 -0
  140. package/dist/server/services/sql-loader.js +128 -0
  141. package/dist/server/services/system-setting-service.d.ts +7 -0
  142. package/dist/server/services/system-setting-service.js +86 -0
  143. package/dist/server/utils/curren-formula.d.ts +1 -0
  144. package/dist/server/utils/curren-formula.js +30 -0
  145. package/dist/server/utils/multiprocess.d.ts +2 -0
  146. package/dist/server/utils/multiprocess.js +38 -0
  147. package/package.json +50 -0
  148. package/server.d.ts +2 -0
  149. package/server.js +1 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @tachybase/module-hera
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client';
2
+ export { default } from './dist/client';
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface PDFViewerProps {
3
+ file: string;
4
+ width: number;
5
+ }
6
+ interface PDFViewerRef {
7
+ download: (props: any) => void;
8
+ print: () => void;
9
+ }
10
+ export declare const PDFViewer: React.ForwardRefExoticComponent<PDFViewerProps & React.RefAttributes<PDFViewerRef>>;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SignatureInput: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,240 @@
1
+ import * as React from 'react';
2
+ import SigPad, { Options, PointGroup, ToSVGOptions } from 'signature_pad';
3
+ type Props = {
4
+ width?: number;
5
+ height?: number;
6
+ options?: Options;
7
+ canvasProps?: {
8
+ [key: string]: string | {
9
+ [key: string]: string;
10
+ };
11
+ };
12
+ } & DefaultProps;
13
+ type DefaultProps = {
14
+ redrawOnResize: boolean;
15
+ debounceInterval: number;
16
+ };
17
+ type State = {
18
+ canvasWidth: number;
19
+ canvasHeight: number;
20
+ };
21
+ /**
22
+ * @class
23
+ * @classdesc Signature pad component.
24
+ * @extends {PureComponent}
25
+ */
26
+ declare class SignaturePad extends React.PureComponent<Props, State> {
27
+ static displayName: string;
28
+ static defaultProps: DefaultProps;
29
+ private canvasRef;
30
+ private signaturePad;
31
+ private callResizeHandler;
32
+ /**
33
+ * Create a new signature pad.
34
+ *
35
+ * @param {Props} props
36
+ */
37
+ constructor(props: Props);
38
+ /**
39
+ * Initialise the signature pad once the canvas element is rendered.
40
+ *
41
+ * @return {void}
42
+ */
43
+ componentDidMount(): void;
44
+ /**
45
+ * Remove the resize event listener and switch the signature pad off on
46
+ * unmount.
47
+ *
48
+ * @return {void}
49
+ */
50
+ componentWillUnmount(): void;
51
+ /**
52
+ * Get the original signature_pad instance.
53
+ *
54
+ * @return {SigPad}
55
+ */
56
+ get instance(): SigPad;
57
+ /**
58
+ * Get the canvas ref.
59
+ *
60
+ * @return {Object}
61
+ */
62
+ get canvas(): React.RefObject<HTMLCanvasElement>;
63
+ /**
64
+ * Set the radius of a single dot.
65
+ *
66
+ * @param {number} dotSize
67
+ * @return {void}
68
+ */
69
+ set dotSize(dotSize: number);
70
+ /**
71
+ * Get the radius of a single dot.
72
+ *
73
+ * @return {number}
74
+ */
75
+ get dotSize(): number;
76
+ /**
77
+ * Set the minimum width of a line.
78
+ *
79
+ * @param {number} minWidth
80
+ * @return {void}
81
+ */
82
+ set minWidth(minWidth: number);
83
+ /**
84
+ * Get the minimum width of a line.
85
+ *
86
+ * @return {number}
87
+ */
88
+ get minWidth(): number;
89
+ /**
90
+ * Get the maximum width of a line.
91
+ *
92
+ * @param {number} maxWidth
93
+ * @return {void}
94
+ */
95
+ set maxWidth(maxWidth: number);
96
+ /**
97
+ * Get the maximum width of a line.
98
+ *
99
+ * @return {number}
100
+ */
101
+ get maxWidth(): number;
102
+ /**
103
+ * Set the throttle for drawing the next point at most once every x ms.
104
+ *
105
+ * @param {number} throttle
106
+ * @return {void}
107
+ */
108
+ set throttle(throttle: number);
109
+ /**
110
+ * Get the throttle for drawing the next point at most once every x ms.
111
+ *
112
+ * @return {number}
113
+ */
114
+ get throttle(): number;
115
+ /**
116
+ * Set the color used to clear the background.
117
+ *
118
+ * @param {string} color
119
+ * @return {void}
120
+ */
121
+ set backgroundColor(color: string);
122
+ /**
123
+ * Get the color used to clear the background.
124
+ *
125
+ * @return {string}
126
+ */
127
+ get backgroundColor(): string;
128
+ /**
129
+ * Set the color used to draw the lines.
130
+ *
131
+ * @param {string} color
132
+ * @return {void}
133
+ */
134
+ set penColor(color: string);
135
+ /**
136
+ * Get the color used to draw the lines.
137
+ *
138
+ * @return {string}
139
+ */
140
+ get penColor(): string;
141
+ /**
142
+ * Set weight used to modify new velocity based on the previous velocity.
143
+ *
144
+ * @param {number} weight
145
+ * @return {void}
146
+ */
147
+ set velocityFilterWeight(weight: number);
148
+ /**
149
+ * Get weight used to modify new velocity based on the previous velocity.
150
+ *
151
+ * @return {number}
152
+ */
153
+ get velocityFilterWeight(): number;
154
+ /**
155
+ * Determine if the canvas is empty.
156
+ *
157
+ * @return {boolean}
158
+ */
159
+ isEmpty(): boolean;
160
+ /**
161
+ * Clear the canvas.
162
+ *
163
+ * @return {void}
164
+ */
165
+ clear(): void;
166
+ /**
167
+ * Draw a signature from a data URL.
168
+ *
169
+ * @param {string} dataUrl
170
+ * @param {object} options
171
+ * @return {void}
172
+ */
173
+ fromDataURL(dataUrl: string, options?: Partial<{
174
+ ratio: number;
175
+ width: number;
176
+ height: number;
177
+ xOffset: number;
178
+ yOffset: number;
179
+ }>): void;
180
+ /**
181
+ * Get the signature data as a data URL.
182
+ *
183
+ * @param {?string} mime
184
+ * @param {?number} encoderOptions
185
+ * @return {string}
186
+ */
187
+ toDataURL(type?: string, encoderOptions?: number): string;
188
+ /**
189
+ * Get the signature data as an SVG string without converting to base64.
190
+ *
191
+ * @param {?ToSVGOptions} svgOptions
192
+ * @return {string}
193
+ */
194
+ toSVG(svgOptions?: ToSVGOptions): string;
195
+ /**
196
+ * Draw a signature from an array of point groups.
197
+ *
198
+ * @param {PointGroup[]} data
199
+ * @return {void}
200
+ */
201
+ fromData(data: PointGroup[]): void;
202
+ /**
203
+ * Get the signature pad data an array of point groups.
204
+ *
205
+ * @return {PointGroup[]}
206
+ */
207
+ toData(): PointGroup[];
208
+ /**
209
+ * Turn the signature pad off.
210
+ *
211
+ * @return {void}
212
+ */
213
+ off(): void;
214
+ /**
215
+ * Turn the signature pad on.
216
+ *
217
+ * @return {void}
218
+ */
219
+ on(): void;
220
+ /**
221
+ * Handle a resize event.
222
+ *
223
+ * @return {void}
224
+ */
225
+ handleResize(): void;
226
+ /**
227
+ * Scale the canvas.
228
+ *
229
+ * @param {HTMLCanvasElement} canvas
230
+ * @return {void}
231
+ */
232
+ scaleCanvas(canvas: HTMLCanvasElement): void;
233
+ /**
234
+ * Render the signature pad component.
235
+ *
236
+ * @return {ReactNode}
237
+ */
238
+ render(): React.ReactNode;
239
+ }
240
+ export default SignaturePad;
@@ -0,0 +1 @@
1
+ export declare const CustomAssociatedField: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { SchemaSettings } from '@tachybase/client';
2
+ export declare const CustomComponentStub: (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const CustomComponentDispatcher: (props: any) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const customComponentDispatcherSettings: SchemaSettings<{}>;
@@ -0,0 +1 @@
1
+ export declare const CustomField: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ErrorBoundaryFallBack: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { ComponentType, MemoExoticComponent } from 'react';
2
+ import { ReactFC } from '@tachybase/schema';
3
+ export interface CustomFunctionComponent<P = {}> extends React.FunctionComponent<P> {
4
+ __componentType: CustomComponentType;
5
+ __componentLabel: string;
6
+ }
7
+ export interface CustomFC<P = {}> extends MemoExoticComponent<ReactFC<P>> {
8
+ __componentType: CustomComponentType;
9
+ __componentLabel: string;
10
+ }
11
+ export declare enum CustomComponentType {
12
+ CUSTOM_FORM_ITEM = "FORM_ITEM",
13
+ CUSTOM_FIELD = "FIELD",
14
+ CUSTOM_ASSOCIATED_FIELD = "ASSOCIATED_FIELD"
15
+ }
16
+ export interface CustomComponentOption {
17
+ label: string;
18
+ name: string;
19
+ type?: CustomComponentType;
20
+ component: ComponentType;
21
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ExcelFile: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export type SheetRef = {
3
+ getData: () => any;
4
+ };
5
+ export type SheetProps = {
6
+ data?: any;
7
+ className?: string;
8
+ };
9
+ declare const ExcelSheet: React.ForwardRefExoticComponent<SheetProps & React.RefAttributes<SheetRef>>;
10
+ export default ExcelSheet;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const useInsertSchema: (component: any) => (ss: any) => void;
3
+ export declare const AssociatedField: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
4
+ children?: React.ReactNode | undefined;
5
+ }, string | number | symbol> & Omit<any, "ref">, "ref"> & {
6
+ ref?: unknown;
7
+ }, "ref"> & React.RefAttributes<never>>;
@@ -0,0 +1 @@
1
+ export declare const CalcResult: any;
@@ -0,0 +1,2 @@
1
+ export declare const Expression: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default Expression;
@@ -0,0 +1,11 @@
1
+ export * from './PDFViewer';
2
+ export * from './excel-table/Sheet';
3
+ export * from './SignatureInput';
4
+ export * from './SignaturePad';
5
+ export * from './custom-components/CustomAssociatedField';
6
+ export * from './custom-components/CustomComponentDispatcher';
7
+ export * from './custom-components/CustomField';
8
+ export * from './fields/AssociatedField';
9
+ export * from './fields/CalcResult';
10
+ export * from './fields/Expression';
11
+ export * from './excel-table/ExcelFile';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface ModalFullScreenProps {
3
+ className?: string;
4
+ title?: string;
5
+ open?: boolean;
6
+ destroyOnClose?: boolean;
7
+ children?: any;
8
+ onOk?: () => void;
9
+ onCancel?: () => void;
10
+ }
11
+ declare const ModalFullScreen: {
12
+ (props: ModalFullScreenProps): React.ReactPortal;
13
+ displayName: string;
14
+ };
15
+ export default ModalFullScreen;
@@ -0,0 +1 @@
1
+ export declare const ModalHeader: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Plugin, SchemaSettings } from '@tachybase/client';
2
+ export declare const customFieldComponentFieldSettings: SchemaSettings<{}>;
3
+ export declare class PluginCustomComponents extends Plugin {
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1 @@
1
+ export declare const EmbedLayout: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EmbedPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function EmbedSchemaComponent(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function NotAuthorityResult(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class EmbedPlugin extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1 @@
1
+ export declare function useEmbedToken(): string;
@@ -0,0 +1,4 @@
1
+ export declare function usePageSettingsProps(): {
2
+ title: any;
3
+ onClick: () => void;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginFieldAppends extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1,74 @@
1
+ import { CollectionFieldInterface } from '@tachybase/client';
2
+ export interface CodeFieldProps {
3
+ jsCode: string;
4
+ prefix: string;
5
+ suffix: string;
6
+ decimal: string;
7
+ }
8
+ export declare class ShowFieldCodeInterface extends CollectionFieldInterface {
9
+ name: string;
10
+ type: string;
11
+ group: string;
12
+ title: string;
13
+ description: string;
14
+ sortable: boolean;
15
+ default: {
16
+ type: string;
17
+ uiSchema: {
18
+ type: string;
19
+ 'x-component': string;
20
+ 'x-component-props': CodeFieldProps;
21
+ 'x-read-pretty': boolean;
22
+ };
23
+ };
24
+ properties: {
25
+ 'uiSchema.x-component-props.prefix': {
26
+ type: string;
27
+ title: string;
28
+ 'x-decorator': string;
29
+ 'x-component': string;
30
+ };
31
+ 'uiSchema.x-component-props.suffix': {
32
+ type: string;
33
+ title: string;
34
+ 'x-decorator': string;
35
+ 'x-component': string;
36
+ };
37
+ 'uiSchema.x-component-props.decimal': {
38
+ type: string;
39
+ title: string;
40
+ 'x-component': string;
41
+ 'x-decorator': string;
42
+ default: string;
43
+ enum: {
44
+ value: string;
45
+ label: string;
46
+ }[];
47
+ };
48
+ 'uiSchema.x-component-props.jsCode': {
49
+ type: string;
50
+ title: string;
51
+ 'x-decorator': string;
52
+ 'x-component': string;
53
+ default: string;
54
+ required: boolean;
55
+ };
56
+ 'uiSchema.title': {
57
+ type: string;
58
+ title: string;
59
+ required: boolean;
60
+ "x-decorator": string;
61
+ "x-component": string;
62
+ };
63
+ name: {
64
+ type: string;
65
+ title: string;
66
+ required: boolean;
67
+ "x-disabled": string;
68
+ "x-decorator": string;
69
+ "x-component": string;
70
+ "x-validator": string;
71
+ description: string;
72
+ };
73
+ };
74
+ }
@@ -0,0 +1,2 @@
1
+ import { CodeFieldProps } from './Code.interface';
2
+ export declare const ViewCode: (props: CodeFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,75 @@
1
+ import { CollectionFieldInterface } from '@tachybase/client';
2
+ export interface FormulaProps {
3
+ formulaString: string;
4
+ prefix: string;
5
+ suffix: string;
6
+ decimal: string;
7
+ }
8
+ export declare class ShowFieldFormulaInterface extends CollectionFieldInterface {
9
+ name: string;
10
+ type: string;
11
+ group: string;
12
+ title: string;
13
+ description: string;
14
+ sortable: boolean;
15
+ default: {
16
+ type: string;
17
+ uiSchema: {
18
+ type: string;
19
+ 'x-component': string;
20
+ 'x-component-props': FormulaProps;
21
+ 'x-read-pretty': boolean;
22
+ };
23
+ };
24
+ properties: {
25
+ 'uiSchema.x-component-props.prefix': {
26
+ type: string;
27
+ title: string;
28
+ 'x-decorator': string;
29
+ 'x-component': string;
30
+ };
31
+ 'uiSchema.x-component-props.suffix': {
32
+ type: string;
33
+ title: string;
34
+ 'x-decorator': string;
35
+ 'x-component': string;
36
+ };
37
+ 'uiSchema.x-component-props.decimal': {
38
+ type: string;
39
+ title: string;
40
+ 'x-component': string;
41
+ 'x-decorator': string;
42
+ required: boolean;
43
+ default: string;
44
+ enum: {
45
+ value: string;
46
+ label: string;
47
+ }[];
48
+ };
49
+ 'uiSchema.x-component-props.formulaString': {
50
+ type: string;
51
+ title: string;
52
+ 'x-decorator': string;
53
+ 'x-component': string;
54
+ default: string;
55
+ required: boolean;
56
+ };
57
+ 'uiSchema.title': {
58
+ type: string;
59
+ title: string;
60
+ required: boolean;
61
+ "x-decorator": string;
62
+ "x-component": string;
63
+ };
64
+ name: {
65
+ type: string;
66
+ title: string;
67
+ required: boolean;
68
+ "x-disabled": string;
69
+ "x-decorator": string;
70
+ "x-component": string;
71
+ "x-validator": string;
72
+ description: string;
73
+ };
74
+ };
75
+ }
@@ -0,0 +1,2 @@
1
+ import { FormulaProps } from './Formula.interface';
2
+ export declare const ViewFormula: (props: FormulaProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const HeraVersionProvider: ({ children }: {
2
+ children: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginHeraVersion extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare const ModeHighlightProvider: ({ children }: {
2
+ children: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginModeHighlight extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const OutboundLinkActionInitializer: {
3
+ (props: any): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export declare const OutboundButton: React.FC;
@@ -0,0 +1 @@
1
+ export declare const OutboundPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginOutbound extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare const useOutboundActionProps: () => {
2
+ onClick(): Promise<void>;
3
+ };
@@ -0,0 +1,9 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const usePDFViewerRef: () => any;
3
+ export declare const PDFViewerProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const usePDFViewerPrintActionProps: () => {
5
+ onClick: () => Promise<void>;
6
+ };
7
+ export declare const PDFViewerPrintActionInitializer: (props: any) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const pdfViewActionInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
9
+ export declare const PDFViewerBlockInitializer: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const InternalPDFViewer: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginPDF extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { SchemaSettings } from '@tachybase/client';
3
+ export declare const SheetBlockContext: React.Context<any>;
4
+ export declare const SheetBlock: () => import("react/jsx-runtime").JSX.Element;
5
+ export declare const SheetBlockProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const SheetBlockInitializer: () => import("react/jsx-runtime").JSX.Element;
7
+ export declare const sheetBlockSettings: SchemaSettings<{}>;
8
+ export declare const SheetBlockToolbar: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginSheet extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { CustomComponentType } from '..';
2
+ export declare const useCustomComponent: (type: CustomComponentType) => {
3
+ label: string;
4
+ value: string;
5
+ }[];
@@ -0,0 +1,4 @@
1
+ export declare const useGetCustomAssociatedComponents: () => {
2
+ label: string;
3
+ value: string;
4
+ }[];