vue-devui 1.0.0-beta.9 → 1.0.0-rc.1
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/README.md +100 -72
- package/accordion/index.es.js +525 -39
- package/accordion/index.umd.js +1 -1
- package/accordion/style.css +1 -1
- package/alert/index.es.js +34 -37
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/{time-axis → auto-complete}/index.d.ts +0 -0
- package/auto-complete/index.es.js +983 -0
- package/auto-complete/index.umd.js +1 -0
- package/auto-complete/package.json +7 -0
- package/auto-complete/style.css +1 -0
- package/back-top/index.es.js +5 -3
- package/back-top/index.umd.js +1 -1
- package/badge/index.es.js +13 -19
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/breadcrumb/index.es.js +2 -1
- package/button/index.es.js +296 -117
- package/button/index.umd.js +1 -1
- package/button/style.css +1 -1
- package/carousel/index.es.js +43 -57
- package/carousel/index.umd.js +1 -1
- package/cascader/index.es.js +5412 -784
- package/cascader/index.umd.js +27 -1
- package/cascader/style.css +1 -1
- package/checkbox/style.css +1 -1
- package/{toast → color-picker}/index.d.ts +0 -0
- package/color-picker/index.es.js +8196 -0
- package/color-picker/index.umd.js +27 -0
- package/color-picker/package.json +7 -0
- package/color-picker/style.css +1 -0
- package/comment/index.es.js +42 -13
- package/comment/index.umd.js +1 -1
- package/comment/style.css +1 -1
- package/countdown/index.es.js +27 -17
- package/countdown/index.umd.js +1 -1
- package/countdown/style.css +1 -1
- package/date-picker/index.es.js +48 -66
- package/date-picker/index.umd.js +1 -1
- package/date-picker/style.css +1 -1
- package/dragdrop/index.es.js +135 -10
- package/dragdrop/index.umd.js +1 -1
- package/drawer/index.es.js +169 -223
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.es.js +463 -300
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +293 -5660
- package/editable-select/index.umd.js +1 -27
- package/editable-select/style.css +1 -1
- package/form/index.es.js +6210 -531
- package/form/index.umd.js +27 -1
- package/form/style.css +1 -1
- package/fullscreen/index.es.js +112 -133
- package/fullscreen/index.umd.js +1 -1
- package/fullscreen/style.css +1 -1
- package/gantt/index.es.js +6 -18
- package/gantt/index.umd.js +1 -1
- package/gantt/style.css +1 -1
- package/grid/index.es.js +1 -1
- package/grid/style.css +1 -1
- package/icon/index.es.js +39 -56
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +35 -16
- package/image-preview/index.umd.js +1 -1
- package/input/index.es.js +4 -5
- package/input/index.umd.js +1 -1
- package/input/style.css +1 -1
- package/input-icon/index.es.js +42 -41
- package/input-icon/index.umd.js +1 -1
- package/input-icon/style.css +1 -1
- package/input-number/index.es.js +46 -56
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/list/index.d.ts +7 -0
- package/list/index.es.js +39 -0
- package/list/index.umd.js +1 -0
- package/{toast → list}/package.json +1 -1
- package/list/style.css +1 -0
- package/loading/index.es.js +2 -2
- package/modal/index.es.js +304 -765
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/nav-sprite/index.es.js +1 -675
- package/nav-sprite/index.umd.js +1 -1
- package/notification/index.d.ts +7 -0
- package/notification/index.es.js +284 -0
- package/notification/index.umd.js +1 -0
- package/notification/package.json +7 -0
- package/notification/style.css +1 -0
- package/nuxt/components/Accordion.js +3 -0
- package/nuxt/components/Alert.js +3 -0
- package/nuxt/components/Anchor.js +3 -0
- package/nuxt/components/Aside.js +3 -0
- package/nuxt/components/AutoComplete.js +3 -0
- package/nuxt/components/Avatar.js +3 -0
- package/nuxt/components/BackTop.js +3 -0
- package/nuxt/components/Badge.js +3 -0
- package/nuxt/components/Breadcrumb.js +3 -0
- package/nuxt/components/Button.js +3 -0
- package/nuxt/components/Card.js +3 -0
- package/nuxt/components/Carousel.js +3 -0
- package/nuxt/components/CarouselItem.js +3 -0
- package/nuxt/components/Cascader.js +3 -0
- package/nuxt/components/Checkbox.js +3 -0
- package/nuxt/components/Col.js +3 -0
- package/nuxt/components/ColorPicker.js +3 -0
- package/nuxt/components/Column.js +3 -0
- package/nuxt/components/Comment.js +3 -0
- package/nuxt/components/Content.js +3 -0
- package/nuxt/components/Countdown.js +3 -0
- package/nuxt/components/DatePicker.js +3 -0
- package/nuxt/components/Drawer.js +3 -0
- package/nuxt/components/DrawerService.js +3 -0
- package/nuxt/components/Dropdown.js +3 -0
- package/nuxt/components/DropdownMenu.js +3 -0
- package/nuxt/components/EditableSelect.js +3 -0
- package/nuxt/components/FixedOverlay.js +3 -0
- package/nuxt/components/FlexibleOverlay.js +3 -0
- package/nuxt/components/Footer.js +3 -0
- package/nuxt/components/Form.js +3 -0
- package/nuxt/components/FormControl.js +3 -0
- package/nuxt/components/FormItem.js +3 -0
- package/nuxt/components/FormLabel.js +3 -0
- package/nuxt/components/FormOperation.js +3 -0
- package/nuxt/components/Fullscreen.js +3 -0
- package/nuxt/components/Gantt.js +3 -0
- package/nuxt/components/Header.js +3 -0
- package/nuxt/components/IFileOptions.js +3 -0
- package/nuxt/components/IUploadOptions.js +3 -0
- package/nuxt/components/Icon.js +2 -0
- package/nuxt/components/ImagePreviewService.js +3 -0
- package/nuxt/components/Input.js +3 -0
- package/nuxt/components/InputIcon.js +3 -0
- package/nuxt/components/InputNumber.js +3 -0
- package/nuxt/components/Layout.js +3 -0
- package/nuxt/components/List.js +3 -0
- package/nuxt/components/ListItem.js +3 -0
- package/nuxt/components/Loading.js +3 -0
- package/nuxt/components/LoadingService.js +3 -0
- package/nuxt/components/Modal.js +3 -0
- package/nuxt/components/NavSprite.js +2 -0
- package/nuxt/components/Notification.js +3 -0
- package/nuxt/components/NotificationService.js +3 -0
- package/nuxt/components/Pagination.js +3 -0
- package/nuxt/components/Panel.js +3 -0
- package/nuxt/components/PanelBody.js +3 -0
- package/nuxt/components/PanelFooter.js +3 -0
- package/nuxt/components/PanelHeader.js +3 -0
- package/nuxt/components/Popover.js +3 -0
- package/nuxt/components/Progress.js +3 -0
- package/nuxt/components/QuadrantDiagram.js +3 -0
- package/nuxt/components/Radio.js +3 -0
- package/nuxt/components/RadioGroup.js +3 -0
- package/nuxt/components/Rate.js +3 -0
- package/nuxt/components/ReadTip.js +3 -0
- package/nuxt/components/Result.js +3 -0
- package/nuxt/components/Row.js +3 -0
- package/nuxt/components/Search.js +3 -0
- package/nuxt/components/Select.js +3 -0
- package/nuxt/components/Skeleton.js +3 -0
- package/nuxt/components/SkeletonItem.js +3 -0
- package/nuxt/components/Slider.js +3 -0
- package/nuxt/components/Splitter.js +3 -0
- package/nuxt/components/Statistic.js +3 -0
- package/nuxt/components/Status.js +3 -0
- package/nuxt/components/StepsGuide.js +3 -0
- package/nuxt/components/StickSlider.js +3 -0
- package/nuxt/components/Sticky.js +2 -0
- package/nuxt/components/Switch.js +3 -0
- package/nuxt/components/Table.js +3 -0
- package/nuxt/components/Tabs.js +3 -0
- package/nuxt/components/Tag.js +3 -0
- package/nuxt/components/TagInput.js +3 -0
- package/nuxt/components/Textarea.js +3 -0
- package/nuxt/components/TimePicker.js +3 -0
- package/nuxt/components/Timeline.js +3 -0
- package/nuxt/components/TimelineItem.js +3 -0
- package/nuxt/components/Tooltip.js +3 -0
- package/nuxt/components/Transfer.js +3 -0
- package/nuxt/components/Tree.js +3 -0
- package/nuxt/components/TreeSelect.js +3 -0
- package/nuxt/components/Upload.js +3 -0
- package/nuxt/components/UploadStatus.js +3 -0
- package/nuxt/components/alertProps.js +3 -0
- package/nuxt/components/badgeProps.js +3 -0
- package/nuxt/components/buttonProps.js +3 -0
- package/nuxt/components/dropdownMenuProps.js +3 -0
- package/nuxt/components/fixedOverlayProps.js +3 -0
- package/nuxt/components/flexibleOverlayProps.js +3 -0
- package/nuxt/components/fullscreenProps.js +3 -0
- package/nuxt/components/iconProps.js +2 -0
- package/nuxt/components/notificationProps.js +3 -0
- package/nuxt/components/overlayEmits.js +3 -0
- package/nuxt/components/overlayProps.js +3 -0
- package/nuxt/components/paginationProps.js +3 -0
- package/nuxt/components/panelProps.js +3 -0
- package/nuxt/components/popoverProps.js +3 -0
- package/nuxt/components/searchProps.js +3 -0
- package/nuxt/components/tooltipProps.js +3 -0
- package/nuxt/components/uploadProps.js +3 -0
- package/nuxt/index.js +13 -0
- package/overlay/index.es.js +156 -205
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +12 -55
- package/pagination/index.es.js +11 -13
- package/pagination/index.umd.js +1 -1
- package/pagination/style.css +1 -1
- package/panel/index.es.js +48 -35
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +5954 -189
- package/popover/index.umd.js +27 -1
- package/popover/style.css +1 -1
- package/progress/index.es.js +8 -8
- package/progress/index.umd.js +3 -3
- package/quadrant-diagram/index.es.js +5405 -166
- package/quadrant-diagram/index.umd.js +27 -1
- package/radio/index.es.js +8 -14
- package/radio/index.umd.js +1 -1
- package/radio/style.css +1 -1
- package/read-tip/index.es.js +6 -3
- package/read-tip/style.css +1 -1
- package/result/index.es.js +38 -52
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +10 -6
- package/search/index.es.js +5428 -200
- package/search/index.umd.js +27 -1
- package/search/style.css +1 -1
- package/select/index.es.js +43 -42
- package/select/index.umd.js +1 -1
- package/select/style.css +1 -1
- package/skeleton/index.es.js +17 -17
- package/skeleton/index.umd.js +1 -1
- package/slider/index.es.js +4 -6
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.es.js +5896 -39
- package/splitter/index.umd.js +27 -1
- package/splitter/style.css +1 -1
- package/statistic/index.es.js +19 -32
- package/statistic/index.umd.js +1 -1
- package/statistic/style.css +1 -1
- package/status/index.es.js +1 -4
- package/status/index.umd.js +1 -1
- package/status/style.css +1 -1
- package/steps-guide/index.es.js +6 -3
- package/sticky/index.umd.js +1 -1
- package/style.css +1 -1
- package/table/index.es.js +753 -358
- package/table/index.umd.js +1 -1
- package/table/style.css +1 -1
- package/tabs/index.es.js +3 -4
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.es.js +4 -3
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/tag-input/index.es.js +4 -14
- package/tag-input/index.umd.js +1 -1
- package/textarea/style.css +1 -1
- package/{theme → theme/theme.scss} +0 -0
- package/time-picker/index.es.js +309 -123
- package/time-picker/index.umd.js +1 -1
- package/time-picker/style.css +1 -1
- package/timeline/index.d.ts +7 -0
- package/{time-axis → timeline}/index.es.js +65 -77
- package/timeline/index.umd.js +1 -0
- package/{time-axis → timeline}/package.json +1 -1
- package/timeline/style.css +1 -0
- package/tooltip/index.es.js +5805 -141
- package/tooltip/index.umd.js +27 -1
- package/tooltip/style.css +1 -1
- package/transfer/index.es.js +6521 -630
- package/transfer/index.umd.js +27 -1
- package/transfer/style.css +1 -1
- package/tree/index.es.js +5781 -193
- package/tree/index.umd.js +27 -1
- package/tree/style.css +1 -1
- package/tree-select/index.es.js +138 -39
- package/tree-select/index.umd.js +1 -1
- package/tree-select/style.css +1 -1
- package/upload/index.es.js +450 -2669
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +14414 -14096
- package/vue-devui.umd.js +19 -19
- package/time-axis/index.umd.js +0 -1
- package/time-axis/style.css +0 -1
- package/toast/index.es.js +0 -2059
- package/toast/index.umd.js +0 -1
- package/toast/style.css +0 -1
package/button/index.es.js
CHANGED
|
@@ -14,176 +14,355 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
var __publicField = (obj, key, value) => {
|
|
18
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
19
|
+
return value;
|
|
20
|
+
};
|
|
21
|
+
import { defineComponent, toRefs, createVNode, ref, h, render, computed, withDirectives, resolveDirective } from "vue";
|
|
22
|
+
const iconProps = {
|
|
23
|
+
name: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "",
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "inherit"
|
|
31
|
+
},
|
|
32
|
+
color: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "inherit"
|
|
35
|
+
},
|
|
36
|
+
classPrefix: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "icon"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
18
41
|
var Icon = defineComponent({
|
|
19
42
|
name: "DIcon",
|
|
20
|
-
props:
|
|
21
|
-
name: {
|
|
22
|
-
type: String,
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
size: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: "inherit"
|
|
28
|
-
},
|
|
29
|
-
color: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "inherit"
|
|
32
|
-
},
|
|
33
|
-
classPrefix: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: "icon"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
43
|
+
props: iconProps,
|
|
38
44
|
setup(props) {
|
|
39
|
-
return __spreadValues({}, props);
|
|
40
|
-
},
|
|
41
|
-
render() {
|
|
42
45
|
const {
|
|
43
46
|
name,
|
|
44
47
|
size,
|
|
45
48
|
color,
|
|
46
49
|
classPrefix
|
|
50
|
+
} = toRefs(props);
|
|
51
|
+
return () => {
|
|
52
|
+
return /^((https?):)?\/\//.test(name.value) ? createVNode("img", {
|
|
53
|
+
"src": name.value,
|
|
54
|
+
"alt": name.value.split("/")[name.value.split("/").length - 1],
|
|
55
|
+
"style": {
|
|
56
|
+
width: size.value,
|
|
57
|
+
verticalAlign: "text-bottom"
|
|
58
|
+
}
|
|
59
|
+
}, null) : createVNode("i", {
|
|
60
|
+
"class": `${classPrefix.value} ${classPrefix.value}-${name.value}`,
|
|
61
|
+
"style": {
|
|
62
|
+
fontSize: size.value,
|
|
63
|
+
color: color.value
|
|
64
|
+
}
|
|
65
|
+
}, null);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
class View {
|
|
70
|
+
constructor() {
|
|
71
|
+
__publicField(this, "top", "50%");
|
|
72
|
+
__publicField(this, "left", "50%");
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const componentProps = {
|
|
76
|
+
message: String,
|
|
77
|
+
backdrop: Boolean,
|
|
78
|
+
view: {
|
|
79
|
+
type: Object,
|
|
80
|
+
default: () => new View()
|
|
81
|
+
},
|
|
82
|
+
zIndex: Number,
|
|
83
|
+
isFull: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
class LoadingProps {
|
|
89
|
+
constructor() {
|
|
90
|
+
__publicField(this, "target");
|
|
91
|
+
__publicField(this, "message");
|
|
92
|
+
__publicField(this, "loadingTemplateRef");
|
|
93
|
+
__publicField(this, "backdrop", true);
|
|
94
|
+
__publicField(this, "positionType", "relative");
|
|
95
|
+
__publicField(this, "view", new View());
|
|
96
|
+
__publicField(this, "zIndex");
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
var loading = "";
|
|
100
|
+
var Loading = defineComponent({
|
|
101
|
+
name: "DLoading",
|
|
102
|
+
inheritAttrs: false,
|
|
103
|
+
props: componentProps,
|
|
104
|
+
setup(props) {
|
|
105
|
+
const style = {
|
|
106
|
+
top: props.view.top,
|
|
107
|
+
left: props.view.left,
|
|
108
|
+
zIndex: props.zIndex
|
|
109
|
+
};
|
|
110
|
+
if (!props.message) {
|
|
111
|
+
style.background = "none";
|
|
112
|
+
}
|
|
113
|
+
const isShow = ref(false);
|
|
114
|
+
const open = () => {
|
|
115
|
+
isShow.value = true;
|
|
116
|
+
};
|
|
117
|
+
const close = () => {
|
|
118
|
+
isShow.value = false;
|
|
119
|
+
};
|
|
120
|
+
return {
|
|
121
|
+
style,
|
|
122
|
+
isShow,
|
|
123
|
+
open,
|
|
124
|
+
close
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
render() {
|
|
128
|
+
var _a;
|
|
129
|
+
const {
|
|
130
|
+
isShow,
|
|
131
|
+
isFull,
|
|
132
|
+
backdrop,
|
|
133
|
+
style,
|
|
134
|
+
message,
|
|
135
|
+
$slots
|
|
47
136
|
} = this;
|
|
48
|
-
return
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, null) : createVNode("
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
137
|
+
return isShow && createVNode("div", {
|
|
138
|
+
"class": ["devui-loading-contanier", isFull ? "devui-loading--full" : ""]
|
|
139
|
+
}, [((_a = $slots.default) == null ? void 0 : _a.call($slots)) || createVNode("div", {
|
|
140
|
+
"class": "devui-loading-wrapper"
|
|
141
|
+
}, [backdrop ? createVNode("div", {
|
|
142
|
+
"class": "devui-loading-mask"
|
|
143
|
+
}, null) : null, createVNode("div", {
|
|
144
|
+
"style": style,
|
|
145
|
+
"class": "devui-loading-area"
|
|
146
|
+
}, [createVNode("div", {
|
|
147
|
+
"class": "devui-busy-default-spinner"
|
|
148
|
+
}, [createVNode("div", {
|
|
149
|
+
"class": "devui-loading-bar1"
|
|
150
|
+
}, null), createVNode("div", {
|
|
151
|
+
"class": "devui-loading-bar2"
|
|
152
|
+
}, null), createVNode("div", {
|
|
153
|
+
"class": "devui-loading-bar3"
|
|
154
|
+
}, null), createVNode("div", {
|
|
155
|
+
"class": "devui-loading-bar4"
|
|
156
|
+
}, null)]), message ? createVNode("span", {
|
|
157
|
+
"class": "devui-loading-text"
|
|
158
|
+
}, [message]) : null])])]);
|
|
61
159
|
}
|
|
62
160
|
});
|
|
63
|
-
|
|
64
|
-
|
|
161
|
+
const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
|
|
162
|
+
function createComponent(Component, props, children = null) {
|
|
163
|
+
const vnode = h(Component, __spreadValues({}, props), children);
|
|
164
|
+
const container = document.createElement("div");
|
|
165
|
+
vnode[COMPONENT_CONTAINER_SYMBOL] = container;
|
|
166
|
+
render(vnode, container);
|
|
167
|
+
return vnode.component;
|
|
168
|
+
}
|
|
169
|
+
function unmountComponent(ComponnetInstance) {
|
|
170
|
+
render(null, ComponnetInstance == null ? void 0 : ComponnetInstance.vnode[COMPONENT_CONTAINER_SYMBOL]);
|
|
171
|
+
}
|
|
172
|
+
const loadingConstructor = defineComponent(Loading);
|
|
173
|
+
const cacheInstance = /* @__PURE__ */ new WeakSet();
|
|
174
|
+
const isEmpty = (val) => {
|
|
175
|
+
if (!val)
|
|
176
|
+
return true;
|
|
177
|
+
if (Array.isArray(val))
|
|
178
|
+
return val.length === 0;
|
|
179
|
+
if (val instanceof Set || val instanceof Map)
|
|
180
|
+
return val.size === 0;
|
|
181
|
+
if (val instanceof Promise)
|
|
182
|
+
return false;
|
|
183
|
+
if (typeof val === "object") {
|
|
184
|
+
try {
|
|
185
|
+
return Object.keys(val).length === 0;
|
|
186
|
+
} catch (e) {
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return false;
|
|
65
191
|
};
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
192
|
+
const getType = (vari) => {
|
|
193
|
+
return Object.prototype.toString.call(vari).slice(8, -1).toLowerCase();
|
|
194
|
+
};
|
|
195
|
+
const isPromise = (value) => {
|
|
196
|
+
const type = getType(value);
|
|
197
|
+
switch (type) {
|
|
198
|
+
case "promise":
|
|
199
|
+
return [value];
|
|
200
|
+
case "array":
|
|
201
|
+
if (value.some((val) => getType(val) !== "promise")) {
|
|
202
|
+
console.error(new TypeError("Binding values should all be of type Promise"));
|
|
203
|
+
return "error";
|
|
204
|
+
}
|
|
205
|
+
return value;
|
|
206
|
+
default:
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
const unmount = (el) => {
|
|
211
|
+
cacheInstance.delete(el);
|
|
212
|
+
el.instance.proxy.close();
|
|
213
|
+
unmountComponent(el.instance);
|
|
214
|
+
};
|
|
215
|
+
const toggleLoading = (el, binding) => {
|
|
216
|
+
if (binding.value) {
|
|
217
|
+
const vals = isPromise(binding.value);
|
|
218
|
+
if (vals === "error")
|
|
219
|
+
return;
|
|
220
|
+
el.instance.proxy.open();
|
|
221
|
+
el.appendChild(el.mask);
|
|
222
|
+
cacheInstance.add(el);
|
|
223
|
+
if (vals) {
|
|
224
|
+
Promise.all(vals).catch((err) => {
|
|
225
|
+
console.error(new Error("Promise handling errors"), err);
|
|
226
|
+
}).finally(() => {
|
|
227
|
+
unmount(el);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
} else {
|
|
231
|
+
unmount(el);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
const removeAttribute = (el) => {
|
|
235
|
+
el.removeAttribute("zindex");
|
|
236
|
+
el.removeAttribute("positiontype");
|
|
237
|
+
el.removeAttribute("backdrop");
|
|
238
|
+
el.removeAttribute("message");
|
|
239
|
+
el.removeAttribute("view");
|
|
240
|
+
el.removeAttribute("loadingtemplateref");
|
|
241
|
+
};
|
|
242
|
+
const handleProps = (el, vprops) => {
|
|
243
|
+
const props = __spreadValues(__spreadValues({}, new LoadingProps()), vprops);
|
|
244
|
+
const loadingTemplateRef = props.loadingTemplateRef;
|
|
245
|
+
const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
|
|
246
|
+
el.style.position = props.positionType;
|
|
247
|
+
el.options = props;
|
|
248
|
+
el.instance = loadingInstance;
|
|
249
|
+
el.mask = loadingInstance.proxy.$el;
|
|
250
|
+
};
|
|
251
|
+
const loadingDirective = {
|
|
252
|
+
mounted: function(el, binding, vnode) {
|
|
253
|
+
handleProps(el, vnode.props);
|
|
254
|
+
removeAttribute(el);
|
|
255
|
+
!isEmpty(binding.value) && toggleLoading(el, binding);
|
|
70
256
|
},
|
|
71
|
-
|
|
257
|
+
updated: function(el, binding, vnode) {
|
|
258
|
+
if (!isEmpty(binding.value) && cacheInstance.has(el) || isEmpty(binding.value) && !cacheInstance.has(el))
|
|
259
|
+
return;
|
|
260
|
+
!cacheInstance.has(el) && handleProps(el, vnode.props);
|
|
261
|
+
removeAttribute(el);
|
|
262
|
+
toggleLoading(el, binding);
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
const buttonProps = {
|
|
266
|
+
variant: {
|
|
72
267
|
type: String,
|
|
73
|
-
default: "
|
|
268
|
+
default: "outline"
|
|
74
269
|
},
|
|
75
270
|
size: {
|
|
76
271
|
type: String,
|
|
77
272
|
default: "md"
|
|
78
273
|
},
|
|
79
|
-
|
|
80
|
-
type: String
|
|
81
|
-
default: "default"
|
|
82
|
-
},
|
|
83
|
-
bordered: {
|
|
84
|
-
type: Boolean,
|
|
85
|
-
default: false
|
|
274
|
+
color: {
|
|
275
|
+
type: String
|
|
86
276
|
},
|
|
87
277
|
icon: {
|
|
88
278
|
type: String,
|
|
89
279
|
default: ""
|
|
90
280
|
},
|
|
91
|
-
|
|
281
|
+
loading: {
|
|
92
282
|
type: Boolean,
|
|
93
283
|
default: false
|
|
94
284
|
},
|
|
95
|
-
width: {
|
|
96
|
-
type: String
|
|
97
|
-
},
|
|
98
285
|
disabled: {
|
|
99
286
|
type: Boolean,
|
|
100
287
|
default: false
|
|
101
|
-
},
|
|
102
|
-
autofocus: {
|
|
103
|
-
type: Boolean,
|
|
104
|
-
default: false
|
|
105
|
-
},
|
|
106
|
-
onClick: {
|
|
107
|
-
type: Function
|
|
108
288
|
}
|
|
109
289
|
};
|
|
290
|
+
function useButton(props, ctx) {
|
|
291
|
+
const hasContent = computed(() => ctx.slots.default);
|
|
292
|
+
const colorMap = {
|
|
293
|
+
solid: "primary",
|
|
294
|
+
outline: "secondary",
|
|
295
|
+
text: "secondary"
|
|
296
|
+
};
|
|
297
|
+
const defaultColor = colorMap[props.variant];
|
|
298
|
+
const classes = computed(() => ({
|
|
299
|
+
"devui-btn": true,
|
|
300
|
+
[`devui-btn-${props.variant}`]: true,
|
|
301
|
+
[`devui-btn-${props.variant}-${props.color || defaultColor}`]: true,
|
|
302
|
+
[`devui-btn-${props.size}`]: true,
|
|
303
|
+
"devui-btn-icon-wrap": props.icon,
|
|
304
|
+
"devui-btn-icon": props.icon && !hasContent.value && props.variant !== "solid"
|
|
305
|
+
}));
|
|
306
|
+
const iconClass = computed(() => {
|
|
307
|
+
if (!props.icon) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
const origin = "devui-icon-fix icon";
|
|
311
|
+
if (hasContent.value) {
|
|
312
|
+
return `${origin} clear-right-5`;
|
|
313
|
+
} else {
|
|
314
|
+
return origin;
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
return { classes, iconClass };
|
|
318
|
+
}
|
|
110
319
|
var button = "";
|
|
111
320
|
var Button = defineComponent({
|
|
112
321
|
name: "DButton",
|
|
322
|
+
directives: {
|
|
323
|
+
devLoading: loadingDirective
|
|
324
|
+
},
|
|
113
325
|
props: buttonProps,
|
|
326
|
+
emits: ["click"],
|
|
114
327
|
setup(props, ctx) {
|
|
115
|
-
const
|
|
328
|
+
const {
|
|
329
|
+
icon,
|
|
330
|
+
disabled,
|
|
331
|
+
loading: loading2
|
|
332
|
+
} = toRefs(props);
|
|
333
|
+
const {
|
|
334
|
+
classes,
|
|
335
|
+
iconClass
|
|
336
|
+
} = useButton(props, ctx);
|
|
116
337
|
const onClick = (e) => {
|
|
117
|
-
|
|
118
|
-
if (props.showLoading) {
|
|
338
|
+
if (loading2.value) {
|
|
119
339
|
return;
|
|
120
340
|
}
|
|
121
|
-
|
|
341
|
+
ctx.emit("click", e);
|
|
122
342
|
};
|
|
123
|
-
const hasContent = computed(() => ctx.slots.default);
|
|
124
|
-
const btnClass = computed(() => {
|
|
125
|
-
const {
|
|
126
|
-
btnStyle,
|
|
127
|
-
size,
|
|
128
|
-
position,
|
|
129
|
-
bordered,
|
|
130
|
-
icon
|
|
131
|
-
} = props;
|
|
132
|
-
const origin = `devui-btn devui-btn-${btnStyle} devui-btn-${size} devui-btn-${position}`;
|
|
133
|
-
const borderedClass = bordered ? "bordered" : "";
|
|
134
|
-
const btnIcon = !!icon && !hasContent.value && btnStyle !== "primary" ? "d-btn-icon" : "";
|
|
135
|
-
const btnIconWrap = !!icon ? "d-btn-icon-wrap" : "";
|
|
136
|
-
return `${origin} ${borderedClass} ${btnIcon} ${btnIconWrap}`;
|
|
137
|
-
});
|
|
138
|
-
const iconClass = computed(() => {
|
|
139
|
-
if (!props.icon) {
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
const origin = "devui-icon-fix icon";
|
|
143
|
-
if (hasContent.value) {
|
|
144
|
-
return `${origin} clear-right-5`;
|
|
145
|
-
} else {
|
|
146
|
-
return origin;
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
343
|
return () => {
|
|
150
344
|
var _a, _b;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
disabled,
|
|
155
|
-
showLoading,
|
|
156
|
-
width
|
|
157
|
-
} = props;
|
|
158
|
-
return createVNode("div", mergeProps({
|
|
159
|
-
"class": "devui-btn-host"
|
|
160
|
-
}, ctx.attrs), [createVNode("button", {
|
|
161
|
-
"class": btnClass.value,
|
|
162
|
-
"type": type,
|
|
163
|
-
"disabled": disabled,
|
|
164
|
-
"style": {
|
|
165
|
-
width
|
|
166
|
-
},
|
|
345
|
+
return withDirectives(createVNode("button", {
|
|
346
|
+
"class": classes.value,
|
|
347
|
+
"disabled": disabled.value,
|
|
167
348
|
"onClick": onClick
|
|
168
|
-
}, [
|
|
169
|
-
"name":
|
|
349
|
+
}, [icon.value && createVNode(Icon, {
|
|
350
|
+
"name": icon.value,
|
|
351
|
+
"size": "12px",
|
|
352
|
+
"color": "",
|
|
170
353
|
"class": iconClass.value
|
|
171
|
-
}, null)
|
|
172
|
-
"class": "button-content"
|
|
173
|
-
|
|
174
|
-
}, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)])])]);
|
|
354
|
+
}, null), createVNode("span", {
|
|
355
|
+
"class": "button-content"
|
|
356
|
+
}, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)])]), [[resolveDirective("dLoading"), loading2.value]]);
|
|
175
357
|
};
|
|
176
358
|
}
|
|
177
359
|
});
|
|
178
|
-
Button.install = function(app) {
|
|
179
|
-
app.component(Button.name, Button);
|
|
180
|
-
};
|
|
181
360
|
var index = {
|
|
182
361
|
title: "Button \u6309\u94AE",
|
|
183
362
|
category: "\u901A\u7528",
|
|
184
363
|
status: "100%",
|
|
185
364
|
install(app) {
|
|
186
|
-
app.
|
|
365
|
+
app.component(Button.name, Button);
|
|
187
366
|
}
|
|
188
367
|
};
|
|
189
368
|
export { Button, buttonProps, index as default };
|
package/button/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var R=Object.defineProperty;var A=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var y=(i,t,s)=>t in i?R(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,f=(i,t)=>{for(var s in t||(t={}))_.call(t,s)&&y(i,s,t[s]);if(A)for(var s of A(t))I.call(t,s)&&y(i,s,t[s]);return i};var l=(i,t,s)=>(y(i,typeof t!="symbol"?t+"":t,s),s);(function(i,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(i=typeof globalThis!="undefined"?globalThis:i||self,t(i.index={},i.Vue))})(this,function(i,t){"use strict";const s={name:{type:String,default:"",required:!0},size:{type:String,default:"inherit"},color:{type:String,default:"inherit"},classPrefix:{type:String,default:"icon"}};var C=t.defineComponent({name:"DIcon",props:s,setup(e){const{name:n,size:o,color:a,classPrefix:r}=t.toRefs(e);return()=>/^((https?):)?\/\//.test(n.value)?t.createVNode("img",{src:n.value,alt:n.value.split("/")[n.value.split("/").length-1],style:{width:o.value,verticalAlign:"text-bottom"}},null):t.createVNode("i",{class:`${r.value} ${r.value}-${n.value}`,style:{fontSize:o.value,color:a.value}},null)}});class b{constructor(){l(this,"top","50%");l(this,"left","50%")}}const z={message:String,backdrop:Boolean,view:{type:Object,default:()=>new b},zIndex:Number,isFull:{type:Boolean,default:!1}};class T{constructor(){l(this,"target");l(this,"message");l(this,"loadingTemplateRef");l(this,"backdrop",!0);l(this,"positionType","relative");l(this,"view",new b);l(this,"zIndex")}}var q="",B=t.defineComponent({name:"DLoading",inheritAttrs:!1,props:z,setup(e){const n={top:e.view.top,left:e.view.left,zIndex:e.zIndex};e.message||(n.background="none");const o=t.ref(!1);return{style:n,isShow:o,open:()=>{o.value=!0},close:()=>{o.value=!1}}},render(){var d;const{isShow:e,isFull:n,backdrop:o,style:a,message:r,$slots:c}=this;return e&&t.createVNode("div",{class:["devui-loading-contanier",n?"devui-loading--full":""]},[((d=c.default)==null?void 0:d.call(c))||t.createVNode("div",{class:"devui-loading-wrapper"},[o?t.createVNode("div",{class:"devui-loading-mask"},null):null,t.createVNode("div",{style:a,class:"devui-loading-area"},[t.createVNode("div",{class:"devui-busy-default-spinner"},[t.createVNode("div",{class:"devui-loading-bar1"},null),t.createVNode("div",{class:"devui-loading-bar2"},null),t.createVNode("div",{class:"devui-loading-bar3"},null),t.createVNode("div",{class:"devui-loading-bar4"},null)]),r?t.createVNode("span",{class:"devui-loading-text"},[r]):null])])])}});const h=Symbol("dev_component_container");function L(e,n,o=null){const a=t.h(e,f({},n),o),r=document.createElement("div");return a[h]=r,t.render(a,r),a.component}function O(e){t.render(null,e==null?void 0:e.vnode[h])}const $=t.defineComponent(B),u=new WeakSet,g=e=>{if(!e)return!0;if(Array.isArray(e))return e.length===0;if(e instanceof Set||e instanceof Map)return e.size===0;if(e instanceof Promise)return!1;if(typeof e=="object")try{return Object.keys(e).length===0}catch{return!1}return!1},w=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),E=e=>{switch(w(e)){case"promise":return[e];case"array":return e.some(o=>w(o)!=="promise")?(console.error(new TypeError("Binding values should all be of type Promise")),"error"):e;default:return!1}},N=e=>{u.delete(e),e.instance.proxy.close(),O(e.instance)},S=(e,n)=>{if(n.value){const o=E(n.value);if(o==="error")return;e.instance.proxy.open(),e.appendChild(e.mask),u.add(e),o&&Promise.all(o).catch(a=>{console.error(new Error("Promise handling errors"),a)}).finally(()=>{N(e)})}else N(e)},V=e=>{e.removeAttribute("zindex"),e.removeAttribute("positiontype"),e.removeAttribute("backdrop"),e.removeAttribute("message"),e.removeAttribute("view"),e.removeAttribute("loadingtemplateref")},P=(e,n)=>{const o=f(f({},new T),n),a=o.loadingTemplateRef,r=L($,f({},o),a?()=>a:null);e.style.position=o.positionType,e.options=o,e.instance=r,e.mask=r.proxy.$el},M={mounted:function(e,n,o){P(e,o.props),V(e),!g(n.value)&&S(e,n)},updated:function(e,n,o){!g(n.value)&&u.has(e)||g(n.value)&&!u.has(e)||(!u.has(e)&&P(e,o.props),V(e),S(e,n))}},k={variant:{type:String,default:"outline"},size:{type:String,default:"md"},color:{type:String},icon:{type:String,default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}};function j(e,n){const o=t.computed(()=>n.slots.default),r={solid:"primary",outline:"secondary",text:"secondary"}[e.variant],c=t.computed(()=>({"devui-btn":!0,[`devui-btn-${e.variant}`]:!0,[`devui-btn-${e.variant}-${e.color||r}`]:!0,[`devui-btn-${e.size}`]:!0,"devui-btn-icon-wrap":e.icon,"devui-btn-icon":e.icon&&!o.value&&e.variant!=="solid"})),d=t.computed(()=>{if(!e.icon)return;const p="devui-icon-fix icon";return o.value?`${p} clear-right-5`:p});return{classes:c,iconClass:d}}var F="",v=t.defineComponent({name:"DButton",directives:{devLoading:M},props:k,emits:["click"],setup(e,n){const{icon:o,disabled:a,loading:r}=t.toRefs(e),{classes:c,iconClass:d}=j(e,n),p=m=>{r.value||n.emit("click",m)};return()=>{var m,x;return t.withDirectives(t.createVNode("button",{class:c.value,disabled:a.value,onClick:p},[o.value&&t.createVNode(C,{name:o.value,size:"12px",color:"",class:d.value},null),t.createVNode("span",{class:"button-content"},[(x=(m=n.slots).default)==null?void 0:x.call(m)])]),[[t.resolveDirective("dLoading"),r.value]])}}}),D={title:"Button \u6309\u94AE",category:"\u901A\u7528",status:"100%",install(e){e.component(v.name,v)}};i.Button=v,i.buttonProps=k,i.default=D,Object.defineProperty(i,"__esModule",{value:!0}),i[Symbol.toStringTag]="Module"});
|
package/button/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-font-size-base{font-size:var(--devui-font-size, 12px)}.devui-font-base{font-size:var(--devui-font-size, 12px);font-weight:
|
|
1
|
+
@keyframes devui-busy-spinner-anim{0%{transform:rotate(0) scale(1)}50%{transform:rotate(135deg) scale(1.5)}to{transform:rotate(270deg) scale(1)}}.devui-loading-mask{position:absolute;left:0;right:0;bottom:0;top:0;background-color:var(--devui-line, #adb0b8);opacity:.3}.devui-loading-wrapper{text-align:center}.devui-loading--full{position:fixed;left:0;right:0;bottom:0;top:0;z-index:9999}.devui-loading--hidden{overflow:hidden}.devui-loading-text{margin-left:10px}.devui-loading-area{position:absolute;transform:translate(-50%,-50%);padding:12px 14px;background:var(--devui-base-bg, #ffffff);border-radius:var(--devui-border-radius-card, 6px)}.devui-busy-default-spinner{position:relative;display:inline-block;width:15px;height:15px;animation:devui-busy-spinner-anim 1s linear infinite}.devui-busy-default-spinner div{position:absolute;left:44.5%;top:37%;width:6px;height:6px;border-radius:50%}.devui-busy-default-spinner .devui-loading-bar1{top:0;left:0;background:#5e7ce0;background:var(--devui-brand, #5e7ce0)}.devui-busy-default-spinner .devui-loading-bar2{top:0;left:9px;background:#859bff;background:var(--devui-brand-foil, #859bff)}.devui-busy-default-spinner .devui-loading-bar3{top:9px;left:0;background:#859bff;background:var(--devui-brand-foil, #859bff)}.devui-busy-default-spinner .devui-loading-bar4{top:9px;left:9px;background:#5e7ce0;background:var(--devui-brand, #5e7ce0)}.devui-font-size-base{font-size:var(--devui-font-size, 12px)}.devui-font-base{font-size:var(--devui-font-size, 12px);font-weight:400;line-height:1.5}.devui-font-size-modal-title{font-size:var(--devui-font-size-modal-title, 18px)}.devui-font-modal-title{font-size:var(--devui-font-size-modal-title, 18px);font-weight:700;line-height:1.5}.devui-font-size-page-title{font-size:var(--devui-font-size-page-title, 16px)}.devui-font-page-title{font-size:var(--devui-font-size-page-title, 16px);font-weight:700;line-height:1.5}.devui-font-size-secondary-title{font-size:var(--devui-font-size-card-title, 14px)}.devui-font-secondary-title{font-size:var(--devui-font-size-card-title, 14px);font-weight:700;line-height:1.5}.devui-btn{padding:0 20px;font-size:var(--devui-font-size-md, 12px);height:28px;line-height:1.5;border:none;border-radius:var(--devui-border-radius, 2px);border-width:1px;background-color:transparent}.devui-btn:hover{cursor:pointer}.devui-btn:disabled{cursor:not-allowed}.devui-btn-solid{color:var(--devui-light-text, #ffffff);min-width:64px}.devui-btn-solid-secondary{color:var(--devui-text, #252b3a);background-color:var(--devui-dividing-line, #dfe1e6)}.devui-btn-solid-secondary:hover{opacity:.8}.devui-btn-solid-secondary:focus{opacity:.8}.devui-btn-solid-secondary:active{opacity:.8}.devui-btn-solid-secondary:disabled{opacity:.8}.devui-btn-solid-primary{background-color:var(--devui-primary, #5e7ce0)}.devui-btn-solid-primary:hover{background-color:var(--devui-primary-hover, #7693f5)}.devui-btn-solid-primary:focus{background-color:var(--devui-primary-hover, #7693f5)}.devui-btn-solid-primary:active{background-color:var(--devui-primary-active, #344899)}.devui-btn-solid-primary:disabled{color:var(--devui-light-text, #ffffff);background:var(--devui-primary-disabled, #beccfa);border:none}.devui-btn-solid-danger{background-color:var(--devui-contrast, #c7000b)}.devui-btn-solid-danger:hover{background-color:var(--devui-contrast-hover, #d64a52)}.devui-btn-solid-danger:focus{background-color:var(--devui-contrast-hover, #d64a52)}.devui-btn-solid-danger:active{background-color:var(--devui-contrast-active, #b12220)}.devui-btn-solid-danger:disabled{background-color:var(--devui-contrast-disabled, #ffbcba)}.devui-btn-outline{background-color:var(--devui-block, #ffffff);border-style:solid}.devui-btn-outline-secondary{color:var(--devui-text, #252b3a);border-color:var(--devui-line, #adb0b8)}.devui-btn-outline-secondary:hover{color:var(--devui-brand-active, #526ecc);border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-btn-outline-secondary:focus{color:var(--devui-brand-active, #526ecc);border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-btn-outline-secondary:active{color:var(--devui-brand-active, #526ecc);border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-btn-outline-secondary:disabled{color:var(--devui-disabled-text, #adb0b8);border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f6)}.devui-btn-outline-primary{color:var(--devui-brand-active, #526ecc);border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-btn-outline-primary:hover{color:var(--devui-brand-active-focus, #344899);border-color:var(--devui-form-control-line-active-hover, #344899)}.devui-btn-outline-primary:focus{color:var(--devui-brand-active-focus, #344899);border-color:var(--devui-form-control-line-active-hover, #344899)}.devui-btn-outline-primary:active{color:var(--devui-brand-active-focus, #344899);border-color:var(--devui-form-control-line-active-hover, #344899)}.devui-btn-outline-primary:disabled{opacity:.8}.devui-btn-outline-danger{color:var(--devui-contrast, #c7000b);border-color:var(--devui-contrast, #c7000b)}.devui-btn-outline-danger:hover,.devui-btn-outline-danger:focus,.devui-btn-outline-danger:active,.devui-btn-outline-danger:disabled{opacity:.8}.devui-btn-text{padding:0}.devui-btn-text-secondary{color:var(--devui-text, #252b3a)}.devui-btn-text-secondary:hover{color:var(--devui-list-item-hover-text, #526ecc)}.devui-btn-text-secondary:focus{color:var(--devui-list-item-hover-text, #526ecc)}.devui-btn-text-secondary:active{color:var(--devui-list-item-hover-text, #526ecc)}.devui-btn-text-secondary:disabled{color:var(--devui-disabled-text, #adb0b8)}.devui-btn-text-primary{color:var(--devui-brand-active, #526ecc)}.devui-btn-text-primary:hover{color:var(--devui-brand-active-focus, #344899)}.devui-btn-text-primary:focus{color:var(--devui-brand-active-focus, #344899)}.devui-btn-text-primary:active{color:var(--devui-brand-active-focus, #344899)}.devui-btn-text-primary:disabled{opacity:.8}.devui-btn-text-danger{color:var(--devui-contrast, #c7000b)}.devui-btn-text-danger:hover,.devui-btn-text-danger:focus,.devui-btn-text-danger:active,.devui-btn-text-danger:disabled{opacity:.8}.devui-btn-xs{padding:0 4px;height:24px;font-size:var(--devui-font-size-sm, 12px);min-width:48px}.devui-btn-sm{padding:0 16px;height:24px;font-size:var(--devui-font-size-sm, 12px);min-width:56px}.devui-btn-lg{padding:0 24px;height:32px;font-size:var(--devui-font-size-lg, 14px);min-width:72px}.devui-btn.devui-btn-icon:hover,.devui-btn.devui-btn-icon:focus{border:1px solid var(--devui-list-item-hover-bg, #f2f5fc);background-color:var(--devui-list-item-hover-bg, #f2f5fc)}.devui-btn.devui-btn-icon:disabled{background-color:var(--devui-disabled-bg, #f5f5f6)}.devui-btn:not(:disabled).devui-btn-text.devui-btn-icon-wrap{color:var(--devui-text, #252b3a)}.devui-btn:not(:disabled).devui-btn-text.devui-btn-icon-wrap .devui-icon-fix{color:var(--devui-text-weak, #575d6c)}.devui-btn:not(:disabled).devui-btn-text.devui-btn-icon-wrap:hover{color:var(--devui-list-item-hover-text, #526ecc)}.devui-btn:not(:disabled).devui-btn-text.devui-btn-icon-wrap:hover .devui-icon-fix{color:var(--devui-icon-fill-active, #5e7ce0)}.devui-loading .devui-loading-default-spinner div{background-color:var(--devui-text, #252b3a)}.devui-btn{transition:background-color .2s;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}.devui-btn.devui-btn-icon{padding:8px;line-height:1em;border:1px solid transparent}.devui-btn.devui-btn-icon.devui-btn-xs,.devui-btn.devui-btn-icon.devui-btn-sm{padding:4px}.devui-btn.devui-btn-icon.devui-btn-xs,.devui-btn.devui-btn-icon.devui-btn-sm{min-width:24px}.devui-btn.devui-btn-icon.devui-btn-lg{min-width:32px}.devui-btn.devui-btn-icon.devui-btn-lg .icon{font-size:var(--devui-font-size-icon, 16px)}.devui-btn:not(.devui-btn-icon) .icon-fix{font-size:var(--devui-font-size-icon, 16px)}.devui-icon-fix{position:relative;font-size:var(--devui-font-size, 12px)}.button-content{display:inline-block;position:relative}.clear-right-5{margin-right:5px}
|