go-xcel-interpret 1.1.1 → 1.2.0
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/dist/go-xcel-interpret.cjs +147 -131
- package/dist/go-xcel-interpret.esm.mjs +10943 -11133
- package/dist/go-xcel-interpret.umd.js +147 -131
- package/dist/src/components/interpret/TabsInterpret.d.ts +3 -3
- package/dist/src/components/interpret/interpret.d.ts +3 -1
- package/dist/src/types/template.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { ActionMode, GoXcelConfig, InterpretFormTable, TemplateSheet } from '../../types';
|
|
2
|
+
import { ActionMode, GoXcelConfig, InterpretFormTable, ItemData, TemplateSheet } from '../../types';
|
|
3
3
|
declare const TabContentInterpret: ({ tab, mode, onUpdate, config, activeItemOptions, onItemOptions, itemOptions, }: {
|
|
4
4
|
tab: TemplateSheet;
|
|
5
5
|
mode: ActionMode;
|
|
6
|
-
onUpdate: (updatedTab: Partial<TemplateSheet
|
|
6
|
+
onUpdate: (updatedTab: Partial<TemplateSheet>, changedItem?: ItemData) => void;
|
|
7
7
|
config?: GoXcelConfig;
|
|
8
8
|
activeItemOptions: boolean;
|
|
9
9
|
onItemOptions: (itemOptions: Required<InterpretFormTable>["itemOptions"]) => void;
|
|
@@ -16,7 +16,7 @@ interface TabsInterpretFormProps {
|
|
|
16
16
|
setActiveKey?: (key: string) => void;
|
|
17
17
|
addTab?: () => void;
|
|
18
18
|
removeTab?: (key: string) => void;
|
|
19
|
-
updateTab?: (index: number, updatedTab: Partial<TemplateSheet
|
|
19
|
+
updateTab?: (index: number, updatedTab: Partial<TemplateSheet>, changedItem?: ItemData) => void;
|
|
20
20
|
config?: GoXcelConfig;
|
|
21
21
|
activeOptions?: ComponentPropsWithRef<typeof TabContentInterpret>['activeItemOptions'];
|
|
22
22
|
}
|
|
@@ -9,6 +9,8 @@ type InterpretProps = {
|
|
|
9
9
|
config?: GoXcelConfig;
|
|
10
10
|
activeOptions?: ComponentPropsWithRef<typeof TabsInterpret>['activeOptions'];
|
|
11
11
|
textLoading?: string;
|
|
12
|
+
updateMode?: 'single' | 'full';
|
|
13
|
+
saveMode?: 'auto' | 'on_demand';
|
|
12
14
|
};
|
|
13
|
-
export default function Interpret({ token, identity, apiBaseUrl, protocol, waitKeyboard, config, activeOptions, textLoading, }: InterpretProps & OptionHostConnect): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function Interpret({ token, identity, apiBaseUrl, protocol, waitKeyboard, config, activeOptions, textLoading, updateMode, saveMode, }: InterpretProps & OptionHostConnect): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -65,7 +65,7 @@ export declare enum ActionMode {
|
|
|
65
65
|
export interface InterpretFormTable {
|
|
66
66
|
item: TemplateItem;
|
|
67
67
|
mode: ActionMode;
|
|
68
|
-
onUpdate: (updatedTab: Partial<TemplateItem
|
|
68
|
+
onUpdate: (updatedTab: Partial<TemplateItem>, changedItem?: ItemData) => void;
|
|
69
69
|
onUpdateItemData?: (index: number, itemData: ItemData) => void;
|
|
70
70
|
config?: GoXcelConfig;
|
|
71
71
|
itemOptions?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "go-xcel-interpret",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/go-xcel-interpret.cjs",
|
|
6
6
|
"module": "dist/go-xcel-interpret.esm.mjs",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"publishConfig": {
|
|
11
|
+
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\""
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"react": "^19
|
|
24
|
-
"react-dom": "^19
|
|
23
|
+
"react": "^18 || ^19",
|
|
24
|
+
"react-dom": "^18 || ^19"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@handsontable/react-wrapper": "^15.3.0",
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
"require": "./dist/go-xcel-interpret.cjs"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|