@acorex/components 18.10.7 → 18.10.8
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/map/lib/map.component.mjs +11 -8
- package/esm2022/rate-picker/lib/rate-picker.component.mjs +2 -2
- package/fesm2022/acorex-components-map.mjs +10 -7
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +2 -2
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/map/lib/map.component.d.ts +3 -3
- package/package.json +64 -64
@@ -1,17 +1,14 @@
|
|
1
1
|
import { AXLeafletService } from '@acorex/cdk/map';
|
2
|
-
import { ChangeDetectionStrategy, Component, effect, input, output, viewChild, ViewEncapsulation, } from '@angular/core';
|
2
|
+
import { afterNextRender, ChangeDetectionStrategy, Component, effect, input, output, viewChild, ViewEncapsulation, } from '@angular/core';
|
3
3
|
import { distinctUntilChanged } from 'rxjs/operators';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export class AXMapComponent {
|
6
|
-
ngAfterViewInit() {
|
7
|
-
this.leaflet = new AXLeafletService(this.mapContainer().nativeElement, { latitude: this.latitude(), longitude: this.longitude() }, this.zoomLevel());
|
8
|
-
if (this.markers()) {
|
9
|
-
this.leaflet.addMarker(this.markers());
|
10
|
-
}
|
11
|
-
}
|
12
6
|
addMarker(location) {
|
13
7
|
this.leaflet.addMarker(location);
|
14
8
|
}
|
9
|
+
getMarkers() {
|
10
|
+
return this.leaflet.getMarkers();
|
11
|
+
}
|
15
12
|
flyTo(location, zoom, setMarker, duration) {
|
16
13
|
this.leaflet.flyTo(location, zoom, setMarker, duration);
|
17
14
|
}
|
@@ -28,6 +25,12 @@ export class AXMapComponent {
|
|
28
25
|
this.onMarkerChanged = output();
|
29
26
|
this.onLocationFound = output();
|
30
27
|
this.mapContainer = viewChild('mapContainer');
|
28
|
+
afterNextRender(() => {
|
29
|
+
this.leaflet = new AXLeafletService(this.mapContainer().nativeElement, { latitude: this.latitude(), longitude: this.longitude() }, this.zoomLevel());
|
30
|
+
if (this.markers()) {
|
31
|
+
this.leaflet.addMarker(this.markers());
|
32
|
+
}
|
33
|
+
});
|
31
34
|
effect(() => {
|
32
35
|
if (!this.hasLocator()) {
|
33
36
|
this.leaflet.removeLocateControl();
|
@@ -75,4 +78,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
75
78
|
type: Component,
|
76
79
|
args: [{ selector: 'ax-map', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div #mapContainer class=\"ax-map-container\"></div>\n", styles: [".leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAA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ZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:\"\"}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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/v7+R6rV6k+azeYpx3EezeVyJ7dv335lfn7+lkajcZCZDzPzYd/3/xSnv9gFq3UuaR2LFQDA87xAKVUB8BEAZ6N9nrNEdEZr/TcArLVOPG8aJ9jj8n3/pcHBwZ1btmx5519zmPl0vV5/Ie2V7fT09Nujo6Nus9kcA4CtW7ce1lq/nUYu27a/Mzs7CyI6gMVX/u/CzJeZ+Ue2bcc9pb1aXc8lJZms18YLANE2wkOu694N4OFGo3E8DMMPAHiDiCaY+ZOb4YCsEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhEjYfwGO+b5dFNs4OgAAAABJRU5ErkJggg==);background-image:linear-gradient(transparent,transparent),url('data:image/svg+xml,<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>%0A<svg%0A xmlns:dc=\"http://purl.org/dc/elements/1.1/\"%0A xmlns:cc=\"http://creativecommons.org/ns%23\"%0A xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns%23\"%0A xmlns:svg=\"http://www.w3.org/2000/svg\"%0A xmlns=\"http://www.w3.org/2000/svg\"%0A xmlns:xlink=\"http://www.w3.org/1999/xlink\"%0A xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"%0A xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"%0A viewBox=\"0 0 600 60\"%0A height=\"60\"%0A width=\"600\"%0A id=\"svg4225\"%0A version=\"1.1\"%0A inkscape:version=\"0.91 r13725\"%0A sodipodi:docname=\"spritesheet.svg\"%0A inkscape:export-filename=\"/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png\"%0A inkscape:export-xdpi=\"90\"%0A inkscape:export-ydpi=\"90\">%0A <metadata%0A id=\"metadata4258\">%0A <rdf:RDF>%0A <cc:Work%0A rdf:about=\"\">%0A <dc:format>image/svg+xml</dc:format>%0A <dc:type%0A rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />%0A <dc:title />%0A </cc:Work>%0A </rdf:RDF>%0A </metadata>%0A <defs%0A id=\"defs4256\" />%0A <sodipodi:namedview%0A pagecolor=\"%23ffffff\"%0A bordercolor=\"%23666666\"%0A borderopacity=\"1\"%0A objecttolerance=\"10\"%0A gridtolerance=\"10\"%0A guidetolerance=\"10\"%0A inkscape:pageopacity=\"0\"%0A inkscape:pageshadow=\"2\"%0A inkscape:window-width=\"1920\"%0A inkscape:window-height=\"1056\"%0A id=\"namedview4254\"%0A showgrid=\"false\"%0A inkscape:zoom=\"1.3101852\"%0A inkscape:cx=\"237.56928\"%0A inkscape:cy=\"7.2419621\"%0A inkscape:window-x=\"1920\"%0A inkscape:window-y=\"24\"%0A inkscape:window-maximized=\"1\"%0A inkscape:current-layer=\"svg4225\" />%0A <g%0A id=\"enabled\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <g%0A id=\"polyline\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <path%0A d=\"m 18,36 0,6 6,0 0,-6 -6,0 z m 4,4 -2,0 0,-2 2,0 0,2 z\"%0A id=\"path4229\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 36,18 0,6 6,0 0,-6 -6,0 z m 4,4 -2,0 0,-2 2,0 0,2 z\"%0A id=\"path4231\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 23.142,39.145 -2.285,-2.29 16,-15.998 2.285,2.285 z\"%0A id=\"path4233\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A </g>%0A <path%0A id=\"polygon\"%0A d=\"M 100,24.565 97.904,39.395 83.07,42 76,28.773 86.463,18 Z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A id=\"rectangle\"%0A d=\"m 140,20 20,0 0,20 -20,0 z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A id=\"circle\"%0A d=\"m 221,30 c 0,6.078 -4.926,11 -11,11 -6.074,0 -11,-4.922 -11,-11 0,-6.074 4.926,-11 11,-11 6.074,0 11,4.926 11,11 z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A id=\"marker\"%0A d=\"m 270,19 c -4.971,0 -9,4.029 -9,9 0,4.971 5.001,12 9,14 4.001,-2 9,-9.029 9,-14 0,-4.971 -4.029,-9 -9,-9 z m 0,12.5 c -2.484,0 -4.5,-2.014 -4.5,-4.5 0,-2.484 2.016,-4.5 4.5,-4.5 2.485,0 4.5,2.016 4.5,4.5 0,2.486 -2.015,4.5 -4.5,4.5 z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <g%0A id=\"edit\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <path%0A d=\"m 337,30.156 0,0.407 0,5.604 c 0,1.658 -1.344,3 -3,3 l -10,0 c -1.655,0 -3,-1.342 -3,-3 l 0,-10 c 0,-1.657 1.345,-3 3,-3 l 6.345,0 3.19,-3.17 -9.535,0 c -3.313,0 -6,2.687 -6,6 l 0,10 c 0,3.313 2.687,6 6,6 l 10,0 c 3.314,0 6,-2.687 6,-6 l 0,-8.809 -3,2.968\"%0A id=\"path4240\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 338.72,24.637 -8.892,8.892 -2.828,0 0,-2.829 8.89,-8.89 z\"%0A id=\"path4242\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 338.697,17.826 4,0 0,4 -4,0 z\"%0A transform=\"matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)\"%0A id=\"path4244\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A </g>%0A <g%0A id=\"remove\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <path%0A d=\"m 381,42 18,0 0,-18 -18,0 0,18 z m 14,-16 2,0 0,14 -2,0 0,-14 z m -4,0 2,0 0,14 -2,0 0,-14 z m -4,0 2,0 0,14 -2,0 0,-14 z m -4,0 2,0 0,14 -2,0 0,-14 z\"%0A id=\"path4247\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 395,20 0,-4 -10,0 0,4 -6,0 0,2 22,0 0,-2 -6,0 z m -2,0 -6,0 0,-2 6,0 0,2 z\"%0A id=\"path4249\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A </g>%0A </g>%0A <g%0A id=\"disabled\"%0A transform=\"translate(120,0)\"%0A style=\"fill:%23bbbbbb\">%0A <use%0A xlink:href=\"%23edit\"%0A id=\"edit-disabled\"%0A x=\"0\"%0A y=\"0\"%0A width=\"100%\"%0A height=\"100%\" />%0A <use%0A xlink:href=\"%23remove\"%0A id=\"remove-disabled\"%0A x=\"0\"%0A y=\"0\"%0A width=\"100%\"%0A height=\"100%\" />%0A </g>%0A <path%0A style=\"fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\"%0A id=\"circle-3\"%0A d=\"m 581.65725,30 c 0,6.078 -4.926,11 -11,11 -6.074,0 -11,-4.922 -11,-11 0,-6.074 4.926,-11 11,-11 6.074,0 11,4.926 11,11 z\"%0A inkscape:connector-curvature=\"0\" />%0A</svg>%0A');background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA8CAYAAAC6nMS5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA16SURBVHic7d1/jBxneQfw7z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jnaeP3/+3SLydgBvBNBd56GXAHxXVR/s7e3dm9YJOg0rqQNm+y5dFtp3HmKM2QxgF8qr9b8GwA0AzgH4MYBjIjJ28eLFkFeOiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhWgv8Hnffz4dmwY9cAAAAASUVORK5CYII=);background-image:linear-gradient(transparent,transparent),url('data:image/svg+xml,<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>%0A<svg%0A xmlns:dc=\"http://purl.org/dc/elements/1.1/\"%0A xmlns:cc=\"http://creativecommons.org/ns%23\"%0A xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns%23\"%0A xmlns:svg=\"http://www.w3.org/2000/svg\"%0A xmlns=\"http://www.w3.org/2000/svg\"%0A xmlns:xlink=\"http://www.w3.org/1999/xlink\"%0A xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"%0A xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"%0A viewBox=\"0 0 600 60\"%0A height=\"60\"%0A width=\"600\"%0A id=\"svg4225\"%0A version=\"1.1\"%0A inkscape:version=\"0.91 r13725\"%0A sodipodi:docname=\"spritesheet.svg\"%0A inkscape:export-filename=\"/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png\"%0A inkscape:export-xdpi=\"90\"%0A inkscape:export-ydpi=\"90\">%0A <metadata%0A id=\"metadata4258\">%0A <rdf:RDF>%0A <cc:Work%0A rdf:about=\"\">%0A <dc:format>image/svg+xml</dc:format>%0A <dc:type%0A rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />%0A <dc:title />%0A </cc:Work>%0A </rdf:RDF>%0A </metadata>%0A <defs%0A id=\"defs4256\" />%0A <sodipodi:namedview%0A pagecolor=\"%23ffffff\"%0A bordercolor=\"%23666666\"%0A borderopacity=\"1\"%0A objecttolerance=\"10\"%0A gridtolerance=\"10\"%0A guidetolerance=\"10\"%0A inkscape:pageopacity=\"0\"%0A inkscape:pageshadow=\"2\"%0A inkscape:window-width=\"1920\"%0A inkscape:window-height=\"1056\"%0A id=\"namedview4254\"%0A showgrid=\"false\"%0A inkscape:zoom=\"1.3101852\"%0A inkscape:cx=\"237.56928\"%0A inkscape:cy=\"7.2419621\"%0A inkscape:window-x=\"1920\"%0A inkscape:window-y=\"24\"%0A inkscape:window-maximized=\"1\"%0A inkscape:current-layer=\"svg4225\" />%0A <g%0A id=\"enabled\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <g%0A id=\"polyline\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <path%0A d=\"m 18,36 0,6 6,0 0,-6 -6,0 z m 4,4 -2,0 0,-2 2,0 0,2 z\"%0A id=\"path4229\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 36,18 0,6 6,0 0,-6 -6,0 z m 4,4 -2,0 0,-2 2,0 0,2 z\"%0A id=\"path4231\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 23.142,39.145 -2.285,-2.29 16,-15.998 2.285,2.285 z\"%0A id=\"path4233\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A </g>%0A <path%0A id=\"polygon\"%0A d=\"M 100,24.565 97.904,39.395 83.07,42 76,28.773 86.463,18 Z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A id=\"rectangle\"%0A d=\"m 140,20 20,0 0,20 -20,0 z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A id=\"circle\"%0A d=\"m 221,30 c 0,6.078 -4.926,11 -11,11 -6.074,0 -11,-4.922 -11,-11 0,-6.074 4.926,-11 11,-11 6.074,0 11,4.926 11,11 z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A id=\"marker\"%0A d=\"m 270,19 c -4.971,0 -9,4.029 -9,9 0,4.971 5.001,12 9,14 4.001,-2 9,-9.029 9,-14 0,-4.971 -4.029,-9 -9,-9 z m 0,12.5 c -2.484,0 -4.5,-2.014 -4.5,-4.5 0,-2.484 2.016,-4.5 4.5,-4.5 2.485,0 4.5,2.016 4.5,4.5 0,2.486 -2.015,4.5 -4.5,4.5 z\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <g%0A id=\"edit\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <path%0A d=\"m 337,30.156 0,0.407 0,5.604 c 0,1.658 -1.344,3 -3,3 l -10,0 c -1.655,0 -3,-1.342 -3,-3 l 0,-10 c 0,-1.657 1.345,-3 3,-3 l 6.345,0 3.19,-3.17 -9.535,0 c -3.313,0 -6,2.687 -6,6 l 0,10 c 0,3.313 2.687,6 6,6 l 10,0 c 3.314,0 6,-2.687 6,-6 l 0,-8.809 -3,2.968\"%0A id=\"path4240\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 338.72,24.637 -8.892,8.892 -2.828,0 0,-2.829 8.89,-8.89 z\"%0A id=\"path4242\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 338.697,17.826 4,0 0,4 -4,0 z\"%0A transform=\"matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)\"%0A id=\"path4244\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A </g>%0A <g%0A id=\"remove\"%0A style=\"fill:%23464646;fill-opacity:1\">%0A <path%0A d=\"m 381,42 18,0 0,-18 -18,0 0,18 z m 14,-16 2,0 0,14 -2,0 0,-14 z m -4,0 2,0 0,14 -2,0 0,-14 z m -4,0 2,0 0,14 -2,0 0,-14 z m -4,0 2,0 0,14 -2,0 0,-14 z\"%0A id=\"path4247\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A <path%0A d=\"m 395,20 0,-4 -10,0 0,4 -6,0 0,2 22,0 0,-2 -6,0 z m -2,0 -6,0 0,-2 6,0 0,2 z\"%0A id=\"path4249\"%0A inkscape:connector-curvature=\"0\"%0A style=\"fill:%23464646;fill-opacity:1\" />%0A </g>%0A </g>%0A <g%0A id=\"disabled\"%0A transform=\"translate(120,0)\"%0A style=\"fill:%23bbbbbb\">%0A <use%0A xlink:href=\"%23edit\"%0A id=\"edit-disabled\"%0A x=\"0\"%0A y=\"0\"%0A width=\"100%\"%0A height=\"100%\" />%0A <use%0A xlink:href=\"%23remove\"%0A id=\"remove-disabled\"%0A x=\"0\"%0A y=\"0\"%0A width=\"100%\"%0A height=\"100%\" />%0A </g>%0A <path%0A style=\"fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\"%0A id=\"circle-3\"%0A d=\"m 581.65725,30 c 0,6.078 -4.926,11 -11,11 -6.074,0 -11,-4.922 -11,-11 0,-6.074 4.926,-11 11,-11 6.074,0 11,4.926 11,11 z\"%0A inkscape:connector-curvature=\"0\" />%0A</svg>%0A')}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:#00000080;border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:\"\";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z\"/></svg>');animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(32, 116, 182)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(252, 132, 40)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{animation:leaflet-control-locate-throb 4s ease infinite}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;transform:scale(.8)}to{stroke-width:1}}@keyframes leaflet-control-locate-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ax-map-container{height:100%;width:100%}\n"] }]
|
77
80
|
}], ctorParameters: () => [] });
|
78
|
-
//# sourceMappingURL=data:application/json;base64,
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9tYXAvc3JjL2xpYi9tYXAuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL21hcC9zcmMvbGliL21hcC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQW9DLE1BQU0saUJBQWlCLENBQUM7QUFDckYsT0FBTyxFQUNMLGVBQWUsRUFDZix1QkFBdUIsRUFDdkIsU0FBUyxFQUNULE1BQU0sRUFFTixLQUFLLEVBRUwsTUFBTSxFQUNOLFNBQVMsRUFDVCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBU3RELE1BQU0sT0FBTyxjQUFjO0lBZ0J6QixTQUFTLENBQUMsUUFBdUI7UUFDL0IsSUFBSSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDbkMsQ0FBQztJQUVELFVBQVU7UUFDUixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDbkMsQ0FBQztJQUVELEtBQUssQ0FBQyxRQUF1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kRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5sZWFmbGV0LmRlc3Ryb3lNYXAoKTtcbiAgfVxufVxuIiwiPGRpdiAjbWFwQ29udGFpbmVyIGNsYXNzPVwiYXgtbWFwLWNvbnRhaW5lclwiPjwvZGl2PlxuIl19
|
@@ -159,7 +159,7 @@ export class AXRatePickerComponent extends MXValueComponent {
|
|
159
159
|
useExisting: forwardRef(() => AXRatePickerComponent),
|
160
160
|
multi: true,
|
161
161
|
},
|
162
|
-
], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["c"], descendants: true, isSignal: true }, { propertyName: "ratingEl", first: true, predicate: ["r"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.
|
162
|
+
], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["c"], descendants: true, isSignal: true }, { propertyName: "ratingEl", first: true, predicate: ["r"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.disable{cursor:not-allowed;opacity:.5}ax-rate-picker.ax-sm{font-size:1rem}ax-rate-picker.ax-md{font-size:1.5rem}ax-rate-picker.ax-lg{font-size:2rem}ax-rate-picker.ax-xl{font-size:2.5rem}ax-rate-picker.ax-2xl{font-size:3rem}ax-rate-picker.ax-3xl{font-size:4rem}ax-rate-picker .ax-rate-picker-container{position:relative;width:min-content}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating{position:relative;z-index:10;overflow:hidden}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons.ax-rp-active{color:var(--ax-rate-picker-color)}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons.ax-rp-inactive{color:var(--ax-rate-picker-background);position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:5}.ax-dark :root{--ax-rate-picker-color: rgba(var(--ax-color-primary-300));--ax-rate-picker-background: rgba(var(--ax-color-neutral-600))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
163
163
|
}
|
164
164
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerComponent, decorators: [{
|
165
165
|
type: Component,
|
@@ -170,7 +170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
170
170
|
useExisting: forwardRef(() => AXRatePickerComponent),
|
171
171
|
multi: true,
|
172
172
|
},
|
173
|
-
], template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.
|
173
|
+
], template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.disable{cursor:not-allowed;opacity:.5}ax-rate-picker.ax-sm{font-size:1rem}ax-rate-picker.ax-md{font-size:1.5rem}ax-rate-picker.ax-lg{font-size:2rem}ax-rate-picker.ax-xl{font-size:2.5rem}ax-rate-picker.ax-2xl{font-size:3rem}ax-rate-picker.ax-3xl{font-size:4rem}ax-rate-picker .ax-rate-picker-container{position:relative;width:min-content}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating{position:relative;z-index:10;overflow:hidden}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons.ax-rp-active{color:var(--ax-rate-picker-color)}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons.ax-rp-inactive{color:var(--ax-rate-picker-background);position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:5}.ax-dark :root{--ax-rate-picker-color: rgba(var(--ax-color-primary-300));--ax-rate-picker-background: rgba(var(--ax-color-neutral-600))}\n"] }]
|
174
174
|
}], ctorParameters: () => [], propDecorators: { isActive: [{
|
175
175
|
type: HostBinding,
|
176
176
|
args: ['class.active']
|
@@ -1,19 +1,16 @@
|
|
1
1
|
import { AXLeafletService } from '@acorex/cdk/map';
|
2
2
|
import * as i0 from '@angular/core';
|
3
|
-
import { input, output, viewChild, effect, Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
3
|
+
import { input, output, viewChild, afterNextRender, effect, Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
4
4
|
import { distinctUntilChanged } from 'rxjs/operators';
|
5
5
|
import { CommonModule } from '@angular/common';
|
6
6
|
|
7
7
|
class AXMapComponent {
|
8
|
-
ngAfterViewInit() {
|
9
|
-
this.leaflet = new AXLeafletService(this.mapContainer().nativeElement, { latitude: this.latitude(), longitude: this.longitude() }, this.zoomLevel());
|
10
|
-
if (this.markers()) {
|
11
|
-
this.leaflet.addMarker(this.markers());
|
12
|
-
}
|
13
|
-
}
|
14
8
|
addMarker(location) {
|
15
9
|
this.leaflet.addMarker(location);
|
16
10
|
}
|
11
|
+
getMarkers() {
|
12
|
+
return this.leaflet.getMarkers();
|
13
|
+
}
|
17
14
|
flyTo(location, zoom, setMarker, duration) {
|
18
15
|
this.leaflet.flyTo(location, zoom, setMarker, duration);
|
19
16
|
}
|
@@ -30,6 +27,12 @@ class AXMapComponent {
|
|
30
27
|
this.onMarkerChanged = output();
|
31
28
|
this.onLocationFound = output();
|
32
29
|
this.mapContainer = viewChild('mapContainer');
|
30
|
+
afterNextRender(() => {
|
31
|
+
this.leaflet = new AXLeafletService(this.mapContainer().nativeElement, { latitude: this.latitude(), longitude: this.longitude() }, this.zoomLevel());
|
32
|
+
if (this.markers()) {
|
33
|
+
this.leaflet.addMarker(this.markers());
|
34
|
+
}
|
35
|
+
});
|
33
36
|
effect(() => {
|
34
37
|
if (!this.hasLocator()) {
|
35
38
|
this.leaflet.removeLocateControl();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-map.mjs","sources":["../../../../libs/components/map/src/lib/map.component.ts","../../../../libs/components/map/src/lib/map.component.html","../../../../libs/components/map/src/lib/map.module.ts","../../../../libs/components/map/src/acorex-components-map.ts"],"sourcesContent":["import { AXLeafletService, AXMapControlPlace, AXMapLocation } from '@acorex/cdk/map';\nimport {\n
|
1
|
+
{"version":3,"file":"acorex-components-map.mjs","sources":["../../../../libs/components/map/src/lib/map.component.ts","../../../../libs/components/map/src/lib/map.component.html","../../../../libs/components/map/src/lib/map.module.ts","../../../../libs/components/map/src/acorex-components-map.ts"],"sourcesContent":["import { AXLeafletService, AXMapControlPlace, AXMapLocation } from '@acorex/cdk/map';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n effect,\n ElementRef,\n input,\n OnDestroy,\n output,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { distinctUntilChanged } from 'rxjs/operators';\n\n@Component({\n selector: 'ax-map',\n templateUrl: './map.component.html',\n styleUrls: ['./map.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXMapComponent implements OnDestroy {\n zoomLevel = input(13);\n latitude = input(51.505);\n longitude = input(-0.09);\n hasMarker = input(false);\n markerPlace = input<AXMapControlPlace>('topleft');\n hasLocator = input(false);\n locatePlace = input<AXMapControlPlace>('bottomright');\n markers = input<AXMapLocation | AXMapLocation[] | undefined>(undefined);\n onMarkerAdded = output<AXMapLocation>();\n onMarkerChanged = output<AXMapLocation[]>();\n onLocationFound = output<AXMapLocation>();\n\n private mapContainer = viewChild<ElementRef>('mapContainer');\n private leaflet?: AXLeafletService;\n\n addMarker(location: AXMapLocation) {\n this.leaflet.addMarker(location);\n }\n\n getMarkers(): AXMapLocation[] {\n return this.leaflet.getMarkers();\n }\n\n flyTo(location: AXMapLocation, zoom?: number, setMarker?: boolean, duration?: number) {\n this.leaflet.flyTo(location, zoom, setMarker, duration);\n }\n\n constructor() {\n afterNextRender(() => {\n this.leaflet = new AXLeafletService(\n this.mapContainer().nativeElement,\n { latitude: this.latitude(), longitude: this.longitude() },\n this.zoomLevel(),\n );\n if (this.markers()) {\n this.leaflet.addMarker(this.markers());\n }\n });\n effect(() => {\n if (!this.hasLocator()) {\n this.leaflet.removeLocateControl();\n } else {\n this.leaflet.addLocateControl(this.locatePlace());\n this.leaflet.onLocationFound\n .pipe(\n distinctUntilChanged(\n (prev: AXMapLocation, curr: AXMapLocation) =>\n prev.latitude === curr.latitude && prev.longitude === curr.longitude,\n ),\n )\n .subscribe((location: AXMapLocation) => {\n this.onLocationFound.emit(location);\n });\n }\n });\n effect(() => {\n if (!this.hasMarker()) {\n this.leaflet.removeDrawControl();\n } else {\n this.leaflet.addDrawControl();\n this.leaflet.onMarkerChanged.subscribe((location: AXMapLocation[]) => {\n this.onMarkerChanged.emit(location);\n });\n this.leaflet.onMarkerAdded.subscribe((location: AXMapLocation) => {\n this.onMarkerAdded.emit(location);\n });\n }\n });\n effect(() => {\n this.leaflet.setZoomLevel(this.zoomLevel());\n }, {});\n effect(() => {\n this.leaflet.setCenter({\n latitude: this.latitude(),\n longitude: this.longitude(),\n } as AXMapLocation);\n });\n }\n ngOnDestroy(): void {\n this.leaflet.destroyMap();\n }\n}\n","<div #mapContainer class=\"ax-map-container\"></div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXMapComponent } from './map.component';\n\n@NgModule({\n declarations: [AXMapComponent],\n imports: [CommonModule],\n exports: [AXMapComponent],\n})\nexport class AXMapModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAsBa,cAAc,CAAA;AAgBzB,IAAA,SAAS,CAAC,QAAuB,EAAA;AAC/B,QAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;KAClC;IAED,UAAU,GAAA;AACR,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;KAClC;AAED,IAAA,KAAK,CAAC,QAAuB,EAAE,IAAa,EAAE,SAAmB,EAAE,QAAiB,EAAA;AAClF,QAAA,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;KACzD;AAED,IAAA,WAAA,GAAA;AA3BA,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC;AACtB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACzB,QAAA,IAA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AA,EAAA;AAEb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YAHZ,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGX,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,cAAc,CAAC;oBAC9B,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,cAAc,CAAC;AAC1B,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
@@ -205,7 +205,7 @@ class AXRatePickerComponent extends MXValueComponent {
|
|
205
205
|
useExisting: forwardRef(() => AXRatePickerComponent),
|
206
206
|
multi: true,
|
207
207
|
},
|
208
|
-
], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["c"], descendants: true, isSignal: true }, { propertyName: "ratingEl", first: true, predicate: ["r"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.
|
208
|
+
], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["c"], descendants: true, isSignal: true }, { propertyName: "ratingEl", first: true, predicate: ["r"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.disable{cursor:not-allowed;opacity:.5}ax-rate-picker.ax-sm{font-size:1rem}ax-rate-picker.ax-md{font-size:1.5rem}ax-rate-picker.ax-lg{font-size:2rem}ax-rate-picker.ax-xl{font-size:2.5rem}ax-rate-picker.ax-2xl{font-size:3rem}ax-rate-picker.ax-3xl{font-size:4rem}ax-rate-picker .ax-rate-picker-container{position:relative;width:min-content}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating{position:relative;z-index:10;overflow:hidden}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons.ax-rp-active{color:var(--ax-rate-picker-color)}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons.ax-rp-inactive{color:var(--ax-rate-picker-background);position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:5}.ax-dark :root{--ax-rate-picker-color: rgba(var(--ax-color-primary-300));--ax-rate-picker-background: rgba(var(--ax-color-neutral-600))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
209
209
|
}
|
210
210
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRatePickerComponent, decorators: [{
|
211
211
|
type: Component,
|
@@ -216,7 +216,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
216
216
|
useExisting: forwardRef(() => AXRatePickerComponent),
|
217
217
|
multi: true,
|
218
218
|
},
|
219
|
-
], template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.
|
219
|
+
], template: "<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n", styles: [":root{--ax-rate-picker-color: rgba(var(--ax-color-primary-500));--ax-rate-picker-background: rgba(var(--ax-color-neutral-300))}ax-rate-picker.active{cursor:pointer}ax-rate-picker.disable{cursor:not-allowed;opacity:.5}ax-rate-picker.ax-sm{font-size:1rem}ax-rate-picker.ax-md{font-size:1.5rem}ax-rate-picker.ax-lg{font-size:2rem}ax-rate-picker.ax-xl{font-size:2.5rem}ax-rate-picker.ax-2xl{font-size:3rem}ax-rate-picker.ax-3xl{font-size:4rem}ax-rate-picker .ax-rate-picker-container{position:relative;width:min-content}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating{position:relative;z-index:10;overflow:hidden}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-rating .ax-rate-picker-icons.ax-rp-active{color:var(--ax-rate-picker-color)}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons{display:flex}ax-rate-picker .ax-rate-picker-container .ax-rate-picker-icons.ax-rp-inactive{color:var(--ax-rate-picker-background);position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:5}.ax-dark :root{--ax-rate-picker-color: rgba(var(--ax-color-primary-300));--ax-rate-picker-background: rgba(var(--ax-color-neutral-600))}\n"] }]
|
220
220
|
}], ctorParameters: () => [], propDecorators: { isActive: [{
|
221
221
|
type: HostBinding,
|
222
222
|
args: ['class.active']
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-rate-picker.mjs","sources":["../../../../libs/components/rate-picker/src/lib/calculatePercentage.ts","../../../../libs/components/rate-picker/src/lib/rate-picker.component.ts","../../../../libs/components/rate-picker/src/lib/rate-picker.component.html","../../../../libs/components/rate-picker/src/lib/rate-picker.module.ts","../../../../libs/components/rate-picker/src/acorex-components-rate-picker.ts"],"sourcesContent":["/**\n * Calculates the horizontal position of a pointer event (mouse or touch) as a percentage\n * of the target element's width.\n *\n * @param event - The mouse or touch event to get the pointer position from.\n * @returns The percentage of the event's position relative to the target element's width,\n * or -1 if the event is invalid.\n *\n * @remarks\n * - For `MouseEvent`, it uses the `clientX` property.\n * - For `TouchEvent`, it uses the `clientX` of the first touch point.\n * - Returns `-1` if the event is neither a valid `MouseEvent` nor a `TouchEvent`.\n *\n * @example\n * ```typescript\n * document.addEventListener('click', function(event) {\n * const percentage = getPointerPercentage(event);\n * console.log(`Click position: ${percentage.toFixed(2)}% of the element's width`);\n * });\n *\n * document.addEventListener('touchstart', function(event) {\n * const percentage = getPointerPercentage(event);\n * console.log(`Touch position: ${percentage.toFixed(2)}% of the element's width`);\n * });\n * ```\n */\nexport function getPointerPercentage(event: MouseEvent | TouchEvent): number {\n let clientX: number;\n\n if (event instanceof MouseEvent) {\n clientX = event.clientX; // Mouse event uses clientX\n } else if (event instanceof TouchEvent && event.touches.length > 0) {\n clientX = event.touches[0].clientX; // Touch event uses the first touch's clientX\n } else {\n return -1; // Return -1 for invalid events\n }\n\n // Use currentTarget to get the bounding box of the element the event listener is attached to\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();\n const clickX = clientX - rect.left; // Calculate X position relative to the element\n const divWidth = rect.width; // Get the width from the bounding box\n const percentage = (clickX / divWidth) * 100; // Calculate percentage\n\n return percentage;\n}\n","import { AXValuableComponent, MXValueComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n HostBinding,\n inject,\n input,\n Renderer2,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { getPointerPercentage } from './calculatePercentage';\n\n/**\n * A component for selecting a rating using star icons.\n *\n * This component allows users to pick a rating by clicking or dragging over star icons.\n * It supports rounding options and manages the rating state internally.\n */\n@Component({\n selector: 'ax-rate-picker',\n templateUrl: './rate-picker.component.html',\n styleUrls: ['./rate-picker.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['readonly', 'disabled'],\n providers: [\n { provide: AXValuableComponent, useExisting: AXRatePickerComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXRatePickerComponent),\n multi: true,\n },\n ],\n})\nexport class AXRatePickerComponent extends MXValueComponent<number> {\n /** The icon name to use for stars (e.g., 'fa-star'). */\n iconName = input('fa-star');\n\n /** The maximum rating value (e.g., 5 stars). */\n max = input(5);\n\n /** Determines if the rating should be rounded to the nearest integer. */\n isRound = input(true);\n\n /** choosing to have css transition for unchanging value after hover. */\n hasTransition = input(true);\n\n /** The percentage of the current rating value relative to the maximum rating. */\n protected ratePercentage = computed(() => Math.round((this.currentValue() / this.max()) * 10000) / 100);\n\n /** The current rating value as a signal. */\n private currentValue = signal(this.max());\n\n /** State for tracking hover status and previous value. */\n private prevState: { ishover: boolean; previousValue?: number } = {\n ishover: false,\n previousValue: undefined,\n };\n\n /** Reference to the container element. */\n containerEl = viewChild.required<ElementRef>('c');\n\n /** Reference to the rating element. */\n ratingEl = viewChild.required<ElementRef>('r');\n\n /** Renderer for manipulating styles. */\n renderer = inject(Renderer2);\n\n /** Array of rating values from 1 to `max`. */\n protected rates = computed(() =>\n Array(this.max())\n .fill(0)\n .map((_, index) => index + 1),\n );\n\n /**\n * Initializes the component and sets up value change subscription.\n */\n constructor() {\n super();\n effect(() => {\n if (!this.hasTransition()) {\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'transition');\n }\n return this.hasTransition();\n });\n this.onValueChanged.subscribe((val: { value }) => {\n if (val.value < 0) {\n this.currentValue.set(0);\n console.warn('ax-rate-picker: value cant be negative!');\n } else if (val.value > this.max()) {\n this.currentValue.set(this.max());\n console.warn('ax-rate-picker: value cant be more than max!');\n } else {\n this.currentValue.set(val.value);\n }\n });\n }\n\n /**\n * Calculates and updates the rating based on the mouse or touch event.\n *\n * @param event - The mouse or touch event triggering the rating calculation.\n */\n protected calculateRate(event: MouseEvent | TouchEvent): void {\n if (this.hasTransition()) {\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'transition');\n }\n event.preventDefault();\n if (!this.readonly && !this.disabled) {\n const pointerPercentage = getPointerPercentage(event);\n if (pointerPercentage === -1) {\n return console.log('Only support touch and click events.');\n }\n const value = (pointerPercentage / 100) * this.max();\n const finalValue = this.isRound() ? Math.ceil(value) : Number.parseFloat(value.toFixed(2));\n if (finalValue !== this.value) {\n if (this.prevState.ishover === true) {\n this.currentValue.set(finalValue);\n } else {\n this.commitValue(finalValue);\n }\n }\n }\n }\n\n /**\n * Handles mouse enter events to start tracking mouse movements for rating.\n */\n protected mouseEnter() {\n this.prevState = {\n ishover: true,\n previousValue: this.value,\n };\n if (this.hasTransition()) {\n this.renderer.setStyle(this.ratingEl().nativeElement, 'opacity', '80%');\n }\n const moveListener = (moveEvent: MouseEvent | TouchEvent) => this.calculateRate(moveEvent);\n const endListener = () => this.onEnd(moveListener, endListener);\n const container = this.containerEl().nativeElement;\n container.addEventListener('mousemove', moveListener);\n container.addEventListener('mouseup', endListener);\n container.addEventListener('mouseleave', endListener);\n }\n mouseLeave() {\n if (this.hasTransition()) {\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'opacity');\n }\n }\n /**\n * Cleans up event listeners and restores the previous rating value.\n *\n * @param moveListener - The function to remove for mouse move events.\n * @param endListener - The function to remove for mouse end events.\n */\n private onEnd(moveListener: (event: MouseEvent | TouchEvent) => void, endListener: () => void): void {\n if (this.hasTransition()) {\n this.renderer.setStyle(\n this.ratingEl().nativeElement,\n 'transition',\n `width ${this.max() * 50 + 250}ms cubic-bezier(0.29, 0.72, 0.68, 0.85)`,\n );\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'opacity');\n }\n\n this.currentValue.set(this.prevState.previousValue);\n this.prevState = {\n ishover: false,\n previousValue: undefined,\n };\n\n const container = this.containerEl().nativeElement;\n container.removeEventListener('mousemove', moveListener);\n container.removeEventListener('mouseup', endListener);\n container.removeEventListener('mouseleave', endListener);\n }\n\n /**\n * Determines if the component is active (i.e., not readonly or disabled).\n */\n @HostBinding('class.active') get isActive() {\n return !this.readonly && !this.disabled;\n }\n\n /**\n * Determines if the component is in readonly mode.\n */\n @HostBinding('class.readonly') get isReadonly() {\n return this.readonly;\n }\n\n /**\n * Determines if the component is disabled.\n */\n @HostBinding('class.disable') get isDisabled() {\n return this.disabled;\n }\n}\n","<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXRatePickerComponent } from './rate-picker.component';\n\n@NgModule({\n declarations: [AXRatePickerComponent],\n imports: [CommonModule],\n exports: [AXRatePickerComponent],\n})\nexport class AXRatePickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;A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oJgC,QAAQ,EAAA,CAAA;sBAAxC,WAAW;uBAAC,cAAc,CAAA;gBAOQ,UAAU,EAAA,CAAA;sBAA5C,WAAW;uBAAC,gBAAgB,CAAA;gBAOK,UAAU,EAAA,CAAA;sBAA3C,WAAW;uBAAC,eAAe,CAAA;;;MEhMjB,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAJd,YAAA,EAAA,CAAA,qBAAqB,CAC1B,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEpB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACjC,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-rate-picker.mjs","sources":["../../../../libs/components/rate-picker/src/lib/calculatePercentage.ts","../../../../libs/components/rate-picker/src/lib/rate-picker.component.ts","../../../../libs/components/rate-picker/src/lib/rate-picker.component.html","../../../../libs/components/rate-picker/src/lib/rate-picker.module.ts","../../../../libs/components/rate-picker/src/acorex-components-rate-picker.ts"],"sourcesContent":["/**\n * Calculates the horizontal position of a pointer event (mouse or touch) as a percentage\n * of the target element's width.\n *\n * @param event - The mouse or touch event to get the pointer position from.\n * @returns The percentage of the event's position relative to the target element's width,\n * or -1 if the event is invalid.\n *\n * @remarks\n * - For `MouseEvent`, it uses the `clientX` property.\n * - For `TouchEvent`, it uses the `clientX` of the first touch point.\n * - Returns `-1` if the event is neither a valid `MouseEvent` nor a `TouchEvent`.\n *\n * @example\n * ```typescript\n * document.addEventListener('click', function(event) {\n * const percentage = getPointerPercentage(event);\n * console.log(`Click position: ${percentage.toFixed(2)}% of the element's width`);\n * });\n *\n * document.addEventListener('touchstart', function(event) {\n * const percentage = getPointerPercentage(event);\n * console.log(`Touch position: ${percentage.toFixed(2)}% of the element's width`);\n * });\n * ```\n */\nexport function getPointerPercentage(event: MouseEvent | TouchEvent): number {\n let clientX: number;\n\n if (event instanceof MouseEvent) {\n clientX = event.clientX; // Mouse event uses clientX\n } else if (event instanceof TouchEvent && event.touches.length > 0) {\n clientX = event.touches[0].clientX; // Touch event uses the first touch's clientX\n } else {\n return -1; // Return -1 for invalid events\n }\n\n // Use currentTarget to get the bounding box of the element the event listener is attached to\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();\n const clickX = clientX - rect.left; // Calculate X position relative to the element\n const divWidth = rect.width; // Get the width from the bounding box\n const percentage = (clickX / divWidth) * 100; // Calculate percentage\n\n return percentage;\n}\n","import { AXValuableComponent, MXValueComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n HostBinding,\n inject,\n input,\n Renderer2,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { getPointerPercentage } from './calculatePercentage';\n\n/**\n * A component for selecting a rating using star icons.\n *\n * This component allows users to pick a rating by clicking or dragging over star icons.\n * It supports rounding options and manages the rating state internally.\n */\n@Component({\n selector: 'ax-rate-picker',\n templateUrl: './rate-picker.component.html',\n styleUrls: ['./rate-picker.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['readonly', 'disabled'],\n providers: [\n { provide: AXValuableComponent, useExisting: AXRatePickerComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXRatePickerComponent),\n multi: true,\n },\n ],\n})\nexport class AXRatePickerComponent extends MXValueComponent<number> {\n /** The icon name to use for stars (e.g., 'fa-star'). */\n iconName = input('fa-star');\n\n /** The maximum rating value (e.g., 5 stars). */\n max = input(5);\n\n /** Determines if the rating should be rounded to the nearest integer. */\n isRound = input(true);\n\n /** choosing to have css transition for unchanging value after hover. */\n hasTransition = input(true);\n\n /** The percentage of the current rating value relative to the maximum rating. */\n protected ratePercentage = computed(() => Math.round((this.currentValue() / this.max()) * 10000) / 100);\n\n /** The current rating value as a signal. */\n private currentValue = signal(this.max());\n\n /** State for tracking hover status and previous value. */\n private prevState: { ishover: boolean; previousValue?: number } = {\n ishover: false,\n previousValue: undefined,\n };\n\n /** Reference to the container element. */\n containerEl = viewChild.required<ElementRef>('c');\n\n /** Reference to the rating element. */\n ratingEl = viewChild.required<ElementRef>('r');\n\n /** Renderer for manipulating styles. */\n renderer = inject(Renderer2);\n\n /** Array of rating values from 1 to `max`. */\n protected rates = computed(() =>\n Array(this.max())\n .fill(0)\n .map((_, index) => index + 1),\n );\n\n /**\n * Initializes the component and sets up value change subscription.\n */\n constructor() {\n super();\n effect(() => {\n if (!this.hasTransition()) {\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'transition');\n }\n return this.hasTransition();\n });\n this.onValueChanged.subscribe((val: { value }) => {\n if (val.value < 0) {\n this.currentValue.set(0);\n console.warn('ax-rate-picker: value cant be negative!');\n } else if (val.value > this.max()) {\n this.currentValue.set(this.max());\n console.warn('ax-rate-picker: value cant be more than max!');\n } else {\n this.currentValue.set(val.value);\n }\n });\n }\n\n /**\n * Calculates and updates the rating based on the mouse or touch event.\n *\n * @param event - The mouse or touch event triggering the rating calculation.\n */\n protected calculateRate(event: MouseEvent | TouchEvent): void {\n if (this.hasTransition()) {\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'transition');\n }\n event.preventDefault();\n if (!this.readonly && !this.disabled) {\n const pointerPercentage = getPointerPercentage(event);\n if (pointerPercentage === -1) {\n return console.log('Only support touch and click events.');\n }\n const value = (pointerPercentage / 100) * this.max();\n const finalValue = this.isRound() ? Math.ceil(value) : Number.parseFloat(value.toFixed(2));\n if (finalValue !== this.value) {\n if (this.prevState.ishover === true) {\n this.currentValue.set(finalValue);\n } else {\n this.commitValue(finalValue);\n }\n }\n }\n }\n\n /**\n * Handles mouse enter events to start tracking mouse movements for rating.\n */\n protected mouseEnter() {\n this.prevState = {\n ishover: true,\n previousValue: this.value,\n };\n if (this.hasTransition()) {\n this.renderer.setStyle(this.ratingEl().nativeElement, 'opacity', '80%');\n }\n const moveListener = (moveEvent: MouseEvent | TouchEvent) => this.calculateRate(moveEvent);\n const endListener = () => this.onEnd(moveListener, endListener);\n const container = this.containerEl().nativeElement;\n container.addEventListener('mousemove', moveListener);\n container.addEventListener('mouseup', endListener);\n container.addEventListener('mouseleave', endListener);\n }\n mouseLeave() {\n if (this.hasTransition()) {\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'opacity');\n }\n }\n /**\n * Cleans up event listeners and restores the previous rating value.\n *\n * @param moveListener - The function to remove for mouse move events.\n * @param endListener - The function to remove for mouse end events.\n */\n private onEnd(moveListener: (event: MouseEvent | TouchEvent) => void, endListener: () => void): void {\n if (this.hasTransition()) {\n this.renderer.setStyle(\n this.ratingEl().nativeElement,\n 'transition',\n `width ${this.max() * 50 + 250}ms cubic-bezier(0.29, 0.72, 0.68, 0.85)`,\n );\n this.renderer.removeStyle(this.ratingEl().nativeElement, 'opacity');\n }\n\n this.currentValue.set(this.prevState.previousValue);\n this.prevState = {\n ishover: false,\n previousValue: undefined,\n };\n\n const container = this.containerEl().nativeElement;\n container.removeEventListener('mousemove', moveListener);\n container.removeEventListener('mouseup', endListener);\n container.removeEventListener('mouseleave', endListener);\n }\n\n /**\n * Determines if the component is active (i.e., not readonly or disabled).\n */\n @HostBinding('class.active') get isActive() {\n return !this.readonly && !this.disabled;\n }\n\n /**\n * Determines if the component is in readonly mode.\n */\n @HostBinding('class.readonly') get isReadonly() {\n return this.readonly;\n }\n\n /**\n * Determines if the component is disabled.\n */\n @HostBinding('class.disable') get isDisabled() {\n return this.disabled;\n }\n}\n","<div\n #c\n class=\"ax-rate-picker-container\"\n (click)=\"calculateRate($event)\"\n (touchstart)=\"calculateRate($event)\"\n (mouseenter)=\"mouseEnter()\"\n (mouseleave)=\"mouseLeave()\"\n>\n <div #r class=\"ax-rate-picker-rating\" [style.width.%]=\"ratePercentage()\">\n <div class=\"ax-rate-picker-icons ax-rp-active\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\" [class.pointer]=\"!this.readonly\"></i>\n }\n </div>\n </div>\n <div class=\"ax-rate-picker-icons ax-rp-inactive\">\n @for (rate of rates(); track rate) {\n <i class=\"ax-rate-picker-icon fa-solid\" [class]=\"iconName()\"></i>\n }\n </div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXRatePickerComponent } from './rate-picker.component';\n\n@NgModule({\n declarations: [AXRatePickerComponent],\n imports: [CommonModule],\n exports: [AXRatePickerComponent],\n})\nexport class AXRatePickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,oBAAoB,CAAC,KAA8B,EAAA;AACjE,IAAA,IAAI,OAAe,CAAC;AAEpB,IAAA,IAAI,KAAK,YAAY,UAAU,EAAE;AAC/B,QAAA,OAAO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Ae,CAAA;;;MEhMjB,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAJd,YAAA,EAAA,CAAA,qBAAqB,CAC1B,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEpB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACjC,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AXMapControlPlace, AXMapLocation } from '@acorex/cdk/map';
|
2
|
-
import {
|
2
|
+
import { OnDestroy } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class AXMapComponent implements
|
4
|
+
export declare class AXMapComponent implements OnDestroy {
|
5
5
|
zoomLevel: import("@angular/core").InputSignal<number>;
|
6
6
|
latitude: import("@angular/core").InputSignal<number>;
|
7
7
|
longitude: import("@angular/core").InputSignal<number>;
|
@@ -15,8 +15,8 @@ export declare class AXMapComponent implements AfterViewInit, OnDestroy {
|
|
15
15
|
onLocationFound: import("@angular/core").OutputEmitterRef<AXMapLocation>;
|
16
16
|
private mapContainer;
|
17
17
|
private leaflet?;
|
18
|
-
ngAfterViewInit(): void;
|
19
18
|
addMarker(location: AXMapLocation): void;
|
19
|
+
getMarkers(): AXMapLocation[];
|
20
20
|
flyTo(location: AXMapLocation, zoom?: number, setMarker?: boolean, duration?: number): void;
|
21
21
|
constructor();
|
22
22
|
ngOnDestroy(): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/components",
|
3
|
-
"version": "18.10.
|
3
|
+
"version": "18.10.8",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": ">=18.2.0",
|
6
6
|
"@angular/core": ">=18.2.0",
|
@@ -32,18 +32,18 @@
|
|
32
32
|
"esm": "./esm2022/action-sheet/acorex-components-action-sheet.mjs",
|
33
33
|
"default": "./fesm2022/acorex-components-action-sheet.mjs"
|
34
34
|
},
|
35
|
-
"./avatar": {
|
36
|
-
"types": "./avatar/index.d.ts",
|
37
|
-
"esm2022": "./esm2022/avatar/acorex-components-avatar.mjs",
|
38
|
-
"esm": "./esm2022/avatar/acorex-components-avatar.mjs",
|
39
|
-
"default": "./fesm2022/acorex-components-avatar.mjs"
|
40
|
-
},
|
41
35
|
"./alert": {
|
42
36
|
"types": "./alert/index.d.ts",
|
43
37
|
"esm2022": "./esm2022/alert/acorex-components-alert.mjs",
|
44
38
|
"esm": "./esm2022/alert/acorex-components-alert.mjs",
|
45
39
|
"default": "./fesm2022/acorex-components-alert.mjs"
|
46
40
|
},
|
41
|
+
"./audio-wave": {
|
42
|
+
"types": "./audio-wave/index.d.ts",
|
43
|
+
"esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
|
44
|
+
"esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
|
45
|
+
"default": "./fesm2022/acorex-components-audio-wave.mjs"
|
46
|
+
},
|
47
47
|
"./bottom-navigation": {
|
48
48
|
"types": "./bottom-navigation/index.d.ts",
|
49
49
|
"esm2022": "./esm2022/bottom-navigation/acorex-components-bottom-navigation.mjs",
|
@@ -56,18 +56,18 @@
|
|
56
56
|
"esm": "./esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs",
|
57
57
|
"default": "./fesm2022/acorex-components-breadcrumbs.mjs"
|
58
58
|
},
|
59
|
-
"./audio-wave": {
|
60
|
-
"types": "./audio-wave/index.d.ts",
|
61
|
-
"esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
|
62
|
-
"esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
|
63
|
-
"default": "./fesm2022/acorex-components-audio-wave.mjs"
|
64
|
-
},
|
65
59
|
"./badge": {
|
66
60
|
"types": "./badge/index.d.ts",
|
67
61
|
"esm2022": "./esm2022/badge/acorex-components-badge.mjs",
|
68
62
|
"esm": "./esm2022/badge/acorex-components-badge.mjs",
|
69
63
|
"default": "./fesm2022/acorex-components-badge.mjs"
|
70
64
|
},
|
65
|
+
"./avatar": {
|
66
|
+
"types": "./avatar/index.d.ts",
|
67
|
+
"esm2022": "./esm2022/avatar/acorex-components-avatar.mjs",
|
68
|
+
"esm": "./esm2022/avatar/acorex-components-avatar.mjs",
|
69
|
+
"default": "./fesm2022/acorex-components-avatar.mjs"
|
70
|
+
},
|
71
71
|
"./button": {
|
72
72
|
"types": "./button/index.d.ts",
|
73
73
|
"esm2022": "./esm2022/button/acorex-components-button.mjs",
|
@@ -86,23 +86,17 @@
|
|
86
86
|
"esm": "./esm2022/calendar/acorex-components-calendar.mjs",
|
87
87
|
"default": "./fesm2022/acorex-components-calendar.mjs"
|
88
88
|
},
|
89
|
-
"./check-box": {
|
90
|
-
"types": "./check-box/index.d.ts",
|
91
|
-
"esm2022": "./esm2022/check-box/acorex-components-check-box.mjs",
|
92
|
-
"esm": "./esm2022/check-box/acorex-components-check-box.mjs",
|
93
|
-
"default": "./fesm2022/acorex-components-check-box.mjs"
|
94
|
-
},
|
95
89
|
"./chips": {
|
96
90
|
"types": "./chips/index.d.ts",
|
97
91
|
"esm2022": "./esm2022/chips/acorex-components-chips.mjs",
|
98
92
|
"esm": "./esm2022/chips/acorex-components-chips.mjs",
|
99
93
|
"default": "./fesm2022/acorex-components-chips.mjs"
|
100
94
|
},
|
101
|
-
"./
|
102
|
-
"types": "./
|
103
|
-
"esm2022": "./esm2022/
|
104
|
-
"esm": "./esm2022/
|
105
|
-
"default": "./fesm2022/acorex-components-
|
95
|
+
"./check-box": {
|
96
|
+
"types": "./check-box/index.d.ts",
|
97
|
+
"esm2022": "./esm2022/check-box/acorex-components-check-box.mjs",
|
98
|
+
"esm": "./esm2022/check-box/acorex-components-check-box.mjs",
|
99
|
+
"default": "./fesm2022/acorex-components-check-box.mjs"
|
106
100
|
},
|
107
101
|
"./collapse": {
|
108
102
|
"types": "./collapse/index.d.ts",
|
@@ -110,6 +104,12 @@
|
|
110
104
|
"esm": "./esm2022/collapse/acorex-components-collapse.mjs",
|
111
105
|
"default": "./fesm2022/acorex-components-collapse.mjs"
|
112
106
|
},
|
107
|
+
"./circular-progress": {
|
108
|
+
"types": "./circular-progress/index.d.ts",
|
109
|
+
"esm2022": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
|
110
|
+
"esm": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
|
111
|
+
"default": "./fesm2022/acorex-components-circular-progress.mjs"
|
112
|
+
},
|
113
113
|
"./color-box": {
|
114
114
|
"types": "./color-box/index.d.ts",
|
115
115
|
"esm2022": "./esm2022/color-box/acorex-components-color-box.mjs",
|
@@ -134,18 +134,18 @@
|
|
134
134
|
"esm": "./esm2022/common/acorex-components-common.mjs",
|
135
135
|
"default": "./fesm2022/acorex-components-common.mjs"
|
136
136
|
},
|
137
|
-
"./data-pager": {
|
138
|
-
"types": "./data-pager/index.d.ts",
|
139
|
-
"esm2022": "./esm2022/data-pager/acorex-components-data-pager.mjs",
|
140
|
-
"esm": "./esm2022/data-pager/acorex-components-data-pager.mjs",
|
141
|
-
"default": "./fesm2022/acorex-components-data-pager.mjs"
|
142
|
-
},
|
143
137
|
"./conversation": {
|
144
138
|
"types": "./conversation/index.d.ts",
|
145
139
|
"esm2022": "./esm2022/conversation/acorex-components-conversation.mjs",
|
146
140
|
"esm": "./esm2022/conversation/acorex-components-conversation.mjs",
|
147
141
|
"default": "./fesm2022/acorex-components-conversation.mjs"
|
148
142
|
},
|
143
|
+
"./data-pager": {
|
144
|
+
"types": "./data-pager/index.d.ts",
|
145
|
+
"esm2022": "./esm2022/data-pager/acorex-components-data-pager.mjs",
|
146
|
+
"esm": "./esm2022/data-pager/acorex-components-data-pager.mjs",
|
147
|
+
"default": "./fesm2022/acorex-components-data-pager.mjs"
|
148
|
+
},
|
149
149
|
"./data-table": {
|
150
150
|
"types": "./data-table/index.d.ts",
|
151
151
|
"esm2022": "./esm2022/data-table/acorex-components-data-table.mjs",
|
@@ -182,23 +182,17 @@
|
|
182
182
|
"esm": "./esm2022/dialog/acorex-components-dialog.mjs",
|
183
183
|
"default": "./fesm2022/acorex-components-dialog.mjs"
|
184
184
|
},
|
185
|
-
"./drawer": {
|
186
|
-
"types": "./drawer/index.d.ts",
|
187
|
-
"esm2022": "./esm2022/drawer/acorex-components-drawer.mjs",
|
188
|
-
"esm": "./esm2022/drawer/acorex-components-drawer.mjs",
|
189
|
-
"default": "./fesm2022/acorex-components-drawer.mjs"
|
190
|
-
},
|
191
185
|
"./dropdown": {
|
192
186
|
"types": "./dropdown/index.d.ts",
|
193
187
|
"esm2022": "./esm2022/dropdown/acorex-components-dropdown.mjs",
|
194
188
|
"esm": "./esm2022/dropdown/acorex-components-dropdown.mjs",
|
195
189
|
"default": "./fesm2022/acorex-components-dropdown.mjs"
|
196
190
|
},
|
197
|
-
"./
|
198
|
-
"types": "./
|
199
|
-
"esm2022": "./esm2022/
|
200
|
-
"esm": "./esm2022/
|
201
|
-
"default": "./fesm2022/acorex-components-
|
191
|
+
"./drawer": {
|
192
|
+
"types": "./drawer/index.d.ts",
|
193
|
+
"esm2022": "./esm2022/drawer/acorex-components-drawer.mjs",
|
194
|
+
"esm": "./esm2022/drawer/acorex-components-drawer.mjs",
|
195
|
+
"default": "./fesm2022/acorex-components-drawer.mjs"
|
202
196
|
},
|
203
197
|
"./dropdown-button": {
|
204
198
|
"types": "./dropdown-button/index.d.ts",
|
@@ -206,6 +200,12 @@
|
|
206
200
|
"esm": "./esm2022/dropdown-button/acorex-components-dropdown-button.mjs",
|
207
201
|
"default": "./fesm2022/acorex-components-dropdown-button.mjs"
|
208
202
|
},
|
203
|
+
"./form": {
|
204
|
+
"types": "./form/index.d.ts",
|
205
|
+
"esm2022": "./esm2022/form/acorex-components-form.mjs",
|
206
|
+
"esm": "./esm2022/form/acorex-components-form.mjs",
|
207
|
+
"default": "./fesm2022/acorex-components-form.mjs"
|
208
|
+
},
|
209
209
|
"./image": {
|
210
210
|
"types": "./image/index.d.ts",
|
211
211
|
"esm2022": "./esm2022/image/acorex-components-image.mjs",
|
@@ -218,18 +218,18 @@
|
|
218
218
|
"esm": "./esm2022/label/acorex-components-label.mjs",
|
219
219
|
"default": "./fesm2022/acorex-components-label.mjs"
|
220
220
|
},
|
221
|
-
"./loading": {
|
222
|
-
"types": "./loading/index.d.ts",
|
223
|
-
"esm2022": "./esm2022/loading/acorex-components-loading.mjs",
|
224
|
-
"esm": "./esm2022/loading/acorex-components-loading.mjs",
|
225
|
-
"default": "./fesm2022/acorex-components-loading.mjs"
|
226
|
-
},
|
227
221
|
"./list": {
|
228
222
|
"types": "./list/index.d.ts",
|
229
223
|
"esm2022": "./esm2022/list/acorex-components-list.mjs",
|
230
224
|
"esm": "./esm2022/list/acorex-components-list.mjs",
|
231
225
|
"default": "./fesm2022/acorex-components-list.mjs"
|
232
226
|
},
|
227
|
+
"./loading": {
|
228
|
+
"types": "./loading/index.d.ts",
|
229
|
+
"esm2022": "./esm2022/loading/acorex-components-loading.mjs",
|
230
|
+
"esm": "./esm2022/loading/acorex-components-loading.mjs",
|
231
|
+
"default": "./fesm2022/acorex-components-loading.mjs"
|
232
|
+
},
|
233
233
|
"./loading-dialog": {
|
234
234
|
"types": "./loading-dialog/index.d.ts",
|
235
235
|
"esm2022": "./esm2022/loading-dialog/acorex-components-loading-dialog.mjs",
|
@@ -260,23 +260,17 @@
|
|
260
260
|
"esm": "./esm2022/nav/acorex-components-nav.mjs",
|
261
261
|
"default": "./fesm2022/acorex-components-nav.mjs"
|
262
262
|
},
|
263
|
-
"./navbar": {
|
264
|
-
"types": "./navbar/index.d.ts",
|
265
|
-
"esm2022": "./esm2022/navbar/acorex-components-navbar.mjs",
|
266
|
-
"esm": "./esm2022/navbar/acorex-components-navbar.mjs",
|
267
|
-
"default": "./fesm2022/acorex-components-navbar.mjs"
|
268
|
-
},
|
269
263
|
"./notification": {
|
270
264
|
"types": "./notification/index.d.ts",
|
271
265
|
"esm2022": "./esm2022/notification/acorex-components-notification.mjs",
|
272
266
|
"esm": "./esm2022/notification/acorex-components-notification.mjs",
|
273
267
|
"default": "./fesm2022/acorex-components-notification.mjs"
|
274
268
|
},
|
275
|
-
"./
|
276
|
-
"types": "./
|
277
|
-
"esm2022": "./esm2022/
|
278
|
-
"esm": "./esm2022/
|
279
|
-
"default": "./fesm2022/acorex-components-
|
269
|
+
"./navbar": {
|
270
|
+
"types": "./navbar/index.d.ts",
|
271
|
+
"esm2022": "./esm2022/navbar/acorex-components-navbar.mjs",
|
272
|
+
"esm": "./esm2022/navbar/acorex-components-navbar.mjs",
|
273
|
+
"default": "./fesm2022/acorex-components-navbar.mjs"
|
280
274
|
},
|
281
275
|
"./otp": {
|
282
276
|
"types": "./otp/index.d.ts",
|
@@ -284,6 +278,12 @@
|
|
284
278
|
"esm": "./esm2022/otp/acorex-components-otp.mjs",
|
285
279
|
"default": "./fesm2022/acorex-components-otp.mjs"
|
286
280
|
},
|
281
|
+
"./number-box": {
|
282
|
+
"types": "./number-box/index.d.ts",
|
283
|
+
"esm2022": "./esm2022/number-box/acorex-components-number-box.mjs",
|
284
|
+
"esm": "./esm2022/number-box/acorex-components-number-box.mjs",
|
285
|
+
"default": "./fesm2022/acorex-components-number-box.mjs"
|
286
|
+
},
|
287
287
|
"./page": {
|
288
288
|
"types": "./page/index.d.ts",
|
289
289
|
"esm2022": "./esm2022/page/acorex-components-page.mjs",
|
@@ -446,18 +446,18 @@
|
|
446
446
|
"esm": "./esm2022/text-area/acorex-components-text-area.mjs",
|
447
447
|
"default": "./fesm2022/acorex-components-text-area.mjs"
|
448
448
|
},
|
449
|
-
"./text-box": {
|
450
|
-
"types": "./text-box/index.d.ts",
|
451
|
-
"esm2022": "./esm2022/text-box/acorex-components-text-box.mjs",
|
452
|
-
"esm": "./esm2022/text-box/acorex-components-text-box.mjs",
|
453
|
-
"default": "./fesm2022/acorex-components-text-box.mjs"
|
454
|
-
},
|
455
449
|
"./time-line": {
|
456
450
|
"types": "./time-line/index.d.ts",
|
457
451
|
"esm2022": "./esm2022/time-line/acorex-components-time-line.mjs",
|
458
452
|
"esm": "./esm2022/time-line/acorex-components-time-line.mjs",
|
459
453
|
"default": "./fesm2022/acorex-components-time-line.mjs"
|
460
454
|
},
|
455
|
+
"./text-box": {
|
456
|
+
"types": "./text-box/index.d.ts",
|
457
|
+
"esm2022": "./esm2022/text-box/acorex-components-text-box.mjs",
|
458
|
+
"esm": "./esm2022/text-box/acorex-components-text-box.mjs",
|
459
|
+
"default": "./fesm2022/acorex-components-text-box.mjs"
|
460
|
+
},
|
461
461
|
"./toast": {
|
462
462
|
"types": "./toast/index.d.ts",
|
463
463
|
"esm2022": "./esm2022/toast/acorex-components-toast.mjs",
|