@gooddata/sdk-ui-dashboard 10.7.0-alpha.5 → 10.7.0-alpha.7
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/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +0 -18
- package/esm/locales.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +0 -205
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.d.ts +0 -19
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.js +0 -19
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.d.ts +0 -9
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.js +0 -38
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/utils.js.map +1 -1
- package/package.json +15 -15
- package/styles/css/dashboard.css +0 -370
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/main.css +0 -370
- package/styles/css/main.css.map +1 -1
- package/styles/css/scheduled_mail.css +0 -370
- package/styles/css/scheduled_mail.css.map +1 -1
- package/styles/scss/scheduled_mail.scss +0 -413
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.d.ts +0 -31
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.js +0 -28
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.d.ts +0 -98
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.js +0 -11
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.d.ts +0 -12
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.js +0 -44
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.d.ts +0 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.js +0 -24
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailRecipients.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.d.ts +0 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.js +0 -69
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/scheduledMailSummary.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.d.ts +0 -15
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.js +0 -10
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/stripLocalIdentifierFromFilters.js.map +0 -1
|
@@ -38,26 +38,6 @@ $min-content-height: 110px;
|
|
|
38
38
|
.gd-dialog-footer {
|
|
39
39
|
display: flex;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
.gd-schedule-email-dialog-filters-message {
|
|
43
|
-
margin-top: -5px;
|
|
44
|
-
margin-bottom: $vertical-space;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.gd-schedule-email-dialog-unsubscribed-recipients {
|
|
49
|
-
margin-top: -5px;
|
|
50
|
-
margin-left: 105px;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
width: 100%;
|
|
53
|
-
line-height: 16px;
|
|
54
|
-
white-space: normal;
|
|
55
|
-
font-size: 12px;
|
|
56
|
-
color: kit-variables.$gd-color-link;
|
|
57
|
-
|
|
58
|
-
@media #{kit-variables.$small-only} {
|
|
59
|
-
margin-left: 0;
|
|
60
|
-
}
|
|
61
41
|
}
|
|
62
42
|
|
|
63
43
|
.gd-input-component {
|
|
@@ -106,30 +86,6 @@ $min-content-height: 110px;
|
|
|
106
86
|
}
|
|
107
87
|
}
|
|
108
88
|
|
|
109
|
-
.gd-attachment-component {
|
|
110
|
-
@media #{kit-variables.$medium-up} {
|
|
111
|
-
align-items: flex-start;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.gd-attachment-name {
|
|
115
|
-
flex: 1;
|
|
116
|
-
padding-left: 7px;
|
|
117
|
-
|
|
118
|
-
@media #{kit-variables.$medium-up} {
|
|
119
|
-
margin-top: 3px;
|
|
120
|
-
word-break: break-all;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.gd-icon-pdf {
|
|
125
|
-
position: relative;
|
|
126
|
-
top: 1px;
|
|
127
|
-
flex: 0;
|
|
128
|
-
padding: 0;
|
|
129
|
-
margin-top: 3px;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
89
|
.gd-schedule-email-attachments {
|
|
134
90
|
@media #{kit-variables.$medium-up} {
|
|
135
91
|
align-items: flex-start;
|
|
@@ -140,11 +96,6 @@ $min-content-height: 110px;
|
|
|
140
96
|
line-height: 30px;
|
|
141
97
|
}
|
|
142
98
|
|
|
143
|
-
.gd-attachment-config-button {
|
|
144
|
-
display: inline-block;
|
|
145
|
-
margin: 10px 20px 0 0;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
99
|
.gd-attachment-list {
|
|
149
100
|
display: flex;
|
|
150
101
|
flex-direction: row;
|
|
@@ -157,13 +108,6 @@ $min-content-height: 110px;
|
|
|
157
108
|
@media #{kit-variables.$small-only} {
|
|
158
109
|
max-width: none;
|
|
159
110
|
}
|
|
160
|
-
|
|
161
|
-
&-content {
|
|
162
|
-
display: flex;
|
|
163
|
-
flex-wrap: wrap;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
margin: 0 -5px;
|
|
166
|
-
}
|
|
167
111
|
}
|
|
168
112
|
|
|
169
113
|
.gd-attachment-list-message {
|
|
@@ -310,145 +254,6 @@ $min-content-height: 110px;
|
|
|
310
254
|
}
|
|
311
255
|
}
|
|
312
256
|
|
|
313
|
-
.gd-schedule-email-dialog-datetime,
|
|
314
|
-
.gd-schedule-email-dialog-repeat {
|
|
315
|
-
align-items: flex-start;
|
|
316
|
-
flex-direction: row;
|
|
317
|
-
|
|
318
|
-
@media #{kit-variables.$small-only} {
|
|
319
|
-
.gd-label {
|
|
320
|
-
margin-bottom: 0;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
> div {
|
|
325
|
-
display: flex;
|
|
326
|
-
align-items: center;
|
|
327
|
-
flex-wrap: wrap;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.gd-schedule-email-dialog-datetime {
|
|
332
|
-
> div {
|
|
333
|
-
.gd-datepicker {
|
|
334
|
-
width: 119px;
|
|
335
|
-
|
|
336
|
-
@media #{kit-variables.$small-only} {
|
|
337
|
-
width: calc(50% - 10px);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.input-text {
|
|
341
|
-
@include input-styles;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.input-text:hover {
|
|
345
|
-
color: var(--gd-palette-complementary-8, inherit);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.gd-datepicker-icon {
|
|
349
|
-
top: -2px;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.gd-schedule-email-dialog-datetime-date input {
|
|
354
|
-
height: $input-height;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.gd-schedule-email-dialog-datetime-time {
|
|
358
|
-
margin-left: $horizontal-space;
|
|
359
|
-
|
|
360
|
-
button {
|
|
361
|
-
height: $input-height;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.gd-schedule-email-dialog-datetime-timezone {
|
|
366
|
-
@media #{kit-variables.$small-only} {
|
|
367
|
-
width: 100%;
|
|
368
|
-
margin-top: 15px;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
@media #{kit-variables.$medium-up} {
|
|
372
|
-
margin-left: $horizontal-space;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.gd-automation-cron-input {
|
|
379
|
-
margin-left: 10px;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.gd-schedule-email-dialog-repeat {
|
|
383
|
-
@media #{kit-variables.$small-only} {
|
|
384
|
-
.gd-schedule-email-dialog-repeat-type {
|
|
385
|
-
width: 100%;
|
|
386
|
-
margin-bottom: $vertical-space;
|
|
387
|
-
|
|
388
|
-
.button-dropdown {
|
|
389
|
-
width: 100%;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.gd-schedule-email-dialog-repeat-type {
|
|
395
|
-
button {
|
|
396
|
-
height: $input-height;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.gd-schedule-email-dialog-repeat-custom {
|
|
401
|
-
display: flex;
|
|
402
|
-
align-items: center;
|
|
403
|
-
|
|
404
|
-
@media #{kit-variables.$small-only} {
|
|
405
|
-
flex-wrap: wrap;
|
|
406
|
-
border-left: 2px dotted kit-variables.$gd-border-color;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
.gd-schedule-email-dialog-repeat-every {
|
|
410
|
-
margin-left: $horizontal-space;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.gd-schedule-email-dialog-repeat-period {
|
|
414
|
-
margin-left: $horizontal-space;
|
|
415
|
-
|
|
416
|
-
.gd-input-field {
|
|
417
|
-
@include input-styles;
|
|
418
|
-
|
|
419
|
-
width: 24px;
|
|
420
|
-
height: $input-height;
|
|
421
|
-
text-align: center;
|
|
422
|
-
padding-right: 0;
|
|
423
|
-
padding-left: 0;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.gd-schedule-email-dialog-repeat-frequency {
|
|
428
|
-
margin-left: $horizontal-space;
|
|
429
|
-
|
|
430
|
-
button {
|
|
431
|
-
height: $input-height;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
@media #{kit-variables.$small-only} {
|
|
436
|
-
.break-the-row {
|
|
437
|
-
height: 0;
|
|
438
|
-
flex-basis: 100%;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.gd-schedule-email-dialog-repeat-execute-on {
|
|
443
|
-
margin-left: $horizontal-space;
|
|
444
|
-
|
|
445
|
-
@media #{kit-variables.$small-only} {
|
|
446
|
-
margin-top: $vertical-space;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
|
|
452
257
|
.gd-scheduled-email-management-dialog {
|
|
453
258
|
display: flex;
|
|
454
259
|
flex-direction: column;
|
|
@@ -717,224 +522,6 @@ $min-content-height: 110px;
|
|
|
717
522
|
}
|
|
718
523
|
}
|
|
719
524
|
|
|
720
|
-
.gd-schedule-email-dialog-attachments {
|
|
721
|
-
display: flex;
|
|
722
|
-
flex-direction: row;
|
|
723
|
-
flex-wrap: wrap;
|
|
724
|
-
margin: 0 -10px;
|
|
725
|
-
|
|
726
|
-
& > div {
|
|
727
|
-
margin: 5px 10px;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
.gd-schedule-dropdown {
|
|
732
|
-
&-button {
|
|
733
|
-
display: flex;
|
|
734
|
-
align-items: center;
|
|
735
|
-
height: 30px;
|
|
736
|
-
margin: 0;
|
|
737
|
-
padding: 0;
|
|
738
|
-
border: none;
|
|
739
|
-
outline: inherit;
|
|
740
|
-
font: inherit;
|
|
741
|
-
color: kit-variables.$gd-color-link;
|
|
742
|
-
background: none;
|
|
743
|
-
text-decoration: underline;
|
|
744
|
-
font-size: 14px;
|
|
745
|
-
cursor: pointer;
|
|
746
|
-
|
|
747
|
-
&-icon {
|
|
748
|
-
display: flex;
|
|
749
|
-
flex-direction: row;
|
|
750
|
-
justify-content: center;
|
|
751
|
-
align-items: center;
|
|
752
|
-
height: 100%;
|
|
753
|
-
margin-right: 6px;
|
|
754
|
-
flex-shrink: 0;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
&-disabled {
|
|
758
|
-
color: kit-variables.$gd-color-disabled;
|
|
759
|
-
|
|
760
|
-
svg {
|
|
761
|
-
fill: kit-variables.$gd-color-disabled;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
&:hover {
|
|
765
|
-
color: kit-variables.$gd-color-disabled;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
&-body {
|
|
771
|
-
display: flex;
|
|
772
|
-
flex-direction: column;
|
|
773
|
-
height: inherit;
|
|
774
|
-
font-size: 12px;
|
|
775
|
-
|
|
776
|
-
@media #{kit-variables.$small-only} {
|
|
777
|
-
width: 100vw;
|
|
778
|
-
max-height: calc(100vh - 30px);
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
&-header {
|
|
783
|
-
display: flex;
|
|
784
|
-
flex: 0 0 auto;
|
|
785
|
-
align-items: center;
|
|
786
|
-
padding-left: 10px;
|
|
787
|
-
padding-right: 10px;
|
|
788
|
-
overflow: hidden;
|
|
789
|
-
height: 35px;
|
|
790
|
-
white-space: nowrap;
|
|
791
|
-
color: kit-variables.$gd-color-state-blank;
|
|
792
|
-
background: kit-variables.$is-focused-background;
|
|
793
|
-
text-overflow: ellipsis;
|
|
794
|
-
text-transform: uppercase;
|
|
795
|
-
font-size: 11px;
|
|
796
|
-
font-weight: bold;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
&-content {
|
|
800
|
-
flex: 0 0 auto;
|
|
801
|
-
overflow-y: auto;
|
|
802
|
-
max-height: 200px;
|
|
803
|
-
|
|
804
|
-
@media #{kit-variables.$small-only} {
|
|
805
|
-
overflow: auto;
|
|
806
|
-
height: calc(100vh - 113px);
|
|
807
|
-
max-height: calc(100vh - 113px);
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
&-footer {
|
|
812
|
-
flex: 0 0 auto;
|
|
813
|
-
height: 47px;
|
|
814
|
-
padding: 10px;
|
|
815
|
-
border-top: 1px solid kit-variables.$gd-border-color;
|
|
816
|
-
text-align: right;
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
.gd-format-options-dropdown {
|
|
821
|
-
padding: 10px;
|
|
822
|
-
min-width: 253px;
|
|
823
|
-
|
|
824
|
-
@media #{kit-variables.$small-only} {
|
|
825
|
-
width: 100%;
|
|
826
|
-
min-width: none;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
&-selector {
|
|
830
|
-
display: flex;
|
|
831
|
-
flex-direction: row;
|
|
832
|
-
align-items: center;
|
|
833
|
-
height: $input-height;
|
|
834
|
-
|
|
835
|
-
& > div {
|
|
836
|
-
margin-left: 15px;
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
.gd-format-options-dropdown-xlsx {
|
|
842
|
-
display: flex;
|
|
843
|
-
flex-direction: column;
|
|
844
|
-
border-left: 1px dashed kit-variables.$gd-color-link;
|
|
845
|
-
padding-left: 10px;
|
|
846
|
-
margin-top: 5px;
|
|
847
|
-
font-size: 14px;
|
|
848
|
-
color: kit-variables.$gd-color-text;
|
|
849
|
-
|
|
850
|
-
& > div:not(:first-child) {
|
|
851
|
-
margin-top: 10px;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
& > div {
|
|
855
|
-
display: flex;
|
|
856
|
-
align-items: center;
|
|
857
|
-
height: $input-height;
|
|
858
|
-
|
|
859
|
-
& > label {
|
|
860
|
-
display: flex;
|
|
861
|
-
align-items: center;
|
|
862
|
-
width: 100%;
|
|
863
|
-
padding-right: 0;
|
|
864
|
-
|
|
865
|
-
& > span {
|
|
866
|
-
margin-left: 4px;
|
|
867
|
-
white-space: nowrap;
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
.gd-attachments-selection-dropdown {
|
|
874
|
-
width: 253px;
|
|
875
|
-
padding: 10px;
|
|
876
|
-
|
|
877
|
-
@media #{kit-variables.$small-only} {
|
|
878
|
-
width: 100%;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
h3 {
|
|
882
|
-
flex-grow: 2;
|
|
883
|
-
position: relative;
|
|
884
|
-
overflow: hidden;
|
|
885
|
-
height: 23px;
|
|
886
|
-
margin-top: 5px;
|
|
887
|
-
margin-bottom: 5px;
|
|
888
|
-
font-size: 11px;
|
|
889
|
-
font-weight: bold;
|
|
890
|
-
text-transform: uppercase;
|
|
891
|
-
color: kit-variables.$gd-color-state-blank;
|
|
892
|
-
|
|
893
|
-
&::after {
|
|
894
|
-
content: "";
|
|
895
|
-
position: absolute;
|
|
896
|
-
top: 50%;
|
|
897
|
-
display: inline-block;
|
|
898
|
-
width: 100%;
|
|
899
|
-
height: 0;
|
|
900
|
-
margin-left: 10px;
|
|
901
|
-
border-top: 1px solid kit-variables.$gd-color-state-blank;
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
& > div:not(:last-child) {
|
|
906
|
-
margin-bottom: 10px;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
& > div {
|
|
910
|
-
display: flex;
|
|
911
|
-
align-items: center;
|
|
912
|
-
overflow: hidden;
|
|
913
|
-
height: $input-height;
|
|
914
|
-
|
|
915
|
-
& > label {
|
|
916
|
-
display: flex;
|
|
917
|
-
align-items: center;
|
|
918
|
-
overflow: hidden;
|
|
919
|
-
width: 100%;
|
|
920
|
-
padding-right: 0;
|
|
921
|
-
|
|
922
|
-
& > svg {
|
|
923
|
-
margin-left: 4px;
|
|
924
|
-
margin-right: 6px;
|
|
925
|
-
flex-shrink: 0;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
& > span {
|
|
929
|
-
overflow: hidden;
|
|
930
|
-
white-space: nowrap;
|
|
931
|
-
text-overflow: ellipsis;
|
|
932
|
-
margin-left: 4px;
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
|
|
938
525
|
.gd-schedule-mail-dialog-content-wrapper {
|
|
939
526
|
background: variables.$dialog-background;
|
|
940
527
|
margin: 0 (-$dialog-padding);
|
package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { IWorkspaceUser } from "@gooddata/sdk-model";
|
|
3
|
-
import { GoodDataSdkError, UseCancelablePromiseCallbacks, UseCancelablePromiseState } from "@gooddata/sdk-ui";
|
|
4
|
-
interface IUseWorkspaceUsersConfig extends UseCancelablePromiseCallbacks<IWorkspaceUser[], GoodDataSdkError> {
|
|
5
|
-
/**
|
|
6
|
-
* Option to filter users by the provided string.
|
|
7
|
-
*/
|
|
8
|
-
search?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Backend to work with.
|
|
11
|
-
*
|
|
12
|
-
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
13
|
-
* backend here, then the hook MUST be called within an existing BackendContext.
|
|
14
|
-
*/
|
|
15
|
-
backend?: IAnalyticalBackend;
|
|
16
|
-
/**
|
|
17
|
-
* Workspace to work with.
|
|
18
|
-
*
|
|
19
|
-
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
20
|
-
* workspace here, then the hook MUST be called within an existing WorkspaceContext.
|
|
21
|
-
*/
|
|
22
|
-
workspace?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Hook allowing to download workspace users
|
|
26
|
-
* @param config - configuration of the hook
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
export declare function useWorkspaceUsers({ search, backend, workspace, onCancel, onError, onLoading, onPending, onSuccess, }: IUseWorkspaceUsersConfig): UseCancelablePromiseState<IWorkspaceUser[], any>;
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=useWorkspaceUsers.d.ts.map
|
package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkspaceUsers.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACH,gBAAgB,EAGhB,6BAA6B,EAC7B,yBAAyB,EAE5B,MAAM,kBAAkB,CAAC;AAI1B,UAAU,wBAAyB,SAAQ,6BAA6B,CAAC,cAAc,EAAE,EAAE,gBAAgB,CAAC;IACxG;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GACZ,EAAE,wBAAwB,GAAG,yBAAyB,CAAC,cAAc,EAAE,EAAE,GAAG,CAAC,CAqB7E"}
|
package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useBackendStrict, useCancelablePromise, useWorkspaceStrict, } from "@gooddata/sdk-ui";
|
|
2
|
-
import { useDashboardSelector, selectCanListUsersInWorkspace } from "../../../../model/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* Hook allowing to download workspace users
|
|
5
|
-
* @param config - configuration of the hook
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export function useWorkspaceUsers({ search, backend, workspace, onCancel, onError, onLoading, onPending, onSuccess, }) {
|
|
9
|
-
const effectiveBackend = useBackendStrict(backend);
|
|
10
|
-
const effectiveWorkspace = useWorkspaceStrict(workspace);
|
|
11
|
-
const canListUsersInWorkspace = useDashboardSelector(selectCanListUsersInWorkspace);
|
|
12
|
-
// if the user cannot list the users, do not even try and resolve to an empty array
|
|
13
|
-
const promise = canListUsersInWorkspace
|
|
14
|
-
? () => {
|
|
15
|
-
let loader = effectiveBackend.workspace(effectiveWorkspace).users();
|
|
16
|
-
if (search) {
|
|
17
|
-
loader = loader.withOptions({ search: `%${search}` });
|
|
18
|
-
}
|
|
19
|
-
return loader.queryAll();
|
|
20
|
-
}
|
|
21
|
-
: () => Promise.resolve([]);
|
|
22
|
-
return useCancelablePromise({ promise, onCancel, onError, onLoading, onPending, onSuccess }, [
|
|
23
|
-
effectiveBackend,
|
|
24
|
-
effectiveWorkspace,
|
|
25
|
-
search,
|
|
26
|
-
]);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=useWorkspaceUsers.js.map
|
package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkspaceUsers.js","sourceRoot":"","sources":["../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useWorkspaceUsers.ts"],"names":[],"mappings":"AAGA,OAAO,EAEH,gBAAgB,EAChB,oBAAoB,EAGpB,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAyBjG;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAC9B,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GACc;IACvB,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACnD,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,uBAAuB,GAAG,oBAAoB,CAAC,6BAA6B,CAAC,CAAC;IAEpF,mFAAmF;IACnF,MAAM,OAAO,GAAG,uBAAuB;QACnC,CAAC,CAAC,GAAG,EAAE;YACD,IAAI,MAAM,GAAG,gBAAgB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,KAAK,EAAE,CAAC;YACpE,IAAI,MAAM,EAAE,CAAC;gBACT,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC7B,CAAC;QACH,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEhC,OAAO,oBAAoB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE;QACzF,gBAAgB;QAChB,kBAAkB;QAClB,MAAM;KACT,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { IOrganizationUser } from "@gooddata/sdk-model";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export interface IScheduleEmailRepeatDate {
|
|
6
|
-
day: number;
|
|
7
|
-
month: number;
|
|
8
|
-
year: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export interface IScheduleEmailRepeatTime {
|
|
14
|
-
hour: number;
|
|
15
|
-
minute: number;
|
|
16
|
-
second: number;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
export interface IScheduleEmailRepeatFrequencyDayOfWeek {
|
|
22
|
-
day: number;
|
|
23
|
-
week: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
export interface IScheduleEmailRepeatFrequency {
|
|
29
|
-
day?: boolean;
|
|
30
|
-
week?: {
|
|
31
|
-
days: number[];
|
|
32
|
-
};
|
|
33
|
-
month?: {
|
|
34
|
-
type: "dayOfMonth" | "dayOfWeek";
|
|
35
|
-
dayOfMonth?: number;
|
|
36
|
-
dayOfWeek?: IScheduleEmailRepeatFrequencyDayOfWeek;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
export interface IScheduleEmailRepeat {
|
|
43
|
-
time: IScheduleEmailRepeatTime;
|
|
44
|
-
repeatFrequency: IScheduleEmailRepeatFrequency;
|
|
45
|
-
repeatPeriod: number;
|
|
46
|
-
repeatType: string;
|
|
47
|
-
cron: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
|
-
export interface IScheduleEmailExternalRecipient {
|
|
53
|
-
/**
|
|
54
|
-
* Target email, if recipient is an external user
|
|
55
|
-
*/
|
|
56
|
-
email: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
export declare const isScheduleEmailExternalRecipient: (obj: unknown) => obj is IScheduleEmailExternalRecipient;
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
export interface IScheduleEmailExistingRecipient {
|
|
66
|
-
/**
|
|
67
|
-
* Target user, if the recipient is an existing user
|
|
68
|
-
*/
|
|
69
|
-
user: IOrganizationUser;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
export declare const isScheduleEmailExistingRecipient: (obj: unknown) => obj is IScheduleEmailExistingRecipient;
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
|
-
export type IScheduleEmailRecipient = IScheduleEmailExternalRecipient | IScheduleEmailExistingRecipient;
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
export interface IDropdownItem {
|
|
83
|
-
id: string;
|
|
84
|
-
title: string;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
|
-
export interface IWidgetsSelection {
|
|
90
|
-
[ref: string]: boolean;
|
|
91
|
-
}
|
|
92
|
-
export type WidgetExportFileFormat = "csv" | "xlsx";
|
|
93
|
-
export interface IWidgetExportConfiguration {
|
|
94
|
-
format: WidgetExportFileFormat;
|
|
95
|
-
mergeHeaders: boolean;
|
|
96
|
-
includeFilters: boolean;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE;QACH,IAAI,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,IAAI,EAAE,YAAY,GAAG,WAAW,CAAC;QACjC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,sCAAsC,CAAC;KACtD,CAAC;CACL;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,eAAe,EAAE,6BAA6B,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAS,OAAO,2CAC0B,CAAC;AAExF;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAS,OAAO,2CACyB,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,+BAA+B,GAAG,+BAA+B,CAAC;AAExG;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// (C) 2019-2024 GoodData Corporation
|
|
2
|
-
import isEmpty from "lodash/isEmpty.js";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export const isScheduleEmailExternalRecipient = (obj) => !isEmpty(obj) && typeof obj.email === "string";
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export const isScheduleEmailExistingRecipient = (obj) => !isEmpty(obj) && typeof obj.user === "object";
|
|
11
|
-
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/interfaces.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAgExC;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAY,EAA0C,EAAE,CACrG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,OAAQ,GAAuC,CAAC,KAAK,KAAK,QAAQ,CAAC;AAYxF;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAY,EAA0C,EAAE,CACrG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,OAAQ,GAAuC,CAAC,IAAI,KAAK,QAAQ,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IntlShape } from "react-intl";
|
|
2
|
-
export declare function convertDateToPlatformDateString(date: Date): string;
|
|
3
|
-
export declare function convertDateToDisplayDateString(date: Date, dateFormat: string): string;
|
|
4
|
-
export declare function getDate(date: Date): number;
|
|
5
|
-
export declare function getDayName(date: Date): string;
|
|
6
|
-
export declare function getIntlDayName(intl: IntlShape, startDate: Date): string;
|
|
7
|
-
export declare function convertSun2MonWeekday(dayIndex: number): number;
|
|
8
|
-
export declare function getDay(date: Date): number;
|
|
9
|
-
export declare function getWeek(date: Date): number;
|
|
10
|
-
export declare function getMonth(date: Date): number;
|
|
11
|
-
export declare function getYear(date: Date): number;
|
|
12
|
-
//# sourceMappingURL=datetime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;AAKpE,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;AAgBvF,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,CAEvE;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEzC;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1C;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE3C;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1C"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// (C) 2019-2023 GoodData Corporation
|
|
2
|
-
import isDate from "lodash/isDate.js";
|
|
3
|
-
import format from "date-fns/format/index.js";
|
|
4
|
-
import { PLATFORM_DATE_FORMAT } from "../constants.js";
|
|
5
|
-
import capitalize from "lodash/capitalize.js";
|
|
6
|
-
export function convertDateToPlatformDateString(date) {
|
|
7
|
-
return isDate(date) ? format(date, PLATFORM_DATE_FORMAT) : date;
|
|
8
|
-
}
|
|
9
|
-
export function convertDateToDisplayDateString(date, dateFormat) {
|
|
10
|
-
// In schedule email dialog, use date string as sub-fix of attached file name
|
|
11
|
-
// to avoid "/" character in file name
|
|
12
|
-
const DISPLAY_DATE_FORMAT_MAPPER = {
|
|
13
|
-
"MM/dd/yyyy": "MM-dd-yyyy",
|
|
14
|
-
"dd/MM/yyyy": "dd-MM-yyyy",
|
|
15
|
-
"M/d/yy": "M-d-yy",
|
|
16
|
-
};
|
|
17
|
-
const displayDateFormat = DISPLAY_DATE_FORMAT_MAPPER[dateFormat] || dateFormat;
|
|
18
|
-
return isDate(date) ? format(date, displayDateFormat) : date;
|
|
19
|
-
}
|
|
20
|
-
export function getDate(date) {
|
|
21
|
-
return date.getDate();
|
|
22
|
-
}
|
|
23
|
-
export function getDayName(date) {
|
|
24
|
-
return format(date, "eeee");
|
|
25
|
-
}
|
|
26
|
-
export function getIntlDayName(intl, startDate) {
|
|
27
|
-
return capitalize(intl.formatDate(startDate, { weekday: "long" }));
|
|
28
|
-
}
|
|
29
|
-
export function convertSun2MonWeekday(dayIndex) {
|
|
30
|
-
return dayIndex === 0 ? 7 : dayIndex;
|
|
31
|
-
}
|
|
32
|
-
export function getDay(date) {
|
|
33
|
-
return convertSun2MonWeekday(date.getDay());
|
|
34
|
-
}
|
|
35
|
-
export function getWeek(date) {
|
|
36
|
-
return Math.ceil(date.getDate() / 7);
|
|
37
|
-
}
|
|
38
|
-
export function getMonth(date) {
|
|
39
|
-
return date.getMonth() + 1;
|
|
40
|
-
}
|
|
41
|
-
export function getYear(date) {
|
|
42
|
-
return date.getFullYear();
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=datetime.js.map
|