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
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
white-space: nowrap !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
:host([data-render-mode="shadow"]) [part='color-picker-custom'] {
|
|
18
|
+
:host([data-render-mode="shadow"]) [part='color-picker-custom'] {
|
|
20
19
|
--slds-c-inputtext-spacing-inlinestart: var(--slds-g-spacing-1);
|
|
21
20
|
--slds-c-inputtext-spacing-inlineend: var(--slds-g-spacing-1);
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
/* needed to change the size of the hex input */
|
|
24
|
+
|
|
25
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__input-custom-hex {
|
|
26
26
|
flex: none;
|
|
27
27
|
width: 4.2rem;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
:host([data-render-mode="shadow"]) .slds-m-bottom_small {
|
|
31
31
|
margin-block-end: var(--slds-g-spacing-3);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__range-indicator {
|
|
35
35
|
transform: translate3d(-0.375rem, 0.375rem, 0);
|
|
36
36
|
cursor: pointer;
|
|
37
37
|
position: absolute;
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 16%), inset 0 2px 4px 4px rgba(0, 0, 0, 16%);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__range-indicator:focus {
|
|
46
46
|
outline: none;
|
|
47
47
|
box-shadow: 0 0 3px var(--slds-g-color-accent-2);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-and-preview {
|
|
51
51
|
display: flex;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider {
|
|
55
55
|
appearance: none;
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
flex: 1;
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider::-webkit-slider-thumb {
|
|
142
142
|
appearance: none;
|
|
143
143
|
cursor: pointer;
|
|
144
144
|
height: calc(var(--slds-g-spacing-5) - (1px * 2));
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
background: var(--slds-g-color-surface-container-2);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider::-moz-range-thumb {
|
|
152
152
|
appearance: none;
|
|
153
153
|
box-sizing: border-box; /* Note: FF did not inherit border-box from parent. Initially set to content-box, it needs to set manually here */
|
|
154
154
|
cursor: pointer;
|
|
@@ -159,31 +159,31 @@
|
|
|
159
159
|
background: var(--slds-g-color-neutral-base-95);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider:focus::-webkit-slider-thumb {
|
|
163
163
|
box-shadow: 0 0 5px var(--slds-g-color-accent-2);
|
|
164
164
|
border: none;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider:focus::-moz-range-thumb {
|
|
168
168
|
box-shadow: 0 0 5px var(--slds-g-color-accent-2);
|
|
169
169
|
border: none;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider:active::-webkit-slider-thumb {
|
|
173
173
|
box-shadow: 0 0 5px var(--slds-g-color-accent-2);
|
|
174
174
|
border: none;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider:active::-moz-range-thumb {
|
|
178
178
|
box-shadow: 0 0 5px var(--slds-g-color-accent-2);
|
|
179
179
|
border: none;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__hue-slider:focus {
|
|
183
183
|
outline: none;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
:host([data-render-mode="shadow"]) .slds-swatch {
|
|
187
187
|
margin-inline-start: var(--slds-g-spacing-1);
|
|
188
188
|
height: var(--slds-g-spacing-5);
|
|
189
189
|
width: var(--slds-g-spacing-5);
|
|
@@ -191,27 +191,26 @@
|
|
|
191
191
|
border-radius: var(--slds-g-spacing-1);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__custom-inputs {
|
|
195
195
|
display: flex;
|
|
196
196
|
padding-block-start: var(--slds-g-spacing-2);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__custom-inputs > div {
|
|
200
200
|
margin-inline-end: var(--slds-g-spacing-1);
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
:host([data-render-mode="shadow"]) .slds-has-error {
|
|
204
204
|
border-color: var(--slds-g-color-border-error-1);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
:host([data-render-mode="shadow"]) .slds-form-element__help {
|
|
208
208
|
padding-block-start: var(--slds-g-spacing-2);
|
|
209
209
|
padding-inline-start: var(--slds-g-spacing-1);
|
|
210
210
|
color: var(--slds-g-color-error-1);
|
|
211
211
|
font-size: var(--slds-g-spacing-3);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
:host([data-render-mode="shadow"]) abbr[title] {
|
|
215
215
|
text-decoration: none;
|
|
216
216
|
}
|
|
217
|
-
}
|
|
@@ -221,11 +221,10 @@
|
|
|
221
221
|
text-transform: none !important;
|
|
222
222
|
white-space: nowrap !important;
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
/**
|
|
224
|
+
/**
|
|
226
225
|
* Input Text
|
|
227
226
|
*/
|
|
228
|
-
|
|
227
|
+
:host([data-render-mode="shadow"]) [part='input-text'] {
|
|
229
228
|
/* Host reassignments to composed slds-icon */
|
|
230
229
|
--slds-c-icon-color-foreground: var(
|
|
231
230
|
--slds-c-inputtext-icon-color-foreground,
|
|
@@ -267,30 +266,25 @@
|
|
|
267
266
|
flex-wrap: wrap;
|
|
268
267
|
align-items: center;
|
|
269
268
|
}
|
|
270
|
-
|
|
271
|
-
/**
|
|
269
|
+
/**
|
|
272
270
|
* Input Container
|
|
273
271
|
*/
|
|
274
|
-
|
|
272
|
+
:host([data-render-mode="shadow"]) [part='input-container'] {
|
|
275
273
|
flex: 1 0 100%;
|
|
276
274
|
align-items: stretch;
|
|
277
275
|
}
|
|
278
|
-
|
|
279
|
-
:host([data-render-mode="shadow"]) [part='input-container'][type='range'] {
|
|
276
|
+
:host([data-render-mode="shadow"]) [part='input-container'][type='range'] {
|
|
280
277
|
border: none;
|
|
281
278
|
display: inline-block;
|
|
282
279
|
}
|
|
283
|
-
|
|
284
|
-
:host([data-render-mode="shadow"]) [part='input-container'] .slds-input__icon:not(button) {
|
|
280
|
+
:host([data-render-mode="shadow"]) [part='input-container'] .slds-input__icon:not(button) {
|
|
285
281
|
pointer-events: none;
|
|
286
282
|
}
|
|
287
|
-
|
|
288
|
-
:host([data-render-mode="shadow"]) [part='input'][type='range'] {
|
|
283
|
+
:host([data-render-mode="shadow"]) [part='input'][type='range'] {
|
|
289
284
|
min-height: calc(1.875rem + (1px * 2));
|
|
290
285
|
margin: 0;
|
|
291
286
|
}
|
|
292
|
-
|
|
293
|
-
:host([data-render-mode="shadow"]) [part='input-container'][type='range']:focus-within,:host([data-render-mode="shadow"])
|
|
287
|
+
:host([data-render-mode="shadow"]) [part='input-container'][type='range']:focus-within,:host([data-render-mode="shadow"])
|
|
294
288
|
[part='input-container'][type='range']:active {
|
|
295
289
|
--sds-c-inputtext-color-border: var(--slds-g-color-border-accent-1);
|
|
296
290
|
--sds-c-inputtext-shadow: 0 0 3px var(--slds-g-color-accent-2);
|
|
@@ -300,11 +294,10 @@
|
|
|
300
294
|
border-width: var(--sds-c-inputtext-sizing-border, var(--slds-g-sizing-border-1));
|
|
301
295
|
border-color: var(--sds-c-inputtext-color-border, var(--slds-g-color-border-2));
|
|
302
296
|
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
297
|
+
/**
|
|
305
298
|
* Input
|
|
306
299
|
*/
|
|
307
|
-
|
|
300
|
+
:host([data-render-mode="shadow"]) [part='input'] {
|
|
308
301
|
padding-inline-start: var(
|
|
309
302
|
--slds-c-inputtext-spacing-inlinestart,
|
|
310
303
|
var(--slds-g-spacing-3));
|
|
@@ -314,11 +307,10 @@
|
|
|
314
307
|
height: unset;
|
|
315
308
|
font-family: var(--slds-g-font-family);
|
|
316
309
|
}
|
|
317
|
-
|
|
318
|
-
/**
|
|
310
|
+
/**
|
|
319
311
|
* Focus / active State
|
|
320
312
|
*/
|
|
321
|
-
|
|
313
|
+
:host(:not([disabled])) [part="input-container"]:focus-within,
|
|
322
314
|
:host(:not([disabled])) [part="input-container"]:active {
|
|
323
315
|
--sds-c-inputtext-color-border: var(--slds-g-color-border-accent-1);
|
|
324
316
|
--sds-c-inputtext-shadow: 0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-accent-2);
|
|
@@ -326,72 +318,66 @@
|
|
|
326
318
|
|
|
327
319
|
outline: 0;
|
|
328
320
|
}
|
|
329
|
-
|
|
330
|
-
/**
|
|
321
|
+
/**
|
|
331
322
|
* Read Only State
|
|
332
323
|
*/
|
|
333
|
-
|
|
324
|
+
:host([data-render-mode="shadow"][readonly]) [part='input-text'] {
|
|
334
325
|
--sds-c-inputtext-spacing-inline-start-readonly: 0;
|
|
335
326
|
--sds-c-inputtext-color-border-focus: transparent;
|
|
336
327
|
--slds-c-inputtext-color-border: transparent;
|
|
337
328
|
--slds-c-inputtext-color-background: transparent;
|
|
338
329
|
--slds-c-inputtext-color-background-focus: transparent;
|
|
339
330
|
}
|
|
340
|
-
|
|
341
|
-
:host([data-render-mode="shadow"][readonly]) [part="input-container"]:focus-within,:host([data-render-mode="shadow"][readonly]) [part="input-container"]:active {
|
|
331
|
+
:host([data-render-mode="shadow"][readonly]) [part="input-container"]:focus-within,:host([data-render-mode="shadow"][readonly]) [part="input-container"]:active {
|
|
342
332
|
--sds-c-inputtext-color-border: var(--slds-g-color-disabled-container-2);
|
|
343
333
|
--sds-c-inputtext-shadow: 0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-accent-1);
|
|
344
334
|
--sds-c-inputtext-color-background: transparent;
|
|
345
335
|
|
|
346
336
|
outline: 0;
|
|
347
337
|
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
338
|
+
/**
|
|
350
339
|
* Invalid State
|
|
351
340
|
*
|
|
352
341
|
* Does not use --sds-c-inputtext-color-border-invalid due to this hook being
|
|
353
342
|
* tied to :host([aria-invalid]) which this subsystem does not use. Instead, it
|
|
354
343
|
* uses :host([invalid]).
|
|
355
344
|
*/
|
|
356
|
-
|
|
345
|
+
:host([data-render-mode="shadow"][invalid]) [part='input-text'] {
|
|
357
346
|
--sds-c-inputtext-shadow: 0 0 0 var(--slds-g-sizing-border-1) inset
|
|
358
347
|
var(--slds-g-color-error-1);
|
|
359
348
|
--slds-c-inputtext-color-border: var(--slds-g-color-border-error-1);
|
|
360
349
|
--slds-c-icon-color-foreground: var(--slds-g-color-error-1);
|
|
361
350
|
}
|
|
362
|
-
|
|
363
|
-
/**
|
|
351
|
+
/**
|
|
364
352
|
* Invalid State - Focus
|
|
365
353
|
*
|
|
366
354
|
* The following styling hooks are included in SDS and need to be reassigned
|
|
367
355
|
* here to prevent a bug with the focus state border and box-shadow
|
|
368
356
|
*/
|
|
369
|
-
|
|
357
|
+
:host([data-render-mode="shadow"][invalid]) [part='input-container']:focus-within {
|
|
370
358
|
--sds-c-inputtext-shadow:
|
|
371
359
|
var(--slds-g-color-error-base-50) 0 0 0 var(--slds-g-sizing-border-1) inset,
|
|
372
360
|
0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-border-error-1);
|
|
373
361
|
--sds-c-inputtext-color-border: var(--slds-g-color-error-1);
|
|
374
362
|
}
|
|
375
|
-
|
|
376
|
-
/**
|
|
363
|
+
/**
|
|
377
364
|
* Disabled State
|
|
378
365
|
*
|
|
379
366
|
* Both parts form the visible form control.
|
|
380
367
|
*/
|
|
381
|
-
|
|
368
|
+
:host([data-render-mode="shadow"][disabled]) [part='input-container'],:host([data-render-mode="shadow"][disabled]) [part='input'] {
|
|
382
369
|
cursor: not-allowed;
|
|
383
370
|
--sds-c-inputtext-color-background: var(--slds-g-color-disabled-container-1);
|
|
384
371
|
--sds-c-inputtext-color-border: var(--slds-g-color-border-1);
|
|
385
372
|
--sds-c-inputtext-text-color: var(--slds-g-color-on-surface-1);
|
|
386
373
|
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
374
|
+
/**
|
|
389
375
|
* Label
|
|
390
376
|
*
|
|
391
377
|
* Add [part='input-text'] to increase specificity and
|
|
392
378
|
* avoid collisions with other components using [part='label'] (e.g. slds-input-checkbox)
|
|
393
379
|
*/
|
|
394
|
-
|
|
380
|
+
:host([data-render-mode="shadow"]) [part='input-text'] [part='label'] {
|
|
395
381
|
padding-block-start: var(--slds-g-spacing-1);
|
|
396
382
|
padding-inline-end: var(--slds-g-spacing-2);
|
|
397
383
|
color: var(
|
|
@@ -407,19 +393,17 @@
|
|
|
407
393
|
/* We inline flex to control the spacing between elements and not have to rely on whitespace characters */
|
|
408
394
|
display: inline-flex;
|
|
409
395
|
}
|
|
410
|
-
|
|
411
|
-
/**
|
|
396
|
+
/**
|
|
412
397
|
* Start
|
|
413
398
|
*
|
|
414
399
|
* Only expects an SLDS icon. We assign the SLDS Icon Styling Hook here
|
|
415
400
|
* so we don't add spacing to other icons composed in the component, e.g.,
|
|
416
401
|
* the icon in the inline help text.
|
|
417
402
|
*/
|
|
418
|
-
|
|
403
|
+
:host([data-render-mode="shadow"]) [part='start'] {
|
|
419
404
|
--slds-c-icon-spacing-inlineend: var(--slds-g-spacing-2);
|
|
420
405
|
}
|
|
421
|
-
|
|
422
|
-
/**
|
|
406
|
+
/**
|
|
423
407
|
* Label Inline Variant
|
|
424
408
|
*
|
|
425
409
|
* Note: all the 33% values you see are remnants of legacy SLDS. We need to
|
|
@@ -431,7 +415,7 @@
|
|
|
431
415
|
*
|
|
432
416
|
* Ref: https://github.com/salesforce-ux/design-system-internal/blob/240-winter-23/ui/components/form-element/horizontal/_index.scss#L63
|
|
433
417
|
*/
|
|
434
|
-
|
|
418
|
+
@media (width >= 48em) {
|
|
435
419
|
:host([data-render-mode="shadow"][variant='label-inline']) [part='input-text'] {
|
|
436
420
|
display: block;
|
|
437
421
|
}
|
|
@@ -453,22 +437,18 @@
|
|
|
453
437
|
padding-block-start: var(--slds-g-spacing-1);
|
|
454
438
|
}
|
|
455
439
|
}
|
|
456
|
-
|
|
457
|
-
:host([data-render-mode="shadow"]) input[type="search"] + lightning-primitive-icon::part(icon) {
|
|
440
|
+
:host([data-render-mode="shadow"]) input[type="search"] + lightning-primitive-icon::part(icon) {
|
|
458
441
|
left: var(--slds-g-spacing-3);
|
|
459
442
|
fill: var(--slds-g-color-on-surface-1);
|
|
460
443
|
}
|
|
461
|
-
|
|
462
|
-
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-button_icon {
|
|
444
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-button_icon {
|
|
463
445
|
background-color: transparent;
|
|
464
446
|
}
|
|
465
|
-
|
|
466
|
-
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-button_icon:focus,:host([data-render-mode="shadow"])
|
|
447
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-button_icon:focus,:host([data-render-mode="shadow"])
|
|
467
448
|
.slds-input-has-icon .slds-button_icon:hover {
|
|
468
449
|
--slds-c-icon-color-foreground: var(--slds-g-color-accent-4);
|
|
469
450
|
}
|
|
470
|
-
|
|
471
|
-
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-input__icon {
|
|
451
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-input__icon {
|
|
472
452
|
width: 0.875rem;
|
|
473
453
|
height: 0.875rem;
|
|
474
454
|
position: absolute;
|
|
@@ -478,47 +458,41 @@
|
|
|
478
458
|
border: 0;
|
|
479
459
|
z-index: 2;
|
|
480
460
|
}
|
|
481
|
-
|
|
482
|
-
/**
|
|
461
|
+
/**
|
|
483
462
|
* Has Icon Left
|
|
484
463
|
*/
|
|
485
|
-
|
|
464
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon_left {
|
|
486
465
|
--slds-c-inputtext-spacing-inlinestart: var(--slds-g-spacing-6);
|
|
487
466
|
}
|
|
488
|
-
|
|
489
|
-
:host([data-render-mode="shadow"]) .slds-input-has-icon_left .slds-input__icon,:host([data-render-mode="shadow"])
|
|
467
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon_left .slds-input__icon,:host([data-render-mode="shadow"])
|
|
490
468
|
.slds-input-has-icon_left-right .slds-input__icon_left {
|
|
491
469
|
inset-inline-start: var(--slds-g-spacing-3);
|
|
492
470
|
}
|
|
493
|
-
|
|
494
|
-
/**
|
|
471
|
+
/**
|
|
495
472
|
* Has Icon Right
|
|
496
473
|
*/
|
|
497
|
-
|
|
474
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon_right {
|
|
498
475
|
--slds-c-inputtext-spacing-inlineend: var(--slds-g-spacing-6);
|
|
499
476
|
}
|
|
500
|
-
|
|
501
|
-
:host([data-render-mode="shadow"]) .slds-input-has-icon_right .slds-input__icon,:host([data-render-mode="shadow"])
|
|
477
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon_right .slds-input__icon,:host([data-render-mode="shadow"])
|
|
502
478
|
.slds-input-has-icon_left-right .slds-input__icon_right {
|
|
503
479
|
inset-inline-end: var(--slds-g-spacing-3);
|
|
504
480
|
}
|
|
505
|
-
|
|
506
|
-
/**
|
|
481
|
+
/**
|
|
507
482
|
* Has Icon Left & Right
|
|
508
483
|
*/
|
|
509
|
-
|
|
484
|
+
:host([data-render-mode="shadow"]) .slds-input-has-icon_left-right {
|
|
510
485
|
--slds-c-inputtext-spacing-inlinestart: var(--slds-g-spacing-6);
|
|
511
486
|
--slds-c-inputtext-spacing-inlineend: var(--slds-g-spacing-6);
|
|
512
487
|
}
|
|
513
|
-
|
|
514
|
-
/**
|
|
488
|
+
/**
|
|
515
489
|
* A temporarily baked-in utility class until SLDS gets a proper utility package.
|
|
516
490
|
*
|
|
517
491
|
* This is a hybrid patch between synthetic and native shadow. The ideal final
|
|
518
492
|
* outcome is the removal of this class and replacing the class with the SLDS
|
|
519
493
|
* utility package solution.
|
|
520
494
|
*/
|
|
521
|
-
|
|
495
|
+
:host([data-render-mode="shadow"]) .slds-assistive-text {
|
|
522
496
|
position: absolute !important;
|
|
523
497
|
margin: -1px !important;
|
|
524
498
|
border: 0 !important;
|
|
@@ -530,4 +504,3 @@
|
|
|
530
504
|
text-transform: none !important;
|
|
531
505
|
white-space: nowrap !important;
|
|
532
506
|
}
|
|
533
|
-
}
|
|
@@ -15,33 +15,32 @@
|
|
|
15
15
|
white-space: nowrap !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
/* ToDo: swap out for Utility classes */
|
|
19
|
+
|
|
20
|
+
:host([data-render-mode="shadow"]) .slds-m-left_x-small {
|
|
21
21
|
margin-inline-start: var(--slds-g-spacing-2);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__selector {
|
|
25
25
|
margin-block-start: var(--slds-g-spacing-2);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__selector.slds-popover {
|
|
29
29
|
width: 14rem;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__selector-footer {
|
|
33
33
|
display: flex;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
:host([data-render-mode="shadow"]) .slds-color-picker__selector-footer lightning-button {
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
:host([data-render-mode="shadow"]) .slds-is-absolute {
|
|
41
41
|
position: absolute;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
:host([data-render-mode="shadow"]) .slds-show {
|
|
45
45
|
display: block;
|
|
46
46
|
}
|
|
47
|
-
}
|
|
@@ -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,12 +2,11 @@
|
|
|
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
|
/**
|
|
7
6
|
* Invalid State
|
|
8
7
|
*/
|
|
8
|
+
|
|
9
9
|
:host([data-render-mode="shadow"][invalid]) [part='combobox'] {
|
|
10
10
|
--slds-c-inputtext-color-border: var(--slds-g-color-error-base-50);
|
|
11
11
|
--slds-c-inputtext-sizing-border: var(--slds-g-sizing-border-1);
|
|
12
12
|
}
|
|
13
|
-
}
|