@webquark/core 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/{readme.md → README.md} +97 -78
- package/dist/cjs/q-button_3.cjs.entry.js +22 -22
- package/dist/cjs/q-card.cjs.entry.js +3 -3
- package/dist/cjs/q-carousel.cjs.entry.js +2 -2
- package/dist/cjs/q-circular-progress_2.cjs.entry.js +5 -5
- package/dist/cjs/q-data-table.cjs.entry.js +3 -3
- package/dist/cjs/q-dialog.cjs.entry.js +1 -1
- package/dist/cjs/q-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/q-quantity-selector.cjs.entry.js +5 -5
- package/dist/cjs/q-reel.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram.cjs.entry.js +2 -2
- package/dist/cjs/q-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q-thumbnail.cjs.entry.js +2 -2
- package/dist/cjs/q-toggle.cjs.entry.js +3 -3
- package/dist/collection/assets/icons/braces.svg +14 -14
- package/dist/collection/assets/icons/check.svg +1 -1
- package/dist/collection/assets/icons/chevron-down.svg +1 -1
- package/dist/collection/assets/icons/chevron-left.svg +1 -1
- package/dist/collection/assets/icons/chevron-right.svg +1 -1
- package/dist/collection/assets/icons/chevron-up.svg +1 -1
- package/dist/collection/assets/icons/copy.svg +4 -4
- package/dist/collection/assets/icons/eye-off.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/play.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/spinner.svg +1 -1
- package/dist/collection/assets/icons/trash-2.svg +1 -1
- package/dist/collection/assets/icons/x.svg +1 -1
- package/dist/collection/components/card/card.js +3 -3
- package/dist/collection/components/carousel/carousel.js +2 -2
- package/dist/collection/components/circular-progress/circular-progress.js +2 -2
- package/dist/collection/components/data-table/data-table.css +219 -219
- package/dist/collection/components/data-table/data-table.js +4 -4
- package/dist/collection/components/dialog/dialog.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +5 -5
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/quantity-selector/quantity-selector.css +131 -131
- package/dist/collection/components/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/reel/reel.js +2 -2
- package/dist/collection/components/scrollable/scrollable.js +22 -22
- package/dist/collection/components/sidepanel/sidepanel.js +2 -2
- package/dist/collection/components/step-diagram/step-diagram.js +2 -2
- package/dist/collection/components/step-diagram-item/step-diagram-item.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/toggle/toggle.js +4 -4
- package/dist/collection/playground/components/playground-event-log/playground-event-log.js +3 -3
- package/dist/collection/playground/components/sandbox-viewport/sandbox-panel.js +3 -3
- package/dist/collection/playground/logo.svg +8 -8
- package/dist/collection/playground/playground.bundled.js +590 -590
- package/dist/collection/playground/views/q-button-view/q-button-view.js +6 -6
- package/dist/collection/playground/views/q-input-view/q-input-view.js +6 -6
- package/dist/collection/utils/formatter.unit.test.js +24 -24
- package/dist/components/{p-CYfD9z8O.js → p-B4IF9WVv.js} +1 -1
- package/dist/components/{p-BRNv11Jn.js → p-DScvq41R.js} +1 -1
- package/dist/components/{p-B7e76DLW.js → p-Do2ppeKL.js} +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-circular-progress.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/esm/q-button_3.entry.js +22 -22
- package/dist/esm/q-card.entry.js +3 -3
- package/dist/esm/q-carousel.entry.js +2 -2
- package/dist/esm/q-circular-progress_2.entry.js +5 -5
- package/dist/esm/q-data-table.entry.js +3 -3
- package/dist/esm/q-dialog.entry.js +1 -1
- package/dist/esm/q-dropdown.entry.js +3 -3
- package/dist/esm/q-quantity-selector.entry.js +5 -5
- package/dist/esm/q-reel.entry.js +2 -2
- package/dist/esm/q-step-diagram-item.entry.js +2 -2
- package/dist/esm/q-step-diagram.entry.js +2 -2
- package/dist/esm/q-textarea.entry.js +2 -2
- package/dist/esm/q-thumbnail.entry.js +2 -2
- package/dist/esm/q-toggle.entry.js +3 -3
- package/dist/playground/assets/icons/braces.svg +14 -14
- package/dist/playground/assets/icons/check.svg +1 -1
- package/dist/playground/assets/icons/chevron-down.svg +1 -1
- package/dist/playground/assets/icons/chevron-left.svg +1 -1
- package/dist/playground/assets/icons/chevron-right.svg +1 -1
- package/dist/playground/assets/icons/chevron-up.svg +1 -1
- package/dist/playground/assets/icons/copy.svg +4 -4
- package/dist/playground/assets/icons/eye-off.svg +1 -1
- package/dist/playground/assets/icons/eye.svg +1 -1
- package/dist/playground/assets/icons/minus.svg +1 -1
- package/dist/playground/assets/icons/play.svg +1 -1
- package/dist/playground/assets/icons/plus.svg +1 -1
- package/dist/playground/assets/icons/search.svg +1 -1
- package/dist/playground/assets/icons/spinner.svg +1 -1
- package/dist/playground/assets/icons/trash-2.svg +1 -1
- package/dist/playground/assets/icons/x.svg +1 -1
- package/dist/playground/build/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
- package/dist/playground/build/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
- package/dist/{webquark/p-f7b5b155.entry.js → playground/build/p-4ce667f1.entry.js} +1 -1
- package/dist/{webquark/p-aa9be919.entry.js → playground/build/p-66b0eb0f.entry.js} +1 -1
- package/dist/{webquark/p-b1e68119.entry.js → playground/build/p-69d33f9d.entry.js} +1 -1
- package/dist/playground/build/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
- package/dist/{webquark/p-f48dd3dd.entry.js → playground/build/p-776a0eb6.entry.js} +1 -1
- package/dist/playground/build/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
- package/dist/playground/build/p-7d2144cf.entry.js +1 -0
- package/dist/playground/build/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
- package/dist/{webquark/p-1238a2cc.entry.js → playground/build/p-938cd8a6.entry.js} +1 -1
- package/dist/playground/build/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
- package/dist/playground/build/p-aa017815.entry.js +1 -0
- package/dist/playground/build/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/logo.svg +8 -8
- package/dist/playground/playground/specs/q-button.sandbox.json +198 -198
- package/dist/playground/playground/specs/q-card.sandbox.json +144 -144
- package/dist/playground/playground/specs/q-carousel.sandbox.json +120 -120
- package/dist/playground/playground/specs/q-circular-progress.sandbox.json +91 -91
- package/dist/playground/playground/specs/q-data-table.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dialog.sandbox.json +108 -108
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +116 -116
- package/dist/playground/playground/specs/q-icon.sandbox.json +138 -138
- package/dist/playground/playground/specs/q-input.sandbox.json +192 -192
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +99 -99
- package/dist/playground/playground/specs/q-reel.sandbox.json +70 -70
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +102 -102
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +147 -147
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +56 -56
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +160 -160
- package/dist/playground/playground/specs/q-textarea.sandbox.json +133 -133
- package/dist/playground/playground/specs/q-toggle.sandbox.json +196 -196
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +65 -65
- package/dist/playground/playground.css +1 -1
- package/dist/playground/playground.js +590 -590
- package/dist/playground/views/q-button-view/q-button-view.css +1 -1
- package/dist/playground/views/q-button-view/q-button-view.html +1 -1
- package/dist/playground/views/q-button-view/q-button-view.js +6 -6
- package/dist/playground/views/q-input-view/q-input-view.css +1 -1
- package/dist/playground/views/q-input-view/q-input-view.html +1 -1
- package/dist/playground/views/q-input-view/q-input-view.js +6 -6
- package/dist/types/declarations.d.ts +9 -9
- package/dist/webquark/{p-4f133a25.entry.js → p-1187e439.entry.js} +1 -1
- package/dist/webquark/{p-c8d6af8e.entry.js → p-38d9e75b.entry.js} +1 -1
- package/dist/{playground/build/p-f7b5b155.entry.js → webquark/p-4ce667f1.entry.js} +1 -1
- package/dist/{playground/build/p-aa9be919.entry.js → webquark/p-66b0eb0f.entry.js} +1 -1
- package/dist/{playground/build/p-b1e68119.entry.js → webquark/p-69d33f9d.entry.js} +1 -1
- package/dist/webquark/{p-679fa494.entry.js → p-76e04a7f.entry.js} +1 -1
- package/dist/{playground/build/p-f48dd3dd.entry.js → webquark/p-776a0eb6.entry.js} +1 -1
- package/dist/webquark/{p-5c67a28e.entry.js → p-7c4532f3.entry.js} +1 -1
- package/dist/webquark/p-7d2144cf.entry.js +1 -0
- package/dist/webquark/{p-7083c5ff.entry.js → p-84185204.entry.js} +1 -1
- package/dist/{playground/build/p-1238a2cc.entry.js → webquark/p-938cd8a6.entry.js} +1 -1
- package/dist/webquark/{p-7f47861b.entry.js → p-a182b818.entry.js} +1 -1
- package/dist/webquark/p-aa017815.entry.js +1 -0
- package/dist/webquark/{p-8a94a0a2.entry.js → p-d7607e11.entry.js} +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +84 -84
- package/dist/playground/build/p-9afa3fe8.entry.js +0 -1
- package/dist/playground/build/p-9bb8ed97.entry.js +0 -1
- package/dist/webquark/p-9afa3fe8.entry.js +0 -1
- package/dist/webquark/p-9bb8ed97.entry.js +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/{readme.md → README.md}
RENAMED
|
@@ -1,79 +1,98 @@
|
|
|
1
|
-
# ⚡ WebQuark Component Library
|
|
2
|
-
|
|
3
|
-
## 🎯 Purpose
|
|
4
|
-
A premium, glassmorphic Web Component library compiled with **StencilJS**. Designed for high performance, standard compliance, and compatibility with **Unreal Engine Webviews** (Chromium Embedded Framework in Off-Screen Rendering mode).
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 🚀 Quick Start (Using Components)
|
|
9
|
-
|
|
10
|
-
### 1. Install Library
|
|
11
|
-
```bash
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
### 2. Import Styles & Bootloader
|
|
16
|
-
Add this to your application's entry file:
|
|
17
|
-
```javascript
|
|
18
|
-
// Import core CSS variables & design tokens
|
|
19
|
-
import '@webquark/core/dist/webquark/webquark.css';
|
|
20
|
-
|
|
21
|
-
// Register custom web components
|
|
22
|
-
import { defineCustomElements } from '@webquark/core/loader';
|
|
23
|
-
defineCustomElements();
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### 3. Use in HTML
|
|
27
|
-
```html
|
|
28
|
-
<q-card interactive elevation="medium">
|
|
29
|
-
<div slot="header">Hello WebQuark</div>
|
|
30
|
-
<q-button variant="primary">Click Me</q-button>
|
|
31
|
-
</q-card>
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## 🗺️ Project Workspace Map
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
webquark/ (Root)
|
|
40
|
-
├── dist/ ◄── Production compilations (ESM, custom elements, CSS)
|
|
41
|
-
├── docs/ ◄── Design guides & API specs
|
|
42
|
-
│ ├── components/ ◄── Component-specific specifications (e.g. q-card.md)
|
|
43
|
-
│ ├── components.md ◄── Roadmap implementation status dashboard
|
|
44
|
-
│ ├── theme_variables.md◄── CSS custom properties reference
|
|
45
|
-
│ └── unreal_compatibility.md ◄─ CEF Off-Screen Rendering layout guidelines
|
|
46
|
-
├── src/ ◄── Source files
|
|
47
|
-
│ ├── components/ ◄── Custom Web Components
|
|
48
|
-
│ │ └── q-[name]/
|
|
49
|
-
│ │ ├── q-[name].tsx ◄── Component logic & render template (TSX)
|
|
50
|
-
│ │ ├── q-[name].css ◄── Local stylesheet
|
|
51
|
-
│ │ └── readme.md ◄── Auto-generated API details (props, slots, events)
|
|
52
|
-
│ └── global/
|
|
53
|
-
│ └── global.css ◄── Global design tokens & visual system variables
|
|
54
|
-
└── readme.md ◄── This file
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
##
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
# ⚡ WebQuark Component Library
|
|
2
|
+
|
|
3
|
+
## 🎯 Purpose
|
|
4
|
+
A premium, glassmorphic Web Component library compiled with **StencilJS**. Designed for high performance, standard compliance, and compatibility with **Unreal Engine Webviews** (Chromium Embedded Framework in Off-Screen Rendering mode).
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 🚀 Quick Start (Using Components)
|
|
9
|
+
|
|
10
|
+
### 1. Install Library
|
|
11
|
+
```bash
|
|
12
|
+
bun add @webquark/core
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### 2. Import Styles & Bootloader
|
|
16
|
+
Add this to your application's entry file:
|
|
17
|
+
```javascript
|
|
18
|
+
// Import core CSS variables & design tokens
|
|
19
|
+
import '@webquark/core/dist/webquark/webquark.css';
|
|
20
|
+
|
|
21
|
+
// Register custom web components
|
|
22
|
+
import { defineCustomElements } from '@webquark/core/loader';
|
|
23
|
+
defineCustomElements();
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### 3. Use in HTML
|
|
27
|
+
```html
|
|
28
|
+
<q-card interactive elevation="medium">
|
|
29
|
+
<div slot="header">Hello WebQuark</div>
|
|
30
|
+
<q-button variant="primary">Click Me</q-button>
|
|
31
|
+
</q-card>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 🗺️ Project Workspace Map
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
webquark/ (Root)
|
|
40
|
+
├── dist/ ◄── Production compilations (ESM, custom elements, CSS)
|
|
41
|
+
├── docs/ ◄── Design guides & API specs
|
|
42
|
+
│ ├── components/ ◄── Component-specific specifications (e.g. q-card.md)
|
|
43
|
+
│ ├── components.md ◄── Roadmap implementation status dashboard
|
|
44
|
+
│ ├── theme_variables.md◄── CSS custom properties reference
|
|
45
|
+
│ └── unreal_compatibility.md ◄─ CEF Off-Screen Rendering layout guidelines
|
|
46
|
+
├── src/ ◄── Source files
|
|
47
|
+
│ ├── components/ ◄── Custom Web Components
|
|
48
|
+
│ │ └── q-[name]/
|
|
49
|
+
│ │ ├── q-[name].tsx ◄── Component logic & render template (TSX)
|
|
50
|
+
│ │ ├── q-[name].css ◄── Local stylesheet
|
|
51
|
+
│ │ └── readme.md ◄── Auto-generated API details (props, slots, events)
|
|
52
|
+
│ └── global/
|
|
53
|
+
│ └── global.css ◄── Global design tokens & visual system variables
|
|
54
|
+
└── readme.md ◄── This file
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 🧪 WebQuark Component Sandbox
|
|
60
|
+
|
|
61
|
+
WebQuark includes a built-in interactive sandbox playground where you can preview components, inspect their layout behaviors, and test theme design variables in real-time.
|
|
62
|
+
|
|
63
|
+
To launch the sandbox:
|
|
64
|
+
1. Navigate to the WebQuark root directory.
|
|
65
|
+
2. Start the playground server:
|
|
66
|
+
```bash
|
|
67
|
+
bun start
|
|
68
|
+
```
|
|
69
|
+
3. Open your web browser and navigate to: [http://localhost:3333](http://localhost:3333)
|
|
70
|
+
|
|
71
|
+
Inside the sandbox:
|
|
72
|
+
* **Interactive Previews:** Adjust component attributes, slots, and events on the fly.
|
|
73
|
+
* **Theme Designer:** Tweak global CSS design tokens (colors, border-radius, font sizes) and see the visual changes reflect instantly.
|
|
74
|
+
* **Event Log:** Inspect custom event payloads dispatched by components as you interact with them.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 🛠️ Development Commands
|
|
79
|
+
|
|
80
|
+
Before running commands, install package dependencies:
|
|
81
|
+
```bash
|
|
82
|
+
bun install
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
| Command | Action | Description |
|
|
86
|
+
| :--- | :--- | :--- |
|
|
87
|
+
| **`bun start`** | **Run Playground** | Starts a local hot-reloading component sandbox at `http://localhost:3333`. |
|
|
88
|
+
| **`bun run build`** | **Build Library** | Runs Stencil compiler to output production bundles inside `dist/`. |
|
|
89
|
+
| **`bun test`** | **Run Test Suites** | Runs unit test suites using Vitest. |
|
|
90
|
+
| **`bun run test:watch`**| **Watch Tests** | Runs tests in interactive watcher mode. |
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## ⚠️ Key Design Principles
|
|
95
|
+
|
|
96
|
+
* **Self-Contained Rendering**: All components encapsulate their layout inside Shadow DOM.
|
|
97
|
+
* **Tactile Micro-interactions**: Buttons and selectors utilize tactile CSS transformations (e.g. `scale(0.97)` on active press) for premium layout feedback.
|
|
79
98
|
* **CEF Safety First**: Ensure any new styling variables comply with [Unreal Compatibility Guidelines](docs/unreal_compatibility.md) (e.g., no backdrop-filters, no dropdown overlay windows).
|
|
@@ -245,25 +245,25 @@ const QScrollable = class {
|
|
|
245
245
|
}
|
|
246
246
|
const styleEl = document.createElement('style');
|
|
247
247
|
styleEl.id = `q-style-${targetId}`;
|
|
248
|
-
styleEl.textContent = `
|
|
249
|
-
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar {
|
|
250
|
-
width: 8px;
|
|
251
|
-
height: 8px;
|
|
252
|
-
}
|
|
253
|
-
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar-track {
|
|
254
|
-
background: transparent;
|
|
255
|
-
}
|
|
256
|
-
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar-thumb {
|
|
257
|
-
background: var(--q-bg-surface-3, #4b5563);
|
|
258
|
-
border-radius: 4px;
|
|
259
|
-
}
|
|
260
|
-
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar-thumb:hover {
|
|
261
|
-
background: var(--q-color-primary, #3b82f6);
|
|
262
|
-
}
|
|
263
|
-
[data-q-scrollable-target-id="${targetId}"] {
|
|
264
|
-
scrollbar-width: thin;
|
|
265
|
-
scrollbar-color: var(--q-bg-surface-3, #4b5563) transparent;
|
|
266
|
-
}
|
|
248
|
+
styleEl.textContent = `
|
|
249
|
+
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar {
|
|
250
|
+
width: 8px;
|
|
251
|
+
height: 8px;
|
|
252
|
+
}
|
|
253
|
+
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar-track {
|
|
254
|
+
background: transparent;
|
|
255
|
+
}
|
|
256
|
+
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar-thumb {
|
|
257
|
+
background: var(--q-bg-surface-3, #4b5563);
|
|
258
|
+
border-radius: 4px;
|
|
259
|
+
}
|
|
260
|
+
[data-q-scrollable-target-id="${targetId}"]::-webkit-scrollbar-thumb:hover {
|
|
261
|
+
background: var(--q-color-primary, #3b82f6);
|
|
262
|
+
}
|
|
263
|
+
[data-q-scrollable-target-id="${targetId}"] {
|
|
264
|
+
scrollbar-width: thin;
|
|
265
|
+
scrollbar-color: var(--q-bg-surface-3, #4b5563) transparent;
|
|
266
|
+
}
|
|
267
267
|
`;
|
|
268
268
|
targetEl.appendChild(styleEl);
|
|
269
269
|
this.nativeStyleEl = styleEl;
|
|
@@ -406,13 +406,13 @@ const QScrollable = class {
|
|
|
406
406
|
height: this.height,
|
|
407
407
|
maxHeight: this.maxHeight || undefined,
|
|
408
408
|
};
|
|
409
|
-
return (index.h(index.Host, { key: '
|
|
409
|
+
return (index.h(index.Host, { key: '0313613bedcd1efc4820dc8b2e4a0894204ac914', class: {
|
|
410
410
|
'is-scrolling': this.isScrolling,
|
|
411
411
|
'is-dragging': this.isDragging,
|
|
412
|
-
}, style: hostStyle }, index.h("div", { key: '
|
|
412
|
+
}, style: hostStyle }, index.h("div", { key: '267389f1d2a521a71c5d9e2472439fa1ca1eb1fd', class: "q-scrollable-host" }, index.h("div", { key: '24e9eac221928ffd8578d1b7cf38776ad7c0cd94', class: "q-scrollable-viewport", ref: this.setViewportRef, onScroll: this.handleScroll }, index.h("div", { key: 'b37e30cd427a300d173a63427cd2025cc6e1f55c', class: "q-scrollable-content", ref: this.setContentRef }, index.h("slot", { key: '43130d5fecc7f9a7e82c88e4a28ac681a2795c4e' }))), this.mode === 'custom' && (index.h("div", { key: '31316ea30108c640c88f6cec1ac6c98b5a079734', class: {
|
|
413
413
|
'q-scrollbar-track': true,
|
|
414
414
|
'is-dragging': this.isDragging,
|
|
415
|
-
}, ref: (el) => (this.trackEl = el) }, index.h("div", { key: '
|
|
415
|
+
}, ref: (el) => (this.trackEl = el) }, index.h("div", { key: '39023c16e3ca2593be0c90b292863f71ced4b132', class: "q-scrollbar-thumb", ref: (el) => (this.thumbEl = el), onPointerDown: this.handlePointerDown }))))));
|
|
416
416
|
}
|
|
417
417
|
static get watchers() { return {
|
|
418
418
|
"mode": [{
|
|
@@ -38,16 +38,16 @@ const QCard = class {
|
|
|
38
38
|
};
|
|
39
39
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
40
40
|
render() {
|
|
41
|
-
return (index.h("div", { key: '
|
|
41
|
+
return (index.h("div", { key: 'cd5b2f5e50b14dcdcfe048f80f7075b00b86c33f', class: {
|
|
42
42
|
'card-container': true,
|
|
43
43
|
[`elevation-${this.elevation}`]: true,
|
|
44
44
|
'is-interactive': this.interactive,
|
|
45
45
|
'is-glass': this.glass,
|
|
46
46
|
'has-lift': this.lift,
|
|
47
|
-
}, tabindex: this.interactive ? 0 : undefined, role: this.interactive ? 'button' : undefined, onKeyDown: this.interactive ? this.handleKeyDown : undefined }, index.h("div", { key: '
|
|
47
|
+
}, tabindex: this.interactive ? 0 : undefined, role: this.interactive ? 'button' : undefined, onKeyDown: this.interactive ? this.handleKeyDown : undefined }, index.h("div", { key: 'b372f8bdf1202743d3d86c258f9797803ae41521', class: {
|
|
48
48
|
'card-header': true,
|
|
49
49
|
'is-hidden': !this.hasHeader,
|
|
50
|
-
}, part: "header" }, index.h("slot", { key: '
|
|
50
|
+
}, part: "header" }, index.h("slot", { key: '570d57bcafd37afb9c1e76aa43aba6bd9a853f2f', name: "header", onSlotchange: this.checkHeaderSlot })), index.h("div", { key: 'dbc78931cba08f5075bbe9337d3ef8e4c5f74512', class: "card-body", part: "body" }, index.h("slot", { key: 'f180cb7b351170b4ef52fbfe379f2dc6824fc9f6' }))));
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
QCard.style = cardCss();
|
|
@@ -277,10 +277,10 @@ const QCarousel = class {
|
|
|
277
277
|
render() {
|
|
278
278
|
const isFirst = this.repeat ? (!this.isScrollable || this.maxIndex <= 0) : (this.isAtStart || !this.isScrollable);
|
|
279
279
|
const isLast = this.repeat ? (!this.isScrollable || this.maxIndex <= 0) : (this.isAtEnd || !this.isScrollable);
|
|
280
|
-
return (index.h("div", { key: '
|
|
280
|
+
return (index.h("div", { key: 'e141369a3efb7aabc16e7c0b3e45e2ad3b469235', class: "carousel-wrapper" }, this.showArrows && (index.h("button", { key: '53b0fae8c9fe677a07a3a0dd2ae74b5956ddedf5', class: { 'arrow-btn': true, 'arrow-left': true }, "aria-disabled": isFirst ? 'true' : 'false', onClick: isFirst ? undefined : this.slidePrev, "aria-label": "Previous slide", type: "button" }, index.h("svg", { key: 'a6130f58d3d7daba6ce4699520fe25309aaa6ba9', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("polyline", { key: 'd0e9b156bfae593a3c30c43c70bf87da949f6dc5', points: "15 18 9 12 15 6" })))), index.h("div", { key: 'd2bd4833d2165141714a64862ff6ac5eb8696620', class: {
|
|
281
281
|
'carousel-viewport': true,
|
|
282
282
|
[`snap-${this.snapAlignment}`]: this.snapAlignment !== 'none'
|
|
283
|
-
}, tabindex: "0", "aria-label": "Carousel content", onScroll: this.handleScroll, ref: this.setScrollContainerRef }, index.h("slot", { key: '
|
|
283
|
+
}, tabindex: "0", "aria-label": "Carousel content", onScroll: this.handleScroll, ref: this.setScrollContainerRef }, index.h("slot", { key: 'e51fafdef620f4b53a61a8dcf615bb0532e4e8d7', onSlotchange: this.handleSlotChange })), this.showArrows && (index.h("button", { key: 'bf26e265f8c564ea20a66b66c32d228a0fa4b73e', class: { 'arrow-btn': true, 'arrow-right': true }, "aria-disabled": isLast ? 'true' : 'false', onClick: isLast ? undefined : this.slideNext, "aria-label": "Next slide", type: "button" }, index.h("svg", { key: 'dd08661c29657702772c38769900c3049d1745dc', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("polyline", { key: '3be985e68f5060e19fb2e22f49f20d8650232a9c', points: "9 18 15 12 9 6" })))), this.showIndicators && this.isScrollable && this.maxIndex > 0 && (index.h("div", { key: 'c532fc4db653cfa5a55b006e87eba1642d8561a5', class: "carousel-indicators", role: "tablist", "aria-label": "Carousel slides", onKeyDown: this.handleIndicatorKeyDown }, Array.from({ length: this.maxIndex + 1 }).map((_, idx) => (index.h("button", { class: { 'indicator-dot': true, 'is-active': idx === this.activeIndex }, role: "tab", "aria-selected": idx === this.activeIndex ? 'true' : 'false', onClick: () => this.scrollToIndex(idx), "aria-label": `Go to slide ${idx + 1}`, type: "button", tabindex: idx === this.activeIndex ? 0 : -1 })))))));
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
QCarousel.style = carouselCss();
|
|
@@ -27,10 +27,10 @@ const QCircularProgress = class {
|
|
|
27
27
|
// Dynamic Font Styling
|
|
28
28
|
const baseFontSize = 'var(--q-progress-font-size, var(--q-font-size-lg, 1.125rem))';
|
|
29
29
|
const textStyle = dom.calculateDynamicFontSize(displayLabel, baseFontSize, 5);
|
|
30
|
-
return (index.h("div", { key: '
|
|
30
|
+
return (index.h("div", { key: 'd676842276f6a2d64a6b4de208b947835f0b3d5a', class: {
|
|
31
31
|
'progress-container': true,
|
|
32
32
|
'is-indeterminate': this.indeterminate
|
|
33
|
-
}, role: "progressbar", "aria-valuenow": this.indeterminate ? undefined : clampedValue, "aria-valuemin": "0", "aria-valuemax": "100", "aria-label": this.label || 'Circular Progress' }, index.h("svg", { key: '
|
|
33
|
+
}, role: "progressbar", "aria-valuenow": this.indeterminate ? undefined : clampedValue, "aria-valuemin": "0", "aria-valuemax": "100", "aria-label": this.label || 'Circular Progress' }, index.h("svg", { key: '1b7425c8d429cff9e074a3cf857bc91b68fa8ccf', class: "progress-svg", viewBox: `0 0 ${size} ${size}` }, index.h("g", { key: '934df4621473c985c8c11eeb9a1345829ca2f3ab', class: "progress-ring-circles" }, index.h("circle", { key: 'b086149788c0aa05766a01e81d0767b47ab7b8c5', class: "progress-track", cx: size / 2, cy: size / 2, r: radius }), index.h("circle", { key: 'f8c1419547057e5dc6a50fde582de2db80ae3906', class: "progress-fill", cx: size / 2, cy: size / 2, r: radius, "stroke-dasharray": circumference, "stroke-dashoffset": strokeDashoffset })), !this.indeterminate && (index.h("text", { key: '79509f031c654880a56bbf21d7dd593d1628ebbc', class: "progress-text", x: "50%", y: "50%", style: textStyle }, displayLabel)))));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
QCircularProgress.style = circularProgressCss();
|
|
@@ -230,16 +230,16 @@ const QInput = class {
|
|
|
230
230
|
const displayError = this.error || this.errorMessage;
|
|
231
231
|
const showClearBtn = this.clearable && !this.disabled && this.value.length > 0;
|
|
232
232
|
const showSuffixContainer = this.hasSuffix || showClearBtn;
|
|
233
|
-
return (index.h("div", { key: '
|
|
233
|
+
return (index.h("div", { key: '625e72d620dc2f975322c27fab4430b465e1ec87', class: {
|
|
234
234
|
'input-wrapper': true,
|
|
235
235
|
'is-disabled': this.disabled,
|
|
236
236
|
'has-error': hasError,
|
|
237
237
|
[`size-${this.size}`]: true
|
|
238
|
-
} }, this.label && (index.h("label", { key: '
|
|
238
|
+
} }, this.label && (index.h("label", { key: '5942cd67132d5aa70a183660429d1e0b6862a6c3', class: "input-label", htmlFor: "q-field", part: "label" }, this.label)), index.h("div", { key: 'f391d28659927394a093234133288204db8ed244', class: "input-control", part: "control" }, index.h("span", { key: '4b58272ccd8d258e828ed9bd71261940c6fb8ce2', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, index.h("slot", { key: '5425870da7418f2d6f4d8aeb4c0bf3f7c63d8d93', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), index.h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
|
|
239
239
|
'input-box': true,
|
|
240
240
|
'has-prefix-padding': this.hasPrefix,
|
|
241
241
|
'has-suffix-padding': showSuffixContainer
|
|
242
|
-
}, type: this.type, value: this.value, placeholder: this.placeholder, disabled: this.disabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError ? 'q-field-error' : undefined }), this.type === 'number' && !this.disabled && (index.h("div", { key: '
|
|
242
|
+
}, type: this.type, value: this.value, placeholder: this.placeholder, disabled: this.disabled, required: this.required, min: this.min, max: this.max, step: this.step, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, "aria-invalid": hasError ? 'true' : 'false', "aria-describedby": hasError ? 'q-field-error' : undefined }), this.type === 'number' && !this.disabled && (index.h("div", { key: 'e1a5b72f552c8b88ab6e2b84fcd63151a96dd28a', class: "input-spinners", part: "spinners" }, index.h("button", { key: 'cc07df31e5c87cced56b87e0a7818bb97455b0bf', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, tabindex: "-1" }, index.h("svg", { key: '92e9f32279eb92f977e14f5a691ec5e0718f663a', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: '93162a09225cc2afde09fc3cf92b20c7b79a49f1', d: "M18 15l-6-6-6 6" }))), index.h("button", { key: '8a504bc234fafdd7d25ca07c29dd33cd24eb9616', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, tabindex: "-1" }, index.h("svg", { key: '28bba806af4cdfc32ab09c9f0ade45fec528b50e', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: 'd6235c3d97748bb5a27d7328bba04c24b27a0fda', d: "M6 9l6 6 6-6" }))))), index.h("span", { key: '9172a40f329f7e3925480aeed27eab030760c97f', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (index.h("button", { key: '3541668033431d6f99cd3ff865e6c0eeb1572354', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, index.h("svg", { key: '975ee761d5651e246423d09d615ab9fcdeb028d7', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: 'd38026e069ca1aaf8822a3f9db9a80d4b3bc0df0', d: "M18 6L6 18M6 6l12 12" })))), index.h("span", { key: '001edfd3e2094f5097d4ec6ad267aa807791972b', style: { display: showClearBtn ? 'none' : 'block' } }, index.h("slot", { key: '119df340327d548f044f154d591584c1143e15e4', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), hasError && (index.h("span", { key: '7942ca41a7c1a97211939de4992525f6707ed2f0', id: "q-field-error", class: "error-msg", part: "error-msg" }, displayError))));
|
|
243
243
|
}
|
|
244
244
|
static get delegatesFocus() { return true; }
|
|
245
245
|
static get formAssociated() { return true; }
|
|
@@ -173,7 +173,7 @@ const QDataTable = class {
|
|
|
173
173
|
const items = this.getParsedItems();
|
|
174
174
|
const { checked, indeterminate } = this.getSelectionState();
|
|
175
175
|
const currentKeys = this.selectedKeys || [];
|
|
176
|
-
return (index.h("div", { key: '
|
|
176
|
+
return (index.h("div", { key: '9406bf5ed8f39171e9fb5a60214a95f72392f8be', class: "table-container", role: "grid" }, this.showToolbar && (index.h("div", { key: '773a82dcbe114e3f155f9b5ce4a09160b91e6bbc', class: "table-toolbar" }, index.h("div", { key: 'ff5bc1ebb7078b5ac122214a4e56789cc94d6855', class: "toolbar-left" }, this.toolbarTitle && index.h("span", { key: 'd600b267d65ae2bee5bdc4a8c90346c309b43332', class: "toolbar-title" }, this.toolbarTitle), index.h("slot", { key: 'c48b8d5b993517eb65ee509de99eb6a76a8633a9', name: "toolbar-left" }), this.showSearch && (index.h("q-input", { key: '852d92ab93ad8bba5ced8cc6cda1995f285c1987', class: "search-input", placeholder: this.searchPlaceholder, value: this.searchValue, onQInput: this.handleSearchInput, size: "sm" }, index.h("svg", { key: '32e4aefbc019e6b03b119330634570f1b10a85e8', slot: "prefix", class: "search-icon-svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", style: { width: '14px', height: '14px' } }, index.h("circle", { key: '5023171b1fe66e057f4fd83ac583807b44ae7f5a', cx: "11", cy: "11", r: "8" }), index.h("line", { key: 'abcbfb3d506ad763347ffba58ceb7df25d590e87', x1: "21", y1: "21", x2: "16.65", y2: "16.65" })))), index.h("slot", { key: 'd2b08343660f93f13dbe4592e878c86b070c58a0', name: "filters" })), index.h("div", { key: '3c4cc5067d2a197a949c999f7646092c4180d786', class: "toolbar-right" }, index.h("slot", { key: 'b8789b247c03a3bf9817f5aa9b3cf0104ca3f1cb', name: "actions" })))), index.h("div", { key: 'a9b607183bb148f097689fb731f8a11ee6528ef4', class: "table-scroll-area" }, index.h("table", { key: '65300d96fe822676f7ec7f18761207804d88a8db', class: "table-el" }, index.h("thead", { key: '7bdaec164ca21ac54d1529733e3a46dedd23b3cc' }, index.h("tr", { key: '6b32157933e443c5f465106189b6e45d88f64576', role: "row" }, this.selectable && (index.h("th", { key: '654f65e2e22cbc8d07bd2eacceb7e59df5ebd821', class: "col-selection", role: "columnheader" }, index.h("input", { key: '29c5d83760da89694c4a1c549cfab517bbe6f8c1', type: "checkbox", class: "checkbox-input", checked: checked, ref: el => {
|
|
177
177
|
if (el)
|
|
178
178
|
el.indeterminate = indeterminate;
|
|
179
179
|
}, onChange: e => this.toggleAllSelection(e), "aria-label": "Select all rows" }))), columns.map(col => {
|
|
@@ -182,14 +182,14 @@ const QDataTable = class {
|
|
|
182
182
|
style.width = col.width;
|
|
183
183
|
}
|
|
184
184
|
return (index.h("th", { style: style, class: col.className || '', role: "columnheader" }, this.getHeaderLabel(col)));
|
|
185
|
-
}))), index.h("tbody", { key: '
|
|
185
|
+
}))), index.h("tbody", { key: '822358cbd5fc14d4caf43e5bfd853bac7e94d018' }, this.loading ? (index.h("tr", { role: "row" }, index.h("td", { colSpan: columns.length + (this.selectable ? 1 : 0), class: "loading-placeholder-cell", role: "gridcell" }))) : items.length === 0 ? (index.h("tr", { role: "row" }, index.h("td", { colSpan: columns.length + (this.selectable ? 1 : 0), class: "empty-cell", role: "gridcell" }, index.h("slot", { name: "empty" }, "No data available")))) : (items.map((item, index$1) => {
|
|
186
186
|
const key = this.getItemKey(item, index$1);
|
|
187
187
|
const isSelected = currentKeys.includes(key);
|
|
188
188
|
return (index.h("tr", { key: key, class: {
|
|
189
189
|
'row-el': true,
|
|
190
190
|
'is-selected': isSelected,
|
|
191
191
|
}, tabindex: "0", role: "row", "aria-selected": isSelected ? 'true' : 'false', onClick: e => this.handleRowClick(item, index$1, e), onKeyDown: e => this.handleRowKeyDown(item, index$1, e) }, this.selectable && (index.h("td", { class: "cell-selection", role: "gridcell" }, index.h("input", { type: "checkbox", class: "checkbox-input", checked: isSelected, onChange: e => this.toggleRowSelection(item, index$1, e), "aria-label": `Select row ${index$1 + 1}` }))), columns.map(col => (index.h("td", { class: col.className || '', role: "gridcell" }, this.renderCell(item, col))))));
|
|
192
|
-
})))), this.loading && (index.h("div", { key: '
|
|
192
|
+
})))), this.loading && (index.h("div", { key: '4e2426999eb39207949b3b1936183bc0520e829c', class: "table-loading-overlay" }, index.h("q-circular-progress", { key: 'b401481321b61cc0ade0ad1213a95040dd77245a', indeterminate: true, size: "sm" })))), index.h("slot", { key: '8d2af8ee3bfeeebbc92f1c472dceff1c67f1b966', name: "footer" })));
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
QDataTable.style = dataTableCss();
|
|
@@ -130,7 +130,7 @@ const QDialog = class {
|
|
|
130
130
|
'is-open': this.isAnimatedOpen,
|
|
131
131
|
'is-visible': this.isVisible,
|
|
132
132
|
};
|
|
133
|
-
return (index.h("div", { key: '
|
|
133
|
+
return (index.h("div", { key: 'f77d075d6402bd1c4a538496eaaa593ceada62f3', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, index.h("div", { key: 'a280ff3613348c3a1d2cc0eecff32d3b7344aadb', class: "dialog-backdrop", onClick: this.handleBackdropClick, part: "backdrop" }), index.h("div", { key: '5a5c2cc0b319279253acc1c3d5a557c2f531562d', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', tabindex: "-1" }, index.h("header", { key: '4313f933ebbfd21ada522675723fc3532f330907', class: "dialog-header", part: "header" }, index.h("slot", { key: 'e654922721b61980a4a61b21bf9474fb65152301', name: "header" }, titleText && index.h("h2", { key: '6313bb89256ee6903c892750afd5bfc32e34cbb8', class: "dialog-title" }, titleText)), index.h("button", { key: '3492c1f25bfc463156328aecb17fdc5808ac7d14', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": "Close dialog", disabled: this.loading, part: "close-btn" }, index.h("svg", { key: '25c36a0a78e6a9ef81aec11b639efffcddbb3884', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("line", { key: '946a88dacfde417eb300002231c87e7abc0ed4dd', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: 'd6b43f7fea05d99ed4586bc48dda9cd6e086fe4f', x1: "6", y1: "6", x2: "18", y2: "18" })))), index.h("div", { key: '65a2ce99fa264252f9cefdae3f6fdb44f5b0b31e', class: "dialog-body", part: "body" }, index.h("slot", { key: 'e6d4366ba2713e3428be17d3280af595fd3a30ac' }, this.message && index.h("p", { key: 'f6b758ebcca1d4bebd6e288bfe72e4b1694efa2e', class: "dialog-message" }, this.message))), index.h("footer", { key: 'c47196a6cd11f12b4ab475855d2235d82ce7b891', class: "dialog-footer", part: "footer" }, index.h("slot", { key: 'fa68297fa77447fc2137b23e1041e4329ca5e91c', name: "footer" }, index.h("div", { key: '122afc197608cd1dd094f9c7cc2ae856d1ecaebb', class: "dialog-actions" }, this.showCancel && (index.h("button", { key: 'b54682b69986eb555955d3b4e6d7c2926dad3cb5', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (index.h("button", { key: '52139f492b7a4aab0c04c6bc85ad7ac0b7ea780a', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && index.h("span", { key: '4e812be3ef372e597fa0f26e9f36f0002a2a3d87', class: "spinner-el" }), index.h("span", { key: '06a746e50e4702d87d53df7c690279535861f348', class: "btn-label" }, this.confirmLabel)))))))));
|
|
134
134
|
}
|
|
135
135
|
static get watchers() { return {
|
|
136
136
|
"open": [{
|
|
@@ -324,16 +324,16 @@ const QDropdown = class {
|
|
|
324
324
|
dynamicWidth = `${Math.ceil(calculatedWidth)}px`;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
return (index.h("div", { key: '
|
|
327
|
+
return (index.h("div", { key: '980b25ffe6f39e0473c96112ac7f493b3d8cd174', class: {
|
|
328
328
|
'dropdown-wrapper': true,
|
|
329
329
|
'is-open': this.isOpen,
|
|
330
330
|
'is-disabled': this.disabled,
|
|
331
331
|
[`size-${this.size}`]: true
|
|
332
|
-
}, style: dynamicWidth ? { width: dynamicWidth, 'max-width': '100%' } : undefined, onKeyDown: this.handleKeyDown }, this.label && (index.h("label", { key: '
|
|
332
|
+
}, style: dynamicWidth ? { width: dynamicWidth, 'max-width': '100%' } : undefined, onKeyDown: this.handleKeyDown }, this.label && (index.h("label", { key: '8afabd5bdbfea59115e717af6d1b2507e5cd68d2', class: "dropdown-label", htmlFor: "q-field", part: "label" }, this.label)), index.h("button", { key: 'd8a53d3718157b040046ad81d1c408742c3a83b3', ref: (el) => (this.triggerEl = el), id: "q-field", class: "dropdown-trigger", part: "trigger", type: "button", disabled: this.disabled, onClick: this.handleTriggerClick, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": this.isOpen ? 'q-field-menu' : undefined, "aria-activedescendant": this.isOpen && this.focusedIndex >= 0 ? `q-field-item-${this.focusedIndex}` : undefined }, index.h("span", { key: '057e7496157fe944647fbf74f5bc5d89ff1a85c0', class: { 'trigger-text': true, 'is-placeholder': !hasSelection } }, displayLabel), index.h("svg", { key: 'c8ef16ce76559bcd4fc99b52ac5c43dbd67dbe4c', class: "chevron-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("polyline", { key: 'e4272e43433c407198f4bd7f4e8efb0976cfeb72', points: "6 9 12 15 18 9" }))), this.isOpen && (index.h("div", { key: 'ff31b06bb2d9e33bfbf1d2a6072f18cc41c8cfa2', id: "q-field-menu", class: "dropdown-menu", part: "menu", role: "listbox", "aria-label": this.label || 'Options' }, this.searchable && (index.h("div", { key: '86d6e527c9677a1bf8879917740ced1c5d441fa2', class: "dropdown-search-container" }, index.h("input", { key: 'ffb0005b9743452159b68287873adaa4cbeef727', ref: (el) => (this.searchInputEl = el), type: "text", class: "dropdown-search-input", placeholder: "Search...", value: this.searchTerm, onInput: this.handleSearchInput }))), index.h("ul", { key: '10a85f271e6d8a77e514eff7d36de1b1b81d0ec9', class: "dropdown-items-list", onScroll: this.handleScroll }, opts.length === 0 ? (index.h("li", { class: "menu-item is-empty" }, "No matches found")) : (opts.map((option, index$1) => (index.h("li", { id: `q-field-item-${index$1}`, class: {
|
|
333
333
|
'menu-item': true,
|
|
334
334
|
'is-selected': option.value === this.value,
|
|
335
335
|
'is-focused': index$1 === this.focusedIndex
|
|
336
|
-
}, tabindex: index$1 === this.focusedIndex ? 0 : -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index$1 === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, option.label)))), this.isScrollingLoading && (index.h("li", { key: '
|
|
336
|
+
}, tabindex: index$1 === this.focusedIndex ? 0 : -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index$1 === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, option.label)))), this.isScrollingLoading && (index.h("li", { key: 'bb92f2e84ed87c12963c7d7e69f0c7b5899599ed', class: "menu-item is-loading-more" }, index.h("span", { key: '575c59ef9d32230c21b84f0ff36e52d4e29b5e43', class: "spinner-circle" }), index.h("span", { key: 'a6f096427e179ad9c8e6e2d5dd6c0e3152941bcd' }, "Loading..."))))))));
|
|
337
337
|
}
|
|
338
338
|
static get delegatesFocus() { return true; }
|
|
339
339
|
static get formAssociated() { return true; }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-CLlvFbDw.js');
|
|
4
4
|
|
|
5
|
-
const quantitySelectorCss = () => `:host{--q-quantity-selector-height:38px;--q-quantity-selector-width-vertical:50px;--q-quantity-selector-bg:var(--q-bg-surface-2, #374151);--q-quantity-selector-border-color:var(--q-border-color, #4b5563);--q-quantity-selector-radius:var(--q-radius-md, 8px);--q-quantity-selector-input-bg:var(--q-bg-base, #111827);--q-quantity-selector-input-fg:var(--q-fg-base, #f9fafb);--q-quantity-selector-btn-bg:transparent;--q-quantity-selector-btn-bg-hover:var(--q-bg-surface-3, #4b5563);--q-quantity-selector-btn-fg:var(--q-fg-muted, #9ca3af);--q-quantity-selector-btn-fg-hover:var(--q-fg-base, #f9fafb);--q-quantity-selector-char-width:1ch;--q-quantity-selector-input-padding:16px;display:inline-block;box-sizing:border-box}.quantity-selector{display:inline-flex;border:1px solid var(--q-quantity-selector-border-color);border-radius:var(--q-quantity-selector-radius);background:var(--q-quantity-selector-bg);box-sizing:border-box;overflow:hidden}.quantity-selector.variant-horizontal{flex-direction:row;align-items:center;height:var(--q-quantity-selector-height)}.quantity-selector.variant-vertical{flex-direction:column;align-items:center;width:var(--q-quantity-selector-width-vertical)}.quantity-input{border:none;background:var(--q-quantity-selector-input-bg);color:var(--q-quantity-selector-input-fg);text-align:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 1rem);margin:0;box-sizing:border-box;outline:none}.variant-horizontal .quantity-input{height:100%}.variant-vertical .quantity-input{width:100%;padding:6px 0}.quantity-btn{display:flex;align-items:center;justify-content:center;border:none;background:var(--q-quantity-selector-btn-bg);color:var(--q-quantity-selector-btn-fg);cursor:pointer;padding:0;margin:0;box-sizing:border-box;transition:background-color var(--q-transition-fast, 150ms ease),
|
|
5
|
+
const quantitySelectorCss = () => `:host{--q-quantity-selector-height:38px;--q-quantity-selector-width-vertical:50px;--q-quantity-selector-bg:var(--q-bg-surface-2, #374151);--q-quantity-selector-border-color:var(--q-border-color, #4b5563);--q-quantity-selector-radius:var(--q-radius-md, 8px);--q-quantity-selector-input-bg:var(--q-bg-base, #111827);--q-quantity-selector-input-fg:var(--q-fg-base, #f9fafb);--q-quantity-selector-btn-bg:transparent;--q-quantity-selector-btn-bg-hover:var(--q-bg-surface-3, #4b5563);--q-quantity-selector-btn-fg:var(--q-fg-muted, #9ca3af);--q-quantity-selector-btn-fg-hover:var(--q-fg-base, #f9fafb);--q-quantity-selector-char-width:1ch;--q-quantity-selector-input-padding:16px;display:inline-block;box-sizing:border-box}.quantity-selector{display:inline-flex;border:1px solid var(--q-quantity-selector-border-color);border-radius:var(--q-quantity-selector-radius);background:var(--q-quantity-selector-bg);box-sizing:border-box;overflow:hidden}.quantity-selector.variant-horizontal{flex-direction:row;align-items:center;height:var(--q-quantity-selector-height)}.quantity-selector.variant-vertical{flex-direction:column;align-items:center;width:var(--q-quantity-selector-width-vertical)}.quantity-input{border:none;background:var(--q-quantity-selector-input-bg);color:var(--q-quantity-selector-input-fg);text-align:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 1rem);margin:0;box-sizing:border-box;outline:none}.variant-horizontal .quantity-input{height:100%}.variant-vertical .quantity-input{width:100%;padding:6px 0}.quantity-btn{display:flex;align-items:center;justify-content:center;border:none;background:var(--q-quantity-selector-btn-bg);color:var(--q-quantity-selector-btn-fg);cursor:pointer;padding:0;margin:0;box-sizing:border-box;transition:background-color var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.quantity-btn:hover:not(:disabled){background:var(--q-quantity-selector-btn-bg-hover);color:var(--q-quantity-selector-btn-fg-hover)}.quantity-btn:disabled{opacity:0.4;cursor:not-allowed}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height);height:100%}.variant-horizontal .quantity-btn-decrement{border-right:1px solid var(--q-quantity-selector-border-color)}.variant-horizontal .quantity-btn-increment{border-left:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn{width:100%;height:var(--q-quantity-selector-height)}.variant-vertical .quantity-btn-increment{border-bottom:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn-decrement{border-top:1px solid var(--q-quantity-selector-border-color)}.btn-icon{width:16px;height:16px}`;
|
|
6
6
|
|
|
7
7
|
const QQuantitySelector = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -159,13 +159,13 @@ const QQuantitySelector = class {
|
|
|
159
159
|
render() {
|
|
160
160
|
const isMinDisabled = this.min !== undefined && this.min !== null && this.value <= this.min;
|
|
161
161
|
const isMaxDisabled = this.max !== undefined && this.max !== null && this.value >= this.max;
|
|
162
|
-
const decBtn = (index.h("button", { key: '
|
|
163
|
-
const incBtn = (index.h("button", { key: '
|
|
162
|
+
const decBtn = (index.h("button", { key: '312771e66716ec155a0ea0b1413108b2f20abf8d', type: "button", class: "quantity-btn quantity-btn-decrement", onClick: this.decrement, disabled: isMinDisabled, "aria-label": "Decrement quantity" }, index.h("svg", { key: 'bab65509d57511538aa7a1d6bb7663c618d6acf8', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon" }, index.h("line", { key: '23f3f7d027d07cf5f242e694b89fc97c51ae39f6', x1: "5", y1: "12", x2: "19", y2: "12" }))));
|
|
163
|
+
const incBtn = (index.h("button", { key: '54f1bb4565da0888816a571172134c8d6ccdd510', type: "button", class: "quantity-btn quantity-btn-increment", onClick: this.increment, disabled: isMaxDisabled, "aria-label": "Increment quantity" }, index.h("svg", { key: '00d27be57810563dd8d940bda965b0581072a1d4', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon" }, index.h("line", { key: '75603d5286cadd12adc891067381bfbea1b81a7e', x1: "12", y1: "5", x2: "12", y2: "19" }), index.h("line", { key: '3056566aff835391b6398ae6ac1307957460029f', x1: "5", y1: "12", x2: "19", y2: "12" }))));
|
|
164
164
|
const calculatedWidth = this.variant === 'horizontal' ? this.getCalculatedWidth() : '100%';
|
|
165
|
-
return (index.h("div", { key: '
|
|
165
|
+
return (index.h("div", { key: '60ff32f3526634d5c7579706b1092e893f735ed6', class: {
|
|
166
166
|
'quantity-selector': true,
|
|
167
167
|
[`variant-${this.variant}`]: true
|
|
168
|
-
}, onClick: this.handleClick }, this.variant === 'vertical' ? incBtn : decBtn, index.h("input", { key: '
|
|
168
|
+
}, onClick: this.handleClick }, this.variant === 'vertical' ? incBtn : decBtn, index.h("input", { key: '39b9b7fac9c9cc2bb76ee0aa8d675f22a664a153', type: "text", class: "quantity-input", value: this.inputValue, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus, onChange: this.handleChange, style: { width: calculatedWidth }, part: "input" }), this.variant === 'vertical' ? decBtn : incBtn));
|
|
169
169
|
}
|
|
170
170
|
static get watchers() { return {
|
|
171
171
|
"value": [{
|
|
@@ -106,10 +106,10 @@ const QReel = class {
|
|
|
106
106
|
: -1;
|
|
107
107
|
const hasPrev = currentIdx > 0;
|
|
108
108
|
const hasNext = currentIdx !== -1 && currentIdx < thumbnails.length - 1;
|
|
109
|
-
return (index.h("div", { key: '
|
|
109
|
+
return (index.h("div", { key: '2ce9931e065fd28d2c7d80d951d51bb3d3336e41', class: {
|
|
110
110
|
'reel-container': true,
|
|
111
111
|
[`layout-${this.layout}`]: true
|
|
112
|
-
} }, index.h("slot", { key: '
|
|
112
|
+
} }, index.h("slot", { key: '30a8ddcc87e1e8940aabbfb1b276a9dee5c67de3' }), this.activeMedia && (index.h("div", { key: '0f2aa229561c53743349645c3046a36453c695d2', class: "lightbox-overlay", onClick: this.closeLightbox, onKeyDown: this.handleKeyDown, role: "dialog", "aria-modal": "true", "aria-label": this.activeMedia.label || 'Media Viewer' }, index.h("button", { key: '15581b278c7ae0fe13dbbaaf9151fa1eb1e16e34', class: "lightbox-close", onClick: this.closeLightbox, "aria-label": "Close viewer", ref: (el) => (this.closeButtonRef = el) }, index.h("svg", { key: '00de7e92516e1a2545af4601e79dd745be61dae0', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("line", { key: '4144f5df9ac5a34dc3e55bce7d2eb881683f8b49', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: '5d122209eb70496afbf666285626d5f143aaac1c', x1: "6", y1: "6", x2: "18", y2: "18" }))), hasPrev && (index.h("button", { key: '37571f72e4fe552742072a43088434fdf220e40b', class: "lightbox-prev", onClick: (e) => { e.stopPropagation(); this.navigateMedia(currentIdx - 1); }, "aria-label": "Previous media" }, index.h("svg", { key: 'fb9bdafaf62127a5806322ba13a765721f970b00', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("polyline", { key: '94239daf6b5bc2ae3ff59561583babcc0e91ca8b', points: "15 18 9 12 15 6" })))), hasNext && (index.h("button", { key: '5b811562dbdb97e37a37ba697cbef79b1294c47a', class: "lightbox-next", onClick: (e) => { e.stopPropagation(); this.navigateMedia(currentIdx + 1); }, "aria-label": "Next media" }, index.h("svg", { key: '84a30780aadaed9e854fff333c00513d7148a433', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("polyline", { key: 'c10b7ae27ee4975d11f9cab2ae4dccbf050bafbb', points: "9 18 15 12 9 6" })))), index.h("div", { key: 'f10192adfd9ca929724fadbc4bed477434db421a', class: "lightbox-content", onClick: (e) => e.stopPropagation() }, this.activeMedia.video ? (index.h("video", { class: "lightbox-media", src: this.activeMedia.src, controls: true, autoplay: true, loop: true })) : (index.h("img", { class: "lightbox-media", src: this.activeMedia.src, alt: this.activeMedia.alt })), this.activeMedia.label && (index.h("div", { key: '86342c4b053bcd0507947980af05da1ddcb86128', class: "lightbox-caption" }, this.activeMedia.label)))))));
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
QReel.style = reelCss();
|
|
@@ -35,12 +35,12 @@ const QStepDiagramItem = class {
|
|
|
35
35
|
};
|
|
36
36
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
37
37
|
render() {
|
|
38
|
-
return (index.h("div", { key: '
|
|
38
|
+
return (index.h("div", { key: '628aa861eb90f3df994e6b4065f01dfd80df6f1d', class: {
|
|
39
39
|
'step-item': true,
|
|
40
40
|
[`status-${this.status}`]: true,
|
|
41
41
|
[`line-${this.lineStyle}`]: true,
|
|
42
42
|
[`layout-${this.layout}`]: true
|
|
43
|
-
} }, index.h("div", { key: '
|
|
43
|
+
} }, index.h("div", { key: 'a0fda22f18cebfe0104f45ecf1c2e031fc1a99d9', class: "step-line-container" }, index.h("div", { key: '1893d14cb21de1f51390a4c1d6b1ec9c2b488d93', class: "step-badge", onClick: this.handleTrigger, "aria-hidden": "true", part: "badge" }, index.h("slot", { key: 'd0140c73e8e665ca5f8a479d34498182046daedd', name: "badge" }, index.h("div", { key: '57b0b84a560ea075082836bce5aff8b073d0b1bf', class: "badge-dot" }))), index.h("div", { key: '68d224c94253a4a875725376a070e35831a1b3ab', class: "step-connector", part: "connector" })), index.h("div", { key: 'edad015eba09c9ee50facf98ae6eca671fc2a050', class: "step-content", onClick: this.handleTrigger, onKeyDown: this.handleKeyDown, tabindex: "0", role: "button", part: "content" }, index.h("div", { key: '332ac2593699abb351dc173a8342a737c8f4733d', class: "step-title", part: "title" }, index.h("slot", { key: '8d42e1e208a6e15e789a19178dcf2ad4c9164d7d', name: "title" })), index.h("div", { key: '915090746941b268fc583e4e3d607bd40a663b79', class: "step-body", part: "body" }, index.h("slot", { key: '508910bf5022a3d09d9778dc6418994159523d8f' })))));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
QStepDiagramItem.style = stepDiagramItemCss();
|
|
@@ -31,10 +31,10 @@ const QStepDiagram = class {
|
|
|
31
31
|
}
|
|
32
32
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
33
33
|
render() {
|
|
34
|
-
return (index.h("div", { key: '
|
|
34
|
+
return (index.h("div", { key: 'c95a7566f474f603c2ea7ed3ac5e7b2c14776cd1', class: {
|
|
35
35
|
'step-diagram': true,
|
|
36
36
|
[`layout-${this.layout}`]: true
|
|
37
|
-
} }, index.h("slot", { key: '
|
|
37
|
+
} }, index.h("slot", { key: '619799441b1a1769bba82f015bd23ab571f6a81a', onSlotchange: this.handleSlotChange })));
|
|
38
38
|
}
|
|
39
39
|
static get watchers() { return {
|
|
40
40
|
"layout": [{
|