nice-elements 1.12.7 → 1.12.8
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/.vscode/settings.json +18 -18
- package/CHANGELOG.md +568 -564
- package/LICENSE.md +21 -21
- package/README.md +98 -98
- package/bower.json +17 -17
- package/dist/nice.js +11585 -9150
- package/dist/nice.min.js +1 -1
- package/dist/style.css +7 -7
- package/dist/style.min.css +7 -7
- package/eslint.config.mjs +32 -32
- package/package.json +44 -44
- package/src/components/nice-alert/nice-alert.html +6 -6
- package/src/components/nice-alert/nice-alert.js +29 -29
- package/src/components/nice-alert/nice-alert.scss +59 -59
- package/src/components/nice-avatar/nice-avatar.js +122 -122
- package/src/components/nice-avatar/nice-avatar.scss +4 -4
- package/src/components/nice-button/nice-button.html +4 -4
- package/src/components/nice-button/nice-button.js +41 -41
- package/src/components/nice-button/nice-button.scss +16 -16
- package/src/components/nice-button-toggle/nice-button-toggle.html +9 -9
- package/src/components/nice-button-toggle/nice-button-toggle.js +23 -23
- package/src/components/nice-button-toggle/nice-button-toggle.scss +2 -2
- package/src/components/nice-calendar/nice-calendar.html +91 -91
- package/src/components/nice-calendar/nice-calendar.js +346 -346
- package/src/components/nice-calendar/nice-calendar.scss +288 -288
- package/src/components/nice-checkbox/nice-checkbox.html +9 -9
- package/src/components/nice-checkbox/nice-checkbox.js +37 -37
- package/src/components/nice-checkbox/nice-checkbox.scss +120 -120
- package/src/components/nice-choice/nice-choice.html +18 -18
- package/src/components/nice-choice/nice-choice.js +211 -211
- package/src/components/nice-choice/nice-choice.scss +110 -110
- package/src/components/nice-click-outside/nice-click-outside.js +105 -105
- package/src/components/nice-comment/nice-comment.html +10 -10
- package/src/components/nice-comment/nice-comment.js +71 -71
- package/src/components/nice-comment/nice-comment.scss +39 -39
- package/src/components/nice-date/nice-date.html +82 -82
- package/src/components/nice-date/nice-date.js +350 -350
- package/src/components/nice-date/nice-date.scss +305 -305
- package/src/components/nice-date-input/nice-date-input.html +56 -56
- package/src/components/nice-date-input/nice-date-input.js +143 -143
- package/src/components/nice-date-input/nice-date-input.scss +55 -55
- package/src/components/nice-date-range/nice-date-range.html +15 -15
- package/src/components/nice-date-range/nice-date-range.js +78 -78
- package/src/components/nice-date-range/nice-date-range.scss +390 -390
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +29 -29
- package/src/components/nice-datetime-picker/nice-datetime-picker.js +89 -89
- package/src/components/nice-datetime-picker/nice-datetime-picker.scss +428 -428
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +55 -55
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +248 -248
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.scss +73 -73
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +44 -44
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +175 -175
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +127 -127
- package/src/components/nice-dropdown/nice-dropdown.html +61 -61
- package/src/components/nice-dropdown/nice-dropdown.js +517 -517
- package/src/components/nice-dropdown/nice-dropdown.scss +262 -262
- package/src/components/nice-dropdown-date/nice-dropdown-date.html +28 -28
- package/src/components/nice-dropdown-date/nice-dropdown-date.js +132 -132
- package/src/components/nice-dropdown-date/nice-dropdown-date.scss +87 -87
- package/src/components/nice-dropdown-old/nice-dropdown-old.html +44 -44
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +330 -330
- package/src/components/nice-dropdown-old/nice-dropdown-old.scss +129 -129
- package/src/components/nice-dtp/nice-dtp.html +91 -91
- package/src/components/nice-dtp/nice-dtp.js +835 -835
- package/src/components/nice-help/nice-help.html +6 -6
- package/src/components/nice-help/nice-help.js +58 -58
- package/src/components/nice-help/nice-help.scss +78 -78
- package/src/components/nice-input/nice-input.html +47 -47
- package/src/components/nice-input/nice-input.js +251 -251
- package/src/components/nice-input/nice-input.scss +130 -130
- package/src/components/nice-label/nice-label.html +10 -10
- package/src/components/nice-label/nice-label.js +32 -32
- package/src/components/nice-loader/nice-loader.html +6 -6
- package/src/components/nice-loader/nice-loader.js +28 -28
- package/src/components/nice-loader/nice-loader.scss +47 -47
- package/src/components/nice-no-data/nice-no-data.html +3 -3
- package/src/components/nice-no-data/nice-no-data.js +27 -27
- package/src/components/nice-no-data/nice-no-data.scss +26 -26
- package/src/components/nice-notification/nice-notification.html +3 -3
- package/src/components/nice-notification/nice-notification.js +124 -124
- package/src/components/nice-notification/nice-notification.scss +66 -66
- package/src/components/nice-number/nice-number.html +40 -40
- package/src/components/nice-number/nice-number.js +172 -172
- package/src/components/nice-number/nice-number.scss +18 -18
- package/src/components/nice-on-scroll/nice-on-scroll.js +17 -17
- package/src/components/nice-percent/nice-percent.html +24 -24
- package/src/components/nice-percent/nice-percent.js +95 -95
- package/src/components/nice-pill/nice-pill.html +3 -3
- package/src/components/nice-pill/nice-pill.js +29 -29
- package/src/components/nice-pill/nice-pill.scss +25 -25
- package/src/components/nice-popup/nice-popup.html +6 -6
- package/src/components/nice-popup/nice-popup.js +122 -122
- package/src/components/nice-popup/nice-popup.scss +43 -43
- package/src/components/nice-progress-bar/nice-progress-bar.html +15 -15
- package/src/components/nice-progress-bar/nice-progress-bar.js +55 -55
- package/src/components/nice-progress-bar/nice-progress-bar.scss +47 -47
- package/src/components/nice-quantity/nice-quantity.html +22 -22
- package/src/components/nice-quantity/nice-quantity.js +57 -57
- package/src/components/nice-quantity/nice-quantity.scss +51 -51
- package/src/components/nice-search/nice-search.html +44 -44
- package/src/components/nice-search/nice-search.js +243 -243
- package/src/components/nice-search/nice-search.scss +90 -90
- package/src/components/nice-search2/nice-search2.html +32 -32
- package/src/components/nice-search2/nice-search2.js +267 -267
- package/src/components/nice-search2/nice-search2.scss +80 -80
- package/src/components/nice-slot/nice-slot.html +10 -10
- package/src/components/nice-slot/nice-slot.js +31 -31
- package/src/components/nice-steps/nice-steps.scss +81 -81
- package/src/components/nice-svgs/nice-svgs.html +1320 -1320
- package/src/components/nice-svgs/nice-svgs.js +19 -19
- package/src/components/nice-table/nice-table.html +38 -38
- package/src/components/nice-table/nice-table.js +60 -60
- package/src/components/nice-table/nice-table.scss +112 -112
- package/src/components/nice-time-picker/nice-time-picker.html +43 -43
- package/src/components/nice-time-picker/nice-time-picker.js +85 -85
- package/src/components/nice-time-picker/nice-time-picker.scss +37 -37
- package/src/components/nice-title/nice-title.html +6 -6
- package/src/components/nice-title/nice-title.js +22 -22
- package/src/components/nice-toast/nice-toast.html +2 -2
- package/src/components/nice-toast/nice-toast.js +56 -56
- package/src/components/nice-toast/nice-toast.scss +74 -74
- package/src/components/nice-toggle/nice-toggle.html +12 -12
- package/src/components/nice-toggle/nice-toggle.js +57 -57
- package/src/components/nice-toggle/nice-toggle.scss +131 -131
- package/src/components/nice-tooltip/_nice-tooltip.scss +55 -55
- package/src/components/nice-tooltip/nice-tooltip.js +84 -84
- package/src/components/nice-upload/nice-upload.html +22 -22
- package/src/components/nice-upload/nice-upload.js +159 -159
- package/src/components/nice-upload/nice-upload.scss +85 -85
- package/src/components/nice-view/_nice-view.scss +63 -63
- package/src/components/nice-view/nice-view.html +12 -12
- package/src/components/nice-view/nice-view.js +30 -30
- package/src/components/nice-virtual-scroll/_nice-virtual-scroll.scss +17 -17
- package/src/components/nice-virtual-scroll/nice-virtual-scroll.html +12 -12
- package/src/components/nice-virtual-scroll/nice-virtual-scroll.js +70 -70
- package/src/components/nice-wrapper/_nice-wrapper.scss +87 -87
- package/src/components/nice-wrapper/nice-wrapper.html +12 -12
- package/src/components/nice-wrapper/nice-wrapper.js +44 -44
- package/src/components/nice-yesno/nice-yesno.html +14 -14
- package/src/components/nice-yesno/nice-yesno.js +111 -111
- package/src/components/nice-yesno/nice-yesno.scss +95 -95
- package/src/filters/nice-date.js +17 -17
- package/src/filters/nice-highlight.js +16 -16
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.html +30 -30
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.js +67 -67
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.scss +19 -19
- package/src/nice.js +2 -2
- package/src/services/nice-service.js +22 -22
- package/src/styles/_bootstrap-variables.scss +178 -178
- package/src/styles/_nice-buttons.scss +612 -612
- package/src/styles/_nice-common.scss +479 -479
- package/src/styles/_nice-ngdialog.scss +85 -85
- package/src/styles/_nice-spacing.scss +283 -283
- package/src/styles/_nice.scss +72 -72
- package/src/styles/_variables.scss +194 -194
|
@@ -1,262 +1,262 @@
|
|
|
1
|
-
.nice-dropdown {
|
|
2
|
-
.disabled {
|
|
3
|
-
cursor: not-allowed !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.dropdown-menu-fixed {
|
|
7
|
-
position: fixed !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.hidden-input {
|
|
11
|
-
height: 0;
|
|
12
|
-
width: 100%;
|
|
13
|
-
position: absolute;
|
|
14
|
-
bottom: 0;
|
|
15
|
-
left: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
background: transparent;
|
|
18
|
-
opacity: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.open {
|
|
22
|
-
.btn-dropdown {
|
|
23
|
-
background: $nice-focus-bg !important;
|
|
24
|
-
color: $nice-font-color !important;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.not-selected {
|
|
29
|
-
opacity: 0.5;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.nice-field-wrapper {
|
|
33
|
-
display: flex;
|
|
34
|
-
position: relative;
|
|
35
|
-
|
|
36
|
-
.add-btn {
|
|
37
|
-
flex-shrink: 0;
|
|
38
|
-
margin-left: 1rem;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.btn {
|
|
42
|
-
border-radius: $nice-border-radius;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.nice-dropdown-menu-wrapper {
|
|
47
|
-
z-index: 1000;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.nice-dropdown-menu {
|
|
51
|
-
min-width: 200px;
|
|
52
|
-
max-height: 300px;
|
|
53
|
-
padding: 0;
|
|
54
|
-
border: 1px solid $nice-border-color;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
border-radius: $nice-border-radius;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
box-shadow: $nice-box-shadow;
|
|
59
|
-
display: flex;
|
|
60
|
-
background: white;
|
|
61
|
-
display: flex;
|
|
62
|
-
|
|
63
|
-
.null-item {
|
|
64
|
-
color: #ccc;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.search-bar {
|
|
68
|
-
flex-shrink: 0;
|
|
69
|
-
border-bottom: 1px solid $nice-border-color;
|
|
70
|
-
position: relative;
|
|
71
|
-
border-top-left-radius: $nice-border-radius;
|
|
72
|
-
border-top-right-radius: $nice-border-radius;
|
|
73
|
-
|
|
74
|
-
input {
|
|
75
|
-
width: 100%;
|
|
76
|
-
padding: 8px 30px 8px 10px;
|
|
77
|
-
border: 0 none;
|
|
78
|
-
flex-grow: 1;
|
|
79
|
-
|
|
80
|
-
&:focus {
|
|
81
|
-
outline: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&::placeholder {
|
|
85
|
-
color: #ccc;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.icon {
|
|
90
|
-
display: flex;
|
|
91
|
-
justify-content: center;
|
|
92
|
-
align-items: center;
|
|
93
|
-
position: absolute;
|
|
94
|
-
top: 50%;
|
|
95
|
-
right: 10px;
|
|
96
|
-
transform: translate(0, -50%);
|
|
97
|
-
height: 16px;
|
|
98
|
-
width: 16px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.count {
|
|
102
|
-
position: absolute;
|
|
103
|
-
top: 50%;
|
|
104
|
-
right: 30px;
|
|
105
|
-
transform: translate(0, -50%);
|
|
106
|
-
font-size: 0.7em;
|
|
107
|
-
opacity: 0.5;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.nice-no-data {
|
|
112
|
-
padding: 10px;
|
|
113
|
-
text-align: center;
|
|
114
|
-
color: #ccc;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.nice-dropdown-actions {
|
|
118
|
-
padding: 5px;
|
|
119
|
-
border-bottom: 1px solid var(--nice-border-color);
|
|
120
|
-
|
|
121
|
-
.btn-sm {
|
|
122
|
-
min-height: auto !important;
|
|
123
|
-
padding: 2px 4px;
|
|
124
|
-
line-height: 1;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.nice-dropdown-items {
|
|
129
|
-
overflow-y: auto;
|
|
130
|
-
overflow-x: hidden;
|
|
131
|
-
flex-grow: 1;
|
|
132
|
-
list-style: 0;
|
|
133
|
-
padding: 0;
|
|
134
|
-
margin: 0;
|
|
135
|
-
|
|
136
|
-
.nice-dropdown-item {
|
|
137
|
-
padding: 10px;
|
|
138
|
-
position: relative;
|
|
139
|
-
cursor: pointer;
|
|
140
|
-
display: flex;
|
|
141
|
-
align-items: center;
|
|
142
|
-
|
|
143
|
-
border: 0 none;
|
|
144
|
-
background: transparent;
|
|
145
|
-
text-align: left;
|
|
146
|
-
width: 100%;
|
|
147
|
-
|
|
148
|
-
.choice-checkbox {
|
|
149
|
-
transition: all 0.2s;
|
|
150
|
-
background: $nice-choice-bg;
|
|
151
|
-
color: $nice-choice-bg;
|
|
152
|
-
line-height: 22px;
|
|
153
|
-
width: 25px;
|
|
154
|
-
height: 25px;
|
|
155
|
-
border: 1px solid $nice-border-color;
|
|
156
|
-
margin-right: 1rem;
|
|
157
|
-
border-radius: $nice-border-radius;
|
|
158
|
-
text-align: center;
|
|
159
|
-
flex-shrink: 0;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.choice-option {
|
|
163
|
-
flex-grow: 1;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&:hover,
|
|
167
|
-
&.hover,
|
|
168
|
-
&:focus,
|
|
169
|
-
&.focus {
|
|
170
|
-
background: $nice-hover-color;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&.selected {
|
|
174
|
-
background: $nice-base-color;
|
|
175
|
-
color: white;
|
|
176
|
-
|
|
177
|
-
.choice-checkbox {
|
|
178
|
-
border-color: $nice-choice-selected-bg;
|
|
179
|
-
background: $nice-choice-selected-bg;
|
|
180
|
-
color: $nice-choice-selected-color;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.btn-dropdown {
|
|
188
|
-
@extend .btn-primary;
|
|
189
|
-
background: $nice-dropdown-bg;
|
|
190
|
-
border-color: $nice-dropdown-border;
|
|
191
|
-
color: $nice-dropdown-color;
|
|
192
|
-
font-weight: inherit;
|
|
193
|
-
min-height: 34px;
|
|
194
|
-
position: relative;
|
|
195
|
-
overflow: hidden;
|
|
196
|
-
flex-grow: 1;
|
|
197
|
-
justify-content: flex-start;
|
|
198
|
-
|
|
199
|
-
text-align: left;
|
|
200
|
-
padding-right: 25px;
|
|
201
|
-
|
|
202
|
-
.btn-dropdown-inside {
|
|
203
|
-
overflow: hidden;
|
|
204
|
-
text-overflow: ellipsis;
|
|
205
|
-
line-height: 1.2;
|
|
206
|
-
margin-top: 1px;
|
|
207
|
-
flex-grow: 1;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.caret {
|
|
211
|
-
position: absolute;
|
|
212
|
-
color: $nice-border-color;
|
|
213
|
-
top: 50%;
|
|
214
|
-
right: 10px;
|
|
215
|
-
transform: translate(0, -50%);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.nice-loader {
|
|
219
|
-
padding: 0;
|
|
220
|
-
text-align: left;
|
|
221
|
-
position: absolute;
|
|
222
|
-
top: 50%;
|
|
223
|
-
right: 5px;
|
|
224
|
-
height: 20px;
|
|
225
|
-
width: 20px;
|
|
226
|
-
transform: translate(0, -50%);
|
|
227
|
-
|
|
228
|
-
svg {
|
|
229
|
-
width: 20px;
|
|
230
|
-
height: 20px;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
&:disabled {
|
|
235
|
-
cursor: not-allowed;
|
|
236
|
-
background: $nice-dropdown-disabled-bg !important;
|
|
237
|
-
border-color: var(--nice-border-color);
|
|
238
|
-
|
|
239
|
-
&:hover,
|
|
240
|
-
&:active,
|
|
241
|
-
&:focus {
|
|
242
|
-
outline: 0 none;
|
|
243
|
-
border-color: var(--nice-border-color);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
&:hover {
|
|
248
|
-
background: $nice-dropdown-hover-bg;
|
|
249
|
-
border-color: var(--nice-border-color);
|
|
250
|
-
color: $nice-dropdown-hover-color;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
&:active,
|
|
254
|
-
&:focus,
|
|
255
|
-
&:focus-within {
|
|
256
|
-
background: $nice-focus-bg !important;
|
|
257
|
-
color: $nice-focus-color !important;
|
|
258
|
-
border-color: var(--nice-border-color);
|
|
259
|
-
@extend .nice-focus;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
1
|
+
.nice-dropdown {
|
|
2
|
+
.disabled {
|
|
3
|
+
cursor: not-allowed !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dropdown-menu-fixed {
|
|
7
|
+
position: fixed !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.hidden-input {
|
|
11
|
+
height: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
background: transparent;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.open {
|
|
22
|
+
.btn-dropdown {
|
|
23
|
+
background: $nice-focus-bg !important;
|
|
24
|
+
color: $nice-font-color !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.not-selected {
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nice-field-wrapper {
|
|
33
|
+
display: flex;
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
.add-btn {
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
margin-left: 1rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.btn {
|
|
42
|
+
border-radius: $nice-border-radius;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nice-dropdown-menu-wrapper {
|
|
47
|
+
z-index: 1000;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nice-dropdown-menu {
|
|
51
|
+
min-width: 200px;
|
|
52
|
+
max-height: 300px;
|
|
53
|
+
padding: 0;
|
|
54
|
+
border: 1px solid $nice-border-color;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
border-radius: $nice-border-radius;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
box-shadow: $nice-box-shadow;
|
|
59
|
+
display: flex;
|
|
60
|
+
background: white;
|
|
61
|
+
display: flex;
|
|
62
|
+
|
|
63
|
+
.null-item {
|
|
64
|
+
color: #ccc;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.search-bar {
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
border-bottom: 1px solid $nice-border-color;
|
|
70
|
+
position: relative;
|
|
71
|
+
border-top-left-radius: $nice-border-radius;
|
|
72
|
+
border-top-right-radius: $nice-border-radius;
|
|
73
|
+
|
|
74
|
+
input {
|
|
75
|
+
width: 100%;
|
|
76
|
+
padding: 8px 30px 8px 10px;
|
|
77
|
+
border: 0 none;
|
|
78
|
+
flex-grow: 1;
|
|
79
|
+
|
|
80
|
+
&:focus {
|
|
81
|
+
outline: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&::placeholder {
|
|
85
|
+
color: #ccc;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.icon {
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 50%;
|
|
95
|
+
right: 10px;
|
|
96
|
+
transform: translate(0, -50%);
|
|
97
|
+
height: 16px;
|
|
98
|
+
width: 16px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.count {
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 50%;
|
|
104
|
+
right: 30px;
|
|
105
|
+
transform: translate(0, -50%);
|
|
106
|
+
font-size: 0.7em;
|
|
107
|
+
opacity: 0.5;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.nice-no-data {
|
|
112
|
+
padding: 10px;
|
|
113
|
+
text-align: center;
|
|
114
|
+
color: #ccc;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.nice-dropdown-actions {
|
|
118
|
+
padding: 5px;
|
|
119
|
+
border-bottom: 1px solid var(--nice-border-color);
|
|
120
|
+
|
|
121
|
+
.btn-sm {
|
|
122
|
+
min-height: auto !important;
|
|
123
|
+
padding: 2px 4px;
|
|
124
|
+
line-height: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.nice-dropdown-items {
|
|
129
|
+
overflow-y: auto;
|
|
130
|
+
overflow-x: hidden;
|
|
131
|
+
flex-grow: 1;
|
|
132
|
+
list-style: 0;
|
|
133
|
+
padding: 0;
|
|
134
|
+
margin: 0;
|
|
135
|
+
|
|
136
|
+
.nice-dropdown-item {
|
|
137
|
+
padding: 10px;
|
|
138
|
+
position: relative;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
|
|
143
|
+
border: 0 none;
|
|
144
|
+
background: transparent;
|
|
145
|
+
text-align: left;
|
|
146
|
+
width: 100%;
|
|
147
|
+
|
|
148
|
+
.choice-checkbox {
|
|
149
|
+
transition: all 0.2s;
|
|
150
|
+
background: $nice-choice-bg;
|
|
151
|
+
color: $nice-choice-bg;
|
|
152
|
+
line-height: 22px;
|
|
153
|
+
width: 25px;
|
|
154
|
+
height: 25px;
|
|
155
|
+
border: 1px solid $nice-border-color;
|
|
156
|
+
margin-right: 1rem;
|
|
157
|
+
border-radius: $nice-border-radius;
|
|
158
|
+
text-align: center;
|
|
159
|
+
flex-shrink: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.choice-option {
|
|
163
|
+
flex-grow: 1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:hover,
|
|
167
|
+
&.hover,
|
|
168
|
+
&:focus,
|
|
169
|
+
&.focus {
|
|
170
|
+
background: $nice-hover-color;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.selected {
|
|
174
|
+
background: $nice-base-color;
|
|
175
|
+
color: white;
|
|
176
|
+
|
|
177
|
+
.choice-checkbox {
|
|
178
|
+
border-color: $nice-choice-selected-bg;
|
|
179
|
+
background: $nice-choice-selected-bg;
|
|
180
|
+
color: $nice-choice-selected-color;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.btn-dropdown {
|
|
188
|
+
@extend .btn-primary;
|
|
189
|
+
background: $nice-dropdown-bg;
|
|
190
|
+
border-color: $nice-dropdown-border;
|
|
191
|
+
color: $nice-dropdown-color;
|
|
192
|
+
font-weight: inherit;
|
|
193
|
+
min-height: 34px;
|
|
194
|
+
position: relative;
|
|
195
|
+
overflow: hidden;
|
|
196
|
+
flex-grow: 1;
|
|
197
|
+
justify-content: flex-start;
|
|
198
|
+
|
|
199
|
+
text-align: left;
|
|
200
|
+
padding-right: 25px;
|
|
201
|
+
|
|
202
|
+
.btn-dropdown-inside {
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
text-overflow: ellipsis;
|
|
205
|
+
line-height: 1.2;
|
|
206
|
+
margin-top: 1px;
|
|
207
|
+
flex-grow: 1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.caret {
|
|
211
|
+
position: absolute;
|
|
212
|
+
color: $nice-border-color;
|
|
213
|
+
top: 50%;
|
|
214
|
+
right: 10px;
|
|
215
|
+
transform: translate(0, -50%);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.nice-loader {
|
|
219
|
+
padding: 0;
|
|
220
|
+
text-align: left;
|
|
221
|
+
position: absolute;
|
|
222
|
+
top: 50%;
|
|
223
|
+
right: 5px;
|
|
224
|
+
height: 20px;
|
|
225
|
+
width: 20px;
|
|
226
|
+
transform: translate(0, -50%);
|
|
227
|
+
|
|
228
|
+
svg {
|
|
229
|
+
width: 20px;
|
|
230
|
+
height: 20px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&:disabled {
|
|
235
|
+
cursor: not-allowed;
|
|
236
|
+
background: $nice-dropdown-disabled-bg !important;
|
|
237
|
+
border-color: var(--nice-border-color);
|
|
238
|
+
|
|
239
|
+
&:hover,
|
|
240
|
+
&:active,
|
|
241
|
+
&:focus {
|
|
242
|
+
outline: 0 none;
|
|
243
|
+
border-color: var(--nice-border-color);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&:hover {
|
|
248
|
+
background: $nice-dropdown-hover-bg;
|
|
249
|
+
border-color: var(--nice-border-color);
|
|
250
|
+
color: $nice-dropdown-hover-color;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&:active,
|
|
254
|
+
&:focus,
|
|
255
|
+
&:focus-within {
|
|
256
|
+
background: $nice-focus-bg !important;
|
|
257
|
+
color: $nice-focus-color !important;
|
|
258
|
+
border-color: var(--nice-border-color);
|
|
259
|
+
@extend .nice-focus;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<div class="nice-component nice-dropdown-date" ng-form="dropdownDateForm" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
-
<div class="row">
|
|
3
|
-
<!------------------------- Title ------------------------->
|
|
4
|
-
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
-
|
|
6
|
-
<!------------------------- Field ------------------------->
|
|
7
|
-
<div class="nice-field col-xs-12" ng-class="[
|
|
8
|
-
fieldWidth ? fieldWidth : 'col-sm-8',
|
|
9
|
-
{
|
|
10
|
-
'has-warning': !isDisabled && dropdownDateForm.$invalid && dropdownDateForm.$dirty,
|
|
11
|
-
'nice-disabled': isDisabled
|
|
12
|
-
}
|
|
13
|
-
]">
|
|
14
|
-
<div class="form-inline">
|
|
15
|
-
<div class="input-group nice-dropdown-date-day">
|
|
16
|
-
<select ng-model="dateFields.day" class="form-control" ng-options="day for day in days" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div class="input-group nice-dropdown-date-month">
|
|
20
|
-
<select ng-model="dateFields.month" class="form-control" ng-options="month.value as month.name for month in months" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div class="input-group nice-dropdown-date-year">
|
|
24
|
-
<select ng-model="dateFields.year" class="form-control" ng-options="year for year in years" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
1
|
+
<div class="nice-component nice-dropdown-date" ng-form="dropdownDateForm" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
+
<div class="row">
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
+
|
|
6
|
+
<!------------------------- Field ------------------------->
|
|
7
|
+
<div class="nice-field col-xs-12" ng-class="[
|
|
8
|
+
fieldWidth ? fieldWidth : 'col-sm-8',
|
|
9
|
+
{
|
|
10
|
+
'has-warning': !isDisabled && dropdownDateForm.$invalid && dropdownDateForm.$dirty,
|
|
11
|
+
'nice-disabled': isDisabled
|
|
12
|
+
}
|
|
13
|
+
]">
|
|
14
|
+
<div class="form-inline">
|
|
15
|
+
<div class="input-group nice-dropdown-date-day">
|
|
16
|
+
<select ng-model="dateFields.day" class="form-control" ng-options="day for day in days" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="input-group nice-dropdown-date-month">
|
|
20
|
+
<select ng-model="dateFields.month" class="form-control" ng-options="month.value as month.name for month in months" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="input-group nice-dropdown-date-year">
|
|
24
|
+
<select ng-model="dateFields.year" class="form-control" ng-options="year for year in years" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
29
|
</div>
|