morya-ui 0.2.8 → 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 +27 -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/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/components/AutoComplete/styles.css +38 -17
- 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/Menu/styles.css +4 -1
- package/dist/components/Textarea/styles.css +15 -1
- package/dist/config-provider/style.css +198 -56
- package/dist/confirm-dialog/index.js +2 -2
- 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/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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3126 -2821
- 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/style.css +26 -23
- 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 +1 -1
- 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/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/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 +1 -1
- 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 +1 -1
- package/dist/Icon-DfpIfo2L.js +0 -521
|
@@ -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/knob/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/label/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/layout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-B6IBrJ5S.js";
|
|
3
3
|
import { t as n } from "../Scrollbar-BYnCO8fv.js";
|
|
4
4
|
import { r, t as i } from "../responsive-DA5bxylA.js";
|
|
5
5
|
import { n as a } from "../locale-B36KH7c3.js";
|
|
@@ -199,10 +199,11 @@ function M(e, t) {
|
|
|
199
199
|
}
|
|
200
200
|
function N(e) {
|
|
201
201
|
return o(() => {
|
|
202
|
-
let t = x(e), n = {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
let t = x(e), n = { borderRadius: M(t.radius, "var(--m-layout-radius, 0)") };
|
|
203
|
+
if (t.padding != null) {
|
|
204
|
+
let e = r(t.padding);
|
|
205
|
+
e && (n.padding = e);
|
|
206
|
+
} else t.applyDefaultPadding !== !1 && (n.padding = "var(--m-layout-padding, var(--m-space-4))");
|
|
206
207
|
if (t.heightFallback != null) n.height = M(t.height, t.heightFallback);
|
|
207
208
|
else if (t.height != null) {
|
|
208
209
|
let e = r(t.height);
|
|
@@ -226,36 +227,24 @@ var P = /* @__PURE__ */ f({
|
|
|
226
227
|
type: Boolean,
|
|
227
228
|
default: !1
|
|
228
229
|
},
|
|
229
|
-
position: { default: "static" }
|
|
230
|
-
contentClass: {},
|
|
231
|
-
contentStyle: {}
|
|
230
|
+
position: { default: "static" }
|
|
232
231
|
},
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
})),
|
|
232
|
+
setup(t) {
|
|
233
|
+
let n = t, r = C(), { rootAttrs: i } = e(r, () => n.pt), a = N(() => ({
|
|
234
|
+
height: n.height,
|
|
235
|
+
padding: n.padding,
|
|
236
|
+
radius: n.radius,
|
|
237
|
+
applyDefaultPadding: !1
|
|
238
|
+
})), s = o(() => [
|
|
240
239
|
"m-layout",
|
|
241
240
|
"m-layout-content",
|
|
242
|
-
`m-layout--${
|
|
243
|
-
{ "m-layout--embedded":
|
|
244
|
-
])
|
|
245
|
-
return
|
|
246
|
-
class:
|
|
247
|
-
style: S(
|
|
248
|
-
}), [
|
|
249
|
-
ref_key: "scrollRegionRef",
|
|
250
|
-
ref: u,
|
|
251
|
-
"scrollbar-root-class": "m-layout__scrollbar",
|
|
252
|
-
"scroll-class": h.value,
|
|
253
|
-
"scroll-style": g.value,
|
|
254
|
-
onScroll: t[0] ||= (e) => a("scroll", e)
|
|
255
|
-
}, {
|
|
256
|
-
default: T(() => [b(e.$slots, "default")]),
|
|
257
|
-
_: 3
|
|
258
|
-
}, 8, ["scroll-class", "scroll-style"])], 16));
|
|
241
|
+
`m-layout--${n.position}-positioned`,
|
|
242
|
+
{ "m-layout--embedded": n.embedded }
|
|
243
|
+
]);
|
|
244
|
+
return (e, t) => (_(), l("main", m(S(i), {
|
|
245
|
+
class: s.value,
|
|
246
|
+
style: S(a)
|
|
247
|
+
}), [b(e.$slots, "default")], 16));
|
|
259
248
|
}
|
|
260
249
|
}), F = /* @__PURE__ */ f({
|
|
261
250
|
name: "MLayoutFooter",
|
|
@@ -407,76 +396,64 @@ var z = ["aria-expanded", "aria-label"], B = {
|
|
|
407
396
|
triggerClass: {},
|
|
408
397
|
triggerStyle: {},
|
|
409
398
|
collapsedTriggerClass: {},
|
|
410
|
-
collapsedTriggerStyle: {}
|
|
411
|
-
contentClass: {},
|
|
412
|
-
contentStyle: {}
|
|
399
|
+
collapsedTriggerStyle: {}
|
|
413
400
|
},
|
|
414
401
|
emits: [
|
|
415
402
|
"update:collapsed",
|
|
416
403
|
"collapse",
|
|
417
404
|
"expand",
|
|
418
405
|
"after-enter",
|
|
419
|
-
"after-leave"
|
|
420
|
-
"scroll"
|
|
406
|
+
"after-leave"
|
|
421
407
|
],
|
|
422
|
-
setup(n, {
|
|
423
|
-
let
|
|
408
|
+
setup(n, { emit: s }) {
|
|
409
|
+
let f = n, v = s, y = C(), { rootAttrs: x } = e(y, () => f.pt), w = a(), T = p(E, null), { mergedCollapsed: D, toggle: O } = L(f, v), k = o(() => T?.siderPlacement ?? "left"), A = o(() => r(f.width)), j = o(() => r(f.collapsedWidth)), M = o(() => A.value ?? "var(--m-layout-sider-width)"), N = o(() => j.value ?? "var(--m-layout-sider-collapsed-width)"), P = o(() => D.value ? N.value : M.value), F = o(() => R(f.showTrigger)), I = o(() => !D.value || f.showCollapsedContent), U = o(() => [
|
|
424
410
|
"m-layout-sider",
|
|
425
|
-
`m-layout-sider--${
|
|
426
|
-
`m-layout-sider--${
|
|
427
|
-
`m-layout-sider--collapse-${
|
|
411
|
+
`m-layout-sider--${f.position}-positioned`,
|
|
412
|
+
`m-layout-sider--${k.value}-placement`,
|
|
413
|
+
`m-layout-sider--collapse-${f.collapseMode}`,
|
|
428
414
|
{
|
|
429
|
-
"m-layout-sider--bordered":
|
|
430
|
-
"m-layout-sider--inverted":
|
|
431
|
-
"m-layout-sider--collapsed":
|
|
432
|
-
"m-layout-sider--show-content":
|
|
415
|
+
"m-layout-sider--bordered": f.bordered,
|
|
416
|
+
"m-layout-sider--inverted": f.inverted,
|
|
417
|
+
"m-layout-sider--collapsed": D.value,
|
|
418
|
+
"m-layout-sider--show-content": I.value
|
|
433
419
|
}
|
|
434
|
-
]),
|
|
435
|
-
let e =
|
|
420
|
+
]), W = o(() => {
|
|
421
|
+
let e = f.collapseMode === "width", t = {
|
|
436
422
|
minWidth: "0",
|
|
437
|
-
borderRadius:
|
|
438
|
-
width: e ?
|
|
439
|
-
maxWidth:
|
|
423
|
+
borderRadius: f.radius == null ? "var(--m-layout-radius, 0)" : r(f.radius),
|
|
424
|
+
width: e ? P.value : M.value,
|
|
425
|
+
maxWidth: P.value
|
|
440
426
|
};
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
427
|
+
if (f.padding != null) {
|
|
428
|
+
let e = r(f.padding);
|
|
429
|
+
e && (t.padding = e);
|
|
430
|
+
}
|
|
431
|
+
return A.value && !i(A.value, "--m-layout-sider-width") && (t["--m-layout-sider-width"] = A.value), j.value && !i(j.value, "--m-layout-sider-collapsed-width") && (t["--m-layout-sider-collapsed-width"] = j.value), t;
|
|
432
|
+
}), G = o(() => D.value ? f.collapsedTriggerClass : f.triggerClass), K = o(() => D.value ? f.collapsedTriggerStyle : f.triggerStyle);
|
|
433
|
+
function q(e) {
|
|
434
|
+
e.propertyName === "max-width" && (D.value ? v("after-leave") : v("after-enter"));
|
|
448
435
|
}
|
|
449
|
-
return
|
|
450
|
-
class:
|
|
451
|
-
style:
|
|
452
|
-
onTransitionend:
|
|
436
|
+
return (e, r) => (_(), l("aside", m(S(x), {
|
|
437
|
+
class: U.value,
|
|
438
|
+
style: W.value,
|
|
439
|
+
onTransitionend: q
|
|
453
440
|
}), [
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
ref: j,
|
|
457
|
-
"scrollbar-root-class": "m-layout-sider__scrollbar",
|
|
458
|
-
"scroll-class": Q.value,
|
|
459
|
-
"scroll-style": Z.value,
|
|
460
|
-
onScroll: r[0] ||= (e) => x("scroll", e)
|
|
461
|
-
}, {
|
|
462
|
-
default: T(() => [b(e.$slots, "default")]),
|
|
463
|
-
_: 3
|
|
464
|
-
}, 8, ["scroll-class", "scroll-style"]),
|
|
465
|
-
K.value ? (_(), l("button", {
|
|
441
|
+
b(e.$slots, "default"),
|
|
442
|
+
F.value ? (_(), l("button", {
|
|
466
443
|
key: 0,
|
|
467
444
|
type: "button",
|
|
468
|
-
class: h(["m-layout-sider__trigger", [
|
|
469
|
-
"m-layout-sider__trigger--bar":
|
|
470
|
-
"m-layout-sider__trigger--arrow-circle":
|
|
445
|
+
class: h(["m-layout-sider__trigger", [G.value, {
|
|
446
|
+
"m-layout-sider__trigger--bar": F.value === "bar",
|
|
447
|
+
"m-layout-sider__trigger--arrow-circle": F.value === "arrow-circle"
|
|
471
448
|
}]]),
|
|
472
|
-
style: g(
|
|
473
|
-
"aria-expanded": !S(
|
|
474
|
-
"aria-label": S(
|
|
475
|
-
onClick: r[
|
|
476
|
-
}, [
|
|
449
|
+
style: g(K.value),
|
|
450
|
+
"aria-expanded": !S(D),
|
|
451
|
+
"aria-label": S(D) ? S(w).expand : S(w).collapse,
|
|
452
|
+
onClick: r[0] ||= (...e) => S(O) && S(O)(...e)
|
|
453
|
+
}, [F.value === "arrow-circle" ? (_(), l("span", B, [d(t, {
|
|
477
454
|
name: "chevron-right",
|
|
478
455
|
size: "sm"
|
|
479
|
-
})])) : (_(), l("span", V, [...r[
|
|
456
|
+
})])) : (_(), l("span", V, [...r[1] ||= [u("i", { class: "m-layout-sider__bar-top" }, null, -1), u("i", { class: "m-layout-sider__bar-bottom" }, null, -1)]]))], 14, z)) : c("", !0),
|
|
480
457
|
n.bordered ? (_(), l("div", H)) : c("", !0)
|
|
481
458
|
], 16));
|
|
482
459
|
}
|