@vitrosoftware/common-ui-ts 1.1.13 → 1.1.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.
Files changed (33) hide show
  1. package/css/common.css +7 -1
  2. package/css/std/controls/avatar/avatar.css +21 -0
  3. package/css/std/controls/command-menu/command-menu-button.css +10 -0
  4. package/css/std/controls/command-menu/command-menu-dropdown-button.css +19 -0
  5. package/css/std/controls/lookup-picker/lookup-picker-html-value.css +8 -0
  6. package/css/std/controls/lookup-picker/lookup-picker-selected-item.css +3 -1
  7. package/css/std/controls/lookup-picker/lookup-picker-value-list.css +19 -4
  8. package/css/std/controls/sidebar/sidebar-item.css +74 -13
  9. package/css/std/controls/sidebar/sidebar.css +45 -19
  10. package/css/std/controls/table-view/table-view.css +1 -1
  11. package/css/std/controls/table-view/treegrid.css +4 -0
  12. package/css/std/controls/uploader/uploader.css +11 -2
  13. package/css/std/controls/user-profile/user-profile.css +77 -0
  14. package/dist/controls/Avatar/Avatar.d.ts +8 -0
  15. package/dist/controls/LookupPicker/LookupPicker.d.ts +6 -1
  16. package/dist/controls/LookupPicker/SelectedValueList.d.ts +4 -1
  17. package/dist/controls/LookupPicker/ValueList.d.ts +4 -1
  18. package/dist/controls/LookupPicker/ValueListItem.d.ts +11 -0
  19. package/dist/controls/Sidebar/LinkItem.d.ts +1 -0
  20. package/dist/controls/Sidebar/Section.d.ts +1 -0
  21. package/dist/controls/Sidebar/SectionList.d.ts +3 -2
  22. package/dist/controls/Sidebar/Sidebar.d.ts +1 -0
  23. package/dist/controls/UserLookupPicker/UserLookupPicker.d.ts +38 -0
  24. package/dist/controls/UserProfile/UserProfile.d.ts +12 -0
  25. package/dist/controls/UserProfile/UserProfileMenuItem.d.ts +11 -0
  26. package/dist/index.css +304 -41
  27. package/dist/index.d.ts +6 -0
  28. package/dist/index.js +299 -48
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.modern.js +297 -49
  31. package/dist/index.modern.js.map +1 -1
  32. package/lib/third-party.js +97104 -0
  33. package/package.json +2 -2
package/dist/index.css CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  .vitro-title {
20
20
  font-size: 20px;
21
- font-family: 'InterRegular';
21
+ font-family: 'InterMedium';
22
22
  line-height: 24px;
23
23
  margin-right: 24px;
24
24
  margin-bottom: 14px;
@@ -40,6 +40,12 @@
40
40
  padding-bottom: 8px;
41
41
  font-size: 18px;
42
42
  line-height: 27px;
43
+ margin: 0;
44
+ }
45
+
46
+ .pane > .vitro-flex {
47
+ flex-direction: column;
48
+ align-items: flex-start;
43
49
  }
44
50
  }
45
51
  ._breadcrumbs_vitro-breadcrumbs_3r4NcQY {
@@ -395,7 +401,7 @@
395
401
 
396
402
  #TableView {
397
403
  height: auto;
398
- flex: 1 1 100%;
404
+ flex: 1 0 auto;
399
405
  }
400
406
 
401
407
  ._table-view_vitro-table-view_1tTs32D {
@@ -754,6 +760,11 @@
754
760
  flex: unset;
755
761
  }
756
762
 
763
+ ._uploader_vitro-uploader_237vX7T .k-upload-action {
764
+ min-width: 24px;
765
+ justify-content: flex-start;
766
+ }
767
+
757
768
  #TableViewContainer .splitter:last-child > .pane.primary:has(._uploader_vitro-uploader_237vX7T) {
758
769
  position: relative;
759
770
  }
@@ -881,6 +892,8 @@
881
892
  ._uploader_vitro-uploader_237vX7T .k-progressbar {
882
893
  height: 32px !important;
883
894
  width: 32px !important;
895
+ min-width: 32px;
896
+ min-height: 32px;
884
897
  border-radius: 50% !important;
885
898
  display: flex;
886
899
  align-items: center !important;
@@ -892,8 +905,10 @@
892
905
  }
893
906
 
894
907
  ._uploader_vitro-uploader_237vX7T .k-progressbar > span {
895
- height: 27px !important;
896
- width: 27px !important;
908
+ height: 28px !important;
909
+ width: 28px !important;
910
+ min-width: 28px;
911
+ min-height: 28px;
897
912
  border-radius: 50% !important;
898
913
  background: #fff !important;
899
914
  display: block;
@@ -2510,6 +2525,19 @@
2510
2525
  ._lookup-picker-selected-item_vitro-selected-item_hw-euth {
2511
2526
  display: inline;
2512
2527
  margin: 0 6px 0 0;
2528
+ display: flex;
2529
+ align-items: center;
2530
+ }
2531
+
2532
+ ._lookup-picker-html-value_vitro-item-html-value_2QBoTey {
2533
+ height: -moz-fit-content;
2534
+ height: fit-content;
2535
+ width: -moz-fit-content;
2536
+ width: fit-content;
2537
+ display: flex;
2538
+ align-items: center;
2539
+ justify-content: center;
2540
+ margin-right: 8px;
2513
2541
  }
2514
2542
  ._lookup-picker-value-list_vitro-value-list_LSdCMjq {
2515
2543
  position: absolute;
@@ -2527,22 +2555,39 @@
2527
2555
  padding-right: 0 !important;
2528
2556
  }
2529
2557
 
2530
- ._lookup-picker-value-list_vitro-value-list_LSdCMjq div._lookup-picker-value-list_vitro-item_7yZBz5u {
2558
+ ._lookup-picker-value-list_vitro-value-list_LSdCMjq > .ps > div:first-child {
2559
+ padding: 0 !important;
2560
+ }
2561
+
2562
+ ._lookup-picker-value-list_vitro-value-list_LSdCMjq ._lookup-picker-value-list_vitro-item_7yZBz5u {
2531
2563
  padding: 8px 12px;
2532
2564
  cursor: pointer;
2533
2565
  border-radius: 0px;
2566
+ display: flex;
2567
+ align-items: center;
2534
2568
  }
2535
2569
 
2536
- ._lookup-picker-value-list_vitro-value-list_LSdCMjq div:last-child {
2570
+ ._lookup-picker-value-list_vitro-value-list_LSdCMjq ._lookup-picker-value-list_vitro-item_7yZBz5u:last-child {
2537
2571
  border-radius: 0 0 4px 4px;
2538
2572
  }
2539
2573
 
2540
- ._lookup-picker-value-list_vitro-value-list_LSdCMjq div:first-child {
2574
+ ._lookup-picker-value-list_vitro-value-list_LSdCMjq ._lookup-picker-value-list_vitro-item_7yZBz5u:first-child {
2541
2575
  border-radius: 4px 4px 0 0;
2542
2576
  padding: 0 !important;
2543
2577
  }
2544
2578
 
2545
- ._lookup-picker-value-list_vitro-value-list_LSdCMjq div._lookup-picker-value-list_vitro-item_7yZBz5u:hover {
2579
+ ._lookup-picker-value-list_vitro-value-list_LSdCMjq ._lookup-picker-value-list_vitro-item_7yZBz5u > ._lookup-picker-value-list_vitro-item-html-value_1yl9tXx {
2580
+ height: -moz-fit-content;
2581
+ height: fit-content;
2582
+ width: -moz-fit-content;
2583
+ width: fit-content;
2584
+ display: flex;
2585
+ align-items: center;
2586
+ justify-content: center;
2587
+ margin-right: 8px;
2588
+ }
2589
+
2590
+ ._lookup-picker-value-list_vitro-value-list_LSdCMjq ._lookup-picker-value-list_vitro-item_7yZBz5u:hover {
2546
2591
  background: #F3F8FF;
2547
2592
  }
2548
2593
 
@@ -2750,6 +2795,16 @@
2750
2795
  width: 24px;
2751
2796
  height: 24px;
2752
2797
  margin-right: 4px;
2798
+ }
2799
+
2800
+ @media (max-width: 800px) {
2801
+ ._command-menu-button_vitro-command-menu-button_2IiXVbP ._command-menu-button_vitro-icon_1xB4d09 + div {
2802
+ display: none;
2803
+ }
2804
+
2805
+ ._command-menu-button_vitro-command-menu-button_2IiXVbP {
2806
+ min-width: 40px !important;
2807
+ }
2753
2808
  }
2754
2809
  ._command-menu-item_vitro-item_2pVhk23 {
2755
2810
  display: flex;
@@ -2969,12 +3024,31 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
2969
3024
  .vitro-button-context:hover,
2970
3025
  .vitro-button-context:active {
2971
3026
  border-color: #fff !important;
3027
+ }
3028
+
3029
+ @media (max-width: 800px) {
3030
+ ._command-menu-dropdown-button_vitro-command-menu-dropdown-button_2ImIuc3 ._command-menu-dropdown-button_vitro-icon_36InzPx + div {
3031
+ display: none;
3032
+ }
3033
+
3034
+ ._command-menu-dropdown-button_vitro-command-menu-dropdown-button_2ImIuc3 {
3035
+ min-width: 40px !important;
3036
+ }
3037
+
3038
+ li:first-child ._command-menu-dropdown-button_vitro-icon_36InzPx + div {
3039
+ display: block;
3040
+ }
3041
+
3042
+ .vitro-button-context {
3043
+ min-width: 32px !important;
3044
+ width: 32px;
3045
+ }
2972
3046
  }
2973
- a._sidebar-item_vitro-active_7p5iOhY {
3047
+ ._sidebar-item_vitro-active_7p5iOhY {
2974
3048
  background-color: #DCEEFF;
2975
3049
  }
2976
3050
 
2977
- ul > li:last-child > ul > li:last-child a._sidebar-item_vitro-active_7p5iOhY {
3051
+ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
2978
3052
  background-color: transparent;
2979
3053
  }
2980
3054
 
@@ -2993,33 +3067,95 @@ ul > li:last-child > ul > li:last-child a._sidebar-item_vitro-active_7p5iOhY {
2993
3067
  display: none;
2994
3068
  }
2995
3069
 
2996
- a:hover ._sidebar-item_vitro-icon-text_3ROhyLK, a:hover ._sidebar-item_vitro-item-text_1kK_aIZ, a._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-icon-text_3ROhyLK, a._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-item-text_1kK_aIZ {
3070
+ ._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-icon-text_3ROhyLK,
3071
+ ._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-item-text_1kK_aIZ {
2997
3072
  color: #326AD6;
2998
3073
  font-weight: 500;
2999
3074
  font-family: 'InterMedium';
3000
3075
  }
3001
3076
 
3002
- ._sidebar-item_vitro-icon_2B88tow > .vitro-icon-hover {
3003
- display: none;
3077
+ ._sidebar-item_vitro-icon_2B88tow {
3078
+ width: 24px;
3079
+ height: 24px;
3080
+ }
3081
+
3082
+ .toggled.pinned ._sidebar-item_vitro-item_1BR_7F0 a {
3083
+ width: 100%;
3084
+ }
3085
+
3086
+ ._sidebar-item_vitro-item_1BR_7F0 a > div {
3087
+ display: flex;
3088
+ width: -moz-fit-content;
3089
+ width: fit-content;
3090
+ align-items: center;
3004
3091
  }
3005
3092
 
3006
- ._sidebar-item_vitro-icon_2B88tow:hover > .vitro-icon-hover {
3093
+ ._sidebar-item_vitro-item_1BR_7F0 a {
3094
+ text-decoration: none;
3095
+ height: 40px;
3096
+ width: 40px;
3097
+ border-radius: 8px;
3098
+ padding: 8px;
3099
+ cursor: pointer;
3100
+ margin-bottom: 8px;
3007
3101
  display: block;
3008
3102
  }
3009
3103
 
3010
- ._sidebar-item_vitro-icon_2B88tow:hover > .vitro-icon-default {
3011
- display: none;
3104
+ ._sidebar-item_vitro-active_7p5iOhY {
3105
+ background-color: #DCEEFF;
3012
3106
  }
3013
3107
 
3014
- ._sidebar-item_vitro-icon_2B88tow {
3015
- width: 24px;
3016
- height: 24px;
3108
+ .vitro-bottom-menu ._sidebar-item_vitro-item-text_1kK_aIZ {
3109
+ display: block;
3110
+ color: #4A556C;
3111
+ font-size: 12px;
3112
+ line-height: 12px;
3113
+ text-align: center;
3017
3114
  }
3018
3115
 
3019
- .vitro-display-none {
3116
+ .vitro-bottom-menu ._sidebar-item_vitro-icon-text_3ROhyLK {
3020
3117
  display: none;
3118
+ }
3119
+
3120
+ .vitro-bottom-menu ._sidebar-item_vitro-active_7p5iOhY {
3121
+ background: transparent;
3122
+ position: relative;
3123
+ }
3124
+
3125
+ .vitro-bottom-menu ._sidebar-item_vitro-active_7p5iOhY::after {
3126
+ content: '';
3127
+ display: block;
3128
+ position: absolute;
3129
+ height: 2px;
3130
+ border-radius: 2px;
3131
+ background: #4292F7;
3132
+ width: 32px;
3133
+ bottom: -8px;
3134
+ }
3135
+
3136
+ ._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-item-text_1kK_aIZ {
3137
+ color: #4A556C;
3138
+ font-family: 'InterRegular' !important;
3139
+ }
3140
+
3141
+ ._sidebar-item_vitro-item_1BR_7F0 {
3142
+ display: flex;
3143
+ justify-content: center;
3144
+ }
3145
+
3146
+ .vitro-bottom-menu ._sidebar-item_vitro-item_1BR_7F0 > a {
3147
+ background: transparent;
3148
+ position: relative;
3149
+ display: flex;
3150
+ flex-direction: column;
3151
+ align-items: center;
3152
+ justify-content: space-between;
3153
+ width: -moz-fit-content;
3154
+ width: fit-content;
3155
+ height: 100%;
3156
+ padding: 0;
3157
+ margin-bottom: 0;
3021
3158
  }
3022
-
3023
3159
  ._sidebar_vitro-sidebar_1IxGYiU {
3024
3160
  height: 100%;
3025
3161
  position: fixed;
@@ -3057,21 +3193,6 @@ a:hover ._sidebar-item_vitro-icon-text_3ROhyLK, a:hover ._sidebar-item_vitro-ite
3057
3193
  justify-content: space-between;
3058
3194
  }
3059
3195
 
3060
- ._sidebar_vitro-sidebar_1IxGYiU a {
3061
- text-decoration: none;
3062
- height: 40px;
3063
- width: 40px;
3064
- border-radius: 8px;
3065
- padding: 8px;
3066
- cursor: pointer;
3067
- margin-bottom: 8px;
3068
- display: block;
3069
- }
3070
-
3071
- ._sidebar_vitro-sidebar_1IxGYiU a:hover {
3072
- background-color: #DCEEFF;
3073
- }
3074
-
3075
3196
  ._sidebar_vitro-sidebar_1IxGYiU ul > li:last-child > ul > li:last-child a {
3076
3197
  margin-bottom: 0;
3077
3198
  }
@@ -3089,15 +3210,55 @@ a:hover ._sidebar-item_vitro-icon-text_3ROhyLK, a:hover ._sidebar-item_vitro-ite
3089
3210
  font-weight: 400 !important;
3090
3211
  }
3091
3212
 
3092
- .toggled.pinned ._sidebar_vitro-sidebar_1IxGYiU a {
3213
+ .vitro-bottom-menu {
3093
3214
  width: 100%;
3215
+ z-index: 10000;
3216
+ flex-direction: row;
3217
+ height: 60px;
3218
+ padding: 0 21px !important;
3219
+ background: #fff;
3220
+ bottom: 0;
3221
+ top: initial;
3222
+ box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
3223
+ border-radius: 4px 4px 0 0;
3094
3224
  }
3095
3225
 
3096
- ._sidebar_vitro-sidebar_1IxGYiU a > div {
3226
+ .vitro-bottom-menu ul {
3097
3227
  display: flex;
3098
- width: -moz-fit-content;
3099
- width: fit-content;
3100
- align-items: center;
3228
+ flex-direction: row;
3229
+ height: 100%;
3230
+ }
3231
+
3232
+ ._sidebar_vitro-scroll-container_3K-iJy8 {
3233
+ height: 100%;
3234
+ flex: 0 1 auto;
3235
+ overflow: hidden;
3236
+ padding: 8px 0;
3237
+ }
3238
+
3239
+ ._sidebar_vitro-scroll-container_3K-iJy8 > ul {
3240
+ transition: 1s all ease;
3241
+ }
3242
+
3243
+ ._sidebar_vitro-button-more_3s9oZY9 {
3244
+ display: block;
3245
+ width: 40px;
3246
+ height: 40px;
3247
+ min-width: 40px;
3248
+ border: none;
3249
+ background-color: #fff;
3250
+ background-size: 100%;
3251
+ background-position: center;
3252
+ background-repeat: no-repeat;
3253
+ /* bottom-menu-button-more.svg URL-encoder for SVG */
3254
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='20' r='2.5' transform='rotate(-90 10.5 20)' fill='%234A556C'/%3E%3Ccircle cx='20.5' cy='20' r='2.5' transform='rotate(-90 20.5 20)' fill='%234A556C'/%3E%3Ccircle cx='30.5' cy='20' r='2.5' transform='rotate(-90 30.5 20)' fill='%234A556C'/%3E%3C/svg%3E%0A");
3255
+ }
3256
+
3257
+ ._sidebar_vitro-button-more_3s9oZY9:hover,
3258
+ ._sidebar_vitro-button-more_3s9oZY9:active {
3259
+ border: none;
3260
+ background-color: #fff;
3261
+ outline: none;
3101
3262
  }
3102
3263
  ._task-tile_vitro-task-tile_35bZu48 {
3103
3264
  position: relative;
@@ -3493,4 +3654,106 @@ a:hover ._sidebar-item_vitro-icon-text_3ROhyLK, a:hover ._sidebar-item_vitro-ite
3493
3654
  position: absolute;
3494
3655
  bottom: 0;
3495
3656
  right: 0;
3657
+ }
3658
+ ._avatar_vitro-avatar_P2tU-_r {
3659
+ position: relative;
3660
+ border-radius: 50%;
3661
+ border: 0;
3662
+ background: #76AFF8;
3663
+ color: #fff !important;
3664
+ width: 24px;
3665
+ height: 24px;
3666
+ min-width: 24px;
3667
+ text-align: center;
3668
+ font-size: 12px;
3669
+ line-height: 24px;
3670
+ }
3671
+
3672
+ ._avatar_vitro-avatar_P2tU-_r._avatar_vitro-avatar-big_pEmlX3a {
3673
+ width: 32px;
3674
+ min-width: 32px;
3675
+ height: 32px;
3676
+ line-height: 32px;
3677
+ font-size: 16px;
3678
+ }
3679
+
3680
+ ._user-profile_vitro-user-profile_11XpBoQ span {
3681
+ margin-right: 10px;
3682
+ color: #5F6276;
3683
+ font-size: 14px;
3684
+ -webkit-user-select: none;
3685
+ -moz-user-select: none;
3686
+ user-select: none;
3687
+ white-space: nowrap;
3688
+ cursor: pointer;
3689
+ }
3690
+
3691
+ ._user-profile_vitro-user-profile_11XpBoQ > button > div {
3692
+ display: flex;
3693
+ align-items: center;
3694
+ }
3695
+
3696
+ ._user-profile_vitro-user-profile_11XpBoQ .dropdown-toggle {
3697
+ background-color: transparent !important;
3698
+ border: none;
3699
+ padding: 0;
3700
+ }
3701
+
3702
+ ._user-profile_vitro-user-profile_11XpBoQ .dropdown-toggle::after {
3703
+ display: none;
3704
+ }
3705
+
3706
+ ._user-profile_vitro-user-profile_11XpBoQ .dropdown-toggle:active,
3707
+ ._user-profile_vitro-user-profile_11XpBoQ .dropdown-toggle:hover {
3708
+ background: transparent;
3709
+ border: none;
3710
+ outline: none;
3711
+ }
3712
+
3713
+ ._user-profile_vitro-user-profile_11XpBoQ .dropdown-menu {
3714
+ background: #fff;
3715
+ width: -moz-fit-content;
3716
+ width: fit-content;
3717
+ border-radius: 4px;
3718
+ padding: 0;
3719
+ box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.14), 0px 0px 2px 0px rgba(0, 0, 0, 0.10);
3720
+ inset: calc(100% + 5px) 0px auto auto !important;
3721
+ }
3722
+
3723
+ ._user-profile_vitro-user-profile_11XpBoQ .dropdown-menu::before {
3724
+ content: '';
3725
+ display: block;
3726
+ height: 11px;
3727
+ width: 16px;
3728
+ background-position: center;
3729
+ background-size: 100%;
3730
+ background-repeat: no-repeat;
3731
+ position: absolute;
3732
+ right: 8px;
3733
+ top: -11px;
3734
+ /* dropdown-arrow.svg URL-encoder for SVG */
3735
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.31554 1.65838L0.382812 11H15.6249L9.69214 1.65838C8.90651 0.421336 7.10117 0.421335 6.31554 1.65838Z' fill='white'/%3E%3C/svg%3E%0A");
3736
+ }
3737
+
3738
+ ._user-profile_vitro-dropdown-item_dSErsta {
3739
+ cursor: pointer;
3740
+ background: #fff;
3741
+ padding: 8px 12px;
3742
+ font-size: 14px;
3743
+ line-height: 16px;
3744
+ }
3745
+
3746
+ ._user-profile_vitro-dropdown-item_dSErsta:first-child {
3747
+ border-top-left-radius: 4px;
3748
+ border-top-right-radius: 4px;
3749
+ }
3750
+
3751
+ ._user-profile_vitro-dropdown-item_dSErsta:last-child {
3752
+ border-bottom-left-radius: 4px;
3753
+ border-bottom-right-radius: 4px;
3754
+ }
3755
+
3756
+ ._user-profile_vitro-dropdown-item_dSErsta:hover,
3757
+ ._user-profile_vitro-dropdown-item_dSErsta:active {
3758
+ background: #DCEEFF;
3496
3759
  }
package/dist/index.d.ts CHANGED
@@ -49,6 +49,9 @@ import * as ALERT from './controls/Alert/AlertConstants';
49
49
  import { Dialog } from './controls/Dialog/Dialog';
50
50
  import { DialogContent } from './controls/Dialog/DialogContent';
51
51
  import { DialogFooter } from './controls/Dialog/DialogFooter';
52
+ import { Avatar } from './controls/Avatar/Avatar';
53
+ import { UserProfile } from './controls/UserProfile/UserProfile';
54
+ import { UserLookupPicker } from './controls/UserLookupPicker/UserLookupPicker';
52
55
  export { Breadcrumbs };
53
56
  export { TopLevelMenu };
54
57
  export { TreeView, TreeViewContext, TREE_VIEW };
@@ -73,3 +76,6 @@ export { Sidebar, SidebarItem, SidebarSection };
73
76
  export { TaskTile };
74
77
  export { Alert, ALERT };
75
78
  export { Dialog, DialogContent, DialogFooter };
79
+ export { Avatar };
80
+ export { UserProfile };
81
+ export { UserLookupPicker };