@universe-platform/ui 0.1.0-beta.79 → 0.1.0-beta.80
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/globals.css +119 -17
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +2190 -1415
- package/dist/index.mjs +2080 -1309
- package/package.json +1 -1
package/dist/globals.css
CHANGED
|
@@ -363,6 +363,9 @@
|
|
|
363
363
|
.top-0 {
|
|
364
364
|
top: 0;
|
|
365
365
|
}
|
|
366
|
+
.top-1\.5 {
|
|
367
|
+
top: calc(var(--spacing) * 1.5);
|
|
368
|
+
}
|
|
366
369
|
.top-1\/2 {
|
|
367
370
|
top: calc(1 / 2 * 100%);
|
|
368
371
|
}
|
|
@@ -447,6 +450,9 @@
|
|
|
447
450
|
.z-\[99999\] {
|
|
448
451
|
z-index: 99999;
|
|
449
452
|
}
|
|
453
|
+
.col-span-2 {
|
|
454
|
+
grid-column: span 2 / span 2;
|
|
455
|
+
}
|
|
450
456
|
.col-span-3 {
|
|
451
457
|
grid-column: span 3 / span 3;
|
|
452
458
|
}
|
|
@@ -486,6 +492,9 @@
|
|
|
486
492
|
.my-1 {
|
|
487
493
|
margin-block: var(--spacing);
|
|
488
494
|
}
|
|
495
|
+
.ms-3 {
|
|
496
|
+
margin-inline-start: calc(var(--spacing) * 3);
|
|
497
|
+
}
|
|
489
498
|
.ms-auto {
|
|
490
499
|
margin-inline-start: auto;
|
|
491
500
|
}
|
|
@@ -501,6 +510,9 @@
|
|
|
501
510
|
.mt-2 {
|
|
502
511
|
margin-top: calc(var(--spacing) * 2);
|
|
503
512
|
}
|
|
513
|
+
.mt-3 {
|
|
514
|
+
margin-top: calc(var(--spacing) * 3);
|
|
515
|
+
}
|
|
504
516
|
.mt-4 {
|
|
505
517
|
margin-top: calc(var(--spacing) * 4);
|
|
506
518
|
}
|
|
@@ -654,9 +666,6 @@
|
|
|
654
666
|
.h-\[18px\] {
|
|
655
667
|
height: 18px;
|
|
656
668
|
}
|
|
657
|
-
.h-\[550px\] {
|
|
658
|
-
height: 550px;
|
|
659
|
-
}
|
|
660
669
|
.h-\[calc\(100vh-140px\)\] {
|
|
661
670
|
height: calc(100vh - 140px);
|
|
662
671
|
}
|
|
@@ -699,6 +708,9 @@
|
|
|
699
708
|
.min-h-0 {
|
|
700
709
|
min-height: 0;
|
|
701
710
|
}
|
|
711
|
+
.min-h-9 {
|
|
712
|
+
min-height: calc(var(--spacing) * 9);
|
|
713
|
+
}
|
|
702
714
|
.min-h-\[1\.75rem\] {
|
|
703
715
|
min-height: 1.75rem;
|
|
704
716
|
}
|
|
@@ -726,6 +738,9 @@
|
|
|
726
738
|
.min-h-\[320px\] {
|
|
727
739
|
min-height: 320px;
|
|
728
740
|
}
|
|
741
|
+
.min-h-\[550px\] {
|
|
742
|
+
min-height: 550px;
|
|
743
|
+
}
|
|
729
744
|
.min-h-\[600px\] {
|
|
730
745
|
min-height: 600px;
|
|
731
746
|
}
|
|
@@ -873,6 +888,9 @@
|
|
|
873
888
|
.min-w-\[50px\] {
|
|
874
889
|
min-width: 50px;
|
|
875
890
|
}
|
|
891
|
+
.min-w-\[140px\] {
|
|
892
|
+
min-width: 140px;
|
|
893
|
+
}
|
|
876
894
|
.min-w-\[200px\] {
|
|
877
895
|
min-width: 200px;
|
|
878
896
|
}
|
|
@@ -888,9 +906,6 @@
|
|
|
888
906
|
.shrink-0 {
|
|
889
907
|
flex-shrink: 0;
|
|
890
908
|
}
|
|
891
|
-
.basis-0 {
|
|
892
|
-
flex-basis: 0;
|
|
893
|
-
}
|
|
894
909
|
.table-auto {
|
|
895
910
|
table-layout: auto;
|
|
896
911
|
}
|
|
@@ -1121,6 +1136,9 @@
|
|
|
1121
1136
|
.gap-x-3 {
|
|
1122
1137
|
column-gap: calc(var(--spacing) * 3);
|
|
1123
1138
|
}
|
|
1139
|
+
.gap-x-4 {
|
|
1140
|
+
column-gap: calc(var(--spacing) * 4);
|
|
1141
|
+
}
|
|
1124
1142
|
.gap-x-6 {
|
|
1125
1143
|
column-gap: calc(var(--spacing) * 6);
|
|
1126
1144
|
}
|
|
@@ -1153,6 +1171,9 @@
|
|
|
1153
1171
|
border-color: var(--color-slate-100);
|
|
1154
1172
|
}
|
|
1155
1173
|
}
|
|
1174
|
+
.self-center {
|
|
1175
|
+
align-self: center;
|
|
1176
|
+
}
|
|
1156
1177
|
.self-end {
|
|
1157
1178
|
align-self: flex-end;
|
|
1158
1179
|
}
|
|
@@ -1431,12 +1452,6 @@
|
|
|
1431
1452
|
.border-teal-200 {
|
|
1432
1453
|
border-color: var(--color-teal-200);
|
|
1433
1454
|
}
|
|
1434
|
-
.border-teal-200\/60 {
|
|
1435
|
-
border-color: color-mix(in srgb, oklch(91% 0.096 180.426) 60%, transparent);
|
|
1436
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1437
|
-
border-color: color-mix(in oklab, var(--color-teal-200) 60%, transparent);
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
1455
|
.border-teal-500 {
|
|
1441
1456
|
border-color: var(--color-teal-500);
|
|
1442
1457
|
}
|
|
@@ -1746,6 +1761,12 @@
|
|
|
1746
1761
|
.bg-white {
|
|
1747
1762
|
background-color: var(--color-white);
|
|
1748
1763
|
}
|
|
1764
|
+
.bg-white\/25 {
|
|
1765
|
+
background-color: color-mix(in srgb, #fff 25%, transparent);
|
|
1766
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1767
|
+
background-color: color-mix(in oklab, var(--color-white) 25%, transparent);
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1749
1770
|
.bg-white\/60 {
|
|
1750
1771
|
background-color: color-mix(in srgb, #fff 60%, transparent);
|
|
1751
1772
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1920,6 +1941,9 @@
|
|
|
1920
1941
|
.pr-7 {
|
|
1921
1942
|
padding-right: calc(var(--spacing) * 7);
|
|
1922
1943
|
}
|
|
1944
|
+
.pr-8 {
|
|
1945
|
+
padding-right: calc(var(--spacing) * 8);
|
|
1946
|
+
}
|
|
1923
1947
|
.pr-9 {
|
|
1924
1948
|
padding-right: calc(var(--spacing) * 9);
|
|
1925
1949
|
}
|
|
@@ -1944,9 +1968,6 @@
|
|
|
1944
1968
|
.pb-3 {
|
|
1945
1969
|
padding-bottom: calc(var(--spacing) * 3);
|
|
1946
1970
|
}
|
|
1947
|
-
.pb-24 {
|
|
1948
|
-
padding-bottom: calc(var(--spacing) * 24);
|
|
1949
|
-
}
|
|
1950
1971
|
.pl-1 {
|
|
1951
1972
|
padding-left: var(--spacing);
|
|
1952
1973
|
}
|
|
@@ -2699,6 +2720,16 @@
|
|
|
2699
2720
|
}
|
|
2700
2721
|
}
|
|
2701
2722
|
}
|
|
2723
|
+
.hover\:bg-blue-100\/70 {
|
|
2724
|
+
&:hover {
|
|
2725
|
+
@media (hover: hover) {
|
|
2726
|
+
background-color: color-mix(in srgb, oklch(93.2% 0.032 255.585) 70%, transparent);
|
|
2727
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2728
|
+
background-color: color-mix(in oklab, var(--color-blue-100) 70%, transparent);
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2702
2733
|
.hover\:bg-blue-200 {
|
|
2703
2734
|
&:hover {
|
|
2704
2735
|
@media (hover: hover) {
|
|
@@ -2895,6 +2926,16 @@
|
|
|
2895
2926
|
}
|
|
2896
2927
|
}
|
|
2897
2928
|
}
|
|
2929
|
+
.hover\:bg-white\/40 {
|
|
2930
|
+
&:hover {
|
|
2931
|
+
@media (hover: hover) {
|
|
2932
|
+
background-color: color-mix(in srgb, #fff 40%, transparent);
|
|
2933
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2934
|
+
background-color: color-mix(in oklab, var(--color-white) 40%, transparent);
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2898
2939
|
.hover\:text-amber-400 {
|
|
2899
2940
|
&:hover {
|
|
2900
2941
|
@media (hover: hover) {
|
|
@@ -3204,9 +3245,9 @@
|
|
|
3204
3245
|
opacity: 60%;
|
|
3205
3246
|
}
|
|
3206
3247
|
}
|
|
3207
|
-
.sm\:col-span-
|
|
3248
|
+
.sm\:col-span-3 {
|
|
3208
3249
|
@media (width >= 40rem) {
|
|
3209
|
-
grid-column: span
|
|
3250
|
+
grid-column: span 3 / span 3;
|
|
3210
3251
|
}
|
|
3211
3252
|
}
|
|
3212
3253
|
.sm\:block {
|
|
@@ -3224,6 +3265,16 @@
|
|
|
3224
3265
|
width: calc(var(--spacing) * 32);
|
|
3225
3266
|
}
|
|
3226
3267
|
}
|
|
3268
|
+
.sm\:w-44 {
|
|
3269
|
+
@media (width >= 40rem) {
|
|
3270
|
+
width: calc(var(--spacing) * 44);
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
.sm\:w-56 {
|
|
3274
|
+
@media (width >= 40rem) {
|
|
3275
|
+
width: calc(var(--spacing) * 56);
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3227
3278
|
.sm\:w-64 {
|
|
3228
3279
|
@media (width >= 40rem) {
|
|
3229
3280
|
width: calc(var(--spacing) * 64);
|
|
@@ -3239,11 +3290,26 @@
|
|
|
3239
3290
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3240
3291
|
}
|
|
3241
3292
|
}
|
|
3293
|
+
.sm\:grid-cols-3 {
|
|
3294
|
+
@media (width >= 40rem) {
|
|
3295
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3242
3298
|
.sm\:flex-row {
|
|
3243
3299
|
@media (width >= 40rem) {
|
|
3244
3300
|
flex-direction: row;
|
|
3245
3301
|
}
|
|
3246
3302
|
}
|
|
3303
|
+
.sm\:flex-wrap {
|
|
3304
|
+
@media (width >= 40rem) {
|
|
3305
|
+
flex-wrap: wrap;
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
.sm\:items-end {
|
|
3309
|
+
@media (width >= 40rem) {
|
|
3310
|
+
align-items: flex-end;
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3247
3313
|
.sm\:p-3 {
|
|
3248
3314
|
@media (width >= 40rem) {
|
|
3249
3315
|
padding: calc(var(--spacing) * 3);
|
|
@@ -3259,12 +3325,23 @@
|
|
|
3259
3325
|
padding-inline: calc(var(--spacing) * 4);
|
|
3260
3326
|
}
|
|
3261
3327
|
}
|
|
3328
|
+
.sm\:pb-2 {
|
|
3329
|
+
@media (width >= 40rem) {
|
|
3330
|
+
padding-bottom: calc(var(--spacing) * 2);
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3262
3333
|
.sm\:text-base {
|
|
3263
3334
|
@media (width >= 40rem) {
|
|
3264
3335
|
font-size: var(--text-base);
|
|
3265
3336
|
line-height: var(--tw-leading, var(--text-base--line-height));
|
|
3266
3337
|
}
|
|
3267
3338
|
}
|
|
3339
|
+
.sm\:text-sm {
|
|
3340
|
+
@media (width >= 40rem) {
|
|
3341
|
+
font-size: var(--text-sm);
|
|
3342
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3268
3345
|
.md\:inline {
|
|
3269
3346
|
@media (width >= 48rem) {
|
|
3270
3347
|
display: inline;
|
|
@@ -3285,6 +3362,11 @@
|
|
|
3285
3362
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3286
3363
|
}
|
|
3287
3364
|
}
|
|
3365
|
+
.lg\:col-span-2 {
|
|
3366
|
+
@media (width >= 64rem) {
|
|
3367
|
+
grid-column: span 2 / span 2;
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3288
3370
|
.lg\:col-span-3 {
|
|
3289
3371
|
@media (width >= 64rem) {
|
|
3290
3372
|
grid-column: span 3 / span 3;
|
|
@@ -3320,6 +3402,11 @@
|
|
|
3320
3402
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
3321
3403
|
}
|
|
3322
3404
|
}
|
|
3405
|
+
.lg\:grid-cols-6 {
|
|
3406
|
+
@media (width >= 64rem) {
|
|
3407
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3323
3410
|
.lg\:grid-cols-12 {
|
|
3324
3411
|
@media (width >= 64rem) {
|
|
3325
3412
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
@@ -3340,6 +3427,21 @@
|
|
|
3340
3427
|
white-space: normal !important;
|
|
3341
3428
|
}
|
|
3342
3429
|
}
|
|
3430
|
+
.\[\&_span\]\:text-start {
|
|
3431
|
+
& span {
|
|
3432
|
+
text-align: start;
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3435
|
+
.\[\&\>div\]\:justify-start {
|
|
3436
|
+
&>div {
|
|
3437
|
+
justify-content: flex-start;
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
.\[\&\>div\]\:p-0 {
|
|
3441
|
+
&>div {
|
|
3442
|
+
padding: 0;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3343
3445
|
}
|
|
3344
3446
|
[data-theme="clean"], :root:has([data-theme="clean"]) {
|
|
3345
3447
|
--color-brand: #4f46e5;
|
package/dist/index.d.mts
CHANGED
|
@@ -393,6 +393,7 @@ interface PlacementConfig {
|
|
|
393
393
|
title?: string;
|
|
394
394
|
statusColors?: PlacementStatusSetting[];
|
|
395
395
|
defaultReturnStatusId?: string;
|
|
396
|
+
returnToSourceStatusId?: string;
|
|
396
397
|
}
|
|
397
398
|
interface PlacementStatusSetting {
|
|
398
399
|
id: string;
|
|
@@ -402,6 +403,8 @@ interface PlacementStatusSetting {
|
|
|
402
403
|
declare const DEFAULT_PLACEMENT_STATUS_COLORS: PlacementStatusSetting[];
|
|
403
404
|
/** מחזיר את מזהה הסטטוס ההתחלתי התקף: זה שהוגדר, אחרת "3" אם קיים (תאימות לאחור), אחרת הראשון */
|
|
404
405
|
declare function resolveDefaultStatusId(list: PlacementStatusSetting[], wanted?: string): string;
|
|
406
|
+
/** הסטטוס שמוחל בהחזרת רשומה לרשימת המקור: זה שהוגדר להחזרה, ואם אין - ברירת המחדל */
|
|
407
|
+
declare function resolveReturnStatusId(list: PlacementStatusSetting[], returnWanted?: string, defaultWanted?: string): string;
|
|
405
408
|
interface PlacementSettingsProps {
|
|
406
409
|
config: PlacementConfig;
|
|
407
410
|
onChange: (newConfig: PlacementConfig) => void;
|
|
@@ -429,6 +432,13 @@ interface PlacementBlockProps {
|
|
|
429
432
|
settings?: any;
|
|
430
433
|
executeAction?: ExecuteAction;
|
|
431
434
|
componentId?: string;
|
|
435
|
+
orgId?: string;
|
|
436
|
+
/** תפקיד המשתמש בארגון - קובע הרשאות עריכה וכפתור "עריכת רכיב השיבוץ" (למנהל בלבד) */
|
|
437
|
+
role?: OrgRole | null;
|
|
438
|
+
permissions?: ComponentPermissions;
|
|
439
|
+
readOnly?: boolean;
|
|
440
|
+
/** קישור מותאם לעריכת הרכיב בדשבורד (אם לא הועבר - נבנה אוטומטית מ-orgId + componentId) */
|
|
441
|
+
editComponentUrl?: string;
|
|
432
442
|
className?: string;
|
|
433
443
|
config?: PlacementConfig;
|
|
434
444
|
fetchSourceData?: (tableId: string) => Promise<any[]>;
|
|
@@ -936,4 +946,4 @@ declare function resolveUniverseTheme(value: unknown): UniverseThemeId;
|
|
|
936
946
|
*/
|
|
937
947
|
declare function withThemeScope<P extends object>(Component: react.ComponentType<P>): react.ComponentType<P>;
|
|
938
948
|
|
|
939
|
-
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, CreateTemplateModal, type CreateTemplateModalProps, DEFAULT_PLACEMENT_STATUS_COLORS, DatePickerCell, type DeleteRecordPayload, DynamicFiltersBlock, type DynamicFiltersBlockProps, LinkPickerCell, type MetaTemplateComponent, type MetaWhatsAppTemplate, NON_TEXT_TYPES, type OrgRole, PASTEL_PALETTES, PAYMENT_REPORTS_ACTIONS, PAYMENT_REPORTS_REQUIRED, type PastelPalette, PaymentReportsBlock, type PaymentReportsBlockProps, type PaymentReportsConfig, type PaymentReportsTab, PlacementBlock, type PlacementBlockProps, type PlacementColumnOption, type PlacementConfig, PlacementSettings, type PlacementStatusColor, PlacementStatusEditor, type PlacementStatusSetting, RELATION_LABEL_KEY, RELATION_SEP, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type RolePermissions, type RowStatusType, SettingsAndActionsBlock, type SettingsAndActionsBlockProps, SmartTextCell, type SplitTitleResult, TableBlock, TableBlockClient, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, TruncatedTooltip, UNIVERSE_COMPONENTS, UNIVERSE_THEME_IDS, type UniverseComponentType, type UniverseThemeId, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, WhatsAppComponent, type WhatsAppComponentProps, type WhatsAppData, buildColumnOptions, buildRelationRef, calculateMinColumnWidth, checkElementTruncation, cn, columnRefLabel, enrichRowsWithRelations, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, generateWhatsAppLink, getDeterministicPastelBadge, getRolePermissions, isUserColumn, isValidPhoneNumber, measureTextWidth, missingPaymentReportsFields, normalizePhoneForWhatsApp, normalizeRelationValue, openWhatsAppChat, parseColumnRef, parseLinkValue, parseTimeParts, readColumnValue, resolveDefaultStatusId, resolveProtocol, resolveUniverseTheme, sanitizePhoneNumber, splitHeaderTitle, tableColumns, useColumnReorder, useColumnResize, useSmartTooltip, useToast, useWhatsAppState, withThemeScope };
|
|
949
|
+
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, CreateTemplateModal, type CreateTemplateModalProps, DEFAULT_PLACEMENT_STATUS_COLORS, DatePickerCell, type DeleteRecordPayload, DynamicFiltersBlock, type DynamicFiltersBlockProps, LinkPickerCell, type MetaTemplateComponent, type MetaWhatsAppTemplate, NON_TEXT_TYPES, type OrgRole, PASTEL_PALETTES, PAYMENT_REPORTS_ACTIONS, PAYMENT_REPORTS_REQUIRED, type PastelPalette, PaymentReportsBlock, type PaymentReportsBlockProps, type PaymentReportsConfig, type PaymentReportsTab, PlacementBlock, type PlacementBlockProps, type PlacementColumnOption, type PlacementConfig, PlacementSettings, type PlacementStatusColor, PlacementStatusEditor, type PlacementStatusSetting, RELATION_LABEL_KEY, RELATION_SEP, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type RolePermissions, type RowStatusType, SettingsAndActionsBlock, type SettingsAndActionsBlockProps, SmartTextCell, type SplitTitleResult, TableBlock, TableBlockClient, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, TruncatedTooltip, UNIVERSE_COMPONENTS, UNIVERSE_THEME_IDS, type UniverseComponentType, type UniverseThemeId, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, WhatsAppComponent, type WhatsAppComponentProps, type WhatsAppData, buildColumnOptions, buildRelationRef, calculateMinColumnWidth, checkElementTruncation, cn, columnRefLabel, enrichRowsWithRelations, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, generateWhatsAppLink, getDeterministicPastelBadge, getRolePermissions, isUserColumn, isValidPhoneNumber, measureTextWidth, missingPaymentReportsFields, normalizePhoneForWhatsApp, normalizeRelationValue, openWhatsAppChat, parseColumnRef, parseLinkValue, parseTimeParts, readColumnValue, resolveDefaultStatusId, resolveProtocol, resolveReturnStatusId, resolveUniverseTheme, sanitizePhoneNumber, splitHeaderTitle, tableColumns, useColumnReorder, useColumnResize, useSmartTooltip, useToast, useWhatsAppState, withThemeScope };
|
package/dist/index.d.ts
CHANGED
|
@@ -393,6 +393,7 @@ interface PlacementConfig {
|
|
|
393
393
|
title?: string;
|
|
394
394
|
statusColors?: PlacementStatusSetting[];
|
|
395
395
|
defaultReturnStatusId?: string;
|
|
396
|
+
returnToSourceStatusId?: string;
|
|
396
397
|
}
|
|
397
398
|
interface PlacementStatusSetting {
|
|
398
399
|
id: string;
|
|
@@ -402,6 +403,8 @@ interface PlacementStatusSetting {
|
|
|
402
403
|
declare const DEFAULT_PLACEMENT_STATUS_COLORS: PlacementStatusSetting[];
|
|
403
404
|
/** מחזיר את מזהה הסטטוס ההתחלתי התקף: זה שהוגדר, אחרת "3" אם קיים (תאימות לאחור), אחרת הראשון */
|
|
404
405
|
declare function resolveDefaultStatusId(list: PlacementStatusSetting[], wanted?: string): string;
|
|
406
|
+
/** הסטטוס שמוחל בהחזרת רשומה לרשימת המקור: זה שהוגדר להחזרה, ואם אין - ברירת המחדל */
|
|
407
|
+
declare function resolveReturnStatusId(list: PlacementStatusSetting[], returnWanted?: string, defaultWanted?: string): string;
|
|
405
408
|
interface PlacementSettingsProps {
|
|
406
409
|
config: PlacementConfig;
|
|
407
410
|
onChange: (newConfig: PlacementConfig) => void;
|
|
@@ -429,6 +432,13 @@ interface PlacementBlockProps {
|
|
|
429
432
|
settings?: any;
|
|
430
433
|
executeAction?: ExecuteAction;
|
|
431
434
|
componentId?: string;
|
|
435
|
+
orgId?: string;
|
|
436
|
+
/** תפקיד המשתמש בארגון - קובע הרשאות עריכה וכפתור "עריכת רכיב השיבוץ" (למנהל בלבד) */
|
|
437
|
+
role?: OrgRole | null;
|
|
438
|
+
permissions?: ComponentPermissions;
|
|
439
|
+
readOnly?: boolean;
|
|
440
|
+
/** קישור מותאם לעריכת הרכיב בדשבורד (אם לא הועבר - נבנה אוטומטית מ-orgId + componentId) */
|
|
441
|
+
editComponentUrl?: string;
|
|
432
442
|
className?: string;
|
|
433
443
|
config?: PlacementConfig;
|
|
434
444
|
fetchSourceData?: (tableId: string) => Promise<any[]>;
|
|
@@ -936,4 +946,4 @@ declare function resolveUniverseTheme(value: unknown): UniverseThemeId;
|
|
|
936
946
|
*/
|
|
937
947
|
declare function withThemeScope<P extends object>(Component: react.ComponentType<P>): react.ComponentType<P>;
|
|
938
948
|
|
|
939
|
-
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, CreateTemplateModal, type CreateTemplateModalProps, DEFAULT_PLACEMENT_STATUS_COLORS, DatePickerCell, type DeleteRecordPayload, DynamicFiltersBlock, type DynamicFiltersBlockProps, LinkPickerCell, type MetaTemplateComponent, type MetaWhatsAppTemplate, NON_TEXT_TYPES, type OrgRole, PASTEL_PALETTES, PAYMENT_REPORTS_ACTIONS, PAYMENT_REPORTS_REQUIRED, type PastelPalette, PaymentReportsBlock, type PaymentReportsBlockProps, type PaymentReportsConfig, type PaymentReportsTab, PlacementBlock, type PlacementBlockProps, type PlacementColumnOption, type PlacementConfig, PlacementSettings, type PlacementStatusColor, PlacementStatusEditor, type PlacementStatusSetting, RELATION_LABEL_KEY, RELATION_SEP, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type RolePermissions, type RowStatusType, SettingsAndActionsBlock, type SettingsAndActionsBlockProps, SmartTextCell, type SplitTitleResult, TableBlock, TableBlockClient, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, TruncatedTooltip, UNIVERSE_COMPONENTS, UNIVERSE_THEME_IDS, type UniverseComponentType, type UniverseThemeId, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, WhatsAppComponent, type WhatsAppComponentProps, type WhatsAppData, buildColumnOptions, buildRelationRef, calculateMinColumnWidth, checkElementTruncation, cn, columnRefLabel, enrichRowsWithRelations, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, generateWhatsAppLink, getDeterministicPastelBadge, getRolePermissions, isUserColumn, isValidPhoneNumber, measureTextWidth, missingPaymentReportsFields, normalizePhoneForWhatsApp, normalizeRelationValue, openWhatsAppChat, parseColumnRef, parseLinkValue, parseTimeParts, readColumnValue, resolveDefaultStatusId, resolveProtocol, resolveUniverseTheme, sanitizePhoneNumber, splitHeaderTitle, tableColumns, useColumnReorder, useColumnResize, useSmartTooltip, useToast, useWhatsAppState, withThemeScope };
|
|
949
|
+
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, CreateTemplateModal, type CreateTemplateModalProps, DEFAULT_PLACEMENT_STATUS_COLORS, DatePickerCell, type DeleteRecordPayload, DynamicFiltersBlock, type DynamicFiltersBlockProps, LinkPickerCell, type MetaTemplateComponent, type MetaWhatsAppTemplate, NON_TEXT_TYPES, type OrgRole, PASTEL_PALETTES, PAYMENT_REPORTS_ACTIONS, PAYMENT_REPORTS_REQUIRED, type PastelPalette, PaymentReportsBlock, type PaymentReportsBlockProps, type PaymentReportsConfig, type PaymentReportsTab, PlacementBlock, type PlacementBlockProps, type PlacementColumnOption, type PlacementConfig, PlacementSettings, type PlacementStatusColor, PlacementStatusEditor, type PlacementStatusSetting, RELATION_LABEL_KEY, RELATION_SEP, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type RolePermissions, type RowStatusType, SettingsAndActionsBlock, type SettingsAndActionsBlockProps, SmartTextCell, type SplitTitleResult, TableBlock, TableBlockClient, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, TruncatedTooltip, UNIVERSE_COMPONENTS, UNIVERSE_THEME_IDS, type UniverseComponentType, type UniverseThemeId, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, WhatsAppComponent, type WhatsAppComponentProps, type WhatsAppData, buildColumnOptions, buildRelationRef, calculateMinColumnWidth, checkElementTruncation, cn, columnRefLabel, enrichRowsWithRelations, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, generateWhatsAppLink, getDeterministicPastelBadge, getRolePermissions, isUserColumn, isValidPhoneNumber, measureTextWidth, missingPaymentReportsFields, normalizePhoneForWhatsApp, normalizeRelationValue, openWhatsAppChat, parseColumnRef, parseLinkValue, parseTimeParts, readColumnValue, resolveDefaultStatusId, resolveProtocol, resolveReturnStatusId, resolveUniverseTheme, sanitizePhoneNumber, splitHeaderTitle, tableColumns, useColumnReorder, useColumnResize, useSmartTooltip, useToast, useWhatsAppState, withThemeScope };
|