@quaffui/quaff 0.1.0-prealpha → 0.1.0-prealpha11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/QAvatar.svelte +8 -7
- package/dist/components/avatar/QAvatar.svelte.d.ts +4 -4
- package/dist/components/avatar/docs.d.ts +1 -1
- package/dist/components/avatar/index.scss +4 -1
- package/dist/components/avatar/props.d.ts +2 -2
- package/dist/components/avatar/props.js +1 -1
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +4 -4
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +4 -4
- package/dist/components/breadcrumbs/docs.d.ts +1 -1
- package/dist/components/button/QBtn.svelte +23 -9
- package/dist/components/button/QBtn.svelte.d.ts +6 -5
- package/dist/components/button/docs.d.ts +1 -1
- package/dist/components/button/docs.props.js +8 -0
- package/dist/components/button/index.scss +23 -3
- package/dist/components/button/props.d.ts +7 -2
- package/dist/components/card/QCard.svelte +1 -1
- package/dist/components/card/QCard.svelte.d.ts +4 -4
- package/dist/components/card/QCardActions.svelte +1 -1
- package/dist/components/card/QCardActions.svelte.d.ts +5 -5
- package/dist/components/card/QCardSection.svelte +1 -1
- package/dist/components/card/QCardSection.svelte.d.ts +4 -4
- package/dist/components/card/docs.props.js +1 -1
- package/dist/components/card/index.scss +4 -1
- package/dist/components/card/props.d.ts +1 -1
- package/dist/components/checkbox/QCheckbox.svelte.d.ts +4 -4
- package/dist/components/checkbox/index.scss +4 -0
- package/dist/components/chip/QChip.svelte +8 -2
- package/dist/components/chip/QChip.svelte.d.ts +4 -4
- package/dist/components/chip/docs.d.ts +1 -1
- package/dist/components/chip/docs.props.js +3 -3
- package/dist/components/chip/index.scss +4 -1
- package/dist/components/chip/props.d.ts +2 -2
- package/dist/components/codeBlock/QCodeBlock.svelte +8 -9
- package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +5 -7
- package/dist/components/dialog/QDialog.svelte +34 -20
- package/dist/components/dialog/QDialog.svelte.d.ts +4 -5
- package/dist/components/dialog/docs.d.ts +1 -1
- package/dist/components/dialog/docs.props.js +10 -2
- package/dist/components/dialog/index.scss +150 -3
- package/dist/components/drawer/QDrawer.svelte +57 -40
- package/dist/components/drawer/QDrawer.svelte.d.ts +5 -4
- package/dist/components/drawer/docs.d.ts +1 -1
- package/dist/components/drawer/index.scss +14 -9
- package/dist/components/drawer/props.d.ts +2 -2
- package/dist/components/footer/QFooter.svelte +18 -4
- package/dist/components/footer/QFooter.svelte.d.ts +6 -6
- package/dist/components/footer/docs.d.ts +1 -1
- package/dist/components/footer/index.scss +23 -0
- package/dist/components/footer/props.d.ts +4 -4
- package/dist/components/header/QHeader.svelte +28 -0
- package/dist/components/header/QHeader.svelte.d.ts +24 -0
- package/dist/components/header/props.d.ts +15 -0
- package/dist/components/header/props.js +1 -0
- package/dist/components/icon/QIcon.svelte +11 -13
- package/dist/components/icon/QIcon.svelte.d.ts +8 -8
- package/dist/components/icon/docs.d.ts +1 -1
- package/dist/components/icon/docs.props.js +1 -1
- package/dist/components/icon/index.scss +63 -6
- package/dist/components/icon/props.d.ts +6 -6
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +3 -1
- package/dist/components/input/QInput.svelte.d.ts +10 -10
- package/dist/components/input/docs.d.ts +1 -1
- package/dist/components/input/props.d.ts +7 -7
- package/dist/components/layout/QLayout.svelte.d.ts +11 -11
- package/dist/components/layout/docs.d.ts +1 -1
- package/dist/components/layout/index.scss +93 -76
- package/dist/components/layout/props.d.ts +7 -7
- package/dist/components/list/QItem.svelte +1 -1
- package/dist/components/list/QItem.svelte.d.ts +9 -9
- package/dist/components/list/QItemSection.svelte.d.ts +5 -5
- package/dist/components/list/QList.svelte.d.ts +10 -17
- package/dist/components/list/docs.d.ts +2 -0
- package/dist/components/list/docs.js +11 -0
- package/dist/components/list/docs.props.js +1 -1
- package/dist/components/list/index.scss +7 -0
- package/dist/components/list/props.d.ts +12 -12
- package/dist/components/private/ContextReseter.svelte.d.ts +2 -2
- package/dist/components/private/QApi.svelte +25 -22
- package/dist/components/private/QApi.svelte.d.ts +2 -2
- package/dist/components/private/QDocs.svelte +38 -10
- package/dist/components/private/QDocs.svelte.d.ts +3 -3
- package/dist/components/private/QDocsSection.svelte +2 -2
- package/dist/components/private/QDocsSection.svelte.d.ts +2 -2
- package/dist/components/progress/QCircularProgress.svelte +4 -3
- package/dist/components/progress/QCircularProgress.svelte.d.ts +7 -7
- package/dist/components/progress/QLinearProgress.svelte +8 -2
- package/dist/components/progress/QLinearProgress.svelte.d.ts +6 -6
- package/dist/components/progress/docs.d.ts +2 -0
- package/dist/components/progress/docs.js +11 -0
- package/dist/components/progress/docs.props.d.ts +8 -0
- package/dist/components/progress/docs.props.js +42 -0
- package/dist/components/progress/index.scss +15 -0
- package/dist/components/progress/props.d.ts +30 -13
- package/dist/components/progress/props.js +1 -7
- package/dist/components/radio/QRadio.svelte.d.ts +6 -6
- package/dist/components/radio/docs.d.ts +1 -1
- package/dist/components/radio/props.d.ts +3 -3
- package/dist/components/railbar/QRailbar.svelte +48 -29
- package/dist/components/railbar/QRailbar.svelte.d.ts +7 -7
- package/dist/components/railbar/docs.d.ts +2 -0
- package/dist/components/railbar/docs.js +11 -0
- package/dist/components/railbar/index.scss +39 -0
- package/dist/components/railbar/props.d.ts +13 -5
- package/dist/components/railbar/props.js +1 -7
- package/dist/components/select/QSelect.svelte +6 -4
- package/dist/components/select/QSelect.svelte.d.ts +7 -7
- package/dist/components/select/docs.d.ts +1 -1
- package/dist/components/select/docs.props.js +2 -2
- package/dist/components/select/index.scss +8 -2
- package/dist/components/select/props.d.ts +4 -4
- package/dist/components/select/props.js +0 -1
- package/dist/components/separator/QSeparator.svelte +1 -1
- package/dist/components/separator/QSeparator.svelte.d.ts +9 -9
- package/dist/components/separator/docs.d.ts +2 -0
- package/dist/components/separator/docs.js +11 -0
- package/dist/components/separator/props.d.ts +10 -10
- package/dist/components/table/QTable.svelte.d.ts +5 -5
- package/dist/components/table/docs.d.ts +1 -1
- package/dist/components/table/props.d.ts +1 -1
- package/dist/components/tabs/QTab.svelte +45 -17
- package/dist/components/tabs/QTab.svelte.d.ts +5 -7
- package/dist/components/tabs/QTabs.svelte +3 -7
- package/dist/components/tabs/QTabs.svelte.d.ts +6 -6
- package/dist/components/tabs/docs.d.ts +2 -0
- package/dist/components/tabs/docs.js +11 -0
- package/dist/components/tabs/docs.props.js +3 -11
- package/dist/components/tabs/index.scss +40 -9
- package/dist/components/tabs/props.d.ts +2 -2
- package/dist/components/toggle/QToggle.svelte.d.ts +4 -4
- package/dist/components/toggle/docs.d.ts +1 -1
- package/dist/components/toggle/props.d.ts +1 -1
- package/dist/components/toggle/props.js +1 -1
- package/dist/components/toolbar/QToolbar.svelte +6 -22
- package/dist/components/toolbar/QToolbar.svelte.d.ts +8 -6
- package/dist/components/toolbar/QToolbarTitle.svelte +10 -0
- package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +22 -0
- package/dist/components/toolbar/docs.d.ts +2 -0
- package/dist/components/toolbar/docs.js +11 -0
- package/dist/components/toolbar/docs.props.d.ts +8 -0
- package/dist/components/toolbar/docs.props.js +10 -0
- package/dist/components/toolbar/index.scss +35 -0
- package/dist/components/toolbar/props.d.ts +23 -4
- package/dist/components/toolbar/props.js +1 -6
- package/dist/components/tooltip/QTooltip.svelte +3 -5
- package/dist/components/tooltip/QTooltip.svelte.d.ts +5 -5
- package/dist/components/tooltip/docs.d.ts +2 -0
- package/dist/components/tooltip/docs.js +11 -0
- package/dist/components/tooltip/index.scss +77 -2
- package/dist/components/tooltip/props.d.ts +1 -1
- package/dist/composables/use-align.js +17 -6
- package/dist/composables/use-router-link.js +0 -1
- package/dist/composables/use-size.d.ts +8 -10
- package/dist/composables/use-size.js +24 -12
- package/dist/css/flex.scss +41 -0
- package/dist/css/fonts.scss +4 -0
- package/dist/css/grid.scss +1 -16
- package/dist/css/index.css +1 -0
- package/dist/css/index.scss +5 -23
- package/dist/css/mixins/field.scss +3 -1
- package/dist/css/mixins/menu.scss +3 -1
- package/dist/css/mixins.scss +5 -4
- package/dist/css/ripple.scss +42 -0
- package/dist/css/states.scss +9 -4
- package/dist/css/theme/bridge.scss +15 -0
- package/dist/css/theme/elevate.scss +57 -0
- package/dist/css/theme/page.scss +16 -0
- package/dist/css/theme/palette.scss +647 -0
- package/dist/css/theme/reset.scss +40 -0
- package/dist/css/theme/theme.dark.scss +1 -0
- package/dist/css/theme/theme.light.scss +1 -0
- package/dist/css/theme/theme.scss +6 -0
- package/dist/css/theme/typography.scss +111 -0
- package/dist/css/variables-sass.scss +16 -0
- package/dist/global.d.ts +0 -1
- package/dist/helpers/ripple.d.ts +10 -0
- package/dist/helpers/ripple.js +79 -0
- package/dist/helpers/version.d.ts +2 -0
- package/dist/helpers/version.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/stores/QTheme.d.ts +3 -3
- package/dist/stores/QTheme.js +22 -15
- package/dist/stores/Quaff.d.ts +6 -5
- package/dist/stores/Quaff.js +2 -1
- package/dist/utils/dom.d.ts +8 -0
- package/dist/utils/dom.js +71 -0
- package/dist/utils/events.d.ts +13 -0
- package/dist/utils/events.js +13 -0
- package/dist/utils/props.d.ts +1 -1
- package/dist/utils/props.js +1 -1
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.json +1 -1
- package/dist/utils/watchable.d.ts +1 -0
- package/package.json +34 -28
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
--right-drawer-width: 300px;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
$contentSlot: ":not(.q-header, .q-footer, .q-railbar, .q-drawer)";
|
|
13
|
+
|
|
12
14
|
.q-layout {
|
|
13
15
|
position: relative;
|
|
14
16
|
width: 100%;
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
min-height: 100%;
|
|
18
20
|
overflow: hidden;
|
|
19
21
|
|
|
20
|
-
& >
|
|
22
|
+
& > #{$contentSlot} {
|
|
21
23
|
height: 100%;
|
|
22
24
|
overflow: auto;
|
|
23
25
|
transition: padding var(--speed3);
|
|
@@ -35,18 +37,18 @@
|
|
|
35
37
|
min-height: unset;
|
|
36
38
|
border-radius: 0;
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
height: 100%;
|
|
40
|
-
min-height: unset;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.fixed {
|
|
40
|
+
&--fixed {
|
|
44
41
|
position: fixed;
|
|
45
42
|
|
|
46
43
|
&::before {
|
|
47
44
|
margin: 0;
|
|
48
45
|
}
|
|
49
46
|
}
|
|
47
|
+
|
|
48
|
+
& > nav {
|
|
49
|
+
height: 100%;
|
|
50
|
+
min-height: unset;
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
.q-layout > .q-footer {
|
|
@@ -60,12 +62,7 @@
|
|
|
60
62
|
min-height: unset;
|
|
61
63
|
border-radius: 0;
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
height: 100%;
|
|
65
|
-
min-height: unset;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.fixed {
|
|
65
|
+
&--fixed {
|
|
69
66
|
position: fixed;
|
|
70
67
|
|
|
71
68
|
&::before {
|
|
@@ -73,7 +70,12 @@
|
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
|
|
76
|
-
&
|
|
73
|
+
& > nav {
|
|
74
|
+
height: 100%;
|
|
75
|
+
min-height: unset;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& ~ #{$contentSlot} {
|
|
77
79
|
padding-bottom: var(--footer-height);
|
|
78
80
|
}
|
|
79
81
|
}
|
|
@@ -89,28 +91,28 @@
|
|
|
89
91
|
overflow: auto;
|
|
90
92
|
transition: all var(--speed3);
|
|
91
93
|
|
|
92
|
-
|
|
94
|
+
&--above {
|
|
93
95
|
z-index: 105;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
&--fixed {
|
|
97
99
|
position: fixed;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
|
-
|
|
102
|
+
&--left {
|
|
101
103
|
left: 0px;
|
|
102
104
|
width: var(--left-railbar-width);
|
|
103
105
|
|
|
104
|
-
&.bordered {
|
|
106
|
+
&.q-railbar--bordered {
|
|
105
107
|
border-right: 0.0625rem solid var(--outline);
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
|
|
109
|
-
|
|
111
|
+
&--right {
|
|
110
112
|
right: 0px;
|
|
111
113
|
width: var(--right-railbar-width);
|
|
112
114
|
|
|
113
|
-
&.bordered {
|
|
115
|
+
&.q-railbar--bordered {
|
|
114
116
|
border-left: 0.0625rem solid var(--outline);
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -140,35 +142,29 @@
|
|
|
140
142
|
background-color: var(--secondary-container);
|
|
141
143
|
color: var(--on-secondary-container);
|
|
142
144
|
padding: 0 1rem;
|
|
143
|
-
font-variation-settings:
|
|
145
|
+
font-variation-settings:
|
|
146
|
+
"FILL" 1,
|
|
147
|
+
"wght" 400,
|
|
148
|
+
"opsz" 24;
|
|
144
149
|
}
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
|
|
148
153
|
.q-layout > .q-drawer {
|
|
149
|
-
//TODO Problems with z-index between multiple layouts
|
|
150
154
|
z-index: 101;
|
|
151
155
|
border-radius: 0;
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
&--above {
|
|
154
158
|
z-index: 104;
|
|
155
159
|
}
|
|
156
160
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
border-
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
&__right {
|
|
167
|
-
&--top {
|
|
168
|
-
border-top-right-radius: 16px;
|
|
169
|
-
}
|
|
170
|
-
&--bottom {
|
|
171
|
-
border-bottom-right-radius: 16px;
|
|
161
|
+
$horizontal: "left", "right";
|
|
162
|
+
$vertical: "top", "bottom";
|
|
163
|
+
|
|
164
|
+
@each $vPos in $vertical {
|
|
165
|
+
@each $hPos in $horizontal {
|
|
166
|
+
&--#{$vPos}-#{$hPos}-radius {
|
|
167
|
+
border-#{$vPos}-#{$hPos}-radius: 16px;
|
|
172
168
|
}
|
|
173
169
|
}
|
|
174
170
|
}
|
|
@@ -242,33 +238,35 @@ $elements: (
|
|
|
242
238
|
|
|
243
239
|
// Offset for content
|
|
244
240
|
.q-layout {
|
|
245
|
-
& > .q-header ~
|
|
241
|
+
& > .q-header ~ #{$contentSlot} {
|
|
246
242
|
padding-top: var(--header-height);
|
|
247
243
|
}
|
|
248
|
-
& > .q-footer ~
|
|
244
|
+
& > .q-footer ~ #{$contentSlot} {
|
|
249
245
|
padding-bottom: var(--footer-height);
|
|
250
246
|
}
|
|
251
|
-
|
|
247
|
+
|
|
248
|
+
& > .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
252
249
|
padding-left: $L_Drawer;
|
|
253
250
|
}
|
|
254
|
-
& > .q-drawer.active.right:not(.overlay) ~
|
|
251
|
+
& > .q-drawer.q-drawer--active.q-drawer--right:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
255
252
|
padding-right: $R_Drawer;
|
|
256
253
|
}
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
|
|
255
|
+
& > .q-railbar.q-railbar--left:not([style="display: none"]) {
|
|
256
|
+
& ~ #{$contentSlot} {
|
|
259
257
|
padding-left: $L_Railbar;
|
|
260
258
|
}
|
|
261
259
|
|
|
262
|
-
& ~ .q-drawer.active.left:not(.overlay) ~
|
|
260
|
+
& ~ .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
263
261
|
padding-left: $L_Full;
|
|
264
262
|
}
|
|
265
263
|
}
|
|
266
|
-
& > .q-railbar.right:not([style="display: none"]) {
|
|
267
|
-
& ~
|
|
264
|
+
& > .q-railbar.q-railbar--right:not([style="display: none"]) {
|
|
265
|
+
& ~ #{$contentSlot} {
|
|
268
266
|
padding-right: $R_Railbar;
|
|
269
267
|
}
|
|
270
268
|
|
|
271
|
-
& ~ .q-drawer.active.right:not(.overlay) ~
|
|
269
|
+
& ~ .q-drawer.q-drawer--active.q-drawer--right:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
272
270
|
padding-right: $R_Full;
|
|
273
271
|
}
|
|
274
272
|
}
|
|
@@ -277,31 +275,48 @@ $elements: (
|
|
|
277
275
|
// Inline offset for header, footer and drawers
|
|
278
276
|
.q-layout {
|
|
279
277
|
@each $pos, $el in $elements {
|
|
280
|
-
& > .q-railbar.left:not([style="display: none"]) {
|
|
281
|
-
&:not(.offset-#{$pos}) ~ .q-#{$el},
|
|
282
|
-
& ~ .q-drawer.left {
|
|
278
|
+
& > .q-railbar.q-railbar--left:not([style="display: none"]) {
|
|
279
|
+
&:not(.q-railbar--offset-#{$pos}) ~ .q-#{$el},
|
|
280
|
+
& ~ .q-drawer.q-drawer--left {
|
|
283
281
|
left: $L_Railbar;
|
|
284
282
|
}
|
|
285
283
|
|
|
286
|
-
&
|
|
284
|
+
&
|
|
285
|
+
~ .q-drawer.q-drawer--active.q-drawer--left:not(
|
|
286
|
+
.q-drawer--offset-#{$pos},
|
|
287
|
+
.q-drawer--overlay
|
|
288
|
+
)
|
|
289
|
+
~ .q-#{$el} {
|
|
287
290
|
left: $L_Full;
|
|
288
291
|
}
|
|
289
292
|
}
|
|
290
|
-
& > .q-railbar.right:not([style="display: none"]) {
|
|
291
|
-
&:not(.offset-#{$pos}) ~ .q-#{$el},
|
|
292
|
-
& ~ .q-drawer.right {
|
|
293
|
+
& > .q-railbar.q-railbar--right:not([style="display: none"]) {
|
|
294
|
+
&:not(.q-railbar--offset-#{$pos}) ~ .q-#{$el},
|
|
295
|
+
& ~ .q-drawer.q-drawer--right {
|
|
293
296
|
right: $R_Railbar;
|
|
294
297
|
}
|
|
295
298
|
|
|
296
|
-
&
|
|
299
|
+
&
|
|
300
|
+
~ .q-drawer.q-drawer--active.q-drawer--right:not(
|
|
301
|
+
.q-drawer--offset-#{$pos},
|
|
302
|
+
.q-drawer--overlay
|
|
303
|
+
)
|
|
304
|
+
~ .q-#{$el} {
|
|
297
305
|
right: $R_Full;
|
|
298
306
|
}
|
|
299
307
|
}
|
|
300
308
|
|
|
301
|
-
&
|
|
309
|
+
&
|
|
310
|
+
> .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay)
|
|
311
|
+
~ .q-#{$el} {
|
|
302
312
|
left: $L_Drawer;
|
|
303
313
|
}
|
|
304
|
-
&
|
|
314
|
+
&
|
|
315
|
+
> .q-drawer.q-drawer--active.q-drawer--right:not(
|
|
316
|
+
.q-drawer--offset-#{$pos},
|
|
317
|
+
.q-drawer--overlay
|
|
318
|
+
)
|
|
319
|
+
~ .q-#{$el} {
|
|
305
320
|
right: $R_Drawer;
|
|
306
321
|
}
|
|
307
322
|
}
|
|
@@ -310,40 +325,40 @@ $elements: (
|
|
|
310
325
|
// Width for header and footer
|
|
311
326
|
.q-layout {
|
|
312
327
|
@each $pos, $el in $elements {
|
|
313
|
-
& > .q-railbar.left:not(.offset-#{$pos}, [style="display: none"]) {
|
|
328
|
+
& > .q-railbar.q-railbar--left:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
314
329
|
// Left railbar
|
|
315
330
|
& ~ .q-#{$el} {
|
|
316
331
|
width: without($L_Railbar);
|
|
317
332
|
}
|
|
318
333
|
|
|
319
|
-
& ~ .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
334
|
+
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
320
335
|
@include include-drawers(without($L_Railbar), $pos, $el);
|
|
321
336
|
}
|
|
322
337
|
|
|
323
|
-
& ~ .q-railbar.right:not(.offset-#{$pos}, [style="display: none"]) {
|
|
338
|
+
& ~ .q-railbar.q-railbar--right:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
324
339
|
// Left railbar + Right railbar
|
|
325
340
|
& ~ .q-#{$el} {
|
|
326
341
|
width: without($LR_Railbar);
|
|
327
342
|
}
|
|
328
343
|
|
|
329
|
-
& ~ .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
344
|
+
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
330
345
|
@include include-drawers(without($LR_Railbar), $pos, $el);
|
|
331
346
|
}
|
|
332
347
|
}
|
|
333
348
|
}
|
|
334
349
|
|
|
335
|
-
& > .q-railbar.right:not(.offset-#{$pos}, [style="display: none"]) {
|
|
350
|
+
& > .q-railbar.q-railbar--right:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
336
351
|
// Right railbar
|
|
337
352
|
& ~ .q-#{$el} {
|
|
338
353
|
width: without($R_Railbar);
|
|
339
354
|
}
|
|
340
355
|
|
|
341
|
-
& ~ .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
356
|
+
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
342
357
|
@include include-drawers(without($R_Railbar), $pos, $el);
|
|
343
358
|
}
|
|
344
359
|
}
|
|
345
360
|
|
|
346
|
-
& > .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
361
|
+
& > .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
347
362
|
@include include-drawers(100%, $pos, $el);
|
|
348
363
|
}
|
|
349
364
|
}
|
|
@@ -351,19 +366,21 @@ $elements: (
|
|
|
351
366
|
|
|
352
367
|
// Height for railbars and drawers
|
|
353
368
|
.q-layout {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
369
|
+
$drawerTypes: ".q-railbar", ".q-drawer";
|
|
370
|
+
|
|
371
|
+
@each $drawerType in $drawerTypes {
|
|
372
|
+
& > #{$drawerType} {
|
|
373
|
+
&#{$drawerType}--offset-top#{$drawerType}--offset-bottom {
|
|
374
|
+
height: calc(100% - var(--header-height) - var(--footer-height));
|
|
375
|
+
}
|
|
358
376
|
}
|
|
359
|
-
}
|
|
360
377
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
378
|
+
@each $pos, $el in $elements {
|
|
379
|
+
& > #{$drawerType} {
|
|
380
|
+
&#{$drawerType}--offset-#{$pos} {
|
|
381
|
+
#{$pos}: var(--#{$el}-height);
|
|
382
|
+
height: calc(100% - var(--#{$el}-height));
|
|
383
|
+
}
|
|
367
384
|
}
|
|
368
385
|
}
|
|
369
386
|
}
|
|
@@ -6,36 +6,36 @@ export interface QLayoutProps extends NativeProps {
|
|
|
6
6
|
* See <a href="https://quasar.dev/layout/layout/#understanding-the-view-prop" target="_blank">Quasar's explanation on the view prop</a>.
|
|
7
7
|
* @default "hhh lpr fff"
|
|
8
8
|
*/
|
|
9
|
-
view
|
|
9
|
+
view?: QLayoutViewOptions;
|
|
10
10
|
/**
|
|
11
11
|
* The height of the header. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
12
12
|
* @default 64px
|
|
13
13
|
*/
|
|
14
|
-
headerHeight
|
|
14
|
+
headerHeight?: string | number;
|
|
15
15
|
/**
|
|
16
16
|
* The height of the footer. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
17
17
|
* @default 80px
|
|
18
18
|
*/
|
|
19
|
-
footerHeight
|
|
19
|
+
footerHeight?: string | number;
|
|
20
20
|
/**
|
|
21
21
|
* The width of the left drawer. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
22
22
|
* @default 300px
|
|
23
23
|
*/
|
|
24
|
-
leftDrawerWidth
|
|
24
|
+
leftDrawerWidth?: string | number;
|
|
25
25
|
/**
|
|
26
26
|
* The width of the right drawer. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
27
27
|
* @default 300px
|
|
28
28
|
*/
|
|
29
|
-
rightDrawerWidth
|
|
29
|
+
rightDrawerWidth?: string | number;
|
|
30
30
|
/**
|
|
31
31
|
* The width of the left railbar. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
32
32
|
* @default 88px
|
|
33
33
|
*/
|
|
34
|
-
leftRailbarWidth
|
|
34
|
+
leftRailbarWidth?: string | number;
|
|
35
35
|
/**
|
|
36
36
|
* The width of the right railbar. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
37
37
|
* @default 88px
|
|
38
38
|
*/
|
|
39
|
-
rightRailbarWidth
|
|
39
|
+
rightRailbarWidth?: string | number;
|
|
40
40
|
}
|
|
41
41
|
export type QLayoutEvents = "resize" | "scroll" | "scrollHeight";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { QItemProps } from "./props";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
tag?:
|
|
7
|
-
active?:
|
|
8
|
-
clickable?:
|
|
9
|
-
dense?:
|
|
10
|
-
tabindex?:
|
|
6
|
+
tag?: QItemProps["tag"];
|
|
7
|
+
active?: QItemProps["active"];
|
|
8
|
+
clickable?: QItemProps["clickable"];
|
|
9
|
+
dense?: QItemProps["dense"];
|
|
10
|
+
tabindex?: QItemProps["tabindex"];
|
|
11
11
|
href?: QItemProps["href"];
|
|
12
12
|
to?: QItemProps["to"];
|
|
13
13
|
disable?: boolean | undefined;
|
|
@@ -26,9 +26,9 @@ declare const __propDef: {
|
|
|
26
26
|
default: {};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
type QItemProps_ = typeof __propDef.props;
|
|
30
|
+
export { QItemProps_ as QItemProps };
|
|
30
31
|
export type QItemEvents = typeof __propDef.events;
|
|
31
32
|
export type QItemSlots = typeof __propDef.slots;
|
|
32
|
-
export default class QItem extends
|
|
33
|
+
export default class QItem extends SvelteComponent<QItemProps, QItemEvents, QItemSlots> {
|
|
33
34
|
}
|
|
34
|
-
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { QItemSectionProps } from "./props";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
type?:
|
|
6
|
+
type?: QItemSectionProps["type"];
|
|
7
7
|
class?: string | undefined;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
@@ -17,9 +17,9 @@ declare const __propDef: {
|
|
|
17
17
|
line3: {};
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
type QItemSectionProps_ = typeof __propDef.props;
|
|
21
|
+
export { QItemSectionProps_ as QItemSectionProps };
|
|
21
22
|
export type QItemSectionEvents = typeof __propDef.events;
|
|
22
23
|
export type QItemSectionSlots = typeof __propDef.slots;
|
|
23
|
-
export default class QItemSection extends
|
|
24
|
+
export default class QItemSection extends SvelteComponent<QItemSectionProps, QItemSectionEvents, QItemSectionSlots> {
|
|
24
25
|
}
|
|
25
|
-
export {};
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { QListProps } from "./props";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
bordered?:
|
|
7
|
-
roundedBorders?:
|
|
8
|
-
dense?:
|
|
9
|
-
separator?:
|
|
10
|
-
separatorOptions?:
|
|
11
|
-
|
|
12
|
-
inset?: boolean | undefined;
|
|
13
|
-
color?: string | undefined;
|
|
14
|
-
size?: string | undefined;
|
|
15
|
-
text?: string | undefined;
|
|
16
|
-
textAlign?: "top" | "bottom" | "left" | "right" | "center" | "middle" | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
padding?: boolean | undefined;
|
|
6
|
+
bordered?: QListProps["bordered"];
|
|
7
|
+
roundedBorders?: QListProps["roundedBorders"];
|
|
8
|
+
dense?: QListProps["dense"];
|
|
9
|
+
separator?: QListProps["separator"];
|
|
10
|
+
separatorOptions?: QListProps["separatorOptions"];
|
|
11
|
+
padding?: QListProps["padding"];
|
|
19
12
|
tag?: QListProps["tag"];
|
|
20
13
|
class?: string | undefined;
|
|
21
14
|
};
|
|
@@ -28,9 +21,9 @@ declare const __propDef: {
|
|
|
28
21
|
default: {};
|
|
29
22
|
};
|
|
30
23
|
};
|
|
31
|
-
|
|
24
|
+
type QListProps_ = typeof __propDef.props;
|
|
25
|
+
export { QListProps_ as QListProps };
|
|
32
26
|
export type QListEvents = typeof __propDef.events;
|
|
33
27
|
export type QListSlots = typeof __propDef.slots;
|
|
34
|
-
export default class QList extends
|
|
28
|
+
export default class QList extends SvelteComponent<QListProps, QListEvents, QListSlots> {
|
|
35
29
|
}
|
|
36
|
-
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QListDocsProps } from "./docs.props";
|
|
2
|
+
export let QListDocs = {
|
|
3
|
+
name: "QList",
|
|
4
|
+
description: "The QList component is used to display a list of items with options for adding text, icons and actions.",
|
|
5
|
+
docs: {
|
|
6
|
+
props: QListDocsProps,
|
|
7
|
+
slots: [],
|
|
8
|
+
methods: [],
|
|
9
|
+
events: [],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -2,11 +2,11 @@ import { type NativeProps } from "../../utils/types";
|
|
|
2
2
|
import type { QSeparatorProps } from "../separator/props";
|
|
3
3
|
import { type UseRouterLinkProps } from "../../composables/use-router-link";
|
|
4
4
|
export interface QListProps extends NativeProps {
|
|
5
|
-
bordered
|
|
6
|
-
roundedBorders
|
|
7
|
-
dense
|
|
8
|
-
separator
|
|
9
|
-
separatorOptions
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
roundedBorders?: boolean;
|
|
7
|
+
dense?: boolean;
|
|
8
|
+
separator?: boolean;
|
|
9
|
+
separatorOptions?: {
|
|
10
10
|
spacing?: QSeparatorProps["spacing"];
|
|
11
11
|
inset?: QSeparatorProps["inset"];
|
|
12
12
|
color?: QSeparatorProps["color"];
|
|
@@ -14,20 +14,20 @@ export interface QListProps extends NativeProps {
|
|
|
14
14
|
text?: QSeparatorProps["text"];
|
|
15
15
|
textAlign?: QSeparatorProps["textAlign"];
|
|
16
16
|
};
|
|
17
|
-
padding
|
|
17
|
+
padding?: boolean;
|
|
18
18
|
tag?: string;
|
|
19
19
|
}
|
|
20
20
|
export declare const QListPropsDefaults: QListProps;
|
|
21
21
|
export interface QItemProps extends UseRouterLinkProps, NativeProps {
|
|
22
|
-
tag
|
|
23
|
-
active
|
|
24
|
-
clickable
|
|
25
|
-
dense
|
|
26
|
-
tabindex
|
|
22
|
+
tag?: string;
|
|
23
|
+
active?: boolean;
|
|
24
|
+
clickable?: boolean;
|
|
25
|
+
dense?: boolean;
|
|
26
|
+
tabindex?: string | number;
|
|
27
27
|
}
|
|
28
28
|
export declare const QItemPropsDefaults: QItemProps;
|
|
29
29
|
export type QItemSectionTypes = "thumbnail" | "video" | "avatar" | "toggle" | "icon" | "trailingIcon" | "trailingText" | "content";
|
|
30
30
|
export interface QItemSectionProps extends NativeProps {
|
|
31
|
-
type
|
|
31
|
+
type?: QItemSectionTypes;
|
|
32
32
|
}
|
|
33
33
|
export declare const QItemSectionPropsDefaults: QItemSectionProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
keys: string | string[];
|
|
@@ -13,6 +13,6 @@ declare const __propDef: {
|
|
|
13
13
|
export type ContextReseterProps = typeof __propDef.props;
|
|
14
14
|
export type ContextReseterEvents = typeof __propDef.events;
|
|
15
15
|
export type ContextReseterSlots = typeof __propDef.slots;
|
|
16
|
-
export default class ContextReseter extends
|
|
16
|
+
export default class ContextReseter extends SvelteComponent<ContextReseterProps, ContextReseterEvents, ContextReseterSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|