@rio-cloud/uikit-mcp 1.1.9 → 1.1.10
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/doc-metadata.json +325 -85
- package/dist/docs/components/accentBar.md +110 -116
- package/dist/docs/components/activity.md +1 -1
- package/dist/docs/components/analyticsAnalysisOverlay.md +628 -0
- package/dist/docs/components/animatedNumber.md +2 -2
- package/dist/docs/components/animatedTextReveal.md +53 -55
- package/dist/docs/components/animations.md +22 -22
- package/dist/docs/components/appHeader.md +27 -38
- package/dist/docs/components/appLayout.md +38 -42
- package/dist/docs/components/appNavigationBar.md +1 -1
- package/dist/docs/components/areaCharts.md +57 -63
- package/dist/docs/components/aspectRatioPlaceholder.md +1 -1
- package/dist/docs/components/assetTree.md +200 -167
- package/dist/docs/components/autosuggests.md +1 -1
- package/dist/docs/components/avatar.md +1 -1
- package/dist/docs/components/banner.md +2 -2
- package/dist/docs/components/barCharts.md +531 -417
- package/dist/docs/components/barList.md +9 -9
- package/dist/docs/components/basicMap.md +60 -39
- package/dist/docs/components/bottomSheet.md +2 -2
- package/dist/docs/components/button.md +8 -2
- package/dist/docs/components/buttonToolbar.md +1 -1
- package/dist/docs/components/calendarStripe.md +57 -65
- package/dist/docs/components/card.md +1 -1
- package/dist/docs/components/carousel.md +1 -1
- package/dist/docs/components/chartColors.md +1 -3
- package/dist/docs/components/chartsGettingStarted.md +1 -3
- package/dist/docs/components/chat.md +2 -2
- package/dist/docs/components/checkbox.md +15 -12
- package/dist/docs/components/circularProgress.md +8 -8
- package/dist/docs/components/clearableInput.md +1 -1
- package/dist/docs/components/collapse.md +2 -4
- package/dist/docs/components/composedCharts.md +63 -53
- package/dist/docs/components/contentLoader.md +1 -1
- package/dist/docs/components/dataTabs.md +33 -33
- package/dist/docs/components/datepickers.md +693 -687
- package/dist/docs/components/dayPicker.md +5574 -0
- package/dist/docs/components/dayPickerCalendar.md +5269 -0
- package/dist/docs/components/dialogs.md +17 -19
- package/dist/docs/components/divider.md +1 -1
- package/dist/docs/components/dropdowns.md +3252 -3276
- package/dist/docs/components/editableContent.md +91 -91
- package/dist/docs/components/expander.md +4 -1
- package/dist/docs/components/fade.md +1 -1
- package/dist/docs/components/fadeExpander.md +1 -1
- package/dist/docs/components/fadeUp.md +32 -36
- package/dist/docs/components/feedback.md +1 -1
- package/dist/docs/components/filePickers.md +1 -1
- package/dist/docs/components/formLabel.md +29 -31
- package/dist/docs/components/groupedItemList.md +3 -7
- package/dist/docs/components/htmlTable.md +5074 -0
- package/dist/docs/components/iconList.md +4 -4
- package/dist/docs/components/imagePreloader.md +1 -1
- package/dist/docs/components/labeledElement.md +1 -1
- package/dist/docs/components/licensePlate.md +1 -1
- package/dist/docs/components/lineCharts.md +172 -172
- package/dist/docs/components/listMenu.md +15 -12
- package/dist/docs/components/loadMore.md +4 -2
- package/dist/docs/components/mainNavigation.md +1 -1
- package/dist/docs/components/mapCircle.md +10 -1
- package/dist/docs/components/mapCluster.md +23 -1
- package/dist/docs/components/mapContext.md +12 -4
- package/dist/docs/components/mapDraggableMarker.md +12 -1
- package/dist/docs/components/mapGettingStarted.md +1 -1
- package/dist/docs/components/mapInfoBubble.md +129 -2
- package/dist/docs/components/mapLayerGroup.md +10 -1
- package/dist/docs/components/mapMarker.md +10 -3
- package/dist/docs/components/mapPolygon.md +288 -85
- package/dist/docs/components/mapRoute.md +262 -172
- package/dist/docs/components/mapRouteGenerator.md +1 -1
- package/dist/docs/components/mapSettings.md +23 -1
- package/dist/docs/components/mapUtils.md +1 -1
- package/dist/docs/components/multiselects.md +211 -18
- package/dist/docs/components/noData.md +1 -1
- package/dist/docs/components/notifications.md +2 -2
- package/dist/docs/components/numbercontrol.md +15 -15
- package/dist/docs/components/onboarding.md +1 -1
- package/dist/docs/components/page.md +1 -1
- package/dist/docs/components/pager.md +1 -1
- package/dist/docs/components/pieCharts.md +237 -213
- package/dist/docs/components/popover.md +1 -1
- package/dist/docs/components/position.md +1 -1
- package/dist/docs/components/radialBarCharts.md +446 -400
- package/dist/docs/components/radioCardGroup.md +1 -1
- package/dist/docs/components/radiobutton.md +96 -98
- package/dist/docs/components/releaseNotes.md +1 -1
- package/dist/docs/components/resizer.md +1 -3
- package/dist/docs/components/responsiveColumnStripe.md +1 -3
- package/dist/docs/components/responsiveVideo.md +1 -1
- package/dist/docs/components/rioglyph.md +1 -1
- package/dist/docs/components/rules.md +41 -47
- package/dist/docs/components/saveableInput.md +252 -252
- package/dist/docs/components/selects.md +165 -111
- package/dist/docs/components/sidebar.md +1 -1
- package/dist/docs/components/sliders.md +1 -1
- package/dist/docs/components/smoothScrollbars.md +19 -15
- package/dist/docs/components/spinners.md +1 -1
- package/dist/docs/components/states.md +1 -1
- package/dist/docs/components/statsWidgets.md +1 -1
- package/dist/docs/components/statusBar.md +1 -1
- package/dist/docs/components/stepButton.md +1 -1
- package/dist/docs/components/steppedProgressBars.md +9 -11
- package/dist/docs/components/subNavigation.md +1 -1
- package/dist/docs/components/supportMarker.md +1 -1
- package/dist/docs/components/svgImage.md +1 -1
- package/dist/docs/components/switch.md +3 -1
- package/dist/docs/components/table.md +19584 -0
- package/dist/docs/components/tableControls.md +982 -0
- package/dist/docs/components/tagManager.md +1 -1
- package/dist/docs/components/tags.md +1 -1
- package/dist/docs/components/teaser.md +1 -3
- package/dist/docs/components/textTruncateMiddle.md +1 -1
- package/dist/docs/components/timeline.md +1 -1
- package/dist/docs/components/timepicker.md +1 -1
- package/dist/docs/components/toggleButton.md +3 -1
- package/dist/docs/components/tooltip.md +4 -2
- package/dist/docs/components/tracker.md +1 -1
- package/dist/docs/components/virtualList.md +56 -56
- package/dist/docs/foundations.md +640 -3122
- package/dist/docs/start/changelog.md +53 -3
- package/dist/docs/start/goodtoknow.md +2 -4
- package/dist/docs/start/guidelines/color-combinations.md +1 -1
- package/dist/docs/start/guidelines/custom-css.md +1 -1
- package/dist/docs/start/guidelines/custom-rioglyph.md +1 -1
- package/dist/docs/start/guidelines/formatting.md +1 -3
- package/dist/docs/start/guidelines/iframe.md +17 -19
- package/dist/docs/start/guidelines/obfuscate-data.md +2 -4
- package/dist/docs/start/guidelines/print-css.md +1 -1
- package/dist/docs/start/guidelines/spinner.md +1 -1
- package/dist/docs/start/guidelines/state-in-url.md +1 -1
- package/dist/docs/start/guidelines/supported-browsers.md +1 -1
- package/dist/docs/start/guidelines/writing.md +1 -1
- package/dist/docs/start/howto.md +12 -20
- package/dist/docs/start/intro.md +1 -1
- package/dist/docs/start/responsiveness.md +1 -3
- package/dist/docs/templates/ai-assistant.md +311 -0
- package/dist/docs/templates/common-table.md +814 -0
- package/dist/docs/templates/detail-views.md +846 -0
- package/dist/docs/templates/expandable-details.md +214 -0
- package/dist/docs/templates/feature-cards.md +479 -0
- package/dist/docs/templates/form-summary.md +179 -0
- package/dist/docs/templates/form-toggle.md +329 -0
- package/dist/docs/templates/list-blocks.md +872 -0
- package/dist/docs/templates/loading-progress.md +100 -0
- package/dist/docs/templates/options-panel.md +132 -0
- package/dist/docs/templates/panel-variants.md +137 -0
- package/dist/docs/templates/progress-cards.md +541 -0
- package/dist/docs/templates/progress-success.md +125 -0
- package/dist/docs/templates/settings-form.md +401 -0
- package/dist/docs/templates/stats-blocks.md +1245 -0
- package/dist/docs/templates/table-panel.md +310 -0
- package/dist/docs/templates/usage-cards.md +199 -0
- package/dist/docs/utilities/classNames.md +1 -1
- package/dist/docs/utilities/deviceUtils.md +2 -2
- package/dist/docs/utilities/featureToggles.md +1 -1
- package/dist/docs/utilities/fuelTypeUtils.md +27 -29
- package/dist/docs/utilities/getTrackingAttributes.md +277 -0
- package/dist/docs/utilities/routeUtils.md +2 -2
- package/dist/docs/utilities/useAfterMount.md +1 -1
- package/dist/docs/utilities/useAutoAnimate.md +1 -1
- package/dist/docs/utilities/useAverage.md +1 -1
- package/dist/docs/utilities/useClickOutside.md +1 -1
- package/dist/docs/utilities/useClipboard.md +2 -2
- package/dist/docs/utilities/useCookies.md +1 -1
- package/dist/docs/utilities/useCount.md +1 -1
- package/dist/docs/utilities/useDarkMode.md +5 -4
- package/dist/docs/utilities/useDebugInfo.md +3 -3
- package/dist/docs/utilities/useDraggableElement.md +281 -0
- package/dist/docs/utilities/useEffectOnce.md +1 -1
- package/dist/docs/utilities/useElapsedTime.md +1 -1
- package/dist/docs/utilities/useElementSize.md +1 -1
- package/dist/docs/utilities/useEsc.md +1 -1
- package/dist/docs/utilities/useEvent.md +1 -1
- package/dist/docs/utilities/useFocusTrap.md +1 -1
- package/dist/docs/utilities/useFullscreen.md +1 -1
- package/dist/docs/utilities/useHover.md +1 -1
- package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
- package/dist/docs/utilities/useInterval.md +1 -1
- package/dist/docs/utilities/useIsFocusWithin.md +1 -1
- package/dist/docs/utilities/useKey.md +8 -10
- package/dist/docs/utilities/useLocalStorage.md +1 -1
- package/dist/docs/utilities/useLocationSuggestions.md +1 -1
- package/dist/docs/utilities/useMax.md +1 -1
- package/dist/docs/utilities/useMin.md +1 -1
- package/dist/docs/utilities/useMutationObserver.md +1 -1
- package/dist/docs/utilities/useOnScreen.md +1 -1
- package/dist/docs/utilities/useOnlineStatus.md +1 -1
- package/dist/docs/utilities/usePostMessage.md +2 -2
- package/dist/docs/utilities/usePostMessageSender.md +1 -1
- package/dist/docs/utilities/usePrevious.md +2 -4
- package/dist/docs/utilities/useResizeObserver.md +35 -15
- package/dist/docs/utilities/useRioCookieConsent.md +1 -1
- package/dist/docs/utilities/useScrollPosition.md +3 -6
- package/dist/docs/utilities/useSearch.md +1 -3
- package/dist/docs/utilities/useSearchHighlight.md +1 -1
- package/dist/docs/utilities/useSorting.md +370 -239
- package/dist/docs/utilities/useStateWithValidation.md +1 -1
- package/dist/docs/utilities/useSum.md +1 -1
- package/dist/docs/utilities/useTableExport.md +364 -288
- package/dist/docs/utilities/useTableSelection.md +88 -92
- package/dist/docs/utilities/useTimeout.md +1 -1
- package/dist/docs/utilities/useToggle.md +1 -1
- package/dist/docs/utilities/useUrlState.md +1 -1
- package/dist/docs/utilities/useWindowResize.md +1 -1
- package/dist/index.mjs +1 -1
- package/dist/search-synonyms.json +2 -2
- package/dist/version.json +2 -2
- package/package.json +2 -2
- package/dist/docs/components/tables.md +0 -8
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# AI Assistant
|
|
2
|
+
|
|
3
|
+
*Category:* Templates
|
|
4
|
+
*Section:* Content
|
|
5
|
+
*Source:* https://uikit.developers.rio.cloud/#/templates/ai-assistant
|
|
6
|
+
*Captured:* 2026-04-20T12:55:39.311Z
|
|
7
|
+
|
|
8
|
+
## AI Assistant
|
|
9
|
+
|
|
10
|
+
### Example: Data query
|
|
11
|
+
|
|
12
|
+
Disclaimer
|
|
13
|
+
This feature is powered by Artificial Intelligence (AI) technology. The outputs generated are produced automatically based on the information provided by the user. The results may contain errors, inaccuracies, or misleading information. Users are therefore advised to independently verify any content or recommendations before relying on them for decision-making, professional, or operational purposes.
|
|
14
|
+
Important:
|
|
15
|
+
Do not enter, upload, or share any personal identifiable information (PII), confidential data, or sensitive information through this tool.
|
|
16
|
+
The use of this tool is strictly limited to this service.
|
|
17
|
+
By using this tool, you acknowledge and agree that you are solely responsible for any content you provide and for any decisions made based on the tool's output.
|
|
18
|
+
The provider of this tool disclaims all liability for any direct or indirect damages resulting from the use of or reliance on AI-generated content.
|
|
19
|
+
|
|
20
|
+
Data query
|
|
21
|
+
Show me all unconfirmed transport orders from today
|
|
22
|
+
|
|
23
|
+
#### React (tsx)
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import { useEffect, useRef, useState } from 'react';
|
|
27
|
+
import AnimatedTextReveal from '@rio-cloud/rio-uikit/AnimatedTextReveal';
|
|
28
|
+
import Button from '@rio-cloud/rio-uikit/Button';
|
|
29
|
+
import Card from '@rio-cloud/rio-uikit/Card';
|
|
30
|
+
import Collapse from '@rio-cloud/rio-uikit/Collapse';
|
|
31
|
+
import Fade from '@rio-cloud/rio-uikit/Fade';
|
|
32
|
+
import Table, { TableBody, TableColumn, TableHeader, TableHeaderColumn, TableRow } from '@rio-cloud/rio-uikit/Table';
|
|
33
|
+
import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
|
|
34
|
+
|
|
35
|
+
const DISCLAIMER_TEXT =
|
|
36
|
+
'This feature is powered by Artificial Intelligence (AI) technology. The outputs generated are produced automatically based on the information provided by the user. The results may contain errors, inaccuracies, or misleading information. Users are therefore advised to independently verify any content or recommendations before relying on them for decision-making, professional, or operational purposes.';
|
|
37
|
+
|
|
38
|
+
const IMPORTANT_POINTS = [
|
|
39
|
+
'Do not enter, upload, or share any personal identifiable information (PII), confidential data, or sensitive information through this tool.',
|
|
40
|
+
'The use of this tool is strictly limited to this service.',
|
|
41
|
+
"By using this tool, you acknowledge and agree that you are solely responsible for any content you provide and for any decisions made based on the tool's output.",
|
|
42
|
+
'The provider of this tool disclaims all liability for any direct or indirect damages resulting from the use of or reliance on AI-generated content.',
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
const CARD_REVEAL_DELAY_IN_MS = 200;
|
|
46
|
+
const RESPONSE_DELAY_IN_MS = 4_000;
|
|
47
|
+
|
|
48
|
+
const LOADING_PHRASES = ['Analyzing your request...', 'Looking up matching transport orders...'];
|
|
49
|
+
|
|
50
|
+
const dummyResponseData = [
|
|
51
|
+
{
|
|
52
|
+
orderId: 'TO-48291',
|
|
53
|
+
customer: 'Warehouse Berlin',
|
|
54
|
+
status: 'Unconfirmed',
|
|
55
|
+
age: '2h 34m',
|
|
56
|
+
priority: 'High',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
orderId: 'TO-48288',
|
|
60
|
+
customer: 'Retail Hub Hamburg',
|
|
61
|
+
status: 'Unconfirmed',
|
|
62
|
+
age: '2h 12m',
|
|
63
|
+
priority: 'High',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
orderId: 'TO-48274',
|
|
67
|
+
customer: 'Depot Hannover',
|
|
68
|
+
status: 'Unconfirmed',
|
|
69
|
+
age: '1h 48m',
|
|
70
|
+
priority: 'Medium',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
orderId: 'TO-48263',
|
|
74
|
+
customer: 'Crossdock Bremen',
|
|
75
|
+
status: 'Unconfirmed',
|
|
76
|
+
age: '1h 05m',
|
|
77
|
+
priority: 'Medium',
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
|
|
81
|
+
const getPriorityLabelClassName = (priority: string) => {
|
|
82
|
+
switch (priority) {
|
|
83
|
+
case 'High':
|
|
84
|
+
return 'label label-danger label-condensed';
|
|
85
|
+
case 'Medium':
|
|
86
|
+
return 'label label-warning label-condensed';
|
|
87
|
+
default:
|
|
88
|
+
return 'label label-info label-condensed';
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const DummyResponseTable = () => (
|
|
93
|
+
<div className='space-y-15'>
|
|
94
|
+
<div className='display-flex justify-content-between align-items-center'>
|
|
95
|
+
<div className='text-medium text-color-darker'>Found 4 prioritized transport orders</div>
|
|
96
|
+
<div className='label label-info'>12 total</div>
|
|
97
|
+
</div>
|
|
98
|
+
<Table className='margin-bottom-0' border={false}>
|
|
99
|
+
<TableHeader>
|
|
100
|
+
<TableHeaderColumn columnKey='order'>Order</TableHeaderColumn>
|
|
101
|
+
<TableHeaderColumn columnKey='customer'>Customer</TableHeaderColumn>
|
|
102
|
+
<TableHeaderColumn columnKey='status'>Status</TableHeaderColumn>
|
|
103
|
+
<TableHeaderColumn columnKey='age'>Open for</TableHeaderColumn>
|
|
104
|
+
<TableHeaderColumn columnKey='priority'>Priority</TableHeaderColumn>
|
|
105
|
+
</TableHeader>
|
|
106
|
+
<TableBody>
|
|
107
|
+
{dummyResponseData.map(row => (
|
|
108
|
+
<TableRow key={row.orderId}>
|
|
109
|
+
<TableColumn columnKey='order' className='text-medium'>
|
|
110
|
+
{row.orderId}
|
|
111
|
+
</TableColumn>
|
|
112
|
+
<TableColumn columnKey='customer'>{row.customer}</TableColumn>
|
|
113
|
+
<TableColumn columnKey='status'>{row.status}</TableColumn>
|
|
114
|
+
<TableColumn columnKey='age'>{row.age}</TableColumn>
|
|
115
|
+
<TableColumn columnKey='priority'>
|
|
116
|
+
<span className={getPriorityLabelClassName(row.priority)}>{row.priority}</span>
|
|
117
|
+
</TableColumn>
|
|
118
|
+
</TableRow>
|
|
119
|
+
))}
|
|
120
|
+
</TableBody>
|
|
121
|
+
</Table>
|
|
122
|
+
</div>
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
const DisclaimerCallout = ({ onClose }: { onClose: VoidFunction }) => (
|
|
126
|
+
<div className='callout callout-info rounded-extra-large shadow-default margin-bottom-20 position-relative padding-right-50'>
|
|
127
|
+
<Button
|
|
128
|
+
bsStyle='muted'
|
|
129
|
+
bsSize='sm'
|
|
130
|
+
onClick={onClose}
|
|
131
|
+
iconName='rioglyph-remove'
|
|
132
|
+
iconOnly
|
|
133
|
+
className='position-absolute top-10 right-10'
|
|
134
|
+
/>
|
|
135
|
+
<div className='text-size-h3 text-bold text-color-info margin-bottom-15'>Disclaimer</div>
|
|
136
|
+
<p className='line-height-30 margin-bottom-25'>{DISCLAIMER_TEXT}</p>
|
|
137
|
+
|
|
138
|
+
<div className='margin-bottom-10 text-size-18 text-bold text-color-darker'>Important:</div>
|
|
139
|
+
<ul className='margin-bottom-0 padding-left-25 space-y-10 line-height-30'>
|
|
140
|
+
{IMPORTANT_POINTS.map(point => (
|
|
141
|
+
<li key={point}>{point}</li>
|
|
142
|
+
))}
|
|
143
|
+
</ul>
|
|
144
|
+
</div>
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
const AiAssistantTemplateExample = () => {
|
|
148
|
+
const [query, setQuery] = useState('Show me all unconfirmed transport orders from today');
|
|
149
|
+
|
|
150
|
+
const [showDisclaimer, setShowDisclaimer] = useState(true);
|
|
151
|
+
const [showResponseCard, setShowResponseCard] = useState(false);
|
|
152
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
153
|
+
const [submittedQuery, setSubmittedQuery] = useState('');
|
|
154
|
+
|
|
155
|
+
const cardTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
156
|
+
const responseTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
157
|
+
|
|
158
|
+
useEffect(
|
|
159
|
+
() => () => {
|
|
160
|
+
if (cardTimeoutRef.current) {
|
|
161
|
+
clearTimeout(cardTimeoutRef.current);
|
|
162
|
+
}
|
|
163
|
+
if (responseTimeoutRef.current) {
|
|
164
|
+
clearTimeout(responseTimeoutRef.current);
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
[]
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
const onExecute = () => {
|
|
171
|
+
const trimmedQuery = query.trim();
|
|
172
|
+
|
|
173
|
+
if (!trimmedQuery || isLoading) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
setSubmittedQuery(trimmedQuery);
|
|
178
|
+
setQuery('');
|
|
179
|
+
setShowResponseCard(false);
|
|
180
|
+
setIsLoading(true);
|
|
181
|
+
|
|
182
|
+
cardTimeoutRef.current = setTimeout(() => {
|
|
183
|
+
setShowResponseCard(true);
|
|
184
|
+
cardTimeoutRef.current = null;
|
|
185
|
+
}, CARD_REVEAL_DELAY_IN_MS);
|
|
186
|
+
|
|
187
|
+
responseTimeoutRef.current = setTimeout(() => {
|
|
188
|
+
setIsLoading(false);
|
|
189
|
+
responseTimeoutRef.current = null;
|
|
190
|
+
}, RESPONSE_DELAY_IN_MS);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
return (
|
|
194
|
+
<div className='padding-50 padding-0-xs'>
|
|
195
|
+
<Collapse open={showDisclaimer} unmountOnExit>
|
|
196
|
+
<DisclaimerCallout onClose={() => setShowDisclaimer(false)} />
|
|
197
|
+
</Collapse>
|
|
198
|
+
|
|
199
|
+
<div>
|
|
200
|
+
<FormLabel>Data query</FormLabel>
|
|
201
|
+
<div className='display-flex flex-wrap gap-5 align-items-end position-relative'>
|
|
202
|
+
<div className='flex-1-1 min-width-300 form-group form-group-lg'>
|
|
203
|
+
<div className='input-group'>
|
|
204
|
+
<span className='input-group-addon margin-5'>
|
|
205
|
+
<span className='rioglyph rioglyph-search' />
|
|
206
|
+
</span>
|
|
207
|
+
<textarea
|
|
208
|
+
id='chat-template-query'
|
|
209
|
+
className='form-control padding-right-50 min-height-80 text-size-14 padding-y-15 padding-left-40'
|
|
210
|
+
rows={2}
|
|
211
|
+
value={query}
|
|
212
|
+
onChange={event => setQuery(event.target.value)}
|
|
213
|
+
placeholder='Enter your data query'
|
|
214
|
+
/>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
<Button
|
|
218
|
+
bsStyle='muted'
|
|
219
|
+
disabled={!query.trim() || isLoading}
|
|
220
|
+
onClick={onExecute}
|
|
221
|
+
iconOnly
|
|
222
|
+
iconName='rioglyph-send'
|
|
223
|
+
className='position-absolute top-10 right-10'
|
|
224
|
+
/>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
|
|
228
|
+
<Collapse open={showResponseCard} unmountOnExit>
|
|
229
|
+
<Card className='margin-top-20 padding-20 space-y-25'>
|
|
230
|
+
<div>
|
|
231
|
+
<div className='text-size-12 text-uppercase text-color-gray-darker margin-bottom-5'>
|
|
232
|
+
Request
|
|
233
|
+
</div>
|
|
234
|
+
<div className='text-color-darker line-height-25 white-space-pre-wrap text-italic'>
|
|
235
|
+
{submittedQuery}
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
<div>
|
|
239
|
+
<div className='text-size-12 text-uppercase text-color-gray-darker margin-bottom-10'>
|
|
240
|
+
Assistant
|
|
241
|
+
</div>
|
|
242
|
+
{isLoading && (
|
|
243
|
+
<AnimatedTextReveal
|
|
244
|
+
text={LOADING_PHRASES}
|
|
245
|
+
interval={2}
|
|
246
|
+
duration={0.35}
|
|
247
|
+
distance={8}
|
|
248
|
+
ease='easeOut'
|
|
249
|
+
startOnView={false}
|
|
250
|
+
shimmerDuration={2}
|
|
251
|
+
shimmerSpread={8}
|
|
252
|
+
textColor='info'
|
|
253
|
+
className='text-size-14 text-medium'
|
|
254
|
+
/>
|
|
255
|
+
)}
|
|
256
|
+
{!isLoading && (
|
|
257
|
+
<Fade show initial duration={0.2}>
|
|
258
|
+
<DummyResponseTable />
|
|
259
|
+
</Fade>
|
|
260
|
+
)}
|
|
261
|
+
</div>
|
|
262
|
+
</Card>
|
|
263
|
+
</Collapse>
|
|
264
|
+
</div>
|
|
265
|
+
);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export default AiAssistantTemplateExample;
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
#### HTML (html)
|
|
272
|
+
|
|
273
|
+
```html
|
|
274
|
+
<div class="padding-50 padding-0-xs">
|
|
275
|
+
<div class="collapse display-block width-100pct" style="opacity: 1; height: auto;">
|
|
276
|
+
<div class="callout callout-info rounded-extra-large shadow-default margin-bottom-20 position-relative padding-right-50" data-capture-callout="true">
|
|
277
|
+
<button type="button" class="btn btn-muted btn-sm btn-icon-only btn-component position-absolute top-10 right-10" tabindex="0">
|
|
278
|
+
<span class="rioglyph rioglyph-remove">
|
|
279
|
+
</span>
|
|
280
|
+
</button>
|
|
281
|
+
<div class="text-size-h3 text-bold text-color-info margin-bottom-15">Disclaimer</div>
|
|
282
|
+
<p class="line-height-30 margin-bottom-25">This feature is powered by Artificial Intelligence (AI) technology. The outputs generated are produced automatically based on the information provided by the user. The results may contain errors, inaccuracies, or misleading information. Users are therefore advised to independently verify any content or recommendations before relying on them for decision-making, professional, or operational purposes.</p>
|
|
283
|
+
<div class="margin-bottom-10 text-size-18 text-bold text-color-darker">Important:</div>
|
|
284
|
+
<ul class="margin-bottom-0 padding-left-25 space-y-10 line-height-30">
|
|
285
|
+
<li>Do not enter, upload, or share any personal identifiable information (PII), confidential data, or sensitive information through this tool.</li>
|
|
286
|
+
<li>The use of this tool is strictly limited to this service.</li>
|
|
287
|
+
<li>By using this tool, you acknowledge and agree that you are solely responsible for any content you provide and for any decisions made based on the tool's output.</li>
|
|
288
|
+
<li>The provider of this tool disclaims all liability for any direct or indirect damages resulting from the use of or reliance on AI-generated content.</li>
|
|
289
|
+
</ul>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
<div>
|
|
293
|
+
<div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Data query</div>
|
|
294
|
+
<div class="display-flex flex-wrap gap-5 align-items-end position-relative">
|
|
295
|
+
<div class="flex-1-1 min-width-300 form-group form-group-lg">
|
|
296
|
+
<div class="input-group">
|
|
297
|
+
<span class="input-group-addon margin-5">
|
|
298
|
+
<span class="rioglyph rioglyph-search">
|
|
299
|
+
</span>
|
|
300
|
+
</span>
|
|
301
|
+
<textarea id="chat-template-query" class="form-control padding-right-50 min-height-80 text-size-14 padding-y-15 padding-left-40" rows="2" placeholder="Enter your data query">Show me all unconfirmed transport orders from today</textarea>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
<button type="button" class="btn btn-muted btn-icon-only btn-component position-absolute top-10 right-10" tabindex="0">
|
|
305
|
+
<span class="rioglyph rioglyph-send">
|
|
306
|
+
</span>
|
|
307
|
+
</button>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
```
|