Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mass update of lightning stubs from new script #50

Merged
merged 1 commit into from
May 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lightning-mocks/accordion/accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
-->
<template>
<slot></slot>
</template>
</template>
5 changes: 2 additions & 3 deletions src/lightning-mocks/accordion/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ import { LightningElement, api } from 'lwc';

export default class Accordion extends LightningElement {
@api activeSectionName
@api allowMultipleSectionsOpen

}
@api allowMultipleSectionsOpen
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what happened in this diff since line 11 didn't change at all but looks ok I guess.

4 changes: 2 additions & 2 deletions src/lightning-mocks/accordionSection/accordionSection.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
-->
<template>
<slot name="actions"></slot>
<slot></slot>
</template>
<slot name="actions"></slot>
</template>
6 changes: 2 additions & 4 deletions src/lightning-mocks/accordionSection/accordionSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import { LightningElement, api } from 'lwc';

export default class AccordionSection extends LightningElement {
@api actions
@api label
@api name

@api label
@api name
}
11 changes: 5 additions & 6 deletions src/lightning-mocks/avatar/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import { LightningElement, api } from 'lwc';

export default class Avatar extends LightningElement {
@api alternativeText
@api fallbackIconName
@api initials
@api size
@api src
@api variant

@api fallbackIconName
@api initials
@api size
@api src
@api variant
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 11-15 didn't change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I changed the script that generates these to use spaces instead of tabs :)

}
1 change: 0 additions & 1 deletion src/lightning-mocks/badge/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ import { LightningElement, api } from 'lwc';

export default class Badge extends LightningElement {
@api label

}
5 changes: 2 additions & 3 deletions src/lightning-mocks/breadcrumb/breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { LightningElement, api } from 'lwc';

export default class Breadcrumb extends LightningElement {
@api href
@api label
@api name

@api label
@api name
}
2 changes: 1 addition & 1 deletion src/lightning-mocks/breadcrumbs/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
-->
<template>
<slot></slot>
</template>
</template>
1 change: 0 additions & 1 deletion src/lightning-mocks/breadcrumbs/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ import { LightningElement, api } from 'lwc';

export default class Breadcrumbs extends LightningElement {


}
21 changes: 7 additions & 14 deletions src/lightning-mocks/button/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,12 @@
import { LightningElement, api } from 'lwc';

export default class Button extends LightningElement {
@api ariaAtomic
@api ariaControls
@api ariaDescribedBy
@api ariaExpanded
@api ariaLabel
@api ariaLive
@api disabled
@api iconName
@api iconPosition
@api label
@api name
@api type
@api value
@api variant
@api iconName
@api iconPosition
@api label
@api name
@api type
@api value
@api variant
@api focus() {}
}
2 changes: 1 addition & 1 deletion src/lightning-mocks/buttonGroup/buttonGroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
-->
<template>
<slot></slot>
</template>
</template>
1 change: 0 additions & 1 deletion src/lightning-mocks/buttonGroup/buttonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ import { LightningElement, api } from 'lwc';

export default class ButtonGroup extends LightningElement {


}
21 changes: 7 additions & 14 deletions src/lightning-mocks/buttonIcon/buttonIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@ import { LightningElement, api } from 'lwc';

export default class ButtonIcon extends LightningElement {
@api alternativeText
@api ariaAtomic
@api ariaControls
@api ariaDescribedBy
@api ariaExpanded
@api ariaLabel
@api ariaLive
@api disabled
@api iconClass
@api iconName
@api name
@api size
@api type
@api value
@api variant
@api iconClass
@api iconName
@api name
@api size
@api type
@api value
@api variant
@api focus() {}
}
13 changes: 6 additions & 7 deletions src/lightning-mocks/buttonIconStateful/buttonIconStateful.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import { LightningElement, api } from 'lwc';

export default class ButtonIconStateful extends LightningElement {
@api alternativeText
@api disabled
@api iconName
@api name
@api selected
@api size
@api value
@api variant
@api iconName
@api name
@api selected
@api size
@api value
@api variant
@api focus() {}
}
2 changes: 1 addition & 1 deletion src/lightning-mocks/buttonMenu/buttonMenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
-->
<template>
<slot></slot>
</template>
</template>
26 changes: 12 additions & 14 deletions src/lightning-mocks/buttonMenu/buttonMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ import { LightningElement, api } from 'lwc';

export default class ButtonMenu extends LightningElement {
@api alternativeText
@api body
@api disabled
@api draftAlternativeText
@api iconName
@api iconSize
@api isDraft
@api isLoading
@api label
@api loadingStateAlternativeText
@api menuAlignment
@api name
@api value
@api variant
@api visible
@api disabled
@api draftAlternativeText
@api iconName
@api iconSize
@api isDraft
@api isLoading
@api label
@api loadingStateAlternativeText
@api menuAlignment
@api nubbin
@api value
@api variant
@api focus() {}
}
14 changes: 7 additions & 7 deletions src/lightning-mocks/buttonStateful/buttonStateful.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { LightningElement, api } from 'lwc';

export default class ButtonStateful extends LightningElement {
@api iconNameWhenHover
@api iconNameWhenOff
@api iconNameWhenOn
@api labelWhenHover
@api labelWhenOff
@api labelWhenOn
@api state
@api variant
@api iconNameWhenOff
@api iconNameWhenOn
@api labelWhenHover
@api labelWhenOff
@api labelWhenOn
@api selected
@api variant
@api focus() {}
}
6 changes: 3 additions & 3 deletions src/lightning-mocks/card/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
-->
<template>
<slot name="title"></slot>
<slot name="actions"></slot>
<slot></slot>
<slot name="actions"></slot>
<slot name="footer"></slot>
</template>
<slot name="title"></slot>
</template>
8 changes: 2 additions & 6 deletions src/lightning-mocks/card/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
import { LightningElement, api } from 'lwc';

export default class Card extends LightningElement {
@api title
@api actions
@api footer
@api iconName
@api variant

@api iconName
@api variant
}
2 changes: 1 addition & 1 deletion src/lightning-mocks/carousel/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
-->
<template>
<slot></slot>
</template>
</template>
5 changes: 2 additions & 3 deletions src/lightning-mocks/carousel/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { LightningElement, api } from 'lwc';

export default class Carousel extends LightningElement {
@api disableAutoRefresh
@api disableAutoScroll
@api scrollDuration

@api disableAutoScroll
@api scrollDuration
}
2 changes: 1 addition & 1 deletion src/lightning-mocks/carouselImage/carouselImage.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
SPDX-License-Identifier: MIT
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
-->
<template></template>
<template></template>
9 changes: 4 additions & 5 deletions src/lightning-mocks/carouselImage/carouselImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
import { LightningElement, api } from 'lwc';

export default class CarouselImage extends LightningElement {
@api src
@api header
@api description
@api alternativeText
@api description
@api header
@api href

}
@api src
}
21 changes: 11 additions & 10 deletions src/lightning-mocks/checkboxGroup/checkboxGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ import { LightningElement, api } from 'lwc';

export default class CheckboxGroup extends LightningElement {
@api disabled
@api label
@api messageWhenValueMissing
@api name
@api options
@api required
@api value
@api label
@api messageWhenValueMissing
@api name
@api options
@api required
@api validity
@api value
@api checkValidity() {}
@api focus() {}
@api reportValidity() {}
@api setCustomValidity() {}
@api showHelpMessageIfInvalid() {}
@api focus() {}
@api reportValidity() {}
@api setCustomValidity() {}
@api showHelpMessageIfInvalid() {}
}
5 changes: 2 additions & 3 deletions src/lightning-mocks/clickToDial/clickToDial.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { LightningElement, api } from 'lwc';

export default class ClickToDial extends LightningElement {
@api params
@api recordId
@api value

@api recordId
@api value
}
31 changes: 18 additions & 13 deletions src/lightning-mocks/combobox/combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@ import { LightningElement, api } from 'lwc';

export default class Combobox extends LightningElement {
@api disabled
@api dropdownAlignment
@api fieldLevelHelp
@api label
@api messageWhenValueMissing
@api name
@api options
@api placeholder
@api readonly
@api required
@api spinnerActive
@api validity
@api value
@api variant
@api dropdownAlignment
@api fieldLevelHelp
@api label
@api messageWhenValueMissing
@api name
@api options
@api placeholder
@api readOnly
@api required
@api spinnerActive
@api validity
@api value
@api variant
@api blur() {}
@api checkValidity() {}
@api focus() {}
@api reportValidity() {}
@api setCustomValidity() {}
@api showHelpMessageIfInvalid() {}
}
Loading