From eb6472d47617efc43865dde7d55490d2a33ef8c3 Mon Sep 17 00:00:00 2001 From: Maksym Portianoi Date: Mon, 8 Jan 2024 16:49:51 -0500 Subject: [PATCH] fix(kselect): kselect reskin [KHCP-8998] (#1832) * fix(kpagination): replace kselect with kdropdown [KHCP-8998] * feat(kselect): reskin component - wip [KHCP-8998] * fix(kselect): minor fix [KHCP-8998] * fix(kselect): reskin component - wip [KHCP-8998] * fix(kselect): reskin component [KHCP-8998] * fix(kselect): minor fix [KHCP-8998] * test(kselect): fix component tests [KHCP-8998] * fix(kselect): add back filter function prop [KHCP-8998] * fix(kselect): misc fixes [KHCP-8998] * docs(select): update component docs [KHCP-8998] * test(kselect): fix component test [KHCP-8998] * docs(kselect): small tweak [KHCP-8998] * fix(kselect): move clear icon to after slot [KHCP-8998] * fix(kselect): misc fixes [KHCP-8998] * docs(select): minor tweaks [KHCP-8998] * docs(select): add disabled example [KHCP-8998] * fix(kselect): minor fix [KHCP-8998] * fix(kselect): address PR feedback [KHCP-8998] * fix(kselect): allow disable default filter function [KHCP-8998] * fix(kselect): address PR feedback Co-authored-by: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> * fix(kselect): address PR feedback [KHCP-8998] * fix(kselect): senitize user input [KHCP-8998] * fix(kselect): address PR feedback [KHCP-8998] * fix(kselect): remove console log * fix(kselect): address PR feedback [KHCP-8998] * fix(kselect): minor tweak [KHCP-8998] * docs(kselect): minor tweak [KHCP-8998] --------- Co-authored-by: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> --- docs/components/input.md | 4 +- docs/components/select.md | 1286 +++++++---------- docs/guide/migrating-to-version-9.md | 32 + sandbox/index.ts | 2 + sandbox/pages/SandboxPagination.vue | 54 + sandbox/pages/SandboxSelect.vue | 434 ++++++ sandbox/router/sandbox-routes.ts | 12 + src/components/KInput/KInput.vue | 43 +- src/components/KPagination/KPagination.cy.ts | 10 +- src/components/KPagination/KPagination.vue | 51 +- src/components/KSelect/KSelect.cy.ts | 211 +-- src/components/KSelect/KSelect.vue | 1064 +++++--------- src/components/KSelect/KSelectItem.vue | 121 +- src/components/KSelect/KSelectItems.vue | 25 +- src/components/KTable/KTable.cy.ts | 12 +- src/styles/_mixins.scss | 2 +- src/styles/mixins/_input-text.scss | 3 +- src/styles/mixins/_inputs.scss | 2 +- .../mixins/{_labels.scss => _label.scss} | 0 src/types/select.ts | 10 +- src/utilities/index.ts | 1 + src/utilities/sanitizeInput.ts | 14 + 22 files changed, 1632 insertions(+), 1761 deletions(-) create mode 100644 sandbox/pages/SandboxPagination.vue create mode 100644 sandbox/pages/SandboxSelect.vue rename src/styles/mixins/{_labels.scss => _label.scss} (100%) create mode 100644 src/utilities/sanitizeInput.ts diff --git a/docs/components/input.md b/docs/components/input.md index 5abfbdca8c..40531d3b33 100644 --- a/docs/components/input.md +++ b/docs/components/input.md @@ -256,12 +256,12 @@ We also recommend setting the icon style `color` property to a value of `current If you want to utilize HTML in the input label's tooltip, use the slot. - + ```html - + ``` diff --git a/docs/components/select.md b/docs/components/select.md index c945f108a4..bd71ae94af 100644 --- a/docs/components/select.md +++ b/docs/components/select.md @@ -1,1013 +1,781 @@ # Select -**Select** - Select input component +KSelect is custom component alternative for native `