@ember-joinery/power-calendar 0.0.0-stage → 1.1.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 (67) hide show
  1. package/CHANGELOG.md +186 -0
  2. package/LICENSE.md +9 -0
  3. package/NOTICE +532 -0
  4. package/README.md +76 -2
  5. package/addon-main.cjs +4 -0
  6. package/declarations/-private/calendar.d.ts +32 -0
  7. package/declarations/-private/calendar.d.ts.map +1 -0
  8. package/declarations/-private/days.d.ts +102 -0
  9. package/declarations/-private/days.d.ts.map +1 -0
  10. package/declarations/-private/nav.d.ts +43 -0
  11. package/declarations/-private/nav.d.ts.map +1 -0
  12. package/declarations/-private/picker-chart.d.ts +97 -0
  13. package/declarations/-private/picker-chart.d.ts.map +1 -0
  14. package/declarations/-private/picker.d.ts +157 -0
  15. package/declarations/-private/picker.d.ts.map +1 -0
  16. package/declarations/-private/state.d.ts +57 -0
  17. package/declarations/-private/state.d.ts.map +1 -0
  18. package/declarations/components/date-picker.d.ts +47 -0
  19. package/declarations/components/date-picker.d.ts.map +1 -0
  20. package/declarations/components/date-range-picker.d.ts +55 -0
  21. package/declarations/components/date-range-picker.d.ts.map +1 -0
  22. package/declarations/components/power-calendar-multiple.d.ts +36 -0
  23. package/declarations/components/power-calendar-multiple.d.ts.map +1 -0
  24. package/declarations/components/power-calendar-range.d.ts +48 -0
  25. package/declarations/components/power-calendar-range.d.ts.map +1 -0
  26. package/declarations/components/power-calendar.d.ts +38 -0
  27. package/declarations/components/power-calendar.d.ts.map +1 -0
  28. package/declarations/date-library.d.ts +8 -0
  29. package/declarations/date-library.d.ts.map +1 -0
  30. package/declarations/dates.d.ts +41 -0
  31. package/declarations/dates.d.ts.map +1 -0
  32. package/declarations/index.d.ts +14 -0
  33. package/declarations/index.d.ts.map +1 -0
  34. package/declarations/messages.d.ts +44 -0
  35. package/declarations/messages.d.ts.map +1 -0
  36. package/declarations/test-support/date-picker.d.ts +59 -0
  37. package/declarations/test-support/date-picker.d.ts.map +1 -0
  38. package/declarations/test-support/index.d.ts +3 -0
  39. package/declarations/test-support/index.d.ts.map +1 -0
  40. package/declarations/test-support/power-calendar.d.ts +76 -0
  41. package/declarations/test-support/power-calendar.d.ts.map +1 -0
  42. package/declarations/test-support.d.ts +2 -0
  43. package/dist/components/date-picker.js +93 -0
  44. package/dist/components/date-picker.js.map +1 -0
  45. package/dist/components/date-range-picker.js +154 -0
  46. package/dist/components/date-range-picker.js.map +1 -0
  47. package/dist/components/power-calendar-multiple.js +56 -0
  48. package/dist/components/power-calendar-multiple.js.map +1 -0
  49. package/dist/components/power-calendar-range.js +68 -0
  50. package/dist/components/power-calendar-range.js.map +1 -0
  51. package/dist/components/power-calendar.js +56 -0
  52. package/dist/components/power-calendar.js.map +1 -0
  53. package/dist/date-library.js +243 -0
  54. package/dist/date-library.js.map +1 -0
  55. package/dist/dates.js +86 -0
  56. package/dist/dates.js.map +1 -0
  57. package/dist/index.js +9 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/messages.js +46 -0
  60. package/dist/messages.js.map +1 -0
  61. package/dist/nav-BddF9rku.js +546 -0
  62. package/dist/nav-BddF9rku.js.map +1 -0
  63. package/dist/picker-BJiSveLj.js +412 -0
  64. package/dist/picker-BJiSveLj.js.map +1 -0
  65. package/dist/test-support.js +356 -0
  66. package/dist/test-support.js.map +1 -0
  67. package/package.json +121 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,186 @@
1
+ # @ember-joinery/power-calendar
2
+
3
+ ## 1.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9728270]
8
+ - Updated dependencies [9728270]
9
+ - Updated dependencies [9728270]
10
+ - Updated dependencies [9728270]
11
+ - Updated dependencies [9728270]
12
+ - Updated dependencies [9728270]
13
+ - Updated dependencies [9728270]
14
+ - Updated dependencies [9728270]
15
+ - Updated dependencies [9728270]
16
+ - Updated dependencies [9728270]
17
+ - Updated dependencies [9728270]
18
+ - Updated dependencies [9728270]
19
+ - Updated dependencies [9728270]
20
+ - Updated dependencies [9728270]
21
+ - @ember-joinery/ember@1.1.0
22
+ - @ember-joinery/test-support@1.1.0
23
+ - @ember-joinery/primitives@1.1.0
24
+
25
+ ## 1.0.1
26
+
27
+ ### Patch Changes
28
+
29
+ - 2b887bf: The date pickers track their modes with a Switchyard chart; nothing changes in behavior, except that a close a controlled `@open` refuses no longer forgets the month paged to or the start of a range. A controlled Dialog no longer calls `@onClose`, nor clears its `returnValue`, for a close or open its `@open` refused, and InputOTP clears its pending selection sync when it goes.
30
+ - Updated dependencies [2b887bf]
31
+ - Updated dependencies [2b887bf]
32
+ - Updated dependencies [2b887bf]
33
+ - Updated dependencies [2b887bf]
34
+ - Updated dependencies [2b887bf]
35
+ - Updated dependencies [2b887bf]
36
+ - Updated dependencies [2b887bf]
37
+ - Updated dependencies [2b887bf]
38
+ - @ember-joinery/primitives@1.0.1
39
+ - @ember-joinery/ember@1.0.1
40
+ - @ember-joinery/test-support@1.0.1
41
+
42
+ ## 1.0.0
43
+
44
+ ### Major Changes
45
+
46
+ - a73065d: `@ember-joinery/power-calendar` is a new opt-in add-on, on ember-power-calendar 2:
47
+ `PowerCalendar`, `PowerCalendarRange` and `PowerCalendarMultiple`, ember-power-calendar's
48
+ calendars drawn as shadcn's Calendar (ghost-Button chevrons around the caption, a grid of ghost
49
+ icon Buttons, today shaded, the chosen days filled, a range's middle shaded as one band, each
50
+ style's `--cell-size` and `--cell-radius`), and `DatePicker` and `DateRangePicker`, which open one
51
+ in a Joinery Popover from an outlined Button or from an Input Group's input that reads typed
52
+ dates. Values are `Date`s at local midnight and ranges `{ from, to }`, controlled or not
53
+ (`@value`, `@defaultValue`, `@onValueChange`), with `@center` for the month shown, `@minDate`,
54
+ `@maxDate`, `@disabledDates` (dates, `YYYY-MM-DD` or weekdays), `@locale`, `@startOfWeek`,
55
+ `@weekdayFormat` and `@showDaysAround`; a range takes `@minRange`, `@maxRange` and
56
+ `@proximitySelection`, several days `@maxLength`, and the pickers `@trigger`, `@placeholder`,
57
+ `@format`, `@id`, `@disabled`, `@invalid`, `@describedBy` and `@open`. The grid is WAI-ARIA's:
58
+ one tab stop, the arrow keys (flipped right to left), Home, End, Page Up and Page Down, past
59
+ days that can't be chosen, each day named by its full date. A picker's button is named by its
60
+ label and the date it shows, and its calendar opens with focus on the chosen day. A native `Date`
61
+ and `Intl` date library is registered for ember-power-calendar unless the app has one
62
+ (`nativeDateLibrary`, `ensureDateLibrary()`), and `formatDate`, `formatDateRange`, `parseDate`,
63
+ `toDate` and `toIsoDate` are exported. Its `/test-support` has `PowerCalendarHarness` and
64
+ `DatePickerHarness`. `@ember-joinery/ember`'s style sheets style its parts
65
+ (`power-calendar.css`); nothing in the core packages imports it.
66
+
67
+ ### Minor Changes
68
+
69
+ - 17c5b5c: The add-ons' built-in strings go through the app's translator, each package's in its own
70
+ `<package>/messages`: Carousel's role descriptions, slide names (`{index} of {count}`) and step
71
+ buttons; Code Block's Copy and Copied; File Upload's prompt, hint, drop label, its rejected,
72
+ left-out, remove, retry and progress names, Upload failed and `FILE`; Phone Input's country
73
+ picker's name; Power Calendar's month buttons, its calendars' names and the pickers' placeholder,
74
+ trigger names and range (`{from} – {to}`); the Rich Text Editor's toolbar, text styles,
75
+ tools and its shortcuts' Ctrl, Shift and Alt. An argument still wins. File Upload's, Phone Input's and Power Calendar's `@locale`
76
+ default to the translator's. Chart and Data Table show no strings of their own.
77
+
78
+ ### Patch Changes
79
+
80
+ - a53c07b: Type checks in package source use `@sindresorhus/is` (`isString`, `isFunction`, …) instead of `typeof`, and a lint rule keeps it that way. `@sindresorhus/is` is a new runtime dependency, so `ember-joinery add` now installs it into the app for most components, `icon` included. `isNumber` rejects `NaN`, so a `NaN` reaching a numeric check now takes the non-number branch.
81
+ - 99eab0c: Built-in strings follow a live change of the translator's `locale`: a carousel's slide names
82
+ (`1 of 5`) and an input OTP's fallback name (`One-time password`) are set again in the new
83
+ language, not only on the next render. A date range picker reads typed text with the range
84
+ message it writes (`{from} – {to}`, or its translation), so a translated separator reads back,
85
+ and a dash, a hyphen or `to` still split English.
86
+ - a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
87
+ notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
88
+ from the repository's root by the package's `prepack`.
89
+ - Updated dependencies [a73065d]
90
+ - Updated dependencies [a73065d]
91
+ - Updated dependencies [a73065d]
92
+ - Updated dependencies [a73065d]
93
+ - Updated dependencies [a73065d]
94
+ - Updated dependencies [a73065d]
95
+ - Updated dependencies [a73065d]
96
+ - Updated dependencies [a73065d]
97
+ - Updated dependencies [a73065d]
98
+ - Updated dependencies [a73065d]
99
+ - Updated dependencies [a73065d]
100
+ - Updated dependencies [a73065d]
101
+ - Updated dependencies [a73065d]
102
+ - Updated dependencies [a73065d]
103
+ - Updated dependencies [a73065d]
104
+ - Updated dependencies [a73065d]
105
+ - Updated dependencies [a73065d]
106
+ - Updated dependencies [a73065d]
107
+ - Updated dependencies [a73065d]
108
+ - Updated dependencies [a73065d]
109
+ - Updated dependencies [a73065d]
110
+ - Updated dependencies [a73065d]
111
+ - Updated dependencies [a73065d]
112
+ - Updated dependencies [a73065d]
113
+ - Updated dependencies [a73065d]
114
+ - Updated dependencies [a73065d]
115
+ - Updated dependencies [a73065d]
116
+ - Updated dependencies [a73065d]
117
+ - Updated dependencies [a73065d]
118
+ - Updated dependencies [a73065d]
119
+ - Updated dependencies [a73065d]
120
+ - Updated dependencies [a73065d]
121
+ - Updated dependencies [a73065d]
122
+ - Updated dependencies [a73065d]
123
+ - Updated dependencies [a73065d]
124
+ - Updated dependencies [a73065d]
125
+ - Updated dependencies [a73065d]
126
+ - Updated dependencies [17c5b5c]
127
+ - Updated dependencies [17c5b5c]
128
+ - Updated dependencies [99eab0c]
129
+ - Updated dependencies [a73065d]
130
+ - Updated dependencies [a73065d]
131
+ - Updated dependencies [a73065d]
132
+ - Updated dependencies [a73065d]
133
+ - Updated dependencies [a73065d]
134
+ - Updated dependencies [a73065d]
135
+ - Updated dependencies [a73065d]
136
+ - Updated dependencies [a73065d]
137
+ - Updated dependencies [a73065d]
138
+ - Updated dependencies [a73065d]
139
+ - Updated dependencies [a73065d]
140
+ - Updated dependencies [a73065d]
141
+ - Updated dependencies [a73065d]
142
+ - Updated dependencies [a73065d]
143
+ - Updated dependencies [a73065d]
144
+ - Updated dependencies [a73065d]
145
+ - Updated dependencies [a73065d]
146
+ - Updated dependencies [a73065d]
147
+ - Updated dependencies [a73065d]
148
+ - Updated dependencies [a73065d]
149
+ - Updated dependencies [a73065d]
150
+ - Updated dependencies [a73065d]
151
+ - Updated dependencies [a73065d]
152
+ - Updated dependencies [a73065d]
153
+ - Updated dependencies [a73065d]
154
+ - Updated dependencies [a73065d]
155
+ - Updated dependencies [a73065d]
156
+ - Updated dependencies [a73065d]
157
+ - Updated dependencies [a73065d]
158
+ - Updated dependencies [a73065d]
159
+ - Updated dependencies [a73065d]
160
+ - Updated dependencies [a73065d]
161
+ - Updated dependencies [a73065d]
162
+ - Updated dependencies [a73065d]
163
+ - Updated dependencies [a73065d]
164
+ - Updated dependencies [a73065d]
165
+ - Updated dependencies [a73065d]
166
+ - Updated dependencies [a73065d]
167
+ - Updated dependencies [a73065d]
168
+ - Updated dependencies [a73065d]
169
+ - Updated dependencies [a73065d]
170
+ - Updated dependencies [a73065d]
171
+ - Updated dependencies [a73065d]
172
+ - Updated dependencies [a73065d]
173
+ - Updated dependencies [a73065d]
174
+ - Updated dependencies [a73065d]
175
+ - Updated dependencies [a73065d]
176
+ - Updated dependencies [a73065d]
177
+ - Updated dependencies [a73065d]
178
+ - Updated dependencies [a73065d]
179
+ - Updated dependencies [a73065d]
180
+ - Updated dependencies [a73065d]
181
+ - Updated dependencies [a73065d]
182
+ - Updated dependencies [a73065d]
183
+ - Updated dependencies [a73065d]
184
+ - @ember-joinery/primitives@1.0.0
185
+ - @ember-joinery/ember@1.0.0
186
+ - @ember-joinery/test-support@1.0.0
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Joe Gaudet
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.