@ember-joinery/power-calendar 0.0.0-stage → 1.0.1
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.
- package/CHANGELOG.md +164 -0
- package/LICENSE.md +9 -0
- package/NOTICE +532 -0
- package/README.md +76 -2
- package/addon-main.cjs +4 -0
- package/declarations/-private/calendar.d.ts +32 -0
- package/declarations/-private/calendar.d.ts.map +1 -0
- package/declarations/-private/days.d.ts +102 -0
- package/declarations/-private/days.d.ts.map +1 -0
- package/declarations/-private/nav.d.ts +43 -0
- package/declarations/-private/nav.d.ts.map +1 -0
- package/declarations/-private/picker-chart.d.ts +97 -0
- package/declarations/-private/picker-chart.d.ts.map +1 -0
- package/declarations/-private/picker.d.ts +157 -0
- package/declarations/-private/picker.d.ts.map +1 -0
- package/declarations/-private/state.d.ts +57 -0
- package/declarations/-private/state.d.ts.map +1 -0
- package/declarations/components/date-picker.d.ts +47 -0
- package/declarations/components/date-picker.d.ts.map +1 -0
- package/declarations/components/date-range-picker.d.ts +55 -0
- package/declarations/components/date-range-picker.d.ts.map +1 -0
- package/declarations/components/power-calendar-multiple.d.ts +36 -0
- package/declarations/components/power-calendar-multiple.d.ts.map +1 -0
- package/declarations/components/power-calendar-range.d.ts +48 -0
- package/declarations/components/power-calendar-range.d.ts.map +1 -0
- package/declarations/components/power-calendar.d.ts +38 -0
- package/declarations/components/power-calendar.d.ts.map +1 -0
- package/declarations/date-library.d.ts +8 -0
- package/declarations/date-library.d.ts.map +1 -0
- package/declarations/dates.d.ts +41 -0
- package/declarations/dates.d.ts.map +1 -0
- package/declarations/index.d.ts +14 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/messages.d.ts +44 -0
- package/declarations/messages.d.ts.map +1 -0
- package/declarations/test-support/date-picker.d.ts +59 -0
- package/declarations/test-support/date-picker.d.ts.map +1 -0
- package/declarations/test-support/index.d.ts +3 -0
- package/declarations/test-support/index.d.ts.map +1 -0
- package/declarations/test-support/power-calendar.d.ts +76 -0
- package/declarations/test-support/power-calendar.d.ts.map +1 -0
- package/declarations/test-support.d.ts +2 -0
- package/dist/components/date-picker.js +93 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/date-range-picker.js +154 -0
- package/dist/components/date-range-picker.js.map +1 -0
- package/dist/components/power-calendar-multiple.js +56 -0
- package/dist/components/power-calendar-multiple.js.map +1 -0
- package/dist/components/power-calendar-range.js +68 -0
- package/dist/components/power-calendar-range.js.map +1 -0
- package/dist/components/power-calendar.js +56 -0
- package/dist/components/power-calendar.js.map +1 -0
- package/dist/date-library.js +243 -0
- package/dist/date-library.js.map +1 -0
- package/dist/dates.js +86 -0
- package/dist/dates.js.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/messages.js +46 -0
- package/dist/messages.js.map +1 -0
- package/dist/nav-BddF9rku.js +546 -0
- package/dist/nav-BddF9rku.js.map +1 -0
- package/dist/picker-BJiSveLj.js +412 -0
- package/dist/picker-BJiSveLj.js.map +1 -0
- package/dist/test-support.js +356 -0
- package/dist/test-support.js.map +1 -0
- package/package.json +121 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# @ember-joinery/power-calendar
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- Updated dependencies [2b887bf]
|
|
9
|
+
- Updated dependencies [2b887bf]
|
|
10
|
+
- Updated dependencies [2b887bf]
|
|
11
|
+
- Updated dependencies [2b887bf]
|
|
12
|
+
- Updated dependencies [2b887bf]
|
|
13
|
+
- Updated dependencies [2b887bf]
|
|
14
|
+
- Updated dependencies [2b887bf]
|
|
15
|
+
- Updated dependencies [2b887bf]
|
|
16
|
+
- @ember-joinery/primitives@1.0.1
|
|
17
|
+
- @ember-joinery/ember@1.0.1
|
|
18
|
+
- @ember-joinery/test-support@1.0.1
|
|
19
|
+
|
|
20
|
+
## 1.0.0
|
|
21
|
+
|
|
22
|
+
### Major Changes
|
|
23
|
+
|
|
24
|
+
- a73065d: `@ember-joinery/power-calendar` is a new opt-in add-on, on ember-power-calendar 2:
|
|
25
|
+
`PowerCalendar`, `PowerCalendarRange` and `PowerCalendarMultiple`, ember-power-calendar's
|
|
26
|
+
calendars drawn as shadcn's Calendar (ghost-Button chevrons around the caption, a grid of ghost
|
|
27
|
+
icon Buttons, today shaded, the chosen days filled, a range's middle shaded as one band, each
|
|
28
|
+
style's `--cell-size` and `--cell-radius`), and `DatePicker` and `DateRangePicker`, which open one
|
|
29
|
+
in a Joinery Popover from an outlined Button or from an Input Group's input that reads typed
|
|
30
|
+
dates. Values are `Date`s at local midnight and ranges `{ from, to }`, controlled or not
|
|
31
|
+
(`@value`, `@defaultValue`, `@onValueChange`), with `@center` for the month shown, `@minDate`,
|
|
32
|
+
`@maxDate`, `@disabledDates` (dates, `YYYY-MM-DD` or weekdays), `@locale`, `@startOfWeek`,
|
|
33
|
+
`@weekdayFormat` and `@showDaysAround`; a range takes `@minRange`, `@maxRange` and
|
|
34
|
+
`@proximitySelection`, several days `@maxLength`, and the pickers `@trigger`, `@placeholder`,
|
|
35
|
+
`@format`, `@id`, `@disabled`, `@invalid`, `@describedBy` and `@open`. The grid is WAI-ARIA's:
|
|
36
|
+
one tab stop, the arrow keys (flipped right to left), Home, End, Page Up and Page Down, past
|
|
37
|
+
days that can't be chosen, each day named by its full date. A picker's button is named by its
|
|
38
|
+
label and the date it shows, and its calendar opens with focus on the chosen day. A native `Date`
|
|
39
|
+
and `Intl` date library is registered for ember-power-calendar unless the app has one
|
|
40
|
+
(`nativeDateLibrary`, `ensureDateLibrary()`), and `formatDate`, `formatDateRange`, `parseDate`,
|
|
41
|
+
`toDate` and `toIsoDate` are exported. Its `/test-support` has `PowerCalendarHarness` and
|
|
42
|
+
`DatePickerHarness`. `@ember-joinery/ember`'s style sheets style its parts
|
|
43
|
+
(`power-calendar.css`); nothing in the core packages imports it.
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- 17c5b5c: The add-ons' built-in strings go through the app's translator, each package's in its own
|
|
48
|
+
`<package>/messages`: Carousel's role descriptions, slide names (`{index} of {count}`) and step
|
|
49
|
+
buttons; Code Block's Copy and Copied; File Upload's prompt, hint, drop label, its rejected,
|
|
50
|
+
left-out, remove, retry and progress names, Upload failed and `FILE`; Phone Input's country
|
|
51
|
+
picker's name; Power Calendar's month buttons, its calendars' names and the pickers' placeholder,
|
|
52
|
+
trigger names and range (`{from} – {to}`); the Rich Text Editor's toolbar, text styles,
|
|
53
|
+
tools and its shortcuts' Ctrl, Shift and Alt. An argument still wins. File Upload's, Phone Input's and Power Calendar's `@locale`
|
|
54
|
+
default to the translator's. Chart and Data Table show no strings of their own.
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- 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.
|
|
59
|
+
- 99eab0c: Built-in strings follow a live change of the translator's `locale`: a carousel's slide names
|
|
60
|
+
(`1 of 5`) and an input OTP's fallback name (`One-time password`) are set again in the new
|
|
61
|
+
language, not only on the next render. A date range picker reads typed text with the range
|
|
62
|
+
message it writes (`{from} – {to}`, or its translation), so a translated separator reads back,
|
|
63
|
+
and a dash, a hyphen or `to` still split English.
|
|
64
|
+
- a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
|
|
65
|
+
notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
|
|
66
|
+
from the repository's root by the package's `prepack`.
|
|
67
|
+
- Updated dependencies [a73065d]
|
|
68
|
+
- Updated dependencies [a73065d]
|
|
69
|
+
- Updated dependencies [a73065d]
|
|
70
|
+
- Updated dependencies [a73065d]
|
|
71
|
+
- Updated dependencies [a73065d]
|
|
72
|
+
- Updated dependencies [a73065d]
|
|
73
|
+
- Updated dependencies [a73065d]
|
|
74
|
+
- Updated dependencies [a73065d]
|
|
75
|
+
- Updated dependencies [a73065d]
|
|
76
|
+
- Updated dependencies [a73065d]
|
|
77
|
+
- Updated dependencies [a73065d]
|
|
78
|
+
- Updated dependencies [a73065d]
|
|
79
|
+
- Updated dependencies [a73065d]
|
|
80
|
+
- Updated dependencies [a73065d]
|
|
81
|
+
- Updated dependencies [a73065d]
|
|
82
|
+
- Updated dependencies [a73065d]
|
|
83
|
+
- Updated dependencies [a73065d]
|
|
84
|
+
- Updated dependencies [a73065d]
|
|
85
|
+
- Updated dependencies [a73065d]
|
|
86
|
+
- Updated dependencies [a73065d]
|
|
87
|
+
- Updated dependencies [a73065d]
|
|
88
|
+
- Updated dependencies [a73065d]
|
|
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 [17c5b5c]
|
|
105
|
+
- Updated dependencies [17c5b5c]
|
|
106
|
+
- Updated dependencies [99eab0c]
|
|
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 [a73065d]
|
|
127
|
+
- Updated dependencies [a73065d]
|
|
128
|
+
- Updated dependencies [a73065d]
|
|
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
|
+
- @ember-joinery/primitives@1.0.0
|
|
163
|
+
- @ember-joinery/ember@1.0.0
|
|
164
|
+
- @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.
|