nice-elements 1.10.9 → 1.10.10

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 +464 -458
  3. package/LICENSE.md +21 -21
  4. package/README.md +95 -95
  5. package/bower.json +10 -10
  6. package/dist/nice.js +8108 -8142
  7. package/dist/nice.min.js +1 -1
  8. package/dist/style.css +45 -52
  9. package/dist/style.css.map +1 -1
  10. package/dist/style.min.css +8 -8
  11. package/eslint.config.mjs +27 -27
  12. package/package.json +45 -45
  13. package/src/components/nice-button/nice-button.html +4 -4
  14. package/src/components/nice-button/nice-button.js +41 -41
  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 -336
  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 +212 -212
  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 -71
  31. package/src/components/nice-comment/nice-comment.scss +39 -39
  32. package/src/components/nice-date/nice-date.html +79 -75
  33. package/src/components/nice-date/nice-date.js +331 -329
  34. package/src/components/nice-date/nice-date.scss +305 -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 -111
  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 -78
  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 -89
  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 -248
  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 -174
  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 -61
  51. package/src/components/nice-dropdown/nice-dropdown.js +510 -510
  52. package/src/components/nice-dropdown/nice-dropdown.scss +261 -261
  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 -128
  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 -835
  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 -32
  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 -57
  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 -31
  103. package/src/components/nice-steps/nice-steps.scss +81 -81
  104. package/src/components/nice-svgs/nice-svgs.html +1275 -1275
  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 -85
  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 +55 -55
  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 -159
  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 -111
  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 -22
  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,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
- }
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
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>