@g9tm/lynxcontrols 2.5.4 → 2.5.6
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/G9AppBar.md +2 -2
- package/catalog/cards/G9Avatar.md +2 -1
- package/catalog/cards/G9ChoiceList.md +1 -1
- package/catalog/cards/G9ConnectionBanner.md +4 -2
- package/catalog/cards/G9FlatTabBar.md +17 -0
- package/catalog/cards/G9IconSlot.md +1 -1
- package/catalog/cards/G9NumPad.md +5 -1
- package/catalog/cards/G9Photo.md +1 -1
- package/catalog/cards/G9PinEntry.md +2 -2
- package/catalog/cards/G9ProgressBar.md +1 -1
- package/catalog/cards/G9ScrollSpyBar.md +1 -1
- package/catalog/cards/G9Stepper.md +3 -3
- package/catalog/catalog.json +1342 -40
- package/catalog/index.md +4 -3
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/context.d.ts +5 -0
- package/dist/anchor/context.d.ts.map +1 -1
- package/dist/anchor/context.jsx +2 -1
- package/dist/anchor/hooks.d.ts.map +1 -1
- package/dist/anchor/hooks.jsx +6 -1
- package/dist/anchor/index.d.ts +1 -1
- package/dist/anchor/index.d.ts.map +1 -1
- package/dist/anchor/index.jsx +1 -1
- package/dist/anchor/registry.d.ts +5 -0
- package/dist/anchor/registry.d.ts.map +1 -1
- package/dist/button/button.d.ts +4 -0
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/button.jsx +8 -2
- package/dist/button/icon-button.d.ts +2 -0
- package/dist/button/icon-button.d.ts.map +1 -1
- package/dist/button/icon-button.jsx +3 -1
- package/dist/display/display.css +1 -1
- package/dist/display/display.css.map +1 -1
- package/dist/display/figures.d.ts +13 -0
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +43 -12
- package/dist/display/motion-figures.d.ts +7 -0
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +14 -5
- package/dist/display/progress-bar.d.ts +5 -0
- package/dist/display/progress-bar.d.ts.map +1 -1
- package/dist/display/progress-bar.jsx +6 -2
- package/dist/display/shimmer.jsx +1 -1
- package/dist/effects/effects.css +6 -0
- package/dist/effects/effects.css.map +1 -1
- package/dist/effects/effects.d.ts +9 -0
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/effects.jsx +47 -0
- package/dist/fields/editor.d.ts.map +1 -1
- package/dist/fields/editor.jsx +3 -0
- package/dist/fields/extra-entries.css +13 -0
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/extra-entries.d.ts +25 -3
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +48 -9
- package/dist/fields/fields.css +18 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +10 -0
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/pin-entry.d.ts +21 -0
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +17 -8
- package/dist/fields/text-entry.jsx +1 -1
- package/dist/fields/use-text-input.d.ts +2 -0
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +3 -1
- package/dist/header/app-bar.d.ts +7 -1
- package/dist/header/app-bar.d.ts.map +1 -1
- package/dist/header/app-bar.jsx +13 -7
- package/dist/host/bottom-overlays.d.ts +11 -0
- package/dist/host/bottom-overlays.d.ts.map +1 -0
- package/dist/host/bottom-overlays.jsx +18 -0
- package/dist/host/context.d.ts +4 -0
- package/dist/host/context.d.ts.map +1 -0
- package/dist/host/context.jsx +3 -0
- package/dist/host/host.d.ts +3 -3
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +1 -1
- package/dist/icon/icon.css +0 -1
- package/dist/icon/icon.css.map +1 -1
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +2 -1
- package/dist/icon/slot.d.ts +2 -0
- package/dist/icon/slot.d.ts.map +1 -1
- package/dist/icon/slot.jsx +2 -0
- package/dist/layout/scroll-spy.d.ts +5 -0
- package/dist/layout/scroll-spy.d.ts.map +1 -1
- package/dist/layout/scroll-spy.jsx +17 -6
- package/dist/layout/scrollers.d.ts +5 -0
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +23 -3
- package/dist/list/index.d.ts +1 -1
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.jsx +1 -1
- package/dist/list/list.css +6 -0
- package/dist/list/list.css.map +1 -1
- package/dist/list/virtual-list.d.ts +52 -1
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +123 -18
- package/dist/provider/provider.css +1 -1
- package/dist/provider/provider.css.map +1 -1
- package/dist/range-slider/range-slider.css +14 -14
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/step-slider.jsx +8 -8
- package/dist/shell/shell.css +1 -0
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts +14 -2
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +6 -5
- package/dist/survey/survey.css +56 -0
- package/dist/survey/survey.css.map +1 -1
- package/dist/survey/survey.d.ts +9 -0
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +43 -5
- package/dist/tab-bar/flat.d.ts +18 -0
- package/dist/tab-bar/flat.d.ts.map +1 -0
- package/dist/tab-bar/flat.jsx +110 -0
- package/dist/tab-bar/index.d.ts +1 -0
- package/dist/tab-bar/index.d.ts.map +1 -1
- package/dist/tab-bar/index.jsx +1 -0
- package/dist/tab-bar/metrics.d.ts +8 -2
- package/dist/tab-bar/metrics.d.ts.map +1 -1
- package/dist/tab-bar/metrics.jsx +12 -1
- package/dist/tab-bar/tab-bar.css +77 -0
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +4 -0
- package/dist/tabs/tab-view.d.ts.map +1 -1
- package/dist/tabs/tab-view.jsx +10 -3
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +7 -0
- package/dist/toggle/chip-group.d.ts.map +1 -1
- package/dist/toggle/chip-group.jsx +2 -1
- package/dist/toggle/choice.d.ts +10 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +14 -10
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +1 -1
- package/skills/g9-lynx-app/references/components/barcode.md +3 -3
- package/skills/g9-lynx-app/references/components/charts.md +34 -28
- package/skills/g9-lynx-app/references/components/commerce.md +5 -4
- package/skills/g9-lynx-app/references/components/display-1.md +2 -1
- package/skills/g9-lynx-app/references/components/display-2.md +2 -2
- package/skills/g9-lynx-app/references/components/fields.md +7 -3
- package/skills/g9-lynx-app/references/components/header.md +2 -2
- package/skills/g9-lynx-app/references/components/icon.md +1 -1
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/shell.md +4 -2
- package/skills/g9-lynx-app/references/components/survey.md +1 -1
- package/skills/g9-lynx-app/references/components/tab-bar.md +18 -0
- package/skills/g9-lynx-app/references/components/toggle.md +3 -3
- package/skills/g9-lynx-app/references/provider-and-host.md +7 -0
package/dist/header/app-bar.jsx
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import "./header.css";
|
|
2
|
-
import { G9Glyph, g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
2
|
+
import { G9Glyph, G9StringKey, g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
3
3
|
import { memo } from "@lynx-js/react";
|
|
4
4
|
import { g9ChildId, g9RowStyle, useG9Control } from "../base/control.jsx";
|
|
5
5
|
import { G9IconButton } from "../button/icon-button.jsx";
|
|
6
|
-
import { useG9Direction, useG9SafeInsets } from "../provider/hooks.jsx";
|
|
6
|
+
import { useG9Direction, useG9SafeInsets, useG9Strings } from "../provider/hooks.jsx";
|
|
7
7
|
const G9AppBar = memo(function(props) {
|
|
8
8
|
var _props_height, _props_backLabel, _props_start;
|
|
9
9
|
const control = useG9Control(props, 'g9-app-bar');
|
|
10
10
|
const dir = useG9Direction();
|
|
11
|
+
const strings = useG9Strings();
|
|
11
12
|
const insets = useG9SafeInsets();
|
|
12
13
|
const top = false === props.safeTop ? 0 : insets.top;
|
|
13
14
|
const h = null != (_props_height = props.height) ? _props_height : 56;
|
|
14
15
|
const centered = 'center' === props.align;
|
|
15
16
|
const align = centered ? 'center' : 'rtl' === dir ? 'right' : 'left';
|
|
16
17
|
const title = props.title && !props.large ? <view className={`g9-app-bar__titles${centered ? ' g9-app-bar__titles--center' : ''}`}>
|
|
17
|
-
<text className="g9-app-bar__title" text-maxline="1" accessibility-element={true} accessibility-traits="header" style={{
|
|
18
|
+
<text className="g9-app-bar__title" text-maxline="1" accessibility-element={true} accessibility-traits="header" accessibility-label={props.title} style={{
|
|
18
19
|
textAlign: align
|
|
19
20
|
}}>
|
|
20
21
|
{props.title}
|
|
21
22
|
</text>
|
|
22
|
-
{props.subtitle ? <text className="g9-app-bar__subtitle" text-maxline="1" style={{
|
|
23
|
+
{props.subtitle ? <text className="g9-app-bar__subtitle" text-maxline="1" accessibility-element={true} accessibility-label={props.subtitle} style={{
|
|
23
24
|
textAlign: align
|
|
24
25
|
}}>
|
|
25
26
|
{props.subtitle}
|
|
@@ -34,7 +35,12 @@ const G9AppBar = memo(function(props) {
|
|
|
34
35
|
}}>
|
|
35
36
|
{props.onBack ? <G9IconButton {...props.id ? {
|
|
36
37
|
id: g9ChildId(props.id, 'Back')
|
|
37
|
-
} : {}}
|
|
38
|
+
} : {}} {...void 0 !== props.backIcon ? {
|
|
39
|
+
icon: props.backIcon,
|
|
40
|
+
iconMirrorInRtl: true
|
|
41
|
+
} : {
|
|
42
|
+
icon: 'rtl' === dir ? G9Glyph.ArrowForward : G9Glyph.ArrowBack
|
|
43
|
+
}} isGhost buttonSize={40} minimumTouchTarget={44} accessibilityText={null != (_props_backLabel = props.backLabel) ? _props_backLabel : strings.get(G9StringKey.Back)} onPress={()=>{
|
|
38
44
|
var _props_onBack;
|
|
39
45
|
g9Haptic('tap');
|
|
40
46
|
null == (_props_onBack = props.onBack) || _props_onBack.call(props);
|
|
@@ -47,12 +53,12 @@ const G9AppBar = memo(function(props) {
|
|
|
47
53
|
</view> : null}
|
|
48
54
|
</view>
|
|
49
55
|
{props.large && props.title ? <view className="g9-app-bar__large-block">
|
|
50
|
-
<text className="g9-app-bar__large" accessibility-element={true} accessibility-traits="header" style={{
|
|
56
|
+
<text className="g9-app-bar__large" accessibility-element={true} accessibility-traits="header" accessibility-label={props.title} style={{
|
|
51
57
|
textAlign: align
|
|
52
58
|
}}>
|
|
53
59
|
{props.title}
|
|
54
60
|
</text>
|
|
55
|
-
{props.subtitle ? <text className="g9-app-bar__large-subtitle" text-maxline="2" style={{
|
|
61
|
+
{props.subtitle ? <text className="g9-app-bar__large-subtitle" text-maxline="2" accessibility-element={true} accessibility-label={props.subtitle} style={{
|
|
56
62
|
textAlign: align
|
|
57
63
|
}}>
|
|
58
64
|
{props.subtitle}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { G9HostHandle } from './registry.js';
|
|
2
|
+
/** The heights by key and who hears a change (the host's toasts). */
|
|
3
|
+
export interface G9BottomOverlays {
|
|
4
|
+
readonly heights: Map<string, number>;
|
|
5
|
+
readonly listeners: Set<(key: string, height: number | null) => void>;
|
|
6
|
+
}
|
|
7
|
+
/** The host's bottom-overlay registry, created on first use. */
|
|
8
|
+
export declare function bottomOverlaysOf(host: G9HostHandle): G9BottomOverlays;
|
|
9
|
+
/** Sets (or clears with `null` / 0) one bottom overlay's height and tells every listener. */
|
|
10
|
+
export declare function setHostBottomOverlay(host: G9HostHandle, key: string, height: number | null): void;
|
|
11
|
+
//# sourceMappingURL=bottom-overlays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-overlays.d.ts","sourceRoot":"","sources":["../../src/host/bottom-overlays.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC;CACvE;AAED,gEAAgE;AAChE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,gBAAgB,CAMrE;AAED,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAKjG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const FEATURE = 'g9.bottom-overlays';
|
|
2
|
+
function bottomOverlaysOf(host) {
|
|
3
|
+
const existing = host.getFeature(FEATURE);
|
|
4
|
+
if (existing) return existing;
|
|
5
|
+
const created = {
|
|
6
|
+
heights: new Map(),
|
|
7
|
+
listeners: new Set()
|
|
8
|
+
};
|
|
9
|
+
host.attachFeature(FEATURE, created);
|
|
10
|
+
return created;
|
|
11
|
+
}
|
|
12
|
+
function setHostBottomOverlay(host, key, height) {
|
|
13
|
+
const overlays = bottomOverlaysOf(host);
|
|
14
|
+
if (null === height || height <= 0) overlays.heights.delete(key);
|
|
15
|
+
else overlays.heights.set(key, height);
|
|
16
|
+
for (const l of Array.from(overlays.listeners))l(key, null !== height && height > 0 ? height : null);
|
|
17
|
+
}
|
|
18
|
+
export { bottomOverlaysOf, setHostBottomOverlay };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/host/context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,mCAAmC;AACnC,eAAO,MAAM,aAAa,8CAA2C,CAAC"}
|
package/dist/host/host.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { type ReactNode } from '@lynx-js/react';
|
|
|
3
3
|
import { type G9BackResult } from './back.js';
|
|
4
4
|
import { type G9OverlayLayer } from './layers.js';
|
|
5
5
|
import { type G9HostReadinessController } from './readiness.js';
|
|
6
|
-
import { type
|
|
6
|
+
import { type G9HostInsets } from './registry.js';
|
|
7
7
|
import './host.css';
|
|
8
|
+
import { G9HostContext } from './context.js';
|
|
8
9
|
/** How a layer is mounted: in the page tree (default) or in a Lynx `<overlay>` above native views (maps, video). */
|
|
9
10
|
export type G9LayerContainer = 'tree' | 'overlay';
|
|
10
11
|
/** Props of {@link G9Host}. */
|
|
@@ -55,8 +56,7 @@ export interface G9HostProps {
|
|
|
55
56
|
/** How the router leaves the page (pop it). Without it the router cannot close the page. */
|
|
56
57
|
readonly routeClose?: () => void;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
export declare const G9HostContext: import("react").Context<G9HostHandle | null>;
|
|
59
|
+
export { G9HostContext };
|
|
60
60
|
/** The nearest host's insets. */
|
|
61
61
|
export declare const G9HostInsetsContext: import("react").Context<G9HostInsets | null>;
|
|
62
62
|
/** The nearest host's readiness controller. */
|
package/dist/host/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/host/host.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,KAAK,cAAc,EAAQ,MAAM,+BAA+B,CAAC;AAEvG,OAAO,EAIL,KAAK,SAAS,EAOf,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE5D,OAAO,EAAuC,KAAK,cAAc,EAAgB,MAAM,UAAU,CAAC;AAElG,OAAO,EAAuB,KA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
14
|
import { createHostReadiness } from "./readiness.jsx";
|
|
15
15
|
import { hostRegistry } from "./registry.jsx";
|
|
16
16
|
import "./host.css";
|
|
17
|
-
|
|
17
|
+
import { G9HostContext } from "./context.jsx";
|
|
18
18
|
const G9HostInsetsContext = createContext(null);
|
|
19
19
|
const G9HostReadinessContext = createContext(null);
|
|
20
20
|
const OVERLAY_LAYERS = g9LayerOrder.filter((layer)=>'content' !== layer);
|
package/dist/icon/icon.css
CHANGED
package/dist/icon/icon.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/icon/icon.css"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["webpack://./src/icon/icon.css"],"names":[],"mappings":"AAMA;EALE,oBAAoB;EACpB,cAAc;EACd,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;AAQA;EALE,kBAAkB;EAClB,cAAc;AAChB;;AAQA;EALE,aAAa;EACb,gBAAgB;AAClB;;AASA;EANE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;AAChB;;AAUA;EAPE,oBAAoB;EACpB,cAAc;AAChB;;AAUA;EAPE,UAAU;EACV,oBAAoB;EACpB,QAAQ;EACR,SAAS;AACX","sourcesContent":["/*\n * G9Icon: a fixed size box, never a touch target (MAUI G9Controls.md §10b). The picture is always left-to-right (the\n * glyph, below): an icon renders as authored and RTL mirroring is the caller's explicit choice (mirrorInRtl). The box\n * itself keeps the page's direction, so an app's logical margins on it (`ms-*` / `me-*` with CSS inheritance) keep the\n * reading side in right to left (G9Hub, 2.5.6: icons stuck to their text in Persian menus).\n */\n.g9-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n flex-shrink: 0;\n}\n\n.g9-icon__glyph {\n text-align: center;\n direction: ltr;\n}\n\n.g9-icon__clip {\n display: flex;\n overflow: hidden;\n}\n\n/* An emoji slot: no fixed height, an emoji renders taller than its em square (MAUI G9IconFactory.Create). */\n.g9-icon-emoji {\n text-align: center;\n direction: ltr;\n pointer-events: none;\n}\n\n/* G9Swatch: a variety colour circle in an icon slot (MAUI G9Visuals.CreateSwatch); size and fill are inline. */\n.g9-swatch {\n flex-shrink: 0;\n pointer-events: none;\n}\n\n.g9-icon-empty {\n width: 0;\n height: 0;\n opacity: 0;\n pointer-events: none;\n}\n"],"sourceRoot":""}
|
package/dist/icon/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,MAAM,IAAI,WAAW,EAC1B,KAAK,aAAa,EAQnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAqD,MAAM,gBAAgB,CAAC;AASzG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,YAAY,CAAC;AAEpB,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc,yDAAwB,CAAC;AAEpD,0GAA0G;AAC1G,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE5E,+BAA+B;AAC/B,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qGAAqG;IACrG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CA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C,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,gGAAgG;IAChG,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAiBhB,CAAC;AAEH,sHAAsH;AACtH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAWjF;AAED,sHAAsH;AACtH,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,mDAgFjB,CAAC"}
|
package/dist/icon/icon.jsx
CHANGED
|
@@ -128,7 +128,8 @@ const G9Icon = memo(function(props) {
|
|
|
128
128
|
color,
|
|
129
129
|
weight
|
|
130
130
|
]);
|
|
131
|
-
const
|
|
131
|
+
const directional = (null == pack ? void 0 : pack.mirror) === true || isFontIcon(icon) && true === icon.mirror;
|
|
132
|
+
const mirrored = (null != (_props_mirrorInRtl = props.mirrorInRtl) ? _props_mirrorInRtl : directional) && (null == culture ? void 0 : culture.culture.direction) === 'rtl';
|
|
132
133
|
const box = {
|
|
133
134
|
width: `${size}px`,
|
|
134
135
|
height: `${size}px`,
|
package/dist/icon/slot.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface G9IconSlotProps extends G9IconSlotInput {
|
|
|
35
35
|
readonly imageCornerRadius?: number;
|
|
36
36
|
/** Stroke weight of built-in glyphs. Default 1. */
|
|
37
37
|
readonly weight?: number;
|
|
38
|
+
/** Mirror the icon in right-to-left (a back chevron): G9Icon's `mirrorInRtl`. Default the icon's own (a pack's list). */
|
|
39
|
+
readonly mirrorInRtl?: boolean;
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
40
42
|
* Renders one icon slot (MAUI `G9IconFactory.Create`): an emoji as text (no fixed height, an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AC,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,mDAAmD;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,yHAAyH;IACzH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,CAkC5D"}
|
package/dist/icon/slot.jsx
CHANGED
|
@@ -42,6 +42,8 @@ function G9IconSlot(props) {
|
|
|
42
42
|
</text>;
|
|
43
43
|
if (hasIconValue(props.icon)) return <G9Icon icon={props.icon} size={size} color={color} {...props.weight ? {
|
|
44
44
|
weight: props.weight
|
|
45
|
+
} : {}} {...void 0 !== props.mirrorInRtl ? {
|
|
46
|
+
mirrorInRtl: props.mirrorInRtl
|
|
45
47
|
} : {}}/>;
|
|
46
48
|
const image = resolveIconImageSource(props.imagePath, props.image);
|
|
47
49
|
if (image) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from '@lynx-js/react';
|
|
2
|
+
import type { G9IconInput } from '../icon/icon.js';
|
|
2
3
|
/** Props of {@link G9ScrollSpyBar}. */
|
|
3
4
|
export interface G9ScrollSpyBarProps<K extends string = string> {
|
|
4
5
|
readonly id?: string;
|
|
@@ -7,6 +8,10 @@ export interface G9ScrollSpyBarProps<K extends string = string> {
|
|
|
7
8
|
readonly key: K;
|
|
8
9
|
readonly label: string;
|
|
9
10
|
readonly count?: number;
|
|
11
|
+
/** The section's icon in its pill (a menu category's own). */
|
|
12
|
+
readonly icon?: G9IconInput;
|
|
13
|
+
/** The section reads muted (a category closed right now; SAC shows a clock icon with it). */
|
|
14
|
+
readonly muted?: boolean;
|
|
10
15
|
}[];
|
|
11
16
|
/** The section in view. */
|
|
12
17
|
readonly active: K | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-spy.d.ts","sourceRoot":"","sources":["../../src/layout/scroll-spy.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"scroll-spy.d.ts","sourceRoot":"","sources":["../../src/layout/scroll-spy.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAInE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,uCAAuC;AACvC,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC5D,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAC1B,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;QAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QACxB,8DAA8D;QAC9D,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;QAC5B,6FAA6F;QAC7F,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;KAC1B,EAAE,CAAC;IACJ,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IAC1B,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;CACrC;AAED,0IAA0I;AAC1I,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,SAAS,CA4ClG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
2
2
|
import { useEffect, useRef } from "@lynx-js/react";
|
|
3
|
-
import {
|
|
3
|
+
import { G9HorizontalStripContext } from "../anchor/context.jsx";
|
|
4
|
+
import { g9ChildId, g9IdProps, g9RowStyle } from "../base/control.jsx";
|
|
4
5
|
import { invokeNode } from "../fields/use-text-input.jsx";
|
|
5
6
|
import { useG9Direction } from "../provider/hooks.jsx";
|
|
6
7
|
import { G9Chip } from "../toggle/choice.jsx";
|
|
@@ -23,16 +24,26 @@ function G9ScrollSpyBar(props) {
|
|
|
23
24
|
props.active
|
|
24
25
|
]);
|
|
25
26
|
return <scroll-view className={`g9-spy${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)} scroll-orientation="horizontal">
|
|
26
|
-
<
|
|
27
|
-
|
|
27
|
+
<G9HorizontalStripContext.Provider value={true}>
|
|
28
|
+
<view className="g9-spy__row" style={g9RowStyle(dir)}>
|
|
29
|
+
{props.sections.map((s)=><view key={s.key} ref={(r)=>{
|
|
28
30
|
pills.current.set(s.key, r);
|
|
29
31
|
}}>
|
|
30
|
-
|
|
32
|
+
<G9Chip {...props.id ? {
|
|
33
|
+
id: g9ChildId(props.id, s.key)
|
|
34
|
+
} : {}} text={void 0 !== s.count ? `${s.label} ${s.count}` : s.label} selected={s.key === props.active} appearance={s.key === props.active ? 'solid' : 'soft'} size="sm" {...s.icon ? {
|
|
35
|
+
icon: s.icon
|
|
36
|
+
} : {}} {...s.muted && s.key !== props.active ? {
|
|
37
|
+
style: {
|
|
38
|
+
opacity: 0.55
|
|
39
|
+
}
|
|
40
|
+
} : {}} onPress={()=>{
|
|
31
41
|
g9Haptic('select');
|
|
32
42
|
props.onSelect(s.key);
|
|
33
43
|
}}/>
|
|
34
|
-
|
|
35
|
-
|
|
44
|
+
</view>)}
|
|
45
|
+
</view>
|
|
46
|
+
</G9HorizontalStripContext.Provider>
|
|
36
47
|
</scroll-view>;
|
|
37
48
|
}
|
|
38
49
|
export { G9ScrollSpyBar };
|
|
@@ -96,6 +96,11 @@ export interface G9PageProps extends Common {
|
|
|
96
96
|
* e.g. a `G9Page` with a `G9TabBar` as its footer (LC-23). Default false.
|
|
97
97
|
*/
|
|
98
98
|
readonly safeBottom?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Bottom toasts sit above the footer: the page measures its footer and tells the nearest `G9Host`'s toasts (a bottom
|
|
101
|
+
* overlay, cleared when the page or its footer goes). Default true; false lets toasts cover the footer.
|
|
102
|
+
*/
|
|
103
|
+
readonly toastsAboveFooter?: boolean;
|
|
99
104
|
readonly children?: ReactNode;
|
|
100
105
|
}
|
|
101
106
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollers.d.ts","sourceRoot":"","sources":["../../src/layout/scrollers.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"scrollers.d.ts","sourceRoot":"","sources":["../../src/layout/scrollers.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,SAAS,EAAoD,MAAM,gBAAgB,CAAC;AAElG,OAAO,EAAE,KAAK,WAAW,EAA+C,MAAM,iBAAiB,CAAC;AAKhG,UAAU,MAAM;IACd,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;CAC9B;AAQD,kCAAkC;AAClC,MAAM,WAAW,cAAe,SAAQ,MAAM;IAC5C,8FAA8F;IAC9F,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,oGAAoG;IACpG,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACpC,yCAAyC;IACzC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,QAAQ,CAAC,OAAO,CAA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
|
2
|
+
import { useContext, useEffect, useMemo, useRef, useState } from "@lynx-js/react";
|
|
3
|
+
import { G9HorizontalStripContext } from "../anchor/context.jsx";
|
|
3
4
|
import { g9IdProps, g9RowStyle, g9SafeId, mergeStyle } from "../base/control.jsx";
|
|
5
|
+
import { setHostBottomOverlay } from "../host/bottom-overlays.jsx";
|
|
6
|
+
import { G9HostContext } from "../host/context.jsx";
|
|
4
7
|
import { useG9Core, useG9Direction, useG9Layout, useG9SafeInsets } from "../provider/hooks.jsx";
|
|
5
8
|
const cls = (base, extra)=>extra ? `${base} ${extra}` : base;
|
|
6
9
|
function G9HScroll(props) {
|
|
@@ -77,7 +80,7 @@ function G9HScroll(props) {
|
|
|
77
80
|
minWidth: `${box}px`
|
|
78
81
|
} : {}
|
|
79
82
|
}} bindlayoutchange={(e)=>measured('run', Math.round(e.detail.width))}>
|
|
80
|
-
{props.children}
|
|
83
|
+
<G9HorizontalStripContext.Provider value={true}>{props.children}</G9HorizontalStripContext.Provider>
|
|
81
84
|
</view>
|
|
82
85
|
</scroll-view>
|
|
83
86
|
{fade ? <view className="g9-hscroll__fade" user-interaction-enabled={false} style={{
|
|
@@ -207,6 +210,7 @@ function G9SplitPane(props) {
|
|
|
207
210
|
<view className="g9-split__detail">{props.children}</view>
|
|
208
211
|
</view>;
|
|
209
212
|
}
|
|
213
|
+
let pageSeq = 0;
|
|
210
214
|
function G9Page(props) {
|
|
211
215
|
var _props_gutter, _ref, _g_desktop, _g_tablet, _props_maxWidth;
|
|
212
216
|
const { layout } = useG9Layout();
|
|
@@ -219,6 +223,20 @@ function G9Page(props) {
|
|
|
219
223
|
const gutter = 'number' == typeof g ? g : 'desktop' === layout ? null != (_ref = null != (_g_desktop = g.desktop) ? _g_desktop : g.tablet) ? _ref : g.phone : 'tablet' === layout ? null != (_g_tablet = g.tablet) ? _g_tablet : g.phone : g.phone;
|
|
220
224
|
const maxWidth = null != (_props_maxWidth = props.maxWidth) ? _props_maxWidth : 1360;
|
|
221
225
|
const fixed = false === props.scroll;
|
|
226
|
+
const host = useContext(G9HostContext);
|
|
227
|
+
const overlayKey = useMemo(()=>`g9-page-footer-${++pageSeq}`, []);
|
|
228
|
+
const [footerHeight, setFooterHeight] = useState(0);
|
|
229
|
+
const clears = false !== props.toastsAboveFooter && void 0 !== props.footer && null !== props.footer;
|
|
230
|
+
useEffect(()=>{
|
|
231
|
+
if (!host || !clears || footerHeight <= 0) return;
|
|
232
|
+
setHostBottomOverlay(host, overlayKey, footerHeight);
|
|
233
|
+
return ()=>setHostBottomOverlay(host, overlayKey, null);
|
|
234
|
+
}, [
|
|
235
|
+
host,
|
|
236
|
+
clears,
|
|
237
|
+
footerHeight,
|
|
238
|
+
overlayKey
|
|
239
|
+
]);
|
|
222
240
|
const inner = <view className={fixed ? 'g9-page__content g9-page__content--fill' : 'g9-page__content'} style={{
|
|
223
241
|
paddingLeft: `${gutter}px`,
|
|
224
242
|
paddingRight: `${gutter}px`,
|
|
@@ -238,7 +256,9 @@ function G9Page(props) {
|
|
|
238
256
|
} : void 0, props.style)}>
|
|
239
257
|
{props.header}
|
|
240
258
|
{body}
|
|
241
|
-
{props.footer ? <view className="g9-page__footer"
|
|
259
|
+
{props.footer ? <view className="g9-page__footer" bindlayoutchange={(e)=>setFooterHeight(Math.round(e.detail.height))}>
|
|
260
|
+
{props.footer}
|
|
261
|
+
</view> : null}
|
|
242
262
|
{props.safeBottom && insets.bottom > 0 ? <view className="g9-page__safe-bottom" style={{
|
|
243
263
|
height: `${insets.bottom}px`
|
|
244
264
|
}}/> : null}
|
package/dist/list/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { dropIndex, G9DragList, type G9DragListProps, G9PullToRefresh, type G9PullToRefreshProps, moveItem, } from './gestures.js';
|
|
2
2
|
export { G9ListRow, type G9ListRowProps, G9Pager, type G9PagerProps, G9SettingsGroup, type G9SettingsGroupProps, G9SwitchRow, type G9SwitchRowProps, } from './rows.js';
|
|
3
|
-
export { G9VirtualList, type G9VirtualListProps, g9ListFirstBatch, g9ListNextBatch, g9ListProgressiveFrom, } from './virtual-list.js';
|
|
3
|
+
export { G9VirtualList, type G9VirtualListHandle, type G9VirtualListProps, g9LastRowWatcher, g9ListFirstBatch, g9ListNextBatch, g9ListProgressiveFrom, g9ReadableLanding, } from './virtual-list.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/list/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,oBAAoB,EACzB,QAAQ,GACT,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,OAAO,EACP,KAAK,YAAY,EACjB,eAAe,EACf,KAAK,oBAAoB,EACzB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,oBAAoB,EACzB,QAAQ,GACT,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,OAAO,EACP,KAAK,YAAY,EACjB,eAAe,EACf,KAAK,oBAAoB,EACzB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
|
package/dist/list/index.jsx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { G9DragList, G9PullToRefresh, dropIndex, moveItem } from "./gestures.jsx";
|
|
2
2
|
export { G9ListRow, G9Pager, G9SettingsGroup, G9SwitchRow } from "./rows.jsx";
|
|
3
|
-
export { G9VirtualList, g9ListFirstBatch, g9ListNextBatch, g9ListProgressiveFrom } from "./virtual-list.jsx";
|
|
3
|
+
export { G9VirtualList, g9LastRowWatcher, g9ListFirstBatch, g9ListNextBatch, g9ListProgressiveFrom, g9ReadableLanding } from "./virtual-list.jsx";
|
package/dist/list/list.css
CHANGED
package/dist/list/list.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/list/list.css"],"names":[],"mappings":"AACA;EAAE,mCAAmC;EACnC,mBAAmB;EACnB,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;AACpB;;AAGA;EAAE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;AACxC;;AAGA;EAAE,0CAA0C;AAC5C;;AAGA;EAAE,UAAU;EACV,kBAAkB;EAClB,MAAM;EACN,SAAS;AACX;;AAIA;EADE,OAAO;AACT;;AAIA;EADE,QAAQ;AACV;;AAIA;EADE,mBAAmB;EACnB,cAAc;EACd,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAIA;EADE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;AACf;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,iBAAiB;AACnB;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;AACnB;;AAIA;EADE,eAAe;EACf,oCAAoC;EACpC,iBAAiB;EACjB,iBAAiB;AACnB;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;EAC9B,eAAe;EACf,iBAAiB;AACnB;;AAIA;EADE,sBAAs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V,YAAY;EACZ,mCAAmC;EACnC,gCAAgC;AAClC","sourcesContent":["/* G9ListRow, G9SettingsGroup, G9Pager, G9VirtualList. */\n.g9-list-row {\n display: flex;\n align-items: center;\n position: relative;\n column-gap: 12px;\n padding: 8px 16px;\n background-color: var(--g9-surface);\n}\n\n.g9-list-row--divider {\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-list-row--pressable {\n transition: background-color 120ms ease-out;\n}\n\n.g9-list-row__edge {\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 3px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-list-row__edge--ltr {\n left: 0px;\n}\n\n.g9-list-row__edge--rtl {\n right: 0px;\n}\n\n.g9-list-row__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 36px;\n border-radius: 11px;\n flex-shrink: 0;\n}\n\n.g9-list-row__text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-list-row__title {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 24px;\n color: var(--g9-text-primary);\n}\n\n.g9-list-row__title--plain {\n font-size: 14px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-list-row__title--strong {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n line-height: 21px;\n font-weight: bold;\n}\n\n.g9-list-row__hint {\n font-size: 11px;\n font-family: var(--g9-font-text);\n line-height: 16px;\n color: var(--g9-text-tertiary);\n margin-top: 2px;\n}\n\n.g9-list-row__title--danger {\n color: var(--g9-error);\n font-family: var(--g9-font-text);\n}\n\n.g9-list-row__subtitle {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 19px;\n color: var(--g9-text-secondary);\n}\n\n.g9-list-row__value {\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n flex-shrink: 0;\n max-width: 45%;\n}\n\n.g9-settings {\n display: flex;\n flex-direction: column;\n row-gap: 6px;\n}\n\n.g9-settings__title {\n padding: 0px 4px;\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-secondary);\n}\n\n.g9-settings__description {\n padding: 0px 4px;\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 19px;\n color: var(--g9-text-tertiary);\n}\n\n.g9-settings__card {\n display: flex;\n flex-direction: column;\n border-radius: var(--g9-radius-card);\n overflow: hidden;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n background-color: var(--g9-surface);\n}\n\n.g9-settings__footer {\n display: flex;\n flex-direction: column;\n padding: 0px 4px;\n}\n\n.g9-pager {\n display: flex;\n align-items: center;\n justify-content: center;\n column-gap: 12px;\n padding: 8px 0px;\n}\n\n.g9-pager__btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 20px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-pager__btn--off {\n opacity: 0.35;\n}\n\n.g9-pager__label {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-vlist {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-vlist--empty {\n display: flex;\n flex-direction: column;\n}\n\n/* G9PullToRefresh */\n.g9-ptr {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0px;\n overflow: hidden;\n}\n\n.g9-ptr__indicator {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-ptr__scroll {\n flex: 1;\n min-height: 0px;\n}\n\n/* G9DragList */\n.g9-drag-list {\n position: relative;\n}\n\n.g9-drag-list__row {\n position: absolute;\n left: 0px;\n right: 0px;\n display: flex;\n flex-direction: column;\n}\n\n.g9-drag-list__row--lifted {\n z-index: 2;\n opacity: 0.95;\n box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.22);\n background-color: var(--g9-surface);\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://./src/list/list.css"],"names":[],"mappings":"AACA;EAAE,mCAAmC;EACnC,mBAAmB;EACnB,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;AACpB;;AAGA;EAAE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;AACxC;;AAGA;EAAE,0CAA0C;AAC5C;;AAGA;EAAE,UAAU;EACV,kBAAkB;EAClB,MAAM;EACN,SAAS;AACX;;AAIA;EADE,OAAO;AACT;;AAIA;EADE,QAAQ;AACV;;AAIA;EADE,mBAAmB;EACnB,cAAc;EACd,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAIA;EADE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;AACf;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,iBAAiB;AACnB;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;AACnB;;AAIA;EADE,eAAe;EACf,oCAAoC;EACpC,iBAAiB;EACjB,iBAAiB;AACnB;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;EAC9B,eAAe;EACf,iBAAiB;AACnB;;AAIA;EADE,sBAAsB;EACtB,gCAAgC;AAClC;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;AACnB;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,cAAc;EACd,cAAc;AAChB;;AAIA;EADE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAIA;EADE,eAAe;EACf,oCAAoC;EACpC,+BAA+B;EAC/B,cAAc;EACd,gBAAgB;AAClB;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;EAC9B,cAAc;EACd,iBAAiB;AACnB;;AAIA;EADE,oCAAoC;EACpC,mBAAmB;EACnB,iBAAiB;EACjB,mCAAmC;EACnC,mCAAmC;EACnC,sBAAsB;EACtB,aAAa;EACb,gBAAgB;AAClB;;AAIA;EADE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAIA;EADE,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,cAAc;EACd,aAAa;AACf;;AAIA;EADE,kDAAkD;EAClD,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAIA;EADE,YAAY;AACd;;AAIA;EADE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAIA;EADE,OAAO;EACP,aAAa;AACf;;AAIA;EADE,sBAAsB;EACtB,aAAa;AACf;;AAKA;EAFE,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAKA;EAFE,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;AACV;;AAKA;EAFE,OAAO;EACP,aAAa;AACf;;AAMA;EAHE,kBAAkB;AACpB;;AAMA;EAHE,sBAAsB;EACtB,aAAa;EACb,kBAAkB;EAClB,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,UAAU;EACV,YAAY;EACZ,mCAAmC;EACnC,gCAAgC;AAClC;;AAOA;EAJE,sBAAsB;EACtB,WAAW;EACX,aAAa;AACf","sourcesContent":["/* G9ListRow, G9SettingsGroup, G9Pager, G9VirtualList. */\n.g9-list-row {\n display: flex;\n align-items: center;\n position: relative;\n column-gap: 12px;\n padding: 8px 16px;\n background-color: var(--g9-surface);\n}\n\n.g9-list-row--divider {\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-list-row--pressable {\n transition: background-color 120ms ease-out;\n}\n\n.g9-list-row__edge {\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 3px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-list-row__edge--ltr {\n left: 0px;\n}\n\n.g9-list-row__edge--rtl {\n right: 0px;\n}\n\n.g9-list-row__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 36px;\n border-radius: 11px;\n flex-shrink: 0;\n}\n\n.g9-list-row__text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-list-row__title {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 24px;\n color: var(--g9-text-primary);\n}\n\n.g9-list-row__title--plain {\n font-size: 14px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-list-row__title--strong {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n line-height: 21px;\n font-weight: bold;\n}\n\n.g9-list-row__hint {\n font-size: 11px;\n font-family: var(--g9-font-text);\n line-height: 16px;\n color: var(--g9-text-tertiary);\n margin-top: 2px;\n}\n\n.g9-list-row__title--danger {\n color: var(--g9-error);\n font-family: var(--g9-font-text);\n}\n\n.g9-list-row__subtitle {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 19px;\n color: var(--g9-text-secondary);\n}\n\n.g9-list-row__value {\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n flex-shrink: 0;\n max-width: 45%;\n}\n\n.g9-settings {\n display: flex;\n flex-direction: column;\n row-gap: 6px;\n}\n\n.g9-settings__title {\n padding: 0px 4px;\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-secondary);\n}\n\n.g9-settings__description {\n padding: 0px 4px;\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 19px;\n color: var(--g9-text-tertiary);\n}\n\n.g9-settings__card {\n display: flex;\n flex-direction: column;\n border-radius: var(--g9-radius-card);\n overflow: hidden;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n background-color: var(--g9-surface);\n}\n\n.g9-settings__footer {\n display: flex;\n flex-direction: column;\n padding: 0px 4px;\n}\n\n.g9-pager {\n display: flex;\n align-items: center;\n justify-content: center;\n column-gap: 12px;\n padding: 8px 0px;\n}\n\n.g9-pager__btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 20px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-pager__btn--off {\n opacity: 0.35;\n}\n\n.g9-pager__label {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-vlist {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-vlist--empty {\n display: flex;\n flex-direction: column;\n}\n\n/* G9PullToRefresh */\n.g9-ptr {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0px;\n overflow: hidden;\n}\n\n.g9-ptr__indicator {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-ptr__scroll {\n flex: 1;\n min-height: 0px;\n}\n\n/* G9DragList */\n.g9-drag-list {\n position: relative;\n}\n\n.g9-drag-list__row {\n position: absolute;\n left: 0px;\n right: 0px;\n display: flex;\n flex-direction: column;\n}\n\n.g9-drag-list__row--lifted {\n z-index: 2;\n opacity: 0.95;\n box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.22);\n background-color: var(--g9-surface);\n}\n\n/* A readable list's last row is measured through this wrapper (its height decides how it lands). */\n.g9-vlist__measure {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n"],"sourceRoot":""}
|
|
@@ -30,8 +30,19 @@ export interface G9VirtualListProps<T> {
|
|
|
30
30
|
/**
|
|
31
31
|
* Items added at the end scroll into view while the person is at the end (a chat: a new message shows; someone
|
|
32
32
|
* reading older messages is left where they are). Default: on with `startAtEnd`.
|
|
33
|
+
*
|
|
34
|
+
* `'readable'` (a chat whose replies can be long; ShopManager, 2.5.6): a new last item that fits comes fully into
|
|
35
|
+
* view with `endGap` under it; one taller than the list (less two gaps) stops with its top `endGap` below the list's
|
|
36
|
+
* top, so it reads from its start. A finger on the list holds the landing until it lifts; the last item growing (a
|
|
37
|
+
* reply revealed word by word) lands it again while the list still follows.
|
|
33
38
|
*/
|
|
34
|
-
readonly followEnd?: boolean;
|
|
39
|
+
readonly followEnd?: boolean | 'readable';
|
|
40
|
+
/** The gap a readable landing keeps (dp). Default 14. */
|
|
41
|
+
readonly endGap?: number;
|
|
42
|
+
/** Receives the list's handle (`scrollToKey`). */
|
|
43
|
+
readonly handleRef?: {
|
|
44
|
+
current: G9VirtualListHandle | null;
|
|
45
|
+
};
|
|
35
46
|
readonly initialIndex?: number;
|
|
36
47
|
/** Called when the list nears its end (load the next page). */
|
|
37
48
|
readonly onEndReached?: () => void;
|
|
@@ -79,6 +90,46 @@ export interface G9VirtualListProps<T> {
|
|
|
79
90
|
*/
|
|
80
91
|
readonly reuseKey?: (item: T, index: number) => string;
|
|
81
92
|
}
|
|
93
|
+
/** What {@link G9VirtualListProps.handleRef} receives. */
|
|
94
|
+
export interface G9VirtualListHandle {
|
|
95
|
+
/** Scrolls to the item with this key: its top (`'start'`, default) or bottom (`'end'`) at the list's edge. */
|
|
96
|
+
scrollToKey(key: string, options?: {
|
|
97
|
+
readonly align?: 'start' | 'end';
|
|
98
|
+
readonly smooth?: boolean;
|
|
99
|
+
readonly offset?: number;
|
|
100
|
+
}): boolean;
|
|
101
|
+
/** Lands the end again by the list's rule (a reply finished revealing); held while a finger is down. */
|
|
102
|
+
land(): void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Where a readable list lands its new last item: one that fits (its height within the list's less two gaps) at the
|
|
106
|
+
* bottom with `gap` under it; a taller one at the top, `gap` below the list's top, so it reads from its start. Lynx's
|
|
107
|
+
* list moves the item down by `offset` after aligning it. An unmeasured list (height 0) lands at the bottom.
|
|
108
|
+
*/
|
|
109
|
+
export declare function g9ReadableLanding(listHeight: number, itemHeight: number, gap: number): {
|
|
110
|
+
readonly alignTo: 'top' | 'bottom';
|
|
111
|
+
readonly offset: number;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Watches the last row's height (a readable list): each measured height goes in; a growth of more than 1 dp while the
|
|
115
|
+
* list follows its end lands it again `delayMs` later (a reply revealing word by word), the newest growth winning.
|
|
116
|
+
* Returns the height feed and a stop (clears a pending landing).
|
|
117
|
+
*/
|
|
118
|
+
export declare function g9LastRowWatcher(o: {
|
|
119
|
+
/** Whether the list follows its end now (read on each growth). */
|
|
120
|
+
readonly following: {
|
|
121
|
+
readonly current: boolean;
|
|
122
|
+
};
|
|
123
|
+
/** The landing to run (read when it fires). */
|
|
124
|
+
readonly land: {
|
|
125
|
+
readonly current: (() => void) | null;
|
|
126
|
+
};
|
|
127
|
+
readonly delayMs?: number;
|
|
128
|
+
}): {
|
|
129
|
+
readonly measured: (height: number) => void;
|
|
130
|
+
readonly height: () => number;
|
|
131
|
+
readonly stop: () => void;
|
|
132
|
+
};
|
|
82
133
|
/** Above this many items a list grows progressively (unless `progressive={false}`). */
|
|
83
134
|
export declare const g9ListProgressiveFrom = 300;
|
|
84
135
|
/** Rows described at first, about two screens; the next batch follows right after the first frame (more when `initialIndex` is further down). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-list.d.ts","sourceRoot":"","sources":["../../src/list/virtual-list.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,EAAQ,KAAK,SAAS,EAAwC,MAAM,gBAAgB,CAAC;AAE5F,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,iBAAiB,CAAC;AAE1E,sCAAsC;AACtC,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,C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