chore: added yarn-error.log to .gitignore
This commit is contained in:
parent
9b110ca0f9
commit
73ad0bdebb
3 changed files with 5 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -7,9 +7,10 @@
|
||||||
## system files
|
## system files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
## npm
|
## npm/yarn
|
||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
yarn-error.log
|
||||||
|
|
||||||
# we do prefer yarn.lock so we do not want npms version of it
|
# we do prefer yarn.lock so we do not want npms version of it
|
||||||
/package-lock.json
|
/package-lock.json
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,6 @@ export class LionInputDatepicker extends LionInputDate {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
// Create a unique id for the invoker, since it is placed in light dom for a11y.
|
|
||||||
this.__invokerId = this.__createUniqueIdForA11y();
|
this.__invokerId = this.__createUniqueIdForA11y();
|
||||||
this._calendarInvokerSlot = 'suffix';
|
this._calendarInvokerSlot = 'suffix';
|
||||||
|
|
||||||
|
|
@ -272,7 +271,7 @@ export class LionInputDatepicker extends LionInputDate {
|
||||||
// eslint-disable-next-line class-methods-use-this
|
// eslint-disable-next-line class-methods-use-this
|
||||||
_invokerTemplate() {
|
_invokerTemplate() {
|
||||||
// TODO: aria-expanded should be toggled by Overlay system, to allow local overlays
|
// TODO: aria-expanded should be toggled by Overlay system, to allow local overlays
|
||||||
// (a.k.a. dropdowns) as well
|
// (a.k.a. dropdowns) as well. Important: will be breaking for subclassers
|
||||||
return html`
|
return html`
|
||||||
<button
|
<button
|
||||||
@click="${this.__openCalendarOverlay}"
|
@click="${this.__openCalendarOverlay}"
|
||||||
|
|
@ -287,7 +286,6 @@ export class LionInputDatepicker extends LionInputDate {
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Renders the invoker button + the calendar overlay invoked by this button
|
|
||||||
__createPickerAndReturnInvokerNode() {
|
__createPickerAndReturnInvokerNode() {
|
||||||
const renderParent = document.createElement('div');
|
const renderParent = document.createElement('div');
|
||||||
render(this._invokerTemplate(), renderParent);
|
render(this._invokerTemplate(), renderParent);
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,10 @@ storiesOf('Forms|Input Datepicker', module)
|
||||||
`,
|
`,
|
||||||
)
|
)
|
||||||
.add(
|
.add(
|
||||||
'disabledDatesValidator',
|
'isDateDisabledValidator',
|
||||||
() => html`
|
() => html`
|
||||||
<lion-input-datepicker
|
<lion-input-datepicker
|
||||||
label="disabledDates"
|
label="isDateDisabled"
|
||||||
help-text="You're not allowed to choose the 15th"
|
help-text="You're not allowed to choose the 15th"
|
||||||
.errorValidators=${[isDateDisabledValidator(d => d.getDate() === 15)]}
|
.errorValidators=${[isDateDisabledValidator(d => d.getDate() === 15)]}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue