From b7893ab5ea8841e10be780b943ffec79cf5d9ded Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 26 Dec 2018 00:28:55 +0300 Subject: [PATCH] Readd listbox --- src/components/listbox/Listbox.css | 68 +++++++++ src/components/listbox/Listbox.vue | 224 +++++++++++++++++++++++++++++ 2 files changed, 292 insertions(+) create mode 100644 src/components/listbox/Listbox.css create mode 100644 src/components/listbox/Listbox.vue diff --git a/src/components/listbox/Listbox.css b/src/components/listbox/Listbox.css new file mode 100644 index 000000000..82bc81aa2 --- /dev/null +++ b/src/components/listbox/Listbox.css @@ -0,0 +1,68 @@ +.p-listbox { + padding: .25em; + width: 10em; +} + +.p-listbox .p-listbox-list-wrapper { + overflow:auto; +} + +.p-listbox .p-listbox-list { + list-style-type: none; + margin: 0; + padding: 0; +} + +.p-listbox .p-listbox-item { + padding: .25em; + border: 0 none; + cursor: pointer; + font-weight: normal; + margin-bottom: 1px; +} + +.p-listbox .p-listbox-item > span { + vertical-align: middle; +} + +.p-listbox .p-listbox-item:last-child { + margin-bottom: 0; +} + +.p-listbox.p-disabled .p-listbox-item { + cursor: default; +} + +.p-listbox-header { + margin-bottom: 0.3em; + padding: .125em .2em; + position: relative; +} + +.p-listbox-header .p-checkbox { + display: inline-block; + vertical-align: middle; + cursor: pointer; +} + +.p-listbox-header .p-listbox-filter-container { + display: inline-block; + vertical-align: middle; + position: relative; + width: 100%; +} + +.p-listbox-header.p-listbox-header-w-checkbox .p-listbox-filter-container { + width: calc(100% - 2em); +} + +.p-listbox-header .p-listbox-filter-container .p-listbox-filter-icon { + position: absolute; + top: .25em; + left: .25em; +} + +.p-listbox-header .p-inputtext { + padding: .125em .125em .125em 1.25em; + width: 100%; +} \ No newline at end of file diff --git a/src/components/listbox/Listbox.vue b/src/components/listbox/Listbox.vue new file mode 100644 index 000000000..31381d8ec --- /dev/null +++ b/src/components/listbox/Listbox.vue @@ -0,0 +1,224 @@ + + + \ No newline at end of file