{"_id":"@canterbury-air-patrol/leaflet-dialog","_rev":"2-748b6525169da152de98230f796b59c3","name":"@canterbury-air-patrol/leaflet-dialog","dist-tags":{"latest":"1.2.1"},"versions":{"1.1.1":{"name":"@canterbury-air-patrol/leaflet-dialog","version":"1.1.1","keywords":["javascript","leaflet","dialog","ui","popup","modal","window"],"author":{"name":"Scott Parlane"},"_id":"@canterbury-air-patrol/leaflet-dialog@1.1.1","maintainers":[{"name":"sparlane","email":"sparlane@gmail.com"}],"homepage":"https://github.com/canterbury-air-patrol/Leaflet.Dialog#readme","bugs":{"url":"https://github.com/canterbury-air-patrol/Leaflet.Dialog/issues"},"dist":{"shasum":"d43b19edf9a2e602ce6525f045849f27f0c8fd83","tarball":"https://registry.npmjs.org/@canterbury-air-patrol/leaflet-dialog/-/leaflet-dialog-1.1.1.tgz","fileCount":7,"integrity":"sha512-DUS5YUM0WjD5txvYevrs6iHOqf+gyFaVdspUZJr8UJPg/TH5Ycc5Y4v5Qn4CH2XWq5dyS/3iJv6Q6EPPglQw2Q==","signatures":[{"sig":"MEQCICN7UpxCvcIO0/MTrKht8MbwLJPfhSm0hHATNxxfOtlAAiBy53X9EVPGNHN38XNKu0kNgO0SWljWNHLONFuzufjv+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilgZFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpw5Q//ZkJXWuVFWWvHxfDVzcZAgypLnI7pkuV5cygNgbqUOFr1gKuh\r\nyZvqu2Ou7ztPlaDnnFx4ReHrmi9qE9JKhGjpnviTLqVdVeVk6l5bg0YtVcSB\r\nYXqN3JhX8174bC2YKW2UIfB5Lgn4KBPwDsKzPdUTN8BSrBob/Y8FUDrpTMG1\r\nRSchcYP2Vn8DnQJ2xfcCREZDZu2hKubEY+0CEeVAEahkbNkqLEqXHLJyjcrY\r\n7yxDJ6r8H4xo710Ck53lIeRdECBV6QDasxHXES9S1jSc/L5Xa/DmiZZWRBOO\r\n5h7KWQgO71btKdzrpdG4kS0Ln4Q61BkpXeyX5Ox2d4hVb5Kn0aVfLng0rH9Z\r\nBEbyN9j7Qv4j5kEVbmVIQlzd33b7oP4ajn+DMUOyoizmwiVhCYcxaztO+RQg\r\nWOJ8cJaVFsYWP4q/AgTgpmkzLvuraJnygxl69XOhuvFWfTb+76Q4a5FR7zPz\r\nc+Da/KAqo1SUgw3Qc8sPKA53LMc4RI802cOpBmnUbZdO72bKcGkHN4bR+oWV\r\nftaqMCWKFwttEoFswnulVwgpY95lsXxbLV1GLh7iR86g7JeS4VJVsg6JHpei\r\nY9b0hjCeVQf05py++AKUr5JIglPzfHqjU4BTTAGc/tqcDiT/0dZS7D3gYVBP\r\nYfoa5mxEqThvGiJjmOzFsfolVO1TJFk1nBQ=\r\n=lT94\r\n-----END PGP SIGNATURE-----\r\n"},"main":"Leaflet.Dialog.js","gitHead":"a5ef8320dc5507f6d3b61b5b4f1797bf2239a812","_npmUser":{"name":"sparlane","email":"sparlane@gmail.com"},"repository":{"url":"git+https://github.com/canterbury-air-patrol/Leaflet.Dialog.git","type":"git"},"_npmVersion":"8.5.5","description":"Resizable, movable dialog window for Leaflet","directories":{},"_nodeVersion":"18.2.0","dependencies":{"@fortawesome/fontawesome-free":"~6.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jshint":"~2.13.0","leaflet":"~1.8.0"},"_npmOperationalInternal":{"tmp":"tmp/leaflet-dialog_1.1.1_1653999173759_0.0068466395649131595","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@canterbury-air-patrol/leaflet-dialog","version":"1.1.2","keywords":["javascript","leaflet","dialog","ui","popup","modal","window"],"author":{"name":"Scott Parlane"},"_id":"@canterbury-air-patrol/leaflet-dialog@1.1.2","maintainers":[{"name":"sparlane","email":"sparlane@gmail.com"}],"homepage":"https://github.com/canterbury-air-patrol/Leaflet.Dialog#readme","bugs":{"url":"https://github.com/canterbury-air-patrol/Leaflet.Dialog/issues"},"dist":{"shasum":"89809690ef0ecd99475b6b8f76777f74057ded32","tarball":"https://registry.npmjs.org/@canterbury-air-patrol/leaflet-dialog/-/leaflet-dialog-1.1.2.tgz","fileCount":9,"integrity":"sha512-YF6vzePbu7EG2pX2BvCJFiqZUOSzeACuene7+4Q6ysdhic49gX9D/IJQ4wenFz/IaL1EcLT2PZ4i5y7TssBfNg==","signatures":[{"sig":"MEUCIHzThf3VgDvHcUyuc/8JOcLF4OzahnqQ3KzBxa8d0rQOAiEA/pR44w/J4GZPEkB6WMh1OrXnWl0T/1rYE+JqiR8jH00=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0dwVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpl4Q/9GXa0ItD/anAx+qC3TkieUhRl9MSgft7faCCmyVnGR7DbbVZ/\r\nhqs7hqp2x7ni6O2MIc3jwo/lgs3ayx4eRShfBNWE1ljXnr4a4cF7plzRzJw3\r\nJ3j3dYD46aswXzGF+2BIZd5ZdtqJ9aCm3uiB+qH/2zxPTBkh+X3UvXV56WAq\r\nbjH7GM+0OlU9VzwUn01BghUyOVzvSLnD1ePzfHJ1bXR1bQIXkz5cY4/hpPOH\r\nPw9Y4nsGwFm8OtIwa5xXuO1U359E0bOTilXImB1JlJMfwLMfEr6pYg1SXWfm\r\nizGut9DyEhOKSsCsz+biszhcnNnKtO8tyIcpi5vS90nF/MFHeYKOB1piqRrz\r\n3av6OuXDtEmRS0SqFb459ioRzeRBqxGuZrr/j8/HCV/MOqYGgpNK7sa5CVYA\r\nechkU5fWg5Kzr4EzEht4VcWMQFnl4/Ha480aEOwvOAe9Xj75j1xPRf/2YrUQ\r\n+/ZIgf6/QUDdLq3V7fH8mWLpdEHy3/QHYUmS95TNm3sRLPQxQozDJDxj/yMb\r\nfWy+JK50MnKEFZdMOXqTx4mcM5swlr0VuslyA4PCpGDwRojbuCILOUgOMk9y\r\nfcwT3RbDegWByMZBup7/dP5nJLhLKM3F1hSf8zdQNVtLyXU5kH7Np9b+C+U1\r\nlopq5L3yLcR7J7nq2FxyVmBmNsroU4svzXI=\r\n=y7YA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"Leaflet.Dialog.js","gitHead":"9ee986ccb4fd348450cc0ccc552b8d8244c61695","scripts":{"build":"esbuild Leaflet.Dialog.js --outdir=out/ --minify","check":"eslint ."},"_npmUser":{"name":"sparlane","email":"sparlane@gmail.com"},"repository":{"url":"git+https://github.com/canterbury-air-patrol/Leaflet.Dialog.git","type":"git"},"_npmVersion":"8.13.2","description":"Resizable, movable dialog window for Leaflet","directories":{},"_nodeVersion":"18.5.0","dependencies":{"esbuild":"^0.14.49","@fortawesome/fontawesome-free":"~6.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.19.0","jshint":"~2.13.0","leaflet":"~1.8.0","eslint-plugin-n":"^15.2.4","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.0.0","eslint-config-standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/leaflet-dialog_1.1.2_1657920533331_0.4165095637529965","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@canterbury-air-patrol/leaflet-dialog","version":"1.2.1","description":"Resizable, movable dialog window for Leaflet","devDependencies":{"@eslint/js":"^9.13.0","esbuild":"^0.25.0","eslint":"^9.13.0","eslint-plugin-react":"^7.37.1","globals":"^15.11.0","http-server":"^14.1.1","leaflet":"~1.9.2","prettier":"^3.3.3"},"dependencies":{"@fortawesome/fontawesome-free":"~6.7.1","jquery":"^3.6.1"},"main":"Leaflet.Dialog.js","scripts":{"check":"eslint *.js && prettier -c *.js","build":"esbuild dialog.js --outdir=out/ --loader:.woff2=file --loader:.ttf=file --bundle --minify","start":"http-server -a localhost -p 8000"},"repository":{"type":"git","url":"git+https://github.com/canterbury-air-patrol/Leaflet.Dialog.git"},"keywords":["javascript","leaflet","dialog","ui","popup","modal","window"],"author":{"name":"Scott Parlane"},"_id":"@canterbury-air-patrol/leaflet-dialog@1.2.1","gitHead":"bfc3ef6ca8b71f8adb21ad2ec84129dc627cd061","bugs":{"url":"https://github.com/canterbury-air-patrol/Leaflet.Dialog/issues"},"homepage":"https://github.com/canterbury-air-patrol/Leaflet.Dialog#readme","_nodeVersion":"23.7.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-+pC7sP31SfvToWgXnpttZabAb18saDeBZKq1qqdzdhC9z46CQJaGTvcFoxjkAo7iC16aIxg0h1zaXKyn/rd3DA==","shasum":"e46aabf4cc8e4b6aea386de875cfd25834a8b1a8","tarball":"https://registry.npmjs.org/@canterbury-air-patrol/leaflet-dialog/-/leaflet-dialog-1.2.1.tgz","fileCount":17,"unpackedSize":2229637,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDjC+UAcEhAfGfsSZq42AvEEQ2Cdz0/b/WUE9K0uI50WQIhANLqPbbyS5g2ETIEISvB5BUqSV3g++GhjHZRqr4pwcp2"}]},"_npmUser":{"name":"sparlane","email":"sparlane@gmail.com"},"directories":{},"maintainers":[{"name":"sparlane","email":"sparlane@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/leaflet-dialog_1.2.1_1739613579884_0.09176349045298648"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-31T12:12:53.692Z","modified":"2025-02-15T09:59:40.346Z","1.1.1":"2022-05-31T12:12:53.939Z","1.1.2":"2022-07-15T21:28:53.490Z","1.2.1":"2025-02-15T09:59:40.167Z"},"bugs":{"url":"https://github.com/canterbury-air-patrol/Leaflet.Dialog/issues"},"author":{"name":"Scott Parlane"},"homepage":"https://github.com/canterbury-air-patrol/Leaflet.Dialog#readme","keywords":["javascript","leaflet","dialog","ui","popup","modal","window"],"repository":{"type":"git","url":"git+https://github.com/canterbury-air-patrol/Leaflet.Dialog.git"},"description":"Resizable, movable dialog window for Leaflet","maintainers":[{"name":"sparlane","email":"sparlane@gmail.com"}],"readme":"# Leaflet.Dialog\n\nA dialog modal window that is resizable and positionable on the map.\n\n[Check out the Demo Here](http://canterbury-air-patrol.github.io/Leaflet.Dialog/)\n\n## Installation:\n\n````shell\n# Bower:\nbower install Leaflet.Dialog\n````\n\n````shell\n# NPM:\nnpm install leaflet-dialog\n````\n\n## Adding a dialog box:\n\n````js\n// After you've set up your map and layers, add the modal window by running:\nvar dialog = L.control.dialog(options)\n              .setContent(\"<p>Hello! Welcome to your nice new dialog box!</p>\")\n              .addTo(map);\n````\n\n## Working with the dialog box:\n\n### Close the window:\n\n````js\ndialog.close();\n````\n\n### Open the window:\n\n````js\ndialog.open();\n````\n\n### Destroy the window:\n\n````js\ndialog.destroy();\n````\n\n### Reset the contents:\n\n````js\ndialog.setContent(\"<p>Here's some new content!</p>\");\n````\n\n## Options:\n\n| Property | Type | Default | Description\n| --- | --- | --- | ---\n| size | [Array][width, height] | [ 300, 300 ] | An array of the starting width and height values (in pixels).\n| minSize | [Array][width, height] | [ 100, 100 ] | An array with the minimum resize width and height (in pixels).\n| maxSize | [Array][width, height] | [ 350, 350 ] | An array with the maximum resize width and height (in pixels).\n| anchor | [Array][top, left] | [ 250, 250 ] | The starting point anchor location (from the upper left) in pixels.\n| position | [String] | 'topleft' | The leaflet control div to place the modal inside, as a starting reference point.\n| initOpen | [Boolean] | true | Whether or not to initialize in an open state.\n| title | [String] |null | Title bar HTML\n| iconClass | [Object] |`{grabber: \"fa fa-arrows\", close: \"fa fa-times\", resize: \"fa fa-arrows-h fa-rotate-45\", collapse: \"fa caret-down\", expand: \"fa caret-up\"}` | Classes to be used as icons for grabber, close, resize, expand/collapse\n\n## Methods:\n\n| Method | Returns | Example | Description\n| --- | --- | --- | ---\n| open() | this | dialog.open(); | Opens the dialog window.\n| close() | this | dialog.close(); | Closes the dialog window.\n| destroy() | this | dialog.destroy(); | Removes the dialog box from the window.\n| setLocation( [Array][top, left] anchor location ) | this | dialog.setLocation( [ 15, 15 ] ); | Move the dialog box to the specified pixel location ( Relative to the 'position' option )\n| setSize( [Array][width, height] size ) | this | dialog.setSize( [ 150, 150 ] ); | Resize the dialog window to the specified width and height.\n| lock() | this | dialog.lock(); | Hides all visible dialog window controls.\n| unlock() | this | dialog.unlock(); | Re-instates all dialog window controls.\n| freeze() | this | dialog.freeze(); | Hides all visible dialog window movement/sizing controls.\n| unfreeze() | this | dialog.unfreeze(); | Re-instates all dialog window movement/sizing controls.\n| hideClose() | this | dialog.hideClose(); | Hides the closing 'x'\n| showClose() | this | dialog.showClose(); | Shows the closing 'x'\n| hideResize() | this | dialog.hideResize(); | Hides the resizing symbol\n| showResize() | this | dialog.showResize(); | Shows the resizing symbol\n\n## Events:\n\n| Event | Data | Description\n| --- | --- | ---\n| dialog:opened | this | Fired when open() is called.\n| dialog:closed | this | Fired when close() is called or when the 'x' is clicked.\n| dialog:destroyed | this | Fired when destroy() is called.\n| dialog:locked | this | Fired when lock() is called.\n| dialog:unlocked | this | Fired when unlock() is called.\n| dialog:frozen | this | Fired when freeze() is called.\n| dialog:unfrozen | this | Fired when unfreeze() is called.\n| dialog:updated | this | Fired when contents are set or when added to the map.\n| dialog:resizestart | this | Fired when the resize button is clicked.\n| dialog:resizing | this | Fired continuously as the resize button is dragged.\n| dialog:resizeend | this | Fired when the resize button click is released.\n| dialog:movestart | this | Fired when the move button is clicked.\n| dialog:moving | this | Fired continuously as the move button is dragged.\n| dialog:moveend | this | Fired when the move button click is released.\n| dialog:closehidden | this | Fired when hideClose() is called.\n| dialog:closeshown | this | Fired when the showClose() is called.\n| dialog:resizehidden | this | Fired when hideResize() is called.\n| dialog:resizeshown | this | Fired when the showResize() is called.\n\n","readmeFilename":"README.md"}