@roadtrip/components 2.30.0 → 2.31.0

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.
@@ -69,7 +69,7 @@ let PlateNumber = class {
69
69
  this.onInput = (ev) => {
70
70
  const input = ev.target;
71
71
  if (input) {
72
- this.value = input.value.toUpperCase() || '';
72
+ input.value = input.value.toUpperCase() || "";
73
73
  }
74
74
  this.roadinput.emit(ev);
75
75
  this.roadInput.emit(ev);
@@ -0,0 +1,10 @@
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.2791 35.811C12.4096 35.7955 11.5521 35.6067 10.7566 35.2556C9.96105 34.9045 9.24361 34.3982 8.64627 33.7663C8.04893 33.1344 7.58371 32.3897 7.27785 31.5757C6.97199 30.7617 6.83165 29.8949 6.86505 29.026V27.184C6.83192 26.3153 6.97246 25.4487 7.27844 24.6349C7.58443 23.8212 8.0497 23.0767 8.64701 22.445C9.24432 21.8133 9.96167 21.3072 10.757 20.9562C11.5524 20.6052 12.4098 20.4165 13.2791 20.401C14.1483 20.4165 15.0058 20.6052 15.8012 20.9562C16.5966 21.3071 17.314 21.8133 17.9114 22.4449C18.5088 23.0766 18.9742 23.8211 19.2803 24.6348C19.5864 25.4486 19.727 26.3152 19.694 27.184V29.026C19.7269 29.8947 19.5861 30.7612 19.28 31.5749C18.9738 32.3885 18.5084 33.1329 17.9111 33.7644C17.3137 34.396 16.5963 34.902 15.801 35.2529C15.0056 35.6038 14.1482 35.7925 13.2791 35.808V35.811ZM13.2791 22.898C12.7393 22.9175 12.2088 23.0444 11.7186 23.2712C11.2284 23.4979 10.7883 23.8201 10.4239 24.2188C10.0596 24.6175 9.7783 25.0848 9.5965 25.5934C9.41469 26.102 9.33601 26.6417 9.36505 27.181V29.026C9.33601 29.5653 9.4147 30.1049 9.59651 30.6135C9.77833 31.122 10.0596 31.5892 10.424 31.9879C10.7884 32.3865 11.2285 32.7085 11.7187 32.9352C12.2089 33.1619 12.7393 33.2886 13.2791 33.308C13.8188 33.2886 14.3493 33.1619 14.8395 32.9352C15.3298 32.7086 15.77 32.3865 16.1344 31.9879C16.4989 31.5893 16.7803 31.1221 16.9622 30.6136C17.1441 30.105 17.223 29.5653 17.194 29.026V27.184C17.223 26.6446 17.1441 26.1049 16.9622 25.5963C16.7803 25.0877 16.4989 24.6204 16.1345 24.2217C15.7701 23.823 15.3299 23.5009 14.8396 23.2742C14.3494 23.0474 13.8189 22.9205 13.2791 22.901" fill="var(--road-grey-900)"/>
3
+ <path d="M31.3741 40.98C31.0939 40.9795 30.8157 40.934 30.5501 40.845C30.0413 40.6808 29.5983 40.3583 29.2858 39.9246C28.9733 39.4908 28.8077 38.9686 28.813 38.434V33.226H27.4811C26.1228 33.2244 24.8207 32.6842 23.8603 31.7238C22.8999 30.7634 22.3596 29.4612 22.358 28.103V7.449C22.3596 6.09079 22.8999 4.78865 23.8603 3.82825C24.8207 2.86784 26.1228 2.32759 27.4811 2.326H57.1751C58.5338 2.3268 59.8367 2.8667 60.7977 3.82719C61.7588 4.78768 62.2995 6.09027 62.3011 7.449V26.815C62.2984 28.5155 61.6213 30.1456 60.4183 31.3475C59.2153 32.5494 57.5846 33.2249 55.8841 33.226H38.4351L33.3871 39.956C33.1551 40.2721 32.852 40.5292 32.5023 40.7066C32.1526 40.884 31.7661 40.9766 31.3741 40.977V40.98ZM27.4811 4.826C26.7856 4.8268 26.1189 5.1034 25.6272 5.59514C25.1354 6.08688 24.8588 6.75359 24.858 7.449V28.106C24.8596 28.8009 25.1366 29.4668 25.6282 29.9579C26.1199 30.449 26.7862 30.7252 27.4811 30.726H31.313V38.431L37.1851 30.726H55.8851C56.9226 30.7255 57.9176 30.3134 58.6517 29.5802C59.3859 28.847 59.7992 27.8526 59.8011 26.815V7.449C59.8003 6.75307 59.5232 6.0859 59.0309 5.59408C58.5385 5.10226 57.871 4.826 57.1751 4.826H27.4811Z" fill="var(--road-grey-900)"/>
4
+ <path d="M26.8911 55.177H21.1791L21.0861 54.027C20.7861 50.335 23.851 47.883 23.986 47.78L24.326 47.513H28.854C29.2659 47.514 29.6708 47.6197 30.0306 47.8202C30.3904 48.0207 30.6934 48.3093 30.911 48.659C31.1465 49.0284 31.2845 49.4515 31.3121 49.8886C31.3397 50.3258 31.2561 50.7629 31.069 51.159L30.1891 53.026C29.9032 53.6629 29.44 54.2041 28.8548 54.5848C28.2696 54.9655 27.5872 55.1697 26.889 55.173L26.8911 55.177ZM23.6621 52.673H26.8911C27.1132 52.6663 27.3288 52.5961 27.5123 52.4706C27.6957 52.3451 27.8393 52.1696 27.9261 51.965L28.8011 50.097C28.8101 50.08 28.814 50.0608 28.8124 50.0417C28.8109 50.0225 28.8038 50.0042 28.792 49.989L25.2381 50.006C24.4797 50.7346 23.9354 51.657 23.664 52.673" fill="var(--road-grey-900)"/>
5
+ <path d="M20.545 41.317L21.376 42.317H24.6201L22.47 39.717C20.834 37.744 18.937 37.284 16.356 37.18H8.91405C3.93205 37.184 1.70105 41.419 1.70105 45.616C1.74666 47.0495 2.15395 48.4481 2.88505 49.682C3.06605 50.052 3.26505 50.459 3.47605 50.925L4.57605 53.356L4.67605 53.529C5.20646 54.4304 5.9613 55.1791 6.86705 55.702V61.673H9.36705V56.384L11.637 56.846C11.5901 56.395 11.6701 55.9399 11.868 55.532L12.399 54.45L9.09905 53.78C8.24905 53.66 7.73005 53.587 6.81405 52.23L5.75405 49.891C5.53105 49.401 5.32305 48.974 5.13305 48.586C4.57292 47.6923 4.25198 46.6695 4.20105 45.616C4.20105 42.88 5.43605 39.684 8.91405 39.684H16.3011C18.5891 39.777 19.58 40.159 20.541 41.318" fill="var(--road-grey-900)"/>
6
+ <path d="M11.394 47.71L10.227 44.792L7.90105 45.726L9.06805 48.644C9.29148 49.2951 9.66751 49.8832 10.1647 50.3591C10.6619 50.8351 11.2659 51.1852 11.9261 51.38L13.609 51.98L14.719 49.721L12.778 49.031C12.451 48.9543 12.1502 48.7923 11.9062 48.5615C11.6622 48.3306 11.4838 48.0393 11.389 47.717" fill="var(--road-grey-900)"/>
7
+ <path d="M22.276 59.051H19.776V61.674H22.276V59.051Z" fill="var(--road-grey-900)"/>
8
+ <path d="M23.722 55.177L23.073 56.551H14.151L19.851 44.822H28.7731L27.458 47.513H28.8481C29.2795 47.5147 29.7025 47.6332 30.0721 47.856L31.0581 45.839C31.243 45.4655 31.3291 45.0508 31.3083 44.6345C31.2875 44.2182 31.1603 43.8142 30.9391 43.461C30.7239 43.1141 30.4238 42.8278 30.0672 42.6292C29.7106 42.4306 29.3092 42.3263 28.9011 42.326H19.8531C19.4016 42.3255 18.9591 42.4524 18.5765 42.6921C18.1939 42.9318 17.8866 43.2746 17.6901 43.681L11.866 55.533C11.6808 55.9065 11.5945 56.3212 11.6154 56.7375C11.6362 57.1539 11.7635 57.5579 11.9851 57.911C12.2002 58.2598 12.5011 58.5477 12.8591 58.7473C13.2171 58.9468 13.6202 59.0514 14.0301 59.051H23.073C23.5247 59.0517 23.9674 58.9248 24.3502 58.6852C24.733 58.4455 25.0404 58.1026 25.237 57.696L26.4741 55.177H23.722Z" fill="var(--road-grey-900)"/>
9
+ <path d="M49.147 27.433L42.328 24.299L35.509 27.433L36.74 20.256L31.286 14.513L38.877 13.708L42.328 6.53998L45.779 13.708L53.37 14.513L47.916 20.256L49.147 27.433ZM42.328 21.548L45.882 23.181L45.241 19.444L48.069 16.465L44.131 16.047L42.331 12.303L40.531 16.047L36.593 16.465L39.421 19.444L38.78 23.181L42.328 21.548Z" fill="var(--road-secondary-500, rgb(252, 183, 49))"/>
10
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.2791 35.811C12.4096 35.7955 11.5521 35.6067 10.7566 35.2556C9.96105 34.9045 9.24361 34.3982 8.64627 33.7663C8.04893 33.1344 7.58371 32.3897 7.27785 31.5757C6.97199 30.7617 6.83165 29.8949 6.86505 29.026V27.184C6.83192 26.3153 6.97246 25.4486 7.27844 24.6349C7.58443 23.8212 8.0497 23.0767 8.64701 22.445C9.24432 21.8133 9.96167 21.3072 10.757 20.9562C11.5524 20.6052 12.4098 20.4165 13.2791 20.401C14.1483 20.4165 15.0058 20.6052 15.8012 20.9562C16.5966 21.3071 17.314 21.8133 17.9114 22.4449C18.5088 23.0766 18.9742 23.8211 19.2803 24.6348C19.5864 25.4486 19.727 26.3152 19.694 27.184V29.026C19.7269 29.8947 19.5861 30.7612 19.28 31.5749C18.9738 32.3885 18.5084 33.1329 17.9111 33.7644C17.3137 34.396 16.5963 34.902 15.801 35.2529C15.0056 35.6038 14.1482 35.7925 13.2791 35.808V35.811ZM13.2791 22.898C12.7393 22.9175 12.2088 23.0444 11.7186 23.2712C11.2284 23.4979 10.7883 23.8201 10.4239 24.2188C10.0596 24.6175 9.7783 25.0848 9.5965 25.5934C9.41469 26.102 9.33601 26.6417 9.36505 27.181V29.026C9.33601 29.5653 9.4147 30.1049 9.59651 30.6135C9.77833 31.122 10.0596 31.5892 10.424 31.9879C10.7884 32.3865 11.2285 32.7085 11.7187 32.9352C12.2089 33.1619 12.7393 33.2886 13.2791 33.308C13.8188 33.2886 14.3493 33.1619 14.8395 32.9352C15.3298 32.7086 15.77 32.3865 16.1344 31.9879C16.4989 31.5893 16.7803 31.1221 16.9622 30.6136C17.1441 30.105 17.223 29.5653 17.194 29.026V27.184C17.223 26.6446 17.1441 26.1049 16.9622 25.5963C16.7803 25.0877 16.4989 24.6204 16.1345 24.2217C15.7701 23.823 15.3299 23.5009 14.8396 23.2741C14.3494 23.0474 13.8189 22.9205 13.2791 22.901" fill="var(--road-grey-900)"/>
3
+ <path d="M31.3741 40.98C31.0939 40.9795 30.8157 40.9339 30.5501 40.845C30.0413 40.6808 29.5983 40.3583 29.2858 39.9246C28.9733 39.4908 28.8077 38.9686 28.813 38.434V33.226H27.4811C26.1228 33.2244 24.8207 32.6842 23.8603 31.7238C22.8999 30.7633 22.3596 29.4612 22.358 28.103V7.449C22.3596 6.09078 22.8999 4.78865 23.8603 3.82824C24.8207 2.86784 26.1228 2.32758 27.4811 2.326H57.1751C58.5338 2.32679 59.8367 2.86669 60.7977 3.82718C61.7588 4.78767 62.2995 6.09026 62.3011 7.449V26.815C62.2984 28.5155 61.6213 30.1456 60.4183 31.3475C59.2153 32.5493 57.5846 33.2249 55.8841 33.226H38.4351L33.3871 39.956C33.1551 40.2721 32.852 40.5292 32.5023 40.7066C32.1526 40.884 31.7661 40.9766 31.3741 40.977V40.98ZM27.4811 4.826C26.7856 4.82679 26.1189 5.1034 25.6272 5.59513C25.1354 6.08687 24.8588 6.75358 24.858 7.449V28.106C24.8596 28.8009 25.1366 29.4668 25.6282 29.9579C26.1199 30.449 26.7862 30.7252 27.4811 30.726H31.313V38.431L37.1851 30.726H55.8851C56.9226 30.7255 57.9176 30.3134 58.6517 29.5802C59.3859 28.847 59.7992 27.8526 59.8011 26.815V7.449C59.8003 6.75306 59.5232 6.08589 59.0309 5.59407C58.5385 5.10225 57.871 4.826 57.1751 4.826H27.4811Z" fill="var(--road-grey-900)"/>
4
+ <path d="M26.8911 55.177H21.1791L21.0861 54.027C20.7861 50.335 23.851 47.883 23.986 47.78L24.326 47.513H28.854C29.2659 47.514 29.6708 47.6197 30.0306 47.8202C30.3904 48.0207 30.6934 48.3093 30.911 48.659C31.1465 49.0284 31.2845 49.4515 31.3121 49.8886C31.3397 50.3258 31.2561 50.7629 31.069 51.159L30.1891 53.026C29.9032 53.6629 29.44 54.2041 28.8548 54.5848C28.2696 54.9655 27.5872 55.1697 26.889 55.173L26.8911 55.177ZM23.6621 52.673H26.8911C27.1132 52.6663 27.3288 52.5961 27.5123 52.4706C27.6957 52.3451 27.8393 52.1696 27.9261 51.965L28.8011 50.097C28.8101 50.08 28.814 50.0608 28.8124 50.0417C28.8109 50.0225 28.8038 50.0042 28.792 49.989L25.2381 50.006C24.4797 50.7346 23.9354 51.657 23.664 52.673" fill="var(--road-grey-900)"/>
5
+ <path d="M20.545 41.317L21.376 42.317H24.6201L22.47 39.717C20.834 37.744 18.937 37.284 16.356 37.18H8.91405C3.93205 37.184 1.70105 41.419 1.70105 45.616C1.74666 47.0495 2.15395 48.4481 2.88505 49.682C3.06605 50.052 3.26505 50.459 3.47605 50.925L4.57605 53.356L4.67605 53.529C5.20646 54.4304 5.9613 55.179 6.86705 55.702V61.673H9.36705V56.384L11.637 56.846C11.5901 56.395 11.6701 55.9399 11.868 55.532L12.399 54.45L9.09905 53.78C8.24905 53.66 7.73005 53.587 6.81405 52.23L5.75405 49.891C5.53105 49.401 5.32305 48.974 5.13305 48.586C4.57292 47.6923 4.25198 46.6695 4.20105 45.616C4.20105 42.88 5.43605 39.684 8.91405 39.684H16.3011C18.5891 39.777 19.58 40.159 20.541 41.318" fill="var(--road-grey-900)"/>
6
+ <path d="M11.394 47.71L10.227 44.792L7.90105 45.726L9.06805 48.644C9.29148 49.295 9.66751 49.8832 10.1647 50.3591C10.6619 50.8351 11.2659 51.1852 11.9261 51.38L13.609 51.98L14.719 49.721L12.778 49.031C12.451 48.9543 12.1502 48.7923 11.9062 48.5615C11.6622 48.3306 11.4838 48.0392 11.389 47.717" fill="var(--road-grey-900)"/>
7
+ <path d="M22.276 59.051H19.776V61.674H22.276V59.051Z" fill="var(--road-grey-900)"/>
8
+ <path d="M23.722 55.177L23.073 56.551H14.151L19.851 44.822H28.7731L27.458 47.513H28.8481C29.2795 47.5147 29.7025 47.6332 30.0721 47.856L31.0581 45.839C31.243 45.4655 31.3291 45.0508 31.3083 44.6345C31.2875 44.2182 31.1603 43.8142 30.9391 43.461C30.7239 43.1141 30.4238 42.8278 30.0672 42.6292C29.7106 42.4306 29.3092 42.3263 28.9011 42.326H19.8531C19.4016 42.3255 18.9591 42.4524 18.5765 42.6921C18.1939 42.9318 17.8866 43.2746 17.6901 43.681L11.866 55.533C11.6808 55.9065 11.5945 56.3212 11.6154 56.7375C11.6362 57.1539 11.7635 57.5579 11.9851 57.911C12.2002 58.2598 12.5011 58.5477 12.8591 58.7473C13.2171 58.9468 13.6202 59.0514 14.0301 59.051H23.073C23.5247 59.0516 23.9674 58.9248 24.3502 58.6851C24.733 58.4454 25.0404 58.1026 25.237 57.696L26.4741 55.177H23.722Z" fill="var(--road-grey-900)"/>
9
+ <path d="M49.147 27.433L42.328 24.299L35.509 27.433L36.74 20.256L31.286 14.513L38.877 13.708L42.328 6.53998L45.779 13.708L53.37 14.513L47.916 20.256L49.147 27.433ZM42.328 21.548L45.882 23.181L45.241 19.444L48.069 16.465L44.131 16.047L42.331 12.303L40.531 16.047L36.593 16.465L39.421 19.444L38.78 23.181L42.328 21.548Z" fill="var(--road-grey-900)"/>
10
+ </svg>
@@ -53,7 +53,7 @@ export class PlateNumber {
53
53
  this.onInput = (ev) => {
54
54
  const input = ev.target;
55
55
  if (input) {
56
- this.value = input.value.toUpperCase() || '';
56
+ input.value = input.value.toUpperCase() || "";
57
57
  }
58
58
  this.roadinput.emit(ev);
59
59
  this.roadInput.emit(ev);
@@ -65,7 +65,7 @@ let PlateNumber = class {
65
65
  this.onInput = (ev) => {
66
66
  const input = ev.target;
67
67
  if (input) {
68
- this.value = input.value.toUpperCase() || '';
68
+ input.value = input.value.toUpperCase() || "";
69
69
  }
70
70
  this.roadinput.emit(ev);
71
71
  this.roadInput.emit(ev);
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h}from"./index-0c8a0e04.js";import{l as licensePlateStarEu}from"./index-5e24bf37.js";var plateNumberCss=".sc-road-plate-number-h{display:block}.plate-number.sc-road-plate-number{--margin-bottom:0}.plate-number-start.sc-road-plate-number,.plate-number-end.sc-road-plate-number{width:1.75rem;height:calc(3rem - 0.25rem);background:var(--road-info-text)}.input-group-prepend.sc-road-plate-number{margin-right:-1px}.input-group-prepend.sc-road-plate-number,.input-group-append.sc-road-plate-number{padding:0}.plate-number-start.sc-road-plate-number{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0;margin-right:0;margin-left:1px;color:var(--road-info-contrast);border-radius:0.125rem 0 0 0.125rem}.plate-number-icon.sc-road-plate-number{width:1.25rem;height:1.25rem;color:#f3db53}.plate-number-location.sc-road-plate-number{font-size:0.875rem;font-weight:700}.plate-number-end.sc-road-plate-number{margin-right:1px;border-radius:0 0.125rem 0.125rem 0}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number{color:var(--road-danger-text)}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-append.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-prepend.sc-road-plate-number{border-color:var(--road-danger-text)}.plate-number-input.sc-road-plate-number{position:relative;display:block;height:3rem;margin:0;font-family:var(--road-font, sans-serif);font-size:1.75rem;font-weight:700;color:var(--road-grey-900);text-align:center;background:var(--road-grey-000);border:1px solid var(--road-grey-400);border-radius:0;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.plate-number-input.sc-road-plate-number::-webkit-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-moz-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:disabled,.plate-number-input[readonly].sc-road-plate-number{color:var(--road-grey-900);cursor:not-allowed;background:var(--road-disabled);opacity:1}.plate-number-input.sc-road-plate-number:disabled~.input-group-prepend.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-prepend.sc-road-plate-number,.plate-number-input.sc-road-plate-number:disabled~.input-group-append.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-append.sc-road-plate-number{background:var(--road-disabled)}@media (hover: hover){.plate-number-input.sc-road-plate-number:not(:disabled):not([readonly]):hover{border-color:var(--road-primary-700)}}.plate-number-input.sc-road-plate-number:not([readonly]):focus{border-color:var(--road-primary-700);outline:0}.motorbike-plate.sc-road-plate-number .plate-number-input.sc-road-plate-number{height:6rem;padding:0.75rem 1rem 0;resize:none;border-left:0}.motorbike-plate.sc-road-plate-number .input-group-prepend.sc-road-plate-number,.motorbike-plate.sc-road-plate-number .input-group-append.sc-road-plate-number{-ms-flex-align:start;align-items:flex-start;height:6rem;padding:0}.motorbike-plate.sc-road-plate-number .plate-number-start.sc-road-plate-number{margin-top:1px;border-radius:0.125rem 0 0}.motorbike-plate.sc-road-plate-number .plate-number-end.sc-road-plate-number{margin-top:1px;border-radius:0 0.125rem 0 0}";var PlateNumber=function(){function e(e){var r=this;registerInstance(this,e);this.roadinput=createEvent(this,"roadinput",7);this.roadInput=createEvent(this,"roadInput",7);this.roadchange=createEvent(this,"roadchange",7);this.roadChange=createEvent(this,"roadChange",7);this.roadblur=createEvent(this,"roadblur",7);this.roadBlur=createEvent(this,"roadBlur",7);this.roadfocus=createEvent(this,"roadfocus",7);this.roadFocus=createEvent(this,"roadFocus",7);this.countries=[{country:"FR",letter:"F",placeholder:"AT-857-YY"},{country:"BE",letter:"B",placeholder:"1-AAA-001"},{country:"IT",letter:"I",placeholder:"AT 814TX"},{country:"ES",letter:"E",placeholder:"9512 HVY"},{country:"PT",letter:"P",placeholder:"13 24 PZ"},{country:"PL",letter:"PL",placeholder:"GD 921KF"}];this.country="FR";this.disabled=false;this.readonly=false;this.value="";this.onInput=function(e){var t=e.target;if(t){r.value=t.value.toUpperCase()||""}r.roadinput.emit(e);r.roadInput.emit(e)};this.onBlur=function(){r.roadblur.emit();r.roadBlur.emit()};this.onFocus=function(){r.roadfocus.emit();r.roadFocus.emit()}}e.prototype.valueChanged=function(){this.roadchange.emit({value:this.value==null?this.value:this.value.toString()});this.roadChange.emit({value:this.value==null?this.value:this.value.toString()})};e.prototype.getValue=function(){return typeof this.value==="number"?this.value.toString():(this.value||"").toString()};e.prototype.render=function(){var e=this;var r=this.getValue();var t=this.motorbike?"motorbike-plate":"";return h("road-input-group",{class:"plate-number plate-number-"+this.country.toLowerCase()+" "+t},h("label",{slot:"prepend",class:"input-group-prepend"},h("div",{class:"plate-number-start"},h("road-icon",{class:"plate-number-icon",icon:licensePlateStarEu}),h("div",{class:"plate-number-location"},this.countries.filter((function(r){return r.country===e.country}))[0].letter))),this.motorbike?h("textarea",{class:"form-control plate-number-input mb-0",disabled:this.disabled,placeholder:this.placeholder!=null?this.placeholder:this.countries.filter((function(r){return r.country===e.country}))[0].placeholder,readOnly:this.readonly,maxlength:"9",rows:2,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}):h("input",{class:"plate-number-input mb-0",disabled:this.disabled,placeholder:this.placeholder!=null?this.placeholder:this.countries.filter((function(r){return r.country===e.country}))[0].placeholder,readOnly:this.readonly,value:r,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}),h("label",{slot:"append",class:"input-group-append"},h("div",{class:"plate-number-end"})))};Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return e}();PlateNumber.style=plateNumberCss;export{PlateNumber as road_plate_number};
1
+ import{r as registerInstance,c as createEvent,h}from"./index-0c8a0e04.js";import{l as licensePlateStarEu}from"./index-5e24bf37.js";var plateNumberCss=".sc-road-plate-number-h{display:block}.plate-number.sc-road-plate-number{--margin-bottom:0}.plate-number-start.sc-road-plate-number,.plate-number-end.sc-road-plate-number{width:1.75rem;height:calc(3rem - 0.25rem);background:var(--road-info-text)}.input-group-prepend.sc-road-plate-number{margin-right:-1px}.input-group-prepend.sc-road-plate-number,.input-group-append.sc-road-plate-number{padding:0}.plate-number-start.sc-road-plate-number{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0;margin-right:0;margin-left:1px;color:var(--road-info-contrast);border-radius:0.125rem 0 0 0.125rem}.plate-number-icon.sc-road-plate-number{width:1.25rem;height:1.25rem;color:#f3db53}.plate-number-location.sc-road-plate-number{font-size:0.875rem;font-weight:700}.plate-number-end.sc-road-plate-number{margin-right:1px;border-radius:0 0.125rem 0.125rem 0}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number{color:var(--road-danger-text)}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-append.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-prepend.sc-road-plate-number{border-color:var(--road-danger-text)}.plate-number-input.sc-road-plate-number{position:relative;display:block;height:3rem;margin:0;font-family:var(--road-font, sans-serif);font-size:1.75rem;font-weight:700;color:var(--road-grey-900);text-align:center;background:var(--road-grey-000);border:1px solid var(--road-grey-400);border-radius:0;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.plate-number-input.sc-road-plate-number::-webkit-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-moz-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:disabled,.plate-number-input[readonly].sc-road-plate-number{color:var(--road-grey-900);cursor:not-allowed;background:var(--road-disabled);opacity:1}.plate-number-input.sc-road-plate-number:disabled~.input-group-prepend.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-prepend.sc-road-plate-number,.plate-number-input.sc-road-plate-number:disabled~.input-group-append.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-append.sc-road-plate-number{background:var(--road-disabled)}@media (hover: hover){.plate-number-input.sc-road-plate-number:not(:disabled):not([readonly]):hover{border-color:var(--road-primary-700)}}.plate-number-input.sc-road-plate-number:not([readonly]):focus{border-color:var(--road-primary-700);outline:0}.motorbike-plate.sc-road-plate-number .plate-number-input.sc-road-plate-number{height:6rem;padding:0.75rem 1rem 0;resize:none;border-left:0}.motorbike-plate.sc-road-plate-number .input-group-prepend.sc-road-plate-number,.motorbike-plate.sc-road-plate-number .input-group-append.sc-road-plate-number{-ms-flex-align:start;align-items:flex-start;height:6rem;padding:0}.motorbike-plate.sc-road-plate-number .plate-number-start.sc-road-plate-number{margin-top:1px;border-radius:0.125rem 0 0}.motorbike-plate.sc-road-plate-number .plate-number-end.sc-road-plate-number{margin-top:1px;border-radius:0 0.125rem 0 0}";var PlateNumber=function(){function e(e){var r=this;registerInstance(this,e);this.roadinput=createEvent(this,"roadinput",7);this.roadInput=createEvent(this,"roadInput",7);this.roadchange=createEvent(this,"roadchange",7);this.roadChange=createEvent(this,"roadChange",7);this.roadblur=createEvent(this,"roadblur",7);this.roadBlur=createEvent(this,"roadBlur",7);this.roadfocus=createEvent(this,"roadfocus",7);this.roadFocus=createEvent(this,"roadFocus",7);this.countries=[{country:"FR",letter:"F",placeholder:"AT-857-YY"},{country:"BE",letter:"B",placeholder:"1-AAA-001"},{country:"IT",letter:"I",placeholder:"AT 814TX"},{country:"ES",letter:"E",placeholder:"9512 HVY"},{country:"PT",letter:"P",placeholder:"13 24 PZ"},{country:"PL",letter:"PL",placeholder:"GD 921KF"}];this.country="FR";this.disabled=false;this.readonly=false;this.value="";this.onInput=function(e){var t=e.target;if(t){t.value=t.value.toUpperCase()||""}r.roadinput.emit(e);r.roadInput.emit(e)};this.onBlur=function(){r.roadblur.emit();r.roadBlur.emit()};this.onFocus=function(){r.roadfocus.emit();r.roadFocus.emit()}}e.prototype.valueChanged=function(){this.roadchange.emit({value:this.value==null?this.value:this.value.toString()});this.roadChange.emit({value:this.value==null?this.value:this.value.toString()})};e.prototype.getValue=function(){return typeof this.value==="number"?this.value.toString():(this.value||"").toString()};e.prototype.render=function(){var e=this;var r=this.getValue();var t=this.motorbike?"motorbike-plate":"";return h("road-input-group",{class:"plate-number plate-number-"+this.country.toLowerCase()+" "+t},h("label",{slot:"prepend",class:"input-group-prepend"},h("div",{class:"plate-number-start"},h("road-icon",{class:"plate-number-icon",icon:licensePlateStarEu}),h("div",{class:"plate-number-location"},this.countries.filter((function(r){return r.country===e.country}))[0].letter))),this.motorbike?h("textarea",{class:"form-control plate-number-input mb-0",disabled:this.disabled,placeholder:this.placeholder!=null?this.placeholder:this.countries.filter((function(r){return r.country===e.country}))[0].placeholder,readOnly:this.readonly,maxlength:"9",rows:2,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}):h("input",{class:"plate-number-input mb-0",disabled:this.disabled,placeholder:this.placeholder!=null?this.placeholder:this.countries.filter((function(r){return r.country===e.country}))[0].placeholder,readOnly:this.readonly,value:r,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}),h("label",{slot:"append",class:"input-group-append"},h("div",{class:"plate-number-end"})))};Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return e}();PlateNumber.style=plateNumberCss;export{PlateNumber as road_plate_number};