tianheng-ui 0.1.0 → 0.1.2
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 +9 -18
- package/lib/039af9192b9bb277966ceb4e4ce29c41.js +16 -0
- package/lib/2d84c80112a372bc149cad3464e90fa3.js +1617 -0
- package/lib/5977b934a4c6b480790864ea01303173.js +10834 -0
- package/lib/7745f3e776488705a38e62f85adad54d.js +16 -0
- package/lib/de8dee841ffdaaede3a2254deef30376.js +15395 -0
- package/lib/e78eab250e7f8ccac3d918dfdb06ca10.js +8904 -0
- package/lib/theme-chalk/fonts/PingFang.ttf +0 -0
- package/lib/theme-chalk/fonts/bpmn.eot +0 -0
- package/lib/theme-chalk/fonts/bpmn.svg +224 -0
- package/lib/theme-chalk/fonts/bpmn.ttf +0 -0
- package/lib/theme-chalk/fonts/bpmn.woff +0 -0
- package/lib/theme-chalk/fonts/bpmn.woff2 +0 -0
- package/lib/theme-chalk/fonts/fontawesome-webfont.eot +0 -0
- package/lib/theme-chalk/fonts/fontawesome-webfont.svg +2671 -0
- package/lib/theme-chalk/fonts/fontawesome-webfont.ttf +0 -0
- package/lib/theme-chalk/fonts/fontawesome-webfont.woff +0 -0
- package/lib/theme-chalk/fonts/fontawesome-webfont.woff2 +0 -0
- package/lib/theme-chalk/fonts/iconfont.eot +0 -0
- package/lib/theme-chalk/fonts/iconfont.svg +155 -0
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff2 +0 -0
- package/lib/theme-chalk/images/notData.png +0 -0
- package/lib/theme-chalk/index.scss +31 -0
- package/lib/theme-chalk/js/Log.js +99 -0
- package/lib/theme-chalk/js/axios.js +86 -0
- package/lib/theme-chalk/js/store/getters.js +5 -0
- package/lib/theme-chalk/js/store/modules/makingForm.js +21 -0
- package/lib/theme-chalk/js/store/store.js +26 -0
- package/lib/theme-chalk/styles/button.scss +501 -0
- package/lib/theme-chalk/styles/card.scss +29 -0
- package/lib/theme-chalk/styles/cell.scss +54 -0
- package/lib/theme-chalk/styles/codeEditor.scss +9 -0
- package/lib/theme-chalk/styles/col.scss +151 -0
- package/lib/theme-chalk/styles/dialog.scss +56 -0
- package/lib/theme-chalk/styles/empty.scss +22 -0
- package/lib/theme-chalk/styles/feature.scss +46 -0
- package/lib/theme-chalk/styles/font.css +7 -0
- package/lib/theme-chalk/styles/grid.scss +41 -0
- package/lib/theme-chalk/styles/icon.css +1944 -0
- package/lib/theme-chalk/styles/imagePreview.scss +113 -0
- package/lib/theme-chalk/styles/img.scss +35 -0
- package/lib/theme-chalk/styles/reset.scss +17 -0
- package/lib/theme-chalk/styles/root.css +64 -0
- package/lib/theme-chalk/styles/row.scss +23 -0
- package/lib/theme-chalk/styles/upload.scss +744 -0
- package/lib/theme-chalk/styles/variable.scss +80 -0
- package/lib/tianheng-ui.js +116 -0
- package/package.json +86 -48
- package/packages/Button/index.js +8 -0
- package/packages/Button/index.vue +80 -0
- package/packages/Card/index.js +8 -0
- package/packages/Card/index.vue +37 -0
- package/packages/Cell/index.js +8 -0
- package/packages/Cell/index.vue +68 -0
- package/packages/CodeEditor/index.js +8 -0
- package/packages/CodeEditor/index.vue +177 -0
- package/packages/Col/index.js +8 -0
- package/packages/Col/index.vue +43 -0
- package/packages/Dialog/index.js +8 -0
- package/packages/Dialog/index.vue +129 -0
- package/packages/Empty/index.js +8 -0
- package/packages/Empty/index.vue +35 -0
- package/packages/FormMaking/FormConfig.vue +60 -0
- package/packages/FormMaking/GenerateForm.vue +308 -0
- package/packages/FormMaking/GenerateFormItem.vue +887 -0
- package/packages/FormMaking/GenerateFormItemH5.vue +825 -0
- package/packages/FormMaking/Upload/index.vue +572 -0
- package/packages/FormMaking/WidgetConfig.vue +472 -0
- package/packages/FormMaking/WidgetForm.vue +159 -0
- package/packages/FormMaking/WidgetFormItem.vue +187 -0
- package/packages/FormMaking/custom/config.js +762 -0
- package/packages/FormMaking/custom/configs/alliance.vue +0 -0
- package/packages/FormMaking/custom/configs/blank.vue +54 -0
- package/packages/FormMaking/custom/configs/button.vue +172 -0
- package/packages/FormMaking/custom/configs/cascader.vue +175 -0
- package/packages/FormMaking/custom/configs/cell.vue +81 -0
- package/packages/FormMaking/custom/configs/checkbox.vue +234 -0
- package/packages/FormMaking/custom/configs/color.vue +137 -0
- package/packages/FormMaking/custom/configs/date.vue +158 -0
- package/packages/FormMaking/custom/configs/divider.vue +61 -0
- package/packages/FormMaking/custom/configs/editor.vue +71 -0
- package/packages/FormMaking/custom/configs/filler.vue +57 -0
- package/packages/FormMaking/custom/configs/grid.vue +103 -0
- package/packages/FormMaking/custom/configs/image.vue +138 -0
- package/packages/FormMaking/custom/configs/input.vue +176 -0
- package/packages/FormMaking/custom/configs/number.vue +140 -0
- package/packages/FormMaking/custom/configs/radio.vue +211 -0
- package/packages/FormMaking/custom/configs/rate.vue +109 -0
- package/packages/FormMaking/custom/configs/select.vue +305 -0
- package/packages/FormMaking/custom/configs/slider.vue +142 -0
- package/packages/FormMaking/custom/configs/switch.vue +130 -0
- package/packages/FormMaking/custom/configs/table.vue +105 -0
- package/packages/FormMaking/custom/configs/table_h5.vue +102 -0
- package/packages/FormMaking/custom/configs/tabs.vue +175 -0
- package/packages/FormMaking/custom/configs/text.vue +71 -0
- package/packages/FormMaking/custom/configs/textarea.vue +167 -0
- package/packages/FormMaking/custom/configs/time.vue +153 -0
- package/packages/FormMaking/custom/configs/upload.vue +155 -0
- package/packages/FormMaking/custom/index.js +32 -0
- package/packages/FormMaking/custom/items/alliance.vue +132 -0
- package/packages/FormMaking/custom/items/blank.vue +16 -0
- package/packages/FormMaking/custom/items/button.vue +27 -0
- package/packages/FormMaking/custom/items/cascader.vue +29 -0
- package/packages/FormMaking/custom/items/cell.vue +18 -0
- package/packages/FormMaking/custom/items/checkbox.vue +46 -0
- package/packages/FormMaking/custom/items/color.vue +19 -0
- package/packages/FormMaking/custom/items/date.vue +29 -0
- package/packages/FormMaking/custom/items/divider.vue +14 -0
- package/packages/FormMaking/custom/items/editor.vue +22 -0
- package/packages/FormMaking/custom/items/filler.vue +17 -0
- package/packages/FormMaking/custom/items/grid.vue +130 -0
- package/packages/FormMaking/custom/items/image.vue +70 -0
- package/packages/FormMaking/custom/items/input.vue +33 -0
- package/packages/FormMaking/custom/items/login.vue +13 -0
- package/packages/FormMaking/custom/items/number.vue +24 -0
- package/packages/FormMaking/custom/items/radio.vue +44 -0
- package/packages/FormMaking/custom/items/rate.vue +20 -0
- package/packages/FormMaking/custom/items/select.vue +32 -0
- package/packages/FormMaking/custom/items/slider.vue +34 -0
- package/packages/FormMaking/custom/items/switch.vue +22 -0
- package/packages/FormMaking/custom/items/table.vue +106 -0
- package/packages/FormMaking/custom/items/table_h5.vue +126 -0
- package/packages/FormMaking/custom/items/tabs.vue +145 -0
- package/packages/FormMaking/custom/items/text.vue +18 -0
- package/packages/FormMaking/custom/items/textarea.vue +37 -0
- package/packages/FormMaking/custom/items/time.vue +32 -0
- package/packages/FormMaking/custom/items/upload.vue +102 -0
- package/packages/FormMaking/custom/mixins/index.js +61 -0
- package/packages/FormMaking/custom/register.js +18 -0
- package/packages/FormMaking/generate.js +5 -0
- package/packages/FormMaking/iconfont/demo.css +539 -0
- package/packages/FormMaking/iconfont/demo_index.html +1159 -0
- package/packages/FormMaking/iconfont/iconfont.css +189 -0
- package/packages/FormMaking/iconfont/iconfont.eot +0 -0
- package/packages/FormMaking/iconfont/iconfont.js +1 -0
- package/packages/FormMaking/iconfont/iconfont.svg +155 -0
- package/packages/FormMaking/iconfont/iconfont.ttf +0 -0
- package/packages/FormMaking/iconfont/iconfont.woff +0 -0
- package/packages/FormMaking/iconfont/iconfont.woff2 +0 -0
- package/packages/FormMaking/index.js +33 -0
- package/packages/FormMaking/index.vue +807 -0
- package/packages/FormMaking/lang/en-US.js +187 -0
- package/packages/FormMaking/lang/zh-CN.js +187 -0
- package/packages/FormMaking/making.js +9 -0
- package/packages/FormMaking/styles/cover.scss +41 -0
- package/packages/FormMaking/styles/index.scss +785 -0
- package/packages/FormMaking/util/generateCode.js +163 -0
- package/packages/FormMaking/util/index.js +33 -0
- package/packages/FormMaking/util/request.js +28 -0
- package/packages/Grid/index.js +8 -0
- package/packages/Grid/index.vue +21 -0
- package/packages/GridItem/index.js +8 -0
- package/packages/GridItem/index.vue +69 -0
- package/packages/Icons/index.js +8 -0
- package/packages/Icons/index.vue +377 -0
- package/packages/Image/index.js +8 -0
- package/packages/Image/index.vue +146 -0
- package/packages/ImagePreview/index.js +8 -0
- package/packages/ImagePreview/index.vue +386 -0
- package/packages/Row/index.js +8 -0
- package/packages/Row/index.vue +33 -0
- package/packages/Table/action.js +8 -0
- package/packages/Table/action.vue +168 -0
- package/packages/Table/column.vue +63 -0
- package/packages/Table/index.js +8 -0
- package/packages/Table/index.vue +327 -0
- package/packages/Table/search.js +8 -0
- package/packages/Table/search.vue +163 -0
- package/packages/Table/tools.js +8 -0
- package/packages/Table/tools.vue +49 -0
- package/packages/TableMaking/custom/configs/fieldSearch.vue +17 -0
- package/packages/TableMaking/custom/configs/fieldTable.vue +15 -0
- package/packages/TableMaking/custom/items/search/index.vue +158 -0
- package/packages/TableMaking/custom/items/tools/index.vue +49 -0
- package/packages/TableMaking/generate.js +5 -0
- package/packages/TableMaking/generateTable.vue +560 -0
- package/packages/TableMaking/index.vue +229 -0
- package/packages/TableMaking/making.js +5 -0
- package/packages/TableMaking/util/index.js +433 -0
- package/packages/TableMaking/widgetConfig.vue +390 -0
- package/packages/TableMaking/widgetTable.vue +305 -0
- package/packages/Upload/ajax.js +85 -0
- package/packages/Upload/index.js +8 -0
- package/packages/Upload/index.vue +325 -0
- package/packages/Upload/upload-dragger.vue +70 -0
- package/packages/Upload/upload-list.vue +121 -0
- package/packages/Upload/upload.vue +193 -0
- package/packages/VueEditor/index.js +8 -0
- package/packages/VueEditor/index.vue +38 -0
- package/packages/Workflow/Log.js +99 -0
- package/packages/Workflow/designer/ProcessDesigner.vue +628 -0
- package/packages/Workflow/designer/index.js +7 -0
- package/packages/Workflow/designer/plugins/content-pad/contentPadProvider.js +390 -0
- package/packages/Workflow/designer/plugins/content-pad/index.js +6 -0
- package/packages/Workflow/designer/plugins/defaultEmpty.js +24 -0
- package/packages/Workflow/designer/plugins/descriptor/activitiDescriptor.json +1071 -0
- package/packages/Workflow/designer/plugins/descriptor/camundaDescriptor.json +1087 -0
- package/packages/Workflow/designer/plugins/descriptor/flowableDescriptor.json +1215 -0
- package/packages/Workflow/designer/plugins/extension-moddle/activiti/activitiExtension.js +74 -0
- package/packages/Workflow/designer/plugins/extension-moddle/activiti/index.js +9 -0
- package/packages/Workflow/designer/plugins/extension-moddle/camunda/extension.js +148 -0
- package/packages/Workflow/designer/plugins/extension-moddle/camunda/index.js +6 -0
- package/packages/Workflow/designer/plugins/extension-moddle/flowable/flowableExtension.js +74 -0
- package/packages/Workflow/designer/plugins/extension-moddle/flowable/index.js +9 -0
- package/packages/Workflow/designer/plugins/palette/CustomPalette.js +156 -0
- package/packages/Workflow/designer/plugins/palette/index.js +6 -0
- package/packages/Workflow/designer/plugins/palette/paletteProvider.js +160 -0
- package/packages/Workflow/designer/plugins/translate/customTranslate.js +41 -0
- package/packages/Workflow/designer/plugins/translate/zh.js +238 -0
- package/packages/Workflow/highlight/index.js +5 -0
- package/packages/Workflow/index.js +34 -0
- package/packages/Workflow/index.vue +399 -0
- package/packages/Workflow/modules/auto-place/CustomAutoPlace.js +81 -0
- package/packages/Workflow/modules/auto-place/index.js +6 -0
- package/packages/Workflow/modules/custom-renderer/CustomRenderer.js +17 -0
- package/packages/Workflow/modules/custom-renderer/index.js +6 -0
- package/packages/Workflow/modules/rules/CustomRules.js +16 -0
- package/packages/Workflow/modules/rules/index.js +6 -0
- package/packages/Workflow/palette/ProcessPalette.vue +106 -0
- package/packages/Workflow/palette/index.js +7 -0
- package/packages/Workflow/penal/PropertiesPanel.vue +245 -0
- package/packages/Workflow/penal/base/ElementBaseInfo.vue +80 -0
- package/packages/Workflow/penal/flow-condition/FlowCondition.vue +142 -0
- package/packages/Workflow/penal/form/ElementForm.vue +367 -0
- package/packages/Workflow/penal/index.js +7 -0
- package/packages/Workflow/penal/listeners/ElementListeners.vue +299 -0
- package/packages/Workflow/penal/listeners/UserTaskListeners.vue +322 -0
- package/packages/Workflow/penal/listeners/template.js +178 -0
- package/packages/Workflow/penal/listeners/utilSelf.js +64 -0
- package/packages/Workflow/penal/multi-instance/ElementMultiInstance.vue +200 -0
- package/packages/Workflow/penal/other/ElementOtherConfig.vue +59 -0
- package/packages/Workflow/penal/properties/ElementProperties.vue +135 -0
- package/packages/Workflow/penal/signal-message/SignalAndMessage.vue +104 -0
- package/packages/Workflow/penal/task/ElementTask.vue +73 -0
- package/packages/Workflow/penal/task/task-components/ReceiveTask.vue +97 -0
- package/packages/Workflow/penal/task/task-components/ScriptTask.vue +85 -0
- package/packages/Workflow/penal/task/task-components/UserTask.vue +535 -0
- package/packages/Workflow/theme/element-variables.scss +70 -0
- package/packages/Workflow/theme/index.scss +2 -0
- package/packages/Workflow/theme/process-designer.scss +157 -0
- package/packages/Workflow/theme/process-panel.scss +107 -0
- package/packages/Workflow/translations.js +25 -0
- package/packages/Workflow/utils.js +71 -0
- package/packages/index.js +160 -0
- package/babel.config.js +0 -15
- package/index.js +0 -11
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/App.vue +0 -28
- package/src/assets/logo.png +0 -0
- package/src/components/HelloWorld.vue +0 -58
- package/src/main.js +0 -8
@@ -0,0 +1,501 @@
|
|
1
|
+
.th-button {
|
2
|
+
display: inline-block;
|
3
|
+
line-height: 1;
|
4
|
+
white-space: nowrap;
|
5
|
+
cursor: pointer;
|
6
|
+
background: #fff;
|
7
|
+
border: 1px solid #dcdfe6;
|
8
|
+
color: #606266;
|
9
|
+
-webkit-appearance: none;
|
10
|
+
text-align: center;
|
11
|
+
-webkit-box-sizing: border-box;
|
12
|
+
box-sizing: border-box;
|
13
|
+
outline: 0;
|
14
|
+
margin: 0;
|
15
|
+
-webkit-transition: 0.1s;
|
16
|
+
transition: 0.1s;
|
17
|
+
font-weight: 500;
|
18
|
+
-moz-user-select: none;
|
19
|
+
-webkit-user-select: none;
|
20
|
+
-ms-user-select: none;
|
21
|
+
padding: 12px 20px;
|
22
|
+
font-size: 14px;
|
23
|
+
border-radius: 4px;
|
24
|
+
}
|
25
|
+
.th-button + .th-button {
|
26
|
+
margin-left: 10px;
|
27
|
+
}
|
28
|
+
.th-button:focus,
|
29
|
+
.th-button:hover {
|
30
|
+
color: $color-parimary;
|
31
|
+
border-color: #c6e2ff;
|
32
|
+
background-color: #ecf5ff;
|
33
|
+
}
|
34
|
+
.th-button:active {
|
35
|
+
color: $color-parimary-active;
|
36
|
+
border-color: $color-parimary-active;
|
37
|
+
outline: 0;
|
38
|
+
}
|
39
|
+
.th-button::-moz-focus-inner {
|
40
|
+
border: 0;
|
41
|
+
}
|
42
|
+
.th-button [class*="el-icon-"] + span {
|
43
|
+
margin-left: 5px;
|
44
|
+
}
|
45
|
+
.th-button.is-plain:focus,
|
46
|
+
.th-button.is-plain:hover {
|
47
|
+
background: #fff;
|
48
|
+
border-color: $color-parimary;
|
49
|
+
color: $color-parimary;
|
50
|
+
}
|
51
|
+
.th-button.is-active,
|
52
|
+
.th-button.is-plain:active {
|
53
|
+
color: $color-parimary-active;
|
54
|
+
border-color: $color-parimary-active;
|
55
|
+
}
|
56
|
+
.th-button.is-plain:active {
|
57
|
+
background: #fff;
|
58
|
+
outline: 0;
|
59
|
+
}
|
60
|
+
.th-button.is-disabled,
|
61
|
+
.th-button.is-disabled:focus,
|
62
|
+
.th-button.is-disabled:hover {
|
63
|
+
color: #c0c4cc;
|
64
|
+
cursor: not-allowed;
|
65
|
+
background-image: none;
|
66
|
+
background-color: #fff;
|
67
|
+
border-color: #ebeef5;
|
68
|
+
}
|
69
|
+
.th-button.is-disabled.th-button-text {
|
70
|
+
background-color: transparent;
|
71
|
+
}
|
72
|
+
.th-button.is-disabled.is-plain,
|
73
|
+
.th-button.is-disabled.is-plain:focus,
|
74
|
+
.th-button.is-disabled.is-plain:hover {
|
75
|
+
background-color: #fff;
|
76
|
+
border-color: #ebeef5;
|
77
|
+
color: #c0c4cc;
|
78
|
+
}
|
79
|
+
.th-button.is-loading {
|
80
|
+
position: relative;
|
81
|
+
pointer-events: none;
|
82
|
+
}
|
83
|
+
.th-button.is-loading:before {
|
84
|
+
pointer-events: none;
|
85
|
+
content: "";
|
86
|
+
position: absolute;
|
87
|
+
left: -1px;
|
88
|
+
top: -1px;
|
89
|
+
right: -1px;
|
90
|
+
bottom: -1px;
|
91
|
+
border-radius: inherit;
|
92
|
+
background-color: rgba(255, 255, 255, 0.35);
|
93
|
+
}
|
94
|
+
.th-button.is-round {
|
95
|
+
border-radius: 20px;
|
96
|
+
padding: 12px 23px;
|
97
|
+
}
|
98
|
+
.th-button.is-circle {
|
99
|
+
border-radius: 50%;
|
100
|
+
padding: 12px;
|
101
|
+
}
|
102
|
+
.th-button-primary {
|
103
|
+
color: #fff;
|
104
|
+
background-color: $color-parimary;
|
105
|
+
border-color: $color-parimary;
|
106
|
+
}
|
107
|
+
.th-button-primary:focus,
|
108
|
+
.th-button-primary:hover {
|
109
|
+
color: #fff;
|
110
|
+
background: $color-parimary-hover;
|
111
|
+
border-color: $color-parimary-hover;
|
112
|
+
}
|
113
|
+
.th-button-primary:active {
|
114
|
+
color: #fff;
|
115
|
+
background: $color-parimary-active;
|
116
|
+
border-color: $color-parimary-active;
|
117
|
+
outline: 0;
|
118
|
+
}
|
119
|
+
.th-button-primary.is-active {
|
120
|
+
color: #fff;
|
121
|
+
background: $color-parimary-active;
|
122
|
+
border-color: $color-parimary-active;
|
123
|
+
}
|
124
|
+
.th-button-primary.is-disabled,
|
125
|
+
.th-button-primary.is-disabled:active,
|
126
|
+
.th-button-primary.is-disabled:focus,
|
127
|
+
.th-button-primary.is-disabled:hover {
|
128
|
+
color: #fff;
|
129
|
+
background-color: $color-parimary-disabled;
|
130
|
+
border-color: $color-parimary-disabled;
|
131
|
+
}
|
132
|
+
.th-button-primary.is-plain {
|
133
|
+
color: $color-parimary;
|
134
|
+
background: $color-parimary-lighter;
|
135
|
+
border-color: $color-parimary-light;
|
136
|
+
}
|
137
|
+
.th-button-primary.is-plain:focus,
|
138
|
+
.th-button-primary.is-plain:hover {
|
139
|
+
background: $color-parimary;
|
140
|
+
border-color: $color-parimary;
|
141
|
+
color: #fff;
|
142
|
+
}
|
143
|
+
.th-button-primary.is-plain:active {
|
144
|
+
background: $color-parimary-active;
|
145
|
+
border-color: $color-parimary-active;
|
146
|
+
color: #fff;
|
147
|
+
outline: 0;
|
148
|
+
}
|
149
|
+
.th-button-primary.is-plain.is-disabled,
|
150
|
+
.th-button-primary.is-plain.is-disabled:active,
|
151
|
+
.th-button-primary.is-plain.is-disabled:focus,
|
152
|
+
.th-button-primary.is-plain.is-disabled:hover {
|
153
|
+
color: $color-parimary-light;
|
154
|
+
background-color: $color-parimary-lighter;
|
155
|
+
border-color: $color-parimary-light;
|
156
|
+
}
|
157
|
+
.th-button-success {
|
158
|
+
color: #fff;
|
159
|
+
background-color: $color-success;
|
160
|
+
border-color: $color-success;
|
161
|
+
}
|
162
|
+
.th-button-success:focus,
|
163
|
+
.th-button-success:hover {
|
164
|
+
background: $color-success-hover;
|
165
|
+
border-color: $color-success-hover;
|
166
|
+
color: #fff;
|
167
|
+
}
|
168
|
+
.th-button-success.is-active,
|
169
|
+
.th-button-success:active {
|
170
|
+
background: $color-success-active;
|
171
|
+
border-color: $color-success-active;
|
172
|
+
color: #fff;
|
173
|
+
}
|
174
|
+
.th-button-success:active {
|
175
|
+
outline: 0;
|
176
|
+
}
|
177
|
+
.th-button-success.is-disabled,
|
178
|
+
.th-button-success.is-disabled:active,
|
179
|
+
.th-button-success.is-disabled:focus,
|
180
|
+
.th-button-success.is-disabled:hover {
|
181
|
+
color: #fff;
|
182
|
+
background-color: $color-success-disabled;
|
183
|
+
border-color: $color-success-disabled;
|
184
|
+
}
|
185
|
+
.th-button-success.is-plain {
|
186
|
+
color: $color-success;
|
187
|
+
background: $color-success-lighter;
|
188
|
+
border-color: $color-success-light;
|
189
|
+
}
|
190
|
+
.th-button-success.is-plain:focus,
|
191
|
+
.th-button-success.is-plain:hover {
|
192
|
+
background: $color-success;
|
193
|
+
border-color: $color-success;
|
194
|
+
color: #fff;
|
195
|
+
}
|
196
|
+
.th-button-success.is-plain:active {
|
197
|
+
background: $color-success-active;
|
198
|
+
border-color: $color-success-active;
|
199
|
+
color: #fff;
|
200
|
+
outline: 0;
|
201
|
+
}
|
202
|
+
.th-button-success.is-plain.is-disabled,
|
203
|
+
.th-button-success.is-plain.is-disabled:active,
|
204
|
+
.th-button-success.is-plain.is-disabled:focus,
|
205
|
+
.th-button-success.is-plain.is-disabled:hover {
|
206
|
+
color: $color-success-light;
|
207
|
+
background-color: $color-success-lighter;
|
208
|
+
border-color: $color-success-light;
|
209
|
+
}
|
210
|
+
.th-button-warning {
|
211
|
+
color: #fff;
|
212
|
+
background-color: $color-warning;
|
213
|
+
border-color: $color-warning;
|
214
|
+
}
|
215
|
+
.th-button-warning:focus,
|
216
|
+
.th-button-warning:hover {
|
217
|
+
background: $color-warning-hover;
|
218
|
+
border-color: $color-warning-hover;
|
219
|
+
color: #fff;
|
220
|
+
}
|
221
|
+
.th-button-warning.is-active,
|
222
|
+
.th-button-warning:active {
|
223
|
+
background: $color-warning-active;
|
224
|
+
border-color: $color-warning-active;
|
225
|
+
color: #fff;
|
226
|
+
}
|
227
|
+
.th-button-warning:active {
|
228
|
+
outline: 0;
|
229
|
+
}
|
230
|
+
.th-button-warning.is-disabled,
|
231
|
+
.th-button-warning.is-disabled:active,
|
232
|
+
.th-button-warning.is-disabled:focus,
|
233
|
+
.th-button-warning.is-disabled:hover {
|
234
|
+
color: #fff;
|
235
|
+
background-color: $color-warning-disabled;
|
236
|
+
border-color: $color-warning-disabled;
|
237
|
+
}
|
238
|
+
.th-button-warning.is-plain {
|
239
|
+
color: $color-warning;
|
240
|
+
background: $color-warning-lighter;
|
241
|
+
border-color: $color-warning-light;
|
242
|
+
}
|
243
|
+
.th-button-warning.is-plain:focus,
|
244
|
+
.th-button-warning.is-plain:hover {
|
245
|
+
background: $color-warning;
|
246
|
+
border-color: $color-warning;
|
247
|
+
color: #fff;
|
248
|
+
}
|
249
|
+
.th-button-warning.is-plain:active {
|
250
|
+
background: $color-warning-active;
|
251
|
+
border-color: $color-warning-active;
|
252
|
+
color: #fff;
|
253
|
+
outline: 0;
|
254
|
+
}
|
255
|
+
.th-button-warning.is-plain.is-disabled,
|
256
|
+
.th-button-warning.is-plain.is-disabled:active,
|
257
|
+
.th-button-warning.is-plain.is-disabled:focus,
|
258
|
+
.th-button-warning.is-plain.is-disabled:hover {
|
259
|
+
color: $color-warning-light;
|
260
|
+
background-color: $color-warning-lighter;
|
261
|
+
border-color: $color-warning-light;
|
262
|
+
}
|
263
|
+
.th-button-danger {
|
264
|
+
color: #fff;
|
265
|
+
background-color: $color-danger;
|
266
|
+
border-color: $color-danger;
|
267
|
+
}
|
268
|
+
.th-button-danger:focus,
|
269
|
+
.th-button-danger:hover {
|
270
|
+
background: $color-danger-hover;
|
271
|
+
border-color: $color-danger-hover;
|
272
|
+
color: #fff;
|
273
|
+
}
|
274
|
+
.th-button-danger.is-active,
|
275
|
+
.th-button-danger:active {
|
276
|
+
background: $color-danger-active;
|
277
|
+
border-color: $color-danger-active;
|
278
|
+
color: #fff;
|
279
|
+
}
|
280
|
+
.th-button-danger:active {
|
281
|
+
outline: 0;
|
282
|
+
}
|
283
|
+
.th-button-danger.is-disabled,
|
284
|
+
.th-button-danger.is-disabled:active,
|
285
|
+
.th-button-danger.is-disabled:focus,
|
286
|
+
.th-button-danger.is-disabled:hover {
|
287
|
+
color: #fff;
|
288
|
+
background-color: $color-danger-disabled;
|
289
|
+
border-color: $color-danger-disabled;
|
290
|
+
}
|
291
|
+
.th-button-danger.is-plain {
|
292
|
+
color: $color-danger;
|
293
|
+
background: $color-danger-lighter;
|
294
|
+
border-color: $color-danger-light;
|
295
|
+
}
|
296
|
+
.th-button-danger.is-plain:focus,
|
297
|
+
.th-button-danger.is-plain:hover {
|
298
|
+
background: $color-danger;
|
299
|
+
border-color: $color-danger;
|
300
|
+
color: #fff;
|
301
|
+
}
|
302
|
+
.th-button-danger.is-plain:active {
|
303
|
+
background: $color-danger-active;
|
304
|
+
border-color: $color-danger-active;
|
305
|
+
color: #fff;
|
306
|
+
outline: 0;
|
307
|
+
}
|
308
|
+
.th-button-danger.is-plain.is-disabled,
|
309
|
+
.th-button-danger.is-plain.is-disabled:active,
|
310
|
+
.th-button-danger.is-plain.is-disabled:focus,
|
311
|
+
.th-button-danger.is-plain.is-disabled:hover {
|
312
|
+
color: $color-danger-light;
|
313
|
+
background-color: $color-danger-lighter;
|
314
|
+
border-color: $color-danger-light;
|
315
|
+
}
|
316
|
+
.th-button-info {
|
317
|
+
color: #fff;
|
318
|
+
background-color: $color-info;
|
319
|
+
border-color: $color-info;
|
320
|
+
}
|
321
|
+
.th-button-info:focus,
|
322
|
+
.th-button-info:hover {
|
323
|
+
background: $color-info-hover;
|
324
|
+
border-color: $color-info-hover;
|
325
|
+
color: #fff;
|
326
|
+
}
|
327
|
+
.th-button-info.is-active,
|
328
|
+
.th-button-info:active {
|
329
|
+
background: $color-info-active;
|
330
|
+
border-color: $color-info-active;
|
331
|
+
color: #fff;
|
332
|
+
}
|
333
|
+
.th-button-info:active {
|
334
|
+
outline: 0;
|
335
|
+
}
|
336
|
+
.th-button-info.is-disabled,
|
337
|
+
.th-button-info.is-disabled:active,
|
338
|
+
.th-button-info.is-disabled:focus,
|
339
|
+
.th-button-info.is-disabled:hover {
|
340
|
+
color: #fff;
|
341
|
+
background-color: $color-info-disabled;
|
342
|
+
border-color: $color-info-disabled;
|
343
|
+
}
|
344
|
+
.th-button-info.is-plain {
|
345
|
+
color: $color-info;
|
346
|
+
background: $color-info-lighter;
|
347
|
+
border-color: $color-info-light;
|
348
|
+
}
|
349
|
+
.th-button-info.is-plain:focus,
|
350
|
+
.th-button-info.is-plain:hover {
|
351
|
+
background: $color-info;
|
352
|
+
border-color: $color-info;
|
353
|
+
color: #fff;
|
354
|
+
}
|
355
|
+
.th-button-info.is-plain:active {
|
356
|
+
background: $color-info-active;
|
357
|
+
border-color: $color-info-active;
|
358
|
+
color: #fff;
|
359
|
+
outline: 0;
|
360
|
+
}
|
361
|
+
.th-button-info.is-plain.is-disabled,
|
362
|
+
.th-button-info.is-plain.is-disabled:active,
|
363
|
+
.th-button-info.is-plain.is-disabled:focus,
|
364
|
+
.th-button-info.is-plain.is-disabled:hover {
|
365
|
+
color: $color-info-light;
|
366
|
+
background-color: $color-info-lighter;
|
367
|
+
border-color: $color-info-light;
|
368
|
+
}
|
369
|
+
.th-button-size-medium {
|
370
|
+
padding: 10px 20px;
|
371
|
+
font-size: 14px;
|
372
|
+
border-radius: 4px;
|
373
|
+
}
|
374
|
+
.th-button-size-mini,
|
375
|
+
.th-button-size-small {
|
376
|
+
font-size: 12px;
|
377
|
+
border-radius: 3px;
|
378
|
+
}
|
379
|
+
.th-button-size-medium.is-round {
|
380
|
+
padding: 10px 20px;
|
381
|
+
}
|
382
|
+
.th-button-size-medium.is-circle {
|
383
|
+
padding: 10px;
|
384
|
+
}
|
385
|
+
.th-button-size-small,
|
386
|
+
.th-button-size-small.is-round {
|
387
|
+
padding: 9px 15px;
|
388
|
+
}
|
389
|
+
.th-button-size-small.is-circle {
|
390
|
+
padding: 9px;
|
391
|
+
}
|
392
|
+
.th-button-size-mini,
|
393
|
+
.th-button-size-mini.is-round {
|
394
|
+
padding: 7px 15px;
|
395
|
+
}
|
396
|
+
.th-button-size-mini.is-circle {
|
397
|
+
padding: 7px;
|
398
|
+
}
|
399
|
+
.th-button-text {
|
400
|
+
border-color: transparent;
|
401
|
+
color: $color-parimary;
|
402
|
+
background: 0 0;
|
403
|
+
padding-left: 0;
|
404
|
+
padding-right: 0;
|
405
|
+
}
|
406
|
+
.th-button-text:focus,
|
407
|
+
.th-button-text:hover {
|
408
|
+
color: $color-parimary-hover;
|
409
|
+
border-color: transparent;
|
410
|
+
background-color: transparent;
|
411
|
+
}
|
412
|
+
.th-button-text:active {
|
413
|
+
color: $color-parimary-active;
|
414
|
+
border-color: transparent;
|
415
|
+
background-color: transparent;
|
416
|
+
}
|
417
|
+
.th-button-text.is-disabled,
|
418
|
+
.th-button-text.is-disabled:focus,
|
419
|
+
.th-button-text.is-disabled:hover {
|
420
|
+
border-color: transparent;
|
421
|
+
}
|
422
|
+
.th-button-group .th-button-danger:last-child,
|
423
|
+
.th-button-group .th-button-danger:not(:first-child):not(:last-child),
|
424
|
+
.th-button-group .th-button-info:last-child,
|
425
|
+
.th-button-group .th-button-info:not(:first-child):not(:last-child),
|
426
|
+
.th-button-group .th-button-primary:last-child,
|
427
|
+
.th-button-group .th-button-primary:not(:first-child):not(:last-child),
|
428
|
+
.th-button-group .th-button-success:last-child,
|
429
|
+
.th-button-group .th-button-success:not(:first-child):not(:last-child),
|
430
|
+
.th-button-group .th-button-warning:last-child,
|
431
|
+
.th-button-group .th-button-warning:not(:first-child):not(:last-child),
|
432
|
+
.th-button-group > .th-dropdown > .th-button {
|
433
|
+
border-left-color: rgba(255, 255, 255, 0.5);
|
434
|
+
}
|
435
|
+
.th-button-group .th-button-danger:first-child,
|
436
|
+
.th-button-group .th-button-danger:not(:first-child):not(:last-child),
|
437
|
+
.th-button-group .th-button-info:first-child,
|
438
|
+
.th-button-group .th-button-info:not(:first-child):not(:last-child),
|
439
|
+
.th-button-group .th-button-primary:first-child,
|
440
|
+
.th-button-group .th-button-primary:not(:first-child):not(:last-child),
|
441
|
+
.th-button-group .th-button-success:first-child,
|
442
|
+
.th-button-group .th-button-success:not(:first-child):not(:last-child),
|
443
|
+
.th-button-group .th-button-warning:first-child,
|
444
|
+
.th-button-group .th-button-warning:not(:first-child):not(:last-child) {
|
445
|
+
border-right-color: rgba(255, 255, 255, 0.5);
|
446
|
+
}
|
447
|
+
.th-button-group {
|
448
|
+
display: inline-block;
|
449
|
+
vertical-align: middle;
|
450
|
+
}
|
451
|
+
.th-button-group::after,
|
452
|
+
.th-button-group::before {
|
453
|
+
display: table;
|
454
|
+
content: "";
|
455
|
+
}
|
456
|
+
.th-button-group::after {
|
457
|
+
clear: both;
|
458
|
+
}
|
459
|
+
.th-button-group > .th-button {
|
460
|
+
float: left;
|
461
|
+
position: relative;
|
462
|
+
}
|
463
|
+
.th-button-group > .th-button + .th-button {
|
464
|
+
margin-left: 0;
|
465
|
+
}
|
466
|
+
.th-button-group > .th-button.is-disabled {
|
467
|
+
z-index: 1;
|
468
|
+
}
|
469
|
+
.th-button-group > .th-button:first-child {
|
470
|
+
border-top-right-radius: 0;
|
471
|
+
border-bottom-right-radius: 0;
|
472
|
+
}
|
473
|
+
.th-button-group > .th-button:last-child {
|
474
|
+
border-top-left-radius: 0;
|
475
|
+
border-bottom-left-radius: 0;
|
476
|
+
}
|
477
|
+
.th-button-group > .th-button:first-child:last-child {
|
478
|
+
border-radius: 4px;
|
479
|
+
}
|
480
|
+
.th-button-group > .th-button:first-child:last-child.is-round {
|
481
|
+
border-radius: 20px;
|
482
|
+
}
|
483
|
+
.th-button-group > .th-button:first-child:last-child.is-circle {
|
484
|
+
border-radius: 50%;
|
485
|
+
}
|
486
|
+
.th-button-group > .th-button:not(:first-child):not(:last-child) {
|
487
|
+
border-radius: 0;
|
488
|
+
}
|
489
|
+
.th-button-group > .th-button:not(:last-child) {
|
490
|
+
margin-right: -1px;
|
491
|
+
}
|
492
|
+
.th-button-group > .th-button.is-active,
|
493
|
+
.th-button-group > .th-button:not(.is-disabled):active,
|
494
|
+
.th-button-group > .th-button:not(.is-disabled):focus,
|
495
|
+
.th-button-group > .th-button:not(.is-disabled):hover {
|
496
|
+
z-index: 1;
|
497
|
+
}
|
498
|
+
.th-button-group > .th-dropdown > .th-button {
|
499
|
+
border-top-left-radius: 0;
|
500
|
+
border-bottom-left-radius: 0;
|
501
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.th-card {
|
2
|
+
color: $color-text-primary;
|
3
|
+
border-radius: $border-radius-xs;
|
4
|
+
overflow: hidden;
|
5
|
+
transition: $transition;
|
6
|
+
}
|
7
|
+
|
8
|
+
.th-card-header {
|
9
|
+
display: flex;
|
10
|
+
align-items: center;
|
11
|
+
justify-content: space-between;
|
12
|
+
padding: 18px 20px;
|
13
|
+
font-size: $font-size-md;
|
14
|
+
border-bottom: 1px solid $border-color-base;
|
15
|
+
}
|
16
|
+
|
17
|
+
.th-card-body {
|
18
|
+
padding: 20px;
|
19
|
+
font-size: $font-size-sm;
|
20
|
+
}
|
21
|
+
|
22
|
+
.always-shadow {
|
23
|
+
box-shadow: $box-shadow;
|
24
|
+
}
|
25
|
+
.hover-shadow:hover {
|
26
|
+
box-shadow: $box-shadow;
|
27
|
+
}
|
28
|
+
.never-shadow {
|
29
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
.th-cell {
|
2
|
+
position: relative;
|
3
|
+
display: flex;
|
4
|
+
padding: 10px 16px;
|
5
|
+
width: 100%;
|
6
|
+
line-height: 24px;
|
7
|
+
background-color: $background-color-white;
|
8
|
+
box-sizing: border-box;
|
9
|
+
overflow: hidden;
|
10
|
+
transition: $transition;
|
11
|
+
}
|
12
|
+
.th-cell-icon {
|
13
|
+
margin-right: 8px;
|
14
|
+
height: 24px;
|
15
|
+
line-height: 24px;
|
16
|
+
font-size: $font-size-md;
|
17
|
+
}
|
18
|
+
.th-cell-content {
|
19
|
+
flex: 1;
|
20
|
+
word-wrap: break-word;
|
21
|
+
word-break: break-all;
|
22
|
+
}
|
23
|
+
.th-cell-title {
|
24
|
+
font-size: $font-size-sm;
|
25
|
+
color: $color-text-primary;
|
26
|
+
}
|
27
|
+
.th-cell-label {
|
28
|
+
margin-top: 4px;
|
29
|
+
line-height: 18px;
|
30
|
+
font-size: $font-size-xs;
|
31
|
+
color: $color-text-regular;
|
32
|
+
}
|
33
|
+
.th-cell-value {
|
34
|
+
position: relative;
|
35
|
+
margin-left: 8px;
|
36
|
+
max-width: 50%;
|
37
|
+
font-size: $font-size-sm;
|
38
|
+
color: $color-text-secondary;
|
39
|
+
overflow: hidden;
|
40
|
+
text-align: right;
|
41
|
+
vertical-align: middle;
|
42
|
+
word-wrap: break-word;
|
43
|
+
word-break: break-all;
|
44
|
+
}
|
45
|
+
|
46
|
+
.th-cell-active {
|
47
|
+
background-color: $background-color-base;
|
48
|
+
}
|
49
|
+
.th-cell-center {
|
50
|
+
align-items: center;
|
51
|
+
}
|
52
|
+
.th-cell-hover:hover {
|
53
|
+
background-color: $background-color-base;
|
54
|
+
}
|