@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
|
@@ -1,219 +1,219 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.table-container {
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
border: var(--q-border, 1px solid var(--q-border-color, #374151));
|
|
13
|
-
border-radius: var(--q-radius-lg, 11px);
|
|
14
|
-
background: var(--q-bg-base, #111827);
|
|
15
|
-
box-shadow: var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.table-scroll-area {
|
|
20
|
-
width: 100%;
|
|
21
|
-
overflow: auto;
|
|
22
|
-
flex: 1;
|
|
23
|
-
min-height: 0;
|
|
24
|
-
max-height: var(--q-table-max-height, 100%);
|
|
25
|
-
position: relative;
|
|
26
|
-
|
|
27
|
-
/* Firefox compatibility */
|
|
28
|
-
scrollbar-width: var(--q-scrollbar-width-thin, thin);
|
|
29
|
-
scrollbar-color: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151)) var(--q-scrollbar-track-color, transparent);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/* Webkit scrollbar support */
|
|
33
|
-
.table-scroll-area::-webkit-scrollbar {
|
|
34
|
-
width: var(--q-scrollbar-width, 6px);
|
|
35
|
-
height: var(--q-scrollbar-width, 6px);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.table-scroll-area::-webkit-scrollbar-track {
|
|
39
|
-
background: var(--q-scrollbar-track-color, transparent);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.table-scroll-area::-webkit-scrollbar-thumb {
|
|
43
|
-
background: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));
|
|
44
|
-
border-radius: var(--q-scrollbar-radius, var(--q-radius-sm, 4px));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.table-scroll-area::-webkit-scrollbar-thumb:hover {
|
|
48
|
-
background: var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.table-el {
|
|
52
|
-
width: 100%;
|
|
53
|
-
border-collapse: collapse;
|
|
54
|
-
border-spacing: 0;
|
|
55
|
-
text-align: left;
|
|
56
|
-
font-family: var(--q-font-family, inherit);
|
|
57
|
-
font-size: var(--q-font-size-base, 0.9rem);
|
|
58
|
-
color: var(--q-fg-base, #f9fafb);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
th, td {
|
|
62
|
-
padding: var(--q-padding-md, 12px 16px);
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
th {
|
|
67
|
-
position: sticky;
|
|
68
|
-
top: 0;
|
|
69
|
-
z-index: 10;
|
|
70
|
-
background: var(--q-bg-surface-1, #1f2937);
|
|
71
|
-
color: var(--q-fg-muted, #9ca3af);
|
|
72
|
-
font-weight: var(--q-font-weight-bold, 700);
|
|
73
|
-
font-size: var(--q-font-size-xs, 0.7rem);
|
|
74
|
-
text-transform: uppercase;
|
|
75
|
-
letter-spacing: 0.05em;
|
|
76
|
-
border-bottom: 1px solid var(--q-border-color, #374151);
|
|
77
|
-
user-select: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* Toolbar Styling */
|
|
81
|
-
.table-toolbar {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: space-between;
|
|
85
|
-
gap: 12px;
|
|
86
|
-
padding: 12px 16px;
|
|
87
|
-
border-bottom: var(--q-border, 1px solid var(--q-border-color, #374151));
|
|
88
|
-
background: var(--q-bg-surface-1, #1f2937);
|
|
89
|
-
box-sizing: border-box;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.toolbar-left {
|
|
93
|
-
display: flex;
|
|
94
|
-
align-items: center;
|
|
95
|
-
gap: 12px;
|
|
96
|
-
flex: 1;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.toolbar-right {
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
gap: 8px;
|
|
103
|
-
margin-left: auto;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.toolbar-title {
|
|
107
|
-
font-family: var(--q-font-family, inherit);
|
|
108
|
-
font-size: var(--q-font-size-base, 0.9rem);
|
|
109
|
-
font-weight: var(--q-font-weight-bold, 600);
|
|
110
|
-
color: var(--q-fg-base, #f9fafb);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.search-input {
|
|
114
|
-
width: 240px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.search-icon-svg {
|
|
118
|
-
width: 14px;
|
|
119
|
-
height: 14px;
|
|
120
|
-
color: var(--q-fg-muted, #9ca3af);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.col-selection, .cell-selection {
|
|
124
|
-
width: 48px;
|
|
125
|
-
text-align: center;
|
|
126
|
-
padding-right: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.checkbox-input {
|
|
130
|
-
width: 16px;
|
|
131
|
-
height: 16px;
|
|
132
|
-
border-radius: var(--q-radius-sm, 4px);
|
|
133
|
-
border: 1px solid var(--q-border-color, #374151);
|
|
134
|
-
background: var(--q-bg-surface-2, #374151);
|
|
135
|
-
accent-color: var(--q-color-primary, #60a5fa);
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
outline: none;
|
|
138
|
-
transition: var(--q-transition-fast, 150ms ease);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.checkbox-input:focus-visible {
|
|
142
|
-
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
143
|
-
outline-offset: 2px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.row-el {
|
|
147
|
-
background: transparent;
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
outline: none;
|
|
150
|
-
border-bottom: 1px solid var(--q-border-color, #374151);
|
|
151
|
-
transition: background var(--q-transition-fast, 150ms ease);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.row-el:last-child {
|
|
155
|
-
border-bottom: none;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.row-el:hover {
|
|
159
|
-
background: var(--q-bg-surface-1, #1f2937);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.row-el:focus-visible {
|
|
163
|
-
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
164
|
-
outline-offset: -2px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* Selected row style */
|
|
168
|
-
.row-el.is-selected {
|
|
169
|
-
background: color-mix(in srgb, var(--q-color-primary, #60a5fa) 8%, var(--q-bg-base, #111827));
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.row-el.is-selected:hover {
|
|
173
|
-
background: color-mix(in srgb, var(--q-color-primary, #60a5fa) 12%, var(--q-bg-base, #111827));
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.empty-cell {
|
|
177
|
-
text-align: center;
|
|
178
|
-
color: var(--q-fg-muted, #9ca3af);
|
|
179
|
-
padding: calc(var(--q-padding-lg, 16px) * 2) var(--q-padding-lg, 16px);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.loading-placeholder-cell {
|
|
183
|
-
height: 160px;
|
|
184
|
-
border: none !important;
|
|
185
|
-
background: transparent !important;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.table-loading-overlay {
|
|
189
|
-
position: absolute;
|
|
190
|
-
top: 44px;
|
|
191
|
-
left: 0;
|
|
192
|
-
right: 0;
|
|
193
|
-
bottom: 0;
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
justify-content: center;
|
|
197
|
-
background: var(--q-bg-base, #111827);
|
|
198
|
-
z-index: 20;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
::slotted([slot="footer"]) {
|
|
202
|
-
background: var(--q-bg-surface-1, #1f2937);
|
|
203
|
-
border-top: var(--q-border, 1px solid var(--q-border-color, #374151));
|
|
204
|
-
box-sizing: border-box;
|
|
205
|
-
height: 36px;
|
|
206
|
-
display: flex;
|
|
207
|
-
align-items: center;
|
|
208
|
-
justify-content: space-between;
|
|
209
|
-
padding: 0 var(--q-padding-lg, 16px);
|
|
210
|
-
padding-bottom: 1px;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
::slotted(q-dropdown) {
|
|
214
|
-
--q-dropdown-bg: var(--q-table-dropdown-bg, var(--q-dropdown-bg));
|
|
215
|
-
--q-dropdown-menu-bg: var(--q-table-dropdown-menu-bg, var(--q-dropdown-menu-bg));
|
|
216
|
-
--q-dropdown-border: var(--q-table-dropdown-border, var(--q-dropdown-border));
|
|
217
|
-
--q-color-primary: var(--q-table-dropdown-primary, var(--q-color-primary));
|
|
218
|
-
--q-fg-base: var(--q-table-dropdown-fg, var(--q-fg-base));
|
|
219
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.table-container {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
border: var(--q-border, 1px solid var(--q-border-color, #374151));
|
|
13
|
+
border-radius: var(--q-radius-lg, 11px);
|
|
14
|
+
background: var(--q-bg-base, #111827);
|
|
15
|
+
box-shadow: var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.table-scroll-area {
|
|
20
|
+
width: 100%;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
flex: 1;
|
|
23
|
+
min-height: 0;
|
|
24
|
+
max-height: var(--q-table-max-height, 100%);
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
/* Firefox compatibility */
|
|
28
|
+
scrollbar-width: var(--q-scrollbar-width-thin, thin);
|
|
29
|
+
scrollbar-color: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151)) var(--q-scrollbar-track-color, transparent);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Webkit scrollbar support */
|
|
33
|
+
.table-scroll-area::-webkit-scrollbar {
|
|
34
|
+
width: var(--q-scrollbar-width, 6px);
|
|
35
|
+
height: var(--q-scrollbar-width, 6px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.table-scroll-area::-webkit-scrollbar-track {
|
|
39
|
+
background: var(--q-scrollbar-track-color, transparent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.table-scroll-area::-webkit-scrollbar-thumb {
|
|
43
|
+
background: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));
|
|
44
|
+
border-radius: var(--q-scrollbar-radius, var(--q-radius-sm, 4px));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.table-scroll-area::-webkit-scrollbar-thumb:hover {
|
|
48
|
+
background: var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.table-el {
|
|
52
|
+
width: 100%;
|
|
53
|
+
border-collapse: collapse;
|
|
54
|
+
border-spacing: 0;
|
|
55
|
+
text-align: left;
|
|
56
|
+
font-family: var(--q-font-family, inherit);
|
|
57
|
+
font-size: var(--q-font-size-base, 0.9rem);
|
|
58
|
+
color: var(--q-fg-base, #f9fafb);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
th, td {
|
|
62
|
+
padding: var(--q-padding-md, 12px 16px);
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
th {
|
|
67
|
+
position: sticky;
|
|
68
|
+
top: 0;
|
|
69
|
+
z-index: 10;
|
|
70
|
+
background: var(--q-bg-surface-1, #1f2937);
|
|
71
|
+
color: var(--q-fg-muted, #9ca3af);
|
|
72
|
+
font-weight: var(--q-font-weight-bold, 700);
|
|
73
|
+
font-size: var(--q-font-size-xs, 0.7rem);
|
|
74
|
+
text-transform: uppercase;
|
|
75
|
+
letter-spacing: 0.05em;
|
|
76
|
+
border-bottom: 1px solid var(--q-border-color, #374151);
|
|
77
|
+
user-select: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Toolbar Styling */
|
|
81
|
+
.table-toolbar {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: space-between;
|
|
85
|
+
gap: 12px;
|
|
86
|
+
padding: 12px 16px;
|
|
87
|
+
border-bottom: var(--q-border, 1px solid var(--q-border-color, #374151));
|
|
88
|
+
background: var(--q-bg-surface-1, #1f2937);
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.toolbar-left {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 12px;
|
|
96
|
+
flex: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.toolbar-right {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 8px;
|
|
103
|
+
margin-left: auto;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.toolbar-title {
|
|
107
|
+
font-family: var(--q-font-family, inherit);
|
|
108
|
+
font-size: var(--q-font-size-base, 0.9rem);
|
|
109
|
+
font-weight: var(--q-font-weight-bold, 600);
|
|
110
|
+
color: var(--q-fg-base, #f9fafb);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.search-input {
|
|
114
|
+
width: 240px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.search-icon-svg {
|
|
118
|
+
width: 14px;
|
|
119
|
+
height: 14px;
|
|
120
|
+
color: var(--q-fg-muted, #9ca3af);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.col-selection, .cell-selection {
|
|
124
|
+
width: 48px;
|
|
125
|
+
text-align: center;
|
|
126
|
+
padding-right: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.checkbox-input {
|
|
130
|
+
width: 16px;
|
|
131
|
+
height: 16px;
|
|
132
|
+
border-radius: var(--q-radius-sm, 4px);
|
|
133
|
+
border: 1px solid var(--q-border-color, #374151);
|
|
134
|
+
background: var(--q-bg-surface-2, #374151);
|
|
135
|
+
accent-color: var(--q-color-primary, #60a5fa);
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
outline: none;
|
|
138
|
+
transition: var(--q-transition-fast, 150ms ease);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.checkbox-input:focus-visible {
|
|
142
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
143
|
+
outline-offset: 2px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.row-el {
|
|
147
|
+
background: transparent;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
outline: none;
|
|
150
|
+
border-bottom: 1px solid var(--q-border-color, #374151);
|
|
151
|
+
transition: background var(--q-transition-fast, 150ms ease);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.row-el:last-child {
|
|
155
|
+
border-bottom: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.row-el:hover {
|
|
159
|
+
background: var(--q-bg-surface-1, #1f2937);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.row-el:focus-visible {
|
|
163
|
+
outline: var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));
|
|
164
|
+
outline-offset: -2px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Selected row style */
|
|
168
|
+
.row-el.is-selected {
|
|
169
|
+
background: color-mix(in srgb, var(--q-color-primary, #60a5fa) 8%, var(--q-bg-base, #111827));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.row-el.is-selected:hover {
|
|
173
|
+
background: color-mix(in srgb, var(--q-color-primary, #60a5fa) 12%, var(--q-bg-base, #111827));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.empty-cell {
|
|
177
|
+
text-align: center;
|
|
178
|
+
color: var(--q-fg-muted, #9ca3af);
|
|
179
|
+
padding: calc(var(--q-padding-lg, 16px) * 2) var(--q-padding-lg, 16px);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.loading-placeholder-cell {
|
|
183
|
+
height: 160px;
|
|
184
|
+
border: none !important;
|
|
185
|
+
background: transparent !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.table-loading-overlay {
|
|
189
|
+
position: absolute;
|
|
190
|
+
top: 44px;
|
|
191
|
+
left: 0;
|
|
192
|
+
right: 0;
|
|
193
|
+
bottom: 0;
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
background: var(--q-bg-base, #111827);
|
|
198
|
+
z-index: 20;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
::slotted([slot="footer"]) {
|
|
202
|
+
background: var(--q-bg-surface-1, #1f2937);
|
|
203
|
+
border-top: var(--q-border, 1px solid var(--q-border-color, #374151));
|
|
204
|
+
box-sizing: border-box;
|
|
205
|
+
height: 36px;
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
justify-content: space-between;
|
|
209
|
+
padding: 0 var(--q-padding-lg, 16px);
|
|
210
|
+
padding-bottom: 1px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
::slotted(q-dropdown) {
|
|
214
|
+
--q-dropdown-bg: var(--q-table-dropdown-bg, var(--q-dropdown-bg));
|
|
215
|
+
--q-dropdown-menu-bg: var(--q-table-dropdown-menu-bg, var(--q-dropdown-menu-bg));
|
|
216
|
+
--q-dropdown-border: var(--q-table-dropdown-border, var(--q-dropdown-border));
|
|
217
|
+
--q-color-primary: var(--q-table-dropdown-primary, var(--q-color-primary));
|
|
218
|
+
--q-fg-base: var(--q-table-dropdown-fg, var(--q-fg-base));
|
|
219
|
+
}
|
|
@@ -163,7 +163,7 @@ export class QDataTable {
|
|
|
163
163
|
const items = this.getParsedItems();
|
|
164
164
|
const { checked, indeterminate } = this.getSelectionState();
|
|
165
165
|
const currentKeys = this.selectedKeys || [];
|
|
166
|
-
return (h("div", { key: '
|
|
166
|
+
return (h("div", { key: '9406bf5ed8f39171e9fb5a60214a95f72392f8be', class: "table-container", role: "grid" }, this.showToolbar && (h("div", { key: '773a82dcbe114e3f155f9b5ce4a09160b91e6bbc', class: "table-toolbar" }, h("div", { key: 'ff5bc1ebb7078b5ac122214a4e56789cc94d6855', class: "toolbar-left" }, this.toolbarTitle && h("span", { key: 'd600b267d65ae2bee5bdc4a8c90346c309b43332', class: "toolbar-title" }, this.toolbarTitle), h("slot", { key: 'c48b8d5b993517eb65ee509de99eb6a76a8633a9', name: "toolbar-left" }), this.showSearch && (h("q-input", { key: '852d92ab93ad8bba5ced8cc6cda1995f285c1987', class: "search-input", placeholder: this.searchPlaceholder, value: this.searchValue, onQInput: this.handleSearchInput, size: "sm" }, 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' } }, h("circle", { key: '5023171b1fe66e057f4fd83ac583807b44ae7f5a', cx: "11", cy: "11", r: "8" }), h("line", { key: 'abcbfb3d506ad763347ffba58ceb7df25d590e87', x1: "21", y1: "21", x2: "16.65", y2: "16.65" })))), h("slot", { key: 'd2b08343660f93f13dbe4592e878c86b070c58a0', name: "filters" })), h("div", { key: '3c4cc5067d2a197a949c999f7646092c4180d786', class: "toolbar-right" }, h("slot", { key: 'b8789b247c03a3bf9817f5aa9b3cf0104ca3f1cb', name: "actions" })))), h("div", { key: 'a9b607183bb148f097689fb731f8a11ee6528ef4', class: "table-scroll-area" }, h("table", { key: '65300d96fe822676f7ec7f18761207804d88a8db', class: "table-el" }, h("thead", { key: '7bdaec164ca21ac54d1529733e3a46dedd23b3cc' }, h("tr", { key: '6b32157933e443c5f465106189b6e45d88f64576', role: "row" }, this.selectable && (h("th", { key: '654f65e2e22cbc8d07bd2eacceb7e59df5ebd821', class: "col-selection", role: "columnheader" }, h("input", { key: '29c5d83760da89694c4a1c549cfab517bbe6f8c1', type: "checkbox", class: "checkbox-input", checked: checked, ref: el => {
|
|
167
167
|
if (el)
|
|
168
168
|
el.indeterminate = indeterminate;
|
|
169
169
|
}, onChange: e => this.toggleAllSelection(e), "aria-label": "Select all rows" }))), columns.map(col => {
|
|
@@ -172,14 +172,14 @@ export class QDataTable {
|
|
|
172
172
|
style.width = col.width;
|
|
173
173
|
}
|
|
174
174
|
return (h("th", { style: style, class: col.className || '', role: "columnheader" }, this.getHeaderLabel(col)));
|
|
175
|
-
}))), h("tbody", { key: '
|
|
175
|
+
}))), h("tbody", { key: '822358cbd5fc14d4caf43e5bfd853bac7e94d018' }, this.loading ? (h("tr", { role: "row" }, h("td", { colSpan: columns.length + (this.selectable ? 1 : 0), class: "loading-placeholder-cell", role: "gridcell" }))) : items.length === 0 ? (h("tr", { role: "row" }, h("td", { colSpan: columns.length + (this.selectable ? 1 : 0), class: "empty-cell", role: "gridcell" }, h("slot", { name: "empty" }, "No data available")))) : (items.map((item, index) => {
|
|
176
176
|
const key = this.getItemKey(item, index);
|
|
177
177
|
const isSelected = currentKeys.includes(key);
|
|
178
178
|
return (h("tr", { key: key, class: {
|
|
179
179
|
'row-el': true,
|
|
180
180
|
'is-selected': isSelected,
|
|
181
181
|
}, tabindex: "0", role: "row", "aria-selected": isSelected ? 'true' : 'false', onClick: e => this.handleRowClick(item, index, e), onKeyDown: e => this.handleRowKeyDown(item, index, e) }, this.selectable && (h("td", { class: "cell-selection", role: "gridcell" }, h("input", { type: "checkbox", class: "checkbox-input", checked: isSelected, onChange: e => this.toggleRowSelection(item, index, e), "aria-label": `Select row ${index + 1}` }))), columns.map(col => (h("td", { class: col.className || '', role: "gridcell" }, this.renderCell(item, col))))));
|
|
182
|
-
})))), this.loading && (h("div", { key: '
|
|
182
|
+
})))), this.loading && (h("div", { key: '4e2426999eb39207949b3b1936183bc0520e829c', class: "table-loading-overlay" }, h("q-circular-progress", { key: 'b401481321b61cc0ade0ad1213a95040dd77245a', indeterminate: true, size: "sm" })))), h("slot", { key: '8d2af8ee3bfeeebbc92f1c472dceff1c67f1b966', name: "footer" })));
|
|
183
183
|
}
|
|
184
184
|
static get is() { return "q-data-table"; }
|
|
185
185
|
static get encapsulation() { return "shadow"; }
|
|
@@ -204,7 +204,7 @@ export class QDataTable {
|
|
|
204
204
|
"references": {
|
|
205
205
|
"TableColumn": {
|
|
206
206
|
"location": "local",
|
|
207
|
-
"path": "
|
|
207
|
+
"path": "D:/Dev/WebApps/WebQuark/src/components/data-table/data-table.tsx",
|
|
208
208
|
"id": "src/components/data-table/data-table.tsx::TableColumn"
|
|
209
209
|
}
|
|
210
210
|
}
|
|
@@ -120,7 +120,7 @@ export class QDialog {
|
|
|
120
120
|
'is-open': this.isAnimatedOpen,
|
|
121
121
|
'is-visible': this.isVisible,
|
|
122
122
|
};
|
|
123
|
-
return (h("div", { key: '
|
|
123
|
+
return (h("div", { key: 'f77d075d6402bd1c4a538496eaaa593ceada62f3', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'a280ff3613348c3a1d2cc0eecff32d3b7344aadb', class: "dialog-backdrop", onClick: this.handleBackdropClick, part: "backdrop" }), 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" }, h("header", { key: '4313f933ebbfd21ada522675723fc3532f330907', class: "dialog-header", part: "header" }, h("slot", { key: 'e654922721b61980a4a61b21bf9474fb65152301', name: "header" }, titleText && h("h2", { key: '6313bb89256ee6903c892750afd5bfc32e34cbb8', class: "dialog-title" }, titleText)), h("button", { key: '3492c1f25bfc463156328aecb17fdc5808ac7d14', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": "Close dialog", disabled: this.loading, part: "close-btn" }, h("svg", { key: '25c36a0a78e6a9ef81aec11b639efffcddbb3884', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '946a88dacfde417eb300002231c87e7abc0ed4dd', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'd6b43f7fea05d99ed4586bc48dda9cd6e086fe4f', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: '65a2ce99fa264252f9cefdae3f6fdb44f5b0b31e', class: "dialog-body", part: "body" }, h("slot", { key: 'e6d4366ba2713e3428be17d3280af595fd3a30ac' }, this.message && h("p", { key: 'f6b758ebcca1d4bebd6e288bfe72e4b1694efa2e', class: "dialog-message" }, this.message))), h("footer", { key: 'c47196a6cd11f12b4ab475855d2235d82ce7b891', class: "dialog-footer", part: "footer" }, h("slot", { key: 'fa68297fa77447fc2137b23e1041e4329ca5e91c', name: "footer" }, h("div", { key: '122afc197608cd1dd094f9c7cc2ae856d1ecaebb', class: "dialog-actions" }, this.showCancel && (h("button", { key: 'b54682b69986eb555955d3b4e6d7c2926dad3cb5', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '52139f492b7a4aab0c04c6bc85ad7ac0b7ea780a', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: '4e812be3ef372e597fa0f26e9f36f0002a2a3d87', class: "spinner-el" }), h("span", { key: '06a746e50e4702d87d53df7c690279535861f348', class: "btn-label" }, this.confirmLabel)))))))));
|
|
124
124
|
}
|
|
125
125
|
static get is() { return "q-dialog"; }
|
|
126
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -304,16 +304,16 @@ export class QDropdown {
|
|
|
304
304
|
dynamicWidth = `${Math.ceil(calculatedWidth)}px`;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
return (h("div", { key: '
|
|
307
|
+
return (h("div", { key: '980b25ffe6f39e0473c96112ac7f493b3d8cd174', class: {
|
|
308
308
|
'dropdown-wrapper': true,
|
|
309
309
|
'is-open': this.isOpen,
|
|
310
310
|
'is-disabled': this.disabled,
|
|
311
311
|
[`size-${this.size}`]: true
|
|
312
|
-
}, style: dynamicWidth ? { width: dynamicWidth, 'max-width': '100%' } : undefined, onKeyDown: this.handleKeyDown }, this.label && (h("label", { key: '
|
|
312
|
+
}, style: dynamicWidth ? { width: dynamicWidth, 'max-width': '100%' } : undefined, onKeyDown: this.handleKeyDown }, this.label && (h("label", { key: '8afabd5bdbfea59115e717af6d1b2507e5cd68d2', class: "dropdown-label", htmlFor: "q-field", part: "label" }, this.label)), 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 }, h("span", { key: '057e7496157fe944647fbf74f5bc5d89ff1a85c0', class: { 'trigger-text': true, 'is-placeholder': !hasSelection } }, displayLabel), h("svg", { key: 'c8ef16ce76559bcd4fc99b52ac5c43dbd67dbe4c', class: "chevron-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("polyline", { key: 'e4272e43433c407198f4bd7f4e8efb0976cfeb72', points: "6 9 12 15 18 9" }))), this.isOpen && (h("div", { key: 'ff31b06bb2d9e33bfbf1d2a6072f18cc41c8cfa2', id: "q-field-menu", class: "dropdown-menu", part: "menu", role: "listbox", "aria-label": this.label || 'Options' }, this.searchable && (h("div", { key: '86d6e527c9677a1bf8879917740ced1c5d441fa2', class: "dropdown-search-container" }, h("input", { key: 'ffb0005b9743452159b68287873adaa4cbeef727', ref: (el) => (this.searchInputEl = el), type: "text", class: "dropdown-search-input", placeholder: "Search...", value: this.searchTerm, onInput: this.handleSearchInput }))), h("ul", { key: '10a85f271e6d8a77e514eff7d36de1b1b81d0ec9', class: "dropdown-items-list", onScroll: this.handleScroll }, opts.length === 0 ? (h("li", { class: "menu-item is-empty" }, "No matches found")) : (opts.map((option, index) => (h("li", { id: `q-field-item-${index}`, class: {
|
|
313
313
|
'menu-item': true,
|
|
314
314
|
'is-selected': option.value === this.value,
|
|
315
315
|
'is-focused': index === this.focusedIndex
|
|
316
|
-
}, tabindex: index === this.focusedIndex ? 0 : -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, option.label)))), this.isScrollingLoading && (h("li", { key: '
|
|
316
|
+
}, tabindex: index === this.focusedIndex ? 0 : -1, part: `item ${option.value === this.value ? 'selected-item' : ''} ${index === this.focusedIndex ? 'focused-item' : ''}`, role: "option", "aria-selected": option.value === this.value ? 'true' : 'false', onClick: () => this.handleSelect(option) }, option.label)))), this.isScrollingLoading && (h("li", { key: 'bb92f2e84ed87c12963c7d7e69f0c7b5899599ed', class: "menu-item is-loading-more" }, h("span", { key: '575c59ef9d32230c21b84f0ff36e52d4e29b5e43', class: "spinner-circle" }), h("span", { key: 'a6f096427e179ad9c8e6e2d5dd6c0e3152941bcd' }, "Loading..."))))))));
|
|
317
317
|
}
|
|
318
318
|
static get is() { return "q-dropdown"; }
|
|
319
319
|
static get encapsulation() { return "shadow"; }
|
|
@@ -399,7 +399,7 @@ export class QDropdown {
|
|
|
399
399
|
"references": {
|
|
400
400
|
"Option": {
|
|
401
401
|
"location": "local",
|
|
402
|
-
"path": "
|
|
402
|
+
"path": "D:/Dev/WebApps/WebQuark/src/components/dropdown/dropdown.tsx",
|
|
403
403
|
"id": "src/components/dropdown/dropdown.tsx::Option"
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -519,7 +519,7 @@ export class QDropdown {
|
|
|
519
519
|
"references": {
|
|
520
520
|
"Option": {
|
|
521
521
|
"location": "local",
|
|
522
|
-
"path": "
|
|
522
|
+
"path": "D:/Dev/WebApps/WebQuark/src/components/dropdown/dropdown.tsx",
|
|
523
523
|
"id": "src/components/dropdown/dropdown.tsx::Option"
|
|
524
524
|
}
|
|
525
525
|
}
|
|
@@ -204,7 +204,7 @@ export class QIcon {
|
|
|
204
204
|
"optional": false,
|
|
205
205
|
"docs": {
|
|
206
206
|
"tags": [],
|
|
207
|
-
"text": "The library to load the icon from.\nOptions: 'lucide', 'font-awesome', 'local', or a custom base URL / template URL."
|
|
207
|
+
"text": "The library to load the icon from.\r\nOptions: 'lucide', 'font-awesome', 'local', or a custom base URL / template URL."
|
|
208
208
|
},
|
|
209
209
|
"getter": false,
|
|
210
210
|
"setter": false,
|
|
@@ -177,16 +177,16 @@ export class QInput {
|
|
|
177
177
|
const displayError = this.error || this.errorMessage;
|
|
178
178
|
const showClearBtn = this.clearable && !this.disabled && this.value.length > 0;
|
|
179
179
|
const showSuffixContainer = this.hasSuffix || showClearBtn;
|
|
180
|
-
return (h("div", { key: '
|
|
180
|
+
return (h("div", { key: '625e72d620dc2f975322c27fab4430b465e1ec87', class: {
|
|
181
181
|
'input-wrapper': true,
|
|
182
182
|
'is-disabled': this.disabled,
|
|
183
183
|
'has-error': hasError,
|
|
184
184
|
[`size-${this.size}`]: true
|
|
185
|
-
} }, this.label && (h("label", { key: '
|
|
185
|
+
} }, this.label && (h("label", { key: '5942cd67132d5aa70a183660429d1e0b6862a6c3', class: "input-label", htmlFor: "q-field", part: "label" }, this.label)), h("div", { key: 'f391d28659927394a093234133288204db8ed244', class: "input-control", part: "control" }, h("span", { key: '4b58272ccd8d258e828ed9bd71261940c6fb8ce2', class: "prefix-container", style: { display: this.hasPrefix ? 'flex' : 'none' }, part: "prefix" }, h("slot", { key: '5425870da7418f2d6f4d8aeb4c0bf3f7c63d8d93', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: this.type, ref: (el) => (this.inputEl = el), id: "q-field", class: {
|
|
186
186
|
'input-box': true,
|
|
187
187
|
'has-prefix-padding': this.hasPrefix,
|
|
188
188
|
'has-suffix-padding': showSuffixContainer
|
|
189
|
-
}, 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 && (h("div", { key: '
|
|
189
|
+
}, 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 && (h("div", { key: 'e1a5b72f552c8b88ab6e2b84fcd63151a96dd28a', class: "input-spinners", part: "spinners" }, h("button", { key: 'cc07df31e5c87cced56b87e0a7818bb97455b0bf', class: "spinner-btn spinner-up", type: "button", onClick: this.handleIncrement, tabindex: "-1" }, h("svg", { key: '92e9f32279eb92f977e14f5a691ec5e0718f663a', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: '93162a09225cc2afde09fc3cf92b20c7b79a49f1', d: "M18 15l-6-6-6 6" }))), h("button", { key: '8a504bc234fafdd7d25ca07c29dd33cd24eb9616', class: "spinner-btn spinner-down", type: "button", onClick: this.handleDecrement, tabindex: "-1" }, h("svg", { key: '28bba806af4cdfc32ab09c9f0ade45fec528b50e', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: 'd6235c3d97748bb5a27d7328bba04c24b27a0fda', d: "M6 9l6 6 6-6" }))))), h("span", { key: '9172a40f329f7e3925480aeed27eab030760c97f', class: "suffix-container", style: { display: showSuffixContainer ? 'flex' : 'none' }, part: "suffix" }, showClearBtn && (h("button", { key: '3541668033431d6f99cd3ff865e6c0eeb1572354', class: "clear-btn", type: "button", onClick: this.handleClear, "aria-label": "Clear input" }, h("svg", { key: '975ee761d5651e246423d09d615ab9fcdeb028d7', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: 'd38026e069ca1aaf8822a3f9db9a80d4b3bc0df0', d: "M18 6L6 18M6 6l12 12" })))), h("span", { key: '001edfd3e2094f5097d4ec6ad267aa807791972b', style: { display: showClearBtn ? 'none' : 'block' } }, h("slot", { key: '119df340327d548f044f154d591584c1143e15e4', name: "suffix", onSlotchange: this.handleSuffixSlotChange })))), hasError && (h("span", { key: '7942ca41a7c1a97211939de4992525f6707ed2f0', id: "q-field-error", class: "error-msg", part: "error-msg" }, displayError))));
|
|
190
190
|
}
|
|
191
191
|
static get is() { return "q-input"; }
|
|
192
192
|
static get encapsulation() { return "shadow"; }
|