lightning-base-components 1.21.2-alpha → 1.21.3-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 +28 -1
- package/package.json +28 -2
- package/scopedImports/@salesforce-label-LightningRichTextEditor.colorPicker.js +1 -0
- package/src/lightning/accordion/accordion-section.slds.css +3 -3
- package/src/lightning/accordion/accordion.slds.css +1 -2
- package/src/lightning/accordionSection/accordion-section.slds.css +3 -3
- package/src/lightning/accordionSection/accordionSection.js +3 -1
- package/src/lightning/accordionSection/button.slds.css +1 -1
- package/src/lightning/badge/badge.js +1 -0
- package/src/lightning/badge/badge.js-meta.xml +3 -0
- package/src/lightning/baseCombobox/base-combobox.slds.css +11 -6
- package/src/lightning/baseCombobox/baseCombobox.html +1 -1
- package/src/lightning/baseCombobox/baseCombobox.js +2 -2
- package/src/lightning/baseCombobox/baseCombobox.js-meta.xml +6 -0
- package/src/lightning/baseCombobox/input-text.slds.css +41 -68
- package/src/lightning/baseCombobox/keyboard.js +12 -4
- package/src/lightning/baseCombobox/listbox.slds.css +51 -99
- package/src/lightning/baseCombobox/spinner.slds.css +62 -62
- package/src/lightning/baseComboboxFormattedText/baseComboboxFormattedText.js-meta.xml +6 -0
- package/src/lightning/baseComboboxItem/baseComboboxItem.js +10 -6
- package/src/lightning/baseComboboxItem/baseComboboxItem.js-meta.xml +6 -0
- package/src/lightning/baseComboboxItem/listbox.slds.css +51 -99
- package/src/lightning/baseFormattedText/baseFormattedText.js +2 -2
- package/src/lightning/button/button.js +2 -1
- package/src/lightning/button/button.slds.css +1 -1
- package/src/lightning/buttonIcon/button-icon.slds.css +1 -1
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +4 -2
- package/src/lightning/buttonIconStateful/button-icon.slds.css +1 -1
- package/src/lightning/buttonIconStateful/button.slds.css +1 -1
- package/src/lightning/buttonMenu/button-icon.slds.css +1 -1
- package/src/lightning/buttonMenu/button-menu.slds.css +8 -2
- package/src/lightning/buttonMenu/button.slds.css +1 -1
- package/src/lightning/buttonStateful/button-stateful.slds.css +6 -2
- package/src/lightning/buttonStateful/button.slds.css +1 -1
- package/src/lightning/buttonStateful/buttonStateful.js +4 -1
- package/src/lightning/calendar/calendar.js-meta.xml +6 -0
- package/src/lightning/calendar/calendar.slds.css +9 -2
- package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +22 -23
- package/src/lightning/colorPickerCustom/input-text.slds.css +41 -68
- package/src/lightning/colorPickerPanel/color-picker-panel.slds.css +9 -10
- package/src/lightning/colorPickerPanel/popover.slds.css +0 -2
- package/src/lightning/combobox/combobox.slds.css +1 -2
- package/src/lightning/combobox/form-element.slds.css +54 -54
- package/src/lightning/datatable/__examples__/customDatatableWrapper/customDatatableWrapper.js +0 -69
- package/src/lightning/datatable/__examples__/customDatatypeDeleteRowBtn/customDatatypeDeleteRowBtn.html +1 -1
- package/src/lightning/datatable/__examples__/customDatatypeDeleteRowBtn/customDatatypeDeleteRowBtn.js +1 -16
- package/src/lightning/datatable/__examples__/customDatatypeLink/customDatatypeLink.html +3 -3
- package/src/lightning/datatable/__examples__/customDatatypeRowOrderingBtn/customDatatypeRowOrderingBtn.html +1 -8
- package/src/lightning/datatable/__examples__/customDatatypeRowOrderingBtn/customDatatypeRowOrderingBtn.js +2 -39
- package/src/lightning/datatable/__examples__/customDatatypeTable/customNumber.html +1 -1
- package/src/lightning/datatable/__examples__/customDatatypeTable/customNumberEdit.html +2 -0
- package/src/lightning/datatable/__examples__/customDatatypeTable/deleteRow.html +3 -2
- package/src/lightning/datatable/__examples__/customDatatypeTable/iconPill.html +1 -1
- package/src/lightning/datatable/__examples__/customNestedComponent/customNestedComponent.html +10 -0
- package/src/lightning/datatable/__examples__/customNestedComponent/customNestedComponent.js +12 -0
- package/src/lightning/datatable/autoWidthStrategy.js +147 -191
- package/src/lightning/datatable/columnResizer.js +35 -35
- package/src/lightning/datatable/columnWidthManager.js +118 -177
- package/src/lightning/datatable/columns.js +90 -59
- package/src/lightning/datatable/datagrid.slds.css +187 -0
- package/src/lightning/datatable/datatable.js +248 -229
- package/src/lightning/datatable/errors.js +3 -0
- package/src/lightning/datatable/fixedWidthStrategy.js +22 -29
- package/src/lightning/datatable/headerActions.js +7 -9
- package/src/lightning/datatable/infiniteLoading.js +15 -15
- package/src/lightning/datatable/inlineEdit.js +255 -235
- package/src/lightning/datatable/keyboard.js +318 -282
- package/src/lightning/datatable/renderManager.js +10 -7
- package/src/lightning/datatable/resizeObserver.js +11 -59
- package/src/lightning/datatable/rowLevelActions.js +6 -5
- package/src/lightning/datatable/rowNumber.js +23 -23
- package/src/lightning/datatable/rowSelection.js +173 -145
- package/src/lightning/datatable/rowSelectionShared.js +13 -6
- package/src/lightning/datatable/rows.js +231 -196
- package/src/lightning/datatable/sort.js +26 -22
- package/src/lightning/datatable/templates/div/div.css +2 -57
- package/src/lightning/datatable/templates/div/div.html +13 -6
- package/src/lightning/datatable/templates/div/div.lbc.native.css +3 -0
- package/src/lightning/datatable/templates/div/div.lbc.synthetic.css +86 -0
- package/src/lightning/datatable/templates/table/table.html +1 -0
- package/src/lightning/datatable/utils.js +5 -5
- package/src/lightning/datatable/widthManagerShared.js +24 -21
- package/src/lightning/datatable/wrapText.js +25 -26
- package/src/lightning/datepicker/datepicker.js +32 -9
- package/src/lightning/datepicker/datepicker.js-meta.xml +6 -0
- package/src/lightning/datepicker/form-element.slds.css +54 -54
- package/src/lightning/datepicker/input-text.slds.css +41 -68
- package/src/lightning/datetimepicker/datetimepicker.js-meta.xml +6 -0
- package/src/lightning/datetimepicker/form-element.slds.css +54 -54
- package/src/lightning/datetimepicker/input-text.slds.css +41 -68
- package/src/lightning/dualListbox/dual-listbox.slds.css +7 -2
- package/src/lightning/dualListbox/form-element.slds.css +54 -54
- package/src/lightning/dualListbox/listbox.slds.css +51 -99
- package/src/lightning/dynamicIcon/dynamic-icon-strength.slds.css +1 -2
- package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +1 -2
- package/src/lightning/formattedDateTime/formattedDateTime.js +7 -62
- package/src/lightning/formattedDateTime/formattedDateTime.js-meta.xml +3 -0
- package/src/lightning/formattedLocation/formattedLocation.html +1 -3
- package/src/lightning/formattedLocation/formattedLocation.js +3 -25
- package/src/lightning/formattedLookup/events.js +2 -4
- package/src/lightning/formattedNumber/formattedNumber.js +2 -49
- package/src/lightning/formattedRichText/formattedRichText.js +5 -5
- package/src/lightning/formattedRichText/linkTextNodes.js +58 -0
- package/src/lightning/groupedCombobox/form-element.slds.css +54 -54
- package/src/lightning/groupedCombobox/grouped-combobox.slds.css +0 -2
- package/src/lightning/groupedCombobox/groupedCombobox.js-meta.xml +1 -1
- package/src/lightning/groupedCombobox/input-text.slds.css +41 -68
- package/src/lightning/helptext/button-icon.slds.css +1 -1
- package/src/lightning/helptext/form-element.slds.css +54 -54
- package/src/lightning/icon/icon.slds.css +12 -25
- package/src/lightning/input/form-element.slds.css +54 -54
- package/src/lightning/inputAddress/form-element.slds.css +54 -54
- package/src/lightning/inputAddress/input-address.slds.css +1 -2
- package/src/lightning/inputAddress/input-text.slds.css +41 -68
- package/src/lightning/inputAddress/inputAddress.js +1 -0
- package/src/lightning/inputAddress/inputAddress.js-meta.xml +3 -0
- package/src/lightning/inputLocation/form-element.slds.css +54 -54
- package/src/lightning/inputLocation/input-location.slds.css +1 -2
- package/src/lightning/inputLocation/input-text.slds.css +41 -68
- package/src/lightning/inputName/form-element.slds.css +54 -54
- package/src/lightning/inputName/input-text.slds.css +41 -68
- package/src/lightning/interactiveDialogBase/interactive-dialog-base.slds.css +0 -3
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.js-meta.xml +6 -0
- package/src/lightning/lookupAddress/form-element.slds.css +54 -54
- package/src/lightning/lookupAddress/listbox.slds.css +51 -99
- package/src/lightning/lookupAddress/location.js +2 -0
- package/src/lightning/lookupAddress/lookup-address.slds.css +0 -2
- package/src/lightning/lookupAddress/lookupAddress.js +15 -10
- package/src/lightning/menuDivider/menu-divider.slds.css +0 -2
- package/src/lightning/menuItem/menu-item.slds.css +8 -2
- package/src/lightning/menuSubheader/menu-subheader.slds.css +1 -2
- package/src/lightning/modalBase/modal-base.slds.css +3 -3
- package/src/lightning/modalBase/modalBase.js +0 -8
- package/src/lightning/modalBase/modalBase.js-meta.xml +6 -0
- package/src/lightning/modalBody/modal-body.slds.css +1 -2
- package/src/lightning/modalFooter/modal-footer.slds.css +2 -2
- package/src/lightning/modalFooter/modalFooter.js +0 -21
- package/src/lightning/modalHeader/modal-header.slds.css +1 -2
- package/src/lightning/modalHeader/modalHeader.js +0 -22
- package/src/lightning/overlay/overlay.js-meta.xml +6 -0
- package/src/lightning/pill/pill.slds.css +32 -58
- package/src/lightning/pillContainer/button.slds.css +1 -1
- package/src/lightning/pillContainer/listbox.slds.css +51 -99
- package/src/lightning/pillContainer/pill-container.slds.css +6 -10
- package/src/lightning/pillContainer/pill.slds.css +32 -58
- package/src/lightning/popup/popover.slds.css +0 -2
- package/src/lightning/primitiveBubble/primitiveBubble.js-meta.xml +6 -0
- package/src/lightning/primitiveButton/primitiveButoon.js-meta.xml +6 -0
- package/src/lightning/primitiveCellCheckbox/checkbox.css +2 -0
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +16 -38
- package/src/lightning/primitiveCustomCell/primitiveCustomCell.js +26 -1
- package/src/lightning/primitiveHeaderFactory/nonsortableHeader.css +1 -0
- package/src/lightning/primitiveHeaderFactory/selectableHeader.css +2 -0
- package/src/lightning/primitiveIcon/icon.slds.css +12 -25
- package/src/lightning/primitiveIcon/primitiveIcon.js-meta.xml +6 -0
- package/src/lightning/primitiveIframe/primitiveIframe.js +3 -1
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +54 -54
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.js +5 -2
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.js-meta.xml +6 -0
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +54 -54
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +6 -4
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.js +5 -2
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.js-meta.xml +6 -0
- package/src/lightning/primitiveInputColor/form-element.slds.css +54 -54
- package/src/lightning/primitiveInputColor/input-color.slds.css +2 -3
- package/src/lightning/primitiveInputColor/input-text.slds.css +41 -68
- package/src/lightning/primitiveInputColor/primitiveInputColor.js +5 -2
- package/src/lightning/primitiveInputColor/primitiveInputColor.js-meta.xml +6 -0
- package/src/lightning/primitiveInputFile/button.slds.css +1 -1
- package/src/lightning/primitiveInputFile/form-element.slds.css +54 -54
- package/src/lightning/primitiveInputFile/input-file.slds.css +1 -4
- package/src/lightning/primitiveInputFile/primitiveInputFile.js +4 -2
- package/src/lightning/primitiveInputFile/primitiveInputFile.js-meta.xml +6 -0
- package/src/lightning/primitiveInputRadio/primitiveInputRadio.js +4 -2
- package/src/lightning/primitiveInputSimple/form-element.slds.css +54 -54
- package/src/lightning/primitiveInputSimple/input-text.slds.css +41 -68
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.js-meta.xml +6 -0
- package/src/lightning/primitiveInputToggle/form-element.slds.css +54 -54
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +50 -27
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.js +5 -2
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.js-meta.xml +6 -0
- package/src/lightning/progressBar/progress-bar.slds.css +8 -10
- package/src/lightning/progressRing/progress-ring.slds.css +0 -23
- package/src/lightning/progressStep/progressStep.js +1 -14
- package/src/lightning/radioGroup/form-element.slds.css +54 -54
- package/src/lightning/radioGroup/radioGroup.html +1 -2
- package/src/lightning/radioGroup/radioGroup.js +1 -0
- package/src/lightning/routingService/routingService.js +31 -5
- package/src/lightning/select/form-element.slds.css +54 -54
- package/src/lightning/select/select.slds.css +4 -2
- package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.css +4 -0
- package/src/lightning/spinner/spinner.slds.css +62 -62
- package/src/lightning/tab/tab.js +4 -2
- package/src/lightning/tab/tab.slds.css +14 -7
- package/src/lightning/tabBar/tab-bar.slds.css +16 -6
- package/src/lightning/tabset/__docs__/tabset.md +24 -1
- package/src/lightning/tabset/tabset.js +25 -38
- package/src/lightning/tabset/tabset.slds.css +0 -2
- package/src/lightning/textarea/form-element.slds.css +54 -54
- package/src/lightning/textarea/textarea.js +5 -1
- package/src/lightning/textarea/textarea.slds.css +22 -9
- package/src/lightning/timepicker/form-element.slds.css +54 -54
- package/src/lightning/timepicker/timepicker.js-meta.xml +6 -0
- package/src/lightning/timepicker/timepicker.slds.css +2 -2
- package/src/lightning/toast/__docs__/toast.md +20 -22
- package/src/lightning/toast/button-icon.slds.css +1 -1
- package/src/lightning/toast/icon.slds.css +12 -25
- package/src/lightning/toast/toast.js +15 -12
- package/src/lightning/toast/toast.slds.css +6 -18
- package/src/lightning/toastContainer/toast.slds.css +6 -18
- package/src/lightning/toastContainer/toastContainer.js +25 -17
- package/src/lightning/tooltipLibrary/tooltipLibrary.js +12 -9
- package/src/lightning/tree/tree.js +2 -0
- package/src/lightning/utils/classSet.js +9 -3
- package/src/lightning/utilsPrivate/formatUtils.js +158 -0
- package/src/lightning/utilsPrivate/textUtils.js +16 -0
- package/src/lightning/utilsPrivate/utilsPrivate.js +56 -15
- package/src/lightning/utilsPrivate/validationUtils.js +59 -0
- package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +0 -2
- package/src/lightning/datatable/resizeSensor.js +0 -244
- package/src/lightning/formattedRichText/linkify.js +0 -43
- package/src/lightning/utilsPrivate/smartSetAttribute.js +0 -19
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
@supports (--styling-hooks: '') {
|
|
3
2
|
/* re-assign current slds hooks using deprecated naming conventions */
|
|
4
3
|
:host([data-render-mode="shadow"]) {
|
|
5
|
-
|
|
6
|
-
--slds-c-pill-spacing-
|
|
7
|
-
--slds-c-pill-spacing-
|
|
8
|
-
--slds-c-pill-spacing-
|
|
4
|
+
/* stylelint-disable */
|
|
5
|
+
--slds-c-pill-spacing-blockend: var(--slds-c-pill-spacing-block-end);
|
|
6
|
+
--slds-c-pill-spacing-blockstart: var(--slds-c-pill-spacing-block-start);
|
|
7
|
+
--slds-c-pill-spacing-inlineend: var(--slds-c-pill-spacing-inline-end);
|
|
8
|
+
--slds-c-pill-spacing-inlinestart: var(--slds-c-pill-spacing-inline-start);
|
|
9
|
+
/* stylelint-enable */
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
:host([data-render-mode="shadow"]) .slds-pill {
|
|
11
|
+
:host([data-render-mode="shadow"]) .slds-pill {
|
|
12
12
|
display: inline-flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: space-between;
|
|
@@ -27,71 +27,58 @@
|
|
|
27
27
|
position: relative;
|
|
28
28
|
min-height: calc(var(--slds-g-sizing-7) + var(--slds-g-sizing-1));
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
:host([data-render-mode="shadow"]) .slds-pill + .slds-pill {
|
|
30
|
+
:host([data-render-mode="shadow"]) .slds-pill + .slds-pill {
|
|
32
31
|
margin-inline-start: calc(var(--slds-g-spacing-1) / 2);
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
:host([data-render-mode="shadow"]) .slds-pill:hover {
|
|
33
|
+
:host([data-render-mode="shadow"]) .slds-pill:hover {
|
|
36
34
|
--slds-c-pill-color-background: var(--slds-g-color-surface-container-2);
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
:host([data-render-mode="shadow"]) .slds-pill:focus {
|
|
36
|
+
:host([data-render-mode="shadow"]) .slds-pill:focus {
|
|
40
37
|
outline: 0;
|
|
41
38
|
--slds-c-pill-color-border: var(--slds-g-color-border-accent-3);
|
|
42
39
|
--slds-c-pill-shadow: 0 0 3px var(--slds-g-color-border-accent-3);
|
|
43
40
|
}
|
|
44
|
-
|
|
45
|
-
:host([data-render-mode="shadow"]) a {
|
|
41
|
+
:host([data-render-mode="shadow"]) a {
|
|
46
42
|
text-decoration: none;
|
|
47
43
|
color: var(--slds-g-color-accent-2);
|
|
48
44
|
}
|
|
49
|
-
|
|
50
|
-
:host([data-render-mode="shadow"]) a:hover,:host([data-render-mode="shadow"]) a:focus{
|
|
45
|
+
:host([data-render-mode="shadow"]) a:hover,:host([data-render-mode="shadow"]) a:focus{
|
|
51
46
|
text-decoration: none;
|
|
52
47
|
color:var(--slds-g-color-accent-4);
|
|
53
48
|
}
|
|
54
|
-
|
|
55
|
-
:host([data-render-mode="shadow"]) a:active{
|
|
49
|
+
:host([data-render-mode="shadow"]) a:active{
|
|
56
50
|
color:var(--slds-g-color-accent-4);
|
|
57
51
|
}
|
|
58
|
-
|
|
59
|
-
:host([data-render-mode="shadow"]) .slds-truncate {
|
|
52
|
+
:host([data-render-mode="shadow"]) .slds-truncate {
|
|
60
53
|
max-width: 100%;
|
|
61
54
|
overflow: hidden;
|
|
62
55
|
text-overflow: ellipsis;
|
|
63
56
|
white-space: nowrap;
|
|
64
57
|
}
|
|
65
|
-
|
|
66
|
-
:host([data-render-mode="shadow"]) .slds-pill_bare {
|
|
58
|
+
:host([data-render-mode="shadow"]) .slds-pill_bare {
|
|
67
59
|
--slds-c-pill-color-background: transparent;
|
|
68
60
|
--slds-c-pill-sizing-border: 0;
|
|
69
61
|
}
|
|
70
|
-
|
|
71
|
-
:host([data-render-mode="shadow"]) .slds-pill_bare:hover {
|
|
62
|
+
:host([data-render-mode="shadow"]) .slds-pill_bare:hover {
|
|
72
63
|
--slds-c-pill-color-background-: transparent;
|
|
73
64
|
}
|
|
74
|
-
|
|
75
|
-
:host([data-render-mode="shadow"]) .slds-pill__label {
|
|
65
|
+
:host([data-render-mode="shadow"]) .slds-pill__label {
|
|
76
66
|
white-space: nowrap;
|
|
77
67
|
overflow: hidden;
|
|
78
68
|
text-overflow: ellipsis;
|
|
79
69
|
}
|
|
80
|
-
|
|
81
|
-
:host([data-render-mode="shadow"]) .slds-pill__label:focus {
|
|
70
|
+
:host([data-render-mode="shadow"]) .slds-pill__label:focus {
|
|
82
71
|
outline: 0;
|
|
83
72
|
border-radius: var(--slds-g-radius-border-2);
|
|
84
73
|
box-shadow: var(--slds-c-pill-label-shadow-focus, 0 0 3px var(--slds-g-color-border-accent-3));
|
|
85
74
|
}
|
|
86
|
-
|
|
87
|
-
:host([data-render-mode="shadow"]) .slds-pill__icon,:host([data-render-mode="shadow"])
|
|
75
|
+
:host([data-render-mode="shadow"]) .slds-pill__icon,:host([data-render-mode="shadow"])
|
|
88
76
|
.slds-pill__icon_container {
|
|
89
77
|
width: var(--slds-g-sizing-6);
|
|
90
78
|
height: var(--slds-g-sizing-6);
|
|
91
79
|
margin-inline-end: var(--slds-g-spacing-1);
|
|
92
80
|
}
|
|
93
|
-
|
|
94
|
-
:host([data-render-mode="shadow"]) .slds-pill ::slotted(*) {
|
|
81
|
+
:host([data-render-mode="shadow"]) .slds-pill ::slotted(*) {
|
|
95
82
|
--slds-c-avatar-sizing: var(--slds-g-sizing-6);
|
|
96
83
|
--slds-c-icon-sizing: calc(var(--slds-g-sizing-6) - var(--slds-g-sizing-border-2));
|
|
97
84
|
|
|
@@ -99,13 +86,11 @@
|
|
|
99
86
|
display: block;
|
|
100
87
|
font-size: var(--slds-g-font-scale-neg-4);
|
|
101
88
|
}
|
|
102
|
-
|
|
103
|
-
:host([data-render-mode="shadow"]) .slds-pill__icon ~ .slds-pill__action,:host([data-render-mode="shadow"])
|
|
89
|
+
:host([data-render-mode="shadow"]) .slds-pill__icon ~ .slds-pill__action,:host([data-render-mode="shadow"])
|
|
104
90
|
.slds-pill__icon_container ~ .slds-pill__action {
|
|
105
91
|
padding-inline-start: calc(var(--slds-g-spacing-5) + 2px);
|
|
106
92
|
}
|
|
107
|
-
|
|
108
|
-
:host([data-render-mode="shadow"]) .slds-pill__remove {
|
|
93
|
+
:host([data-render-mode="shadow"]) .slds-pill__remove {
|
|
109
94
|
width: var(--slds-g-sizing-5);
|
|
110
95
|
height: var(--slds-g-sizing-5);
|
|
111
96
|
display: inline-flex;
|
|
@@ -114,33 +99,28 @@
|
|
|
114
99
|
margin-inline-start: var(--slds-g-sizing-2);
|
|
115
100
|
border-radius: calc(var(--slds-g-spacing-1) / 2);
|
|
116
101
|
}
|
|
117
|
-
|
|
118
|
-
:host([data-render-mode="shadow"]) .slds-pill__remove svg {
|
|
102
|
+
:host([data-render-mode="shadow"]) .slds-pill__remove svg {
|
|
119
103
|
width: calc(var(--slds-g-sizing-1) * 3);
|
|
120
104
|
height: calc(var(--slds-g-sizing-1) * 3);
|
|
121
105
|
}
|
|
122
|
-
|
|
123
|
-
:host([data-render-mode="shadow"]) .slds-pill_link {
|
|
106
|
+
:host([data-render-mode="shadow"]) .slds-pill_link {
|
|
124
107
|
border: 0;
|
|
125
108
|
padding: 0;
|
|
126
109
|
}
|
|
127
|
-
|
|
128
|
-
:host([data-render-mode="shadow"]) .slds-pill_link .slds-pill__icon_container {
|
|
110
|
+
:host([data-render-mode="shadow"]) .slds-pill_link .slds-pill__icon_container {
|
|
129
111
|
display: inline-block;
|
|
130
112
|
position: absolute;
|
|
131
113
|
top: 50%;
|
|
132
114
|
left: calc(var(--slds-g-spacing-1) / 2);
|
|
133
115
|
transform: translateY(-50%);
|
|
134
116
|
}
|
|
135
|
-
|
|
136
|
-
:host([data-render-mode="shadow"]) .slds-pill_link .slds-pill__remove {
|
|
117
|
+
:host([data-render-mode="shadow"]) .slds-pill_link .slds-pill__remove {
|
|
137
118
|
position: absolute;
|
|
138
119
|
top: 50%;
|
|
139
120
|
right: calc(var(--slds-g-spacing-1) / 2);
|
|
140
121
|
transform: translateY(-50%);
|
|
141
122
|
}
|
|
142
|
-
|
|
143
|
-
:host([data-render-mode="shadow"]) .slds-pill__action {
|
|
123
|
+
:host([data-render-mode="shadow"]) .slds-pill__action {
|
|
144
124
|
padding-block-start: var(--slds-c-pill-spacing-blockstart, calc(var(--slds-g-spacing-1) / 2));
|
|
145
125
|
padding-inline-end: var(--slds-c-pill-spacing-inlineend, calc((var(--slds-g-spacing-2) / 2) + 1rem));
|
|
146
126
|
padding-block-end: var(--slds-c-pill-spacing-blockend, calc(var(--slds-g-spacing-1) / 2));
|
|
@@ -154,28 +134,22 @@
|
|
|
154
134
|
text-overflow: ellipsis;
|
|
155
135
|
flex-grow: 1;
|
|
156
136
|
}
|
|
157
|
-
|
|
158
|
-
:host([data-render-mode="shadow"]) .slds-pill__action:focus {
|
|
137
|
+
:host([data-render-mode="shadow"]) .slds-pill__action:focus {
|
|
159
138
|
outline: 0;
|
|
160
139
|
border-color: var(--slds-c-pill-action-color-border, var(--slds-g-color-border-accent-3));
|
|
161
140
|
box-shadow: var(--slds-c-pill-action-shadow, 0 0 3px var(--slds-g-color-border-accent-2));
|
|
162
141
|
}
|
|
163
|
-
|
|
164
|
-
:host([data-render-mode="shadow"]) .slds-has-error {
|
|
142
|
+
:host([data-render-mode="shadow"]) .slds-has-error {
|
|
165
143
|
border-color: var(--slds-c-pill-error-color-border, var(--slds-g-color-border-error-1));
|
|
166
144
|
}
|
|
167
|
-
|
|
168
|
-
:host([data-render-mode="shadow"]) .slds-has-error:active {
|
|
145
|
+
:host([data-render-mode="shadow"]) .slds-has-error:active {
|
|
169
146
|
border-color: var(--slds-c-pill-error-color-border-active, var(--slds-g-color-border-error-1));
|
|
170
147
|
}
|
|
171
|
-
|
|
172
|
-
:host([data-render-mode="shadow"]) .slds-has-error .slds-pill__label {
|
|
148
|
+
:host([data-render-mode="shadow"]) .slds-has-error .slds-pill__label {
|
|
173
149
|
font-weight: var(--slds-g-font-weight-7);
|
|
174
150
|
color: var(--slds-g-color-error-1);
|
|
175
151
|
}
|
|
176
|
-
|
|
177
|
-
:host([data-render-mode="shadow"]) .slds-pill__action:hover {
|
|
152
|
+
:host([data-render-mode="shadow"]) .slds-pill__action:hover {
|
|
178
153
|
text-decoration: underline;
|
|
179
154
|
color: var(--slds-g-color-accent-4);
|
|
180
155
|
}
|
|
181
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
@supports (--styling-hooks: '') {
|
|
3
2
|
:host([data-render-mode="shadow"]) .slds-popover {
|
|
4
3
|
position: relative;
|
|
5
4
|
border-radius: var(--slds-g-radius-border-2);
|
|
@@ -117,4 +116,3 @@
|
|
|
117
116
|
border-top-color: var(--slds-g-color-border-accent-2);
|
|
118
117
|
background-color: var(--slds-g-color-on-accent-2);
|
|
119
118
|
}
|
|
120
|
-
}
|
|
@@ -2,62 +2,43 @@
|
|
|
2
2
|
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
|
|
3
3
|
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
4
|
|
|
5
|
-
@supports (--styling-hooks: '') {
|
|
6
5
|
/* :host::part(color-picker-button), */
|
|
6
|
+
|
|
7
7
|
:host([data-render-mode="shadow"]) [part='color-picker-button'] {
|
|
8
|
-
--slds-c-icon-color-foreground: var(
|
|
9
|
-
--slds-c-colorpickerbutton-color-foreground,
|
|
10
|
-
var(--slds-g-color-on-surface-1)
|
|
11
|
-
);
|
|
8
|
+
--slds-c-icon-color-foreground: var(--slds-g-color-on-surface-1);
|
|
12
9
|
--slds-c-icon-sizing: 0.875rem;
|
|
13
10
|
|
|
14
11
|
vertical-align: top;
|
|
15
|
-
padding-inline: var(--slds-
|
|
16
|
-
padding-block:
|
|
17
|
-
background: var(--slds-
|
|
12
|
+
padding-inline: var(--slds-g-spacing-2);
|
|
13
|
+
padding-block: 0.3rem;
|
|
14
|
+
background: var(--slds-g-color-surface-container-1);
|
|
18
15
|
line-height: 1;
|
|
19
16
|
margin-inline-end: var(--slds-g-spacing-1);
|
|
20
|
-
border-color: var(--slds-
|
|
17
|
+
border-color: var(--slds-g-color-border-2);
|
|
21
18
|
justify-content: center;
|
|
22
19
|
flex-shrink: 0;
|
|
23
20
|
position: relative;
|
|
24
21
|
display: inline-flex;
|
|
25
22
|
align-items: center;
|
|
26
23
|
border-style: solid;
|
|
27
|
-
border-width: var(--slds-
|
|
28
|
-
border-radius: var(--slds-
|
|
29
|
-
box-shadow: var(--slds-c-colorpickerbutton-shadow);
|
|
24
|
+
border-width: var(--slds-g-sizing-border-1);
|
|
25
|
+
border-radius: var(--slds-g-radius-border-2);
|
|
30
26
|
cursor: pointer;
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
:host([data-render-mode="shadow"]) [part='color-picker-button']:hover,:host([data-render-mode="shadow"])
|
|
34
30
|
[part='color-picker-button']:focus {
|
|
35
|
-
--slds-c-
|
|
36
|
-
--slds-c-colorpickerbutton-color-border: var(--slds-c-colorpickerbutton-color-border-hover);
|
|
37
|
-
--slds-c-colorpickerbutton-color-foreground: var(
|
|
38
|
-
--slds-c-colorpickerbutton-color-foreground-hover,
|
|
39
|
-
var(--slds-g-color-accent-4)
|
|
40
|
-
);
|
|
31
|
+
--slds-c-icon-color-foreground: var(--slds-g-color-accent-4);
|
|
41
32
|
}
|
|
42
|
-
:host([data-render-mode="shadow"]) [part='color-picker-button']:focus {
|
|
43
|
-
--slds-c-colorpickerbutton-shadow: var(
|
|
44
|
-
--slds-c-colorpickerbutton-shadow-focus,
|
|
45
|
-
0 0 3px var(--slds-s-button-shadow-focus)
|
|
46
|
-
);
|
|
47
33
|
|
|
34
|
+
:host([data-render-mode="shadow"]) [part='color-picker-button']:focus {
|
|
35
|
+
box-shadow: 0 0 3px var(--slds-s-button-shadow-focus);
|
|
48
36
|
outline: 0;
|
|
49
37
|
}
|
|
50
38
|
|
|
51
39
|
:host([data-render-mode="shadow"]) [part='color-picker-button']:active {
|
|
52
|
-
|
|
53
|
-
--slds-c-
|
|
54
|
-
--slds-c-colorpickerbutton-color-border-active,
|
|
55
|
-
var(--slds-g-color-accent-3)
|
|
56
|
-
);
|
|
57
|
-
--slds-c-colorpickerbutton-color-foreground: var(
|
|
58
|
-
--slds-c-colorpickerbutton-color-foreground-active,
|
|
59
|
-
var(--slds-g-color-accent-4)
|
|
60
|
-
);
|
|
40
|
+
border-color: var(--slds-g-color-accent-3);
|
|
41
|
+
--slds-c-icon-color-foreground: var(--slds-g-color-accent-4);
|
|
61
42
|
|
|
62
43
|
outline: 0;
|
|
63
44
|
}
|
|
@@ -85,17 +66,15 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
85
66
|
}
|
|
86
67
|
|
|
87
68
|
:host([data-render-mode="shadow"][disabled]) [part='color-picker-button'] {
|
|
88
|
-
--slds-c-
|
|
89
|
-
--slds-c-colorpickerbutton-color-foreground-disabled,
|
|
90
|
-
var(--slds-g-color-disabled-1)
|
|
91
|
-
);
|
|
69
|
+
--slds-c-icon-color-foreground: var(--slds-g-color-disabled-1);
|
|
92
70
|
|
|
93
71
|
pointer-events: none;
|
|
94
|
-
border-color: var(--slds-
|
|
72
|
+
border-color: var(--slds-g-color-border-disabled-2);
|
|
95
73
|
}
|
|
96
74
|
|
|
97
75
|
/* TO DO: .panel and .panel-open should be renamed
|
|
98
76
|
when working on color-input ticket */
|
|
77
|
+
|
|
99
78
|
:host([data-render-mode="shadow"]) [part='color-picker-button'] + .panel {
|
|
100
79
|
display: none;
|
|
101
80
|
}
|
|
@@ -106,4 +85,3 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
106
85
|
height: 270px;
|
|
107
86
|
background-color: grey;
|
|
108
87
|
}
|
|
109
|
-
}
|
|
@@ -52,6 +52,31 @@ export default class PrimitiveCustomCell extends LightningElement {
|
|
|
52
52
|
|
|
53
53
|
@api
|
|
54
54
|
getActionableElements() {
|
|
55
|
-
|
|
55
|
+
let result = [];
|
|
56
|
+
let navigable;
|
|
57
|
+
const traverseShadowRoots = (element) => {
|
|
58
|
+
// Check if the current element has a shadow root and the specified attribute
|
|
59
|
+
navigable = element.matches('[data-navigation="enable"]');
|
|
60
|
+
if (element.shadowRoot && navigable) {
|
|
61
|
+
let shadowElements = element.shadowRoot.querySelectorAll('[data-navigation="enable"]');
|
|
62
|
+
|
|
63
|
+
// If shadow elements with the attribute are found, recursively traverse them
|
|
64
|
+
if (shadowElements.length > 0) {
|
|
65
|
+
shadowElements.forEach(traverseShadowRoots);
|
|
66
|
+
} else {
|
|
67
|
+
// If no shadow elements with the attribute, add the current element to the result
|
|
68
|
+
result.push(element);
|
|
69
|
+
}
|
|
70
|
+
} else if(navigable) {
|
|
71
|
+
result.push(element);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// Start traversal from the root elements with the specified attribute
|
|
76
|
+
let rootElements = this.template.querySelectorAll('[data-navigation="enable"]');
|
|
77
|
+
rootElements.forEach(traverseShadowRoots);
|
|
78
|
+
|
|
79
|
+
return result;
|
|
56
80
|
}
|
|
81
|
+
|
|
57
82
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'lightning/sldsCommon';
|
|
@@ -57,44 +57,34 @@
|
|
|
57
57
|
* Additionally, LBC are currently relying on 'part' attributes to
|
|
58
58
|
* receive styling. Authoring styles that rely on slots is not recommended.
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
:host([data-render-mode="shadow"][size='xxx-small']) {
|
|
60
|
+
:host([data-render-mode="shadow"][size='xxx-small']) {
|
|
62
61
|
--slds-c-icon-sizing: var(--slds-g-sizing-3);
|
|
63
62
|
}
|
|
64
|
-
|
|
65
|
-
:host([data-render-mode="shadow"][size='xx-small']) {
|
|
63
|
+
:host([data-render-mode="shadow"][size='xx-small']) {
|
|
66
64
|
--slds-c-icon-sizing: calc(var(--slds-g-sizing-1) + var(--slds-g-sizing-4));
|
|
67
65
|
}
|
|
68
|
-
|
|
69
|
-
:host([data-render-mode="shadow"][size='x-small']) {
|
|
66
|
+
:host([data-render-mode="shadow"][size='x-small']) {
|
|
70
67
|
--slds-c-icon-sizing: var(--slds-g-sizing-5);
|
|
71
68
|
}
|
|
72
|
-
|
|
73
|
-
:host([data-render-mode="shadow"][size='small']) {
|
|
69
|
+
:host([data-render-mode="shadow"][size='small']) {
|
|
74
70
|
--slds-c-icon-sizing: var(--slds-g-sizing-7);
|
|
75
71
|
}
|
|
76
|
-
|
|
77
|
-
:host([data-render-mode="shadow"][size='large']) {
|
|
72
|
+
:host([data-render-mode="shadow"][size='large']) {
|
|
78
73
|
--slds-c-icon-sizing: var(--slds-g-sizing-10);
|
|
79
74
|
}
|
|
80
|
-
|
|
81
|
-
:host([data-render-mode="shadow"][variant='warning']) {
|
|
75
|
+
:host([data-render-mode="shadow"][variant='warning']) {
|
|
82
76
|
--slds-c-icon-color-foreground: var(--slds-g-color-warning-1);
|
|
83
77
|
}
|
|
84
|
-
|
|
85
|
-
:host([data-render-mode="shadow"][variant='success']) {
|
|
78
|
+
:host([data-render-mode="shadow"][variant='success']) {
|
|
86
79
|
--slds-c-icon-color-foreground: var(--slds-g-color-success-1);
|
|
87
80
|
}
|
|
88
|
-
|
|
89
|
-
:host([data-render-mode="shadow"][variant='error']) {
|
|
81
|
+
:host([data-render-mode="shadow"][variant='error']) {
|
|
90
82
|
--slds-c-icon-color-foreground: var(--slds-g-color-error-1);
|
|
91
83
|
}
|
|
92
|
-
|
|
93
|
-
:host([data-render-mode="shadow"][variant='light']) {
|
|
84
|
+
:host([data-render-mode="shadow"][variant='light']) {
|
|
94
85
|
--slds-c-icon-color-foreground: var(--slds-g-color-neutral-base-70);
|
|
95
86
|
}
|
|
96
|
-
|
|
97
|
-
:host([data-render-mode="shadow"]) [part='boundary'] {
|
|
87
|
+
:host([data-render-mode="shadow"]) [part='boundary'] {
|
|
98
88
|
/* --sds-c-icon-color-background: var(--slds-c-icon-color-background); */
|
|
99
89
|
--sds-c-icon-radius-border: var(--slds-c-icon-radius-border, var(--slds-g-radius-border-2));
|
|
100
90
|
--sds-c-icon-sizing-border: var(--slds-c-icon-sizing-border);
|
|
@@ -123,19 +113,16 @@
|
|
|
123
113
|
*/
|
|
124
114
|
display: inline-flex;
|
|
125
115
|
}
|
|
126
|
-
|
|
127
|
-
:host([data-render-mode="shadow"]) [part='icon'] {
|
|
116
|
+
:host([data-render-mode="shadow"]) [part='icon'] {
|
|
128
117
|
--sds-c-icon-color-foreground: var(--slds-c-icon-color-foreground, var(--slds-g-color-on-accent-1));
|
|
129
118
|
--sds-c-icon-sizing-height: var(--slds-c-icon-sizing-height, var(--slds-c-icon-sizing, var(--slds-g-sizing-9)));
|
|
130
119
|
--sds-c-icon-sizing-width: var(--slds-c-icon-sizing-width, var(--slds-c-icon-sizing, var(--slds-g-sizing-9)));
|
|
131
120
|
}
|
|
132
|
-
|
|
133
|
-
:host([data-render-mode="shadow"][icon-name*='action']) {
|
|
121
|
+
:host([data-render-mode="shadow"][icon-name*='action']) {
|
|
134
122
|
--slds-c-icon-spacing-block: var(--slds-g-sizing-3);
|
|
135
123
|
--slds-c-icon-spacing-inline: var(--slds-g-sizing-3);
|
|
136
124
|
--slds-c-icon-radius-border: calc(var(--slds-g-radius-border-circle) / 2);
|
|
137
125
|
}
|
|
138
|
-
}
|
|
139
126
|
/**
|
|
140
127
|
* P R I V A T E
|
|
141
128
|
*
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { api } from 'lwc';
|
|
2
2
|
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
3
3
|
import { registerDomain, unregisterDomain } from 'lightning/messageDispatcher';
|
|
4
|
+
import { isCSR } from 'lightning/utilsPrivate';
|
|
5
|
+
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Class representing primitive iframe.
|
|
@@ -14,7 +16,7 @@ export default class LightningPrimitiveIframe extends LightningShadowBaseClass {
|
|
|
14
16
|
@api frameStyle = '';
|
|
15
17
|
@api title;
|
|
16
18
|
|
|
17
|
-
language = document.documentElement.lang || null;
|
|
19
|
+
language = isCSR ? document.documentElement.lang || null : null;
|
|
18
20
|
|
|
19
21
|
connectedCallback() {
|
|
20
22
|
super.connectedCallback();
|