nice-elements 1.10.4 → 1.10.6

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