@yklyklpackages/message-card 0.0.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.
- package/README.md +73 -0
- package/dist/components/MessageCard.d.ts +3 -0
- package/dist/components/MessageCard.d.ts.map +1 -0
- package/dist/components/action/ActionContext.d.ts +25 -0
- package/dist/components/action/ActionContext.d.ts.map +1 -0
- package/dist/components/action/RenderActionWrapper.d.ts +11 -0
- package/dist/components/action/RenderActionWrapper.d.ts.map +1 -0
- package/dist/components/cache/CacheStorage.d.ts +36 -0
- package/dist/components/cache/CacheStorage.d.ts.map +1 -0
- package/dist/components/cache/TemplateCache.d.ts +48 -0
- package/dist/components/cache/TemplateCache.d.ts.map +1 -0
- package/dist/components/cache/TemplateRequestPool.d.ts +13 -0
- package/dist/components/cache/TemplateRequestPool.d.ts.map +1 -0
- package/dist/components/cache/dataAdapter.d.ts +9 -0
- package/dist/components/cache/dataAdapter.d.ts.map +1 -0
- package/dist/components/cache/index.d.ts +6 -0
- package/dist/components/cache/index.d.ts.map +1 -0
- package/dist/components/cache/types.d.ts +78 -0
- package/dist/components/cache/types.d.ts.map +1 -0
- package/dist/components/core/ComponentRenderer.d.ts +18 -0
- package/dist/components/core/ComponentRenderer.d.ts.map +1 -0
- package/dist/components/core/LayoutWrapper.d.ts +10 -0
- package/dist/components/core/LayoutWrapper.d.ts.map +1 -0
- package/dist/components/core/LeafWrapper.d.ts +15 -0
- package/dist/components/core/LeafWrapper.d.ts.map +1 -0
- package/dist/components/core/templateAdapter.d.ts +5 -0
- package/dist/components/core/templateAdapter.d.ts.map +1 -0
- package/dist/components/hooks.d.ts +16 -0
- package/dist/components/hooks.d.ts.map +1 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layout/AbsoluteViewLayout.d.ts +14 -0
- package/dist/components/layout/AbsoluteViewLayout.d.ts.map +1 -0
- package/dist/components/layout/AnimationLayout/index.d.ts +13 -0
- package/dist/components/layout/AnimationLayout/index.d.ts.map +1 -0
- package/dist/components/layout/AnimationLayout.d.ts +13 -0
- package/dist/components/layout/AnimationLayout.d.ts.map +1 -0
- package/dist/components/layout/FourColumnLayout.d.ts +16 -0
- package/dist/components/layout/FourColumnLayout.d.ts.map +1 -0
- package/dist/components/layout/FullRowLayout.d.ts +19 -0
- package/dist/components/layout/FullRowLayout.d.ts.map +1 -0
- package/dist/components/layout/MultipleColumnLayout.d.ts +20 -0
- package/dist/components/layout/MultipleColumnLayout.d.ts.map +1 -0
- package/dist/components/layout/ThreeColumnCenterFullLayout.d.ts +16 -0
- package/dist/components/layout/ThreeColumnCenterFullLayout.d.ts.map +1 -0
- package/dist/components/layout/ThreeColumnLayout.d.ts +16 -0
- package/dist/components/layout/ThreeColumnLayout.d.ts.map +1 -0
- package/dist/components/layout/TwoColumnLayout.d.ts +16 -0
- package/dist/components/layout/TwoColumnLayout.d.ts.map +1 -0
- package/dist/components/layout/TwoColumnLeftFullLayout.d.ts +16 -0
- package/dist/components/layout/TwoColumnLeftFullLayout.d.ts.map +1 -0
- package/dist/components/layout/TwoColumnRightFullLayout.d.ts +16 -0
- package/dist/components/layout/TwoColumnRightFullLayout.d.ts.map +1 -0
- package/dist/components/message/MessageContainer.d.ts +41 -0
- package/dist/components/message/MessageContainer.d.ts.map +1 -0
- package/dist/components/render/Checkbox.d.ts +14 -0
- package/dist/components/render/Checkbox.d.ts.map +1 -0
- package/dist/components/render/CustomRenderer/index.d.ts +2 -0
- package/dist/components/render/CustomRenderer/index.d.ts.map +1 -0
- package/dist/components/render/DashLine.d.ts +17 -0
- package/dist/components/render/DashLine.d.ts.map +1 -0
- package/dist/components/render/DividerRender.d.ts +15 -0
- package/dist/components/render/DividerRender.d.ts.map +1 -0
- package/dist/components/render/Image.d.ts +11 -0
- package/dist/components/render/Image.d.ts.map +1 -0
- package/dist/components/render/Input.d.ts +14 -0
- package/dist/components/render/Input.d.ts.map +1 -0
- package/dist/components/render/Markdown.d.ts +6 -0
- package/dist/components/render/Markdown.d.ts.map +1 -0
- package/dist/components/render/Radio.d.ts +14 -0
- package/dist/components/render/Radio.d.ts.map +1 -0
- package/dist/components/render/Select.d.ts +14 -0
- package/dist/components/render/Select.d.ts.map +1 -0
- package/dist/components/render/Text.d.ts +11 -0
- package/dist/components/render/Text.d.ts.map +1 -0
- package/dist/components/render/TextList.d.ts +15 -0
- package/dist/components/render/TextList.d.ts.map +1 -0
- package/dist/components/render/UnknownRenderer/index.d.ts +8 -0
- package/dist/components/render/UnknownRenderer/index.d.ts.map +1 -0
- package/dist/components/theme/ThemeContext.d.ts +9 -0
- package/dist/components/theme/ThemeContext.d.ts.map +1 -0
- package/dist/components/theme/defaultTheme.d.ts +4 -0
- package/dist/components/theme/defaultTheme.d.ts.map +1 -0
- package/dist/components/theme.d.ts +4 -0
- package/dist/components/theme.d.ts.map +1 -0
- package/dist/components/types/component.d.ts +97 -0
- package/dist/components/types/component.d.ts.map +1 -0
- package/dist/components/useTemplate.d.ts +16 -0
- package/dist/components/useTemplate.d.ts.map +1 -0
- package/dist/components/utils/ResponsiveContext.d.ts +7 -0
- package/dist/components/utils/ResponsiveContext.d.ts.map +1 -0
- package/dist/components/utils/commonHelpers.d.ts +5 -0
- package/dist/components/utils/commonHelpers.d.ts.map +1 -0
- package/dist/components/utils/constants.d.ts +21 -0
- package/dist/components/utils/constants.d.ts.map +1 -0
- package/dist/components/utils/containerHoc.d.ts +16 -0
- package/dist/components/utils/containerHoc.d.ts.map +1 -0
- package/dist/components/utils/eventHelpers.d.ts +16 -0
- package/dist/components/utils/eventHelpers.d.ts.map +1 -0
- package/dist/components/utils/hoc.d.ts +6 -0
- package/dist/components/utils/hoc.d.ts.map +1 -0
- package/dist/components/utils/styleHelpers.d.ts +78 -0
- package/dist/components/utils/styleHelpers.d.ts.map +1 -0
- package/dist/components/utils/useForEditor.d.ts +9 -0
- package/dist/components/utils/useForEditor.d.ts.map +1 -0
- package/dist/components/validator/ComponentValidator.d.ts +17 -0
- package/dist/components/validator/ComponentValidator.d.ts.map +1 -0
- package/dist/index.cjs +33869 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +33853 -0
- package/dist/index.mjs.map +1 -0
- package/dist/index.umd.js +33870 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +67 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores(['dist']),
|
|
21
|
+
{
|
|
22
|
+
files: ['**/*.{ts,tsx}'],
|
|
23
|
+
extends: [
|
|
24
|
+
// Other configs...
|
|
25
|
+
|
|
26
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
+
tseslint.configs.recommendedTypeChecked,
|
|
28
|
+
// Alternatively, use this for stricter rules
|
|
29
|
+
tseslint.configs.strictTypeChecked,
|
|
30
|
+
// Optionally, add this for stylistic rules
|
|
31
|
+
tseslint.configs.stylisticTypeChecked,
|
|
32
|
+
|
|
33
|
+
// Other configs...
|
|
34
|
+
],
|
|
35
|
+
languageOptions: {
|
|
36
|
+
parserOptions: {
|
|
37
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
+
tsconfigRootDir: import.meta.dirname,
|
|
39
|
+
},
|
|
40
|
+
// other options...
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
// eslint.config.js
|
|
50
|
+
import reactX from 'eslint-plugin-react-x';
|
|
51
|
+
import reactDom from 'eslint-plugin-react-dom';
|
|
52
|
+
|
|
53
|
+
export default defineConfig([
|
|
54
|
+
globalIgnores(['dist']),
|
|
55
|
+
{
|
|
56
|
+
files: ['**/*.{ts,tsx}'],
|
|
57
|
+
extends: [
|
|
58
|
+
// Other configs...
|
|
59
|
+
// Enable lint rules for React
|
|
60
|
+
reactX.configs['recommended-typescript'],
|
|
61
|
+
// Enable lint rules for React DOM
|
|
62
|
+
reactDom.configs.recommended,
|
|
63
|
+
],
|
|
64
|
+
languageOptions: {
|
|
65
|
+
parserOptions: {
|
|
66
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
+
tsconfigRootDir: import.meta.dirname,
|
|
68
|
+
},
|
|
69
|
+
// other options...
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
]);
|
|
73
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageCard.d.ts","sourceRoot":"","sources":["../../src/components/MessageCard.tsx"],"names":[],"mappings":";AAyDA,wBAAuC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ActionConfig, exposureTrackActionConfig } from '@jdh-cross/aui-types/action';
|
|
3
|
+
|
|
4
|
+
type SetValues = React.Dispatch<React.SetStateAction<Record<string, any>>>;
|
|
5
|
+
export interface ActionContextValue {
|
|
6
|
+
executeActions: (configs: ActionConfig[], extra?: {
|
|
7
|
+
payload?: any;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
getLocalData: (key: string) => any;
|
|
10
|
+
executeRenderActions: (config: exposureTrackActionConfig, props: any) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface ActionProviderProps {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
onAction?: (action: {
|
|
15
|
+
type: string;
|
|
16
|
+
payload?: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
setValues?: SetValues;
|
|
19
|
+
values?: Record<string, any>;
|
|
20
|
+
originProps?: Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
export declare const ActionProvider: React.FC<ActionProviderProps>;
|
|
23
|
+
export declare const useAction: () => ActionContextValue;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=ActionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionContext.d.ts","sourceRoot":"","sources":["../../../src/components/action/ActionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAK,EACV,YAAY,EAOZ,yBAAyB,EAE1B,MAAM,6BAA6B,CAAC;AAErC,KAAK,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAe3E,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,CACd,OAAO,EAAE,YAAY,EAAE,EACvB,KAAK,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,GAAG,CAAA;KAAE,KACtB,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,CAAC;IACnC,oBAAoB,EAAE,CAAC,MAAM,EAAE,yBAAyB,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAC/E;AA4ND,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;IAC7D,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyDxD,CAAC;AAEF,eAAO,MAAM,SAAS,0BAAkC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IComponentNode } from '@jdh-cross/aui-types';
|
|
3
|
+
|
|
4
|
+
interface RenderActionWrapperProps {
|
|
5
|
+
node: IComponentNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
originProps?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export declare const RenderActionWrapper: React.FC<RenderActionWrapperProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=RenderActionWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderActionWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/action/RenderActionWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,UAAU,wBAAwB;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAqClE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CacheEntry, TemplateData, StorageUsageInfo, CacheCleanupOptions } from './types';
|
|
2
|
+
|
|
3
|
+
export declare class CacheStorage {
|
|
4
|
+
private namespace;
|
|
5
|
+
private writeBuffer;
|
|
6
|
+
private flushTimer;
|
|
7
|
+
private readonly FLUSH_DELAY;
|
|
8
|
+
private readonly STORAGE_THRESHOLD;
|
|
9
|
+
private readonly MAX_REMOVE_COUNT;
|
|
10
|
+
private readonly ESTIMATED_ENTRY_SIZE;
|
|
11
|
+
constructor(namespace: string);
|
|
12
|
+
/**
|
|
13
|
+
* 获取 localStorage 使用情况
|
|
14
|
+
*/
|
|
15
|
+
getStorageUsage(): StorageUsageInfo;
|
|
16
|
+
/**
|
|
17
|
+
* 检查存储空间是否超过阈值
|
|
18
|
+
*/
|
|
19
|
+
isStorageFull(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 智能清理缓存 - 优先清理其他 osName 的数据
|
|
22
|
+
*/
|
|
23
|
+
intelligentCleanup(options?: CacheCleanupOptions): Promise<number>;
|
|
24
|
+
/**
|
|
25
|
+
* 写入前检查空间,必要时进行清理
|
|
26
|
+
*/
|
|
27
|
+
private ensureStorageSpace;
|
|
28
|
+
private getKey;
|
|
29
|
+
getItem(key: string): Promise<CacheEntry<TemplateData> | null>;
|
|
30
|
+
setItem(key: string, value: CacheEntry<TemplateData>, targetOsName?: string): void;
|
|
31
|
+
delete(key: string): Promise<void>;
|
|
32
|
+
clear(): Promise<void>;
|
|
33
|
+
private scheduleFlush;
|
|
34
|
+
private flush;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=CacheStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheStorage.d.ts","sourceRoot":"","sources":["../../../src/components/cache/CacheStorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAoD;IACvE,OAAO,CAAC,UAAU,CAA8C;IAChE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAQ;IAGpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAQ;gBAEjC,SAAS,EAAE,MAAM;IAI7B;;OAEG;IACH,eAAe,IAAI,gBAAgB;IAoCnC;;OAEG;IACH,aAAa,IAAI,OAAO;IAKxB;;OAEG;IACG,kBAAkB,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC;IAsF5E;;OAEG;YACW,kBAAkB;IAgBhC,OAAO,CAAC,MAAM;IAIR,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAiBpE,OAAO,CACL,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC,EAC/B,YAAY,CAAC,EAAE,MAAM,GACpB,IAAI;IAWD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IASlC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB5B,OAAO,CAAC,aAAa;YAQP,KAAK;CA4CpB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TemplateData, CacheContext, ApiConfig } from './types';
|
|
2
|
+
|
|
3
|
+
interface CacheResult {
|
|
4
|
+
data: TemplateData | null;
|
|
5
|
+
status: 'fresh' | 'stale' | 'miss';
|
|
6
|
+
}
|
|
7
|
+
export declare class TemplateCache {
|
|
8
|
+
private memoryCache;
|
|
9
|
+
private storage;
|
|
10
|
+
private requestPool;
|
|
11
|
+
private readonly DEFAULT_TTL;
|
|
12
|
+
private readonly FRESH_TIME;
|
|
13
|
+
private readonly NULL_VALUE;
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* 生成复合缓存 Key
|
|
17
|
+
*/
|
|
18
|
+
private getCacheKey;
|
|
19
|
+
/**
|
|
20
|
+
* 获取缓存数据 (L1 -> L2)
|
|
21
|
+
*/
|
|
22
|
+
get(cardId: string, context?: CacheContext): Promise<CacheResult>;
|
|
23
|
+
/**
|
|
24
|
+
* 写入缓存
|
|
25
|
+
*/
|
|
26
|
+
set(cardId: string, data: TemplateData, context?: CacheContext, ttl?: number): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* 批量写入缓存 (预热)
|
|
29
|
+
*/
|
|
30
|
+
setBatch(dataMap: Map<string, TemplateData>, context?: CacheContext): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* 仅通过 apiConfig 拉取数据(通常是 osName),并缓存结果。
|
|
33
|
+
* 返回所有拉取到的模板数据 Map。
|
|
34
|
+
*/
|
|
35
|
+
fetchByOsName(apiConfig: ApiConfig, context?: CacheContext): Promise<Map<string, TemplateData>>;
|
|
36
|
+
/**
|
|
37
|
+
* 发起网络请求并更新缓存
|
|
38
|
+
* @returns 是否成功获取到目标 cardId 的数据
|
|
39
|
+
*/
|
|
40
|
+
fetchAndCache(targetCardId: string, apiConfig: ApiConfig, context?: CacheContext): Promise<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* 检查缓存状态
|
|
43
|
+
*/
|
|
44
|
+
private checkStatus;
|
|
45
|
+
private isNullValue;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=TemplateCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateCache.d.ts","sourceRoot":"","sources":["../../../src/components/cache/TemplateCache.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,YAAY,EACZ,YAAY,EACZ,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB,UAAU,WAAW;IACnB,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CACpC;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,WAAW,CAAoD;IACvE,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,WAAW,CAAsB;IAGzC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;IAE9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiB;IAG5C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA2B;;IAQtD;;OAEG;IACH,OAAO,CAAC,WAAW;IAUnB;;OAEG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IA0BvE;;OAEG;IACG,GAAG,CACP,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,YAAY,EACtB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAsBhB;;OAEG;IACG,QAAQ,CACZ,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EAClC,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,IAAI,CAAC;IAOhB;;;OAGG;IACG,aAAa,CACjB,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAYrC;;;OAGG;IACG,aAAa,CACjB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,OAAO,CAAC;IAyBnB;;OAEG;IACH,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,WAAW;CAGpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApiConfig, ApiResponse } from './types';
|
|
2
|
+
|
|
3
|
+
export declare class TemplateRequestPool {
|
|
4
|
+
private pendingRequests;
|
|
5
|
+
/**
|
|
6
|
+
* 获取楼层列表数据 (全量接口)
|
|
7
|
+
* 针对相同的请求参数 (如 osName) 进行 Promise 共享去重
|
|
8
|
+
*/
|
|
9
|
+
fetchFloorList(config: ApiConfig): Promise<ApiResponse>;
|
|
10
|
+
private getRequestKey;
|
|
11
|
+
private doFetch;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=TemplateRequestPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateRequestPool.d.ts","sourceRoot":"","sources":["../../../src/components/cache/TemplateRequestPool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtD,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,eAAe,CAAgD;IAEvE;;;OAGG;IACG,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC;IAe7D,OAAO,CAAC,aAAa;YAKP,OAAO;CA0CtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiResponse, TemplateData } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 解析 API 响应,提取所有模块的模板数据
|
|
5
|
+
* @param response API 响应对象
|
|
6
|
+
* @returns Map<moduleId, TemplateData>
|
|
7
|
+
*/
|
|
8
|
+
export declare const parseApiResponse: (response: ApiResponse) => Map<string, TemplateData>;
|
|
9
|
+
//# sourceMappingURL=dataAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataAdapter.d.ts","sourceRoot":"","sources":["../../../src/components/cache/dataAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAIb,MAAM,SAAS,CAAC;AAkBjB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,WAAW,KACpB,GAAG,CAAC,MAAM,EAAE,YAAY,CA+D1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/cache/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,eAAO,MAAM,aAAa,eAAsB,CAAC;AAEjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export interface CacheEntry<T> {
|
|
2
|
+
data: T;
|
|
3
|
+
timestamp: number;
|
|
4
|
+
version: string;
|
|
5
|
+
ttl: number;
|
|
6
|
+
checksum?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CacheContext {
|
|
9
|
+
theme?: string;
|
|
10
|
+
osName?: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiConfig {
|
|
14
|
+
osName: string;
|
|
15
|
+
isDev?: boolean;
|
|
16
|
+
version?: number;
|
|
17
|
+
functionId?: string;
|
|
18
|
+
timeout?: number;
|
|
19
|
+
appId?: string;
|
|
20
|
+
loginType?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface TemplateData {
|
|
23
|
+
templateJson: Record<string, any>;
|
|
24
|
+
templateData: Record<string, any>;
|
|
25
|
+
}
|
|
26
|
+
export interface CacheStorageStructure {
|
|
27
|
+
version: string;
|
|
28
|
+
entries: Record<string, CacheEntry<TemplateData>>;
|
|
29
|
+
metadata: {
|
|
30
|
+
totalSize: number;
|
|
31
|
+
lastCleanup: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface FloorTransferDTO {
|
|
35
|
+
ecode: string;
|
|
36
|
+
dataSource: string;
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
export interface CfData {
|
|
40
|
+
floorTransferDTOS: FloorTransferDTO[];
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}
|
|
43
|
+
export interface ApiResponse {
|
|
44
|
+
code: number;
|
|
45
|
+
data: {
|
|
46
|
+
cf: CfData;
|
|
47
|
+
};
|
|
48
|
+
success: boolean;
|
|
49
|
+
message: string;
|
|
50
|
+
}
|
|
51
|
+
export interface BaseCardItem {
|
|
52
|
+
module: string;
|
|
53
|
+
code: string;
|
|
54
|
+
}
|
|
55
|
+
export interface MasterDataSource {
|
|
56
|
+
base: {
|
|
57
|
+
card: BaseCardItem[];
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface NodeDataSource {
|
|
62
|
+
base: {
|
|
63
|
+
templateJson: string;
|
|
64
|
+
templateData: string;
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface StorageUsageInfo {
|
|
69
|
+
usedBytes: number;
|
|
70
|
+
totalBytes: number;
|
|
71
|
+
usagePercentage: number;
|
|
72
|
+
itemCount: number;
|
|
73
|
+
}
|
|
74
|
+
export interface CacheCleanupOptions {
|
|
75
|
+
targetOsName?: string;
|
|
76
|
+
maxRemoveCount?: number;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/cache/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC;IACR,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;IAClD,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAGD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,MAAM;IACrB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY,EAAE,CAAC;QACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAGD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IComponentNode } from '@jdh-cross/aui-types';
|
|
3
|
+
|
|
4
|
+
export interface RendererProps {
|
|
5
|
+
nodes: IComponentNode[];
|
|
6
|
+
values?: Record<string, any>;
|
|
7
|
+
onChange?: (payload: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: unknown;
|
|
10
|
+
}) => void;
|
|
11
|
+
originProps?: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 组件渲染器
|
|
15
|
+
*/
|
|
16
|
+
export declare const ComponentRenderer: React.FC<RendererProps>;
|
|
17
|
+
export default ComponentRenderer;
|
|
18
|
+
//# sourceMappingURL=ComponentRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/core/ComponentRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,sBAAsB,CAAC;AAQ9B,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAID;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiErD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ILayoutComponent } from '@jdh-cross/aui-types';
|
|
3
|
+
|
|
4
|
+
export interface LayoutWrapperProps {
|
|
5
|
+
node: ILayoutComponent;
|
|
6
|
+
originProps?: Record<string, any>;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const LayoutWrapper: React.FC<LayoutWrapperProps>;
|
|
10
|
+
//# sourceMappingURL=LayoutWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/core/LayoutWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAa7D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwEtD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IRenderComponent } from '@jdh-cross/aui-types';
|
|
3
|
+
|
|
4
|
+
export interface LeafWrapperProps {
|
|
5
|
+
node: IRenderComponent;
|
|
6
|
+
values?: Record<string, any>;
|
|
7
|
+
onChange?: (payload: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: unknown;
|
|
10
|
+
}) => void;
|
|
11
|
+
originProps?: Record<string, any>;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const LeafWrapper: React.FC<LeafWrapperProps>;
|
|
15
|
+
//# sourceMappingURL=LeafWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeafWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/core/LeafWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAqB7D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0FlD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MessageTemplate } from '@jdh-cross/message-template-engine';
|
|
2
|
+
import { TemplateCompileResult } from '../types/component';
|
|
3
|
+
|
|
4
|
+
export declare const compileToTree: (template: MessageTemplate, data?: Record<string, any>, editorMode?: boolean) => Promise<TemplateCompileResult>;
|
|
5
|
+
//# sourceMappingURL=templateAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateAdapter.d.ts","sourceRoot":"","sources":["../../../src/components/core/templateAdapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,eAAO,MAAM,aAAa,GACxB,UAAU,eAAe,EACzB,OAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAC9B,aAAY,OAAe,KAC1B,OAAO,CAAC,qBAAqB,CAkB/B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const useMessageCardLogic: (props: any) => {
|
|
2
|
+
templateJson: Record<string, any>;
|
|
3
|
+
templateData: Record<string, any>;
|
|
4
|
+
Render: ((props: {
|
|
5
|
+
component: import('@jdh-cross/message-template-engine').MessageTemplate;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}) => import('react').ReactNode) | ((props: {
|
|
8
|
+
component: import('@jdh-cross/message-template-engine').MessageTemplate & {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element) | (() => any);
|
|
12
|
+
routerParams: any;
|
|
13
|
+
storageData: any;
|
|
14
|
+
configData: any;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/components/hooks.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,GAAI,OAAO,GAAG;;;;;;;;;;;;;;CA4E7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LayoutProps } from '../types/component';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 绝对布局容器 (AbsoluteViewLayout)
|
|
6
|
+
* (注:当前实现复用了 FullRow 的逻辑,后续可能需要根据绝对布局特性调整)
|
|
7
|
+
*/
|
|
8
|
+
export interface AbsoluteViewLayoutProps {
|
|
9
|
+
props?: LayoutProps;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const AbsoluteViewLayout: React.FC<AbsoluteViewLayoutProps>;
|
|
13
|
+
export default AbsoluteViewLayout;
|
|
14
|
+
//# sourceMappingURL=AbsoluteViewLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbsoluteViewLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/AbsoluteViewLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWtD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0ChE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LayoutProps } from '../../types/component';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 动画布局容器 (AnimationLayout)
|
|
6
|
+
*/
|
|
7
|
+
export interface AnimationLayoutProps {
|
|
8
|
+
props?: LayoutProps;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const AnimationLayout: React.FC<AnimationLayoutProps>;
|
|
12
|
+
export default AnimationLayout;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/AnimationLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAUzD,OAAO,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8D1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LayoutProps } from '../types/component';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 动画布局容器 (AnimationLayout)
|
|
6
|
+
*/
|
|
7
|
+
export interface AnimationLayoutProps {
|
|
8
|
+
props?: LayoutProps;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const AnimationLayout: React.FC<AnimationLayoutProps>;
|
|
12
|
+
export default AnimationLayout;
|
|
13
|
+
//# sourceMappingURL=AnimationLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimationLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/AnimationLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUtD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2C1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ActionConfig } from '@jdh-cross/aui-types/action';
|
|
3
|
+
import { LayoutProps } from '../types/component';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 四列等分布局(25% / 25% / 25% / 25%)
|
|
7
|
+
*/
|
|
8
|
+
export interface FourColumnLayoutProps {
|
|
9
|
+
props?: LayoutProps & {
|
|
10
|
+
actions?: ActionConfig[];
|
|
11
|
+
};
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const FourColumnLayout: React.FC<FourColumnLayoutProps>;
|
|
15
|
+
export default FourColumnLayout;
|
|
16
|
+
//# sourceMappingURL=FourColumnLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FourColumnLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FourColumnLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWtD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,WAAW,GAAG;QAAE,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA4C5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ActionConfig } from '@jdh-cross/aui-types/action';
|
|
3
|
+
import { LayoutProps } from '../types/component';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 纵向栈布局(FullRow)
|
|
7
|
+
* - 默认宽度 100%,高度随内容
|
|
8
|
+
* - 支持 gap、padding、align、justify
|
|
9
|
+
*/
|
|
10
|
+
export interface FullRowLayoutProps {
|
|
11
|
+
props?: LayoutProps & {
|
|
12
|
+
actions?: ActionConfig[];
|
|
13
|
+
};
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
originProps?: Record<string, any>;
|
|
16
|
+
}
|
|
17
|
+
export declare const FullRowLayout: React.FC<FullRowLayoutProps>;
|
|
18
|
+
export default FullRowLayout;
|
|
19
|
+
//# sourceMappingURL=FullRowLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullRowLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/FullRowLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUtD;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,WAAW,GAAG;QAAE,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkDtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ActionConfig } from '@jdh-cross/aui-types/action';
|
|
3
|
+
import { ILayoutComponent } from '@jdh-cross/aui-types';
|
|
4
|
+
import { LayoutProps } from '../types/component';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 纵向栈布局(FullRow)
|
|
8
|
+
* - 默认宽度 100%,高度随内容
|
|
9
|
+
* - 支持 gap、padding、align、justify
|
|
10
|
+
*/
|
|
11
|
+
export interface MultipleColumnLayoutProps {
|
|
12
|
+
props?: LayoutProps & {
|
|
13
|
+
actions?: ActionConfig[];
|
|
14
|
+
};
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
originProps?: Record<string, any>;
|
|
17
|
+
}
|
|
18
|
+
export declare const MultipleColumnLayout: React.FC<ILayoutComponent>;
|
|
19
|
+
export default MultipleColumnLayout;
|
|
20
|
+
//# sourceMappingURL=MultipleColumnLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultipleColumnLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/MultipleColumnLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUtD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,WAAW,GAAG;QAAE,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmD3D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ActionConfig } from '@jdh-cross/aui-types/action';
|
|
3
|
+
import { LayoutProps } from '../types/component';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 三列等分布局(33.33% / 33.33% / 33.33%)
|
|
7
|
+
*/
|
|
8
|
+
export interface ThreeColumnLayoutProps {
|
|
9
|
+
props?: LayoutProps & {
|
|
10
|
+
actions?: ActionConfig[];
|
|
11
|
+
};
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const ThreeColumnLayout: React.FC<ThreeColumnLayoutProps>;
|
|
15
|
+
export default ThreeColumnLayout;
|
|
16
|
+
//# sourceMappingURL=ThreeColumnCenterFullLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreeColumnCenterFullLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/ThreeColumnCenterFullLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWtD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,WAAW,GAAG;QAAE,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6C9D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ActionConfig } from '@jdh-cross/aui-types/action';
|
|
3
|
+
import { LayoutProps } from '../types/component';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 三列等分布局(33.33% / 33.33% / 33.33%)
|
|
7
|
+
*/
|
|
8
|
+
export interface ThreeColumnLayoutProps {
|
|
9
|
+
props?: LayoutProps & {
|
|
10
|
+
actions?: ActionConfig[];
|
|
11
|
+
};
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const ThreeColumnLayout: React.FC<ThreeColumnLayoutProps>;
|
|
15
|
+
export default ThreeColumnLayout;
|
|
16
|
+
//# sourceMappingURL=ThreeColumnLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreeColumnLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/ThreeColumnLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUtD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,WAAW,GAAG;QAAE,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6C9D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|