@melodicdev/components 1.5.9 → 1.5.10

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.
@@ -15,23 +15,34 @@ export function timePickerTemplate(c) {
15
15
  </label>
16
16
  `)}
17
17
 
18
- <button
19
- type="button"
20
- class="ml-time-picker__trigger"
21
- ?disabled=${c.disabled}
22
- aria-haspopup="dialog"
23
- aria-expanded=${c.isOpen ? 'true' : 'false'}
24
- @click=${c.togglePopover}
25
- @keydown=${c.handleKeyDown}
26
- >
27
- <ml-icon icon="clock" size="sm" class="ml-time-picker__icon"></ml-icon>
28
- <span class=${classMap({
29
- 'ml-time-picker__value': true,
30
- 'ml-time-picker__value--placeholder': !c.value
31
- })}>
32
- ${c.value ? c.displayValue : c.placeholder}
33
- </span>
34
- </button>
18
+ <div class="ml-time-picker__trigger">
19
+ <input
20
+ type="time"
21
+ class="ml-time-picker__input"
22
+ .value=${c.value}
23
+ min=${c.min}
24
+ max=${c.max}
25
+ step=${c.showSeconds ? '1' : '60'}
26
+ placeholder=${c.placeholder}
27
+ ?disabled=${c.disabled}
28
+ ?required=${c.required}
29
+ aria-haspopup="dialog"
30
+ aria-expanded=${c.isOpen ? 'true' : 'false'}
31
+ @change=${c.handleTimeInput}
32
+ @click=${c.handleInputClick}
33
+ @keydown=${c.handleKeyDown}
34
+ />
35
+ <button
36
+ type="button"
37
+ class="ml-time-picker__clock-btn"
38
+ ?disabled=${c.disabled}
39
+ aria-label="Open time picker"
40
+ tabindex="-1"
41
+ @click=${c.togglePopover}
42
+ >
43
+ <ml-icon icon="clock" size="sm" class="ml-time-picker__icon"></ml-icon>
44
+ </button>
45
+ </div>
35
46
 
36
47
  <div class="ml-time-picker__popover" popover="auto">
37
48
  <div class="ml-time-picker__spinner-group">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melodicdev/components",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "Themeable UI component library built on the Melodic Framework",
5
5
  "license": "MIT",
6
6
  "author": "Melodic Development",