lightning-base-components 1.18.7-alpha → 1.18.7-ssr
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 +30 -9
- package/package.json +68 -2
- package/src/lightning/accordion/accordion.css +4 -4
- package/src/lightning/accordion/accordion.js +4 -2
- package/src/lightning/accordion/accordion.slds.css +26 -20
- package/src/lightning/accordionSection/accordion-section.slds.css +20 -14
- package/src/lightning/accordionSection/accordionSection.css +4 -4
- package/src/lightning/accordionSection/accordionSection.js +4 -2
- package/src/lightning/avatar/avatar.css +2 -2
- package/src/lightning/avatar/avatar.js +3 -2
- package/src/lightning/avatar/avatar.slds.css +10 -10
- package/src/lightning/badge/__examples__/basic/basic.html +3 -1
- package/src/lightning/badge/badge.css +2 -0
- package/src/lightning/badge/badge.html +16 -14
- package/src/lightning/badge/badge.js +4 -2
- package/src/lightning/badge/badge.slds.css +73 -0
- package/src/lightning/baseCombobox/base-combobox.slds.css +23 -23
- package/src/lightning/baseCombobox/baseCombobox.css +2 -2
- package/src/lightning/baseCombobox/baseCombobox.html +7 -11
- package/src/lightning/baseCombobox/baseCombobox.js +87 -37
- package/src/lightning/baseCombobox/listbox.slds.css +267 -0
- package/src/lightning/baseCombobox/spinner.slds.css +34 -34
- package/src/lightning/baseComboboxItem/baseComboboxItem.js +4 -2
- package/src/lightning/baseComboboxItem/inline.css +2 -2
- package/src/lightning/breadcrumb/breadcrumb.css +2 -2
- package/src/lightning/breadcrumb/breadcrumb.js +8 -4
- package/src/lightning/breadcrumb/breadcrumb.slds.css +3 -3
- package/src/lightning/breadcrumbs/breadcrumbs.css +2 -2
- package/src/lightning/breadcrumbs/breadcrumbs.js +3 -2
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +5 -5
- package/src/lightning/button/button.css +2 -2
- package/src/lightning/button/button.slds.css +8 -2
- package/src/lightning/buttonGroup/button-group.slds.css +5 -5
- package/src/lightning/buttonGroup/buttonGroup.css +2 -2
- package/src/lightning/buttonGroup/buttonGroup.js +3 -2
- package/src/lightning/buttonIcon/button-icon.slds.css +9 -3
- package/src/lightning/buttonIcon/buttonIcon.css +2 -2
- package/src/lightning/buttonIcon/buttonIcon.js +1 -0
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +15 -9
- package/src/lightning/buttonIconStateful/buttonIconStateful.css +2 -2
- package/src/lightning/buttonMenu/button-menu.slds.css +13 -7
- package/src/lightning/buttonMenu/buttonMenu.css +2 -2
- package/src/lightning/buttonMenu/buttonMenu.js +4 -2
- package/src/lightning/buttonMenu/dropdown.slds.css +1360 -0
- package/src/lightning/buttonStateful/button-stateful.slds.css +11 -5
- package/src/lightning/buttonStateful/buttonStateful.css +2 -2
- package/src/lightning/buttonStateful/buttonStateful.js +3 -2
- package/src/lightning/calendar/calendar.css +2 -2
- package/src/lightning/calendar/calendar.js +19 -25
- package/src/lightning/calendar/calendar.slds.css +29 -23
- package/src/lightning/card/card.css +2 -2
- package/src/lightning/card/card.js +3 -2
- package/src/lightning/card/card.slds.css +68 -68
- package/src/lightning/colorPickerCustom/colorPickerCustom.css +2 -2
- package/src/lightning/colorPickerCustom/colorPickerCustom.js +3 -2
- package/src/lightning/colorPickerPanel/colorPickerPanel.css +2 -2
- package/src/lightning/colorPickerPanel/colorPickerPanel.js +4 -2
- package/src/lightning/combobox/combobox.css +2 -2
- package/src/lightning/combobox/combobox.js +4 -2
- 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 +3 -0
- package/src/lightning/datatable/keyboard.js +8 -4
- package/src/lightning/datatable/sort.js +1 -1
- package/src/lightning/datepicker/datepicker.css +2 -2
- package/src/lightning/datepicker/datepicker.js +5 -3
- package/src/lightning/datepicker/form-element.slds.css +8 -0
- package/src/lightning/datepicker/input-text.slds.css +23 -23
- package/src/lightning/datetimepicker/datetimepicker.css +2 -2
- package/src/lightning/datetimepicker/datetimepicker.js +4 -2
- package/src/lightning/datetimepicker/form-element.slds.css +8 -0
- package/src/lightning/datetimepicker/input-text.slds.css +23 -23
- package/src/lightning/dualListbox/dualListbox.css +2 -2
- package/src/lightning/dualListbox/dualListbox.js +4 -2
- package/src/lightning/dualListbox/form-element.slds.css +8 -0
- package/src/lightning/dynamicIcon/dynamicIcon.js +3 -2
- package/src/lightning/dynamicIcon/ellie.css +1 -1
- package/src/lightning/dynamicIcon/eq.css +1 -1
- package/src/lightning/dynamicIcon/score.css +1 -1
- package/src/lightning/dynamicIcon/strength.css +1 -1
- package/src/lightning/dynamicIcon/trend.css +1 -1
- package/src/lightning/dynamicIcon/waffle.css +1 -1
- package/src/lightning/f6Controller/f6Controller.js +31 -22
- package/src/lightning/formattedRichText/formattedRichText.css +2 -2
- package/src/lightning/formattedRichText/formattedRichText.js +4 -2
- package/src/lightning/formattedText/formattedText.css +1 -1
- package/src/lightning/formattedText/formattedText.js +3 -2
- 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/helptext/helptext.css +2 -2
- package/src/lightning/helptext/helptext.js +3 -2
- package/src/lightning/icon/icon.css +2 -2
- package/src/lightning/icon/icon.js +10 -3
- 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 +2 -4
- 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.css +2 -2
- package/src/lightning/layout/layout.js +6 -2
- package/src/lightning/layoutItem/layoutItem.css +2 -2
- package/src/lightning/layoutItem/layoutItem.js +6 -2
- package/src/lightning/menuDivider/menuDivider.css +2 -2
- package/src/lightning/menuDivider/menuDivider.js +4 -2
- package/src/lightning/menuItem/menuItem.css +2 -2
- package/src/lightning/menuItem/menuItem.js +4 -2
- package/src/lightning/menuSubheader/menuSubheader.css +2 -2
- package/src/lightning/menuSubheader/menuSubheader.js +4 -2
- package/src/lightning/modal/__docs__/modal.md +102 -3
- package/src/lightning/modal/__examples__disabled/basic/basic.css +1 -1
- package/src/lightning/modal/__examples__disabled/demo/demo.css +1 -0
- package/src/lightning/modal/__examples__disabled/demoall/demoall.css +5 -0
- package/src/lightning/modal/__examples__disabled/demoallform/demoallform.css +4 -2
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.css +4 -2
- package/src/lightning/modal/__examples__disabled/demofootless/demofootless.css +1 -0
- package/src/lightning/modal/__examples__disabled/demoheadless/demoheadless.css +5 -0
- package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +15 -0
- package/src/lightning/modalBase/modal-base.slds.css +240 -0
- package/src/lightning/modalBase/modalBase.css +7 -2
- package/src/lightning/modalBase/modalBase.html +2 -0
- package/src/lightning/modalBase/modalBase.js +44 -5
- package/src/lightning/modalBody/modal-body.slds.css +61 -0
- package/src/lightning/modalBody/modalBody.css +3 -0
- package/src/lightning/modalBody/modalBody.html +1 -0
- package/src/lightning/modalBody/modalBody.js +15 -2
- package/src/lightning/modalFooter/modal-footer.slds.css +68 -0
- package/src/lightning/modalFooter/modalFooter.css +2 -0
- package/src/lightning/modalFooter/modalFooter.html +1 -1
- package/src/lightning/modalFooter/modalFooter.js +17 -2
- package/src/lightning/modalHeader/modal-header.slds.css +70 -0
- package/src/lightning/modalHeader/modalHeader.css +3 -0
- package/src/lightning/modalHeader/modalHeader.html +1 -1
- package/src/lightning/modalHeader/modalHeader.js +18 -2
- package/src/lightning/overlay/overlay.js +3 -2
- package/src/lightning/pill/avatar.slds.css +10 -10
- package/src/lightning/pill/link.css +2 -2
- package/src/lightning/pill/pill.js +4 -2
- package/src/lightning/pill/plain.css +2 -2
- package/src/lightning/pill/plainLink.css +2 -2
- package/src/lightning/pillContainer/barePillContainer.css +2 -2
- package/src/lightning/pillContainer/pillContainer.js +4 -2
- package/src/lightning/pillContainer/standardPillContainer.css +2 -2
- package/src/lightning/popup/popup.css +2 -2
- package/src/lightning/popup/popup.js +3 -2
- package/src/lightning/primitiveBubble/primitiveBubble.css +2 -2
- package/src/lightning/primitiveBubble/primitiveBubble.js +4 -2
- package/src/lightning/primitiveButton/primitiveButton.js +3 -2
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +9 -9
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.css +2 -2
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.js +3 -2
- package/src/lightning/primitiveIcon/icon.slds.css +3 -3
- package/src/lightning/primitiveIcon/primitiveIcon.css +2 -2
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +289 -0
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +395 -0
- 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/primitiveInputColor/input-text.slds.css +398 -0
- 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/progressBar/progress-bar.slds.css +66 -0
- package/src/lightning/progressBar/progressBar.css +2 -0
- package/src/lightning/progressBar/progressBar.html +1 -0
- package/src/lightning/progressBar/progressBar.js +3 -2
- package/src/lightning/progressRing/progress-ring.slds.css +140 -0
- package/src/lightning/progressRing/progressRing.css +2 -0
- package/src/lightning/progressRing/progressRing.html +8 -3
- package/src/lightning/progressRing/progressRing.js +3 -2
- package/src/lightning/radioGroup/input-radio-group.slds.css +57 -57
- package/src/lightning/radioGroup/radioGroup.css +2 -3
- package/src/lightning/radioGroup/radioGroup.js +4 -2
- package/src/lightning/select/form-element.slds.css +8 -0
- package/src/lightning/select/select.css +2 -2
- package/src/lightning/select/select.js +5 -2
- package/src/lightning/select/select.slds.css +30 -22
- package/src/lightning/sldsCommon/sldsCommon.css +21 -0
- package/src/lightning/spinner/spinner.css +2 -2
- package/src/lightning/spinner/spinner.js +11 -5
- 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/tabBar/tabBar.css +2 -2
- package/src/lightning/tabBar/tabBar.js +4 -2
- package/src/lightning/tabset/tabset.css +2 -0
- package/src/lightning/tabset/tabset.js +35 -9
- package/src/lightning/tabset/tabset.slds.css +9 -0
- package/src/lightning/timepicker/form-element.slds.css +8 -0
- package/src/lightning/timepicker/timepicker.css +2 -2
- package/src/lightning/timepicker/timepicker.js +4 -2
- package/src/lightning/toast/button-icon.slds.css +9 -3
- package/src/lightning/toast/icon.slds.css +3 -3
- package/src/lightning/toast/toast.css +2 -2
- package/src/lightning/toast/toast.js +4 -2
- package/src/lightning/toastContainer/toastContainer.css +2 -2
- package/src/lightning/verticalNavigation/vertical-navigation.slds.css +1 -1
- package/src/lightning/verticalNavigation/verticalNavigation.css +2 -3
- package/src/lightning/verticalNavigation/verticalNavigation.js +3 -2
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +2 -3
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.js +3 -2
- /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,6 +1577,7 @@
|
|
|
1570
1577
|
"industriesExplainabilityApi": {},
|
|
1571
1578
|
"industriesExternalDocumentApi": {},
|
|
1572
1579
|
"industriesFeatureValidationApi": {},
|
|
1580
|
+
"industriesFieldsetApi": {},
|
|
1573
1581
|
"industriesFundraisingApi": {},
|
|
1574
1582
|
"industriesGroupApi": {},
|
|
1575
1583
|
"industriesHealthcloudApi": {},
|
|
@@ -2599,6 +2607,12 @@
|
|
|
2599
2607
|
},
|
|
2600
2608
|
{
|
|
2601
2609
|
"name": "focus"
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"name": "reportValidity"
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"name": "setCustomValidity"
|
|
2602
2616
|
}
|
|
2603
2617
|
]
|
|
2604
2618
|
},
|
|
@@ -2827,6 +2841,10 @@
|
|
|
2827
2841
|
"platformShowToastEvent": {
|
|
2828
2842
|
"minVersion": "45.0"
|
|
2829
2843
|
},
|
|
2844
|
+
"platformWorkspaceApi": {
|
|
2845
|
+
"minVersion": "59.0"
|
|
2846
|
+
},
|
|
2847
|
+
"platformWorkspaceApiUtils": {},
|
|
2830
2848
|
"popup": {
|
|
2831
2849
|
"slotNames": [
|
|
2832
2850
|
""
|
|
@@ -3160,14 +3178,23 @@
|
|
|
3160
3178
|
{
|
|
3161
3179
|
"name": "label"
|
|
3162
3180
|
},
|
|
3181
|
+
{
|
|
3182
|
+
"name": "matchingInfo"
|
|
3183
|
+
},
|
|
3163
3184
|
{
|
|
3164
3185
|
"name": "objectApiName"
|
|
3165
3186
|
},
|
|
3166
3187
|
{
|
|
3167
3188
|
"name": "placeholder"
|
|
3168
3189
|
},
|
|
3190
|
+
{
|
|
3191
|
+
"name": "required"
|
|
3192
|
+
},
|
|
3169
3193
|
{
|
|
3170
3194
|
"name": "value"
|
|
3195
|
+
},
|
|
3196
|
+
{
|
|
3197
|
+
"name": "variant"
|
|
3171
3198
|
}
|
|
3172
3199
|
],
|
|
3173
3200
|
"methods": [
|
|
@@ -3179,19 +3206,12 @@
|
|
|
3179
3206
|
},
|
|
3180
3207
|
{
|
|
3181
3208
|
"name": "focus"
|
|
3182
|
-
}
|
|
3183
|
-
]
|
|
3184
|
-
},
|
|
3185
|
-
"recordPickerGetRecord": {
|
|
3186
|
-
"properties": [
|
|
3187
|
-
{
|
|
3188
|
-
"name": "displayInfo"
|
|
3189
3209
|
},
|
|
3190
3210
|
{
|
|
3191
|
-
"name": "
|
|
3211
|
+
"name": "reportValidity"
|
|
3192
3212
|
},
|
|
3193
3213
|
{
|
|
3194
|
-
"name": "
|
|
3214
|
+
"name": "setCustomValidity"
|
|
3195
3215
|
}
|
|
3196
3216
|
]
|
|
3197
3217
|
},
|
|
@@ -3418,6 +3438,7 @@
|
|
|
3418
3438
|
}
|
|
3419
3439
|
]
|
|
3420
3440
|
},
|
|
3441
|
+
"serviceDataCategoryApi": {},
|
|
3421
3442
|
"showToastEvent": {},
|
|
3422
3443
|
"sitesApi": {},
|
|
3423
3444
|
"slider": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightning-base-components",
|
|
3
|
-
"version": "1.18.7-
|
|
3
|
+
"version": "1.18.7-ssr",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"external",
|
|
@@ -1263,7 +1263,73 @@
|
|
|
1263
1263
|
"path": "scopedImports/@salesforce-internal-core.untrustedContentDomain.js"
|
|
1264
1264
|
}
|
|
1265
1265
|
],
|
|
1266
|
-
"nativeShadowEnabledComponents": [
|
|
1266
|
+
"nativeShadowEnabledComponents": [
|
|
1267
|
+
"lightning-accordion",
|
|
1268
|
+
"lightning-accordion-section",
|
|
1269
|
+
"lightning-avatar",
|
|
1270
|
+
"lightning-base-combobox",
|
|
1271
|
+
"lightning-base-combobox-item",
|
|
1272
|
+
"lightning-breadcrumb",
|
|
1273
|
+
"lightning-breadcrumbs",
|
|
1274
|
+
"lightning-bubble",
|
|
1275
|
+
"lightning-button",
|
|
1276
|
+
"lightning-button-group",
|
|
1277
|
+
"lightning-button-icon",
|
|
1278
|
+
"lightning-button-icon-stateful",
|
|
1279
|
+
"lightning-button-menu",
|
|
1280
|
+
"lightning-button-stateful",
|
|
1281
|
+
"lightning-card",
|
|
1282
|
+
"lightning-calendar",
|
|
1283
|
+
"lightning-color-picker-custom",
|
|
1284
|
+
"lightning-color-picker-panel",
|
|
1285
|
+
"lightning-combobox",
|
|
1286
|
+
"lightning-datepicker",
|
|
1287
|
+
"lightning-datetimepicker",
|
|
1288
|
+
"lightning-dual-listbox",
|
|
1289
|
+
"lightning-dynamic-icon",
|
|
1290
|
+
"lightning-formatted-rich-text",
|
|
1291
|
+
"lightning-formatted-text",
|
|
1292
|
+
"lightning-helptext",
|
|
1293
|
+
"lightning-icon",
|
|
1294
|
+
"lightning-input",
|
|
1295
|
+
"lightning-layout",
|
|
1296
|
+
"lightning-layout-item",
|
|
1297
|
+
"lightning-menu-divider",
|
|
1298
|
+
"lightning-menu-item",
|
|
1299
|
+
"lightning-menu-subheader",
|
|
1300
|
+
"lightning-modal",
|
|
1301
|
+
"lightning-modalBase",
|
|
1302
|
+
"lightning-modalBody",
|
|
1303
|
+
"lightning-modalFooter",
|
|
1304
|
+
"lightning-modalHeader",
|
|
1305
|
+
"lightning-overlay-container",
|
|
1306
|
+
"lightning-pill",
|
|
1307
|
+
"lightning-pill-container",
|
|
1308
|
+
"lightning-popup",
|
|
1309
|
+
"lightning-popup-source",
|
|
1310
|
+
"lightning-primitive-bubble",
|
|
1311
|
+
"lightning-primitive-color-picker-button",
|
|
1312
|
+
"lightning-primitive-icon",
|
|
1313
|
+
"lightning-primitive-input-checkbox",
|
|
1314
|
+
"lightning-primitive-input-checkbox-button",
|
|
1315
|
+
"lightning-primitive-input-color",
|
|
1316
|
+
"lightning-primitive-input-file",
|
|
1317
|
+
"lightning-primitive-input-simple",
|
|
1318
|
+
"lightning-primitive-input-toggle",
|
|
1319
|
+
"lightning-progress-bar",
|
|
1320
|
+
"lightning-progress-ring",
|
|
1321
|
+
"lightning-radio-group",
|
|
1322
|
+
"lightning-select",
|
|
1323
|
+
"lightning-spinner",
|
|
1324
|
+
"lightning-tab-bar",
|
|
1325
|
+
"lightning-tabset",
|
|
1326
|
+
"lightning-toast",
|
|
1327
|
+
"lightning-toast-container",
|
|
1328
|
+
"lightning-timepicker",
|
|
1329
|
+
"lightning-vertical-navigation",
|
|
1330
|
+
"lightning-vertical-navigation-section",
|
|
1331
|
+
"lightning-badge"
|
|
1332
|
+
],
|
|
1267
1333
|
"expose": [
|
|
1268
1334
|
"lightning/accordion",
|
|
1269
1335
|
"lightning/accordionSection",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
@import './accordion.slds.css';
|
|
1
|
+
@import 'lightning/sldsCommon';
|
|
2
|
+
@import './accordion.slds.css';
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
6
6
|
list-style: none;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
/* To Do:
|
|
10
|
-
Remove the code below as it is a duplicate once data-render-mode fix (W-12439890) for ::slotted is in.
|
|
9
|
+
/* To Do:
|
|
10
|
+
Remove the code below as it is a duplicate once data-render-mode fix (W-12439890) for ::slotted is in.
|
|
11
11
|
*/
|
|
12
12
|
/* Removes first child border top */
|
|
13
13
|
::slotted(lightning-accordion-section:first-child) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { api } from 'lwc';
|
|
2
|
+
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
2
3
|
import { createAccordionManager } from 'lightning/accordionUtilsPrivate';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* A collection of vertically stacked sections with multiple content areas.
|
|
6
7
|
* @slot default Placeholder for accordion-section components.
|
|
7
8
|
*/
|
|
8
|
-
export default class LightningAccordion extends
|
|
9
|
+
export default class LightningAccordion extends LightningShadowBaseClass {
|
|
9
10
|
privateIsSectionLessInLastRender = true;
|
|
10
11
|
_allowMultipleSectionsOpen = false;
|
|
11
12
|
connected = false;
|
|
@@ -30,6 +31,7 @@ export default class LightningAccordion extends LightningElement {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
connectedCallback() {
|
|
34
|
+
super.connectedCallback();
|
|
33
35
|
this.connected = true;
|
|
34
36
|
this.setAttribute('role', 'list');
|
|
35
37
|
this.classList.add('slds-accordion');
|
|
@@ -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 {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
@import './accordion-section.slds.css';
|
|
1
|
+
@import 'lightning/sldsCommon';
|
|
2
|
+
@import './accordion-section.slds.css';
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
5
|
display: list-item;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
/* Note:
|
|
9
|
-
- Prevents double border on mixed/shadow mode:
|
|
9
|
+
- Prevents double border on mixed/shadow mode:
|
|
10
10
|
This is added because we have 'slds-accordion__list-item' from the host and inside the component (within the shadow boundary). This will cause double border on mixed/shadow mode.
|
|
11
|
-
The code below will remove the border coming from the host and keep the border from shadow boundary.
|
|
11
|
+
The code below will remove the border coming from the host and keep the border from shadow boundary.
|
|
12
12
|
- Added '!important' as a last resort as user agent style sheet will always win over our own styles.
|
|
13
13
|
*/
|
|
14
14
|
:host([data-render-mode="shadow"]) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { api, track } from 'lwc';
|
|
2
|
+
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
2
3
|
import { generateUniqueId } from 'lightning/inputUtils';
|
|
3
4
|
import { keyCodes, isHeadingLevelValid } from 'lightning/utilsPrivate';
|
|
4
5
|
import { classSet } from 'lightning/utils';
|
|
@@ -10,7 +11,7 @@ import DIR from '@salesforce/i18n/dir';
|
|
|
10
11
|
* Actions are displayed at the top right corner of the accordion section.
|
|
11
12
|
* @slot default Placeholder for your content in the accordion section.
|
|
12
13
|
*/
|
|
13
|
-
export default class LightningAccordionSection extends
|
|
14
|
+
export default class LightningAccordionSection extends LightningShadowBaseClass {
|
|
14
15
|
/**
|
|
15
16
|
* The unique section name to use with the active-section-name attribute in the accordion component.
|
|
16
17
|
* @type {string}
|
|
@@ -58,6 +59,7 @@ export default class LightningAccordionSection extends LightningElement {
|
|
|
58
59
|
privateUniqueId = generateUniqueId('lgt-accordion-section');
|
|
59
60
|
|
|
60
61
|
connectedCallback() {
|
|
62
|
+
super.connectedCallback();
|
|
61
63
|
this.setAttribute('role', 'listitem');
|
|
62
64
|
this.classList.add('slds-accordion__list-item');
|
|
63
65
|
this.registerSectionWithParent();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
@import './avatar.slds.css';
|
|
1
|
+
@import 'lightning/sldsCommon';
|
|
2
|
+
@import './avatar.slds.css';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { api, track } from 'lwc';
|
|
2
|
+
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
2
3
|
import { classSet } from 'lightning/utils';
|
|
3
4
|
import { normalizeString, reflectAttribute } from 'lightning/utilsPrivate';
|
|
4
5
|
import { computeSldsClass } from 'lightning/iconUtils';
|
|
@@ -9,7 +10,7 @@ const DEFAULT_VARIANT = 'square';
|
|
|
9
10
|
/**
|
|
10
11
|
* A visual representation of an object.
|
|
11
12
|
*/
|
|
12
|
-
export default class LightningAvatar extends
|
|
13
|
+
export default class LightningAvatar extends LightningShadowBaseClass {
|
|
13
14
|
/**
|
|
14
15
|
* The alternative text used to describe the avatar, which is displayed as
|
|
15
16
|
* hover text on the image.
|
|
@@ -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
|
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
</h2>
|
|
6
6
|
|
|
7
7
|
<!-- Badge: basic -->
|
|
8
|
-
<lightning-badge label="Alpha"
|
|
8
|
+
<lightning-badge label="Alpha"></lightning-badge>
|
|
9
9
|
<lightning-badge label="Beta"></lightning-badge>
|
|
10
10
|
<lightning-badge label="Gamma"></lightning-badge>
|
|
11
|
+
<lightning-badge label="Inverse" class="slds-badge_inverse"></lightning-badge>
|
|
12
|
+
<lightning-badge label="Lightest" class="slds-badge_lightest"></lightning-badge>
|
|
11
13
|
</div>
|
|
12
14
|
</template>
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
<span class=
|
|
9
|
-
<
|
|
2
|
+
<span part="badge">
|
|
3
|
+
<template if:false={isIconBeforeLabel}>
|
|
4
|
+
{label}
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<template if:true={iconName}>
|
|
8
|
+
<span class={computedClass}>
|
|
9
|
+
<span class="slds-icon_container slds-current-color" title={iconAlternativeText}>
|
|
10
|
+
<lightning-primitive-icon icon-name={iconName} size="xx-small"></lightning-primitive-icon>
|
|
11
|
+
</span>
|
|
10
12
|
</span>
|
|
11
|
-
</
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<template if:true={isIconBeforeLabel}>
|
|
16
|
+
{label}
|
|
17
|
+
</template>
|
|
18
|
+
</span>
|
|
17
19
|
</template>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { api } from 'lwc';
|
|
2
2
|
import { classSet } from 'lightning/utils';
|
|
3
3
|
import { normalizeString } from 'lightning/utilsPrivate';
|
|
4
|
+
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
4
5
|
|
|
5
6
|
const DEFAULT_POSITION = 'start';
|
|
6
7
|
|
|
@@ -8,7 +9,7 @@ const DEFAULT_POSITION = 'start';
|
|
|
8
9
|
* Represents a label which holds a small amount of information, such as the
|
|
9
10
|
* number of unread notifications.
|
|
10
11
|
*/
|
|
11
|
-
export default class LightningBadge extends
|
|
12
|
+
export default class LightningBadge extends LightningShadowBaseClass {
|
|
12
13
|
/**
|
|
13
14
|
* Normalized icon position
|
|
14
15
|
*/
|
|
@@ -55,6 +56,7 @@ export default class LightningBadge extends LightningElement {
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
connectedCallback() {
|
|
59
|
+
super.connectedCallback();
|
|
58
60
|
this.classList.add('slds-badge');
|
|
59
61
|
}
|
|
60
62
|
|