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
|
@@ -17,62 +17,35 @@
|
|
|
17
17
|
|
|
18
18
|
.m-password {
|
|
19
19
|
--m-password-toggle-size: var(--m-control-affix-size);
|
|
20
|
-
|
|
21
|
-
max-width: 100%;
|
|
22
|
-
position: relative;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.m-password--fluid {
|
|
26
|
-
display: flex;
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.m-password__input {
|
|
20
|
+
align-items: center;
|
|
31
21
|
background: var(--m-color-surface);
|
|
32
22
|
border: var(--m-border-width) solid var(--m-color-border);
|
|
33
23
|
border-radius: var(--m-radius-control);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
max-width: 100%;
|
|
37
27
|
min-height: var(--m-control-height-medium);
|
|
38
|
-
padding: 0 var(--m-control-padding-x-medium);
|
|
39
28
|
transition:
|
|
40
29
|
border-color var(--m-motion-fast) var(--m-motion-ease),
|
|
41
30
|
box-shadow var(--m-motion-fast) var(--m-motion-ease),
|
|
42
31
|
background-color var(--m-motion-fast) var(--m-motion-ease),
|
|
43
32
|
opacity var(--m-motion-fast) var(--m-motion-ease);
|
|
44
|
-
width: 100%;
|
|
45
33
|
}
|
|
46
34
|
|
|
47
|
-
.m-password--
|
|
48
|
-
|
|
35
|
+
.m-password--fluid {
|
|
36
|
+
display: flex;
|
|
37
|
+
width: 100%;
|
|
49
38
|
}
|
|
50
39
|
|
|
51
|
-
.m-password--small
|
|
40
|
+
.m-password--small {
|
|
52
41
|
min-height: var(--m-control-height-small);
|
|
53
|
-
font-size: var(--m-control-font-small);
|
|
54
|
-
padding: 0 var(--m-control-padding-x-small);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.m-password--small.m-password--toggle .m-password__input {
|
|
58
|
-
padding-right: var(--m-control-affix-gap);
|
|
59
42
|
}
|
|
60
43
|
|
|
61
|
-
.m-password--large
|
|
44
|
+
.m-password--large {
|
|
62
45
|
min-height: var(--m-control-height-large);
|
|
63
|
-
font-size: var(--m-control-font-large);
|
|
64
|
-
padding: 0 var(--m-control-padding-x-large);
|
|
65
46
|
}
|
|
66
47
|
|
|
67
|
-
.m-password--
|
|
68
|
-
padding-right: var(--m-control-affix-gap);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.m-password--invalid .m-password__input {
|
|
72
|
-
border-color: var(--m-color-danger);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.m-password--filled .m-password__input {
|
|
48
|
+
.m-password--filled {
|
|
76
49
|
background: color-mix(
|
|
77
50
|
in srgb,
|
|
78
51
|
var(--m-color-text-muted) 12%,
|
|
@@ -81,84 +54,111 @@
|
|
|
81
54
|
border-color: transparent;
|
|
82
55
|
}
|
|
83
56
|
|
|
84
|
-
.m-
|
|
85
|
-
|
|
86
|
-
background: transparent;
|
|
87
|
-
border: 0;
|
|
88
|
-
border-radius: var(--m-radius-sm);
|
|
89
|
-
color: var(--m-color-text-muted);
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
display: inline-flex;
|
|
92
|
-
font-size: var(--m-font-size-lg);
|
|
93
|
-
height: var(--m-control-affix-size);
|
|
94
|
-
justify-content: center;
|
|
95
|
-
padding: 0;
|
|
96
|
-
position: absolute;
|
|
97
|
-
right: var(--m-space-1);
|
|
98
|
-
top: 50%;
|
|
99
|
-
transform: translateY(-50%);
|
|
100
|
-
width: var(--m-control-affix-size);
|
|
101
|
-
z-index: 1;
|
|
57
|
+
.m-password--invalid {
|
|
58
|
+
border-color: var(--m-color-danger);
|
|
102
59
|
}
|
|
103
60
|
|
|
104
|
-
.m-password
|
|
105
|
-
|
|
61
|
+
.m-password:hover:not(.m-password--disabled):not(:focus-within) {
|
|
62
|
+
border-color: var(--m-color-primary-hover);
|
|
106
63
|
}
|
|
107
64
|
|
|
108
|
-
.m-
|
|
109
|
-
color: var(--m-color-
|
|
65
|
+
.m-password:focus-within {
|
|
66
|
+
border-color: var(--m-color-primary-hover);
|
|
67
|
+
box-shadow: var(--m-focus-shadow);
|
|
110
68
|
}
|
|
111
69
|
|
|
112
|
-
.m-
|
|
113
|
-
|
|
114
|
-
|
|
70
|
+
.m-password--invalid:focus-within {
|
|
71
|
+
border-color: var(--m-color-danger);
|
|
72
|
+
box-shadow: var(--m-focus-shadow-danger);
|
|
115
73
|
}
|
|
116
74
|
|
|
117
|
-
.m-
|
|
75
|
+
.m-password--disabled {
|
|
118
76
|
cursor: not-allowed;
|
|
119
77
|
opacity: var(--m-opacity-disabled);
|
|
120
78
|
}
|
|
121
79
|
|
|
122
|
-
.m-
|
|
123
|
-
|
|
124
|
-
|
|
80
|
+
.m-password__input {
|
|
81
|
+
background: transparent;
|
|
82
|
+
border: 0;
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
color: var(--m-color-text);
|
|
86
|
+
flex: 1 1 auto;
|
|
87
|
+
font-family: var(--m-font-sans);
|
|
88
|
+
font-size: var(--m-control-font-medium);
|
|
89
|
+
height: calc(var(--m-control-height-medium) - 2 * var(--m-border-width));
|
|
90
|
+
line-height: calc(var(--m-control-height-medium) - 2 * var(--m-border-width));
|
|
91
|
+
min-height: 0;
|
|
92
|
+
min-width: 0;
|
|
93
|
+
padding: 0 var(--m-control-padding-x-medium);
|
|
94
|
+
width: 100%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.m-password--small .m-password__input {
|
|
98
|
+
font-size: var(--m-control-font-small);
|
|
99
|
+
height: calc(var(--m-control-height-small) - 2 * var(--m-border-width));
|
|
100
|
+
line-height: calc(var(--m-control-height-small) - 2 * var(--m-border-width));
|
|
101
|
+
padding: 0 var(--m-control-padding-x-small);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.m-password--large .m-password__input {
|
|
105
|
+
font-size: var(--m-control-font-large);
|
|
106
|
+
height: calc(var(--m-control-height-large) - 2 * var(--m-border-width));
|
|
107
|
+
line-height: calc(var(--m-control-height-large) - 2 * var(--m-border-width));
|
|
108
|
+
padding: 0 var(--m-control-padding-x-large);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.m-password__input:focus,
|
|
112
|
+
.m-password__input:focus-visible {
|
|
113
|
+
box-shadow: none;
|
|
114
|
+
outline: none;
|
|
125
115
|
}
|
|
126
116
|
|
|
117
|
+
.m-password__clear,
|
|
127
118
|
.m-password__toggle {
|
|
128
119
|
align-items: center;
|
|
120
|
+
align-self: center;
|
|
129
121
|
background: transparent;
|
|
130
122
|
border: 0;
|
|
131
123
|
border-radius: var(--m-radius-sm);
|
|
132
124
|
color: var(--m-color-text-muted);
|
|
133
125
|
cursor: pointer;
|
|
134
126
|
display: inline-flex;
|
|
127
|
+
flex: 0 0 auto;
|
|
135
128
|
justify-content: center;
|
|
129
|
+
padding: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.m-password__clear {
|
|
133
|
+
font-size: var(--m-font-size-lg);
|
|
134
|
+
height: var(--m-control-affix-size);
|
|
135
|
+
width: var(--m-control-affix-size);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.m-password--toggle .m-password__clear {
|
|
139
|
+
margin-right: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.m-password__toggle {
|
|
136
143
|
min-height: var(--m-password-toggle-size);
|
|
137
144
|
min-width: var(--m-password-toggle-size);
|
|
138
|
-
padding: var(--m-space-1);
|
|
139
|
-
position: absolute;
|
|
140
|
-
right: var(--m-space-1);
|
|
141
|
-
top: 50%;
|
|
142
|
-
transform: translateY(-50%);
|
|
143
145
|
}
|
|
144
146
|
|
|
147
|
+
.m-password__clear:hover:not(:disabled),
|
|
145
148
|
.m-password__toggle:hover:not(:disabled) {
|
|
146
149
|
color: var(--m-color-text);
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
.m-
|
|
150
|
-
cursor: not-allowed;
|
|
151
|
-
opacity: var(--m-opacity-disabled);
|
|
152
|
-
}
|
|
153
|
-
|
|
152
|
+
.m-password__clear:focus-visible,
|
|
154
153
|
.m-password__toggle:focus-visible {
|
|
155
154
|
box-shadow: var(--m-focus-shadow);
|
|
156
155
|
outline: none;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
.m-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
.m-password__clear:disabled,
|
|
159
|
+
.m-password__toggle:disabled {
|
|
160
|
+
cursor: not-allowed;
|
|
161
|
+
opacity: var(--m-opacity-disabled);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.m-password__feedback {
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { LayoutContentProps,
|
|
1
|
+
import { LayoutContentProps, LayoutPosition } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const __VLS_base: DefineComponent<LayoutContentProps,
|
|
8
|
-
scroll: (eventPayload: Event) => any;
|
|
9
|
-
}, string, PublicProps, Readonly<LayoutContentProps> & Readonly<{
|
|
10
|
-
onScroll?: ((eventPayload: Event) => any) | undefined;
|
|
11
|
-
}>, {
|
|
7
|
+
declare const __VLS_base: DefineComponent<LayoutContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LayoutContentProps> & Readonly<{}>, {
|
|
12
8
|
position: LayoutPosition;
|
|
13
9
|
embedded: boolean;
|
|
14
10
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/LayoutContent.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/LayoutContent.vue"],"names":[],"mappings":";AAwCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA8DlD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LayoutSiderProps, LayoutPosition, LayoutTrigger, LayoutCollapseMode } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const __VLS_base: DefineComponent<LayoutSiderProps,
|
|
7
|
+
declare const __VLS_base: DefineComponent<LayoutSiderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
8
|
expand: () => any;
|
|
9
9
|
collapse: () => any;
|
|
10
|
-
scroll: (eventPayload: Event) => any;
|
|
11
10
|
"after-leave": () => any;
|
|
12
11
|
"update:collapsed": (value: boolean) => any;
|
|
13
12
|
"after-enter": () => any;
|
|
14
13
|
}, string, PublicProps, Readonly<LayoutSiderProps> & Readonly<{
|
|
15
14
|
onExpand?: (() => any) | undefined;
|
|
16
15
|
onCollapse?: (() => any) | undefined;
|
|
17
|
-
onScroll?: ((eventPayload: Event) => any) | undefined;
|
|
18
16
|
"onAfter-leave"?: (() => any) | undefined;
|
|
19
17
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
20
18
|
"onAfter-enter"?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutSider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/LayoutSider.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LayoutSider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/LayoutSider.vue"],"names":[],"mappings":";AAiLA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA0OhD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -3,6 +3,8 @@ export interface LayoutRegionStyleInput {
|
|
|
3
3
|
height?: number | string;
|
|
4
4
|
heightFallback?: string;
|
|
5
5
|
padding?: number | string;
|
|
6
|
+
/** When false, padding is only written if `padding` is set. Default true. */
|
|
7
|
+
applyDefaultPadding?: boolean;
|
|
6
8
|
radius?: number | string;
|
|
7
9
|
}
|
|
8
10
|
export declare function useLayoutRegionStyle(input: MaybeRefOrGetter<LayoutRegionStyleInput>): ComputedRef<Record<string, string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutRegionStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/composables/useLayoutRegionStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAIzD,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAUD,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,gBAAgB,CAAC,sBAAsB,CAAC,GAChD,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"useLayoutRegionStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/composables/useLayoutRegionStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAIzD,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAUD,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,gBAAgB,CAAC,sBAAsB,CAAC,GAChD,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CA0BrC"}
|
|
@@ -91,7 +91,6 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.m-layout-content {
|
|
94
|
-
--m-layout-padding: var(--m-space-4);
|
|
95
94
|
--m-layout-radius: 0;
|
|
96
95
|
display: flex;
|
|
97
96
|
flex: 1 1 auto;
|
|
@@ -100,12 +99,6 @@
|
|
|
100
99
|
min-width: 0;
|
|
101
100
|
}
|
|
102
101
|
|
|
103
|
-
.m-layout-content > .m-layout__scroll,
|
|
104
|
-
.m-layout-content > .m-layout__scrollbar {
|
|
105
|
-
flex: 1 1 auto;
|
|
106
|
-
min-height: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
102
|
.m-layout-header,
|
|
110
103
|
.m-layout-footer {
|
|
111
104
|
background: var(--m-color-surface);
|
|
@@ -184,7 +177,6 @@
|
|
|
184
177
|
.m-layout-sider {
|
|
185
178
|
--m-layout-sider-width: 12.5rem;
|
|
186
179
|
--m-layout-sider-collapsed-width: 4rem;
|
|
187
|
-
--m-layout-padding: var(--m-space-4);
|
|
188
180
|
--m-layout-radius: 0;
|
|
189
181
|
--m-layout-trigger-size: 1.5rem;
|
|
190
182
|
align-self: stretch;
|
|
@@ -193,8 +185,8 @@
|
|
|
193
185
|
color: var(--m-color-text);
|
|
194
186
|
display: flex;
|
|
195
187
|
flex-basis: var(--m-layout-sider-width);
|
|
188
|
+
flex-direction: column;
|
|
196
189
|
flex-shrink: 0;
|
|
197
|
-
justify-content: flex-end;
|
|
198
190
|
min-width: 0;
|
|
199
191
|
/* Do not clip the collapse trigger (it sits half outside the sider edge).
|
|
200
192
|
Collapsed transform overflow is clipped by `.m-layout { overflow: hidden }`. */
|
|
@@ -205,46 +197,22 @@
|
|
|
205
197
|
border-color var(--m-motion-normal) var(--m-motion-ease),
|
|
206
198
|
width var(--m-motion-normal) var(--m-motion-ease),
|
|
207
199
|
max-width var(--m-motion-normal) var(--m-motion-ease),
|
|
208
|
-
background-color var(--m-motion-normal) var(--m-motion-ease)
|
|
200
|
+
background-color var(--m-motion-normal) var(--m-motion-ease),
|
|
201
|
+
opacity var(--m-motion-normal) var(--m-motion-ease);
|
|
209
202
|
z-index: 1;
|
|
210
203
|
}
|
|
211
204
|
|
|
212
|
-
.m-layout-sider--
|
|
213
|
-
justify-content: flex-start;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.m-layout-sider__scroll,
|
|
217
|
-
.m-layout-sider__scrollbar {
|
|
218
|
-
box-sizing: border-box;
|
|
219
|
-
flex: 1 1 auto;
|
|
220
|
-
height: 100%;
|
|
221
|
-
max-width: 100%;
|
|
222
|
-
min-height: 0;
|
|
223
|
-
min-width: 0;
|
|
224
|
-
overflow: hidden;
|
|
225
|
-
overflow-x: hidden;
|
|
226
|
-
width: 100%;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/* Opacity only on the scrollbar root. The wrap keeps `.m-layout-sider__scroll`
|
|
230
|
-
and must stay opaque once the root fades in. */
|
|
231
|
-
.m-layout-sider__scrollbar {
|
|
205
|
+
.m-layout-sider:not(.m-layout-sider--show-content) > :not(.m-layout-sider__trigger):not(.m-layout-sider__border) {
|
|
232
206
|
opacity: 0;
|
|
207
|
+
pointer-events: none;
|
|
233
208
|
transition: opacity var(--m-motion-normal) var(--m-motion-ease);
|
|
234
209
|
}
|
|
235
210
|
|
|
236
|
-
.m-layout-sider--collapse-transform
|
|
237
|
-
.m-layout-sider--collapse-transform > .m-layout-sider__scrollbar {
|
|
211
|
+
.m-layout-sider--collapse-transform {
|
|
238
212
|
flex-shrink: 0;
|
|
239
|
-
min-width: var(--m-layout-sider-width);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.m-layout-sider--show-content > .m-layout-sider__scrollbar {
|
|
243
|
-
opacity: 1;
|
|
244
213
|
}
|
|
245
214
|
|
|
246
|
-
.m-layout-sider--collapse-width
|
|
247
|
-
.m-layout-sider--collapse-width > .m-layout-sider__scrollbar {
|
|
215
|
+
.m-layout-sider--collapse-width {
|
|
248
216
|
flex-shrink: 1;
|
|
249
217
|
min-width: 0;
|
|
250
218
|
}
|
|
@@ -439,7 +407,6 @@
|
|
|
439
407
|
html:not([data-m-ignore-reduced-motion]) .m-layout-header,
|
|
440
408
|
html:not([data-m-ignore-reduced-motion]) .m-layout-footer,
|
|
441
409
|
html:not([data-m-ignore-reduced-motion]) .m-layout-sider,
|
|
442
|
-
html:not([data-m-ignore-reduced-motion]) .m-layout-sider__scrollbar,
|
|
443
410
|
html:not([data-m-ignore-reduced-motion]) .m-layout-sider__arrow,
|
|
444
411
|
html:not([data-m-ignore-reduced-motion]) .m-layout-sider__bar-top,
|
|
445
412
|
html:not([data-m-ignore-reduced-motion]) .m-layout-sider__bar-bottom {
|
|
@@ -451,7 +418,6 @@
|
|
|
451
418
|
[data-m-motion="reduced"] .m-layout-header,
|
|
452
419
|
[data-m-motion="reduced"] .m-layout-footer,
|
|
453
420
|
[data-m-motion="reduced"] .m-layout-sider,
|
|
454
|
-
[data-m-motion="reduced"] .m-layout-sider__scrollbar,
|
|
455
421
|
[data-m-motion="reduced"] .m-layout-sider__arrow,
|
|
456
422
|
[data-m-motion="reduced"] .m-layout-sider__bar-top,
|
|
457
423
|
[data-m-motion="reduced"] .m-layout-sider__bar-bottom,
|
|
@@ -459,7 +425,6 @@
|
|
|
459
425
|
[data-m-motion="none"] .m-layout-header,
|
|
460
426
|
[data-m-motion="none"] .m-layout-footer,
|
|
461
427
|
[data-m-motion="none"] .m-layout-sider,
|
|
462
|
-
[data-m-motion="none"] .m-layout-sider__scrollbar,
|
|
463
428
|
[data-m-motion="none"] .m-layout-sider__arrow,
|
|
464
429
|
[data-m-motion="none"] .m-layout-sider__bar-top,
|
|
465
430
|
[data-m-motion="none"] .m-layout-sider__bar-bottom {
|
|
@@ -50,13 +50,12 @@ export interface LayoutContentProps {
|
|
|
50
50
|
pt?: RootPassThrough;
|
|
51
51
|
/** Content height. Defaults to filling the parent layout. */
|
|
52
52
|
height?: number | string;
|
|
53
|
+
/** Optional padding; no default — apply only when set. */
|
|
53
54
|
padding?: number | string;
|
|
54
55
|
radius?: number | string;
|
|
55
56
|
/** Soft background. */
|
|
56
57
|
embedded?: boolean;
|
|
57
58
|
position?: LayoutPosition;
|
|
58
|
-
contentClass?: string;
|
|
59
|
-
contentStyle?: string | CSSProperties;
|
|
60
59
|
}
|
|
61
60
|
export interface LayoutSiderProps {
|
|
62
61
|
pt?: RootPassThrough;
|
|
@@ -67,6 +66,7 @@ export interface LayoutSiderProps {
|
|
|
67
66
|
width?: number | string;
|
|
68
67
|
/** Collapsed max-width. */
|
|
69
68
|
collapsedWidth?: number | string;
|
|
69
|
+
/** Optional padding; no default — apply only when set. */
|
|
70
70
|
padding?: number | string;
|
|
71
71
|
radius?: number | string;
|
|
72
72
|
/** Controlled collapsed state (`v-model:collapsed`). */
|
|
@@ -74,8 +74,8 @@ export interface LayoutSiderProps {
|
|
|
74
74
|
/** Uncontrolled initial collapsed state. */
|
|
75
75
|
defaultCollapsed?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
* `transform` (default): keep
|
|
78
|
-
* `width`: shrink
|
|
77
|
+
* `transform` (default): keep expanded `width`, collapse via `max-width`.
|
|
78
|
+
* `width`: shrink `width` with the sider.
|
|
79
79
|
*/
|
|
80
80
|
collapseMode?: LayoutCollapseMode;
|
|
81
81
|
/** Show sider content while collapsed. */
|
|
@@ -85,8 +85,6 @@ export interface LayoutSiderProps {
|
|
|
85
85
|
triggerStyle?: string | CSSProperties;
|
|
86
86
|
collapsedTriggerClass?: string;
|
|
87
87
|
collapsedTriggerStyle?: string | CSSProperties;
|
|
88
|
-
contentClass?: string;
|
|
89
|
-
contentStyle?: string | CSSProperties;
|
|
90
88
|
}
|
|
91
89
|
export interface LayoutSiderEmits {
|
|
92
90
|
(event: "update:collapsed", value: boolean): void;
|
|
@@ -94,7 +92,6 @@ export interface LayoutSiderEmits {
|
|
|
94
92
|
(event: "expand"): void;
|
|
95
93
|
(event: "after-enter"): void;
|
|
96
94
|
(event: "after-leave"): void;
|
|
97
|
-
(event: "scroll", eventPayload: Event): void;
|
|
98
95
|
}
|
|
99
96
|
export interface LayoutScrollEmits {
|
|
100
97
|
(event: "scroll", eventPayload: Event): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","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AK,EAAE,OAAO,GAAG,IAAI,CAAC;IAClD,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,GAAG,IAAI,CAAC;CAC9C;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE;QACR,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;QACjC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LoadingProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare var __VLS_1: {}, __VLS_15: {}, __VLS_34: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
indicator?: (props: typeof __VLS_15) => any;
|
|
8
|
+
} & {
|
|
9
|
+
indicator?: (props: typeof __VLS_34) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: DefineComponent<LoadingProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
|
|
12
|
+
loading: boolean;
|
|
13
|
+
fullscreen: boolean;
|
|
14
|
+
lock: boolean;
|
|
15
|
+
delay: number;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Loading.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/Loading.vue"],"names":[],"mappings":";AA8JA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAmR3C,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC/C;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAMlD,QAAA,MAAM,UAAU;;;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MSizeInput } from '../../shared/types';
|
|
2
|
+
import { LoadingEffect } from './types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
effect?: LoadingEffect;
|
|
6
|
+
text?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
size?: MSizeInput;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=LoadingIndicator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/LoadingIndicator.vue"],"names":[],"mappings":";AA2FA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAS5C,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAC;AA8KF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Directive } from 'vue';
|
|
2
|
+
import { LoadingBinding } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* `v-loading` directive.
|
|
5
|
+
*
|
|
6
|
+
* ```vue
|
|
7
|
+
* <div v-loading="loading" m-loading-text="加载中" m-loading-effect="wave" />
|
|
8
|
+
* <div v-loading.fullscreen.lock="loading" />
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare const vLoading: Directive<HTMLElement, boolean | LoadingBinding>;
|
|
12
|
+
//# sourceMappingURL=directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/directive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,KAAK,CAAA;AAGtD,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,SAAS,CAAA;AA0F5D;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc,CASrE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { vLoading } from './directive';
|
|
2
|
+
export { loading } from './loading';
|
|
3
|
+
export { default as MLoading } from './Loading.vue';
|
|
4
|
+
export type { LoadingBinding, LoadingEffect, LoadingProps, LoadingServiceInstance, LoadingServiceOptions, } from './types';
|
|
5
|
+
export { isLoadingEffect, LOADING_EFFECTS, normalizeLoadingEffect } from './types';
|
|
6
|
+
export { useLoading } from './useLoading';
|
|
7
|
+
export type { UseLoadingReturn } from './useLoading';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAA;AACnD,YAAY,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AppContext } from 'vue';
|
|
2
|
+
import { MRenderable } from '../../shared/content';
|
|
3
|
+
import { MSizeInput } from '../../shared/types';
|
|
4
|
+
import { LoadingEffect, LoadingServiceInstance, LoadingServiceOptions } from './types';
|
|
5
|
+
export interface LoadingMaskInstance extends LoadingServiceInstance {
|
|
6
|
+
update: (next: Partial<LoadingMaskOptions>) => void;
|
|
7
|
+
/** Tear down without waiting for leave transition. */
|
|
8
|
+
destroy: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface LoadingMaskOptions {
|
|
11
|
+
target: HTMLElement;
|
|
12
|
+
text?: string;
|
|
13
|
+
effect?: LoadingEffect;
|
|
14
|
+
background?: string;
|
|
15
|
+
customClass?: string;
|
|
16
|
+
size?: MSizeInput;
|
|
17
|
+
fullscreen?: boolean;
|
|
18
|
+
lock?: boolean;
|
|
19
|
+
/** Position the mask over `target`, but mount it on `document.body`. */
|
|
20
|
+
body?: boolean;
|
|
21
|
+
delay?: number;
|
|
22
|
+
spinner?: MRenderable;
|
|
23
|
+
appContext?: AppContext | null;
|
|
24
|
+
}
|
|
25
|
+
export declare function lockLoadingScroll(): void;
|
|
26
|
+
export declare function unlockLoadingScroll(): void;
|
|
27
|
+
export declare function mountLoadingMask(options: LoadingMaskOptions): LoadingMaskInstance;
|
|
28
|
+
export declare function loadingService(options?: LoadingServiceOptions): LoadingServiceInstance;
|
|
29
|
+
/** Imperative loading service: `loading.service({ text: '加载中' })`. */
|
|
30
|
+
export declare const loading: {
|
|
31
|
+
service: typeof loadingService;
|
|
32
|
+
};
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare function resetLoadingService(): void;
|
|
35
|
+
//# sourceMappingURL=loading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/loading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,C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