ui-soxo-bootstrap-core 2.6.1-dev.3 → 2.6.1-dev.31
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/core/components/extra-info/extra-info-details.js +2 -2
- package/core/components/index.js +2 -11
- package/core/components/landing-api/landing-api.js +216 -18
- package/core/components/landing-api/landing-api.scss +22 -0
- package/core/components/license-management/license-alert.js +97 -0
- package/core/lib/Store.js +8 -4
- package/core/lib/components/global-header/global-header.js +217 -242
- package/core/lib/components/index.js +2 -2
- package/core/lib/components/sidemenu/sidemenu.js +19 -13
- package/core/lib/components/sidemenu/sidemenu.scss +1 -1
- package/core/lib/elements/basic/country-phone-input/country-phone-input.js +14 -9
- package/core/lib/elements/basic/dragabble-wrapper/draggable-wrapper.js +1 -1
- package/core/lib/elements/basic/menu-tree/menu-tree.js +26 -13
- package/core/lib/models/forms/components/form-creator/form-creator.js +525 -468
- package/core/lib/models/forms/components/form-creator/form-creator.scss +30 -26
- package/core/lib/models/menus/components/menu-list/menu-list.js +424 -467
- package/core/lib/models/process/components/process-dashboard/process-dashboard.js +469 -3
- package/core/lib/models/process/components/process-dashboard/process-dashboard.scss +4 -0
- package/core/lib/modules/generic/generic-list/ExportReactCSV.js +28 -2
- package/core/lib/pages/change-password/change-password.js +17 -24
- package/core/lib/pages/change-password/change-password.scss +45 -48
- package/core/lib/pages/login/commnication-mode-selection.js +2 -2
- package/core/lib/pages/login/login.js +53 -64
- package/core/lib/pages/login/login.scss +9 -0
- package/core/lib/pages/login/reset-password.js +17 -17
- package/core/lib/pages/login/reset-password.scss +10 -1
- package/core/lib/pages/profile/themes.json +4 -4
- package/core/lib/utils/api/api.utils.js +53 -45
- package/core/lib/utils/common/common.utils.js +49 -35
- package/core/lib/utils/generic/generic.utils.js +2 -1
- package/core/lib/utils/http/http.utils.js +33 -4
- package/core/lib/utils/index.js +4 -1
- package/core/models/base/base.js +7 -3
- package/core/models/core-scripts/core-scripts.js +147 -126
- package/core/models/doctor/components/doctor-add/doctor-add.js +9 -4
- package/core/models/menus/components/menu-add/menu-add.js +1 -1
- package/core/models/menus/components/menu-lists/menu-lists.js +53 -54
- package/core/models/menus/menus.js +49 -2
- package/core/models/roles/components/role-add/role-add.js +92 -59
- package/core/models/roles/components/role-list/role-list.js +1 -1
- package/core/models/staff/components/staff-add/staff-add.js +20 -32
- package/core/models/users/components/assign-role/assign-role.js +145 -50
- package/core/models/users/components/assign-role/assign-role.scss +209 -45
- package/core/models/users/components/assign-role/avatar-props.js +45 -0
- package/core/models/users/components/user-add/user-add.js +46 -55
- package/core/models/users/components/user-add/user-edit.js +25 -4
- package/core/models/users/users.js +9 -1
- package/core/modules/dashboard/components/dashboard-card/menu-dashboard-card.js +1 -1
- package/core/modules/reporting/components/reporting-dashboard/README.md +316 -0
- package/core/modules/reporting/components/reporting-dashboard/adavance-search/advance-search.js +174 -0
- package/core/modules/reporting/components/reporting-dashboard/adavance-search/advance-search.scss +76 -0
- package/core/modules/reporting/components/reporting-dashboard/display-columns/build-display-columns.js +90 -0
- package/core/modules/reporting/components/reporting-dashboard/display-columns/build-display-columns.test.js +74 -0
- package/core/modules/reporting/components/reporting-dashboard/display-columns/display-cell-renderer.js +448 -0
- package/core/modules/reporting/components/reporting-dashboard/display-columns/display-cell-renderer.test.js +199 -0
- package/core/modules/reporting/components/reporting-dashboard/reporting-dashboard.js +195 -822
- package/core/modules/reporting/components/reporting-dashboard/reporting-dashboard.scss +43 -0
- package/core/modules/reporting/components/reporting-dashboard/reporting-table.js +517 -0
- package/core/modules/steps/action-buttons.js +30 -16
- package/core/modules/steps/action-buttons.scss +55 -9
- package/core/modules/steps/chat-assistant.js +141 -0
- package/core/modules/steps/openai-realtime.js +275 -0
- package/core/modules/steps/readme.md +167 -0
- package/core/modules/steps/steps.js +1286 -60
- package/core/modules/steps/steps.scss +703 -86
- package/core/modules/steps/timeline.js +21 -19
- package/core/modules/steps/voice-navigation.js +709 -0
- package/package.json +2 -1
|
@@ -11,21 +11,26 @@ import 'react-phone-input-2/lib/style.css';
|
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import './phone-input.scss';
|
|
13
13
|
|
|
14
|
-
export default function CountryPhoneInput({
|
|
14
|
+
export default function CountryPhoneInput({
|
|
15
|
+
value,
|
|
16
|
+
onChange,
|
|
17
|
+
disabled,
|
|
18
|
+
disableCountryCode,
|
|
19
|
+
required,
|
|
20
|
+
defaultCountryCode,
|
|
21
|
+
onBlur,
|
|
22
|
+
className,
|
|
23
|
+
onKeyDown,
|
|
24
|
+
}) {
|
|
15
25
|
const inputRef = useRef();
|
|
16
26
|
const hasInitializedRef = useRef(false); // IMPORTANT
|
|
17
27
|
|
|
18
28
|
const [phone, setPhone] = useState('');
|
|
19
|
-
|
|
20
29
|
/**
|
|
21
30
|
* run ONLY ONCE when initial value has dial code
|
|
22
31
|
*/
|
|
23
32
|
useEffect(() => {
|
|
24
|
-
if (
|
|
25
|
-
!hasInitializedRef.current &&
|
|
26
|
-
value?.code?.dialCode &&
|
|
27
|
-
value?.value
|
|
28
|
-
) {
|
|
33
|
+
if (!hasInitializedRef.current && value?.code?.dialCode && value?.value) {
|
|
29
34
|
setPhone(value.code.dialCode + value.value);
|
|
30
35
|
hasInitializedRef.current = true; // 👈 mark as done
|
|
31
36
|
}
|
|
@@ -54,7 +59,7 @@ export default function CountryPhoneInput({ value, onChange, disabled, disableCo
|
|
|
54
59
|
// country={disableCountryCode ? false : 'in'}
|
|
55
60
|
value={phone}
|
|
56
61
|
onChange={handleInput}
|
|
57
|
-
inputProps={{ required: required }}
|
|
62
|
+
inputProps={{ required: required, onKeyDown: onKeyDown }}
|
|
58
63
|
disabled={disabled}
|
|
59
64
|
onBlur={onBlur}
|
|
60
65
|
/>
|
|
@@ -73,4 +78,4 @@ CountryPhoneInput.propTypes = {
|
|
|
73
78
|
disableCountryCode: PropTypes.bool,
|
|
74
79
|
/** A boolean indicating whether the input is required or not. This prop is optional. */
|
|
75
80
|
required: PropTypes.bool,
|
|
76
|
-
};
|
|
81
|
+
};
|
|
@@ -102,7 +102,7 @@ export default function DraggableWrapper({ id, index, movePanel, item, dragEnabl
|
|
|
102
102
|
>
|
|
103
103
|
<div style={{ flex: 1 }}>
|
|
104
104
|
{dragEnabled && <span style={{ marginRight: 8 }}>⋮⋮</span>}
|
|
105
|
-
<span>{item.
|
|
105
|
+
<span>{item.caption}</span>
|
|
106
106
|
{dragEnabled ? (
|
|
107
107
|
<span style={{ marginLeft: 8, fontSize: 11, color: '#999' }}>(Level {level})</span>
|
|
108
108
|
) : (
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import React from 'react';
|
|
26
|
-
import { Checkbox, Collapse } from 'antd';
|
|
26
|
+
import { Checkbox, Collapse, Tag } from 'antd';
|
|
27
27
|
|
|
28
28
|
const { Panel } = Collapse;
|
|
29
29
|
|
|
@@ -73,11 +73,15 @@ export const MenuTree = ({ menus, selectedMenus = [], toggleMenu, parentId = nul
|
|
|
73
73
|
background: '#fff',
|
|
74
74
|
display: 'flex',
|
|
75
75
|
alignItems: 'center',
|
|
76
|
-
|
|
76
|
+
justifyContent: 'space-between',
|
|
77
77
|
}}
|
|
78
78
|
>
|
|
79
|
-
{
|
|
80
|
-
<
|
|
79
|
+
{/* Left Side */}
|
|
80
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
|
81
|
+
{showCheckbox && <Checkbox checked={selectedMenus.includes(menu.id)} onChange={(e) => onParentChange(e.target.checked)} />}
|
|
82
|
+
<span>{menu.caption}</span>
|
|
83
|
+
</div>
|
|
84
|
+
<Tag color={menu.is_visible === true ? 'green' : 'blue'}>{menu.is_visible === true ? 'VISIBLE' : 'HIDDEN'}</Tag>{' '}
|
|
81
85
|
</div>
|
|
82
86
|
);
|
|
83
87
|
}
|
|
@@ -91,15 +95,24 @@ export const MenuTree = ({ menus, selectedMenus = [], toggleMenu, parentId = nul
|
|
|
91
95
|
<Panel
|
|
92
96
|
key={menu.id}
|
|
93
97
|
header={
|
|
94
|
-
<div
|
|
95
|
-
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
<div
|
|
99
|
+
style={{
|
|
100
|
+
display: 'flex',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
justifyContent: 'space-between',
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
|
106
|
+
{showCheckbox && (
|
|
107
|
+
<Checkbox
|
|
108
|
+
checked={children.every((c) => selectedMenus.includes(c.id))}
|
|
109
|
+
indeterminate={children.some((c) => selectedMenus.includes(c.id)) && !children.every((c) => selectedMenus.includes(c.id))}
|
|
110
|
+
onChange={(e) => onParentChange(e.target.checked)}
|
|
111
|
+
/>
|
|
112
|
+
)}
|
|
113
|
+
<span>{menu.caption}</span>
|
|
114
|
+
</div>
|
|
115
|
+
<Tag color={menu.is_visible === true ? 'green' : 'blue'}>{menu.is_visible === true ? 'VISIBLE' : 'HIDDEN'}</Tag>{' '}
|
|
103
116
|
</div>
|
|
104
117
|
}
|
|
105
118
|
>
|