funda-ui 4.6.151 → 4.6.222

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/Chatbox/index.css CHANGED
@@ -1,24 +1,19 @@
1
1
  /*=================== Chatbox (Loading) =================*/
2
2
  .custom-chatbox-loader-container {
3
+ --custom-chatbox-loader-color: #b9caf7;
4
+ --custom-chatbox-loader-color2: #0d6efd;
3
5
  width: 130px;
4
6
  text-align: start;
5
7
  }
6
8
  .custom-chatbox-loader-container .custom-chatbox-loader {
7
9
  height: 4px;
8
10
  width: 100%;
9
- --c: no-repeat linear-gradient(var(--bs-primary) 0 0);
10
- background: var(--c), var(--c), #b9caf7;
11
+ --c: no-repeat linear-gradient(var(--custom-chatbox-loader-color2) 0 0);
12
+ background: var(--c), var(--c), var(--custom-chatbox-loader-color);
11
13
  background-size: 60% 100%;
12
- animation: cssAnim--loadermove 3s infinite;
14
+ animation: loader-move 3s infinite;
13
15
  }
14
-
15
- .dark-mode .custom-chatbox-loader-container .custom-chatbox-loader,
16
- [data-bs-theme=dark] .custom-chatbox-loader-container .custom-chatbox-loader {
17
- --c: no-repeat linear-gradient(var(--bs-primary) 0 0);
18
- background: var(--c), var(--c), #8692b5;
19
- }
20
-
21
- @keyframes cssAnim--loadermove {
16
+ @keyframes loader-move {
22
17
  0% {
23
18
  background-position: -150% 0, -150% 0;
24
19
  }
@@ -29,6 +24,29 @@
29
24
  background-position: 250% 0, 250% 0;
30
25
  }
31
26
  }
27
+
28
+ .custom-chatbox-mini-loader {
29
+ --custom-chatbox-miniloader-color: rgba(0,0,0,.5);
30
+ width: 15px;
31
+ height: 15px;
32
+ margin: 0.5rem;
33
+ margin-bottom: 0;
34
+ border: 3px dotted var(--custom-chatbox-miniloader-color);
35
+ border-radius: 50%;
36
+ display: inline-block;
37
+ position: relative;
38
+ box-sizing: border-box;
39
+ animation: mini-loader-spin 1s linear infinite;
40
+ }
41
+ @keyframes mini-loader-spin {
42
+ 0% {
43
+ transform: rotate(0deg);
44
+ }
45
+ 100% {
46
+ transform: rotate(360deg);
47
+ }
48
+ }
49
+
32
50
  /*=================== Chatbox (Core) =================*/
33
51
  .custom-chatbox-circle {
34
52
  --custom-chatbox-circle-color: #5A5EB9;
@@ -115,6 +133,8 @@
115
133
  --custom-chatbox-toolkit-btn-radius: 20px;
116
134
  --custom-chatbox-questions-bg: #f5f5f5;
117
135
  --custom-chatbox-questions-hover-bg: #e9e9e9;
136
+ --custom-chatbox-content-html-elem-border-color: #ddd;
137
+ --custom-chatbox-content-html-elem-bg: rgba(0,0,0,.05);
118
138
  min-width: var(--custom-chatbox-w);
119
139
  max-width: var(--custom-chatbox-w);
120
140
  margin: auto;
@@ -142,6 +162,8 @@
142
162
  padding: 0;
143
163
  font-size: 0.75rem;
144
164
  margin-bottom: 0.5rem;
165
+ background: var(--custom-chatbox-msg-bg);
166
+ padding: 0.5rem;
145
167
  }
146
168
  .custom-chatbox-container summary {
147
169
  cursor: pointer;
@@ -171,7 +193,7 @@
171
193
  font-size: 0.75rem;
172
194
  }
173
195
  .custom-chatbox-container .messages {
174
- height: calc(100% - 80px);
196
+ height: calc(100% - 110px);
175
197
  overflow-y: auto;
176
198
  margin-bottom: 10px;
177
199
  font-size: 13px;
@@ -216,6 +238,33 @@
216
238
  margin-top: 0.3rem;
217
239
  display: inline-block;
218
240
  text-align: start;
241
+ /* Custom HTML Styles */
242
+ }
243
+ .custom-chatbox-container .messages .qa-content .table-container {
244
+ overflow-x: auto;
245
+ margin-bottom: 0.5rem;
246
+ }
247
+ .custom-chatbox-container .messages .qa-content .table-container::-webkit-scrollbar {
248
+ height: 10px;
249
+ }
250
+ .custom-chatbox-container .messages .qa-content .table-container::-webkit-scrollbar-thumb {
251
+ background: rgba(0, 0, 0, 0.2);
252
+ }
253
+ .custom-chatbox-container .messages .qa-content .table-container table {
254
+ width: 100%;
255
+ border-collapse: collapse;
256
+ border-radius: 0.35rem;
257
+ }
258
+ .custom-chatbox-container .messages .qa-content .table-container table thead {
259
+ background: var(--custom-chatbox-content-html-elem-bg);
260
+ }
261
+ .custom-chatbox-container .messages .qa-content .table-container table thead tr {
262
+ white-space: nowrap;
263
+ }
264
+ .custom-chatbox-container .messages .qa-content .table-container table th, .custom-chatbox-container .messages .qa-content .table-container table td {
265
+ padding: 0.25rem;
266
+ text-align: left;
267
+ border: 1px solid var(--custom-chatbox-content-html-elem-border-color);
219
268
  }
220
269
  .custom-chatbox-container .messages .request {
221
270
  text-align: end;
@@ -232,6 +281,8 @@
232
281
  }
233
282
  .custom-chatbox-container .messages .reply .qa-content {
234
283
  width: var(--custom-chatbox-content-w);
284
+ background: transparent;
285
+ padding-top: 0;
235
286
  }
236
287
  .custom-chatbox-container .msg-dotted-loader-container {
237
288
  font-weight: normal;
@@ -373,6 +424,11 @@
373
424
  }
374
425
  .custom-chatbox-container .newchat-btn {
375
426
  text-align: center;
427
+ position: absolute;
428
+ bottom: 95px;
429
+ left: 50%;
430
+ transform: translateX(-50%);
431
+ z-index: 1;
376
432
  }
377
433
  .custom-chatbox-container .newchat-btn > button {
378
434
  padding: 3px 6px;
@@ -462,6 +518,7 @@
462
518
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
463
519
  margin-bottom: 10px;
464
520
  max-height: 300px;
521
+ min-width: 120px;
465
522
  overflow-y: auto;
466
523
  animation: dropupAnimation 0.2s ease;
467
524
  position: absolute;
@@ -489,7 +546,7 @@
489
546
  .custom-chatbox-container .toolkit-select-wrapper .toolkit-select-option.cancel {
490
547
  color: var(--custom-chatbox-gray-color);
491
548
  }
492
- .custom-chatbox-container .toolkit-select-wrapper .toolkit-select-option:hover {
549
+ .custom-chatbox-container .toolkit-select-wrapper .toolkit-select-option.selected:not(.cancel), .custom-chatbox-container .toolkit-select-wrapper .toolkit-select-option:hover {
493
550
  background-color: var(--custom-chatbox-toolkit-opt-active-color);
494
551
  }
495
552
  .custom-chatbox-container .default-questions-title {
@@ -18,6 +18,7 @@ export interface FloatingButton {
18
18
  value: string;
19
19
  onClick: string;
20
20
  isSelect?: boolean;
21
+ dynamicOptions?: boolean;
21
22
  [key: string]: any;
22
23
  }
23
24
  export interface FloatingButtonSelectOption {