@g9tm/lynxcontrols 2.5.14 → 2.5.16
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/catalog/cards/G9CultureDateTimeLabel.md +1 -0
- package/catalog/cards/G9RangeSlider.md +1 -1
- package/catalog/cards/G9SearchEntry.md +1 -1
- package/catalog/cards/G9TextEntry.md +1 -1
- package/catalog/catalog.json +46 -8
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/appearance/appearance.d.ts.map +1 -1
- package/dist/appearance/appearance.jsx +64 -7
- package/dist/appearance/token-editor.d.ts.map +1 -1
- package/dist/appearance/token-editor.jsx +12 -2
- package/dist/dashboard/dashboard.d.ts.map +1 -1
- package/dist/dashboard/dashboard.jsx +14 -2
- package/dist/display/culture-date-time-label.d.ts +4 -0
- package/dist/display/culture-date-time-label.d.ts.map +1 -1
- package/dist/display/culture-date-time-label.jsx +10 -3
- package/dist/display/data-uri.d.ts +5 -0
- package/dist/display/data-uri.d.ts.map +1 -1
- package/dist/display/data-uri.jsx +2 -1
- package/dist/display/index.d.ts +1 -0
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.jsx +1 -0
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout/index.jsx +1 -1
- package/dist/layout/scrollers.d.ts +31 -0
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +42 -1
- package/dist/list/gestures.d.ts.map +1 -1
- package/dist/list/gestures.jsx +3 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +4 -3
- package/dist/notifications/notification-center.d.ts.map +1 -1
- package/dist/notifications/notification-center.jsx +23 -2
- package/dist/provider/hooks.d.ts +6 -1
- package/dist/provider/hooks.d.ts.map +1 -1
- package/dist/provider/hooks.jsx +9 -2
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.jsx +1 -1
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +5 -1
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/components/barcode.md +1 -1
- package/skills/g9-lynx-app/references/components/charts.md +6 -6
- package/skills/g9-lynx-app/references/components/display-1.md +1 -0
- package/skills/g9-lynx-app/references/components/fields.md +2 -2
- package/skills/g9-lynx-app/references/components/native-media.md +1 -1
- package/skills/g9-lynx-app/references/components/range-slider.md +1 -1
|
@@ -30,6 +30,26 @@ const EN = {
|
|
|
30
30
|
unread: 'Unread',
|
|
31
31
|
groupActions: (title)=>`Actions: ${title}`
|
|
32
32
|
};
|
|
33
|
+
const FA = {
|
|
34
|
+
title: 'اعلانها',
|
|
35
|
+
more: 'بیشتر',
|
|
36
|
+
actions: 'کارها',
|
|
37
|
+
markRead: 'خوانده شد',
|
|
38
|
+
markGroupRead: 'این گروه خوانده شد',
|
|
39
|
+
markAllRead: 'همه خوانده شد',
|
|
40
|
+
snoozeAll: (when)=>`تعویق همه: ${when}`,
|
|
41
|
+
showMore: (count)=>`${count} مورد دیگر`,
|
|
42
|
+
showLess: 'کمتر',
|
|
43
|
+
snoozed: (count)=>`به تعویق افتاده (${count})`,
|
|
44
|
+
backAt: (until)=>`برمیگردد ${until}`,
|
|
45
|
+
unsnooze: 'برگرداندن',
|
|
46
|
+
empty: 'اعلانی نیست',
|
|
47
|
+
emptyHint: 'همه را دیدهاید.',
|
|
48
|
+
emptyFilter: 'اینجا چیزی نیست',
|
|
49
|
+
failed: 'اعلانها بار نشد',
|
|
50
|
+
unread: 'خواندهنشده',
|
|
51
|
+
groupActions: (title)=>`کارها: ${title}`
|
|
52
|
+
};
|
|
33
53
|
const g9SnoozeChoices = [
|
|
34
54
|
{
|
|
35
55
|
key: 'hour',
|
|
@@ -47,9 +67,10 @@ const g9SnoozeChoices = [
|
|
|
47
67
|
function G9NotificationCenter(props) {
|
|
48
68
|
var _props_defaultFilter, _props_filter, _filters_find, _props_snoozeChoices, _props_id, _props_collapseAfter, _props_snoozed, _props_maxHeight;
|
|
49
69
|
var _props_filters, _filters_, _filters_1;
|
|
50
|
-
const
|
|
70
|
+
const culture = useG9Culture();
|
|
71
|
+
const digits = culture.numberingSystem;
|
|
51
72
|
const w = {
|
|
52
|
-
...EN,
|
|
73
|
+
...'fa' === culture.language ? FA : EN,
|
|
53
74
|
number: (value)=>toNativeDigits(String(value), digits),
|
|
54
75
|
...props.words
|
|
55
76
|
};
|
package/dist/provider/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type G9Capabilities, type G9CapabilityName, type G9Culture, type G9CultureStore, type G9DesignRegistry, type G9Diagnostics, type G9Direction, type G9Preferences, type G9ResolvedTheme, type G9SafeExecutor, type G9SafeInsets, type G9ShapeSet, type G9Strings, type G9ThemeStore } from '@g9tm/lynxcontrols-foundation';
|
|
1
|
+
import { type G9Capabilities, type G9CapabilityName, type G9Culture, type G9CultureStore, type G9DesignRegistry, type G9Diagnostics, type G9Direction, type G9Preferences, type G9ResolvedTheme, type G9SafeExecutor, type G9SafeInsets, type G9ShapeSet, type G9Strings, type G9ThemeStore, type G9WordKey } from '@g9tm/lynxcontrols-foundation';
|
|
2
2
|
import { type G9KeyboardState, type G9LayoutInfo, type G9ProviderCore, type G9WindowState } from './contexts.js';
|
|
3
3
|
import type { G9ResolvedSettings } from './settings.js';
|
|
4
4
|
/** The provider's shared core (services, stores, executor). Throws `provider-missing` outside a provider. */
|
|
@@ -9,6 +9,11 @@ export declare function useG9Culture(): G9Culture;
|
|
|
9
9
|
export declare function useG9Direction(): G9Direction;
|
|
10
10
|
/** The strings of the active culture (MAUI `G9Strings`). Re-renders when culture or string settings change. */
|
|
11
11
|
export declare function useG9Strings(): G9Strings;
|
|
12
|
+
/**
|
|
13
|
+
* The words of the library's own components in the culture's language (2.5.16, LC-30): `word('play')` is «پخش» under
|
|
14
|
+
* `fa`. The app's string provider is asked first (`word.play`), then the built-in table of the language, then English.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useG9Word(): (key: G9WordKey) => string;
|
|
12
17
|
/** The culture store, to switch culture (MAUI `G9Culture.Configure` / `SetCulture`). Does not re-render. */
|
|
13
18
|
export declare function useG9CultureStore(): G9CultureStore;
|
|
14
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/provider/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/provider/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,SAAS,EAIf,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAML,KAAK,eAAe,EAEpB,KAAK,YAAY,EACjB,KAAK,cAAc,EAGnB,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAYrD,6GAA6G;AAC7G,wBAAgB,SAAS,IAAI,cAAc,CAE1C;AAED,wFAAwF;AACxF,wBAAgB,YAAY,IAAI,SAAS,CAExC;AAED,qGAAqG;AAC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IAAI,YAAY,CAE9C;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,YAAY,CAE1C;AAED,qIAAqI;AACrI,wBAAgB,UAAU,IAAI,UAAU,CAGvC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAMtD"}
|
package/dist/provider/hooks.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G9Error, createDesignRegistry, hasCapability, requireCapability } from "@g9tm/lynxcontrols-foundation";
|
|
1
|
+
import { G9Error, createDesignRegistry, g9Word, hasCapability, requireCapability } from "@g9tm/lynxcontrols-foundation";
|
|
2
2
|
import { useContext, useMemo, useRef, useSyncExternalStore } from "@lynx-js/react";
|
|
3
3
|
import { subscribeThemeAndActivity } from "./activity.jsx";
|
|
4
4
|
import { G9ActivityContext, G9CoreContext, G9CultureContext, G9InsetsContext, G9KeyboardContext, G9LayoutContext, G9SettingsContext, G9WindowContext } from "./contexts.jsx";
|
|
@@ -22,6 +22,13 @@ function useG9Direction() {
|
|
|
22
22
|
function useG9Strings() {
|
|
23
23
|
return useRequired(G9CultureContext, 'useG9Strings').strings;
|
|
24
24
|
}
|
|
25
|
+
function useG9Word() {
|
|
26
|
+
const { strings, culture } = useRequired(G9CultureContext, 'useG9Word');
|
|
27
|
+
return (key)=>{
|
|
28
|
+
var _strings_resolve;
|
|
29
|
+
return null != (_strings_resolve = strings.resolve(`word.${key}`)) ? _strings_resolve : g9Word(key, culture.language);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
25
32
|
function useG9CultureStore() {
|
|
26
33
|
return useRequired(G9CultureContext, 'useG9CultureStore').store;
|
|
27
34
|
}
|
|
@@ -97,4 +104,4 @@ function useG9DesignRegistry() {
|
|
|
97
104
|
core.shape
|
|
98
105
|
]);
|
|
99
106
|
}
|
|
100
|
-
export { useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window };
|
|
107
|
+
export { useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window, useG9Word };
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { G9Activity, type G9ActivityProps } from './activity.js';
|
|
2
2
|
export type { G9CultureContextValue, G9KeyboardState, G9LayoutInfo, G9ProviderCore, G9ShapeStore, G9WindowState, } from './contexts.js';
|
|
3
3
|
export { G9DirectionScope, type G9DirectionScopeProps } from './direction-scope.js';
|
|
4
|
-
export { type G9WindowInfo, useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window, } from './hooks.js';
|
|
4
|
+
export { type G9WindowInfo, useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window, useG9Word, } from './hooks.js';
|
|
5
5
|
export { G9KeepAlive, type G9KeepAliveProps } from './keep-alive.js';
|
|
6
6
|
export { type G9PreviewOverrides, G9Provider, type G9ProviderProps } from './provider.js';
|
|
7
7
|
export { type G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9LayoutSettings, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,KAAK,YAAY,EACjB,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,KAAK,YAAY,EACjB,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,WAAW,EACX,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,CAAC"}
|
package/dist/provider/index.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { G9Activity } from "./activity.jsx";
|
|
2
2
|
export { G9DirectionScope } from "./direction-scope.jsx";
|
|
3
|
-
export { useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window } from "./hooks.jsx";
|
|
3
|
+
export { useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window, useG9Word } from "./hooks.jsx";
|
|
4
4
|
export { G9KeepAlive } from "./keep-alive.jsx";
|
|
5
5
|
export { G9Provider } from "./provider.jsx";
|
|
6
6
|
export { g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings } from "./settings.jsx";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"survey.d.ts","sourceRoot":"","sources":["../../src/survey/survey.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EACL,KAAK,kBAAkB,EAMxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,cAAc,CAAC;AAEvD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,kBAAkB;AAClB,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACvD,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;IAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,yHAAyH;IACzH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,gEAAgE;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,2FAA2F;IAC3F,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,2GAA2G;IAC3G,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,qCAAqC;AACrC,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,kBAAkB;IACtF,QAAQ,CAAC,OAAO,EAAE,SAAS,cAAc,CAAC,CAAC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MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAClC,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAKnB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,SAAS,CAwExG"}
|
package/dist/survey/survey.jsx
CHANGED
|
@@ -190,6 +190,7 @@ function allocate(value, key, delta, total) {
|
|
|
190
190
|
}
|
|
191
191
|
function G9AllocationInput(props) {
|
|
192
192
|
var _props_total, _props_step, _props_defaultValue, _props_format;
|
|
193
|
+
const culture = useG9Culture();
|
|
193
194
|
const total = null != (_props_total = props.total) ? _props_total : 100;
|
|
194
195
|
const step = null != (_props_step = props.step) ? _props_step : 5;
|
|
195
196
|
const zero = Object.fromEntries(props.options.map((o)=>[
|
|
@@ -219,7 +220,10 @@ function G9AllocationInput(props) {
|
|
|
219
220
|
var _value_o_key;
|
|
220
221
|
return a + (null != (_value_o_key = value[o.key]) ? _value_o_key : 0);
|
|
221
222
|
}, 0);
|
|
222
|
-
const fmt = null != (_props_format = props.format) ? _props_format : (n)=>
|
|
223
|
+
const fmt = null != (_props_format = props.format) ? _props_format : (n)=>formatNumber(n, {
|
|
224
|
+
numberingSystem: culture.numberingSystem,
|
|
225
|
+
useGrouping: false
|
|
226
|
+
});
|
|
223
227
|
return <view className={control.className} {...control.idProps} style={control.rootStyle()}>
|
|
224
228
|
<view className="g9-alloc__bar" style={g9RowStyle(control.direction)}>
|
|
225
229
|
{props.options.map((o)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.16",
|
|
4
4
|
"description": "ReactLynx controls and overlay infrastructure: provider/host, sheets, popups, toasts, fields, buttons, pickers, tab view, tab bar, edge panel, swipe rows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"build": "rslib build"
|
|
235
235
|
},
|
|
236
236
|
"dependencies": {
|
|
237
|
-
"@g9tm/lynxcontrols-foundation": "2.5.
|
|
237
|
+
"@g9tm/lynxcontrols-foundation": "2.5.16"
|
|
238
238
|
},
|
|
239
239
|
"peerDependencies": {
|
|
240
240
|
"@lynx-js/react": ">=0.129.3 <0.130.0",
|
|
@@ -13,7 +13,7 @@ Props:
|
|
|
13
13
|
- `placeholder?`: string
|
|
14
14
|
- `onValueChange?`: (value: string, details: { readonly source: G9BarcodeValueSource; }) => void
|
|
15
15
|
- `disabled?`: boolean = false
|
|
16
|
-
- `confirmType?`: 'search' | 'done' | 'send' | '
|
|
16
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'next' | 'go' = "done"
|
|
17
17
|
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
18
18
|
|
|
19
19
|
Example: `<G9BarcodeTextEntry />`
|
|
@@ -11,10 +11,10 @@ Props:
|
|
|
11
11
|
- `hideTick?`: (tick: G9Tick, built: G9BuiltChart) => void
|
|
12
12
|
- `tooltip?`: (index: number) => void
|
|
13
13
|
- `yFormat?`: (v: number) => void
|
|
14
|
+
- `axisWidth?`: number
|
|
14
15
|
- `compareColor?`: color
|
|
15
16
|
- `below?`: (built, plotWidth) => ReactNode
|
|
16
17
|
- `overlay?`: (built, plotWidth, height) => ReactNode
|
|
17
|
-
- `color?`: color
|
|
18
18
|
|
|
19
19
|
Example: `<G9BarChart values={values} />`
|
|
20
20
|
|
|
@@ -29,10 +29,10 @@ Props:
|
|
|
29
29
|
- `hideTick?`: (tick: G9Tick, built: G9BuiltChart) => void
|
|
30
30
|
- `tooltip?`: (index: number) => void
|
|
31
31
|
- `yFormat?`: (v: number) => void
|
|
32
|
+
- `axisWidth?`: number
|
|
32
33
|
- `rangeHeight?`: number
|
|
33
34
|
- `below?`: (built, plotWidth) => ReactNode
|
|
34
35
|
- `overlay?`: (built, plotWidth, height) => ReactNode
|
|
35
|
-
- `everyX?`: number
|
|
36
36
|
|
|
37
37
|
Example: `<G9CandleChart candles={candles} />`
|
|
38
38
|
|
|
@@ -48,9 +48,9 @@ Props:
|
|
|
48
48
|
- `hideTick?`: (tick: G9Tick, built: G9BuiltChart) => void
|
|
49
49
|
- `tooltip?`: (index: number) => void
|
|
50
50
|
- `yFormat?`: (v: number) => void
|
|
51
|
+
- `axisWidth?`: number
|
|
51
52
|
- `below?`: (built, plotWidth) => ReactNode
|
|
52
53
|
- `overlay?`: (built, plotWidth, height) => ReactNode
|
|
53
|
-
- `everyX?`: number
|
|
54
54
|
|
|
55
55
|
Example: `<G9ChartBox build={build} deps={deps} />`
|
|
56
56
|
|
|
@@ -83,10 +83,10 @@ Props:
|
|
|
83
83
|
- `hideTick?`: (tick: G9Tick, built: G9BuiltChart) => void
|
|
84
84
|
- `tooltip?`: (index: number) => void
|
|
85
85
|
- `yFormat?`: (v: number) => void
|
|
86
|
+
- `axisWidth?`: number
|
|
86
87
|
- `below?`: (built, plotWidth) => ReactNode
|
|
87
88
|
- `overlay?`: (built, plotWidth, height) => ReactNode
|
|
88
89
|
- `color?`: color
|
|
89
|
-
- `everyX?`: number
|
|
90
90
|
|
|
91
91
|
Example: `<G9FanChart points={points} />`
|
|
92
92
|
|
|
@@ -137,10 +137,10 @@ Props:
|
|
|
137
137
|
- `hideTick?`: (tick: G9Tick, built: G9BuiltChart) => void
|
|
138
138
|
- `tooltip?`: (index: number) => void
|
|
139
139
|
- `yFormat?`: (v: number) => void
|
|
140
|
+
- `axisWidth?`: number
|
|
140
141
|
- `below?`: (built, plotWidth) => ReactNode
|
|
141
142
|
- `overlay?`: (built, plotWidth, height) => ReactNode
|
|
142
143
|
- `everyX?`: number
|
|
143
|
-
- `floor?`: number
|
|
144
144
|
|
|
145
145
|
Example: `<G9LineChart series={series} />`
|
|
146
146
|
|
|
@@ -192,8 +192,8 @@ Props:
|
|
|
192
192
|
- `hideTick?`: (tick: G9Tick, built: G9BuiltChart) => void
|
|
193
193
|
- `tooltip?`: (index: number) => void
|
|
194
194
|
- `yFormat?`: (v: number) => void
|
|
195
|
+
- `axisWidth?`: number
|
|
195
196
|
- `below?`: (built, plotWidth) => ReactNode
|
|
196
197
|
- `overlay?`: (built, plotWidth, height) => ReactNode
|
|
197
|
-
- `colors?`: string[]
|
|
198
198
|
|
|
199
199
|
Example: `<G9StackedBarChart parts={parts} stacks={stacks} />`
|
|
@@ -89,6 +89,7 @@ Props:
|
|
|
89
89
|
- `displayMode?`: 'dateTime' | 'date' | 'time' | 'relative' | 'relativeDay' = "dateTime"
|
|
90
90
|
- `relativeDayNow?`: () => void
|
|
91
91
|
- `emptyText?`: string = ""
|
|
92
|
+
- `digits?`: 'latin' | 'culture'
|
|
92
93
|
- `utcOffsetMinutes?`: number = 0
|
|
93
94
|
- `accessibilityLabel?`: string
|
|
94
95
|
|
|
@@ -119,7 +119,7 @@ Props:
|
|
|
119
119
|
- `placeholder?`: string
|
|
120
120
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
121
121
|
- `disabled?`: boolean = false
|
|
122
|
-
- `confirmType?`: 'search' | 'done' | 'send' | '
|
|
122
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'next' | 'go' = "done"
|
|
123
123
|
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
124
124
|
|
|
125
125
|
Example: `<G9SearchEntry />`
|
|
@@ -154,7 +154,7 @@ Props:
|
|
|
154
154
|
- `placeholder?`: string
|
|
155
155
|
- `onValueChange?`: (value: string, details: G9ValueChangeDetails) => void
|
|
156
156
|
- `disabled?`: boolean = false
|
|
157
|
-
- `confirmType?`: 'search' | 'done' | 'send' | '
|
|
157
|
+
- `confirmType?`: 'search' | 'done' | 'send' | 'next' | 'go' = "done"
|
|
158
158
|
- `inputType?`: 'number' | 'custom' | 'default' | 'email' | 'phone' | 'url' | 'letters' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'lettersAndNumbers' | 'lettersNumbersSpace' | 'persianLetters' | 'persianLettersAndNumbers' | 'multilingualLettersAndNumbers' | 'noSpecialChars' = "default"
|
|
159
159
|
|
|
160
160
|
Example: `<G9TextEntry />`
|
|
@@ -28,7 +28,7 @@ Props:
|
|
|
28
28
|
- `onError?`: (code: string, message: string) => void
|
|
29
29
|
- `autoPlay?`: boolean = false
|
|
30
30
|
- `fit?`: 'contain' | 'cover'
|
|
31
|
+
- `language?`: string
|
|
31
32
|
- `muted?`: boolean = false
|
|
32
|
-
- `words?`: object
|
|
33
33
|
|
|
34
34
|
Example: `<G9VideoPlayer id="id" src="src" />`
|
|
@@ -11,7 +11,7 @@ Props:
|
|
|
11
11
|
- `value?`: number
|
|
12
12
|
- `onValueChange?`: (value: number) => void
|
|
13
13
|
- `disabled?`: boolean
|
|
14
|
-
- `mode?`: '
|
|
14
|
+
- `mode?`: 'range' | 'single' = "range"
|
|
15
15
|
- `formatValue?`: (value: number) => void
|
|
16
16
|
- `onRangeChange?`: (start: number, end: number) => void
|
|
17
17
|
- `onValueChanged?`: (value: number) => void
|