@supersoniks/concorde 5.1.1 → 5.1.3
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/.agents/skills/concorde-docs/SKILL.md +153 -0
- package/.agents/skills/{concorde-component-docs/template.md → concorde-docs/templates/component.md} +6 -2
- package/.agents/skills/concorde-docs/templates/decorator.md +43 -0
- package/.agents/skills/concorde-docs/templates/guide.md +25 -0
- package/PLAN-DOCS-AGENTS.md +80 -0
- package/README.md +4 -4
- package/ai/README.md +29 -41
- package/ai/skills/concorde/SKILL.md +54 -324
- package/ai/skills/concorde/rules/composition.md +32 -0
- package/ai/skills/concorde/rules/data.md +47 -0
- package/ai/skills/concorde/rules/http.md +25 -0
- package/ai/skills/concorde/rules/lists-forms.md +35 -0
- package/ai/skills/concorde/rules/styling.md +46 -0
- package/ai/skills/concorde/rules/troubleshooting.md +45 -0
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +21 -21
- package/concorde-core.es.js +977 -980
- package/custom-elements-manifest.public.config.mjs +8 -0
- package/{.tmp-cem/custom-elements.json → custom-elements.json} +11758 -8904
- package/dist/concorde-core.bundle.js +21 -21
- package/dist/concorde-core.es.js +977 -980
- package/dist/docs-mock-api-sw.js +58 -223
- package/dist/docs-mock-api-sw.js.map +4 -4
- package/dist/img/concorde/plane_01.jpg +0 -0
- package/dist/img/concorde/plane_02.jpg +0 -0
- package/dist/img/concorde/plane_03.jpg +0 -0
- package/dist/img/concorde/plane_04.jpg +0 -0
- package/dist/img/concorde/plane_05.jpg +0 -0
- package/dist/img/concorde/plane_06.jpg +0 -0
- package/dist/img/concorde/plane_07.jpg +0 -0
- package/dist/img/concorde/plane_08.jpg +0 -0
- package/dist/img/concorde/plane_09.jpg +0 -0
- package/dist/img/concorde/plane_10.jpg +0 -0
- package/dist/img/concorde/plane_11.jpg +0 -0
- package/dist/img/concorde/plane_12.jpg +0 -0
- package/dist/img/concorde/plane_13.jpg +0 -0
- package/dist/img/og-concorde.jpg +0 -0
- package/dist/robots.txt +11 -10
- package/docs/.htaccess +82 -0
- package/docs/404.html +15 -0
- package/docs/404.md +5 -0
- package/docs/about.html +111 -0
- package/docs/about.md +22 -0
- package/docs/assets/{index-Bb-_LRyY.js → index-6sS76xWj.js} +2625 -3158
- package/docs/assets/index-DkdPbH0F.css +1 -0
- package/docs/core/components/functional/date/date.html +211 -0
- package/docs/core/components/functional/date/date.md +150 -0
- package/docs/core/components/functional/fetch/fetch.html +180 -0
- package/docs/core/components/functional/fetch/fetch.md +108 -0
- package/docs/core/components/functional/if/if.html +65 -0
- package/docs/core/components/functional/if/if.md +34 -0
- package/docs/core/components/functional/jsonata/jsonata.html +110 -0
- package/docs/core/components/functional/jsonata/jsonata.md +61 -0
- package/docs/core/components/functional/list/list.html +200 -0
- package/docs/core/components/functional/list/list.md +125 -0
- package/docs/core/components/functional/mix/mix.html +78 -0
- package/docs/core/components/functional/mix/mix.md +46 -0
- package/docs/core/components/functional/queue/queue.html +155 -0
- package/docs/core/components/functional/queue/queue.md +51 -0
- package/docs/core/components/functional/router/router.html +154 -0
- package/docs/core/components/functional/router/router.md +93 -0
- package/docs/core/components/functional/sdui/sdui-extension-points.html +127 -0
- package/docs/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/docs/core/components/functional/sdui/sdui.html +397 -0
- package/docs/core/components/functional/sdui/sdui.md +307 -0
- package/docs/core/components/functional/states/states.html +141 -0
- package/docs/core/components/functional/states/states.md +112 -0
- package/docs/core/components/functional/submit/submit.html +178 -0
- package/docs/core/components/functional/submit/submit.md +106 -0
- package/docs/core/components/functional/subscriber/subscriber.html +68 -0
- package/docs/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/core/components/functional/translation/translation.html +60 -0
- package/docs/core/components/functional/translation/translation.md +38 -0
- package/docs/core/components/functional/value/value.html +81 -0
- package/docs/core/components/functional/value/value.md +47 -0
- package/docs/core/components/ui/alert/alert.html +201 -0
- package/docs/core/components/ui/alert/alert.md +186 -0
- package/docs/core/components/ui/alert-messages/alert-messages.html +132 -0
- package/docs/core/components/ui/alert-messages/alert-messages.md +85 -0
- package/docs/core/components/ui/badge/badge.html +197 -0
- package/docs/core/components/ui/badge/badge.md +181 -0
- package/docs/core/components/ui/button/button.html +309 -0
- package/docs/core/components/ui/button/button.md +216 -0
- package/docs/core/components/ui/captcha/captcha.html +80 -0
- package/docs/core/components/ui/captcha/captcha.md +56 -0
- package/docs/core/components/ui/card/card.html +254 -0
- package/docs/core/components/ui/card/card.md +215 -0
- package/docs/core/components/ui/divider/divider.html +144 -0
- package/docs/core/components/ui/divider/divider.md +126 -0
- package/docs/core/components/ui/form/checkbox/checkbox.html +200 -0
- package/docs/core/components/ui/form/checkbox/checkbox.md +125 -0
- package/docs/core/components/ui/form/fieldset/fieldset.html +238 -0
- package/docs/core/components/ui/form/fieldset/fieldset.md +161 -0
- package/docs/core/components/ui/form/form-actions/form-actions.html +122 -0
- package/docs/core/components/ui/form/form-actions/form-actions.md +98 -0
- package/docs/core/components/ui/form/form-layout/form-layout.html +115 -0
- package/docs/core/components/ui/form/form-layout/form-layout.md +109 -0
- package/docs/core/components/ui/form/input/input.html +235 -0
- package/docs/core/components/ui/form/input/input.md +142 -0
- package/docs/core/components/ui/form/radio/radio.html +144 -0
- package/docs/core/components/ui/form/radio/radio.md +78 -0
- package/docs/core/components/ui/form/select/select.html +178 -0
- package/docs/core/components/ui/form/select/select.md +86 -0
- package/docs/core/components/ui/form/switch/switch.html +146 -0
- package/docs/core/components/ui/form/switch/switch.md +80 -0
- package/docs/core/components/ui/form/textarea/textarea.html +162 -0
- package/docs/core/components/ui/form/textarea/textarea.md +82 -0
- package/docs/core/components/ui/group/group.html +113 -0
- package/docs/core/components/ui/group/group.md +77 -0
- package/docs/core/components/ui/icon/icon.html +223 -0
- package/docs/core/components/ui/icon/icon.md +214 -0
- package/docs/core/components/ui/image/image.html +194 -0
- package/docs/core/components/ui/image/image.md +167 -0
- package/docs/core/components/ui/link/link.html +101 -0
- package/docs/core/components/ui/link/link.md +81 -0
- package/docs/core/components/ui/loader/loader.html +114 -0
- package/docs/core/components/ui/loader/loader.md +87 -0
- package/docs/core/components/ui/menu/menu.html +395 -0
- package/docs/core/components/ui/menu/menu.md +370 -0
- package/docs/core/components/ui/modal/modal.html +324 -0
- package/docs/core/components/ui/modal/modal.md +211 -0
- package/docs/core/components/ui/pop/pop.html +250 -0
- package/docs/core/components/ui/pop/pop.md +216 -0
- package/docs/core/components/ui/progress/progress.html +132 -0
- package/docs/core/components/ui/progress/progress.md +109 -0
- package/docs/core/components/ui/table/table.html +333 -0
- package/docs/core/components/ui/table/table.md +267 -0
- package/docs/core/components/ui/theme/theme.html +116 -0
- package/docs/core/components/ui/theme/theme.md +97 -0
- package/docs/core/components/ui/toast/toast.html +185 -0
- package/docs/core/components/ui/toast/toast.md +147 -0
- package/docs/core/components/ui/tooltip/tooltip.html +112 -0
- package/docs/core/components/ui/tooltip/tooltip.md +89 -0
- package/docs/custom-elements.json +16559 -0
- package/docs/docs/decorators/ancestor-attribute.html +71 -0
- package/docs/docs/decorators/ancestor-attribute.md +59 -0
- package/docs/docs/decorators/auto-subscribe.html +61 -0
- package/docs/docs/decorators/auto-subscribe.md +40 -0
- package/docs/docs/decorators/bind.html +87 -0
- package/docs/docs/decorators/bind.md +76 -0
- package/docs/docs/decorators/get.html +166 -0
- package/docs/docs/decorators/get.md +160 -0
- package/docs/docs/decorators/handle.html +139 -0
- package/docs/docs/decorators/handle.md +119 -0
- package/docs/docs/decorators/on-assign.html +72 -0
- package/docs/docs/decorators/on-assign.md +63 -0
- package/docs/docs/decorators/patch.html +76 -0
- package/docs/docs/decorators/patch.md +44 -0
- package/docs/docs/decorators/post.html +150 -0
- package/docs/docs/decorators/post.md +134 -0
- package/docs/docs/decorators/publish.html +74 -0
- package/docs/docs/decorators/publish.md +56 -0
- package/docs/docs/decorators/put.html +83 -0
- package/docs/docs/decorators/put.md +51 -0
- package/docs/docs/decorators/subscribe.html +91 -0
- package/docs/docs/decorators/subscribe.md +87 -0
- package/docs/docs/decorators/wait-for-ancestors.html +82 -0
- package/docs/docs/decorators/wait-for-ancestors.md +76 -0
- package/docs/docs/directives/sub.html +79 -0
- package/docs/docs/directives/sub.md +75 -0
- package/docs/docs/directives/t.html +91 -0
- package/docs/docs/directives/t.md +73 -0
- package/docs/docs/getting-started/ai-agents.html +130 -0
- package/docs/docs/getting-started/ai-agents.md +50 -0
- package/docs/docs/getting-started/components.html +27 -0
- package/docs/docs/getting-started/create-a-component.html +108 -0
- package/{src/docs/_getting-started → docs/docs/getting-started}/create-a-component.md +3 -6
- package/docs/docs/getting-started/dataFlow.html +174 -0
- package/{src/docs/_core-concept → docs/docs/getting-started}/dataFlow.md +18 -19
- package/docs/docs/getting-started/installation.html +69 -0
- package/docs/docs/getting-started/installation.md +36 -0
- package/docs/docs/getting-started/my-first-component.html +180 -0
- package/{src/docs/_getting-started → docs/docs/getting-started}/my-first-component.md +5 -14
- package/docs/docs/getting-started/start.html +47 -0
- package/{src/docs/_getting-started → docs/docs/getting-started}/start.md +1 -13
- package/docs/docs/getting-started/theming.html +334 -0
- package/docs/docs/index.html +99 -0
- package/docs/docs/misc/api-configuration.html +149 -0
- package/{src/docs/_misc → docs/docs/misc}/api-configuration.md +10 -12
- package/docs/docs/misc/dataProviderKey.html +136 -0
- package/{src/docs/_misc → docs/docs/misc}/dataProviderKey.md +4 -4
- package/docs/docs/misc/docs-mock-api.html +155 -0
- package/{src/docs/_misc → docs/docs/misc}/docs-mock-api.md +12 -13
- package/docs/docs/misc/dynamic-path.html +181 -0
- package/{src/docs/_misc → docs/docs/misc}/dynamic-path.md +8 -8
- package/docs/docs/misc/endpoint.html +51 -0
- package/{src/docs/_misc → docs/docs/misc}/endpoint.md +8 -8
- package/docs/docs/misc/html-integration.html +45 -0
- package/{src/docs/_misc → docs/docs/misc}/html-integration.md +4 -5
- package/docs/docs-mock-api-sw.js +58 -223
- package/docs/docs-mock-api-sw.js.map +4 -4
- package/docs/hubs/decorators.html +438 -0
- package/docs/hubs/form-components.html +404 -0
- package/docs/hubs/remote-data.html +367 -0
- package/docs/img/archive/concorde-001-2cv.webp +0 -0
- package/docs/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
- package/docs/img/archive/concorde-red-arrows-2002.webm +0 -0
- package/docs/img/archive/credits.json +28 -0
- package/docs/img/concorde/plane_01.jpg +0 -0
- package/docs/img/concorde/plane_02.jpg +0 -0
- package/docs/img/concorde/plane_03.jpg +0 -0
- package/docs/img/concorde/plane_04.jpg +0 -0
- package/docs/img/concorde/plane_05.jpg +0 -0
- package/docs/img/concorde/plane_06.jpg +0 -0
- package/docs/img/concorde/plane_07.jpg +0 -0
- package/docs/img/concorde/plane_08.jpg +0 -0
- package/docs/img/concorde/plane_09.jpg +0 -0
- package/docs/img/concorde/plane_10.jpg +0 -0
- package/docs/img/concorde/plane_11.jpg +0 -0
- package/docs/img/concorde/plane_12.jpg +0 -0
- package/docs/img/concorde/plane_13.jpg +0 -0
- package/docs/img/og-concorde.jpg +0 -0
- package/docs/index.html +184 -68
- package/docs/index.md +22 -0
- package/docs/llms-full.txt +5779 -0
- package/docs/llms.txt +108 -0
- package/docs/privacy.html +122 -0
- package/docs/privacy.md +32 -0
- package/docs/robots.txt +11 -10
- package/docs/sitemap.xml +243 -0
- package/docs/src/core/components/functional/date/date.md +150 -0
- package/docs/src/core/components/functional/fetch/fetch.md +108 -0
- package/docs/src/core/components/functional/if/if.md +34 -0
- package/docs/src/core/components/functional/jsonata/jsonata.md +61 -0
- package/docs/src/core/components/functional/list/list.md +125 -0
- package/docs/src/core/components/functional/mix/mix.md +46 -0
- package/docs/src/core/components/functional/queue/queue.md +51 -0
- package/docs/src/core/components/functional/router/router.md +93 -0
- package/docs/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
- package/docs/src/core/components/functional/sdui/component-catalog.json +3103 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +32 -0
- package/docs/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/docs/src/core/components/functional/sdui/sdui.md +307 -0
- package/docs/src/core/components/functional/states/states.md +112 -0
- package/docs/src/core/components/functional/submit/submit.md +106 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/translation/translation.md +38 -0
- package/docs/src/core/components/functional/value/value.md +47 -0
- package/docs/src/core/components/ui/alert/alert.md +186 -0
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +85 -0
- package/docs/src/core/components/ui/badge/badge.md +181 -0
- package/docs/src/core/components/ui/button/button.md +216 -0
- package/docs/src/core/components/ui/captcha/captcha.md +56 -0
- package/docs/src/core/components/ui/card/card.md +215 -0
- package/docs/src/core/components/ui/divider/divider.md +126 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +125 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +161 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +98 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +109 -0
- package/docs/src/core/components/ui/form/input/input.md +142 -0
- package/docs/src/core/components/ui/form/radio/radio.md +78 -0
- package/docs/src/core/components/ui/form/select/select.md +86 -0
- package/docs/src/core/components/ui/form/switch/switch.md +80 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +82 -0
- package/docs/src/core/components/ui/group/group.md +77 -0
- package/docs/src/core/components/ui/icon/icon.md +214 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +167 -0
- package/docs/src/core/components/ui/link/link.md +81 -0
- package/docs/src/core/components/ui/loader/loader.md +87 -0
- package/docs/src/core/components/ui/menu/menu.md +370 -0
- package/docs/src/core/components/ui/modal/modal.md +211 -0
- package/docs/src/core/components/ui/pop/pop.md +216 -0
- package/docs/src/core/components/ui/progress/progress.md +109 -0
- package/docs/src/core/components/ui/table/table.md +267 -0
- package/docs/src/core/components/ui/theme/theme.md +97 -0
- package/docs/src/core/components/ui/toast/toast.md +147 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +89 -0
- package/docs/src/docs/decorators/ancestor-attribute.md +59 -0
- package/docs/src/docs/decorators/auto-subscribe.md +40 -0
- package/docs/src/docs/decorators/bind.md +76 -0
- package/docs/src/docs/decorators/get.md +160 -0
- package/docs/src/docs/decorators/handle.md +119 -0
- package/docs/src/docs/decorators/on-assign.md +63 -0
- package/docs/src/docs/decorators/patch.md +44 -0
- package/docs/src/docs/decorators/post.md +134 -0
- package/docs/src/docs/decorators/publish.md +56 -0
- package/docs/src/docs/decorators/put.md +51 -0
- package/docs/src/docs/decorators/subscribe.md +87 -0
- package/docs/src/docs/decorators/wait-for-ancestors.md +76 -0
- package/docs/src/docs/directives/sub.md +75 -0
- package/docs/src/docs/directives/t.md +73 -0
- package/docs/src/docs/getting-started/ai-agents.md +50 -0
- package/docs/src/docs/getting-started/components.md +5 -0
- package/docs/src/docs/getting-started/create-a-component.md +136 -0
- package/docs/src/docs/getting-started/dataFlow.md +87 -0
- package/docs/src/docs/getting-started/installation.md +36 -0
- package/docs/src/docs/getting-started/my-first-component.md +227 -0
- package/docs/src/docs/getting-started/start.md +35 -0
- package/docs/src/docs/getting-started/theming.md +253 -0
- package/docs/src/docs/misc/api-configuration.md +79 -0
- package/docs/src/docs/misc/dataProviderKey.md +168 -0
- package/docs/src/docs/misc/docs-mock-api.md +62 -0
- package/docs/src/docs/misc/dynamic-path.md +71 -0
- package/docs/src/docs/misc/endpoint.md +45 -0
- package/docs/src/docs/misc/html-integration.md +14 -0
- package/docs/src/docs/search/docs-search.json +10332 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +1359 -0
- package/index.html +157 -5
- package/package.json +8 -4
- package/public/docs-mock-api-sw.js +58 -223
- package/public/docs-mock-api-sw.js.map +4 -4
- package/public/img/concorde/plane_01.jpg +0 -0
- package/public/img/concorde/plane_02.jpg +0 -0
- package/public/img/concorde/plane_03.jpg +0 -0
- package/public/img/concorde/plane_04.jpg +0 -0
- package/public/img/concorde/plane_05.jpg +0 -0
- package/public/img/concorde/plane_06.jpg +0 -0
- package/public/img/concorde/plane_07.jpg +0 -0
- package/public/img/concorde/plane_08.jpg +0 -0
- package/public/img/concorde/plane_09.jpg +0 -0
- package/public/img/concorde/plane_10.jpg +0 -0
- package/public/img/concorde/plane_11.jpg +0 -0
- package/public/img/concorde/plane_12.jpg +0 -0
- package/public/img/concorde/plane_13.jpg +0 -0
- package/public/img/og-concorde.jpg +0 -0
- package/public/robots.txt +11 -10
- package/scripts/ai-init.mjs +104 -379
- package/scripts/ai-init.test.mjs +81 -239
- package/scripts/docs-markdown-vite-plugin.ts +43 -0
- package/scripts/docs-public-url.mjs +56 -0
- package/scripts/docs.htaccess +82 -0
- package/scripts/generate-cem.mjs +244 -0
- package/scripts/generate-cem.test.mjs +122 -0
- package/scripts/generate-crawl-docs.mjs +233 -118
- package/scripts/generate-crawl-docs.test.mjs +124 -0
- package/scripts/generate-sdui-catalog.mjs +11 -10
- package/scripts/post-build-docs.js +37 -50
- package/scripts/pre-publish.mjs +2 -1
- package/scripts/site-pages.mjs +212 -0
- package/scripts/site-pages.test.mjs +116 -0
- package/site-pages/about.md +22 -0
- package/site-pages/privacy.md +32 -0
- package/src/core/components/functional/date/date.md +91 -231
- package/src/core/components/functional/fetch/fetch.md +66 -83
- package/src/core/components/functional/if/if.md +28 -3
- package/src/core/components/functional/jsonata/jsonata.md +42 -37
- package/src/core/components/functional/list/list.md +103 -43
- package/src/core/components/functional/mix/mix.md +31 -26
- package/src/core/components/functional/queue/queue.demo.ts +10 -7
- package/src/core/components/functional/queue/queue.md +40 -61
- package/src/core/components/functional/router/router.demo.ts +16 -16
- package/src/core/components/functional/router/router.md +64 -65
- package/src/core/components/functional/sdui/component-catalog.gaps.json +1 -1
- package/src/core/components/functional/sdui/component-catalog.json +1 -1
- package/src/core/components/functional/sdui/example.json +19 -86
- package/src/core/components/functional/sdui/sdui-extension-points.md +1 -1
- package/src/core/components/functional/sdui/sdui.md +187 -358
- package/src/core/components/functional/states/states.demo.ts +21 -22
- package/src/core/components/functional/states/states.md +86 -61
- package/src/core/components/functional/states/states.ts +1 -1
- package/src/core/components/functional/submit/submit.md +64 -72
- package/src/core/components/functional/translation/translation.md +38 -0
- package/src/core/components/functional/value/value.md +34 -22
- package/src/core/components/ui/alert/alert.md +48 -58
- package/src/core/components/ui/badge/badge.md +27 -34
- package/src/core/components/ui/button/button.md +139 -106
- package/src/core/components/ui/captcha/captcha.md +17 -32
- package/src/core/components/ui/card/card.md +6 -6
- package/src/core/components/ui/divider/divider.md +8 -11
- package/src/core/components/ui/form/checkbox/checkbox.md +90 -42
- package/src/core/components/ui/form/fieldset/fieldset.md +31 -75
- package/src/core/components/ui/form/form-actions/form-actions.md +14 -16
- package/src/core/components/ui/form/form-layout/form-layout.md +19 -29
- package/src/core/components/ui/form/input/input.md +95 -95
- package/src/core/components/ui/form/radio/radio.md +55 -34
- package/src/core/components/ui/form/select/select.md +60 -45
- package/src/core/components/ui/form/switch/switch.md +57 -34
- package/src/core/components/ui/form/textarea/textarea.md +55 -38
- package/src/core/components/ui/group/group.md +35 -33
- package/src/core/components/ui/icon/icon.md +4 -4
- package/src/core/components/ui/image/image.md +41 -107
- package/src/core/components/ui/link/link.md +6 -6
- package/src/core/components/ui/loader/loader.md +30 -55
- package/src/core/components/ui/menu/menu.md +27 -27
- package/src/core/components/ui/modal/modal.md +72 -96
- package/src/core/components/ui/pop/pop.md +80 -158
- package/src/core/components/ui/progress/progress.md +2 -2
- package/src/core/components/ui/table/table.md +91 -255
- package/src/core/components/ui/theme/theme.md +11 -36
- package/src/core/components/ui/toast/toast.md +48 -117
- package/src/core/components/ui/tooltip/tooltip.md +27 -62
- package/src/core/decorators/subscriber/bind.ts +9 -14
- package/src/core/utils/LocationHandler.spec.ts +80 -0
- package/src/core/utils/LocationHandler.ts +5 -9
- package/src/docs/components/docs-demo-sources.ts +55 -140
- package/src/docs/components/docs-lit-demo.ts +1 -3
- package/src/docs/components/docs-source-link.ts +0 -82
- package/src/docs/decorators/ancestor-attribute.md +59 -0
- package/src/docs/decorators/auto-subscribe.md +40 -0
- package/src/docs/decorators/bind.md +76 -0
- package/src/docs/decorators/get.md +160 -0
- package/src/docs/decorators/handle.md +119 -0
- package/src/docs/decorators/on-assign.md +63 -0
- package/src/docs/decorators/patch.md +44 -0
- package/src/docs/decorators/post.md +134 -0
- package/src/docs/decorators/publish.md +56 -0
- package/src/docs/decorators/put.md +51 -0
- package/src/docs/decorators/subscribe.md +87 -0
- package/src/docs/decorators/wait-for-ancestors.md +76 -0
- package/src/docs/directives/sub.md +75 -0
- package/src/docs/directives/t.md +73 -0
- package/src/docs/docs-location.spec.ts +56 -0
- package/src/docs/docs-location.ts +133 -32
- package/src/docs/docs.ts +1 -2
- package/src/docs/example/decorators-demo-bind-demos.ts +83 -135
- package/src/docs/example/decorators-demo-geo.ts +30 -19
- package/src/docs/example/decorators-demo-post.ts +88 -186
- package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +165 -268
- package/src/docs/example/decorators-demo.ts +85 -98
- package/src/docs/example/docs-api-config-demos.ts +19 -20
- package/src/docs/example/docs-flight-demos.ts +147 -0
- package/src/docs/example/docs-jsonata-demos.ts +52 -52
- package/src/docs/example/docs-list-demos.ts +43 -123
- package/src/docs/example/docs-provider-keys.ts +21 -28
- package/src/docs/example/docs-queue-demos.ts +37 -77
- package/src/docs/example/docs-router-demos.ts +20 -25
- package/src/docs/example/docs-submit-demos.ts +48 -48
- package/src/docs/example/docs-toggle-demos.ts +4 -3
- package/src/docs/getting-started/ai-agents.md +50 -0
- package/src/docs/getting-started/components.md +5 -0
- package/src/docs/getting-started/create-a-component.md +136 -0
- package/src/docs/getting-started/dataFlow.md +87 -0
- package/src/docs/getting-started/installation.md +36 -0
- package/src/docs/getting-started/my-first-component.md +227 -0
- package/src/docs/getting-started/start.md +35 -0
- package/src/docs/getting-started/theming.md +253 -0
- package/src/docs/header/header.ts +11 -6
- package/src/docs/home/catalog.ts +1 -1
- package/src/docs/home/home.ts +20 -11
- package/src/docs/layout.ts +12 -13
- package/src/docs/misc/api-configuration.md +79 -0
- package/src/docs/misc/dataProviderKey.md +168 -0
- package/src/docs/misc/docs-mock-api.md +62 -0
- package/src/docs/misc/dynamic-path.md +71 -0
- package/src/docs/misc/endpoint.md +45 -0
- package/src/docs/misc/html-integration.md +14 -0
- package/src/docs/mock-api/api-config-mock.ts +5 -0
- package/src/docs/mock-api/fixtures.ts +0 -278
- package/src/docs/mock-api/flights.ts +89 -0
- package/src/docs/mock-api/router.ts +3 -4
- package/src/docs/mock-api/urls.ts +1 -2
- package/src/docs/navigation/navigation.ts +82 -103
- package/src/docs/navigation/toc.ts +7 -4
- package/src/docs/search/docs-search.json +2804 -5024
- package/src/docs/search/markdown-renderer.ts +31 -8
- package/src/docs/search/page.ts +9 -6
- package/src/docs/search/search.ts +154 -122
- package/src/docs/tailwind/css/docs/content.css +4 -5
- package/src/tsconfig.json +11 -5
- package/src/tsconfig.tsbuildinfo +1 -1
- package/vite.config.mts +11 -2
- package/.agents/skills/concorde-component-docs/SKILL.md +0 -194
- package/ai/AGENTS.md +0 -56
- package/ai/cursor/rules/concorde-menu.mdc +0 -15
- package/ai/cursor/rules/concorde-scope.mdc +0 -14
- package/ai/cursor/rules/concorde-theme.mdc +0 -13
- package/ai/cursor/rules/concorde.mdc +0 -66
- package/ai/jetbrains/rules/concorde.md +0 -53
- package/ai/skills/concorde-get-set-dp/SKILL.md +0 -194
- package/ai/skills/concorde-imports/SKILL.md +0 -78
- package/ai/skills/concorde-menu/SKILL.md +0 -74
- package/ai/skills/concorde-scope/SKILL.md +0 -70
- package/ai/skills/concorde-theme/SKILL.md +0 -57
- package/docs/assets/index-CD4WyL6o.css +0 -1
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -29
- package/src/docs/_core-concept/overview.md +0 -57
- package/src/docs/_core-concept/subscriber.md +0 -75
- package/src/docs/_decorators/ancestor-attribute.md +0 -128
- package/src/docs/_decorators/auto-subscribe.md +0 -202
- package/src/docs/_decorators/bind.md +0 -167
- package/src/docs/_decorators/get.md +0 -162
- package/src/docs/_decorators/handle.md +0 -175
- package/src/docs/_decorators/on-assign.md +0 -390
- package/src/docs/_decorators/patch.md +0 -70
- package/src/docs/_decorators/post.md +0 -146
- package/src/docs/_decorators/publish.md +0 -55
- package/src/docs/_decorators/put.md +0 -70
- package/src/docs/_decorators/subscribe.md +0 -100
- package/src/docs/_decorators/wait-for-ancestors.md +0 -163
- package/src/docs/_directives/sub.md +0 -91
- package/src/docs/_getting-started/ai-agents.md +0 -76
- package/src/docs/_getting-started/concorde-manual-install.md +0 -133
- package/src/docs/_getting-started/concorde-outside.md +0 -33
- package/src/docs/_getting-started/my-first-subscriber.md +0 -120
- package/src/docs/_getting-started/pubsub.md +0 -37
- package/src/docs/_misc/formelement-subscriber-removal.md +0 -115
- package/src/docs/example/docs-input-autocomplete-demos.ts +0 -110
- package/src/docs/example/docs-joke-demos.ts +0 -297
- /package/{src/docs/_getting-started → docs/docs/getting-started}/components.md +0 -0
- /package/{src/docs/_getting-started → docs/docs/getting-started}/theming.md +0 -0
|
@@ -1,119 +1,111 @@
|
|
|
1
1
|
import { html, LitElement } from "lit";
|
|
2
2
|
import { customElement, property, state } from "lit/decorators.js";
|
|
3
3
|
import { bind } from "@supersoniks/concorde/decorators";
|
|
4
|
-
import { DataProviderKey } from "@supersoniks/concorde/
|
|
4
|
+
import { DataProviderKey } from "@supersoniks/concorde/dataProviderKey";
|
|
5
5
|
import { sub } from "@supersoniks/concorde/directives";
|
|
6
6
|
import { get, set } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
7
|
-
import {
|
|
8
|
-
bindReflectDemoKey,
|
|
9
|
-
demoDataKey,
|
|
10
|
-
demoUsersAltKey,
|
|
11
|
-
demoUsersKey,
|
|
12
|
-
} from "./docs-provider-keys";
|
|
7
|
+
import { bindReflectDemoKey } from "./docs-provider-keys";
|
|
13
8
|
import { tailwind } from "../tailwind";
|
|
14
9
|
import "./decorators-demo-init";
|
|
15
10
|
|
|
11
|
+
type Flight = { flight: string; route: string; gate: string; updates: number };
|
|
12
|
+
type Person = { firstName: string; lastName: string; role: string };
|
|
13
|
+
|
|
14
|
+
const bindFlightKey = new DataProviderKey<Flight>("bindFlight");
|
|
15
|
+
const bindPassengersKey = new DataProviderKey<Person[]>("bindPassengers");
|
|
16
|
+
const bindCrewKey = new DataProviderKey<Person[]>("bindCrew");
|
|
17
|
+
const bindPersonKey = new DataProviderKey<
|
|
18
|
+
Person,
|
|
19
|
+
{ dataProvider: string; index: number }
|
|
20
|
+
>("${dataProvider}.${index}");
|
|
21
|
+
|
|
22
|
+
const GATES = ["B12", "B14", "C2", "D7", "E31"];
|
|
23
|
+
|
|
24
|
+
set(bindFlightKey, { flight: "CN 001", route: "CDG → JFK", gate: "B12", updates: 0 });
|
|
25
|
+
set(bindPassengersKey, [
|
|
26
|
+
{ firstName: "Ada", lastName: "Lindqvist", role: "Seat 1A" },
|
|
27
|
+
{ firstName: "Noah", lastName: "Keller", role: "Seat 3C" },
|
|
28
|
+
{ firstName: "Amara", lastName: "Singh", role: "Seat 7D" },
|
|
29
|
+
]);
|
|
30
|
+
set(bindCrewKey, [
|
|
31
|
+
{ firstName: "Leo", lastName: "Marchand", role: "Captain" },
|
|
32
|
+
{ firstName: "Jin", lastName: "Park", role: "First officer" },
|
|
33
|
+
{ firstName: "Sophie", lastName: "Lindquist", role: "Flight engineer" },
|
|
34
|
+
]);
|
|
35
|
+
|
|
16
36
|
@customElement("demo-bind")
|
|
17
37
|
export class DemoBind extends LitElement {
|
|
18
38
|
static styles = [tailwind];
|
|
19
39
|
|
|
20
|
-
@bind(
|
|
40
|
+
@bind(bindFlightKey.flight)
|
|
21
41
|
@state()
|
|
22
|
-
|
|
42
|
+
flight = "";
|
|
23
43
|
|
|
24
|
-
@bind(
|
|
44
|
+
@bind(bindFlightKey.gate)
|
|
25
45
|
@state()
|
|
26
|
-
|
|
46
|
+
gate = "";
|
|
27
47
|
|
|
28
|
-
@bind(
|
|
48
|
+
@bind(bindFlightKey.updates)
|
|
29
49
|
@state()
|
|
30
|
-
|
|
50
|
+
updates = 0;
|
|
51
|
+
|
|
52
|
+
changeGate() {
|
|
53
|
+
const current = get(bindFlightKey);
|
|
54
|
+
const others = GATES.filter((gate) => gate !== current.gate);
|
|
55
|
+
set(bindFlightKey, {
|
|
56
|
+
...current,
|
|
57
|
+
gate: others[Math.floor(Math.random() * others.length)],
|
|
58
|
+
updates: current.updates + 1,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
31
61
|
|
|
32
62
|
render() {
|
|
33
63
|
return html`
|
|
34
|
-
<
|
|
35
|
-
<sonic-button @click=${this.updateData}>Update Data</sonic-button>
|
|
36
|
-
</div>
|
|
64
|
+
<sonic-button @click=${this.changeGate}>Change gate</sonic-button>
|
|
37
65
|
<div class="p-3">
|
|
38
|
-
<p>
|
|
39
|
-
<p>
|
|
40
|
-
<p>
|
|
66
|
+
<p>Flight: <strong>${this.flight}</strong></p>
|
|
67
|
+
<p>Gate: <strong>${this.gate}</strong></p>
|
|
68
|
+
<p>Gate changes: <strong>${this.updates}</strong></p>
|
|
41
69
|
</div>
|
|
42
70
|
`;
|
|
43
71
|
}
|
|
44
|
-
|
|
45
|
-
updateData() {
|
|
46
|
-
const users = get(demoUsersKey);
|
|
47
|
-
const randomIndex = Math.floor(Math.random() * users.length);
|
|
48
|
-
const randomUser = users[randomIndex];
|
|
49
|
-
const data = get(demoDataKey);
|
|
50
|
-
set(demoDataKey, {
|
|
51
|
-
...data,
|
|
52
|
-
count: data.count + 1,
|
|
53
|
-
user: { name: `${randomUser.firstName} ${randomUser.lastName}` },
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
72
|
}
|
|
57
73
|
|
|
58
74
|
@customElement("demo-bind-reflect")
|
|
59
75
|
export class DemoBindReflect extends LitElement {
|
|
60
76
|
static styles = [tailwind];
|
|
61
77
|
|
|
62
|
-
@bind(
|
|
78
|
+
@bind(bindReflectDemoKey.count, { reflect: true })
|
|
63
79
|
@state()
|
|
64
|
-
withReflect
|
|
80
|
+
withReflect = 0;
|
|
65
81
|
|
|
66
|
-
@bind(
|
|
82
|
+
@bind(bindReflectDemoKey.count)
|
|
67
83
|
@state()
|
|
68
|
-
withoutReflect
|
|
84
|
+
withoutReflect = 0;
|
|
69
85
|
|
|
70
86
|
connectedCallback() {
|
|
71
87
|
super.connectedCallback();
|
|
72
|
-
this.
|
|
88
|
+
this.reset();
|
|
73
89
|
}
|
|
74
90
|
|
|
75
|
-
|
|
76
|
-
set(bindReflectDemoKey, { count: 0 });
|
|
77
|
-
}
|
|
78
|
-
render() {
|
|
79
|
-
return html`
|
|
80
|
-
<div class="mb-3">
|
|
81
|
-
from publisher : ${sub("bindReflectDemo.count")} <br />
|
|
82
|
-
from component with reflect : ${this.withReflect} <br />
|
|
83
|
-
from component without reflect : ${this.withoutReflect}
|
|
84
|
-
</div>
|
|
85
|
-
<sonic-button @click=${() => this.withReflect++}
|
|
86
|
-
>Increment with reflect</sonic-button
|
|
87
|
-
>
|
|
88
|
-
<sonic-button @click=${() => this.withoutReflect++}
|
|
89
|
-
>Increment without reflect</sonic-button
|
|
90
|
-
>
|
|
91
|
-
<sonic-button @click=${this.resetData}>Reset publisher data</sonic-button>
|
|
92
|
-
`;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@customElement("demo-bind-key")
|
|
97
|
-
export class DemoBindKey extends LitElement {
|
|
98
|
-
static styles = [tailwind];
|
|
99
|
-
|
|
100
|
-
@bind(bindReflectDemoKey.count, { reflect: true })
|
|
101
|
-
@state()
|
|
102
|
-
count: number = 0;
|
|
103
|
-
|
|
104
|
-
connectedCallback() {
|
|
105
|
-
super.connectedCallback();
|
|
91
|
+
reset() {
|
|
106
92
|
set(bindReflectDemoKey, { count: 0 });
|
|
107
93
|
}
|
|
108
94
|
|
|
109
95
|
render() {
|
|
110
96
|
return html`
|
|
111
97
|
<div class="mb-3">
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
98
|
+
Boarded passengers in the store: ${sub(bindReflectDemoKey.count)}<br />
|
|
99
|
+
Property with reflect: ${this.withReflect}<br />
|
|
100
|
+
Property without reflect: ${this.withoutReflect}
|
|
115
101
|
</div>
|
|
116
|
-
<sonic-button @click=${() => this.
|
|
102
|
+
<sonic-button @click=${() => this.withReflect++}>
|
|
103
|
+
Board (with reflect)
|
|
104
|
+
</sonic-button>
|
|
105
|
+
<sonic-button @click=${() => this.withoutReflect++}>
|
|
106
|
+
Board (without reflect)
|
|
107
|
+
</sonic-button>
|
|
108
|
+
<sonic-button variant="outline" @click=${this.reset}>Reset</sonic-button>
|
|
117
109
|
`;
|
|
118
110
|
}
|
|
119
111
|
}
|
|
@@ -123,85 +115,41 @@ export class DemoBindDynamic extends LitElement {
|
|
|
123
115
|
static styles = [tailwind];
|
|
124
116
|
|
|
125
117
|
@property({ type: String })
|
|
126
|
-
dataProvider
|
|
127
|
-
demoUsersKey.path;
|
|
118
|
+
dataProvider = bindPassengersKey.path;
|
|
128
119
|
|
|
129
120
|
@property({ type: Number })
|
|
130
|
-
|
|
121
|
+
index = 0;
|
|
131
122
|
|
|
132
|
-
@bind(
|
|
123
|
+
@bind(bindPersonKey)
|
|
133
124
|
@state()
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
updateUserIndex(e: Event) {
|
|
137
|
-
this.userIndex = parseInt((e.target as HTMLInputElement).value);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
updateDataProvider(e: Event) {
|
|
141
|
-
this.dataProvider = (e.target as HTMLSelectElement).value as
|
|
142
|
-
| typeof demoUsersKey.path
|
|
143
|
-
| typeof demoUsersAltKey.path;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
updateCurrentUserData() {
|
|
147
|
-
const key =
|
|
148
|
-
this.dataProvider === demoUsersAltKey.path ? demoUsersAltKey : demoUsersKey;
|
|
149
|
-
const users = [...get(key)];
|
|
150
|
-
const randomNames = [
|
|
151
|
-
{ firstName: "Alice", lastName: "Wonder" },
|
|
152
|
-
{ firstName: "Bob", lastName: "Builder" },
|
|
153
|
-
{ firstName: "Charlie", lastName: "Chaplin" },
|
|
154
|
-
{ firstName: "Diana", lastName: "Prince" },
|
|
155
|
-
{ firstName: "Eve", lastName: "Adams" },
|
|
156
|
-
];
|
|
157
|
-
const randomName =
|
|
158
|
-
randomNames[Math.floor(Math.random() * randomNames.length)];
|
|
159
|
-
const randomEmail = `${randomName.firstName.toLowerCase()}.${randomName.lastName.toLowerCase()}@example.com`;
|
|
160
|
-
const idx = this.userIndex;
|
|
161
|
-
if (users[idx]) {
|
|
162
|
-
users[idx] = {
|
|
163
|
-
...users[idx],
|
|
164
|
-
firstName: randomName.firstName,
|
|
165
|
-
lastName: randomName.lastName,
|
|
166
|
-
email: randomEmail,
|
|
167
|
-
};
|
|
168
|
-
set(key, users);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
125
|
+
person: Person | null = null;
|
|
171
126
|
|
|
172
127
|
render() {
|
|
173
128
|
return html`
|
|
174
129
|
<div class="flex flex-col gap-2">
|
|
175
130
|
<sonic-select
|
|
131
|
+
label="List"
|
|
176
132
|
.value=${this.dataProvider}
|
|
177
|
-
|
|
178
|
-
|
|
133
|
+
@change=${(e: Event) =>
|
|
134
|
+
(this.dataProvider = (e.target as HTMLSelectElement).value)}
|
|
179
135
|
>
|
|
180
|
-
<option value=${
|
|
181
|
-
<option value=${
|
|
136
|
+
<option value=${bindPassengersKey.path}>Passengers</option>
|
|
137
|
+
<option value=${bindCrewKey.path}>Crew</option>
|
|
182
138
|
</sonic-select>
|
|
183
139
|
<sonic-input
|
|
184
140
|
type="number"
|
|
185
|
-
.value=${this.userIndex}
|
|
186
|
-
@input=${this.updateUserIndex}
|
|
187
|
-
min="0"
|
|
188
|
-
max="9"
|
|
189
141
|
label="Index"
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
>
|
|
196
|
-
<div class="
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
<div>
|
|
202
|
-
<sonic-icon name="envelope" library="heroicons"></sonic-icon>
|
|
203
|
-
${this.user?.email}
|
|
204
|
-
</div>
|
|
142
|
+
min="0"
|
|
143
|
+
max="2"
|
|
144
|
+
.value=${this.index}
|
|
145
|
+
@input=${(e: Event) =>
|
|
146
|
+
(this.index = parseInt((e.target as HTMLInputElement).value) || 0)}
|
|
147
|
+
></sonic-input>
|
|
148
|
+
<div class="border p-2">
|
|
149
|
+
${this.person
|
|
150
|
+
? html`<strong>${this.person.firstName} ${this.person.lastName}</strong>
|
|
151
|
+
· ${this.person.role}`
|
|
152
|
+
: "No one at this index"}
|
|
205
153
|
</div>
|
|
206
154
|
</div>
|
|
207
155
|
`;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
/** Shared setup for the @get demos: API configuration + `/flights` endpoints of the docs mock API. */
|
|
1
2
|
import type { APIConfiguration } from "@supersoniks/concorde/core/utils/api";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import {
|
|
4
|
+
DataProviderKey,
|
|
5
|
+
Endpoint,
|
|
6
|
+
type ApiResult,
|
|
7
|
+
} from "@supersoniks/concorde/decorators";
|
|
8
|
+
import { set } from "@supersoniks/concorde/utils";
|
|
6
9
|
import "./decorators-demo-init";
|
|
7
|
-
import {
|
|
10
|
+
import { DOCS_MOCK_API_BASE } from "../mock-api/urls";
|
|
11
|
+
import type { DocsFlight } from "../mock-api/flights";
|
|
8
12
|
|
|
9
|
-
export type
|
|
13
|
+
export type Flight = DocsFlight;
|
|
14
|
+
export type FlightBoard = { flights: Flight[] };
|
|
15
|
+
export type FlightDirection = "departures" | "arrivals";
|
|
10
16
|
|
|
11
|
-
export const
|
|
12
|
-
serviceURL:
|
|
17
|
+
export const flightsApiConfiguration: APIConfiguration = {
|
|
18
|
+
serviceURL: DOCS_MOCK_API_BASE,
|
|
13
19
|
token: null,
|
|
14
20
|
userName: null,
|
|
15
21
|
password: null,
|
|
@@ -17,19 +23,24 @@ export const geoApiDemoConfiguration: APIConfiguration = {
|
|
|
17
23
|
tokenProvider: null,
|
|
18
24
|
};
|
|
19
25
|
|
|
20
|
-
export const
|
|
21
|
-
|
|
26
|
+
export const flightsApiConfigurationKey = new DataProviderKey<APIConfiguration>(
|
|
27
|
+
"docsDemoFlightsApiConfiguration",
|
|
28
|
+
);
|
|
22
29
|
|
|
23
|
-
set(
|
|
30
|
+
set(flightsApiConfigurationKey, flightsApiConfiguration);
|
|
24
31
|
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
/** Static endpoint: the first departures. */
|
|
33
|
+
export const departuresEndpoint = new Endpoint<FlightBoard>(
|
|
34
|
+
"flights?direction=departures&limit=4",
|
|
27
35
|
);
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
/** Dynamic endpoint: `${direction}` is read on the host component. */
|
|
38
|
+
export const flightsByDirectionEndpoint = new Endpoint<
|
|
39
|
+
FlightBoard,
|
|
40
|
+
{ direction: FlightDirection }
|
|
41
|
+
>("flights?direction=${direction}&limit=4");
|
|
32
42
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
/** Store key used to share the departures payload with other components. */
|
|
44
|
+
export const departuresPayloadKey = new DataProviderKey<ApiResult<FlightBoard>>(
|
|
45
|
+
"docsDemoDepartures",
|
|
46
|
+
);
|