@g9tm/lynxcontrols 2.5.16 → 2.6.0

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.
@@ -0,0 +1,17 @@
1
+ # G9Tooltip
2
+
3
+ `import { G9Tooltip } from '@g9tm/lynxcontrols/popover';`
4
+
5
+ A short explanation pointing at a control (a value a card leaves out, shown on a tap): drawn in the popup layer like `G9Popover` — measured, placed above the control and flipped or clamped into the window — as a compact
6
+
7
+ Props:
8
+ - `onClose`: () => void
9
+ - `open`: boolean
10
+ - `text`: string
11
+ - `placement?`: 'end' | 'start' | 'top' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'start-start' | 'start-end' | 'end-start' | 'end-end' = "top"
12
+ - `anchorId?`: string
13
+ - `anchorNode?`: object
14
+ - `anchorRect?`: object
15
+ - `autoHideMs?`: number
16
+
17
+ Example: `<G9Tooltip onClose={() => {}} open text="Label" />`
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "catalogVersion": 1,
3
3
  "package": "@g9tm/lynxcontrols",
4
- "version": "2.5.16",
4
+ "version": "2.6.0",
5
5
  "generatedBy": "node scripts/check-docs.mjs --write",
6
6
  "components": [
7
7
  {
@@ -47029,6 +47029,263 @@
47029
47029
  "from": "generated"
47030
47030
  }
47031
47031
  },
47032
+ {
47033
+ "id": "controls.popover.G9Tooltip",
47034
+ "export": "G9Tooltip",
47035
+ "from": "@g9tm/lynxcontrols/popover",
47036
+ "kind": "component",
47037
+ "family": "popover",
47038
+ "summary": "A short explanation pointing at a control (a value a card leaves out, shown on a tap): drawn in the popup layer like `G9Popover` — measured, placed above the control and flipped or clamped into the window — as a compact inverse-surface bubble. It closes by itself after `autoHideMs`, on a tap anywhere, or on Back. Toggle it from the control with `useG9Tooltip`, so a second tap on the control closes it.",
47039
+ "since": null,
47040
+ "props": [
47041
+ {
47042
+ "name": "anchorId",
47043
+ "type": {
47044
+ "kind": "string"
47045
+ },
47046
+ "required": false,
47047
+ "serializable": true,
47048
+ "role": "behaviour",
47049
+ "doc": "The `id` of the control it explains (any control registered as an anchor)…"
47050
+ },
47051
+ {
47052
+ "name": "anchorNode",
47053
+ "type": {
47054
+ "kind": "object",
47055
+ "fields": [
47056
+ {
47057
+ "name": "invoke",
47058
+ "required": true,
47059
+ "type": {
47060
+ "kind": "event",
47061
+ "payload": "options: uiMethodOptions",
47062
+ "returns": "SelectorQuery"
47063
+ },
47064
+ "serializable": false
47065
+ },
47066
+ {
47067
+ "name": "path",
47068
+ "required": true,
47069
+ "type": {
47070
+ "kind": "event",
47071
+ "payload": "callback: PathCallback",
47072
+ "returns": "SelectorQuery"
47073
+ },
47074
+ "serializable": false
47075
+ },
47076
+ {
47077
+ "name": "fields",
47078
+ "required": true,
47079
+ "type": {
47080
+ "kind": "event",
47081
+ "payload": "fields: Required<FieldsParams> extends Record<keyof T, boolean> ? T : FieldsParams, callback: (data: { [K in keyof Required<FieldsParams> as T[K] extends true ? K : never]: FieldsData[K]; } | null, status: { data: string; code: number; }) => void",
47082
+ "returns": "SelectorQuery"
47083
+ },
47084
+ "serializable": false
47085
+ },
47086
+ {
47087
+ "name": "animate",
47088
+ "required": true,
47089
+ "type": {
47090
+ "kind": "event",
47091
+ "payload": "animations: AnimationV2 | AnimationV2[]",
47092
+ "returns": "SelectorQuery"
47093
+ },
47094
+ "serializable": false
47095
+ },
47096
+ {
47097
+ "name": "playAnimation",
47098
+ "required": true,
47099
+ "type": {
47100
+ "kind": "event",
47101
+ "payload": "ids: string | string[]",
47102
+ "returns": "SelectorQuery"
47103
+ },
47104
+ "serializable": false
47105
+ },
47106
+ {
47107
+ "name": "pauseAnimation",
47108
+ "required": true,
47109
+ "type": {
47110
+ "kind": "event",
47111
+ "payload": "ids: string | string[]",
47112
+ "returns": "SelectorQuery"
47113
+ },
47114
+ "serializable": false
47115
+ },
47116
+ {
47117
+ "name": "cancelAnimation",
47118
+ "required": true,
47119
+ "type": {
47120
+ "kind": "event",
47121
+ "payload": "ids: string | string[]",
47122
+ "returns": "SelectorQuery"
47123
+ },
47124
+ "serializable": false
47125
+ },
47126
+ {
47127
+ "name": "setNativeProps",
47128
+ "required": true,
47129
+ "type": {
47130
+ "kind": "event",
47131
+ "payload": "nativeProps: Record<string, any>",
47132
+ "returns": "SelectorQuery"
47133
+ },
47134
+ "serializable": false
47135
+ }
47136
+ ]
47137
+ },
47138
+ "required": false,
47139
+ "serializable": false,
47140
+ "role": "behaviour",
47141
+ "doc": "…or an element ref's node."
47142
+ },
47143
+ {
47144
+ "name": "anchorRect",
47145
+ "type": {
47146
+ "kind": "object",
47147
+ "fields": [
47148
+ {
47149
+ "name": "x",
47150
+ "required": true,
47151
+ "type": {
47152
+ "kind": "number"
47153
+ },
47154
+ "serializable": true
47155
+ },
47156
+ {
47157
+ "name": "y",
47158
+ "required": true,
47159
+ "type": {
47160
+ "kind": "number"
47161
+ },
47162
+ "serializable": true
47163
+ },
47164
+ {
47165
+ "name": "width",
47166
+ "required": true,
47167
+ "type": {
47168
+ "kind": "number"
47169
+ },
47170
+ "serializable": true
47171
+ },
47172
+ {
47173
+ "name": "height",
47174
+ "required": true,
47175
+ "type": {
47176
+ "kind": "number"
47177
+ },
47178
+ "serializable": true
47179
+ }
47180
+ ]
47181
+ },
47182
+ "required": false,
47183
+ "serializable": true,
47184
+ "role": "behaviour",
47185
+ "doc": "…or a rect…"
47186
+ },
47187
+ {
47188
+ "name": "autoHideMs",
47189
+ "type": {
47190
+ "kind": "number"
47191
+ },
47192
+ "required": false,
47193
+ "serializable": true,
47194
+ "role": "behaviour",
47195
+ "doc": "Closes by itself after this many ms (default {@link G9_TOOLTIP_DEFAULT_HIDE_MS}); `0` = only a tap closes it."
47196
+ },
47197
+ {
47198
+ "name": "id",
47199
+ "type": {
47200
+ "kind": "string"
47201
+ },
47202
+ "required": false,
47203
+ "serializable": true,
47204
+ "role": "identity"
47205
+ },
47206
+ {
47207
+ "name": "onClose",
47208
+ "type": {
47209
+ "kind": "event",
47210
+ "payload": null
47211
+ },
47212
+ "required": true,
47213
+ "serializable": false,
47214
+ "role": "event"
47215
+ },
47216
+ {
47217
+ "name": "open",
47218
+ "type": {
47219
+ "kind": "boolean"
47220
+ },
47221
+ "required": true,
47222
+ "serializable": true,
47223
+ "role": "state"
47224
+ },
47225
+ {
47226
+ "name": "placement",
47227
+ "type": {
47228
+ "kind": "enum",
47229
+ "values": [
47230
+ "end",
47231
+ "start",
47232
+ "top",
47233
+ "bottom",
47234
+ "bottom-start",
47235
+ "bottom-end",
47236
+ "top-start",
47237
+ "top-end",
47238
+ "start-start",
47239
+ "start-end",
47240
+ "end-start",
47241
+ "end-end"
47242
+ ]
47243
+ },
47244
+ "required": false,
47245
+ "default": "top",
47246
+ "serializable": true,
47247
+ "role": "behaviour",
47248
+ "doc": "Default `'top'`; flips below when there is no room above."
47249
+ },
47250
+ {
47251
+ "name": "text",
47252
+ "type": {
47253
+ "kind": "string"
47254
+ },
47255
+ "required": true,
47256
+ "serializable": true,
47257
+ "role": "content",
47258
+ "doc": "The text of the bubble (one or more lines)."
47259
+ }
47260
+ ],
47261
+ "anchor": null,
47262
+ "accessibility": {
47263
+ "labelFrom": [
47264
+ "text"
47265
+ ],
47266
+ "labelRequired": false
47267
+ },
47268
+ "targets": {
47269
+ "android": "unmeasured",
47270
+ "ios": "unmeasured",
47271
+ "windows": "unmeasured",
47272
+ "macos": "unmeasured",
47273
+ "web": "verified"
47274
+ },
47275
+ "evidence": {
47276
+ "ledger": [
47277
+ "N-115"
47278
+ ]
47279
+ },
47280
+ "tokens": [
47281
+ "InverseOnSurface",
47282
+ "InverseSurface"
47283
+ ],
47284
+ "example": {
47285
+ "line": "<G9Tooltip onClose={() => {}} open text=\"Label\" />",
47286
+ "from": "generated"
47287
+ }
47288
+ },
47032
47289
  {
47033
47290
  "id": "controls.shell.G9TopBar",
47034
47291
  "export": "G9TopBar",
@@ -50772,6 +51029,14 @@
50772
51029
  "signature": "(): G9SheetOptions",
50773
51030
  "summary": "MAUI `FullScreenWithoutHandleOptions()`."
50774
51031
  },
51032
+ {
51033
+ "id": "controls.popover.G9_TOOLTIP_DEFAULT_HIDE_MS",
51034
+ "export": "G9_TOOLTIP_DEFAULT_HIDE_MS",
51035
+ "from": "@g9tm/lynxcontrols/popover",
51036
+ "kind": "constant",
51037
+ "signature": "4000",
51038
+ "summary": "How long a tooltip stays when nothing closes it first (ms)."
51039
+ },
50775
51040
  {
50776
51041
  "id": "controls.layout.G9ActionRowProps",
50777
51042
  "export": "G9ActionRowProps",
@@ -55788,6 +56053,14 @@
55788
56053
  "signature": "24",
55789
56054
  "summary": "MAUI `G9LayoutMetrics.ToolbarIconSize` / `ToolbarButtonSize`."
55790
56055
  },
56056
+ {
56057
+ "id": "controls.popover.G9TooltipProps",
56058
+ "export": "G9TooltipProps",
56059
+ "from": "@g9tm/lynxcontrols/popover",
56060
+ "kind": "interface",
56061
+ "signature": "G9TooltipProps",
56062
+ "summary": "Props of `G9Tooltip`."
56063
+ },
55791
56064
  {
55792
56065
  "id": "controls.shell.G9TopBarProps",
55793
56066
  "export": "G9TopBarProps",
@@ -57833,7 +58106,7 @@
57833
58106
  "export": "useG9RtlScrollStart",
57834
58107
  "from": "@g9tm/lynxcontrols/layout",
57835
58108
  "kind": "hook",
57836
- "signature": "(rtl: boolean, target: () => G9ScrollTarget | null | undefined): { readonly onBox: (e: { detail: { width: number; }; }) => void; readonly onRun: (e: { detail: { width: number; }; }) => void; readonly box: () => number; }",
58109
+ "signature": "(rtl: boolean, target: () => G9ScrollTarget | null | undefined): { readonly onBox: (e: { detail: { width: number; }; }) => void; readonly onRun: (e: { detail: { width: number; }; }) => void; readonly onTouch: () => void; readonly box: () => number; }",
57837
58110
  "summary": "Opens a horizontal scroller at its READING start right to left (2.5.16, G9Singularity LC-29): a mirrored row (its first item at the physical right) sits in a scroller whose offset 0 is the left, so it opened on its LAST item. Give `onBox` to the scroller's `bindlayoutchange` and `onRun` to its content's; once both widths are known (and again when they change) the scroller is moved to its far end, a frame later (a scrollTo in the layout pass is clamped to the old content size). `box()` is the scroller's measured width. Nothing happens left to right."
57838
58111
  },
57839
58112
  {
@@ -57932,6 +58205,14 @@
57932
58205
  "signature": "(): G9ToastService",
57933
58206
  "summary": "The toasts of the nearest `G9Host` (MAUI `G9ToastHelper`), in its `feedback` layer above popups and sheets."
57934
58207
  },
58208
+ {
58209
+ "id": "controls.popover.useG9Tooltip",
58210
+ "export": "useG9Tooltip",
58211
+ "from": "@g9tm/lynxcontrols/popover",
58212
+ "kind": "hook",
58213
+ "signature": "(): { readonly open: boolean; readonly show: () => void; readonly close: () => void; readonly toggle: () => void; }",
58214
+ "summary": "Open / close / toggle state for a `G9Tooltip`: a tap on its control calls `toggle`."
58215
+ },
57935
58216
  {
57936
58217
  "id": "controls.provider.useG9Window",
57937
58218
  "export": "useG9Window",
@@ -57945,7 +58226,7 @@
57945
58226
  "export": "useG9Word",
57946
58227
  "from": "@g9tm/lynxcontrols/provider",
57947
58228
  "kind": "hook",
57948
- "signature": "(): (key: \"pinned\" | \"search\" | \"zoomIn\" | \"close\" | \"online\" | \"save\" | \"retry\" | \"clear\" | \"delete\" | \"more\" | \"react\" | \"reply\" | \"send\" | \"unreadMessages\" | \"downloaded\" | \"expired\" | \"download\" | \"previous\" | \"next\" | \"reorder\" | \"fit\" | \"myLocation\" | \"zoomOut\" | \"play\" | \"pause\" | \"mute\" | \"unmute\" | \"average\" | \"range\" | \"detractors\" | \"passives\" | \"promoters\" | \"live\" | \"bytes\" | \"kilobyt",
58229
+ "signature": "(): (key: \"pinned\" | \"search\" | \"zoomIn\" | \"close\" | \"online\" | \"save\" | \"retry\" | \"clear\" | \"delete\" | \"all\" | \"more\" | \"react\" | \"reply\" | \"send\" | \"unreadMessages\" | \"downloaded\" | \"expired\" | \"download\" | \"previous\" | \"next\" | \"reorder\" | \"fit\" | \"myLocation\" | \"zoomOut\" | \"play\" | \"pause\" | \"mute\" | \"unmute\" | \"average\" | \"range\" | \"detractors\" | \"passives\" | \"promoters\" | \"live\" | \"bytes\" | ",
57949
58230
  "summary": "The words of the library's own components in the culture's language (2.5.16, LC-30): `word('play')` is «پخش» under `fa`. The app's string provider is asked first (`word.play`), then the built-in table of the language, then English."
57950
58231
  },
57951
58232
  {
package/catalog/index.md CHANGED
@@ -1,4 +1,4 @@
1
- # Catalog index: `@g9tm/lynxcontrols` 2.5.16
1
+ # Catalog index: `@g9tm/lynxcontrols` 2.6.0
2
2
 
3
3
  One line per component; the card (`cards/<Export>.md`) has its props and an example.
4
4
 
@@ -161,6 +161,7 @@ One line per component; the card (`cards/<Export>.md`) has its props and an exam
161
161
  - G9TimeEntry — A time typed as people type it (SAC TimeIn): «۷۳۰» becomes ۰۷:۳۰ on blur; an impossible time is shown as an error.
162
162
  - G9TimeSpanPicker — A duration in an outlined box (MAUI `G9TimeSpanPicker`): a tap opens the drum sheet; Done writes the value and fires `onTimeSpanSelected`, Cancel and dismissals
163
163
  - G9TitleWithLine — A 16 px title over a 1 px line (MAUI `G9TitleWithLine`).
164
+ - G9Tooltip — A short explanation pointing at a control (a value a card leaves out, shown on a tap): drawn in the popup layer like `G9Popover` — measured, placed above the co
164
165
  - G9TopBar — The desktop global bar over the content (SAC TopBar, Riskara StatusStrip).
165
166
  - G9UnsavedBar — A bar that appears while a form has unsaved changes (G9Hub UnsavedBar, SAC SaveBar): the message, discard, save.
166
167
  - G9UpdateBar — «A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar with the action and an optional dismissal.