nice-elements 1.9.12 → 1.9.14

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 (137) hide show
  1. package/.vscode/settings.json +17 -10
  2. package/CHANGELOG.md +390 -382
  3. package/LICENSE.md +21 -21
  4. package/README.md +93 -93
  5. package/bower.json +10 -18
  6. package/dist/nice.js +7967 -7920
  7. package/dist/nice.min.js +1 -1
  8. package/dist/style.css +22 -18
  9. package/dist/style.css.map +1 -1
  10. package/dist/style.min.css +7 -7
  11. package/package.json +40 -40
  12. package/src/components/nice-button/nice-button.html +4 -4
  13. package/src/components/nice-button/nice-button.js +41 -41
  14. package/src/components/nice-button/nice-button.scss +16 -16
  15. package/src/components/nice-button-toggle/nice-button-toggle.html +9 -9
  16. package/src/components/nice-button-toggle/nice-button-toggle.js +23 -23
  17. package/src/components/nice-button-toggle/nice-button-toggle.scss +2 -2
  18. package/src/components/nice-calendar/nice-calendar.html +91 -91
  19. package/src/components/nice-calendar/nice-calendar.js +334 -334
  20. package/src/components/nice-calendar/nice-calendar.scss +285 -285
  21. package/src/components/nice-checkbox/nice-checkbox.html +5 -5
  22. package/src/components/nice-checkbox/nice-checkbox.js +33 -33
  23. package/src/components/nice-checkbox/nice-checkbox.scss +91 -91
  24. package/src/components/nice-choice/nice-choice.html +18 -18
  25. package/src/components/nice-choice/nice-choice.js +210 -210
  26. package/src/components/nice-choice/nice-choice.scss +110 -109
  27. package/src/components/nice-click-outside/nice-click-outside.js +105 -105
  28. package/src/components/nice-comment/nice-comment.html +10 -10
  29. package/src/components/nice-comment/nice-comment.js +69 -69
  30. package/src/components/nice-comment/nice-comment.scss +39 -39
  31. package/src/components/nice-date/nice-date.html +74 -74
  32. package/src/components/nice-date/nice-date.js +327 -327
  33. package/src/components/nice-date/nice-date.scss +302 -302
  34. package/src/components/nice-date-input/nice-date-input.html +41 -41
  35. package/src/components/nice-date-input/nice-date-input.js +109 -109
  36. package/src/components/nice-date-input/nice-date-input.scss +45 -45
  37. package/src/components/nice-date-range/nice-date-range.html +15 -15
  38. package/src/components/nice-date-range/nice-date-range.js +76 -76
  39. package/src/components/nice-date-range/nice-date-range.scss +390 -390
  40. package/src/components/nice-datetime-picker/nice-datetime-picker.html +29 -29
  41. package/src/components/nice-datetime-picker/nice-datetime-picker.js +87 -87
  42. package/src/components/nice-datetime-picker/nice-datetime-picker.scss +428 -428
  43. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +55 -55
  44. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +246 -246
  45. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.scss +73 -73
  46. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +44 -44
  47. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +172 -172
  48. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +127 -127
  49. package/src/components/nice-dropdown/nice-dropdown.html +60 -60
  50. package/src/components/nice-dropdown/nice-dropdown.js +489 -489
  51. package/src/components/nice-dropdown/nice-dropdown.scss +249 -249
  52. package/src/components/nice-dropdown-date/nice-dropdown-date.html +28 -28
  53. package/src/components/nice-dropdown-date/nice-dropdown-date.js +126 -126
  54. package/src/components/nice-dropdown-date/nice-dropdown-date.scss +82 -82
  55. package/src/components/nice-dropdown-old/nice-dropdown-old.html +44 -44
  56. package/src/components/nice-dropdown-old/nice-dropdown-old.js +330 -330
  57. package/src/components/nice-dropdown-old/nice-dropdown-old.scss +129 -129
  58. package/src/components/nice-dtp/nice-dtp.html +91 -91
  59. package/src/components/nice-dtp/nice-dtp.js +833 -833
  60. package/src/components/nice-help/nice-help.html +6 -6
  61. package/src/components/nice-help/nice-help.js +55 -55
  62. package/src/components/nice-help/nice-help.scss +78 -78
  63. package/src/components/nice-input/nice-input.html +48 -47
  64. package/src/components/nice-input/nice-input.js +231 -224
  65. package/src/components/nice-input/nice-input.scss +130 -130
  66. package/src/components/nice-label/nice-label.html +10 -10
  67. package/src/components/nice-label/nice-label.js +30 -30
  68. package/src/components/nice-loader/nice-loader.html +6 -6
  69. package/src/components/nice-loader/nice-loader.js +28 -28
  70. package/src/components/nice-loader/nice-loader.scss +47 -47
  71. package/src/components/nice-notification/nice-notification.html +3 -3
  72. package/src/components/nice-notification/nice-notification.js +124 -124
  73. package/src/components/nice-notification/nice-notification.scss +66 -66
  74. package/src/components/nice-number/nice-number.html +40 -40
  75. package/src/components/nice-number/nice-number.js +166 -166
  76. package/src/components/nice-number/nice-number.scss +18 -18
  77. package/src/components/nice-percent/nice-percent.html +24 -24
  78. package/src/components/nice-percent/nice-percent.js +94 -94
  79. package/src/components/nice-pill/nice-pill.html +3 -3
  80. package/src/components/nice-pill/nice-pill.js +29 -29
  81. package/src/components/nice-pill/nice-pill.scss +25 -25
  82. package/src/components/nice-popup/nice-popup.html +6 -6
  83. package/src/components/nice-popup/nice-popup.js +122 -122
  84. package/src/components/nice-popup/nice-popup.scss +43 -43
  85. package/src/components/nice-progress-bar/nice-progress-bar.html +15 -15
  86. package/src/components/nice-progress-bar/nice-progress-bar.js +54 -54
  87. package/src/components/nice-progress-bar/nice-progress-bar.scss +47 -47
  88. package/src/components/nice-quantity/nice-quantity.html +22 -22
  89. package/src/components/nice-quantity/nice-quantity.js +55 -55
  90. package/src/components/nice-quantity/nice-quantity.scss +51 -51
  91. package/src/components/nice-search/nice-search.html +44 -44
  92. package/src/components/nice-search/nice-search.js +239 -239
  93. package/src/components/nice-search/nice-search.scss +90 -90
  94. package/src/components/nice-search2/nice-search2.html +32 -32
  95. package/src/components/nice-search2/nice-search2.js +264 -264
  96. package/src/components/nice-search2/nice-search2.scss +80 -80
  97. package/src/components/nice-slot/nice-slot.html +10 -10
  98. package/src/components/nice-slot/nice-slot.js +29 -29
  99. package/src/components/nice-steps/nice-steps.scss +81 -81
  100. package/src/components/nice-svgs/nice-svgs.html +1262 -1262
  101. package/src/components/nice-svgs/nice-svgs.js +16 -16
  102. package/src/components/nice-time-picker/nice-time-picker.html +43 -43
  103. package/src/components/nice-time-picker/nice-time-picker.js +83 -83
  104. package/src/components/nice-time-picker/nice-time-picker.scss +37 -37
  105. package/src/components/nice-title/nice-title.html +3 -3
  106. package/src/components/nice-title/nice-title.js +21 -21
  107. package/src/components/nice-toast/nice-toast.html +2 -2
  108. package/src/components/nice-toast/nice-toast.js +56 -56
  109. package/src/components/nice-toast/nice-toast.scss +74 -74
  110. package/src/components/nice-toggle/nice-toggle.html +12 -12
  111. package/src/components/nice-toggle/nice-toggle.js +95 -95
  112. package/src/components/nice-toggle/nice-toggle.scss +67 -67
  113. package/src/components/nice-tooltip/_nice-tooltip.scss +71 -71
  114. package/src/components/nice-tooltip/nice-tooltip.js +23 -23
  115. package/src/components/nice-upload/nice-upload.html +22 -22
  116. package/src/components/nice-upload/nice-upload.js +157 -157
  117. package/src/components/nice-upload/nice-upload.scss +85 -85
  118. package/src/components/nice-wrapper/_nice-wrapper.scss +87 -87
  119. package/src/components/nice-wrapper/nice-wrapper.html +12 -12
  120. package/src/components/nice-wrapper/nice-wrapper.js +43 -43
  121. package/src/components/nice-yesno/nice-yesno.html +14 -14
  122. package/src/components/nice-yesno/nice-yesno.js +109 -109
  123. package/src/components/nice-yesno/nice-yesno.scss +95 -95
  124. package/src/filters/nice-date.js +17 -17
  125. package/src/filters/nice-highlight.js +16 -16
  126. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.html +30 -30
  127. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.js +67 -67
  128. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.scss +19 -19
  129. package/src/nice.js +2 -2
  130. package/src/services/nice-service.js +19 -19
  131. package/src/styles/_bootstrap-variables.scss +178 -178
  132. package/src/styles/_nice-buttons.scss +403 -403
  133. package/src/styles/_nice-common.scss +471 -467
  134. package/src/styles/_nice-ngdialog.scss +85 -85
  135. package/src/styles/_nice-spacing.scss +283 -283
  136. package/src/styles/_nice.scss +65 -65
  137. package/src/styles/_variables.scss +195 -195
@@ -1,303 +1,303 @@
1
- .nice-date {
2
- $spacing: 10px;
3
- $icon-width: 40px;
4
-
5
- .nice-date-dropdown-wrapper {
6
- z-index: 1000;
7
- width: 300px;
8
- }
9
-
10
- .nice-date-dropdown {
11
- box-shadow: $nice-box-shadow;
12
- line-height: normal;
13
- }
14
-
15
- .nice-date-background {
16
- position: fixed;
17
- top: 0;
18
- left: 0;
19
- width: 100%;
20
- z-index: 999;
21
- height: 100%;
22
- }
23
-
24
- .input-group {
25
- cursor: pointer;
26
- width: 100%;
27
-
28
- .form-control {
29
- text-overflow: ellipsis;
30
- }
31
- }
32
-
33
- .with-time {
34
- .nice-date-date {
35
- border-bottom-left-radius: 0;
36
- border-bottom-right-radius: 0;
37
- }
38
-
39
- .nice-date-time {
40
- border-top: 0 none;
41
- }
42
- }
43
-
44
- .no-date {
45
- .nice-date-time {
46
- border-top: 1px solid $nice-border-color;
47
- }
48
- }
49
-
50
- .nice-date-date {
51
- border-radius: $nice-border-radius;
52
- background: white;
53
- // overflow: hidden;
54
- border: solid 1px $nice-border-color;
55
-
56
- color: white;
57
- display: flex;
58
- flex-direction: column;
59
- height: 250px;
60
- width: 100%;
61
-
62
- .nice-date-header {
63
- background: $nice-base-color;
64
- line-height: 40px;
65
- color: white;
66
- display: flex;
67
- padding: 0 0 0 $spacing;
68
-
69
- button {
70
- width: 30px;
71
- font-size: 1.125em;
72
- font-weight: bold;
73
- line-height: 40px;
74
- border: 0 none;
75
-
76
- &:focus {
77
- outline-color: $nice-base-color-darker;
78
- }
79
-
80
- &:hover,
81
- &:focus {
82
- background: $nice-base-color-darker;
83
- color: white;
84
- }
85
-
86
- &:active {
87
- background: $nice-base-color-lighter;
88
- color: white;
89
- }
90
-
91
- .fa-circle {
92
- font-size: 8px;
93
- }
94
- }
95
-
96
- span {
97
- flex-grow: 1;
98
-
99
- select {
100
- background: transparent;
101
- border: 0px;
102
- -webkit-appearance: none;
103
- appearance: none;
104
- cursor: pointer;
105
-
106
- &:focus {
107
- outline-color: $nice-base-color-darker;
108
- }
109
-
110
- &:hover,
111
- &:focus {
112
- background: $nice-base-color-darker;
113
- color: white;
114
- }
115
-
116
- &:active {
117
- background: $nice-base-color-lighter;
118
- color: white;
119
- }
120
- }
121
- }
122
-
123
-
124
- }
125
-
126
- .nice-date-week {
127
- width: 100%;
128
- border-top: solid 1px $nice-border-color;
129
- display: flex;
130
- flex-grow: 1;
131
-
132
- &:first-child {
133
- border-top: none;
134
- }
135
-
136
- .nice-date-day {
137
- box-shadow: 0 0 0;
138
- user-select: none;
139
- position: relative;
140
- min-height: 20px;
141
- width: 14.2857%;
142
- border-radius: $nice-border-radius;
143
- border: 0 none;
144
- border-left: solid 1px $nice-border-color;
145
- font-size: 12px;
146
- text-align: center;
147
- background: white;
148
- cursor: pointer;
149
- color: $nice-font-color;
150
- padding: 0;
151
- margin: 0;
152
-
153
- display: flex;
154
- justify-content: center;
155
- align-items: center;
156
-
157
- &:first-child {
158
- border-left: none;
159
- }
160
-
161
- &.today:before {
162
- content: " ";
163
- position: absolute;
164
- top: 0;
165
- right: 0;
166
- height: 10px;
167
- width: 10px;
168
- border-style: solid;
169
- border-width: 0 10px 10px 0;
170
- border-color: transparent $nice-base-color transparent transparent;
171
- }
172
-
173
- &.different-month {
174
- color: #C0C0C0;
175
- }
176
-
177
- &.weekend {
178
- background: #fafafa;
179
- }
180
-
181
- &.disabled {
182
- opacity: 0.3;
183
- color: $nice-danger-color;
184
- cursor: not-allowed;
185
- }
186
-
187
- &.selected {
188
- background: $nice-base-color !important;
189
- color: white;
190
- }
191
-
192
- &.between {
193
- background: lighten($nice-base-color, 35%);
194
- }
195
-
196
- &:hover {
197
- background: lighten($nice-base-color, 30%);
198
-
199
- &.selected {
200
- background: darken($nice-base-color, 10%) !important;
201
- }
202
- }
203
- }
204
-
205
- &.names {
206
- flex-grow: 0;
207
- height: 21px;
208
- flex-shrink: 0;
209
-
210
- &>span {
211
- color: darken($nice-base-color, 10%);
212
- min-height: 20px;
213
- cursor: default;
214
-
215
- &:hover {
216
- background: white;
217
- }
218
- }
219
- }
220
- }
221
- }
222
-
223
- .nice-date-time {
224
- display: flex;
225
- width: 100%;
226
- padding: 10px;
227
- background: #ffffff;
228
- border: 1px solid #cad4d9;
229
- align-items: center;
230
-
231
- border-bottom-left-radius: $nice-border-radius;
232
- border-bottom-right-radius: $nice-border-radius;
233
-
234
- .divider {
235
- line-height: 30px;
236
- margin: 0 10px;
237
- }
238
-
239
- i {
240
- line-height: 30px;
241
- margin-right: 10px;
242
- color: $nice-border-color;
243
- }
244
-
245
- svg {
246
- height: 16px;
247
- width: 16px;
248
- margin-right: 10px;
249
- }
250
-
251
- .time-picker {
252
- position: relative;
253
- // flex-grow: 1;
254
- height: 30px;
255
-
256
- select {
257
- width: 100%;
258
- -webkit-appearance: none;
259
- -moz-appearance: none;
260
- appearance: none;
261
- border-radius: $nice-border-radius;
262
- border: 1px solid $nice-border-color;
263
- padding: 0 10px;
264
- z-index: 2;
265
- // color: $nice-font-color;
266
- background: white;
267
- cursor: pointer;
268
- position: relative;
269
- font-size: 14px;
270
- height: 30px;
271
- line-height: auto;
272
- }
273
-
274
- // &:after {
275
- // content: " ";
276
- // position: absolute;
277
- // top: 50%;
278
- // right: 10px;
279
- // width: 0;
280
- // height: 0;
281
- // border-style: solid;
282
- // border-width: 6px 4px 0 4px;
283
- // margin-top: -3px;
284
- // border-color: #404040 transparent transparent transparent;
285
- // }
286
-
287
- // &.time-picker-hour{
288
- // select {
289
- // padding: 5px 10px 5px 15px;
290
- // }
291
- // }
292
- }
293
- }
294
-
295
- .disabled-shield {
296
- position: absolute;
297
- top: 0;
298
- left: 0;
299
- right: 0;
300
- bottom: 0;
301
- z-index: 3;
302
- }
1
+ .nice-date {
2
+ $spacing: 10px;
3
+ $icon-width: 40px;
4
+
5
+ .nice-date-dropdown-wrapper {
6
+ z-index: 1000;
7
+ width: 300px;
8
+ }
9
+
10
+ .nice-date-dropdown {
11
+ box-shadow: $nice-box-shadow;
12
+ line-height: normal;
13
+ }
14
+
15
+ .nice-date-background {
16
+ position: fixed;
17
+ top: 0;
18
+ left: 0;
19
+ width: 100%;
20
+ z-index: 999;
21
+ height: 100%;
22
+ }
23
+
24
+ .input-group {
25
+ cursor: pointer;
26
+ width: 100%;
27
+
28
+ .form-control {
29
+ text-overflow: ellipsis;
30
+ }
31
+ }
32
+
33
+ .with-time {
34
+ .nice-date-date {
35
+ border-bottom-left-radius: 0;
36
+ border-bottom-right-radius: 0;
37
+ }
38
+
39
+ .nice-date-time {
40
+ border-top: 0 none;
41
+ }
42
+ }
43
+
44
+ .no-date {
45
+ .nice-date-time {
46
+ border-top: 1px solid $nice-border-color;
47
+ }
48
+ }
49
+
50
+ .nice-date-date {
51
+ border-radius: $nice-border-radius;
52
+ background: white;
53
+ // overflow: hidden;
54
+ border: solid 1px $nice-border-color;
55
+
56
+ color: white;
57
+ display: flex;
58
+ flex-direction: column;
59
+ height: 250px;
60
+ width: 100%;
61
+
62
+ .nice-date-header {
63
+ background: $nice-base-color;
64
+ line-height: 40px;
65
+ color: white;
66
+ display: flex;
67
+ padding: 0 0 0 $spacing;
68
+
69
+ button {
70
+ width: 30px;
71
+ font-size: 1.125em;
72
+ font-weight: bold;
73
+ line-height: 40px;
74
+ border: 0 none;
75
+
76
+ &:focus {
77
+ outline-color: $nice-base-color-darker;
78
+ }
79
+
80
+ &:hover,
81
+ &:focus {
82
+ background: $nice-base-color-darker;
83
+ color: white;
84
+ }
85
+
86
+ &:active {
87
+ background: $nice-base-color-lighter;
88
+ color: white;
89
+ }
90
+
91
+ .fa-circle {
92
+ font-size: 8px;
93
+ }
94
+ }
95
+
96
+ span {
97
+ flex-grow: 1;
98
+
99
+ select {
100
+ background: transparent;
101
+ border: 0px;
102
+ -webkit-appearance: none;
103
+ appearance: none;
104
+ cursor: pointer;
105
+
106
+ &:focus {
107
+ outline-color: $nice-base-color-darker;
108
+ }
109
+
110
+ &:hover,
111
+ &:focus {
112
+ background: $nice-base-color-darker;
113
+ color: white;
114
+ }
115
+
116
+ &:active {
117
+ background: $nice-base-color-lighter;
118
+ color: white;
119
+ }
120
+ }
121
+ }
122
+
123
+
124
+ }
125
+
126
+ .nice-date-week {
127
+ width: 100%;
128
+ border-top: solid 1px $nice-border-color;
129
+ display: flex;
130
+ flex-grow: 1;
131
+
132
+ &:first-child {
133
+ border-top: none;
134
+ }
135
+
136
+ .nice-date-day {
137
+ box-shadow: 0 0 0;
138
+ user-select: none;
139
+ position: relative;
140
+ min-height: 20px;
141
+ width: 14.2857%;
142
+ border-radius: $nice-border-radius;
143
+ border: 0 none;
144
+ border-left: solid 1px $nice-border-color;
145
+ font-size: 12px;
146
+ text-align: center;
147
+ background: white;
148
+ cursor: pointer;
149
+ color: $nice-font-color;
150
+ padding: 0;
151
+ margin: 0;
152
+
153
+ display: flex;
154
+ justify-content: center;
155
+ align-items: center;
156
+
157
+ &:first-child {
158
+ border-left: none;
159
+ }
160
+
161
+ &.today:before {
162
+ content: " ";
163
+ position: absolute;
164
+ top: 0;
165
+ right: 0;
166
+ height: 10px;
167
+ width: 10px;
168
+ border-style: solid;
169
+ border-width: 0 10px 10px 0;
170
+ border-color: transparent $nice-base-color transparent transparent;
171
+ }
172
+
173
+ &.different-month {
174
+ color: #C0C0C0;
175
+ }
176
+
177
+ &.weekend {
178
+ background: #fafafa;
179
+ }
180
+
181
+ &.disabled {
182
+ opacity: 0.3;
183
+ color: $nice-danger-color;
184
+ cursor: not-allowed;
185
+ }
186
+
187
+ &.selected {
188
+ background: $nice-base-color !important;
189
+ color: white;
190
+ }
191
+
192
+ &.between {
193
+ background: lighten($nice-base-color, 35%);
194
+ }
195
+
196
+ &:hover {
197
+ background: lighten($nice-base-color, 30%);
198
+
199
+ &.selected {
200
+ background: darken($nice-base-color, 10%) !important;
201
+ }
202
+ }
203
+ }
204
+
205
+ &.names {
206
+ flex-grow: 0;
207
+ height: 21px;
208
+ flex-shrink: 0;
209
+
210
+ &>span {
211
+ color: darken($nice-base-color, 10%);
212
+ min-height: 20px;
213
+ cursor: default;
214
+
215
+ &:hover {
216
+ background: white;
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+
223
+ .nice-date-time {
224
+ display: flex;
225
+ width: 100%;
226
+ padding: 10px;
227
+ background: #ffffff;
228
+ border: 1px solid #cad4d9;
229
+ align-items: center;
230
+
231
+ border-bottom-left-radius: $nice-border-radius;
232
+ border-bottom-right-radius: $nice-border-radius;
233
+
234
+ .divider {
235
+ line-height: 30px;
236
+ margin: 0 10px;
237
+ }
238
+
239
+ i {
240
+ line-height: 30px;
241
+ margin-right: 10px;
242
+ color: $nice-border-color;
243
+ }
244
+
245
+ svg {
246
+ height: 16px;
247
+ width: 16px;
248
+ margin-right: 10px;
249
+ }
250
+
251
+ .time-picker {
252
+ position: relative;
253
+ // flex-grow: 1;
254
+ height: 30px;
255
+
256
+ select {
257
+ width: 100%;
258
+ -webkit-appearance: none;
259
+ -moz-appearance: none;
260
+ appearance: none;
261
+ border-radius: $nice-border-radius;
262
+ border: 1px solid $nice-border-color;
263
+ padding: 0 10px;
264
+ z-index: 2;
265
+ // color: $nice-font-color;
266
+ background: white;
267
+ cursor: pointer;
268
+ position: relative;
269
+ font-size: 14px;
270
+ height: 30px;
271
+ line-height: auto;
272
+ }
273
+
274
+ // &:after {
275
+ // content: " ";
276
+ // position: absolute;
277
+ // top: 50%;
278
+ // right: 10px;
279
+ // width: 0;
280
+ // height: 0;
281
+ // border-style: solid;
282
+ // border-width: 6px 4px 0 4px;
283
+ // margin-top: -3px;
284
+ // border-color: #404040 transparent transparent transparent;
285
+ // }
286
+
287
+ // &.time-picker-hour{
288
+ // select {
289
+ // padding: 5px 10px 5px 15px;
290
+ // }
291
+ // }
292
+ }
293
+ }
294
+
295
+ .disabled-shield {
296
+ position: absolute;
297
+ top: 0;
298
+ left: 0;
299
+ right: 0;
300
+ bottom: 0;
301
+ z-index: 3;
302
+ }
303
303
  }