@daracl/form 0.0.17 → 0.0.18

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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/DaraForm.d.ts +51 -2
  3. package/dist/FieldInfoMap.d.ts +8 -1
  4. package/dist/FormTemplate.d.ts +2 -2
  5. package/dist/constants.d.ts +5 -1
  6. package/dist/daracl.form.css +688 -0
  7. package/dist/daracl.form.min.css +10 -0
  8. package/dist/daracl.form.min.umd.js +171 -0
  9. package/dist/daracl.form.min.umd.js.map +1 -0
  10. package/dist/daracl.form.umd.js +4477 -0
  11. package/dist/daracl.form.umd.js.map +1 -0
  12. package/dist/defaultOption.d.ts +8 -0
  13. package/dist/event/renderEvents.d.ts +1 -1
  14. package/dist/global.d.ts +6 -0
  15. package/dist/index.cjs +1806 -519
  16. package/dist/index.cjs.map +1 -7
  17. package/dist/index.d.ts +7 -2
  18. package/dist/index.html +193 -348
  19. package/dist/index.js +4090 -3101
  20. package/dist/index.js.map +1 -7
  21. package/dist/index.min.cjs +171 -0
  22. package/dist/index.min.cjs.map +1 -0
  23. package/dist/index.min.js +2910 -0
  24. package/dist/index.min.js.map +1 -0
  25. package/dist/index.umd.d.ts +7 -0
  26. package/dist/renderer/ButtonRender.d.ts +2 -2
  27. package/dist/renderer/CheckboxRender.d.ts +2 -2
  28. package/dist/renderer/CustomRender.d.ts +2 -2
  29. package/dist/renderer/DateRender.d.ts +2 -2
  30. package/dist/renderer/DropdownRender.d.ts +2 -2
  31. package/dist/renderer/FileRender.d.ts +2 -2
  32. package/dist/renderer/GridRender.d.ts +2 -2
  33. package/dist/renderer/GroupRender.d.ts +2 -2
  34. package/dist/renderer/HiddenRender.d.ts +2 -2
  35. package/dist/renderer/NumberRender.d.ts +2 -2
  36. package/dist/renderer/PasswordRender.d.ts +2 -2
  37. package/dist/renderer/RadioRender.d.ts +2 -2
  38. package/dist/renderer/RangeRender.d.ts +2 -2
  39. package/dist/renderer/Render.d.ts +2 -2
  40. package/dist/renderer/TabRender.d.ts +2 -2
  41. package/dist/renderer/TextAreaRender.d.ts +2 -2
  42. package/dist/renderer/TextRender.d.ts +2 -2
  43. package/dist/types/FormField.d.ts +18 -13
  44. package/dist/types/FormOptions.d.ts +1 -1
  45. package/dist/types/style.d.ts +3 -0
  46. package/dist/util/renderFactory.d.ts +1 -1
  47. package/dist/util/styleUtils.d.ts +10 -12
  48. package/dist/util/utils.d.ts +1 -1
  49. package/package.json +129 -140
  50. package/style/abstracts/_index.scss +2 -0
  51. package/style/abstracts/_mixins.scss +22 -0
  52. package/style/abstracts/_variables.scss +1 -0
  53. package/style/base/_base.scss +59 -0
  54. package/style/base/_index.scss +1 -0
  55. package/style/components/_button.scss +16 -0
  56. package/style/components/_field-container.scss +41 -0
  57. package/style/components/_field-group.scss +16 -0
  58. package/style/components/_file-list.scss +33 -0
  59. package/style/components/_form-field.scss +47 -0
  60. package/style/components/_form-group.scss +90 -0
  61. package/style/components/_grid-field.scss +121 -0
  62. package/style/components/_icon.scss +16 -0
  63. package/style/components/_index.scss +11 -0
  64. package/style/components/_label.scss +59 -0
  65. package/style/components/_row.scss +88 -0
  66. package/style/components/_tab.scss +70 -0
  67. package/{dist/index.css → style/daracl.form.css} +19 -66
  68. package/style/daracl.form.css.map +1 -0
  69. package/style/daracl.form.min.css +2 -0
  70. package/style/daracl.form.min.css.map +1 -0
  71. package/style/daracl.form.scss +44 -691
  72. package/style/themes/_common.scss +13 -0
  73. package/style/themes/_dark.scss +20 -0
  74. package/style/themes/_index.scss +14 -0
  75. package/style/themes/_light.scss +20 -0
  76. package/style/themes/_mixin.scss +6 -0
  77. package/dist/commonVender.d.ts +0 -1
  78. package/dist/daracl.form.js +0 -5720
  79. package/dist/daracl.form.js.map +0 -1
  80. package/dist/daracl.form.min.js +0 -7
  81. package/dist/daracl.form.min.js.LICENSE.txt +0 -5
  82. package/dist/daracl.form.min.js.map +0 -1
  83. package/dist/daracl.vender.min.css +0 -5
  84. package/dist/daracl.vender.min.js +0 -2
  85. package/dist/daracl.vender.min.js.LICENSE.txt +0 -3
  86. package/dist/index.css.map +0 -7
  87. package/dist/indexVender.d.ts +0 -6
  88. package/dist/main.css +0 -6
  89. package/dist/main.css.map +0 -1
  90. package/src/index.ts +0 -5
  91. /package/dist/util/{Lanauage.d.ts → Language.d.ts} +0 -0
@@ -0,0 +1,59 @@
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: 1.6em;
11
+ }
12
+
13
+ .df-txt {
14
+ &-left {
15
+ text-align: left;
16
+ }
17
+
18
+ &-center {
19
+ text-align: center;
20
+ }
21
+
22
+ &-right {
23
+ text-align: right;
24
+ }
25
+ }
26
+
27
+ &[data-df-mode="view"] {
28
+ .df-form-field {
29
+ border-width: 0px;
30
+ border-color: transparent;
31
+ outline: initial;
32
+
33
+ &:focus-visible,
34
+ &:focus {
35
+ border-width: 0px;
36
+ }
37
+ }
38
+ }
39
+
40
+ .df-hidden {
41
+ max-height: 0vh !important;
42
+ width: 0px;
43
+ visibility: collapse;
44
+ display: none !important;
45
+ padding: 0px !important;
46
+ margin: 0px !important;
47
+ }
48
+
49
+ input,
50
+ select,
51
+ textarea {
52
+ background-color: transparent;
53
+ color: var(--font-color);
54
+ &[disabled] {
55
+ background-color: var(--input-disabled-bg);
56
+ opacity: 0.8;
57
+ }
58
+ }
59
+ }
@@ -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,41 @@
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: 1.5;
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
+ }
40
+ }
41
+ }
@@ -0,0 +1,16 @@
1
+ @mixin df-field-group {
2
+ .df-field-group {
3
+ display: flex;
4
+ align-items: center;
5
+
6
+ .df-field-item {
7
+ padding-top: var(--field-padding-top);
8
+ padding-right: 8px;
9
+ &.df-vertical {
10
+ > * {
11
+ display: block;
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,33 @@
1
+ @mixin df-file-list {
2
+ .df-file-list {
3
+ .df-file-icon {
4
+ width: 20px;
5
+ height: 20px;
6
+ display: inline-block;
7
+ vertical-align: middle;
8
+ cursor: pointer;
9
+
10
+ &:hover {
11
+ background-color: var(--button-bg-hover);
12
+ }
13
+
14
+ &.df-file-download {
15
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjIwcHgiIGZpbGw9IiMwMDAwMDAiPjxnPjxyZWN0IGZpbGw9Im5vbmUiIGhlaWdodD0iMjQiIHdpZHRoPSIyNCIvPjwvZz48Zz48cGF0aCBkPSJNMTgsMTV2M0g2di0zSDR2M2MwLDEuMSwwLjksMiwyLDJoMTJjMS4xLDAsMi0wLjksMi0ydi0zSDE4eiBNMTcsMTFsLTEuNDEtMS40MUwxMywxMi4xN1Y0aC0ydjguMTdMOC40MSw5LjU5TDcsMTFsNSw1IEwxNywxMXoiLz48L2c+PC9zdmc+");
16
+ }
17
+
18
+ &.df-file-remove {
19
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjBweCIgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE2IDl2MTBIOFY5aDhtLTEuNS02aC01bC0xIDFINXYyaDE0VjRoLTMuNWwtMS0xek0xOCA3SDZ2MTJjMCAxLjEuOSAyIDIgMmg4YzEuMSAwIDItLjkgMi0yVjd6Ii8+PC9zdmc+");
20
+ }
21
+ }
22
+
23
+ .df-file-name {
24
+ text-overflow: ellipsis;
25
+ white-space: nowrap;
26
+ word-wrap: normal;
27
+ overflow: hidden;
28
+ display: inline-block;
29
+ vertical-align: middle;
30
+ width: calc(100% - 55px);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,47 @@
1
+ @mixin df-form-field {
2
+ .df-form-field {
3
+ border: 1px solid var(--border-color);
4
+ display: block;
5
+ width: 100%;
6
+ padding: 0.375rem 0.75rem;
7
+ font-weight: 400;
8
+ line-height: 1.5;
9
+ border-radius: 4px;
10
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
11
+ background-color: var(--input-bg);
12
+ background-clip: padding-box;
13
+ color: var(--input-color);
14
+
15
+ &[type="radio"],
16
+ &[type="checkbox"] {
17
+ width: 14px;
18
+ display: inline;
19
+ min-height: 0px;
20
+ padding: 0px;
21
+ margin: 0px;
22
+ vertical-align: middle;
23
+ }
24
+
25
+ &.df-dropdown {
26
+ appearance: none;
27
+ -webkit-appearance: none;
28
+ -moz-appearance: none;
29
+ }
30
+
31
+ &.df-textarea {
32
+ padding-right: 0px;
33
+ }
34
+
35
+ &[type="number"] {
36
+ padding-right: 3px;
37
+ }
38
+
39
+ &.df-file {
40
+ display: none;
41
+ }
42
+
43
+ &.df-range {
44
+ padding: 0px;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,90 @@
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
+ color: var(--invalid-font-color);
63
+ }
64
+ }
65
+
66
+ &.valid {
67
+ > .df-field-container.required {
68
+ > .df-field .df-help-icon {
69
+ display: block;
70
+ background-image: url("data:image/svg+xml; base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHN0eWxlPSImIzEwOyAgICBmaWxsOiAjMTlhOTc0OyYjMTA7Ij48cGF0aCBkPSJNMzc4LTI0NiAxNTQtNDcwbDQzLTQzIDE4MSAxODEgMzg0LTM4NCA0MyA0My00MjcgNDI3WiIvPjwvc3ZnPg==");
71
+ }
72
+ }
73
+ }
74
+
75
+ .df-file-label {
76
+ border: 1px solid var(--border-color);
77
+ display: inline;
78
+ width: 100%;
79
+ padding: 3px 15px;
80
+ line-height: 1;
81
+ background-clip: padding-box;
82
+ border-radius: 4px;
83
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
84
+
85
+ &:hover {
86
+ background-color: var(--button-bg-hover);
87
+ }
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,121 @@
1
+ @mixin df-grid-field {
2
+ .df-grid-field {
3
+ margin-right: 10px;
4
+ .df-grid-btn-area {
5
+ border: 1px solid var(--border-color);
6
+ padding: 3px;
7
+ }
8
+
9
+ .df-grid-container {
10
+ width: 100%;
11
+ height: auto;
12
+ overflow-y: auto;
13
+ border: 1px solid var(--border-color);
14
+
15
+ .df-btn {
16
+ padding: 3px 5px;
17
+ }
18
+
19
+ .df-grid {
20
+ width: 100%;
21
+ border-top-width: 0px;
22
+ border-collapse: collapse;
23
+
24
+ > thead {
25
+ th {
26
+ position: sticky;
27
+ top: 0px;
28
+ z-index: 10;
29
+ border-bottom: 1px solid var(--border-color);
30
+ background-color: var(--bg-grid-header);
31
+ text-align: center;
32
+ }
33
+ }
34
+
35
+ .df-help-message {
36
+ display: none;
37
+ }
38
+
39
+ td,
40
+ th {
41
+ padding: 3px 5px;
42
+ }
43
+
44
+ .df-help-icon {
45
+ background-repeat: no-repeat;
46
+ background-position-y: center;
47
+
48
+ &.df-form-field {
49
+ background-position-x: calc(100% - 15px);
50
+ }
51
+
52
+ &.df-form-icon {
53
+ display: none;
54
+ position: absolute;
55
+ z-index: 1;
56
+ top: 0px;
57
+ right: 0px;
58
+ height: 100%;
59
+ width: 20px;
60
+ margin-right: 15px;
61
+ }
62
+ }
63
+
64
+ .df-grid-column {
65
+ position: relative;
66
+ }
67
+
68
+ .invalid {
69
+ .df-form-field {
70
+ border-color: var(--invalid-border-color);
71
+ outline-color: var(--invalid-border-color);
72
+ }
73
+
74
+ > .df-grid-column.required .df-field .df-help-icon {
75
+ display: block;
76
+ background-image: url("data:image/svg+xml; base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Im0yNDktMjA3LTQyLTQyIDIzMS0yMzEtMjMxLTIzMSA0Mi00MiAyMzEgMjMxIDIzMS0yMzEgNDIgNDItMjMxIDIzMSAyMzEgMjMxLTQyIDQyLTIzMS0yMzEtMjMxIDIzMVoiIHN0eWxlPSImIzEwOyAgICBmaWxsOiAjZmY3MzczOyYjMTA7Ii8+PC9zdmc+");
77
+ }
78
+
79
+ .df-help-message {
80
+ display: block;
81
+ position: absolute;
82
+ border: 1px solid var(--invalid-border-color);
83
+ border-color: var(--invalid-border-color) transparent transparent transparent;
84
+ top: calc(100% + 6px);
85
+ left: 50%;
86
+ transform: translateX(-50%);
87
+ min-width: 270px;
88
+ padding: 5px 5px;
89
+ border-radius: 0.4rem;
90
+ z-index: 2;
91
+ background-color: var(--invalid-background-color);
92
+ color: var(--invalid-font-color);
93
+ &::after {
94
+ content: "";
95
+ position: absolute;
96
+ top: 0;
97
+ left: 50%;
98
+ width: 0;
99
+ height: 0;
100
+ border: 7px solid transparent;
101
+ border-bottom-color: var(--invalid-border-color);
102
+ border-top: 0;
103
+ border-left: 0;
104
+ margin-left: -3.5px;
105
+ margin-top: -7px;
106
+ }
107
+ }
108
+ }
109
+
110
+ .valid {
111
+ > .df-grid-column.required {
112
+ .df-field .df-help-icon {
113
+ display: block;
114
+ background-image: url("data:image/svg+xml; base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHN0eWxlPSImIzEwOyAgICBmaWxsOiAjMTlhOTc0OyYjMTA7Ij48cGF0aCBkPSJNMzc4LTI0NiAxNTQtNDcwbDQzLTQzIDE4MSAxODEgMzg0LTM4NCA0MyA0My00MjcgNDI3WiIvPjwvc3ZnPg==");
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
@@ -0,0 +1,16 @@
1
+ @mixin df-icon {
2
+ .df-icon {
3
+ display: inline-block;
4
+ width: 21px; /* 아이콘의 너비 설정 */
5
+ height: 21px; /* 아이콘의 높이 설정 */
6
+ vertical-align: middle;
7
+ }
8
+
9
+ .df-add-icon {
10
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px' fill='%235f6368'%3E%3Cpath d='M431-431H220.78v-98H431v-210.22h98V-529h210.22v98H529v210.22h-98V-431Z'/%3E%3C/svg%3E");
11
+ }
12
+
13
+ .df-remove-icon {
14
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px' fill='%235f6368'%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");
15
+ }
16
+ }
@@ -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,59 @@
1
+ @mixin df-label {
2
+ .df-label {
3
+ position: relative;
4
+ font-weight: 700;
5
+ vertical-align: top;
6
+
7
+ padding-top: var(--field-padding-top);
8
+ padding-right: var(--field-padding-right);
9
+ overflow: initial;
10
+ // 확인할것.
11
+ white-space: nowrap;
12
+ text-overflow: ellipsis;
13
+ word-break: break-all;
14
+
15
+ .required {
16
+ &::after {
17
+ content: "*";
18
+ vertical-align: middle;
19
+ }
20
+
21
+ color: var(--color-danger);
22
+ }
23
+
24
+ .df-tooltip {
25
+ visibility: visible;
26
+ color: var(--tooltip-color);
27
+ background: var(--tooltip-background);
28
+ width: 16px;
29
+ height: 16px;
30
+ border-radius: 8px;
31
+ text-align: center;
32
+ line-height: 16px;
33
+ margin: 0 5px;
34
+ font-size: 12px;
35
+ cursor: help;
36
+ position: relative;
37
+ display: inline-block;
38
+
39
+ .df-tooltip-text {
40
+ display: none;
41
+ text-align: initial;
42
+ background: var(--tooltip-background);
43
+ border-radius: 5px;
44
+ color: var(--tooltip-color);
45
+ padding: 10px 5px;
46
+ position: absolute;
47
+ z-index: 2;
48
+ left: -10px;
49
+ min-width: max-content;
50
+ text-shadow: none;
51
+ cursor: default;
52
+ }
53
+
54
+ &:hover .df-tooltip-text {
55
+ display: block;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -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
+ }
@@ -0,0 +1,70 @@
1
+ @mixin df-tab {
2
+ .df-tab-header {
3
+ list-style: none;
4
+ margin: 0px;
5
+ padding: 0px;
6
+
7
+ display: flex;
8
+ line-height: 1.3;
9
+ width: 100%;
10
+ border-bottom: 1px solid var(--border-color);
11
+
12
+ &.df-tab-al {
13
+ &-left {
14
+ justify-content: left;
15
+ }
16
+ &-right {
17
+ justify-content: right;
18
+ }
19
+ &-center {
20
+ justify-content: center;
21
+ }
22
+ }
23
+
24
+ > .df-tab-item {
25
+ list-style: none;
26
+ float: left;
27
+ position: relative;
28
+ top: 0;
29
+ margin: 1px 0.4em 0 0;
30
+ padding: 0;
31
+ white-space: nowrap;
32
+
33
+ &.active {
34
+ a {
35
+ color: var(--font-hover-color);
36
+ background-color: var(--tab-bg);
37
+ }
38
+ }
39
+
40
+ a {
41
+ border-top-left-radius: calc(0.45rem - 1px);
42
+ border-top-right-radius: calc(0.45rem - 1px);
43
+ border: 1px solid transparent;
44
+ border-bottom-width: 0;
45
+ float: left;
46
+ padding: 0.5em 1em;
47
+ text-decoration: none;
48
+ color: var(--font-color);
49
+ height: 30px;
50
+ line-height: 15px;
51
+
52
+ &:hover {
53
+ background-color: var(--tab-bg-hover);
54
+ border: 1px solid var(--border-color);
55
+ border-bottom-width: 0;
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+ .df-tab-body {
62
+ .df-tab-panel {
63
+ display: none;
64
+
65
+ &.active {
66
+ display: block;
67
+ }
68
+ }
69
+ }
70
+ }