@roadtrip/components 2.25.1 → 2.27.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.
Files changed (248) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/road-autocomplete.cjs.entry.js +5 -0
  3. package/dist/cjs/road-badge_11.cjs.entry.js +4 -0
  4. package/dist/cjs/road-card.cjs.entry.js +7 -2
  5. package/dist/cjs/road-carousel.cjs.entry.js +32 -32
  6. package/dist/cjs/road-checkbox.cjs.entry.js +9 -0
  7. package/dist/cjs/road-counter.cjs.entry.js +4 -0
  8. package/dist/cjs/road-duration.cjs.entry.js +60 -0
  9. package/dist/cjs/road-img.cjs.entry.js +6 -0
  10. package/dist/cjs/road-input.cjs.entry.js +9 -0
  11. package/dist/cjs/road-navbar-item.cjs.entry.js +6 -0
  12. package/dist/cjs/road-navbar.cjs.entry.js +4 -0
  13. package/dist/cjs/road-plate-number.cjs.entry.js +19 -3
  14. package/dist/cjs/road-radio-group.cjs.entry.js +2 -0
  15. package/dist/cjs/road-radio.cjs.entry.js +4 -0
  16. package/dist/cjs/road-range.cjs.entry.js +2 -0
  17. package/dist/cjs/road-select-filter.cjs.entry.js +5 -0
  18. package/dist/cjs/road-select.cjs.entry.js +8 -0
  19. package/dist/cjs/road-switch.cjs.entry.js +9 -0
  20. package/dist/cjs/road-tab-bar.cjs.entry.js +4 -0
  21. package/dist/cjs/road-tab-button.cjs.entry.js +6 -0
  22. package/dist/cjs/road-tabs.cjs.entry.js +2 -0
  23. package/dist/cjs/road-textarea.cjs.entry.js +8 -0
  24. package/dist/cjs/roadtrip.cjs.js +1 -1
  25. package/dist/collection/collection-manifest.json +1 -0
  26. package/dist/collection/components/autocomplete/autocomplete.js +30 -2
  27. package/dist/collection/components/autocomplete/autocomplete.stories.js +6 -6
  28. package/dist/collection/components/button/button.js +41 -3
  29. package/dist/collection/components/button/button.stories.js +3 -3
  30. package/dist/collection/components/card/card.js +26 -4
  31. package/dist/collection/components/card/card.stories.js +3 -3
  32. package/dist/collection/components/carousel/carousel.js +48 -48
  33. package/dist/collection/components/carousel/carousel.stories.js +32 -32
  34. package/dist/collection/components/checkbox/checkbox.js +65 -5
  35. package/dist/collection/components/checkbox/checkbox.stories.js +6 -6
  36. package/dist/collection/components/counter/counter.js +41 -3
  37. package/dist/collection/components/counter/counter.stories.js +3 -3
  38. package/dist/collection/components/duration/duration.css +31 -0
  39. package/dist/collection/components/duration/duration.js +212 -0
  40. package/dist/collection/components/duration/duration.stories.js +108 -0
  41. package/dist/collection/components/icon/svg/device-smartphone-music-color.svg +1 -0
  42. package/dist/collection/components/icon/svg/device-smartphone-music.svg +1 -0
  43. package/dist/collection/components/icon/svg/mic-off-outline-color.svg +1 -0
  44. package/dist/collection/components/icon/svg/mic-off-outline.svg +1 -0
  45. package/dist/collection/components/icon/svg/mic-off.svg +1 -0
  46. package/dist/collection/components/icon/svg/people-community-outline-color.svg +1 -0
  47. package/dist/collection/components/icon/svg/people-community-outline.svg +1 -0
  48. package/dist/collection/components/icon/svg/people-community.svg +1 -0
  49. package/dist/collection/components/icon/svg/people-coworker-color.svg +1 -1
  50. package/dist/collection/components/icon/svg/people-coworker.svg +1 -1
  51. package/dist/collection/components/icon/svg/player-radio-music-outline-color.svg +1 -0
  52. package/dist/collection/components/icon/svg/player-radio-music-outline.svg +1 -0
  53. package/dist/collection/components/icon/svg/station-electric-outline-color.svg +1 -0
  54. package/dist/collection/components/icon/svg/station-electric-outline.svg +1 -0
  55. package/dist/collection/components/img/img.js +61 -4
  56. package/dist/collection/components/img/img.stories.js +1 -1
  57. package/dist/collection/components/input/input.js +88 -7
  58. package/dist/collection/components/input/input.stories.js +9 -9
  59. package/dist/collection/components/navbar/navbar.js +27 -0
  60. package/dist/collection/components/navbar/navbar.stories.js +1 -1
  61. package/dist/collection/components/navbar-item/navbar-item.js +30 -1
  62. package/dist/collection/components/plate-number/plate-number.css +22 -3
  63. package/dist/collection/components/plate-number/plate-number.js +133 -9
  64. package/dist/collection/components/plate-number/plate-number.stories.js +69 -45
  65. package/dist/collection/components/radio/radio.js +47 -3
  66. package/dist/collection/components/radio/radio.stories.js +6 -6
  67. package/dist/collection/components/radio-group/radio-group.js +21 -2
  68. package/dist/collection/components/range/range.js +21 -2
  69. package/dist/collection/components/range/range.stories.js +3 -3
  70. package/dist/collection/components/select/select.js +64 -5
  71. package/dist/collection/components/select/select.stories.js +6 -6
  72. package/dist/collection/components/select-filter/select-filter.js +36 -2
  73. package/dist/collection/components/select-filter/select-filter.stories.js +4 -4
  74. package/dist/collection/components/switch/switch.js +65 -5
  75. package/dist/collection/components/switch/switch.stories.js +6 -6
  76. package/dist/collection/components/tab-bar/tab-bar.js +21 -0
  77. package/dist/collection/components/tab-button/tab-button.js +30 -1
  78. package/dist/collection/components/tabs/tabs.js +39 -3
  79. package/dist/collection/components/tabs/tabs.stories.js +3 -3
  80. package/dist/collection/components/textarea/textarea.js +87 -7
  81. package/dist/collection/components/textarea/textarea.stories.js +9 -9
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/esm/road-autocomplete.entry.js +5 -0
  84. package/dist/esm/road-badge_11.entry.js +4 -0
  85. package/dist/esm/road-card.entry.js +7 -2
  86. package/dist/esm/road-carousel.entry.js +32 -32
  87. package/dist/esm/road-checkbox.entry.js +9 -0
  88. package/dist/esm/road-counter.entry.js +4 -0
  89. package/dist/esm/road-duration.entry.js +56 -0
  90. package/dist/esm/road-img.entry.js +6 -0
  91. package/dist/esm/road-input.entry.js +9 -0
  92. package/dist/esm/road-navbar-item.entry.js +6 -0
  93. package/dist/esm/road-navbar.entry.js +4 -0
  94. package/dist/esm/road-plate-number.entry.js +19 -3
  95. package/dist/esm/road-radio-group.entry.js +2 -0
  96. package/dist/esm/road-radio.entry.js +4 -0
  97. package/dist/esm/road-range.entry.js +2 -0
  98. package/dist/esm/road-select-filter.entry.js +5 -0
  99. package/dist/esm/road-select.entry.js +8 -0
  100. package/dist/esm/road-switch.entry.js +9 -0
  101. package/dist/esm/road-tab-bar.entry.js +4 -0
  102. package/dist/esm/road-tab-button.entry.js +6 -0
  103. package/dist/esm/road-tabs.entry.js +2 -0
  104. package/dist/esm/road-textarea.entry.js +8 -0
  105. package/dist/esm/roadtrip.js +1 -1
  106. package/dist/esm-es5/loader.js +1 -1
  107. package/dist/esm-es5/road-autocomplete.entry.js +1 -1
  108. package/dist/esm-es5/road-badge_11.entry.js +1 -1
  109. package/dist/esm-es5/road-card.entry.js +1 -1
  110. package/dist/esm-es5/road-carousel.entry.js +1 -1
  111. package/dist/esm-es5/road-checkbox.entry.js +1 -1
  112. package/dist/esm-es5/road-counter.entry.js +1 -1
  113. package/dist/esm-es5/road-duration.entry.js +1 -0
  114. package/dist/esm-es5/road-img.entry.js +1 -1
  115. package/dist/esm-es5/road-input.entry.js +1 -1
  116. package/dist/esm-es5/road-navbar-item.entry.js +1 -1
  117. package/dist/esm-es5/road-navbar.entry.js +1 -1
  118. package/dist/esm-es5/road-plate-number.entry.js +1 -1
  119. package/dist/esm-es5/road-radio-group.entry.js +1 -1
  120. package/dist/esm-es5/road-radio.entry.js +1 -1
  121. package/dist/esm-es5/road-range.entry.js +1 -1
  122. package/dist/esm-es5/road-select-filter.entry.js +1 -1
  123. package/dist/esm-es5/road-select.entry.js +1 -1
  124. package/dist/esm-es5/road-switch.entry.js +1 -1
  125. package/dist/esm-es5/road-tab-bar.entry.js +1 -1
  126. package/dist/esm-es5/road-tab-button.entry.js +1 -1
  127. package/dist/esm-es5/road-tabs.entry.js +1 -1
  128. package/dist/esm-es5/road-textarea.entry.js +1 -1
  129. package/dist/esm-es5/roadtrip.js +1 -1
  130. package/dist/html.html-data.json +43 -0
  131. package/dist/icons/icons.svg +1 -1
  132. package/dist/icons/index.d.ts +12 -0
  133. package/dist/icons/index.js +14 -2
  134. package/dist/roadtrip/p-01cebe6a.entry.js +1 -0
  135. package/dist/roadtrip/{p-a64c67ad.system.entry.js → p-04deac86.system.entry.js} +1 -1
  136. package/dist/roadtrip/{p-a1628953.system.entry.js → p-06921946.system.entry.js} +1 -1
  137. package/dist/roadtrip/p-0ada8d41.entry.js +1 -0
  138. package/dist/roadtrip/{p-de1a3a53.system.entry.js → p-0be273e0.system.entry.js} +1 -1
  139. package/dist/roadtrip/{p-25c303d8.system.entry.js → p-0cfc0efd.system.entry.js} +1 -1
  140. package/dist/roadtrip/p-0e645dfb.system.entry.js +1 -0
  141. package/dist/roadtrip/p-0f532f30.system.entry.js +1 -0
  142. package/dist/roadtrip/p-1481edc3.entry.js +1 -0
  143. package/dist/roadtrip/{p-f2593f4b.system.entry.js → p-20a7a848.system.entry.js} +1 -1
  144. package/dist/roadtrip/p-299ecdd3.entry.js +1 -0
  145. package/dist/roadtrip/{p-06a743b4.system.entry.js → p-2f2dc4a0.system.entry.js} +1 -1
  146. package/dist/roadtrip/p-354107fa.entry.js +1 -0
  147. package/dist/roadtrip/p-3ee7ff2a.system.entry.js +1 -0
  148. package/dist/roadtrip/{p-eaf8ddaf.system.entry.js → p-42ccd4a2.system.entry.js} +1 -1
  149. package/dist/roadtrip/{p-cf4b48af.system.entry.js → p-646e75cf.system.entry.js} +1 -1
  150. package/dist/roadtrip/p-6bc4c517.system.entry.js +1 -0
  151. package/dist/roadtrip/p-6deb1943.system.entry.js +1 -0
  152. package/dist/roadtrip/p-6def92c3.entry.js +1 -0
  153. package/dist/roadtrip/p-6f248970.entry.js +1 -0
  154. package/dist/roadtrip/{p-a467913d.system.entry.js → p-7070c8b5.system.entry.js} +1 -1
  155. package/dist/roadtrip/p-7130ff47.entry.js +1 -0
  156. package/dist/roadtrip/p-7304b650.system.entry.js +1 -0
  157. package/dist/roadtrip/p-7765931a.system.entry.js +1 -0
  158. package/dist/roadtrip/p-7a07a70f.entry.js +1 -0
  159. package/dist/roadtrip/p-87eb24ee.entry.js +1 -0
  160. package/dist/roadtrip/p-8dc74557.system.entry.js +1 -0
  161. package/dist/roadtrip/{p-76f26f2b.system.entry.js → p-9afcfc7c.system.entry.js} +1 -1
  162. package/dist/roadtrip/p-a7ddae1b.system.entry.js +1 -0
  163. package/dist/roadtrip/{p-6cf85ea2.system.entry.js → p-a8db6630.system.entry.js} +1 -1
  164. package/dist/roadtrip/p-b0e17e68.entry.js +1 -0
  165. package/dist/roadtrip/p-b205281e.system.js +1 -1
  166. package/dist/roadtrip/p-bd4a114b.entry.js +1 -0
  167. package/dist/roadtrip/p-bebdee1e.entry.js +1 -0
  168. package/dist/roadtrip/p-c637a847.entry.js +1 -0
  169. package/dist/roadtrip/{p-0f8da68b.entry.js → p-d06202e7.entry.js} +1 -1
  170. package/dist/roadtrip/p-e4f0f0d7.entry.js +1 -0
  171. package/dist/roadtrip/p-e6664bbe.entry.js +1 -0
  172. package/dist/roadtrip/p-ea45d823.entry.js +1 -0
  173. package/dist/roadtrip/p-f20a3658.entry.js +1 -0
  174. package/dist/roadtrip/p-f233746c.system.entry.js +1 -0
  175. package/dist/roadtrip/{p-54635daa.system.entry.js → p-f4f42d5c.system.entry.js} +1 -1
  176. package/dist/roadtrip/p-f7cd0928.entry.js +1 -0
  177. package/dist/roadtrip/{p-3cb3107f.entry.js → p-fa68c113.entry.js} +1 -1
  178. package/dist/roadtrip/p-fce355f6.entry.js +1 -0
  179. package/dist/roadtrip/roadtrip.esm.js +1 -1
  180. package/dist/roadtrip/svg/device-smartphone-music-color.svg +1 -0
  181. package/dist/roadtrip/svg/device-smartphone-music.svg +1 -0
  182. package/dist/roadtrip/svg/mic-off-outline-color.svg +1 -0
  183. package/dist/roadtrip/svg/mic-off-outline.svg +1 -0
  184. package/dist/roadtrip/svg/mic-off.svg +1 -0
  185. package/dist/roadtrip/svg/people-community-outline-color.svg +1 -0
  186. package/dist/roadtrip/svg/people-community-outline.svg +1 -0
  187. package/dist/roadtrip/svg/people-community.svg +1 -0
  188. package/dist/roadtrip/svg/people-coworker-color.svg +1 -1
  189. package/dist/roadtrip/svg/people-coworker.svg +1 -1
  190. package/dist/roadtrip/svg/player-radio-music-outline-color.svg +1 -0
  191. package/dist/roadtrip/svg/player-radio-music-outline.svg +1 -0
  192. package/dist/roadtrip/svg/station-electric-outline-color.svg +1 -0
  193. package/dist/roadtrip/svg/station-electric-outline.svg +1 -0
  194. package/dist/types/components/autocomplete/autocomplete.d.ts +5 -0
  195. package/dist/types/components/button/button.d.ts +4 -0
  196. package/dist/types/components/card/card.d.ts +5 -0
  197. package/dist/types/components/carousel/carousel.d.ts +16 -16
  198. package/dist/types/components/checkbox/checkbox.d.ts +9 -0
  199. package/dist/types/components/counter/counter.d.ts +6 -2
  200. package/dist/types/components/duration/duration.d.ts +44 -0
  201. package/dist/types/components/img/img.d.ts +15 -3
  202. package/dist/types/components/input/input.d.ts +10 -0
  203. package/dist/types/components/navbar/navbar.d.ts +2 -0
  204. package/dist/types/components/navbar-item/navbar-item.d.ts +2 -0
  205. package/dist/types/components/plate-number/plate-number.d.ts +18 -0
  206. package/dist/types/components/radio/radio.d.ts +4 -0
  207. package/dist/types/components/radio-group/radio-group.d.ts +4 -0
  208. package/dist/types/components/range/range.d.ts +4 -0
  209. package/dist/types/components/select/select.d.ts +8 -0
  210. package/dist/types/components/select-filter/select-filter.d.ts +5 -0
  211. package/dist/types/components/switch/switch.d.ts +9 -0
  212. package/dist/types/components/tab-bar/tab-bar.d.ts +2 -0
  213. package/dist/types/components/tab-button/tab-button.d.ts +2 -0
  214. package/dist/types/components/tabs/tabs.d.ts +8 -0
  215. package/dist/types/components/textarea/textarea.d.ts +10 -0
  216. package/dist/types/components.d.ts +140 -56
  217. package/icons/icons.svg +1 -1
  218. package/icons/index.d.ts +12 -0
  219. package/icons/index.js +14 -2
  220. package/package.json +1 -1
  221. package/dist/roadtrip/p-093a2288.system.entry.js +0 -1
  222. package/dist/roadtrip/p-0a5f2c0f.entry.js +0 -1
  223. package/dist/roadtrip/p-0b4b6077.system.entry.js +0 -1
  224. package/dist/roadtrip/p-16a1b3cb.entry.js +0 -1
  225. package/dist/roadtrip/p-194b2934.entry.js +0 -1
  226. package/dist/roadtrip/p-19c89e8f.system.entry.js +0 -1
  227. package/dist/roadtrip/p-1ef8acf8.system.entry.js +0 -1
  228. package/dist/roadtrip/p-4ef3684e.entry.js +0 -1
  229. package/dist/roadtrip/p-52f05a7c.system.entry.js +0 -1
  230. package/dist/roadtrip/p-5e8571d3.system.entry.js +0 -1
  231. package/dist/roadtrip/p-63aa411f.entry.js +0 -1
  232. package/dist/roadtrip/p-68af3047.entry.js +0 -1
  233. package/dist/roadtrip/p-6f744bd8.entry.js +0 -1
  234. package/dist/roadtrip/p-768d1a90.entry.js +0 -1
  235. package/dist/roadtrip/p-82a07b27.entry.js +0 -1
  236. package/dist/roadtrip/p-8d18ebce.entry.js +0 -1
  237. package/dist/roadtrip/p-92300d3f.entry.js +0 -1
  238. package/dist/roadtrip/p-93345613.system.entry.js +0 -1
  239. package/dist/roadtrip/p-93ccfda6.entry.js +0 -1
  240. package/dist/roadtrip/p-9a36bd11.system.entry.js +0 -1
  241. package/dist/roadtrip/p-a3bc0e5b.entry.js +0 -1
  242. package/dist/roadtrip/p-a7dc1c0c.entry.js +0 -1
  243. package/dist/roadtrip/p-a9c74737.entry.js +0 -1
  244. package/dist/roadtrip/p-adbaa790.entry.js +0 -1
  245. package/dist/roadtrip/p-b501c4b2.entry.js +0 -1
  246. package/dist/roadtrip/p-bba29599.entry.js +0 -1
  247. package/dist/roadtrip/p-e4b0578a.entry.js +0 -1
  248. package/dist/roadtrip/p-e56b3c0f.system.entry.js +0 -1
@@ -76,22 +76,27 @@ export class Input {
76
76
  if (input) {
77
77
  this.value = input.value || '';
78
78
  }
79
+ this.roadinput.emit(ev);
79
80
  this.roadInput.emit(ev);
80
81
  };
81
82
  this.onBlur = () => {
83
+ this.roadblur.emit();
82
84
  this.roadBlur.emit();
83
85
  };
84
86
  this.onFocus = () => {
87
+ this.roadfocus.emit();
85
88
  this.roadFocus.emit();
86
89
  };
87
90
  }
88
91
  debounceChanged() {
92
+ this.roadchange = debounceEvent(this.roadchange, this.debounce);
89
93
  this.roadChange = debounceEvent(this.roadChange, this.debounce);
90
94
  }
91
95
  /**
92
96
  * Update the native input element when the value changes
93
97
  */
94
98
  valueChanged() {
99
+ this.roadchange.emit({ value: this.value == null ? this.value : this.value.toString() });
95
100
  this.roadChange.emit({ value: this.value == null ? this.value : this.value.toString() });
96
101
  }
97
102
  getValue() {
@@ -570,8 +575,8 @@ export class Input {
570
575
  }
571
576
  }; }
572
577
  static get events() { return [{
573
- "method": "roadInput",
574
- "name": "roadInput",
578
+ "method": "roadinput",
579
+ "name": "roadinput",
575
580
  "bubbles": true,
576
581
  "cancelable": true,
577
582
  "composed": true,
@@ -589,8 +594,30 @@ export class Input {
589
594
  }
590
595
  }
591
596
  }, {
592
- "method": "roadChange",
593
- "name": "roadChange",
597
+ "method": "roadInput",
598
+ "name": "roadInput",
599
+ "bubbles": true,
600
+ "cancelable": true,
601
+ "composed": true,
602
+ "docs": {
603
+ "tags": [{
604
+ "name": "internal",
605
+ "text": undefined
606
+ }],
607
+ "text": ""
608
+ },
609
+ "complexType": {
610
+ "original": "KeyboardEvent",
611
+ "resolved": "KeyboardEvent",
612
+ "references": {
613
+ "KeyboardEvent": {
614
+ "location": "global"
615
+ }
616
+ }
617
+ }
618
+ }, {
619
+ "method": "roadchange",
620
+ "name": "roadchange",
594
621
  "bubbles": true,
595
622
  "cancelable": true,
596
623
  "composed": true,
@@ -603,15 +630,66 @@ export class Input {
603
630
  "resolved": "{ value: string | null | undefined; }",
604
631
  "references": {}
605
632
  }
633
+ }, {
634
+ "method": "roadChange",
635
+ "name": "roadChange",
636
+ "bubbles": true,
637
+ "cancelable": true,
638
+ "composed": true,
639
+ "docs": {
640
+ "tags": [{
641
+ "name": "internal",
642
+ "text": undefined
643
+ }],
644
+ "text": ""
645
+ },
646
+ "complexType": {
647
+ "original": "{\n value: string | undefined | null;\n }",
648
+ "resolved": "{ value: string | null | undefined; }",
649
+ "references": {}
650
+ }
651
+ }, {
652
+ "method": "roadblur",
653
+ "name": "roadblur",
654
+ "bubbles": true,
655
+ "cancelable": true,
656
+ "composed": true,
657
+ "docs": {
658
+ "tags": [],
659
+ "text": "Emitted when the input loses focus."
660
+ },
661
+ "complexType": {
662
+ "original": "void",
663
+ "resolved": "void",
664
+ "references": {}
665
+ }
606
666
  }, {
607
667
  "method": "roadBlur",
608
668
  "name": "roadBlur",
609
669
  "bubbles": true,
610
670
  "cancelable": true,
611
671
  "composed": true,
672
+ "docs": {
673
+ "tags": [{
674
+ "name": "internal",
675
+ "text": undefined
676
+ }],
677
+ "text": ""
678
+ },
679
+ "complexType": {
680
+ "original": "void",
681
+ "resolved": "void",
682
+ "references": {}
683
+ }
684
+ }, {
685
+ "method": "roadfocus",
686
+ "name": "roadfocus",
687
+ "bubbles": true,
688
+ "cancelable": true,
689
+ "composed": true,
612
690
  "docs": {
613
691
  "tags": [],
614
- "text": "Emitted when the input loses focus."
692
+ "text": "Emitted when the input has focus."
615
693
  },
616
694
  "complexType": {
617
695
  "original": "void",
@@ -625,8 +703,11 @@ export class Input {
625
703
  "cancelable": true,
626
704
  "composed": true,
627
705
  "docs": {
628
- "tags": [],
629
- "text": "Emitted when the input has focus."
706
+ "tags": [{
707
+ "name": "internal",
708
+ "text": undefined
709
+ }],
710
+ "text": ""
630
711
  },
631
712
  "complexType": {
632
713
  "original": "void",
@@ -6,7 +6,7 @@ export default {
6
6
  component: 'road-input',
7
7
  parameters: {
8
8
  actions: {
9
- handles: ['roadBlur', 'roadFocus'],
9
+ handles: ['roadblur', 'roadfocus'],
10
10
  },
11
11
  },
12
12
  argTypes: {
@@ -103,24 +103,24 @@ export default {
103
103
  'input-id': {
104
104
  control: 'text',
105
105
  },
106
- roadBlur: {
106
+ roadblur: {
107
107
  control: {
108
108
  type: null,
109
109
  },
110
110
  },
111
- roadFocus: {
111
+ roadfocus: {
112
112
  control: {
113
113
  type: null,
114
114
  },
115
115
  },
116
- roadChange: {
117
- action: 'roadChange',
116
+ roadchange: {
117
+ action: 'roadchange',
118
118
  control: {
119
119
  type: null,
120
120
  },
121
121
  },
122
- roadInput: {
123
- action: 'roadInput',
122
+ roadinput: {
123
+ action: 'roadinput',
124
124
  control: {
125
125
  type: null,
126
126
  },
@@ -194,8 +194,8 @@ const Template = (args) => html`
194
194
  inputmode="${ifDefined(args.inputmode)}"
195
195
  readonly="${ifDefined(args.readonly)}"
196
196
  debounce="${ifDefined(args.debounce)}"
197
- @roadChange=${event => args.roadChange(event.detail.value)}
198
- @roadInput=${event => args.roadInput(event.target.value)}
197
+ @roadchange=${event => args.roadchange(event.detail.value)}
198
+ @roadinput=${event => args.roadinput(event.target.value)}
199
199
  ></road-input>
200
200
  `;
201
201
 
@@ -6,6 +6,9 @@ import './../../utils/polyfill';
6
6
  export class Navbar {
7
7
  selectedTabChanged() {
8
8
  if (this.selectedTab !== undefined) {
9
+ this.roadnavbarchanged.emit({
10
+ tab: this.selectedTab,
11
+ });
9
12
  this.roadNavbarChanged.emit({
10
13
  tab: this.selectedTab,
11
14
  });
@@ -49,6 +52,24 @@ export class Navbar {
49
52
  }
50
53
  }; }
51
54
  static get events() { return [{
55
+ "method": "roadnavbarchanged",
56
+ "name": "roadnavbarchanged",
57
+ "bubbles": true,
58
+ "cancelable": true,
59
+ "composed": true,
60
+ "docs": {
61
+ "tags": [{
62
+ "name": "internal",
63
+ "text": undefined
64
+ }],
65
+ "text": ""
66
+ },
67
+ "complexType": {
68
+ "original": "any",
69
+ "resolved": "any",
70
+ "references": {}
71
+ }
72
+ }, {
52
73
  "method": "roadNavbarChanged",
53
74
  "name": "roadNavbarChanged",
54
75
  "bubbles": true,
@@ -77,5 +98,11 @@ export class Navbar {
77
98
  "target": undefined,
78
99
  "capture": false,
79
100
  "passive": false
101
+ }, {
102
+ "name": "roadnavbaritemclick",
103
+ "method": "onNavbarChanged",
104
+ "target": undefined,
105
+ "capture": false,
106
+ "passive": false
80
107
  }]; }
81
108
  }
@@ -10,7 +10,7 @@ export default {
10
10
  },
11
11
  parameters: {
12
12
  actions: {
13
- handles: ['roadNavbarItemClick'],
13
+ handles: ['roadnavbaritemclick'],
14
14
  },
15
15
  backgrounds: {
16
16
  default: 'grey',
@@ -29,6 +29,11 @@ export class NavbarItem {
29
29
  selectTab(ev) {
30
30
  if (this.tab !== undefined) {
31
31
  if (!this.disabled) {
32
+ this.roadnavbaritemclick.emit({
33
+ tab: this.tab,
34
+ href: this.href,
35
+ selected: this.selected,
36
+ });
32
37
  this.roadNavbarItemClick.emit({
33
38
  tab: this.tab,
34
39
  href: this.href,
@@ -188,6 +193,24 @@ export class NavbarItem {
188
193
  }
189
194
  }; }
190
195
  static get events() { return [{
196
+ "method": "roadnavbaritemclick",
197
+ "name": "roadnavbaritemclick",
198
+ "bubbles": true,
199
+ "cancelable": true,
200
+ "composed": true,
201
+ "docs": {
202
+ "tags": [{
203
+ "name": "internal",
204
+ "text": undefined
205
+ }],
206
+ "text": "Emitted when the tab bar is clicked"
207
+ },
208
+ "complexType": {
209
+ "original": "any",
210
+ "resolved": "any",
211
+ "references": {}
212
+ }
213
+ }, {
191
214
  "method": "roadNavbarItemClick",
192
215
  "name": "roadNavbarItemClick",
193
216
  "bubbles": true,
@@ -198,7 +221,7 @@ export class NavbarItem {
198
221
  "name": "internal",
199
222
  "text": undefined
200
223
  }],
201
- "text": "Emitted when the tab bar is clicked"
224
+ "text": ""
202
225
  },
203
226
  "complexType": {
204
227
  "original": "any",
@@ -213,5 +236,11 @@ export class NavbarItem {
213
236
  "target": "window",
214
237
  "capture": false,
215
238
  "passive": false
239
+ }, {
240
+ "name": "roadnavbarchanged",
241
+ "method": "onNavbarChanged",
242
+ "target": "window",
243
+ "capture": false,
244
+ "passive": false
216
245
  }]; }
217
246
  }
@@ -67,13 +67,15 @@
67
67
  display: block;
68
68
  height: 3rem;
69
69
  margin: 0;
70
- font-family: Oswald, sans-serif;
71
- font-size: 2rem;
70
+ font-family: var(--font, sans-serif);
71
+ font-size: 1.75rem;
72
+ font-weight: 700;
72
73
  color: var(--text);
73
74
  text-align: center;
74
75
  background: var(--white);
75
76
  border: 1px solid var(--border-form);
76
77
  border-radius: 0;
78
+ outline: 0;
77
79
  box-shadow: none;
78
80
  -webkit-appearance: none;
79
81
  -moz-appearance: none;
@@ -85,7 +87,24 @@
85
87
  opacity: 1;
86
88
  }
87
89
 
88
- .plate-number-input:focus {
90
+ /**
91
+ * Disabled state
92
+ */
93
+
94
+ .plate-number-input:disabled,
95
+ .plate-number-input[readonly] {
96
+ color: var(--text);
97
+ cursor: not-allowed;
98
+ background: var(--background);
99
+ border-color: var(--background);
100
+ opacity: 1;
101
+ }
102
+
103
+ /**
104
+ * Focus state
105
+ */
106
+
107
+ .plate-number-input:not([readonly]):focus {
89
108
  border-color: var(--secondary);
90
109
  outline: 0;
91
110
  }
@@ -38,6 +38,14 @@ export class PlateNumber {
38
38
  * country of the plate
39
39
  */
40
40
  this.country = 'FR';
41
+ /**
42
+ * If `true`, the user cannot interact with the input.
43
+ */
44
+ this.disabled = false;
45
+ /**
46
+ * If `true`, the user cannot modify the value.
47
+ */
48
+ this.readonly = false;
41
49
  /**
42
50
  * The value of the input.
43
51
  */
@@ -47,12 +55,15 @@ export class PlateNumber {
47
55
  if (input) {
48
56
  this.value = input.value.toUpperCase() || '';
49
57
  }
58
+ this.roadinput.emit(ev);
50
59
  this.roadInput.emit(ev);
51
60
  };
52
61
  this.onBlur = () => {
62
+ this.roadblur.emit();
53
63
  this.roadBlur.emit();
54
64
  };
55
65
  this.onFocus = () => {
66
+ this.roadfocus.emit();
56
67
  this.roadFocus.emit();
57
68
  };
58
69
  }
@@ -60,6 +71,7 @@ export class PlateNumber {
60
71
  * Update the native input element when the value changes
61
72
  */
62
73
  valueChanged() {
74
+ this.roadchange.emit({ value: this.value == null ? this.value : this.value.toString() });
63
75
  this.roadChange.emit({ value: this.value == null ? this.value : this.value.toString() });
64
76
  }
65
77
  getValue() {
@@ -77,8 +89,8 @@ export class PlateNumber {
77
89
  h("div", { class: "plate-number-location" }, this.countries
78
90
  .filter(item => item.country === this.country)[0].letter))),
79
91
  this.motorbike
80
- ? (h("textarea", { class: "form-control plate-number-input mb-0", placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
81
- : (h("input", { class: "plate-number-input mb-0", placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })),
92
+ ? (h("textarea", { class: "form-control plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
93
+ : (h("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })),
82
94
  h("label", { slot: "append", class: "input-group-append" },
83
95
  h("div", { class: "plate-number-end" }))));
84
96
  }
@@ -110,6 +122,24 @@ export class PlateNumber {
110
122
  "reflect": false,
111
123
  "defaultValue": "'FR'"
112
124
  },
125
+ "disabled": {
126
+ "type": "boolean",
127
+ "mutable": false,
128
+ "complexType": {
129
+ "original": "boolean",
130
+ "resolved": "boolean",
131
+ "references": {}
132
+ },
133
+ "required": false,
134
+ "optional": false,
135
+ "docs": {
136
+ "tags": [],
137
+ "text": "If `true`, the user cannot interact with the input."
138
+ },
139
+ "attribute": "disabled",
140
+ "reflect": false,
141
+ "defaultValue": "false"
142
+ },
113
143
  "placeholder": {
114
144
  "type": "string",
115
145
  "mutable": false,
@@ -127,6 +157,24 @@ export class PlateNumber {
127
157
  "attribute": "placeholder",
128
158
  "reflect": false
129
159
  },
160
+ "readonly": {
161
+ "type": "boolean",
162
+ "mutable": false,
163
+ "complexType": {
164
+ "original": "boolean",
165
+ "resolved": "boolean",
166
+ "references": {}
167
+ },
168
+ "required": false,
169
+ "optional": false,
170
+ "docs": {
171
+ "tags": [],
172
+ "text": "If `true`, the user cannot modify the value."
173
+ },
174
+ "attribute": "readonly",
175
+ "reflect": false,
176
+ "defaultValue": "false"
177
+ },
130
178
  "value": {
131
179
  "type": "any",
132
180
  "mutable": true,
@@ -164,8 +212,8 @@ export class PlateNumber {
164
212
  }
165
213
  }; }
166
214
  static get events() { return [{
167
- "method": "roadInput",
168
- "name": "roadInput",
215
+ "method": "roadinput",
216
+ "name": "roadinput",
169
217
  "bubbles": true,
170
218
  "cancelable": true,
171
219
  "composed": true,
@@ -183,8 +231,30 @@ export class PlateNumber {
183
231
  }
184
232
  }
185
233
  }, {
186
- "method": "roadChange",
187
- "name": "roadChange",
234
+ "method": "roadInput",
235
+ "name": "roadInput",
236
+ "bubbles": true,
237
+ "cancelable": true,
238
+ "composed": true,
239
+ "docs": {
240
+ "tags": [{
241
+ "name": "internal",
242
+ "text": undefined
243
+ }],
244
+ "text": ""
245
+ },
246
+ "complexType": {
247
+ "original": "KeyboardEvent",
248
+ "resolved": "KeyboardEvent",
249
+ "references": {
250
+ "KeyboardEvent": {
251
+ "location": "global"
252
+ }
253
+ }
254
+ }
255
+ }, {
256
+ "method": "roadchange",
257
+ "name": "roadchange",
188
258
  "bubbles": true,
189
259
  "cancelable": true,
190
260
  "composed": true,
@@ -197,15 +267,66 @@ export class PlateNumber {
197
267
  "resolved": "{ value: string | null | undefined; }",
198
268
  "references": {}
199
269
  }
270
+ }, {
271
+ "method": "roadChange",
272
+ "name": "roadChange",
273
+ "bubbles": true,
274
+ "cancelable": true,
275
+ "composed": true,
276
+ "docs": {
277
+ "tags": [{
278
+ "name": "internal",
279
+ "text": undefined
280
+ }],
281
+ "text": ""
282
+ },
283
+ "complexType": {
284
+ "original": "{\n value: string | undefined | null;\n }",
285
+ "resolved": "{ value: string | null | undefined; }",
286
+ "references": {}
287
+ }
288
+ }, {
289
+ "method": "roadblur",
290
+ "name": "roadblur",
291
+ "bubbles": true,
292
+ "cancelable": true,
293
+ "composed": true,
294
+ "docs": {
295
+ "tags": [],
296
+ "text": "Emitted when the input loses focus."
297
+ },
298
+ "complexType": {
299
+ "original": "void",
300
+ "resolved": "void",
301
+ "references": {}
302
+ }
200
303
  }, {
201
304
  "method": "roadBlur",
202
305
  "name": "roadBlur",
203
306
  "bubbles": true,
204
307
  "cancelable": true,
205
308
  "composed": true,
309
+ "docs": {
310
+ "tags": [{
311
+ "name": "internal",
312
+ "text": undefined
313
+ }],
314
+ "text": ""
315
+ },
316
+ "complexType": {
317
+ "original": "void",
318
+ "resolved": "void",
319
+ "references": {}
320
+ }
321
+ }, {
322
+ "method": "roadfocus",
323
+ "name": "roadfocus",
324
+ "bubbles": true,
325
+ "cancelable": true,
326
+ "composed": true,
206
327
  "docs": {
207
328
  "tags": [],
208
- "text": "Emitted when the input loses focus."
329
+ "text": "Emitted when the input has focus."
209
330
  },
210
331
  "complexType": {
211
332
  "original": "void",
@@ -219,8 +340,11 @@ export class PlateNumber {
219
340
  "cancelable": true,
220
341
  "composed": true,
221
342
  "docs": {
222
- "tags": [],
223
- "text": "Emitted when the input has focus."
343
+ "tags": [{
344
+ "name": "internal",
345
+ "text": undefined
346
+ }],
347
+ "text": ""
224
348
  },
225
349
  "complexType": {
226
350
  "original": "void",