@brightspace-ui/core 3.219.5 → 3.219.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.
@@ -2924,9 +2924,9 @@
2924
2924
  "type": "'start'|'end'"
2925
2925
  },
2926
2926
  {
2927
- "name": "boundary",
2928
- "description": "Optionally provide boundaries to where the dropdown will appear. Valid properties are \"above\", \"below\", \"left\", and \"right\".",
2929
- "type": "object"
2927
+ "name": "max-height",
2928
+ "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
2929
+ "type": "number"
2930
2930
  },
2931
2931
  {
2932
2932
  "name": "max-width",
@@ -2934,18 +2934,18 @@
2934
2934
  "type": "number"
2935
2935
  },
2936
2936
  {
2937
- "name": "min-width",
2938
- "description": "Override default min-width (undefined). Specify a number that would be the px value.",
2937
+ "name": "min-height",
2938
+ "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
2939
2939
  "type": "number"
2940
2940
  },
2941
2941
  {
2942
- "name": "max-height",
2943
- "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
2942
+ "name": "min-width",
2943
+ "description": "Override default min-width (undefined). Specify a number that would be the px value.",
2944
2944
  "type": "number"
2945
2945
  },
2946
2946
  {
2947
- "name": "min-height",
2948
- "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
2947
+ "name": "mobile-breakpoint",
2948
+ "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
2949
2949
  "type": "number"
2950
2950
  },
2951
2951
  {
@@ -2953,6 +2953,11 @@
2953
2953
  "description": "Mobile dropdown style.",
2954
2954
  "type": "'left'|'right'|'bottom'"
2955
2955
  },
2956
+ {
2957
+ "name": "no-mobile-close-button",
2958
+ "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
2959
+ "type": "boolean"
2960
+ },
2956
2961
  {
2957
2962
  "name": "vertical-offset",
2958
2963
  "description": "Provide custom offset, positive or negative",
@@ -2982,12 +2987,6 @@
2982
2987
  "type": "boolean",
2983
2988
  "default": "false"
2984
2989
  },
2985
- {
2986
- "name": "no-mobile-close-button",
2987
- "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
2988
- "type": "boolean",
2989
- "default": "false"
2990
- },
2991
2990
  {
2992
2991
  "name": "no-padding",
2993
2992
  "description": "Render with no padding",
@@ -3012,12 +3011,6 @@
3012
3011
  "type": "boolean",
3013
3012
  "default": "false"
3014
3013
  },
3015
- {
3016
- "name": "mobile-breakpoint",
3017
- "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3018
- "type": "number",
3019
- "default": "616"
3020
- },
3021
3014
  {
3022
3015
  "name": "trap-focus",
3023
3016
  "description": "Optionally render a d2l-focus-trap around the dropdown content",
@@ -3033,10 +3026,10 @@
3033
3026
  "type": "'start'|'end'"
3034
3027
  },
3035
3028
  {
3036
- "name": "boundary",
3037
- "attribute": "boundary",
3038
- "description": "Optionally provide boundaries to where the dropdown will appear. Valid properties are \"above\", \"below\", \"left\", and \"right\".",
3039
- "type": "object"
3029
+ "name": "maxHeight",
3030
+ "attribute": "max-height",
3031
+ "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3032
+ "type": "number"
3040
3033
  },
3041
3034
  {
3042
3035
  "name": "maxWidth",
@@ -3045,21 +3038,21 @@
3045
3038
  "type": "number"
3046
3039
  },
3047
3040
  {
3048
- "name": "minWidth",
3049
- "attribute": "min-width",
3050
- "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3041
+ "name": "minHeight",
3042
+ "attribute": "min-height",
3043
+ "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3051
3044
  "type": "number"
3052
3045
  },
3053
3046
  {
3054
- "name": "maxHeight",
3055
- "attribute": "max-height",
3056
- "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3047
+ "name": "minWidth",
3048
+ "attribute": "min-width",
3049
+ "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3057
3050
  "type": "number"
3058
3051
  },
3059
3052
  {
3060
- "name": "minHeight",
3061
- "attribute": "min-height",
3062
- "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3053
+ "name": "mobileBreakpointOverride",
3054
+ "attribute": "mobile-breakpoint",
3055
+ "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3063
3056
  "type": "number"
3064
3057
  },
3065
3058
  {
@@ -3068,6 +3061,12 @@
3068
3061
  "description": "Mobile dropdown style.",
3069
3062
  "type": "'left'|'right'|'bottom'"
3070
3063
  },
3064
+ {
3065
+ "name": "noMobileCloseButton",
3066
+ "attribute": "no-mobile-close-button",
3067
+ "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3068
+ "type": "boolean"
3069
+ },
3071
3070
  {
3072
3071
  "name": "verticalOffset",
3073
3072
  "attribute": "vertical-offset",
@@ -3102,13 +3101,6 @@
3102
3101
  "type": "boolean",
3103
3102
  "default": "false"
3104
3103
  },
3105
- {
3106
- "name": "noMobileCloseButton",
3107
- "attribute": "no-mobile-close-button",
3108
- "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3109
- "type": "boolean",
3110
- "default": "false"
3111
- },
3112
3104
  {
3113
3105
  "name": "noPadding",
3114
3106
  "attribute": "no-padding",
@@ -3137,13 +3129,6 @@
3137
3129
  "type": "boolean",
3138
3130
  "default": "false"
3139
3131
  },
3140
- {
3141
- "name": "mobileBreakpointOverride",
3142
- "attribute": "mobile-breakpoint",
3143
- "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3144
- "type": "number",
3145
- "default": "616"
3146
- },
3147
3132
  {
3148
3133
  "name": "trapFocus",
3149
3134
  "attribute": "trap-focus",
@@ -3300,9 +3285,9 @@
3300
3285
  "type": "'start'|'end'"
3301
3286
  },
3302
3287
  {
3303
- "name": "boundary",
3304
- "description": "Optionally provide boundaries to where the dropdown will appear. Valid properties are \"above\", \"below\", \"left\", and \"right\".",
3305
- "type": "object"
3288
+ "name": "max-height",
3289
+ "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3290
+ "type": "number"
3306
3291
  },
3307
3292
  {
3308
3293
  "name": "max-width",
@@ -3310,18 +3295,18 @@
3310
3295
  "type": "number"
3311
3296
  },
3312
3297
  {
3313
- "name": "min-width",
3314
- "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3298
+ "name": "min-height",
3299
+ "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3315
3300
  "type": "number"
3316
3301
  },
3317
3302
  {
3318
- "name": "max-height",
3319
- "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3303
+ "name": "min-width",
3304
+ "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3320
3305
  "type": "number"
3321
3306
  },
3322
3307
  {
3323
- "name": "min-height",
3324
- "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3308
+ "name": "mobile-breakpoint",
3309
+ "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3325
3310
  "type": "number"
3326
3311
  },
3327
3312
  {
@@ -3329,6 +3314,11 @@
3329
3314
  "description": "Mobile dropdown style.",
3330
3315
  "type": "'left'|'right'|'bottom'"
3331
3316
  },
3317
+ {
3318
+ "name": "no-mobile-close-button",
3319
+ "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3320
+ "type": "boolean"
3321
+ },
3332
3322
  {
3333
3323
  "name": "vertical-offset",
3334
3324
  "description": "Provide custom offset, positive or negative",
@@ -3358,12 +3348,6 @@
3358
3348
  "type": "boolean",
3359
3349
  "default": "true"
3360
3350
  },
3361
- {
3362
- "name": "no-mobile-close-button",
3363
- "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3364
- "type": "boolean",
3365
- "default": "false"
3366
- },
3367
3351
  {
3368
3352
  "name": "no-padding",
3369
3353
  "description": "Render with no padding",
@@ -3388,12 +3372,6 @@
3388
3372
  "type": "boolean",
3389
3373
  "default": "false"
3390
3374
  },
3391
- {
3392
- "name": "mobile-breakpoint",
3393
- "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3394
- "type": "number",
3395
- "default": "616"
3396
- },
3397
3375
  {
3398
3376
  "name": "trap-focus",
3399
3377
  "description": "Optionally render a d2l-focus-trap around the dropdown content",
@@ -3409,10 +3387,10 @@
3409
3387
  "type": "'start'|'end'"
3410
3388
  },
3411
3389
  {
3412
- "name": "boundary",
3413
- "attribute": "boundary",
3414
- "description": "Optionally provide boundaries to where the dropdown will appear. Valid properties are \"above\", \"below\", \"left\", and \"right\".",
3415
- "type": "object"
3390
+ "name": "maxHeight",
3391
+ "attribute": "max-height",
3392
+ "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3393
+ "type": "number"
3416
3394
  },
3417
3395
  {
3418
3396
  "name": "maxWidth",
@@ -3421,21 +3399,21 @@
3421
3399
  "type": "number"
3422
3400
  },
3423
3401
  {
3424
- "name": "minWidth",
3425
- "attribute": "min-width",
3426
- "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3402
+ "name": "minHeight",
3403
+ "attribute": "min-height",
3404
+ "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3427
3405
  "type": "number"
3428
3406
  },
3429
3407
  {
3430
- "name": "maxHeight",
3431
- "attribute": "max-height",
3432
- "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3408
+ "name": "minWidth",
3409
+ "attribute": "min-width",
3410
+ "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3433
3411
  "type": "number"
3434
3412
  },
3435
3413
  {
3436
- "name": "minHeight",
3437
- "attribute": "min-height",
3438
- "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3414
+ "name": "mobileBreakpointOverride",
3415
+ "attribute": "mobile-breakpoint",
3416
+ "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3439
3417
  "type": "number"
3440
3418
  },
3441
3419
  {
@@ -3444,6 +3422,12 @@
3444
3422
  "description": "Mobile dropdown style.",
3445
3423
  "type": "'left'|'right'|'bottom'"
3446
3424
  },
3425
+ {
3426
+ "name": "noMobileCloseButton",
3427
+ "attribute": "no-mobile-close-button",
3428
+ "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3429
+ "type": "boolean"
3430
+ },
3447
3431
  {
3448
3432
  "name": "verticalOffset",
3449
3433
  "attribute": "vertical-offset",
@@ -3478,13 +3462,6 @@
3478
3462
  "type": "boolean",
3479
3463
  "default": "true"
3480
3464
  },
3481
- {
3482
- "name": "noMobileCloseButton",
3483
- "attribute": "no-mobile-close-button",
3484
- "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3485
- "type": "boolean",
3486
- "default": "false"
3487
- },
3488
3465
  {
3489
3466
  "name": "noPadding",
3490
3467
  "attribute": "no-padding",
@@ -3513,13 +3490,6 @@
3513
3490
  "type": "boolean",
3514
3491
  "default": "false"
3515
3492
  },
3516
- {
3517
- "name": "mobileBreakpointOverride",
3518
- "attribute": "mobile-breakpoint",
3519
- "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3520
- "type": "number",
3521
- "default": "616"
3522
- },
3523
3493
  {
3524
3494
  "name": "trapFocus",
3525
3495
  "attribute": "trap-focus",
@@ -3676,9 +3646,9 @@
3676
3646
  "type": "'start'|'end'"
3677
3647
  },
3678
3648
  {
3679
- "name": "boundary",
3680
- "description": "Optionally provide boundaries to where the dropdown will appear. Valid properties are \"above\", \"below\", \"left\", and \"right\".",
3681
- "type": "object"
3649
+ "name": "max-height",
3650
+ "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3651
+ "type": "number"
3682
3652
  },
3683
3653
  {
3684
3654
  "name": "max-width",
@@ -3686,18 +3656,18 @@
3686
3656
  "type": "number"
3687
3657
  },
3688
3658
  {
3689
- "name": "min-width",
3690
- "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3659
+ "name": "min-height",
3660
+ "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3691
3661
  "type": "number"
3692
3662
  },
3693
3663
  {
3694
- "name": "max-height",
3695
- "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3664
+ "name": "min-width",
3665
+ "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3696
3666
  "type": "number"
3697
3667
  },
3698
3668
  {
3699
- "name": "min-height",
3700
- "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3669
+ "name": "mobile-breakpoint",
3670
+ "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3701
3671
  "type": "number"
3702
3672
  },
3703
3673
  {
@@ -3705,6 +3675,11 @@
3705
3675
  "description": "Mobile dropdown style.",
3706
3676
  "type": "'left'|'right'|'bottom'"
3707
3677
  },
3678
+ {
3679
+ "name": "no-mobile-close-button",
3680
+ "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3681
+ "type": "boolean"
3682
+ },
3708
3683
  {
3709
3684
  "name": "vertical-offset",
3710
3685
  "description": "Provide custom offset, positive or negative",
@@ -3734,12 +3709,6 @@
3734
3709
  "type": "boolean",
3735
3710
  "default": "false"
3736
3711
  },
3737
- {
3738
- "name": "no-mobile-close-button",
3739
- "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3740
- "type": "boolean",
3741
- "default": "false"
3742
- },
3743
3712
  {
3744
3713
  "name": "no-padding",
3745
3714
  "description": "Render with no padding",
@@ -3764,12 +3733,6 @@
3764
3733
  "type": "boolean",
3765
3734
  "default": "false"
3766
3735
  },
3767
- {
3768
- "name": "mobile-breakpoint",
3769
- "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3770
- "type": "number",
3771
- "default": "616"
3772
- },
3773
3736
  {
3774
3737
  "name": "trap-focus",
3775
3738
  "description": "Optionally render a d2l-focus-trap around the dropdown content",
@@ -3785,10 +3748,10 @@
3785
3748
  "type": "'start'|'end'"
3786
3749
  },
3787
3750
  {
3788
- "name": "boundary",
3789
- "attribute": "boundary",
3790
- "description": "Optionally provide boundaries to where the dropdown will appear. Valid properties are \"above\", \"below\", \"left\", and \"right\".",
3791
- "type": "object"
3751
+ "name": "maxHeight",
3752
+ "attribute": "max-height",
3753
+ "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3754
+ "type": "number"
3792
3755
  },
3793
3756
  {
3794
3757
  "name": "maxWidth",
@@ -3797,21 +3760,21 @@
3797
3760
  "type": "number"
3798
3761
  },
3799
3762
  {
3800
- "name": "minWidth",
3801
- "attribute": "min-width",
3802
- "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3763
+ "name": "minHeight",
3764
+ "attribute": "min-height",
3765
+ "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3803
3766
  "type": "number"
3804
3767
  },
3805
3768
  {
3806
- "name": "maxHeight",
3807
- "attribute": "max-height",
3808
- "description": "Override max-height. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3769
+ "name": "minWidth",
3770
+ "attribute": "min-width",
3771
+ "description": "Override default min-width (undefined). Specify a number that would be the px value.",
3809
3772
  "type": "number"
3810
3773
  },
3811
3774
  {
3812
- "name": "minHeight",
3813
- "attribute": "min-height",
3814
- "description": "Override default height used for required space when `no-auto-fit` is true. Specify a number that would be the px value. Note that the default behaviour is to be as tall as necessary within the viewport, so this property is usually not needed.",
3775
+ "name": "mobileBreakpointOverride",
3776
+ "attribute": "mobile-breakpoint",
3777
+ "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3815
3778
  "type": "number"
3816
3779
  },
3817
3780
  {
@@ -3820,6 +3783,12 @@
3820
3783
  "description": "Mobile dropdown style.",
3821
3784
  "type": "'left'|'right'|'bottom'"
3822
3785
  },
3786
+ {
3787
+ "name": "noMobileCloseButton",
3788
+ "attribute": "no-mobile-close-button",
3789
+ "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3790
+ "type": "boolean"
3791
+ },
3823
3792
  {
3824
3793
  "name": "verticalOffset",
3825
3794
  "attribute": "vertical-offset",
@@ -3854,13 +3823,6 @@
3854
3823
  "type": "boolean",
3855
3824
  "default": "false"
3856
3825
  },
3857
- {
3858
- "name": "noMobileCloseButton",
3859
- "attribute": "no-mobile-close-button",
3860
- "description": "Opt-out of showing a close button in the footer of tray-style mobile dropdowns.",
3861
- "type": "boolean",
3862
- "default": "false"
3863
- },
3864
3826
  {
3865
3827
  "name": "noPadding",
3866
3828
  "attribute": "no-padding",
@@ -3889,13 +3851,6 @@
3889
3851
  "type": "boolean",
3890
3852
  "default": "false"
3891
3853
  },
3892
- {
3893
- "name": "mobileBreakpointOverride",
3894
- "attribute": "mobile-breakpoint",
3895
- "description": "Override the breakpoint at which mobile styling is used. Defaults to 616px.",
3896
- "type": "number",
3897
- "default": "616"
3898
- },
3899
3854
  {
3900
3855
  "name": "trapFocus",
3901
3856
  "attribute": "trap-focus",
package/helpers/README.md CHANGED
@@ -296,17 +296,3 @@ import '@brightspace-ui/core/helpers/viewport-size.js';
296
296
  min-width: calc(var(--d2l-vw, 1vw) * 100);
297
297
  }
298
298
  ```
299
-
300
- ## Visual Ready
301
-
302
- A helper for determining that the page is visually "ready" (i.e., necessary pieces are loaded) and calculations can be done. Currently it handles waiting for fonts to be ready, but going forward it can have other pieces added as needed. This is useful in places like the tooltip, where the fonts being loaded has an impact on the tooltip position calculation.
303
-
304
- Example usage within a component:
305
- ```javascript
306
- import { visualReady } from '../../helpers/visualReady.js';
307
-
308
- async getUpdateComplete() {
309
- await super.getUpdateComplete();
310
- await visualReady;
311
- }
312
- ```