ca-components 2.0.64 → 2.0.65
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.
|
@@ -17005,6 +17005,11 @@ class MapOptionsConstants {
|
|
|
17005
17005
|
'#919191',
|
|
17006
17006
|
'#DAAD4F',
|
|
17007
17007
|
]; }
|
|
17008
|
+
static { this.DISPATCH_ROUTE_MARKER_COLORS = {
|
|
17009
|
+
pickup: '#56B4AC',
|
|
17010
|
+
delivery: '#FF906D',
|
|
17011
|
+
deadhead: '#AAAAAA',
|
|
17012
|
+
}; }
|
|
17008
17013
|
static { this.ROUTING_MARKER_ICON_PATHS = {
|
|
17009
17014
|
deadhead: 'M20.3442 18.4375L17.7251 10.9376C17.6821 10.8092 17.61 10.6994 17.5177 10.6217C17.4255 10.5439 17.317 10.5016 17.2058 10.5H15.3749L15.4231 11.0424C15.4253 11.0686 15.4231 11.0951 15.4166 11.1201C15.4102 11.1452 15.3995 11.1682 15.3854 11.1878C15.3713 11.2074 15.3541 11.223 15.3349 11.2337C15.3156 11.2443 15.2948 11.2498 15.2738 11.2498H14.7279C14.7068 11.2498 14.686 11.2443 14.6668 11.2337C14.6475 11.223 14.6303 11.2074 14.6162 11.1878C14.6021 11.1682 14.5915 11.1452 14.585 11.1201C14.5785 11.0951 14.5763 11.0686 14.5785 11.0424L14.6267 10.5H12.7959C12.6846 10.5016 12.5762 10.5439 12.4839 10.6217C12.3916 10.6994 12.3195 10.8092 12.2765 10.9376L9.65501 18.4375C9.61361 18.5493 9.59492 18.6722 9.60061 18.7952C9.60629 18.9183 9.63618 19.0376 9.68761 19.1428C9.73904 19.2479 9.81043 19.3355 9.89543 19.3978C9.98043 19.4601 10.0764 19.4952 10.1749 19.5H13.865L14.0577 17.2098C14.0654 17.1176 14.1002 17.0323 14.1553 16.9703C14.2104 16.9083 14.2818 16.874 14.3559 16.8741H15.6452C15.7193 16.874 15.7908 16.9083 15.8459 16.9703C15.9009 17.0323 15.9357 17.1176 15.9435 17.2098L16.1362 19.5H19.8243C19.9228 19.4952 20.0188 19.4601 20.1038 19.3978C20.1888 19.3355 20.2602 19.2479 20.3116 19.1428C20.363 19.0376 20.3929 18.9183 20.3986 18.7952C20.4043 18.6722 20.3856 18.5493 20.3442 18.4375ZM14.4836 12.1695C14.4875 12.1234 14.505 12.0807 14.5326 12.0498C14.5601 12.0189 14.5959 12.0018 14.633 12.0019H15.3691C15.4062 12.0018 15.442 12.0189 15.4696 12.0498C15.4971 12.0807 15.5146 12.1234 15.5185 12.1695L15.6047 13.191C15.6081 13.2302 15.6047 13.2699 15.595 13.3074C15.5853 13.3449 15.5694 13.3794 15.5483 13.4087C15.5272 13.4381 15.5015 13.4615 15.4727 13.4776C15.4439 13.4937 15.4127 13.502 15.3812 13.502H14.6214C14.5899 13.5021 14.5587 13.4938 14.5298 13.4778C14.501 13.4617 14.4752 13.4383 14.4541 13.4089C14.433 13.3796 14.4171 13.345 14.4074 13.3075C14.3977 13.2699 14.3945 13.2302 14.3978 13.191L14.4836 12.1695ZM15.5185 16.1267H14.4826C14.4406 16.1268 14.399 16.1157 14.3606 16.0944C14.3221 16.073 14.2877 16.0417 14.2596 16.0026C14.2315 15.9635 14.2102 15.9174 14.1973 15.8673C14.1843 15.8173 14.1799 15.7644 14.1844 15.7121L14.2808 14.5869C14.2885 14.4947 14.3233 14.4094 14.3783 14.3474C14.4334 14.2854 14.5049 14.2511 14.579 14.2512H15.425C15.4991 14.2511 15.5706 14.2854 15.6257 14.3474C15.6808 14.4094 15.7155 14.4947 15.7233 14.5869L15.8196 15.7121C15.8239 15.7646 15.8193 15.8176 15.806 15.8677C15.7928 15.9177 15.7713 15.9638 15.7429 16.0027C15.7145 16.0417 15.6798 16.0727 15.6411 16.0938C15.6025 16.1148 15.5607 16.1255 15.5185 16.1249V16.1267Z',
|
|
17010
17015
|
repair: 'M20.2763 12.7862C20.2611 12.7261 20.2302 12.6712 20.1869 12.627C20.1435 12.5827 20.0892 12.5508 20.0295 12.5344C19.9697 12.5181 19.9067 12.5178 19.8468 12.5338C19.787 12.5497 19.7324 12.5813 19.6888 12.6252L17.5168 14.7972L15.5343 14.4667L15.2038 12.4842L17.3763 10.3127C17.4204 10.2688 17.4521 10.2138 17.468 10.1536C17.4838 10.0934 17.4833 10.03 17.4665 9.97001C17.4497 9.91003 17.4172 9.85562 17.3723 9.81241C17.3274 9.7692 17.2718 9.73874 17.2113 9.72418C16.4813 9.54051 15.7153 9.55708 14.994 9.77214C14.2727 9.98721 13.6227 10.3928 13.1125 10.9462C12.6023 11.4997 12.2508 12.1804 12.0951 12.9169C11.9393 13.6533 11.9849 14.4181 12.2273 15.1307L10.1513 17.2092C9.82411 17.564 9.64687 18.0315 9.65663 18.514C9.6664 18.9965 9.86242 19.4565 10.2037 19.7978C10.5449 20.139 11.0049 20.3351 11.4874 20.3448C11.9699 20.3546 12.4375 20.1773 12.7923 19.8502L14.8653 17.7767C15.5787 18.0185 16.3441 18.0637 17.081 17.9073C17.8178 17.751 18.499 17.3989 19.0527 16.8882C19.6064 16.3775 20.0123 15.727 20.2276 15.0052C20.4429 14.2833 20.4597 13.5168 20.2763 12.7862ZM11.4708 19.2317C11.3323 19.2317 11.197 19.1906 11.0819 19.1137C10.9668 19.0368 10.877 18.9275 10.8241 18.7996C10.7711 18.6717 10.7572 18.5309 10.7842 18.3951C10.8112 18.2593 10.8779 18.1346 10.9758 18.0367C11.0737 17.9388 11.1984 17.8721 11.3342 17.8451C11.47 17.8181 11.6107 17.832 11.7386 17.885C11.8666 17.938 11.9759 18.0277 12.0528 18.1428C12.1297 18.2579 12.1708 18.3932 12.1708 18.5317C12.1708 18.7173 12.097 18.8954 11.9657 19.0267C11.8345 19.1579 11.6564 19.2317 11.4708 19.2317Z',
|
|
@@ -17617,6 +17622,35 @@ class MapMarkerIconHelper {
|
|
|
17617
17622
|
</defs>
|
|
17618
17623
|
</svg>`;
|
|
17619
17624
|
}
|
|
17625
|
+
static getDispatchRouteMarkerElement(stopType, id) {
|
|
17626
|
+
const markerElement = document.createElement('div');
|
|
17627
|
+
markerElement.classList.add('routing-icon');
|
|
17628
|
+
markerElement.innerHTML = MapMarkerIconHelper.getDispatchRouteMarkerSvg(stopType);
|
|
17629
|
+
if (id)
|
|
17630
|
+
markerElement.id = 'routingMarker-' + id;
|
|
17631
|
+
return markerElement;
|
|
17632
|
+
}
|
|
17633
|
+
static getDispatchRouteMarkerSvg(stopType) {
|
|
17634
|
+
const markerColor = MapOptionsConstants.DISPATCH_ROUTE_MARKER_COLORS[stopType];
|
|
17635
|
+
return `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17636
|
+
<g filter="url(#filter0_d_62732_4805)">
|
|
17637
|
+
<rect x="6" y="6" width="12" height="12" rx="6" fill="white" shape-rendering="geometricPrecision"/>
|
|
17638
|
+
<rect x="8" y="8" width="8" height="8" rx="4" fill="${markerColor}"/>
|
|
17639
|
+
</g>
|
|
17640
|
+
<defs>
|
|
17641
|
+
<filter id="filter0_d_62732_4805" x="0" y="0" width="24" height="24" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
17642
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
17643
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
17644
|
+
<feOffset/>
|
|
17645
|
+
<feGaussianBlur stdDeviation="3"/>
|
|
17646
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
17647
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"/>
|
|
17648
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_62732_4805"/>
|
|
17649
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_62732_4805" result="shape"/>
|
|
17650
|
+
</filter>
|
|
17651
|
+
</defs>
|
|
17652
|
+
</svg>`;
|
|
17653
|
+
}
|
|
17620
17654
|
}
|
|
17621
17655
|
|
|
17622
17656
|
class MapMarkerIconService {
|