nice-elements 1.10.3 → 1.10.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 (69) 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 +198 -143
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +17 -2
  7. package/dist/style.css.map +1 -1
  8. package/dist/style.min.css +2 -2
  9. package/eslint.config.mjs +28 -0
  10. package/package.json +4 -1
  11. package/src/components/nice-button/nice-button.js +0 -1
  12. package/src/components/nice-calendar/nice-calendar.html +1 -1
  13. package/src/components/nice-calendar/nice-calendar.js +3 -1
  14. package/src/components/nice-checkbox/nice-checkbox.html +1 -1
  15. package/src/components/nice-checkbox/nice-checkbox.js +1 -0
  16. package/src/components/nice-choice/nice-choice.html +1 -1
  17. package/src/components/nice-choice/nice-choice.js +1 -0
  18. package/src/components/nice-comment/nice-comment.html +2 -2
  19. package/src/components/nice-comment/nice-comment.js +3 -1
  20. package/src/components/nice-date/nice-date.html +3 -2
  21. package/src/components/nice-date/nice-date.js +3 -1
  22. package/src/components/nice-date-input/nice-date-input.html +1 -1
  23. package/src/components/nice-date-input/nice-date-input.js +3 -1
  24. package/src/components/nice-date-range/nice-date-range.html +1 -1
  25. package/src/components/nice-date-range/nice-date-range.js +9 -7
  26. package/src/components/nice-datetime-picker/nice-datetime-picker.html +1 -1
  27. package/src/components/nice-datetime-picker/nice-datetime-picker.js +3 -1
  28. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +1 -1
  29. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +3 -1
  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 +3 -1
  32. package/src/components/nice-dropdown/nice-dropdown.html +3 -2
  33. package/src/components/nice-dropdown/nice-dropdown.js +13 -6
  34. package/src/components/nice-dropdown/nice-dropdown.scss +13 -1
  35. package/src/components/nice-dropdown-date/nice-dropdown-date.html +1 -1
  36. package/src/components/nice-dropdown-date/nice-dropdown-date.js +10 -8
  37. package/src/components/nice-dropdown-old/nice-dropdown-old.html +1 -1
  38. package/src/components/nice-dropdown-old/nice-dropdown-old.js +1 -0
  39. package/src/components/nice-dtp/nice-dtp.js +3 -1
  40. package/src/components/nice-input/nice-input.html +1 -1
  41. package/src/components/nice-input/nice-input.js +1 -0
  42. package/src/components/nice-label/nice-label.html +1 -1
  43. package/src/components/nice-label/nice-label.js +3 -1
  44. package/src/components/nice-number/nice-number.html +1 -1
  45. package/src/components/nice-number/nice-number.js +1 -0
  46. package/src/components/nice-percent/nice-percent.html +1 -1
  47. package/src/components/nice-percent/nice-percent.js +1 -0
  48. package/src/components/nice-progress-bar/nice-progress-bar.html +1 -1
  49. package/src/components/nice-progress-bar/nice-progress-bar.js +1 -0
  50. package/src/components/nice-quantity/nice-quantity.html +1 -1
  51. package/src/components/nice-quantity/nice-quantity.js +2 -0
  52. package/src/components/nice-search/nice-search.html +1 -1
  53. package/src/components/nice-search/nice-search.js +1 -0
  54. package/src/components/nice-search2/nice-search2.html +1 -1
  55. package/src/components/nice-search2/nice-search2.js +1 -0
  56. package/src/components/nice-slot/nice-slot.html +1 -1
  57. package/src/components/nice-slot/nice-slot.js +3 -1
  58. package/src/components/nice-time-picker/nice-time-picker.html +1 -1
  59. package/src/components/nice-time-picker/nice-time-picker.js +3 -1
  60. package/src/components/nice-toggle/nice-toggle.html +2 -2
  61. package/src/components/nice-toggle/nice-toggle.js +4 -2
  62. package/src/components/nice-toggle/nice-toggle.scss +4 -0
  63. package/src/components/nice-upload/nice-upload.html +2 -2
  64. package/src/components/nice-upload/nice-upload.js +3 -1
  65. package/src/components/nice-wrapper/nice-wrapper.html +1 -1
  66. package/src/components/nice-wrapper/nice-wrapper.js +1 -0
  67. package/src/components/nice-yesno/nice-yesno.html +1 -1
  68. package/src/components/nice-yesno/nice-yesno.js +23 -21
  69. package/src/services/nice-service.js +5 -2
package/dist/style.css CHANGED
@@ -82,7 +82,7 @@ label.nice {
82
82
  }
83
83
 
84
84
  .nice-focus, .nice-component .input-group:focus-within,
85
- .nice-component .form-group:focus-within, .btn.focus, .btn.active.focus, .nice-table.nice-table-settings .btn.focus.nice-table-row:hover, .btn.active:focus, .nice-table.nice-table-settings .btn.nice-table-row:focus:hover, .btn.focus:active, .btn:active:focus, .btn:focus, .nice-dropdown .btn-dropdown:active, .nice-search .nice-dropdown-empty .btn-dropdown:active, .nice-dropdown .btn-dropdown:focus, .nice-search .nice-dropdown-empty .btn-dropdown:focus, .nice-dropdown-old .btn-dropdown:active, .nice-dropdown-old .btn-dropdown:focus, .nice-yesno .yesno-wrapper:focus-within, .nice-choice li .choice-checkbox:focus, .nice-dropdown-date select:active, .nice-dropdown-date select:focus, .nice-upload .nice-field:focus-within .input-area, .nice-toggle:focus-within .nice-toggle-field {
85
+ .nice-component .form-group:focus-within, .btn.focus, .btn.active.focus, .nice-table.nice-table-settings .btn.focus.nice-table-row:hover, .btn.active:focus, .nice-table.nice-table-settings .btn.nice-table-row:focus:hover, .btn.focus:active, .btn:active:focus, .btn:focus, .nice-dropdown .btn-dropdown:active, .nice-search .nice-dropdown-empty .btn-dropdown:active, .nice-dropdown .btn-dropdown:focus, .nice-search .nice-dropdown-empty .btn-dropdown:focus, .nice-dropdown .btn-dropdown:focus-within, .nice-search .nice-dropdown-empty .btn-dropdown:focus-within, .nice-dropdown-old .btn-dropdown:active, .nice-dropdown-old .btn-dropdown:focus, .nice-yesno .yesno-wrapper:focus-within, .nice-choice li .choice-checkbox:focus, .nice-dropdown-date select:active, .nice-dropdown-date select:focus, .nice-upload .nice-field:focus-within .input-area, .nice-toggle:focus-within .nice-toggle-field {
86
86
  outline: 2px solid;
87
87
  outline-color: var(--nice-primary-color);
88
88
  outline-offset: 2px;
@@ -6617,6 +6617,17 @@ p.nice {
6617
6617
  position: fixed !important;
6618
6618
  }
6619
6619
 
6620
+ .nice-dropdown .hidden-input, .nice-search .nice-dropdown-empty .hidden-input {
6621
+ height: 0;
6622
+ width: 100%;
6623
+ position: absolute;
6624
+ bottom: 0;
6625
+ left: 0;
6626
+ padding: 0;
6627
+ background: transparent;
6628
+ opacity: 0;
6629
+ }
6630
+
6620
6631
  .nice-dropdown .open .btn-dropdown, .nice-search .nice-dropdown-empty .open .btn-dropdown {
6621
6632
  background: white !important;
6622
6633
  color: #404040 !important;
@@ -6840,7 +6851,7 @@ p.nice {
6840
6851
  color: #474F52;
6841
6852
  }
6842
6853
 
6843
- .nice-dropdown .btn-dropdown:active, .nice-search .nice-dropdown-empty .btn-dropdown:active, .nice-dropdown .btn-dropdown:focus, .nice-search .nice-dropdown-empty .btn-dropdown:focus {
6854
+ .nice-dropdown .btn-dropdown:active, .nice-search .nice-dropdown-empty .btn-dropdown:active, .nice-dropdown .btn-dropdown:focus, .nice-search .nice-dropdown-empty .btn-dropdown:focus, .nice-dropdown .btn-dropdown:focus-within, .nice-search .nice-dropdown-empty .btn-dropdown:focus-within {
6844
6855
  background: white !important;
6845
6856
  color: #474F52 !important;
6846
6857
  border-color: var(--nice-border-color);
@@ -9973,6 +9984,10 @@ p.nice {
9973
9984
  transition: background-color 0.3s ease-in-out;
9974
9985
  }
9975
9986
 
9987
+ .nice-toggle .nice-toggle-field:disabled {
9988
+ cursor: not-allowed;
9989
+ }
9990
+
9976
9991
  .nice-toggle .nice-toggle-field:hover .nice-toggle-field-handle {
9977
9992
  background: var(--nice-border-color-darker);
9978
9993
  }