From 75411ef6e2176c6b74fe1ee3be7d7cb79c8cc78f Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 7 May 2020 00:16:05 +0300 Subject: [PATCH] Add FormLayout demos --- src/AppMenu.vue | 3 +- src/assets/styles/primevue.css | 1 + src/components/common/Common.css | 15 +- src/components/dropdown/Dropdown.d.ts | 1 + src/components/dropdown/Dropdown.vue | 9 +- src/components/formlayout/FormLayout.css | 83 ++++++++ src/components/multiselect/MultiSelect.d.ts | 1 + src/components/multiselect/MultiSelect.vue | 5 +- src/router.js | 5 + src/views/checkbox/CheckboxDemo.vue | 2 +- src/views/dropdown/DropdownDoc.vue | 6 + src/views/formlayout/FormLayoutDemo.vue | 204 ++++++++++++++++++++ src/views/formlayout/FormLayoutDoc.vue | 99 ++++++++++ src/views/multiselect/MultiSelectDoc.vue | 6 + 14 files changed, 431 insertions(+), 9 deletions(-) create mode 100644 src/components/formlayout/FormLayout.css create mode 100644 src/views/formlayout/FormLayoutDemo.vue create mode 100644 src/views/formlayout/FormLayoutDoc.vue diff --git a/src/AppMenu.vue b/src/AppMenu.vue index c36e2c9ae..ffc8a9c58 100755 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -3,7 +3,7 @@
input - Input + Form
AutoComplete @@ -18,6 +18,7 @@ InputNumber InputSwitch InputText + FormLayout Listbox MultiSelect Password diff --git a/src/assets/styles/primevue.css b/src/assets/styles/primevue.css index ecceb3a2b..06e6e3a48 100644 --- a/src/assets/styles/primevue.css +++ b/src/assets/styles/primevue.css @@ -2,6 +2,7 @@ @import '../../components/button/Button.css'; @import '../../components/checkbox/Checkbox.css'; @import '../../components/colorpicker/ColorPicker.css'; +@import '../../components/formlayout/FormLayout.css'; @import '../../components/inputtext/InputText.css'; @import '../../components/password/Password.css'; @import '../../components/radiobutton/RadioButton.css'; diff --git a/src/components/common/Common.css b/src/components/common/Common.css index 5a2cd4fe9..4c6afc885 100755 --- a/src/components/common/Common.css +++ b/src/components/common/Common.css @@ -142,4 +142,17 @@ button { .p-toggleable-content-enter-active { overflow: hidden; transition: max-height 1s ease-in-out; -} \ No newline at end of file +} + +.p-sr-only { + border: 0; + clip: rect(1px, 1px, 1px, 1px); + clip-path: inset(50%); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + word-wrap: normal !important; + } \ No newline at end of file diff --git a/src/components/dropdown/Dropdown.d.ts b/src/components/dropdown/Dropdown.d.ts index 63e9e968a..17105ce3d 100755 --- a/src/components/dropdown/Dropdown.d.ts +++ b/src/components/dropdown/Dropdown.d.ts @@ -16,6 +16,7 @@ export declare class Dropdown extends Vue { dataKey?: string; showClear?: boolean; tabindex?: string; + inputId?: string; ariaLabelledBy?: string; appendTo?: string; $emit(eventName: 'input', value: string): this; diff --git a/src/components/dropdown/Dropdown.vue b/src/components/dropdown/Dropdown.vue index 8af8ac6f5..89821b4bf 100755 --- a/src/components/dropdown/Dropdown.vue +++ b/src/components/dropdown/Dropdown.vue @@ -1,16 +1,16 @@