morya-ui 0.2.7 → 0.2.9
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 +43 -0
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/{Button--RkQybU-.js → Button-DO5oukfg.js} +1 -1
- package/dist/Icon-B6IBrJ5S.js +606 -0
- package/dist/{Pagination-BKvR-RUW.js → Pagination-CUwCtWhz.js} +1 -1
- package/dist/Renderable-DHU4Jcfw.js +20 -0
- package/dist/accordion/style.css +26 -23
- package/dist/auto-complete/index.js +1 -1
- package/dist/auto-complete/style.css +64 -40
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +26 -23
- package/dist/badge/style.css +26 -23
- package/dist/block-ui/style.css +26 -23
- package/dist/breadcrumb/style.css +26 -23
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +26 -23
- package/dist/card/style.css +26 -23
- package/dist/carousel/index.js +1 -1
- package/dist/carousel/style.css +26 -23
- package/dist/cascade-select/index.js +1 -1
- package/dist/cascade-select/style.css +27 -24
- package/dist/checkbox/style.css +26 -23
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +26 -23
- package/dist/command-menu/index.js +2 -2
- package/dist/command-menu/style.css +26 -23
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +38 -17
- package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
- package/dist/components/DatePicker/styles.css +65 -21
- package/dist/components/Icon/icon-categories.d.ts +21 -0
- package/dist/components/Icon/icon-categories.d.ts.map +1 -0
- package/dist/components/Icon/icons-tabler.d.ts +77 -0
- package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
- package/dist/components/Icon/icons-types.d.ts +36 -0
- package/dist/components/Icon/icons-types.d.ts.map +1 -0
- package/dist/components/Icon/icons.d.ts +75 -32
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/IconField/IconField.vue.d.ts +3 -1
- package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
- package/dist/components/IconField/styles.css +306 -31
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/styles.css +172 -33
- package/dist/components/InputNumber/styles.css +103 -40
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +79 -79
- package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +7 -42
- package/dist/components/Layout/types.d.ts +4 -7
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Loading/Loading.vue.d.ts +25 -0
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts +13 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -0
- package/dist/components/Loading/directive.d.ts +12 -0
- package/dist/components/Loading/directive.d.ts.map +1 -0
- package/dist/components/Loading/index.d.ts +8 -0
- package/dist/components/Loading/index.d.ts.map +1 -0
- package/dist/components/Loading/loading.d.ts +35 -0
- package/dist/components/Loading/loading.d.ts.map +1 -0
- package/dist/components/Loading/styles.css +386 -0
- package/dist/components/Loading/types.d.ts +74 -0
- package/dist/components/Loading/types.d.ts.map +1 -0
- package/dist/components/Loading/useLoading.d.ts +11 -0
- package/dist/components/Loading/useLoading.d.ts.map +1 -0
- package/dist/components/Menu/styles.css +4 -1
- package/dist/components/Page/PageContent.vue.d.ts +2 -2
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +1 -1
- package/dist/components/Table/Table.vue.d.ts +1 -1
- package/dist/components/Textarea/styles.css +15 -1
- package/dist/config-provider/style.css +198 -56
- package/dist/confirm-dialog/index.js +11 -11
- package/dist/confirm-dialog/style.css +26 -23
- package/dist/confirm-popup/index.js +2 -2
- package/dist/confirm-popup/style.css +26 -23
- package/dist/content-h8POj44-.js +28 -0
- package/dist/context-menu/index.js +2 -2
- package/dist/context-menu/style.css +26 -23
- package/dist/data-view/index.js +1 -1
- package/dist/data-view/style.css +26 -23
- package/dist/date-picker/index.js +1 -1
- package/dist/date-picker/style.css +91 -44
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/style.css +26 -23
- package/dist/divider/style.css +26 -23
- package/dist/dock/index.js +2 -2
- package/dist/dock/style.css +26 -23
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/style.css +26 -23
- package/dist/dropdown/index.js +2 -2
- package/dist/dropdown/style.css +26 -23
- package/dist/empty/index.js +1 -1
- package/dist/empty/style.css +26 -23
- package/dist/fieldset/index.js +1 -1
- package/dist/fieldset/style.css +26 -23
- package/dist/file-upload/index.js +1 -1
- package/dist/file-upload/style.css +26 -23
- package/dist/flex/style.css +26 -23
- package/dist/float-label/style.css +26 -23
- package/dist/fluid/style.css +26 -23
- package/dist/form/style.css +26 -23
- package/dist/gallery/index.js +1 -1
- package/dist/gallery/style.css +26 -23
- package/dist/grid/style.css +26 -23
- package/dist/icon/index.js +212 -2
- package/dist/icon/style.css +26 -23
- package/dist/icon-field/index.js +41 -7
- package/dist/icon-field/style.css +672 -54
- package/dist/icon-field/style.js +1 -0
- package/dist/{icon-xUOyawgJ.js → icon-iOBeyIRp.js} +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4722 -3962
- package/dist/inplace/style.css +26 -23
- package/dist/input/index.js +78 -80
- package/dist/input/style.css +198 -56
- package/dist/input-color/style.css +26 -23
- package/dist/input-group/style.css +26 -23
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style.css +129 -63
- package/dist/input-otp/style.css +26 -23
- package/dist/input-password/index.js +83 -82
- package/dist/input-password/style.css +105 -102
- package/dist/input-tags/index.js +1 -1
- package/dist/input-tags/style.css +26 -23
- package/dist/knob/style.css +26 -23
- package/dist/label/style.css +26 -23
- package/dist/layout/index.js +60 -83
- package/dist/layout/style.css +33 -65
- package/dist/listbox/style.css +26 -23
- package/dist/loading/index.js +467 -0
- package/dist/loading/style.css +1380 -0
- package/dist/loading/style.js +3 -0
- package/dist/mega-menu/index.js +2 -2
- package/dist/mega-menu/style.css +26 -23
- package/dist/menu/index.js +2 -2
- package/dist/menu/style.css +30 -24
- package/dist/menubar/index.js +2 -2
- package/dist/menubar/style.css +26 -23
- package/dist/message/index.js +8 -7
- package/dist/message/style.css +26 -23
- package/dist/meter-group/style.css +26 -23
- package/dist/order-list/index.js +1 -1
- package/dist/order-list/style.css +26 -23
- package/dist/page/index.js +1 -1
- package/dist/page/style.css +26 -23
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +26 -23
- package/dist/panel/index.js +1 -1
- package/dist/panel/style.css +26 -23
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +26 -23
- package/dist/popover/style.css +26 -23
- package/dist/progress-bar/style.css +26 -23
- package/dist/progress-spinner/style.css +26 -23
- package/dist/radio/style.css +26 -23
- package/dist/rating/index.js +1 -1
- package/dist/rating/style.css +26 -23
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +26 -23
- package/dist/scroll-top/index.js +1 -1
- package/dist/scroll-top/style.css +26 -23
- package/dist/scrollbar/style.css +26 -23
- package/dist/select/index.js +1 -1
- package/dist/select/style.css +27 -24
- package/dist/select-button/style.css +26 -23
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/styles/control-suffix.css +1 -1
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/style.css +26 -23
- package/dist/skeleton/style.css +26 -23
- package/dist/slider/style.css +26 -23
- package/dist/space/style.css +26 -23
- package/dist/speed-dial/index.js +2 -2
- package/dist/speed-dial/style.css +26 -23
- package/dist/split-button/index.js +1 -1
- package/dist/split-button/style.css +26 -23
- package/dist/splitter/style.css +26 -23
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +26 -23
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/style.css +26 -23
- package/dist/styles/base.css +26 -23
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +26 -23
- package/dist/table/index.js +2 -2
- package/dist/table/style.css +26 -23
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/style.css +26 -23
- package/dist/tag/index.js +1 -1
- package/dist/tag/style.css +26 -23
- package/dist/terminal/style.css +26 -23
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +41 -24
- package/dist/tiered-menu/index.js +1 -1
- package/dist/tiered-menu/style.css +26 -23
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +26 -23
- package/dist/toast/index.js +13 -12
- package/dist/toast/style.css +26 -23
- package/dist/toggle-button/index.js +2 -2
- package/dist/toggle-button/style.css +26 -23
- package/dist/toolbar/style.css +26 -23
- package/dist/tooltip/style.css +26 -23
- package/dist/tree/index.js +1 -1
- package/dist/tree/style.css +26 -23
- package/dist/tree-select/index.js +1 -1
- package/dist/tree-select/style.css +27 -24
- package/dist/tree-table/index.js +1 -1
- package/dist/tree-table/style.css +26 -23
- package/dist/virtual-scroller/style.css +26 -23
- package/package.json +9 -2
- package/dist/Icon-DfpIfo2L.js +0 -521
- package/dist/Renderable-BaaCI4tS.js +0 -45
package/dist/grid/style.css
CHANGED
|
@@ -373,6 +373,17 @@
|
|
|
373
373
|
opacity: var(--m-opacity-disabled);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
.m-input-field__control--prefixed .m-input:disabled,
|
|
377
|
+
.m-input-field__control--suffixed .m-input:disabled,
|
|
378
|
+
.m-input-field__control--clearable .m-input:disabled,
|
|
379
|
+
.m-password--disabled .m-password__input,
|
|
380
|
+
.m-inputnumber--disabled .m-inputnumber__input,
|
|
381
|
+
.m-datepicker--disabled .m-datepicker__input,
|
|
382
|
+
.m-icon-field--anchored .m-input:disabled,
|
|
383
|
+
.m-icon-field--anchored .m-textarea:disabled {
|
|
384
|
+
opacity: 1;
|
|
385
|
+
}
|
|
386
|
+
|
|
376
387
|
.m-input::placeholder,
|
|
377
388
|
.m-textarea::placeholder,
|
|
378
389
|
.m-password__input::placeholder,
|
|
@@ -692,14 +703,6 @@
|
|
|
692
703
|
opacity: var(--m-opacity-disabled);
|
|
693
704
|
}
|
|
694
705
|
|
|
695
|
-
.m-icon-field--left :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
696
|
-
padding-left: var(--m-control-affix-padding);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.m-icon-field--right :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
700
|
-
padding-right: var(--m-control-affix-padding);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
706
|
.m-inputgroup > .m-input,
|
|
704
707
|
.m-inputgroup > .m-input-field,
|
|
705
708
|
.m-inputgroup > .m-password-field,
|
|
@@ -718,16 +721,22 @@
|
|
|
718
721
|
|
|
719
722
|
.m-inputgroup > .m-input,
|
|
720
723
|
.m-inputgroup .m-input,
|
|
721
|
-
.m-inputgroup .m-
|
|
722
|
-
.m-inputgroup .m-inputnumber__input
|
|
724
|
+
.m-inputgroup .m-password,
|
|
725
|
+
.m-inputgroup .m-inputnumber__input-wrap,
|
|
726
|
+
.m-inputgroup .m-input-field__control--prefixed,
|
|
727
|
+
.m-inputgroup .m-input-field__control--suffixed,
|
|
728
|
+
.m-inputgroup .m-input-field__control--clearable {
|
|
723
729
|
border-radius: 0;
|
|
724
730
|
width: 100%;
|
|
725
731
|
}
|
|
726
732
|
|
|
727
733
|
.m-inputgroup > :first-child.m-input,
|
|
728
734
|
.m-inputgroup > :first-child .m-input,
|
|
729
|
-
.m-inputgroup > :first-child .m-
|
|
730
|
-
.m-inputgroup > :first-child .m-inputnumber__input,
|
|
735
|
+
.m-inputgroup > :first-child .m-password,
|
|
736
|
+
.m-inputgroup > :first-child .m-inputnumber__input-wrap,
|
|
737
|
+
.m-inputgroup > :first-child .m-input-field__control--prefixed,
|
|
738
|
+
.m-inputgroup > :first-child .m-input-field__control--suffixed,
|
|
739
|
+
.m-inputgroup > :first-child .m-input-field__control--clearable,
|
|
731
740
|
.m-inputgroup > :first-child.m-inputgroup-addon {
|
|
732
741
|
border-bottom-left-radius: var(--m-radius-control);
|
|
733
742
|
border-top-left-radius: var(--m-radius-control);
|
|
@@ -735,8 +744,11 @@
|
|
|
735
744
|
|
|
736
745
|
.m-inputgroup > :last-child.m-input,
|
|
737
746
|
.m-inputgroup > :last-child .m-input,
|
|
738
|
-
.m-inputgroup > :last-child .m-
|
|
739
|
-
.m-inputgroup > :last-child .m-inputnumber__input,
|
|
747
|
+
.m-inputgroup > :last-child .m-password,
|
|
748
|
+
.m-inputgroup > :last-child .m-inputnumber__input-wrap,
|
|
749
|
+
.m-inputgroup > :last-child .m-input-field__control--prefixed,
|
|
750
|
+
.m-inputgroup > :last-child .m-input-field__control--suffixed,
|
|
751
|
+
.m-inputgroup > :last-child .m-input-field__control--clearable,
|
|
740
752
|
.m-inputgroup > :last-child.m-inputgroup-addon {
|
|
741
753
|
border-bottom-right-radius: var(--m-radius-control);
|
|
742
754
|
border-top-right-radius: var(--m-radius-control);
|
|
@@ -887,9 +899,6 @@
|
|
|
887
899
|
}
|
|
888
900
|
|
|
889
901
|
/* Shared Naive-like hover/focus for remaining form triggers */
|
|
890
|
-
.m-inputnumber__input:hover:not(:disabled):not(:focus),
|
|
891
|
-
.m-password__input:hover:not(:disabled):not(:focus),
|
|
892
|
-
.m-datepicker__input:hover:not(:disabled):not(:focus),
|
|
893
902
|
.m-inputotp__input:hover:not(:disabled):not(:focus),
|
|
894
903
|
.m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
895
904
|
.m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
@@ -900,9 +909,6 @@
|
|
|
900
909
|
border-color: var(--m-color-primary-hover);
|
|
901
910
|
}
|
|
902
911
|
|
|
903
|
-
.m-inputnumber__input:focus-visible,
|
|
904
|
-
.m-password__input:focus-visible,
|
|
905
|
-
.m-datepicker__input:focus-visible,
|
|
906
912
|
.m-inputotp__input:focus-visible,
|
|
907
913
|
.m-cascadeselect__trigger:focus-visible,
|
|
908
914
|
.m-treeselect__trigger:focus-visible,
|
|
@@ -919,9 +925,6 @@
|
|
|
919
925
|
outline: none;
|
|
920
926
|
}
|
|
921
927
|
|
|
922
|
-
.m-inputnumber--invalid .m-inputnumber__input:focus-visible,
|
|
923
|
-
.m-password--invalid .m-password__input:focus-visible,
|
|
924
|
-
.m-datepicker--invalid .m-datepicker__input:focus-visible,
|
|
925
928
|
.m-inputotp--invalid .m-inputotp__input:focus-visible,
|
|
926
929
|
.m-inputtags--invalid:focus-within,
|
|
927
930
|
.m-inputcolor--invalid .m-inputcolor__text:focus-visible {
|
package/dist/icon/index.js
CHANGED
|
@@ -1,3 +1,213 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "../Icon-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "../Icon-B6IBrJ5S.js";
|
|
2
2
|
import "./style.js";
|
|
3
|
-
|
|
3
|
+
//#region src/components/Icon/icon-categories.ts
|
|
4
|
+
var a = [
|
|
5
|
+
{
|
|
6
|
+
id: "arrows",
|
|
7
|
+
labelZh: "箭头 / 方向",
|
|
8
|
+
labelEn: "Arrows"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: "status",
|
|
12
|
+
labelZh: "状态 / 反馈",
|
|
13
|
+
labelEn: "Status"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: "actions",
|
|
17
|
+
labelZh: "操作",
|
|
18
|
+
labelEn: "Actions"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "navigation",
|
|
22
|
+
labelZh: "导航 / 布局",
|
|
23
|
+
labelEn: "Navigation"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "people",
|
|
27
|
+
labelZh: "用户",
|
|
28
|
+
labelEn: "People"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "files",
|
|
32
|
+
labelZh: "文件 / 数据",
|
|
33
|
+
labelEn: "Files"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "media",
|
|
37
|
+
labelZh: "媒体",
|
|
38
|
+
labelEn: "Media"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "devices",
|
|
42
|
+
labelZh: "设备 / 系统",
|
|
43
|
+
labelEn: "Devices"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "commerce",
|
|
47
|
+
labelZh: "商业",
|
|
48
|
+
labelEn: "Commerce"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "charts",
|
|
52
|
+
labelZh: "图表",
|
|
53
|
+
labelEn: "Charts"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "communication",
|
|
57
|
+
labelZh: "通讯",
|
|
58
|
+
labelEn: "Communication"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "security",
|
|
62
|
+
labelZh: "安全",
|
|
63
|
+
labelEn: "Security"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "weather",
|
|
67
|
+
labelZh: "天气 / 主题",
|
|
68
|
+
labelEn: "Weather"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "other",
|
|
72
|
+
labelZh: "其他",
|
|
73
|
+
labelEn: "Other"
|
|
74
|
+
}
|
|
75
|
+
], o = {
|
|
76
|
+
arrows: [
|
|
77
|
+
"chevron-up",
|
|
78
|
+
"chevron-down",
|
|
79
|
+
"chevron-left",
|
|
80
|
+
"chevron-right",
|
|
81
|
+
"arrow-up",
|
|
82
|
+
"arrow-down",
|
|
83
|
+
"arrow-left",
|
|
84
|
+
"arrow-right",
|
|
85
|
+
"arrow-back-up",
|
|
86
|
+
"arrow-forward-up",
|
|
87
|
+
"undo",
|
|
88
|
+
"redo",
|
|
89
|
+
"external-link",
|
|
90
|
+
"logout",
|
|
91
|
+
"login",
|
|
92
|
+
"send",
|
|
93
|
+
"share",
|
|
94
|
+
"refresh",
|
|
95
|
+
"sort"
|
|
96
|
+
],
|
|
97
|
+
status: [
|
|
98
|
+
"check",
|
|
99
|
+
"check-circle",
|
|
100
|
+
"close",
|
|
101
|
+
"x-circle",
|
|
102
|
+
"info",
|
|
103
|
+
"info-circle",
|
|
104
|
+
"warning",
|
|
105
|
+
"alert-circle",
|
|
106
|
+
"help-circle",
|
|
107
|
+
"ban",
|
|
108
|
+
"loader",
|
|
109
|
+
"star",
|
|
110
|
+
"heart",
|
|
111
|
+
"sparkles",
|
|
112
|
+
"rocket"
|
|
113
|
+
],
|
|
114
|
+
actions: /* @__PURE__ */ "plus.minus.search.edit.trash.copy.download.upload.filter.more.more-vertical.menu.grip.maximize.restore.zoom-in.zoom-out.save.device-floppy.cut.scissors.printer.play.pause.player-play.player-pause.clipboard.paperclip.history.archive".split("."),
|
|
115
|
+
navigation: [
|
|
116
|
+
"home",
|
|
117
|
+
"layout-dashboard",
|
|
118
|
+
"layout-grid",
|
|
119
|
+
"grid",
|
|
120
|
+
"list",
|
|
121
|
+
"table",
|
|
122
|
+
"layers",
|
|
123
|
+
"stack",
|
|
124
|
+
"settings",
|
|
125
|
+
"sliders",
|
|
126
|
+
"adjustments-horizontal",
|
|
127
|
+
"components",
|
|
128
|
+
"palette"
|
|
129
|
+
],
|
|
130
|
+
people: [
|
|
131
|
+
"user",
|
|
132
|
+
"users",
|
|
133
|
+
"user-plus"
|
|
134
|
+
],
|
|
135
|
+
files: [
|
|
136
|
+
"folder",
|
|
137
|
+
"folder-open",
|
|
138
|
+
"file",
|
|
139
|
+
"file-text",
|
|
140
|
+
"book",
|
|
141
|
+
"database",
|
|
142
|
+
"box",
|
|
143
|
+
"package"
|
|
144
|
+
],
|
|
145
|
+
media: [
|
|
146
|
+
"photo",
|
|
147
|
+
"image",
|
|
148
|
+
"video",
|
|
149
|
+
"microphone",
|
|
150
|
+
"eye",
|
|
151
|
+
"eye-off"
|
|
152
|
+
],
|
|
153
|
+
devices: [
|
|
154
|
+
"device-desktop",
|
|
155
|
+
"device-mobile",
|
|
156
|
+
"phone",
|
|
157
|
+
"wifi",
|
|
158
|
+
"server",
|
|
159
|
+
"cloud",
|
|
160
|
+
"terminal",
|
|
161
|
+
"code"
|
|
162
|
+
],
|
|
163
|
+
commerce: [
|
|
164
|
+
"shopping-cart",
|
|
165
|
+
"credit-card",
|
|
166
|
+
"briefcase",
|
|
167
|
+
"building",
|
|
168
|
+
"map-pin",
|
|
169
|
+
"world"
|
|
170
|
+
],
|
|
171
|
+
charts: [
|
|
172
|
+
"chart-bar",
|
|
173
|
+
"chart-line",
|
|
174
|
+
"chart-pie",
|
|
175
|
+
"activity"
|
|
176
|
+
],
|
|
177
|
+
communication: [
|
|
178
|
+
"mail",
|
|
179
|
+
"message",
|
|
180
|
+
"bell"
|
|
181
|
+
],
|
|
182
|
+
security: [
|
|
183
|
+
"lock",
|
|
184
|
+
"unlock",
|
|
185
|
+
"link",
|
|
186
|
+
"shield",
|
|
187
|
+
"key"
|
|
188
|
+
],
|
|
189
|
+
weather: [
|
|
190
|
+
"sun",
|
|
191
|
+
"moon",
|
|
192
|
+
"calendar",
|
|
193
|
+
"clock"
|
|
194
|
+
]
|
|
195
|
+
}, s = /* @__PURE__ */ new Map();
|
|
196
|
+
for (let [e, t] of Object.entries(o)) for (let n of t) s.set(n, e);
|
|
197
|
+
function c(e) {
|
|
198
|
+
return s.get(e) ?? "other";
|
|
199
|
+
}
|
|
200
|
+
function l(e = r) {
|
|
201
|
+
let t = /* @__PURE__ */ new Map();
|
|
202
|
+
for (let e of a) t.set(e.id, []);
|
|
203
|
+
for (let n of e) {
|
|
204
|
+
let e = c(n);
|
|
205
|
+
t.get(e).push(n);
|
|
206
|
+
}
|
|
207
|
+
return a.map((e) => ({
|
|
208
|
+
...e,
|
|
209
|
+
icons: t.get(e.id) ?? []
|
|
210
|
+
})).filter((e) => e.icons.length > 0);
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
213
|
+
export { i as MIcon, c as getIconCategory, l as getIconCategoryGroups, n as getIconDefinition, a as iconCategoryMeta, r as iconNames, t as iconRegistry, e as isIconName };
|
package/dist/icon/style.css
CHANGED
|
@@ -373,6 +373,17 @@
|
|
|
373
373
|
opacity: var(--m-opacity-disabled);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
.m-input-field__control--prefixed .m-input:disabled,
|
|
377
|
+
.m-input-field__control--suffixed .m-input:disabled,
|
|
378
|
+
.m-input-field__control--clearable .m-input:disabled,
|
|
379
|
+
.m-password--disabled .m-password__input,
|
|
380
|
+
.m-inputnumber--disabled .m-inputnumber__input,
|
|
381
|
+
.m-datepicker--disabled .m-datepicker__input,
|
|
382
|
+
.m-icon-field--anchored .m-input:disabled,
|
|
383
|
+
.m-icon-field--anchored .m-textarea:disabled {
|
|
384
|
+
opacity: 1;
|
|
385
|
+
}
|
|
386
|
+
|
|
376
387
|
.m-input::placeholder,
|
|
377
388
|
.m-textarea::placeholder,
|
|
378
389
|
.m-password__input::placeholder,
|
|
@@ -692,14 +703,6 @@
|
|
|
692
703
|
opacity: var(--m-opacity-disabled);
|
|
693
704
|
}
|
|
694
705
|
|
|
695
|
-
.m-icon-field--left :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
696
|
-
padding-left: var(--m-control-affix-padding);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.m-icon-field--right :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
700
|
-
padding-right: var(--m-control-affix-padding);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
706
|
.m-inputgroup > .m-input,
|
|
704
707
|
.m-inputgroup > .m-input-field,
|
|
705
708
|
.m-inputgroup > .m-password-field,
|
|
@@ -718,16 +721,22 @@
|
|
|
718
721
|
|
|
719
722
|
.m-inputgroup > .m-input,
|
|
720
723
|
.m-inputgroup .m-input,
|
|
721
|
-
.m-inputgroup .m-
|
|
722
|
-
.m-inputgroup .m-inputnumber__input
|
|
724
|
+
.m-inputgroup .m-password,
|
|
725
|
+
.m-inputgroup .m-inputnumber__input-wrap,
|
|
726
|
+
.m-inputgroup .m-input-field__control--prefixed,
|
|
727
|
+
.m-inputgroup .m-input-field__control--suffixed,
|
|
728
|
+
.m-inputgroup .m-input-field__control--clearable {
|
|
723
729
|
border-radius: 0;
|
|
724
730
|
width: 100%;
|
|
725
731
|
}
|
|
726
732
|
|
|
727
733
|
.m-inputgroup > :first-child.m-input,
|
|
728
734
|
.m-inputgroup > :first-child .m-input,
|
|
729
|
-
.m-inputgroup > :first-child .m-
|
|
730
|
-
.m-inputgroup > :first-child .m-inputnumber__input,
|
|
735
|
+
.m-inputgroup > :first-child .m-password,
|
|
736
|
+
.m-inputgroup > :first-child .m-inputnumber__input-wrap,
|
|
737
|
+
.m-inputgroup > :first-child .m-input-field__control--prefixed,
|
|
738
|
+
.m-inputgroup > :first-child .m-input-field__control--suffixed,
|
|
739
|
+
.m-inputgroup > :first-child .m-input-field__control--clearable,
|
|
731
740
|
.m-inputgroup > :first-child.m-inputgroup-addon {
|
|
732
741
|
border-bottom-left-radius: var(--m-radius-control);
|
|
733
742
|
border-top-left-radius: var(--m-radius-control);
|
|
@@ -735,8 +744,11 @@
|
|
|
735
744
|
|
|
736
745
|
.m-inputgroup > :last-child.m-input,
|
|
737
746
|
.m-inputgroup > :last-child .m-input,
|
|
738
|
-
.m-inputgroup > :last-child .m-
|
|
739
|
-
.m-inputgroup > :last-child .m-inputnumber__input,
|
|
747
|
+
.m-inputgroup > :last-child .m-password,
|
|
748
|
+
.m-inputgroup > :last-child .m-inputnumber__input-wrap,
|
|
749
|
+
.m-inputgroup > :last-child .m-input-field__control--prefixed,
|
|
750
|
+
.m-inputgroup > :last-child .m-input-field__control--suffixed,
|
|
751
|
+
.m-inputgroup > :last-child .m-input-field__control--clearable,
|
|
740
752
|
.m-inputgroup > :last-child.m-inputgroup-addon {
|
|
741
753
|
border-bottom-right-radius: var(--m-radius-control);
|
|
742
754
|
border-top-right-radius: var(--m-radius-control);
|
|
@@ -887,9 +899,6 @@
|
|
|
887
899
|
}
|
|
888
900
|
|
|
889
901
|
/* Shared Naive-like hover/focus for remaining form triggers */
|
|
890
|
-
.m-inputnumber__input:hover:not(:disabled):not(:focus),
|
|
891
|
-
.m-password__input:hover:not(:disabled):not(:focus),
|
|
892
|
-
.m-datepicker__input:hover:not(:disabled):not(:focus),
|
|
893
902
|
.m-inputotp__input:hover:not(:disabled):not(:focus),
|
|
894
903
|
.m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
895
904
|
.m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
@@ -900,9 +909,6 @@
|
|
|
900
909
|
border-color: var(--m-color-primary-hover);
|
|
901
910
|
}
|
|
902
911
|
|
|
903
|
-
.m-inputnumber__input:focus-visible,
|
|
904
|
-
.m-password__input:focus-visible,
|
|
905
|
-
.m-datepicker__input:focus-visible,
|
|
906
912
|
.m-inputotp__input:focus-visible,
|
|
907
913
|
.m-cascadeselect__trigger:focus-visible,
|
|
908
914
|
.m-treeselect__trigger:focus-visible,
|
|
@@ -919,9 +925,6 @@
|
|
|
919
925
|
outline: none;
|
|
920
926
|
}
|
|
921
927
|
|
|
922
|
-
.m-inputnumber--invalid .m-inputnumber__input:focus-visible,
|
|
923
|
-
.m-password--invalid .m-password__input:focus-visible,
|
|
924
|
-
.m-datepicker--invalid .m-datepicker__input:focus-visible,
|
|
925
928
|
.m-inputotp--invalid .m-inputotp__input:focus-visible,
|
|
926
929
|
.m-inputtags--invalid:focus-within,
|
|
927
930
|
.m-inputcolor--invalid .m-inputcolor__text:focus-visible {
|
package/dist/icon-field/index.js
CHANGED
|
@@ -1,22 +1,56 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import "./style.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeProps as c, nextTick as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p, renderSlot as m, unref as h, useAttrs as g, useSlots as _ } from "vue";
|
|
4
4
|
//#region src/components/IconField/IconField.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
5
|
+
var v = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "m-icon-field__icon",
|
|
8
8
|
"aria-hidden": "true"
|
|
9
|
-
},
|
|
9
|
+
}, y = {
|
|
10
|
+
class: "m-icon-field__icon",
|
|
11
|
+
"aria-hidden": "true"
|
|
12
|
+
}, b = /* @__PURE__ */ s({
|
|
10
13
|
inheritAttrs: !1,
|
|
11
14
|
__name: "IconField",
|
|
12
15
|
props: {
|
|
13
16
|
iconPosition: { default: "left" },
|
|
14
17
|
pt: {}
|
|
15
18
|
},
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
+
setup(s) {
|
|
20
|
+
let b = s, x = g(), S = _(), { rootAttrs: C } = e(x, () => b.pt), w = p(null), T = p(null), E = null, D = [
|
|
21
|
+
".m-input-field__control",
|
|
22
|
+
".m-password",
|
|
23
|
+
".m-textarea-field__control",
|
|
24
|
+
".m-inputnumber__input-wrap",
|
|
25
|
+
".m-autocomplete__control",
|
|
26
|
+
".m-datepicker__control"
|
|
27
|
+
].join(", "), O = n(() => [
|
|
28
|
+
"m-icon-field",
|
|
29
|
+
b.iconPosition === "right" ? "m-icon-field--right" : "m-icon-field--left",
|
|
30
|
+
{ "m-icon-field--anchored": !!(T.value && S.icon) }
|
|
31
|
+
]);
|
|
32
|
+
function k() {
|
|
33
|
+
let e = w.value;
|
|
34
|
+
T.value = e?.querySelector(D) ?? null;
|
|
35
|
+
}
|
|
36
|
+
return d(async () => {
|
|
37
|
+
await l(), k(), !(!w.value || typeof MutationObserver > "u") && (E = new MutationObserver(() => {
|
|
38
|
+
k();
|
|
39
|
+
}), E.observe(w.value, {
|
|
40
|
+
childList: !0,
|
|
41
|
+
subtree: !0
|
|
42
|
+
}));
|
|
43
|
+
}), u(() => {
|
|
44
|
+
E?.disconnect(), E = null;
|
|
45
|
+
}), (e, n) => (f(), a("div", c(h(C), { class: O.value }), [e.$slots.icon && !T.value ? (f(), a("span", v, [m(e.$slots, "icon")])) : i("", !0), o("div", {
|
|
46
|
+
ref_key: "bodyRef",
|
|
47
|
+
ref: w,
|
|
48
|
+
class: "m-icon-field__body"
|
|
49
|
+
}, [m(e.$slots, "default"), e.$slots.icon && T.value ? (f(), r(t, {
|
|
50
|
+
key: 0,
|
|
51
|
+
to: T.value
|
|
52
|
+
}, [o("span", y, [m(e.$slots, "icon")])], 8, ["to"])) : i("", !0)], 512)], 16));
|
|
19
53
|
}
|
|
20
54
|
});
|
|
21
55
|
//#endregion
|
|
22
|
-
export {
|
|
56
|
+
export { b as MIconField };
|