@streamline-pulse/formkrafter-wc 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/components/fk-address-search.d.ts +11 -0
  2. package/dist/components/fk-address-search.js +1 -0
  3. package/dist/components/fk-brick-actions.js +1 -1
  4. package/dist/components/fk-brick-list.js +1 -1
  5. package/dist/components/fk-brick-mold-item.js +1 -1
  6. package/dist/components/fk-brick-not-found.js +1 -1
  7. package/dist/components/fk-brick-render.js +1 -1
  8. package/dist/components/fk-code-editor.js +1 -1
  9. package/dist/components/fk-data-grid.js +1 -1
  10. package/dist/components/fk-drop-area.js +1 -1
  11. package/dist/components/fk-empty-form.js +1 -1
  12. package/dist/components/fk-file-input.js +1 -1
  13. package/dist/components/fk-form-builder.js +1 -1
  14. package/dist/components/fk-form-render.js +1 -1
  15. package/dist/components/fk-form-review.js +1 -1
  16. package/dist/components/fk-geo-map.d.ts +11 -0
  17. package/dist/components/fk-geo-map.js +1 -0
  18. package/dist/components/fk-property-panel.js +1 -1
  19. package/dist/components/fk-rules-editor.js +1 -1
  20. package/dist/components/fk-select-input.js +1 -1
  21. package/dist/components/fk-signature-input.js +1 -1
  22. package/dist/components/fk-stepper.js +1 -1
  23. package/dist/components/fk-tabs.js +1 -1
  24. package/dist/components/fk-variable-picker.js +1 -1
  25. package/dist/components/index.js +1 -1
  26. package/dist/components/{p-C6emCV3T.js → p-4J6WHge8.js} +1 -1
  27. package/dist/components/{p-BemdqIL_.js → p-6IFMAlaM.js} +1 -1
  28. package/dist/components/p-8ICOcloT.js +1 -0
  29. package/dist/components/{p-CYfQK2Pw.js → p-AxQWXLy8.js} +1 -1
  30. package/dist/components/{p-CIGtlYQn.js → p-BE5v8BN3.js} +1 -1
  31. package/dist/components/{p-Bq81YnKC.js → p-BJPNcA2I.js} +1 -1
  32. package/dist/components/p-BdV2F17R.js +1 -0
  33. package/dist/components/{p-Cha7IcHb.js → p-CJAIx_lh.js} +1 -1
  34. package/dist/components/{p-B-50T6sz.js → p-CV5yMN-W.js} +5 -5
  35. package/dist/components/p-CY-uaS2y.js +1 -0
  36. package/dist/components/{p-BUAEhrDQ.js → p-Ck8lu3cO.js} +1 -1
  37. package/dist/components/p-D23KNvvF.js +1 -0
  38. package/dist/components/{p-WL4Z1HBm.js → p-DLWd_wkA.js} +1 -1
  39. package/dist/components/p-DMLnAgzb.js +1 -0
  40. package/dist/components/{p-CAMQHIiV.js → p-DSArI0Qr.js} +1 -1
  41. package/dist/components/p-Deomtk7O.js +5 -0
  42. package/dist/components/{p-Bdaaog9G.js → p-DoRivFlV.js} +1 -1
  43. package/dist/components/{p-BJMoesgM.js → p-Dwz_AerL.js} +1 -1
  44. package/dist/components/{p-BoUU2NWO.js → p-N4ocWM74.js} +1 -1
  45. package/dist/components/{p-jI4tn-a2.js → p-QhU0FQmA.js} +1 -1
  46. package/dist/components/{p-CTo62I8g.js → p-xwwy55X1.js} +1 -1
  47. package/dist/components/p-yZ54sN-p.js +1 -0
  48. package/dist/formkrafter-wc/formkrafter-wc.css +1 -1
  49. package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -1
  50. package/dist/formkrafter-wc/index.esm.js +1 -1
  51. package/dist/formkrafter-wc/p--7ABNliQ.js +5 -0
  52. package/dist/formkrafter-wc/{p-87fcea14.entry.js → p-1f9e4187.entry.js} +1 -1
  53. package/dist/formkrafter-wc/p-36f8ef99.entry.js +1 -0
  54. package/dist/formkrafter-wc/p-BDqOS1za.js +2 -0
  55. package/dist/formkrafter-wc/{p-CR0WTblB.js → p-DoSYU_vL.js} +5 -5
  56. package/dist/formkrafter-wc/p-f7ffd2a4.entry.js +1 -0
  57. package/dist/types/components/fk-address-search/fk-address-search.d.ts +57 -0
  58. package/dist/types/components/fk-geo-map/fk-geo-map.d.ts +93 -0
  59. package/dist/types/components.d.ts +304 -0
  60. package/dist/types/registry/default-bricks.d.ts +162 -0
  61. package/package.json +4 -2
  62. package/dist/components/p-B29HakDD.js +0 -1
  63. package/dist/components/p-BTxz9ZnS.js +0 -1
  64. package/dist/components/p-D9ZgC9I3.js +0 -1
  65. package/dist/components/p-DC8hPiiS.js +0 -1
  66. package/dist/formkrafter-wc/p-C7Z9P9uL.js +0 -2
  67. package/dist/formkrafter-wc/p-a4cf0527.entry.js +0 -1
  68. package/dist/formkrafter-wc/p-d8688a2e.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as o,c as l,h as a}from"./p-8ICOcloT.js";import{b as i}from"./p-CV5yMN-W.js";const r=new Map,n=e=>Math.round(1e6*e)/1e6,s=e=>[n(e.lng),n(e.lat)],f=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.geoChange=l(this,"geoChange"),this.layerChange=l(this,"layerChange"),this.mode="point",this.zoom=6,this.tileUrl="https://tile.openstreetmap.org/{z}/{x}/{y}.png",this.attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',this.height=320,this.disabled=!1,this.readOnly=!1,this.manual=!0,this.layerCodeProperty="code",this.layerNameProperty="name",this.selected=[],this.multiple=!1,this.failed=!1,this.vertexCount=0,this.zones=[],this.layerFailed=!1,this.shapes=[],this.vertices=[],this.lastEmitted="",this.clear=()=>{this.locked||this.setVertices([])}}get locked(){return this.disabled||this.readOnly}async componentDidLoad(){var e;"layer"===this.mode&&this.fetchLayer();try{const t=await import("./p-Deomtk7O.js").then((function(e){return e.l}));this.L=null!==(e=t.default)&&void 0!==e?e:t}catch(e){return void(this.failed=!0)}this.container&&this.initMap()}disconnectedCallback(){var e,t;null===(e=this.observer)||void 0===e||e.disconnect(),null===(t=this.map)||void 0===t||t.remove(),this.map=void 0}onValueChange(e){JSON.stringify(null!=e?e:null)!==this.lastEmitted&&this.draw(e)}onLockChange(){this.draw(this.value),this.restyleLayer()}onSelectedChange(){this.restyleLayer()}onLayerUrlChange(){this.fetchLayer()}initMap(){var e;const t=this.L,o=this.container,l=t.map(o,{attributionControl:!0,zoomControl:!this.locked});t.tileLayer(this.tileUrl,{attribution:this.attribution,maxZoom:19}).addTo(l),l.setView(null!==(e=this.center)&&void 0!==e?e:[0,0],this.center?this.zoom:2),this.locked&&(l.dragging.disable(),l.scrollWheelZoom.disable()),l.on("click",(e=>{this.locked||"layer"===this.mode||this.setVertices("point"===this.mode?[e.latlng]:[...this.vertices,e.latlng])})),this.map=l,this.draw(this.value),this.drawLayer(),"undefined"!=typeof ResizeObserver&&(this.observer=new ResizeObserver((()=>l.invalidateSize())),this.observer.observe(o)),setTimeout((()=>l.invalidateSize()),50)}draw(e){var t;const o=this.L,l=this.map;if(!o||!l)return void(this.vertexCount=this.countVertices(e));const a=[];if("Point"===(null==e?void 0:e.type)&&a.push(o.latLng(e.coordinates[1],e.coordinates[0])),"LineString"===(null==e?void 0:e.type))for(const[t,l]of e.coordinates)a.push(o.latLng(l,t));if("Polygon"===(null==e?void 0:e.type)){const l=null!==(t=e.coordinates[0])&&void 0!==t?t:[],i=l.length>1&&l[0][0]===l[l.length-1][0]&&l[0][1]===l[l.length-1][1]?l.slice(0,-1):l;for(const[e,t]of i)a.push(o.latLng(t,e))}this.vertices=a,this.vertexCount=a.length,this.render_shapes(),1===a.length?l.setView(a[0],Math.max(l.getZoom(),this.zoom)):a.length>1&&l.fitBounds(o.latLngBounds(a),{padding:[24,24]})}countVertices(e){var t,o;return e?"Point"===e.type?1:"LineString"===e.type?e.coordinates.length:Math.max((null!==(o=null===(t=e.coordinates[0])||void 0===t?void 0:t.length)&&void 0!==o?o:1)-1,0):0}render_shapes(){const e=this.L,t=this.map;if(!e||!t)return;for(const e of this.shapes)e.remove();this.shapes=[];const o=this.vertices;"polygon"===this.mode&&o.length>=3&&this.shapes.push(e.polygon(o,{className:"fk-geo__shape"}).addTo(t)),"line"===this.mode&&o.length>=2&&this.shapes.push(e.polyline(o,{className:"fk-geo__shape"}).addTo(t)),o.forEach(((o,l)=>{const a=e.marker(o,{draggable:!this.locked,icon:e.divIcon({className:"fk-geo__marker",iconSize:[14,14],iconAnchor:[7,7]})}).addTo(t);a.on("dragend",(()=>{const e=[...this.vertices];e[l]=a.getLatLng(),this.setVertices(e)})),"point"!==this.mode&&a.on("contextmenu",(()=>{this.locked||this.setVertices(this.vertices.filter(((e,t)=>t!==l)))})),this.shapes.push(a)}))}setVertices(e){this.vertices=e,this.vertexCount=e.length,this.render_shapes(),this.emit()}geometry(){const e=this.vertices;if("point"===this.mode)return e[0]?{type:"Point",coordinates:s(e[0])}:void 0;if("line"===this.mode)return e.length>=2?{type:"LineString",coordinates:e.map(s)}:void 0;if(e.length<3)return;const t=e.map(s);return{type:"Polygon",coordinates:[[...t,t[0]]]}}emit(){const e=this.geometry();this.lastEmitted=JSON.stringify(null!=e?e:null),this.geoChange.emit(e)}setManual(e,t){var o,l,a;if(this.locked)return;if(""===t.trim())return this.vertices=[],this.vertexCount=0,this.render_shapes(),void this.emit();const i="Point"===(null===(o=this.value)||void 0===o?void 0:o.type)?this.value.coordinates:void 0,r="lat"===e?Number(t):null!==(l=null==i?void 0:i[1])&&void 0!==l?l:NaN,n="lng"===e?Number(t):null!==(a=null==i?void 0:i[0])&&void 0!==a?a:NaN;if(Number.isNaN(r)||Number.isNaN(n))return;const s=this.L?this.L.latLng(r,n):{lat:r,lng:n};this.vertices=[s],this.vertexCount=1,this.render_shapes(),this.map&&this.map.setView(s,Math.max(this.map.getZoom(),this.zoom)),this.emit()}componentDidRender(){var e;this.selectEl&&"layer"===this.mode&&(this.selectEl.value=null!==(e=this.selected[0])&&void 0!==e?e:"")}zoneOf(e){var t;const o=null!==(t=e.properties)&&void 0!==t?t:{},l=o[this.layerCodeProperty],a=o[this.layerNameProperty];return null==l||""===l?null:{code:String(l),name:String(null==a?l:a)}}async fetchLayer(){var e;if(this.layerFailed=!1,!this.layerUrl)return this.layerData=void 0,this.zones=[],void this.drawLayer();try{const t=await(e=>{let t=r.get(e);return t||(t=fetch(e,{headers:{Accept:"application/geo+json, application/json"}}).then((async e=>{if(!e.ok)throw new Error(String(e.status));return await e.json()})),t.catch((()=>r.delete(e))),r.set(e,t)),t})(this.layerUrl);this.layerData=t,this.zones=(null!==(e=t.features)&&void 0!==e?e:[]).map((e=>this.zoneOf(e))).filter((e=>null!==e)).sort(((e,t)=>e.name.localeCompare(t.name))),this.drawLayer()}catch(e){this.layerFailed=!0}}layerStyle(e){const t=null!==e&&this.selected.includes(e);return{className:t?"fk-geo__zone fk-geo__zone--selected":"fk-geo__zone",weight:t?2:1,fillOpacity:t?.45:.1}}drawLayer(){var e;const t=this.L,o=this.map;if(!t||!o||"layer"!==this.mode)return;if(null===(e=this.layer)||void 0===e||e.remove(),this.layer=void 0,!this.layerData)return;const l=t.geoJSON(this.layerData,{style:e=>{var t,o;return this.layerStyle(e&&null!==(o=null===(t=this.zoneOf(e))||void 0===t?void 0:t.code)&&void 0!==o?o:null)},onEachFeature:(e,t)=>{const o=this.zoneOf(e);o&&(t.bindTooltip(o.name,{sticky:!0}),t.on("click",(()=>{this.locked||this.toggleZone(o)})))}}).addTo(o);this.layer=l;const a=l.getBounds();(a.isValid()&&!this.selected.length||a.isValid()&&this.selected.length)&&o.fitBounds(a,{padding:[16,16]})}restyleLayer(){const e=this.layer;e&&e.setStyle((e=>{var t,o;return this.layerStyle(e&&null!==(o=null===(t=this.zoneOf(e))||void 0===t?void 0:t.code)&&void 0!==o?o:null)}))}toggleZone(e){const t=this.selected.includes(e.code),o=this.multiple?t?this.selected.filter((t=>t!==e.code)):[...this.selected,e.code]:t?[]:[e.code];this.emitZones(o)}emitZones(e){const t=new Map(this.zones.map((e=>[e.code,e])));this.layerChange.emit(e.map((e=>{var o;return null!==(o=t.get(e))&&void 0!==o?o:{code:e,name:e}})))}renderLayerBar(){const e=this.selected.map((e=>{var t;return null!==(t=this.zones.find((t=>t.code===e)))&&void 0!==t?t:{code:e,name:e}}));return a("div",{class:"fk-geo__bar"},this.layerFailed?a("span",{class:"fk-geo__summary"},i("layer.unavailable")):this.multiple?a("span",{class:"fk-geo__chips"},0===e.length?a("span",{class:"fk-geo__summary"},i("layer.pickMany")):e.map((e=>a("span",{class:"fk-geo__chip"},e.name,this.locked?null:a("button",{type:"button",class:"fk-geo__chip-remove","aria-label":i("geo.clear"),onClick:()=>this.toggleZone(e)},"×"))))):a("select",{class:"fk-field__input fk-geo__select",ref:e=>{this.selectEl=e},disabled:this.locked,onChange:e=>{const t=e.target.value;this.emitZones(t?[t]:[])}},a("option",{value:"",selected:!this.selected.length},i("layer.pick")),this.zones.map((e=>a("option",{value:e.code,selected:this.selected[0]===e.code},e.name)))),this.locked||this.layerFailed?null:a("span",{class:"fk-geo__hint"},i("layer.hint")))}render(){var e;const t="Point"===(null===(e=this.value)||void 0===e?void 0:e.type)?this.value.coordinates:void 0,o=i("point"===this.mode?"geo.hintPoint":"geo.hintArea");return a("div",{key:"ba4c59daf0ed18f7702ef91fe8b400dd1f3021fd",class:{"fk-geo":!0,"fk-geo--locked":this.locked}},a("div",{key:"341d1e70707f152ff067e4ee39df140eb56c4994",class:"fk-geo__map",style:{height:`${this.height}px`},ref:e=>{this.container=e}},this.failed?a("div",{class:"fk-geo__unavailable"},i("geo.unavailable")):null),"layer"===this.mode?this.renderLayerBar():a("div",{class:"fk-geo__bar"},"point"===this.mode&&this.manual?a("div",{class:"fk-geo__manual"},a("label",{class:"fk-geo__coord"},a("span",null,i("geo.latitude")),a("input",{class:"fk-field__input",type:"number",step:"any",min:"-90",max:"90",value:t?String(t[1]):"",disabled:this.disabled,readOnly:this.readOnly,onChange:e=>this.setManual("lat",e.target.value)})),a("label",{class:"fk-geo__coord"},a("span",null,i("geo.longitude")),a("input",{class:"fk-field__input",type:"number",step:"any",min:"-180",max:"180",value:t?String(t[0]):"",disabled:this.disabled,readOnly:this.readOnly,onChange:e=>this.setManual("lng",e.target.value)}))):a("span",{class:"fk-geo__summary"},this.vertexCount," ",i("geo.points")),this.locked?null:a("span",{class:"fk-geo__actions"},a("span",{class:"fk-geo__hint"},o),this.vertexCount>0?a("button",{type:"button",class:"fk-geo__clear",onClick:this.clear},i("geo.clear")):null)))}get el(){return this}static get watchers(){return{value:[{onValueChange:0}],disabled:[{onLockChange:0}],readOnly:[{onLockChange:0}],selected:[{onSelectedChange:0}],layerUrl:[{onLayerUrlChange:0}]}}static get style(){return'.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, 0.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{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 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.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 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,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:rgba(255,255,255,0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,0.65);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:black}.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:bold 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 rgba(0,0,0,0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{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{}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);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:0.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:rgba(255, 255, 255, 0.8);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,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:17px 0;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:white;color:#333;box-shadow:0 3px 14px rgba(0,0,0,0.4)}.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=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.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 rgba(0,0,0,0.4)}.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}}fk-geo-map{display:block;width:100%}.fk-geo__map{width:100%;border:1px solid var(--fk-border, #d4d4d8);border-radius:var(--fk-radius, 0.375rem);overflow:hidden;background:var(--fk-bg-muted, #f4f4f5);position:relative}.fk-geo--locked .fk-geo__map{cursor:default}.fk-geo__unavailable{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:0.875rem;color:var(--fk-text-muted, #71717a)}.fk-geo__marker{width:14px;height:14px;border-radius:50%;background:var(--fk-primary, #16a34a);border:2px solid #fff;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.25)}.fk-geo__shape{stroke:var(--fk-primary, #16a34a);fill:var(--fk-primary, #16a34a);fill-opacity:0.15}.fk-geo__bar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:0.5rem 1rem;margin-top:0.5rem}.fk-geo__manual{display:flex;gap:0.75rem}.fk-geo__coord{display:flex;flex-direction:column;gap:0.25rem;font-size:0.75rem;color:var(--fk-text-muted, #71717a)}.fk-geo__coord input{width:9rem}.fk-geo__summary,.fk-geo__hint{font-size:0.75rem;color:var(--fk-text-muted, #71717a)}.fk-geo__actions{display:flex;align-items:center;gap:0.75rem}.fk-geo__clear{border:1px solid var(--fk-border, #d4d4d8);border-radius:var(--fk-radius, 0.375rem);background:transparent;color:inherit;font:inherit;font-size:0.75rem;padding:0.25rem 0.625rem;cursor:pointer}.fk-geo__clear:hover{background:var(--fk-bg-muted, rgba(127, 127, 127, 0.12))}.fk-geo__zone{stroke:var(--fk-primary, #16a34a);fill:var(--fk-primary, #16a34a);cursor:pointer}.fk-geo__select{min-width:14rem}.fk-geo__chips{display:flex;flex-wrap:wrap;gap:0.375rem}.fk-geo__chip{display:inline-flex;align-items:center;gap:0.25rem;padding:0.125rem 0.5rem;border-radius:999px;background:var(--fk-bg-muted, rgba(127, 127, 127, 0.12));font-size:0.75rem}.fk-geo__chip-remove{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;line-height:1}'}},[0,"fk-geo-map",{value:[16],mode:[1],center:[16],zoom:[2],tileUrl:[1,"tile-url"],attribution:[1],height:[2],disabled:[4],readOnly:[4,"read-only"],manual:[4],layerUrl:[1,"layer-url"],layerCodeProperty:[1,"layer-code-property"],layerNameProperty:[1,"layer-name-property"],selected:[16],multiple:[4],failed:[32],vertexCount:[32],zones:[32],layerFailed:[32]},void 0,{value:[{onValueChange:0}],disabled:[{onLockChange:0}],readOnly:[{onLockChange:0}],selected:[{onSelectedChange:0}],layerUrl:[{onLayerUrlChange:0}]}]);function p(){"undefined"!=typeof customElements&&["fk-geo-map"].forEach((t=>{"fk-geo-map"===t&&(customElements.get(e(t))||customElements.define(e(t),f))}))}p();export{f as F,p as d}
@@ -1 +1 @@
1
- import{t,p as s,H as a,c as e,h as i}from"./p-B29HakDD.js";import{o,v as r}from"./p-B-50T6sz.js";const n=s(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.stepTouch=e(this,"stepTouch"),this.tabLabels=[],this.editable=!1,this.active=0}clampActive(){this.active>Math.max(this.tabLabels.length-1,0)&&(this.active=0)}componentDidRender(){const t=this.host.querySelector(".fk-tabs__body");t&&Array.from(t.children).forEach(((t,s)=>{const a=t;this.editable?a.style.removeProperty("display"):a.style.display=s===this.active?"":"none"}))}validateTabs(){var t,s;return!0===(null===(s=null===(t=this.spec)||void 0===t?void 0:t.configs)||void 0===s?void 0:s.validateTabs)}tabSpec(t){var s,a,e;const i=null===(a=null===(s=this.spec)||void 0===s?void 0:s.children)||void 0===a?void 0:a[t];if(i&&this.spec)return(null===(e=this.tabCache)||void 0===e?void 0:e.source)!==this.spec&&(this.tabCache={source:this.spec,specs:[]}),this.tabCache.specs[t]||(this.tabCache.specs[t]={type:"panel",id:"tab",name:"Tab",configs:{key:`tab_${t}`},children:[i]}),this.tabCache.specs[t]}tabKeys(t){var s,a,e;const i=null===(a=null===(s=this.spec)||void 0===s?void 0:s.children)||void 0===a?void 0:a[t];if(!i)return[];const r=[];for(const t of o(i))(null===(e=t.configs)||void 0===e?void 0:e.key)&&r.push(t.configs.key);return r}tabValid(t){var s;const a=this.tabSpec(t);if(!a)return!0;const e=Object.fromEntries(Object.entries(null!==(s=this.dataMap)&&void 0!==s?s:{}).filter((([,t])=>""!==t&&null!=t)));return r(a,e,this.locale).valid}goToTab(t){t!==this.active&&(this.editable||!this.validateTabs()||this.tabValid(this.active)?this.active=t:this.stepTouch.emit({keys:this.tabKeys(this.active)}))}render(){return i("div",{key:"ebded73697ab12ae23d267ea30437129b10efffa",class:"fk-tabs"},i("div",{key:"b027f709c510a5ba1f2b38fdd20b7b131cf5888c",class:"fk-tabs__nav",role:"tablist"},this.tabLabels.map(((t,s)=>i("button",{key:`${s}-${t}`,type:"button",role:"tab","aria-selected":s===this.active?"true":"false",tabIndex:s===this.active?0:-1,class:{"fk-tabs__tab":!0,"fk-tabs__tab--active":s===this.active},onKeyDown:t=>{const a=this.tabLabels.length;!a||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||(t.preventDefault(),this.goToTab((s+("ArrowRight"===t.key?1:-1)+a)%a),requestAnimationFrame((()=>{var t;null===(t=this.host.querySelector(".fk-tabs__tab--active"))||void 0===t||t.focus()})))},onClick:t=>{t.preventDefault(),this.goToTab(s)}},t)))),i("div",{key:"ec7ed61a3f1f126268e2f1e0dfacfdb85dc542cd",class:"fk-tabs__body"},i("slot",{key:"4e86782cfe37f893992787265fdc764367672f67"})))}get host(){return this}static get watchers(){return{tabLabels:[{clampActive:0}]}}static get style(){return".sc-fk-tabs-h{display:block}.fk-tabs.sc-fk-tabs{display:flex;flex-direction:column;gap:var(--fk-spacing)}.fk-tabs__nav.sc-fk-tabs{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--fk-color-border)}.fk-tabs__tab.sc-fk-tabs{font:inherit;font-size:0.85rem;font-weight:500;padding:calc(var(--fk-spacing) / 1.5) var(--fk-spacing);min-height:24px;border:none;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--fk-color-muted);text-transform:none;letter-spacing:normal;cursor:pointer}.fk-tabs__tab.sc-fk-tabs:hover{color:var(--fk-color-text)}.fk-tabs__tab--active.sc-fk-tabs{color:var(--fk-color-primary);border-bottom-color:var(--fk-color-primary);font-weight:600}"}},[262,"fk-tabs",{tabLabels:[16],editable:[4],spec:[16],dataMap:[16],locale:[1],active:[32]},void 0,{tabLabels:[{clampActive:0}]}]);function c(){"undefined"!=typeof customElements&&["fk-tabs"].forEach((s=>{"fk-tabs"===s&&(customElements.get(t(s))||customElements.define(t(s),n))}))}c();export{n as F,c as d}
1
+ import{t,p as s,H as a,c as e,h as i}from"./p-8ICOcloT.js";import{o,v as r}from"./p-CV5yMN-W.js";const c=s(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.stepTouch=e(this,"stepTouch"),this.tabLabels=[],this.editable=!1,this.active=0}clampActive(){this.active>Math.max(this.tabLabels.length-1,0)&&(this.active=0)}componentDidRender(){const t=this.host.querySelector(".fk-tabs__body");t&&Array.from(t.children).forEach(((t,s)=>{const a=t;this.editable?a.style.removeProperty("display"):a.style.display=s===this.active?"":"none"}))}validateTabs(){var t,s;return!0===(null===(s=null===(t=this.spec)||void 0===t?void 0:t.configs)||void 0===s?void 0:s.validateTabs)}tabSpec(t){var s,a,e;const i=null===(a=null===(s=this.spec)||void 0===s?void 0:s.children)||void 0===a?void 0:a[t];if(i&&this.spec)return(null===(e=this.tabCache)||void 0===e?void 0:e.source)!==this.spec&&(this.tabCache={source:this.spec,specs:[]}),this.tabCache.specs[t]||(this.tabCache.specs[t]={type:"panel",id:"tab",name:"Tab",configs:{key:`tab_${t}`},children:[i]}),this.tabCache.specs[t]}tabKeys(t){var s,a,e;const i=null===(a=null===(s=this.spec)||void 0===s?void 0:s.children)||void 0===a?void 0:a[t];if(!i)return[];const r=[];for(const t of o(i))(null===(e=t.configs)||void 0===e?void 0:e.key)&&r.push(t.configs.key);return r}tabValid(t){var s;const a=this.tabSpec(t);if(!a)return!0;const e=Object.fromEntries(Object.entries(null!==(s=this.dataMap)&&void 0!==s?s:{}).filter((([,t])=>""!==t&&null!=t)));return r(a,e,this.locale).valid}goToTab(t){t!==this.active&&(this.editable||!this.validateTabs()||this.tabValid(this.active)?this.active=t:this.stepTouch.emit({keys:this.tabKeys(this.active)}))}render(){return i("div",{key:"6d83e21a9a681364e60ac72d91694794776923b2",class:"fk-tabs"},i("div",{key:"eeb1788ff839d99e24dae420c27c27b0d1450cc4",class:"fk-tabs__nav",role:"tablist"},this.tabLabels.map(((t,s)=>i("button",{key:`${s}-${t}`,type:"button",role:"tab","aria-selected":s===this.active?"true":"false",tabIndex:s===this.active?0:-1,class:{"fk-tabs__tab":!0,"fk-tabs__tab--active":s===this.active},onKeyDown:t=>{const a=this.tabLabels.length;!a||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||(t.preventDefault(),this.goToTab((s+("ArrowRight"===t.key?1:-1)+a)%a),requestAnimationFrame((()=>{var t;null===(t=this.host.querySelector(".fk-tabs__tab--active"))||void 0===t||t.focus()})))},onClick:t=>{t.preventDefault(),this.goToTab(s)}},t)))),i("div",{key:"8f3c9fc7f058181ee51a95be9f12c884e89fc9cd",class:"fk-tabs__body"},i("slot",{key:"6ab2524291fd6da41d845bc9374d7706ebc92871"})))}get host(){return this}static get watchers(){return{tabLabels:[{clampActive:0}]}}static get style(){return".sc-fk-tabs-h{display:block}.fk-tabs.sc-fk-tabs{display:flex;flex-direction:column;gap:var(--fk-spacing)}.fk-tabs__nav.sc-fk-tabs{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--fk-color-border)}.fk-tabs__tab.sc-fk-tabs{font:inherit;font-size:0.85rem;font-weight:500;padding:calc(var(--fk-spacing) / 1.5) var(--fk-spacing);min-height:24px;border:none;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--fk-color-muted);text-transform:none;letter-spacing:normal;cursor:pointer}.fk-tabs__tab.sc-fk-tabs:hover{color:var(--fk-color-text)}.fk-tabs__tab--active.sc-fk-tabs{color:var(--fk-color-primary);border-bottom-color:var(--fk-color-primary);font-weight:600}"}},[262,"fk-tabs",{tabLabels:[16],editable:[4],spec:[16],dataMap:[16],locale:[1],active:[32]},void 0,{tabLabels:[{clampActive:0}]}]);function n(){"undefined"!=typeof customElements&&["fk-tabs"].forEach((s=>{"fk-tabs"===s&&(customElements.get(t(s))||customElements.define(t(s),c))}))}n();export{c as F,n as d}