@quaffui/quaff 0.1.0-prealpha14 → 0.1.0-prealpha16
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 +46 -28
- package/dist/components/avatar/QAvatar.svelte.d.ts +0 -1
- package/dist/components/avatar/docs.d.ts +1 -1
- package/dist/components/avatar/docs.js +1 -1
- package/dist/components/avatar/docs.props.js +2 -0
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte +3 -9
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte +8 -18
- package/dist/components/breadcrumbs/docs.d.ts +1 -1
- package/dist/components/breadcrumbs/docs.js +1 -1
- package/dist/components/breadcrumbs/docs.props.js +2 -0
- package/dist/components/button/QBtn.svelte +15 -20
- package/dist/components/button/docs.d.ts +1 -1
- package/dist/components/button/docs.js +1 -1
- package/dist/components/button/docs.props.js +2 -0
- package/dist/components/button/index.scss +6 -1
- package/dist/components/card/QCard.svelte +8 -9
- package/dist/components/card/QCardActions.svelte +6 -10
- package/dist/components/card/QCardSection.svelte +7 -9
- package/dist/components/card/docs.d.ts +3 -3
- package/dist/components/card/docs.js +3 -3
- package/dist/components/card/docs.props.js +2 -0
- package/dist/components/checkbox/QCheckbox.svelte +2 -8
- package/dist/components/checkbox/docs.d.ts +1 -1
- package/dist/components/checkbox/docs.js +1 -1
- package/dist/components/checkbox/docs.props.js +2 -0
- package/dist/components/chip/QChip.svelte +20 -24
- package/dist/components/chip/docs.d.ts +1 -1
- package/dist/components/chip/docs.js +1 -1
- package/dist/components/chip/docs.props.js +2 -0
- package/dist/components/codeBlock/QCodeBlock.svelte +8 -12
- package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +1 -0
- package/dist/components/codeBlock/docs.props.js +3 -1
- package/dist/components/codeBlock/props.d.ts +1 -1
- package/dist/components/dialog/QDialog.svelte +38 -47
- package/dist/components/dialog/QDialog.svelte.d.ts +6 -5
- package/dist/components/dialog/docs.d.ts +1 -1
- package/dist/components/dialog/docs.js +1 -1
- package/dist/components/dialog/docs.props.js +6 -4
- package/dist/components/dialog/index.scss +5 -4
- package/dist/components/dialog/props.d.ts +4 -4
- package/dist/components/drawer/QDrawer.svelte +1 -4
- package/dist/components/drawer/QDrawer.svelte.d.ts +0 -7
- package/dist/components/drawer/docs.d.ts +1 -1
- package/dist/components/drawer/docs.js +1 -1
- package/dist/components/drawer/docs.props.js +2 -0
- package/dist/components/footer/QFooter.svelte +7 -5
- package/dist/components/footer/docs.d.ts +1 -1
- package/dist/components/footer/docs.js +1 -1
- package/dist/components/footer/docs.props.js +2 -0
- package/dist/components/header/docs.props.js +2 -0
- package/dist/components/icon/QIcon.svelte +9 -16
- package/dist/components/icon/QIcon.svelte.d.ts +0 -1
- package/dist/components/icon/docs.d.ts +1 -1
- package/dist/components/icon/docs.js +1 -1
- package/dist/components/icon/docs.props.js +4 -2
- package/dist/components/icon/props.d.ts +2 -2
- package/dist/components/input/docs.d.ts +1 -1
- package/dist/components/input/docs.js +1 -1
- package/dist/components/input/docs.props.js +2 -0
- package/dist/components/layout/docs.d.ts +1 -1
- package/dist/components/layout/docs.js +1 -1
- package/dist/components/layout/docs.props.js +2 -0
- package/dist/components/list/QItem.svelte +25 -25
- package/dist/components/list/QItemSection.svelte +3 -9
- package/dist/components/list/QList.svelte +13 -13
- package/dist/components/list/docs.d.ts +1 -1
- package/dist/components/list/docs.js +1 -1
- package/dist/components/list/docs.props.js +2 -0
- package/dist/components/list/props.d.ts +1 -1
- package/dist/components/list/props.js +1 -1
- package/dist/components/private/QApi.svelte +14 -7
- package/dist/components/private/QApi.svelte.d.ts +1 -1
- package/dist/components/private/QDocs.svelte +3 -13
- package/dist/components/private/QDocs.svelte.d.ts +1 -1
- package/dist/components/private/QDocsSection.svelte +6 -14
- package/dist/components/private/QDocsSection.svelte.d.ts +7 -17
- package/dist/components/progress/QCircularProgress.svelte +13 -9
- package/dist/components/progress/QLinearProgress.svelte +17 -23
- package/dist/components/progress/QLinearProgress.svelte.d.ts +0 -1
- package/dist/components/progress/docs.d.ts +1 -1
- package/dist/components/progress/docs.js +1 -1
- package/dist/components/progress/docs.props.js +2 -0
- package/dist/components/progress/index.scss +20 -3
- package/dist/components/radio/QRadio.svelte +2 -8
- package/dist/components/radio/docs.d.ts +1 -1
- package/dist/components/radio/docs.js +1 -1
- package/dist/components/radio/docs.props.js +3 -1
- package/dist/components/radio/props.d.ts +1 -1
- package/dist/components/railbar/docs.d.ts +1 -1
- package/dist/components/railbar/docs.js +1 -1
- package/dist/components/railbar/docs.props.js +2 -0
- package/dist/components/select/docs.d.ts +1 -1
- package/dist/components/select/docs.js +1 -1
- package/dist/components/select/docs.props.js +2 -0
- package/dist/components/separator/QSeparator.svelte +38 -44
- package/dist/components/separator/docs.d.ts +1 -1
- package/dist/components/separator/docs.js +1 -1
- package/dist/components/separator/docs.props.js +2 -0
- package/dist/components/table/QTable.svelte +8 -15
- package/dist/components/table/docs.d.ts +1 -1
- package/dist/components/table/docs.js +1 -1
- package/dist/components/table/docs.props.js +2 -0
- package/dist/components/tabs/QTab.svelte +2 -7
- package/dist/components/tabs/QTabs.svelte +2 -6
- package/dist/components/tabs/docs.d.ts +1 -1
- package/dist/components/tabs/docs.js +1 -1
- package/dist/components/tabs/docs.props.js +3 -1
- package/dist/components/tabs/props.js +1 -1
- package/dist/components/toggle/QToggle.svelte +7 -15
- package/dist/components/toggle/docs.d.ts +1 -1
- package/dist/components/toggle/docs.js +1 -1
- package/dist/components/toggle/docs.props.js +2 -0
- package/dist/components/toolbar/QToolbar.svelte +12 -16
- package/dist/components/toolbar/QToolbar.svelte.d.ts +0 -1
- package/dist/components/toolbar/docs.d.ts +1 -1
- package/dist/components/toolbar/docs.js +1 -1
- package/dist/components/toolbar/docs.props.js +2 -0
- package/dist/components/tooltip/QTooltip.svelte +10 -8
- package/dist/components/tooltip/docs.d.ts +1 -1
- package/dist/components/tooltip/docs.js +1 -1
- package/dist/components/tooltip/docs.props.js +2 -0
- package/dist/components/tooltip/index.scss +1 -0
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +3 -3
- package/dist/composables/{use-size.d.ts → useSize.d.ts} +1 -1
- package/dist/composables/{use-size.js → useSize.js} +1 -1
- package/dist/css/fonts.scss +16 -3
- package/dist/css/index.css +1 -1
- package/dist/css/mixins/field-mixins.scss +9 -8
- package/dist/css/mixins.scss +3 -1
- package/dist/css/ripple.scss +9 -2
- package/dist/css/shared/q-field.scss +62 -49
- package/dist/css/theme/colors.module.scss +12 -12
- package/dist/global.d.ts +1 -1
- package/dist/helpers/clickOutside.d.ts +2 -2
- package/dist/helpers/clickOutside.js +3 -3
- package/dist/helpers/ripple.js +13 -11
- package/dist/helpers/version.d.ts +1 -1
- package/dist/helpers/version.js +1 -1
- package/dist/stores/QTheme.js +5 -6
- package/dist/stores/Quaff.js +1 -1
- package/dist/utils/clipboard.js +2 -2
- package/dist/utils/colors.js +2 -1
- package/dist/utils/dom.js +4 -4
- package/dist/utils/props.d.ts +2 -2
- package/dist/utils/props.js +5 -5
- package/dist/utils/string.js +1 -1
- package/dist/utils/types.d.ts +2 -2
- package/dist/utils/types.json +24 -1
- package/dist/utils/watchable.js +1 -1
- package/package.json +7 -7
- /package/dist/composables/{use-align.d.ts → useAlign.d.ts} +0 -0
- /package/dist/composables/{use-align.js → useAlign.js} +0 -0
- /package/dist/composables/{use-router-link.d.ts → useRouterLink.d.ts} +0 -0
- /package/dist/composables/{use-router-link.js → useRouterLink.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UseRouterLinkProps } from "../../composables/
|
|
1
|
+
import type { UseRouterLinkProps } from "../../composables/useRouterLink";
|
|
2
2
|
import type { QSeparatorProps } from "../separator/props";
|
|
3
3
|
import type { HTMLAnchorAttributes, HTMLAttributes } from "svelte/elements";
|
|
4
4
|
import type { NativeProps } from "../../utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NativePropsDefaults } from "../../utils";
|
|
2
|
-
import { UseRouterLinkPropsDefaults } from "../../composables/
|
|
2
|
+
import { UseRouterLinkPropsDefaults } from "../../composables/useRouterLink";
|
|
3
3
|
export const QListPropsDefaults = {
|
|
4
4
|
bordered: false,
|
|
5
5
|
roundedBorders: false,
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
} from "../..";
|
|
13
13
|
import { capitalize } from "../../utils";
|
|
14
14
|
import Types from "../../utils/types.json";
|
|
15
|
-
export let
|
|
16
|
-
let api =
|
|
15
|
+
export let componentDocs;
|
|
16
|
+
let api = componentDocs.map(() => "props");
|
|
17
17
|
let drawer = Object.fromEntries(
|
|
18
|
-
|
|
18
|
+
componentDocs.map((doc) => [
|
|
19
19
|
doc.name,
|
|
20
20
|
Object.fromEntries(
|
|
21
21
|
doc.docs.props.map((prop) => [prop.name, prop.clickableType ? false : void 0])
|
|
@@ -53,7 +53,7 @@ function handleDrawer(QDocument, doc, e) {
|
|
|
53
53
|
}
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
|
-
{#each
|
|
56
|
+
{#each componentDocs as QDocument, index}
|
|
57
57
|
<QCard class="q-px-none q-pb-none q-mt-lg">
|
|
58
58
|
<div slot="title" class="flex justify-between items-center q-px-md">
|
|
59
59
|
<h5 class="no-margin">
|
|
@@ -92,7 +92,7 @@ function handleDrawer(QDocument, doc, e) {
|
|
|
92
92
|
{#if isProp(doc, index)}
|
|
93
93
|
{doc.optional ? "?" : ""}
|
|
94
94
|
{#if doc.clickableType === true}
|
|
95
|
-
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
95
|
+
<!-- svelte-ignore a11y-click-events-have-key-events a11y-no-static-element-interactions -->
|
|
96
96
|
<span
|
|
97
97
|
class="prop-type clickable"
|
|
98
98
|
on:click={(e) => isProp(doc, index) && handleDrawer(QDocument, doc, e)}
|
|
@@ -113,6 +113,7 @@ function handleDrawer(QDocument, doc, e) {
|
|
|
113
113
|
</span>
|
|
114
114
|
</div>
|
|
115
115
|
<div slot="line1" class="q-mt-sm prop-description" style="white-space: normal;">
|
|
116
|
+
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
116
117
|
{@html doc.description}
|
|
117
118
|
</div>
|
|
118
119
|
</QItemSection>
|
|
@@ -130,8 +131,14 @@ function handleDrawer(QDocument, doc, e) {
|
|
|
130
131
|
color: var(--primary);
|
|
131
132
|
}
|
|
132
133
|
|
|
133
|
-
.
|
|
134
|
-
|
|
134
|
+
.prop-type {
|
|
135
|
+
opacity: 0.75;
|
|
136
|
+
}
|
|
137
|
+
.prop-type.clickable {
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
}
|
|
140
|
+
.prop-type.clickable:hover {
|
|
141
|
+
opacity: 1;
|
|
135
142
|
}
|
|
136
143
|
|
|
137
144
|
:global(.q-drawer.api-drawer pre) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>import { Quaff } from "../../stores";
|
|
2
2
|
import { QCard, QCardSection } from "../..";
|
|
3
3
|
import QApi from "./QApi.svelte";
|
|
4
|
-
export let
|
|
4
|
+
export let componentDocs;
|
|
5
5
|
$:
|
|
6
6
|
isDark = $Quaff.dark.isActive;
|
|
7
|
-
let principalDocument = Array.isArray(
|
|
7
|
+
let principalDocument = Array.isArray(componentDocs) ? componentDocs[0] : componentDocs;
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<div class="q-docs" style="margin: 1rem">
|
|
@@ -39,7 +39,7 @@ let principalDocument = Array.isArray(QComponentDocs) ? QComponentDocs[0] : QCom
|
|
|
39
39
|
</QCard>
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
|
-
<QApi
|
|
42
|
+
<QApi componentDocs={Array.isArray(componentDocs) ? componentDocs : [componentDocs]} />
|
|
43
43
|
|
|
44
44
|
{#if $$slots.usage}
|
|
45
45
|
<div class="s12 q-pa-md">
|
|
@@ -78,16 +78,6 @@ let principalDocument = Array.isArray(QComponentDocs) ? QComponentDocs[0] : QCom
|
|
|
78
78
|
font-size: 1.75rem;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.prop-type {
|
|
82
|
-
opacity: 0.75;
|
|
83
|
-
}
|
|
84
|
-
.prop-type.clickable {
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
.prop-type.clickable:hover {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
81
|
.heading-usage {
|
|
92
82
|
display: flex;
|
|
93
83
|
align-items: center;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { QComponentDocs } from "../../utils";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
|
|
5
|
+
componentDocs: QComponentDocs | QComponentDocs[];
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export let title, snippets;
|
|
5
|
-
|
|
6
|
-
let dialog = false;
|
|
1
|
+
<script>import { QCodeBlock, QDialog } from "../..";
|
|
2
|
+
export let title, snippets = void 0;
|
|
3
|
+
let dialog = false;
|
|
7
4
|
</script>
|
|
8
5
|
|
|
9
6
|
<div style="margin-bottom:48px">
|
|
@@ -13,8 +10,9 @@
|
|
|
13
10
|
<QDialog
|
|
14
11
|
class="snippet-dialog"
|
|
15
12
|
bind:value={dialog}
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
button
|
|
14
|
+
buttonProps={{ outline: true, round: true, icon: "code" }}
|
|
15
|
+
on:buttonClick={() => (dialog = true)}
|
|
18
16
|
modal
|
|
19
17
|
>
|
|
20
18
|
<QCodeBlock code={snippets[title]} language="svelte" {title} copiable />
|
|
@@ -23,9 +21,3 @@
|
|
|
23
21
|
</div>
|
|
24
22
|
<slot />
|
|
25
23
|
</div>
|
|
26
|
-
|
|
27
|
-
<style>
|
|
28
|
-
pre {
|
|
29
|
-
max-height: 400px;
|
|
30
|
-
}
|
|
31
|
-
</style>
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} QDocsSectionProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} QDocsSectionEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} QDocsSectionSlots */
|
|
4
|
-
export default class QDocsSection extends SvelteComponent<{
|
|
5
|
-
title: any;
|
|
6
|
-
snippets: any;
|
|
7
|
-
}, {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
}, {
|
|
10
|
-
default: {};
|
|
11
|
-
}> {
|
|
12
|
-
}
|
|
13
|
-
export type QDocsSectionProps = typeof __propDef.props;
|
|
14
|
-
export type QDocsSectionEvents = typeof __propDef.events;
|
|
15
|
-
export type QDocsSectionSlots = typeof __propDef.slots;
|
|
16
1
|
import { SvelteComponent } from "svelte";
|
|
17
2
|
declare const __propDef: {
|
|
18
3
|
props: {
|
|
19
|
-
title:
|
|
20
|
-
snippets
|
|
4
|
+
title: string;
|
|
5
|
+
snippets?: Record<string, string> | undefined;
|
|
21
6
|
};
|
|
22
7
|
events: {
|
|
23
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -26,4 +11,9 @@ declare const __propDef: {
|
|
|
26
11
|
default: {};
|
|
27
12
|
};
|
|
28
13
|
};
|
|
14
|
+
export type QDocsSectionProps = typeof __propDef.props;
|
|
15
|
+
export type QDocsSectionEvents = typeof __propDef.events;
|
|
16
|
+
export type QDocsSectionSlots = typeof __propDef.slots;
|
|
17
|
+
export default class QDocsSection extends SvelteComponent<QDocsSectionProps, QDocsSectionEvents, QDocsSectionSlots> {
|
|
18
|
+
}
|
|
29
19
|
export {};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
<script>import { useSize } from "../../composables";
|
|
2
|
-
|
|
3
|
-
export let value = 0, indeterminate = false, size = "2em", color = void 0, thickness = 5, userClasses = void 0;
|
|
2
|
+
export let value = 0, indeterminate = false, size = "2rem", color = void 0, thickness = 5, userClasses = void 0;
|
|
4
3
|
export { userClasses as class };
|
|
5
4
|
$:
|
|
6
5
|
spinnerSize = useSize(size);
|
|
6
|
+
const circumference = 2 * Math.PI * 20;
|
|
7
7
|
$:
|
|
8
|
-
|
|
9
|
-
component: "q-circular-progress",
|
|
10
|
-
quaffClasses: [color && `text-${color}`],
|
|
11
|
-
userClasses
|
|
12
|
-
});
|
|
8
|
+
progressOffset = (100 - value) / 100 * circumference;
|
|
13
9
|
</script>
|
|
14
10
|
|
|
15
11
|
<svg
|
|
16
|
-
class={
|
|
12
|
+
class="q-circular-progress {color ? `text-${color}` : ''} {userClasses}"
|
|
13
|
+
class:q-circular-progress--indeterminate={indeterminate}
|
|
17
14
|
height={spinnerSize.style}
|
|
18
15
|
width={spinnerSize.style}
|
|
19
16
|
viewBox="25 25 50 50"
|
|
17
|
+
style="transform: rotate3d(0, 0, 1, -90deg);"
|
|
18
|
+
role="progressbar"
|
|
19
|
+
aria-valuenow={value}
|
|
20
|
+
aria-valuemin={0}
|
|
21
|
+
aria-valuemax={100}
|
|
20
22
|
{...$$restProps}
|
|
21
23
|
>
|
|
22
24
|
<circle
|
|
23
|
-
class="
|
|
25
|
+
class="q-circular-progress__path"
|
|
24
26
|
cx="50"
|
|
25
27
|
cy="50"
|
|
26
28
|
r="20"
|
|
@@ -28,5 +30,7 @@ $:
|
|
|
28
30
|
stroke="currentColor"
|
|
29
31
|
stroke-width={thickness}
|
|
30
32
|
stroke-miterlimit="10"
|
|
33
|
+
stroke-dasharray={circumference}
|
|
34
|
+
stroke-dashoffset={progressOffset}
|
|
31
35
|
/>
|
|
32
36
|
</svg>
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export
|
|
3
|
-
export { userClasses as class, userStyles as style };
|
|
4
|
-
$:
|
|
5
|
-
roundedStyle = {
|
|
6
|
-
borderRadius: rounded ? "12px" : "0"
|
|
7
|
-
};
|
|
8
|
-
$:
|
|
9
|
-
containerClasses = createClasses(["small-space", "border"], {
|
|
10
|
-
component: "q-linear-progress",
|
|
11
|
-
userClasses
|
|
12
|
-
});
|
|
13
|
-
$:
|
|
14
|
-
progressClasses = createClasses([from], {
|
|
15
|
-
component: "q-linear-progress",
|
|
16
|
-
element: "progress"
|
|
17
|
-
});
|
|
18
|
-
$:
|
|
19
|
-
containerStyle = createStyles(roundedStyle, userStyles);
|
|
20
|
-
$:
|
|
21
|
-
progressStyle = from === "right" ? `clip-path: polygon(100% 0%, 100% 100%, ${100 - value}% 100%, ${100 - value}% 0%);` : `clip-path: polygon(0% 0%, 0% 100%, ${value}% 100%, ${value}% 0%);`;
|
|
1
|
+
<script>export let value = 0, from = "left", rounded = false, userClasses = "";
|
|
2
|
+
export { userClasses as class };
|
|
22
3
|
</script>
|
|
23
4
|
|
|
24
|
-
<div
|
|
25
|
-
|
|
5
|
+
<div
|
|
6
|
+
class="q-linear-progress {userClasses}"
|
|
7
|
+
class:q-linear-progress--rounded={rounded}
|
|
8
|
+
class:q-linear-progress--right={from === "right"}
|
|
9
|
+
role="progressbar"
|
|
10
|
+
aria-valuenow={value}
|
|
11
|
+
aria-valuemin={0}
|
|
12
|
+
aria-valuemax={100}
|
|
13
|
+
{...$$restProps}
|
|
14
|
+
>
|
|
15
|
+
<div
|
|
16
|
+
class="q-linear-progress__progress"
|
|
17
|
+
class:q-linear-progress__progress--right={from === "right"}
|
|
18
|
+
style="--progress:{value}%"
|
|
19
|
+
/>
|
|
26
20
|
</div>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { QComponentDocs } from "../../utils";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const QProgressDocs: QComponentDocs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QLinearProgressDocsProps } from "./docs.props";
|
|
2
|
-
export
|
|
2
|
+
export const QProgressDocs = {
|
|
3
3
|
name: "QProgress",
|
|
4
4
|
description: "The QProgress component is used to display a progress bar, indicating the completion status of a task or process.",
|
|
5
5
|
docs: {
|
|
@@ -3,15 +3,28 @@
|
|
|
3
3
|
height: 1rem;
|
|
4
4
|
@include border;
|
|
5
5
|
|
|
6
|
+
&--rounded {
|
|
7
|
+
border-radius: 0.75rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
&__progress {
|
|
7
11
|
position: absolute;
|
|
8
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--primary);
|
|
9
13
|
top: 0;
|
|
10
14
|
bottom: 0;
|
|
11
15
|
left: 0;
|
|
12
16
|
right: 0;
|
|
13
17
|
transition: var(--speed4) clip-path;
|
|
14
|
-
clip-path: polygon(0% 0%, 0%
|
|
18
|
+
clip-path: polygon(0% 0%, 0% 100%, var(--progress) 100%, var(--progress) 0%);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--right &__progress {
|
|
22
|
+
clip-path: polygon(
|
|
23
|
+
100% 0%,
|
|
24
|
+
100% 100%,
|
|
25
|
+
calc(100% - var(--progress)) 100%,
|
|
26
|
+
calc(100% - var(--progress)) 0%
|
|
27
|
+
);
|
|
15
28
|
}
|
|
16
29
|
}
|
|
17
30
|
|
|
@@ -19,11 +32,15 @@
|
|
|
19
32
|
.q-circular-progress {
|
|
20
33
|
vertical-align: middle;
|
|
21
34
|
|
|
35
|
+
.q-circular-progress__path {
|
|
36
|
+
transition: stroke-dashoffset 0.3s ease;
|
|
37
|
+
}
|
|
38
|
+
|
|
22
39
|
&--indeterminate {
|
|
23
40
|
animation: q-spin 2s linear infinite;
|
|
24
41
|
transform-origin: center center;
|
|
25
42
|
|
|
26
|
-
|
|
43
|
+
.q-circular-progress__path {
|
|
27
44
|
stroke-dasharray: 1, 200;
|
|
28
45
|
stroke-dashoffset: 0;
|
|
29
46
|
animation: q-load 1.5s ease-in-out infinite;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let value = "", label = "", selected = void 0, disable = false, userClasses = "";
|
|
1
|
+
<script>export let value = "", label = "", selected = void 0, disable = false, userClasses = "";
|
|
3
2
|
export { userClasses as class };
|
|
4
|
-
$:
|
|
5
|
-
classes = createClasses([disable && "disabled"], {
|
|
6
|
-
component: "q-radio",
|
|
7
|
-
userClasses
|
|
8
|
-
});
|
|
9
3
|
</script>
|
|
10
4
|
|
|
11
|
-
<label class={
|
|
5
|
+
<label class="q-radio {userClasses}" class:q-radio--disabled={disable} {...$$restProps}>
|
|
12
6
|
<input type="radio" bind:group={selected} {value} disabled={disable} />
|
|
13
7
|
<span>{label}</span>
|
|
14
8
|
</label>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { QComponentDocs } from "../../utils";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const QRadioDocs: QComponentDocs;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
|
|
2
|
+
// @quaffHash 023f166466a04ae52838fa2fcbf5b5f9
|
|
1
3
|
export const QRadioDocsProps = [
|
|
2
4
|
{
|
|
3
5
|
name: "value",
|
|
@@ -17,7 +19,7 @@ export const QRadioDocsProps = [
|
|
|
17
19
|
},
|
|
18
20
|
{
|
|
19
21
|
name: "selected",
|
|
20
|
-
type: "
|
|
22
|
+
type: "unknown",
|
|
21
23
|
optional: true,
|
|
22
24
|
clickableType: false,
|
|
23
25
|
description: "",
|
|
@@ -3,7 +3,7 @@ import type { NativeProps } from "../../utils";
|
|
|
3
3
|
export interface QRadioProps extends NativeProps, HTMLAttributes<HTMLLabelElement> {
|
|
4
4
|
value: string;
|
|
5
5
|
label?: string;
|
|
6
|
-
selected?:
|
|
6
|
+
selected?: unknown;
|
|
7
7
|
disable?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const QRadioPropsDefaults: QRadioProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { QComponentDocs } from "../../utils";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const QRailbarDocs: QComponentDocs;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { QComponentDocs } from "../../utils";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const QSelectDocs: QComponentDocs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const QSelectDocs = {
|
|
2
2
|
name: "QSelect",
|
|
3
3
|
description: "QSelect is a form component that allows users to choose from multiple options in a dropdown list. It supports single and multiple selection, as well as different visual styles such as filled, outlined, and rounded.",
|
|
4
4
|
docs: {
|
|
@@ -1,58 +1,52 @@
|
|
|
1
1
|
<script>import { useSize } from "../../composables";
|
|
2
|
-
|
|
3
|
-
export let spacing = "none", inset = false, vertical = false, color = void 0, size = void 0, text = void 0, textAlign = vertical === true ? "middle" : "center", userClasses = void 0;
|
|
2
|
+
export let spacing = "none", inset = false, vertical = false, color = void 0, size = void 0, text = void 0, textAlign = vertical ? "middle" : "center", userClasses = void 0;
|
|
4
3
|
export { userClasses as class };
|
|
5
4
|
let orientation;
|
|
6
5
|
$:
|
|
7
6
|
orientation = vertical ? "vertical" : "horizontal";
|
|
8
7
|
$:
|
|
9
|
-
spacingClass = useSize(spacing).class;
|
|
8
|
+
spacingClass = useSize(spacing).class || "";
|
|
10
9
|
$:
|
|
11
|
-
|
|
12
|
-
vertical && "vertical",
|
|
13
|
-
`spacing-${spacingClass}`
|
|
14
|
-
], {
|
|
15
|
-
component: "q-separator",
|
|
16
|
-
quaffClasses: [
|
|
17
|
-
color && `bg-${color}`
|
|
18
|
-
]
|
|
19
|
-
});
|
|
10
|
+
colorClass = color ? `bg-${color}` : "";
|
|
20
11
|
</script>
|
|
21
12
|
|
|
22
13
|
{#if text}
|
|
23
|
-
<div
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
14
|
+
<div
|
|
15
|
+
class="q-separator__wrapper {userClasses || ''}"
|
|
16
|
+
class:q-separator--vertical__wrapper={vertical}
|
|
17
|
+
class:q-separator--inset__wrapper={inset}
|
|
18
|
+
{...$$restProps}
|
|
19
|
+
>
|
|
20
|
+
{#if (vertical && textAlign !== "top") || (!vertical && textAlign !== "left")}
|
|
21
|
+
<hr
|
|
22
|
+
class="q-separator {spacingClass} {colorClass}"
|
|
23
|
+
class:q-separator--vertical={vertical}
|
|
24
|
+
style:--q-separator--size={size}
|
|
25
|
+
aria-orientation={orientation}
|
|
26
|
+
/>
|
|
27
|
+
{/if}
|
|
28
|
+
<div class={vertical ? "q-py-sm" : "q-px-sm"}>{text}</div>
|
|
29
|
+
{#if (vertical && textAlign !== "bottom") || (!vertical && textAlign !== "right")}
|
|
30
|
+
<hr
|
|
31
|
+
class="q-separator {spacingClass} {colorClass}"
|
|
32
|
+
class:q-separator--vertical={vertical}
|
|
33
|
+
style:--q-separator--size={size}
|
|
34
|
+
aria-orientation={orientation}
|
|
35
|
+
/>
|
|
36
|
+
{/if}
|
|
37
|
+
</div>
|
|
38
|
+
{:else}
|
|
39
|
+
<div
|
|
40
|
+
class="q-separator__wrapper {userClasses || ''}"
|
|
41
|
+
class:q-separator--vertical__wrapper={vertical}
|
|
42
|
+
class:q-separator--inset__wrapper={inset}
|
|
43
|
+
{...$$restProps}
|
|
44
|
+
>
|
|
38
45
|
<hr
|
|
39
|
-
class={
|
|
46
|
+
class="q-separator {spacingClass} {colorClass}"
|
|
47
|
+
class:q-separator--vertical={vertical}
|
|
40
48
|
style:--q-separator--size={size}
|
|
41
49
|
aria-orientation={orientation}
|
|
42
50
|
/>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{:else}
|
|
46
|
-
<div
|
|
47
|
-
class="q-separator__wrapper {userClasses || ''}"
|
|
48
|
-
class:q-separator--vertical__wrapper={vertical}
|
|
49
|
-
class:q-separator--inset__wrapper={inset}
|
|
50
|
-
{...$$restProps}
|
|
51
|
-
>
|
|
52
|
-
<hr
|
|
53
|
-
class={classes}
|
|
54
|
-
style:--q-separator--size={size}
|
|
55
|
-
aria-orientation={orientation}
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
{/if}
|
|
51
|
+
</div>
|
|
52
|
+
{/if}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { QComponentDocs } from "../../utils";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const QSeparatorDocs: QComponentDocs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QSeparatorPropsVertical } from "./docs.props";
|
|
2
|
-
export
|
|
2
|
+
export const QSeparatorDocs = {
|
|
3
3
|
name: "QSeparator",
|
|
4
4
|
description: "Separators can be used to create a dividing line or space between elements within a layout, offering visual separation and organization.",
|
|
5
5
|
docs: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { QIcon, QSelect, QBtn } from "../..";
|
|
1
|
+
<script>import { QIcon, QSelect, QBtn } from "../..";
|
|
3
2
|
export let columns = [], rows = [], flat = void 0, bordered = void 0, dense = false, userClasses = "";
|
|
4
3
|
export { userClasses as class };
|
|
5
4
|
function getField(fieldRaw, row) {
|
|
@@ -11,17 +10,6 @@ let rowsPerPageOptions = [5, 10, 25, 50].map((e) => ({
|
|
|
11
10
|
label: e.toString(),
|
|
12
11
|
value: e.toString()
|
|
13
12
|
}));
|
|
14
|
-
$:
|
|
15
|
-
classes = createClasses([], {
|
|
16
|
-
component: "q-table",
|
|
17
|
-
userClasses
|
|
18
|
-
});
|
|
19
|
-
$:
|
|
20
|
-
classesTable = createClasses([flat && "flat", bordered && "bordered", dense && "dense"], {
|
|
21
|
-
component: "q-table",
|
|
22
|
-
element: "table",
|
|
23
|
-
userClasses
|
|
24
|
-
});
|
|
25
13
|
let sort = null;
|
|
26
14
|
let rowsSorted = rows;
|
|
27
15
|
let rowsPaginated = [];
|
|
@@ -86,8 +74,13 @@ function setSort(column) {
|
|
|
86
74
|
}
|
|
87
75
|
</script>
|
|
88
76
|
|
|
89
|
-
<div class=
|
|
90
|
-
<table
|
|
77
|
+
<div class="q-table" {...$$restProps}>
|
|
78
|
+
<table
|
|
79
|
+
class="q-table__table {userClasses}"
|
|
80
|
+
class:q-table--flat={flat}
|
|
81
|
+
class:q-table--bordered={bordered}
|
|
82
|
+
class:q-table--dense={dense}
|
|
83
|
+
>
|
|
91
84
|
<thead>
|
|
92
85
|
<tr>
|
|
93
86
|
{#each columns as column}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { QComponentDocs } from "../../utils";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const QTableDocs: QComponentDocs;
|