@visns-studio/visns-components 5.13.23 → 5.14.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 +241 -0
- package/package.json +3 -3
- package/src/components/generic/GenericDashboard.jsx +479 -70
- package/src/components/generic/GenericDetail.jsx +21 -7
- package/src/components/generic/OcrTemplateEnhanced.jsx +1326 -0
- package/src/components/generic/OcrTemplateEnhanced.md +249 -0
- package/src/components/generic/OcrTemplateEnhanced.module.scss +1226 -0
- package/src/components/styles/GenericDashboard.module.scss +236 -0
- package/src/index.js +2 -0
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
X as CircleX,
|
|
65
65
|
} from 'lucide-react';
|
|
66
66
|
import { confirmDialog } from '../utils/ConfirmDialog';
|
|
67
|
+
import OcrTemplateEnhanced from './OcrTemplateEnhanced';
|
|
67
68
|
|
|
68
69
|
import 'react-big-calendar/lib/css/react-big-calendar.css';
|
|
69
70
|
import 'react-big-calendar/lib/addons/dragAndDrop/styles.css';
|
|
@@ -1435,7 +1436,16 @@ function GenericDetail({
|
|
|
1435
1436
|
case 'link':
|
|
1436
1437
|
return renderLink();
|
|
1437
1438
|
case 'ocrTemplate':
|
|
1438
|
-
return
|
|
1439
|
+
return (
|
|
1440
|
+
<OcrTemplateEnhanced
|
|
1441
|
+
id={id}
|
|
1442
|
+
data={data}
|
|
1443
|
+
setData={setData}
|
|
1444
|
+
routeParams={routeParams}
|
|
1445
|
+
urlParam={urlParam}
|
|
1446
|
+
onSave={handleOcrTemplateSave}
|
|
1447
|
+
/>
|
|
1448
|
+
);
|
|
1439
1449
|
case 'options':
|
|
1440
1450
|
return renderOptions();
|
|
1441
1451
|
case 'password':
|
|
@@ -2613,15 +2623,19 @@ function GenericDetail({
|
|
|
2613
2623
|
className={
|
|
2614
2624
|
item.size ===
|
|
2615
2625
|
'full'
|
|
2616
|
-
?
|
|
2626
|
+
? item.type === 'ocrTemplate'
|
|
2627
|
+
? styles['fw-grid-item']
|
|
2628
|
+
: `${styles['fw-grid-item']} ${styles.notecolor}`
|
|
2617
2629
|
: null
|
|
2618
2630
|
}
|
|
2619
2631
|
>
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2632
|
+
{item.type !== 'ocrTemplate' && (
|
|
2633
|
+
<strong>
|
|
2634
|
+
{item.label
|
|
2635
|
+
? `${item.label}:`
|
|
2636
|
+
: null}
|
|
2637
|
+
</strong>
|
|
2638
|
+
)}{item.type !== 'ocrTemplate' ? ' ' : ''}
|
|
2625
2639
|
{item
|
|
2626
2640
|
.href
|
|
2627
2641
|
?.url &&
|