riskscape-plugins 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
File without changes
@@ -0,0 +1 @@
1
+ .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,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAx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wNyt6TM88blFHao/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,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKL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2gIF88PBTzD/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}}.rs-unit-selector-container{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10000;width:300px;max-width:90vw;background:#fff;border-radius:8px;box-shadow:0 10px 25px #00000026;overflow:hidden}.rs-unit-selector-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#f8f9fa;border-bottom:1px solid #e5e7eb}.rs-unit-selector-title{font-size:.875rem;font-weight:600;color:#1f2937;margin:0}.rs-unit-selector-cancel{background:none;border:none;color:#6b7280;cursor:pointer;padding:.25rem;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.rs-unit-selector-cancel:hover{background:#e5e7eb;color:#374151}.rs-unit-selector-input{width:100%;padding:.75rem 1rem;border:none;border-bottom:1px solid #e5e7eb;font-size:.875rem;background:#fff;outline:none;transition:border-color .2s ease;box-sizing:border-box}.rs-unit-selector-input:focus{border-color:#3b82f6}.rs-unit-selector-input::placeholder{color:#9ca3af}.rs-unit-selector-dropdown{position:relative;background:#fff;max-height:280px;overflow:hidden;display:flex;flex-direction:column}.rs-unit-selector-list{flex:1;overflow-y:auto;margin:0;padding:0;list-style:none;max-height:280px}.rs-unit-selector-item{cursor:pointer;transition:background-color .15s ease;border-bottom:1px solid #f3f4f6;padding:.75rem 1rem;display:flex;align-items:center}.rs-unit-selector-item:last-child{border-bottom:none}.rs-unit-selector-item:hover{background-color:#f9fafb}.rs-unit-selector-item--selected{background-color:#eff6ff;border-color:#dbeafe}.rs-unit-selector-unit-number{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;font-weight:600;color:#1f2937;flex:1}.rs-unit-selector-no-results{padding:1.5rem 1rem;text-align:center;color:#6b7280;font-size:.875rem}@media (max-width: 640px){.rs-unit-selector-container{width:280px}.rs-unit-selector-item{padding:.875rem .75rem}}.rs-unit-selector-list::-webkit-scrollbar{width:8px}.rs-unit-selector-list::-webkit-scrollbar-track{background:#f1f1f1}.rs-unit-selector-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.rs-unit-selector-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.rs-unit-selector-item:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}:root{--rs-unit-selector-primary-color: #3b82f6;--rs-unit-selector-text-color: #1f2937;--rs-unit-selector-text-muted: #6b7280;--rs-unit-selector-border-color: #e5e7eb;--rs-unit-selector-bg-color: #ffffff;--rs-unit-selector-bg-selected: #eff6ff;--rs-unit-selector-bg-hover: #f9fafb;--rs-unit-selector-shadow: 0 10px 25px rgba(0, 0, 0, .15)}.rs-unit-selector-input:focus{border-color:var(--rs-unit-selector-primary-color)}.rs-unit-selector-container{background:var(--rs-unit-selector-bg-color);box-shadow:var(--rs-unit-selector-shadow)}.rs-unit-selector-header,.rs-unit-selector-input{border-color:var(--rs-unit-selector-border-color)}.rs-unit-selector-item--selected{background-color:var(--rs-unit-selector-bg-selected)}.rs-unit-selector-item:hover{background-color:var(--rs-unit-selector-bg-hover)}.rs-unit-selector-unit-number{color:var(--rs-unit-selector-text-color)}.rs-unit-selector-no-results{color:var(--rs-unit-selector-text-muted)}@-webkit-keyframes leaflet-gestures-fadein{0%{opacity:0}to{opacity:1}}@keyframes leaflet-gestures-fadein{0%{opacity:0}to{opacity:1}}.leaflet-container:after{-webkit-animation:leaflet-gestures-fadein .8s backwards;animation:leaflet-gestures-fadein .8s backwards;color:#fff;font-family:Roboto,Arial,sans-serif;font-size:22px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:15px;position:absolute;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:461;pointer-events:none}.leaflet-gesture-handling-touch-warning:after,.leaflet-gesture-handling-scroll-warning:after{-webkit-animation:leaflet-gestures-fadein .8s forwards;animation:leaflet-gestures-fadein .8s forwards}.leaflet-gesture-handling-touch-warning:after{content:attr(data-gesture-handling-touch-content)}.leaflet-gesture-handling-scroll-warning:after{content:attr(data-gesture-handling-scroll-content)}:root{--rs-search-primary-color: #2563eb;--rs-search-secondary-color: #f8fafc;--rs-search-text-color: #333333;--rs-search-muted-color: #6b7280;--rs-search-border-color: #e5e7eb;--rs-search-error-color: #dc2626;--rs-search-success-color: #16a34a;--rs-search-menu-bg: white;--rs-search-menu-color: var(--rs-search-text-color);--rs-search-menu-font-size: .95rem;--rs-search-menu-font-family: inherit;--rs-search-menu-border: 1px solid var(--rs-search-border-color);--rs-search-menu-border-radius: 8px;--rs-search-menu-shadow: 0 4px 10px rgba(0, 0, 0, .1);--rs-search-menu-z-index: 1000;--rs-search-menu-max-height: 400px;--rs-search-item-padding: 10px 16px;--rs-search-item-hover-bg: var(--rs-search-secondary-color);--rs-search-item-selected-bg: var(--rs-search-secondary-color);--rs-search-item-selected-border-left: 3px solid var(--rs-search-primary-color);--rs-search-candidate-font-weight: 500;--rs-search-meta-font-size: .85rem;--rs-search-category-color: var(--rs-search-muted-color);--rs-search-loading-spinner-color: rgba(0, 0, 0, .3);--rs-search-loading-bg: rgba(255, 255, 255, .6);--rs-search-powered-by-bg: #f1f2f3;--rs-search-powered-by-color: #b01d21}@keyframes rs-loading-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rs-loading-pulse{0%,to{opacity:.6}50%{opacity:1}}.rs-search-container{position:absolute;top:0;left:0;z-index:var(--rs-search-menu-z-index);width:max-content;min-width:400px;max-width:480px;display:flex;flex-direction:column;pointer-events:none;filter:drop-shadow(0 4px 10px rgba(0,0,0,.1))}.rs-search-menu{position:relative;display:none;width:100%;max-width:none;max-height:var(--rs-search-menu-max-height);overflow:hidden;overflow-y:auto;-webkit-user-select:none;user-select:none;pointer-events:auto;box-shadow:none;background:var(--rs-search-menu-bg);border:var(--rs-search-menu-border);border-radius:var(--rs-search-menu-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none;color:var(--rs-search-menu-color);font-family:var(--rs-search-menu-font-family);font-size:var(--rs-search-menu-font-size);font-weight:400;transition:box-shadow .2s ease,opacity .15s ease}@media only screen and (max-width: 479px){.rs-search-container{width:100%;min-width:unset;max-width:100%}.rs-search-results__item{padding:12px}}.rs-search-powered-by{font-size:.75em;text-align:right;padding:8px 12px;background:var(--rs-search-powered-by-bg);border:var(--rs-search-menu-border);border-top:none;border-bottom-left-radius:var(--rs-search-menu-border-radius);border-bottom-right-radius:var(--rs-search-menu-border-radius);width:100%;pointer-events:auto;box-shadow:none;position:relative}.rs-search-powered-by a,.rs-search-powered-by span{color:var(--rs-search-powered-by-color);text-decoration:none;transition:opacity .2s ease}.rs-search-powered-by a:hover{opacity:.8}.rs-search-loading{top:0;left:0;width:100%;height:100%;position:absolute;display:none;flex-direction:row;align-items:center;justify-content:center;background:var(--rs-search-loading-bg, rgba(255, 255, 255, .7));z-index:100;border-radius:var(--rs-search-menu-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;pointer-events:all;gap:8px}.rs-search-loading__spinner{width:16px;height:16px;border:1.5px solid rgba(0,0,0,.08);border-top:1.5px solid var(--rs-search-primary-color, #2563eb);border-radius:50%;animation:rs-loading-spin .7s linear infinite;margin:0;box-shadow:none;flex-shrink:0}.rs-search-loading__text{font-size:13px;color:var(--rs-search-text-color);font-weight:400;opacity:.75;letter-spacing:.01em;margin:0}.rs-search-results{margin:0;padding:0;list-style:none}.rs-search-results__item{cursor:pointer;padding:var(--rs-search-item-padding);line-height:1.5;transition:background-color .15s ease,padding-left .15s ease;position:relative}.rs-search-results__message{padding:var(--rs-search-item-padding);line-height:1.5;text-align:center;color:var(--rs-search-muted-color);display:flex;align-items:center;justify-content:center}.rs-search-results__loading-placeholder{min-height:50px;background:transparent;margin:0;padding:0}.rs-search-results__item+.rs-search-results__item{border-top:var(--rs-search-menu-border)}.rs-search-results__icon{margin-right:10px}.rs-search-results__content{display:flex;flex-direction:column;gap:4px}.rs-search-results__candidate{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--rs-search-text-color);line-height:1.4}.rs-search-results__candidate span{font-weight:var(--rs-search-candidate-font-weight)}.rs-search-results__meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:var(--rs-search-meta-font-size)}.rs-search-results__category{font-weight:500;color:var(--rs-search-category-color);background-color:#0000000d;padding:2px 8px;border-radius:4px;font-size:.8em;display:inline-block}.rs-search-results__description{font-size:.9em;color:var(--rs-search-muted-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rs-search-results__item:hover,.rs-search-results__item--hover{background-color:var(--rs-search-item-hover-bg)}.rs-search-results__item--selected{background-color:var(--rs-search-item-selected-bg);padding-left:calc(var(--rs-search-item-padding-left, 16px) + 3px)}.rs-search-results__item--selected:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background-color:var(--rs-search-primary-color)}.rs-search-results__error{padding:16px;color:var(--rs-search-error-color);background-color:#dc262605;margin:8px;border-radius:6px;max-height:none}.rs-search-results__error-message{display:flex;align-items:center;gap:10px;font-size:.95em}.rs-search-results__error-icon{font-size:18px}.rs-map-container{z-index:1;width:100%;height:100%;position:relative}.rs-map-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;z-index:1000;cursor:wait;display:flex;justify-content:center;align-items:center}
@@ -0,0 +1,235 @@
1
+ import type { Map, MapOptions, Layer, LatLng, LatLngBounds, TileLayer } from 'leaflet';
2
+
3
+ declare module 'riskscape-plugins' {
4
+ // Search plugin types
5
+ export interface RiskscapeSearchOptions {
6
+ /**
7
+ * ID of the input element
8
+ */
9
+ element: string;
10
+
11
+ /**
12
+ * API key for Riskscape service
13
+ */
14
+ key: string;
15
+
16
+ /**
17
+ * Base URL for the API
18
+ */
19
+ url?: string;
20
+
21
+ /**
22
+ * Whether to show categories
23
+ * @default false
24
+ */
25
+ showCategory?: boolean;
26
+
27
+ /**
28
+ * Whether to show "powered by" text
29
+ * @default true
30
+ */
31
+ showPoweredBy?: boolean;
32
+
33
+ /**
34
+ * Whether to automatically fetch full address details on selection
35
+ * @default true
36
+ */
37
+ autoFetchAddress?: boolean;
38
+
39
+ /**
40
+ * Maximum results to display
41
+ * @default 10
42
+ */
43
+ maxResults?: number;
44
+ }
45
+
46
+ /**
47
+ * Candidate result interface
48
+ */
49
+ export interface Candidate {
50
+ candidate: string;
51
+ category: string;
52
+ subcategory: string;
53
+ attributes?: {
54
+ address_id?: string;
55
+ property_description?: string;
56
+ [key: string]: any;
57
+ };
58
+ }
59
+
60
+ /**
61
+ * Address result interface
62
+ */
63
+ export interface Address {
64
+ id: string;
65
+ formatted_address: string;
66
+ components: {
67
+ [key: string]: any;
68
+ };
69
+ geometry: {
70
+ location: {
71
+ lat: number;
72
+ lng: number;
73
+ };
74
+ };
75
+ [key: string]: any;
76
+ }
77
+
78
+ /**
79
+ * Event handlers
80
+ */
81
+ export type SearchEventHandlers = {
82
+ 'select': (data: { candidate: Candidate, address?: Address }) => void;
83
+ 'error': (error: Error) => void;
84
+ 'geocode:before': (data: { query: string }) => void;
85
+ 'geocode:after': (results: Candidate[]) => void;
86
+ 'loading': (isLoading: boolean) => void;
87
+ 'paste': (data: { type: string, data: any }) => void;
88
+ }
89
+
90
+ export class RiskscapeSearch {
91
+ constructor(options: RiskscapeSearchOptions);
92
+
93
+ /**
94
+ * Register an event handler
95
+ */
96
+ on<K extends keyof SearchEventHandlers>(event: K, callback: SearchEventHandlers[K]): this;
97
+
98
+ /**
99
+ * Remove an event handler
100
+ */
101
+ off<K extends keyof SearchEventHandlers>(event: K, callback: SearchEventHandlers[K]): this;
102
+
103
+ /**
104
+ * Set search filters
105
+ */
106
+ setFilters(filters: object): void;
107
+
108
+ /**
109
+ * Get address by ID
110
+ */
111
+ getAddress(addressId: string): Promise<Address>;
112
+
113
+ /**
114
+ * Fetch the full address details for the currently selected candidate
115
+ */
116
+ fetchSelectedAddress(): Promise<Address | null>;
117
+
118
+ /**
119
+ * Reset the search input and results
120
+ */
121
+ reset(): void;
122
+
123
+ /**
124
+ * Clean up event listeners and DOM elements
125
+ */
126
+ destroy(): void;
127
+ }
128
+
129
+ // Map plugin types
130
+ export interface RiskscapeMapConfig {
131
+ key: string;
132
+ element: string | HTMLElement;
133
+ url?: string;
134
+ style?: 'default' | 'hybrid';
135
+ googleKey?: string;
136
+ featureStyle?: any;
137
+ locationFeatureStyle?: any;
138
+ operationMode?: 'property' | string;
139
+ options?: MapOptions;
140
+ }
141
+
142
+ export interface PropertyData {
143
+ id?: string;
144
+ type: 'property';
145
+ property_key: string;
146
+ unit_number?: string;
147
+ address?: string;
148
+ coordinates?: [number, number];
149
+ has_sectional_units?: boolean;
150
+ units?: UnitData[];
151
+ [key: string]: any;
152
+ }
153
+
154
+ export interface SchemeData {
155
+ id?: string;
156
+ type: 'scheme';
157
+ scheme_id: string;
158
+ name?: string;
159
+ has_sectional_units?: boolean;
160
+ is_sectional_scheme?: boolean;
161
+ units?: UnitData[];
162
+ [key: string]: any;
163
+ }
164
+
165
+ export interface UnitData {
166
+ unit_number: string;
167
+ property_key: string;
168
+ [key: string]: any;
169
+ }
170
+
171
+ export class RiskscapeMap extends Map {
172
+ constructor(config: RiskscapeMapConfig);
173
+
174
+ // Feature selection methods
175
+ selectFeature(type: string, params: any, options?: any, attributes?: any): Promise<PropertyData | SchemeData | null>;
176
+ selectPropertyFeature(latlng: LatLng, options?: any): Promise<PropertyData | SchemeData | null>;
177
+ removeFeature(): void;
178
+
179
+ // Data fetching methods
180
+ getProperty(property_key: string, unit_number: string): Promise<PropertyData | null>;
181
+ getSchemeUnits(scheme_id: string): Promise<UnitData[]>;
182
+ getPropertyUnits(property_key: string): Promise<string[]>;
183
+
184
+ // Map control methods
185
+ setStyle(style: 'default' | 'hybrid'): Promise<void>;
186
+ bindSearch(searchInstance: RiskscapeSearch): void;
187
+ unbindSearch(): void;
188
+ enableInteraction(): void;
189
+ disableInteraction(): void;
190
+ destroy(): void;
191
+ }
192
+
193
+ // Layer classes (commented out - not currently exported)
194
+ // export class RiskscapeTileLayer extends TileLayer {
195
+ // constructor(url: string, options: any, apiKey: string);
196
+ // getApiKey(): string;
197
+ // setApiKey(apiKey: string): void;
198
+ // }
199
+
200
+ // export class RiskscapeWmsLayer extends RiskscapeTileLayer {
201
+ // constructor(url: string, options: any, apiKey: string);
202
+ // setParams(params: Record<string, any>, noRedraw?: boolean): this;
203
+ // getParams(): Record<string, any>;
204
+ // }
205
+
206
+ // Utility functions (commented out - not currently exported)
207
+ // export function isLatLon(value: string): boolean;
208
+ // export function isPropertyKey(value: string): boolean;
209
+ // export function toLatLon(latlng: LatLng): { lat: string; lon: string };
210
+ // export function toLatLonString(latlng: LatLng): string;
211
+ // export function mapStyleLayers(style: string): any[];
212
+ // export function loadGoogleMaps(apiKey: string): Promise<any>;
213
+
214
+ // Module namespaces
215
+ export namespace Search {
216
+ export { RiskscapeSearch };
217
+ export type { RiskscapeSearchOptions, Candidate, Address, SearchEventHandlers };
218
+ }
219
+
220
+ export namespace Map {
221
+ export { RiskscapeMap };
222
+ export type { RiskscapeMapConfig, PropertyData, SchemeData, UnitData };
223
+ // export { RiskscapeTileLayer, RiskscapeWmsLayer }; // commented out - not currently exported
224
+ }
225
+
226
+ // Default export
227
+ interface RiskscapePlugins {
228
+ Search: typeof RiskscapeSearch;
229
+ Map: typeof RiskscapeMap;
230
+ // TileLayer: typeof RiskscapeTileLayer; // commented out - not currently exported
231
+ // WmsLayer: typeof RiskscapeWmsLayer; // commented out - not currently exported
232
+ }
233
+
234
+ export default RiskscapePlugins;
235
+ }