@operato/popup 0.2.34 → 0.2.41

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.
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/@types/trusted-types/index.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit/index.d.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/lit/decorators.d.ts","../src/ox-popup.ts","../src/ox-popup-list.ts","../src/ox-popup-menu.ts","../src/ox-popup-menuitem.ts","../src/index.ts","../stories/index.stories.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/get-diffable-html.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff-plugin.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/index.d.ts","../../../node_modules/chai-a11y-axe/chai-a11y-axe-plugin.d.ts","../../../node_modules/chai-a11y-axe/src/accessible.d.ts","../../../node_modules/chai-a11y-axe/index.d.ts","../../../node_modules/@types/chai-dom/index.d.ts","../../../node_modules/@sinonjs/fake-timers/types/fake-timers-src.d.ts","../../../node_modules/@types/sinon/index.d.ts","../../../node_modules/@types/sinon-chai/index.d.ts","../../../node_modules/@open-wc/testing/register-chai-plugins.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/elementupdated.d.ts","../../../node_modules/lit-html/static.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/renderable.d.ts","../../../node_modules/@open-wc/dedupe-mixin/index.d.ts","../../../node_modules/@open-wc/scoped-elements/types/src/types.d.ts","../../../node_modules/@open-wc/scoped-elements/types/src/scopedelementsmixin.d.ts","../../../node_modules/@open-wc/scoped-elements/types/index.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixture-no-side-effect.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixturewrapper.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/helpers.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/scopedelementswrapper.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/litfixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/stringfixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/index.d.ts","../../../node_modules/@open-wc/testing/index.d.ts","../test/ox-popup-menu.test.ts","../test/ox-popup.test.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"6adbf5efd0e374ff5f427a4f26a5a413e9734eee5067a0e86da69aea41910b52","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","0c8a56610b08f55e29ffb466cd27626ad6dbe822312a398026e82270c63088e3","1e5743b25a63fd34ffbae89adcbf248ee17db6ed08d90079ffa93803c3e80d2a","7b33ee85f2e96a51c0e3bcee47b247a24515aff37a7d8b5dfe4e18b735d37440","2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38",{"version":"bb4248c7f953233ac52332088fac897d62b82be07244e551d87c5049600b6cf7","affectsGlobalScope":true},"70f04c91d3186b1b10157157887fab664968fc9b88377785a5ee42750c202c6d","06e20da1bc94df355f22ac7a9533c2488816ec4cb9134d9b160a263629a07072","c311ef8d8b159d0c268b415f78c1949498dc2d14455a9891c5b8ef84625b1e41","f07a77a7fb1d49aa2b61cb68bf712a083487acd7130d20223a83de03af0c257d","97c58f6db61d45712d91d2260994817ae2b568bbb37cc280013079b6b5d2232d","ac388c7c7a262213a3700451bc921e382a93fb27c0252c34ccf03540b4ce044b","9bdb35d0b28dcd5d8f0879bd29f0cf07b7eb48aa63be4dd44057e32fcfeb1c83","fb0107c83e2e0e75b77dacd0c3c6c3ab6844e98dce2a8f858c6f0a57c12136a6","84610cf09dee3cefc910555318f1ad7b45f1cba36905a86849324ca4fead2385","a25d1e52291791819032826af5c52987e16ffdb96e8bb69f7f1790f5ab080be6","d660961abada6b5030461f3322ef3a2e1d9fec74167574f8b590a7796cf90a72","707b4eae3d469b2f347d2083037151922f94c370a9456ebd5ac0a4fb7441c7e7","ef509d57201aa4e2e3e2b3d1fafd066a8ce68cd2caea737d539c3544f5a99a67","84c66a77a1302611ea5001dc88d10de1b5d87c6b2f30a48585495217421ce1ac","0baa1f2b0fa207545f02687e89ca89280982f2a92103fdde0468e32539f1b676","de17eb357b7e2f0138da67b8054647a16face812a41366949138fe5baef3235d","ddb0dbff2d26b42db0598966c3b05c64397f625305a2c02eceeadc90540e11e3","226047443fd66cdbcab702142557c6ab22458702b52f73c9ddc1e0ae39dae14c","43ec169fb4888e6ef41c55b5d6f37d54033a3bedf7b3314b5251a9ef886ed9d3","74fdb00025eb66240c558c5941c105d8bc2df5b8e79cbd95522b93f0765f48ef",{"version":"0c9d1fd5b43d5e88c277f7f53cffc87778190f2f9a1f57743559421f04fc730b","affectsGlobalScope":true},"8a659f7d82d932649a78f89643c5b436953424a219d705d49b8b3d9ccd6e35ff",{"version":"75cd6dce1c5f87511772c891de86d0c9e6829e6273dea9f92a5bec9d0479d1e7","affectsGlobalScope":true},{"version":"cd711db43a952f15464b571ac11b7a440332cd52342bc92c4bf908c70688f57f","affectsGlobalScope":true},"9d8709c916778cb34830708ed47b78e9a46d1fb2eb73a682b14eee990bed4aa6",{"version":"5d90911f942229eb9049feab241739a5ced76f137948f8f42a615e5f01d4e7ea","affectsGlobalScope":true},"999a90d30a3183dcee987d0a5a7c586aba5bacbf6ce087ba8635124082ccfeea","8a5878edd52f4a720560b4c6e6247e9ddc3df6118ad9cf2f9927903b03d5f440",{"version":"d95d76d79a0351572ec5b1a6cc1e5c4bce1be82eedeed7278d6f31ea1059fa69","affectsGlobalScope":true},"6b40029289530423f407a22755c85b81740f9acfd88d2b53564f8c1657c26660","50a5b297e6c91df4f6068d98467a5e7ba4eeb888b9376757734dd4b1dfcdacd4",{"version":"b644a9e5433c651fb751aeb6e06f24dfa5604950d948622dcd2980b782bb1f50","affectsGlobalScope":true},"65b91a3725399231d3469529b5e27b85bf2aa98013e607f308e5fe260b47eeff","a11181f6d68200e83ccb1fb48b262a7132a3257e0a230f41c9dc4c351964297a","fb2e6b33c4f8332c524dcf99f37fe5bfadccf9bc2f09fcd32eb802b4048bd6e4","d58f29ef032a92da0196fc9304889d8993e2503fb2713b8c1f97808a87d45f8b","88cda4269c54f0803834fd62b2fac61af8bff7a085693f7ca9df85c1f19dee8a",{"version":"aa087ee31af7d286efa149c9660a8fa1d0908cb72c980f129a30a6bd1063c696","affectsGlobalScope":true},"c7b2b6f36bb88832616cf257bc19b42096cfa94d76114b3fa9e57563fffddb49","fdf0aa1a72ff0188a9013926201a391116ef6701cd439b89850786abdf755fb8","5f3d348a3a6978dc5ff85ea97be65e41a21884d078bfdec5a588940639fd7fc5","abf9ea97b78a7b239186cf5b7ed59c4a593abac3c408c8c95fc5e604cfdfdb43","ae91c9161caf0af81c89e780a045fc5ea8382407e516342e409c5db9161d3b32","2c387828a523cc77a4300f5deb063651c9346c5a36ccfbfc127c38df8ab45b0c","e6a731551b57eb0f9fe5dde97ce2cf02f57d99cf7d7e06b916111c7a07c30abc","4a662115c4c7186cc027ef4a8163e48c7f1c57f05247f08d5acb2344fae2ca53","d598157512ae6e0d3aa6bb0dd261ae34845831dccf7bc7739695ee2589eb76f5","c523db72c97b64fb4afe53e79cd7a2b062bacc36b1d0b29c9686f71c05d4409c","d2173e08898108c0aaa6dbfed27725b4a71f5817153800c86f03fa06456a2fc7","6e3d4b09fff332f804c02afb2fe878e49d593cfb61628dceed482145853a8d5c","20e1391c91714828f5e9ede65dfe3e8445a9c147420a50a1ef3a351d1759b9db","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","5533392c50c51b1a5c32b89f13145db929c574ef1c5949cf67a074a05ea107d9","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"bd1a08e30569b0fb2f0b21035eb9b039871f68faa9b98accf847e9c878c5e0a9","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1cdb8f094b969dcc183745dc88404e2d8fcf2a858c6e7cc2441011476573238e",{"version":"5f186a758a616c107c70e8918db4630d063bd782f22e6e0b17573b125765b40b","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[140],[43,140],[50,140],[43,50,140],[41,42,140],[84,140],[43,82,83,140],[43,82,140],[66,67,140],[68,140],[67,69,140],[79,80,87,88,89,91,92,140],[81,85,140],[86,140],[82,140],[81,86,90,140],[49,140],[81,140],[66,78,93,140],[70,73,74,77,140],[66,140],[97,140],[100,140],[101,106,140],[102,112,113,120,129,139,140],[102,103,112,120,140],[104,140],[105,106,113,121,140],[106,129,136,140],[107,109,112,120,140],[108,140],[109,110,140],[111,112,140],[112,140],[112,113,114,129,139,140],[112,113,114,129,140],[115,120,129,139,140],[112,113,115,116,120,129,136,139,140],[115,117,129,136,139,140],[97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[112,118,140],[119,139,140],[109,112,120,129,140],[121,140],[122,140],[100,123,140],[124,138,140,144],[125,140],[126,140],[112,127,140],[127,128,140,142],[112,129,130,131,140],[129,131,140],[129,130,140],[132,140],[133,140],[112,134,135,140],[134,135,140],[106,120,136,140],[137,140],[120,138,140],[101,115,126,139,140],[106,140],[129,140,141],[140,142],[140,143],[101,106,112,114,123,129,139,140,142,144],[129,140,145],[66,76,140],[75,140],[44,140],[72,140],[71,140],[43,47,140],[47,140],[45,46,140],[51,52,53,54,55,56,57,58,140],[43,47,48,140],[40,60,61,62,63,140],[40,47,49,59,60,140],[40,49,59,62,140],[40,47,49,59,140],[40,49,60,140],[40,49,62,94,140],[40,49,60,94,140]],"referencedMap":[[41,1],[50,2],[51,3],[54,4],[52,4],[56,4],[58,4],[57,4],[55,4],[53,3],[42,1],[43,5],[82,1],[85,6],[84,7],[83,8],[68,9],[69,10],[67,1],[70,11],[93,12],[79,1],[86,13],[87,14],[88,1],[89,15],[91,16],[81,17],[90,18],[92,14],[94,19],[78,20],[75,1],[74,21],[66,1],[148,1],[97,22],[98,22],[100,23],[101,24],[102,25],[103,26],[104,27],[105,28],[106,29],[107,30],[108,31],[109,32],[110,32],[111,33],[112,34],[113,35],[114,36],[99,1],[146,1],[115,37],[116,38],[117,39],[147,40],[118,41],[119,42],[120,43],[121,44],[122,45],[123,46],[124,47],[125,48],[126,49],[127,50],[128,51],[129,52],[131,53],[130,54],[132,55],[133,56],[134,57],[135,58],[136,59],[137,60],[138,61],[139,62],[140,63],[141,64],[142,65],[143,66],[144,67],[145,68],[77,69],[76,70],[45,71],[44,1],[71,21],[73,72],[72,73],[48,74],[46,75],[47,76],[80,75],[59,77],[49,78],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[64,79],[61,80],[62,80],[63,81],[60,82],[65,83],[95,84],[96,85]],"exportedModulesMap":[[41,1],[50,2],[51,3],[54,4],[52,4],[56,4],[58,4],[57,4],[55,4],[53,3],[42,1],[43,5],[82,1],[85,6],[84,7],[83,8],[68,9],[69,10],[67,1],[70,11],[93,12],[79,1],[86,13],[87,14],[88,1],[89,15],[91,16],[81,17],[90,18],[92,14],[94,19],[78,20],[75,1],[74,21],[66,1],[148,1],[97,22],[98,22],[100,23],[101,24],[102,25],[103,26],[104,27],[105,28],[106,29],[107,30],[108,31],[109,32],[110,32],[111,33],[112,34],[113,35],[114,36],[99,1],[146,1],[115,37],[116,38],[117,39],[147,40],[118,41],[119,42],[120,43],[121,44],[122,45],[123,46],[124,47],[125,48],[126,49],[127,50],[128,51],[129,52],[131,53],[130,54],[132,55],[133,56],[134,57],[135,58],[136,59],[137,60],[138,61],[139,62],[140,63],[141,64],[142,65],[143,66],[144,67],[145,68],[77,69],[76,70],[45,71],[44,1],[71,21],[73,72],[72,73],[48,74],[46,75],[47,76],[80,75],[59,77],[49,78],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[64,79],[61,80],[62,80],[63,81],[60,82],[65,83],[95,84],[96,85]],"semanticDiagnosticsPerFile":[41,50,51,54,52,56,58,57,55,53,42,43,82,85,84,83,68,69,67,70,93,79,86,87,88,89,91,81,90,92,94,78,75,74,66,148,97,98,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,99,146,115,116,117,147,118,119,120,121,122,123,124,125,126,127,128,129,131,130,132,133,134,135,136,137,138,139,140,141,142,143,144,145,77,76,45,44,71,73,72,48,46,47,80,59,49,40,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,38,34,35,36,37,1,39,64,61,62,63,60,65,95,96]},"version":"4.5.2"}
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/@types/trusted-types/index.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit/index.d.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/lit/decorators.d.ts","../../styles/dist/src/headroom-styles.d.ts","../../styles/dist/src/scrollbar-styles.d.ts","../../styles/dist/src/spinner-styles.d.ts","../../styles/dist/src/index.d.ts","../src/ox-popup.ts","../src/ox-popup-list.ts","../src/ox-popup-menu.ts","../src/ox-popup-menuitem.ts","../src/index.ts","../stories/index.stories.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/get-diffable-html.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff-plugin.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.d.ts","../../../node_modules/@open-wc/semantic-dom-diff/index.d.ts","../../../node_modules/chai-a11y-axe/chai-a11y-axe-plugin.d.ts","../../../node_modules/chai-a11y-axe/src/accessible.d.ts","../../../node_modules/chai-a11y-axe/index.d.ts","../../../node_modules/@types/chai-dom/index.d.ts","../../../node_modules/@sinonjs/fake-timers/types/fake-timers-src.d.ts","../../../node_modules/@types/sinon/index.d.ts","../../../node_modules/@types/sinon-chai/index.d.ts","../../../node_modules/@open-wc/testing/register-chai-plugins.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/elementupdated.d.ts","../../../node_modules/lit-html/static.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/renderable.d.ts","../../../node_modules/@open-wc/dedupe-mixin/index.d.ts","../../../node_modules/@open-wc/scoped-elements/types/src/types.d.ts","../../../node_modules/@open-wc/scoped-elements/types/src/scopedelementsmixin.d.ts","../../../node_modules/@open-wc/scoped-elements/types/index.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixture-no-side-effect.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/fixturewrapper.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/helpers.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/scopedelementswrapper.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/litfixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/src/stringfixture.d.ts","../../../node_modules/@open-wc/testing-helpers/types/index.d.ts","../../../node_modules/@open-wc/testing/index.d.ts","../test/ox-popup-menu.test.ts","../test/ox-popup.test.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"6adbf5efd0e374ff5f427a4f26a5a413e9734eee5067a0e86da69aea41910b52","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","0c8a56610b08f55e29ffb466cd27626ad6dbe822312a398026e82270c63088e3","1e5743b25a63fd34ffbae89adcbf248ee17db6ed08d90079ffa93803c3e80d2a","7b33ee85f2e96a51c0e3bcee47b247a24515aff37a7d8b5dfe4e18b735d37440","2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38",{"version":"bb4248c7f953233ac52332088fac897d62b82be07244e551d87c5049600b6cf7","affectsGlobalScope":true},"70f04c91d3186b1b10157157887fab664968fc9b88377785a5ee42750c202c6d","06e20da1bc94df355f22ac7a9533c2488816ec4cb9134d9b160a263629a07072","c311ef8d8b159d0c268b415f78c1949498dc2d14455a9891c5b8ef84625b1e41","f07a77a7fb1d49aa2b61cb68bf712a083487acd7130d20223a83de03af0c257d","97c58f6db61d45712d91d2260994817ae2b568bbb37cc280013079b6b5d2232d","ac388c7c7a262213a3700451bc921e382a93fb27c0252c34ccf03540b4ce044b","9bdb35d0b28dcd5d8f0879bd29f0cf07b7eb48aa63be4dd44057e32fcfeb1c83","fb0107c83e2e0e75b77dacd0c3c6c3ab6844e98dce2a8f858c6f0a57c12136a6","84610cf09dee3cefc910555318f1ad7b45f1cba36905a86849324ca4fead2385","a25d1e52291791819032826af5c52987e16ffdb96e8bb69f7f1790f5ab080be6","d660961abada6b5030461f3322ef3a2e1d9fec74167574f8b590a7796cf90a72","707b4eae3d469b2f347d2083037151922f94c370a9456ebd5ac0a4fb7441c7e7","ef509d57201aa4e2e3e2b3d1fafd066a8ce68cd2caea737d539c3544f5a99a67","84c66a77a1302611ea5001dc88d10de1b5d87c6b2f30a48585495217421ce1ac","cf93fb9208a01c80f0fad245c4360356e5de6c2384b7641acf0b9cc2f5c42448","336398b0efaf964124e636a9b29c4edd5870aee79ac64bf87be58a9d66b7c048","571bc65ec37ba124e762bb822e14a2b8502dc684e356be8feaccbd6b9cadd023","0766fae8dbc740ce8a4731666a1537594d7763f71f46bbfef67ed9d7a34cb0cc","6539106bc2a8dfe4adc01a6768e80f43e1b1dbe7e660e1a9a7361cb73dd91569",{"version":"6a3a2f10a7108e7a58204b55a45e5b09e520372b369cf8469cae10a62b0bf238","signature":"0d9e52280b929cfa5c83241de4d5a7f0379cc3b12f51814b82985e231957427a"},{"version":"20c2bf0e7918884d273da02da7f1b8a1471730e196f08af53869dcbb1435a150","signature":"4d0f230bcbc4cb046b8be5218b81e099c0879cd65f2ad8f1416b685036ee54d1"},{"version":"b5ebb43543ad21b9c86573ce682e6b7bc97dc4c70fccf76a750ade347849e36f","signature":"10cbee260a09cb62cc5516ea65aa7504f21ec98048a324e789d04d40d9057513"},{"version":"43ec169fb4888e6ef41c55b5d6f37d54033a3bedf7b3314b5251a9ef886ed9d3","signature":"77b0b20b0aeafc78f8af2d66bf16a53b91312d6426f5413a574b978cc6edff34"},"74fdb00025eb66240c558c5941c105d8bc2df5b8e79cbd95522b93f0765f48ef",{"version":"0c9d1fd5b43d5e88c277f7f53cffc87778190f2f9a1f57743559421f04fc730b","affectsGlobalScope":true},"8a659f7d82d932649a78f89643c5b436953424a219d705d49b8b3d9ccd6e35ff",{"version":"75cd6dce1c5f87511772c891de86d0c9e6829e6273dea9f92a5bec9d0479d1e7","affectsGlobalScope":true},{"version":"cd711db43a952f15464b571ac11b7a440332cd52342bc92c4bf908c70688f57f","affectsGlobalScope":true},"9d8709c916778cb34830708ed47b78e9a46d1fb2eb73a682b14eee990bed4aa6",{"version":"5d90911f942229eb9049feab241739a5ced76f137948f8f42a615e5f01d4e7ea","affectsGlobalScope":true},"999a90d30a3183dcee987d0a5a7c586aba5bacbf6ce087ba8635124082ccfeea","8a5878edd52f4a720560b4c6e6247e9ddc3df6118ad9cf2f9927903b03d5f440",{"version":"d95d76d79a0351572ec5b1a6cc1e5c4bce1be82eedeed7278d6f31ea1059fa69","affectsGlobalScope":true},"6b40029289530423f407a22755c85b81740f9acfd88d2b53564f8c1657c26660","50a5b297e6c91df4f6068d98467a5e7ba4eeb888b9376757734dd4b1dfcdacd4",{"version":"b644a9e5433c651fb751aeb6e06f24dfa5604950d948622dcd2980b782bb1f50","affectsGlobalScope":true},"65b91a3725399231d3469529b5e27b85bf2aa98013e607f308e5fe260b47eeff","a11181f6d68200e83ccb1fb48b262a7132a3257e0a230f41c9dc4c351964297a","fb2e6b33c4f8332c524dcf99f37fe5bfadccf9bc2f09fcd32eb802b4048bd6e4","d58f29ef032a92da0196fc9304889d8993e2503fb2713b8c1f97808a87d45f8b","88cda4269c54f0803834fd62b2fac61af8bff7a085693f7ca9df85c1f19dee8a",{"version":"aa087ee31af7d286efa149c9660a8fa1d0908cb72c980f129a30a6bd1063c696","affectsGlobalScope":true},"c7b2b6f36bb88832616cf257bc19b42096cfa94d76114b3fa9e57563fffddb49","fdf0aa1a72ff0188a9013926201a391116ef6701cd439b89850786abdf755fb8","5f3d348a3a6978dc5ff85ea97be65e41a21884d078bfdec5a588940639fd7fc5","abf9ea97b78a7b239186cf5b7ed59c4a593abac3c408c8c95fc5e604cfdfdb43","ae91c9161caf0af81c89e780a045fc5ea8382407e516342e409c5db9161d3b32","2c387828a523cc77a4300f5deb063651c9346c5a36ccfbfc127c38df8ab45b0c","e6a731551b57eb0f9fe5dde97ce2cf02f57d99cf7d7e06b916111c7a07c30abc","4a662115c4c7186cc027ef4a8163e48c7f1c57f05247f08d5acb2344fae2ca53","d598157512ae6e0d3aa6bb0dd261ae34845831dccf7bc7739695ee2589eb76f5","c523db72c97b64fb4afe53e79cd7a2b062bacc36b1d0b29c9686f71c05d4409c","d2173e08898108c0aaa6dbfed27725b4a71f5817153800c86f03fa06456a2fc7",{"version":"f268daeff87b508bd43da89c012bb1d862aee56636ef038492472a0244222af8","signature":"34ec33ae0ee17809742c3c7964d3fbb3bab8fbbed832c956be08b5380f67cf00"},"10cd99c977ff2e11359dcba8d34aa88a4de8e8cfb7dd12576c7e33dfe71b93b4","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","5533392c50c51b1a5c32b89f13145db929c574ef1c5949cf67a074a05ea107d9","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"bd1a08e30569b0fb2f0b21035eb9b039871f68faa9b98accf847e9c878c5e0a9","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a7971f9fb2a32ec7788ec6cda9d7a33c02023dfe9a62db2030ad1359649d8050","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1cdb8f094b969dcc183745dc88404e2d8fcf2a858c6e7cc2441011476573238e",{"version":"5f186a758a616c107c70e8918db4630d063bd782f22e6e0b17573b125765b40b","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[144],[43,144],[50,144],[43,50,144],[41,42,144],[88,144],[43,86,87,144],[43,86,144],[70,71,144],[72,144],[71,73,144],[83,84,91,92,93,95,96,144],[85,89,144],[90,144],[86,144],[85,90,94,144],[49,144],[85,144],[70,82,97,144],[74,77,78,81,144],[70,144],[101,144],[104,144],[105,110,144],[106,116,117,124,133,143,144],[106,107,116,124,144],[108,144],[109,110,117,125,144],[110,133,140,144],[111,113,116,124,144],[112,144],[113,114,144],[115,116,144],[116,144],[116,117,118,133,143,144],[116,117,118,133,144],[119,124,133,143,144],[116,117,119,120,124,133,140,143,144],[119,121,133,140,143,144],[101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150],[116,122,144],[123,143,144],[113,116,124,133,144],[125,144],[126,144],[104,127,144],[128,142,144,148],[129,144],[130,144],[116,131,144],[131,132,144,146],[116,133,134,135,144],[133,135,144],[133,134,144],[136,144],[137,144],[116,138,139,144],[138,139,144],[110,124,140,144],[141,144],[124,142,144],[105,119,130,143,144],[110,144],[133,144,145],[144,146],[144,147],[105,110,116,118,127,133,143,144,146,148],[133,144,149],[70,80,144],[79,144],[44,144],[76,144],[75,144],[43,47,144],[47,144],[45,46,144],[51,52,53,54,55,56,57,58,144],[43,47,48,144],[40,64,65,66,67,144],[40,47,49,59,64,144],[40,49,59,66,144],[40,47,49,59,63,144],[40,49,64,144],[40,49,66,98,144],[40,49,64,98,144],[60,61,62,144],[64,65,66,67],[47,49,64],[47,49,66],[66]],"referencedMap":[[41,1],[50,2],[51,3],[54,4],[52,4],[56,4],[58,4],[57,4],[55,4],[53,3],[42,1],[43,5],[86,1],[89,6],[88,7],[87,8],[72,9],[73,10],[71,1],[74,11],[97,12],[83,1],[90,13],[91,14],[92,1],[93,15],[95,16],[85,17],[94,18],[96,14],[98,19],[82,20],[79,1],[78,21],[70,1],[152,1],[101,22],[102,22],[104,23],[105,24],[106,25],[107,26],[108,27],[109,28],[110,29],[111,30],[112,31],[113,32],[114,32],[115,33],[116,34],[117,35],[118,36],[103,1],[150,1],[119,37],[120,38],[121,39],[151,40],[122,41],[123,42],[124,43],[125,44],[126,45],[127,46],[128,47],[129,48],[130,49],[131,50],[132,51],[133,52],[135,53],[134,54],[136,55],[137,56],[138,57],[139,58],[140,59],[141,60],[142,61],[143,62],[144,63],[145,64],[146,65],[147,66],[148,67],[149,68],[81,69],[80,70],[45,71],[44,1],[75,21],[77,72],[76,73],[48,74],[46,75],[47,76],[84,75],[59,77],[49,78],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[68,79],[65,80],[66,80],[67,81],[64,82],[69,83],[99,84],[100,85],[60,17],[63,86],[61,17],[62,17]],"exportedModulesMap":[[41,1],[50,2],[51,3],[54,4],[52,4],[56,4],[58,4],[57,4],[55,4],[53,3],[42,1],[43,5],[86,1],[89,6],[88,7],[87,8],[72,9],[73,10],[71,1],[74,11],[97,12],[83,1],[90,13],[91,14],[92,1],[93,15],[95,16],[85,17],[94,18],[96,14],[98,19],[82,20],[79,1],[78,21],[70,1],[152,1],[101,22],[102,22],[104,23],[105,24],[106,25],[107,26],[108,27],[109,28],[110,29],[111,30],[112,31],[113,32],[114,32],[115,33],[116,34],[117,35],[118,36],[103,1],[150,1],[119,37],[120,38],[121,39],[151,40],[122,41],[123,42],[124,43],[125,44],[126,45],[127,46],[128,47],[129,48],[130,49],[131,50],[132,51],[133,52],[135,53],[134,54],[136,55],[137,56],[138,57],[139,58],[140,59],[141,60],[142,61],[143,62],[144,63],[145,64],[146,65],[147,66],[148,67],[149,68],[81,69],[80,70],[45,71],[44,1],[75,21],[77,72],[76,73],[48,74],[46,75],[47,76],[84,75],[59,77],[49,78],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[68,87],[65,88],[66,88],[67,89],[64,82],[69,83],[99,90],[100,85],[60,17],[63,86],[61,17],[62,17]],"semanticDiagnosticsPerFile":[41,50,51,54,52,56,58,57,55,53,42,43,86,89,88,87,72,73,71,74,97,83,90,91,92,93,95,85,94,96,98,82,79,78,70,152,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,103,150,119,120,121,151,122,123,124,125,126,127,128,129,130,131,132,133,135,134,136,137,138,139,140,141,142,143,144,145,146,147,148,149,81,80,45,44,75,77,76,48,46,47,84,59,49,40,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,38,34,35,36,37,1,39,68,65,66,67,64,69,99,100,60,63,61,62]},"version":"4.5.2"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent popup following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "heartyoh",
6
- "version": "0.2.34",
6
+ "version": "0.2.41",
7
7
  "main": "dist/src/index.js",
8
8
  "module": "dist/src/index.js",
9
9
  "exports": {
@@ -32,6 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@material/mwc-icon": "^0.25.3",
35
+ "@operato/styles": "^0.2.41",
35
36
  "lit": "^2.0.2"
36
37
  },
37
38
  "devDependencies": {
@@ -66,5 +67,5 @@
66
67
  "prettier --write"
67
68
  ]
68
69
  },
69
- "gitHead": "4c796ad43d29f6881657831d1344e50a7a67ba06"
70
+ "gitHead": "d7b5c5deef5ea6df80ee57070151a22296c424cc"
70
71
  }
@@ -1,24 +1,30 @@
1
- import { PropertyValues, css, html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
-
4
- import { Popup } from './ox-popup'
1
+ import { css, html, PropertyValues } from 'lit'
5
2
  import { render } from 'lit-html'
3
+ import { customElement, property, state } from 'lit/decorators.js'
4
+
5
+ import { OxPopup } from './ox-popup'
6
+
7
+ function guaranteeFocus(element: HTMLElement) {
8
+ // 1. 옵션 엘리먼트의 하위 첫번째 focusible 엘리먼트에 focus 기회를 준다.
9
+ const focusible = element.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')
6
10
 
7
- function focusClosest(element: HTMLElement) {
8
- /* Find the closest focusable element. */
11
+ if (focusible) {
12
+ ;(focusible as HTMLElement).focus()
13
+ return
14
+ }
15
+
16
+ // 2. 자신을 포함해서 가장 가까운 부모에게 focus 기회를 준다.
9
17
  const closest = element.closest(
10
18
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
11
19
  ) as HTMLElement
12
20
 
13
21
  closest?.focus()
14
-
15
- return closest
16
22
  }
17
23
 
18
24
  @customElement('ox-popup-list')
19
- export class PopupList extends Popup {
25
+ export class OxPopupList extends OxPopup {
20
26
  static styles = [
21
- ...Popup.styles,
27
+ ...OxPopup.styles,
22
28
  css`
23
29
  :host {
24
30
  display: none;
@@ -27,8 +33,7 @@ export class PopupList extends Popup {
27
33
  background-color: var(--theme-white-color, #fff);
28
34
  z-index: 100;
29
35
  box-shadow: 2px 3px 10px 5px rgba(0, 0, 0, 0.15);
30
- padding: 5px;
31
-
36
+ padding: 4px 0;
32
37
  color: var(--theme-primary-text-color, #3c3938);
33
38
  font: normal 14px 'Roboto', sans-serif;
34
39
  }
@@ -41,22 +46,29 @@ export class PopupList extends Popup {
41
46
  outline: none;
42
47
  }
43
48
 
49
+ ::slotted([option]) {
50
+ white-space: nowrap;
51
+ border-left: 3px solid transparent;
52
+ }
53
+
44
54
  ::slotted(*) {
45
- margin: 1px 0;
46
- padding: 4px 2px 3px 2px;
55
+ padding: 5px 10px;
56
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
57
+ cursor: pointer;
47
58
  }
48
59
 
49
60
  ::slotted(*:focus) {
50
61
  outline: none;
51
62
  }
52
63
 
53
- ::slotted([option]) {
54
- border-radius: 5px;
64
+ ::slotted([option][active]),
65
+ ::slotted([option]:hover) {
66
+ background-color: #f6f6f6;
55
67
  }
56
68
 
57
- ::slotted([option][active]) {
58
- background-color: rgba(20, 154, 155, 0.1);
59
- cursor: pointer;
69
+ ::slotted([option][selected]) {
70
+ border-left: 3px solid var(--primary-color, #38a25b);
71
+ font-weight: bold;
60
72
  }
61
73
 
62
74
  ::slotted([separator]) {
@@ -71,13 +83,23 @@ export class PopupList extends Popup {
71
83
  `
72
84
  ]
73
85
 
74
- @property({ type: Number }) activeIndex: number = 0
86
+ @property({ type: Boolean }) multiple: boolean = false
87
+ @property({ type: String, attribute: 'attr-selected' }) attrSelected?: string
88
+
89
+ @state() activeIndex?: number
75
90
 
76
91
  render() {
77
- return html` <slot> </slot> `
92
+ return html`
93
+ <slot
94
+ @change=${(e: Event) => {
95
+ e.stopPropagation()
96
+ }}
97
+ >
98
+ </slot>
99
+ `
78
100
  }
79
101
 
80
- protected _onkeydown: (e: KeyboardEvent) => void = function (this: PopupList, e: KeyboardEvent) {
102
+ protected _onkeydown: (e: KeyboardEvent) => void = function (this: OxPopupList, e: KeyboardEvent) {
81
103
  e.stopPropagation()
82
104
 
83
105
  switch (e.key) {
@@ -90,88 +112,125 @@ export class PopupList extends Popup {
90
112
  case 'ArrowLeft':
91
113
  case 'Up': // for IE/Edge
92
114
  case 'ArrowUp':
93
- this.activeIndex--
115
+ this.activeIndex!--
94
116
  break
95
117
 
96
118
  case 'Right': // for IE/Edge
97
119
  case 'ArrowRight':
98
120
  case 'Down': // for IE/Edge
99
121
  case 'ArrowDown':
100
- this.activeIndex++
122
+ this.activeIndex!++
101
123
  break
102
124
 
103
125
  case 'Enter':
104
- e.stopPropagation()
105
- var option = (e.target as HTMLElement)?.closest('[option]')
106
- if (option) {
107
- this.select(option)
108
- }
126
+ case ' ':
127
+ case 'Spacebar': // for old firefox
128
+ this.setActive(this.activeIndex!, true)
129
+ this.select()
109
130
  break
110
131
  }
111
132
  }.bind(this)
112
133
 
113
- protected _onfocusout: (e: FocusEvent) => void = function (this: PopupList, e: FocusEvent) {
114
- const target = e.target as HTMLElement
134
+ protected _onfocusout: (e: FocusEvent) => void = function (this: OxPopupList, e: FocusEvent) {
115
135
  const to = e.relatedTarget as HTMLElement
116
- const from = target.closest('ox-popup-list')
117
136
 
118
- if (!to && from !== this) {
119
- e.stopPropagation()
120
-
121
- /* "하위의 ox-popup-list 엘리먼트가 포커스를 잃었지만, 그 포커스를 받은 엘리먼트가 없다."는 의미는 그 서브메뉴가 클로즈된 것을 의미한다. */
122
- this.setActive(this.activeIndex)
123
- } else {
124
- if (!this.contains(to)) {
125
- /* 분명히 내 범위가 아닌 엘리먼트로 포커스가 옮겨졌다면, ox-popup-list는 닫혀야 한다. */
126
- // @ts-ignore for debug
127
- !window.POPUP_DEBUG && this.close()
128
- }
137
+ if (!this.contains(to)) {
138
+ /* 분명히 내 범위가 아닌 엘리먼트로 포커스가 옮겨졌다면, ox-popup-list는 닫혀야 한다. */
139
+ // @ts-ignore for debug
140
+ !window.POPUP_DEBUG && this.close()
129
141
  }
130
142
  }.bind(this)
131
143
 
132
- protected _onclick: (e: MouseEvent) => void = function (this: PopupList, e: MouseEvent) {
144
+ protected _onclick: (e: MouseEvent) => void = function (this: OxPopupList, e: MouseEvent) {
133
145
  e.stopPropagation()
134
146
 
135
147
  const option = (e.target as HTMLElement)?.closest('[option]')
136
148
  if (option) {
137
- this.setActive(option)
138
- this.select(option)
149
+ this.setActive(option, true)
150
+ this.select()
139
151
  }
140
152
  }.bind(this)
141
153
 
142
154
  updated(changes: PropertyValues<this>) {
143
155
  if (changes.has('activeIndex')) {
144
- this.setActive(this.activeIndex)
156
+ this.activeIndex !== undefined && this.setActive(this.activeIndex)
145
157
  }
146
158
  }
147
159
 
148
- select(option: Element) {
149
- option.dispatchEvent(new CustomEvent('selected', { bubbles: true, composed: true, detail: this }))
160
+ async select() {
161
+ await this.updateComplete
150
162
 
151
- if (!option.hasAttribute('alive-on-select') && !this.hasAttribute('alive-on-select')) {
163
+ const options = Array.from(this.querySelectorAll(':scope > [option]'))
164
+
165
+ const selected = options
166
+ .filter(option => option.hasAttribute('value') && option.hasAttribute(this.attrSelected || 'selected'))
167
+ .map(option => option.getAttribute('value'))
168
+
169
+ this.dispatchEvent(
170
+ new CustomEvent('select', {
171
+ bubbles: true,
172
+ composed: true,
173
+ detail: this.multiple ? selected : selected[0]
174
+ })
175
+ )
176
+
177
+ const option = options[this.activeIndex!]
178
+ if (!option.hasAttribute('alive-on-select') && !this.hasAttribute('multiple')) {
152
179
  this.close()
153
180
  }
154
181
  }
155
182
 
156
- setActive(active: number | Element | null) {
157
- const options = Array.from(this.querySelectorAll(':scope > [option]'))
183
+ setActive(active: number | Element | null, withSelect?: boolean) {
184
+ const options = Array.from(this.querySelectorAll('[option]'))
158
185
 
159
- options.map(async (option, index) => {
186
+ if (active instanceof Element) {
187
+ const index = options.findIndex(option => option === active)
188
+ this.setActive(index === -1 ? 0 : index, withSelect)
189
+ return
190
+ }
191
+
192
+ options.forEach(async (option, index) => {
160
193
  if (typeof active === 'number' && index === (active + options.length) % options.length) {
161
194
  option.setAttribute('active', '')
162
- focusClosest(option as HTMLElement)
195
+ if (withSelect && !this.attrSelected) {
196
+ this.multiple ? option.toggleAttribute('selected') : option.setAttribute('selected', '')
197
+ }
198
+
199
+ guaranteeFocus(option as HTMLElement)
163
200
 
164
- this.activeIndex = index
165
- } else if (active === option) {
166
201
  this.activeIndex = index
167
202
  } else {
168
203
  option.removeAttribute('active')
204
+ !this.attrSelected && !this.multiple && withSelect && option.removeAttribute('selected')
169
205
  }
170
206
  })
171
207
  }
172
208
 
209
+ override open(params: { left?: number; top?: number; right?: number; bottom?: number; silent?: boolean }) {
210
+ super.open(params)
211
+
212
+ if (this.activeIndex === undefined) {
213
+ this.activeIndex = 0
214
+ } else {
215
+ this.setActive(this.activeIndex)
216
+ }
217
+ }
218
+
219
+ override close() {
220
+ if (this.hasAttribute('active')) {
221
+ this.dispatchEvent(
222
+ new CustomEvent('close', {
223
+ bubbles: true,
224
+ composed: true
225
+ })
226
+ )
227
+ }
228
+
229
+ super.close()
230
+ }
231
+
173
232
  /**
174
- * Open Popup
233
+ * Open OxPopup
175
234
  *
176
235
  * @param {PopupOpenOptions}
177
236
  */
@@ -179,21 +238,25 @@ export class PopupList extends Popup {
179
238
  template,
180
239
  top,
181
240
  left,
241
+ right,
242
+ bottom,
182
243
  parent
183
244
  }: {
184
245
  template: unknown
185
- top: number
186
- left: number
246
+ top?: number
247
+ left?: number
248
+ right?: number
249
+ bottom?: number
187
250
  parent?: Element | null
188
251
  }) {
189
252
  const owner = parent || document.body
190
- const target = document.createElement('ox-popup-list') as PopupList
253
+ const target = document.createElement('ox-popup-list') as OxPopupList
191
254
  render(template, target)
192
255
 
193
- target.style.left = `${left}px`
194
- target.style.top = `${top}px`
195
-
196
- target.setAttribute('active', '')
256
+ if (left !== undefined) target.style.left = `${left}px`
257
+ if (top !== undefined) target.style.top = `${top}px`
258
+ if (right !== undefined) target.style.right = `${right}px`
259
+ if (bottom !== undefined) target.style.bottom = `${bottom}px`
197
260
 
198
261
  target._parent = owner
199
262
 
@@ -1,8 +1,8 @@
1
- import { PropertyValues, css, html } from 'lit'
1
+ import { css, html, PropertyValues } from 'lit'
2
+ import { render } from 'lit-html'
2
3
  import { customElement, property } from 'lit/decorators.js'
3
4
 
4
- import { Popup } from './ox-popup'
5
- import { render } from 'lit-html'
5
+ import { OxPopup } from './ox-popup'
6
6
 
7
7
  function focusClosest(element: HTMLElement) {
8
8
  /* Find the closest focusable element. */
@@ -16,9 +16,9 @@ function focusClosest(element: HTMLElement) {
16
16
  }
17
17
 
18
18
  @customElement('ox-popup-menu')
19
- export class PopupMenu extends Popup {
19
+ export class OxPopupMenu extends OxPopup {
20
20
  static styles = [
21
- ...Popup.styles,
21
+ ...OxPopup.styles,
22
22
  css`
23
23
  :host {
24
24
  display: none;
@@ -27,7 +27,7 @@ export class PopupMenu extends Popup {
27
27
  background-color: var(--theme-white-color, #fff);
28
28
  z-index: 100;
29
29
  box-shadow: 2px 3px 10px 5px rgba(0, 0, 0, 0.15);
30
- padding: 5px;
30
+ padding: 4px 0;
31
31
 
32
32
  color: var(--theme-primary-text-color, #3c3938);
33
33
  font: normal 14px 'Roboto', sans-serif;
@@ -42,23 +42,27 @@ export class PopupMenu extends Popup {
42
42
  }
43
43
 
44
44
  ::slotted(*) {
45
- margin: 1px 0;
46
- padding: 4px 2px 3px 2px;
45
+ padding: 5px 10px;
46
+ cursor: pointer;
47
47
  }
48
48
 
49
49
  ::slotted(*:focus) {
50
50
  outline: none;
51
51
  }
52
52
 
53
+ ::slotted([menu][active]),
54
+ ::slotted([menu]:hover) {
55
+ background-color: #f6f6f6;
56
+ }
57
+
53
58
  ::slotted([menu]),
54
59
  ::slotted(ox-popup-menuitem) {
55
- border-radius: 5px;
60
+ border-left: 3px solid transparent;
56
61
  }
57
62
 
58
- ::slotted([menu][active]),
59
63
  ::slotted(ox-popup-menuitem[active]) {
60
- background-color: rgba(20, 154, 155, 0.1);
61
- cursor: pointer;
64
+ border-left: 3px solid var(--primary-color, #38a25b);
65
+ font-weight: bold;
62
66
  }
63
67
 
64
68
  ::slotted([separator]) {
@@ -79,7 +83,7 @@ export class PopupMenu extends Popup {
79
83
  return html` <slot> </slot> `
80
84
  }
81
85
 
82
- protected _onkeydown: (e: KeyboardEvent) => void = function (this: PopupMenu, e: KeyboardEvent) {
86
+ protected _onkeydown: (e: KeyboardEvent) => void = function (this: OxPopupMenu, e: KeyboardEvent) {
83
87
  e.stopPropagation()
84
88
 
85
89
  switch (e.key) {
@@ -112,7 +116,7 @@ export class PopupMenu extends Popup {
112
116
  }
113
117
  }.bind(this)
114
118
 
115
- protected _onfocusout: (e: FocusEvent) => void = function (this: PopupMenu, e: FocusEvent) {
119
+ protected _onfocusout: (e: FocusEvent) => void = function (this: OxPopupMenu, e: FocusEvent) {
116
120
  const target = e.target as HTMLElement
117
121
  const to = e.relatedTarget as HTMLElement
118
122
  const from = target.closest('ox-popup-menu')
@@ -131,7 +135,7 @@ export class PopupMenu extends Popup {
131
135
  }
132
136
  }.bind(this)
133
137
 
134
- protected _onclick: (e: MouseEvent) => void = function (this: PopupMenu, e: MouseEvent) {
138
+ protected _onclick: (e: MouseEvent) => void = function (this: OxPopupMenu, e: MouseEvent) {
135
139
  e.stopPropagation()
136
140
 
137
141
  const menu = (e.target as HTMLElement)?.closest('[menu], ox-popup-menuitem')
@@ -148,7 +152,7 @@ export class PopupMenu extends Popup {
148
152
  }
149
153
 
150
154
  select(menu: Element) {
151
- menu.dispatchEvent(new CustomEvent('selected'))
155
+ menu.dispatchEvent(new CustomEvent('select'))
152
156
  if (!menu.hasAttribute('alive-on-select')) {
153
157
  this.dispatchEvent(new CustomEvent('ox-close', { bubbles: true, composed: true, detail: this }))
154
158
  }
@@ -195,7 +199,7 @@ export class PopupMenu extends Popup {
195
199
  parent?: Element | null
196
200
  }) {
197
201
  const owner = parent || document.body
198
- const target = document.createElement('ox-popup-menu') as PopupMenu
202
+ const target = document.createElement('ox-popup-menu') as OxPopupMenu
199
203
  render(template, target)
200
204
 
201
205
  target.style.left = `${left}px`