From 6f3cbc12ae740a8b6dbd90c250698957da0eb249 Mon Sep 17 00:00:00 2001 From: Harmen de Vries Date: Fri, 22 Dec 2023 13:35:46 +0100 Subject: [PATCH 01/12] Add prop:readonly to textarea --- src/lib/components/LvTextarea/LvTextarea.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/lib/components/LvTextarea/LvTextarea.vue b/src/lib/components/LvTextarea/LvTextarea.vue index 9fe22eab..36a0a9d3 100644 --- a/src/lib/components/LvTextarea/LvTextarea.vue +++ b/src/lib/components/LvTextarea/LvTextarea.vue @@ -1,6 +1,13 @@ @@ -24,6 +31,10 @@ export default { type: Boolean, default: false, }, + readonly: { + type: Boolean, + default: false, + }, height: { type: String, default: 'auto', @@ -31,7 +42,7 @@ export default { minHeight: { type: String, default: '100px', - } + }, }, emits: ['update:modelValue'], computed: { @@ -46,8 +57,8 @@ export default { methods: { onChange(e) { this.$emit('update:modelValue', e.target.value); - } - } + }, + }, }; @@ -93,6 +104,5 @@ export default { } } } - } From c6c5406e154a14d920af57849d00e38bbc83e2d0 Mon Sep 17 00:00:00 2001 From: Harmen de Vries Date: Fri, 22 Dec 2023 13:35:56 +0100 Subject: [PATCH 02/12] Add overflow-x hdiden to dialogs --- src/lib/components/LvDialog/LvDialog.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/LvDialog/LvDialog.vue b/src/lib/components/LvDialog/LvDialog.vue index 1fc25dde..22802a9e 100644 --- a/src/lib/components/LvDialog/LvDialog.vue +++ b/src/lib/components/LvDialog/LvDialog.vue @@ -174,6 +174,7 @@ export default { #{$self}__content { flex-shrink: 1; overflow-y: v-bind(overflowY); + overflow-x: hidden; } #{$self}__footer { padding-top: 1rem; From a26aa4270ba718a69b00cdf451ca62415d421850 Mon Sep 17 00:00:00 2001 From: Harmen de Vries Date: Fri, 22 Dec 2023 13:36:15 +0100 Subject: [PATCH 03/12] Remove optin from docs --- src/docs/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/docs/main.js b/src/docs/main.js index cd99f0d7..ed07f164 100644 --- a/src/docs/main.js +++ b/src/docs/main.js @@ -30,9 +30,6 @@ hljs.registerLanguage('scss', scss); hljs.registerLanguage('html', xml); hljs.registerLanguage('shell', shell); -// opt-in to the new behavior now -app.config.unwrapInjectedRef = true; - // Register custom components app.component('ComponentDetails', ComponentDetails); app.component('CodePreview', CodePreview); From 14c4199d7766d304ce8a49a321a2681f08f24ba5 Mon Sep 17 00:00:00 2001 From: Harmen de Vries Date: Fri, 22 Dec 2023 13:38:29 +0100 Subject: [PATCH 04/12] Quickfilter now emits 'enter' --- src/lib/components/LvQuickFilter/LvQuickFilter.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/LvQuickFilter/LvQuickFilter.vue b/src/lib/components/LvQuickFilter/LvQuickFilter.vue index c1fdbbe6..9703cacd 100644 --- a/src/lib/components/LvQuickFilter/LvQuickFilter.vue +++ b/src/lib/components/LvQuickFilter/LvQuickFilter.vue @@ -21,6 +21,7 @@ :placeholder="placeholder" :icon="icon" type="text" + @keydown.enter="onEnter" @focus="onFocusInput" @blur="onBlurInput" /> @@ -108,7 +109,7 @@ export default { default: null, }, }, - emits: ['clear:filter', 'update:filter'], + emits: ['clear:filter', 'update:filter', 'enter'], data() { return { focused: false, @@ -231,6 +232,9 @@ export default { onBlurInput() { this.focused = false; }, + onEnter() { + this.$emit('enter'); + }, onClickClosePill(key) { this.$emit('clear:filter', key); }, From 1dc0bf4a5caff20303ffe2e64e534b2841c8edf3 Mon Sep 17 00:00:00 2001 From: Harmen de Vries Date: Fri, 22 Dec 2023 13:43:28 +0100 Subject: [PATCH 05/12] Fix styling issue in file input --- src/lib/components/LvFileInput/LvFileInput.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/LvFileInput/LvFileInput.vue b/src/lib/components/LvFileInput/LvFileInput.vue index e3c9ca5a..f9e1735e 100644 --- a/src/lib/components/LvFileInput/LvFileInput.vue +++ b/src/lib/components/LvFileInput/LvFileInput.vue @@ -188,6 +188,7 @@ export default { &__no-files { line-height: var(--line-height-small); font-size: var(--font-size-small); + height: calc(var(--font-size-small) + 1px); } &__info { margin-top: .5rem; From 7227a4b0b9cbbe097688c662105dea56d4028e2e Mon Sep 17 00:00:00 2001 From: Harmen de Vries Date: Fri, 22 Dec 2023 13:43:36 +0100 Subject: [PATCH 06/12] Make sidebar little bit bigger in docs --- src/docs/layouts/DefaultLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/layouts/DefaultLayout.vue b/src/docs/layouts/DefaultLayout.vue index 093ba959..9c98544f 100644 --- a/src/docs/layouts/DefaultLayout.vue +++ b/src/docs/layouts/DefaultLayout.vue @@ -7,7 +7,7 @@ > - +