lightning-base-components 1.18.7-alpha → 1.18.8-alpha
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/metadata/raptor.json +32 -9
- package/package.json +1 -1
- package/src/lightning/accordion/accordion.slds.css +26 -20
- package/src/lightning/accordionSection/accordion-section.slds.css +20 -14
- package/src/lightning/avatar/avatar.slds.css +10 -10
- package/src/lightning/baseCombobox/base-combobox.slds.css +23 -23
- package/src/lightning/baseCombobox/baseCombobox.css +1 -2
- package/src/lightning/baseCombobox/baseCombobox.html +7 -11
- package/src/lightning/baseCombobox/baseCombobox.js +84 -36
- package/src/lightning/breadcrumb/breadcrumb.js +4 -2
- package/src/lightning/breadcrumb/breadcrumb.slds.css +3 -3
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +5 -5
- package/src/lightning/button/button.slds.css +8 -2
- package/src/lightning/buttonGroup/button-group.slds.css +5 -5
- package/src/lightning/buttonIcon/button-icon.slds.css +9 -3
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +15 -9
- package/src/lightning/buttonMenu/button-menu.slds.css +13 -7
- package/src/lightning/buttonStateful/button-stateful.slds.css +11 -5
- package/src/lightning/calendar/calendar.js +15 -23
- package/src/lightning/calendar/calendar.slds.css +29 -23
- package/src/lightning/card/card.slds.css +68 -68
- package/src/lightning/combobox/combobox.slds.css +1 -1
- package/src/lightning/combobox/form-element.slds.css +8 -0
- package/src/lightning/datatable/datatable.js +4 -0
- package/src/lightning/datatable/keyboard.js +8 -4
- package/src/lightning/datatable/sort.js +1 -1
- package/src/lightning/datepicker/datepicker.js +1 -1
- package/src/lightning/datepicker/form-element.slds.css +8 -0
- package/src/lightning/datepicker/input-text.slds.css +23 -23
- package/src/lightning/datetimepicker/form-element.slds.css +8 -0
- package/src/lightning/datetimepicker/input-text.slds.css +23 -23
- package/src/lightning/dualListbox/form-element.slds.css +8 -0
- package/src/lightning/f6Controller/f6Controller.js +31 -22
- package/src/lightning/formattedDateTime/formattedDateTime.js +1 -1
- package/src/lightning/groupedCombobox/groupedCombobox.html +4 -0
- package/src/lightning/groupedCombobox/groupedCombobox.js +3 -2
- package/src/lightning/helptext/form-element.slds.css +8 -0
- package/src/lightning/helptext/help-text.slds.css +10 -4
- package/src/lightning/icon/icon.js +5 -1
- package/src/lightning/icon/icon.slds.css +3 -3
- package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.css +6 -0
- package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.html +2 -1
- package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.js +1 -1
- package/src/lightning/input/__examples__/number/number.html +0 -5
- package/src/lightning/input/form-element.slds.css +8 -0
- package/src/lightning/input/input.css +0 -2
- package/src/lightning/input/input.html +149 -239
- package/src/lightning/input/input.js +221 -539
- package/src/lightning/inputUtils/inputUtils.js +15 -20
- package/src/lightning/inputUtils/normalize.js +7 -0
- package/src/lightning/{input/numberUtil.js → inputUtils/number.js} +1 -1
- package/src/lightning/inputUtils/utils.js +18 -0
- package/src/lightning/layout/layout.js +1 -0
- package/src/lightning/layoutItem/layoutItem.js +1 -0
- package/src/lightning/modal/__docs__/modal.md +102 -3
- package/src/lightning/pill/avatar.slds.css +10 -10
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +9 -9
- package/src/lightning/primitiveIcon/icon.slds.css +3 -3
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +289 -0
- package/src/lightning/{input → primitiveInputCheckbox}/input-checkbox.slds.css +18 -18
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.css +3 -0
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.html +48 -0
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.js +139 -0
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +289 -0
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +126 -0
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.css +6 -0
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.html +24 -0
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.js +176 -0
- package/src/lightning/primitiveInputColor/form-element.slds.css +289 -0
- package/src/lightning/primitiveInputColor/input-color.slds.css +35 -0
- package/src/lightning/{input → primitiveInputColor}/input-text.slds.css +23 -23
- package/src/lightning/primitiveInputColor/primitiveInputColor.css +4 -0
- package/src/lightning/primitiveInputColor/primitiveInputColor.html +50 -0
- package/src/lightning/primitiveInputColor/primitiveInputColor.js +184 -0
- package/src/lightning/primitiveInputFile/button.slds.css +533 -0
- package/src/lightning/primitiveInputFile/form-element.slds.css +289 -0
- package/src/lightning/primitiveInputFile/input-file.slds.css +62 -0
- package/src/lightning/primitiveInputFile/primitiveInputFile.css +5 -0
- package/src/lightning/primitiveInputFile/primitiveInputFile.html +45 -0
- package/src/lightning/primitiveInputFile/primitiveInputFile.js +111 -0
- package/src/lightning/primitiveInputRadio/primitiveInputRadio.html +24 -0
- package/src/lightning/primitiveInputRadio/primitiveInputRadio.js +103 -0
- package/src/lightning/primitiveInputSimple/form-element.slds.css +289 -0
- package/src/lightning/primitiveInputSimple/input-text.slds.css +398 -0
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.css +9 -0
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.html +65 -0
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.js +585 -0
- package/src/lightning/primitiveInputToggle/form-element.slds.css +289 -0
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +170 -0
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.css +3 -0
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.html +34 -0
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.js +164 -0
- package/src/lightning/radioGroup/input-radio-group.slds.css +57 -57
- package/src/lightning/select/form-element.slds.css +8 -0
- package/src/lightning/select/select.js +1 -0
- package/src/lightning/select/select.slds.css +30 -22
- package/src/lightning/sldsCommon/sldsCommon.css +21 -0
- package/src/lightning/spinner/spinner.js +8 -4
- package/src/lightning/spinner/spinner.slds.css +34 -34
- package/src/lightning/tab/tab.css +2 -0
- package/src/lightning/tab/tab.js +37 -14
- package/src/lightning/tab/tab.slds.css +47 -0
- package/src/lightning/tabBar/tab-bar.slds.css +5 -5
- package/src/lightning/tabset/tabset.css +10 -0
- package/src/lightning/tabset/tabset.js +31 -7
- package/src/lightning/timepicker/form-element.slds.css +8 -0
- package/src/lightning/toast/button-icon.slds.css +9 -3
- package/src/lightning/toast/icon.slds.css +3 -3
- package/src/lightning/verticalNavigation/vertical-navigation.slds.css +1 -1
- package/src/lightning/baseCombobox/spinner.slds.css +0 -438
- /package/src/lightning/{input/emailUtil.js → inputUtils/email.js} +0 -0
- /package/src/lightning/{input → primitiveInputSimple}/normalize.js +0 -0
- /package/src/lightning/{input → primitiveInputSimple}/selection.js +0 -0
package/metadata/raptor.json
CHANGED
|
@@ -1365,6 +1365,12 @@
|
|
|
1365
1365
|
"groupedCombobox": {
|
|
1366
1366
|
"slotNames": [],
|
|
1367
1367
|
"properties": [
|
|
1368
|
+
{
|
|
1369
|
+
"name": "customAriaHasPopup"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"name": "customRole"
|
|
1373
|
+
},
|
|
1368
1374
|
{
|
|
1369
1375
|
"name": "disableDefaultHighlight"
|
|
1370
1376
|
},
|
|
@@ -1555,6 +1561,7 @@
|
|
|
1555
1561
|
"industriesActionablelistApi": {},
|
|
1556
1562
|
"industriesAssessmentApi": {},
|
|
1557
1563
|
"industriesAuditTrailExportApi": {},
|
|
1564
|
+
"industriesAutomotiveApi": {},
|
|
1558
1565
|
"industriesCibApi": {},
|
|
1559
1566
|
"industriesClmApi": {},
|
|
1560
1567
|
"industriesContextApi": {},
|
|
@@ -1570,13 +1577,16 @@
|
|
|
1570
1577
|
"industriesExplainabilityApi": {},
|
|
1571
1578
|
"industriesExternalDocumentApi": {},
|
|
1572
1579
|
"industriesFeatureValidationApi": {},
|
|
1580
|
+
"industriesFieldsetApi": {},
|
|
1573
1581
|
"industriesFundraisingApi": {},
|
|
1574
1582
|
"industriesGroupApi": {},
|
|
1575
1583
|
"industriesHealthcloudApi": {},
|
|
1576
1584
|
"industriesHealthcloudHpiApi": {},
|
|
1577
1585
|
"industriesIdentityVerificationApi": {},
|
|
1586
|
+
"industriesInstantPricingApi": {},
|
|
1578
1587
|
"industriesInterestTaggingApi": {},
|
|
1579
1588
|
"industriesLoyaltyEngineApi": {},
|
|
1589
|
+
"industriesMaterialityAssessmentCalculateApi": {},
|
|
1580
1590
|
"industriesPricingApi": {},
|
|
1581
1591
|
"industriesPublicSectorApi": {},
|
|
1582
1592
|
"industriesRcgTenantmanagementApi": {},
|
|
@@ -2599,6 +2609,12 @@
|
|
|
2599
2609
|
},
|
|
2600
2610
|
{
|
|
2601
2611
|
"name": "focus"
|
|
2612
|
+
},
|
|
2613
|
+
{
|
|
2614
|
+
"name": "reportValidity"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"name": "setCustomValidity"
|
|
2602
2618
|
}
|
|
2603
2619
|
]
|
|
2604
2620
|
},
|
|
@@ -2827,6 +2843,10 @@
|
|
|
2827
2843
|
"platformShowToastEvent": {
|
|
2828
2844
|
"minVersion": "45.0"
|
|
2829
2845
|
},
|
|
2846
|
+
"platformWorkspaceApi": {
|
|
2847
|
+
"minVersion": "59.0"
|
|
2848
|
+
},
|
|
2849
|
+
"platformWorkspaceApiUtils": {},
|
|
2830
2850
|
"popup": {
|
|
2831
2851
|
"slotNames": [
|
|
2832
2852
|
""
|
|
@@ -3160,14 +3180,23 @@
|
|
|
3160
3180
|
{
|
|
3161
3181
|
"name": "label"
|
|
3162
3182
|
},
|
|
3183
|
+
{
|
|
3184
|
+
"name": "matchingInfo"
|
|
3185
|
+
},
|
|
3163
3186
|
{
|
|
3164
3187
|
"name": "objectApiName"
|
|
3165
3188
|
},
|
|
3166
3189
|
{
|
|
3167
3190
|
"name": "placeholder"
|
|
3168
3191
|
},
|
|
3192
|
+
{
|
|
3193
|
+
"name": "required"
|
|
3194
|
+
},
|
|
3169
3195
|
{
|
|
3170
3196
|
"name": "value"
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
"name": "variant"
|
|
3171
3200
|
}
|
|
3172
3201
|
],
|
|
3173
3202
|
"methods": [
|
|
@@ -3179,19 +3208,12 @@
|
|
|
3179
3208
|
},
|
|
3180
3209
|
{
|
|
3181
3210
|
"name": "focus"
|
|
3182
|
-
}
|
|
3183
|
-
]
|
|
3184
|
-
},
|
|
3185
|
-
"recordPickerGetRecord": {
|
|
3186
|
-
"properties": [
|
|
3187
|
-
{
|
|
3188
|
-
"name": "displayInfo"
|
|
3189
3211
|
},
|
|
3190
3212
|
{
|
|
3191
|
-
"name": "
|
|
3213
|
+
"name": "reportValidity"
|
|
3192
3214
|
},
|
|
3193
3215
|
{
|
|
3194
|
-
"name": "
|
|
3216
|
+
"name": "setCustomValidity"
|
|
3195
3217
|
}
|
|
3196
3218
|
]
|
|
3197
3219
|
},
|
|
@@ -3418,6 +3440,7 @@
|
|
|
3418
3440
|
}
|
|
3419
3441
|
]
|
|
3420
3442
|
},
|
|
3443
|
+
"serviceDataCategoryApi": {},
|
|
3421
3444
|
"showToastEvent": {},
|
|
3422
3445
|
"sitesApi": {},
|
|
3423
3446
|
"slider": {
|
package/package.json
CHANGED
|
@@ -484,14 +484,20 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
484
484
|
justify-content: center;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Represents inner spacing around icon for icon-position="left", when present
|
|
489
|
+
*/
|
|
487
490
|
:host([data-render-mode="shadow"]) [part~='start'] {
|
|
488
491
|
display: inline-flex;
|
|
489
|
-
padding-inline-end:
|
|
492
|
+
padding-inline-end: 0;
|
|
490
493
|
}
|
|
491
494
|
|
|
495
|
+
/**
|
|
496
|
+
* Represents inner spacing around icon for icon-position="right", when present
|
|
497
|
+
*/
|
|
492
498
|
:host([data-render-mode="shadow"]) [part~='end'] {
|
|
493
499
|
display: inline-flex;
|
|
494
|
-
padding-inline-start:
|
|
500
|
+
padding-inline-start: 0;
|
|
495
501
|
}
|
|
496
502
|
}
|
|
497
503
|
|
|
@@ -537,7 +543,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
537
543
|
border-top-color: var(--slds-c-accordionsection-color-border, var(--slds-g-color-border-base-1));
|
|
538
544
|
}
|
|
539
545
|
|
|
540
|
-
:host([data-render-mode="shadow"]) [part
|
|
546
|
+
:host([data-render-mode="shadow"]) [part="accordion-section"] {
|
|
541
547
|
padding-block-start: var(--slds-c-accordionsection-spacing-block-start, var(--sds-g-spacing-3, 0.75rem));
|
|
542
548
|
padding-block-end: var(--slds-c-accordionsection-spacing-block-end, var(--sds-g-spacing-3, 0.75rem));
|
|
543
549
|
padding-inline-end: var(--slds-c-accordionsection-spacing-inline-end, var(--sds-g-spacing-3, 0.75rem));
|
|
@@ -577,11 +583,11 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
577
583
|
box-shadow: none;
|
|
578
584
|
}
|
|
579
585
|
|
|
580
|
-
/* Note:
|
|
581
|
-
Currently button is being hard coded so using
|
|
582
|
-
[part
|
|
586
|
+
/* Note:
|
|
587
|
+
Currently button is being hard coded so using
|
|
588
|
+
[part="button"] to style button.
|
|
583
589
|
However this should be changed to lightning-button::part(button) once hard coded button gets refactored to lightning-button */
|
|
584
|
-
:host([data-render-mode="shadow"]) [part
|
|
590
|
+
:host([data-render-mode="shadow"]) [part="button"] {
|
|
585
591
|
display: inline-flex;
|
|
586
592
|
flex-grow: 1;
|
|
587
593
|
align-items: center;
|
|
@@ -602,20 +608,20 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
602
608
|
padding-inline-end: var(--slds-c-accordionsection-spacing-inline-end, var(--sds-g-sizing-4, 0.75rem));
|
|
603
609
|
padding-inline-start: var(--slds-c-accordionsection-spacing-inline-start, var(--sds-g-sizing-4, 0.75rem));
|
|
604
610
|
}
|
|
605
|
-
|
|
606
|
-
/* Note:
|
|
607
|
-
Should be changed to lightning-button::part(button)
|
|
611
|
+
|
|
612
|
+
/* Note:
|
|
613
|
+
Should be changed to lightning-button::part(button)
|
|
608
614
|
if button can be refactored to slds-button
|
|
609
615
|
*/
|
|
610
|
-
:host([data-render-mode="shadow"]) [part
|
|
611
|
-
[part
|
|
616
|
+
:host([data-render-mode="shadow"]) [part="button"]:hover,:host([data-render-mode="shadow"])
|
|
617
|
+
[part="button"]:focus {
|
|
612
618
|
--slds-c-icon-color-foreground-default: var(--slds-c-accordion-heading-color-hover, var(--sds-g-color-brand-base-30, #014486));
|
|
613
619
|
|
|
614
620
|
color: var(--slds-c-accordion-heading-color-hover, var(--sds-g-color-brand-base-30, #014486));
|
|
615
621
|
}
|
|
616
622
|
|
|
617
|
-
/* Note:
|
|
618
|
-
Media query will need to be worked out properly
|
|
623
|
+
/* Note:
|
|
624
|
+
Media query will need to be worked out properly
|
|
619
625
|
and be replaced with utility classes */
|
|
620
626
|
@media (min-width: 64.0625em) {
|
|
621
627
|
:host([data-render-mode="shadow"]) .slds-accordion__summary-content {
|
|
@@ -646,21 +652,21 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
646
652
|
}
|
|
647
653
|
|
|
648
654
|
@supports (--styling-hooks: '') {
|
|
649
|
-
/* To Do:
|
|
655
|
+
/* To Do:
|
|
650
656
|
Currently the code below will not work as our script to add data-render-mode into our css will break the css selector.
|
|
651
657
|
We had to add a temporary fix in interop/accordion/accordion.css that
|
|
652
658
|
does the exact same thing to have the styles applied.
|
|
653
|
-
Once our script is fixed (should be addressed in W-12439890) remove the duplicated code found in accordion.css (interop)
|
|
659
|
+
Once our script is fixed (should be addressed in W-12439890) remove the duplicated code found in accordion.css (interop)
|
|
654
660
|
*/
|
|
655
|
-
|
|
661
|
+
|
|
656
662
|
/* Removes first child border top */
|
|
657
663
|
:host([data-render-mode="shadow"]) ::slotted(lightning-accordion-section:first-child) {
|
|
658
664
|
--slds-c-accordionsection-sizing-border: 0;
|
|
659
665
|
}
|
|
660
666
|
|
|
661
|
-
:host([data-render-mode="shadow"]) [part
|
|
662
|
-
/* Note: The following styling hooks are remapped from accordion-section for usability reason.
|
|
663
|
-
Users will have an option to use spacing styling hooks from both accordion and accordion-section making it
|
|
667
|
+
:host([data-render-mode="shadow"]) [part="accordion"] {
|
|
668
|
+
/* Note: The following styling hooks are remapped from accordion-section for usability reason.
|
|
669
|
+
Users will have an option to use spacing styling hooks from both accordion and accordion-section making it
|
|
664
670
|
easier to use our styling hook based on our internal styling hook naming rules */
|
|
665
671
|
--slds-c-accordionsection-spacing-block-start: var(--slds-c-accordion-spacing-block-start);
|
|
666
672
|
--slds-c-accordionsection-spacing-block-end: var(--slds-c-accordion-spacing-block-end);
|
|
@@ -484,14 +484,20 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
484
484
|
justify-content: center;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Represents inner spacing around icon for icon-position="left", when present
|
|
489
|
+
*/
|
|
487
490
|
:host([data-render-mode="shadow"]) [part~='start'] {
|
|
488
491
|
display: inline-flex;
|
|
489
|
-
padding-inline-end:
|
|
492
|
+
padding-inline-end: 0;
|
|
490
493
|
}
|
|
491
494
|
|
|
495
|
+
/**
|
|
496
|
+
* Represents inner spacing around icon for icon-position="right", when present
|
|
497
|
+
*/
|
|
492
498
|
:host([data-render-mode="shadow"]) [part~='end'] {
|
|
493
499
|
display: inline-flex;
|
|
494
|
-
padding-inline-start:
|
|
500
|
+
padding-inline-start: 0;
|
|
495
501
|
}
|
|
496
502
|
}
|
|
497
503
|
|
|
@@ -537,7 +543,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
537
543
|
border-top-color: var(--slds-c-accordionsection-color-border, var(--slds-g-color-border-base-1));
|
|
538
544
|
}
|
|
539
545
|
|
|
540
|
-
:host([data-render-mode="shadow"]) [part
|
|
546
|
+
:host([data-render-mode="shadow"]) [part="accordion-section"] {
|
|
541
547
|
padding-block-start: var(--slds-c-accordionsection-spacing-block-start, var(--sds-g-spacing-3, 0.75rem));
|
|
542
548
|
padding-block-end: var(--slds-c-accordionsection-spacing-block-end, var(--sds-g-spacing-3, 0.75rem));
|
|
543
549
|
padding-inline-end: var(--slds-c-accordionsection-spacing-inline-end, var(--sds-g-spacing-3, 0.75rem));
|
|
@@ -577,11 +583,11 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
577
583
|
box-shadow: none;
|
|
578
584
|
}
|
|
579
585
|
|
|
580
|
-
/* Note:
|
|
581
|
-
Currently button is being hard coded so using
|
|
582
|
-
[part
|
|
586
|
+
/* Note:
|
|
587
|
+
Currently button is being hard coded so using
|
|
588
|
+
[part="button"] to style button.
|
|
583
589
|
However this should be changed to lightning-button::part(button) once hard coded button gets refactored to lightning-button */
|
|
584
|
-
:host([data-render-mode="shadow"]) [part
|
|
590
|
+
:host([data-render-mode="shadow"]) [part="button"] {
|
|
585
591
|
display: inline-flex;
|
|
586
592
|
flex-grow: 1;
|
|
587
593
|
align-items: center;
|
|
@@ -602,20 +608,20 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
602
608
|
padding-inline-end: var(--slds-c-accordionsection-spacing-inline-end, var(--sds-g-sizing-4, 0.75rem));
|
|
603
609
|
padding-inline-start: var(--slds-c-accordionsection-spacing-inline-start, var(--sds-g-sizing-4, 0.75rem));
|
|
604
610
|
}
|
|
605
|
-
|
|
606
|
-
/* Note:
|
|
607
|
-
Should be changed to lightning-button::part(button)
|
|
611
|
+
|
|
612
|
+
/* Note:
|
|
613
|
+
Should be changed to lightning-button::part(button)
|
|
608
614
|
if button can be refactored to slds-button
|
|
609
615
|
*/
|
|
610
|
-
:host([data-render-mode="shadow"]) [part
|
|
611
|
-
[part
|
|
616
|
+
:host([data-render-mode="shadow"]) [part="button"]:hover,:host([data-render-mode="shadow"])
|
|
617
|
+
[part="button"]:focus {
|
|
612
618
|
--slds-c-icon-color-foreground-default: var(--slds-c-accordion-heading-color-hover, var(--sds-g-color-brand-base-30, #014486));
|
|
613
619
|
|
|
614
620
|
color: var(--slds-c-accordion-heading-color-hover, var(--sds-g-color-brand-base-30, #014486));
|
|
615
621
|
}
|
|
616
622
|
|
|
617
|
-
/* Note:
|
|
618
|
-
Media query will need to be worked out properly
|
|
623
|
+
/* Note:
|
|
624
|
+
Media query will need to be worked out properly
|
|
619
625
|
and be replaced with utility classes */
|
|
620
626
|
@media (min-width: 64.0625em) {
|
|
621
627
|
:host([data-render-mode="shadow"]) .slds-accordion__summary-content {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
--slds-c-icon-color-foreground: var(--sds-g-color-neutral-base-70, #aeaeae);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
:host([data-render-mode="shadow"]) [part
|
|
47
|
+
:host([data-render-mode="shadow"]) [part='boundary'] {
|
|
48
48
|
/* --sds-c-icon-color-background: var(--slds-c-icon-color-background); */
|
|
49
49
|
--sds-c-icon-radius-border: var(--slds-c-icon-radius-border, var(--sds-g-radius-border-2, 0.25rem));
|
|
50
50
|
--sds-c-icon-sizing-border: var(--slds-c-icon-sizing-border);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
display: inline-flex;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
:host([data-render-mode="shadow"]) [part
|
|
77
|
+
:host([data-render-mode="shadow"]) [part='icon'] {
|
|
78
78
|
--sds-c-icon-color-foreground: var(--slds-c-icon-color-foreground, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
79
79
|
--sds-c-icon-sizing-height: var(--slds-c-icon-sizing-height, var(--slds-c-icon-sizing, var(--sds-g-sizing-9, 2rem)));
|
|
80
80
|
--sds-c-icon-sizing-width: var(--slds-c-icon-sizing-width, var(--slds-c-icon-sizing, var(--sds-g-sizing-9, 2rem)));
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
|
|
160
160
|
:host([data-render-mode="shadow"]) .slds-input__icon {
|
|
161
161
|
--slds-c-icon-sizing: calc(var(--sds-g-sizing-1, 0.125rem) + var(--sds-g-sizing-4, 0.75rem));
|
|
162
|
-
|
|
162
|
+
|
|
163
163
|
position: absolute;
|
|
164
164
|
top: 50%;
|
|
165
165
|
margin-block-start: -0.4375rem;
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
white-space: nowrap !important;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
:host([data-render-mode="shadow"]) [part
|
|
188
|
+
:host([data-render-mode="shadow"]) [part='avatar'] {
|
|
189
189
|
width: var(--slds-c-avatar-sizing, var(--sds-g-sizing-9, 2rem));
|
|
190
190
|
height: var(--slds-c-avatar-sizing, var(--sds-g-sizing-9, 2rem));
|
|
191
191
|
overflow: hidden;
|
|
@@ -197,28 +197,28 @@
|
|
|
197
197
|
color: var(--slds-c-avatar-text-color, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
:host([data-render-mode="shadow"][size='x-small']) [part
|
|
200
|
+
:host([data-render-mode="shadow"][size='x-small']) [part='avatar'] {
|
|
201
201
|
width: var(--sds-g-sizing-6, 1.25rem);
|
|
202
202
|
height: var(--sds-g-sizing-6, 1.25rem);
|
|
203
203
|
font-size: var(--sds-g-font-scale-neg-4, 0.625rem);
|
|
204
204
|
--slds-c-icon-sizing: var(--sds-g-sizing-6, 1.25rem);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
:host([data-render-mode="shadow"][size='small']) [part
|
|
207
|
+
:host([data-render-mode="shadow"][size='small']) [part='avatar'] {
|
|
208
208
|
width: var(--sds-g-sizing-7, 1.5rem);
|
|
209
209
|
height: var(--sds-g-sizing-7, 1.5rem);
|
|
210
210
|
font-size: var(--sds-g-font-scale-neg-4, 0.625rem);
|
|
211
211
|
--slds-c-icon-sizing: var(--sds-g-sizing-7, 1.5rem);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
:host([data-render-mode="shadow"][size='medium']) [part
|
|
214
|
+
:host([data-render-mode="shadow"][size='medium']) [part='avatar'] {
|
|
215
215
|
width: var(--sds-g-sizing-9, 2rem);
|
|
216
216
|
height: var(--sds-g-sizing-9, 2rem);
|
|
217
217
|
font-size: var(--sds-g-font-scale-neg-1, 0.875rem);
|
|
218
218
|
--slds-c-icon-sizing: var(--sds-g-sizing-9, 2rem);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
:host([data-render-mode="shadow"][size='large']) [part
|
|
221
|
+
:host([data-render-mode="shadow"][size='large']) [part='avatar'] {
|
|
222
222
|
width: var(--sds-g-sizing-10, 3rem);
|
|
223
223
|
height: var(--sds-g-sizing-10, 3rem);
|
|
224
224
|
font-size: var(--sds-g-font-scale-1, 1.125rem);
|
|
@@ -226,11 +226,11 @@
|
|
|
226
226
|
--slds-c-icon-sizing: var(--sds-g-sizing-10, 3rem);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
:host([data-render-mode="shadow"][variant='circle']) [part
|
|
229
|
+
:host([data-render-mode="shadow"][variant='circle']) [part='avatar'] {
|
|
230
230
|
border-radius: calc(var(--sds-g-radius-border-circle, 100%) / 2);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
:host([data-render-mode="shadow"].slds-avatar_empty) [part
|
|
233
|
+
:host([data-render-mode="shadow"].slds-avatar_empty) [part='avatar'] {
|
|
234
234
|
border: var(--sds-g-sizing-border-1, 1px) dashed var(--sds-g-color-neutral-base-90, #e5e5e5);
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -872,7 +872,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
872
872
|
/**
|
|
873
873
|
* Input Text
|
|
874
874
|
*/
|
|
875
|
-
:host([data-render-mode="shadow"]) [part
|
|
875
|
+
:host([data-render-mode="shadow"]) [part='input-text'] {
|
|
876
876
|
/* Host reassignments to composed slds-icon */
|
|
877
877
|
--slds-c-icon-color-foreground: var(
|
|
878
878
|
--slds-c-inputtext-icon-color-foreground,
|
|
@@ -918,23 +918,23 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
918
918
|
/**
|
|
919
919
|
* Input Container
|
|
920
920
|
*/
|
|
921
|
-
:host([data-render-mode="shadow"]) [part
|
|
921
|
+
:host([data-render-mode="shadow"]) [part='input-container'] {
|
|
922
922
|
flex: 1 0 100%;
|
|
923
923
|
align-items: stretch;
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
:host([data-render-mode="shadow"]) [part
|
|
926
|
+
:host([data-render-mode="shadow"]) [part='input-container'][type~='range'] {
|
|
927
927
|
border: none;
|
|
928
928
|
display: inline-block;
|
|
929
929
|
}
|
|
930
930
|
|
|
931
|
-
:host([data-render-mode="shadow"]) [part
|
|
931
|
+
:host([data-render-mode="shadow"]) [part='input'][type~='range'] {
|
|
932
932
|
min-height: calc(1.875rem + (1px * 2));
|
|
933
933
|
margin: 0;
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
:host([data-render-mode="shadow"]) [part
|
|
937
|
-
[part
|
|
936
|
+
:host([data-render-mode="shadow"]) [part='input-container'][type~='range']:focus-within,:host([data-render-mode="shadow"])
|
|
937
|
+
[part='input-container'][type~='range']:active {
|
|
938
938
|
--sds-c-inputtext-color-border: var(--sds-g-color-brand-base-60, #1b96ff);
|
|
939
939
|
--sds-c-inputtext-shadow: 0 0 3px var(--sds-g-color-brand-base-50, #0176d3);
|
|
940
940
|
--sds-c-inputtext-color-background: var(--sds-g-color-neutral-base-100, #ffffff);
|
|
@@ -947,7 +947,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
947
947
|
/**
|
|
948
948
|
* Input
|
|
949
949
|
*/
|
|
950
|
-
:host([data-render-mode="shadow"]) [part
|
|
950
|
+
:host([data-render-mode="shadow"]) [part='input'] {
|
|
951
951
|
padding-inline-start: var(
|
|
952
952
|
--slds-c-inputtext-spacing-inline-start,
|
|
953
953
|
var(--sds-g-spacing-3, 0.75rem));
|
|
@@ -961,8 +961,8 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
961
961
|
/**
|
|
962
962
|
* Focus / active State
|
|
963
963
|
*/
|
|
964
|
-
:host([data-render-mode="shadow"]) [part
|
|
965
|
-
[part
|
|
964
|
+
:host([data-render-mode="shadow"]) [part="input-container"]:focus-within,:host([data-render-mode="shadow"])
|
|
965
|
+
[part="input-container"]:active {
|
|
966
966
|
--sds-c-inputtext-color-border: var(--sds-g-color-brand-base-60, #1b96ff);
|
|
967
967
|
--sds-c-inputtext-shadow: 0 0 3px var(--sds-g-color-brand-base-50, #0176d3);
|
|
968
968
|
--sds-c-inputtext-color-background: var(--sds-g-color-neutral-base-100, #ffffff);
|
|
@@ -973,7 +973,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
973
973
|
/**
|
|
974
974
|
* Read Only State
|
|
975
975
|
*/
|
|
976
|
-
:host([data-render-mode="shadow"][readonly]) [part
|
|
976
|
+
:host([data-render-mode="shadow"][readonly]) [part='input-text'] {
|
|
977
977
|
--sds-c-inputtext-spacing-inline-start-readonly: 0;
|
|
978
978
|
--sds-c-inputtext-color-border-focus: transparent;
|
|
979
979
|
--slds-c-inputtext-color-border: transparent;
|
|
@@ -988,7 +988,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
988
988
|
* tied to :host([aria-invalid]) which this subsystem does not use. Instead, it
|
|
989
989
|
* uses :host([invalid]).
|
|
990
990
|
*/
|
|
991
|
-
:host([data-render-mode="shadow"][invalid]) [part
|
|
991
|
+
:host([data-render-mode="shadow"][invalid]) [part='input-text'] {
|
|
992
992
|
--sds-c-inputtext-shadow: 0 0 0 var(--sds-g-sizing-border-1, 1px) inset
|
|
993
993
|
var(--sds-g-color-error-base-50, #ea001e);
|
|
994
994
|
--slds-c-inputtext-color-border: var(--sds-g-color-error-base-50, #ea001e);
|
|
@@ -1001,7 +1001,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1001
1001
|
* The following styling hooks are included in SDS and need to be reassigned
|
|
1002
1002
|
* here to prevent a bug with the focus state border and box-shadow
|
|
1003
1003
|
*/
|
|
1004
|
-
:host([data-render-mode="shadow"][invalid]) [part
|
|
1004
|
+
:host([data-render-mode="shadow"][invalid]) [part='input-container']:focus-within {
|
|
1005
1005
|
--sds-c-inputtext-shadow:
|
|
1006
1006
|
var(--sds-g-color-error-base-50, #ea001e) 0 0 0 var(--sds-g-sizing-border-1, 1px) inset,
|
|
1007
1007
|
0 0 var(--sds-g-sizing-border-3, 3px) var(--sds-g-color-brand-base-50, #0176d3);
|
|
@@ -1013,7 +1013,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1013
1013
|
*
|
|
1014
1014
|
* Both parts form the visible form control.
|
|
1015
1015
|
*/
|
|
1016
|
-
:host([data-render-mode="shadow"][disabled]) [part
|
|
1016
|
+
:host([data-render-mode="shadow"][disabled]) [part='input-container'],:host([data-render-mode="shadow"][disabled]) [part='input'] {
|
|
1017
1017
|
cursor: not-allowed;
|
|
1018
1018
|
--sds-c-inputtext-color-background: var(--sds-g-color-neutral-base-95, #f3f3f3);
|
|
1019
1019
|
--sds-c-inputtext-color-border: var(--sds-g-color-neutral-base-80, #c9c9c9);
|
|
@@ -1023,10 +1023,10 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Label
|
|
1025
1025
|
*
|
|
1026
|
-
* Add [part
|
|
1027
|
-
* avoid collisions with other components using [part
|
|
1026
|
+
* Add [part='input-text'] to increase specificity and
|
|
1027
|
+
* avoid collisions with other components using [part='label'] (e.g. slds-input-checkbox)
|
|
1028
1028
|
*/
|
|
1029
|
-
:host([data-render-mode="shadow"]) [part
|
|
1029
|
+
:host([data-render-mode="shadow"]) [part='input-text'] [part='label'] {
|
|
1030
1030
|
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
1031
1031
|
padding-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
1032
1032
|
color: var(
|
|
@@ -1050,7 +1050,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1050
1050
|
* so we don't add spacing to other icons composed in the component, e.g.,
|
|
1051
1051
|
* the icon in the inline help text.
|
|
1052
1052
|
*/
|
|
1053
|
-
:host([data-render-mode="shadow"]) [part
|
|
1053
|
+
:host([data-render-mode="shadow"]) [part='start'] {
|
|
1054
1054
|
--slds-c-icon-spacing-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
@@ -1067,11 +1067,11 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1067
1067
|
* Ref: https://github.com/salesforce-ux/design-system-internal/blob/240-winter-23/ui/components/form-element/horizontal/_index.scss#L63
|
|
1068
1068
|
*/
|
|
1069
1069
|
@media (min-width: 48em) {
|
|
1070
|
-
:host([data-render-mode="shadow"][variant~='label-inline']) [part
|
|
1070
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) [part='input-text'] {
|
|
1071
1071
|
display: block;
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
|
-
:host([data-render-mode="shadow"][variant~='label-inline']) [part
|
|
1074
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) [part='label'] {
|
|
1075
1075
|
float: left;
|
|
1076
1076
|
|
|
1077
1077
|
/* TODO: Get rid of these magic numbers */
|
|
@@ -1079,11 +1079,11 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1079
1079
|
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
|
-
:host([data-render-mode="shadow"][variant~='label-inline']) [part
|
|
1082
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) [part='input-container'] {
|
|
1083
1083
|
margin-inline-start: 33%;
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
|
-
:host([data-render-mode="shadow"][variant~='label-inline']) [part
|
|
1086
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) [part='inline-help'] {
|
|
1087
1087
|
float: left;
|
|
1088
1088
|
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
1089
1089
|
}
|
|
@@ -1093,7 +1093,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1093
1093
|
left: var(--sds-g-spacing-3, 0.75rem);
|
|
1094
1094
|
fill: var(--slds-g-color-neutral-base-50, #747474);
|
|
1095
1095
|
}
|
|
1096
|
-
|
|
1096
|
+
|
|
1097
1097
|
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-button_icon {
|
|
1098
1098
|
background-color: transparent;
|
|
1099
1099
|
}
|
|
@@ -1145,7 +1145,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
1145
1145
|
--slds-c-inputtext-spacing-inline-start: var(--sds-g-spacing-6, 2rem);
|
|
1146
1146
|
--slds-c-inputtext-spacing-inline-end: var(--sds-g-spacing-6, 2rem);
|
|
1147
1147
|
}
|
|
1148
|
-
|
|
1148
|
+
|
|
1149
1149
|
/**
|
|
1150
1150
|
* A temporarily baked-in utility class until SLDS gets a proper utility package.
|
|
1151
1151
|
*
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
<input id="combobox-input"
|
|
18
18
|
class={computedInputClass}
|
|
19
19
|
type="text"
|
|
20
|
-
role=
|
|
20
|
+
role={customRole}
|
|
21
21
|
aria-expanded={computedAriaExpanded}
|
|
22
|
-
aria-haspopup=
|
|
22
|
+
aria-haspopup={customAriaHasPopup}
|
|
23
23
|
required={required}
|
|
24
24
|
readonly={_inputAriaReadOnly}
|
|
25
25
|
autocomplete={autocomplete}
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
type="button"
|
|
49
49
|
class={computedInputClass}
|
|
50
50
|
aria-expanded={computedAriaExpanded}
|
|
51
|
-
aria-haspopup=
|
|
51
|
+
aria-haspopup={customAriaHasPopup}
|
|
52
52
|
name={name}
|
|
53
|
-
role=
|
|
53
|
+
role={customRole}
|
|
54
54
|
data-value={computedInputValue}
|
|
55
55
|
disabled={disabled}
|
|
56
56
|
aria-label={computedButtonTriggerAriaLabel}
|
|
@@ -147,13 +147,9 @@
|
|
|
147
147
|
</template>
|
|
148
148
|
</template>
|
|
149
149
|
<template if:true={showDropdownActivityIndicator}>
|
|
150
|
-
<div role="presentation" class="slds-listbox__item">
|
|
151
|
-
<div class="slds-align_absolute-center slds-p-top_medium">
|
|
152
|
-
<
|
|
153
|
-
<span class="slds-assistive-text">{i18n.loadingText}</span>
|
|
154
|
-
<div class="slds-spinner__dot-a"></div>
|
|
155
|
-
<div class="slds-spinner__dot-b"></div>
|
|
156
|
-
</div>
|
|
150
|
+
<div role="presentation" class="slds-listbox__item slds-spinner_inline">
|
|
151
|
+
<div class="slds-align_absolute-center slds-p-top_medium slds-p-bottom_medium">
|
|
152
|
+
<lightning-spinner size="x-small" alternative-text={i18n.loadingText}></lightning-spinner>
|
|
157
153
|
</div>
|
|
158
154
|
</div>
|
|
159
155
|
</template>
|