@well-insight/ui 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/dist/{Button-B6-YxpOQ.js → Button-tnrMSwNg.js} +3 -7
- package/dist/{Checkbox-BvlOYFGs.js → Checkbox-CoovLjt_.js} +1 -1
- package/dist/{Icon-B6gOD07E.js → Icon-DHGs8l-M.js} +27 -1
- package/dist/Pagination-UvgyUKB1.js +155 -0
- package/dist/{ProgressSpinner-YThgaSzb.js → ProgressSpinner-BTijCc7l.js} +1 -1
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/accordion/style.css +4 -5
- package/dist/auto-complete/index.js +106 -99
- package/dist/auto-complete/style.css +4 -5
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +4 -5
- package/dist/badge/style.css +4 -5
- package/dist/block-ui/style.css +4 -5
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/style.css +4 -5
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +4 -5
- package/dist/card/style.css +4 -5
- package/dist/carousel/index.js +61 -54
- package/dist/carousel/style.css +43 -5
- package/dist/carousel/style.js +1 -0
- package/dist/cascade-select/index.js +143 -76
- package/dist/cascade-select/style.css +76 -10
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox/style.css +4 -5
- package/dist/chip/index.js +32 -29
- package/dist/chip/style.css +4 -5
- package/dist/command-menu/index.js +2 -2
- package/dist/command-menu/style.css +4 -5
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -0
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/types.d.ts +1 -0
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +0 -1
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +0 -2
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +6 -0
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +33 -5
- package/dist/components/CascadeSelect/types.d.ts +11 -0
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +33 -8
- package/dist/components/DatePicker/types.d.ts +1 -0
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +3 -3
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Divider/types.d.ts +0 -5
- package/dist/components/Divider/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +2 -2
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts +4 -4
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/styles.css +2 -2
- package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Icon/icons.d.ts +32 -0
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +0 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/styles.css +3 -5
- package/dist/components/Input/types.d.ts +1 -3
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -4
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
- package/dist/components/Layout/Layout.vue.d.ts +1 -4
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +1 -4
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +1 -4
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +9 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -0
- package/dist/components/Layout/composables/useLayoutScroll.d.ts +6 -0
- package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -0
- package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts +16 -0
- package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts.map +1 -0
- package/dist/components/Layout/styles.css +21 -49
- package/dist/components/Layout/types.d.ts +0 -22
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Layout/utils.d.ts +3 -0
- package/dist/components/Layout/utils.d.ts.map +1 -0
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts +3 -3
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/styles.css +41 -0
- package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
- package/dist/components/Rating/styles.css +28 -23
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/styles.css +8 -108
- package/dist/components/Select/types.d.ts +3 -3
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider/types.d.ts +2 -0
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +9 -9
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +8 -8
- package/dist/components/Textarea/Textarea.vue.d.ts +0 -2
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +1 -2
- package/dist/components/Textarea/types.d.ts +1 -5
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +21 -12
- package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
- package/dist/{config-DWwce9jA.js → config-CTLkobga.js} +1 -0
- package/dist/config-provider/index.js +27 -26
- package/dist/config-provider/style.css +7 -10
- package/dist/confirm-dialog/index.js +4 -4
- package/dist/confirm-dialog/style.css +4 -5
- package/dist/confirm-popup/index.js +62 -77
- package/dist/confirm-popup/style.css +4 -5
- package/dist/context-menu/index.js +69 -61
- package/dist/context-menu/style.css +4 -5
- package/dist/data-view/index.js +1 -1
- package/dist/data-view/style.css +4 -5
- package/dist/date-picker/index.js +144 -137
- package/dist/date-picker/style.css +76 -13
- package/dist/date-picker/style.js +1 -0
- package/dist/dialog/index.js +76 -70
- package/dist/dialog/style.css +4 -5
- package/dist/divider/index.js +1 -2
- package/dist/divider/style.css +4 -5
- package/dist/dock/style.css +4 -5
- package/dist/drawer/index.js +49 -45
- package/dist/drawer/style.css +43 -5
- package/dist/drawer/style.js +1 -0
- package/dist/dropdown/index.js +98 -97
- package/dist/dropdown/style.css +4 -5
- package/dist/fieldset/index.js +16 -12
- package/dist/fieldset/style.css +43 -5
- package/dist/fieldset/style.js +1 -0
- package/dist/file-upload/index.js +2 -2
- package/dist/file-upload/style.css +6 -7
- package/dist/flex/index.js +1 -1
- package/dist/flex/style.css +4 -5
- package/dist/float-label/index.js +15 -4
- package/dist/float-label/style.css +4 -5
- package/dist/fluid/style.css +4 -5
- package/dist/form/index.js +1 -1
- package/dist/form/style.css +4 -5
- package/dist/gallery/index.js +41 -34
- package/dist/gallery/style.css +43 -5
- package/dist/gallery/style.js +1 -0
- package/dist/grid/style.css +4 -5
- package/dist/icon/index.js +1 -1
- package/dist/icon/style.css +4 -5
- package/dist/icon-Cg5TeFqe.js +7 -0
- package/dist/icon-field/style.css +4 -5
- package/dist/index.js +2790 -2650
- package/dist/inplace/style.css +4 -5
- package/dist/input/index.js +65 -66
- package/dist/input/style.css +46 -10
- package/dist/input/style.js +1 -0
- package/dist/input-color/index.js +1 -1
- package/dist/input-color/style.css +4 -5
- package/dist/input-group/style.css +4 -5
- package/dist/input-number/index.js +82 -66
- package/dist/input-number/style.css +43 -5
- package/dist/input-number/style.js +1 -0
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +4 -5
- package/dist/input-password/index.js +46 -43
- package/dist/input-password/style.css +4 -5
- package/dist/input-tags/index.js +50 -46
- package/dist/input-tags/style.css +43 -5
- package/dist/input-tags/style.js +1 -0
- package/dist/key-CaQYVkjh.js +6 -0
- package/dist/knob/style.css +4 -5
- package/dist/label/style.css +4 -5
- package/dist/layout/index.js +196 -271
- package/dist/layout/style.css +50 -140
- package/dist/layout/style.js +1 -1
- package/dist/listbox/index.js +1 -1
- package/dist/listbox/style.css +4 -5
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/types.d.ts +1 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/{locale-CYkJyRd1.js → locale-DxAvgqgB.js} +1 -1
- package/dist/mega-menu/index.js +47 -49
- package/dist/mega-menu/style.css +4 -5
- package/dist/menu/index.js +81 -76
- package/dist/menu/style.css +4 -5
- package/dist/menubar/index.js +75 -73
- package/dist/menubar/style.css +4 -5
- package/dist/message/index.js +3 -3
- package/dist/message/style.css +4 -5
- package/dist/meter-group/style.css +4 -5
- package/dist/order-list/index.js +2 -2
- package/dist/order-list/style.css +4 -5
- package/dist/overlayPlacement-CN1tuC95.js +51 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +43 -5
- package/dist/pagination/style.js +1 -0
- package/dist/panel/index.js +27 -23
- package/dist/panel/style.css +43 -5
- package/dist/panel/style.js +1 -0
- package/dist/pick-list/index.js +2 -2
- package/dist/pick-list/style.css +4 -5
- package/dist/popover/index.js +79 -100
- package/dist/popover/style.css +45 -5
- package/dist/progress-bar/style.css +4 -5
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +4 -5
- package/dist/radio/index.js +1 -1
- package/dist/radio/style.css +4 -5
- package/dist/rating/index.js +54 -44
- package/dist/rating/style.css +71 -28
- package/dist/rating/style.js +1 -0
- package/dist/scroll-top/index.js +45 -41
- package/dist/scroll-top/style.css +43 -5
- package/dist/scroll-top/style.js +1 -0
- package/dist/scrollbar/index.js +382 -2
- package/dist/scrollbar/style.css +4 -5
- package/dist/select/index.js +149 -141
- package/dist/select/style.css +51 -113
- package/dist/select/style.js +1 -0
- package/dist/select-button/index.js +1 -1
- package/dist/select-button/style.css +4 -5
- package/dist/shared/componentDefaults.d.ts +5 -1
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/menu/icon.d.ts +4 -0
- package/dist/shared/menu/icon.d.ts.map +1 -0
- package/dist/shared/menu/index.d.ts +4 -0
- package/dist/shared/menu/index.d.ts.map +1 -0
- package/dist/shared/menu/key.d.ts +4 -0
- package/dist/shared/menu/key.d.ts.map +1 -0
- package/dist/shared/menu/types.d.ts +11 -0
- package/dist/shared/menu/types.d.ts.map +1 -0
- package/dist/shared/overlayPlacement.d.ts +12 -0
- package/dist/shared/overlayPlacement.d.ts.map +1 -0
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/style.css +4 -5
- package/dist/skeleton/style.css +4 -5
- package/dist/slider/index.js +6 -3
- package/dist/slider/style.css +4 -5
- package/dist/space/index.js +1 -1
- package/dist/space/style.css +4 -5
- package/dist/speed-dial/index.js +55 -66
- package/dist/speed-dial/style.css +43 -5
- package/dist/speed-dial/style.js +1 -0
- package/dist/split-button/index.js +66 -63
- package/dist/split-button/style.css +43 -5
- package/dist/split-button/style.js +1 -0
- package/dist/splitter/index.js +1 -1
- package/dist/splitter/style.css +4 -5
- package/dist/stepper/style.css +4 -5
- package/dist/styles/base.css +4 -5
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/style.css +4 -5
- package/dist/table/index.js +41 -35
- package/dist/table/style.css +4 -5
- package/dist/tabs/index.js +78 -65
- package/dist/tabs/style.css +43 -5
- package/dist/tabs/style.js +1 -0
- package/dist/tag/index.js +31 -28
- package/dist/tag/style.css +4 -5
- package/dist/terminal/index.js +1 -1
- package/dist/terminal/style.css +12 -13
- package/dist/textarea/index.js +69 -75
- package/dist/textarea/style.css +44 -7
- package/dist/textarea/style.js +1 -0
- package/dist/tiered-menu/index.js +66 -59
- package/dist/tiered-menu/style.css +43 -5
- package/dist/tiered-menu/style.js +1 -0
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +4 -5
- package/dist/toast/index.js +93 -89
- package/dist/toast/style.css +43 -5
- package/dist/toast/style.js +1 -0
- package/dist/toggle-button/index.js +1 -1
- package/dist/toggle-button/style.css +4 -5
- package/dist/toolbar/index.js +10 -13
- package/dist/toolbar/style.css +4 -5
- package/dist/tooltip/index.js +47 -71
- package/dist/tooltip/style.css +4 -5
- package/dist/tree/index.js +3 -3
- package/dist/tree/style.css +4 -5
- package/dist/tree-select/index.js +164 -155
- package/dist/tree-select/style.css +64 -17
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +34 -30
- package/dist/tree-table/style.css +43 -5
- package/dist/tree-table/style.js +1 -0
- package/dist/virtual-scroller/style.css +4 -5
- package/package.json +4 -1
- package/dist/Pagination-BU-1IY0E.js +0 -148
- package/dist/Scrollbar-D-bR2noX.js +0 -382
package/dist/input-otp/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e } from "../config-
|
|
2
|
-
import { n as t, t as n } from "../locale-
|
|
1
|
+
import { o as e } from "../config-CTLkobga.js";
|
|
2
|
+
import { n as t, t as n } from "../locale-DxAvgqgB.js";
|
|
3
3
|
import "./style.js";
|
|
4
4
|
import { Fragment as r, computed as i, createElementBlock as a, defineComponent as o, nextTick as s, normalizeClass as c, normalizeStyle as l, openBlock as u, ref as d, renderList as f, unref as p, watch as m } from "vue";
|
|
5
5
|
//#region src/components/InputOtp/InputOtp.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -83,7 +83,7 @@ var h = [
|
|
|
83
83
|
s(() => b.value[n]?.focus());
|
|
84
84
|
}
|
|
85
85
|
return m(() => _.length, () => {
|
|
86
|
-
b.value = Array
|
|
86
|
+
b.value = Array(_.length).fill(null);
|
|
87
87
|
}, { immediate: !0 }), (e, t) => (u(), a("div", {
|
|
88
88
|
class: c(C.value),
|
|
89
89
|
style: l(w.value),
|
package/dist/input-otp/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "../Icon-
|
|
2
|
-
import { i as t, o as
|
|
3
|
-
import { n
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { i as t, o as ee, s as te } from "../config-CTLkobga.js";
|
|
3
|
+
import { n, t as r } from "../locale-DxAvgqgB.js";
|
|
4
4
|
import "./style.js";
|
|
5
|
-
import { computed as
|
|
5
|
+
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as ne, defineComponent as l, mergeProps as re, normalizeClass as u, onBeforeUnmount as d, openBlock as f, ref as p, renderSlot as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, useAttrs as v } from "vue";
|
|
6
6
|
//#region src/components/InputPassword/InputPassword.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var y = ["for"], b = [
|
|
8
8
|
"id",
|
|
@@ -20,7 +20,7 @@ var y = ["for"], b = [
|
|
|
20
20
|
], C = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "wi-password-field__meta"
|
|
23
|
-
}, w = ["id"], T = ["id"], E = /* @__PURE__ */
|
|
23
|
+
}, w = ["id"], T = ["id"], E = /* @__PURE__ */ l({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "InputPassword",
|
|
26
26
|
props: {
|
|
@@ -67,16 +67,16 @@ var y = ["for"], b = [
|
|
|
67
67
|
id: {}
|
|
68
68
|
},
|
|
69
69
|
emits: ["update:modelValue", "clear"],
|
|
70
|
-
setup(
|
|
71
|
-
let D =
|
|
70
|
+
setup(l, { emit: E }) {
|
|
71
|
+
let D = l, O = E, k = v(), A = t("InputPassword"), j = n(), M = p(!1), N = p(null), P = i(() => D.id ?? `wi-password-${Math.random().toString(36).slice(2, 8)}`), F = ee("InputPassword", () => D.size), I = te("InputPassword", () => D.variant), L = i(() => D.fluid ?? A.value.fluid ?? !1), R = i(() => D.clearable ?? A.value.clearable ?? !1), z = i(() => D.showCount ?? A.value.showCount ?? !1), B = i(() => D.showPasswordOn ?? A.value.showPasswordOn ?? "click"), V = i(() => typeof D.showIcon == "string" ? D.showIcon : void 0), H = i(() => typeof D.showIcon == "string" || !D.showIcon ? void 0 : D.showIcon), U = i(() => typeof D.hideIcon == "string" ? D.hideIcon : void 0), W = i(() => typeof D.hideIcon == "string" || !D.hideIcon ? void 0 : D.hideIcon), G = i(() => {
|
|
72
72
|
let e = D.modelValue ?? "";
|
|
73
73
|
if (!e) return "empty";
|
|
74
74
|
let t = 0;
|
|
75
75
|
return e.length >= 8 && (t += 1), /[A-Z]/.test(e) && /[a-z]/.test(e) && (t += 1), /\d/.test(e) && (t += 1), /[^A-Z0-9]/i.test(e) && (t += 1), t <= 1 ? "weak" : t <= 3 ? "medium" : "strong";
|
|
76
|
-
}), K =
|
|
76
|
+
}), K = i(() => G.value === "weak" ? j.value.passwordWeak : G.value === "medium" ? j.value.passwordMedium : G.value === "strong" ? j.value.passwordStrong : ""), q = i(() => (D.modelValue ?? "").length), J = i(() => D.maxlength == null ? String(q.value) : `${q.value} / ${D.maxlength}`), Y = i(() => R.value && !!D.modelValue), X = i(() => {
|
|
77
77
|
let e = [];
|
|
78
78
|
return D.feedback && G.value !== "empty" && e.push(`${P.value}-feedback`), z.value && e.push(`${P.value}-count`), e.length ? e.join(" ") : void 0;
|
|
79
|
-
}),
|
|
79
|
+
}), ie = i(() => [
|
|
80
80
|
"wi-password",
|
|
81
81
|
`wi-password--${F.value}`,
|
|
82
82
|
{
|
|
@@ -88,13 +88,13 @@ var y = ["for"], b = [
|
|
|
88
88
|
"wi-password--clearable": Y.value
|
|
89
89
|
}
|
|
90
90
|
]);
|
|
91
|
-
function
|
|
91
|
+
function ae(e) {
|
|
92
92
|
D.disabled || D.readonly || O("update:modelValue", e.target.value);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function oe() {
|
|
95
95
|
D.disabled || D.readonly || (O("update:modelValue", ""), O("clear"), N.value?.focus());
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function se(e) {
|
|
98
98
|
if (!D.disabled) {
|
|
99
99
|
if (B.value === "mousedown") {
|
|
100
100
|
e.preventDefault();
|
|
@@ -107,76 +107,79 @@ var y = ["for"], b = [
|
|
|
107
107
|
function $() {
|
|
108
108
|
Z &&= (document.removeEventListener("mouseup", Z), void 0), Q &&= (document.removeEventListener("keyup", Q), void 0);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ce(e) {
|
|
111
111
|
D.disabled || (e.preventDefault(), B.value === "mousedown" && (M.value = !0, $(), Z = () => {
|
|
112
112
|
M.value = !1, $();
|
|
113
113
|
}, document.addEventListener("mouseup", Z)));
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function le(e) {
|
|
116
116
|
D.disabled || B.value === "mousedown" && (e.key === " " || e.key === "Enter") && (e.preventDefault(), M.value = !0, $(), Q = (t) => {
|
|
117
117
|
t.key === e.key && (M.value = !1, $());
|
|
118
118
|
}, document.addEventListener("keyup", Q));
|
|
119
119
|
}
|
|
120
|
-
return
|
|
121
|
-
|
|
120
|
+
return d($), (t, ee) => (f(), s("div", { class: u(["wi-password-field", { "wi-password-field--fluid": L.value }]) }, [
|
|
121
|
+
l.label ? (f(), s("label", {
|
|
122
122
|
key: 0,
|
|
123
123
|
class: "wi-password-field__label",
|
|
124
124
|
for: P.value
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
}, g(l.label), 9, y)) : o("", !0),
|
|
126
|
+
c("div", { class: u(ie.value) }, [
|
|
127
|
+
c("input", re(_(k), {
|
|
128
128
|
id: P.value,
|
|
129
129
|
ref_key: "inputElement",
|
|
130
130
|
ref: N,
|
|
131
131
|
class: "wi-password__input",
|
|
132
132
|
type: M.value ? "text" : "password",
|
|
133
|
-
value:
|
|
134
|
-
disabled:
|
|
135
|
-
readonly:
|
|
136
|
-
maxlength:
|
|
137
|
-
"aria-invalid":
|
|
133
|
+
value: l.modelValue,
|
|
134
|
+
disabled: l.disabled,
|
|
135
|
+
readonly: l.readonly,
|
|
136
|
+
maxlength: l.maxlength,
|
|
137
|
+
"aria-invalid": l.invalid || void 0,
|
|
138
138
|
"aria-describedby": X.value,
|
|
139
139
|
autocomplete: "current-password",
|
|
140
|
-
onInput:
|
|
140
|
+
onInput: ae
|
|
141
141
|
}), null, 16, b),
|
|
142
|
-
Y.value ? (
|
|
142
|
+
Y.value ? (f(), s("button", {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "wi-password__clear",
|
|
145
145
|
type: "button",
|
|
146
|
-
"aria-label":
|
|
147
|
-
disabled:
|
|
148
|
-
onClick:
|
|
149
|
-
},
|
|
150
|
-
|
|
146
|
+
"aria-label": _(j).clearInput,
|
|
147
|
+
disabled: l.disabled || l.readonly,
|
|
148
|
+
onClick: oe
|
|
149
|
+
}, [ne(e, {
|
|
150
|
+
name: "close",
|
|
151
|
+
size: "sm"
|
|
152
|
+
})], 8, x)) : o("", !0),
|
|
153
|
+
l.toggleMask ? (f(), s("button", {
|
|
151
154
|
key: 1,
|
|
152
155
|
class: "wi-password__toggle",
|
|
153
156
|
type: "button",
|
|
154
|
-
"aria-label": M.value ?
|
|
157
|
+
"aria-label": M.value ? _(j).hidePassword : _(j).showPassword,
|
|
155
158
|
"aria-pressed": M.value,
|
|
156
|
-
disabled:
|
|
157
|
-
onClick:
|
|
158
|
-
onMousedown:
|
|
159
|
-
onKeydown:
|
|
160
|
-
}, [M.value ?
|
|
159
|
+
disabled: l.disabled,
|
|
160
|
+
onClick: se,
|
|
161
|
+
onMousedown: ce,
|
|
162
|
+
onKeydown: le
|
|
163
|
+
}, [M.value ? m(t.$slots, "hideIcon", { unmasked: M.value }, () => [U.value ? (f(), a(e, {
|
|
161
164
|
key: 0,
|
|
162
165
|
name: U.value,
|
|
163
166
|
size: "sm"
|
|
164
|
-
}, null, 8, ["name"])) : W.value ? (
|
|
167
|
+
}, null, 8, ["name"])) : W.value ? (f(), a(h(W.value), { key: 1 })) : o("", !0)], void 0, 0) : m(t.$slots, "showIcon", { unmasked: M.value }, () => [V.value ? (f(), a(e, {
|
|
165
168
|
key: 0,
|
|
166
169
|
name: V.value,
|
|
167
170
|
size: "sm"
|
|
168
|
-
}, null, 8, ["name"])) : H.value ? (
|
|
171
|
+
}, null, 8, ["name"])) : H.value ? (f(), a(h(H.value), { key: 1 })) : o("", !0)], void 0, 1)], 40, S)) : o("", !0)
|
|
169
172
|
], 2),
|
|
170
|
-
|
|
173
|
+
l.feedback && G.value !== "empty" || z.value ? (f(), s("div", C, [l.feedback && G.value !== "empty" ? (f(), s("span", {
|
|
171
174
|
key: 0,
|
|
172
175
|
id: `${P.value}-feedback`,
|
|
173
|
-
class:
|
|
174
|
-
}, _(
|
|
176
|
+
class: u(["wi-password__feedback", `wi-password__feedback--${G.value}`])
|
|
177
|
+
}, g(_(r)(_(j).passwordStrength, { value: K.value })), 11, w)) : o("", !0), z.value ? (f(), s("span", {
|
|
175
178
|
key: 1,
|
|
176
179
|
id: `${P.value}-count`,
|
|
177
180
|
class: "wi-password-field__count",
|
|
178
181
|
"aria-live": "polite"
|
|
179
|
-
},
|
|
182
|
+
}, g(J.value), 9, T)) : o("", !0)])) : o("", !0)
|
|
180
183
|
], 2));
|
|
181
184
|
}
|
|
182
185
|
});
|
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
package/dist/input-tags/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t } from "../locale-DxAvgqgB.js";
|
|
2
3
|
import "./style.js";
|
|
3
|
-
import { Fragment as
|
|
4
|
+
import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m } from "vue";
|
|
4
5
|
//#region src/components/InputTags/InputTags.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var h = [
|
|
6
7
|
"disabled",
|
|
7
8
|
"aria-label",
|
|
8
9
|
"onClick"
|
|
9
|
-
],
|
|
10
|
+
], g = [
|
|
10
11
|
"value",
|
|
11
12
|
"placeholder",
|
|
12
13
|
"disabled"
|
|
13
|
-
],
|
|
14
|
+
], _ = /* @__PURE__ */ c({
|
|
14
15
|
__name: "InputTags",
|
|
15
16
|
props: {
|
|
16
17
|
modelValue: { default: () => [] },
|
|
@@ -27,77 +28,80 @@ var p = [
|
|
|
27
28
|
separator: {}
|
|
28
29
|
},
|
|
29
30
|
emits: ["update:modelValue"],
|
|
30
|
-
setup(
|
|
31
|
-
let
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
31
|
+
setup(c, { emit: _ }) {
|
|
32
|
+
let v = c, y = _, b = t(), x = d(""), S = r(() => v.placeholder ?? b.value.addTag), C = r(() => v.separator ? Array.isArray(v.separator) ? v.separator : [v.separator] : []), w = r(() => v.max != null && v.modelValue.length >= v.max);
|
|
33
|
+
function T(e = x.value) {
|
|
34
|
+
if (v.disabled || w.value) return;
|
|
34
35
|
let t = e.trim();
|
|
35
36
|
if (t) {
|
|
36
|
-
if (
|
|
37
|
-
|
|
37
|
+
if (v.modelValue.includes(t)) {
|
|
38
|
+
x.value = "";
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
+
y("update:modelValue", [...v.modelValue, t]), x.value = "";
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
let t =
|
|
44
|
+
function E(e) {
|
|
45
|
+
let t = C.value.length ? e.split(RegExp(`[${C.value.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("")}]`)) : [e], n = [...v.modelValue];
|
|
45
46
|
for (let e of t) {
|
|
46
47
|
let t = e.trim();
|
|
47
48
|
if (!(!t || n.includes(t))) {
|
|
48
|
-
if (
|
|
49
|
+
if (v.max != null && n.length >= v.max) break;
|
|
49
50
|
n.push(t);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
n.length !==
|
|
53
|
+
n.length !== v.modelValue.length && y("update:modelValue", n), x.value = "";
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
56
|
-
let t =
|
|
57
|
-
|
|
55
|
+
function D(e) {
|
|
56
|
+
if (v.disabled) return;
|
|
57
|
+
let t = v.modelValue.filter((t, n) => n !== e);
|
|
58
|
+
y("update:modelValue", t);
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
if (
|
|
61
|
-
e.preventDefault(),
|
|
60
|
+
function O(e) {
|
|
61
|
+
if (C.value.includes(e.key)) {
|
|
62
|
+
e.preventDefault(), T();
|
|
62
63
|
return;
|
|
63
64
|
}
|
|
64
65
|
if (e.key === "Enter") {
|
|
65
|
-
e.preventDefault(),
|
|
66
|
+
e.preventDefault(), T();
|
|
66
67
|
return;
|
|
67
68
|
}
|
|
68
|
-
e.key === "Backspace" && !
|
|
69
|
+
e.key === "Backspace" && !x.value && v.modelValue.length && D(v.modelValue.length - 1);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function k(e) {
|
|
71
72
|
let t = e.target.value;
|
|
72
|
-
if (
|
|
73
|
-
|
|
73
|
+
if (C.value.find((e) => t.includes(e))) {
|
|
74
|
+
E(t);
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
x.value = t;
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
79
|
+
function A() {
|
|
80
|
+
v.addOnBlur && T();
|
|
80
81
|
}
|
|
81
|
-
return (
|
|
82
|
-
key: `${
|
|
82
|
+
return (t, r) => (u(), i("div", { class: l(["wi-inputtags", { "wi-inputtags--disabled": c.disabled }]) }, [(u(!0), i(n, null, f(c.modelValue, (t, n) => (u(), i("span", {
|
|
83
|
+
key: `${t}-${n}`,
|
|
83
84
|
class: "wi-inputtags__chip"
|
|
84
|
-
}, [
|
|
85
|
+
}, [o(p(t) + " ", 1), a("button", {
|
|
85
86
|
type: "button",
|
|
86
87
|
class: "wi-inputtags__remove",
|
|
87
|
-
disabled:
|
|
88
|
-
"aria-label":
|
|
89
|
-
onClick: (e) =>
|
|
90
|
-
},
|
|
91
|
-
|
|
88
|
+
disabled: c.disabled,
|
|
89
|
+
"aria-label": m(b).removeTag,
|
|
90
|
+
onClick: (e) => D(n)
|
|
91
|
+
}, [s(e, {
|
|
92
|
+
name: "close",
|
|
93
|
+
size: "sm"
|
|
94
|
+
})], 8, h)]))), 128)), a("input", {
|
|
95
|
+
value: x.value,
|
|
92
96
|
class: "wi-inputtags__input",
|
|
93
97
|
type: "text",
|
|
94
|
-
placeholder:
|
|
95
|
-
disabled:
|
|
96
|
-
onInput:
|
|
97
|
-
onKeydown:
|
|
98
|
-
onBlur:
|
|
99
|
-
}, null, 40,
|
|
98
|
+
placeholder: c.modelValue.length ? "" : S.value,
|
|
99
|
+
disabled: c.disabled || w.value,
|
|
100
|
+
onInput: k,
|
|
101
|
+
onKeydown: O,
|
|
102
|
+
onBlur: A
|
|
103
|
+
}, null, 40, g)], 2));
|
|
100
104
|
}
|
|
101
105
|
});
|
|
102
106
|
//#endregion
|
|
103
|
-
export {
|
|
107
|
+
export { _ as WiInputTags };
|
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
|
@@ -750,6 +749,45 @@
|
|
|
750
749
|
line-height: 1;
|
|
751
750
|
}
|
|
752
751
|
|
|
752
|
+
.wi-icon {
|
|
753
|
+
display: inline-flex;
|
|
754
|
+
height: 1rem;
|
|
755
|
+
width: 1rem;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.wi-icon svg {
|
|
759
|
+
height: 100%;
|
|
760
|
+
width: 100%;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.wi-icon--sm,
|
|
764
|
+
.wi-icon--small {
|
|
765
|
+
height: 0.875rem;
|
|
766
|
+
width: 0.875rem;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.wi-icon--md,
|
|
770
|
+
.wi-icon--normal {
|
|
771
|
+
height: 1rem;
|
|
772
|
+
width: 1rem;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.wi-icon--lg,
|
|
776
|
+
.wi-icon--large {
|
|
777
|
+
height: 1.25rem;
|
|
778
|
+
width: 1.25rem;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.wi-icon--spin svg {
|
|
782
|
+
animation: wi-icon-spin 0.8s linear infinite;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
@keyframes wi-icon-spin {
|
|
786
|
+
to {
|
|
787
|
+
transform: rotate(360deg);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
753
791
|
/* —— Form: InputTags —— */
|
|
754
792
|
.wi-inputtags {
|
|
755
793
|
--wi-inputtags-input-min-width: 6rem;
|
package/dist/input-tags/style.js
CHANGED
package/dist/knob/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
package/dist/label/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|