@aquera/nile-elements 0.1.57-beta-1.1 → 0.1.57-beta-1.2
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/demo/index.html +75 -55
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.esm.js +19 -11
- package/dist/src/nile-calendar/nile-calendar.js +20 -12
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-calendar/nile-calendar.ts +25 -16
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.
|
6
|
+
"version": "0.1.57-beta-1.2",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -327,30 +327,38 @@ export class NileCalendar extends NileElement {
|
|
327
327
|
|
328
328
|
${this.range ? html`
|
329
329
|
<div>
|
330
|
-
|
330
|
+
<div>
|
331
|
+
<div class="unit-input-container" part="unit-input-container" style="display: flex; gap: 1rem; align-items: flex-end;">
|
332
|
+
|
333
|
+
<div class="input-wrapper" part="input-wrapper" style="flex: 1;">
|
331
334
|
<nile-input
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
335
|
+
class="manual-input duration-input"
|
336
|
+
label="Duration"
|
337
|
+
inputmode="numeric"
|
338
|
+
type="number"
|
339
|
+
value="${this.selectedValue}"
|
340
|
+
@nile-change="${this.handleDurationChange}"
|
341
|
+
placeholder="Enter Value"
|
339
342
|
></nile-input>
|
343
|
+
</div>
|
340
344
|
|
341
|
-
|
345
|
+
<div class="select-wrapper" part="select-wrapper" style="flex: 1;">
|
346
|
+
<nile-select
|
347
|
+
class="manual-input time-input"
|
342
348
|
label="Unit of time"
|
343
|
-
value="${
|
349
|
+
value="${this.selectedUnit}"
|
344
350
|
@nile-change="${this.handleUnitChange}"
|
345
351
|
>
|
346
|
-
<nile-option value="minutes" class="${this.hideDurationFields?.includes('minutes')?'hidden':''}">Minutes</nile-option>
|
347
|
-
<nile-option value="hours" class="${this.hideDurationFields?.includes('hours')?'hidden':''}">
|
348
|
-
<nile-option value="days" class="${this.hideDurationFields?.includes('days')?'hidden':''}">Days</nile-option>
|
349
|
-
<nile-option value="weeks" class="${this.hideDurationFields?.includes('weeks')?'hidden':''}">Weeks</nile-option>
|
350
|
-
<nile-option value="months" class="${this.hideDurationFields?.includes('months')?'hidden':''}">
|
352
|
+
<nile-option value="minutes" class="${this.hideDurationFields?.includes('minutes') ? 'hidden' : ''}">Minutes</nile-option>
|
353
|
+
<nile-option value="hours" class="${this.hideDurationFields?.includes('hours') ? 'hidden' : ''}">Hours</nile-option>
|
354
|
+
<nile-option value="days" class="${this.hideDurationFields?.includes('days') ? 'hidden' : ''}">Days</nile-option>
|
355
|
+
<nile-option value="weeks" class="${this.hideDurationFields?.includes('weeks') ? 'hidden' : ''}">Weeks</nile-option>
|
356
|
+
<nile-option value="months" class="${this.hideDurationFields?.includes('months') ? 'hidden' : ''}">Months</nile-option>
|
351
357
|
</nile-select>
|
352
358
|
</div>
|
359
|
+
|
353
360
|
</div>
|
361
|
+
</div>
|
354
362
|
`:''}
|
355
363
|
`
|
356
364
|
}
|
@@ -854,7 +862,8 @@ export class NileCalendar extends NileElement {
|
|
854
862
|
}
|
855
863
|
|
856
864
|
emitChangedData(data:{startDate:Date,endDate:Date}|{value:any}|null){
|
857
|
-
|
865
|
+
|
866
|
+
this.emit('nile-changed', data); // deprecated . Use nile-change instead.
|
858
867
|
this.emit('nile-change',data)
|
859
868
|
}
|
860
869
|
|