@birdapi/velinstyle 1.1.0 → 1.2.1
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/README.de.md +89 -161
- package/README.md +187 -119
- package/cli/blueprint.js +98 -5
- package/cli/blueprints/app-chrome.html +18 -0
- package/cli/blueprints/benefits-grid.html +9 -0
- package/cli/blueprints/bottom-nav-mobile.html +2 -1
- package/cli/blueprints/cookie-consent.html +1 -1
- package/cli/blueprints/cta-band.html +6 -0
- package/cli/blueprints/faq-section.html +18 -0
- package/cli/blueprints/filter-bar.html +4 -4
- package/cli/blueprints/form-contact.html +6 -5
- package/cli/blueprints/hero-section.html +3 -3
- package/cli/blueprints/notification-center.html +1 -1
- package/cli/blueprints/onboarding.html +2 -1
- package/cli/blueprints/ops-console.html +29 -0
- package/cli/blueprints/pricing-band.html +37 -0
- package/cli/blueprints/process-steps.html +10 -0
- package/cli/blueprints/services-grid.html +9 -0
- package/cli/blueprints/settings-panel.html +8 -6
- package/cli/blueprints/split-hero.html +25 -0
- package/cli/blueprints/testimonials.html +8 -0
- package/cli/blueprints/trust-bar.html +10 -0
- package/cli/cli-manifest.json +81 -17
- package/cli/contrast-utils.js +97 -0
- package/cli/create.js +370 -0
- package/cli/docgen/extract-attributes.js +128 -10
- package/cli/docgen/extract-cli.js +3 -2
- package/cli/docgen/extract-components.js +61 -2
- package/cli/docgen/extract-utilities.js +10 -10
- package/cli/doctor.js +119 -0
- package/cli/index.js +560 -44
- package/cli/meta.js +84 -1
- package/cli/perf-audit.js +15 -2
- package/cli/prompt-engine.js +243 -0
- package/cli/review.js +268 -0
- package/cli/scaffold.js +119 -4
- package/cli/scanner-rules-data.js +7 -0
- package/cli/scanner.js +357 -4
- package/cli/serve.js +81 -0
- package/cli/skills.js +223 -0
- package/cli/transparency.js +221 -0
- package/cli/wc-api.js +89 -0
- package/cli/workflow.js +42 -0
- package/components/index.js +2 -0
- package/components/runtime/component-loaders.js +2 -0
- package/components/velin-accordion.js +62 -13
- package/components/velin-bottom-nav.js +10 -0
- package/components/velin-calendar.js +212 -0
- package/components/velin-command.js +18 -2
- package/components/velin-data-table.js +78 -1
- package/components/velin-dialog.js +4 -1
- package/components/velin-drawer.js +2 -4
- package/components/velin-file-dropzone.js +162 -0
- package/components/velin-icon.js +22 -1
- package/components/velin-lightbox.js +5 -3
- package/components/velin-modal.js +2 -4
- package/components/velin-search.js +1 -1
- package/components/velin-sheet.js +2 -4
- package/core/a11y/component-contracts.json +20 -3
- package/core/attributes/registry.js +14 -0
- package/core/meta/build.js +125 -5
- package/core/meta/design-constraints/contact.json +9 -0
- package/core/meta/design-constraints/faq.json +9 -0
- package/core/meta/design-constraints/hero.json +13 -0
- package/core/meta/knowledge/components.json +622 -0
- package/core/meta/knowledge/tokens.json +282 -0
- package/core/meta/pages/registry.json +294 -0
- package/core/meta/schema.js +13 -1
- package/core/meta/sections/registry.json +185 -0
- package/core/transparency/attach.js +74 -0
- package/core/transparency/claims.js +97 -0
- package/core/transparency/doctor.js +142 -0
- package/core/transparency/engine.js +75 -0
- package/core/transparency/export.js +98 -0
- package/core/transparency/index.js +30 -0
- package/core/transparency/migrate.js +130 -0
- package/core/transparency/normalize.js +125 -0
- package/core/transparency/policy.js +105 -0
- package/core/transparency/providers.js +235 -0
- package/core/transparency/registry.js +104 -0
- package/core/transparency/renderer.js +111 -0
- package/core/transparency/reporter.js +113 -0
- package/core/transparency/validator.js +112 -0
- package/dist/chunks/attach-H2ZSEAE6.js +365 -0
- package/dist/chunks/{attributes-STYCS3O5.js → attributes-A423NX5J.js} +3 -3
- package/dist/chunks/attributes-DZCXX2RZ.js +404 -0
- package/dist/chunks/{attributes-353XDOAX.js → attributes-F6UPIEVP.js} +1 -1
- package/dist/chunks/{attributes-ADOKLKA7.js → attributes-GLYXGGAL.js} +3 -3
- package/dist/chunks/{attributes-TPANLMLF.js → attributes-UFTYOSAU.js} +3 -3
- package/dist/chunks/attributes-XGLXLR2T.js +391 -0
- package/dist/chunks/attributes-YF4NI2QS.js +391 -0
- package/dist/chunks/browser-AUABBYUK.js +1544 -0
- package/dist/chunks/{chunk-RSMRR27R.js → chunk-2LSKX57P.js} +12 -10
- package/dist/chunks/{chunk-IEHKRARD.js → chunk-2TGCVDUL.js} +11 -9
- package/dist/chunks/{chunk-SRL6EWHP.js → chunk-5JWGUAPC.js} +17 -13
- package/dist/chunks/chunk-7YSO2OQ2.js +113 -0
- package/dist/chunks/{chunk-QVHYL3R4.js → chunk-BHR3ZG6U.js} +6 -6
- package/dist/chunks/chunk-CQMTCEI6.js +113 -0
- package/dist/chunks/{chunk-J472ERN2.js → chunk-JMSIHEYX.js} +15 -4
- package/dist/chunks/{chunk-MKZP2TBH.js → chunk-L7ZGUU4D.js} +2 -2
- package/dist/chunks/chunk-TUGIPKW5.js +113 -0
- package/dist/chunks/{highlight-GJHHV4KM.js → highlight-M2ELQNYK.js} +1 -1
- package/dist/chunks/runtime-entry.js +1 -1
- package/dist/chunks/{velin-accordion-FBIPAEXG.js → velin-accordion-WSY6BMLA.js} +64 -10
- package/dist/chunks/{velin-bottom-nav-7GEMPIM6.js → velin-bottom-nav-5RVRNGIP.js} +25 -0
- package/dist/chunks/{velin-bottom-nav-N3DFQR66.js → velin-bottom-nav-N5F4UO2I.js} +26 -1
- package/dist/chunks/velin-calendar-OFE6THUD.js +210 -0
- package/dist/chunks/velin-calendar-PGVNJTXK.js +217 -0
- package/dist/chunks/velin-calendar-XC7JRDSH.js +217 -0
- package/dist/chunks/{velin-code-block-CIAURDRJ.js → velin-code-block-ZGWG7JI5.js} +1 -1
- package/dist/chunks/{velin-combobox-NXS4QB4R.js → velin-combobox-56V2ZWT5.js} +1 -1
- package/dist/chunks/{velin-command-ONKO2A3J.js → velin-command-2HO2EKR6.js} +29 -2
- package/dist/chunks/{velin-command-TMLSRGIU.js → velin-command-ZJSLPK7B.js} +30 -3
- package/dist/chunks/{velin-copy-NYDBOKXT.js → velin-copy-XDQSV2XU.js} +1 -1
- package/dist/chunks/{velin-countdown-4ZVDGK4R.js → velin-countdown-V4Z5MA63.js} +1 -1
- package/dist/chunks/velin-data-table-UVR42UUM.js +372 -0
- package/dist/chunks/{velin-dialog-GTTZI564.js → velin-dialog-3YK2RPRV.js} +9 -2
- package/dist/chunks/{velin-dialog-ELFOZIXZ.js → velin-dialog-S24KAP4S.js} +3 -1
- package/dist/chunks/{velin-drawer-BE6TYN3H.js → velin-drawer-5PNU624J.js} +2 -4
- package/dist/chunks/{velin-drawer-DLL2GLT6.js → velin-drawer-CCM6S25D.js} +3 -5
- package/dist/chunks/{velin-email-RBX6ZR4S.js → velin-email-TNFONXPW.js} +1 -1
- package/dist/chunks/velin-file-dropzone-QRGF2JNA.js +154 -0
- package/dist/chunks/velin-file-dropzone-XIZMJ3NB.js +154 -0
- package/dist/chunks/{velin-icon-7M76DOPB.js → velin-icon-A6NCXGUK.js} +59 -17
- package/dist/chunks/{velin-icon-ZTSKUOVN.js → velin-icon-EC4B5XCM.js} +18 -5
- package/dist/chunks/{velin-lightbox-6E7CAATP.js → velin-lightbox-FFK4TUUP.js} +7 -6
- package/dist/chunks/{velin-lightbox-NXA3U2FM.js → velin-lightbox-P725FLTY.js} +5 -4
- package/dist/chunks/{velin-menubar-J66JXRWW.js → velin-menubar-6I2LM5HL.js} +1 -1
- package/dist/chunks/{velin-modal-5HYNNNUI.js → velin-modal-ICTMGRSU.js} +7 -8
- package/dist/chunks/{velin-modal-AEOTZ67O.js → velin-modal-JBNODH7D.js} +2 -4
- package/dist/chunks/{velin-popover-T72HK3DF.js → velin-popover-WZG2GHBL.js} +25 -4
- package/dist/chunks/{velin-rating-N4DI2XNL.js → velin-rating-QBBYRRBU.js} +1 -1
- package/dist/chunks/{velin-search-7B4KJ6TX.js → velin-search-B3L6J2RP.js} +2 -2
- package/dist/chunks/{velin-search-2XRQFBCS.js → velin-search-L3UG6NDQ.js} +5 -4
- package/dist/chunks/{velin-secure-field-6PV7RZDJ.js → velin-secure-field-DGYMP7OK.js} +1 -1
- package/dist/chunks/{velin-segmented-control-GYD5BIXQ.js → velin-segmented-control-P74GJPAR.js} +1 -1
- package/dist/chunks/{velin-sheet-R2Y67X6H.js → velin-sheet-M5GZZD7G.js} +2 -4
- package/dist/chunks/{velin-sheet-OUK6572T.js → velin-sheet-X7RXIWKV.js} +3 -5
- package/dist/chunks/{velin-stepper-X54WGHDG.js → velin-stepper-4YQJUHPC.js} +12 -5
- package/dist/chunks/{velin-toast-OMMOA2DK.js → velin-toast-UG5LWTG2.js} +5 -1
- package/dist/chunks/{velin-tooltip-BDHGRTQB.js → velin-tooltip-ZDH5SDLU.js} +1 -1
- package/dist/llms.txt +31 -8
- package/dist/search-index.json +182 -10
- package/dist/velin-agent.json +3980 -31
- package/dist/velinstyle-components.iife.js +1622 -286
- package/dist/velinstyle-components.js +1624 -286
- package/dist/velinstyle-components.min.js +262 -114
- package/dist/velinstyle.css +412 -67
- package/dist/velinstyle.d.ts +2 -0
- package/dist/velinstyle.min.css +1 -1
- package/package.json +21 -6
- package/packages/skill-engine/README.md +24 -0
- package/packages/skill-engine/package.json +7 -0
- package/packages/skill-engine/src/catalog.js +29 -0
- package/packages/skill-engine/src/index.js +5 -0
- package/packages/skill-engine/src/install.js +69 -0
- package/packages/skill-engine/src/registry.js +27 -0
- package/packages/skill-engine/src/resolve.js +68 -0
- package/packages/skill-engine/src/validate.js +40 -0
- package/packages/velinstyle-skills/README.md +6 -0
- package/packages/velinstyle-skills/adapter.json +8 -0
- package/packages/velinstyle-skills/bundles/landing-starter.bundle.yaml +12 -0
- package/packages/velinstyle-skills/bundles/review-suite.bundle.yaml +11 -0
- package/packages/velinstyle-skills/catalog.json +1004 -0
- package/packages/velinstyle-skills/graphs/component-ship.graph.yaml +14 -0
- package/packages/velinstyle-skills/graphs/landingpage.graph.yaml +21 -0
- package/packages/velinstyle-skills/graphs/release-gate.graph.yaml +15 -0
- package/packages/velinstyle-skills/index.js +22 -0
- package/packages/velinstyle-skills/package.json +7 -0
- package/packages/velinstyle-skills/packs/accessibility.pack.yaml +9 -0
- package/packages/velinstyle-skills/packs/design.pack.yaml +10 -0
- package/packages/velinstyle-skills/packs/documentation.pack.yaml +8 -0
- package/packages/velinstyle-skills/packs/enterprise.pack.yaml +10 -0
- package/packages/velinstyle-skills/packs/frontend.pack.yaml +10 -0
- package/packages/velinstyle-skills/packs/review.pack.yaml +9 -0
- package/packages/velinstyle-skills/projects/admin-panel.project.yaml +12 -0
- package/packages/velinstyle-skills/projects/blog.project.yaml +11 -0
- package/packages/velinstyle-skills/projects/documentation-portal.project.yaml +13 -0
- package/packages/velinstyle-skills/projects/ecommerce-shop.project.yaml +12 -0
- package/packages/velinstyle-skills/projects/landing-page.project.yaml +12 -0
- package/packages/velinstyle-skills/projects/laravel-dashboard.project.yaml +12 -0
- package/packages/velinstyle-skills/projects/marketing-website.project.yaml +14 -0
- package/packages/velinstyle-skills/projects/portfolio.project.yaml +12 -0
- package/packages/velinstyle-skills/registry.json +142 -0
- package/packages/velinstyle-skills/scripts/generate-assets.mjs +163 -0
- package/packages/velinstyle-skills/skills/velin-a11y-focus-keyboard/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-a11y-page-checklist/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-a11y-scan-fix/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-ai-agent-briefing/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-ai-plan-scaffold-review/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-ai-skill-authoring/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-components-accessibility-map/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-components-api-contract/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-components-recipe/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-components-select-compose/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-design-hero-compose/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-design-section-rhythm/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-design-surface-roles/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-dev-component-wire/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-dev-page-scaffold/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-dev-plan-first/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-docs-component-guide/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-docs-generate-api/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-dx-doctor-setup/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-dx-project-init/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-migration-legacy-wc/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-migration-prefix-classes/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-motion-reduced-safe/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-motion-reveal-feedback/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-perf-audit-fix/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-perf-runtime-tree-shake/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-release-changelog-sync/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-release-meta-rebuild/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-review-conversion-hero/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-review-page-gate/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-review-seo-meta/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-security-sanitize-html/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-security-scan-pii/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-testing-a11y-suite/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-testing-visual-smoke/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-themes-apply-token/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-themes-contrast-check/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-utilities-layout-apply/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-utilities-prefix-fix/SKILL.md +57 -0
- package/packages/velinstyle-skills/skills/velin-utilities-token-map/SKILL.md +57 -0
- package/packages/velinstyle-skills/templates/admin-panel.template.yaml +12 -0
- package/packages/velinstyle-skills/templates/blog.template.yaml +12 -0
- package/packages/velinstyle-skills/templates/documentation-portal.template.yaml +12 -0
- package/packages/velinstyle-skills/templates/ecommerce-shop.template.yaml +13 -0
- package/packages/velinstyle-skills/templates/landing-page.template.yaml +12 -0
- package/packages/velinstyle-skills/templates/laravel-dashboard.template.yaml +11 -0
- package/packages/velinstyle-skills/templates/marketing-website.template.yaml +13 -0
- package/packages/velinstyle-skills/templates/portfolio.template.yaml +12 -0
- package/schemas/component-knowledge.schema.json +33 -0
- package/schemas/design-constraint.schema.json +15 -0
- package/schemas/design-intelligence.schema.json +19 -0
- package/schemas/design-rule.schema.json +19 -0
- package/schemas/page-template.schema.json +24 -0
- package/schemas/review-report.schema.json +36 -0
- package/schemas/section.schema.json +22 -0
- package/schemas/skill-bundle.schema.json +15 -0
- package/schemas/skill-graph.schema.json +25 -0
- package/schemas/skill-pack.schema.json +14 -0
- package/schemas/skill-project.schema.json +16 -0
- package/schemas/skill-record.schema.json +27 -0
- package/schemas/skill-registry.schema.json +17 -0
- package/schemas/skill-template.schema.json +17 -0
- package/schemas/token-graph.schema.json +27 -0
- package/schemas/utility.schema.json +166 -0
- package/src/components/alert.css +22 -1
- package/src/components/calendar-dropzone.css +5 -0
- package/src/components/transparency.css +138 -0
- package/src/layout/app-shell.css +33 -0
- package/src/tokens/shadow.css +13 -0
- package/src/utilities/border.css +2 -0
- package/src/utilities/display.css +1 -24
- package/src/utilities/responsive.css +16 -1
- package/src/utilities/spacing.css +32 -0
- package/src/velinstyle.css +3 -0
- package/dist/chunks/attributes-3BZLI7XF.js +0 -364
- package/dist/chunks/attributes-4N5JP4CG.js +0 -364
- package/dist/chunks/attributes-5Q2WXGRC.js +0 -374
- package/dist/chunks/attributes-AIR7SVLK.js +0 -364
- package/dist/chunks/attributes-BGRN5XZO.js +0 -364
- package/dist/chunks/attributes-BVSQAYLR.js +0 -364
- package/dist/chunks/attributes-CDYFUY7Y.js +0 -364
- package/dist/chunks/attributes-JMYJZBPE.js +0 -364
- package/dist/chunks/attributes-R5JY3X4O.js +0 -374
- package/dist/chunks/attributes-TNSPQTHX.js +0 -374
- package/dist/chunks/chunk-2354NEBP.js +0 -109
- package/dist/chunks/chunk-2VNA7G7S.js +0 -109
- package/dist/chunks/chunk-AQLRJSGG.js +0 -109
- package/dist/chunks/chunk-EWPSDMQT.js +0 -109
- package/dist/chunks/chunk-LA7264K4.js +0 -85
- package/dist/chunks/chunk-QTJJ3DPO.js +0 -109
- package/dist/chunks/chunk-RZQVWFHW.js +0 -109
- package/dist/chunks/chunk-U4XHMZ7D.js +0 -109
- package/dist/chunks/chunk-V5YIUA6G.js +0 -109
- package/dist/chunks/chunk-XIET2VSZ.js +0 -109
- package/dist/chunks/chunk-XYLJ2GCB.js +0 -205
- package/dist/chunks/chunk-ZPSPKUYD.js +0 -109
- package/dist/chunks/highlight-XTHRKBA3.js +0 -37
- package/dist/chunks/velin-bottom-nav-2N2TYWOF.js +0 -86
- package/dist/chunks/velin-carousel-Y5VCOABZ.js +0 -213
- package/dist/chunks/velin-code-block-ASUBTAQV.js +0 -119
- package/dist/chunks/velin-code-block-TSUKPY4C.js +0 -123
- package/dist/chunks/velin-code-block-Y6CM726Q.js +0 -119
- package/dist/chunks/velin-combobox-2KDTCQ7N.js +0 -155
- package/dist/chunks/velin-command-M7RNHUPR.js +0 -136
- package/dist/chunks/velin-copy-T5KDTDXP.js +0 -81
- package/dist/chunks/velin-countdown-5XSTN3BH.js +0 -101
- package/dist/chunks/velin-counter-ISCTEAHI.js +0 -118
- package/dist/chunks/velin-dialog-D2GUHSCD.js +0 -144
- package/dist/chunks/velin-dialog-IJLFDXAJ.js +0 -144
- package/dist/chunks/velin-dialog-TNS3WXMB.js +0 -144
- package/dist/chunks/velin-drawer-MJS6WCF7.js +0 -130
- package/dist/chunks/velin-email-N5B5ZYTE.js +0 -90
- package/dist/chunks/velin-icon-KZO3IEHG.js +0 -164
- package/dist/chunks/velin-lightbox-I75U6JF4.js +0 -140
- package/dist/chunks/velin-lightbox-QOTB4PRL.js +0 -140
- package/dist/chunks/velin-lightbox-UCD6N7HF.js +0 -140
- package/dist/chunks/velin-live-dot-XHUZCIDZ.js +0 -67
- package/dist/chunks/velin-menubar-SFEXJE56.js +0 -86
- package/dist/chunks/velin-modal-2HOBXE6F.js +0 -176
- package/dist/chunks/velin-modal-GLI2XZZB.js +0 -176
- package/dist/chunks/velin-popover-EXINRIGJ.js +0 -145
- package/dist/chunks/velin-popover-OXX7MRZ6.js +0 -145
- package/dist/chunks/velin-popover-YKCCROJG.js +0 -145
- package/dist/chunks/velin-rating-XRQJV4LO.js +0 -91
- package/dist/chunks/velin-scroll-top-F2FCZNYD.js +0 -58
- package/dist/chunks/velin-search-4YHJWYSS.js +0 -556
- package/dist/chunks/velin-search-LWHY23Q5.js +0 -474
- package/dist/chunks/velin-secure-field-H7FSBUJW.js +0 -95
- package/dist/chunks/velin-segmented-control-PQX6LKOJ.js +0 -109
- package/dist/chunks/velin-sheet-3OGI4HD7.js +0 -119
- package/dist/chunks/velin-sparkline-GVEANJVW.js +0 -184
- package/dist/chunks/velin-sparkline-KDA3GQAN.js +0 -162
- package/dist/chunks/velin-stepper-2ZIHLKGM.js +0 -141
- package/dist/chunks/velin-stepper-FYEUEWE6.js +0 -141
- package/dist/chunks/velin-stepper-wc-QU3KRVQR.js +0 -133
- package/dist/chunks/velin-theme-toggle-BNNS7WLV.js +0 -285
- package/dist/chunks/velin-theme-toggle-NO7V4TWI.js +0 -285
- package/dist/chunks/velin-theme-toggle-QELCJM2Q.js +0 -291
- package/dist/chunks/velin-toast-RCZ4CSUC.js +0 -109
- package/dist/chunks/velin-toast-WEUBTJG6.js +0 -109
- package/dist/chunks/velin-tooltip-664IOHZA.js +0 -112
- package/dist/chunks/velin-tooltip-wc-LXDVT6DE.js +0 -103
- package/dist/chunks/worker-client-R6DBYPFT.js +0 -46
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
disconnectInViewObserver,
|
|
3
|
-
observeInView
|
|
4
|
-
} from "./chunk-7MCGPHVC.js";
|
|
5
|
-
import {
|
|
6
|
-
lazyDefine
|
|
7
|
-
} from "./chunk-2354NEBP.js";
|
|
8
|
-
|
|
9
|
-
// core/motion/effects.js
|
|
10
|
-
var VISIBLE_CLASS = "velin-in-view";
|
|
11
|
-
var EFFECT_MAP = {
|
|
12
|
-
reveal: ["velin-animate-on-scroll"],
|
|
13
|
-
fade: ["velin-animate-on-scroll", "velin-animate-on-scroll--fade"],
|
|
14
|
-
slide: ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-up"],
|
|
15
|
-
"slide-up": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-up"],
|
|
16
|
-
"slide-down": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-down"],
|
|
17
|
-
"slide-left": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-left"],
|
|
18
|
-
"slide-right": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-right"],
|
|
19
|
-
scale: ["velin-animate-on-scroll", "velin-animate-on-scroll--scale"],
|
|
20
|
-
parallax: ["velin-parallax"],
|
|
21
|
-
"parallax-slow": ["velin-parallax", "velin-parallax--slow"],
|
|
22
|
-
hover: ["velin-animate-hover"],
|
|
23
|
-
"hover-lift": ["velin-animate-hover"],
|
|
24
|
-
flip: ["velin-animate-scale-in"],
|
|
25
|
-
blur: ["velin-animate-fade-in"]
|
|
26
|
-
};
|
|
27
|
-
function applyEffects(el, attrs = {}) {
|
|
28
|
-
const classes = /* @__PURE__ */ new Set();
|
|
29
|
-
for (const [name, value] of Object.entries(attrs)) {
|
|
30
|
-
if (value === "false" || value === "off") continue;
|
|
31
|
-
const mapped = EFFECT_MAP[name];
|
|
32
|
-
if (mapped) mapped.forEach((c) => classes.add(c));
|
|
33
|
-
if (name === "slide" && value && value !== "true" && value !== "") {
|
|
34
|
-
const key = `slide-${value}`;
|
|
35
|
-
EFFECT_MAP[key]?.forEach((c) => classes.add(c));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
classes.forEach((c) => el.classList.add(c));
|
|
39
|
-
if (!el.classList.contains("velin-animate-on-scroll") && attrs.reveal !== void 0) {
|
|
40
|
-
el.classList.add("velin-animate-on-scroll");
|
|
41
|
-
}
|
|
42
|
-
return [...classes];
|
|
43
|
-
}
|
|
44
|
-
function markVisible(el) {
|
|
45
|
-
el.classList.add(VISIBLE_CLASS);
|
|
46
|
-
el.dataset.velinVisible = "true";
|
|
47
|
-
}
|
|
48
|
-
function prefersReducedMotion() {
|
|
49
|
-
return typeof window !== "undefined" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// core/motion/stagger.js
|
|
53
|
-
var STAGGER_ATTR = "velin-stagger";
|
|
54
|
-
function applyStagger(listEl, value = "true") {
|
|
55
|
-
const base = value === "true" || value === "" ? 60 : parseInt(value, 10) || 60;
|
|
56
|
-
const children = [...listEl.children];
|
|
57
|
-
children.forEach((child, i) => {
|
|
58
|
-
child.style.setProperty("--velin-stagger-delay", `${i * base}ms`);
|
|
59
|
-
child.classList.add("velin-stagger-item");
|
|
60
|
-
});
|
|
61
|
-
listEl.classList.add("velin-stagger");
|
|
62
|
-
}
|
|
63
|
-
function enhanceStagger(root = document) {
|
|
64
|
-
root.querySelectorAll(`[${STAGGER_ATTR}]`).forEach((el) => {
|
|
65
|
-
if (el.dataset.velinStaggerDone) return;
|
|
66
|
-
el.dataset.velinStaggerDone = "1";
|
|
67
|
-
applyStagger(el, el.getAttribute(STAGGER_ATTR) || "true");
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// core/motion/scroll.js
|
|
72
|
-
function smoothScrollTo(target, options = {}) {
|
|
73
|
-
const reduced = typeof window !== "undefined" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
74
|
-
const el = typeof target === "string" ? document.querySelector(target) : target;
|
|
75
|
-
if (!el) return;
|
|
76
|
-
el.scrollIntoView({
|
|
77
|
-
behavior: reduced || options.instant ? "auto" : "smooth",
|
|
78
|
-
block: options.block || "start",
|
|
79
|
-
inline: options.inline || "nearest"
|
|
80
|
-
});
|
|
81
|
-
if (el.tabIndex < 0 && !el.hasAttribute("tabindex")) {
|
|
82
|
-
el.setAttribute("tabindex", "-1");
|
|
83
|
-
}
|
|
84
|
-
el.focus({ preventScroll: true });
|
|
85
|
-
}
|
|
86
|
-
function bindSmoothScroll(root = document) {
|
|
87
|
-
root.querySelectorAll("[velin-scroll]").forEach((link) => {
|
|
88
|
-
if (link.dataset.velinScrollBound) return;
|
|
89
|
-
link.dataset.velinScrollBound = "1";
|
|
90
|
-
link.addEventListener("click", (e) => {
|
|
91
|
-
const href = link.getAttribute("href");
|
|
92
|
-
if (!href || !href.startsWith("#")) return;
|
|
93
|
-
const target = document.querySelector(href);
|
|
94
|
-
if (!target) return;
|
|
95
|
-
e.preventDefault();
|
|
96
|
-
smoothScrollTo(target);
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// core/motion/index.js
|
|
102
|
-
var MOTION_ATTRS = ["velin-reveal", "velin-fade", "velin-slide", "velin-scale", "velin-parallax", "velin-hover"];
|
|
103
|
-
var teardownFns = [];
|
|
104
|
-
function initMotion(options = {}) {
|
|
105
|
-
const root = options.root || (typeof document !== "undefined" ? document : null);
|
|
106
|
-
if (!root) return () => {
|
|
107
|
-
};
|
|
108
|
-
const selector = options.selector || [
|
|
109
|
-
"[velin-reveal]",
|
|
110
|
-
"[velin-fade]",
|
|
111
|
-
"[velin-slide]",
|
|
112
|
-
"[velin-scale]",
|
|
113
|
-
"[velin-parallax]",
|
|
114
|
-
"[velin-hover]",
|
|
115
|
-
".velin-animate-on-scroll"
|
|
116
|
-
].join(",");
|
|
117
|
-
const elements = root.querySelectorAll(selector);
|
|
118
|
-
const reduced = prefersReducedMotion();
|
|
119
|
-
for (const el of elements) {
|
|
120
|
-
if (el.dataset.velinMotionInit) continue;
|
|
121
|
-
el.dataset.velinMotionInit = "1";
|
|
122
|
-
const attrs = {};
|
|
123
|
-
for (const name of MOTION_ATTRS) {
|
|
124
|
-
if (el.hasAttribute(name)) attrs[name.replace("velin-", "")] = el.getAttribute(name) || "true";
|
|
125
|
-
}
|
|
126
|
-
applyEffects(el, attrs);
|
|
127
|
-
if (reduced) {
|
|
128
|
-
markVisible(el);
|
|
129
|
-
continue;
|
|
130
|
-
}
|
|
131
|
-
const stop = observeInView(el, (node) => markVisible(node));
|
|
132
|
-
teardownFns.push(stop);
|
|
133
|
-
}
|
|
134
|
-
enhanceStagger(root);
|
|
135
|
-
bindSmoothScroll(root);
|
|
136
|
-
return () => {
|
|
137
|
-
teardownFns.forEach((fn) => fn());
|
|
138
|
-
teardownFns = [];
|
|
139
|
-
disconnectInViewObserver();
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// core/attributes/registry.js
|
|
144
|
-
var registry = /* @__PURE__ */ new Map();
|
|
145
|
-
function registerAttribute(name, handler) {
|
|
146
|
-
registry.set(name, handler);
|
|
147
|
-
}
|
|
148
|
-
function getAttributeHandler(name) {
|
|
149
|
-
return registry.get(name);
|
|
150
|
-
}
|
|
151
|
-
function bridgeComponent(el, tag, attrs = {}) {
|
|
152
|
-
el.setAttribute("data-velin-component", tag);
|
|
153
|
-
for (const [k, v] of Object.entries(attrs)) {
|
|
154
|
-
if (v != null) el.setAttribute(k, v);
|
|
155
|
-
}
|
|
156
|
-
return lazyDefine(tag);
|
|
157
|
-
}
|
|
158
|
-
function registerBuiltins() {
|
|
159
|
-
registerAttribute("velin-modal", {
|
|
160
|
-
enhance(el) {
|
|
161
|
-
bridgeComponent(el, "velin-modal", { open: el.getAttribute("velin-modal") || "" });
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
registerAttribute("velin-tabs", { enhance: (el) => bridgeComponent(el, "velin-tabs") });
|
|
165
|
-
registerAttribute("velin-accordion", { enhance: (el) => bridgeComponent(el, "velin-accordion") });
|
|
166
|
-
registerAttribute("velin-tooltip", {
|
|
167
|
-
enhance(el) {
|
|
168
|
-
const tip = el.getAttribute("velin-tooltip") || el.getAttribute("title") || "";
|
|
169
|
-
if (tip && el.hasAttribute("title")) el.removeAttribute("title");
|
|
170
|
-
if (el.tagName === "VELIN-TOOLTIP" || el.tagName === "VELIN-TOOLTIP-WC") {
|
|
171
|
-
el.setAttribute("content", tip);
|
|
172
|
-
return lazyDefine("velin-tooltip");
|
|
173
|
-
}
|
|
174
|
-
const wc = document.createElement("velin-tooltip");
|
|
175
|
-
wc.setAttribute("content", tip);
|
|
176
|
-
const parent = el.parentElement;
|
|
177
|
-
if (parent) {
|
|
178
|
-
parent.insertBefore(wc, el);
|
|
179
|
-
wc.appendChild(el);
|
|
180
|
-
}
|
|
181
|
-
return lazyDefine("velin-tooltip");
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
registerAttribute("velin-copy", {
|
|
185
|
-
enhance(el) {
|
|
186
|
-
const text = el.getAttribute("velin-copy") || el.textContent?.trim() || "";
|
|
187
|
-
if (!el.querySelector("velin-copy")) {
|
|
188
|
-
const wc = document.createElement("velin-copy");
|
|
189
|
-
wc.setAttribute("value", text);
|
|
190
|
-
if (el.tagName === "BUTTON") {
|
|
191
|
-
wc.append(...el.childNodes);
|
|
192
|
-
el.replaceWith(wc);
|
|
193
|
-
return lazyDefine("velin-copy");
|
|
194
|
-
}
|
|
195
|
-
el.appendChild(wc);
|
|
196
|
-
}
|
|
197
|
-
return lazyDefine("velin-copy");
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
registerAttribute("velin-counter", {
|
|
201
|
-
enhance(el) {
|
|
202
|
-
bridgeComponent(el, "velin-counter", {
|
|
203
|
-
value: el.getAttribute("velin-counter") || "0"
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
registerAttribute("velin-notify", {
|
|
208
|
-
async enhance(el) {
|
|
209
|
-
await lazyDefine("velin-toast");
|
|
210
|
-
el.addEventListener("click", () => {
|
|
211
|
-
const msg = el.getAttribute("velin-notify") || el.textContent || "";
|
|
212
|
-
document.dispatchEvent(
|
|
213
|
-
new CustomEvent("velin-toast-show", { detail: { message: msg, variant: el.dataset.variant || "info" } })
|
|
214
|
-
);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
registerAttribute("velin-theme", {
|
|
219
|
-
enhance(el) {
|
|
220
|
-
const theme = el.getAttribute("velin-theme") || "toggle";
|
|
221
|
-
if (theme === "toggle") {
|
|
222
|
-
if (!el.querySelector("velin-theme-toggle")) {
|
|
223
|
-
el.appendChild(document.createElement("velin-theme-toggle"));
|
|
224
|
-
}
|
|
225
|
-
return lazyDefine("velin-theme-toggle");
|
|
226
|
-
}
|
|
227
|
-
document.documentElement.setAttribute("data-velin-theme", theme);
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
registerAttribute("velin-progress", {
|
|
231
|
-
enhance(el) {
|
|
232
|
-
const ring = el.hasAttribute("ring");
|
|
233
|
-
if (ring) return bridgeComponent(el, "velin-progress-ring");
|
|
234
|
-
el.classList.add("velin-progress");
|
|
235
|
-
const val = parseInt(el.getAttribute("velin-progress") || "0", 10);
|
|
236
|
-
el.setAttribute("role", "progressbar");
|
|
237
|
-
el.setAttribute("aria-valuenow", String(val));
|
|
238
|
-
el.style.setProperty("--velin-progress", `${Math.min(100, val)}%`);
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
registerAttribute("velin-search", {
|
|
242
|
-
async enhance(el) {
|
|
243
|
-
if (el.tagName !== "VELIN-SEARCH") {
|
|
244
|
-
const host = document.createElement("velin-search");
|
|
245
|
-
host.setAttribute("index", el.getAttribute("data-search-index") || "/search-index.json");
|
|
246
|
-
el.replaceWith(host);
|
|
247
|
-
host.appendChild(el);
|
|
248
|
-
}
|
|
249
|
-
return lazyDefine("velin-search");
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
registerAttribute("velin-lazy", {
|
|
253
|
-
enhance(el) {
|
|
254
|
-
if (el.tagName === "IMG") {
|
|
255
|
-
el.loading = "lazy";
|
|
256
|
-
el.decoding = "async";
|
|
257
|
-
if (el.hasAttribute("velin-skeleton") || el.dataset.velinSkeleton) {
|
|
258
|
-
el.classList.add("velin-skeleton", "velin-skeleton--image");
|
|
259
|
-
el.addEventListener("load", () => el.classList.remove("velin-skeleton", "velin-skeleton--image"), { once: true });
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
registerAttribute("velin-skeleton", {
|
|
265
|
-
enhance(el) {
|
|
266
|
-
const variant = el.getAttribute("velin-skeleton") || "text";
|
|
267
|
-
el.classList.add("velin-skeleton", `velin-skeleton--${variant}`);
|
|
268
|
-
const hasText = Boolean(el.textContent?.trim()) && el.children.length > 0;
|
|
269
|
-
if (!hasText && !el.textContent?.trim()) {
|
|
270
|
-
el.setAttribute("aria-hidden", "true");
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
registerAttribute("velin-loading", {
|
|
275
|
-
enhance(el) {
|
|
276
|
-
el.classList.add("velin-spinner");
|
|
277
|
-
el.setAttribute("aria-busy", "true");
|
|
278
|
-
el.setAttribute("role", "status");
|
|
279
|
-
if (!el.getAttribute("aria-label")?.trim()) {
|
|
280
|
-
el.setAttribute("aria-label", "Loading");
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
registerAttribute("velin-grid", {
|
|
285
|
-
enhance(el) {
|
|
286
|
-
const cols = el.getAttribute("velin-grid") || "auto";
|
|
287
|
-
el.classList.add("velin-grid");
|
|
288
|
-
if (cols !== "auto") el.style.setProperty("--velin-grid-cols", cols);
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
registerAttribute("velin-anchor", {
|
|
292
|
-
enhance(el) {
|
|
293
|
-
if (!el.id && el.getAttribute("velin-anchor")) el.id = el.getAttribute("velin-anchor");
|
|
294
|
-
el.setAttribute("tabindex", "-1");
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
registerAttribute("velin-code", {
|
|
298
|
-
async enhance(el) {
|
|
299
|
-
const lang = el.getAttribute("velin-code") || el.getAttribute("language") || el.getAttribute("data-language") || "";
|
|
300
|
-
el.classList.add("velin-code-block");
|
|
301
|
-
if (lang && lang !== "true") {
|
|
302
|
-
el.dataset.language = lang;
|
|
303
|
-
if (!el.getAttribute("language")) el.setAttribute("language", lang);
|
|
304
|
-
}
|
|
305
|
-
if (!el.querySelector("[data-velin-copy]")) {
|
|
306
|
-
const btn = document.createElement("button");
|
|
307
|
-
btn.type = "button";
|
|
308
|
-
btn.className = "velin-code-block__copy velin-btn velin-btn--sm";
|
|
309
|
-
btn.textContent = "Copy";
|
|
310
|
-
btn.setAttribute("data-velin-copy", "");
|
|
311
|
-
btn.setAttribute("velin-copy", el.querySelector("code")?.textContent || el.textContent || "");
|
|
312
|
-
el.style.position = "relative";
|
|
313
|
-
el.appendChild(btn);
|
|
314
|
-
}
|
|
315
|
-
await lazyDefine("velin-copy");
|
|
316
|
-
const { initHighlight, highlightElement } = await import("./highlight-GJHHV4KM.js");
|
|
317
|
-
const immediate = el.getAttribute("data-velin-highlight") === "immediate" || typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
318
|
-
if (immediate) {
|
|
319
|
-
await highlightElement(el);
|
|
320
|
-
} else {
|
|
321
|
-
initHighlight(el, { root: el });
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
registerAttribute("velin-quote", {
|
|
326
|
-
enhance(el) {
|
|
327
|
-
if (el.tagName === "BLOCKQUOTE" || el.tagName === "Q") {
|
|
328
|
-
el.classList.add("velin-quote");
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
registerAttribute("velin-highlight", {
|
|
333
|
-
enhance(el) {
|
|
334
|
-
el.classList.add("velin-highlight");
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
for (const motion of ["velin-reveal", "velin-fade", "velin-slide", "velin-scale", "velin-parallax", "velin-hover", "velin-stagger", "velin-scroll"]) {
|
|
338
|
-
registerAttribute(motion, { enhance() {
|
|
339
|
-
} });
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
registerBuiltins();
|
|
343
|
-
var enhanced = /* @__PURE__ */ new WeakSet();
|
|
344
|
-
async function bootAttributes(root = document) {
|
|
345
|
-
const selector = [...registry.keys()].map((a) => `[${a}]`).join(",");
|
|
346
|
-
const elements = root.querySelectorAll(selector);
|
|
347
|
-
for (const el of elements) {
|
|
348
|
-
if (enhanced.has(el)) continue;
|
|
349
|
-
for (const attr of registry.keys()) {
|
|
350
|
-
if (!el.hasAttribute(attr)) continue;
|
|
351
|
-
const handler = registry.get(attr);
|
|
352
|
-
if (handler?.enhance) await handler.enhance(el);
|
|
353
|
-
}
|
|
354
|
-
enhanced.add(el);
|
|
355
|
-
}
|
|
356
|
-
initMotion({ root });
|
|
357
|
-
if (typeof HTMLElement !== "undefined") {
|
|
358
|
-
const { bindDeclarativeSearch } = await import("./velin-search-7B4KJ6TX.js");
|
|
359
|
-
bindDeclarativeSearch(root);
|
|
360
|
-
if (!document.querySelector("velin-announcer")) {
|
|
361
|
-
const { getAnnouncer } = await import("./a11y-utils-IRC7LOPF.js");
|
|
362
|
-
getAnnouncer();
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
function listRegisteredAttributes() {
|
|
367
|
-
return [...registry.keys()];
|
|
368
|
-
}
|
|
369
|
-
export {
|
|
370
|
-
bootAttributes,
|
|
371
|
-
getAttributeHandler,
|
|
372
|
-
listRegisteredAttributes,
|
|
373
|
-
registerAttribute
|
|
374
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// components/runtime/component-loaders.js
|
|
2
|
-
var COMPONENT_LOADERS = {
|
|
3
|
-
"velin-accordion": () => import("./velin-accordion-FBIPAEXG.js"),
|
|
4
|
-
"velin-announcer": () => import("./velin-announcer-PVTXXCWR.js"),
|
|
5
|
-
"velin-bottom-nav": () => import("./velin-bottom-nav-7GEMPIM6.js"),
|
|
6
|
-
"velin-carousel": () => import("./velin-carousel-ZTBANFQQ.js"),
|
|
7
|
-
"velin-code-block": () => import("./velin-code-block-CIAURDRJ.js"),
|
|
8
|
-
"velin-collapse": () => import("./velin-collapse-5XYBUIID.js"),
|
|
9
|
-
"velin-combobox": () => import("./velin-combobox-UGA56HP3.js"),
|
|
10
|
-
"velin-command": () => import("./velin-command-CKDNO4BW.js"),
|
|
11
|
-
"velin-copy": () => import("./velin-copy-G2TZ5YBB.js"),
|
|
12
|
-
"velin-countdown": () => import("./velin-countdown-7AIY66CU.js"),
|
|
13
|
-
"velin-counter": () => import("./velin-counter-L5FYJF7A.js"),
|
|
14
|
-
"velin-dialog": () => import("./velin-dialog-GTTZI564.js"),
|
|
15
|
-
"velin-drawer": () => import("./velin-drawer-BE6TYN3H.js"),
|
|
16
|
-
"velin-dropdown": () => import("./velin-dropdown-PLUIFA5M.js"),
|
|
17
|
-
"velin-email": () => import("./velin-email-NTM6DG3V.js"),
|
|
18
|
-
"velin-icon": () => import("./velin-icon-WTFPG2DD.js"),
|
|
19
|
-
"velin-lightbox": () => import("./velin-lightbox-6E7CAATP.js"),
|
|
20
|
-
"velin-live-dot": () => import("./velin-live-dot-RJHX2DGY.js"),
|
|
21
|
-
"velin-menubar": () => import("./velin-menubar-I426AED2.js"),
|
|
22
|
-
"velin-modal": () => import("./velin-modal-GLI2XZZB.js"),
|
|
23
|
-
"velin-persist": () => import("./velin-persist-DFPL3QP4.js"),
|
|
24
|
-
"velin-popover": () => import("./velin-popover-YKCCROJG.js"),
|
|
25
|
-
"velin-progress-ring": () => import("./velin-progress-ring-E4YRLZHH.js"),
|
|
26
|
-
"velin-rating": () => import("./velin-rating-6CDBI6DG.js"),
|
|
27
|
-
"velin-scroll-top": () => import("./velin-scroll-top-OHYVVHHY.js"),
|
|
28
|
-
"velin-scrollspy": () => import("./velin-scrollspy-OKCT4FDV.js"),
|
|
29
|
-
"velin-search": () => import("./velin-search-7B4KJ6TX.js"),
|
|
30
|
-
"velin-secure-field": () => import("./velin-secure-field-OFNAXCDP.js"),
|
|
31
|
-
"velin-segmented-control": () => import("./velin-segmented-control-EKL4E3BL.js"),
|
|
32
|
-
"velin-sheet": () => import("./velin-sheet-R2Y67X6H.js"),
|
|
33
|
-
"velin-sparkline": () => import("./velin-sparkline-XVTFC6GE.js"),
|
|
34
|
-
"velin-stepper": () => import("./velin-stepper-X54WGHDG.js"),
|
|
35
|
-
"velin-stepper-wc": () => import("./velin-stepper-X54WGHDG.js"),
|
|
36
|
-
"velin-tabs": () => import("./velin-tabs-5UQ5ZVMV.js"),
|
|
37
|
-
"velin-theme-toggle": () => import("./velin-theme-toggle-QELCJM2Q.js"),
|
|
38
|
-
"velin-toast": () => import("./velin-toast-RSF2IHT3.js"),
|
|
39
|
-
"velin-tooltip": () => import("./velin-tooltip-HVUOKNVX.js"),
|
|
40
|
-
"velin-tooltip-wc": () => import("./velin-tooltip-HVUOKNVX.js")
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
// components/runtime/index.js
|
|
44
|
-
var registry = /* @__PURE__ */ new Map();
|
|
45
|
-
var VELIN_TAG_RE = /^velin-[a-z0-9-]+$/;
|
|
46
|
-
function whenDefined(tagName) {
|
|
47
|
-
if (typeof customElements === "undefined") {
|
|
48
|
-
return Promise.reject(new Error("customElements not available"));
|
|
49
|
-
}
|
|
50
|
-
return customElements.whenDefined(tagName);
|
|
51
|
-
}
|
|
52
|
-
async function lazyDefine(tagName) {
|
|
53
|
-
const loader = COMPONENT_LOADERS[tagName];
|
|
54
|
-
if (!loader) {
|
|
55
|
-
throw new Error(`Unknown Velin component: ${tagName}`);
|
|
56
|
-
}
|
|
57
|
-
if (registry.has(tagName)) return registry.get(tagName);
|
|
58
|
-
const p = loader().then((mod) => {
|
|
59
|
-
const Cls = mod.default;
|
|
60
|
-
if (Cls && !customElements.get(tagName)) {
|
|
61
|
-
customElements.define(tagName, Cls);
|
|
62
|
-
}
|
|
63
|
-
return Cls;
|
|
64
|
-
});
|
|
65
|
-
registry.set(tagName, p);
|
|
66
|
-
return p;
|
|
67
|
-
}
|
|
68
|
-
async function register(tagNames) {
|
|
69
|
-
return Promise.all(tagNames.map((t) => lazyDefine(t)));
|
|
70
|
-
}
|
|
71
|
-
function collectTagsFromDOM(root) {
|
|
72
|
-
const tags = /* @__PURE__ */ new Set();
|
|
73
|
-
root.querySelectorAll("[data-velin-component]").forEach((el) => {
|
|
74
|
-
const name = el.getAttribute("data-velin-component");
|
|
75
|
-
if (name) tags.add(name.startsWith("velin-") ? name : `velin-${name}`);
|
|
76
|
-
});
|
|
77
|
-
for (const el of root.querySelectorAll("*")) {
|
|
78
|
-
const tag = el.tagName?.toLowerCase();
|
|
79
|
-
if (tag && VELIN_TAG_RE.test(tag) && COMPONENT_LOADERS[tag]) {
|
|
80
|
-
tags.add(tag);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return tags;
|
|
84
|
-
}
|
|
85
|
-
async function bootFromDOM(root = document, options = {}) {
|
|
86
|
-
const tags = options.tags?.length ? new Set(options.tags) : collectTagsFromDOM(root);
|
|
87
|
-
const wcPromise = register([...tags]);
|
|
88
|
-
if (options.attributes) {
|
|
89
|
-
const { bootAttributes } = await import("./attributes-TNSPQTHX.js");
|
|
90
|
-
await bootAttributes(root);
|
|
91
|
-
}
|
|
92
|
-
if (options.highlight) {
|
|
93
|
-
const { initHighlight } = await import("./highlight-GJHHV4KM.js");
|
|
94
|
-
initHighlight(root);
|
|
95
|
-
}
|
|
96
|
-
if (options.haptic) {
|
|
97
|
-
const { VelinHapticObserver } = await import("./velin-haptic-4QQTM3RK.js");
|
|
98
|
-
new VelinHapticObserver().start(root instanceof Document ? root.body : root);
|
|
99
|
-
}
|
|
100
|
-
return wcPromise;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
COMPONENT_LOADERS,
|
|
105
|
-
whenDefined,
|
|
106
|
-
lazyDefine,
|
|
107
|
-
register,
|
|
108
|
-
bootFromDOM
|
|
109
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// components/runtime/component-loaders.js
|
|
2
|
-
var COMPONENT_LOADERS = {
|
|
3
|
-
"velin-accordion": () => import("./velin-accordion-FBIPAEXG.js"),
|
|
4
|
-
"velin-announcer": () => import("./velin-announcer-PVTXXCWR.js"),
|
|
5
|
-
"velin-bottom-nav": () => import("./velin-bottom-nav-2N2TYWOF.js"),
|
|
6
|
-
"velin-carousel": () => import("./velin-carousel-Y5VCOABZ.js"),
|
|
7
|
-
"velin-code-block": () => import("./velin-code-block-Y6CM726Q.js"),
|
|
8
|
-
"velin-collapse": () => import("./velin-collapse-5XYBUIID.js"),
|
|
9
|
-
"velin-combobox": () => import("./velin-combobox-2KDTCQ7N.js"),
|
|
10
|
-
"velin-command": () => import("./velin-command-M7RNHUPR.js"),
|
|
11
|
-
"velin-copy": () => import("./velin-copy-NYDBOKXT.js"),
|
|
12
|
-
"velin-countdown": () => import("./velin-countdown-4ZVDGK4R.js"),
|
|
13
|
-
"velin-counter": () => import("./velin-counter-ISCTEAHI.js"),
|
|
14
|
-
"velin-dialog": () => import("./velin-dialog-IJLFDXAJ.js"),
|
|
15
|
-
"velin-drawer": () => import("./velin-drawer-DLL2GLT6.js"),
|
|
16
|
-
"velin-dropdown": () => import("./velin-dropdown-PLUIFA5M.js"),
|
|
17
|
-
"velin-email": () => import("./velin-email-N5B5ZYTE.js"),
|
|
18
|
-
"velin-icon": () => import("./velin-icon-7M76DOPB.js"),
|
|
19
|
-
"velin-lightbox": () => import("./velin-lightbox-QOTB4PRL.js"),
|
|
20
|
-
"velin-live-dot": () => import("./velin-live-dot-XHUZCIDZ.js"),
|
|
21
|
-
"velin-menubar": () => import("./velin-menubar-SFEXJE56.js"),
|
|
22
|
-
"velin-modal": () => import("./velin-modal-5HYNNNUI.js"),
|
|
23
|
-
"velin-persist": () => import("./velin-persist-DFPL3QP4.js"),
|
|
24
|
-
"velin-popover": () => import("./velin-popover-EXINRIGJ.js"),
|
|
25
|
-
"velin-progress-ring": () => import("./velin-progress-ring-E4YRLZHH.js"),
|
|
26
|
-
"velin-rating": () => import("./velin-rating-N4DI2XNL.js"),
|
|
27
|
-
"velin-scroll-top": () => import("./velin-scroll-top-F2FCZNYD.js"),
|
|
28
|
-
"velin-scrollspy": () => import("./velin-scrollspy-OKCT4FDV.js"),
|
|
29
|
-
"velin-search": () => import("./velin-search-4YHJWYSS.js"),
|
|
30
|
-
"velin-secure-field": () => import("./velin-secure-field-6PV7RZDJ.js"),
|
|
31
|
-
"velin-segmented-control": () => import("./velin-segmented-control-GYD5BIXQ.js"),
|
|
32
|
-
"velin-sheet": () => import("./velin-sheet-OUK6572T.js"),
|
|
33
|
-
"velin-sparkline": () => import("./velin-sparkline-KDA3GQAN.js"),
|
|
34
|
-
"velin-stepper": () => import("./velin-stepper-FYEUEWE6.js"),
|
|
35
|
-
"velin-stepper-wc": () => import("./velin-stepper-FYEUEWE6.js"),
|
|
36
|
-
"velin-tabs": () => import("./velin-tabs-5UQ5ZVMV.js"),
|
|
37
|
-
"velin-theme-toggle": () => import("./velin-theme-toggle-NO7V4TWI.js"),
|
|
38
|
-
"velin-toast": () => import("./velin-toast-WEUBTJG6.js"),
|
|
39
|
-
"velin-tooltip": () => import("./velin-tooltip-664IOHZA.js"),
|
|
40
|
-
"velin-tooltip-wc": () => import("./velin-tooltip-664IOHZA.js")
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
// components/runtime/index.js
|
|
44
|
-
var registry = /* @__PURE__ */ new Map();
|
|
45
|
-
var VELIN_TAG_RE = /^velin-[a-z0-9-]+$/;
|
|
46
|
-
function whenDefined(tagName) {
|
|
47
|
-
if (typeof customElements === "undefined") {
|
|
48
|
-
return Promise.reject(new Error("customElements not available"));
|
|
49
|
-
}
|
|
50
|
-
return customElements.whenDefined(tagName);
|
|
51
|
-
}
|
|
52
|
-
async function lazyDefine(tagName) {
|
|
53
|
-
const loader = COMPONENT_LOADERS[tagName];
|
|
54
|
-
if (!loader) {
|
|
55
|
-
throw new Error(`Unknown Velin component: ${tagName}`);
|
|
56
|
-
}
|
|
57
|
-
if (registry.has(tagName)) return registry.get(tagName);
|
|
58
|
-
const p = loader().then((mod) => {
|
|
59
|
-
const Cls = mod.default;
|
|
60
|
-
if (Cls && !customElements.get(tagName)) {
|
|
61
|
-
customElements.define(tagName, Cls);
|
|
62
|
-
}
|
|
63
|
-
return Cls;
|
|
64
|
-
});
|
|
65
|
-
registry.set(tagName, p);
|
|
66
|
-
return p;
|
|
67
|
-
}
|
|
68
|
-
async function register(tagNames) {
|
|
69
|
-
return Promise.all(tagNames.map((t) => lazyDefine(t)));
|
|
70
|
-
}
|
|
71
|
-
function collectTagsFromDOM(root) {
|
|
72
|
-
const tags = /* @__PURE__ */ new Set();
|
|
73
|
-
root.querySelectorAll("[data-velin-component]").forEach((el) => {
|
|
74
|
-
const name = el.getAttribute("data-velin-component");
|
|
75
|
-
if (name) tags.add(name.startsWith("velin-") ? name : `velin-${name}`);
|
|
76
|
-
});
|
|
77
|
-
for (const el of root.querySelectorAll("*")) {
|
|
78
|
-
const tag = el.tagName?.toLowerCase();
|
|
79
|
-
if (tag && VELIN_TAG_RE.test(tag) && COMPONENT_LOADERS[tag]) {
|
|
80
|
-
tags.add(tag);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return tags;
|
|
84
|
-
}
|
|
85
|
-
async function bootFromDOM(root = document, options = {}) {
|
|
86
|
-
const tags = options.tags?.length ? new Set(options.tags) : collectTagsFromDOM(root);
|
|
87
|
-
const wcPromise = register([...tags]);
|
|
88
|
-
if (options.attributes) {
|
|
89
|
-
const { bootAttributes } = await import("./attributes-BGRN5XZO.js");
|
|
90
|
-
await bootAttributes(root);
|
|
91
|
-
}
|
|
92
|
-
if (options.highlight) {
|
|
93
|
-
const { initHighlight } = await import("./highlight-GJHHV4KM.js");
|
|
94
|
-
initHighlight(root);
|
|
95
|
-
}
|
|
96
|
-
if (options.haptic) {
|
|
97
|
-
const { VelinHapticObserver } = await import("./velin-haptic-4QQTM3RK.js");
|
|
98
|
-
new VelinHapticObserver().start(root instanceof Document ? root.body : root);
|
|
99
|
-
}
|
|
100
|
-
return wcPromise;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
COMPONENT_LOADERS,
|
|
105
|
-
whenDefined,
|
|
106
|
-
lazyDefine,
|
|
107
|
-
register,
|
|
108
|
-
bootFromDOM
|
|
109
|
-
};
|