@g1cloud/bluesea 5.0.0-alpha.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/LICENSE +6 -0
- package/css/bluesea-base.scss +6 -0
- package/css/component.scss +164 -0
- package/css/font.scss +3 -0
- package/css/frame/default.scss +149 -0
- package/css/layout.scss +116 -0
- package/css/reset.scss +58 -0
- package/css/utility.scss +228 -0
- package/css/variable.scss +34 -0
- package/dist/bluesea.js +2465 -0
- package/dist/bluesea.umd.cjs +2466 -0
- package/dist/component/BSButton.vue.d.ts +15 -0
- package/dist/component/basic/BSPopup.vue.d.ts +9 -0
- package/dist/component/grid/BSDateRangeFilter.vue.d.ts +56 -0
- package/dist/component/grid/BSDateRangeFilters.vue.d.ts +23 -0
- package/dist/component/grid/BSGrid.vue.d.ts +80 -0
- package/dist/component/grid/BSGridCell.vue.d.ts +47 -0
- package/dist/component/grid/BSGridCheckboxCell.vue.d.ts +19 -0
- package/dist/component/grid/BSGridCheckboxHeaderCell.vue.d.ts +19 -0
- package/dist/component/grid/BSGridControl.vue.d.ts +53 -0
- package/dist/component/grid/BSGridHeaderCell.vue.d.ts +20 -0
- package/dist/component/grid/BSGridLookup.vue.d.ts +21 -0
- package/dist/component/grid/BSGridPageNavigation.vue.d.ts +51 -0
- package/dist/component/grid/BSTextFilter.vue.d.ts +41 -0
- package/dist/component/grid/DateFilterModel.d.ts +4 -0
- package/dist/component/grid/GridLib.d.ts +3 -0
- package/dist/component/grid/GridModel.d.ts +35 -0
- package/dist/component/input/BSCheckbox.vue.d.ts +50 -0
- package/dist/component/input/BSCheckboxGroup.vue.d.ts +43 -0
- package/dist/component/input/BSDateInput.vue.d.ts +56 -0
- package/dist/component/input/BSMultiSelect.vue.d.ts +43 -0
- package/dist/component/input/BSNumberInput.vue.d.ts +49 -0
- package/dist/component/input/BSRadioButton.vue.d.ts +61 -0
- package/dist/component/input/BSRadioButtonGroup.vue.d.ts +43 -0
- package/dist/component/input/BSSelect.vue.d.ts +43 -0
- package/dist/component/input/BSSelectModel.d.ts +0 -0
- package/dist/component/input/BSSelectPopup.vue.d.ts +55 -0
- package/dist/component/input/BSTextArea.vue.d.ts +49 -0
- package/dist/component/input/BSTextInput.vue.d.ts +49 -0
- package/dist/component/input/BSTreeSelect.vue.d.ts +43 -0
- package/dist/component/input/InternalDateInput.vue.d.ts +36 -0
- package/dist/component/layout/BSTabSheet.vue.d.ts +37 -0
- package/dist/component/layout/TabSheetModel.d.ts +5 -0
- package/dist/component/tree/BSTree.vue.d.ts +63 -0
- package/dist/component/tree/BSTreeRow.vue.d.ts +54 -0
- package/dist/component/tree/TreeLib.d.ts +5 -0
- package/dist/component/tree/TreeModel.d.ts +2 -0
- package/dist/directive/vClickOutside.d.ts +11 -0
- package/dist/frame/FrameModel.d.ts +23 -0
- package/dist/frame/default/DefaultBody.vue.d.ts +2 -0
- package/dist/frame/default/DefaultFrameModel.d.ts +35 -0
- package/dist/frame/default/DefaultHeader.vue.d.ts +2 -0
- package/dist/frame/default/HeaderLogo.vue.d.ts +2 -0
- package/dist/frame/default/HeaderTab.vue.d.ts +16 -0
- package/dist/frame/default/HeaderTabs.vue.d.ts +2 -0
- package/dist/frame/default/SidebarMenu.vue.d.ts +2 -0
- package/dist/frame/default/SidebarMenuItem.vue.d.ts +16 -0
- package/dist/frame/default/SidebarMenuLink.vue.d.ts +20 -0
- package/dist/index.d.ts +35 -0
- package/dist/model/CommonTypes.d.ts +8 -0
- package/dist/model/FilterModel.d.ts +69 -0
- package/dist/model/SearchModel.d.ts +16 -0
- package/dist/style.css +3665 -0
- package/dist/util/componentUtil.d.ts +7 -0
- package/dist/util/formatUtil.d.ts +61 -0
- package/dist/util/routeUtil.d.ts +2 -0
- package/dist/util/typeUtil.d.ts +18 -0
- package/dist/util/waitUtil.d.ts +19 -0
- package/package.json +48 -0
package/css/utility.scss
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
@import "./variable";
|
|
2
|
+
|
|
3
|
+
// width, height
|
|
4
|
+
|
|
5
|
+
@mixin width-height() {
|
|
6
|
+
|
|
7
|
+
@for $index from 0 through 64 {
|
|
8
|
+
.w-#{$index} {
|
|
9
|
+
width: 1px * $index;
|
|
10
|
+
}
|
|
11
|
+
.h-#{$index} {
|
|
12
|
+
height: 1px * $index;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@for $index from 9 through 138 {
|
|
17
|
+
$value: $index * 8;
|
|
18
|
+
.w-#{$value} {
|
|
19
|
+
width: 1px * $value;
|
|
20
|
+
}
|
|
21
|
+
.h-#{$value} {
|
|
22
|
+
height: 1px * $value;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.h-full {
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.w-full {
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@include width-height();
|
|
36
|
+
|
|
37
|
+
// margin, padding
|
|
38
|
+
|
|
39
|
+
@mixin spacings-positive($prefix, $style-names...) {
|
|
40
|
+
@for $index from 0 through 32 {
|
|
41
|
+
.#{$prefix}-#{$index} {
|
|
42
|
+
@each $style-name in $style-names {
|
|
43
|
+
#{$style-name}: 1px * $index !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
@for $index from 5 through 25 {
|
|
48
|
+
$value: $index * 8;
|
|
49
|
+
.#{$prefix}-#{$value} {
|
|
50
|
+
@each $style-name in $style-names {
|
|
51
|
+
#{$style-name}: 1px * $value !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin spacings-negative($prefix, $style-names...) {
|
|
58
|
+
@for $step from 1 through 32 {
|
|
59
|
+
.#{$prefix}-n#{$step} {
|
|
60
|
+
@each $style-name in $style-names {
|
|
61
|
+
#{$style-name}: -1px * $step !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin spacings-auto($prefix, $style-names...) {
|
|
68
|
+
.#{$prefix}-auto {
|
|
69
|
+
@each $style-name in $style-names {
|
|
70
|
+
#{$style-name}: auto !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include spacings-positive("mt", "margin-top");
|
|
76
|
+
@include spacings-positive("mb", "margin-bottom");
|
|
77
|
+
@include spacings-positive("ml", "margin-left");
|
|
78
|
+
@include spacings-positive("mr", "margin-right");
|
|
79
|
+
@include spacings-positive("mx", "margin-left", "margin-right");
|
|
80
|
+
@include spacings-positive("my", "margin-top", "margin-bottom");
|
|
81
|
+
@include spacings-positive("ma", "margin-left", "margin-top", "margin-right", "margin-bottom");
|
|
82
|
+
|
|
83
|
+
@include spacings-negative("mt", "margin-top");
|
|
84
|
+
@include spacings-negative("mb", "margin-bottom");
|
|
85
|
+
@include spacings-negative("ml", "margin-left");
|
|
86
|
+
@include spacings-negative("mr", "margin-right");
|
|
87
|
+
@include spacings-negative("mx", "margin-left", "margin-right");
|
|
88
|
+
@include spacings-negative("my", "margin-top", "margin-bottom");
|
|
89
|
+
@include spacings-negative("ma", "margin-left", "margin-top", "margin-right", "margin-bottom");
|
|
90
|
+
|
|
91
|
+
@include spacings-positive("pt", "padding-top");
|
|
92
|
+
@include spacings-positive("pb", "padding-bottom");
|
|
93
|
+
@include spacings-positive("pl", "padding-left");
|
|
94
|
+
@include spacings-positive("pr", "padding-right");
|
|
95
|
+
@include spacings-positive("px", "padding-left", "padding-right");
|
|
96
|
+
@include spacings-positive("py", "padding-top", "padding-bottom");
|
|
97
|
+
@include spacings-positive("pa", "padding-left", "padding-top", "padding-right", "padding-bottom");
|
|
98
|
+
|
|
99
|
+
@include spacings-negative("pt", "padding-top");
|
|
100
|
+
@include spacings-negative("pb", "padding-bottom");
|
|
101
|
+
@include spacings-negative("pl", "padding-left");
|
|
102
|
+
@include spacings-negative("pr", "padding-right");
|
|
103
|
+
@include spacings-negative("px", "padding-left", "padding-right");
|
|
104
|
+
@include spacings-negative("py", "padding-top", "padding-bottom");
|
|
105
|
+
@include spacings-negative("pa", "padding-left", "padding-top", "padding-right", "padding-bottom");
|
|
106
|
+
|
|
107
|
+
@include spacings-auto("mt", "margin-top");
|
|
108
|
+
@include spacings-auto("mb", "margin-bottom");
|
|
109
|
+
@include spacings-auto("ml", "margin-left");
|
|
110
|
+
@include spacings-auto("mr", "margin-right");
|
|
111
|
+
@include spacings-auto("mx", "margin-left", "margin-right");
|
|
112
|
+
@include spacings-auto("my", "margin-top", "margin-bottom");
|
|
113
|
+
@include spacings-auto("ma", "margin-left", "margin-top", "margin-right", "margin-bottom");
|
|
114
|
+
|
|
115
|
+
// max width, height
|
|
116
|
+
@for $index from 2 through 75 {
|
|
117
|
+
$value: $index * 16;
|
|
118
|
+
.max-w-#{$value} {
|
|
119
|
+
max-width: #{$value}px !important;
|
|
120
|
+
}
|
|
121
|
+
.max-h-#{$value} {
|
|
122
|
+
max-height: #{$value}px !important;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// border
|
|
127
|
+
|
|
128
|
+
.border {
|
|
129
|
+
border: 1px solid $color-border-light;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.border-top {
|
|
133
|
+
border-top: 1px solid $color-border-light;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.border-right {
|
|
137
|
+
border-right: 1px solid $color-border-light;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.border-bottom {
|
|
141
|
+
border-bottom: 1px solid $color-border-light;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.border-left {
|
|
145
|
+
border-left: 1px solid $color-border-light;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.border-top-0 {
|
|
149
|
+
border-top: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.border-right-0 {
|
|
153
|
+
border-right: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.border-bottom-0 {
|
|
157
|
+
border-bottom: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.border-left-0 {
|
|
161
|
+
border-left: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// text attributes
|
|
165
|
+
|
|
166
|
+
$text-aligns: left, right, center, justify;
|
|
167
|
+
@each $text-align in $text-aligns {
|
|
168
|
+
.text-#{$text-align} {
|
|
169
|
+
text-align: $text-align;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.text-nowrap {
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// code chips
|
|
178
|
+
|
|
179
|
+
.code-chip-base {
|
|
180
|
+
padding: 0 8px;
|
|
181
|
+
border: 1px solid #BCC6D3;
|
|
182
|
+
border-radius: 100px;
|
|
183
|
+
background-color: white;
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
|
|
186
|
+
//&::before {
|
|
187
|
+
// @extend .font-icon;
|
|
188
|
+
// content: 'stroke_full';
|
|
189
|
+
// font-size: 0.6em;
|
|
190
|
+
// margin: 0 4px 0 -4px;
|
|
191
|
+
// vertical-align: middle;
|
|
192
|
+
//}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.code-chip-red {
|
|
196
|
+
@extend .code-chip-base;
|
|
197
|
+
color: #E72F34;
|
|
198
|
+
border-color: #FA9A9E;
|
|
199
|
+
background-color: #FFE8E8;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.code-chip-black {
|
|
203
|
+
@extend .code-chip-base;
|
|
204
|
+
color: $color-text;
|
|
205
|
+
border-color: $color-text;
|
|
206
|
+
background-color: #FFF;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.code-chip-gray {
|
|
210
|
+
@extend .code-chip-base;
|
|
211
|
+
color: #8993A4;
|
|
212
|
+
border-color: #BCC6D3;
|
|
213
|
+
background-color: #FFF;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.code-chip-blue {
|
|
217
|
+
@extend .code-chip-base;
|
|
218
|
+
color: #2A52BE;
|
|
219
|
+
border-color: #C1CBE4;
|
|
220
|
+
background-color: #E8EEFC;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.code-chip-green {
|
|
224
|
+
@extend .code-chip-base;
|
|
225
|
+
color: #4FA348;
|
|
226
|
+
border-color: #7ECE78;
|
|
227
|
+
background-color: #E9FEE7;
|
|
228
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-size: 13px;
|
|
3
|
+
--font-size-input: 12px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
font-size: var(--font-size);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
input {
|
|
11
|
+
font-size: var(--font-size-input);
|
|
12
|
+
padding-top: 2px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
textarea {
|
|
16
|
+
font-size: var(--font-size-input);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
$color-text: #555;
|
|
20
|
+
$color-text-light: #B0B1BA;
|
|
21
|
+
|
|
22
|
+
$color-icon-light: #D5D5D5;
|
|
23
|
+
$color-border-light: #DBE0EF;
|
|
24
|
+
$color-hover: #E8EEFC;
|
|
25
|
+
|
|
26
|
+
$color-gray: #8993A4;
|
|
27
|
+
$color-blue: #2A52BE;
|
|
28
|
+
$color-darkblue: #00234D;
|
|
29
|
+
|
|
30
|
+
$border-input: 0.8px solid $color-border-light;
|
|
31
|
+
|
|
32
|
+
$color-focus: #2A52BE;
|
|
33
|
+
|
|
34
|
+
$icon-font-family: "Material Symbols Outlined", monospace;
|