@webquark/core 1.1.0-dev.9 → 1.1.1-dev.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/dist/browser/components/q-control-group.d.ts +1 -0
- package/dist/browser/components/q-control-group.js +1 -0
- package/dist/browser/components/q-divider.d.ts +1 -0
- package/dist/browser/components/q-divider.js +1 -0
- package/dist/browser/components/q-slider.d.ts +1 -0
- package/dist/browser/components/q-slider.js +1 -0
- package/dist/browser/components/q-syntax-view.d.ts +1 -0
- package/dist/browser/components/q-syntax-view.js +1 -0
- package/dist/browser/webquark.css +1 -1
- package/dist/playground/assets/reel-motion.webm +0 -0
- package/dist/playground/build/p-014c2f4a.entry.js +1 -0
- package/dist/playground/build/p-0389577c.entry.js +1 -0
- package/dist/playground/build/p-041e17c1.entry.js +1 -0
- package/dist/playground/build/p-0479c571.entry.js +1 -0
- package/dist/playground/build/p-0ebca9be.entry.js +1 -0
- package/dist/playground/build/{p-fe8c634a.entry.js → p-1bf375f7.entry.js} +2 -2
- package/dist/playground/build/{p-6bfffa79.entry.js → p-20dc3ab5.entry.js} +1 -1
- package/dist/playground/build/p-28d3348f.entry.js +1 -0
- package/dist/playground/build/p-35c177d3.entry.js +1 -0
- package/dist/playground/build/{p-99d785ca.entry.js → p-3a60086d.entry.js} +1 -1
- package/dist/playground/build/{p-3bc4629c.entry.js → p-3ab798aa.entry.js} +1 -1
- package/dist/playground/build/{p-9e78b796.entry.js → p-3b580baf.entry.js} +1 -1
- package/dist/playground/build/{p-888e46a8.entry.js → p-3b65f787.entry.js} +1 -1
- package/dist/playground/build/p-45f6e9ec.css +1 -0
- package/dist/playground/build/p-4bf610f8.entry.js +1 -0
- package/dist/playground/build/{p-4d61b70d.entry.js → p-4d30227e.entry.js} +1 -1
- package/dist/playground/build/{p-70d9ffde.entry.js → p-4de536ae.entry.js} +1 -1
- package/dist/playground/build/{p-90b0858c.entry.js → p-4e4d70c9.entry.js} +1 -1
- package/dist/playground/build/p-4efeb7c9.entry.js +1 -0
- package/dist/playground/build/{p-dd115868.entry.js → p-51b3d71b.entry.js} +1 -1
- package/dist/playground/build/p-778b6bbb.entry.js +1 -0
- package/dist/playground/build/{p-f63b7214.entry.js → p-7da78b2f.entry.js} +1 -1
- package/dist/playground/build/{p-9ff7e5a4.entry.js → p-7f8f986b.entry.js} +1 -1
- package/dist/playground/build/p-8253c742.entry.js +1 -0
- package/dist/playground/build/{p-059daa8a.entry.js → p-9a1ddeb7.entry.js} +1 -1
- package/dist/playground/build/p-B610wOGe.js +1 -0
- package/dist/playground/build/p-BxxU73QQ.js +1 -0
- package/dist/playground/build/p-CIMzZPQO.js +3 -0
- package/dist/playground/build/p-CfR85WgM.js +13 -0
- package/dist/playground/build/{p-Dhsn99q4.js → p-D8p28N9s.js} +1 -1
- package/dist/playground/build/p-DbzjRzhu.js +1 -0
- package/dist/playground/build/{p-BOdNg0jc.js → p-DeOEN0si.js} +1 -1
- package/dist/playground/build/{p-d0fbd2b1.entry.js → p-a2b1de23.entry.js} +1 -1
- package/dist/playground/build/{p-48fb5228.entry.js → p-a55edc17.entry.js} +1 -1
- package/dist/playground/build/p-a8808020.entry.js +1 -0
- package/dist/playground/build/{p-f4f97e74.entry.js → p-b1084b3c.entry.js} +1 -1
- package/dist/playground/build/{p-36118d90.entry.js → p-b6c4dff4.entry.js} +1 -1
- package/dist/playground/build/p-b962e950.entry.js +1 -0
- package/dist/playground/build/{p-023f8437.entry.js → p-bc369cd6.entry.js} +1 -1
- package/dist/playground/build/p-c119a8ea.entry.js +1 -0
- package/dist/playground/build/p-c6b77e9a.entry.js +1 -0
- package/dist/playground/build/{p-030ecde3.entry.js → p-ca1c03b4.entry.js} +1 -1
- package/dist/playground/build/{p-8ece2c62.entry.js → p-ce436162.entry.js} +1 -1
- package/dist/playground/build/{p-0aa74ad6.entry.js → p-d0a47a7c.entry.js} +1 -1
- package/dist/playground/build/{p-fec6fe0a.entry.js → p-e1fbc8fc.entry.js} +1 -1
- package/dist/playground/build/{p-09cca7b9.entry.js → p-e32833ce.entry.js} +1 -1
- package/dist/playground/build/p-e369a4aa.entry.js +1 -0
- package/dist/playground/build/p-e4430c61.entry.js +1 -0
- package/dist/playground/build/{p-f9ad63ff.entry.js → p-e9c0052b.entry.js} +1 -1
- package/dist/playground/build/{p-f1bac94c.entry.js → p-f5c4ca18.entry.js} +1 -1
- package/dist/playground/build/{p-64096386.entry.js → p-f6683126.entry.js} +1 -1
- package/dist/playground/build/{p-DWO-pleQ.js → p-ojSDiptZ.js} +1 -1
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/css/base.css +17 -44
- package/dist/playground/formatters/prettier/LICENSE +7 -0
- package/dist/playground/formatters/prettier/THIRD-PARTY-NOTICES.md +7941 -0
- package/dist/playground/formatters/prettier/html-fragment.mjs +1 -0
- package/dist/playground/formatters/prettier/html-fragment.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/angular.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/angular.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/css.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/css.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/flow.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/flow.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/graphql.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/graphql.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/handlebars.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/handlebars.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/html.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/html.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/javascript.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/javascript.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/json-stringify.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/json-stringify.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/json.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/json.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/json5.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/json5.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/jsonc.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/jsonc.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/jsx.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/jsx.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/less.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/less.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/lwc.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/lwc.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/markdown.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/markdown.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/mdx.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/mdx.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/mjml.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/mjml.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/postcss.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/postcss.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/scss.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/scss.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/tsx.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/tsx.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/typescript.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/typescript.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/vue.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/vue.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/yaml.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/yaml.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/manifest.json +87 -0
- package/dist/playground/formatters/prettier/plugins/acorn.mjs +17 -0
- package/dist/playground/formatters/prettier/plugins/acorn.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/angular.mjs +7 -0
- package/dist/playground/formatters/prettier/plugins/angular.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/babel.mjs +16 -0
- package/dist/playground/formatters/prettier/plugins/babel.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/estree.mjs +44 -0
- package/dist/playground/formatters/prettier/plugins/estree.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/flow.mjs +7 -0
- package/dist/playground/formatters/prettier/plugins/flow.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/glimmer.mjs +37 -0
- package/dist/playground/formatters/prettier/plugins/glimmer.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/graphql.mjs +17 -0
- package/dist/playground/formatters/prettier/plugins/graphql.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/html.mjs +25 -0
- package/dist/playground/formatters/prettier/plugins/html.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/markdown.mjs +70 -0
- package/dist/playground/formatters/prettier/plugins/markdown.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/meriyah.mjs +9 -0
- package/dist/playground/formatters/prettier/plugins/meriyah.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/postcss.mjs +62 -0
- package/dist/playground/formatters/prettier/plugins/postcss.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/typescript.mjs +22 -0
- package/dist/playground/formatters/prettier/plugins/typescript.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/yaml.mjs +150 -0
- package/dist/playground/formatters/prettier/plugins/yaml.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/runtime.d.mts +2 -0
- package/dist/playground/formatters/prettier/runtime.mjs +1 -0
- package/dist/playground/formatters/prettier/runtime.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/standalone.mjs +29 -0
- package/dist/playground/formatters/prettier/standalone.mjs.gz +0 -0
- package/dist/playground/index.html +1 -1
- package/dist/playground/playground/components.manifest.json +54 -41
- package/dist/playground/playground/consumer.html +27 -0
- package/dist/playground/playground/specs/q-accordion.sandbox.json +38 -0
- package/dist/playground/playground/specs/q-alert.sandbox.json +95 -0
- package/dist/playground/playground/specs/q-avatar.sandbox.json +39 -6
- package/dist/playground/playground/specs/q-banner.sandbox.json +66 -0
- package/dist/playground/playground/specs/q-button.sandbox.json +115 -15
- package/dist/playground/playground/specs/q-card.sandbox.json +50 -9
- package/dist/playground/playground/specs/q-carousel.sandbox.json +109 -6
- package/dist/playground/playground/specs/q-chip.sandbox.json +29 -2
- package/dist/playground/playground/specs/q-control-group.sandbox.json +30 -0
- package/dist/playground/playground/specs/q-conversation-bubble.sandbox.json +13 -2
- package/dist/playground/playground/specs/q-data-table.sandbox.json +137 -12
- package/dist/playground/playground/specs/q-dialog.sandbox.json +62 -5
- package/dist/playground/playground/specs/q-divider.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +186 -22
- package/dist/playground/playground/specs/q-form.sandbox.json +66 -1
- package/dist/playground/playground/specs/q-grid.sandbox.json +37 -1
- package/dist/playground/playground/specs/q-icon.sandbox.json +62 -23
- package/dist/playground/playground/specs/q-image-comparison.sandbox.json +41 -5
- package/dist/playground/playground/specs/q-inline.sandbox.json +41 -0
- package/dist/playground/playground/specs/q-input.sandbox.json +77 -5
- package/dist/playground/playground/specs/q-link.sandbox.json +213 -17
- package/dist/playground/playground/specs/q-map.sandbox.json +434 -28
- package/dist/playground/playground/specs/q-media.sandbox.json +85 -0
- package/dist/playground/playground/specs/q-navbar.sandbox.json +378 -29
- package/dist/playground/playground/specs/q-pagination.sandbox.json +89 -0
- package/dist/playground/playground/specs/q-panel.sandbox.json +63 -2
- package/dist/playground/playground/specs/q-progress.sandbox.json +37 -11
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +15 -3
- package/dist/playground/playground/specs/q-radio-group.sandbox.json +94 -14
- package/dist/playground/playground/specs/q-reel.sandbox.json +22 -5
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +16 -0
- package/dist/playground/playground/specs/q-section.sandbox.json +69 -0
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +271 -12
- package/dist/playground/playground/specs/q-slider.sandbox.json +104 -0
- package/dist/playground/playground/specs/q-stack.sandbox.json +13 -2
- package/dist/playground/playground/specs/q-step-diagram-item.sandbox.json +101 -0
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +29 -1
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +85 -8
- package/dist/playground/playground/specs/q-syntax-view.sandbox.json +45 -0
- package/dist/playground/playground/specs/q-tabs.sandbox.json +164 -0
- package/dist/playground/playground/specs/q-textarea.sandbox.json +50 -0
- package/dist/playground/playground/specs/q-thumbnail.sandbox.json +67 -0
- package/dist/playground/playground/specs/q-toast.sandbox.json +19 -8
- package/dist/playground/playground/specs/q-toggle.sandbox.json +22 -2
- package/dist/playground/playground/specs/q-toolbar.sandbox.json +55 -0
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +18 -2
- package/dist/playground/playground.js +3986 -2002
- package/dist/playground/presets.html +70 -15
- package/dist/playground/views/tooling/tooling.html +5 -5
- package/package.json +4 -4
- package/scripts/webquark-serve.js +3 -82
- package/scripts/wq-changelog.js +0 -0
- package/scripts/wq-switch/README.md +52 -15
- package/scripts/wq-switch/dist/index.js +1 -1200
- package/scripts/wq-switch/dist/setup.js +1 -894
- package/dist/playground/build/p-04c8cb9e.entry.js +0 -1
- package/dist/playground/build/p-0ae43d6c.entry.js +0 -1
- package/dist/playground/build/p-0c3aac3f.entry.js +0 -1
- package/dist/playground/build/p-144ef339.entry.js +0 -1
- package/dist/playground/build/p-296fbdb1.entry.js +0 -1
- package/dist/playground/build/p-5f232b44.entry.js +0 -13
- package/dist/playground/build/p-6e28cfe2.entry.js +0 -1
- package/dist/playground/build/p-91fff6b6.entry.js +0 -1
- package/dist/playground/build/p-923dac41.entry.js +0 -1
- package/dist/playground/build/p-97a89cae.entry.js +0 -1
- package/dist/playground/build/p-B4Mg1xEw.js +0 -1
- package/dist/playground/build/p-B5ElFlHv.js +0 -3
- package/dist/playground/build/p-Bj2RJb2E.js +0 -1
- package/dist/playground/build/p-ByfrUWx1.js +0 -1
- package/dist/playground/build/p-c523ec6f.entry.js +0 -1
- package/dist/playground/build/p-c923c9c0.js +0 -1
- package/dist/playground/build/p-d0253d64.entry.js +0 -1
- package/dist/playground/build/p-e0bb74ae.css +0 -1
- package/dist/playground/build/p-f98f9439.entry.js +0 -1
- package/dist/playground/build/p-fe200f68.entry.js +0 -1
- package/dist/playground/views/tooling/adoption/CHANGELOG.md +0 -13
- package/dist/playground/views/tooling/adoption/README.md +0 -47
- package/dist/playground/views/tooling/adoption/changelog.config.ts +0 -12
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/README.md +0 -3
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/images/release-panel.svg +0 -7
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/visuals.json +0 -16
- package/dist/playground/views/tooling/adoption/docs/changelog/v0.1.0/README.md +0 -3
- package/dist/playground/views/tooling/adoption/generate.ts +0 -13
- package/dist/playground/views/tooling/adoption/package.json +0 -10
- package/dist/playground/views/tooling/adoption/serve.ts +0 -24
- package/dist/playground/views/tooling/adoption/viewer.html +0 -16
- package/dist/playground/views/tooling/adoption/viewer.js +0 -54
|
@@ -9,39 +9,94 @@
|
|
|
9
9
|
<link rel="stylesheet" href="./native-content.css">
|
|
10
10
|
<style>
|
|
11
11
|
body { margin: 0; padding: 24px; background: var(--q-bg-base); color: var(--q-fg-base); font-family: var(--q-font-family); }
|
|
12
|
-
.controls { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
|
|
12
|
+
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 24px; }
|
|
13
13
|
.comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
|
|
14
14
|
article { min-width: 0; border: var(--q-border); border-radius: var(--q-radius-lg); }
|
|
15
15
|
q-input, q-card, q-form { margin-block: var(--q-space-md); }
|
|
16
|
-
a { color: var(--q-color-primary); }
|
|
17
16
|
</style>
|
|
18
17
|
</head>
|
|
19
18
|
<body>
|
|
20
19
|
<nav class="controls">
|
|
21
|
-
<
|
|
22
|
-
<label
|
|
23
|
-
<label
|
|
24
|
-
<label
|
|
20
|
+
<q-link href="./">Component playground</q-link>
|
|
21
|
+
<q-dropdown id="theme" label="Colour" size="sm" width="fit-options" value="dark" options='["dark", "light"]'></q-dropdown>
|
|
22
|
+
<q-dropdown id="direction" label="Direction" size="sm" width="fit-options" value="ltr" options='["ltr", "rtl"]'></q-dropdown>
|
|
23
|
+
<q-dropdown id="preset" label="Right preset" size="sm" width="fit-options" value="comfortable" options='["comfortable", "compact"]'></q-dropdown>
|
|
25
24
|
</nav>
|
|
26
25
|
<div class="comparison">
|
|
27
26
|
<article class="q-prose q-content-section" data-wq-preset="compact">
|
|
28
27
|
<small>COMPACT — existing defaults</small><h1>Work with clarity</h1>
|
|
29
28
|
<p>Compact text, controls and spacing for everyday application work.</p>
|
|
30
|
-
<q-form size="md" reserve-feedback><q-input label="Project" placeholder="Project name"></q-input
|
|
29
|
+
<q-form size="md" reserve-feedback><q-input label="Project" placeholder="Project name"></q-input>
|
|
30
|
+
<q-button size="sm">Small</q-button> <q-button>Medium</q-button> <q-button size="lg">Large</q-button></q-form>
|
|
31
31
|
<q-card><span slot="header">Card title</span>Compact card padding and body text.</q-card>
|
|
32
32
|
</article>
|
|
33
33
|
<article id="preview" class="q-prose q-content-section" data-wq-preset="comfortable">
|
|
34
|
-
<small>COMFORTABLE — balanced reading</small><h1>Give your ideas room</h1>
|
|
35
|
-
<p>Readable text, responsive headings and comfortable controls for a public website.</p>
|
|
36
|
-
<q-form size="md" reserve-feedback><q-input label="Email" placeholder="you@example.com"></q-input
|
|
37
|
-
<q-
|
|
38
|
-
<
|
|
34
|
+
<small id="presetCaption">COMFORTABLE — balanced reading</small><h1>Give your ideas room</h1>
|
|
35
|
+
<p id="presetDescription">Readable text, responsive headings and comfortable controls for a public website.</p>
|
|
36
|
+
<q-form size="md" reserve-feedback><q-input label="Email" type="email" placeholder="you@example.com"></q-input>
|
|
37
|
+
<q-button size="sm">Small</q-button> <q-button>Medium</q-button> <q-button size="lg">Large</q-button></q-form>
|
|
38
|
+
<q-card><span slot="header">Card title</span>Preset card padding and body text.</q-card>
|
|
39
|
+
<aside data-wq-preset="compact"><h2>Nested compact section</h2><q-input label="Filter"></q-input>
|
|
40
|
+
<q-button>Apply</q-button></aside>
|
|
39
41
|
</article>
|
|
40
42
|
</div>
|
|
43
|
+
<section class="q-prose q-content-section"><h2>Independent input widths</h2><p>Named widths are shared across all three fields; size controls height independently. Change theme and direction above to compare.</p>
|
|
44
|
+
<h3>q-input</h3><div style="display:grid;gap:12px"><q-input width="xs" size="sm" aria-label="Input: xs width, small size" placeholder="xs width, small size"></q-input>
|
|
45
|
+
<q-input width="sm" size="sm" aria-label="Input: sm width, small size" placeholder="sm width, small size"></q-input>
|
|
46
|
+
<q-input width="md" size="sm" aria-label="Input: md width, small size" placeholder="md width, small size"></q-input>
|
|
47
|
+
<q-input width="lg" size="sm" aria-label="Input: lg width, small size" placeholder="lg width, small size"></q-input>
|
|
48
|
+
<q-input width="xl" size="sm" aria-label="Input: xl width, small size" placeholder="xl width, small size"></q-input>
|
|
49
|
+
<q-input width="xxl" size="sm" aria-label="Input: xxl width, small size" placeholder="xxl width, small size"></q-input>
|
|
50
|
+
<q-input width="full" size="sm" aria-label="Input: full width, small size" placeholder="full width, small size"></q-input>
|
|
51
|
+
<q-input size="sm" aria-label="Input: omitted width, small size" placeholder="omitted width, small size"></q-input>
|
|
52
|
+
</div>
|
|
53
|
+
<h3>q-dropdown</h3><div style="display:grid;gap:12px"><q-dropdown width="xs" size="sm" aria-label="Dropdown: xs width, small size" placeholder="xs width, small size"></q-dropdown>
|
|
54
|
+
<q-dropdown width="sm" size="sm" aria-label="Dropdown: sm width, small size" placeholder="sm width, small size"></q-dropdown>
|
|
55
|
+
<q-dropdown width="md" size="sm" aria-label="Dropdown: md width, small size" placeholder="md width, small size"></q-dropdown>
|
|
56
|
+
<q-dropdown width="lg" size="sm" aria-label="Dropdown: lg width, small size" placeholder="lg width, small size"></q-dropdown>
|
|
57
|
+
<q-dropdown width="xl" size="sm" aria-label="Dropdown: xl width, small size" placeholder="xl width, small size"></q-dropdown>
|
|
58
|
+
<q-dropdown width="xxl" size="sm" aria-label="Dropdown: xxl width, small size" placeholder="xxl width, small size"></q-dropdown>
|
|
59
|
+
<q-dropdown width="full" size="sm" aria-label="Dropdown: full width, small size" placeholder="full width, small size"></q-dropdown>
|
|
60
|
+
<q-dropdown size="sm" aria-label="Dropdown: omitted width, small size" placeholder="omitted width, small size"></q-dropdown>
|
|
61
|
+
</div>
|
|
62
|
+
<h4>Dropdown fit to options</h4><q-dropdown width="fit-options" aria-label="Dropdown sized to its options"></q-dropdown>
|
|
63
|
+
<h3>q-textarea</h3><div style="display:grid;gap:12px"><q-textarea width="xs" size="sm" aria-label="Textarea: xs width, small size" placeholder="xs width, small size"></q-textarea>
|
|
64
|
+
<q-textarea width="sm" size="sm" aria-label="Textarea: sm width, small size" placeholder="sm width, small size"></q-textarea>
|
|
65
|
+
<q-textarea width="md" size="sm" aria-label="Textarea: md width, small size" placeholder="md width, small size"></q-textarea>
|
|
66
|
+
<q-textarea width="lg" size="sm" aria-label="Textarea: lg width, small size" placeholder="lg width, small size"></q-textarea>
|
|
67
|
+
<q-textarea width="xl" size="sm" aria-label="Textarea: xl width, small size" placeholder="xl width, small size"></q-textarea>
|
|
68
|
+
<q-textarea width="xxl" size="sm" aria-label="Textarea: xxl width, small size" placeholder="xxl width, small size"></q-textarea>
|
|
69
|
+
<q-textarea width="full" size="sm" aria-label="Textarea: full width, small size" placeholder="full width, small size"></q-textarea>
|
|
70
|
+
<q-textarea size="sm" aria-label="Textarea: omitted width, small size" placeholder="omitted width, small size"></q-textarea>
|
|
71
|
+
</div>
|
|
72
|
+
<h3>Scoped override and narrow parent</h3><div style="--q-input-width-md:18rem;max-width:200px"><q-input width="md" size="lg" aria-label="Input: md overridden, large size" placeholder="md overridden, large size"></q-input>
|
|
73
|
+
</div>
|
|
74
|
+
<h3>Flex and grid constraints</h3><div style="display:flex;max-width:200px"><q-dropdown id="long-selection" width="xl" aria-label="Dropdown: Long selected labels stay within the container" placeholder="Long selected labels stay within the container"></q-dropdown>
|
|
75
|
+
</div><div style="display:grid;grid-template-columns:minmax(0,1fr);max-width:200px"><q-textarea width="xl" aria-label="Textarea: Grid-constrained textarea" placeholder="Grid-constrained textarea"></q-textarea>
|
|
76
|
+
</div>
|
|
77
|
+
</section>
|
|
41
78
|
<script>
|
|
42
|
-
document.querySelector('#theme').
|
|
43
|
-
document.querySelector('#direction').
|
|
44
|
-
|
|
79
|
+
document.querySelector('#theme').addEventListener('qChange', event => document.documentElement.dataset.theme = event.detail);
|
|
80
|
+
document.querySelector('#direction').addEventListener('qChange', event => document.documentElement.dir = event.detail);
|
|
81
|
+
const preview = document.querySelector('#preview');
|
|
82
|
+
document.querySelector('#preset').addEventListener('qChange', event => {
|
|
83
|
+
const comfortable = event.detail === 'comfortable';
|
|
84
|
+
preview.dataset.wqPreset = event.detail;
|
|
85
|
+
preview.querySelector('#presetCaption').textContent = comfortable ? 'COMFORTABLE — balanced reading' : 'COMPACT — existing defaults';
|
|
86
|
+
preview.querySelector('#presetDescription').textContent = comfortable
|
|
87
|
+
? 'Readable text, responsive headings and comfortable controls for a public website.'
|
|
88
|
+
: 'Compact text, controls and spacing for everyday application work.';
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
customElements.whenDefined('q-dropdown').then(() => {
|
|
92
|
+
for (const dropdown of document.querySelectorAll('section q-dropdown')) {
|
|
93
|
+
dropdown.options = [
|
|
94
|
+
{ value: 'brief', label: 'Brief label' },
|
|
95
|
+
{ value: 'long', label: 'A long selected option inside a narrow container' },
|
|
96
|
+
];
|
|
97
|
+
if (dropdown.id === 'long-selection') dropdown.value = 'long';
|
|
98
|
+
}
|
|
99
|
+
});
|
|
45
100
|
</script>
|
|
46
101
|
</body>
|
|
47
102
|
</html>
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>Changelog tooling · WebQuark</title>
|
|
7
|
+
<script type="module" src="../../build/webquark.esm.js"></script>
|
|
8
|
+
<link rel="stylesheet" href="../../build/webquark.css">
|
|
7
9
|
<style>
|
|
8
10
|
:root { color-scheme: light dark; font: 16px/1.6 system-ui, sans-serif; }
|
|
9
11
|
body { margin: 0; background: light-dark(#f5f7fb, #10151f); color: light-dark(#182337, #e7edf7); }
|
|
10
12
|
main { max-width: 880px; margin: auto; padding: 40px 24px 64px; }
|
|
11
|
-
a { color: light-dark(#2754bd, #a0bdff); }
|
|
12
|
-
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
|
|
13
13
|
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 28px 0 16px; }
|
|
14
14
|
h2 { margin-top: 36px; font-size: 1.35rem; }
|
|
15
15
|
.intro { font-size: 1.15rem; max-width: 70ch; }
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</head>
|
|
23
23
|
<body>
|
|
24
24
|
<main>
|
|
25
|
-
<
|
|
25
|
+
<q-link href="../../index.html" underline="always">← Component playground</q-link>
|
|
26
26
|
<p class="eyebrow">Developer tooling</p>
|
|
27
27
|
<h1>Release notes from your project</h1>
|
|
28
28
|
<p class="intro">Generate a content-hashed release feed, keep application versions aligned, and stage reviewed images. Your application owns its routes, authentication, fictional demo data and viewer.</p>
|
|
@@ -45,8 +45,8 @@ import { checkVersions as umbrellaCheckVersions } from '@webquark/core/tooling/c
|
|
|
45
45
|
|
|
46
46
|
<h2>Start with text notes</h2>
|
|
47
47
|
<p>Use init for automatic setup, or the installed tooling README's manual reference for custom paths and viewers. Every included dated release needs its matching folder, even when text only. Text and manual images need no metadata adapter.</p>
|
|
48
|
-
<p>The <
|
|
49
|
-
<p>The <
|
|
48
|
+
<p>The <q-link underline="always" href="https://github.com/Purely-IT/WebQuark/tree/main/examples/changelog-adoption">runnable browser example</q-link> lives in <code>examples/changelog-adoption/</code> and has a real generator, local server, source notes and a fictional manual SVG image. Run its <code>generate.ts</code> and <code>serve.ts</code> using Bun 1.4.2 or later, then open <code>http://127.0.0.1:4173/</code>. Generated artifacts stay under ignored <code>dist/</code>.</p>
|
|
49
|
+
<p>The <q-link underline="always" href="sample-notes.md">fictional sample notes</q-link> and <q-link underline="always" href="sample-feed.json">sample feed JSON</q-link> are static format references. The feed keeps <code>{ releases }</code>, Added/Changed/Fixed/Removed summaries and a visuals array. Generation hashes the JSON and image bytes and writes <code>feed-url.ts</code>; the runnable example connects the returned <code>feedUrl</code> to browser code.</p>
|
|
50
50
|
<pre><code>wq-changelog version check --config ./changelog.config.ts
|
|
51
51
|
wq-changelog notes --config ./changelog.config.ts --include-unreleased</code></pre>
|
|
52
52
|
<p>The application serves the whole generated folder. The viewer fetches the feed, resolves image URLs relative to its URL, and safely renders notes as plain text with <code>textContent</code>. Browser code imports no runtime tooling. Optional <code>ReleaseFeed</code> TypeScript imports are type only. Version-only checks require no feed or capture setup. Production settings exclude Unreleased.</p>
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webquark/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1-dev.1",
|
|
4
4
|
"description": "WebQuark installation umbrella with separate browser and tooling entries",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/XsAndre-L/WebQuark.git",
|
|
8
8
|
"directory": "packages/core"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"LICENSE"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@webquark/browser": "1.1.
|
|
63
|
-
"@webquark/tooling": "1.1.
|
|
62
|
+
"@webquark/browser": "1.1.1-dev.1",
|
|
63
|
+
"@webquark/tooling": "1.1.1-dev.1"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "bun run --cwd ../.. core:build"
|
|
@@ -1,83 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
function __accessProp(key) {
|
|
8
|
-
return this[key];
|
|
9
|
-
}
|
|
10
|
-
var __toESMCache_node;
|
|
11
|
-
var __toESMCache_esm;
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
-
var canCache = mod != null && typeof mod === "object";
|
|
14
|
-
if (canCache) {
|
|
15
|
-
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
-
var cached = cache.get(mod);
|
|
17
|
-
if (cached)
|
|
18
|
-
return cached;
|
|
19
|
-
}
|
|
20
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
-
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
-
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
|
-
for (let key of __getOwnPropNames(mod))
|
|
24
|
-
if (!__hasOwnProp.call(to, key))
|
|
25
|
-
__defProp(to, key, {
|
|
26
|
-
get: __accessProp.bind(mod, key),
|
|
27
|
-
enumerable: true
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
if (canCache)
|
|
31
|
-
cache.set(mod, to);
|
|
32
|
-
return to;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// scripts/webquark-serve.ts
|
|
36
|
-
var http = __toESM(require("http"));
|
|
37
|
-
var fs = __toESM(require("fs"));
|
|
38
|
-
var path = __toESM(require("path"));
|
|
39
|
-
var PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 3333;
|
|
40
|
-
var PACKAGE_DIR = path.resolve(eval("__dirname"), "..");
|
|
41
|
-
var packageManifest = JSON.parse(fs.readFileSync(path.join(PACKAGE_DIR, "package.json"), "utf8"));
|
|
42
|
-
var PUBLIC_DIR = path.join(PACKAGE_DIR, packageManifest.private ? ".stencil/dist/playground" : "dist/playground");
|
|
43
|
-
var MIME_TYPES = {
|
|
44
|
-
".html": "text/html",
|
|
45
|
-
".css": "text/css",
|
|
46
|
-
".js": "application/javascript",
|
|
47
|
-
".json": "application/json",
|
|
48
|
-
".svg": "image/svg+xml",
|
|
49
|
-
".png": "image/png",
|
|
50
|
-
".jpg": "image/jpeg",
|
|
51
|
-
".gif": "image/gif",
|
|
52
|
-
".ico": "image/x-icon"
|
|
53
|
-
};
|
|
54
|
-
var server = http.createServer((req, res) => {
|
|
55
|
-
const decodedUrl = decodeURIComponent(req.url || "");
|
|
56
|
-
let filePath = path.join(PUBLIC_DIR, decodedUrl === "/" ? "index.html" : decodedUrl);
|
|
57
|
-
if (!filePath.startsWith(PUBLIC_DIR)) {
|
|
58
|
-
res.statusCode = 403;
|
|
59
|
-
res.writeHead(403, { "Content-Type": "text/plain" });
|
|
60
|
-
res.end("Forbidden");
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
fs.stat(filePath, (err, stats) => {
|
|
64
|
-
if (err || !stats.isFile()) {
|
|
65
|
-
filePath = path.join(PUBLIC_DIR, "index.html");
|
|
66
|
-
}
|
|
67
|
-
const ext = path.extname(filePath).toLowerCase();
|
|
68
|
-
const contentType = MIME_TYPES[ext] || "application/octet-stream";
|
|
69
|
-
res.writeHead(200, {
|
|
70
|
-
"Content-Type": contentType,
|
|
71
|
-
"Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate",
|
|
72
|
-
Pragma: "no-cache",
|
|
73
|
-
Expires: "0"
|
|
74
|
-
});
|
|
75
|
-
fs.createReadStream(filePath).pipe(res);
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
server.listen(PORT, () => {
|
|
79
|
-
console.log(`
|
|
80
|
-
\uD83D\uDE80 WebQuark Sandbox is running!`);
|
|
81
|
-
console.log(`\uD83D\uDC49 http://localhost:${PORT}
|
|
82
|
-
`);
|
|
83
|
-
});
|
|
2
|
+
import('@webquark/tooling/sandbox').then(({ startSandbox }) => {
|
|
3
|
+
startSandbox(require('node:path').resolve(__dirname, '../dist/playground'));
|
|
4
|
+
}).catch(error => { console.error(error); process.exitCode = 1; });
|
package/scripts/wq-changelog.js
CHANGED
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WebQuark local tooling
|
|
2
2
|
|
|
3
3
|
Run the commands in the **consuming project**, in the directory containing its
|
|
4
|
-
package.json. The tooling is being rebuilt before full release and uses one
|
|
4
|
+
package.json. CLI execution requires Node.js 24 or newer. The tooling is being rebuilt before full release and uses one
|
|
5
5
|
supported consumer layout:
|
|
6
6
|
|
|
7
7
|
```text
|
|
@@ -49,7 +49,31 @@ Setup writes `.webquark/.webquark.json` with settings inside `"wq-switch"`:
|
|
|
49
49
|
|
|
50
50
|
Without `--source`, setup creates an empty source setting. Fill it in before
|
|
51
51
|
running `local` or `build`. Relative source paths resolve from the consuming
|
|
52
|
-
|
|
52
|
+
configuration owner's directory (the parent of `.webquark`), even when a child
|
|
53
|
+
consumer inherits that configuration.
|
|
54
|
+
|
|
55
|
+
### Shared workspace configuration
|
|
56
|
+
|
|
57
|
+
A consumer first uses its own `wq-switch` configuration, then the nearest
|
|
58
|
+
ancestor configuration up to its declared workspace root. Workspace membership
|
|
59
|
+
comes from `package.json` `workspaces` arrays or `workspaces.packages`, with
|
|
60
|
+
relative positive glob patterns. A nested workspace root is a boundary; a
|
|
61
|
+
consumer not included in the nearest workspace does not inherit its settings.
|
|
62
|
+
Standalone projects never inherit configuration merely because a parent has one.
|
|
63
|
+
Invalid nearer configuration fails explicitly. Configurations are not merged.
|
|
64
|
+
|
|
65
|
+
Keep a single `.webquark/.webquark.json` at the workspace root to share settings.
|
|
66
|
+
Each consumer still owns its own `.webquark/state/`, `.webquark/generated/packages/`,
|
|
67
|
+
package connections, and two-snapshot limit. Commands continue to identify the
|
|
68
|
+
consumer using its nearest `package.json`. `status` prints the exact configuration
|
|
69
|
+
file and resolved source directory.
|
|
70
|
+
|
|
71
|
+
Running `setup` in a child reuses inherited settings and adds only that consumer's
|
|
72
|
+
scripts and ignore entries; it does not create another configuration file.
|
|
73
|
+
Change shared settings from their owning project. Setup refuses a child request
|
|
74
|
+
to change an inherited source, and refuses shared-setting changes while an
|
|
75
|
+
affected workspace member has active state or pending recovery. If no applicable
|
|
76
|
+
configuration exists, setup creates one in the current consumer as before.
|
|
53
77
|
|
|
54
78
|
`preferredVersion` is copied from the consumer's first declared WebQuark dependency
|
|
55
79
|
(core takes precedence, then browser, tooling, Angular and React).
|
|
@@ -96,7 +120,8 @@ Original package backups depend on the installed package graph remaining intact.
|
|
|
96
120
|
|
|
97
121
|
## Developing the CLI
|
|
98
122
|
|
|
99
|
-
|
|
123
|
+
Tooling owns the bundled Node executables `wq-switch` and `wq-setup`; core
|
|
124
|
+
preserves its existing executable paths through forwarding launchers. Build them
|
|
100
125
|
from the current WebQuark checkout:
|
|
101
126
|
|
|
102
127
|
```powershell
|
|
@@ -106,10 +131,10 @@ bun run --cwd "D:\Dev\PurelyIT\WebQuark" switch:build
|
|
|
106
131
|
To exercise that exact build, invoke it directly from the consuming project:
|
|
107
132
|
|
|
108
133
|
```powershell
|
|
109
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
110
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
111
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
112
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
134
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" setup --source "D:\Dev\PurelyIT\WebQuark"
|
|
135
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" local
|
|
136
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" status
|
|
137
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" npm
|
|
113
138
|
```
|
|
114
139
|
|
|
115
140
|
Use the same checkout executable for subsequent commands while testing CLI
|
|
@@ -141,9 +166,18 @@ that operation before changing the consumer's active state.
|
|
|
141
166
|
projects coordinate builds of the same checkout. Interrupted operations roll
|
|
142
167
|
back before the next modifying command. Connections changed by another install
|
|
143
168
|
are detected and are not overwritten.
|
|
144
|
-
-
|
|
169
|
+
- Each consumer retains at most two completed snapshots: its active generation
|
|
170
|
+
and the newest remaining fallback. Successful activation, recovery, and npm
|
|
171
|
+
restoration delete older generations automatically, oldest first; npm mode
|
|
172
|
+
keeps the newest two. A third generation may exist temporarily while staging
|
|
173
|
+
and switching. Active and recovery-journal generations are never pruned.
|
|
174
|
+
Failed staging removes its partial generation. Cleanup failures fail the command
|
|
175
|
+
explicitly; retry after resolving the reported filesystem error. A committed
|
|
176
|
+
activation stays active even when its subsequent cleanup fails.
|
|
177
|
+
- Restart consumer servers after every activation. Processes using snapshots
|
|
178
|
+
older than the retained fallback must be stopped before the next switch.
|
|
145
179
|
After restoring npm and stopping those processes, `.webquark/generated/` can
|
|
146
|
-
be removed
|
|
180
|
+
still be removed manually. Keep `.webquark/.webquark.json` for future use.
|
|
147
181
|
|
|
148
182
|
## Preflight checks
|
|
149
183
|
|
|
@@ -161,13 +195,16 @@ These checks read configuration and state without changing files.
|
|
|
161
195
|
|
|
162
196
|
## Source and validation
|
|
163
197
|
|
|
164
|
-
`
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
198
|
+
`cli/` routes user inputs; `commands/` coordinates distinct command intents;
|
|
199
|
+
`workflows/` orchestrates atomic snapshot activation, npm restoration, crash recovery,
|
|
200
|
+
and snapshot pruning; `domains/` owns workspace discovery, immutable snapshots,
|
|
201
|
+
transactions, and launcher binaries; `infrastructure/` provides filesystem safety and
|
|
202
|
+
concurrency locking.
|
|
203
|
+
|
|
204
|
+
`index.ts` and `setup.ts` serve as entrypoints. Bundled files in `packages/tooling/dist/wq-switch/` are generated.
|
|
169
205
|
|
|
170
206
|
```powershell
|
|
171
207
|
bun run switch:build
|
|
172
|
-
|
|
208
|
+
bun run core:build
|
|
209
|
+
bunx vitest run --project tooling src/tooling/wq-switch/switch.unit.test.ts src/tooling/wq-switch/check.unit.test.ts
|
|
173
210
|
```
|