nice-elements 1.6.2 → 1.7.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/CHANGELOG.md +13 -0
- package/README.md +2 -1
- package/bower.json +1 -1
- package/dist/nice.js +249 -220
- package/dist/nice.min.js +1 -1
- package/dist/style.css +247 -91
- package/dist/style.css.map +3 -2
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-calendar/nice-calendar.html +3 -2
- package/src/components/nice-calendar/nice-calendar.scss +9 -7
- package/src/components/nice-checkbox/nice-checkbox.html +1 -3
- package/src/components/nice-checkbox/nice-checkbox.scss +12 -12
- package/src/components/nice-choice/nice-choice.html +3 -1
- package/src/components/nice-choice/nice-choice.scss +14 -3
- package/src/components/nice-date/nice-date.html +7 -8
- package/src/components/nice-date/nice-date.js +51 -53
- package/src/components/nice-date/nice-date.scss +29 -6
- package/src/components/nice-date-input/nice-date-input.html +6 -9
- package/src/components/nice-date-input/nice-date-input.js +24 -11
- package/src/components/nice-date-range/nice-date-range.html +3 -1
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +5 -19
- package/src/components/nice-datetime-picker/nice-datetime-picker.scss +1 -1
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +6 -1
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +5 -3
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +25 -26
- package/src/components/nice-dropdown/nice-dropdown.html +3 -1
- package/src/components/nice-dropdown/nice-dropdown.scss +1 -0
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +38 -36
- package/src/components/nice-dtp/nice-dtp.html +12 -12
- package/src/components/nice-dtp/nice-dtp.js +1 -0
- package/src/components/nice-help/nice-help.html +2 -1
- package/src/components/nice-help/nice-help.scss +7 -0
- package/src/components/nice-input/nice-input.html +9 -42
- package/src/components/nice-input/nice-input.js +28 -28
- package/src/components/nice-input/nice-input.scss +27 -20
- package/src/components/nice-number/nice-number.html +6 -2
- package/src/components/nice-number/nice-number.scss +15 -3
- package/src/components/nice-quantity/nice-quantity.html +6 -2
- package/src/components/nice-quantity/nice-quantity.scss +11 -0
- package/src/components/nice-search/nice-search.html +9 -20
- package/src/components/nice-search2/nice-search2.html +4 -2
- package/src/components/nice-time-picker/nice-time-picker.html +21 -27
- package/src/components/nice-time-picker/nice-time-picker.scss +11 -32
- package/src/components/nice-yesno/nice-yesno.html +2 -2
- package/src/components/nice-yesno/nice-yesno.scss +13 -0
- package/src/styles/_nice-buttons.scss +22 -9
- package/src/styles/_nice-common.scss +64 -16
- package/src/styles/_nice.scss +2 -1
- package/src/styles/_variables.scss +3 -0
|
@@ -34,6 +34,19 @@ label.nice {
|
|
|
34
34
|
|
|
35
35
|
.input-group,
|
|
36
36
|
.form-group {
|
|
37
|
+
.form-control {
|
|
38
|
+
z-index: unset;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.input-group-btn:last-child>.btn,
|
|
42
|
+
.input-group-btn:last-child>.btn-group {
|
|
43
|
+
z-index: unset;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.form-control:not(:last-child) {
|
|
47
|
+
border-right: 0 none;
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
&:focus-within {
|
|
38
51
|
@extend .nice-focus;
|
|
39
52
|
border-radius: var(--nice-border-radius);
|
|
@@ -79,40 +92,47 @@ label.nice {
|
|
|
79
92
|
background: $nice-input-bg;
|
|
80
93
|
border: 1px solid $nice-border-color;
|
|
81
94
|
box-shadow: 0 0 0;
|
|
95
|
+
color: var(--nice-font-color);
|
|
82
96
|
|
|
83
97
|
&:active,
|
|
84
98
|
&:focus {
|
|
85
|
-
border-color: $nice-focus-border;
|
|
99
|
+
// border-color: $nice-focus-border;
|
|
86
100
|
box-shadow: 0 0 0;
|
|
87
101
|
|
|
88
102
|
&+.input-group-addon {
|
|
89
|
-
border-color: $nice-focus-border;
|
|
90
|
-
background-color: $nice-focus-border;
|
|
91
|
-
color: white;
|
|
103
|
+
// border-color: $nice-focus-border;
|
|
104
|
+
// background-color: $nice-focus-border;
|
|
105
|
+
// color: white;
|
|
92
106
|
}
|
|
93
107
|
}
|
|
94
108
|
|
|
95
109
|
&:disabled {
|
|
96
110
|
background: $nice-input-disabled-bg;
|
|
97
|
-
border-color: $nice-input-disabled-border;
|
|
111
|
+
// border-color: $nice-input-disabled-border;
|
|
98
112
|
opacity: 0.65;
|
|
99
113
|
}
|
|
100
114
|
}
|
|
101
115
|
|
|
102
116
|
.input-group-addon {
|
|
103
|
-
background: $nice-addon-bg;
|
|
104
|
-
// border: 0 none;
|
|
105
117
|
border-top-right-radius: $nice-border-radius;
|
|
106
118
|
border-bottom-right-radius: $nice-border-radius;
|
|
107
|
-
color: $nice-font-color;
|
|
108
119
|
border: 1px solid $nice-border-color;
|
|
109
120
|
border-left: 0 none;
|
|
121
|
+
background: $nice-input-bg;
|
|
122
|
+
padding: 0 9px;
|
|
123
|
+
color: var(--nice-font-color);
|
|
124
|
+
|
|
125
|
+
svg {
|
|
126
|
+
height: 16px;
|
|
127
|
+
width: 16px;
|
|
128
|
+
}
|
|
110
129
|
|
|
111
130
|
&.clickable {
|
|
112
131
|
&:hover {
|
|
113
132
|
cursor: pointer;
|
|
114
|
-
background-color: $nice-base-color;
|
|
115
|
-
color:
|
|
133
|
+
// background-color: $nice-base-color;
|
|
134
|
+
background-color: var(--nice-hover-color);
|
|
135
|
+
// color: white;
|
|
116
136
|
}
|
|
117
137
|
}
|
|
118
138
|
}
|
|
@@ -317,29 +337,57 @@ p.nice {
|
|
|
317
337
|
}
|
|
318
338
|
|
|
319
339
|
.has-warning {
|
|
340
|
+
outline-color: $nice-input-invalid !important;
|
|
341
|
+
|
|
320
342
|
.form-control {
|
|
321
343
|
border-color: $nice-input-invalid !important;
|
|
322
344
|
}
|
|
323
345
|
|
|
324
346
|
.input-group-addon {
|
|
325
|
-
background: $nice-input-invalid !important;
|
|
347
|
+
// background: $nice-input-invalid !important;
|
|
348
|
+
// color: white !important;
|
|
326
349
|
border-color: $nice-input-invalid !important;
|
|
327
|
-
color:
|
|
350
|
+
color: $nice-input-invalid !important;
|
|
328
351
|
}
|
|
329
352
|
}
|
|
330
353
|
|
|
331
354
|
.has-success {
|
|
355
|
+
outline-color: $nice-input-valid !important;
|
|
356
|
+
|
|
332
357
|
.form-control {
|
|
333
|
-
border-color: $nice-input-valid;
|
|
358
|
+
border-color: $nice-input-valid !important;
|
|
334
359
|
}
|
|
335
360
|
|
|
336
361
|
.input-group-addon {
|
|
337
|
-
background: $nice-input-valid;
|
|
338
|
-
|
|
339
|
-
color:
|
|
362
|
+
// background: $nice-input-valid !important;
|
|
363
|
+
// color: white !important;
|
|
364
|
+
border-color: $nice-input-valid !important;
|
|
365
|
+
color: $nice-input-valid !important;
|
|
340
366
|
}
|
|
341
367
|
}
|
|
342
368
|
|
|
343
369
|
.nice-highligh {
|
|
344
370
|
background: yellow;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.nice-animation-spin {
|
|
374
|
+
animation: nice-spin 2s infinite linear;
|
|
375
|
+
|
|
376
|
+
&.ng-hide {
|
|
377
|
+
display: none;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@keyframes nice-spin {
|
|
382
|
+
from {
|
|
383
|
+
transform: rotate(0deg);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
to {
|
|
387
|
+
transform: rotate(360deg);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.d-block {
|
|
392
|
+
display: block;
|
|
345
393
|
}
|
package/src/styles/_nice.scss
CHANGED
|
@@ -53,4 +53,5 @@
|
|
|
53
53
|
@import "../components/nice-tooltip/nice-tooltip";
|
|
54
54
|
@import "../components/nice-popup/nice-popup";
|
|
55
55
|
@import "../components/nice-icon/nice-icon";
|
|
56
|
-
@import "../components/nice-toast/nice-toast";
|
|
56
|
+
@import "../components/nice-toast/nice-toast";
|
|
57
|
+
@import "../components/nice-date-input/nice-date-input.scss";
|
|
@@ -138,6 +138,9 @@ $nice-table-bg-active: #f5f5f5 !default;
|
|
|
138
138
|
--nice-font-weight: #{$nice-font-weight};
|
|
139
139
|
--nice-font-color: #{$nice-font-color};
|
|
140
140
|
|
|
141
|
+
// ---------- Common ----------
|
|
142
|
+
--nice-hover-color: #{$nice-hover-color};
|
|
143
|
+
|
|
141
144
|
// ---------- Colors ----------
|
|
142
145
|
--nice-primary-color: #{$nice-base-color};
|
|
143
146
|
--nice-primary-color-lighter: #{$nice-base-color-lighter};
|