@colixsystems/widget-sdk 0.343.0 → 0.343.2
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/README.md +10 -2
- package/dist/contract.cjs +1 -1
- package/dist/contract.js +1 -1
- package/dist/datetimepicker-cells.js +1 -1
- package/dist/datetimepicker-names.js +6 -5
- package/dist/datetimepicker-sheet-header.js +1 -1
- package/dist/datetimepicker-sheet-parts.js +2 -2
- package/dist/datetimepicker-sheet-state.js +1 -1
- package/dist/datetimepicker-sheet.js +8 -7
- package/dist/datetimepicker-time-columns.js +2 -2
- package/dist/datetimepicker-view.js +1 -2
- package/dist/datetimepicker.native.js +24 -6
- package/dist/linter.cjs +590 -17
- package/dist/linter.js +590 -17
- package/dist/primitives.native.js +2 -6
- package/dist/sdk-texts.cjs +5 -0
- package/dist/sdk-texts.js +5 -0
- package/dist/source-mask.cjs +4 -2
- package/dist/source-mask.js +4 -2
- package/package.json +1 -1
- package/src/contract.js +1 -1
- package/src/sdk-texts.js +5 -0
package/dist/source-mask.cjs
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// consumed so an escaped quote (`"\""`) doesn't end the literal early.
|
|
27
27
|
function stripNonCode(
|
|
28
28
|
source,
|
|
29
|
-
{ keepStrings = false, keepTemplates = keepStrings } = {},
|
|
29
|
+
{ keepStrings = false, keepTemplates = keepStrings, keepHoleBraces = false } = {},
|
|
30
30
|
) {
|
|
31
31
|
const n = source.length;
|
|
32
32
|
// Code units, not `out += ch`: a per-character rope costs superlinear GC.
|
|
@@ -92,7 +92,9 @@ function stripNonCode(
|
|
|
92
92
|
) {
|
|
93
93
|
tmplStack.pop();
|
|
94
94
|
mode = "tmpl";
|
|
95
|
-
|
|
95
|
+
// Kept on request, so a bracket matcher pairs `${` with its `}`.
|
|
96
|
+
if (keepHoleBraces) keep(ch);
|
|
97
|
+
else str(ch);
|
|
96
98
|
} else {
|
|
97
99
|
keep(ch);
|
|
98
100
|
}
|
package/dist/source-mask.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// consumed so an escaped quote (`"\""`) doesn't end the literal early.
|
|
23
23
|
export function stripNonCode(
|
|
24
24
|
source,
|
|
25
|
-
{ keepStrings = false, keepTemplates = keepStrings } = {},
|
|
25
|
+
{ keepStrings = false, keepTemplates = keepStrings, keepHoleBraces = false } = {},
|
|
26
26
|
) {
|
|
27
27
|
const n = source.length;
|
|
28
28
|
// Code units, not `out += ch`: a per-character rope costs superlinear GC.
|
|
@@ -88,7 +88,9 @@ export function stripNonCode(
|
|
|
88
88
|
) {
|
|
89
89
|
tmplStack.pop();
|
|
90
90
|
mode = "tmpl";
|
|
91
|
-
|
|
91
|
+
// Kept on request, so a bracket matcher pairs `${` with its `}`.
|
|
92
|
+
if (keepHoleBraces) keep(ch);
|
|
93
|
+
else str(ch);
|
|
92
94
|
} else {
|
|
93
95
|
keep(ch);
|
|
94
96
|
}
|
package/package.json
CHANGED
package/src/contract.js
CHANGED
|
@@ -3685,7 +3685,7 @@ const PRIMITIVES = [
|
|
|
3685
3685
|
{
|
|
3686
3686
|
name: "DateTimePicker",
|
|
3687
3687
|
description:
|
|
3688
|
-
'Cross-platform date / time / datetime field. `<DateTimePicker value={iso} onChange={iso => …} mode="date" | "time" | "datetime" accessibilityLabel="Due" />`. The value prop and the onChange callback both speak ISO 8601 strings (the datastore wire format): `YYYY-MM-DD` for date, `HH:mm` for time, a full UTC instant for datetime — authors never round-trip through `new Date()`. Clearing emits "". The field shows the value in the app user\'s language beside a calendar (or clock) icon, with a clear button once it holds a value. Web
|
|
3688
|
+
'Cross-platform date / time / datetime field. `<DateTimePicker value={iso} onChange={iso => …} mode="date" | "time" | "datetime" accessibilityLabel="Due" />`. The value prop and the onChange callback both speak ISO 8601 strings (the datastore wire format): `YYYY-MM-DD` for date, `HH:mm` for time, a full UTC instant for datetime — authors never round-trip through `new Date()`. Clearing emits "". The field shows the value in the app user\'s language beside a calendar (or clock) icon, with a clear button once it holds a value. Web and iOS open a themed calendar sheet in `<Overlay>`: a month grid (keyboard: arrows, Home/End, PageUp/PageDown), a month and year jump, hour and minute columns for time, and a Today / Now button. Android opens the operating system\'s own date and time dialogs (@react-native-community/datetimepicker). `minimumDate` / `maximumDate` (ISO, `HH:mm` in time mode) bound what can be picked; `disabled` locks the field. Optional copy: `placeholder`, `clearLabel` (default "Clear"), `doneLabel` (default "Done", closes the time sheet), `closeAccessibilityLabel`; `testID` names the field. Colours come from the workspace theme — the field from the text-field tokens, the sheet from the popover scope, the chosen day from `colors.primary`; never style it with raw CSS or `document`.',
|
|
3689
3689
|
rnComponent: "@react-native-community/datetimepicker",
|
|
3690
3690
|
docsUrl: "https://github.com/react-native-datetimepicker/datetimepicker",
|
|
3691
3691
|
},
|
package/src/sdk-texts.js
CHANGED
|
@@ -16,6 +16,11 @@ export const COMPONENT_TEXTS = Object.freeze({
|
|
|
16
16
|
select_placeholder: { en: "Select", sv: "Välj" },
|
|
17
17
|
no_options: { en: "No options", sv: "Inga alternativ" },
|
|
18
18
|
done: { en: "Done", sv: "Klar" },
|
|
19
|
+
// The DateTimePicker sheet's fallbacks where an engine lacks the Intl names (Hermes).
|
|
20
|
+
picker_today: { en: "Today", sv: "I dag" },
|
|
21
|
+
picker_now: { en: "Now", sv: "Nu" },
|
|
22
|
+
picker_hour: { en: "Hour", sv: "Timme" },
|
|
23
|
+
picker_minute: { en: "Minute", sv: "Minut" },
|
|
19
24
|
selected_count: {
|
|
20
25
|
en: { one: "{count} selected", other: "{count} selected" },
|
|
21
26
|
sv: { one: "{count} vald", other: "{count} valda" },
|