@daracl/form 0.0.17 → 0.0.19
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 +1 -1
- package/dist/DaraForm.d.ts +51 -2
- package/dist/FieldInfoMap.d.ts +8 -1
- package/dist/FormTemplate.d.ts +2 -2
- package/dist/constants.d.ts +5 -1
- package/dist/daracl.form.css +788 -0
- package/dist/daracl.form.min.css +10 -0
- package/dist/daracl.form.min.umd.js +171 -0
- package/dist/daracl.form.min.umd.js.map +1 -0
- package/dist/daracl.form.umd.js +4497 -0
- package/dist/daracl.form.umd.js.map +1 -0
- package/dist/defaultOption.d.ts +8 -0
- package/dist/event/renderEvents.d.ts +1 -1
- package/dist/global.d.ts +6 -0
- package/dist/index.cjs +1827 -520
- package/dist/index.cjs.map +1 -7
- package/dist/index.d.ts +7 -2
- package/dist/index.html +193 -348
- package/dist/index.js +4106 -3097
- package/dist/index.js.map +1 -7
- package/dist/index.min.cjs +171 -0
- package/dist/index.min.cjs.map +1 -0
- package/dist/index.min.js +2915 -0
- package/dist/index.min.js.map +1 -0
- package/dist/index.umd.d.ts +7 -0
- package/dist/renderer/ButtonRender.d.ts +2 -2
- package/dist/renderer/CheckboxRender.d.ts +2 -2
- package/dist/renderer/CustomRender.d.ts +2 -2
- package/dist/renderer/DateRender.d.ts +2 -2
- package/dist/renderer/DropdownRender.d.ts +2 -2
- package/dist/renderer/FileRender.d.ts +2 -2
- package/dist/renderer/GridRender.d.ts +2 -2
- package/dist/renderer/GroupRender.d.ts +2 -2
- package/dist/renderer/HiddenRender.d.ts +2 -2
- package/dist/renderer/NumberRender.d.ts +2 -2
- package/dist/renderer/PasswordRender.d.ts +2 -2
- package/dist/renderer/RadioRender.d.ts +2 -2
- package/dist/renderer/RangeRender.d.ts +2 -2
- package/dist/renderer/Render.d.ts +2 -2
- package/dist/renderer/TabRender.d.ts +2 -2
- package/dist/renderer/TextAreaRender.d.ts +2 -2
- package/dist/renderer/TextRender.d.ts +2 -2
- package/dist/types/FormField.d.ts +18 -13
- package/dist/types/FormOptions.d.ts +1 -1
- package/dist/types/style.d.ts +3 -0
- package/dist/util/renderFactory.d.ts +1 -1
- package/dist/util/styleUtils.d.ts +10 -12
- package/dist/util/utils.d.ts +1 -1
- package/package.json +129 -140
- package/style/abstracts/_index.scss +2 -0
- package/style/abstracts/_mixins.scss +22 -0
- package/style/abstracts/_variables.scss +1 -0
- package/style/base/_base.scss +68 -0
- package/style/base/_index.scss +1 -0
- package/style/components/_button.scss +16 -0
- package/style/components/_field-container.scss +42 -0
- package/style/components/_field-group.scss +16 -0
- package/style/components/_file-list.scss +59 -0
- package/style/components/_form-field.scss +48 -0
- package/style/components/_form-group.scss +94 -0
- package/style/components/_grid-field.scss +120 -0
- package/style/components/_icon.scss +26 -0
- package/style/components/_index.scss +11 -0
- package/style/components/_label.scss +65 -0
- package/style/components/_row.scss +88 -0
- package/style/components/_tab.scss +69 -0
- package/{dist/index.css → style/daracl.form.css} +213 -184
- package/style/daracl.form.css.map +1 -0
- package/style/daracl.form.min.css +2 -0
- package/style/daracl.form.min.css.map +1 -0
- package/style/daracl.form.scss +53 -691
- package/style/themes/_common.scss +18 -0
- package/style/themes/_dark.scss +32 -0
- package/style/themes/_index.scss +14 -0
- package/style/themes/_light.scss +26 -0
- package/style/themes/_mixin.scss +6 -0
- package/dist/commonVender.d.ts +0 -1
- package/dist/daracl.form.js +0 -5720
- package/dist/daracl.form.js.map +0 -1
- package/dist/daracl.form.min.js +0 -7
- package/dist/daracl.form.min.js.LICENSE.txt +0 -5
- package/dist/daracl.form.min.js.map +0 -1
- package/dist/daracl.vender.min.css +0 -5
- package/dist/daracl.vender.min.js +0 -2
- package/dist/daracl.vender.min.js.LICENSE.txt +0 -3
- package/dist/index.css.map +0 -7
- package/dist/indexVender.d.ts +0 -6
- package/dist/main.css +0 -6
- package/dist/main.css.map +0 -1
- package/src/index.ts +0 -5
- /package/dist/util/{Lanauage.d.ts → Language.d.ts} +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@mixin df-base {
|
|
2
|
+
padding: 0px;
|
|
3
|
+
margin-top: 8px;
|
|
4
|
+
color: var(--font-color);
|
|
5
|
+
|
|
6
|
+
*,
|
|
7
|
+
::after,
|
|
8
|
+
::before {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
line-height: var(--line-height);
|
|
11
|
+
font-size: var(--font-size);
|
|
12
|
+
color: var(--font-color);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.df-txt {
|
|
16
|
+
&-left {
|
|
17
|
+
text-align: left;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-center {
|
|
21
|
+
text-align: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-right {
|
|
25
|
+
text-align: right;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-df-mode="view"] {
|
|
30
|
+
.df-field {
|
|
31
|
+
input[type="text"],
|
|
32
|
+
input[type="password"],
|
|
33
|
+
input[type="email"],
|
|
34
|
+
input[type="number"],
|
|
35
|
+
input[type="tel"],
|
|
36
|
+
textarea {
|
|
37
|
+
user-select: text;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input[type="checkbox"],
|
|
41
|
+
input[type="radio"],
|
|
42
|
+
label,
|
|
43
|
+
select {
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.df-hidden {
|
|
50
|
+
max-height: 0vh !important;
|
|
51
|
+
width: 0px;
|
|
52
|
+
visibility: collapse;
|
|
53
|
+
display: none !important;
|
|
54
|
+
padding: 0px !important;
|
|
55
|
+
margin: 0px !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input,
|
|
59
|
+
select,
|
|
60
|
+
textarea {
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
color: var(--font-color);
|
|
63
|
+
&[disabled] {
|
|
64
|
+
background-color: var(--input-disabled-bg);
|
|
65
|
+
opacity: 0.8;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "./base";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@mixin df-button {
|
|
2
|
+
.df-btn {
|
|
3
|
+
padding: 5px 10px;
|
|
4
|
+
border-radius: calc(0.45rem - 1px);
|
|
5
|
+
border: 1px solid var(--border-color);
|
|
6
|
+
background-color: var(--button-bg);
|
|
7
|
+
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
transition: background-color 0.3s;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
color: var(--font-hover-color);
|
|
13
|
+
background-color: var(--button-bg-hover);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@mixin df-field-container {
|
|
2
|
+
.df-field-container {
|
|
3
|
+
overflow: initial;
|
|
4
|
+
position: relative;
|
|
5
|
+
flex: 1;
|
|
6
|
+
> .df-row {
|
|
7
|
+
margin-top: -10px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
> div + .df-row {
|
|
11
|
+
margin-top: 0px;
|
|
12
|
+
}
|
|
13
|
+
.df-field {
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
.df-range-num {
|
|
17
|
+
clear: both;
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
text-align: left;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.df-file-wrapper {
|
|
24
|
+
border: 1px solid var(--border-color);
|
|
25
|
+
text-align: center;
|
|
26
|
+
display: block;
|
|
27
|
+
width: 100%;
|
|
28
|
+
padding: 0.375rem 0.75rem;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
line-height: var(--line-height-lg);
|
|
31
|
+
background-clip: padding-box;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.df-description {
|
|
38
|
+
padding: 3px 0px 0px;
|
|
39
|
+
font-size: var(--font-size-sm);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@mixin df-file-list {
|
|
2
|
+
.df-file-list {
|
|
3
|
+
.df-file-item {
|
|
4
|
+
height: 25px;
|
|
5
|
+
}
|
|
6
|
+
.df-file-icon {
|
|
7
|
+
width: 20px;
|
|
8
|
+
height: 20px;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background-color: var(--button-bg-hover);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// 아이콘 색은 mask 로 잘라내고 --icon-color 테마 변수로 채운다.
|
|
18
|
+
&::before {
|
|
19
|
+
content: "";
|
|
20
|
+
display: block;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
background-color: var(--icon-color);
|
|
24
|
+
-webkit-mask-repeat: no-repeat;
|
|
25
|
+
mask-repeat: no-repeat;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.df-file-download::before {
|
|
29
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjIwcHgiIGZpbGw9IiMwMDAwMDAiPjxnPjxyZWN0IGZpbGw9Im5vbmUiIGhlaWdodD0iMjQiIHdpZHRoPSIyNCIvPjwvZz48Zz48cGF0aCBkPSJNMTgsMTV2M0g2di0zSDR2M2MwLDEuMSwwLjksMiwyLDJoMTJjMS4xLDAsMi0wLjksMi0ydi0zSDE4eiBNMTcsMTFsLTEuNDEtMS40MUwxMywxMi4xN1Y0aC0ydjguMTdMOC40MSw5LjU5TDcsMTFsNSw1IEwxNywxMXoiLz48L2c+PC9zdmc+");
|
|
30
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjIwcHgiIGZpbGw9IiMwMDAwMDAiPjxnPjxyZWN0IGZpbGw9Im5vbmUiIGhlaWdodD0iMjQiIHdpZHRoPSIyNCIvPjwvZz48Zz48cGF0aCBkPSJNMTgsMTV2M0g2di0zSDR2M2MwLDEuMSwwLjksMiwyLDJoMTJjMS4xLDAsMi0wLjksMi0ydi0zSDE4eiBNMTcsMTFsLTEuNDEtMS40MUwxMywxMi4xN1Y0aC0ydjguMTdMOC40MSw5LjU5TDcsMTFsNSw1IEwxNywxMXoiLz48L2c+PC9zdmc+");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.df-file-remove::before {
|
|
34
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjBweCIgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE2IDl2MTBIOFY5aDhtLTEuNS02aC01bC0xIDFINXYyaDE0VjRoLTMuNWwtMS0xek0xOCA3SDZ2MTJjMCAxLjEuOSAyIDIgMmg4YzEuMSAwIDItLjkgMi0yVjd6Ii8+PC9zdmc+");
|
|
35
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjBweCIgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE2IDl2MTBIOFY5aDhtLTEuNS02aC01bC0xIDFINXYyaDE0VjRoLTMuNWwtMS0xek0xOCA3SDZ2MTJjMCAxLjEuOSAyIDIgMmg4YzEuMSAwIDItLjkgMi0yVjd6Ii8+PC9zdmc+");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.df-empty-icon {
|
|
39
|
+
cursor: default;
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: transparent;
|
|
42
|
+
}
|
|
43
|
+
&::before {
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.df-file-name {
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
word-wrap: normal;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
display: inline-block;
|
|
55
|
+
vertical-align: middle;
|
|
56
|
+
width: calc(100% - 55px);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@mixin df-form-field {
|
|
2
|
+
.df-form-field {
|
|
3
|
+
border: 1px solid var(--border-color);
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
padding: 0px 0.75rem;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
line-height: var(--line-height);
|
|
9
|
+
height: 30px;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
12
|
+
background-color: var(--input-bg);
|
|
13
|
+
background-clip: padding-box;
|
|
14
|
+
color: var(--input-color);
|
|
15
|
+
|
|
16
|
+
&[type="radio"],
|
|
17
|
+
&[type="checkbox"] {
|
|
18
|
+
width: 14px;
|
|
19
|
+
display: inline;
|
|
20
|
+
min-height: 0px;
|
|
21
|
+
padding: 0px;
|
|
22
|
+
margin: 0px;
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.df-dropdown {
|
|
27
|
+
appearance: none;
|
|
28
|
+
-webkit-appearance: none;
|
|
29
|
+
-moz-appearance: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.df-textarea {
|
|
33
|
+
padding-right: 0px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[type="number"] {
|
|
37
|
+
padding-right: 3px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.df-file {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.df-range {
|
|
45
|
+
padding: 0px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@use "../abstracts" as *;
|
|
2
|
+
|
|
3
|
+
@mixin df-form-group {
|
|
4
|
+
.df-form-group {
|
|
5
|
+
display: -ms-flexbox;
|
|
6
|
+
display: -webkit-box;
|
|
7
|
+
display: flex;
|
|
8
|
+
-ms-flex-direction: row;
|
|
9
|
+
-webkit-box-orient: horizontal;
|
|
10
|
+
-webkit-box-direction: normal;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
-ms-flex-wrap: wrap;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
margin-top: var(--field-margin-top);
|
|
15
|
+
margin-bottom: 0px;
|
|
16
|
+
margin-right: 0px !important;
|
|
17
|
+
margin-left: 0px !important;
|
|
18
|
+
|
|
19
|
+
&:last-child {
|
|
20
|
+
margin-bottom: 0px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include rowFlex();
|
|
24
|
+
|
|
25
|
+
.df-help-message {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.df-help-icon {
|
|
30
|
+
background-repeat: no-repeat;
|
|
31
|
+
background-position-y: center;
|
|
32
|
+
|
|
33
|
+
&.df-form-field {
|
|
34
|
+
background-position-x: calc(100% - 15px);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.df-form-icon {
|
|
38
|
+
display: none;
|
|
39
|
+
position: absolute;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
top: 0px;
|
|
42
|
+
right: 0px;
|
|
43
|
+
height: 100%;
|
|
44
|
+
width: 20px;
|
|
45
|
+
margin-right: 15px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.invalid {
|
|
50
|
+
.df-form-field {
|
|
51
|
+
border-color: var(--invalid-border-color);
|
|
52
|
+
outline-color: var(--invalid-border-color);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
> .df-field-container.required > .df-field .df-help-icon {
|
|
56
|
+
display: block;
|
|
57
|
+
background-image: url("data:image/svg+xml; base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Im0yNDktMjA3LTQyLTQyIDIzMS0yMzEtMjMxLTIzMSA0Mi00MiAyMzEgMjMxIDIzMS0yMzEgNDIgNDItMjMxIDIzMSAyMzEgMjMxLTQyIDQyLTIzMS0yMzEtMjMxIDIzMVoiIHN0eWxlPSImIzEwOyAgICBmaWxsOiAjZmY3MzczOyYjMTA7Ii8+PC9zdmc+");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.df-help-message {
|
|
61
|
+
display: block;
|
|
62
|
+
> * {
|
|
63
|
+
color: var(--invalid-font-color);
|
|
64
|
+
font-size: var(--font-size-sm);
|
|
65
|
+
padding: 3px 0px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.valid {
|
|
71
|
+
> .df-field-container.required {
|
|
72
|
+
> .df-field .df-help-icon {
|
|
73
|
+
display: block;
|
|
74
|
+
background-image: url("data:image/svg+xml; base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHN0eWxlPSImIzEwOyAgICBmaWxsOiAjMTlhOTc0OyYjMTA7Ij48cGF0aCBkPSJNMzc4LTI0NiAxNTQtNDcwbDQzLTQzIDE4MSAxODEgMzg0LTM4NCA0MyA0My00MjcgNDI3WiIvPjwvc3ZnPg==");
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.df-file-label {
|
|
80
|
+
border: 1px solid var(--border-color);
|
|
81
|
+
display: inline;
|
|
82
|
+
width: 100%;
|
|
83
|
+
padding: 3px 15px;
|
|
84
|
+
line-height: 1;
|
|
85
|
+
background-clip: padding-box;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
88
|
+
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: var(--button-bg-hover);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@mixin df-grid-field {
|
|
2
|
+
.df-grid-field {
|
|
3
|
+
.df-grid-btn-area {
|
|
4
|
+
border: 1px solid var(--border-color);
|
|
5
|
+
padding: 3px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.df-grid-container {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: auto;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
border: 1px solid var(--border-color);
|
|
13
|
+
|
|
14
|
+
.df-btn {
|
|
15
|
+
padding: 3px 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.df-grid {
|
|
19
|
+
width: 100%;
|
|
20
|
+
border-top-width: 0px;
|
|
21
|
+
border-collapse: collapse;
|
|
22
|
+
|
|
23
|
+
> thead {
|
|
24
|
+
th {
|
|
25
|
+
position: sticky;
|
|
26
|
+
top: 0px;
|
|
27
|
+
z-index: 10;
|
|
28
|
+
border-bottom: 1px solid var(--border-color);
|
|
29
|
+
background-color: var(--bg-grid-header);
|
|
30
|
+
text-align: center;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.df-help-message {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
td,
|
|
39
|
+
th {
|
|
40
|
+
padding: 3px 5px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.df-help-icon {
|
|
44
|
+
background-repeat: no-repeat;
|
|
45
|
+
background-position-y: center;
|
|
46
|
+
|
|
47
|
+
&.df-form-field {
|
|
48
|
+
background-position-x: calc(100% - 15px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.df-form-icon {
|
|
52
|
+
display: none;
|
|
53
|
+
position: absolute;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
top: 0px;
|
|
56
|
+
right: 0px;
|
|
57
|
+
height: 100%;
|
|
58
|
+
width: 20px;
|
|
59
|
+
margin-right: 15px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.df-grid-column {
|
|
64
|
+
position: relative;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.invalid {
|
|
68
|
+
.df-form-field {
|
|
69
|
+
border-color: var(--invalid-border-color);
|
|
70
|
+
outline-color: var(--invalid-border-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
> .df-grid-column.required .df-field .df-help-icon {
|
|
74
|
+
display: block;
|
|
75
|
+
background-image: url("data:image/svg+xml; base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Im0yNDktMjA3LTQyLTQyIDIzMS0yMzEtMjMxLTIzMSA0Mi00MiAyMzEgMjMxIDIzMS0yMzEgNDIgNDItMjMxIDIzMSAyMzEgMjMxLTQyIDQyLTIzMS0yMzEtMjMxIDIzMVoiIHN0eWxlPSImIzEwOyAgICBmaWxsOiAjZmY3MzczOyYjMTA7Ii8+PC9zdmc+");
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.df-help-message {
|
|
79
|
+
display: block;
|
|
80
|
+
position: absolute;
|
|
81
|
+
border: 1px solid var(--invalid-border-color);
|
|
82
|
+
border-color: var(--invalid-border-color) transparent transparent transparent;
|
|
83
|
+
top: calc(100% + 6px);
|
|
84
|
+
left: 50%;
|
|
85
|
+
transform: translateX(-50%);
|
|
86
|
+
min-width: 270px;
|
|
87
|
+
padding: 5px 5px;
|
|
88
|
+
border-radius: 0.4rem;
|
|
89
|
+
z-index: 2;
|
|
90
|
+
background-color: var(--invalid-background-color);
|
|
91
|
+
color: var(--invalid-font-color);
|
|
92
|
+
&::after {
|
|
93
|
+
content: "";
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 0;
|
|
96
|
+
left: 50%;
|
|
97
|
+
width: 0;
|
|
98
|
+
height: 0;
|
|
99
|
+
border: 7px solid transparent;
|
|
100
|
+
border-bottom-color: var(--invalid-border-color);
|
|
101
|
+
border-top: 0;
|
|
102
|
+
border-left: 0;
|
|
103
|
+
margin-left: -3.5px;
|
|
104
|
+
margin-top: -7px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.valid {
|
|
110
|
+
> .df-grid-column.required {
|
|
111
|
+
.df-field .df-help-icon {
|
|
112
|
+
display: block;
|
|
113
|
+
background-image: url("data:image/svg+xml; base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHN0eWxlPSImIzEwOyAgICBmaWxsOiAjMTlhOTc0OyYjMTA7Ij48cGF0aCBkPSJNMzc4LTI0NiAxNTQtNDcwbDQzLTQzIDE4MSAxODEgMzg0LTM4NCA0MyA0My00MjcgNDI3WiIvPjwvc3ZnPg==");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@mixin df-icon {
|
|
2
|
+
.df-icon {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
width: 21px; /* 아이콘의 너비 설정 */
|
|
5
|
+
height: 21px; /* 아이콘의 높이 설정 */
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// 아이콘 색은 mask 로 잘라내고 --icon-color 테마 변수로 채운다.
|
|
10
|
+
.df-add-icon,
|
|
11
|
+
.df-remove-icon {
|
|
12
|
+
background-color: var(--icon-color);
|
|
13
|
+
-webkit-mask-repeat: no-repeat;
|
|
14
|
+
mask-repeat: no-repeat;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.df-add-icon {
|
|
18
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px'%3E%3Cpath d='M431-431H220.78v-98H431v-210.22h98V-529h210.22v98H529v210.22h-98V-431Z'/%3E%3C/svg%3E");
|
|
19
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px'%3E%3Cpath d='M431-431H220.78v-98H431v-210.22h98V-529h210.22v98H529v210.22h-98V-431Z'/%3E%3C/svg%3E");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.df-remove-icon {
|
|
23
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px'%3E%3Cpath d='M291-221.91 221.91-291l189-189-189-189L291-738.09l189 189 189-189L738.09-669l-189 189 189 189L669-221.91l-189-189-189 189Z'/%3E%3C/svg%3E");
|
|
24
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px'%3E%3Cpath d='M291-221.91 221.91-291l189-189-189-189L291-738.09l189 189 189-189L738.09-669l-189 189 189 189L669-221.91l-189-189-189 189Z'/%3E%3C/svg%3E");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@forward "./label";
|
|
2
|
+
@forward "./form-field";
|
|
3
|
+
@forward "./row";
|
|
4
|
+
@forward "./field-container";
|
|
5
|
+
@forward "./file-list";
|
|
6
|
+
@forward "./field-group";
|
|
7
|
+
@forward "./tab";
|
|
8
|
+
@forward "./button";
|
|
9
|
+
@forward "./icon";
|
|
10
|
+
@forward "./form-group";
|
|
11
|
+
@forward "./grid-field";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@mixin df-label {
|
|
2
|
+
.df-label {
|
|
3
|
+
position: relative;
|
|
4
|
+
vertical-align: top;
|
|
5
|
+
padding-right: var(--field-padding-right);
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
.required {
|
|
10
|
+
color: var(--color-danger);
|
|
11
|
+
display: inline-block;
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
|
|
14
|
+
&::after {
|
|
15
|
+
color: var(--color-danger);
|
|
16
|
+
content: "*";
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.df-label-text {
|
|
22
|
+
min-width: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
line-height: initial;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.df-tooltip {
|
|
30
|
+
visibility: visible;
|
|
31
|
+
color: var(--tooltip-color);
|
|
32
|
+
background: var(--tooltip-background);
|
|
33
|
+
width: 16px;
|
|
34
|
+
height: 16px;
|
|
35
|
+
border-radius: 8px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
line-height: var(--line-height-lg);
|
|
38
|
+
margin: 0 5px;
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
cursor: help;
|
|
41
|
+
position: relative;
|
|
42
|
+
display: inline-block;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
|
|
45
|
+
.df-tooltip-text {
|
|
46
|
+
display: none;
|
|
47
|
+
text-align: initial;
|
|
48
|
+
background: var(--tooltip-background);
|
|
49
|
+
border-radius: 5px;
|
|
50
|
+
color: var(--tooltip-color);
|
|
51
|
+
padding: 10px 5px;
|
|
52
|
+
position: absolute;
|
|
53
|
+
z-index: 2;
|
|
54
|
+
left: -10px;
|
|
55
|
+
min-width: max-content;
|
|
56
|
+
text-shadow: none;
|
|
57
|
+
cursor: default;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover .df-tooltip-text {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "../abstracts" as *;
|
|
3
|
+
|
|
4
|
+
@mixin df-row {
|
|
5
|
+
.df-row {
|
|
6
|
+
display: -ms-flexbox;
|
|
7
|
+
display: -webkit-box;
|
|
8
|
+
display: flex;
|
|
9
|
+
-ms-flex: 0 1 auto;
|
|
10
|
+
-webkit-box-flex: 0;
|
|
11
|
+
flex: 0 1 auto;
|
|
12
|
+
-ms-flex-direction: row;
|
|
13
|
+
-webkit-box-orient: horizontal;
|
|
14
|
+
-webkit-box-direction: normal;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
-ms-flex-wrap: wrap;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
|
|
19
|
+
&.df-vertical {
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.df-horizontal {
|
|
24
|
+
-webkit-box-flex: 0;
|
|
25
|
+
-ms-flex: 0 0 auto;
|
|
26
|
+
flex: 0 0 auto;
|
|
27
|
+
width: auto;
|
|
28
|
+
max-width: none;
|
|
29
|
+
|
|
30
|
+
> .df-form-group {
|
|
31
|
+
> .df-empty {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& + .df-form-group {
|
|
36
|
+
margin-left: 10px !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include rowFlex();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@each $size in $sizes {
|
|
45
|
+
$i: list.index($sizes, $size);
|
|
46
|
+
$className: ".df-col-xs-#{$i}";
|
|
47
|
+
#{$className} {
|
|
48
|
+
flex-basis: $size;
|
|
49
|
+
-webkit-box-flex: 0;
|
|
50
|
+
-ms-flex: 0 0 $size;
|
|
51
|
+
flex: 0 0 $size;
|
|
52
|
+
max-width: $size;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.df-align-items-center {
|
|
57
|
+
-webkit-box-align: center !important;
|
|
58
|
+
-ms-flex-align: center !important;
|
|
59
|
+
align-items: center !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.df-col-xs {
|
|
63
|
+
-webkit-flex-grow: 1;
|
|
64
|
+
-ms-flex-positive: 1;
|
|
65
|
+
-webkit-box-flex: 1;
|
|
66
|
+
flex-grow: 1;
|
|
67
|
+
-ms-flex-preferred-size: 0;
|
|
68
|
+
flex-basis: 0;
|
|
69
|
+
max-width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.df-col-auto {
|
|
73
|
+
-webkit-box-flex: 0;
|
|
74
|
+
-ms-flex: 0 0 auto;
|
|
75
|
+
flex: 0 0 auto;
|
|
76
|
+
width: auto;
|
|
77
|
+
max-width: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.df-col-fix {
|
|
81
|
+
flex: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.df-col-full {
|
|
85
|
+
flex: 1;
|
|
86
|
+
overflow: auto;
|
|
87
|
+
}
|
|
88
|
+
}
|