renovate-log-parser 0.1.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.
- package/LICENSE +21 -0
- package/README.md +402 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +30 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/analyze.d.ts +24 -0
- package/dist/commands/analyze.js +114 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/detect-errors.d.ts +17 -0
- package/dist/commands/detect-errors.js +119 -0
- package/dist/commands/detect-errors.js.map +1 -0
- package/dist/commands/install-analyze-skill.d.ts +27 -0
- package/dist/commands/install-analyze-skill.js +181 -0
- package/dist/commands/install-analyze-skill.js.map +1 -0
- package/dist/commands/web.d.ts +12 -0
- package/dist/commands/web.js +103 -0
- package/dist/commands/web.js.map +1 -0
- package/dist/core/analyzer.d.ts +89 -0
- package/dist/core/analyzer.js +179 -0
- package/dist/core/analyzer.js.map +1 -0
- package/dist/core/error-detector.d.ts +56 -0
- package/dist/core/error-detector.js +236 -0
- package/dist/core/error-detector.js.map +1 -0
- package/dist/core/filters.d.ts +136 -0
- package/dist/core/filters.js +95 -0
- package/dist/core/filters.js.map +1 -0
- package/dist/core/ignore-file.d.ts +52 -0
- package/dist/core/ignore-file.js +104 -0
- package/dist/core/ignore-file.js.map +1 -0
- package/dist/core/levels.d.ts +33 -0
- package/dist/core/levels.js +35 -0
- package/dist/core/levels.js.map +1 -0
- package/dist/core/parser.d.ts +57 -0
- package/dist/core/parser.js +201 -0
- package/dist/core/parser.js.map +1 -0
- package/dist/core/query-builder.d.ts +47 -0
- package/dist/core/query-builder.js +155 -0
- package/dist/core/query-builder.js.map +1 -0
- package/dist/core/skill-template.d.ts +34 -0
- package/dist/core/skill-template.js +259 -0
- package/dist/core/skill-template.js.map +1 -0
- package/package.json +68 -0
- package/web/.output/nitro.json +15 -0
- package/web/.output/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
- package/web/.output/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
- package/web/.output/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
- package/web/.output/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
- package/web/.output/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
- package/web/.output/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
- package/web/.output/public/_nuxt/BWja8e3M.js +37 -0
- package/web/.output/public/_nuxt/BgApMHS1.js +1 -0
- package/web/.output/public/_nuxt/CGPWRqbc.js +1 -0
- package/web/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/web/.output/public/_nuxt/Sgtec1U0.js +1 -0
- package/web/.output/public/_nuxt/builds/latest.json +1 -0
- package/web/.output/public/_nuxt/builds/meta/c4723e49-0623-47af-ae79-9ab6428bdcc1.json +1 -0
- package/web/.output/public/_nuxt/entry.9mB-pyEY.css +1 -0
- package/web/.output/public/_nuxt/error-404.B_PvSG-P.css +1 -0
- package/web/.output/public/_nuxt/error-500.CghkKCEr.css +1 -0
- package/web/.output/public/_nuxt/index.BlvAG7F6.css +1 -0
- package/web/.output/public/favicon.ico +0 -0
- package/web/.output/server/chunks/_/error-500.mjs +19 -0
- package/web/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/web/.output/server/chunks/_/icons.mjs +6153 -0
- package/web/.output/server/chunks/_/icons.mjs.map +1 -0
- package/web/.output/server/chunks/_/icons2.mjs +11494 -0
- package/web/.output/server/chunks/_/icons2.mjs.map +1 -0
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +1 -0
- package/web/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/web/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs +106 -0
- package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +8 -0
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs +89 -0
- package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +8 -0
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +1 -0
- package/web/.output/server/chunks/build/index-88dXYOxO.mjs +19675 -0
- package/web/.output/server/chunks/build/index-88dXYOxO.mjs.map +1 -0
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +8 -0
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +1 -0
- package/web/.output/server/chunks/build/server.mjs +7910 -0
- package/web/.output/server/chunks/build/server.mjs.map +1 -0
- package/web/.output/server/chunks/build/styles.mjs +10 -0
- package/web/.output/server/chunks/build/styles.mjs.map +1 -0
- package/web/.output/server/chunks/nitro/nitro.mjs +6944 -0
- package/web/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/fields.get.mjs +27 -0
- package/web/.output/server/chunks/routes/api/fields.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/findings.get.mjs +30 -0
- package/web/.output/server/chunks/routes/api/findings.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs +29 -0
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/log/path.post.mjs +30 -0
- package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/repositories.get.mjs +27 -0
- package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/rows.get.mjs +48 -0
- package/web/.output/server/chunks/routes/api/rows.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/renderer.mjs +451 -0
- package/web/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/web/.output/server/index.mjs +16 -0
- package/web/.output/server/index.mjs.map +1 -0
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
- package/web/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
- package/web/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
- package/web/.output/server/node_modules/@floating-ui/core/package.json +63 -0
- package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
- package/web/.output/server/node_modules/@floating-ui/dom/package.json +72 -0
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/web/.output/server/node_modules/@floating-ui/utils/package.json +70 -0
- package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +190 -0
- package/web/.output/server/node_modules/@floating-ui/vue/package.json +71 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
- package/web/.output/server/node_modules/@iconify/utils/package.json +119 -0
- package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1896 -0
- package/web/.output/server/node_modules/@iconify/vue/package.json +62 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +1268 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +34 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +74 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +56 -0
- package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +66 -0
- package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +68 -0
- package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
- package/web/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/web/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
- package/web/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +290 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +49 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
- package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
- package/web/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
- package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
- package/web/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
- package/web/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
- package/web/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
- package/web/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/web/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/web/.output/server/node_modules/@vueuse/core/dist/index.js +8464 -0
- package/web/.output/server/node_modules/@vueuse/core/package.json +49 -0
- package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +2013 -0
- package/web/.output/server/node_modules/@vueuse/shared/package.json +42 -0
- package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +174 -0
- package/web/.output/server/node_modules/aria-hidden/package.json +71 -0
- package/web/.output/server/node_modules/birpc/dist/index.mjs +291 -0
- package/web/.output/server/node_modules/birpc/package.json +57 -0
- package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/web/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/web/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/web/.output/server/node_modules/consola/package.json +136 -0
- package/web/.output/server/node_modules/devalue/index.js +4 -0
- package/web/.output/server/node_modules/devalue/package.json +40 -0
- package/web/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/web/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/web/.output/server/node_modules/devalue/src/parse.js +283 -0
- package/web/.output/server/node_modules/devalue/src/stringify.js +401 -0
- package/web/.output/server/node_modules/devalue/src/uneval.js +552 -0
- package/web/.output/server/node_modules/devalue/src/utils.js +160 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/web/.output/server/node_modules/entities/package.json +120 -0
- package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/web/.output/server/node_modules/estree-walker/package.json +37 -0
- package/web/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/web/.output/server/node_modules/hookable/package.json +53 -0
- package/web/.output/server/node_modules/nostics/dist/index.mjs +179 -0
- package/web/.output/server/node_modules/nostics/package.json +124 -0
- package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
- package/web/.output/server/node_modules/perfect-debounce/package.json +41 -0
- package/web/.output/server/node_modules/rou3/dist/index.mjs +501 -0
- package/web/.output/server/node_modules/rou3/package.json +48 -0
- package/web/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/web/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/web/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/web/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/web/.output/server/node_modules/source-map-js/package.json +71 -0
- package/web/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +39 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +56 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +58 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +134 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +15 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +75 -0
- package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +976 -0
- package/web/.output/server/node_modules/srvx/package.json +102 -0
- package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +3365 -0
- package/web/.output/server/node_modules/tailwind-merge/package.json +93 -0
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +112 -0
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +269 -0
- package/web/.output/server/node_modules/tailwind-variants/dist/index.js +38 -0
- package/web/.output/server/node_modules/tailwind-variants/package.json +122 -0
- package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
- package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/web/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/web/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/web/.output/server/node_modules/ufo/package.json +48 -0
- package/web/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/web/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/web/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/web/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/web/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/web/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +257 -0
- package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +53 -0
- package/web/.output/server/node_modules/unhead/package.json +105 -0
- package/web/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/web/.output/server/node_modules/vue/index.js +7 -0
- package/web/.output/server/node_modules/vue/index.mjs +1 -0
- package/web/.output/server/node_modules/vue/package.json +112 -0
- package/web/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
- package/web/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
- package/web/.output/server/node_modules/vue-demi/lib/index.mjs +34 -0
- package/web/.output/server/node_modules/vue-demi/package.json +47 -0
- package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +1056 -0
- package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +436 -0
- package/web/.output/server/node_modules/vue-router/dist/vue-router.js +1543 -0
- package/web/.output/server/node_modules/vue-router/package.json +214 -0
- package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/web/.output/server/package.json +51 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@floating-ui/dom",
|
|
3
|
+
"version": "1.8.0",
|
|
4
|
+
"description": "Floating UI for the web",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/floating-ui.dom.umd.js",
|
|
9
|
+
"module": "./dist/floating-ui.dom.esm.js",
|
|
10
|
+
"unpkg": "./dist/floating-ui.dom.umd.min.js",
|
|
11
|
+
"types": "./dist/floating-ui.dom.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
"./package.json": "./package.json",
|
|
14
|
+
".": {
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/floating-ui.dom.d.mts",
|
|
17
|
+
"default": "./dist/floating-ui.dom.mjs"
|
|
18
|
+
},
|
|
19
|
+
"types": "./dist/floating-ui.dom.d.ts",
|
|
20
|
+
"module": "./dist/floating-ui.dom.esm.js",
|
|
21
|
+
"default": "./dist/floating-ui.dom.umd.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"author": "atomiks",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": "https://github.com/floating-ui/floating-ui",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/floating-ui/floating-ui.git",
|
|
34
|
+
"directory": "packages/dom"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://floating-ui.com",
|
|
37
|
+
"keywords": [
|
|
38
|
+
"tooltip",
|
|
39
|
+
"popover",
|
|
40
|
+
"dropdown",
|
|
41
|
+
"menu",
|
|
42
|
+
"popup",
|
|
43
|
+
"positioning"
|
|
44
|
+
],
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@floating-ui/core": "^1.8.0",
|
|
47
|
+
"@floating-ui/utils": "^0.2.12"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/react": "^18.3.19",
|
|
51
|
+
"@types/react-dom": "^18.3.1",
|
|
52
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
53
|
+
"react": "^18.2.0",
|
|
54
|
+
"react-dom": "^18.2.0",
|
|
55
|
+
"react-router-dom": "^6.21.1",
|
|
56
|
+
"config": "0.0.0"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"lint": "eslint .",
|
|
60
|
+
"format": "prettier --ignore-path ../../.gitignore --write .",
|
|
61
|
+
"clean": "rimraf dist out-tsc test-results",
|
|
62
|
+
"dev": "vite",
|
|
63
|
+
"build": "rollup -c",
|
|
64
|
+
"build:api": "build-api --tsc tsconfig.lib.json",
|
|
65
|
+
"test": "vitest run",
|
|
66
|
+
"test:watch": "vitest watch",
|
|
67
|
+
"test:browser": "TEST_ENV=browser vitest --browser",
|
|
68
|
+
"publint": "publint",
|
|
69
|
+
"playwright": "playwright test ./test/functional",
|
|
70
|
+
"typecheck": "tsc -b"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
function hasWindow() {
|
|
2
|
+
return typeof window !== 'undefined';
|
|
3
|
+
}
|
|
4
|
+
function getNodeName(node) {
|
|
5
|
+
if (isNode(node)) {
|
|
6
|
+
return (node.nodeName || '').toLowerCase();
|
|
7
|
+
}
|
|
8
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
9
|
+
// returning `#document` an infinite loop won't occur.
|
|
10
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
11
|
+
return '#document';
|
|
12
|
+
}
|
|
13
|
+
function getWindow(node) {
|
|
14
|
+
var _node$ownerDocument;
|
|
15
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
16
|
+
}
|
|
17
|
+
function getDocumentElement(node) {
|
|
18
|
+
var _ref;
|
|
19
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
20
|
+
}
|
|
21
|
+
function isNode(value) {
|
|
22
|
+
if (!hasWindow()) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
26
|
+
}
|
|
27
|
+
function isElement(value) {
|
|
28
|
+
if (!hasWindow()) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
32
|
+
}
|
|
33
|
+
function isHTMLElement(value) {
|
|
34
|
+
if (!hasWindow()) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
38
|
+
}
|
|
39
|
+
function isShadowRoot(value) {
|
|
40
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
44
|
+
}
|
|
45
|
+
function isOverflowElement(element) {
|
|
46
|
+
const {
|
|
47
|
+
overflow,
|
|
48
|
+
overflowX,
|
|
49
|
+
overflowY,
|
|
50
|
+
display
|
|
51
|
+
} = getComputedStyle(element);
|
|
52
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
53
|
+
}
|
|
54
|
+
function isTableElement(element) {
|
|
55
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
56
|
+
}
|
|
57
|
+
function isTopLayer(element) {
|
|
58
|
+
try {
|
|
59
|
+
if (element.matches(':popover-open')) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
} catch (_e) {
|
|
63
|
+
// no-op
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
return element.matches(':modal');
|
|
67
|
+
} catch (_e) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
72
|
+
const containRe = /paint|layout|strict|content/;
|
|
73
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
74
|
+
let isWebKitValue;
|
|
75
|
+
function isContainingBlock(elementOrCss) {
|
|
76
|
+
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
77
|
+
|
|
78
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
79
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
80
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
81
|
+
}
|
|
82
|
+
function getContainingBlock(element) {
|
|
83
|
+
let currentNode = getParentNode(element);
|
|
84
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
85
|
+
if (isContainingBlock(currentNode)) {
|
|
86
|
+
return currentNode;
|
|
87
|
+
} else if (isTopLayer(currentNode)) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
currentNode = getParentNode(currentNode);
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
function isWebKit() {
|
|
95
|
+
if (isWebKitValue == null) {
|
|
96
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
97
|
+
}
|
|
98
|
+
return isWebKitValue;
|
|
99
|
+
}
|
|
100
|
+
function isLastTraversableNode(node) {
|
|
101
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
102
|
+
}
|
|
103
|
+
function getComputedStyle(element) {
|
|
104
|
+
return getWindow(element).getComputedStyle(element);
|
|
105
|
+
}
|
|
106
|
+
function getNodeScroll(element) {
|
|
107
|
+
if (isElement(element)) {
|
|
108
|
+
return {
|
|
109
|
+
scrollLeft: element.scrollLeft,
|
|
110
|
+
scrollTop: element.scrollTop
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
scrollLeft: element.scrollX,
|
|
115
|
+
scrollTop: element.scrollY
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function getParentNode(node) {
|
|
119
|
+
if (getNodeName(node) === 'html') {
|
|
120
|
+
return node;
|
|
121
|
+
}
|
|
122
|
+
const result =
|
|
123
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
124
|
+
node.assignedSlot ||
|
|
125
|
+
// DOM Element detected.
|
|
126
|
+
node.parentNode ||
|
|
127
|
+
// ShadowRoot detected.
|
|
128
|
+
isShadowRoot(node) && node.host ||
|
|
129
|
+
// Fallback.
|
|
130
|
+
getDocumentElement(node);
|
|
131
|
+
return isShadowRoot(result) ? result.host : result;
|
|
132
|
+
}
|
|
133
|
+
function getNearestOverflowAncestor(node) {
|
|
134
|
+
const parentNode = getParentNode(node);
|
|
135
|
+
if (isLastTraversableNode(parentNode)) {
|
|
136
|
+
return (node.ownerDocument || node).body;
|
|
137
|
+
}
|
|
138
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
139
|
+
return parentNode;
|
|
140
|
+
}
|
|
141
|
+
return getNearestOverflowAncestor(parentNode);
|
|
142
|
+
}
|
|
143
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
144
|
+
var _node$ownerDocument2;
|
|
145
|
+
if (list === void 0) {
|
|
146
|
+
list = [];
|
|
147
|
+
}
|
|
148
|
+
if (traverseIframes === void 0) {
|
|
149
|
+
traverseIframes = true;
|
|
150
|
+
}
|
|
151
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
152
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
153
|
+
const win = getWindow(scrollableAncestor);
|
|
154
|
+
if (isBody) {
|
|
155
|
+
const frameElement = getFrameElement(win);
|
|
156
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
157
|
+
} else {
|
|
158
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function getFrameElement(win) {
|
|
162
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom positioning reference element.
|
|
3
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
7
|
+
const alignments = ['start', 'end'];
|
|
8
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
9
|
+
const min = Math.min;
|
|
10
|
+
const max = Math.max;
|
|
11
|
+
const round = Math.round;
|
|
12
|
+
const floor = Math.floor;
|
|
13
|
+
const createCoords = v => ({
|
|
14
|
+
x: v,
|
|
15
|
+
y: v
|
|
16
|
+
});
|
|
17
|
+
const oppositeSideMap = {
|
|
18
|
+
left: 'right',
|
|
19
|
+
right: 'left',
|
|
20
|
+
bottom: 'top',
|
|
21
|
+
top: 'bottom'
|
|
22
|
+
};
|
|
23
|
+
function clamp(start, value, end) {
|
|
24
|
+
return max(start, min(value, end));
|
|
25
|
+
}
|
|
26
|
+
function evaluate(value, param) {
|
|
27
|
+
return typeof value === 'function' ? value(param) : value;
|
|
28
|
+
}
|
|
29
|
+
function getSide(placement) {
|
|
30
|
+
return placement.split('-')[0];
|
|
31
|
+
}
|
|
32
|
+
function getAlignment(placement) {
|
|
33
|
+
return placement.split('-')[1];
|
|
34
|
+
}
|
|
35
|
+
function getOppositeAxis(axis) {
|
|
36
|
+
return axis === 'x' ? 'y' : 'x';
|
|
37
|
+
}
|
|
38
|
+
function getAxisLength(axis) {
|
|
39
|
+
return axis === 'y' ? 'height' : 'width';
|
|
40
|
+
}
|
|
41
|
+
function getSideAxis(placement) {
|
|
42
|
+
const firstChar = placement[0];
|
|
43
|
+
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
44
|
+
}
|
|
45
|
+
function getAlignmentAxis(placement) {
|
|
46
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
47
|
+
}
|
|
48
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
49
|
+
if (rtl === void 0) {
|
|
50
|
+
rtl = false;
|
|
51
|
+
}
|
|
52
|
+
const alignment = getAlignment(placement);
|
|
53
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
54
|
+
const length = getAxisLength(alignmentAxis);
|
|
55
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
56
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
57
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
58
|
+
}
|
|
59
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
60
|
+
}
|
|
61
|
+
function getExpandedPlacements(placement) {
|
|
62
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
63
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
64
|
+
}
|
|
65
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
66
|
+
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
67
|
+
}
|
|
68
|
+
const lrPlacement = ['left', 'right'];
|
|
69
|
+
const rlPlacement = ['right', 'left'];
|
|
70
|
+
const tbPlacement = ['top', 'bottom'];
|
|
71
|
+
const btPlacement = ['bottom', 'top'];
|
|
72
|
+
function getSideList(side, isStart, rtl) {
|
|
73
|
+
switch (side) {
|
|
74
|
+
case 'top':
|
|
75
|
+
case 'bottom':
|
|
76
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
77
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
78
|
+
case 'left':
|
|
79
|
+
case 'right':
|
|
80
|
+
return isStart ? tbPlacement : btPlacement;
|
|
81
|
+
default:
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
86
|
+
const alignment = getAlignment(placement);
|
|
87
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
88
|
+
if (alignment) {
|
|
89
|
+
list = list.map(side => side + "-" + alignment);
|
|
90
|
+
if (flipAlignment) {
|
|
91
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return list;
|
|
95
|
+
}
|
|
96
|
+
function getOppositePlacement(placement) {
|
|
97
|
+
const side = getSide(placement);
|
|
98
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
99
|
+
}
|
|
100
|
+
function expandPaddingObject(padding) {
|
|
101
|
+
var _padding$top, _padding$right, _padding$bottom, _padding$left;
|
|
102
|
+
return {
|
|
103
|
+
top: (_padding$top = padding.top) != null ? _padding$top : 0,
|
|
104
|
+
right: (_padding$right = padding.right) != null ? _padding$right : 0,
|
|
105
|
+
bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
|
|
106
|
+
left: (_padding$left = padding.left) != null ? _padding$left : 0
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function getPaddingObject(padding) {
|
|
110
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
111
|
+
top: padding,
|
|
112
|
+
right: padding,
|
|
113
|
+
bottom: padding,
|
|
114
|
+
left: padding
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function rectToClientRect(rect) {
|
|
118
|
+
const {
|
|
119
|
+
x,
|
|
120
|
+
y,
|
|
121
|
+
width,
|
|
122
|
+
height
|
|
123
|
+
} = rect;
|
|
124
|
+
return {
|
|
125
|
+
width,
|
|
126
|
+
height,
|
|
127
|
+
top: y,
|
|
128
|
+
left: x,
|
|
129
|
+
right: x + width,
|
|
130
|
+
bottom: y + height,
|
|
131
|
+
x,
|
|
132
|
+
y
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@floating-ui/utils",
|
|
3
|
+
"version": "0.2.12",
|
|
4
|
+
"description": "Utilities for Floating UI",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/floating-ui.utils.umd.js",
|
|
9
|
+
"module": "./dist/floating-ui.utils.esm.js",
|
|
10
|
+
"types": "./dist/floating-ui.utils.d.ts",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"dom"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": "./package.json",
|
|
18
|
+
".": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/floating-ui.utils.d.mts",
|
|
21
|
+
"default": "./dist/floating-ui.utils.mjs"
|
|
22
|
+
},
|
|
23
|
+
"types": "./dist/floating-ui.utils.d.ts",
|
|
24
|
+
"module": "./dist/floating-ui.utils.esm.js",
|
|
25
|
+
"default": "./dist/floating-ui.utils.umd.js"
|
|
26
|
+
},
|
|
27
|
+
"./dom": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/floating-ui.utils.dom.d.mts",
|
|
30
|
+
"default": "./dist/floating-ui.utils.dom.mjs"
|
|
31
|
+
},
|
|
32
|
+
"types": "./dist/floating-ui.utils.dom.d.ts",
|
|
33
|
+
"module": "./dist/floating-ui.utils.dom.esm.js",
|
|
34
|
+
"default": "./dist/floating-ui.utils.dom.umd.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"author": "atomiks",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"bugs": "https://github.com/floating-ui/floating-ui",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/floating-ui/floating-ui.git",
|
|
43
|
+
"directory": "packages/utils"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://floating-ui.com",
|
|
46
|
+
"keywords": [
|
|
47
|
+
"tooltip",
|
|
48
|
+
"popover",
|
|
49
|
+
"dropdown",
|
|
50
|
+
"menu",
|
|
51
|
+
"popup",
|
|
52
|
+
"positioning"
|
|
53
|
+
],
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@testing-library/jest-dom": "^6.1.6",
|
|
56
|
+
"config": "0.0.0"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"lint": "eslint .",
|
|
60
|
+
"format": "prettier --ignore-path ../../.gitignore --write .",
|
|
61
|
+
"clean": "rimraf dist out-tsc dom react",
|
|
62
|
+
"test": "vitest run --globals",
|
|
63
|
+
"test:watch": "vitest watch --globals",
|
|
64
|
+
"dev": "rollup -c -w",
|
|
65
|
+
"build": "rollup -c",
|
|
66
|
+
"build:api": "build-api --tsc tsconfig.lib.json --aec api-extractor.json --aec api-extractor.dom.json --aec api-extractor.react.json",
|
|
67
|
+
"publint": "publint",
|
|
68
|
+
"typecheck": "tsc -b"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { arrow as arrow$1, computePosition } from '@floating-ui/dom';
|
|
2
|
+
export { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';
|
|
3
|
+
import { isNode, getNodeName } from '@floating-ui/utils/dom';
|
|
4
|
+
import { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';
|
|
5
|
+
|
|
6
|
+
function isComponentPublicInstance(target) {
|
|
7
|
+
return target != null && typeof target === 'object' && '$el' in target;
|
|
8
|
+
}
|
|
9
|
+
function unwrapElement(target) {
|
|
10
|
+
if (isComponentPublicInstance(target)) {
|
|
11
|
+
const element = target.$el;
|
|
12
|
+
return isNode(element) && getNodeName(element) === '#comment' ? null : element;
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function toValue(source) {
|
|
18
|
+
return typeof source === 'function' ? source() : unref(source);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Positions an inner element of the floating element such that it is centered to the reference element.
|
|
23
|
+
* @param options The arrow options.
|
|
24
|
+
* @see https://floating-ui.com/docs/arrow
|
|
25
|
+
*/
|
|
26
|
+
function arrow(options) {
|
|
27
|
+
return {
|
|
28
|
+
name: 'arrow',
|
|
29
|
+
options,
|
|
30
|
+
fn(args) {
|
|
31
|
+
const element = unwrapElement(toValue(options.element));
|
|
32
|
+
if (element == null) {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
return arrow$1({
|
|
36
|
+
element,
|
|
37
|
+
padding: options.padding
|
|
38
|
+
}).fn(args);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function getDPR(element) {
|
|
44
|
+
if (typeof window === 'undefined') {
|
|
45
|
+
return 1;
|
|
46
|
+
}
|
|
47
|
+
const win = element.ownerDocument.defaultView || window;
|
|
48
|
+
return win.devicePixelRatio || 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function roundByDPR(element, value) {
|
|
52
|
+
const dpr = getDPR(element);
|
|
53
|
+
return Math.round(value * dpr) / dpr;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.
|
|
58
|
+
* @param reference The reference template ref.
|
|
59
|
+
* @param floating The floating template ref.
|
|
60
|
+
* @param options The floating options.
|
|
61
|
+
* @see https://floating-ui.com/docs/vue
|
|
62
|
+
*/
|
|
63
|
+
function useFloating(reference, floating, options) {
|
|
64
|
+
if (options === void 0) {
|
|
65
|
+
options = {};
|
|
66
|
+
}
|
|
67
|
+
const whileElementsMountedOption = options.whileElementsMounted;
|
|
68
|
+
const openOption = computed(() => {
|
|
69
|
+
var _toValue;
|
|
70
|
+
return (_toValue = toValue(options.open)) != null ? _toValue : true;
|
|
71
|
+
});
|
|
72
|
+
const middlewareOption = computed(() => toValue(options.middleware));
|
|
73
|
+
const placementOption = computed(() => {
|
|
74
|
+
var _toValue2;
|
|
75
|
+
return (_toValue2 = toValue(options.placement)) != null ? _toValue2 : 'bottom';
|
|
76
|
+
});
|
|
77
|
+
const strategyOption = computed(() => {
|
|
78
|
+
var _toValue3;
|
|
79
|
+
return (_toValue3 = toValue(options.strategy)) != null ? _toValue3 : 'absolute';
|
|
80
|
+
});
|
|
81
|
+
const transformOption = computed(() => {
|
|
82
|
+
var _toValue4;
|
|
83
|
+
return (_toValue4 = toValue(options.transform)) != null ? _toValue4 : true;
|
|
84
|
+
});
|
|
85
|
+
const referenceElement = computed(() => unwrapElement(reference.value));
|
|
86
|
+
const floatingElement = computed(() => unwrapElement(floating.value));
|
|
87
|
+
const x = ref(0);
|
|
88
|
+
const y = ref(0);
|
|
89
|
+
const strategy = ref(strategyOption.value);
|
|
90
|
+
const placement = ref(placementOption.value);
|
|
91
|
+
const middlewareData = shallowRef({});
|
|
92
|
+
const isPositioned = ref(false);
|
|
93
|
+
const floatingStyles = computed(() => {
|
|
94
|
+
const initialStyles = {
|
|
95
|
+
position: strategy.value,
|
|
96
|
+
left: '0',
|
|
97
|
+
top: '0'
|
|
98
|
+
};
|
|
99
|
+
if (!floatingElement.value) {
|
|
100
|
+
return initialStyles;
|
|
101
|
+
}
|
|
102
|
+
const xVal = roundByDPR(floatingElement.value, x.value);
|
|
103
|
+
const yVal = roundByDPR(floatingElement.value, y.value);
|
|
104
|
+
if (transformOption.value) {
|
|
105
|
+
return {
|
|
106
|
+
...initialStyles,
|
|
107
|
+
transform: "translate(" + xVal + "px, " + yVal + "px)",
|
|
108
|
+
...(getDPR(floatingElement.value) >= 1.5 && {
|
|
109
|
+
willChange: 'transform'
|
|
110
|
+
})
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
position: strategy.value,
|
|
115
|
+
left: xVal + "px",
|
|
116
|
+
top: yVal + "px"
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
let whileElementsMountedCleanup;
|
|
120
|
+
function update() {
|
|
121
|
+
if (referenceElement.value == null || floatingElement.value == null) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const open = openOption.value;
|
|
125
|
+
computePosition(referenceElement.value, floatingElement.value, {
|
|
126
|
+
middleware: middlewareOption.value,
|
|
127
|
+
placement: placementOption.value,
|
|
128
|
+
strategy: strategyOption.value
|
|
129
|
+
}).then(position => {
|
|
130
|
+
x.value = position.x;
|
|
131
|
+
y.value = position.y;
|
|
132
|
+
strategy.value = position.strategy;
|
|
133
|
+
placement.value = position.placement;
|
|
134
|
+
middlewareData.value = position.middlewareData;
|
|
135
|
+
/**
|
|
136
|
+
* The floating element's position may be recomputed while it's closed
|
|
137
|
+
* but still mounted (such as when transitioning out). To ensure
|
|
138
|
+
* `isPositioned` will be `false` initially on the next open, avoid
|
|
139
|
+
* setting it to `true` when `open === false` (must be specified).
|
|
140
|
+
*/
|
|
141
|
+
isPositioned.value = open !== false;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function cleanup() {
|
|
145
|
+
if (typeof whileElementsMountedCleanup === 'function') {
|
|
146
|
+
whileElementsMountedCleanup();
|
|
147
|
+
whileElementsMountedCleanup = undefined;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function attach() {
|
|
151
|
+
cleanup();
|
|
152
|
+
if (whileElementsMountedOption === undefined) {
|
|
153
|
+
update();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
if (referenceElement.value != null && floatingElement.value != null) {
|
|
157
|
+
whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function reset() {
|
|
162
|
+
if (!openOption.value) {
|
|
163
|
+
isPositioned.value = false;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
watch([middlewareOption, placementOption, strategyOption, openOption], update, {
|
|
167
|
+
flush: 'sync'
|
|
168
|
+
});
|
|
169
|
+
watch([referenceElement, floatingElement], attach, {
|
|
170
|
+
flush: 'sync'
|
|
171
|
+
});
|
|
172
|
+
watch(openOption, reset, {
|
|
173
|
+
flush: 'sync'
|
|
174
|
+
});
|
|
175
|
+
if (getCurrentScope()) {
|
|
176
|
+
onScopeDispose(cleanup);
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
x: shallowReadonly(x),
|
|
180
|
+
y: shallowReadonly(y),
|
|
181
|
+
strategy: shallowReadonly(strategy),
|
|
182
|
+
placement: shallowReadonly(placement),
|
|
183
|
+
middlewareData: shallowReadonly(middlewareData),
|
|
184
|
+
isPositioned: shallowReadonly(isPositioned),
|
|
185
|
+
floatingStyles,
|
|
186
|
+
update
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export { arrow, useFloating };
|