@g9tm/lynxcontrols 2.8.0 → 2.8.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/catalog/cards/G9ComboBox.md +1 -1
- package/catalog/cards/G9NumberEntry.md +1 -1
- package/catalog/cards/G9OutlinedField.md +1 -1
- package/catalog/cards/G9Picker.md +1 -1
- package/catalog/cards/G9TimeEntry.md +1 -1
- package/catalog/cards/G9TimeSpanPicker.md +1 -1
- package/catalog/catalog.json +139 -2
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/fields/outlined-field.d.ts +9 -1
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +15 -6
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/settings.d.ts +13 -2
- package/dist/provider/settings.d.ts.map +1 -1
- package/dist/provider/settings.jsx +5 -2
- package/dist/toast/service.jsx +1 -1
- package/dist/toast/toast.css +3 -0
- package/dist/toast/toast.css.map +1 -1
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +6 -0
- package/skills/g9-lynx-app/references/components/calendar-2.md +1 -1
- package/skills/g9-lynx-app/references/components/fields.md +3 -3
- package/skills/g9-lynx-app/references/components/pickers.md +3 -3
- package/skills/g9-lynx-app/references/components/studio-nle-timeline.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-surface.md +18 -0
- package/skills/g9-lynx-app/references/components/studio-transform-box.md +19 -0
|
@@ -3,7 +3,7 @@ import { G9FilledValueHighlight, type G9ImageSource, type G9NumberingSystem } fr
|
|
|
3
3
|
import { type ReactNode } from '@lynx-js/react';
|
|
4
4
|
import type { G9AnchorInfo } from '../anchor/registry.js';
|
|
5
5
|
import type { G9IconInput } from '../icon/icon.js';
|
|
6
|
-
import type { G9CounterOrder } from '../provider/settings.js';
|
|
6
|
+
import type { G9CounterFormat, G9CounterOrder } from '../provider/settings.js';
|
|
7
7
|
import { type G9PhysicalPadding } from './slot-layout.js';
|
|
8
8
|
/** Props every outlined field shares (the public members of MAUI `G9OutlinedFieldBase`). */
|
|
9
9
|
export interface G9OutlinedFieldProps {
|
|
@@ -62,6 +62,12 @@ export interface G9OutlinedFieldProps {
|
|
|
62
62
|
readonly counterOrder?: G9CounterOrder;
|
|
63
63
|
/** Show the `n / max` counter (only when `maxLength > 0`), in the culture's digits. Default false. */
|
|
64
64
|
readonly showCharacterCounter?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* This field's own counter text; default the app's `settings.fields.counterFormat`, else the culture's digits as
|
|
67
|
+
* «n / max», isolated in the `counterOrder`. The string is drawn as returned: isolate it yourself
|
|
68
|
+
* (`isolateLtr` / `isolateRtl` from the foundation) when it mixes digits with right-to-left text (G9Didban, 2.8.2).
|
|
69
|
+
*/
|
|
70
|
+
readonly counterFormat?: G9CounterFormat;
|
|
65
71
|
/** Status colour (any CSS colour or `g9Token(...)`); used while `useStatusColor`. Default the primary colour. */
|
|
66
72
|
readonly statusColor?: string | null;
|
|
67
73
|
/** Draw the outline in `statusColor` (emphasised) whatever the focus. Default false. */
|
|
@@ -134,6 +140,8 @@ export interface G9OutlinedFieldStateInput {
|
|
|
134
140
|
readonly direction?: 'ltr' | 'rtl';
|
|
135
141
|
/** The app's counter order (`settings.fields.counterOrder`); default `'reading'`. */
|
|
136
142
|
readonly counterOrder?: G9CounterOrder;
|
|
143
|
+
/** The app's counter text (`settings.fields.counterFormat`); a field's own `counterFormat` wins. */
|
|
144
|
+
readonly counterFormat?: G9CounterFormat;
|
|
137
145
|
/** Resting chrome tone: `'outline'` (default) or `'placeholder'` (search). */
|
|
138
146
|
readonly restingTone?: 'outline' | 'placeholder';
|
|
139
147
|
/** The shape's shared md height (G9ShapeSet.sizing 'shared'): the field's height when it names none. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outlined-field.d.ts","sourceRoot":"","sources":["../../src/fields/outlined-field.tsx"],"names":[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,EAAE,MAAM,CAAC;IACxB,kGAAkG;IAClG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAUD,iGAAiG;AACjG,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B,0FAA0F;IAC1F,QAAQ,CAAC,kBAAkB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC1D,oFAAoF;IACpF,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,6FAA6F;IAC7F,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACjD,uGAAuG;IACvG,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,mEAAmE;IACnE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,yBAAyB,GAAG,SAAS,CAyP3E"}
|
|
@@ -25,7 +25,7 @@ function resolveInnerHint(props) {
|
|
|
25
25
|
return owns ? resolveRestingPlaceholder(props) : null;
|
|
26
26
|
}
|
|
27
27
|
function resolveOutlinedFieldState(props, input) {
|
|
28
|
-
var _props_filledValueHighlight, _props_statusColor, _props_errorText, _props_helperText, _props_maxLength, _input_numberingSystem, _ref, _props_counterOrder, _ref1, _props_label, _input_sharedLargeHeight, _input_sharedHeight;
|
|
28
|
+
var _props_filledValueHighlight, _props_statusColor, _props_errorText, _props_helperText, _props_maxLength, _props_counterFormat, _input_numberingSystem, _input_direction, _ref, _props_counterOrder, _ref1, _props_label, _input_sharedLargeHeight, _input_sharedHeight;
|
|
29
29
|
const hasError = true === props.hasError;
|
|
30
30
|
const useStatus = true === props.useStatusColor;
|
|
31
31
|
const filled = input.hasValue || true === input.valueFloated;
|
|
@@ -42,9 +42,15 @@ function resolveOutlinedFieldState(props, input) {
|
|
|
42
42
|
const helperRaw = hasError ? null != (_props_errorText = props.errorText) ? _props_errorText : '' : null != (_props_helperText = props.helperText) ? _props_helperText : '';
|
|
43
43
|
const helperText = '' === helperRaw.trim() ? '' : helperRaw;
|
|
44
44
|
const maxLength = null != (_props_maxLength = props.maxLength) ? _props_maxLength : -1;
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
const counterFormat = null != (_props_counterFormat = props.counterFormat) ? _props_counterFormat : input.counterFormat;
|
|
46
|
+
const numberingSystem = null != (_input_numberingSystem = input.numberingSystem) ? _input_numberingSystem : 'latin';
|
|
47
|
+
const direction = null != (_input_direction = input.direction) ? _input_direction : 'ltr';
|
|
48
|
+
const counterText = true !== props.showCharacterCounter || maxLength <= 0 ? '' : counterFormat ? counterFormat(input.textLength, maxLength, {
|
|
49
|
+
numberingSystem,
|
|
50
|
+
direction
|
|
51
|
+
}) : formatCountOf(input.textLength, maxLength, numberingSystem, {
|
|
52
|
+
direction: 'rtl' === direction && (null != (_ref = null != (_props_counterOrder = props.counterOrder) ? _props_counterOrder : input.counterOrder) ? _ref : 'reading') === 'reading' ? 'rtl' : 'ltr'
|
|
53
|
+
});
|
|
48
54
|
const emphasis = input.focused || hasError || useStatus;
|
|
49
55
|
const halo = true === props.showFocusHalo && input.focused && !hasError && !useStatus;
|
|
50
56
|
const bare = 'plain' === props.appearance || 'code' === props.appearance;
|
|
@@ -73,6 +79,9 @@ function useOutlinedField(props, input) {
|
|
|
73
79
|
numberingSystem: culture.numberingSystem,
|
|
74
80
|
direction: culture.direction,
|
|
75
81
|
counterOrder: settings.fields.counterOrder,
|
|
82
|
+
...settings.fields.counterFormat ? {
|
|
83
|
+
counterFormat: settings.fields.counterFormat
|
|
84
|
+
} : {},
|
|
76
85
|
...input,
|
|
77
86
|
highlightFilledValue: settings.fields.highlightFilledValue,
|
|
78
87
|
sharedHeight: null != (_ref = null == shared ? void 0 : shared.md) ? _ref : null,
|
|
@@ -198,12 +207,12 @@ function G9OutlinedField(props) {
|
|
|
198
207
|
} : {}}>
|
|
199
208
|
{}
|
|
200
209
|
<view className={`g9-field__outline${filled ? ' g9-field__outline--filled' : ''}`} style={bare ? {
|
|
201
|
-
borderColor: props.focused || true === props.hasError
|
|
210
|
+
borderColor: props.focused || true === props.hasError ? state.stateColor : 'var(--g9-outline)',
|
|
202
211
|
borderWidth: '1px',
|
|
203
212
|
borderRadius: radius,
|
|
204
213
|
backgroundColor: 'var(--g9-input-background)'
|
|
205
214
|
} : {
|
|
206
|
-
borderColor:
|
|
215
|
+
borderColor: filled && !props.focused && true !== props.hasError ? 'transparent' : state.stateColor,
|
|
207
216
|
borderWidth: `${filled && !props.focused ? Math.max(1, state.strokeWidth) : state.strokeWidth}px`,
|
|
208
217
|
borderRadius: radius
|
|
209
218
|
}}/>
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export { G9DirectionScope, type G9DirectionScopeProps } from './direction-scope.
|
|
|
4
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
|
-
export { type G9CounterOrder, type G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9LayoutSettings, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
|
|
7
|
+
export { type G9CounterFormat, type G9CounterOrder, type G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9LayoutSettings, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
|
|
8
8
|
export { g9TextFocus, useG9TextFocused, useG9TextFocusReport } from './text-focus.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,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,cAAc,EACnB,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;AACpB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC"}
|
|
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,eAAe,EACpB,KAAK,cAAc,EACnB,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;AACpB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type G9DiagnosticsReport, type G9ErrorPopupRequest, type G9GlyphSlotOverrides, type G9GlyphSlots, type G9IconFontRegistry, type G9ImageSource, type G9SafeExecutorOptions, type G9StringsOptions } from '@g9tm/lynxcontrols-foundation';
|
|
1
|
+
import { type G9DiagnosticsReport, type G9ErrorPopupRequest, type G9GlyphSlotOverrides, type G9GlyphSlots, type G9IconFontRegistry, type G9ImageSource, type G9NumberingSystem, type G9SafeExecutorOptions, type G9StringsOptions } from '@g9tm/lynxcontrols-foundation';
|
|
2
2
|
import type { ReactNode } from '@lynx-js/react';
|
|
3
3
|
import type { G9GuideSettings } from '../guide/settings.js';
|
|
4
4
|
import { type G9PopupSettings } from '../popup/types.js';
|
|
@@ -128,9 +128,20 @@ export interface G9FieldSettings {
|
|
|
128
128
|
* «0 / 4000». Either way the digits are the culture's and the text is isolated.
|
|
129
129
|
*/
|
|
130
130
|
readonly counterOrder?: G9CounterOrder;
|
|
131
|
+
/**
|
|
132
|
+
* Every field's counter text, in place of the default «n / max» (a field's own `counterFormat` wins): receives the
|
|
133
|
+
* count, the maximum, the culture's numbering system and direction, and returns the text drawn as is — «۱۲ از ۴۰۰۰»,
|
|
134
|
+
* «باقیمانده: ۳۹۸۸» (G9Didban, 2.8.2). Isolate it yourself when it mixes digits with right-to-left text.
|
|
135
|
+
*/
|
|
136
|
+
readonly counterFormat?: G9CounterFormat;
|
|
131
137
|
}
|
|
132
138
|
/** The order of a right-to-left field's character counter (see {@link G9FieldSettings.counterOrder}). */
|
|
133
139
|
export type G9CounterOrder = 'reading' | 'leftToRight';
|
|
140
|
+
/** A field's character counter text (see {@link G9FieldSettings.counterFormat}). */
|
|
141
|
+
export type G9CounterFormat = (count: number, max: number, culture: {
|
|
142
|
+
readonly numberingSystem: G9NumberingSystem;
|
|
143
|
+
readonly direction: 'ltr' | 'rtl';
|
|
144
|
+
}) => string;
|
|
134
145
|
/** {@link G9Settings} with every default filled in. */
|
|
135
146
|
export interface G9ResolvedSettings {
|
|
136
147
|
readonly strings: Omit<G9StringsOptions, 'culture'>;
|
|
@@ -141,7 +152,7 @@ export interface G9ResolvedSettings {
|
|
|
141
152
|
readonly pageLoading: Required<G9PageLoadingSettings>;
|
|
142
153
|
readonly executor: G9ExecutorSettings;
|
|
143
154
|
readonly backgroundWorkSuppression: G9Settings['backgroundWorkSuppression'];
|
|
144
|
-
readonly fields: Required<G9FieldSettings>;
|
|
155
|
+
readonly fields: Required<Omit<G9FieldSettings, 'counterFormat'>> & Pick<G9FieldSettings, 'counterFormat'>;
|
|
145
156
|
readonly sheets: Required<G9SheetSettings>;
|
|
146
157
|
readonly popups: G9PopupSettings;
|
|
147
158
|
readonly toggles: Required<G9ToggleSettings>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/provider/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EAEtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,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kBAAkB,CAAC;IACvC,QAAQ,CAAC,aAAa,EAAE,eAAe,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IACtD,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,yBAAyB,EAAE,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAC5E,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,GAAG,IAAI,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;IAC3G,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC7C,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;CAC7C;AAED,2DAA2D;AAC3D,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,4DAA4D;AAC5D,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAajD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,UAAU,GAAG,SAAS,EAChC,iBAAiB,CAAC,EAAE,kBAAkB,GACrC,kBAAkB,CAqCpB"}
|
|
@@ -14,7 +14,7 @@ function nonNegative(name, value, fallback) {
|
|
|
14
14
|
}
|
|
15
15
|
function resolveSettings(settings, fallbackIconFonts) {
|
|
16
16
|
var _s_backEventName, _s_pageLoading, _s_strings, _ref, _s_iconFonts, _loading_backgroundColor, _loading_spinnerColor, _s_executor, _ref1, _ref2, _s_guide, _s_toasts;
|
|
17
|
-
var _s_fields, _s_fields1, _s_toggles, _s_layout;
|
|
17
|
+
var _s_fields, _s_fields1, _s_fields2, _s_toggles, _s_layout;
|
|
18
18
|
const s = null != settings ? settings : {};
|
|
19
19
|
const backEventName = null != (_s_backEventName = s.backEventName) ? _s_backEventName : g9DefaultBackEventName;
|
|
20
20
|
if ('string' != typeof backEventName || '' === backEventName.trim()) throw new G9Error('settings-invalid', 'backEventName must be a non-blank string.');
|
|
@@ -35,7 +35,10 @@ function resolveSettings(settings, fallbackIconFonts) {
|
|
|
35
35
|
backgroundWorkSuppression: s.backgroundWorkSuppression,
|
|
36
36
|
fields: Object.freeze({
|
|
37
37
|
highlightFilledValue: null != (_ref1 = null == (_s_fields = s.fields) ? void 0 : _s_fields.highlightFilledValue) ? _ref1 : true,
|
|
38
|
-
counterOrder: (null == (_s_fields1 = s.fields) ? void 0 : _s_fields1.counterOrder) === 'leftToRight' ? 'leftToRight' : 'reading'
|
|
38
|
+
counterOrder: (null == (_s_fields1 = s.fields) ? void 0 : _s_fields1.counterOrder) === 'leftToRight' ? 'leftToRight' : 'reading',
|
|
39
|
+
...'function' == typeof (null == (_s_fields2 = s.fields) ? void 0 : _s_fields2.counterFormat) ? {
|
|
40
|
+
counterFormat: s.fields.counterFormat
|
|
41
|
+
} : {}
|
|
39
42
|
}),
|
|
40
43
|
sheets: resolveSheetSettings(s.sheets),
|
|
41
44
|
popups: Object.freeze(mergePopupSettings(s.popups, createDefaultPopupSettings())),
|
package/dist/toast/service.jsx
CHANGED
|
@@ -98,7 +98,7 @@ function ToastCard(props) {
|
|
|
98
98
|
{entry.actionText ? <view className="g9-toast__action" accessibility-element={true} accessibility-traits="button" bindtap={action} style={{
|
|
99
99
|
backgroundColor: paletteColor(palette, onBase, 0.16)
|
|
100
100
|
}}>
|
|
101
|
-
<text className="g9-toast__action-text" style={{
|
|
101
|
+
<text className="g9-toast__action-text" text-maxline="1" style={{
|
|
102
102
|
color: on
|
|
103
103
|
}}>
|
|
104
104
|
{entry.actionText}
|
package/dist/toast/toast.css
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.g9-toast__message {
|
|
48
|
+
min-width: 0;
|
|
48
49
|
font-size: 14px;
|
|
49
50
|
font-family: var(--g9-font-text);
|
|
50
51
|
color: var(--g9-on-surface);
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
|
|
73
74
|
.g9-toast__action {
|
|
74
75
|
border-radius: 6px;
|
|
76
|
+
flex-shrink: 0;
|
|
75
77
|
align-items: center;
|
|
76
78
|
height: 32px;
|
|
77
79
|
margin-left: 10px;
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
.g9-toast__action-text {
|
|
87
|
+
white-space: nowrap;
|
|
85
88
|
font-size: 14px;
|
|
86
89
|
font-family: var(--g9-font-text-700);
|
|
87
90
|
font-weight: 700;
|
package/dist/toast/toast.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/toast/toast.css"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,sBAAsB;EACtB,2BAA2B;EAC3B,oBAAoB;EACpB,aAAa;EACb,eAAe;AACjB;;AAMA;EAHE,8BAA8B;AAChC;;AAMA;EAHE,uBAAuB;AACzB;;AAQA;EALE,kBAAkB;AACpB;;AASA;EANE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,mCAAmC;EACnC,oBAAoB;EACpB,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAUA;EAPE,eAAe;EACf,gCAAgC;EAChC,2BAA2B;EAC3B,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;;AAUA;EAPE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;EACjB,kBAAkB;AACpB;;AAWA;EARE,mBAAmB;EACnB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/toast/toast.css"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,sBAAsB;EACtB,2BAA2B;EAC3B,oBAAoB;EACpB,aAAa;EACb,eAAe;AACjB;;AAMA;EAHE,8BAA8B;AAChC;;AAMA;EAHE,uBAAuB;AACzB;;AAQA;EALE,kBAAkB;AACpB;;AASA;EANE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,mCAAmC;EACnC,oBAAoB;EACpB,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAUA;EAPE,YAAY;EACZ,eAAe;EACf,gCAAgC;EAChC,2BAA2B;EAC3B,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;;AAUA;EAPE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;EACjB,kBAAkB;AACpB;;AAWA;EARE,mBAAmB;EACnB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAaA;EAVE,kBAAkB;EAClB,cAAc;EACd,mBAAmB;EACnB,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;AACf;;AAaA;EAVE,mBAAmB;EACnB,eAAe;EACf,oCAAoC;EACpC,gBAAgB;AAClB;;AAaA;EAVE,gBAAgB;AAClB;;AAaA;EAVE,mCAAmC;EACnC,YAAY;EACZ,0BAA0B;EAC1B,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAaA;EAVE,sBAAsB;EACtB,OAAO;EACP,aAAa;AACf;;AAaA;EAVE,6CAA6C;EAC7C,mBAAmB;EACnB,gBAAgB;AAClB;;AAaA;EAVE,eAAe;EACf,oCAAoC;EACpC,qCAAqC;EACrC,gBAAgB;AAClB;;AAaA;EAVE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAaA;EAVE,iCAAiC;EACjC,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAcA;EAXE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,2CAA2C;EAC3C,mBAAmB;EACnB,sBAAsB;EACtB,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;AACf;;AAcA;EAXE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,mCAAmC;EACnC,gBAAgB;AAClB;;AAeA;EAZE,sBAAsB;EACtB,cAAc;EACd,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;AACf;;AAeA;EAZE,cAAc;EACd,eAAe;AACjB;;AAeA;EAZE,eAAe;EACf,gCAAgC;EAChC,WAAW;AACb","sourcesContent":[".g9-toast-layer {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n}\n\n/* Fixed (like .g9-popup): a stack exists only while it holds toasts, so it is created after any open sheet — lynx-ui's\n `position: fixed` SheetView — and lands above it instead of under it. Every stack spans the width between the edge\n margins and its toasts FILL it (MAUI ApplyInlineG9ToastPosition: HorizontalOptions = Fill; the position only picks\n top / middle / bottom). The compact loading toast stays centred (MAUI: Center). */\n.g9-toast-stack {\n position: fixed;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n}\n\n.g9-toast-stack--bottom {\n flex-direction: column-reverse;\n}\n\n.g9-toast-stack--middleLeft,\n.g9-toast-stack--middleCenter,\n.g9-toast-stack--middleRight {\n justify-content: center;\n}\n\n.g9-toast--loading {\n align-self: center;\n}\n\n/* MAUI G9ToastHelper.BuildInlineToastView: radius 10, padding 14 / 12, filled with the type's colour (inline style). */\n.g9-toast {\n display: flex;\n flex-direction: row;\n align-items: center;\n min-height: 48px;\n padding: 12px 14px;\n margin-top: 4px;\n margin-bottom: 4px;\n border-radius: 10px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface);\n overflow: hidden;\n position: relative;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-toast__message {\n flex-shrink: 1;\n min-width: 0px;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-on-surface);\n margin-left: 10px;\n margin-right: 10px;\n}\n\n.g9-toast__detail {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n margin-left: 10px;\n margin-right: 10px;\n}\n\n/* The lifetime countdown (MAUI's fill layer): grows from the reading start, behind the content. */\n.g9-toast__countdown {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n border-radius: 10px;\n}\n\n/* The action never shrinks and its word never breaks: a long message wraps instead (G9Didban, Android 10: «دیدن»\n broke into «دید / ن» beside a long Persian message; 2.8.2). */\n.g9-toast__action {\n flex-shrink: 0;\n border-radius: 6px;\n margin-left: 10px;\n margin-right: 10px;\n height: 32px;\n padding-left: 8px;\n padding-right: 8px;\n display: flex;\n align-items: center;\n}\n\n.g9-toast__action-text {\n white-space: nowrap;\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-toast--progress {\n min-width: 240px;\n}\n\n.g9-toast__fill {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n background-color: var(--g9-primary);\n opacity: 0.34;\n transition: transform 250ms;\n}\n\n.g9-toast__progress-text {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n\n.g9-toast__pill {\n padding: 2px 8px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-toast__pill-text {\n font-size: 12px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary-container);\n}\n\n.g9-loader {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-loader__scrim {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n background-color: var(--g9-scrim);\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-loader__card {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px 24px;\n border-radius: 14px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-inverse-surface);\n}\n\n.g9-loader__text {\n margin-top: 12px;\n font-size: 14px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-inverse-on-surface);\n}\n\n/* A toast's message over its detail (2.5.8). */\n.g9-toast__texts {\n display: flex;\n flex-direction: column;\n flex-shrink: 1;\n min-width: 0px;\n margin-left: 10px;\n margin-right: 10px;\n}\n\n.g9-toast__message--stacked {\n margin-left: 0px;\n margin-right: 0px;\n}\n\n.g9-toast__detail {\n font-size: 12px;\n font-family: var(--g9-font-text);\n opacity: 0.8;\n}\n"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
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.8.
|
|
237
|
+
"@g9tm/lynxcontrols-foundation": "2.8.2"
|
|
238
238
|
},
|
|
239
239
|
"peerDependencies": {
|
|
240
240
|
"@lynx-js/react": ">=0.129.3 <0.130.0",
|
|
@@ -103,3 +103,9 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
|
|
|
103
103
|
## @g9tm/lynxcontrols-richtext
|
|
104
104
|
|
|
105
105
|
- `@g9tm/lynxcontrols-richtext`: G9RichLines, G9RichText, G9RichTextEditor → `components/richtext.md`
|
|
106
|
+
|
|
107
|
+
## @g9tm/lynxcontrols-studio
|
|
108
|
+
|
|
109
|
+
- `@g9tm/lynxcontrols-studio/nle-timeline`: G9NleTimeline → `components/studio-nle-timeline.md`
|
|
110
|
+
- `@g9tm/lynxcontrols-studio/surface`: G9Surface → `components/studio-surface.md`
|
|
111
|
+
- `@g9tm/lynxcontrols-studio/transform-box`: G9TransformBox → `components/studio-transform-box.md`
|
|
@@ -68,6 +68,6 @@ Props:
|
|
|
68
68
|
- `leadingIcon?`: icon
|
|
69
69
|
- `placeholder?`: string
|
|
70
70
|
- `disabled?`: boolean = false
|
|
71
|
-
- `
|
|
71
|
+
- `counterFormat?`: (count: number, max: number, culture: { readonly numberingSystem: G9NumberingSystem; readonly direction: "ltr" | "rtl"; }) => void
|
|
72
72
|
|
|
73
73
|
Example: `<G9ZonePicker onChange={() => {}} value="value" zones={zones} />`
|
|
@@ -47,8 +47,8 @@ Props:
|
|
|
47
47
|
- `placeholder?`: string
|
|
48
48
|
- `onValueChange?`: (value: number | null) => void
|
|
49
49
|
- `disabled?`: boolean = false
|
|
50
|
+
- `counterFormat?`: (count: number, max: number, culture: { readonly numberingSystem: G9NumberingSystem; readonly direction: "ltr" | "rtl"; }) => void
|
|
50
51
|
- `onBlur?`: () => void
|
|
51
|
-
- `onConfirm?`: (value: number | null) => void
|
|
52
52
|
|
|
53
53
|
Example: `<G9NumberEntry />`
|
|
54
54
|
|
|
@@ -84,7 +84,7 @@ Props:
|
|
|
84
84
|
- `leadingIcon?`: icon
|
|
85
85
|
- `placeholder?`: string
|
|
86
86
|
- `disabled?`: boolean = false
|
|
87
|
-
- `
|
|
87
|
+
- `counterFormat?`: (count: number, max: number, culture: { readonly numberingSystem: G9NumberingSystem; readonly direction: "ltr" | "rtl"; }) => void
|
|
88
88
|
|
|
89
89
|
Example: `<G9OutlinedField focused hasValue />`
|
|
90
90
|
|
|
@@ -172,7 +172,7 @@ Props:
|
|
|
172
172
|
- `placeholder?`: string
|
|
173
173
|
- `onValueChange?`: (minutes: number | null) => void
|
|
174
174
|
- `disabled?`: boolean = false
|
|
175
|
+
- `counterFormat?`: (count: number, max: number, culture: { readonly numberingSystem: G9NumberingSystem; readonly direction: "ltr" | "rtl"; }) => void
|
|
175
176
|
- `onLeadingPress?`: () => void
|
|
176
|
-
- `onTrailingPress?`: () => void
|
|
177
177
|
|
|
178
178
|
Example: `<G9TimeEntry />`
|
|
@@ -32,7 +32,7 @@ Props:
|
|
|
32
32
|
- `placeholder?`: string
|
|
33
33
|
- `onValueChange?`: (key: string | null, item: T | null) => void
|
|
34
34
|
- `disabled?`: boolean = false
|
|
35
|
-
- `
|
|
35
|
+
- `counterFormat?`: (count: number, max: number, culture: { readonly numberingSystem: G9NumberingSystem; readonly direction: "ltr" | "rtl"; }) => void
|
|
36
36
|
|
|
37
37
|
Example: `<G9ComboBox items={items} />`
|
|
38
38
|
|
|
@@ -86,7 +86,7 @@ Props:
|
|
|
86
86
|
- `placeholder?`: string
|
|
87
87
|
- `onValueChange?`: (key: string | null, item: T | null) => void
|
|
88
88
|
- `disabled?`: boolean = false
|
|
89
|
-
- `
|
|
89
|
+
- `counterFormat?`: (count: number, max: number, culture: { readonly numberingSystem: G9NumberingSystem; readonly direction: "ltr" | "rtl"; }) => void
|
|
90
90
|
|
|
91
91
|
Example: `<G9Picker items={items} />`
|
|
92
92
|
|
|
@@ -104,7 +104,7 @@ Props:
|
|
|
104
104
|
- `onValueChange?`: (ms: number | null) => void
|
|
105
105
|
- `disabled?`: boolean = false
|
|
106
106
|
- `mode?`: 'yearsMonths' | 'yearsMonthsDays' | 'yearsMonthsDaysHours' | 'yearsMonthsDaysHoursMinutes' | 'yearsMonthsDaysHoursMinutesSeconds' = "yearsMonthsDays"
|
|
107
|
-
- `
|
|
107
|
+
- `counterFormat?`: (count: number, max: number, culture: { readonly numberingSystem: G9NumberingSystem; readonly direction: "ltr" | "rtl"; }) => void
|
|
108
108
|
|
|
109
109
|
Example: `<G9TimeSpanPicker label="Tree age" value={ageMs} onValueChange={setAgeMs} />`
|
|
110
110
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/nle-timeline` (generated)
|
|
2
|
+
|
|
3
|
+
# G9NleTimeline
|
|
4
|
+
|
|
5
|
+
`import { G9NleTimeline } from '@g9tm/lynxcontrols-studio/nle-timeline';`
|
|
6
|
+
|
|
7
|
+
The editing timeline.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `port`: object
|
|
11
|
+
- `onSelect?`: (detail: { ids: string[]; }) => void
|
|
12
|
+
- `onAdd?`: (detail: { lane: string; time: number; via: NleVia; }) => void
|
|
13
|
+
- `onCommand?`: (detail: { name: "marker" | "undo" | "redo" | "duplicate" | "copy" | "paste" | "escape"; time: number; }) => void
|
|
14
|
+
- `onEdit?`: (detail: { op: "split" | "trim" | "delete" | "keys" | "move"; via: NleVia; changes?: NleClipChange[]; keys?: { id: string; time: number; }[]; splits?: { id: string; time: number; }[]; ids?: string[]; ripple?: boolean; }) => void
|
|
15
|
+
- `onOpen?`: (detail: { id: string; }) => void
|
|
16
|
+
- `onRange?`: (detail: { range: NleRange | null; }) => void
|
|
17
|
+
- `onSeek?`: (detail: { time: number; scrubbing: boolean; }) => void
|
|
18
|
+
|
|
19
|
+
Example: `<G9NleTimeline port={port} />`
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/surface` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Surface
|
|
4
|
+
|
|
5
|
+
`import { G9Surface } from '@g9tm/lynxcontrols-studio/surface';`
|
|
6
|
+
|
|
7
|
+
A viewport a driver registered by the host page draws into (`<g9-surface>`): the page names the driver, sends it JSON through the port and hears its events.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `driver`: string
|
|
11
|
+
- `onError?`: (detail: { code: G9SurfaceErrorCode; driver: string; message: string; }) => void
|
|
12
|
+
- `onEvent?`: (detail: { name: string; detail: unknown; }) => void
|
|
13
|
+
- `onReady?`: (detail: { driver: string; width: number; height: number; dpr: number; }) => void
|
|
14
|
+
- `onResize?`: (detail: { width: number; height: number; dpr: number; }) => void
|
|
15
|
+
- `params?`: object
|
|
16
|
+
- `port?`: object
|
|
17
|
+
|
|
18
|
+
Example: `<G9Surface driver="driver" />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/transform-box` (generated)
|
|
2
|
+
|
|
3
|
+
# G9TransformBox
|
|
4
|
+
|
|
5
|
+
`import { G9TransformBox } from '@g9tm/lynxcontrols-studio/transform-box';`
|
|
6
|
+
|
|
7
|
+
Selection boxes and handles over any content (`<g9-transform-box>`): move, scale, rotate, smart guides, safe zones, pinch and wheel zoom.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `port`: object
|
|
11
|
+
- `onSelect?`: (detail: { ids: string[]; }) => void
|
|
12
|
+
- `onCommand?`: (detail: { name: "delete" | "forward" | "backward" | "undo" | "redo" | "duplicate" | "copy" | "paste" | "escape"; }) => void
|
|
13
|
+
- `onOpen?`: (detail: { id: string; }) => void
|
|
14
|
+
- `onTap?`: (detail: { x: number; y: number; }) => void
|
|
15
|
+
- `onTransform?`: (detail: { phase: "end" | "move"; kind: TbKind; via: TbVia; boxes: TbBox[]; }) => void
|
|
16
|
+
- `onView?`: (detail: { zoom: number; panX: number; panY: number; scale: number; offsetX: number; offsetY: number; }) => void
|
|
17
|
+
- `editable?`: boolean = true
|
|
18
|
+
|
|
19
|
+
Example: `<G9TransformBox port={port} />`
|