@aquera/nile-elements 0.1.57-beta-1.0 → 0.1.57-beta-1.1

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.1.57-beta-1.0",
6
+ "version": "0.1.57-beta-1.1",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -147,7 +147,6 @@ export const styles = css`
147
147
  color: var(--nile-colors-dark-900);
148
148
  font-size: 12px;
149
149
  font-weight: 500;
150
- line-height: 12px;
151
150
  letter-spacing: 0.2px;
152
151
  }
153
152
 
@@ -412,6 +411,7 @@ nile-icon[disabled] {
412
411
  flex-direction: column;
413
412
  gap: 18px;
414
413
  padding: 16px;
414
+ width: auto;
415
415
  }
416
416
 
417
417
 
@@ -119,7 +119,7 @@ export class NileCalendar extends NileElement {
119
119
  }
120
120
 
121
121
  private get yearOptions(): number[] {
122
- const fallbackStart = 1990;
122
+ const fallbackStart = 2000;
123
123
  const fallbackEnd = 2050;
124
124
 
125
125
  const start = this.startYear ?? fallbackStart;
@@ -193,12 +193,13 @@ export class NileCalendar extends NileElement {
193
193
  base:true,
194
194
  base__range:this.range,
195
195
  })}
196
+ part="calendar-root"
196
197
  >
197
198
  <div class=${classMap({
198
199
  "calendar-config":true,
199
200
  "hidden": !this.range || (this.range && this.hideTypes)
200
- })}>
201
- <div class="calendar-switcher">
201
+ })} part="calendar-config">
202
+ <div class="calendar-switcher" part="calendar-switcher">
202
203
  <nile-tab-group centered @nile-tab-show="${this.onTypeChange}" value="${this.type}">
203
204
  <nile-tab slot="nav" panel="absolute">Absolute</nile-tab>
204
205
  <nile-tab slot="nav" panel="relative">Relative</nile-tab>
@@ -210,7 +211,7 @@ export class NileCalendar extends NileElement {
210
211
  ${this.type == 'absolute' ? this.renderAbsoluteCalendar():''}
211
212
 
212
213
  ${!this.range?'':html`
213
- <div class="button-container">
214
+ <div class="button-container" part="calendar-footer">
214
215
  ${this.allowClear?
215
216
  html`
216
217
  <nile-button
@@ -236,8 +237,8 @@ export class NileCalendar extends NileElement {
236
237
  */
237
238
  renderAbsoluteCalendar(){
238
239
  return html`
239
- <div class="calendar-wrapper">
240
- <div class="calendar-container">
240
+ <div class="calendar-wrapper" part="calendar-wrapper">
241
+ <div class="calendar-container" part="calendar-container">
241
242
  ${this.renderMonth(
242
243
  this.currentYear,
243
244
  this.currentMonth,
@@ -456,7 +457,7 @@ export class NileCalendar extends NileElement {
456
457
 
457
458
  return html`
458
459
  <div class="calendar">
459
- <div class="calendar-header">
460
+ <div class="calendar-header" part="calendar-header">
460
461
  <nile-icon
461
462
  class="calendar-header__month-navigation"
462
463
  name="arrowleft"
@@ -562,12 +563,13 @@ export class NileCalendar extends NileElement {
562
563
 
563
564
  return html`
564
565
  <div
566
+ part="calendar-day"
565
567
  class=${classMap(classMapObj)}
566
568
  @click="${() => { if (isCurrentMonth) this.selectDate(day, month, year)}}"
567
569
  >
568
570
  <span style="position:relative;">
569
571
  ${day}
570
- ${isCurrentDate(day, month, year) && isCurrentMonth?html`<div class="current__date__dot"></div>`:nothing}
572
+ ${isCurrentDate(day, month, year) && isCurrentMonth?html`<div class="current__date__dot" part="current-date-dot"></div>`:nothing}
571
573
  </span>
572
574
  </div>`;
573
575
  })}