@astryxdesign/core 0.7.8-canary.ffd29c5 → 0.7.8
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 +132 -0
- package/dist/BottomSheet/BottomSheetPanel.d.ts +1 -1
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +30 -14
- package/dist/BottomSheet/bottomSheetStack.js +1 -1
- package/dist/BottomSheet/useSheetGestures.d.ts +3 -1
- package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
- package/dist/BottomSheet/useSheetGestures.js +4 -0
- package/dist/CheckboxList/CheckboxList.d.ts +13 -2
- package/dist/CheckboxList/CheckboxList.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxList.js +10 -4
- package/dist/CheckboxList/CheckboxListContext.d.ts +7 -0
- package/dist/CheckboxList/CheckboxListContext.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxListContext.js +2 -1
- package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxListItem.js +14 -2
- package/dist/CheckboxList/requiredGroup.d.ts +22 -0
- package/dist/CheckboxList/requiredGroup.d.ts.map +1 -0
- package/dist/CheckboxList/requiredGroup.js +52 -0
- package/dist/DateInput/PickerWheel.d.ts +1 -1
- package/dist/DateInput/PickerWheel.d.ts.map +1 -1
- package/dist/DateInput/PickerWheel.js +27 -6
- package/dist/DateInput/Wheel.d.ts +2 -2
- package/dist/DateInput/Wheel.d.ts.map +1 -1
- package/dist/DateInput/Wheel.js +20 -6
- package/dist/DateInput/datePickerTouch.d.ts +13 -0
- package/dist/DateInput/datePickerTouch.d.ts.map +1 -0
- package/dist/DateInput/datePickerTouch.js +14 -0
- package/dist/DateInput/wheelOptions.d.ts +22 -2
- package/dist/DateInput/wheelOptions.d.ts.map +1 -1
- package/dist/DateInput/wheelOptions.js +14 -2
- package/dist/DateTimeInput/TouchDateTimeField.d.ts.map +1 -1
- package/dist/DateTimeInput/TouchDateTimeField.js +62 -119
- package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
- package/dist/HoverCard/useHoverCard.js +6 -1
- package/dist/Overlay/Overlay.d.ts.map +1 -1
- package/dist/Overlay/Overlay.js +7 -2
- package/dist/PowerSearch/PowerSearch.d.ts +4 -2
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchBottomSheet.d.ts +24 -1
- package/dist/PowerSearch/PowerSearchBottomSheet.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchBottomSheet.js +172 -50
- package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
- package/dist/Resizable/ResizeHandle.js +15 -15
- package/dist/Resizable/createResizable.d.ts +70 -16
- package/dist/Resizable/createResizable.d.ts.map +1 -1
- package/dist/Resizable/createResizable.js +180 -22
- package/dist/Resizable/separatorAttributes.d.ts +45 -0
- package/dist/Resizable/separatorAttributes.d.ts.map +1 -0
- package/dist/Resizable/separatorAttributes.js +35 -0
- package/dist/Resizable/useResizable.js +2 -2
- package/dist/TimeInput/TimeWheels.d.ts +32 -0
- package/dist/TimeInput/TimeWheels.d.ts.map +1 -0
- package/dist/TimeInput/TimeWheels.js +144 -0
- package/dist/TimeInput/TouchTimeField.d.ts.map +1 -1
- package/dist/TimeInput/TouchTimeField.js +63 -118
- package/dist/TimeInput/timeWheelRules.d.ts +124 -0
- package/dist/TimeInput/timeWheelRules.d.ts.map +1 -0
- package/dist/TimeInput/timeWheelRules.js +277 -0
- package/dist/Tokenizer/TokenizerBottomSheet.js +8 -12
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +6 -0
- package/dist/astryx.css +3 -1
- package/dist/gestures/GestureHost.d.ts.map +1 -1
- package/dist/gestures/GestureHost.js +3 -0
- package/dist/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.js +5 -2
- package/dist/i18n/generated-english/Resizable/createResizable.generated.d.ts +8 -0
- package/dist/i18n/generated-english/Resizable/createResizable.generated.d.ts.map +1 -0
- package/dist/i18n/generated-english/Resizable/createResizable.generated.js +13 -0
- package/dist/i18n/generated-english/TimeInput/TimeWheels.generated.d.ts +8 -0
- package/dist/i18n/generated-english/TimeInput/TimeWheels.generated.d.ts.map +1 -0
- package/dist/i18n/generated-english/TimeInput/TimeWheels.generated.js +17 -0
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +5 -2
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +5 -2
- package/dist/keyboard/index.d.ts +17 -0
- package/dist/keyboard/index.d.ts.map +1 -0
- package/dist/keyboard/index.js +19 -0
- package/dist/keyboard/keyboardHeight.d.ts +149 -0
- package/dist/keyboard/keyboardHeight.d.ts.map +1 -0
- package/dist/keyboard/keyboardHeight.js +432 -0
- package/dist/keyboard/keyboardLayoutGuide.d.ts +59 -0
- package/dist/keyboard/keyboardLayoutGuide.d.ts.map +1 -0
- package/dist/keyboard/keyboardLayoutGuide.js +207 -0
- package/dist/keyboard/keyboardModel.d.ts +93 -0
- package/dist/keyboard/keyboardModel.d.ts.map +1 -0
- package/dist/keyboard/keyboardModel.js +220 -0
- package/dist/keyboard/rideKeyboard.d.ts +42 -0
- package/dist/keyboard/rideKeyboard.d.ts.map +1 -0
- package/dist/keyboard/rideKeyboard.js +77 -0
- package/dist/keyboard/useMobileKeyboard.d.ts +61 -0
- package/dist/keyboard/useMobileKeyboard.d.ts.map +1 -0
- package/dist/keyboard/useMobileKeyboard.js +699 -0
- package/dist/motion/android/index.d.ts +16 -0
- package/dist/motion/android/index.d.ts.map +1 -0
- package/dist/motion/android/index.js +18 -0
- package/dist/motion/android/keyboard.d.ts +83 -0
- package/dist/motion/android/keyboard.d.ts.map +1 -0
- package/dist/motion/android/keyboard.js +96 -0
- package/dist/motion/uikit/datePicker.d.ts +58 -0
- package/dist/motion/uikit/datePicker.d.ts.map +1 -0
- package/dist/motion/uikit/datePicker.js +60 -0
- package/dist/motion/uikit/index.d.ts +4 -3
- package/dist/motion/uikit/index.d.ts.map +1 -1
- package/dist/motion/uikit/index.js +4 -3
- package/dist/utils/interactionOverlay.stylex.d.ts +3 -2
- package/dist/utils/interactionOverlay.stylex.d.ts.map +1 -1
- package/dist/utils/interactionOverlay.stylex.js +3 -2
- package/dist/utils/layoutViewport.d.ts +25 -0
- package/dist/utils/layoutViewport.d.ts.map +1 -0
- package/dist/utils/layoutViewport.js +102 -0
- package/dist/utils/pressFeedback.d.ts.map +1 -1
- package/dist/utils/pressFeedback.js +74 -9
- package/dist/utils/pressGesture.d.ts +4 -2
- package/dist/utils/pressGesture.d.ts.map +1 -1
- package/dist/utils/pressGesture.js +3 -1
- package/dist/utils/selectionLock.d.ts +10 -1
- package/dist/utils/selectionLock.d.ts.map +1 -1
- package/dist/utils/selectionLock.js +31 -5
- package/dist/utils/sharedMutationObserver.d.ts +2 -1
- package/dist/utils/sharedMutationObserver.d.ts.map +1 -1
- package/dist/utils/sharedMutationObserver.js +2 -1
- package/dist/utils/timeParser.d.ts +2 -1
- package/dist/utils/timeParser.d.ts.map +1 -1
- package/dist/utils/timeParser.js +29 -3
- package/locales/en.json +21 -9
- package/locales/pseudo.json +15 -6
- package/package.json +5 -5
- package/src/BottomSheet/BottomSheet.doc.mjs +1 -1
- package/src/BottomSheet/BottomSheetPanel.tsx +41 -13
- package/src/BottomSheet/BottomSheetSwitcher.doc.mjs +5 -0
- package/src/BottomSheet/bottomSheetStack.ts +1 -1
- package/src/BottomSheet/useSheetGestures.ts +6 -0
- package/src/CheckboxList/CheckboxList.doc.mjs +7 -0
- package/src/CheckboxList/CheckboxList.tsx +34 -2
- package/src/CheckboxList/CheckboxListContext.tsx +9 -1
- package/src/CheckboxList/CheckboxListItem.tsx +23 -2
- package/src/CheckboxList/requiredGroup.ts +77 -0
- package/src/DateInput/PickerWheel.tsx +37 -4
- package/src/DateInput/Wheel.tsx +30 -3
- package/src/DateInput/datePickerTouch.ts +15 -0
- package/src/DateInput/wheelOptions.ts +31 -2
- package/src/DateTimeInput/TouchDateTimeField.tsx +94 -178
- package/src/HoverCard/useHoverCard.tsx +6 -1
- package/src/Overlay/Overlay.tsx +7 -2
- package/src/PowerSearch/PowerSearch.doc.mjs +2 -2
- package/src/PowerSearch/PowerSearch.tsx +4 -2
- package/src/PowerSearch/PowerSearchBottomSheet.tsx +237 -62
- package/src/Resizable/ResizeHandle.tsx +18 -26
- package/src/Resizable/createResizable.ts +242 -27
- package/src/Resizable/separatorAttributes.ts +73 -0
- package/src/Resizable/useResizable.ts +2 -2
- package/src/TimeInput/TimeWheels.tsx +218 -0
- package/src/TimeInput/TouchTimeField.tsx +93 -157
- package/src/TimeInput/timeWheelRules.ts +352 -0
- package/src/Tokenizer/TokenizerBottomSheet.tsx +8 -12
- package/src/Tooltip/useTooltip.tsx +6 -0
- package/src/gestures/GestureHost.ts +5 -4
- package/src/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.ts +5 -2
- package/src/i18n/generated-english/Resizable/createResizable.generated.ts +14 -0
- package/src/i18n/generated-english/TimeInput/TimeWheels.generated.ts +18 -0
- package/src/i18n/generated-locales/en.generated.ts +6 -4
- package/src/i18n/generated-locales/pseudo.generated.ts +6 -4
- package/src/keyboard/README.md +197 -0
- package/src/keyboard/index.ts +48 -0
- package/src/keyboard/keyboardHeight.ts +543 -0
- package/src/keyboard/keyboardLayoutGuide.ts +266 -0
- package/src/keyboard/keyboardModel.ts +301 -0
- package/src/keyboard/rideKeyboard.ts +100 -0
- package/src/keyboard/useMobileKeyboard.ts +866 -0
- package/src/motion/MEASUREMENTS.md +10 -0
- package/src/motion/README.md +2 -0
- package/src/motion/android/index.ts +18 -0
- package/src/motion/android/keyboard.ts +96 -0
- package/src/motion/uikit/datePicker.ts +60 -0
- package/src/motion/uikit/index.ts +4 -3
- package/src/utils/interactionOverlay.stylex.ts +3 -2
- package/src/utils/layoutViewport.ts +104 -0
- package/src/utils/pressFeedback.ts +99 -21
- package/src/utils/pressGesture.ts +4 -2
- package/src/utils/selectionLock.ts +40 -6
- package/src/utils/sharedMutationObserver.ts +2 -1
- package/src/utils/timeParser.ts +40 -3
- package/dist/BottomSheet/useMobileKeyboard.d.ts +0 -21
- package/dist/BottomSheet/useMobileKeyboard.d.ts.map +0 -1
- package/dist/BottomSheet/useMobileKeyboard.js +0 -413
- package/src/BottomSheet/useMobileKeyboard.ts +0 -542
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file timeWheelRules.ts
|
|
5
|
+
* @input A time of day, the hour format and the bounds
|
|
6
|
+
* @output Pure rules of UIDatePicker's time wheels: the columns' rows, the
|
|
7
|
+
* time a turned column makes, and which other columns turn with it
|
|
8
|
+
* @position Internal helper of the TimeInput and DateTimeInput sheets: the
|
|
9
|
+
* rows of both their finger and their mouse wheels
|
|
10
|
+
*
|
|
11
|
+
* The columns do not loop. Each rule follows a leaf of motion/uikit/
|
|
12
|
+
* datePicker.ts `wheels`. Pure functions keep the rules testable without a
|
|
13
|
+
* layout engine.
|
|
14
|
+
*
|
|
15
|
+
* SYNC: When modified, update timeWheelRules.test.ts and TimeWheels.tsx.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { clampTime, formatISOTime, parseISOTime } from "../utils/timeParser.js";
|
|
19
|
+
|
|
20
|
+
/** A time of day, 24-hour. */
|
|
21
|
+
|
|
22
|
+
/** A time wheel column. */
|
|
23
|
+
|
|
24
|
+
/** One row of a column: the value it stands for and its label. */
|
|
25
|
+
|
|
26
|
+
/** Inclusive bounds in seconds since midnight; `null` is unbounded. */
|
|
27
|
+
|
|
28
|
+
const SECONDS_PER_DAY = 24 * 3600;
|
|
29
|
+
function secondsOfISO(time) {
|
|
30
|
+
if (time == null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
const parsed = parseISOTime(time);
|
|
34
|
+
return parsed == null ? null : parsed.hour * 3600 + parsed.minute * 60 + parsed.second;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The bounds of a field's `min` and `max` times. */
|
|
38
|
+
export function wheelBounds(min, max) {
|
|
39
|
+
return {
|
|
40
|
+
min: secondsOfISO(min),
|
|
41
|
+
max: secondsOfISO(max)
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Whether the hour falls in the PM half (1) or the AM half (0). */
|
|
46
|
+
export function meridiemOf(hour) {
|
|
47
|
+
return hour < 12 ? 0 : 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** The 12-hour clock's label for a 24-hour hour: 0 → 12, 13 → 1. */
|
|
51
|
+
export function hour12From24(hour) {
|
|
52
|
+
const h = hour % 12;
|
|
53
|
+
return h === 0 ? 12 : h;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The 24-hour hour for a 12-hour hour in a half of the day: 12 AM → 0. */
|
|
57
|
+
export function hour24From12(hour, meridiem) {
|
|
58
|
+
return hour % 12 + (meridiem === 1 ? 12 : 0);
|
|
59
|
+
}
|
|
60
|
+
function partsOf(seconds) {
|
|
61
|
+
const s = (seconds % SECONDS_PER_DAY + SECONDS_PER_DAY) % SECONDS_PER_DAY;
|
|
62
|
+
return {
|
|
63
|
+
hour: Math.floor(s / 3600),
|
|
64
|
+
minute: Math.floor(s % 3600 / 60),
|
|
65
|
+
second: s % 60
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Whether [start, end] (seconds) overlaps the bounds. */
|
|
70
|
+
function overlaps(start, end, bounds) {
|
|
71
|
+
return (bounds.min == null || end >= bounds.min) && (bounds.max == null || start <= bounds.max);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The time the wheels show for `time`: its seconds kept when the picker has a
|
|
76
|
+
* seconds column and dropped when it has none. A time outside the bounds is
|
|
77
|
+
* shown as it is, on its disabled rows: opening the sheet never moves an
|
|
78
|
+
* untouched value.
|
|
79
|
+
*/
|
|
80
|
+
export function displayedTime(time, hasSeconds) {
|
|
81
|
+
return {
|
|
82
|
+
...time,
|
|
83
|
+
second: hasSeconds ? time.second : 0
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The time a column's rest commits when it would make `time`: the nearest
|
|
89
|
+
* time inside the bounds that the columns have a row for. Past a bound, that
|
|
90
|
+
* is the bound itself, or, with no seconds column, the nearest whole minute
|
|
91
|
+
* inside it (a 16:55:30 maximum: 16:55). Inside the bounds, `time` itself.
|
|
92
|
+
*/
|
|
93
|
+
export function restingTime(time, hasSeconds, bounds) {
|
|
94
|
+
const boundAt = seconds => seconds == null ? undefined : formatISOTime(partsOf(seconds), true);
|
|
95
|
+
const resting = clampTime(formatISOTime(time, hasSeconds), boundAt(bounds.min), boundAt(bounds.max), hasSeconds);
|
|
96
|
+
return parseISOTime(resting) ?? time;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The hour the hour column makes when it comes to rest on `row` from the row
|
|
101
|
+
* that showed `from` (24-hour). In 24-hour time the row is the hour. In 12-hour
|
|
102
|
+
* time the half of the day changes only when the move passes between 11 and 12.
|
|
103
|
+
* The column (1 … 12) does not loop, so 12 counts as next to 1. A move between
|
|
104
|
+
* 12 and 1 to 6 keeps the half of the day. A move between 12 and 7 to 11
|
|
105
|
+
* changes it.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```
|
|
109
|
+
* hourAfterTurn(11, 12, '12h'); // 12: 11 AM → 12 PM
|
|
110
|
+
* hourAfterTurn(12, 1, '12h'); // 13: 12 PM → 1 PM
|
|
111
|
+
* hourAfterTurn(13, 9, '12h'); // 21: 1 PM → 9 PM
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export function hourAfterTurn(from, row, hourFormat) {
|
|
115
|
+
if (hourFormat === '24h') {
|
|
116
|
+
return row;
|
|
117
|
+
}
|
|
118
|
+
const shown = hour12From24(from);
|
|
119
|
+
if (row === shown) {
|
|
120
|
+
return from;
|
|
121
|
+
}
|
|
122
|
+
const half = meridiemOf(from);
|
|
123
|
+
const passes11And12 = shown === 12 && row >= 7 || row === 12 && shown >= 7;
|
|
124
|
+
return hour24From12(row, passes11And12 ? 1 - half : half);
|
|
125
|
+
}
|
|
126
|
+
function hourRowsFor(hourFormat, hourOf, bounds) {
|
|
127
|
+
const rows = hourFormat === '24h' ? Array.from({
|
|
128
|
+
length: 24
|
|
129
|
+
}, (_, hour) => hour) : Array.from({
|
|
130
|
+
length: 12
|
|
131
|
+
}, (_, index) => index + 1);
|
|
132
|
+
return rows.map(row => {
|
|
133
|
+
const hour = hourOf(row);
|
|
134
|
+
return {
|
|
135
|
+
value: row,
|
|
136
|
+
label: hourFormat === '24h' ? String(row).padStart(2, '0') : String(row),
|
|
137
|
+
isDisabled: !overlaps(hour * 3600, hour * 3600 + 3599, bounds),
|
|
138
|
+
order: hour
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The hour column under a finger. In 24-hour time its rows are 00 … 23. In
|
|
145
|
+
* 12-hour time they are 1 … 12, each row standing for the hour a turn onto it
|
|
146
|
+
* from `from` makes (`hourAfterTurn`). A row is disabled when no minute of that
|
|
147
|
+
* hour is inside the bounds.
|
|
148
|
+
*/
|
|
149
|
+
export function hourRows(from, hourFormat, bounds) {
|
|
150
|
+
return hourRowsFor(hourFormat, row => hourAfterTurn(from, row, hourFormat), bounds);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The hour column under a mouse, whose columns turn one at a time. A 12-hour
|
|
155
|
+
* row stands for its hour in the half of the day that `from` is in.
|
|
156
|
+
*/
|
|
157
|
+
export function hourRowsInHalf(from, hourFormat, bounds) {
|
|
158
|
+
const half = meridiemOf(from);
|
|
159
|
+
return hourRowsFor(hourFormat, row => hourFormat === '24h' ? row : hour24From12(row, half), bounds);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The minute column for `hour`: every minute. A row is disabled when it is
|
|
164
|
+
* outside the bounds (its whole minute, when the picker shows seconds).
|
|
165
|
+
*/
|
|
166
|
+
export function minuteRows(hour, hasSeconds, bounds) {
|
|
167
|
+
return Array.from({
|
|
168
|
+
length: 60
|
|
169
|
+
}, (_, minute) => {
|
|
170
|
+
const start = hour * 3600 + minute * 60;
|
|
171
|
+
return {
|
|
172
|
+
value: minute,
|
|
173
|
+
label: String(minute).padStart(2, '0'),
|
|
174
|
+
isDisabled: !overlaps(start, start + (hasSeconds ? 59 : 0), bounds)
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** The second column for `hour`:`minute`. */
|
|
180
|
+
export function secondRows(hour, minute, bounds) {
|
|
181
|
+
return Array.from({
|
|
182
|
+
length: 60
|
|
183
|
+
}, (_, second) => {
|
|
184
|
+
const at = hour * 3600 + minute * 60 + second;
|
|
185
|
+
return {
|
|
186
|
+
value: second,
|
|
187
|
+
label: String(second).padStart(2, '0'),
|
|
188
|
+
isDisabled: !overlaps(at, at, bounds)
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** The AM/PM column: a half is disabled when none of its hours is in bounds. */
|
|
194
|
+
export function meridiemRows(labels, bounds) {
|
|
195
|
+
return [{
|
|
196
|
+
value: 0,
|
|
197
|
+
label: labels.am,
|
|
198
|
+
isDisabled: !overlaps(0, 12 * 3600 - 1, bounds)
|
|
199
|
+
}, {
|
|
200
|
+
value: 1,
|
|
201
|
+
label: labels.pm,
|
|
202
|
+
isDisabled: !overlaps(12 * 3600, SECONDS_PER_DAY - 1, bounds)
|
|
203
|
+
}];
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The time made by turning `column` to `value` (its row's value) from `from`
|
|
208
|
+
* (the time the wheels show). Only that column changes, and the AM/PM column
|
|
209
|
+
* moves the hour by twelve.
|
|
210
|
+
*/
|
|
211
|
+
export function turnColumn(from, column, value, hourFormat) {
|
|
212
|
+
switch (column) {
|
|
213
|
+
case 'hour':
|
|
214
|
+
return {
|
|
215
|
+
...from,
|
|
216
|
+
hour: hourAfterTurn(from.hour, value, hourFormat)
|
|
217
|
+
};
|
|
218
|
+
case 'minute':
|
|
219
|
+
return {
|
|
220
|
+
...from,
|
|
221
|
+
minute: value
|
|
222
|
+
};
|
|
223
|
+
case 'second':
|
|
224
|
+
return {
|
|
225
|
+
...from,
|
|
226
|
+
second: value
|
|
227
|
+
};
|
|
228
|
+
case 'meridiem':
|
|
229
|
+
return {
|
|
230
|
+
...from,
|
|
231
|
+
hour: hour24From12(hour12From24(from.hour), value)
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** What a column shows for a time: its row's value. */
|
|
237
|
+
export function columnValue(time, column, hourFormat) {
|
|
238
|
+
switch (column) {
|
|
239
|
+
case 'hour':
|
|
240
|
+
return hourFormat === '24h' ? time.hour : hour12From24(time.hour);
|
|
241
|
+
case 'minute':
|
|
242
|
+
return time.minute;
|
|
243
|
+
case 'second':
|
|
244
|
+
return time.second;
|
|
245
|
+
case 'meridiem':
|
|
246
|
+
return meridiemOf(time.hour);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The columns that must turn after `column` came to rest on `value`. That is
|
|
252
|
+
* every column whose row for the committed time differs from the row it shows
|
|
253
|
+
* now. The column that moved shows `value`; the others show `from`. An hour
|
|
254
|
+
* that crossed 11 ↔ 12 turns the AM/PM column; a time brought back onto a bound
|
|
255
|
+
* turns every column whose row changed.
|
|
256
|
+
*/
|
|
257
|
+
export function columnsToTurn(from, column, value, committed, options) {
|
|
258
|
+
const columns = ['hour', 'minute'];
|
|
259
|
+
if (options.hasSeconds) {
|
|
260
|
+
columns.push('second');
|
|
261
|
+
}
|
|
262
|
+
if (options.hourFormat === '12h') {
|
|
263
|
+
columns.push('meridiem');
|
|
264
|
+
}
|
|
265
|
+
const turns = [];
|
|
266
|
+
for (const each of columns) {
|
|
267
|
+
const shown = each === column ? value : columnValue(from, each, options.hourFormat);
|
|
268
|
+
const target = columnValue(committed, each, options.hourFormat);
|
|
269
|
+
if (shown !== target) {
|
|
270
|
+
turns.push({
|
|
271
|
+
column: each,
|
|
272
|
+
value: target
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return turns;
|
|
277
|
+
}
|
|
@@ -189,10 +189,10 @@ function TokenizerSheetContent({
|
|
|
189
189
|
// has an entrance animation and no exit, so a close is its unmount; the
|
|
190
190
|
// close handler commits that unmount at once and then places focus itself,
|
|
191
191
|
// now that the modal is gone and the sheet's content can take focus again
|
|
192
|
-
// (`architecture:react-component-runtime` INV2)
|
|
193
|
-
//
|
|
194
|
-
//
|
|
195
|
-
//
|
|
192
|
+
// (`architecture:react-component-runtime` INV2). After a clear, Clear all
|
|
193
|
+
// is aria-disabled but stays focusable, so it keeps focus (FR24,
|
|
194
|
+
// `spec:AST-085` FR4). Focus on the search field opens the on-screen
|
|
195
|
+
// keyboard over the cleared rows. A confirmed clear is announced too — a
|
|
196
196
|
// change the person hears about, as an add or a remove is
|
|
197
197
|
// (`component:Tokenizer` AR6) — after the confirmation's dialog has gone,
|
|
198
198
|
// so the sheet is the modal on top and the words are delivered inside it
|
|
@@ -206,11 +206,9 @@ function TokenizerSheetContent({
|
|
|
206
206
|
const closeClearConfirmation = confirmed => {
|
|
207
207
|
// eslint-disable-next-line @eslint-react/dom-no-flush-sync -- the confirmation must be gone before focus moves into the sheet and the words are routed into it
|
|
208
208
|
flushSync(() => setIsClearConfirmationOpen(false));
|
|
209
|
+
clearAllRef.current?.focus();
|
|
209
210
|
if (confirmed) {
|
|
210
|
-
searchRef.current?.focus();
|
|
211
211
|
announce(t('@astryx.tokenizer.allRemoved'));
|
|
212
|
-
} else {
|
|
213
|
-
clearAllRef.current?.focus();
|
|
214
212
|
}
|
|
215
213
|
};
|
|
216
214
|
// Keep editing: the confirmation is gone, and focus returns to the search
|
|
@@ -745,11 +743,9 @@ function TokenizerSheetContent({
|
|
|
745
743
|
variant: "secondary",
|
|
746
744
|
size: "lg",
|
|
747
745
|
isDisabled: draftValue.length === 0
|
|
748
|
-
// With a tooltip, Button
|
|
749
|
-
//
|
|
750
|
-
// (`spec:AST-085` FR1)
|
|
751
|
-
// natively disabled button does — a confirmed Clear all returns
|
|
752
|
-
// focus here before the search field takes it (FR24).
|
|
746
|
+
// With a tooltip, Button uses aria-disabled, so Clear all stays
|
|
747
|
+
// focusable after a clear and says why it does nothing
|
|
748
|
+
// (`spec:AST-085` FR1; FR24).
|
|
753
749
|
,
|
|
754
750
|
tooltip: draftValue.length === 0 ? t('@astryx.tokenizer.nothingToClear') : undefined,
|
|
755
751
|
ref: clearAllRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/useTooltip.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,OAAO,CAAC;AAGf,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AA8ClC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,mBAAmB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AE,WAAW,CAAC,WAAW,CAAC,CAAC;IAE9B;;;OAGG;IACH,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAEtC;;;;OAIG;IACH,cAAc,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAEzC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;OAOG;IACH,aAAa,EAAE,CACb,QAAQ,EAAE,SAAS,EACnB,KAAK,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,KAC5C,SAAS,CAAC;IAEf;;;;;;;;;;;;OAYG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB;;;OAGG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,wBAAgB,UAAU,CAAC,OAAO,GAAE,cAAmB,GAAG,aAAa,CAomBtE"}
|
|
@@ -408,6 +408,12 @@ export function useTooltip(options = {}) {
|
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
410
|
if (handleTouchPointerDown(event)) {
|
|
411
|
+
// A pen in range starts the hover show before it lands. Left pending,
|
|
412
|
+
// that show opens the layer during the press. The tap then closes it.
|
|
413
|
+
if (showTimeoutRef.current) {
|
|
414
|
+
clearTimeout(showTimeoutRef.current);
|
|
415
|
+
showTimeoutRef.current = null;
|
|
416
|
+
}
|
|
411
417
|
return;
|
|
412
418
|
}
|
|
413
419
|
if (isOpen !== undefined) {
|
package/dist/astryx.css
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
@property --x-WebkitLineClamp { syntax: "*"; inherits: false;}
|
|
54
54
|
@property --x-width { syntax: "*"; inherits: false;}
|
|
55
55
|
@property --x-1dd27dc { syntax: "*"; inherits: true;}
|
|
56
|
+
@property --x-nsbhg8 { syntax: "*"; inherits: true;}
|
|
56
57
|
@property --x-owu7oy { syntax: "*"; inherits: true;}
|
|
57
58
|
@property --astryx-press-alpha { syntax: "<number>"; inherits: true; initial-value: 0 }
|
|
58
59
|
@keyframes x10jkm1t-B{from{--astryx-press-alpha:1;}to{--astryx-press-alpha:0;}}
|
|
@@ -2540,10 +2541,11 @@
|
|
|
2540
2541
|
.xhq5o37:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{bottom:0}
|
|
2541
2542
|
.xxgnp13:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{bottom:calc(-1 * var(--spacing-1) - 1px)}
|
|
2542
2543
|
.x17wid7s:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{bottom:var(--_slider-hit-bottom)}
|
|
2544
|
+
.x1gmr53x:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{height:0}
|
|
2543
2545
|
.x1fv2pxm:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{height:var(--_segmented-after-height,0px)}
|
|
2544
2546
|
.xlxjeq7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{height:var(--_segmented-lens-height,0px)}
|
|
2545
|
-
.xu6fald:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{height:var(--_sheet-keyboard-inset,0px)}
|
|
2546
2547
|
.x34npju:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{height:var(--spacing-1)}
|
|
2548
|
+
.x1ipgmjk:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{height:var(--x-nsbhg8)}
|
|
2547
2549
|
.x1ggeerv:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{left:var(--_segmented-after-left,0px)}
|
|
2548
2550
|
.x1h6x5ug:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{left:var(--_segmented-lens-left,0px)}
|
|
2549
2551
|
.x3dkws7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{margin-bottom:calc(-1 * var(--_table-row-divider-app-width,var(--_table-row-divider-width,0px)))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHost.d.ts","sourceRoot":"","sources":["../../src/gestures/GestureHost.ts"],"names":[],"mappings":"AAoIA,OAAO,EAEL,YAAY,EAGZ,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,iBAAiB,EAAgB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAqBhD,OAAO,KAAK,EAEV,YAAY,EAEZ,UAAU,EAEV,aAAa,EAGd,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"GestureHost.d.ts","sourceRoot":"","sources":["../../src/gestures/GestureHost.ts"],"names":[],"mappings":"AAoIA,OAAO,EAEL,YAAY,EAGZ,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,iBAAiB,EAAgB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAqBhD,OAAO,KAAK,EAEV,YAAY,EAEZ,UAAU,EAEV,aAAa,EAGd,MAAM,SAAS,CAAC;AAiDjB,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACtC,4DAA4D;IAC5D,YAAY,CAAC,EAAE,mBAAmB,CAAC,cA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BAA2B;IAgBnC,0EAA0E;IAC1E,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAOjC;IAEF,OAAO,CAAC,QAAQ,CAAC,MAAM,CAKrB;IAEF,sEAAsE;IACtE,OAAO,CAAC,gBAAgB;IAKxB;;;;OAIG;IACH,OAAO,CAAC,6BAA6B;IAQrC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAQ3B,+DAA+D;IAC/D,OAAO,CAAC,gBAAgB;CAkCzB;AAyBD,4DAA4D;AAC5D,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,GAAG,WAAW,CAOzD"}
|
|
@@ -3135,6 +3135,7 @@ export class GestureHost {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
this.pointerIds.delete(event.pointerId);
|
|
3137
3137
|
this.pointerKinds.delete(event.pointerId);
|
|
3138
|
+
const hold = this.claimHolds.get(id);
|
|
3138
3139
|
this.unlockSelection(id);
|
|
3139
3140
|
const dispositions = this.arena.ended([{
|
|
3140
3141
|
id,
|
|
@@ -3142,6 +3143,8 @@ export class GestureHost {
|
|
|
3142
3143
|
y: event.clientY,
|
|
3143
3144
|
time: eventTime(event)
|
|
3144
3145
|
}]);
|
|
3146
|
+
// A selection the lift's own handlers made stays, as a click's does.
|
|
3147
|
+
hold?.keepLiftSelection();
|
|
3145
3148
|
// A retargeted tap's own click arms the click guard for the engine's.
|
|
3146
3149
|
const landed = this.retargeted.get(id);
|
|
3147
3150
|
this.retargeted.delete(id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerSearchBottomSheet.generated.d.ts","sourceRoot":"","sources":["../../../../src/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"PowerSearchBottomSheet.generated.d.ts","sourceRoot":"","sources":["../../../../src/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmC7C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -18,15 +18,18 @@ const english = {
|
|
|
18
18
|
"@astryx.powersearch.sheet.clearAllConfirm": "Clear filters",
|
|
19
19
|
"@astryx.powersearch.sheet.clearAllDescription": "This removes all editable filters from this search.",
|
|
20
20
|
"@astryx.powersearch.sheet.clearAllTitle": "Clear all filters?",
|
|
21
|
+
"@astryx.powersearch.sheet.discardConfirm": "Discard changes",
|
|
22
|
+
"@astryx.powersearch.sheet.discardDescription": "Your changes to the filters haven't been applied.",
|
|
23
|
+
"@astryx.powersearch.sheet.discardTitle": "Discard changes?",
|
|
21
24
|
"@astryx.powersearch.sheet.done": "Done",
|
|
22
|
-
"@astryx.powersearch.sheet.editableFiltersClearedWithCount": "Editable filters removed. {resultCount}",
|
|
23
25
|
"@astryx.powersearch.sheet.fieldOperator": "{field} {operator}",
|
|
24
26
|
"@astryx.powersearch.sheet.filterUnavailable": "This filter is no longer available",
|
|
25
|
-
"@astryx.powersearch.sheet.filtersClearedWithCount": "All filters removed. {resultCount}",
|
|
26
27
|
"@astryx.powersearch.sheet.filtersTitle": "Filters",
|
|
28
|
+
"@astryx.powersearch.sheet.keepEditing": "Keep editing",
|
|
27
29
|
"@astryx.powersearch.sheet.labelValue": "{label} {value}",
|
|
28
30
|
"@astryx.powersearch.sheet.noFilters": "No filters applied",
|
|
29
31
|
"@astryx.powersearch.sheet.noFiltersDescription": "Add a filter to narrow your results and find what you need faster.",
|
|
32
|
+
"@astryx.powersearch.sheet.noFiltersInDraft": "No filters",
|
|
30
33
|
"@astryx.powersearch.sheet.noMatchingFields": "No filters match your search",
|
|
31
34
|
"@astryx.powersearch.sheet.noResults": "No results found",
|
|
32
35
|
"@astryx.powersearch.sheet.removeFilter": "Remove {field} filter",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated by scripts/generate-i18n-runtime.mjs from packages/core/locales/en.json,
|
|
3
|
+
* holding the English for the catalog keys named in packages/core/src/Resizable/createResizable.ts.
|
|
4
|
+
* Do not edit by hand. Run `pnpm generate:i18n-runtime` instead.
|
|
5
|
+
*/
|
|
6
|
+
declare const english: Readonly<Record<string, string>>;
|
|
7
|
+
export default english;
|
|
8
|
+
//# sourceMappingURL=createResizable.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createResizable.generated.d.ts","sourceRoot":"","sources":["../../../../src/i18n/generated-english/Resizable/createResizable.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAG7C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated by scripts/generate-i18n-runtime.mjs from packages/core/locales/en.json,
|
|
5
|
+
* holding the English for the catalog keys named in packages/core/src/Resizable/createResizable.ts.
|
|
6
|
+
* Do not edit by hand. Run `pnpm generate:i18n-runtime` instead.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const english = {
|
|
10
|
+
"@astryx.resizable.collapsed": "Collapsed",
|
|
11
|
+
"@astryx.resizable.handle.label": "Resize handle"
|
|
12
|
+
};
|
|
13
|
+
export default english;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated by scripts/generate-i18n-runtime.mjs from packages/core/locales/en.json,
|
|
3
|
+
* holding the English for the catalog keys named in packages/core/src/TimeInput/TimeWheels.tsx.
|
|
4
|
+
* Do not edit by hand. Run `pnpm generate:i18n-runtime` instead.
|
|
5
|
+
*/
|
|
6
|
+
declare const english: Readonly<Record<string, string>>;
|
|
7
|
+
export default english;
|
|
8
|
+
//# sourceMappingURL=TimeWheels.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeWheels.generated.d.ts","sourceRoot":"","sources":["../../../../src/i18n/generated-english/TimeInput/TimeWheels.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAO7C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated by scripts/generate-i18n-runtime.mjs from packages/core/locales/en.json,
|
|
5
|
+
* holding the English for the catalog keys named in packages/core/src/TimeInput/TimeWheels.tsx.
|
|
6
|
+
* Do not edit by hand. Run `pnpm generate:i18n-runtime` instead.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const english = {
|
|
10
|
+
"@astryx.dateTimeInput.hourWheel": "Hour",
|
|
11
|
+
"@astryx.dateTimeInput.meridiemAM": "AM",
|
|
12
|
+
"@astryx.dateTimeInput.meridiemPM": "PM",
|
|
13
|
+
"@astryx.dateTimeInput.meridiemWheel": "AM/PM",
|
|
14
|
+
"@astryx.dateTimeInput.minuteWheel": "Minute",
|
|
15
|
+
"@astryx.dateTimeInput.secondWheel": "Second"
|
|
16
|
+
};
|
|
17
|
+
export default english;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/en.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"en.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/en.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmqBpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -74,6 +74,7 @@ const runtimeCatalog = {
|
|
|
74
74
|
'@astryx.powersearch.sheet.filtersTitle': 'Filters',
|
|
75
75
|
'@astryx.powersearch.sheet.addFilter': 'Add filter',
|
|
76
76
|
'@astryx.powersearch.sheet.noFilters': 'No filters applied',
|
|
77
|
+
'@astryx.powersearch.sheet.noFiltersInDraft': 'No filters',
|
|
77
78
|
'@astryx.powersearch.sheet.noFiltersDescription': 'Add a filter to narrow your results and find what you need faster.',
|
|
78
79
|
'@astryx.powersearch.sheet.clearAll': 'Clear all',
|
|
79
80
|
'@astryx.powersearch.sheet.clearAllTitle': 'Clear all filters?',
|
|
@@ -81,6 +82,10 @@ const runtimeCatalog = {
|
|
|
81
82
|
'@astryx.powersearch.sheet.clearAllConfirm': 'Clear filters',
|
|
82
83
|
'@astryx.powersearch.sheet.clearAllCancel': 'Keep filters',
|
|
83
84
|
'@astryx.powersearch.sheet.done': 'Done',
|
|
85
|
+
'@astryx.powersearch.sheet.discardTitle': 'Discard changes?',
|
|
86
|
+
'@astryx.powersearch.sheet.discardDescription': "Your changes to the filters haven't been applied.",
|
|
87
|
+
'@astryx.powersearch.sheet.keepEditing': 'Keep editing',
|
|
88
|
+
'@astryx.powersearch.sheet.discardConfirm': 'Discard changes',
|
|
84
89
|
'@astryx.powersearch.sheet.search': 'Search',
|
|
85
90
|
'@astryx.powersearch.sheet.searchResults': 'Search results',
|
|
86
91
|
'@astryx.powersearch.sheet.searchFields': 'Search filters',
|
|
@@ -99,8 +104,6 @@ const runtimeCatalog = {
|
|
|
99
104
|
'@astryx.powersearch.sheet.relativeMonthsFromNow': '{count, number} {count, plural, one {month} other {months}} from now',
|
|
100
105
|
'@astryx.powersearch.sheet.fieldOperator': '{field} {operator}',
|
|
101
106
|
'@astryx.powersearch.sheet.labelValue': '{label} {value}',
|
|
102
|
-
'@astryx.powersearch.sheet.filtersClearedWithCount': 'All filters removed. {resultCount}',
|
|
103
|
-
'@astryx.powersearch.sheet.editableFiltersClearedWithCount': 'Editable filters removed. {resultCount}',
|
|
104
107
|
'@astryx.alertDialog.cancel': 'Cancel',
|
|
105
108
|
'@astryx.appShell.mobileNavigation': 'Mobile navigation',
|
|
106
109
|
'@astryx.appShell.skipToContent': 'Skip to content',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pseudo.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/pseudo.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"pseudo.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/pseudo.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA+qBpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -74,6 +74,7 @@ const runtimeCatalog = {
|
|
|
74
74
|
'@astryx.powersearch.sheet.filtersTitle': '⟦Ƒíłţéřš⟧',
|
|
75
75
|
'@astryx.powersearch.sheet.addFilter': '⟦Àðð ƒíłţéř⟧',
|
|
76
76
|
'@astryx.powersearch.sheet.noFilters': '⟦Ñó ƒíłţéřš àþþłíéð⟧',
|
|
77
|
+
'@astryx.powersearch.sheet.noFiltersInDraft': '⟦Ñó ƒíłţéřš⟧',
|
|
77
78
|
'@astryx.powersearch.sheet.noFiltersDescription': '⟦Àðð à ƒíłţéř ţó ñàřřóŵ ýóúř řéšúłţš àñð ƒíñð ŵĥàţ ýóú ñééð ƒàšţéř.⟧',
|
|
78
79
|
'@astryx.powersearch.sheet.clearAll': '⟦Çłéàř àłł⟧',
|
|
79
80
|
'@astryx.powersearch.sheet.clearAllTitle': '⟦Çłéàř àłł ƒíłţéřš?⟧',
|
|
@@ -81,6 +82,10 @@ const runtimeCatalog = {
|
|
|
81
82
|
'@astryx.powersearch.sheet.clearAllConfirm': '⟦Çłéàř ƒíłţéřš⟧',
|
|
82
83
|
'@astryx.powersearch.sheet.clearAllCancel': '⟦Ķééþ ƒíłţéřš⟧',
|
|
83
84
|
'@astryx.powersearch.sheet.done': '⟦Ðóñé⟧',
|
|
85
|
+
'@astryx.powersearch.sheet.discardTitle': '⟦Ðíšçàřð çĥàñĝéš?⟧',
|
|
86
|
+
'@astryx.powersearch.sheet.discardDescription': "⟦Ýóúř çĥàñĝéš ţó ţĥé ƒíłţéřš ĥàṽéñ'ţ ƀééñ àþþłíéð.⟧",
|
|
87
|
+
'@astryx.powersearch.sheet.keepEditing': '⟦Ķééþ éðíţíñĝ⟧',
|
|
88
|
+
'@astryx.powersearch.sheet.discardConfirm': '⟦Ðíšçàřð çĥàñĝéš⟧',
|
|
84
89
|
'@astryx.powersearch.sheet.search': '⟦Šéàřçĥ⟧',
|
|
85
90
|
'@astryx.powersearch.sheet.searchResults': '⟦Šéàřçĥ řéšúłţš⟧',
|
|
86
91
|
'@astryx.powersearch.sheet.searchFields': '⟦Šéàřçĥ ƒíłţéřš⟧',
|
|
@@ -99,8 +104,6 @@ const runtimeCatalog = {
|
|
|
99
104
|
'@astryx.powersearch.sheet.relativeMonthsFromNow': '⟦{count, number} {count, plural, one {month} other {months}} ƒřóɱ ñóŵ⟧',
|
|
100
105
|
'@astryx.powersearch.sheet.fieldOperator': '⟦{field} {operator}⟧',
|
|
101
106
|
'@astryx.powersearch.sheet.labelValue': '⟦{label} {value}⟧',
|
|
102
|
-
'@astryx.powersearch.sheet.filtersClearedWithCount': '⟦Àłł ƒíłţéřš řéɱóṽéð. {resultCount}⟧',
|
|
103
|
-
'@astryx.powersearch.sheet.editableFiltersClearedWithCount': '⟦Éðíţàƀłé ƒíłţéřš řéɱóṽéð. {resultCount}⟧',
|
|
104
107
|
'@astryx.alertDialog.cancel': '⟦Çàñçéł⟧',
|
|
105
108
|
'@astryx.appShell.mobileNavigation': '⟦Ṁóƀíłé ñàṽíĝàţíóñ⟧',
|
|
106
109
|
'@astryx.appShell.skipToContent': '⟦Šķíþ ţó çóñţéñţ⟧',
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file index.ts
|
|
3
|
+
* @input keyboardHeight.ts, keyboardLayoutGuide.ts, keyboardModel.ts and
|
|
4
|
+
* rideKeyboard.ts
|
|
5
|
+
* @output Re-exports the on-screen keyboard module, the keyboard layout
|
|
6
|
+
* guide and rideKeyboard, with their types
|
|
7
|
+
* @position Entry of the keyboard module. It is internal to core, and the
|
|
8
|
+
* package entry point exports nothing here.
|
|
9
|
+
*
|
|
10
|
+
* SYNC: When modified, update /packages/core/src/keyboard/README.md
|
|
11
|
+
*/
|
|
12
|
+
export { findTextEntryControl, getKeyboardHeight, isKeyboardMeasurable, isTextEntryControl, measureKeyboardHeight, refuseFocusReveal, subscribeKeyboardHeight, watchRevealPan, type KeyboardHeightEvent, type RefuseFocusRevealOptions, type RevealPanWatch, type WatchRevealPanOptions, } from './keyboardHeight.js';
|
|
13
|
+
export { bringsUpKeyboard, getKeyboardLayoutGuide, keyboardProfileOf, type KeyboardLayoutGuide, } from './keyboardLayoutGuide.js';
|
|
14
|
+
export { rideKeyboard } from './rideKeyboard.js';
|
|
15
|
+
export { useMobileKeyboard, type MobileKeyboard, type MobileKeyboardOptions, } from './useMobileKeyboard.js';
|
|
16
|
+
export { createKeyboardModel, type KeyboardCurve, type KeyboardModel, type KeyboardProfile, type KeyboardTransition, type KeyboardTransitionKind, } from './keyboardModel.js';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keyboard/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,mBAAmB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACL,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,GAC5B,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file index.ts
|
|
5
|
+
* @input keyboardHeight.ts, keyboardLayoutGuide.ts, keyboardModel.ts and
|
|
6
|
+
* rideKeyboard.ts
|
|
7
|
+
* @output Re-exports the on-screen keyboard module, the keyboard layout
|
|
8
|
+
* guide and rideKeyboard, with their types
|
|
9
|
+
* @position Entry of the keyboard module. It is internal to core, and the
|
|
10
|
+
* package entry point exports nothing here.
|
|
11
|
+
*
|
|
12
|
+
* SYNC: When modified, update /packages/core/src/keyboard/README.md
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
export { findTextEntryControl, getKeyboardHeight, isKeyboardMeasurable, isTextEntryControl, measureKeyboardHeight, refuseFocusReveal, subscribeKeyboardHeight, watchRevealPan } from "./keyboardHeight.js";
|
|
16
|
+
export { bringsUpKeyboard, getKeyboardLayoutGuide, keyboardProfileOf } from "./keyboardLayoutGuide.js";
|
|
17
|
+
export { rideKeyboard } from "./rideKeyboard.js";
|
|
18
|
+
export { useMobileKeyboard } from "./useMobileKeyboard.js";
|
|
19
|
+
export { createKeyboardModel } from "./keyboardModel.js";
|