Skip to content
Merged

Dev #14

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/documentation/DocsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,24 @@ const componentVersion = ref(packageInfo.version);
provide('classes', classes);
</script>

<style lang="scss" scoped>
:deep(code) {
&.ic {
background-color: rgba(255, 255, 255, 0.1) !important;
border-radius: 3px;
font-size: 85%;
font-weight: normal;
padding: 0.2em 0.4em;
}
}
</style>

<style lang="scss">
.v-theme--light {
code {
&.ic {
background-color: rgba(0, 0, 0, 0.1) !important;
}
}
}
</style>
4 changes: 2 additions & 2 deletions src/documentation/components/CheckboxComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<VInlineCheckbox
v-model="values.boolean"
:density="density"
do-not-save
hide-details
:loading-wait="false"
/>
</v-col>

Expand All @@ -52,7 +52,7 @@
:items="propsStore.vInlineCheckboxProps"
section-id="inline-checkbox-props"
section-title="Props"
subtitle="These are all props for the <code>VInlineCheckbox</code> component"
subtitle="These are all props for the <code class='ic'>VInlineCheckbox</code> component"
/>
</v-col>
</template>
Expand Down
13 changes: 5 additions & 8 deletions src/documentation/components/SelectComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
v-model="values.select"
align-items="flex-end"
:density="density"
do-not-save
item-title="state"
item-value="abbr"
:items="items"
:loading-wait="false"
return-object
:table-field="false"
:variant="variant"
>
Expand Down Expand Up @@ -64,7 +65,7 @@
:items="propsStore.vInlineSelectProps"
section-id="inline-select-props"
section-title="Props"
subtitle="These are all props for the <code>VInlineSelect</code> component"
subtitle="These are all props for the <code class='ic'>VInlineSelect</code> component"
/>
</v-col>
</template>
Expand All @@ -83,17 +84,13 @@ const variant = ref('underlined');
const values = reactive({
boolean: true,
select: {
abbr: 'FL',
state: 'Florida',
abbr: 'CA',
state: 'California',
},
textField: 'Hello World',
});

const items = reactive([
{
abbr: 'FL',
state: 'Florida',
},
{
abbr: 'GA',
state: 'Georgia',
Expand Down
4 changes: 2 additions & 2 deletions src/documentation/components/SwitchComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<VInlineSwitch
v-model="values.boolean"
:density="density"
do-not-save
hide-details
:loading-wait="false"
/>
</v-col>

Expand All @@ -51,7 +51,7 @@
:items="propsStore.vInlineSwitchProps"
section-id="inline-switch-props"
section-title="Props"
subtitle="These are all props for the <code>VInlineSwitch</code> component"
subtitle="These are all props for the <code class='ic'>VInlineSwitch</code> component"
/>
</v-col>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/documentation/components/TextFieldComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
v-model="values.textField"
align-items="flex-end"
:density="density"
do-not-save
:loading-wait="false"
:table-field="false"
:variant="variant"
></VInlineTextField>
Expand Down
4 changes: 2 additions & 2 deletions src/documentation/components/TextareaComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
v-model="values.textField"
align-items="flex-start"
:density="density"
do-not-save
:loading-wait="false"
rows="1"
:table-field="true"
:variant="variant"
Expand Down Expand Up @@ -55,7 +55,7 @@
:items="propsStore.vInlineTextareaProps"
section-id="inline-textarea-props"
section-title="Props"
subtitle="These are all props for the <code>VInlineTextarea</code> component"
subtitle="These are all props for the <code class='ic'>VInlineTextarea</code> component"
/>
</v-col>
</template>
Expand Down
19 changes: 0 additions & 19 deletions src/documentation/sections/ComponentsSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,6 @@ const store = useCoreStore();
</script>

<style lang="scss" scoped>
:deep(code) {
background-color: rgba(255, 255, 255, 0.1) !important;
border-radius: 3px;
font-size: 85%;
font-weight: normal;
padding: 0.2em 0.4em;
}

:deep(.v-theme--light) {
code {
background-color: rgba(0, 0, 0, 0.1) !important;
}
}

:deep(.v-input__details) {
max-height: 10px;
min-height: 10px;
}

.switch-label {
:deep(.v-label) {
opacity: 1 !important;
Expand Down
4 changes: 2 additions & 2 deletions src/documentation/sections/PropsSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
:items="propsStore.saveAndLoadingIconProps"
section-id="props-save-and-loading-icon"
section-title="Save &amp; Loading Props"
subtitle="These are all props for the for the <code>VInlineSelect</code>, <code>VInlineTextarea</code>, and <code>VInlineTextField</code> components"
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"
/>

<PropsTable
:headers="propsStore.propsSupported.headers"
:items="propsStore.trueFalseIconProps"
section-id="props-true-false-icon"
section-title="True/False Icon Props"
subtitle="These are all props for the for the <code>VInlineCheckbox</code> and <code>VInlineSwitch</code> components"
subtitle="These are all props for the for the <code class='ic'>VInlineCheckbox</code> and <code class='ic'>VInlineSwitch</code> components"
/>
</v-col>
</v-row>
Expand Down
13 changes: 12 additions & 1 deletion src/playground/configs/templates/PlaygroundPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
:item="item"
:label="componentOptions.label"
:loading="item.raw.loading"
:loading-wait="componentOptions.loadingWait"
name="active"
:underline-color="componentOptions.underlineColor"
:underline-style="componentOptions.underlineStyle"
Expand All @@ -48,6 +49,7 @@
:cancel-button-variant="componentOptions.cancelButtonVariant"
:cancel-icon-color="componentOptions.cancelIconColor"
:cancel-icon-text="componentOptions.cancelIconText"
:clearable="componentOptions.clearable"
:close-siblings="componentOptions.closeSiblings"
:color="componentOptions.color"
:density="componentOptions.density"
Expand All @@ -62,9 +64,10 @@
:items="users"
:label="componentOptions.label"
:loading="item.raw.loading"
:loading-wait="componentOptions.loadingWait"
:menu="componentOptions.menu"
name="userId"
:return-object="true"
return-object
:save-button-color="componentOptions.saveButtonColor"
:save-icon="componentOptions.saveIcon"
:save-icon-color="componentOptions.saveIconColor"
Expand Down Expand Up @@ -97,9 +100,11 @@
:item="item"
:label="componentOptions.label"
:loading="item.raw.loading"
:loading-wait="componentOptions.loadingWait"
name="title"
required
:save-button-color="componentOptions.saveButtonColor"
:save-button-variant="componentOptions.saveButtonVariant"
:save-icon-color="componentOptions.saveIconColor"
:save-icon-text="componentOptions.saveIconText"
:truncate-length="componentOptions.truncateTextFieldLength"
Expand Down Expand Up @@ -130,6 +135,7 @@
:item="item"
:label="componentOptions.label"
:loading="item.raw.loading"
:loading-wait="componentOptions.loadingWait"
name="body"
:rules="[componentOptions.rules.required, componentOptions.rules.minLength]"
:save-button-color="componentOptions.saveButtonColor"
Expand Down Expand Up @@ -162,6 +168,8 @@
:icon-false-title="componentOptions.iconFalseTitle"
:icon-true-title="componentOptions.iconTrueTitle"
:item="item"
:loading="item.raw.loading"
:loading-wait="componentOptions.loadingWait"
name="reviewed"
:underline-color="componentOptions.underlineColor"
:underline-style="componentOptions.underlineStyle"
Expand Down Expand Up @@ -208,6 +216,7 @@ const componentOptions = reactive({
cancelIcon: undefined,
cancelIconColor: 'default',
cancelIconText: 'Cancel',
clearable: false,
closeSiblings: true,
color: 'primary',
density: 'compact',
Expand All @@ -221,6 +230,7 @@ const componentOptions = reactive({
iconTrue: undefined,
iconTrueTitle: undefined,
label: '',
loadingWait: true,
menu: true,
rules: {
minLength(value) {
Expand All @@ -229,6 +239,7 @@ const componentOptions = reactive({
required: value => !!value || 'Field is required',
},
saveButtonColor: 'default',
saveButtonVariant: 'text',
saveIcon: undefined,
saveIconColor: 'primary',
saveIconText: 'Save',
Expand Down
Loading