@ember-joinery/maskito 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.
Files changed (45) hide show
  1. package/CHANGELOG.md +156 -0
  2. package/LICENSE.md +9 -0
  3. package/NOTICE +532 -0
  4. package/README.md +55 -2
  5. package/addon-main.cjs +4 -0
  6. package/declarations/components/masked-input.d.ts +30 -0
  7. package/declarations/components/masked-input.d.ts.map +1 -0
  8. package/declarations/components/phone-input.d.ts +167 -0
  9. package/declarations/components/phone-input.d.ts.map +1 -0
  10. package/declarations/index.d.ts +9 -0
  11. package/declarations/index.d.ts.map +1 -0
  12. package/declarations/maskito.d.ts +42 -0
  13. package/declarations/maskito.d.ts.map +1 -0
  14. package/declarations/messages.d.ts +21 -0
  15. package/declarations/messages.d.ts.map +1 -0
  16. package/declarations/phone.d.ts +49 -0
  17. package/declarations/phone.d.ts.map +1 -0
  18. package/declarations/presets.d.ts +53 -0
  19. package/declarations/presets.d.ts.map +1 -0
  20. package/declarations/test-support/-private/typing.d.ts +28 -0
  21. package/declarations/test-support/-private/typing.d.ts.map +1 -0
  22. package/declarations/test-support/index.d.ts +3 -0
  23. package/declarations/test-support/index.d.ts.map +1 -0
  24. package/declarations/test-support/masked-input.d.ts +36 -0
  25. package/declarations/test-support/masked-input.d.ts.map +1 -0
  26. package/declarations/test-support/phone-input.d.ts +70 -0
  27. package/declarations/test-support/phone-input.d.ts.map +1 -0
  28. package/declarations/test-support.d.ts +2 -0
  29. package/dist/components/masked-input.js +31 -0
  30. package/dist/components/masked-input.js.map +1 -0
  31. package/dist/components/phone-input.js +374 -0
  32. package/dist/components/phone-input.js.map +1 -0
  33. package/dist/index.js +7 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/maskito.js +87 -0
  36. package/dist/maskito.js.map +1 -0
  37. package/dist/messages.js +23 -0
  38. package/dist/messages.js.map +1 -0
  39. package/dist/phone.js +99 -0
  40. package/dist/phone.js.map +1 -0
  41. package/dist/presets.js +122 -0
  42. package/dist/presets.js.map +1 -0
  43. package/dist/test-support.js +330 -0
  44. package/dist/test-support.js.map +1 -0
  45. package/package.json +117 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,156 @@
1
+ # @ember-joinery/maskito
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2b887bf]
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
+ - @ember-joinery/primitives@1.0.1
16
+ - @ember-joinery/ember@1.0.1
17
+ - @ember-joinery/test-support@1.0.1
18
+
19
+ ## 1.0.0
20
+
21
+ ### Major Changes
22
+
23
+ - a73065d: `@ember-joinery/maskito` is a new opt-in add-on, on Maskito: masked inputs in shadcn's look.
24
+ `MaskedInput` is Joinery's Input with a mask (`@mask`, any Maskito options), whose value is the
25
+ masked text, controlled or not, and which shows a value passed in masked. The `{{maskito}}`
26
+ modifier masks an input or textarea of your own, such as an Input Group's, and every `input`
27
+ listener on it reads the masked text; `maskText()` masks a value from code. The presets,
28
+ `numberMask`, `dateMask`, `timeMask`, `dateTimeMask` and `dateRangeMask`, wrap `@maskito/kit`'s
29
+ generators, with `parseNumber`, `parseDate`, `parseTime` and their `format*` counterparts to read
30
+ and write their text. `PhoneInput` is an Input Group whose addon is a ghost Input Group Button
31
+ opening a Select of countries (flag, name in `@locale`'s language, calling code), and whose input
32
+ `@maskito/phone` masks for the country chosen; its value is the number in E.164 form, or `null`.
33
+ Choosing a country moves the national number to its calling code and sends focus to the input,
34
+ and an international number pasted, dropped or autofilled is read in its own country, which the
35
+ picker switches to (one from a country `@countries` leaves out is turned away); `@countries`
36
+ (whose first country it starts on), `@national`, `@country` and `@metadata` shape it, and the
37
+ picker is named after its input (`Phone country`) unless `@countryLabel` names it. It lays
38
+ itself out right to left with the number still left to right. `isValidPhone`, `formatPhone` and
39
+ `countryOfPhone` check and show stored numbers. Its `/test-support` has `MaskedInputHarness` and
40
+ `PhoneInputHarness`, which type, delete, paste, drop, fill in, undo and redo as a browser does. `@ember-joinery/ember`'s style sheets style its parts; nothing in the
41
+ core packages imports it.
42
+
43
+ ### Minor Changes
44
+
45
+ - 17c5b5c: The add-ons' built-in strings go through the app's translator, each package's in its own
46
+ `<package>/messages`: Carousel's role descriptions, slide names (`{index} of {count}`) and step
47
+ buttons; Code Block's Copy and Copied; File Upload's prompt, hint, drop label, its rejected,
48
+ left-out, remove, retry and progress names, Upload failed and `FILE`; Phone Input's country
49
+ picker's name; Power Calendar's month buttons, its calendars' names and the pickers' placeholder,
50
+ trigger names and range (`{from} – {to}`); the Rich Text Editor's toolbar, text styles,
51
+ tools and its shortcuts' Ctrl, Shift and Alt. An argument still wins. File Upload's, Phone Input's and Power Calendar's `@locale`
52
+ default to the translator's. Chart and Data Table show no strings of their own.
53
+
54
+ ### Patch Changes
55
+
56
+ - a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
57
+ notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
58
+ from the repository's root by the package's `prepack`.
59
+ - Updated dependencies [a73065d]
60
+ - Updated dependencies [a73065d]
61
+ - Updated dependencies [a73065d]
62
+ - Updated dependencies [a73065d]
63
+ - Updated dependencies [a73065d]
64
+ - Updated dependencies [a73065d]
65
+ - Updated dependencies [a73065d]
66
+ - Updated dependencies [a73065d]
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 [17c5b5c]
97
+ - Updated dependencies [17c5b5c]
98
+ - Updated dependencies [99eab0c]
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 [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
+ - @ember-joinery/primitives@1.0.0
155
+ - @ember-joinery/ember@1.0.0
156
+ - @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.