@chamn/engine 0.0.41 → 0.0.42

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 (129) hide show
  1. package/dist/Engine.module.scss.d.ts +5 -0
  2. package/dist/component/CSSEditor/index.d.ts +16 -0
  3. package/dist/component/CSSEditor/style.module.scss.d.ts +6 -0
  4. package/dist/component/CSSPropertiesEditor/cssProperties.d.ts +898 -0
  5. package/dist/component/CSSPropertiesEditor/index.d.ts +21 -0
  6. package/dist/component/CSSPropertiesEditor/signleProperty.d.ts +25 -0
  7. package/dist/component/CSSPropertiesEditor/style.module.scss.d.ts +17 -0
  8. package/dist/component/CSSPropertiesVariableBindEditor/SingleProperty.d.ts +24 -0
  9. package/dist/component/CSSPropertiesVariableBindEditor/cssProperties.d.ts +898 -0
  10. package/dist/component/CSSPropertiesVariableBindEditor/index.d.ts +19 -0
  11. package/dist/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +16 -0
  12. package/dist/component/CSSSizeInput/index.d.ts +39 -0
  13. package/dist/component/CSSSizeInput/style.module.scss.d.ts +10 -0
  14. package/dist/component/CSSUIPanel/BackgroundInput/index.d.ts +10 -0
  15. package/dist/component/CSSUIPanel/BorderInput/index.d.ts +10 -0
  16. package/dist/component/CSSUIPanel/DimensionInput/index.d.ts +11 -0
  17. package/dist/component/CSSUIPanel/FontInput/index.d.ts +10 -0
  18. package/dist/component/CSSUIPanel/MarginAndPaddingInput/index.d.ts +11 -0
  19. package/dist/component/CSSUIPanel/ShadowInput/index.d.ts +10 -0
  20. package/dist/component/CSSUIPanel/index.d.ts +9 -0
  21. package/dist/component/CSSUIPanel/style.module.scss.d.ts +11 -0
  22. package/dist/component/CSSUIPanel/type.d.ts +3 -0
  23. package/dist/component/ClassNameEditor/index.d.ts +10 -0
  24. package/dist/component/CustomSchemaForm/components/Form/Field/index.d.ts +12 -0
  25. package/dist/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +8 -0
  26. package/dist/component/CustomSchemaForm/components/Form/context.d.ts +12 -0
  27. package/dist/component/CustomSchemaForm/components/Form/index.d.ts +19 -0
  28. package/dist/component/CustomSchemaForm/components/SetterSwitcher/index.d.ts +14 -0
  29. package/dist/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +7 -0
  30. package/dist/component/CustomSchemaForm/components/Setters/AntDColorSetter/index.d.ts +2 -0
  31. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/ArrayItem.d.ts +11 -0
  32. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/SortItemOrderModal.d.ts +10 -0
  33. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/index.d.ts +14 -0
  34. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +7 -0
  35. package/dist/component/CustomSchemaForm/components/Setters/BooleanSetter/index.d.ts +7 -0
  36. package/dist/component/CustomSchemaForm/components/Setters/CSSSizeSetter/index.d.ts +3 -0
  37. package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/index.d.ts +6 -0
  38. package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +6 -0
  39. package/dist/component/CustomSchemaForm/components/Setters/ColorSetter/index.d.ts +2 -0
  40. package/dist/component/CustomSchemaForm/components/Setters/ExpressionSetter/index.d.ts +10 -0
  41. package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/index.d.ts +2 -0
  42. package/dist/component/CustomSchemaForm/components/Setters/JSONSetter/index.d.ts +2 -0
  43. package/dist/component/CustomSchemaForm/components/Setters/NumberSetter/index.d.ts +3 -0
  44. package/dist/component/CustomSchemaForm/components/Setters/RadioGroupSetter/index.d.ts +2 -0
  45. package/dist/component/CustomSchemaForm/components/Setters/SelectSetter/index.d.ts +3 -0
  46. package/dist/component/CustomSchemaForm/components/Setters/ShapeSetter/index.d.ts +8 -0
  47. package/dist/component/CustomSchemaForm/components/Setters/SliderSetter/index.d.ts +3 -0
  48. package/dist/component/CustomSchemaForm/components/Setters/StringSetter/index.d.ts +3 -0
  49. package/dist/component/CustomSchemaForm/components/Setters/TextAreaSetter/index.d.ts +3 -0
  50. package/dist/component/CustomSchemaForm/components/Setters/index.d.ts +4 -0
  51. package/dist/component/CustomSchemaForm/components/Setters/type.d.ts +20 -0
  52. package/dist/component/CustomSchemaForm/context.d.ts +15 -0
  53. package/dist/component/CustomSchemaForm/index.d.ts +22 -0
  54. package/dist/component/CustomSchemaForm/style.module.scss.d.ts +11 -0
  55. package/dist/component/CustomSchemaForm/utils.d.ts +2 -0
  56. package/dist/component/InputNumberPlus/index.d.ts +9 -0
  57. package/dist/component/InputNumberPlus/style.module.scss.d.ts +6 -0
  58. package/dist/component/MonacoEditor/index.d.ts +14 -0
  59. package/dist/component/Workbench/index.d.ts +72 -0
  60. package/dist/component/Workbench/style.module.scss.d.ts +26 -0
  61. package/dist/config/colorPickerColorList.d.ts +4 -0
  62. package/dist/core/assetPackagesListManage.d.ts +8 -0
  63. package/dist/core/pluginManager.d.ts +63 -0
  64. package/dist/i18n/en_US/index.d.ts +5 -0
  65. package/dist/i18n/index.d.ts +6 -0
  66. package/dist/i18n/zh_CN/index.d.ts +5 -0
  67. package/dist/index.d.ts +57 -0
  68. package/dist/index.js +2 -2
  69. package/dist/index.js.map +1 -1
  70. package/dist/index.mjs +3 -2
  71. package/dist/index.mjs.map +1 -1
  72. package/dist/material/innerMaterial.d.ts +2 -0
  73. package/dist/plugins/AdvancePanel/index.d.ts +10 -0
  74. package/dist/plugins/AdvancePanel/style.module.scss.d.ts +7 -0
  75. package/dist/plugins/ComponentLibrary/components/DragItem/index.d.ts +12 -0
  76. package/dist/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +9 -0
  77. package/dist/plugins/ComponentLibrary/components/ListView/index.d.ts +9 -0
  78. package/dist/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +12 -0
  79. package/dist/plugins/ComponentLibrary/index.d.ts +3 -0
  80. package/dist/plugins/ComponentLibrary/localize/en_US/index.d.ts +1 -0
  81. package/dist/plugins/ComponentLibrary/localize/index.d.ts +2 -0
  82. package/dist/plugins/ComponentLibrary/localize/zh_CN/index.d.ts +1 -0
  83. package/dist/plugins/ComponentLibrary/style.module.scss.d.ts +11 -0
  84. package/dist/plugins/ComponentLibrary/util.d.ts +1 -0
  85. package/dist/plugins/ComponentStatePanel/index.d.ts +10 -0
  86. package/dist/plugins/Designer/components/Canvas/advanceCustomHook.d.ts +45 -0
  87. package/dist/plugins/Designer/components/Canvas/index.d.ts +63 -0
  88. package/dist/plugins/Designer/components/Canvas/style.module.scss.d.ts +5 -0
  89. package/dist/plugins/Designer/components/DefaultSelectToolBar/index.d.ts +16 -0
  90. package/dist/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +11 -0
  91. package/dist/plugins/Designer/components/GhostView/index.d.ts +5 -0
  92. package/dist/plugins/Designer/config.d.ts +1 -0
  93. package/dist/plugins/Designer/index.d.ts +2 -0
  94. package/dist/plugins/Designer/localize/en_US/index.d.ts +1 -0
  95. package/dist/plugins/Designer/localize/index.d.ts +2 -0
  96. package/dist/plugins/Designer/localize/zh_CN/index.d.ts +1 -0
  97. package/dist/plugins/Designer/type.d.ts +26 -0
  98. package/dist/plugins/Designer/util.d.ts +2 -0
  99. package/dist/plugins/DisplaySourceSchema/index.d.ts +9 -0
  100. package/dist/plugins/GlobalStatePanel/index.d.ts +3 -0
  101. package/dist/plugins/GlobalStatePanel/localize/en_US/index.d.ts +1 -0
  102. package/dist/plugins/GlobalStatePanel/localize/index.d.ts +2 -0
  103. package/dist/plugins/GlobalStatePanel/localize/zh_CN/index.d.ts +1 -0
  104. package/dist/plugins/GlobalStatePanel/style.module.scss.d.ts +5 -0
  105. package/dist/plugins/History/index.d.ts +2 -0
  106. package/dist/plugins/History/type.d.ts +12 -0
  107. package/dist/plugins/OutlineTree/components/TreeView/context.d.ts +30 -0
  108. package/dist/plugins/OutlineTree/components/TreeView/dataStruct.d.ts +21 -0
  109. package/dist/plugins/OutlineTree/components/TreeView/index.d.ts +33 -0
  110. package/dist/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +16 -0
  111. package/dist/plugins/OutlineTree/components/TreeView/treeNode.d.ts +11 -0
  112. package/dist/plugins/OutlineTree/index.d.ts +3 -0
  113. package/dist/plugins/OutlineTree/localize/en_US/index.d.ts +1 -0
  114. package/dist/plugins/OutlineTree/localize/index.d.ts +2 -0
  115. package/dist/plugins/OutlineTree/localize/zh_CN/index.d.ts +1 -0
  116. package/dist/plugins/OutlineTree/util.d.ts +14 -0
  117. package/dist/plugins/PropertyPanel/index.d.ts +9 -0
  118. package/dist/plugins/PropertyPanel/style.module.scss.d.ts +10 -0
  119. package/dist/plugins/RightPanel/index.d.ts +2 -0
  120. package/dist/plugins/RightPanel/style.module.scss.d.ts +10 -0
  121. package/dist/plugins/RightPanel/view.d.ts +39 -0
  122. package/dist/plugins/VisualPanelPlus/index.d.ts +4 -0
  123. package/dist/plugins/VisualPanelPlus/style.module.scss.d.ts +10 -0
  124. package/dist/plugins/index.d.ts +9 -0
  125. package/dist/utils/css.d.ts +40 -0
  126. package/dist/utils/defaultEngineConfig.d.ts +13 -0
  127. package/dist/utils/index.d.ts +12 -0
  128. package/dist/utils/logger.d.ts +1 -0
  129. package/package.json +7 -7
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export declare const defaultPropertyOptions: {
3
+ value: string;
4
+ }[];
5
+ export type CSSPropertiesEditorProps = {
6
+ initialValue?: {
7
+ property: string;
8
+ value: string;
9
+ }[];
10
+ onValueChange?: (val: {
11
+ property: string;
12
+ value: string;
13
+ }[]) => void;
14
+ };
15
+ export type CSSPropertiesEditorRef = {
16
+ setValue: (val: {
17
+ property: string;
18
+ value: string;
19
+ }[]) => void;
20
+ };
21
+ export declare const CSSPropertiesEditor: import("react").ForwardRefExoticComponent<CSSPropertiesEditorProps & import("react").RefAttributes<CSSPropertiesEditorRef>>;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ export type SinglePropertyEditorProps = {
3
+ mode: 'create' | 'edit';
4
+ value?: {
5
+ property: string;
6
+ value: string;
7
+ };
8
+ allValues: {
9
+ property: string;
10
+ value: string;
11
+ }[];
12
+ onValueChange?: (value: {
13
+ property: string;
14
+ value: string;
15
+ }) => void;
16
+ onCreate?: (value: {
17
+ property: string;
18
+ value: string;
19
+ }) => void;
20
+ onDelete?: () => void;
21
+ };
22
+ export type SinglePropertyEditorRef = {
23
+ reset: () => void;
24
+ };
25
+ export declare const SinglePropertyEditor: import("react").ForwardRefExoticComponent<SinglePropertyEditorProps & import("react").RefAttributes<SinglePropertyEditorRef>>;
@@ -0,0 +1,17 @@
1
+ import globalClassNames from '../../style.d';
2
+ declare const classNames: typeof globalClassNames & {
3
+ readonly cssFieldBox: 'cssFieldBox';
4
+ readonly 'ant-select-selector': 'ant-select-selector';
5
+ readonly 'ant-select-single': 'ant-select-single';
6
+ readonly 'ant-select-selection-search': 'ant-select-selection-search';
7
+ readonly inputAuto: 'inputAuto';
8
+ readonly error: 'error';
9
+ readonly keyField: 'keyField';
10
+ readonly notEdit: 'notEdit';
11
+ readonly active: 'active';
12
+ readonly cssBox: 'cssBox';
13
+ readonly 'ant-collapse-borderless': 'ant-collapse-borderless';
14
+ readonly 'ant-collapse-item': 'ant-collapse-item';
15
+ readonly 'ant-collapse-content-box': 'ant-collapse-content-box';
16
+ };
17
+ export = classNames;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { JSExpressionPropType } from '@chamn/model';
3
+ export type InnerSinglePropertyEditorProps = {
4
+ value?: {
5
+ property: string;
6
+ value: JSExpressionPropType | string;
7
+ };
8
+ onValueChange: (value: {
9
+ property: string;
10
+ value: JSExpressionPropType | string;
11
+ }) => void;
12
+ onDelete?: () => void;
13
+ onCreate?: (value: {
14
+ property: string;
15
+ value: JSExpressionPropType | string;
16
+ }) => {
17
+ errorKey?: string[];
18
+ } | void;
19
+ mod?: 'create' | 'edit';
20
+ };
21
+ export type InnerSinglePropertyEditorRef = {
22
+ reset: () => void;
23
+ };
24
+ export declare const SinglePropertyEditor: import("react").ForwardRefExoticComponent<InnerSinglePropertyEditorProps & import("react").RefAttributes<InnerSinglePropertyEditorRef>>;