nice-elements 1.15.0 → 1.16.0

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 (57) hide show
  1. package/.claude/launch.json +11 -0
  2. package/CHANGELOG.md +24 -0
  3. package/CLAUDE.md +1 -0
  4. package/README.md +1 -1
  5. package/bower.json +1 -1
  6. package/dist/nice.js +688 -495
  7. package/dist/nice.min.js +1 -1
  8. package/dist/style.css +140 -114
  9. package/dist/style.css.map +1 -1
  10. package/dist/style.min.css +2 -2
  11. package/package.json +5 -6
  12. package/src/components/nice-calendar/nice-calendar.html +7 -4
  13. package/src/components/nice-calendar/nice-calendar.scss +0 -9
  14. package/src/components/nice-checkbox/nice-checkbox.html +10 -4
  15. package/src/components/nice-checkbox/nice-checkbox.js +1 -0
  16. package/src/components/nice-checkbox/nice-checkbox.scss +7 -0
  17. package/src/components/nice-choice/nice-choice.js +11 -0
  18. package/src/components/nice-date/nice-date-picker.html +60 -0
  19. package/src/components/nice-date/nice-date.html +29 -77
  20. package/src/components/nice-date/nice-date.js +54 -35
  21. package/src/components/nice-date/nice-date.scss +7 -15
  22. package/src/components/nice-date-input/nice-date-input.js +1 -1
  23. package/src/components/nice-date-range/nice-date-range.html +1 -1
  24. package/src/components/nice-datetime-picker/nice-datetime-picker.html +4 -4
  25. package/src/components/nice-datetime-picker/nice-datetime-picker.scss +9 -12
  26. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +1 -3
  27. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +32 -30
  28. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +1 -33
  29. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +7 -12
  30. package/src/components/nice-dropdown/nice-dropdown.html +42 -40
  31. package/src/components/nice-dropdown/nice-dropdown.js +64 -57
  32. package/src/components/nice-dropdown/nice-dropdown.scss +25 -15
  33. package/src/components/nice-dropdown-old/nice-dropdown-old.html +1 -1
  34. package/src/components/nice-dropdown-old/nice-dropdown-old.scss +8 -2
  35. package/src/components/nice-dtp/nice-dtp.html +7 -7
  36. package/src/components/nice-options/nice-options.scss +4 -0
  37. package/src/components/nice-percent/nice-percent.js +10 -3
  38. package/src/components/nice-popup/nice-popup.html +4 -4
  39. package/src/components/nice-popup/nice-popup.js +61 -75
  40. package/src/components/nice-popup/nice-popup.scss +10 -31
  41. package/src/components/nice-search/nice-search.html +0 -3
  42. package/src/components/nice-search/nice-search.js +8 -14
  43. package/src/components/nice-search2/nice-search2.html +22 -18
  44. package/src/components/nice-search2/nice-search2.js +2 -56
  45. package/src/components/nice-search2/nice-search2.scss +3 -2
  46. package/src/components/nice-svgs/nice-svgs.html +8 -0
  47. package/src/components/nice-time-picker/nice-time-picker.html +1 -3
  48. package/src/components/nice-time-picker/nice-time-picker.scss +0 -8
  49. package/src/components/nice-toggle/nice-toggle.html +3 -0
  50. package/src/components/nice-upload/nice-upload.html +1 -1
  51. package/src/components/nice-yesno/nice-yesno.html +3 -0
  52. package/src/directives/nice-tooltip/_nice-tooltip.scss +7 -28
  53. package/src/directives/nice-tooltip/nice-tooltip.js +16 -29
  54. package/src/services/nice-service.js +236 -1
  55. package/src/styles/_nice-anchored.scss +75 -0
  56. package/src/styles/_nice-common.scss +17 -0
  57. package/src/styles/_nice.scss +1 -0
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": "0.0.1",
3
+ "configurations": [
4
+ {
5
+ "name": "demo",
6
+ "runtimeExecutable": "npm",
7
+ "runtimeArgs": ["run", "serve"],
8
+ "port": 3031
9
+ }
10
+ ]
11
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.16.0 (27.11.2026)
4
+
5
+ - removed font awesome, all icons are now nice icon (added icon-dot, bolder icon-plus),
6
+ - nice popup, nice dropdown, nice search2, nice date, nice datetimerange picker 2 and nice tooltip are positioned with native popover and css anchor positioning, popper is only a fallback,
7
+ - added is-open, trigger and same-width to nice popup,
8
+ - nice dropdown, nice search2, nice date and nice datetimerange picker 2 now use nice popup,
9
+ - popups close on escape, flip to the other side when there is no space and slide under the header when their input scrolls out of view,
10
+ - fixed page not scrolling while a popup is open (nice date, nice datetime picker, nice datetimerange picker, nice datetimerange picker 2, nice time picker), they now close on click outside,
11
+ - added selected-function to nice dropdown,
12
+ - fixed nice dropdown showing "," and losing selected keys that are not in the list,
13
+ - fixed nice options text overflowing its buttons,
14
+ - updated build dependencies (grunt-contrib-cssmin, grunt-sass, sass),
15
+ - updated example documentation
16
+
17
+ ## v1.15.1 (20.11.2026)
18
+
19
+ - added manual input support to nice date,
20
+ - fixed required prop on all form components (nice search, nice dropdown, nice upload, nice percent, nice date, nice date input, nice yesno, nice toggle, nice calendar, nice date range, nice datetime picker),
21
+ - added required to nice search2, nice choice and nice checkbox,
22
+ - fixed browser required message not showing on nice checkbox,
23
+ - fixed nice search losing the label of a preset model,
24
+ - fixed nice date input showing "Invalid date" for a null model,
25
+ - updated example documentation
26
+
3
27
  ## v1.15.0 (18.11.2026)
4
28
 
5
29
  - created nice badges list component,
package/CLAUDE.md CHANGED
@@ -72,6 +72,7 @@ Adding a component means touching all of these:
72
72
  - **Translations**: angular-gettext with `translate-context="Nice"` on user-facing strings in templates.
73
73
  - **Dialogs**: ngDialog is a peer dependency. Library dialogs use `<nice-dialog>` and are opened with `className: 'nice-ngdialog', showClose: false`.
74
74
  - Globals available everywhere: `angular`, `moment`, `_` (lodash 3), `Decimal` (decimal.js), `Popper`.
75
+ - **Floating content** (popups, dropdowns): use `<nice-popup>` (`trigger="manual" is-open="isOpen"` when the component controls it), never Popper directly. nice-popup is built on `NiceService.anchor(target, content, options)` (native popover + CSS anchor positioning, `src/styles/_nice-anchored.scss`, Popper fallback); call that directly only where wrapping markup isn't possible, like the `nice-tooltip` attribute.
75
76
 
76
77
  ## Releases
77
78
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Nice elements](https://github.com/Klemen1337/angularjs-nice-elements/raw/master/demo/assets/logo.png)
2
2
 
3
- # Nice elements v1.15.0
3
+ # Nice elements v1.16.0
4
4
 
5
5
  Nice elements is an AngularJS v1.5.8 module that contains nice form elements like inputs, choice fields, search, toggle, dropdown, etc.
6
6
 
package/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "authors": [
5
5
  "Klemen Kastelic <klemen@olaii.com>"
6
6
  ],