Skip to content

Commit fd0cbe6

Browse files
Merge pull request #14 from webdevnerdstuff/dev
Dev
2 parents e479ed2 + 055ca55 commit fd0cbe6

19 files changed

+237
-173
lines changed

src/documentation/DocsPage.vue

+19
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,24 @@ const componentVersion = ref(packageInfo.version);
131131
provide('classes', classes);
132132
</script>
133133

134+
<style lang="scss" scoped>
135+
:deep(code) {
136+
&.ic {
137+
background-color: rgba(255, 255, 255, 0.1) !important;
138+
border-radius: 3px;
139+
font-size: 85%;
140+
font-weight: normal;
141+
padding: 0.2em 0.4em;
142+
}
143+
}
144+
</style>
145+
134146
<style lang="scss">
147+
.v-theme--light {
148+
code {
149+
&.ic {
150+
background-color: rgba(0, 0, 0, 0.1) !important;
151+
}
152+
}
153+
}
135154
</style>

src/documentation/components/CheckboxComponent.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<VInlineCheckbox
2626
v-model="values.boolean"
2727
:density="density"
28-
do-not-save
2928
hide-details
29+
:loading-wait="false"
3030
/>
3131
</v-col>
3232

@@ -52,7 +52,7 @@
5252
:items="propsStore.vInlineCheckboxProps"
5353
section-id="inline-checkbox-props"
5454
section-title="Props"
55-
subtitle="These are all props for the <code>VInlineCheckbox</code> component"
55+
subtitle="These are all props for the <code class='ic'>VInlineCheckbox</code> component"
5656
/>
5757
</v-col>
5858
</template>

src/documentation/components/SelectComponent.vue

+5-8
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
v-model="values.select"
2727
align-items="flex-end"
2828
:density="density"
29-
do-not-save
3029
item-title="state"
3130
item-value="abbr"
3231
:items="items"
32+
:loading-wait="false"
33+
return-object
3334
:table-field="false"
3435
:variant="variant"
3536
>
@@ -64,7 +65,7 @@
6465
:items="propsStore.vInlineSelectProps"
6566
section-id="inline-select-props"
6667
section-title="Props"
67-
subtitle="These are all props for the <code>VInlineSelect</code> component"
68+
subtitle="These are all props for the <code class='ic'>VInlineSelect</code> component"
6869
/>
6970
</v-col>
7071
</template>
@@ -83,17 +84,13 @@ const variant = ref('underlined');
8384
const values = reactive({
8485
boolean: true,
8586
select: {
86-
abbr: 'FL',
87-
state: 'Florida',
87+
abbr: 'CA',
88+
state: 'California',
8889
},
8990
textField: 'Hello World',
9091
});
9192
9293
const items = reactive([
93-
{
94-
abbr: 'FL',
95-
state: 'Florida',
96-
},
9794
{
9895
abbr: 'GA',
9996
state: 'Georgia',

src/documentation/components/SwitchComponent.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<VInlineSwitch
2626
v-model="values.boolean"
2727
:density="density"
28-
do-not-save
2928
hide-details
29+
:loading-wait="false"
3030
/>
3131
</v-col>
3232

@@ -51,7 +51,7 @@
5151
:items="propsStore.vInlineSwitchProps"
5252
section-id="inline-switch-props"
5353
section-title="Props"
54-
subtitle="These are all props for the <code>VInlineSwitch</code> component"
54+
subtitle="These are all props for the <code class='ic'>VInlineSwitch</code> component"
5555
/>
5656
</v-col>
5757
</template>

src/documentation/components/TextFieldComponent.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
v-model="values.textField"
2727
align-items="flex-end"
2828
:density="density"
29-
do-not-save
29+
:loading-wait="false"
3030
:table-field="false"
3131
:variant="variant"
3232
></VInlineTextField>

src/documentation/components/TextareaComponent.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
v-model="values.textField"
2727
align-items="flex-start"
2828
:density="density"
29-
do-not-save
29+
:loading-wait="false"
3030
rows="1"
3131
:table-field="true"
3232
:variant="variant"
@@ -55,7 +55,7 @@
5555
:items="propsStore.vInlineTextareaProps"
5656
section-id="inline-textarea-props"
5757
section-title="Props"
58-
subtitle="These are all props for the <code>VInlineTextarea</code> component"
58+
subtitle="These are all props for the <code class='ic'>VInlineTextarea</code> component"
5959
/>
6060
</v-col>
6161
</template>

src/documentation/sections/ComponentsSection.vue

-19
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,6 @@ const store = useCoreStore();
4747
</script>
4848

4949
<style lang="scss" scoped>
50-
:deep(code) {
51-
background-color: rgba(255, 255, 255, 0.1) !important;
52-
border-radius: 3px;
53-
font-size: 85%;
54-
font-weight: normal;
55-
padding: 0.2em 0.4em;
56-
}
57-
58-
:deep(.v-theme--light) {
59-
code {
60-
background-color: rgba(0, 0, 0, 0.1) !important;
61-
}
62-
}
63-
64-
:deep(.v-input__details) {
65-
max-height: 10px;
66-
min-height: 10px;
67-
}
68-
6950
.switch-label {
7051
:deep(.v-label) {
7152
opacity: 1 !important;

src/documentation/sections/PropsSection.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
:items="propsStore.saveAndLoadingIconProps"
3737
section-id="props-save-and-loading-icon"
3838
section-title="Save &amp; Loading Props"
39-
subtitle="These are all props for the for the <code>VInlineSelect</code>, <code>VInlineTextarea</code>, and <code>VInlineTextField</code> components"
39+
subtitle="These are all props for the for the <code class='ic'>VInlineSelect</code>, <code class='ic'>VInlineTextarea</code>, and <code class='ic'>VInlineTextField</code> components"
4040
/>
4141

4242
<PropsTable
4343
:headers="propsStore.propsSupported.headers"
4444
:items="propsStore.trueFalseIconProps"
4545
section-id="props-true-false-icon"
4646
section-title="True/False Icon Props"
47-
subtitle="These are all props for the for the <code>VInlineCheckbox</code> and <code>VInlineSwitch</code> components"
47+
subtitle="These are all props for the for the <code class='ic'>VInlineCheckbox</code> and <code class='ic'>VInlineSwitch</code> components"
4848
/>
4949
</v-col>
5050
</v-row>

src/playground/configs/templates/PlaygroundPage.vue

+12-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
:item="item"
3131
:label="componentOptions.label"
3232
:loading="item.raw.loading"
33+
:loading-wait="componentOptions.loadingWait"
3334
name="active"
3435
:underline-color="componentOptions.underlineColor"
3536
:underline-style="componentOptions.underlineStyle"
@@ -48,6 +49,7 @@
4849
:cancel-button-variant="componentOptions.cancelButtonVariant"
4950
:cancel-icon-color="componentOptions.cancelIconColor"
5051
:cancel-icon-text="componentOptions.cancelIconText"
52+
:clearable="componentOptions.clearable"
5153
:close-siblings="componentOptions.closeSiblings"
5254
:color="componentOptions.color"
5355
:density="componentOptions.density"
@@ -62,9 +64,10 @@
6264
:items="users"
6365
:label="componentOptions.label"
6466
:loading="item.raw.loading"
67+
:loading-wait="componentOptions.loadingWait"
6568
:menu="componentOptions.menu"
6669
name="userId"
67-
:return-object="true"
70+
return-object
6871
:save-button-color="componentOptions.saveButtonColor"
6972
:save-icon="componentOptions.saveIcon"
7073
:save-icon-color="componentOptions.saveIconColor"
@@ -97,9 +100,11 @@
97100
:item="item"
98101
:label="componentOptions.label"
99102
:loading="item.raw.loading"
103+
:loading-wait="componentOptions.loadingWait"
100104
name="title"
101105
required
102106
:save-button-color="componentOptions.saveButtonColor"
107+
:save-button-variant="componentOptions.saveButtonVariant"
103108
:save-icon-color="componentOptions.saveIconColor"
104109
:save-icon-text="componentOptions.saveIconText"
105110
:truncate-length="componentOptions.truncateTextFieldLength"
@@ -130,6 +135,7 @@
130135
:item="item"
131136
:label="componentOptions.label"
132137
:loading="item.raw.loading"
138+
:loading-wait="componentOptions.loadingWait"
133139
name="body"
134140
:rules="[componentOptions.rules.required, componentOptions.rules.minLength]"
135141
:save-button-color="componentOptions.saveButtonColor"
@@ -162,6 +168,8 @@
162168
:icon-false-title="componentOptions.iconFalseTitle"
163169
:icon-true-title="componentOptions.iconTrueTitle"
164170
:item="item"
171+
:loading="item.raw.loading"
172+
:loading-wait="componentOptions.loadingWait"
165173
name="reviewed"
166174
:underline-color="componentOptions.underlineColor"
167175
:underline-style="componentOptions.underlineStyle"
@@ -208,6 +216,7 @@ const componentOptions = reactive({
208216
cancelIcon: undefined,
209217
cancelIconColor: 'default',
210218
cancelIconText: 'Cancel',
219+
clearable: false,
211220
closeSiblings: true,
212221
color: 'primary',
213222
density: 'compact',
@@ -221,6 +230,7 @@ const componentOptions = reactive({
221230
iconTrue: undefined,
222231
iconTrueTitle: undefined,
223232
label: '',
233+
loadingWait: true,
224234
menu: true,
225235
rules: {
226236
minLength(value) {
@@ -229,6 +239,7 @@ const componentOptions = reactive({
229239
required: value => !!value || 'Field is required',
230240
},
231241
saveButtonColor: 'default',
242+
saveButtonVariant: 'text',
232243
saveIcon: undefined,
233244
saveIconColor: 'primary',
234245
saveIconText: 'Save',

0 commit comments

Comments
 (0)