@gisce/react-ooui 1.4.5-rc.0 → 2.0.0-rc.2
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/helpers/iconMapper.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/react-ooui.es.js +48 -48
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +14 -14
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/views/ActionView.tsx +1 -1
- package/src/widgets/views/Tree.tsx +9 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["Tree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,EAAE,QAAQ,EAAU,MAAM,SAAS,CAAC;AAwB3C,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC7C,gBAAgB,CAAC,EA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,GAAG,MAAM,CAAA;KAAE,CAAC;IAC7C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAmHF,iBAAS,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAmN9C;AAED,eAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -81,6 +81,8 @@ import CurrentTabContent from "./views/CurrentTabContent";
|
|
|
81
81
|
import ContentRootProvider from "./context/ContentRootContext";
|
|
82
82
|
import FavouriteButton from "./ui/FavouriteButton";
|
|
83
83
|
import { ConfigContext } from "./context/ConfigContext";
|
|
84
|
+
import Tab from "./views/tabs/Tab";
|
|
85
|
+
import ActionView from "./views/ActionView";
|
|
84
86
|
|
|
85
87
|
export {
|
|
86
88
|
Button,
|
|
@@ -159,4 +161,6 @@ export {
|
|
|
159
161
|
CodeEditor,
|
|
160
162
|
ExportModal,
|
|
161
163
|
ConfigContext,
|
|
164
|
+
Tab,
|
|
165
|
+
ActionView,
|
|
162
166
|
};
|
package/src/views/ActionView.tsx
CHANGED
|
@@ -95,7 +95,7 @@ function ActionView(props: Props, ref: any) {
|
|
|
95
95
|
useState<boolean>(false);
|
|
96
96
|
const [searchTreeNameSearch, setSearchTreeNameSearch] = useState<string>();
|
|
97
97
|
|
|
98
|
-
const { t } = useContext(LocaleContext) as LocaleContextType;
|
|
98
|
+
const { t } = (useContext(LocaleContext) as LocaleContextType) || {};
|
|
99
99
|
|
|
100
100
|
const formRef = useRef();
|
|
101
101
|
const searchTreeRef = useRef();
|
|
@@ -69,7 +69,11 @@ const many2OneComponentFn = (m2oField: any): React.ReactElement => {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
const textComponentFn = (value: any): React.ReactElement => {
|
|
72
|
-
return
|
|
72
|
+
return (
|
|
73
|
+
<Interweave
|
|
74
|
+
content={value?.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
73
77
|
};
|
|
74
78
|
|
|
75
79
|
const dateComponentFn = (value: any): React.ReactElement => {
|
|
@@ -123,7 +127,7 @@ const TagComponent = (
|
|
|
123
127
|
ooui: any,
|
|
124
128
|
context: any
|
|
125
129
|
): React.ReactElement => {
|
|
126
|
-
return <TagInput ooui={ooui} value={value}
|
|
130
|
+
return <TagInput ooui={ooui} value={value} />;
|
|
127
131
|
};
|
|
128
132
|
|
|
129
133
|
const SelectionComponent = (
|
|
@@ -332,12 +336,11 @@ function Tree(props: Props): React.ReactElement {
|
|
|
332
336
|
) : (
|
|
333
337
|
<div>
|
|
334
338
|
{pagination()}
|
|
335
|
-
{loading && <Spin className="pb-4" />}
|
|
336
339
|
<GisceTable
|
|
337
340
|
height={adjustedHeight!}
|
|
338
341
|
columns={dataTable.columns}
|
|
339
342
|
dataSource={items}
|
|
340
|
-
loading={
|
|
343
|
+
loading={loading}
|
|
341
344
|
loadingComponent={<Spin />}
|
|
342
345
|
onRowStyle={(record: any) => {
|
|
343
346
|
if (colorsForResults![record.id]) {
|
|
@@ -347,9 +350,9 @@ function Tree(props: Props): React.ReactElement {
|
|
|
347
350
|
}}
|
|
348
351
|
onRowStatus={(record: any) => {
|
|
349
352
|
if (statusForResults![record.id]) {
|
|
350
|
-
return <Badge color={statusForResults[record.id]}
|
|
353
|
+
return <Badge color={statusForResults[record.id]} />;
|
|
351
354
|
}
|
|
352
|
-
return undefined
|
|
355
|
+
return undefined;
|
|
353
356
|
}}
|
|
354
357
|
onRowDoubleClick={onRowClicked}
|
|
355
358
|
onRowSelectionChange={rowSelection?.onChange}
|