lightning-base-components 1.18.7-ssr → 1.18.8-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/metadata/raptor.json +2 -0
- package/package.json +2 -68
- package/src/lightning/accordion/accordion.css +4 -4
- package/src/lightning/accordion/accordion.js +2 -4
- package/src/lightning/accordionSection/accordionSection.css +4 -4
- package/src/lightning/accordionSection/accordionSection.js +2 -4
- package/src/lightning/avatar/avatar.css +2 -2
- package/src/lightning/avatar/avatar.js +2 -3
- package/src/lightning/badge/__examples__/basic/basic.html +1 -3
- package/src/lightning/badge/badge.html +14 -16
- package/src/lightning/badge/badge.js +2 -4
- package/src/lightning/baseCombobox/baseCombobox.css +2 -3
- package/src/lightning/baseCombobox/baseCombobox.js +2 -4
- package/src/lightning/baseComboboxItem/baseComboboxItem.js +2 -4
- package/src/lightning/baseComboboxItem/inline.css +2 -2
- package/src/lightning/breadcrumb/breadcrumb.css +2 -2
- package/src/lightning/breadcrumb/breadcrumb.js +2 -4
- package/src/lightning/breadcrumbs/breadcrumbs.css +2 -2
- package/src/lightning/breadcrumbs/breadcrumbs.js +2 -3
- package/src/lightning/button/button.css +2 -2
- package/src/lightning/buttonGroup/buttonGroup.css +2 -2
- package/src/lightning/buttonGroup/buttonGroup.js +2 -3
- package/src/lightning/buttonIcon/buttonIcon.css +2 -2
- package/src/lightning/buttonIcon/buttonIcon.js +0 -1
- package/src/lightning/buttonIconStateful/buttonIconStateful.css +2 -2
- package/src/lightning/buttonMenu/buttonMenu.css +2 -2
- package/src/lightning/buttonMenu/buttonMenu.js +2 -4
- package/src/lightning/buttonStateful/buttonStateful.css +2 -2
- package/src/lightning/buttonStateful/buttonStateful.js +2 -3
- package/src/lightning/calendar/calendar.css +2 -2
- package/src/lightning/calendar/calendar.js +2 -4
- package/src/lightning/card/card.css +2 -2
- package/src/lightning/card/card.js +2 -3
- package/src/lightning/colorPickerCustom/colorPickerCustom.css +2 -2
- package/src/lightning/colorPickerCustom/colorPickerCustom.js +2 -3
- package/src/lightning/colorPickerPanel/colorPickerPanel.css +2 -2
- package/src/lightning/colorPickerPanel/colorPickerPanel.js +2 -4
- package/src/lightning/combobox/combobox.css +2 -2
- package/src/lightning/combobox/combobox.js +2 -4
- package/src/lightning/datatable/datatable.js +1 -0
- package/src/lightning/datepicker/datepicker.css +2 -2
- package/src/lightning/datepicker/datepicker.js +2 -4
- package/src/lightning/datetimepicker/datetimepicker.css +2 -2
- package/src/lightning/datetimepicker/datetimepicker.js +2 -4
- package/src/lightning/dualListbox/dualListbox.css +2 -2
- package/src/lightning/dualListbox/dualListbox.js +2 -4
- package/src/lightning/dynamicIcon/dynamicIcon.js +2 -3
- 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/formattedDateTime/formattedDateTime.js +1 -1
- package/src/lightning/formattedRichText/formattedRichText.css +2 -2
- package/src/lightning/formattedRichText/formattedRichText.js +2 -4
- package/src/lightning/formattedText/formattedText.css +1 -1
- package/src/lightning/formattedText/formattedText.js +2 -3
- package/src/lightning/helptext/helptext.css +2 -2
- package/src/lightning/helptext/helptext.js +2 -3
- package/src/lightning/icon/icon.css +2 -2
- package/src/lightning/icon/icon.js +2 -5
- package/src/lightning/input/input.css +2 -2
- package/src/lightning/layout/layout.css +2 -2
- package/src/lightning/layout/layout.js +2 -5
- package/src/lightning/layoutItem/layoutItem.css +2 -2
- package/src/lightning/layoutItem/layoutItem.js +2 -5
- package/src/lightning/menuDivider/menuDivider.css +2 -2
- package/src/lightning/menuDivider/menuDivider.js +2 -4
- package/src/lightning/menuItem/menuItem.css +2 -2
- package/src/lightning/menuItem/menuItem.js +2 -4
- package/src/lightning/menuSubheader/menuSubheader.css +2 -2
- package/src/lightning/menuSubheader/menuSubheader.js +2 -4
- package/src/lightning/modal/__examples__disabled/basic/basic.css +1 -1
- package/src/lightning/modal/__examples__disabled/demoallform/demoallform.css +2 -4
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.css +2 -4
- package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +0 -15
- package/src/lightning/modalBase/modalBase.css +2 -7
- package/src/lightning/modalBase/modalBase.html +0 -2
- package/src/lightning/modalBase/modalBase.js +5 -44
- package/src/lightning/modalBody/modalBody.html +0 -1
- package/src/lightning/modalBody/modalBody.js +2 -15
- package/src/lightning/modalFooter/modalFooter.html +1 -1
- package/src/lightning/modalFooter/modalFooter.js +2 -17
- package/src/lightning/modalHeader/modalHeader.html +1 -1
- package/src/lightning/modalHeader/modalHeader.js +2 -18
- package/src/lightning/overlay/overlay.js +2 -3
- package/src/lightning/pill/link.css +2 -2
- package/src/lightning/pill/pill.js +2 -4
- 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 +2 -4
- package/src/lightning/pillContainer/standardPillContainer.css +2 -2
- package/src/lightning/popup/popup.css +2 -2
- package/src/lightning/popup/popup.js +2 -3
- package/src/lightning/primitiveBubble/primitiveBubble.css +2 -2
- package/src/lightning/primitiveBubble/primitiveBubble.js +2 -4
- package/src/lightning/primitiveButton/primitiveButton.js +2 -3
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.css +2 -2
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.js +2 -3
- package/src/lightning/primitiveIcon/primitiveIcon.css +2 -2
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.css +2 -2
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.css +2 -2
- package/src/lightning/primitiveInputColor/primitiveInputColor.css +2 -2
- package/src/lightning/primitiveInputFile/primitiveInputFile.css +2 -2
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.css +2 -2
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.css +2 -2
- package/src/lightning/progressBar/progressBar.html +0 -1
- package/src/lightning/progressBar/progressBar.js +2 -3
- package/src/lightning/progressRing/progressRing.html +3 -8
- package/src/lightning/progressRing/progressRing.js +2 -3
- package/src/lightning/radioGroup/radioGroup.css +3 -2
- package/src/lightning/radioGroup/radioGroup.js +2 -4
- package/src/lightning/select/select.css +2 -2
- package/src/lightning/select/select.js +2 -4
- package/src/lightning/spinner/spinner.css +2 -2
- package/src/lightning/spinner/spinner.js +2 -4
- package/src/lightning/tab/tab.css +2 -2
- package/src/lightning/tabBar/tabBar.css +2 -2
- package/src/lightning/tabBar/tabBar.js +2 -4
- package/src/lightning/tabset/tabset.css +10 -2
- package/src/lightning/tabset/tabset.js +2 -4
- package/src/lightning/timepicker/timepicker.css +2 -2
- package/src/lightning/timepicker/timepicker.js +2 -4
- package/src/lightning/toast/toast.css +2 -2
- package/src/lightning/toast/toast.js +2 -4
- package/src/lightning/toastContainer/toastContainer.css +2 -2
- package/src/lightning/verticalNavigation/verticalNavigation.css +3 -2
- package/src/lightning/verticalNavigation/verticalNavigation.js +2 -3
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +3 -2
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.js +2 -3
- package/src/lightning/badge/badge.css +0 -2
- package/src/lightning/badge/badge.slds.css +0 -73
- package/src/lightning/baseCombobox/listbox.slds.css +0 -267
- package/src/lightning/baseCombobox/spinner.slds.css +0 -438
- package/src/lightning/buttonMenu/dropdown.slds.css +0 -1360
- package/src/lightning/input/input-checkbox.slds.css +0 -395
- package/src/lightning/input/input-text.slds.css +0 -398
- package/src/lightning/modal/__examples__disabled/demo/demo.css +0 -1
- package/src/lightning/modal/__examples__disabled/demoall/demoall.css +0 -5
- package/src/lightning/modal/__examples__disabled/demofootless/demofootless.css +0 -1
- package/src/lightning/modal/__examples__disabled/demoheadless/demoheadless.css +0 -5
- package/src/lightning/modalBase/modal-base.slds.css +0 -240
- package/src/lightning/modalBody/modal-body.slds.css +0 -61
- package/src/lightning/modalBody/modalBody.css +0 -3
- package/src/lightning/modalFooter/modal-footer.slds.css +0 -68
- package/src/lightning/modalFooter/modalFooter.css +0 -2
- package/src/lightning/modalHeader/modal-header.slds.css +0 -70
- package/src/lightning/modalHeader/modalHeader.css +0 -3
- package/src/lightning/progressBar/progress-bar.slds.css +0 -66
- package/src/lightning/progressBar/progressBar.css +0 -2
- package/src/lightning/progressRing/progress-ring.slds.css +0 -140
- package/src/lightning/progressRing/progressRing.css +0 -2
- package/src/lightning/tabset/tabset.slds.css +0 -9
package/metadata/raptor.json
CHANGED
|
@@ -1583,8 +1583,10 @@
|
|
|
1583
1583
|
"industriesHealthcloudApi": {},
|
|
1584
1584
|
"industriesHealthcloudHpiApi": {},
|
|
1585
1585
|
"industriesIdentityVerificationApi": {},
|
|
1586
|
+
"industriesInstantPricingApi": {},
|
|
1586
1587
|
"industriesInterestTaggingApi": {},
|
|
1587
1588
|
"industriesLoyaltyEngineApi": {},
|
|
1589
|
+
"industriesMaterialityAssessmentCalculateApi": {},
|
|
1588
1590
|
"industriesPricingApi": {},
|
|
1589
1591
|
"industriesPublicSectorApi": {},
|
|
1590
1592
|
"industriesRcgTenantmanagementApi": {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightning-base-components",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.8-alpha",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"external",
|
|
@@ -1263,73 +1263,7 @@
|
|
|
1263
1263
|
"path": "scopedImports/@salesforce-internal-core.untrustedContentDomain.js"
|
|
1264
1264
|
}
|
|
1265
1265
|
],
|
|
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
|
-
],
|
|
1266
|
+
"nativeShadowEnabledComponents": [],
|
|
1333
1267
|
"expose": [
|
|
1334
1268
|
"lightning/accordion",
|
|
1335
1269
|
"lightning/accordionSection",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
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,12 +1,11 @@
|
|
|
1
|
-
import { api } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api } from 'lwc';
|
|
3
2
|
import { createAccordionManager } from 'lightning/accordionUtilsPrivate';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* A collection of vertically stacked sections with multiple content areas.
|
|
7
6
|
* @slot default Placeholder for accordion-section components.
|
|
8
7
|
*/
|
|
9
|
-
export default class LightningAccordion extends
|
|
8
|
+
export default class LightningAccordion extends LightningElement {
|
|
10
9
|
privateIsSectionLessInLastRender = true;
|
|
11
10
|
_allowMultipleSectionsOpen = false;
|
|
12
11
|
connected = false;
|
|
@@ -31,7 +30,6 @@ export default class LightningAccordion extends LightningShadowBaseClass {
|
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
connectedCallback() {
|
|
34
|
-
super.connectedCallback();
|
|
35
33
|
this.connected = true;
|
|
36
34
|
this.setAttribute('role', 'list');
|
|
37
35
|
this.classList.add('slds-accordion');
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
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,5 +1,4 @@
|
|
|
1
|
-
import { api, track } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api, track } from 'lwc';
|
|
3
2
|
import { generateUniqueId } from 'lightning/inputUtils';
|
|
4
3
|
import { keyCodes, isHeadingLevelValid } from 'lightning/utilsPrivate';
|
|
5
4
|
import { classSet } from 'lightning/utils';
|
|
@@ -11,7 +10,7 @@ import DIR from '@salesforce/i18n/dir';
|
|
|
11
10
|
* Actions are displayed at the top right corner of the accordion section.
|
|
12
11
|
* @slot default Placeholder for your content in the accordion section.
|
|
13
12
|
*/
|
|
14
|
-
export default class LightningAccordionSection extends
|
|
13
|
+
export default class LightningAccordionSection extends LightningElement {
|
|
15
14
|
/**
|
|
16
15
|
* The unique section name to use with the active-section-name attribute in the accordion component.
|
|
17
16
|
* @type {string}
|
|
@@ -59,7 +58,6 @@ export default class LightningAccordionSection extends LightningShadowBaseClass
|
|
|
59
58
|
privateUniqueId = generateUniqueId('lgt-accordion-section');
|
|
60
59
|
|
|
61
60
|
connectedCallback() {
|
|
62
|
-
super.connectedCallback();
|
|
63
61
|
this.setAttribute('role', 'listitem');
|
|
64
62
|
this.classList.add('slds-accordion__list-item');
|
|
65
63
|
this.registerSectionWithParent();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './avatar.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './avatar.slds.css'; */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { api, track } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api, track } from 'lwc';
|
|
3
2
|
import { classSet } from 'lightning/utils';
|
|
4
3
|
import { normalizeString, reflectAttribute } from 'lightning/utilsPrivate';
|
|
5
4
|
import { computeSldsClass } from 'lightning/iconUtils';
|
|
@@ -10,7 +9,7 @@ const DEFAULT_VARIANT = 'square';
|
|
|
10
9
|
/**
|
|
11
10
|
* A visual representation of an object.
|
|
12
11
|
*/
|
|
13
|
-
export default class LightningAvatar extends
|
|
12
|
+
export default class LightningAvatar extends LightningElement {
|
|
14
13
|
/**
|
|
15
14
|
* The alternative text used to describe the avatar, which is displayed as
|
|
16
15
|
* hover text on the image.
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
</h2>
|
|
6
6
|
|
|
7
7
|
<!-- Badge: basic -->
|
|
8
|
-
<lightning-badge label="Alpha"></lightning-badge>
|
|
8
|
+
<lightning-badge label="Alpha" class="slds-badge_inverse"></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>
|
|
13
11
|
</div>
|
|
14
12
|
</template>
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
<span class={
|
|
9
|
-
<
|
|
10
|
-
<lightning-primitive-icon icon-name={iconName} size="xx-small"></lightning-primitive-icon>
|
|
11
|
-
</span>
|
|
2
|
+
<template if:false={isIconBeforeLabel}>
|
|
3
|
+
{label}
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<template if:true={iconName}>
|
|
7
|
+
<span class={computedClass}>
|
|
8
|
+
<span class="slds-icon_container slds-current-color" title={iconAlternativeText}>
|
|
9
|
+
<lightning-primitive-icon icon-name={iconName} size="xx-small"></lightning-primitive-icon>
|
|
12
10
|
</span>
|
|
13
|
-
</
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</
|
|
11
|
+
</span>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<template if:true={isIconBeforeLabel}>
|
|
15
|
+
{label}
|
|
16
|
+
</template>
|
|
19
17
|
</template>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { api } from 'lwc';
|
|
1
|
+
import { LightningElement, api } from 'lwc';
|
|
2
2
|
import { classSet } from 'lightning/utils';
|
|
3
3
|
import { normalizeString } from 'lightning/utilsPrivate';
|
|
4
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
5
4
|
|
|
6
5
|
const DEFAULT_POSITION = 'start';
|
|
7
6
|
|
|
@@ -9,7 +8,7 @@ const DEFAULT_POSITION = 'start';
|
|
|
9
8
|
* Represents a label which holds a small amount of information, such as the
|
|
10
9
|
* number of unread notifications.
|
|
11
10
|
*/
|
|
12
|
-
export default class LightningBadge extends
|
|
11
|
+
export default class LightningBadge extends LightningElement {
|
|
13
12
|
/**
|
|
14
13
|
* Normalized icon position
|
|
15
14
|
*/
|
|
@@ -56,7 +55,6 @@ export default class LightningBadge extends LightningShadowBaseClass {
|
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
connectedCallback() {
|
|
59
|
-
super.connectedCallback();
|
|
60
58
|
this.classList.add('slds-badge');
|
|
61
59
|
}
|
|
62
60
|
|
|
@@ -3,8 +3,7 @@ import labelDeselectOptionKeyboard from '@salesforce/label/LightningCombobox.des
|
|
|
3
3
|
import labelLoadingText from '@salesforce/label/LightningCombobox.loadingText';
|
|
4
4
|
import labelPillCloseButtonAlternativeText from '@salesforce/label/LightningCombobox.pillCloseButtonAlternativeText';
|
|
5
5
|
import labelPlaceholder from '@salesforce/label/LightningCombobox.placeholder';
|
|
6
|
-
import { api, track } from 'lwc';
|
|
7
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
6
|
+
import { api, track, LightningElement } from 'lwc';
|
|
8
7
|
import { handleKeyDownOnInput } from './keyboard';
|
|
9
8
|
import { BaseComboboxEvents } from './baseComboboxEvents';
|
|
10
9
|
import { classSet } from 'lightning/utils';
|
|
@@ -49,7 +48,7 @@ const ARIA_LABEL = 'aria-label';
|
|
|
49
48
|
const ARIA_ACTIVEDESCENDANT = 'aria-activedescendant';
|
|
50
49
|
const ARIA_INVALID = 'aria-invalid';
|
|
51
50
|
|
|
52
|
-
export default class LightningBaseCombobox extends
|
|
51
|
+
export default class LightningBaseCombobox extends LightningElement {
|
|
53
52
|
static delegatesFocus = true;
|
|
54
53
|
static validationOptOut = ['class'];
|
|
55
54
|
|
|
@@ -126,7 +125,6 @@ export default class LightningBaseCombobox extends LightningShadowBaseClass {
|
|
|
126
125
|
}
|
|
127
126
|
|
|
128
127
|
connectedCallback() {
|
|
129
|
-
super.connectedCallback();
|
|
130
128
|
this.setupAriaObserverIfAbsent();
|
|
131
129
|
if (isCSR) {
|
|
132
130
|
this.overrideDropdownAlignment();
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { api } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api } from 'lwc';
|
|
3
2
|
|
|
4
3
|
import card from './card.html';
|
|
5
4
|
import inline from './inline.html';
|
|
6
5
|
|
|
7
|
-
export default class LightningBaseComboboxItem extends
|
|
6
|
+
export default class LightningBaseComboboxItem extends LightningElement {
|
|
8
7
|
@api item = {};
|
|
9
8
|
|
|
10
9
|
connectedCallback() {
|
|
11
|
-
super.connectedCallback();
|
|
12
10
|
// We want to make sure that the item has 'aria-selected' if it's selectable
|
|
13
11
|
if (this.item.selectable) {
|
|
14
12
|
this.setAttribute('aria-selected', 'false');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './listbox.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './listbox.slds.css'; */
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { api } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api } from 'lwc';
|
|
3
2
|
import { isCSR } from 'lightning/utilsPrivate';
|
|
4
3
|
const DEFAULT_HREF = '#';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* An item in the hierarchy path of the page the user is on.
|
|
8
7
|
*/
|
|
9
|
-
export default class LightningBreadcrumb extends
|
|
8
|
+
export default class LightningBreadcrumb extends LightningElement {
|
|
10
9
|
static validationOptOut = ['class'];
|
|
11
10
|
/**
|
|
12
11
|
* The URL of the page that the breadcrumb goes to.
|
|
@@ -82,7 +81,6 @@ export default class LightningBreadcrumb extends LightningShadowBaseClass {
|
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
connectedCallback() {
|
|
85
|
-
super.connectedCallback();
|
|
86
84
|
this.connected = true;
|
|
87
85
|
// add default CSS classes to custom element tag
|
|
88
86
|
this.classList.add('slds-breadcrumb__item');
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LightningElement } from 'lwc';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A hierarchy path of the page you're currently visiting within the website or app.
|
|
5
5
|
* @slot default Placeholder for lightning-breadcrumb
|
|
6
6
|
*/
|
|
7
|
-
export default class LightningBreadcrumbs extends
|
|
7
|
+
export default class LightningBreadcrumbs extends LightningElement {
|
|
8
8
|
connectedCallback() {
|
|
9
|
-
super.connectedCallback();
|
|
10
9
|
this.setAttribute('aria-label', 'Breadcrumbs');
|
|
11
10
|
this.setAttribute('role', 'navigation');
|
|
12
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './button.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './button.slds.css'; */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LightningElement } from 'lwc';
|
|
2
2
|
import { BUTTON_GROUP_ORDER } from 'lightning/utilsPrivate';
|
|
3
3
|
|
|
4
|
-
export default class LightningButtonGroup extends
|
|
4
|
+
export default class LightningButtonGroup extends LightningElement {
|
|
5
5
|
connectedCallback() {
|
|
6
|
-
super.connectedCallback();
|
|
7
6
|
this.classList.add('slds-button-group');
|
|
8
7
|
this.setAttribute('role', 'group');
|
|
9
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './button-icon.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './button-icon.slds.css'; */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './button-icon-stateful.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './button-icon-stateful.slds.css'; */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './button-menu.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './button-menu.slds.css'; */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import labelLoading from '@salesforce/label/LightningButtonMenu.loading';
|
|
2
2
|
import labelShowMenu from '@salesforce/label/LightningButtonMenu.showMenu';
|
|
3
|
-
import { api, track } from 'lwc';
|
|
4
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
3
|
+
import { LightningElement, api, track } from 'lwc';
|
|
5
4
|
import { classSet } from 'lightning/utils';
|
|
6
5
|
import {
|
|
7
6
|
normalizeBoolean,
|
|
@@ -47,7 +46,7 @@ validMenuAlignments.push(...['auto', 'auto-right', 'auto-left']);
|
|
|
47
46
|
* Represents a dropdown menu with a list of actions or functions.
|
|
48
47
|
* @slot default Placeholder for menu-item
|
|
49
48
|
*/
|
|
50
|
-
export default class LightningButtonMenu extends
|
|
49
|
+
export default class LightningButtonMenu extends LightningElement {
|
|
51
50
|
static delegatesFocus = true;
|
|
52
51
|
|
|
53
52
|
/**
|
|
@@ -146,7 +145,6 @@ export default class LightningButtonMenu extends LightningShadowBaseClass {
|
|
|
146
145
|
_needsFocusAfterRender = false;
|
|
147
146
|
|
|
148
147
|
connectedCallback() {
|
|
149
|
-
super.connectedCallback();
|
|
150
148
|
this._connected = true;
|
|
151
149
|
this.keyboardInterface = this.menuKeyboardInterface();
|
|
152
150
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './button-stateful.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './button-stateful.slds.css'; */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { api, track } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api, track } from 'lwc';
|
|
3
2
|
import { classSet } from 'lightning/utils';
|
|
4
3
|
import {
|
|
5
4
|
normalizeBoolean,
|
|
@@ -12,7 +11,7 @@ const DEFAULT_VARIANT = 'neutral';
|
|
|
12
11
|
/**
|
|
13
12
|
* A button that toggles between states.
|
|
14
13
|
*/
|
|
15
|
-
export default class LightningButtonStateful extends
|
|
14
|
+
export default class LightningButtonStateful extends LightningElement {
|
|
16
15
|
static delegatesFocus = true;
|
|
17
16
|
|
|
18
17
|
_originalVariant = DEFAULT_VARIANT;
|
|
@@ -3,8 +3,7 @@ import labelNextMonth from '@salesforce/label/LightningDateTimePicker.nextMonth'
|
|
|
3
3
|
import labelPreviousMonth from '@salesforce/label/LightningDateTimePicker.previousMonth';
|
|
4
4
|
import labelToday from '@salesforce/label/LightningDateTimePicker.today';
|
|
5
5
|
import labelYearSelector from '@salesforce/label/LightningDateTimePicker.yearSelector';
|
|
6
|
-
import { api, track } from 'lwc';
|
|
7
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
6
|
+
import { LightningElement, api, track } from 'lwc';
|
|
8
7
|
import { classSet } from 'lightning/utils';
|
|
9
8
|
import { isCSR } from 'lightning/utilsPrivate';
|
|
10
9
|
import { generateUniqueId } from 'lightning/inputUtils';
|
|
@@ -47,7 +46,7 @@ const JAPANESE_CALENDAR_YEARS = [
|
|
|
47
46
|
{ key: 'M', year: 1868, label: '\u660e\u6cbb' }, // Meiji: 1/1/1868
|
|
48
47
|
];
|
|
49
48
|
|
|
50
|
-
export default class LightningCalendar extends
|
|
49
|
+
export default class LightningCalendar extends LightningElement {
|
|
51
50
|
@track calendarYear = null;
|
|
52
51
|
@track calendarMonth = null;
|
|
53
52
|
|
|
@@ -95,7 +94,6 @@ export default class LightningCalendar extends LightningShadowBaseClass {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
connectedCallback() {
|
|
98
|
-
super.connectedCallback();
|
|
99
97
|
this._connected = true;
|
|
100
98
|
|
|
101
99
|
this.todayDate = getCurrentDateString();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './card.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './card.slds.css'; */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { api } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api } from 'lwc';
|
|
3
2
|
import { classSet } from 'lightning/utils';
|
|
4
3
|
import { isNarrow, isBase } from './utils';
|
|
5
4
|
import { isHeadingLevelValid } from 'lightning/utilsPrivate';
|
|
@@ -15,7 +14,7 @@ import { isHeadingLevelValid } from 'lightning/utilsPrivate';
|
|
|
15
14
|
* For example, the footer can display a "View All" link to navigate to a list view.
|
|
16
15
|
* @slot default Placeholder for your content in the card body.
|
|
17
16
|
*/
|
|
18
|
-
export default class LightningCard extends
|
|
17
|
+
export default class LightningCard extends LightningElement {
|
|
19
18
|
/**
|
|
20
19
|
* The title can include text, and is displayed in the header.
|
|
21
20
|
* To include additional markup or another component, use the title slot.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
2
|
-
@import './color-picker-custom.slds.css';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
|
+
@import './color-picker-custom.slds.css'; */
|
|
@@ -9,8 +9,7 @@ import labelHueInput from '@salesforce/label/LightningColorPicker.hueInput';
|
|
|
9
9
|
import labelRInput from '@salesforce/label/LightningColorPicker.rInput';
|
|
10
10
|
import labelRedAbbr from '@salesforce/label/LightningColorPicker.redAbbr';
|
|
11
11
|
import formFactorPropertyName from '@salesforce/client/formFactor';
|
|
12
|
-
import { api, track } from 'lwc';
|
|
13
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
12
|
+
import { LightningElement, api, track } from 'lwc';
|
|
14
13
|
import { keyCodes } from 'lightning/utilsPrivate';
|
|
15
14
|
import { generateUniqueId, getErrorMessage } from 'lightning/inputUtils';
|
|
16
15
|
import {
|
|
@@ -37,7 +36,7 @@ const i18n = {
|
|
|
37
36
|
|
|
38
37
|
const CANVAS = { x: 198, y: 80 };
|
|
39
38
|
|
|
40
|
-
export default class LightningColorPickerCustom extends
|
|
39
|
+
export default class LightningColorPickerCustom extends LightningElement {
|
|
41
40
|
@track _hueValue = null;
|
|
42
41
|
@track
|
|
43
42
|
_rgb = {
|
|
@@ -2,8 +2,7 @@ import labelCancelButton from '@salesforce/label/LightningColorPicker.cancelButt
|
|
|
2
2
|
import labelCustomTab from '@salesforce/label/LightningColorPickerPanel.customTab';
|
|
3
3
|
import labelDefaultTab from '@salesforce/label/LightningColorPickerPanel.defaultTab';
|
|
4
4
|
import labelDoneButton from '@salesforce/label/LightningColorPicker.doneButton';
|
|
5
|
-
import { api, track } from 'lwc';
|
|
6
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
5
|
+
import { LightningElement, api, track } from 'lwc';
|
|
7
6
|
import { classSet } from 'lightning/utils';
|
|
8
7
|
import { keyCodes } from 'lightning/utilsPrivate';
|
|
9
8
|
|
|
@@ -15,14 +14,13 @@ const i18n = {
|
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
const DEFAULT_COLOR = '#000000';
|
|
18
|
-
export default class LightningColorPickerPanel extends
|
|
17
|
+
export default class LightningColorPickerPanel extends LightningElement {
|
|
19
18
|
@api currentColor;
|
|
20
19
|
|
|
21
20
|
@track _isCustomTabActive = false;
|
|
22
21
|
@track _selectedColor = null;
|
|
23
22
|
|
|
24
23
|
connectedCallback() {
|
|
25
|
-
super.connectedCallback();
|
|
26
24
|
this._selectedColor = this.currentColor || DEFAULT_COLOR;
|
|
27
25
|
}
|
|
28
26
|
|