@rufous/ui 0.3.12 → 0.3.15
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/main.cjs +1098 -479
- package/dist/main.css +356 -22
- package/dist/main.d.cts +108 -1
- package/dist/main.d.ts +108 -1
- package/dist/main.js +1174 -552
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -146,6 +146,7 @@
|
|
|
146
146
|
transition: all 0.2s;
|
|
147
147
|
border-radius: 8px;
|
|
148
148
|
flex-shrink: 0;
|
|
149
|
+
outline: none;
|
|
149
150
|
}
|
|
150
151
|
.btn-close:hover {
|
|
151
152
|
border-color: var(--primary-color);
|
|
@@ -458,7 +459,7 @@
|
|
|
458
459
|
.dg-table thead {
|
|
459
460
|
position: sticky;
|
|
460
461
|
top: 0;
|
|
461
|
-
z-index:
|
|
462
|
+
z-index: 20;
|
|
462
463
|
}
|
|
463
464
|
.dg-table thead tr {
|
|
464
465
|
background: var(--hover-color);
|
|
@@ -514,7 +515,8 @@
|
|
|
514
515
|
transition: opacity 0.15s;
|
|
515
516
|
flex-shrink: 0;
|
|
516
517
|
}
|
|
517
|
-
.dg-thead-cell:hover .dg-th-actions
|
|
518
|
+
.dg-thead-cell:hover .dg-th-actions,
|
|
519
|
+
.dg-th-actions--filtered {
|
|
518
520
|
opacity: 1;
|
|
519
521
|
}
|
|
520
522
|
.dg-th-menu-btn {
|
|
@@ -683,15 +685,77 @@
|
|
|
683
685
|
font-size: 0.82rem;
|
|
684
686
|
color: var(--text-secondary);
|
|
685
687
|
}
|
|
686
|
-
.dg-
|
|
687
|
-
|
|
688
|
+
.dg-fsel {
|
|
689
|
+
position: relative;
|
|
690
|
+
flex: 1;
|
|
691
|
+
min-width: 0;
|
|
692
|
+
}
|
|
693
|
+
.dg-fsel--sm {
|
|
694
|
+
flex: none;
|
|
695
|
+
width: 148px;
|
|
696
|
+
}
|
|
697
|
+
.dg-fsel--pagesize {
|
|
698
|
+
width: 72px;
|
|
699
|
+
}
|
|
700
|
+
.dg-fsel-trigger {
|
|
701
|
+
display: flex;
|
|
702
|
+
align-items: center;
|
|
703
|
+
justify-content: space-between;
|
|
704
|
+
width: 100%;
|
|
705
|
+
padding: 8px 10px 8px 12px;
|
|
688
706
|
border: 1px solid var(--border-color);
|
|
689
|
-
border-radius:
|
|
690
|
-
background: var(--
|
|
707
|
+
border-radius: 8px;
|
|
708
|
+
background: var(--background-color);
|
|
691
709
|
color: var(--text-color);
|
|
710
|
+
font-size: 0.85rem;
|
|
711
|
+
cursor: pointer;
|
|
712
|
+
gap: 6px;
|
|
713
|
+
text-align: left;
|
|
714
|
+
transition: border-color 0.2s;
|
|
715
|
+
white-space: nowrap;
|
|
716
|
+
overflow: hidden;
|
|
717
|
+
}
|
|
718
|
+
.dg-fsel--pagesize .dg-fsel-trigger {
|
|
719
|
+
background: var(--surface-color);
|
|
692
720
|
font-size: 0.82rem;
|
|
721
|
+
padding: 6px 8px 6px 10px;
|
|
722
|
+
}
|
|
723
|
+
.dg-fsel-trigger:hover,
|
|
724
|
+
.dg-fsel-trigger:focus {
|
|
725
|
+
border-color: var(--primary-color);
|
|
693
726
|
outline: none;
|
|
694
|
-
|
|
727
|
+
}
|
|
728
|
+
.dg-fsel-label {
|
|
729
|
+
flex: 1;
|
|
730
|
+
overflow: hidden;
|
|
731
|
+
text-overflow: ellipsis;
|
|
732
|
+
white-space: nowrap;
|
|
733
|
+
}
|
|
734
|
+
.dg-fsel-chevron {
|
|
735
|
+
flex-shrink: 0;
|
|
736
|
+
color: var(--text-secondary);
|
|
737
|
+
}
|
|
738
|
+
.dg-fsel-menu {
|
|
739
|
+
position: absolute;
|
|
740
|
+
top: calc(100% + 4px);
|
|
741
|
+
left: 0;
|
|
742
|
+
z-index: 400;
|
|
743
|
+
min-width: 100%;
|
|
744
|
+
background: var(--surface-color);
|
|
745
|
+
border: 1px solid var(--border-color);
|
|
746
|
+
border-radius: 10px;
|
|
747
|
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
748
|
+
padding: 6px;
|
|
749
|
+
max-height: 240px;
|
|
750
|
+
overflow-y: auto;
|
|
751
|
+
}
|
|
752
|
+
.dg-fsel-menu--top {
|
|
753
|
+
top: auto;
|
|
754
|
+
bottom: calc(100% + 4px);
|
|
755
|
+
}
|
|
756
|
+
.dg-menu-item--selected {
|
|
757
|
+
background: var(--hover-color);
|
|
758
|
+
color: var(--primary-color);
|
|
695
759
|
}
|
|
696
760
|
.dg-page-nav {
|
|
697
761
|
display: flex;
|
|
@@ -891,10 +955,9 @@
|
|
|
891
955
|
align-items: center;
|
|
892
956
|
gap: 8px;
|
|
893
957
|
}
|
|
894
|
-
.dg-filter-select,
|
|
895
958
|
.dg-filter-input {
|
|
896
959
|
flex: 1;
|
|
897
|
-
padding: 8px
|
|
960
|
+
padding: 8px 12px;
|
|
898
961
|
border: 1px solid var(--border-color);
|
|
899
962
|
border-radius: 8px;
|
|
900
963
|
background: var(--background-color);
|
|
@@ -902,20 +965,9 @@
|
|
|
902
965
|
font-size: 0.85rem;
|
|
903
966
|
outline: none;
|
|
904
967
|
}
|
|
905
|
-
.dg-filter-select {
|
|
906
|
-
appearance: none;
|
|
907
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
|
908
|
-
background-repeat: no-repeat;
|
|
909
|
-
background-position: right 10px center;
|
|
910
|
-
}
|
|
911
|
-
.dg-filter-select:focus,
|
|
912
968
|
.dg-filter-input:focus {
|
|
913
969
|
border-color: var(--primary-color);
|
|
914
970
|
}
|
|
915
|
-
.dg-filter-select-sm {
|
|
916
|
-
width: 140px;
|
|
917
|
-
flex: none;
|
|
918
|
-
}
|
|
919
971
|
.dg-filter-modal {
|
|
920
972
|
overflow: visible;
|
|
921
973
|
}
|
|
@@ -930,8 +982,10 @@
|
|
|
930
982
|
}
|
|
931
983
|
.dg-filter-datefield {
|
|
932
984
|
flex: 1;
|
|
985
|
+
min-width: 0;
|
|
933
986
|
}
|
|
934
987
|
.dg-filter-datefield .rf-date-field {
|
|
988
|
+
display: flex;
|
|
935
989
|
width: 100%;
|
|
936
990
|
--tf-border-color: var(--border-color);
|
|
937
991
|
--tf-hover-border-color: var(--text-secondary);
|
|
@@ -1099,6 +1153,284 @@ pre {
|
|
|
1099
1153
|
color: var(--text-color);
|
|
1100
1154
|
}
|
|
1101
1155
|
|
|
1156
|
+
/* lib/styles/tree-select.css */
|
|
1157
|
+
.rf-tree-select {
|
|
1158
|
+
}
|
|
1159
|
+
.rf-tree-select__trigger {
|
|
1160
|
+
cursor: pointer;
|
|
1161
|
+
user-select: none;
|
|
1162
|
+
position: relative;
|
|
1163
|
+
outline: none;
|
|
1164
|
+
}
|
|
1165
|
+
.rf-ts__display {
|
|
1166
|
+
display: flex;
|
|
1167
|
+
align-items: center;
|
|
1168
|
+
flex: 1;
|
|
1169
|
+
min-width: 0;
|
|
1170
|
+
padding: 16.5px 14px;
|
|
1171
|
+
font-size: 1rem;
|
|
1172
|
+
line-height: 1.4375em;
|
|
1173
|
+
color: var(--tf-text-color);
|
|
1174
|
+
white-space: nowrap;
|
|
1175
|
+
overflow: hidden;
|
|
1176
|
+
text-overflow: ellipsis;
|
|
1177
|
+
z-index: 2;
|
|
1178
|
+
box-sizing: border-box;
|
|
1179
|
+
}
|
|
1180
|
+
.rf-ts__display--placeholder {
|
|
1181
|
+
color: var(--tf-placeholder-color);
|
|
1182
|
+
}
|
|
1183
|
+
.rf-text-field--small .rf-ts__display {
|
|
1184
|
+
padding: 8.5px 14px;
|
|
1185
|
+
font-size: 0.875rem;
|
|
1186
|
+
}
|
|
1187
|
+
.rf-text-field--filled .rf-ts__display {
|
|
1188
|
+
padding: 25px 12px 8px;
|
|
1189
|
+
}
|
|
1190
|
+
.rf-text-field--small.rf-text-field--filled .rf-ts__display {
|
|
1191
|
+
padding: 21px 12px 4px;
|
|
1192
|
+
}
|
|
1193
|
+
.rf-text-field--standard .rf-ts__display {
|
|
1194
|
+
padding: 4px 0 5px;
|
|
1195
|
+
margin-top: 16px;
|
|
1196
|
+
}
|
|
1197
|
+
.rf-tree-select .rf-autocomplete__endgroup {
|
|
1198
|
+
z-index: 3;
|
|
1199
|
+
}
|
|
1200
|
+
.rf-ts__chips {
|
|
1201
|
+
display: flex;
|
|
1202
|
+
align-items: center;
|
|
1203
|
+
flex-wrap: wrap;
|
|
1204
|
+
gap: 4px;
|
|
1205
|
+
flex: 1;
|
|
1206
|
+
padding: 6px 14px;
|
|
1207
|
+
min-height: 56px;
|
|
1208
|
+
box-sizing: border-box;
|
|
1209
|
+
z-index: 2;
|
|
1210
|
+
}
|
|
1211
|
+
.rf-text-field--small .rf-ts__chips {
|
|
1212
|
+
min-height: 40px;
|
|
1213
|
+
padding: 3px 14px;
|
|
1214
|
+
}
|
|
1215
|
+
.rf-text-field--filled .rf-ts__chips {
|
|
1216
|
+
padding-top: 20px;
|
|
1217
|
+
padding-left: 12px;
|
|
1218
|
+
padding-right: 12px;
|
|
1219
|
+
}
|
|
1220
|
+
.rf-ts__chip {
|
|
1221
|
+
display: inline-flex;
|
|
1222
|
+
align-items: center;
|
|
1223
|
+
gap: 2px;
|
|
1224
|
+
background-color: var(--hover-color);
|
|
1225
|
+
border: 1px solid var(--border-color);
|
|
1226
|
+
border-radius: 16px;
|
|
1227
|
+
padding: 2px 4px 2px 10px;
|
|
1228
|
+
font-size: 0.8125rem;
|
|
1229
|
+
font-weight: 500;
|
|
1230
|
+
color: var(--text-color);
|
|
1231
|
+
max-width: 200px;
|
|
1232
|
+
white-space: nowrap;
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
text-overflow: ellipsis;
|
|
1235
|
+
line-height: 1.4;
|
|
1236
|
+
flex-shrink: 0;
|
|
1237
|
+
}
|
|
1238
|
+
.rf-ts__chip-delete {
|
|
1239
|
+
background: none;
|
|
1240
|
+
border: none;
|
|
1241
|
+
padding: 1px;
|
|
1242
|
+
cursor: pointer;
|
|
1243
|
+
display: flex;
|
|
1244
|
+
align-items: center;
|
|
1245
|
+
justify-content: center;
|
|
1246
|
+
color: var(--text-secondary);
|
|
1247
|
+
border-radius: 50%;
|
|
1248
|
+
transition: background-color 0.12s, color 0.12s;
|
|
1249
|
+
outline: none;
|
|
1250
|
+
flex-shrink: 0;
|
|
1251
|
+
}
|
|
1252
|
+
.rf-ts__chip-delete:hover {
|
|
1253
|
+
background-color: var(--hover-color);
|
|
1254
|
+
color: var(--text-color);
|
|
1255
|
+
}
|
|
1256
|
+
.rf-ts__placeholder {
|
|
1257
|
+
font-size: 1rem;
|
|
1258
|
+
color: var(--tf-placeholder-color);
|
|
1259
|
+
line-height: 1.4375em;
|
|
1260
|
+
}
|
|
1261
|
+
.rf-tree-select__popup {
|
|
1262
|
+
z-index: 2100;
|
|
1263
|
+
background: var(--surface-color, #ffffff);
|
|
1264
|
+
border-radius: 10px;
|
|
1265
|
+
box-shadow:
|
|
1266
|
+
0 4px 6px rgba(0, 0, 0, 0.06),
|
|
1267
|
+
0 10px 28px rgba(0, 0, 0, 0.13),
|
|
1268
|
+
0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
1269
|
+
display: flex;
|
|
1270
|
+
flex-direction: column;
|
|
1271
|
+
max-height: 320px;
|
|
1272
|
+
overflow: hidden;
|
|
1273
|
+
animation: rf-ts-appear 0.12s cubic-bezier(0.2, 0, 0, 1.15);
|
|
1274
|
+
transform-origin: top center;
|
|
1275
|
+
}
|
|
1276
|
+
@keyframes rf-ts-appear {
|
|
1277
|
+
from {
|
|
1278
|
+
opacity: 0;
|
|
1279
|
+
transform: scale(0.96) translateY(-4px);
|
|
1280
|
+
}
|
|
1281
|
+
to {
|
|
1282
|
+
opacity: 1;
|
|
1283
|
+
transform: scale(1) translateY(0);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
.rf-tree-select__filter {
|
|
1287
|
+
display: flex;
|
|
1288
|
+
align-items: center;
|
|
1289
|
+
gap: 6px;
|
|
1290
|
+
padding: 8px 10px;
|
|
1291
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
1292
|
+
flex-shrink: 0;
|
|
1293
|
+
}
|
|
1294
|
+
.rf-tree-select__filter-icon {
|
|
1295
|
+
color: rgba(0, 0, 0, 0.38);
|
|
1296
|
+
flex-shrink: 0;
|
|
1297
|
+
}
|
|
1298
|
+
.rf-tree-select__filter-input {
|
|
1299
|
+
flex: 1;
|
|
1300
|
+
border: none;
|
|
1301
|
+
outline: none;
|
|
1302
|
+
font: inherit;
|
|
1303
|
+
font-size: 0.875rem;
|
|
1304
|
+
color: var(--tf-text-color, rgba(0, 0, 0, 0.87));
|
|
1305
|
+
background: transparent;
|
|
1306
|
+
}
|
|
1307
|
+
.rf-tree-select__tree {
|
|
1308
|
+
overflow-y: auto;
|
|
1309
|
+
flex: 1;
|
|
1310
|
+
padding: 6px 0;
|
|
1311
|
+
scrollbar-width: thin;
|
|
1312
|
+
scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
|
|
1313
|
+
}
|
|
1314
|
+
.rf-tree-select__tree::-webkit-scrollbar {
|
|
1315
|
+
width: 5px;
|
|
1316
|
+
}
|
|
1317
|
+
.rf-tree-select__tree::-webkit-scrollbar-thumb {
|
|
1318
|
+
background: rgba(0, 0, 0, 0.15);
|
|
1319
|
+
border-radius: 3px;
|
|
1320
|
+
}
|
|
1321
|
+
.rf-tree-select__empty {
|
|
1322
|
+
padding: 20px 16px;
|
|
1323
|
+
font-size: 0.875rem;
|
|
1324
|
+
color: rgba(0, 0, 0, 0.45);
|
|
1325
|
+
text-align: center;
|
|
1326
|
+
}
|
|
1327
|
+
.rf-tsn__row {
|
|
1328
|
+
display: flex;
|
|
1329
|
+
align-items: center;
|
|
1330
|
+
gap: 6px;
|
|
1331
|
+
padding-right: 12px;
|
|
1332
|
+
padding-top: 7px;
|
|
1333
|
+
padding-bottom: 7px;
|
|
1334
|
+
cursor: pointer;
|
|
1335
|
+
border-radius: 6px;
|
|
1336
|
+
margin: 1px 6px;
|
|
1337
|
+
transition: background 0.12s;
|
|
1338
|
+
min-height: 36px;
|
|
1339
|
+
box-sizing: border-box;
|
|
1340
|
+
}
|
|
1341
|
+
.rf-tsn__row:hover {
|
|
1342
|
+
background: rgba(241, 91, 36, 0.06);
|
|
1343
|
+
}
|
|
1344
|
+
.rf-tsn__row--active .rf-tsn__label {
|
|
1345
|
+
color: rgba(0, 0, 0, 0.87);
|
|
1346
|
+
font-weight: 500;
|
|
1347
|
+
}
|
|
1348
|
+
.rf-tsn__expand {
|
|
1349
|
+
background: none;
|
|
1350
|
+
border: none;
|
|
1351
|
+
padding: 2px;
|
|
1352
|
+
cursor: pointer;
|
|
1353
|
+
color: rgba(0, 0, 0, 0.45);
|
|
1354
|
+
display: flex;
|
|
1355
|
+
align-items: center;
|
|
1356
|
+
border-radius: 4px;
|
|
1357
|
+
transition: background 0.12s, color 0.12s;
|
|
1358
|
+
flex-shrink: 0;
|
|
1359
|
+
line-height: 0;
|
|
1360
|
+
}
|
|
1361
|
+
.rf-tsn__expand:hover {
|
|
1362
|
+
background: rgba(0, 0, 0, 0.06);
|
|
1363
|
+
color: rgba(0, 0, 0, 0.87);
|
|
1364
|
+
}
|
|
1365
|
+
.rf-tsn__expand-ph {
|
|
1366
|
+
width: 18px;
|
|
1367
|
+
height: 18px;
|
|
1368
|
+
flex-shrink: 0;
|
|
1369
|
+
display: inline-block;
|
|
1370
|
+
}
|
|
1371
|
+
.rf-tsn__cb {
|
|
1372
|
+
width: 16px;
|
|
1373
|
+
height: 16px;
|
|
1374
|
+
border: 2px solid var(--border-color);
|
|
1375
|
+
border-radius: 4px;
|
|
1376
|
+
display: flex;
|
|
1377
|
+
align-items: center;
|
|
1378
|
+
justify-content: center;
|
|
1379
|
+
flex-shrink: 0;
|
|
1380
|
+
transition: border-color 0.15s, background 0.15s;
|
|
1381
|
+
background: var(--surface-color);
|
|
1382
|
+
color: transparent;
|
|
1383
|
+
}
|
|
1384
|
+
.rf-tsn__cb--checked {
|
|
1385
|
+
background: var(--primary-color);
|
|
1386
|
+
border-color: var(--primary-color);
|
|
1387
|
+
color: #fff;
|
|
1388
|
+
}
|
|
1389
|
+
.rf-tsn__cb--partial {
|
|
1390
|
+
border-color: var(--primary-color);
|
|
1391
|
+
}
|
|
1392
|
+
.rf-tsn__cb-dash {
|
|
1393
|
+
display: block;
|
|
1394
|
+
width: 8px;
|
|
1395
|
+
height: 2px;
|
|
1396
|
+
background: var(--primary-color);
|
|
1397
|
+
border-radius: 1px;
|
|
1398
|
+
}
|
|
1399
|
+
.rf-tsn__radio {
|
|
1400
|
+
width: 16px;
|
|
1401
|
+
height: 16px;
|
|
1402
|
+
border: 2px solid var(--border-color);
|
|
1403
|
+
border-radius: 50%;
|
|
1404
|
+
flex-shrink: 0;
|
|
1405
|
+
transition: border-color 0.15s;
|
|
1406
|
+
position: relative;
|
|
1407
|
+
}
|
|
1408
|
+
.rf-tsn__radio--checked {
|
|
1409
|
+
border-color: var(--primary-color);
|
|
1410
|
+
}
|
|
1411
|
+
.rf-tsn__radio--checked::after {
|
|
1412
|
+
content: "";
|
|
1413
|
+
position: absolute;
|
|
1414
|
+
top: 50%;
|
|
1415
|
+
left: 50%;
|
|
1416
|
+
transform: translate(-50%, -50%);
|
|
1417
|
+
width: 8px;
|
|
1418
|
+
height: 8px;
|
|
1419
|
+
background: var(--primary-color);
|
|
1420
|
+
border-radius: 50%;
|
|
1421
|
+
}
|
|
1422
|
+
.rf-tsn__label {
|
|
1423
|
+
font-size: 0.875rem;
|
|
1424
|
+
color: rgba(0, 0, 0, 0.75);
|
|
1425
|
+
flex: 1;
|
|
1426
|
+
min-width: 0;
|
|
1427
|
+
overflow: hidden;
|
|
1428
|
+
text-overflow: ellipsis;
|
|
1429
|
+
white-space: nowrap;
|
|
1430
|
+
line-height: 1.4;
|
|
1431
|
+
transition: color 0.12s;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1102
1434
|
/* lib/styles/address-lookup.css */
|
|
1103
1435
|
.address-lookup-container {
|
|
1104
1436
|
width: 100%;
|
|
@@ -5997,6 +6329,7 @@ pre {
|
|
|
5997
6329
|
justify-content: center;
|
|
5998
6330
|
letter-spacing: 0.5px;
|
|
5999
6331
|
transition: all 0.2s;
|
|
6332
|
+
outline: none;
|
|
6000
6333
|
}
|
|
6001
6334
|
.cancel-btn:hover,
|
|
6002
6335
|
.btn-cancel:hover {
|
|
@@ -6019,6 +6352,7 @@ pre {
|
|
|
6019
6352
|
justify-content: center;
|
|
6020
6353
|
letter-spacing: 0.5px;
|
|
6021
6354
|
transition: all 0.2s ease;
|
|
6355
|
+
outline: none;
|
|
6022
6356
|
}
|
|
6023
6357
|
.submit-btn:hover:not(:disabled),
|
|
6024
6358
|
.btn-submit:hover:not(:disabled),
|
|
@@ -6370,11 +6704,11 @@ pre {
|
|
|
6370
6704
|
z-index: 2;
|
|
6371
6705
|
}
|
|
6372
6706
|
.rf-text-field__adornment--start {
|
|
6373
|
-
margin-left:
|
|
6707
|
+
margin-left: 8px;
|
|
6374
6708
|
margin-right: -6px;
|
|
6375
6709
|
}
|
|
6376
6710
|
.rf-text-field__adornment--end {
|
|
6377
|
-
margin-right:
|
|
6711
|
+
margin-right: 8px;
|
|
6378
6712
|
margin-left: -6px;
|
|
6379
6713
|
}
|
|
6380
6714
|
.rf-text-field--standard .rf-text-field__adornment--start {
|
package/dist/main.d.cts
CHANGED
|
@@ -1757,6 +1757,113 @@ interface PhoneFieldProps {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
declare const PhoneField: React__default.ForwardRefExoticComponent<PhoneFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1759
1759
|
|
|
1760
|
+
interface TreeNode {
|
|
1761
|
+
id: string | number;
|
|
1762
|
+
label: string;
|
|
1763
|
+
name?: string;
|
|
1764
|
+
children?: TreeNode[];
|
|
1765
|
+
}
|
|
1766
|
+
type TreeSelectMultiValue = Record<string, boolean>;
|
|
1767
|
+
type TreeSelectSingleValue = string | number | null;
|
|
1768
|
+
type TreeSelectValue = TreeSelectSingleValue | TreeSelectMultiValue;
|
|
1769
|
+
interface TreeSelectProps {
|
|
1770
|
+
/** Tree data — each node may have nested children */
|
|
1771
|
+
options: TreeNode[];
|
|
1772
|
+
/** Controlled value. Single mode: id or null. Multiple mode: Record<id, boolean>. */
|
|
1773
|
+
value?: TreeSelectValue;
|
|
1774
|
+
/** Called when selection changes */
|
|
1775
|
+
onChange?: (e: {
|
|
1776
|
+
value: TreeSelectValue;
|
|
1777
|
+
}) => void;
|
|
1778
|
+
/** Called when a node is selected */
|
|
1779
|
+
onNodeSelect?: (e: {
|
|
1780
|
+
node: TreeNode;
|
|
1781
|
+
}) => void;
|
|
1782
|
+
/** Called when a node is unselected */
|
|
1783
|
+
onNodeUnselect?: (e: {
|
|
1784
|
+
node: TreeNode;
|
|
1785
|
+
}) => void;
|
|
1786
|
+
/** 'single' (default) or 'multiple' (checkbox tree) */
|
|
1787
|
+
selectionMode?: 'single' | 'multiple';
|
|
1788
|
+
/** Placeholder text shown when nothing is selected */
|
|
1789
|
+
placeholder?: string;
|
|
1790
|
+
/** Show a search filter input at the top of the dropdown */
|
|
1791
|
+
filter?: boolean;
|
|
1792
|
+
/** Auto-focus the filter input when the dropdown opens */
|
|
1793
|
+
filterInputAutoFocus?: boolean;
|
|
1794
|
+
/** Clear filter text when the dropdown closes */
|
|
1795
|
+
resetFilterOnHide?: boolean;
|
|
1796
|
+
/** PrimeReact compat — accepted but not used (checkboxes handle multi-select) */
|
|
1797
|
+
metaKeySelection?: boolean;
|
|
1798
|
+
/** Disable the whole control */
|
|
1799
|
+
disabled?: boolean;
|
|
1800
|
+
/** Floating label */
|
|
1801
|
+
label?: string;
|
|
1802
|
+
/** Visual variant (mirrors TextField) */
|
|
1803
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
1804
|
+
/** Size */
|
|
1805
|
+
size?: 'small' | 'medium';
|
|
1806
|
+
/** Error state */
|
|
1807
|
+
error?: boolean;
|
|
1808
|
+
/** Helper / error text below the field */
|
|
1809
|
+
helperText?: ReactNode;
|
|
1810
|
+
/** Stretch to full container width */
|
|
1811
|
+
fullWidth?: boolean;
|
|
1812
|
+
/** Show a clear button when a value is selected */
|
|
1813
|
+
clearable?: boolean;
|
|
1814
|
+
/** Mark the field as required — appends an asterisk to the label */
|
|
1815
|
+
required?: boolean;
|
|
1816
|
+
style?: CSSProperties;
|
|
1817
|
+
className?: string;
|
|
1818
|
+
sx?: SxProp;
|
|
1819
|
+
}
|
|
1820
|
+
declare function TreeSelect({ options, value, onChange, onNodeSelect, onNodeUnselect, selectionMode, placeholder, filter, filterInputAutoFocus, resetFilterOnHide, metaKeySelection: _metaKeySelection, disabled, label, variant, size, error, helperText, fullWidth, clearable, required, style, className, sx, }: TreeSelectProps): React__default.JSX.Element;
|
|
1821
|
+
|
|
1822
|
+
interface UserOption {
|
|
1823
|
+
id?: string | number;
|
|
1824
|
+
_id?: string | number;
|
|
1825
|
+
userFirstName?: string;
|
|
1826
|
+
userLastName?: string;
|
|
1827
|
+
emailId?: string;
|
|
1828
|
+
}
|
|
1829
|
+
interface UserSelectionFieldProps {
|
|
1830
|
+
/** Selected user (single) or array of users (multiple) */
|
|
1831
|
+
value?: UserOption | UserOption[] | null;
|
|
1832
|
+
/** Called when selection changes */
|
|
1833
|
+
onChange: (value: UserOption | UserOption[] | null) => void;
|
|
1834
|
+
/** Available user options */
|
|
1835
|
+
options?: UserOption[];
|
|
1836
|
+
/** Show a loading spinner */
|
|
1837
|
+
loading?: boolean;
|
|
1838
|
+
/**
|
|
1839
|
+
* Called when the search text changes and no local match is found —
|
|
1840
|
+
* use this to trigger an API search.
|
|
1841
|
+
*/
|
|
1842
|
+
onSearchChange?: (value: string) => void;
|
|
1843
|
+
/** Label / placeholder text */
|
|
1844
|
+
label?: string;
|
|
1845
|
+
/** Allow selecting multiple users */
|
|
1846
|
+
multiple?: boolean;
|
|
1847
|
+
/** In multiple mode, cap how many tag chips are shown before "+N more" */
|
|
1848
|
+
limitTags?: number;
|
|
1849
|
+
size?: 'small' | 'medium';
|
|
1850
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
1851
|
+
disabled?: boolean;
|
|
1852
|
+
error?: boolean;
|
|
1853
|
+
helperText?: ReactNode;
|
|
1854
|
+
fullWidth?: boolean;
|
|
1855
|
+
required?: boolean;
|
|
1856
|
+
/**
|
|
1857
|
+
* Override the default name/email filter. Receives (options, inputValue).
|
|
1858
|
+
* Pass `(opts) => opts` to skip internal filtering when options are pre-filtered externally.
|
|
1859
|
+
*/
|
|
1860
|
+
filterOptions?: (options: UserOption[], inputValue: string) => UserOption[];
|
|
1861
|
+
className?: string;
|
|
1862
|
+
style?: CSSProperties;
|
|
1863
|
+
sx?: SxProp;
|
|
1864
|
+
}
|
|
1865
|
+
declare function UserSelectionField({ value, onChange, options, loading, onSearchChange, label, multiple, limitTags, size, variant, disabled, error, helperText, fullWidth, required, filterOptions: filterOptionsProp, className, style, sx, }: UserSelectionFieldProps): React__default.JSX.Element;
|
|
1866
|
+
|
|
1760
1867
|
type ToolbarButton = 'undo' | 'redo' | 'ai' | 'paragraph' | 'fontsize' | 'font' | 'color' | 'bold' | 'italic' | 'strike' | 'link' | 'lineheight' | 'ul' | 'ol' | 'align' | 'indent' | 'outdent' | 'table' | 'image' | 'video' | 'cut' | 'copy' | 'paste' | 'specialchars' | 'code' | 'fullscreen' | 'tts' | 'stt' | 'translate' | 'todo' | '|';
|
|
1761
1868
|
type EditorVariant = 'default' | 'basic';
|
|
1762
1869
|
interface RufousTextEditorProps {
|
|
@@ -1843,4 +1950,4 @@ interface MentionItemData {
|
|
|
1843
1950
|
shortName?: string;
|
|
1844
1951
|
}
|
|
1845
1952
|
|
|
1846
|
-
export { APP_THEMES, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, type Action, ActivateUserIcon, AddButton, AddressLookup, ArchivedIcon, AssignGroupIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BaseDialog, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CameraIcon, CancelButton, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, CircularProgressIcon, type CircularProgressIconProps, CloseIcon, Collapse, type CollapseProps, type Column, CopyIcon, DataGrid, type DataGridProps, DateField, type DateFieldProps, type DateFormatString, DateRangeField, type DateRangeFieldProps, type DateRangeValue, DifficultyAllIcon, DifficultyEasyIcon, DifficultyHardIcon, DifficultyMediumIcon, Divider, type DividerProps, DollarIcon, DownloadIcon, DownloadPdfIcon, Drawer, type DrawerProps, EditChatIcon, EditIcon, EngagementIcon, Fade, type FadeProps, FunctionIcon, Grid, type GridProps, Grow, type GrowProps, HelpOutlinedIcon, HierarchyIcon, IconButton, type IconButtonProps, ImageField, type ImageFieldProps, InactiveGroupIcon, IndustryIcon, InvoiceIcon, Link, type LinkProps, List, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, LocationPinIcon, LogsIcon, Menu, MenuDivider, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MinExperienceIcon, NineDotMenuIcon, NotificationIcon, type NumberVariant, Paper, type PaperProps, PhoneField, type PhoneFieldProps, Popover, type PopoverProps, Popper, type PopperProps, ProjectIcon, QualificationsIcon, QuestionStatusAllIcon, QuestionStatusPrivateIcon, QuestionStatusPublicIcon, QuestionTypeAllIcon, QuestionTypeCodingIcon, QuestionTypeDescriptiveIcon, QuestionTypeMultipleIcon, QuestionTypeSingleIcon, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, RefreshIcon, ResendInviteIcon, RolesIcon, RufousAiIcon, RufousBirdIcon, RufousLauncherIcon, RufousLogoLoader, type RufousLogoLoaderProps, RufousTextContent, type RufousTextContentProps, RufousTextEditor, type MentionItemData as RufousTextEditorMentionItem, type RufousTextEditorProps, RufousThemeProvider, Select, type SelectProps, SidebarIcon, Skeleton, type SkeletonProps, Slide, type SlideProps, Slider, type SliderProps, Snackbar, type SnackbarProps, SoftSkillsIcon, type SortDirection, Stack, type StackProps, StandardButton, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, SubmitButton, SubscribeIcon, SuspendUserIcon, Switch, type SwitchProps, type SxProp, Tab, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, TechnicalSkillsIcon, TextField, type TextFieldProps, TickIcon, TimerIcon, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, TrashIcon, Typography, type TypographyProps, UnArchivedIcon, UnsubscribeIcon, UploadIcon, UserAssignIcon, ViewIcon, WorkItemIcon, Zoom, type ZoomProps, transformLegacyTodos, useRufousTheme };
|
|
1953
|
+
export { APP_THEMES, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, type Action, ActivateUserIcon, AddButton, AddressLookup, ArchivedIcon, AssignGroupIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BaseDialog, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CameraIcon, CancelButton, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, CircularProgressIcon, type CircularProgressIconProps, CloseIcon, Collapse, type CollapseProps, type Column, CopyIcon, DataGrid, type DataGridProps, DateField, type DateFieldProps, type DateFormatString, DateRangeField, type DateRangeFieldProps, type DateRangeValue, DifficultyAllIcon, DifficultyEasyIcon, DifficultyHardIcon, DifficultyMediumIcon, Divider, type DividerProps, DollarIcon, DownloadIcon, DownloadPdfIcon, Drawer, type DrawerProps, EditChatIcon, EditIcon, EngagementIcon, Fade, type FadeProps, FunctionIcon, Grid, type GridProps, Grow, type GrowProps, HelpOutlinedIcon, HierarchyIcon, IconButton, type IconButtonProps, ImageField, type ImageFieldProps, InactiveGroupIcon, IndustryIcon, InvoiceIcon, Link, type LinkProps, List, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, LocationPinIcon, LogsIcon, Menu, MenuDivider, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MinExperienceIcon, NineDotMenuIcon, NotificationIcon, type NumberVariant, Paper, type PaperProps, PhoneField, type PhoneFieldProps, Popover, type PopoverProps, Popper, type PopperProps, ProjectIcon, QualificationsIcon, QuestionStatusAllIcon, QuestionStatusPrivateIcon, QuestionStatusPublicIcon, QuestionTypeAllIcon, QuestionTypeCodingIcon, QuestionTypeDescriptiveIcon, QuestionTypeMultipleIcon, QuestionTypeSingleIcon, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, RefreshIcon, ResendInviteIcon, RolesIcon, RufousAiIcon, RufousBirdIcon, RufousLauncherIcon, RufousLogoLoader, type RufousLogoLoaderProps, RufousTextContent, type RufousTextContentProps, RufousTextEditor, type MentionItemData as RufousTextEditorMentionItem, type RufousTextEditorProps, RufousThemeProvider, Select, type SelectProps, SidebarIcon, Skeleton, type SkeletonProps, Slide, type SlideProps, Slider, type SliderProps, Snackbar, type SnackbarProps, SoftSkillsIcon, type SortDirection, Stack, type StackProps, StandardButton, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, SubmitButton, SubscribeIcon, SuspendUserIcon, Switch, type SwitchProps, type SxProp, Tab, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, TechnicalSkillsIcon, TextField, type TextFieldProps, TickIcon, TimerIcon, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, TrashIcon, type TreeNode, TreeSelect, type TreeSelectMultiValue, type TreeSelectProps, type TreeSelectValue, Typography, type TypographyProps, UnArchivedIcon, UnsubscribeIcon, UploadIcon, UserAssignIcon, type UserOption, UserSelectionField, type UserSelectionFieldProps, ViewIcon, WorkItemIcon, Zoom, type ZoomProps, transformLegacyTodos, useRufousTheme };
|