businesslens 0.2.2
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/ANTr5GBv.js +1 -0
- package/.output/public/_nuxt/B3Z-Zt7l.js +37 -0
- package/.output/public/_nuxt/Bd76-HGM.js +1 -0
- package/.output/public/_nuxt/Bf4VrETn.js +1 -0
- package/.output/public/_nuxt/CR3jGlpM.js +1 -0
- package/.output/public/_nuxt/CntoM1kL.js +1 -0
- package/.output/public/_nuxt/DogqooqX.js +1 -0
- package/.output/public/_nuxt/Zsu92SSr.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/e74555da-0c18-4e95-b959-2bdcc538677b.json +1 -0
- package/.output/public/_nuxt/default.CRZmPCG_.css +1 -0
- package/.output/public/_nuxt/e3lOfLH3.js +1 -0
- package/.output/public/_nuxt/entry.SgkJh-3P.css +1 -0
- package/.output/public/_nuxt/error-404.CTIGkQtd.css +1 -0
- package/.output/public/_nuxt/error-500.CKBWIF4V.css +1 -0
- package/.output/public/_nuxt/fCd72uLR.js +1 -0
- package/.output/public/_nuxt/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/.output/public/_nuxt/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/.output/public/_nuxt/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/.output/public/_nuxt/vk0fkBN0.js +1 -0
- package/.output/public/_nuxt/zg6VsE4d.js +39 -0
- package/.output/public/brand/logo/businesslens-mark.svg +20 -0
- package/.output/public/favicon.svg +13 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/icons.mjs +6150 -0
- package/.output/server/chunks/_/icons.mjs.map +1 -0
- package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs +161 -0
- package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs.map +1 -0
- package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs +4412 -0
- package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs.map +1 -0
- package/.output/server/chunks/build/Slideover-KOfskX1l.mjs +4226 -0
- package/.output/server/chunks/build/Slideover-KOfskX1l.mjs.map +1 -0
- package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs +1338 -0
- package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/default-BJSthw3t.mjs +8999 -0
- package/.output/server/chunks/build/default-BJSthw3t.mjs.map +1 -0
- package/.output/server/chunks/build/default-styles.BYgqaNao.mjs +8 -0
- package/.output/server/chunks/build/default-styles.BYgqaNao.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-BOiGLcfP.mjs +96 -0
- package/.output/server/chunks/build/error-404-BOiGLcfP.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-Bwyw373t.mjs +79 -0
- package/.output/server/chunks/build/error-500-Bwyw373t.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs.map +1 -0
- package/.output/server/chunks/build/index-BuhKSZfH.mjs +313 -0
- package/.output/server/chunks/build/index-BuhKSZfH.mjs.map +1 -0
- package/.output/server/chunks/build/journeys-DHHOyxCM.mjs +244 -0
- package/.output/server/chunks/build/journeys-DHHOyxCM.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +14099 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +9 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/topology-BJfDB_jA.mjs +295 -0
- package/.output/server/chunks/build/topology-BJfDB_jA.mjs.map +1 -0
- package/.output/server/chunks/build/useReport-pDAk-ETG.mjs +406 -0
- package/.output/server/chunks/build/useReport-pDAk-ETG.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +5770 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/report.get.mjs +617 -0
- package/.output/server/chunks/routes/api/report.get.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +451 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +119 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
- package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
- package/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
- package/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +10186 -0
- package/.output/server/node_modules/@vue-flow/core/package.json +95 -0
- package/.output/server/node_modules/ajv/dist/2020.js +55 -0
- package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
- package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
- package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
- package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
- package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/.output/server/node_modules/ajv/dist/core.js +618 -0
- package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/.output/server/node_modules/ajv/package.json +126 -0
- package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
- package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
- package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
- package/.output/server/node_modules/ajv-formats/package.json +74 -0
- package/.output/server/node_modules/birpc/dist/index.mjs +291 -0
- package/.output/server/node_modules/birpc/package.json +57 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +40 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/parse.js +283 -0
- package/.output/server/node_modules/devalue/src/stringify.js +401 -0
- package/.output/server/node_modules/devalue/src/uneval.js +552 -0
- package/.output/server/node_modules/devalue/src/utils.js +160 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
- package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
- package/.output/server/node_modules/fast-uri/index.js +406 -0
- package/.output/server/node_modules/fast-uri/lib/schemes.js +267 -0
- package/.output/server/node_modules/fast-uri/lib/utils.js +443 -0
- package/.output/server/node_modules/fast-uri/package.json +68 -0
- package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
- package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
- package/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
- package/.output/server/node_modules/perfect-debounce/package.json +41 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
- package/.output/server/node_modules/vue-router/dist/devtools-DCoWQoU_.js +1034 -0
- package/.output/server/node_modules/vue-router/dist/useApi-s_02lHjl.js +181 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.js +1499 -0
- package/.output/server/node_modules/vue-router/package.json +226 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/package.json +41 -0
- package/README.md +114 -0
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/bin/businesslens.mjs +181 -0
- package/package.json +68 -0
- package/packages/report-schema/schemas/report.schema.json +235 -0
- package/packages/report-schema/types/index.ts +1 -0
- package/packages/report-schema/types/report.ts +101 -0
- package/packages/report-schema/validate.mjs +111 -0
|
@@ -0,0 +1,1338 @@
|
|
|
1
|
+
import { useSlots, toRef, computed, unref, mergeProps, withCtx, renderSlot, openBlock, createBlock, toDisplayString, createCommentVNode, Fragment, renderList, createVNode, defineComponent, watch, ref, toHandlers, normalizeProps, guardReactiveProps, resolveDynamicComponent, createTextVNode, withModifiers, watchEffect, reactive, useSSRContext } from 'vue';
|
|
2
|
+
import { ssrRenderComponent, ssrRenderSlot, ssrRenderClass, ssrInterpolate, ssrRenderList } from 'vue/server-renderer';
|
|
3
|
+
import { l as defu } from '../nitro/nitro.mjs';
|
|
4
|
+
import { t as useComponentProps, v as useAppConfig, a0 as injectTooltipProviderContext, C as useForwardProps, D as reactivePick, E as usePortal, z as tv, G as FieldGroupReset, p as useForwardExpose, k as useVModel, a1 as useTimeoutFn, P as Primitive, T as Teleport_default, s as Presence_default, n as createContext, V as VisuallyHidden_default, o as useForwardProps$1, a2 as createSharedComposable, r as refAutoReset, Z as tryOnScopeDispose, $ as createEventHook } from './server.mjs';
|
|
5
|
+
import { P as PopperRoot_default, a as useId, b as PopperAnchor_default, c as useForwardPropsEmits, d as PopperArrow_default, D as DismissableLayer_default, i as PopperContent_default } from './Slideover-KOfskX1l.mjs';
|
|
6
|
+
|
|
7
|
+
function useGraceArea(triggerElement, containerElement) {
|
|
8
|
+
const isPointerInTransit = refAutoReset(false, 300);
|
|
9
|
+
tryOnScopeDispose(() => {
|
|
10
|
+
isPointerInTransit.value = false;
|
|
11
|
+
});
|
|
12
|
+
const pointerGraceArea = ref(null);
|
|
13
|
+
const pointerExit = createEventHook();
|
|
14
|
+
function handleRemoveGraceArea() {
|
|
15
|
+
pointerGraceArea.value = null;
|
|
16
|
+
isPointerInTransit.value = false;
|
|
17
|
+
}
|
|
18
|
+
function handleCreateGraceArea(event, hoverTarget) {
|
|
19
|
+
if (!hoverTarget) return;
|
|
20
|
+
const currentTarget = event.currentTarget;
|
|
21
|
+
const exitPoint = {
|
|
22
|
+
x: event.clientX,
|
|
23
|
+
y: event.clientY
|
|
24
|
+
};
|
|
25
|
+
const exitSide = getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());
|
|
26
|
+
const paddedExitPoints = getPaddedExitPoints(exitPoint, exitSide, 1);
|
|
27
|
+
const hoverTargetPoints = getPointsFromRect(hoverTarget.getBoundingClientRect());
|
|
28
|
+
const graceArea = getHull([...paddedExitPoints, ...hoverTargetPoints]);
|
|
29
|
+
pointerGraceArea.value = graceArea;
|
|
30
|
+
isPointerInTransit.value = true;
|
|
31
|
+
}
|
|
32
|
+
watchEffect((cleanupFn) => {
|
|
33
|
+
if (triggerElement.value && containerElement.value) {
|
|
34
|
+
const handleTriggerLeave = (event) => handleCreateGraceArea(event, containerElement.value);
|
|
35
|
+
const handleContentLeave = (event) => handleCreateGraceArea(event, triggerElement.value);
|
|
36
|
+
triggerElement.value.addEventListener("pointerleave", handleTriggerLeave);
|
|
37
|
+
containerElement.value.addEventListener("pointerleave", handleContentLeave);
|
|
38
|
+
cleanupFn(() => {
|
|
39
|
+
triggerElement.value?.removeEventListener("pointerleave", handleTriggerLeave);
|
|
40
|
+
containerElement.value?.removeEventListener("pointerleave", handleContentLeave);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
watchEffect((cleanupFn) => {
|
|
45
|
+
if (pointerGraceArea.value) {
|
|
46
|
+
const handleTrackPointerGrace = (event) => {
|
|
47
|
+
if (!pointerGraceArea.value || !(event.target instanceof Element)) return;
|
|
48
|
+
const target = event.target;
|
|
49
|
+
const pointerPosition = {
|
|
50
|
+
x: event.clientX,
|
|
51
|
+
y: event.clientY
|
|
52
|
+
};
|
|
53
|
+
const hasEnteredTarget = triggerElement.value?.contains(target) || containerElement.value?.contains(target);
|
|
54
|
+
const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, pointerGraceArea.value);
|
|
55
|
+
const isAnotherGraceAreaTrigger = !!target.closest("[data-grace-area-trigger]");
|
|
56
|
+
if (hasEnteredTarget) handleRemoveGraceArea();
|
|
57
|
+
else if (isPointerOutsideGraceArea || isAnotherGraceAreaTrigger) {
|
|
58
|
+
handleRemoveGraceArea();
|
|
59
|
+
pointerExit.trigger();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
triggerElement.value?.ownerDocument.addEventListener("pointermove", handleTrackPointerGrace);
|
|
63
|
+
cleanupFn(() => triggerElement.value?.ownerDocument.removeEventListener("pointermove", handleTrackPointerGrace));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
return {
|
|
67
|
+
isPointerInTransit,
|
|
68
|
+
onPointerExit: pointerExit.on
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function getExitSideFromRect(point, rect) {
|
|
72
|
+
const top = Math.abs(rect.top - point.y);
|
|
73
|
+
const bottom = Math.abs(rect.bottom - point.y);
|
|
74
|
+
const right = Math.abs(rect.right - point.x);
|
|
75
|
+
const left = Math.abs(rect.left - point.x);
|
|
76
|
+
switch (Math.min(top, bottom, right, left)) {
|
|
77
|
+
case left:
|
|
78
|
+
return "left";
|
|
79
|
+
case right:
|
|
80
|
+
return "right";
|
|
81
|
+
case top:
|
|
82
|
+
return "top";
|
|
83
|
+
case bottom:
|
|
84
|
+
return "bottom";
|
|
85
|
+
default:
|
|
86
|
+
throw new Error("unreachable");
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
90
|
+
const paddedExitPoints = [];
|
|
91
|
+
switch (exitSide) {
|
|
92
|
+
case "top":
|
|
93
|
+
paddedExitPoints.push({
|
|
94
|
+
x: exitPoint.x - padding,
|
|
95
|
+
y: exitPoint.y + padding
|
|
96
|
+
}, {
|
|
97
|
+
x: exitPoint.x + padding,
|
|
98
|
+
y: exitPoint.y + padding
|
|
99
|
+
});
|
|
100
|
+
break;
|
|
101
|
+
case "bottom":
|
|
102
|
+
paddedExitPoints.push({
|
|
103
|
+
x: exitPoint.x - padding,
|
|
104
|
+
y: exitPoint.y - padding
|
|
105
|
+
}, {
|
|
106
|
+
x: exitPoint.x + padding,
|
|
107
|
+
y: exitPoint.y - padding
|
|
108
|
+
});
|
|
109
|
+
break;
|
|
110
|
+
case "left":
|
|
111
|
+
paddedExitPoints.push({
|
|
112
|
+
x: exitPoint.x + padding,
|
|
113
|
+
y: exitPoint.y - padding
|
|
114
|
+
}, {
|
|
115
|
+
x: exitPoint.x + padding,
|
|
116
|
+
y: exitPoint.y + padding
|
|
117
|
+
});
|
|
118
|
+
break;
|
|
119
|
+
case "right":
|
|
120
|
+
paddedExitPoints.push({
|
|
121
|
+
x: exitPoint.x - padding,
|
|
122
|
+
y: exitPoint.y - padding
|
|
123
|
+
}, {
|
|
124
|
+
x: exitPoint.x - padding,
|
|
125
|
+
y: exitPoint.y + padding
|
|
126
|
+
});
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
return paddedExitPoints;
|
|
130
|
+
}
|
|
131
|
+
function getPointsFromRect(rect) {
|
|
132
|
+
const { top, right, bottom, left } = rect;
|
|
133
|
+
return [
|
|
134
|
+
{
|
|
135
|
+
x: left,
|
|
136
|
+
y: top
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
x: right,
|
|
140
|
+
y: top
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
x: right,
|
|
144
|
+
y: bottom
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
x: left,
|
|
148
|
+
y: bottom
|
|
149
|
+
}
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
function isPointInPolygon(point, polygon) {
|
|
153
|
+
const { x, y } = point;
|
|
154
|
+
let inside = false;
|
|
155
|
+
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
156
|
+
const xi = polygon[i].x;
|
|
157
|
+
const yi = polygon[i].y;
|
|
158
|
+
const xj = polygon[j].x;
|
|
159
|
+
const yj = polygon[j].y;
|
|
160
|
+
const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;
|
|
161
|
+
if (intersect) inside = !inside;
|
|
162
|
+
}
|
|
163
|
+
return inside;
|
|
164
|
+
}
|
|
165
|
+
function getHull(points) {
|
|
166
|
+
const newPoints = points.slice();
|
|
167
|
+
newPoints.sort((a, b) => {
|
|
168
|
+
if (a.x < b.x) return -1;
|
|
169
|
+
else if (a.x > b.x) return 1;
|
|
170
|
+
else if (a.y < b.y) return -1;
|
|
171
|
+
else if (a.y > b.y) return 1;
|
|
172
|
+
else return 0;
|
|
173
|
+
});
|
|
174
|
+
return getHullPresorted(newPoints);
|
|
175
|
+
}
|
|
176
|
+
function getHullPresorted(points) {
|
|
177
|
+
if (points.length <= 1) return points.slice();
|
|
178
|
+
const upperHull = [];
|
|
179
|
+
for (let i = 0; i < points.length; i++) {
|
|
180
|
+
const p = points[i];
|
|
181
|
+
while (upperHull.length >= 2) {
|
|
182
|
+
const q = upperHull.at(-1);
|
|
183
|
+
const r = upperHull[upperHull.length - 2];
|
|
184
|
+
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) upperHull.pop();
|
|
185
|
+
else break;
|
|
186
|
+
}
|
|
187
|
+
upperHull.push(p);
|
|
188
|
+
}
|
|
189
|
+
upperHull.pop();
|
|
190
|
+
const lowerHull = [];
|
|
191
|
+
for (let i = points.length - 1; i >= 0; i--) {
|
|
192
|
+
const p = points[i];
|
|
193
|
+
while (lowerHull.length >= 2) {
|
|
194
|
+
const q = lowerHull.at(-1);
|
|
195
|
+
const r = lowerHull[lowerHull.length - 2];
|
|
196
|
+
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) lowerHull.pop();
|
|
197
|
+
else break;
|
|
198
|
+
}
|
|
199
|
+
lowerHull.push(p);
|
|
200
|
+
}
|
|
201
|
+
lowerHull.pop();
|
|
202
|
+
if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) return upperHull;
|
|
203
|
+
else return upperHull.concat(lowerHull);
|
|
204
|
+
}
|
|
205
|
+
var TooltipArrow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
206
|
+
__name: "TooltipArrow",
|
|
207
|
+
props: {
|
|
208
|
+
width: {
|
|
209
|
+
type: Number,
|
|
210
|
+
required: false,
|
|
211
|
+
default: 10
|
|
212
|
+
},
|
|
213
|
+
height: {
|
|
214
|
+
type: Number,
|
|
215
|
+
required: false,
|
|
216
|
+
default: 5
|
|
217
|
+
},
|
|
218
|
+
asChild: {
|
|
219
|
+
type: Boolean,
|
|
220
|
+
required: false
|
|
221
|
+
},
|
|
222
|
+
as: {
|
|
223
|
+
type: null,
|
|
224
|
+
required: false,
|
|
225
|
+
default: "svg"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
setup(__props) {
|
|
229
|
+
const props = __props;
|
|
230
|
+
useForwardExpose();
|
|
231
|
+
return (_ctx, _cache) => {
|
|
232
|
+
return openBlock(), createBlock(unref(PopperArrow_default), normalizeProps(guardReactiveProps(props)), {
|
|
233
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
234
|
+
_: 3
|
|
235
|
+
}, 16);
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
var TooltipArrow_default = TooltipArrow_vue_vue_type_script_setup_true_lang_default;
|
|
240
|
+
const TOOLTIP_OPEN = "tooltip.open";
|
|
241
|
+
const [injectTooltipRootContext, provideTooltipRootContext] = /* @__PURE__ */ createContext("TooltipRoot");
|
|
242
|
+
var TooltipRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
243
|
+
__name: "TooltipRoot",
|
|
244
|
+
props: {
|
|
245
|
+
defaultOpen: {
|
|
246
|
+
type: Boolean,
|
|
247
|
+
required: false,
|
|
248
|
+
default: false
|
|
249
|
+
},
|
|
250
|
+
open: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
required: false,
|
|
253
|
+
default: void 0
|
|
254
|
+
},
|
|
255
|
+
delayDuration: {
|
|
256
|
+
type: Number,
|
|
257
|
+
required: false,
|
|
258
|
+
default: void 0
|
|
259
|
+
},
|
|
260
|
+
disableHoverableContent: {
|
|
261
|
+
type: Boolean,
|
|
262
|
+
required: false,
|
|
263
|
+
default: void 0
|
|
264
|
+
},
|
|
265
|
+
disableClosingTrigger: {
|
|
266
|
+
type: Boolean,
|
|
267
|
+
required: false,
|
|
268
|
+
default: void 0
|
|
269
|
+
},
|
|
270
|
+
disabled: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
required: false,
|
|
273
|
+
default: void 0
|
|
274
|
+
},
|
|
275
|
+
ignoreNonKeyboardFocus: {
|
|
276
|
+
type: Boolean,
|
|
277
|
+
required: false,
|
|
278
|
+
default: void 0
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
emits: ["update:open"],
|
|
282
|
+
setup(__props, { emit: __emit }) {
|
|
283
|
+
const props = __props;
|
|
284
|
+
const emit = __emit;
|
|
285
|
+
useForwardExpose();
|
|
286
|
+
const providerContext = injectTooltipProviderContext();
|
|
287
|
+
const disableHoverableContent = computed(() => props.disableHoverableContent ?? providerContext.disableHoverableContent.value);
|
|
288
|
+
const disableClosingTrigger = computed(() => props.disableClosingTrigger ?? providerContext.disableClosingTrigger.value);
|
|
289
|
+
const disableTooltip = computed(() => props.disabled ?? providerContext.disabled.value);
|
|
290
|
+
const delayDuration = computed(() => props.delayDuration ?? providerContext.delayDuration.value);
|
|
291
|
+
const ignoreNonKeyboardFocus = computed(() => props.ignoreNonKeyboardFocus ?? providerContext.ignoreNonKeyboardFocus.value);
|
|
292
|
+
const open = useVModel(props, "open", emit, {
|
|
293
|
+
defaultValue: props.defaultOpen,
|
|
294
|
+
passive: props.open === void 0
|
|
295
|
+
});
|
|
296
|
+
watch(open, (isOpen) => {
|
|
297
|
+
if (!providerContext.onClose) return;
|
|
298
|
+
if (isOpen) {
|
|
299
|
+
providerContext.onOpen();
|
|
300
|
+
(void 0).dispatchEvent(new CustomEvent(TOOLTIP_OPEN));
|
|
301
|
+
} else providerContext.onClose();
|
|
302
|
+
});
|
|
303
|
+
const wasOpenDelayedRef = ref(false);
|
|
304
|
+
const trigger = ref();
|
|
305
|
+
const stateAttribute = computed(() => {
|
|
306
|
+
if (!open.value) return "closed";
|
|
307
|
+
return wasOpenDelayedRef.value ? "delayed-open" : "instant-open";
|
|
308
|
+
});
|
|
309
|
+
const { start: startTimer, stop: clearTimer } = useTimeoutFn(() => {
|
|
310
|
+
wasOpenDelayedRef.value = true;
|
|
311
|
+
open.value = true;
|
|
312
|
+
}, delayDuration, { immediate: false });
|
|
313
|
+
function handleOpen() {
|
|
314
|
+
clearTimer();
|
|
315
|
+
wasOpenDelayedRef.value = false;
|
|
316
|
+
open.value = true;
|
|
317
|
+
}
|
|
318
|
+
function handleClose() {
|
|
319
|
+
clearTimer();
|
|
320
|
+
open.value = false;
|
|
321
|
+
}
|
|
322
|
+
function handleDelayedOpen() {
|
|
323
|
+
startTimer();
|
|
324
|
+
}
|
|
325
|
+
provideTooltipRootContext({
|
|
326
|
+
contentId: "",
|
|
327
|
+
open,
|
|
328
|
+
stateAttribute,
|
|
329
|
+
trigger,
|
|
330
|
+
onTriggerChange(el) {
|
|
331
|
+
trigger.value = el;
|
|
332
|
+
},
|
|
333
|
+
onTriggerEnter() {
|
|
334
|
+
if (providerContext.isOpenDelayed.value) handleDelayedOpen();
|
|
335
|
+
else handleOpen();
|
|
336
|
+
},
|
|
337
|
+
onTriggerLeave() {
|
|
338
|
+
if (disableHoverableContent.value) handleClose();
|
|
339
|
+
else clearTimer();
|
|
340
|
+
},
|
|
341
|
+
onOpen: handleOpen,
|
|
342
|
+
onClose: handleClose,
|
|
343
|
+
disableHoverableContent,
|
|
344
|
+
disableClosingTrigger,
|
|
345
|
+
disabled: disableTooltip,
|
|
346
|
+
ignoreNonKeyboardFocus
|
|
347
|
+
});
|
|
348
|
+
return (_ctx, _cache) => {
|
|
349
|
+
return openBlock(), createBlock(unref(PopperRoot_default), null, {
|
|
350
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { open: unref(open) })]),
|
|
351
|
+
_: 3
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
var TooltipRoot_default = TooltipRoot_vue_vue_type_script_setup_true_lang_default;
|
|
357
|
+
var TooltipContentImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
358
|
+
__name: "TooltipContentImpl",
|
|
359
|
+
props: {
|
|
360
|
+
ariaLabel: {
|
|
361
|
+
type: String,
|
|
362
|
+
required: false
|
|
363
|
+
},
|
|
364
|
+
asChild: {
|
|
365
|
+
type: Boolean,
|
|
366
|
+
required: false,
|
|
367
|
+
default: void 0
|
|
368
|
+
},
|
|
369
|
+
as: {
|
|
370
|
+
type: null,
|
|
371
|
+
required: false
|
|
372
|
+
},
|
|
373
|
+
side: {
|
|
374
|
+
type: null,
|
|
375
|
+
required: false
|
|
376
|
+
},
|
|
377
|
+
sideOffset: {
|
|
378
|
+
type: Number,
|
|
379
|
+
required: false
|
|
380
|
+
},
|
|
381
|
+
align: {
|
|
382
|
+
type: null,
|
|
383
|
+
required: false
|
|
384
|
+
},
|
|
385
|
+
alignOffset: {
|
|
386
|
+
type: Number,
|
|
387
|
+
required: false
|
|
388
|
+
},
|
|
389
|
+
avoidCollisions: {
|
|
390
|
+
type: Boolean,
|
|
391
|
+
required: false,
|
|
392
|
+
default: void 0
|
|
393
|
+
},
|
|
394
|
+
collisionBoundary: {
|
|
395
|
+
type: null,
|
|
396
|
+
required: false
|
|
397
|
+
},
|
|
398
|
+
collisionPadding: {
|
|
399
|
+
type: [Number, Object],
|
|
400
|
+
required: false
|
|
401
|
+
},
|
|
402
|
+
arrowPadding: {
|
|
403
|
+
type: Number,
|
|
404
|
+
required: false
|
|
405
|
+
},
|
|
406
|
+
sticky: {
|
|
407
|
+
type: String,
|
|
408
|
+
required: false
|
|
409
|
+
},
|
|
410
|
+
hideWhenDetached: {
|
|
411
|
+
type: Boolean,
|
|
412
|
+
required: false,
|
|
413
|
+
default: void 0
|
|
414
|
+
},
|
|
415
|
+
positionStrategy: {
|
|
416
|
+
type: String,
|
|
417
|
+
required: false
|
|
418
|
+
},
|
|
419
|
+
updatePositionStrategy: {
|
|
420
|
+
type: String,
|
|
421
|
+
required: false
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
425
|
+
setup(__props, { emit: __emit }) {
|
|
426
|
+
const props = __props;
|
|
427
|
+
const emits = __emit;
|
|
428
|
+
const rootContext = injectTooltipRootContext();
|
|
429
|
+
const providerContext = injectTooltipProviderContext();
|
|
430
|
+
const { forwardRef, currentElement } = useForwardExpose();
|
|
431
|
+
const ariaLabel = computed(() => props.ariaLabel || currentElement.value?.textContent);
|
|
432
|
+
const popperContentProps = computed(() => {
|
|
433
|
+
const { ariaLabel: _, ...restProps } = props;
|
|
434
|
+
return defu(restProps, providerContext.content.value ?? {}, {
|
|
435
|
+
side: "top",
|
|
436
|
+
sideOffset: 0,
|
|
437
|
+
align: "center",
|
|
438
|
+
avoidCollisions: true,
|
|
439
|
+
collisionBoundary: [],
|
|
440
|
+
collisionPadding: 0,
|
|
441
|
+
arrowPadding: 0,
|
|
442
|
+
sticky: "partial",
|
|
443
|
+
hideWhenDetached: false
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
return (_ctx, _cache) => {
|
|
447
|
+
return openBlock(), createBlock(unref(DismissableLayer_default), {
|
|
448
|
+
"as-child": "",
|
|
449
|
+
"disable-outside-pointer-events": false,
|
|
450
|
+
onEscapeKeyDown: _cache[0] || (_cache[0] = ($event) => emits("escapeKeyDown", $event)),
|
|
451
|
+
onPointerDownOutside: _cache[1] || (_cache[1] = (event) => {
|
|
452
|
+
if (unref(rootContext).disableClosingTrigger.value && unref(rootContext).trigger.value?.contains(event.target)) event.preventDefault();
|
|
453
|
+
emits("pointerDownOutside", event);
|
|
454
|
+
}),
|
|
455
|
+
onFocusOutside: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
456
|
+
}, ["prevent"])),
|
|
457
|
+
onDismiss: _cache[3] || (_cache[3] = ($event) => unref(rootContext).onClose())
|
|
458
|
+
}, {
|
|
459
|
+
default: withCtx(() => [createVNode(unref(PopperContent_default), mergeProps({
|
|
460
|
+
ref: unref(forwardRef),
|
|
461
|
+
"data-state": unref(rootContext).stateAttribute.value
|
|
462
|
+
}, {
|
|
463
|
+
..._ctx.$attrs,
|
|
464
|
+
...popperContentProps.value
|
|
465
|
+
}, { style: {
|
|
466
|
+
"--reka-tooltip-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
467
|
+
"--reka-tooltip-content-available-width": "var(--reka-popper-available-width)",
|
|
468
|
+
"--reka-tooltip-content-available-height": "var(--reka-popper-available-height)",
|
|
469
|
+
"--reka-tooltip-trigger-width": "var(--reka-popper-anchor-width)",
|
|
470
|
+
"--reka-tooltip-trigger-height": "var(--reka-popper-anchor-height)"
|
|
471
|
+
} }), {
|
|
472
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createVNode(unref(VisuallyHidden_default), {
|
|
473
|
+
id: unref(rootContext).contentId,
|
|
474
|
+
role: "tooltip"
|
|
475
|
+
}, {
|
|
476
|
+
default: withCtx(() => [createTextVNode(toDisplayString(ariaLabel.value), 1)]),
|
|
477
|
+
_: 1
|
|
478
|
+
}, 8, ["id"])]),
|
|
479
|
+
_: 3
|
|
480
|
+
}, 16, ["data-state"])]),
|
|
481
|
+
_: 3
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
var TooltipContentImpl_default = TooltipContentImpl_vue_vue_type_script_setup_true_lang_default;
|
|
487
|
+
var TooltipContentHoverable_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
488
|
+
__name: "TooltipContentHoverable",
|
|
489
|
+
props: {
|
|
490
|
+
ariaLabel: {
|
|
491
|
+
type: String,
|
|
492
|
+
required: false
|
|
493
|
+
},
|
|
494
|
+
asChild: {
|
|
495
|
+
type: Boolean,
|
|
496
|
+
required: false
|
|
497
|
+
},
|
|
498
|
+
as: {
|
|
499
|
+
type: null,
|
|
500
|
+
required: false
|
|
501
|
+
},
|
|
502
|
+
side: {
|
|
503
|
+
type: null,
|
|
504
|
+
required: false
|
|
505
|
+
},
|
|
506
|
+
sideOffset: {
|
|
507
|
+
type: Number,
|
|
508
|
+
required: false
|
|
509
|
+
},
|
|
510
|
+
align: {
|
|
511
|
+
type: null,
|
|
512
|
+
required: false
|
|
513
|
+
},
|
|
514
|
+
alignOffset: {
|
|
515
|
+
type: Number,
|
|
516
|
+
required: false
|
|
517
|
+
},
|
|
518
|
+
avoidCollisions: {
|
|
519
|
+
type: Boolean,
|
|
520
|
+
required: false
|
|
521
|
+
},
|
|
522
|
+
collisionBoundary: {
|
|
523
|
+
type: null,
|
|
524
|
+
required: false
|
|
525
|
+
},
|
|
526
|
+
collisionPadding: {
|
|
527
|
+
type: [Number, Object],
|
|
528
|
+
required: false
|
|
529
|
+
},
|
|
530
|
+
arrowPadding: {
|
|
531
|
+
type: Number,
|
|
532
|
+
required: false
|
|
533
|
+
},
|
|
534
|
+
sticky: {
|
|
535
|
+
type: String,
|
|
536
|
+
required: false
|
|
537
|
+
},
|
|
538
|
+
hideWhenDetached: {
|
|
539
|
+
type: Boolean,
|
|
540
|
+
required: false
|
|
541
|
+
},
|
|
542
|
+
positionStrategy: {
|
|
543
|
+
type: String,
|
|
544
|
+
required: false
|
|
545
|
+
},
|
|
546
|
+
updatePositionStrategy: {
|
|
547
|
+
type: String,
|
|
548
|
+
required: false
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
setup(__props) {
|
|
552
|
+
const props = __props;
|
|
553
|
+
const forwardedProps = useForwardProps$1(props);
|
|
554
|
+
const { forwardRef, currentElement } = useForwardExpose();
|
|
555
|
+
const { trigger, onClose } = injectTooltipRootContext();
|
|
556
|
+
const providerContext = injectTooltipProviderContext();
|
|
557
|
+
const { isPointerInTransit, onPointerExit } = useGraceArea(trigger, currentElement);
|
|
558
|
+
providerContext.isPointerInTransitRef = isPointerInTransit;
|
|
559
|
+
onPointerExit(() => {
|
|
560
|
+
onClose();
|
|
561
|
+
});
|
|
562
|
+
return (_ctx, _cache) => {
|
|
563
|
+
return openBlock(), createBlock(TooltipContentImpl_default, mergeProps({ ref: unref(forwardRef) }, unref(forwardedProps)), {
|
|
564
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
565
|
+
_: 3
|
|
566
|
+
}, 16);
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
var TooltipContentHoverable_default = TooltipContentHoverable_vue_vue_type_script_setup_true_lang_default;
|
|
571
|
+
var TooltipContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
572
|
+
__name: "TooltipContent",
|
|
573
|
+
props: {
|
|
574
|
+
forceMount: {
|
|
575
|
+
type: Boolean,
|
|
576
|
+
required: false
|
|
577
|
+
},
|
|
578
|
+
ariaLabel: {
|
|
579
|
+
type: String,
|
|
580
|
+
required: false
|
|
581
|
+
},
|
|
582
|
+
asChild: {
|
|
583
|
+
type: Boolean,
|
|
584
|
+
required: false
|
|
585
|
+
},
|
|
586
|
+
as: {
|
|
587
|
+
type: null,
|
|
588
|
+
required: false
|
|
589
|
+
},
|
|
590
|
+
side: {
|
|
591
|
+
type: null,
|
|
592
|
+
required: false
|
|
593
|
+
},
|
|
594
|
+
sideOffset: {
|
|
595
|
+
type: Number,
|
|
596
|
+
required: false
|
|
597
|
+
},
|
|
598
|
+
align: {
|
|
599
|
+
type: null,
|
|
600
|
+
required: false
|
|
601
|
+
},
|
|
602
|
+
alignOffset: {
|
|
603
|
+
type: Number,
|
|
604
|
+
required: false
|
|
605
|
+
},
|
|
606
|
+
avoidCollisions: {
|
|
607
|
+
type: Boolean,
|
|
608
|
+
required: false
|
|
609
|
+
},
|
|
610
|
+
collisionBoundary: {
|
|
611
|
+
type: null,
|
|
612
|
+
required: false
|
|
613
|
+
},
|
|
614
|
+
collisionPadding: {
|
|
615
|
+
type: [Number, Object],
|
|
616
|
+
required: false
|
|
617
|
+
},
|
|
618
|
+
arrowPadding: {
|
|
619
|
+
type: Number,
|
|
620
|
+
required: false
|
|
621
|
+
},
|
|
622
|
+
sticky: {
|
|
623
|
+
type: String,
|
|
624
|
+
required: false
|
|
625
|
+
},
|
|
626
|
+
hideWhenDetached: {
|
|
627
|
+
type: Boolean,
|
|
628
|
+
required: false
|
|
629
|
+
},
|
|
630
|
+
positionStrategy: {
|
|
631
|
+
type: String,
|
|
632
|
+
required: false
|
|
633
|
+
},
|
|
634
|
+
updatePositionStrategy: {
|
|
635
|
+
type: String,
|
|
636
|
+
required: false
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
640
|
+
setup(__props, { emit: __emit }) {
|
|
641
|
+
const props = __props;
|
|
642
|
+
const emits = __emit;
|
|
643
|
+
const rootContext = injectTooltipRootContext();
|
|
644
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
645
|
+
const { forwardRef } = useForwardExpose();
|
|
646
|
+
return (_ctx, _cache) => {
|
|
647
|
+
return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || unref(rootContext).open.value }, {
|
|
648
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(unref(rootContext).disableHoverableContent.value ? TooltipContentImpl_default : TooltipContentHoverable_default), mergeProps({ ref: unref(forwardRef) }, unref(forwarded)), {
|
|
649
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
650
|
+
_: 3
|
|
651
|
+
}, 16))]),
|
|
652
|
+
_: 3
|
|
653
|
+
}, 8, ["present"]);
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
var TooltipContent_default = TooltipContent_vue_vue_type_script_setup_true_lang_default;
|
|
658
|
+
var TooltipPortal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
659
|
+
__name: "TooltipPortal",
|
|
660
|
+
props: {
|
|
661
|
+
to: {
|
|
662
|
+
type: null,
|
|
663
|
+
required: false
|
|
664
|
+
},
|
|
665
|
+
disabled: {
|
|
666
|
+
type: Boolean,
|
|
667
|
+
required: false
|
|
668
|
+
},
|
|
669
|
+
defer: {
|
|
670
|
+
type: Boolean,
|
|
671
|
+
required: false
|
|
672
|
+
},
|
|
673
|
+
forceMount: {
|
|
674
|
+
type: Boolean,
|
|
675
|
+
required: false
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
setup(__props) {
|
|
679
|
+
const props = __props;
|
|
680
|
+
return (_ctx, _cache) => {
|
|
681
|
+
return openBlock(), createBlock(unref(Teleport_default), normalizeProps(guardReactiveProps(props)), {
|
|
682
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
683
|
+
_: 3
|
|
684
|
+
}, 16);
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
var TooltipPortal_default = TooltipPortal_vue_vue_type_script_setup_true_lang_default;
|
|
689
|
+
var TooltipTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
690
|
+
__name: "TooltipTrigger",
|
|
691
|
+
props: {
|
|
692
|
+
reference: {
|
|
693
|
+
type: null,
|
|
694
|
+
required: false
|
|
695
|
+
},
|
|
696
|
+
asChild: {
|
|
697
|
+
type: Boolean,
|
|
698
|
+
required: false
|
|
699
|
+
},
|
|
700
|
+
as: {
|
|
701
|
+
type: null,
|
|
702
|
+
required: false,
|
|
703
|
+
default: "button"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
setup(__props) {
|
|
707
|
+
const props = __props;
|
|
708
|
+
const rootContext = injectTooltipRootContext();
|
|
709
|
+
const providerContext = injectTooltipProviderContext();
|
|
710
|
+
rootContext.contentId ||= useId(void 0, "reka-tooltip-content");
|
|
711
|
+
const { forwardRef } = useForwardExpose();
|
|
712
|
+
const isPointerDown = ref(false);
|
|
713
|
+
const hasPointerMoveOpened = ref(false);
|
|
714
|
+
const tooltipListeners = computed(() => {
|
|
715
|
+
if (rootContext.disabled.value) return {};
|
|
716
|
+
return {
|
|
717
|
+
click: handleClick,
|
|
718
|
+
focus: handleFocus,
|
|
719
|
+
pointermove: handlePointerMove,
|
|
720
|
+
pointerleave: handlePointerLeave,
|
|
721
|
+
pointerdown: handlePointerDown,
|
|
722
|
+
blur: handleBlur
|
|
723
|
+
};
|
|
724
|
+
});
|
|
725
|
+
function handlePointerUp() {
|
|
726
|
+
setTimeout(() => {
|
|
727
|
+
isPointerDown.value = false;
|
|
728
|
+
}, 1);
|
|
729
|
+
}
|
|
730
|
+
function handlePointerDown() {
|
|
731
|
+
if (rootContext.open && !rootContext.disableClosingTrigger.value) rootContext.onClose();
|
|
732
|
+
isPointerDown.value = true;
|
|
733
|
+
(void 0).addEventListener("pointerup", handlePointerUp, { once: true });
|
|
734
|
+
}
|
|
735
|
+
function handlePointerMove(event) {
|
|
736
|
+
if (event.pointerType === "touch") return;
|
|
737
|
+
if (!hasPointerMoveOpened.value && !providerContext.isPointerInTransitRef.value) {
|
|
738
|
+
rootContext.onTriggerEnter();
|
|
739
|
+
hasPointerMoveOpened.value = true;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function handlePointerLeave() {
|
|
743
|
+
rootContext.onTriggerLeave();
|
|
744
|
+
hasPointerMoveOpened.value = false;
|
|
745
|
+
}
|
|
746
|
+
function handleFocus(event) {
|
|
747
|
+
if (isPointerDown.value) return;
|
|
748
|
+
if (rootContext.ignoreNonKeyboardFocus.value && !event.target.matches?.(":focus-visible")) return;
|
|
749
|
+
rootContext.onOpen();
|
|
750
|
+
}
|
|
751
|
+
function handleBlur() {
|
|
752
|
+
rootContext.onClose();
|
|
753
|
+
}
|
|
754
|
+
function handleClick() {
|
|
755
|
+
if (!rootContext.disableClosingTrigger.value) rootContext.onClose();
|
|
756
|
+
}
|
|
757
|
+
return (_ctx, _cache) => {
|
|
758
|
+
return openBlock(), createBlock(unref(PopperAnchor_default), {
|
|
759
|
+
"as-child": "",
|
|
760
|
+
reference: _ctx.reference
|
|
761
|
+
}, {
|
|
762
|
+
default: withCtx(() => [createVNode(unref(Primitive), mergeProps({
|
|
763
|
+
ref: unref(forwardRef),
|
|
764
|
+
"aria-describedby": unref(rootContext).open.value ? unref(rootContext).contentId : void 0,
|
|
765
|
+
"data-state": unref(rootContext).stateAttribute.value,
|
|
766
|
+
as: _ctx.as,
|
|
767
|
+
"as-child": props.asChild,
|
|
768
|
+
"data-grace-area-trigger": ""
|
|
769
|
+
}, toHandlers(tooltipListeners.value)), {
|
|
770
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
771
|
+
_: 3
|
|
772
|
+
}, 16, [
|
|
773
|
+
"aria-describedby",
|
|
774
|
+
"data-state",
|
|
775
|
+
"as",
|
|
776
|
+
"as-child"
|
|
777
|
+
])]),
|
|
778
|
+
_: 3
|
|
779
|
+
}, 8, ["reference"]);
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
var TooltipTrigger_default = TooltipTrigger_vue_vue_type_script_setup_true_lang_default;
|
|
784
|
+
const kbdKeysMap = {
|
|
785
|
+
meta: "",
|
|
786
|
+
ctrl: "",
|
|
787
|
+
alt: "",
|
|
788
|
+
win: "⊞",
|
|
789
|
+
command: "⌘",
|
|
790
|
+
shift: "⇧",
|
|
791
|
+
control: "⌃",
|
|
792
|
+
option: "⌥",
|
|
793
|
+
enter: "↵",
|
|
794
|
+
delete: "⌦",
|
|
795
|
+
backspace: "⌫",
|
|
796
|
+
escape: "Esc",
|
|
797
|
+
tab: "⇥",
|
|
798
|
+
capslock: "⇪",
|
|
799
|
+
arrowup: "↑",
|
|
800
|
+
arrowright: "→",
|
|
801
|
+
arrowdown: "↓",
|
|
802
|
+
arrowleft: "←",
|
|
803
|
+
pageup: "⇞",
|
|
804
|
+
pagedown: "⇟",
|
|
805
|
+
home: "↖",
|
|
806
|
+
end: "↘"
|
|
807
|
+
};
|
|
808
|
+
const _useKbd = () => {
|
|
809
|
+
const macOS = computed(() => false);
|
|
810
|
+
const kbdKeysSpecificMap = reactive({
|
|
811
|
+
meta: " ",
|
|
812
|
+
alt: " ",
|
|
813
|
+
ctrl: " "
|
|
814
|
+
});
|
|
815
|
+
function getKbdKey(value) {
|
|
816
|
+
if (!value) {
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
if (["meta", "alt", "ctrl"].includes(value)) {
|
|
820
|
+
return kbdKeysSpecificMap[value];
|
|
821
|
+
}
|
|
822
|
+
return kbdKeysMap[value] || value;
|
|
823
|
+
}
|
|
824
|
+
return {
|
|
825
|
+
macOS,
|
|
826
|
+
getKbdKey
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
const useKbd = /* @__PURE__ */ createSharedComposable(_useKbd);
|
|
830
|
+
const theme$1 = {
|
|
831
|
+
"base": "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase",
|
|
832
|
+
"variants": {
|
|
833
|
+
"color": {
|
|
834
|
+
"primary": "",
|
|
835
|
+
"secondary": "",
|
|
836
|
+
"success": "",
|
|
837
|
+
"info": "",
|
|
838
|
+
"warning": "",
|
|
839
|
+
"error": "",
|
|
840
|
+
"neutral": ""
|
|
841
|
+
},
|
|
842
|
+
"variant": {
|
|
843
|
+
"solid": "",
|
|
844
|
+
"outline": "",
|
|
845
|
+
"soft": "",
|
|
846
|
+
"subtle": ""
|
|
847
|
+
},
|
|
848
|
+
"size": {
|
|
849
|
+
"sm": "h-4 min-w-[16px] text-[10px]",
|
|
850
|
+
"md": "h-5 min-w-[20px] text-[11px]",
|
|
851
|
+
"lg": "h-6 min-w-[24px] text-[12px]"
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"compoundVariants": [
|
|
855
|
+
{
|
|
856
|
+
"color": "primary",
|
|
857
|
+
"variant": "solid",
|
|
858
|
+
"class": "text-inverted bg-primary"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"color": "secondary",
|
|
862
|
+
"variant": "solid",
|
|
863
|
+
"class": "text-inverted bg-secondary"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"color": "success",
|
|
867
|
+
"variant": "solid",
|
|
868
|
+
"class": "text-inverted bg-success"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"color": "info",
|
|
872
|
+
"variant": "solid",
|
|
873
|
+
"class": "text-inverted bg-info"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"color": "warning",
|
|
877
|
+
"variant": "solid",
|
|
878
|
+
"class": "text-inverted bg-warning"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"color": "error",
|
|
882
|
+
"variant": "solid",
|
|
883
|
+
"class": "text-inverted bg-error"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"color": "primary",
|
|
887
|
+
"variant": "outline",
|
|
888
|
+
"class": "ring ring-inset ring-primary/50 text-primary"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"color": "secondary",
|
|
892
|
+
"variant": "outline",
|
|
893
|
+
"class": "ring ring-inset ring-secondary/50 text-secondary"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"color": "success",
|
|
897
|
+
"variant": "outline",
|
|
898
|
+
"class": "ring ring-inset ring-success/50 text-success"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"color": "info",
|
|
902
|
+
"variant": "outline",
|
|
903
|
+
"class": "ring ring-inset ring-info/50 text-info"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"color": "warning",
|
|
907
|
+
"variant": "outline",
|
|
908
|
+
"class": "ring ring-inset ring-warning/50 text-warning"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"color": "error",
|
|
912
|
+
"variant": "outline",
|
|
913
|
+
"class": "ring ring-inset ring-error/50 text-error"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"color": "primary",
|
|
917
|
+
"variant": "soft",
|
|
918
|
+
"class": "text-primary bg-primary/10"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"color": "secondary",
|
|
922
|
+
"variant": "soft",
|
|
923
|
+
"class": "text-secondary bg-secondary/10"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"color": "success",
|
|
927
|
+
"variant": "soft",
|
|
928
|
+
"class": "text-success bg-success/10"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"color": "info",
|
|
932
|
+
"variant": "soft",
|
|
933
|
+
"class": "text-info bg-info/10"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"color": "warning",
|
|
937
|
+
"variant": "soft",
|
|
938
|
+
"class": "text-warning bg-warning/10"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"color": "error",
|
|
942
|
+
"variant": "soft",
|
|
943
|
+
"class": "text-error bg-error/10"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"color": "primary",
|
|
947
|
+
"variant": "subtle",
|
|
948
|
+
"class": "text-primary ring ring-inset ring-primary/25 bg-primary/10"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"color": "secondary",
|
|
952
|
+
"variant": "subtle",
|
|
953
|
+
"class": "text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"color": "success",
|
|
957
|
+
"variant": "subtle",
|
|
958
|
+
"class": "text-success ring ring-inset ring-success/25 bg-success/10"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"color": "info",
|
|
962
|
+
"variant": "subtle",
|
|
963
|
+
"class": "text-info ring ring-inset ring-info/25 bg-info/10"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"color": "warning",
|
|
967
|
+
"variant": "subtle",
|
|
968
|
+
"class": "text-warning ring ring-inset ring-warning/25 bg-warning/10"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"color": "error",
|
|
972
|
+
"variant": "subtle",
|
|
973
|
+
"class": "text-error ring ring-inset ring-error/25 bg-error/10"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"color": "neutral",
|
|
977
|
+
"variant": "solid",
|
|
978
|
+
"class": "text-inverted bg-inverted"
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"color": "neutral",
|
|
982
|
+
"variant": "outline",
|
|
983
|
+
"class": "ring ring-inset ring-accented text-default bg-default"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"color": "neutral",
|
|
987
|
+
"variant": "soft",
|
|
988
|
+
"class": "text-default bg-elevated"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"color": "neutral",
|
|
992
|
+
"variant": "subtle",
|
|
993
|
+
"class": "ring ring-inset ring-accented text-default bg-elevated"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"defaultVariants": {
|
|
997
|
+
"variant": "outline",
|
|
998
|
+
"color": "neutral",
|
|
999
|
+
"size": "md"
|
|
1000
|
+
}
|
|
1001
|
+
};
|
|
1002
|
+
const _sfc_main$1 = {
|
|
1003
|
+
__name: "UKbd",
|
|
1004
|
+
__ssrInlineRender: true,
|
|
1005
|
+
props: {
|
|
1006
|
+
as: { type: null, required: false, default: "kbd" },
|
|
1007
|
+
value: { type: null, required: false },
|
|
1008
|
+
color: { type: null, required: false },
|
|
1009
|
+
variant: { type: null, required: false },
|
|
1010
|
+
size: { type: null, required: false },
|
|
1011
|
+
class: { type: null, required: false },
|
|
1012
|
+
ui: { type: Object, required: false }
|
|
1013
|
+
},
|
|
1014
|
+
setup(__props) {
|
|
1015
|
+
const _props = __props;
|
|
1016
|
+
const props = useComponentProps("kbd", _props);
|
|
1017
|
+
const { getKbdKey } = useKbd();
|
|
1018
|
+
const appConfig = useAppConfig();
|
|
1019
|
+
const ui = computed(() => tv({ extend: tv(theme$1), ...appConfig.ui?.kbd || {} }));
|
|
1020
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
1021
|
+
_push(ssrRenderComponent(unref(Primitive), mergeProps({
|
|
1022
|
+
as: unref(props).as,
|
|
1023
|
+
class: ui.value({ class: [unref(props).ui?.base, unref(props).class], color: unref(props).color, variant: unref(props).variant, size: unref(props).size })
|
|
1024
|
+
}, _attrs), {
|
|
1025
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1026
|
+
if (_push2) {
|
|
1027
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, () => {
|
|
1028
|
+
_push2(`${ssrInterpolate(unref(getKbdKey)(unref(props).value))}`);
|
|
1029
|
+
}, _push2, _parent2, _scopeId);
|
|
1030
|
+
} else {
|
|
1031
|
+
return [
|
|
1032
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1033
|
+
createTextVNode(toDisplayString(unref(getKbdKey)(unref(props).value)), 1)
|
|
1034
|
+
])
|
|
1035
|
+
];
|
|
1036
|
+
}
|
|
1037
|
+
}),
|
|
1038
|
+
_: 3
|
|
1039
|
+
}, _parent));
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
1044
|
+
_sfc_main$1.setup = (props, ctx) => {
|
|
1045
|
+
const ssrContext = useSSRContext();
|
|
1046
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../node_modules/.pnpm/@nuxt+ui@4.9.0_fc567bb539fc22c96f06ec9e35286506/node_modules/@nuxt/ui/dist/runtime/components/Kbd.vue");
|
|
1047
|
+
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
1048
|
+
};
|
|
1049
|
+
const theme = {
|
|
1050
|
+
"slots": {
|
|
1051
|
+
"content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
|
|
1052
|
+
"arrow": "fill-bg stroke-default",
|
|
1053
|
+
"text": "truncate",
|
|
1054
|
+
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5",
|
|
1055
|
+
"kbdsSize": "sm"
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
1058
|
+
const _sfc_main = {
|
|
1059
|
+
__name: "UTooltip",
|
|
1060
|
+
__ssrInlineRender: true,
|
|
1061
|
+
props: {
|
|
1062
|
+
text: { type: String, required: false },
|
|
1063
|
+
kbds: { type: Array, required: false },
|
|
1064
|
+
content: { type: Object, required: false },
|
|
1065
|
+
arrow: { type: [Boolean, Object], required: false },
|
|
1066
|
+
portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
|
|
1067
|
+
reference: { type: null, required: false },
|
|
1068
|
+
class: { type: null, required: false },
|
|
1069
|
+
ui: { type: Object, required: false },
|
|
1070
|
+
defaultOpen: { type: Boolean, required: false },
|
|
1071
|
+
open: { type: Boolean, required: false },
|
|
1072
|
+
delayDuration: { type: Number, required: false },
|
|
1073
|
+
disableHoverableContent: { type: Boolean, required: false },
|
|
1074
|
+
disableClosingTrigger: { type: Boolean, required: false },
|
|
1075
|
+
disabled: { type: Boolean, required: false },
|
|
1076
|
+
ignoreNonKeyboardFocus: { type: Boolean, required: false }
|
|
1077
|
+
},
|
|
1078
|
+
emits: ["update:open"],
|
|
1079
|
+
setup(__props, { emit: __emit }) {
|
|
1080
|
+
const _props = __props;
|
|
1081
|
+
const emits = __emit;
|
|
1082
|
+
const slots = useSlots();
|
|
1083
|
+
const props = useComponentProps("tooltip", _props);
|
|
1084
|
+
const appConfig = useAppConfig();
|
|
1085
|
+
const providerContext = injectTooltipProviderContext();
|
|
1086
|
+
const rootProps = useForwardProps(reactivePick(props, "defaultOpen", "open", "delayDuration", "disableHoverableContent", "disableClosingTrigger", "ignoreNonKeyboardFocus"), emits);
|
|
1087
|
+
const portalProps = usePortal(toRef(() => props.portal));
|
|
1088
|
+
const contentProps = toRef(() => defu(props.content, providerContext.content.value, { side: "bottom", sideOffset: 8, collisionPadding: 8 }));
|
|
1089
|
+
const arrowProps = toRef(() => defu(props.arrow, { rounded: true }));
|
|
1090
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.tooltip || {} })({
|
|
1091
|
+
side: contentProps.value.side
|
|
1092
|
+
}));
|
|
1093
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
1094
|
+
_push(ssrRenderComponent(unref(TooltipRoot_default), mergeProps(unref(rootProps), {
|
|
1095
|
+
disabled: !(unref(props).text || unref(props).kbds?.length || !!slots.content) || unref(props).disabled
|
|
1096
|
+
}, _attrs), {
|
|
1097
|
+
default: withCtx(({ open }, _push2, _parent2, _scopeId) => {
|
|
1098
|
+
if (_push2) {
|
|
1099
|
+
if (!!slots.default || !!unref(props).reference) {
|
|
1100
|
+
_push2(ssrRenderComponent(unref(TooltipTrigger_default), mergeProps(_ctx.$attrs, {
|
|
1101
|
+
"as-child": "",
|
|
1102
|
+
reference: unref(props).reference,
|
|
1103
|
+
class: unref(props).class
|
|
1104
|
+
}), {
|
|
1105
|
+
default: withCtx((_, _push3, _parent3, _scopeId2) => {
|
|
1106
|
+
if (_push3) {
|
|
1107
|
+
ssrRenderSlot(_ctx.$slots, "default", { open }, null, _push3, _parent3, _scopeId2);
|
|
1108
|
+
} else {
|
|
1109
|
+
return [
|
|
1110
|
+
renderSlot(_ctx.$slots, "default", { open })
|
|
1111
|
+
];
|
|
1112
|
+
}
|
|
1113
|
+
}),
|
|
1114
|
+
_: 2
|
|
1115
|
+
}, _parent2, _scopeId));
|
|
1116
|
+
} else {
|
|
1117
|
+
_push2(`<!---->`);
|
|
1118
|
+
}
|
|
1119
|
+
_push2(ssrRenderComponent(unref(TooltipPortal_default), unref(portalProps), {
|
|
1120
|
+
default: withCtx((_, _push3, _parent3, _scopeId2) => {
|
|
1121
|
+
if (_push3) {
|
|
1122
|
+
_push3(ssrRenderComponent(unref(FieldGroupReset), null, {
|
|
1123
|
+
default: withCtx((_2, _push4, _parent4, _scopeId3) => {
|
|
1124
|
+
if (_push4) {
|
|
1125
|
+
_push4(ssrRenderComponent(unref(TooltipContent_default), mergeProps(contentProps.value, {
|
|
1126
|
+
"data-slot": "content",
|
|
1127
|
+
class: ui.value.content({ class: [!slots.default && unref(props).class, unref(props).ui?.content] })
|
|
1128
|
+
}), {
|
|
1129
|
+
default: withCtx((_3, _push5, _parent5, _scopeId4) => {
|
|
1130
|
+
if (_push5) {
|
|
1131
|
+
ssrRenderSlot(_ctx.$slots, "content", { ui: ui.value }, () => {
|
|
1132
|
+
if (unref(props).text) {
|
|
1133
|
+
_push5(`<span data-slot="text" class="${ssrRenderClass(ui.value.text({ class: unref(props).ui?.text }))}"${_scopeId4}>${ssrInterpolate(unref(props).text)}</span>`);
|
|
1134
|
+
} else {
|
|
1135
|
+
_push5(`<!---->`);
|
|
1136
|
+
}
|
|
1137
|
+
if (unref(props).kbds?.length) {
|
|
1138
|
+
_push5(`<span data-slot="kbds" class="${ssrRenderClass(ui.value.kbds({ class: unref(props).ui?.kbds }))}"${_scopeId4}><!--[-->`);
|
|
1139
|
+
ssrRenderList(unref(props).kbds, (kbd, index) => {
|
|
1140
|
+
_push5(ssrRenderComponent(_sfc_main$1, mergeProps({
|
|
1141
|
+
key: index,
|
|
1142
|
+
size: unref(props).ui?.kbdsSize || ui.value.kbdsSize()
|
|
1143
|
+
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, _parent5, _scopeId4));
|
|
1144
|
+
});
|
|
1145
|
+
_push5(`<!--]--></span>`);
|
|
1146
|
+
} else {
|
|
1147
|
+
_push5(`<!---->`);
|
|
1148
|
+
}
|
|
1149
|
+
}, _push5, _parent5, _scopeId4);
|
|
1150
|
+
if (!!unref(props).arrow) {
|
|
1151
|
+
_push5(ssrRenderComponent(unref(TooltipArrow_default), mergeProps(arrowProps.value, {
|
|
1152
|
+
"data-slot": "arrow",
|
|
1153
|
+
class: ui.value.arrow({ class: unref(props).ui?.arrow })
|
|
1154
|
+
}), null, _parent5, _scopeId4));
|
|
1155
|
+
} else {
|
|
1156
|
+
_push5(`<!---->`);
|
|
1157
|
+
}
|
|
1158
|
+
} else {
|
|
1159
|
+
return [
|
|
1160
|
+
renderSlot(_ctx.$slots, "content", { ui: ui.value }, () => [
|
|
1161
|
+
unref(props).text ? (openBlock(), createBlock("span", {
|
|
1162
|
+
key: 0,
|
|
1163
|
+
"data-slot": "text",
|
|
1164
|
+
class: ui.value.text({ class: unref(props).ui?.text })
|
|
1165
|
+
}, toDisplayString(unref(props).text), 3)) : createCommentVNode("", true),
|
|
1166
|
+
unref(props).kbds?.length ? (openBlock(), createBlock("span", {
|
|
1167
|
+
key: 1,
|
|
1168
|
+
"data-slot": "kbds",
|
|
1169
|
+
class: ui.value.kbds({ class: unref(props).ui?.kbds })
|
|
1170
|
+
}, [
|
|
1171
|
+
(openBlock(true), createBlock(Fragment, null, renderList(unref(props).kbds, (kbd, index) => {
|
|
1172
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
1173
|
+
key: index,
|
|
1174
|
+
size: unref(props).ui?.kbdsSize || ui.value.kbdsSize()
|
|
1175
|
+
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
|
|
1176
|
+
}), 128))
|
|
1177
|
+
], 2)) : createCommentVNode("", true)
|
|
1178
|
+
]),
|
|
1179
|
+
!!unref(props).arrow ? (openBlock(), createBlock(unref(TooltipArrow_default), mergeProps({ key: 0 }, arrowProps.value, {
|
|
1180
|
+
"data-slot": "arrow",
|
|
1181
|
+
class: ui.value.arrow({ class: unref(props).ui?.arrow })
|
|
1182
|
+
}), null, 16, ["class"])) : createCommentVNode("", true)
|
|
1183
|
+
];
|
|
1184
|
+
}
|
|
1185
|
+
}),
|
|
1186
|
+
_: 2
|
|
1187
|
+
}, _parent4, _scopeId3));
|
|
1188
|
+
} else {
|
|
1189
|
+
return [
|
|
1190
|
+
createVNode(unref(TooltipContent_default), mergeProps(contentProps.value, {
|
|
1191
|
+
"data-slot": "content",
|
|
1192
|
+
class: ui.value.content({ class: [!slots.default && unref(props).class, unref(props).ui?.content] })
|
|
1193
|
+
}), {
|
|
1194
|
+
default: withCtx(() => [
|
|
1195
|
+
renderSlot(_ctx.$slots, "content", { ui: ui.value }, () => [
|
|
1196
|
+
unref(props).text ? (openBlock(), createBlock("span", {
|
|
1197
|
+
key: 0,
|
|
1198
|
+
"data-slot": "text",
|
|
1199
|
+
class: ui.value.text({ class: unref(props).ui?.text })
|
|
1200
|
+
}, toDisplayString(unref(props).text), 3)) : createCommentVNode("", true),
|
|
1201
|
+
unref(props).kbds?.length ? (openBlock(), createBlock("span", {
|
|
1202
|
+
key: 1,
|
|
1203
|
+
"data-slot": "kbds",
|
|
1204
|
+
class: ui.value.kbds({ class: unref(props).ui?.kbds })
|
|
1205
|
+
}, [
|
|
1206
|
+
(openBlock(true), createBlock(Fragment, null, renderList(unref(props).kbds, (kbd, index) => {
|
|
1207
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
1208
|
+
key: index,
|
|
1209
|
+
size: unref(props).ui?.kbdsSize || ui.value.kbdsSize()
|
|
1210
|
+
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
|
|
1211
|
+
}), 128))
|
|
1212
|
+
], 2)) : createCommentVNode("", true)
|
|
1213
|
+
]),
|
|
1214
|
+
!!unref(props).arrow ? (openBlock(), createBlock(unref(TooltipArrow_default), mergeProps({ key: 0 }, arrowProps.value, {
|
|
1215
|
+
"data-slot": "arrow",
|
|
1216
|
+
class: ui.value.arrow({ class: unref(props).ui?.arrow })
|
|
1217
|
+
}), null, 16, ["class"])) : createCommentVNode("", true)
|
|
1218
|
+
]),
|
|
1219
|
+
_: 3
|
|
1220
|
+
}, 16, ["class"])
|
|
1221
|
+
];
|
|
1222
|
+
}
|
|
1223
|
+
}),
|
|
1224
|
+
_: 2
|
|
1225
|
+
}, _parent3, _scopeId2));
|
|
1226
|
+
} else {
|
|
1227
|
+
return [
|
|
1228
|
+
createVNode(unref(FieldGroupReset), null, {
|
|
1229
|
+
default: withCtx(() => [
|
|
1230
|
+
createVNode(unref(TooltipContent_default), mergeProps(contentProps.value, {
|
|
1231
|
+
"data-slot": "content",
|
|
1232
|
+
class: ui.value.content({ class: [!slots.default && unref(props).class, unref(props).ui?.content] })
|
|
1233
|
+
}), {
|
|
1234
|
+
default: withCtx(() => [
|
|
1235
|
+
renderSlot(_ctx.$slots, "content", { ui: ui.value }, () => [
|
|
1236
|
+
unref(props).text ? (openBlock(), createBlock("span", {
|
|
1237
|
+
key: 0,
|
|
1238
|
+
"data-slot": "text",
|
|
1239
|
+
class: ui.value.text({ class: unref(props).ui?.text })
|
|
1240
|
+
}, toDisplayString(unref(props).text), 3)) : createCommentVNode("", true),
|
|
1241
|
+
unref(props).kbds?.length ? (openBlock(), createBlock("span", {
|
|
1242
|
+
key: 1,
|
|
1243
|
+
"data-slot": "kbds",
|
|
1244
|
+
class: ui.value.kbds({ class: unref(props).ui?.kbds })
|
|
1245
|
+
}, [
|
|
1246
|
+
(openBlock(true), createBlock(Fragment, null, renderList(unref(props).kbds, (kbd, index) => {
|
|
1247
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
1248
|
+
key: index,
|
|
1249
|
+
size: unref(props).ui?.kbdsSize || ui.value.kbdsSize()
|
|
1250
|
+
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
|
|
1251
|
+
}), 128))
|
|
1252
|
+
], 2)) : createCommentVNode("", true)
|
|
1253
|
+
]),
|
|
1254
|
+
!!unref(props).arrow ? (openBlock(), createBlock(unref(TooltipArrow_default), mergeProps({ key: 0 }, arrowProps.value, {
|
|
1255
|
+
"data-slot": "arrow",
|
|
1256
|
+
class: ui.value.arrow({ class: unref(props).ui?.arrow })
|
|
1257
|
+
}), null, 16, ["class"])) : createCommentVNode("", true)
|
|
1258
|
+
]),
|
|
1259
|
+
_: 3
|
|
1260
|
+
}, 16, ["class"])
|
|
1261
|
+
]),
|
|
1262
|
+
_: 3
|
|
1263
|
+
})
|
|
1264
|
+
];
|
|
1265
|
+
}
|
|
1266
|
+
}),
|
|
1267
|
+
_: 2
|
|
1268
|
+
}, _parent2, _scopeId));
|
|
1269
|
+
} else {
|
|
1270
|
+
return [
|
|
1271
|
+
!!slots.default || !!unref(props).reference ? (openBlock(), createBlock(unref(TooltipTrigger_default), mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
1272
|
+
"as-child": "",
|
|
1273
|
+
reference: unref(props).reference,
|
|
1274
|
+
class: unref(props).class
|
|
1275
|
+
}), {
|
|
1276
|
+
default: withCtx(() => [
|
|
1277
|
+
renderSlot(_ctx.$slots, "default", { open })
|
|
1278
|
+
]),
|
|
1279
|
+
_: 2
|
|
1280
|
+
}, 1040, ["reference", "class"])) : createCommentVNode("", true),
|
|
1281
|
+
createVNode(unref(TooltipPortal_default), unref(portalProps), {
|
|
1282
|
+
default: withCtx(() => [
|
|
1283
|
+
createVNode(unref(FieldGroupReset), null, {
|
|
1284
|
+
default: withCtx(() => [
|
|
1285
|
+
createVNode(unref(TooltipContent_default), mergeProps(contentProps.value, {
|
|
1286
|
+
"data-slot": "content",
|
|
1287
|
+
class: ui.value.content({ class: [!slots.default && unref(props).class, unref(props).ui?.content] })
|
|
1288
|
+
}), {
|
|
1289
|
+
default: withCtx(() => [
|
|
1290
|
+
renderSlot(_ctx.$slots, "content", { ui: ui.value }, () => [
|
|
1291
|
+
unref(props).text ? (openBlock(), createBlock("span", {
|
|
1292
|
+
key: 0,
|
|
1293
|
+
"data-slot": "text",
|
|
1294
|
+
class: ui.value.text({ class: unref(props).ui?.text })
|
|
1295
|
+
}, toDisplayString(unref(props).text), 3)) : createCommentVNode("", true),
|
|
1296
|
+
unref(props).kbds?.length ? (openBlock(), createBlock("span", {
|
|
1297
|
+
key: 1,
|
|
1298
|
+
"data-slot": "kbds",
|
|
1299
|
+
class: ui.value.kbds({ class: unref(props).ui?.kbds })
|
|
1300
|
+
}, [
|
|
1301
|
+
(openBlock(true), createBlock(Fragment, null, renderList(unref(props).kbds, (kbd, index) => {
|
|
1302
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
1303
|
+
key: index,
|
|
1304
|
+
size: unref(props).ui?.kbdsSize || ui.value.kbdsSize()
|
|
1305
|
+
}, { ref_for: true }, typeof kbd === "string" ? { value: kbd } : kbd), null, 16, ["size"]);
|
|
1306
|
+
}), 128))
|
|
1307
|
+
], 2)) : createCommentVNode("", true)
|
|
1308
|
+
]),
|
|
1309
|
+
!!unref(props).arrow ? (openBlock(), createBlock(unref(TooltipArrow_default), mergeProps({ key: 0 }, arrowProps.value, {
|
|
1310
|
+
"data-slot": "arrow",
|
|
1311
|
+
class: ui.value.arrow({ class: unref(props).ui?.arrow })
|
|
1312
|
+
}), null, 16, ["class"])) : createCommentVNode("", true)
|
|
1313
|
+
]),
|
|
1314
|
+
_: 3
|
|
1315
|
+
}, 16, ["class"])
|
|
1316
|
+
]),
|
|
1317
|
+
_: 3
|
|
1318
|
+
})
|
|
1319
|
+
]),
|
|
1320
|
+
_: 3
|
|
1321
|
+
}, 16)
|
|
1322
|
+
];
|
|
1323
|
+
}
|
|
1324
|
+
}),
|
|
1325
|
+
_: 3
|
|
1326
|
+
}, _parent));
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
1330
|
+
const _sfc_setup = _sfc_main.setup;
|
|
1331
|
+
_sfc_main.setup = (props, ctx) => {
|
|
1332
|
+
const ssrContext = useSSRContext();
|
|
1333
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../node_modules/.pnpm/@nuxt+ui@4.9.0_fc567bb539fc22c96f06ec9e35286506/node_modules/@nuxt/ui/dist/runtime/components/Tooltip.vue");
|
|
1334
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
export { _sfc_main as _, useGraceArea as u };
|
|
1338
|
+
//# sourceMappingURL=Tooltip-DkxwLaX6.mjs.map
|