nice-elements 1.13.3 → 1.13.5

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 (68) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/bower.json +1 -1
  4. package/dist/nice.js +286 -134
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +108 -74
  7. package/dist/style.css.map +1 -1
  8. package/dist/style.min.css +2 -2
  9. package/package.json +1 -1
  10. package/src/components/nice-alert/nice-alert.js +3 -2
  11. package/src/components/nice-calendar/nice-calendar.html +105 -12
  12. package/src/components/nice-calendar/nice-calendar.js +118 -47
  13. package/src/components/nice-calendar/nice-calendar.scss +137 -95
  14. package/src/components/nice-checkbox/nice-checkbox.html +1 -1
  15. package/src/components/nice-choice/nice-choice.html +1 -1
  16. package/src/components/nice-choice/nice-choice.js +1 -0
  17. package/src/components/nice-comment/nice-comment.html +1 -1
  18. package/src/components/nice-comment/nice-comment.js +1 -0
  19. package/src/components/nice-date/nice-date.html +18 -9
  20. package/src/components/nice-date/nice-date.js +67 -36
  21. package/src/components/nice-date/nice-date.scss +21 -27
  22. package/src/components/nice-date-input/nice-date-input.html +1 -1
  23. package/src/components/nice-date-input/nice-date-input.js +1 -0
  24. package/src/components/nice-date-range/nice-date-range.html +1 -1
  25. package/src/components/nice-date-range/nice-date-range.js +1 -0
  26. package/src/components/nice-datetime-picker/nice-datetime-picker.html +1 -1
  27. package/src/components/nice-datetime-picker/nice-datetime-picker.js +1 -0
  28. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +1 -1
  29. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +1 -0
  30. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +1 -1
  31. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +1 -0
  32. package/src/components/nice-dropdown/nice-dropdown.html +1 -1
  33. package/src/components/nice-dropdown/nice-dropdown.js +1 -0
  34. package/src/components/nice-dropdown-date/nice-dropdown-date.html +1 -1
  35. package/src/components/nice-dropdown-date/nice-dropdown-date.js +1 -0
  36. package/src/components/nice-dropdown-old/nice-dropdown-old.html +1 -1
  37. package/src/components/nice-dropdown-old/nice-dropdown-old.js +1 -0
  38. package/src/components/nice-dtp/nice-dtp.js +1 -0
  39. package/src/components/nice-input/nice-input.html +44 -4
  40. package/src/components/nice-input/nice-input.js +6 -2
  41. package/src/components/nice-label/nice-label.html +1 -1
  42. package/src/components/nice-label/nice-label.js +1 -0
  43. package/src/components/nice-number/nice-number.html +1 -1
  44. package/src/components/nice-number/nice-number.js +1 -0
  45. package/src/components/nice-options/nice-options.html +1 -1
  46. package/src/components/nice-options/nice-options.js +1 -0
  47. package/src/components/nice-percent/nice-percent.html +1 -1
  48. package/src/components/nice-percent/nice-percent.js +1 -0
  49. package/src/components/nice-progress-bar/nice-progress-bar.html +1 -1
  50. package/src/components/nice-progress-bar/nice-progress-bar.js +1 -0
  51. package/src/components/nice-quantity/nice-quantity.html +1 -1
  52. package/src/components/nice-quantity/nice-quantity.js +1 -0
  53. package/src/components/nice-search/nice-search.html +1 -1
  54. package/src/components/nice-search/nice-search.js +1 -0
  55. package/src/components/nice-search2/nice-search2.html +1 -1
  56. package/src/components/nice-search2/nice-search2.js +1 -0
  57. package/src/components/nice-slot/nice-slot.html +1 -1
  58. package/src/components/nice-slot/nice-slot.js +1 -0
  59. package/src/components/nice-time-picker/nice-time-picker.html +1 -1
  60. package/src/components/nice-time-picker/nice-time-picker.js +1 -0
  61. package/src/components/nice-toggle/nice-toggle.html +1 -1
  62. package/src/components/nice-upload/nice-upload.html +1 -1
  63. package/src/components/nice-upload/nice-upload.js +1 -0
  64. package/src/components/nice-wrapper/nice-wrapper.js +1 -0
  65. package/src/components/nice-yesno/nice-yesno.html +1 -1
  66. package/src/components/nice-yesno/nice-yesno.js +1 -0
  67. package/src/services/nice-service.js +1 -1
  68. package/src/styles/_nice-common.scss +11 -1
package/dist/style.css CHANGED
@@ -210,6 +210,7 @@ label.nice {
210
210
  }
211
211
 
212
212
  .nice-component .nice-title .nice-title-description {
213
+ text-align: right;
213
214
  font-size: 0.8em;
214
215
  font-style: italic;
215
216
  opacity: 0.8;
@@ -237,6 +238,10 @@ label.nice {
237
238
  .nice-component .nice-title .nice-title-text {
238
239
  text-align: left;
239
240
  }
241
+ .nice-component .nice-title .nice-title-description {
242
+ margin-top: -3px;
243
+ text-align: left;
244
+ }
240
245
  }
241
246
 
242
247
  .nice-component .input-group .form-control,
@@ -299,6 +304,10 @@ label.nice {
299
304
  margin-bottom: 3px;
300
305
  }
301
306
 
307
+ .nice-component-inline .nice-title .nice-title-description {
308
+ text-align: left;
309
+ }
310
+
302
311
  .nice-component-inline .nice-field {
303
312
  width: 100%;
304
313
  }
@@ -8552,26 +8561,22 @@ h, .nice-highlight {
8552
8561
  cursor: pointer;
8553
8562
  }
8554
8563
 
8555
- .nice-date .nice-date-date .nice-date-week {
8564
+ .nice-date .nice-date-date .nice-date-grid {
8556
8565
  width: 100%;
8557
- border-top: solid 1px var(--nice-border-color);
8558
- display: flex;
8566
+ display: grid;
8567
+ grid-template-columns: repeat(7, 1fr);
8559
8568
  flex-grow: 1;
8569
+ gap: 1px;
8570
+ background: var(--nice-border-color);
8560
8571
  }
8561
8572
 
8562
- .nice-date .nice-date-date .nice-date-week:first-child {
8563
- border-top: none;
8564
- }
8565
-
8566
- .nice-date .nice-date-date .nice-date-week .nice-date-day {
8573
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day {
8574
+ width: 100%;
8567
8575
  box-shadow: 0 0 0;
8568
8576
  user-select: none;
8569
8577
  position: relative;
8570
- min-height: 20px;
8571
- width: 14.2857%;
8572
8578
  border-radius: var(--nice-border-radius);
8573
8579
  border: 0 none;
8574
- border-left: solid 1px var(--nice-border-color);
8575
8580
  font-size: 12px;
8576
8581
  text-align: center;
8577
8582
  background: var(--nice-card-bg);
@@ -8579,16 +8584,13 @@ h, .nice-highlight {
8579
8584
  color: var(--nice-font-color);
8580
8585
  padding: 0;
8581
8586
  margin: 0;
8587
+ border-radius: 0;
8582
8588
  display: flex;
8583
8589
  justify-content: center;
8584
8590
  align-items: center;
8585
8591
  }
8586
8592
 
8587
- .nice-date .nice-date-date .nice-date-week .nice-date-day:first-child {
8588
- border-left: none;
8589
- }
8590
-
8591
- .nice-date .nice-date-date .nice-date-week .nice-date-day.today:before {
8593
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day.today:before {
8592
8594
  content: " ";
8593
8595
  position: absolute;
8594
8596
  top: 0;
@@ -8600,55 +8602,54 @@ h, .nice-highlight {
8600
8602
  border-color: transparent var(--nice-primary-color) transparent transparent;
8601
8603
  }
8602
8604
 
8603
- .nice-date .nice-date-date .nice-date-week .nice-date-day.different-month {
8605
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day.different-month {
8604
8606
  color: #C0C0C0;
8605
8607
  }
8606
8608
 
8607
- .nice-date .nice-date-date .nice-date-week .nice-date-day.weekend {
8609
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day.weekend {
8608
8610
  background: #fafafa;
8609
8611
  }
8610
8612
 
8611
- .nice-date .nice-date-date .nice-date-week .nice-date-day.disabled {
8612
- opacity: 0.3;
8613
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day.disabled {
8613
8614
  color: var(--nice-danger-color);
8615
+ background: #fff7f7;
8614
8616
  cursor: not-allowed;
8615
8617
  }
8616
8618
 
8617
- .nice-date .nice-date-date .nice-date-week .nice-date-day.selected {
8619
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day.disabled:hover {
8620
+ background: var(--nice-danger-color-plain) !important;
8621
+ border-radius: 0 !important;
8622
+ color: var(--nice-danger-color) !important;
8623
+ }
8624
+
8625
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day.selected {
8618
8626
  background: var(--nice-primary-color) !important;
8619
8627
  color: var(--nice-card-bg);
8628
+ border-radius: var(--nice-border-radius);
8620
8629
  }
8621
8630
 
8622
- .nice-date .nice-date-date .nice-date-week .nice-date-day.between {
8631
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day.between {
8623
8632
  background: var(--nice-primary-color-lighter);
8624
8633
  }
8625
8634
 
8626
- .nice-date .nice-date-date .nice-date-week .nice-date-day:hover {
8635
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day:hover {
8627
8636
  background: var(--nice-primary-color-lighter);
8628
8637
  color: white;
8629
8638
  }
8630
8639
 
8631
- .nice-date .nice-date-date .nice-date-week .nice-date-day:hover.selected {
8640
+ .nice-date .nice-date-date .nice-date-grid .nice-date-day:hover.selected {
8632
8641
  background: var(--nice-primary-color-darker) !important;
8633
8642
  }
8634
8643
 
8635
- .nice-date .nice-date-date .nice-date-week.names {
8644
+ .nice-date .nice-date-date .nice-date-grid.nice-date-grid-names {
8645
+ height: 20px;
8636
8646
  flex-grow: 0;
8637
- height: 21px;
8638
8647
  flex-shrink: 0;
8639
- }
8640
-
8641
- .nice-date .nice-date-date .nice-date-week.names > span {
8642
8648
  color: var(--nice-primary-color-darker);
8643
- min-height: 20px;
8649
+ border-bottom: 1px solid var(--nice-border-color);
8644
8650
  cursor: default;
8645
8651
  }
8646
8652
 
8647
- .nice-date .nice-date-date .nice-date-week.names > span:hover {
8648
- background: var(--nice-card-bg);
8649
- color: var(--nice-primary-color-darker);
8650
- }
8651
-
8652
8653
  .nice-date .nice-date-time {
8653
8654
  display: flex;
8654
8655
  width: 100%;
@@ -8882,6 +8883,22 @@ h, .nice-highlight {
8882
8883
  display: block;
8883
8884
  }
8884
8885
 
8886
+ .nice-calendar .nice-calendar-days {
8887
+ display: grid;
8888
+ grid-template-columns: repeat(7, 1fr);
8889
+ height: 180px;
8890
+ gap: 1px;
8891
+ background: var(--nice-border-color);
8892
+ }
8893
+
8894
+ .nice-calendar .nice-calendar-days.nice-calendar-days-header {
8895
+ color: #006cfd;
8896
+ line-height: 20px;
8897
+ height: auto;
8898
+ cursor: default;
8899
+ border-bottom: 1px solid var(--nice-border-color);
8900
+ }
8901
+
8885
8902
  .nice-calendar .nice-selected-dates {
8886
8903
  padding: 0 10px 5px 10px;
8887
8904
  display: flex;
@@ -8979,17 +8996,17 @@ h, .nice-highlight {
8979
8996
  border: solid 1px #cbd4d9;
8980
8997
  }
8981
8998
 
8982
- .nice-calendar .nice-calendar-wrapper .header {
8983
- float: left;
8999
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header {
8984
9000
  width: 100%;
8985
9001
  background: #3189ff;
8986
9002
  height: 40px;
8987
9003
  line-height: 40px;
8988
9004
  color: white;
8989
9005
  display: flex;
9006
+ flex-direction: row;
8990
9007
  }
8991
9008
 
8992
- .nice-calendar .nice-calendar-wrapper .header button {
9009
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header button {
8993
9010
  width: 40px;
8994
9011
  font-size: 1.2em;
8995
9012
  font-weight: bold;
@@ -9001,51 +9018,53 @@ h, .nice-highlight {
9001
9018
  background: transparent;
9002
9019
  }
9003
9020
 
9004
- .nice-calendar .nice-calendar-wrapper .header button.fa-angle-left {
9021
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header button.fa-angle-left {
9005
9022
  text-align: left;
9006
9023
  }
9007
9024
 
9008
- .nice-calendar .nice-calendar-wrapper .header button.fa-angle-right {
9025
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header button.fa-angle-right {
9009
9026
  text-align: right;
9010
9027
  margin-left: -40px;
9011
9028
  }
9012
9029
 
9013
- .nice-calendar .nice-calendar-wrapper .header span {
9030
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header .nice-calendar-header-selects {
9031
+ margin-left: 10px;
9014
9032
  flex-grow: 1;
9015
- text-transform: uppercase;
9016
- text-align: center;
9017
- color: inherit;
9033
+ display: flex;
9034
+ align-items: center;
9018
9035
  }
9019
9036
 
9020
- .nice-calendar .nice-calendar-wrapper .week {
9021
- display: flex;
9022
- width: 100%;
9023
- border-top: solid 1px #cbd4d9;
9037
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header .nice-calendar-header-selects span {
9038
+ margin-right: 3px;
9024
9039
  }
9025
9040
 
9026
- .nice-calendar .nice-calendar-wrapper .week:first-child {
9027
- border-top: none;
9041
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header .nice-calendar-header-selects .month-select,
9042
+ .nice-calendar .nice-calendar-wrapper .nice-calendar-header .nice-calendar-header-selects .year-select {
9043
+ background: transparent;
9044
+ border: 0 none;
9045
+ color: white;
9046
+ padding: 0;
9047
+ margin: 0;
9048
+ -webkit-appearance: none;
9049
+ -moz-appearance: none;
9050
+ appearance: none;
9051
+ border-radius: 0;
9052
+ cursor: pointer;
9028
9053
  }
9029
9054
 
9030
- .nice-calendar .nice-calendar-wrapper .week .day {
9055
+ .nice-calendar .nice-calendar-wrapper .day {
9031
9056
  position: relative;
9032
- width: 14.28571%;
9033
- height: 25px;
9034
- line-height: 25px;
9057
+ width: 100%;
9058
+ height: 100%;
9035
9059
  box-shadow: 0 0 0;
9036
9060
  border: 0 none;
9037
- border-left: solid 1px #cbd4d9;
9038
9061
  font-size: 12px;
9039
9062
  text-align: center;
9040
9063
  background: white;
9041
9064
  color: #404040;
9042
9065
  }
9043
9066
 
9044
- .nice-calendar .nice-calendar-wrapper .week .day:first-child {
9045
- border-left: none;
9046
- }
9047
-
9048
- .nice-calendar .nice-calendar-wrapper .week .day.today:before {
9067
+ .nice-calendar .nice-calendar-wrapper .day.today:before {
9049
9068
  content: " ";
9050
9069
  position: absolute;
9051
9070
  top: 0;
@@ -9057,55 +9076,61 @@ h, .nice-highlight {
9057
9076
  border-color: transparent #3189ff transparent transparent;
9058
9077
  }
9059
9078
 
9060
- .nice-calendar .nice-calendar-wrapper .week .day.different-month {
9079
+ .nice-calendar .nice-calendar-wrapper .day.different-month {
9061
9080
  color: #C0C0C0;
9062
9081
  }
9063
9082
 
9064
- .nice-calendar .nice-calendar-wrapper .week .day.weekend {
9083
+ .nice-calendar .nice-calendar-wrapper .day.weekend {
9065
9084
  background: #fafafa;
9066
9085
  }
9067
9086
 
9068
- .nice-calendar .nice-calendar-wrapper .week .day.disabled {
9069
- opacity: 0.3;
9087
+ .nice-calendar .nice-calendar-wrapper .day.disabled {
9070
9088
  color: #f22e28;
9089
+ background: #fff7f7;
9071
9090
  cursor: not-allowed;
9072
9091
  }
9073
9092
 
9074
- .nice-calendar .nice-calendar-wrapper .week .day.selected {
9093
+ .nice-calendar .nice-calendar-wrapper .day.disabled:hover {
9094
+ background: var(--nice-danger-color-plain) !important;
9095
+ border-radius: 0 !important;
9096
+ color: var(--nice-danger-color) !important;
9097
+ }
9098
+
9099
+ .nice-calendar .nice-calendar-wrapper .day.selected {
9075
9100
  background: #cae1ff;
9076
9101
  }
9077
9102
 
9078
- .nice-calendar .nice-calendar-wrapper .week .day.start-selected {
9103
+ .nice-calendar .nice-calendar-wrapper .day.start-selected {
9079
9104
  background: #3189ff;
9080
9105
  color: white;
9081
9106
  border-bottom-left-radius: 10px;
9082
9107
  border-top-left-radius: 10px;
9083
9108
  }
9084
9109
 
9085
- .nice-calendar .nice-calendar-wrapper .week .day.end-selected {
9110
+ .nice-calendar .nice-calendar-wrapper .day.end-selected {
9086
9111
  background: #3189ff;
9087
9112
  color: white;
9088
9113
  border-bottom-right-radius: 10px;
9089
9114
  border-top-right-radius: 10px;
9090
9115
  }
9091
9116
 
9092
- .nice-calendar .nice-calendar-wrapper .week .day.selecting-start:hover {
9117
+ .nice-calendar .nice-calendar-wrapper .day.selecting-start:hover {
9093
9118
  background: #4092ff;
9094
9119
  color: white;
9095
9120
  border-bottom-left-radius: 10px;
9096
9121
  border-top-left-radius: 10px;
9097
9122
  }
9098
9123
 
9099
- .nice-calendar .nice-calendar-wrapper .week .day.selecting-end:hover {
9124
+ .nice-calendar .nice-calendar-wrapper .day.selecting-end:hover {
9100
9125
  background: #006cfd;
9101
9126
  color: white;
9102
9127
  border-bottom-right-radius: 10px;
9103
9128
  border-top-right-radius: 10px;
9104
9129
  }
9105
9130
 
9106
- .nice-calendar .nice-calendar-wrapper .week .day .popup {
9107
- position: relative;
9108
- bottom: 130%;
9131
+ .nice-calendar .nice-calendar-wrapper .day .popup {
9132
+ position: absolute;
9133
+ bottom: 20px;
9109
9134
  left: 50%;
9110
9135
  background: var(--nice-border-color);
9111
9136
  color: var(--nice-font-color);
@@ -9122,10 +9147,20 @@ h, .nice-highlight {
9122
9147
  border-radius: 10px;
9123
9148
  }
9124
9149
 
9125
- .nice-calendar .nice-calendar-wrapper .week .day:hover .popup {
9150
+ .nice-calendar .nice-calendar-wrapper .day:hover .popup {
9126
9151
  display: block;
9127
9152
  }
9128
9153
 
9154
+ .nice-calendar .nice-calendar-wrapper .week {
9155
+ display: flex;
9156
+ width: 100%;
9157
+ border-top: solid 1px #cbd4d9;
9158
+ }
9159
+
9160
+ .nice-calendar .nice-calendar-wrapper .week:first-child {
9161
+ border-top: none;
9162
+ }
9163
+
9129
9164
  .nice-calendar .nice-calendar-wrapper .week.names > span {
9130
9165
  color: #006cfd;
9131
9166
  line-height: 20px;
@@ -9147,7 +9182,6 @@ h, .nice-highlight {
9147
9182
  }
9148
9183
 
9149
9184
  .nice-calendar .disabled {
9150
- opacity: 0.5;
9151
9185
  cursor: not-allowed;
9152
9186
  user-select: none;
9153
9187
  }