@g9tm/lynxcontrols 2.5.5 → 2.5.7

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.
Files changed (167) hide show
  1. package/catalog/cards/G9AppBar.md +2 -2
  2. package/catalog/cards/G9Avatar.md +2 -1
  3. package/catalog/cards/G9CarryContexts.md +10 -0
  4. package/catalog/cards/G9CheckBox.md +1 -1
  5. package/catalog/cards/G9ChoiceList.md +1 -1
  6. package/catalog/cards/G9ConnectionBanner.md +4 -2
  7. package/catalog/cards/G9FlatTabBar.md +17 -0
  8. package/catalog/cards/G9FormField.md +2 -2
  9. package/catalog/cards/G9IconSlot.md +1 -1
  10. package/catalog/cards/G9ListRow.md +1 -1
  11. package/catalog/cards/G9RangeSlider.md +2 -2
  12. package/catalog/cards/G9Stepper.md +1 -1
  13. package/catalog/cards/G9SwitchRow.md +1 -1
  14. package/catalog/cards/G9UpdateBar.md +2 -1
  15. package/catalog/catalog.json +2418 -650
  16. package/catalog/index.md +5 -3
  17. package/dist/.tsbuildinfo +1 -1
  18. package/dist/base/selection-item.d.ts +5 -0
  19. package/dist/base/selection-item.d.ts.map +1 -1
  20. package/dist/button/button.d.ts +4 -0
  21. package/dist/button/button.d.ts.map +1 -1
  22. package/dist/button/button.jsx +8 -2
  23. package/dist/button/icon-button.d.ts +2 -0
  24. package/dist/button/icon-button.d.ts.map +1 -1
  25. package/dist/button/icon-button.jsx +3 -1
  26. package/dist/display/figures.d.ts +13 -0
  27. package/dist/display/figures.d.ts.map +1 -1
  28. package/dist/display/figures.jsx +53 -14
  29. package/dist/display/status.d.ts +1 -1
  30. package/dist/display/status.d.ts.map +1 -1
  31. package/dist/display/status.jsx +15 -3
  32. package/dist/effects/effects.css +6 -0
  33. package/dist/effects/effects.css.map +1 -1
  34. package/dist/effects/effects.d.ts +9 -0
  35. package/dist/effects/effects.d.ts.map +1 -1
  36. package/dist/effects/effects.jsx +55 -1
  37. package/dist/fields/editor.d.ts.map +1 -1
  38. package/dist/fields/editor.jsx +3 -0
  39. package/dist/fields/extra-entries.d.ts +2 -1
  40. package/dist/fields/extra-entries.d.ts.map +1 -1
  41. package/dist/fields/extra-entries.jsx +51 -17
  42. package/dist/fields/fields.css +21 -0
  43. package/dist/fields/fields.css.map +1 -1
  44. package/dist/fields/outlined-field.d.ts +14 -0
  45. package/dist/fields/outlined-field.d.ts.map +1 -1
  46. package/dist/fields/outlined-field.jsx +6 -1
  47. package/dist/fields/pin-entry.d.ts.map +1 -1
  48. package/dist/fields/pin-entry.jsx +36 -3
  49. package/dist/fields/text-entry.d.ts +4 -0
  50. package/dist/fields/text-entry.d.ts.map +1 -1
  51. package/dist/fields/text-entry.jsx +33 -26
  52. package/dist/fields/use-text-input.d.ts +3 -2
  53. package/dist/fields/use-text-input.d.ts.map +1 -1
  54. package/dist/fields/use-text-input.jsx +3 -0
  55. package/dist/header/app-bar.d.ts +13 -1
  56. package/dist/header/app-bar.d.ts.map +1 -1
  57. package/dist/header/app-bar.jsx +31 -11
  58. package/dist/header/header.css +12 -0
  59. package/dist/header/header.css.map +1 -1
  60. package/dist/host/bottom-overlays.d.ts +5 -0
  61. package/dist/host/bottom-overlays.d.ts.map +1 -1
  62. package/dist/host/bottom-overlays.jsx +17 -1
  63. package/dist/host/carry-contexts.d.ts +28 -0
  64. package/dist/host/carry-contexts.d.ts.map +1 -0
  65. package/dist/host/carry-contexts.jsx +62 -0
  66. package/dist/host/host.d.ts.map +1 -1
  67. package/dist/host/host.jsx +5 -1
  68. package/dist/host/index.d.ts +2 -0
  69. package/dist/host/index.d.ts.map +1 -1
  70. package/dist/host/index.jsx +2 -0
  71. package/dist/icon/icon.css +0 -1
  72. package/dist/icon/icon.css.map +1 -1
  73. package/dist/icon/icon.d.ts.map +1 -1
  74. package/dist/icon/icon.jsx +15 -10
  75. package/dist/icon/slot.d.ts +2 -0
  76. package/dist/icon/slot.d.ts.map +1 -1
  77. package/dist/icon/slot.jsx +2 -0
  78. package/dist/layout/containers.d.ts.map +1 -1
  79. package/dist/layout/containers.jsx +2 -1
  80. package/dist/layout/layout.css +5 -0
  81. package/dist/layout/layout.css.map +1 -1
  82. package/dist/layout/scroll-spy.d.ts.map +1 -1
  83. package/dist/layout/scroll-spy.jsx +4 -2
  84. package/dist/list/index.d.ts +1 -1
  85. package/dist/list/index.d.ts.map +1 -1
  86. package/dist/list/index.jsx +1 -1
  87. package/dist/list/list.css +28 -0
  88. package/dist/list/list.css.map +1 -1
  89. package/dist/list/rows.d.ts +13 -1
  90. package/dist/list/rows.d.ts.map +1 -1
  91. package/dist/list/rows.jsx +39 -20
  92. package/dist/list/virtual-list.d.ts +52 -1
  93. package/dist/list/virtual-list.d.ts.map +1 -1
  94. package/dist/list/virtual-list.jsx +123 -18
  95. package/dist/provider/direction-scope.d.ts +8 -0
  96. package/dist/provider/direction-scope.d.ts.map +1 -1
  97. package/dist/provider/direction-scope.jsx +13 -2
  98. package/dist/provider/index.d.ts +1 -1
  99. package/dist/provider/index.d.ts.map +1 -1
  100. package/dist/provider/provider.css +7 -0
  101. package/dist/provider/provider.css.map +1 -1
  102. package/dist/provider/settings.d.ts +14 -0
  103. package/dist/provider/settings.d.ts.map +1 -1
  104. package/dist/provider/settings.jsx +4 -1
  105. package/dist/range-slider/index.d.ts +1 -1
  106. package/dist/range-slider/index.d.ts.map +1 -1
  107. package/dist/range-slider/range-slider.css +69 -0
  108. package/dist/range-slider/range-slider.css.map +1 -1
  109. package/dist/range-slider/range-slider.d.ts +22 -0
  110. package/dist/range-slider/range-slider.d.ts.map +1 -1
  111. package/dist/range-slider/range-slider.jsx +34 -5
  112. package/dist/selection/selection-sheet.d.ts.map +1 -1
  113. package/dist/selection/selection-sheet.jsx +23 -10
  114. package/dist/selection/selection.css +16 -1
  115. package/dist/selection/selection.css.map +1 -1
  116. package/dist/shell/shell.css +7 -0
  117. package/dist/shell/shell.css.map +1 -1
  118. package/dist/shell/shell.d.ts +24 -3
  119. package/dist/shell/shell.d.ts.map +1 -1
  120. package/dist/shell/shell.jsx +12 -9
  121. package/dist/survey/survey.css +71 -0
  122. package/dist/survey/survey.css.map +1 -1
  123. package/dist/survey/survey.d.ts +15 -0
  124. package/dist/survey/survey.d.ts.map +1 -1
  125. package/dist/survey/survey.jsx +45 -2
  126. package/dist/tab-bar/flat.d.ts +18 -0
  127. package/dist/tab-bar/flat.d.ts.map +1 -0
  128. package/dist/tab-bar/flat.jsx +124 -0
  129. package/dist/tab-bar/index.d.ts +1 -0
  130. package/dist/tab-bar/index.d.ts.map +1 -1
  131. package/dist/tab-bar/index.jsx +1 -0
  132. package/dist/tab-bar/metrics.d.ts +8 -2
  133. package/dist/tab-bar/metrics.d.ts.map +1 -1
  134. package/dist/tab-bar/metrics.jsx +12 -1
  135. package/dist/tab-bar/tab-bar.css +77 -0
  136. package/dist/tab-bar/tab-bar.css.map +1 -1
  137. package/dist/tab-bar/tab-bar.d.ts.map +1 -1
  138. package/dist/tab-bar/tab-bar.jsx +32 -6
  139. package/dist/tabs/tab-view.jsx +10 -3
  140. package/dist/tabs/tabs.css +5 -0
  141. package/dist/tabs/tabs.css.map +1 -1
  142. package/dist/toggle/checkbox.d.ts +5 -0
  143. package/dist/toggle/checkbox.d.ts.map +1 -1
  144. package/dist/toggle/checkbox.jsx +7 -2
  145. package/dist/toggle/choice.css +8 -0
  146. package/dist/toggle/choice.css.map +1 -1
  147. package/dist/toggle/choice.d.ts +11 -0
  148. package/dist/toggle/choice.d.ts.map +1 -1
  149. package/dist/toggle/choice.jsx +25 -14
  150. package/package.json +2 -2
  151. package/skills/g9-lynx-app/references/catalog-index.md +3 -3
  152. package/skills/g9-lynx-app/references/components/barcode.md +3 -3
  153. package/skills/g9-lynx-app/references/components/charts.md +1 -1
  154. package/skills/g9-lynx-app/references/components/commerce.md +5 -5
  155. package/skills/g9-lynx-app/references/components/display-1.md +2 -1
  156. package/skills/g9-lynx-app/references/components/fields.md +2 -2
  157. package/skills/g9-lynx-app/references/components/header.md +2 -2
  158. package/skills/g9-lynx-app/references/components/host.md +11 -0
  159. package/skills/g9-lynx-app/references/components/icon.md +1 -1
  160. package/skills/g9-lynx-app/references/components/list.md +2 -2
  161. package/skills/g9-lynx-app/references/components/map.md +19 -1
  162. package/skills/g9-lynx-app/references/components/range-slider.md +2 -2
  163. package/skills/g9-lynx-app/references/components/shell.md +6 -3
  164. package/skills/g9-lynx-app/references/components/survey.md +1 -1
  165. package/skills/g9-lynx-app/references/components/tab-bar.md +18 -0
  166. package/skills/g9-lynx-app/references/components/toggle.md +2 -2
  167. package/skills/g9-lynx-app/references/provider-and-host.md +8 -0
@@ -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,sBAAsB;EACtB,gCAAgC;AAClC;;AAIA;EADE,eAAe;EACf,gCAAgC;EACh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ListRow, 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,8CAA8C;EAC9C,mBAAmB;EACnB,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;AACpB;;AAIA;EADE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;AACxC;;AAIA;EADE,0CAA0C;AAC5C;;AAKA;EAFE,2CAA2C;AAC7C;;AAMA;EAHE,oBAAoB;EACpB,YAAY;AACd;;AAMA;EAHE,mBAAmB;EACnB,gBAAgB;EAChB,aAAa;AACf;;AAMA;EAHE,sBAAsB;EACtB,aAAa;AACf;;AAMA;EAHE,UAAU;EACV,kBAAkB;EAClB,MAAM;EACN,SAAS;AACX;;AAOA;EAJE,OAAO;AACT;;AAOA;EAJE,QAAQ;AACV;;AAOA;EAJE,mBAAmB;EACnB,cAAc;EACd,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,iBAAiB;AACnB;;AAOA;EAJE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;AACnB;;AAOA;EAJE,eAAe;EACf,oCAAoC;EACpC,iBAAiB;EACjB,iBAAiB;AACnB;;AAOA;EAJE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;EAC9B,eAAe;EACf,iBAAiB;AACnB;;AAOA;EAJE,sBAAsB;EACtB,gCAAgC;AAClC;;AAOA;EAJE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;AACnB;;AAOA;EAJE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,cAAc;EACd,cAAc;AAChB;;AAOA;EAJE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,eAAe;EACf,oCAAoC;EACpC,+BAA+B;EAC/B,cAAc;EACd,gBAAgB;AAClB;;AAOA;EAJE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;EAC9B,cAAc;EACd,iBAAiB;AACnB;;AAOA;EAJE,oCAAoC;EACpC,mBAAmB;EACnB,iBAAiB;EACjB,mCAAmC;EACnC,mCAAmC;EACnC,8CAA8C;EAC9C,sBAAsB;EACtB,aAAa;EACb,gBAAgB;AAClB;;AAQA;EALE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAQA;EALE,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,cAAc;EACd,aAAa;AACf;;AAQA;EALE,kDAAkD;EAClD,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAQA;EALE,YAAY;AACd;;AAQA;EALE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAQA;EALE,OAAO;EACP,aAAa;AACf;;AAQA;EALE,sBAAsB;EACtB,aAAa;AACf;;AASA;EANE,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AASA;EANE,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;AACV;;AASA;EANE,OAAO;EACP,aAAa;AACf;;AAUA;EAPE,kBAAkB;AACpB;;AAUA;EAPE,sBAAsB;EACtB,aAAa;EACb,kBAAkB;EAClB,OAAO;EACP,QAAQ;AACV;;AAUA;EAPE,UAAU;EACV,YAAY;EACZ,mCAAmC;EACnC,gCAAgC;AAClC;;AAWA;EARE,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 /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: 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/* pressFeedback 'tint' (2.5.7): the state layer while the finger is down, drawn natively. */\n.g9-list-row--tint:active {\n background-color: var(--g9-default-pressed);\n}\n\n/* `below` (2.5.7): the row over full-width content, one block. */\n.g9-list-row--stacked {\n align-items: stretch;\n row-gap: 8px;\n}\n\n.g9-list-row__main {\n display: flex;\n align-items: center;\n column-gap: 12px;\n}\n\n.g9-list-row__below {\n display: flex;\n flex-direction: column;\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 /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: 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":""}
@@ -44,6 +44,15 @@ export interface G9ListRowProps extends G9ControlBaseProps {
44
44
  readonly strongTitle?: boolean;
45
45
  /** Double-tap guard in ms (see `useG9Press`); 0 = every tap counts (a hidden tap-counting target). */
46
46
  readonly pressGuardMs?: number;
47
+ /** Lines the subtitle may take. Default 2 (G9Hub, 2.5.7). */
48
+ readonly subtitleLines?: number;
49
+ /**
50
+ * Content under the row at its full width (a stacked setting's control: a slider, a segmented choice; G9Hub, 2.5.7).
51
+ * The row then stands over it in one block, one divider under both.
52
+ */
53
+ readonly below?: ReactNode;
54
+ /** `'tint'`: a pressable row's background darkens while pressed (`--g9-default-pressed`). Default `'none'`. */
55
+ readonly pressFeedback?: 'none' | 'tint';
47
56
  }
48
57
  /**
49
58
  * One line of a list (SAC kit ListRow, ShopManager Row, G9Hub SettingsRow): icon or avatar at the start, title and a
@@ -68,7 +77,10 @@ export interface G9SettingsGroupProps {
68
77
  readonly footer?: ReactNode;
69
78
  readonly children?: ReactNode;
70
79
  }
71
- /** Rows grouped in a card with a title and a note (G9Hub SettingsGroup, iOS grouped lists). The last row has no divider. */
80
+ /**
81
+ * Rows grouped in a card with a title and a note (G9Hub SettingsGroup, iOS grouped lists). A last `G9ListRow` (or
82
+ * `G9SwitchRow`) without its own `divider` draws none — the card's edge closes it.
83
+ */
72
84
  export declare function G9SettingsGroup(props: G9SettingsGroupProps): ReactNode;
73
85
  /** Props of {@link G9Pager}.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C,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACtE;AAED,gEAAgE;AAChE,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,CAmDtD"}
@@ -1,14 +1,15 @@
1
1
  import "./list.css";
2
2
  import { G9Glyph } from "@g9tm/lynxcontrols-foundation";
3
- import { Children, memo } from "@lynx-js/react";
3
+ import { Children, cloneElement, isValidElement, memo } from "@lynx-js/react";
4
4
  import { g9ChildId, g9IdProps, g9RowStyle, g9TextStart, mergeStyle, useG9Control } from "../base/control.jsx";
5
5
  import { useG9Press } from "../base/press.jsx";
6
6
  import { toneColors } from "../base/tone.jsx";
7
7
  import { G9Icon } from "../icon/icon.jsx";
8
+ import { G9Slot } from "../provider/direction-scope.jsx";
8
9
  import { useG9Direction } from "../provider/hooks.jsx";
9
10
  import { G9Switch } from "../toggle/switch.jsx";
10
11
  const G9ListRow = memo(function(props) {
11
- var _props_iconTone, _props_chevron, _props_minHeight, _props_accessibilityLabel, _props_leading, _props_iconSize, _props_iconColor, _props_iconSize1, _props_iconColor1, _props_titleLines;
12
+ var _props_iconTone, _props_chevron, _props_iconSize, _props_iconColor, _props_iconSize1, _props_iconColor1, _props_titleLines, _props_subtitleLines, _props_minHeight, _props_minHeight1, _props_accessibilityLabel;
12
13
  const control = useG9Control(props, 'g9-list-row', props.onPress ? {
13
14
  kind: 'button',
14
15
  label: ()=>{
@@ -29,28 +30,18 @@ const G9ListRow = memo(function(props) {
29
30
  const plainIcon = 'plain' === props.iconAppearance;
30
31
  const icon = toneColors(props.danger ? 'error' : null != (_props_iconTone = props.iconTone) ? _props_iconTone : 'neutral', 'soft');
31
32
  const chevron = null != (_props_chevron = props.chevron) ? _props_chevron : void 0 !== props.onPress && !props.trailing && !props.value;
32
- return <view className={`${control.className}${false === props.divider ? '' : ' g9-list-row--divider'}${props.onPress ? ' g9-list-row--pressable' : ''}`} {...control.idProps} style={control.rootStyle({
33
- ...g9RowStyle(control.direction),
34
- minHeight: `${null != (_props_minHeight = props.minHeight) ? _props_minHeight : 56}px`
35
- })} {...props.onPress ? {
36
- bindtap: press,
37
- 'accessibility-element': true,
38
- 'accessibility-traits': 'button',
39
- 'accessibility-label': null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : props.title
40
- } : {}}>
41
- {props.edge ? <view className={`g9-list-row__edge g9-list-row__edge--${control.direction}`} style={{
42
- backgroundColor: props.edge
43
- }}/> : null}
44
- {null != (_props_leading = props.leading) ? _props_leading : props.icon ? plainIcon ? <G9Icon icon={props.icon} size={null != (_props_iconSize = props.iconSize) ? _props_iconSize : 22} color={null != (_props_iconColor = props.iconColor) ? _props_iconColor : props.danger ? icon.foreground : 'var(--g9-primary)'}/> : <view className="g9-list-row__icon" style={{
33
+ const stacked = void 0 !== props.below && null !== props.below && false !== props.below;
34
+ const main = <>
35
+ {null != props.leading ? <G9Slot>{props.leading}</G9Slot> : props.icon ? plainIcon ? <G9Icon icon={props.icon} size={null != (_props_iconSize = props.iconSize) ? _props_iconSize : 22} color={null != (_props_iconColor = props.iconColor) ? _props_iconColor : props.danger ? icon.foreground : 'var(--g9-primary)'}/> : <view className="g9-list-row__icon" style={{
45
36
  backgroundColor: icon.background
46
37
  }}>
47
- <G9Icon icon={props.icon} size={null != (_props_iconSize1 = props.iconSize) ? _props_iconSize1 : 18} color={null != (_props_iconColor1 = props.iconColor) ? _props_iconColor1 : icon.foreground}/>
48
- </view> : null}
38
+ <G9Icon icon={props.icon} size={null != (_props_iconSize1 = props.iconSize) ? _props_iconSize1 : 18} color={null != (_props_iconColor1 = props.iconColor) ? _props_iconColor1 : icon.foreground}/>
39
+ </view> : null}
49
40
  <view className="g9-list-row__text">
50
41
  <text className={`g9-list-row__title${props.plainTitle ? ' g9-list-row__title--plain' : props.strongTitle ? ' g9-list-row__title--strong' : ''}${props.danger ? ' g9-list-row__title--danger' : ''}`} text-maxline={String(null != (_props_titleLines = props.titleLines) ? _props_titleLines : 1)} style={g9TextStart(control.direction)}>
51
42
  {props.title}
52
43
  </text>
53
- {props.subtitle ? <text className="g9-list-row__subtitle" text-maxline="2" style={g9TextStart(control.direction)}>
44
+ {props.subtitle ? <text className="g9-list-row__subtitle" text-maxline={String(null != (_props_subtitleLines = props.subtitleLines) ? _props_subtitleLines : 2)} style={g9TextStart(control.direction)}>
54
45
  {props.subtitle}
55
46
  </text> : null}
56
47
  {props.hint ? <text className="g9-list-row__hint" style={g9TextStart(control.direction)}>
@@ -60,8 +51,30 @@ const G9ListRow = memo(function(props) {
60
51
  {props.value ? <text className="g9-list-row__value" text-maxline="1">
61
52
  {props.value}
62
53
  </text> : null}
63
- {props.trailing}
54
+ <G9Slot>{props.trailing}</G9Slot>
64
55
  {chevron ? <G9Icon icon={'rtl' === control.direction ? G9Glyph.ChevronLeft : G9Glyph.ChevronRight} size={18} color="var(--g9-text-tertiary)"/> : null}
56
+ </>;
57
+ return <view className={`${control.className}${false === props.divider ? '' : ' g9-list-row--divider'}${props.onPress ? ' g9-list-row--pressable' : ''}${props.onPress && 'tint' === props.pressFeedback ? ' g9-list-row--tint' : ''}${stacked ? ' g9-list-row--stacked' : ''}`} {...control.idProps} style={control.rootStyle(stacked ? {
58
+ flexDirection: 'column',
59
+ minHeight: `${null != (_props_minHeight = props.minHeight) ? _props_minHeight : 56}px`
60
+ } : {
61
+ ...g9RowStyle(control.direction),
62
+ minHeight: `${null != (_props_minHeight1 = props.minHeight) ? _props_minHeight1 : 56}px`
63
+ })} {...props.onPress ? {
64
+ bindtap: press,
65
+ 'accessibility-element': true,
66
+ 'accessibility-traits': 'button',
67
+ 'accessibility-label': null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : props.title
68
+ } : {}}>
69
+ {props.edge ? <view className={`g9-list-row__edge g9-list-row__edge--${control.direction}`} style={{
70
+ backgroundColor: props.edge
71
+ }}/> : null}
72
+ {stacked ? <>
73
+ <view className="g9-list-row__main" style={g9RowStyle(control.direction)}>
74
+ {main}
75
+ </view>
76
+ <view className="g9-list-row__below">{props.below}</view>
77
+ </> : main}
65
78
  </view>;
66
79
  });
67
80
  function G9SwitchRow(props) {
@@ -71,7 +84,13 @@ function G9SwitchRow(props) {
71
84
  } : {}} checked={checked} onCheckedChange={onCheckedChange}/>} chevron={false}/>;
72
85
  }
73
86
  function G9SettingsGroup(props) {
74
- const rows = Children.toArray(props.children);
87
+ const rows = [
88
+ ...Children.toArray(props.children)
89
+ ];
90
+ const last = rows[rows.length - 1];
91
+ if (isValidElement(last) && (last.type === G9ListRow || last.type === G9SwitchRow) && void 0 === last.props.divider) rows[rows.length - 1] = cloneElement(last, {
92
+ divider: false
93
+ });
75
94
  return <view className={`g9-settings${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)} style={mergeStyle(void 0, props.style)}>
76
95
  {props.title ? <text className="g9-settings__title" accessibility-element={true} accessibility-traits="header">
77
96
  {props.title}
@@ -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,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IAC7B,wGAAwG;IACxG,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpD,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAC3D;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IACvE,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACxD,yDAAyD;IACzD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,oFAAoF;IACpF,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACvC,qEAAqE;IACrE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,E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AAC,CAAC,EAAE;IAClC,kEAAkE;IAClE,QAAQ,CAAC,SAAS,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAA;KAAE,CAAC;IACzD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CAqB5G;AAED,uFAAuF;AACvF,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,iJAAiJ;AACjJ,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,iGAAiG;AACjG,eAAO,MAAM,eAAe,KAAK,CAAC;AASlC;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,SAAS,CAmPxE"}
@@ -1,6 +1,39 @@
1
1
  import "./list.css";
2
2
  import { memo, useEffect, useMemo, useRef, useState } from "@lynx-js/react";
3
3
  import { g9IdProps, mergeStyle } from "../base/control.jsx";
4
+ function g9ReadableLanding(listHeight, itemHeight, gap) {
5
+ return listHeight > 0 && itemHeight > listHeight - 2 * gap ? {
6
+ alignTo: 'top',
7
+ offset: gap
8
+ } : {
9
+ alignTo: 'bottom',
10
+ offset: -gap
11
+ };
12
+ }
13
+ function g9LastRowWatcher(o) {
14
+ let last = 0;
15
+ let timer = null;
16
+ const stop = ()=>{
17
+ if (timer) clearTimeout(timer);
18
+ timer = null;
19
+ };
20
+ return {
21
+ measured: (h)=>{
22
+ var _o_delayMs;
23
+ const grew = h > last + 1;
24
+ last = h;
25
+ if (!grew || !o.following.current) return;
26
+ stop();
27
+ timer = setTimeout(()=>{
28
+ var _o_land_current, _o_land;
29
+ timer = null;
30
+ null == (_o_land_current = (_o_land = o.land).current) || _o_land_current.call(_o_land);
31
+ }, null != (_o_delayMs = o.delayMs) ? _o_delayMs : 160);
32
+ },
33
+ height: ()=>last,
34
+ stop
35
+ };
36
+ }
4
37
  const g9ListProgressiveFrom = 300;
5
38
  const g9ListFirstBatch = 24;
6
39
  const g9ListNextBatch = 96;
@@ -11,7 +44,7 @@ const DEFER_UNMOUNT = Object.freeze({
11
44
  unmountRecycled: true
12
45
  });
13
46
  function G9VirtualList(props) {
14
- var _props_estimatedSize, _props_initialIndex, _props_columns, _props_progressive, _props_followEnd, _props_defer, _props_preload, _props_threshold, _props_threshold1, _props_threshold2, _props_scrollThrottle, _props_bounces, _props_showScrollBar;
47
+ var _props_estimatedSize, _props_initialIndex, _props_columns, _props_progressive, _props_followEnd, _props_endGap, _props_defer, _props_preload, _props_threshold, _props_threshold1, _props_threshold2, _props_scrollThrottle, _props_bounces, _props_showScrollBar;
15
48
  const est = null != (_props_estimatedSize = props.estimatedSize) ? _props_estimatedSize : 56;
16
49
  const render = useRef(props.renderItem);
17
50
  render.current = props.renderItem;
@@ -47,9 +80,65 @@ function G9VirtualList(props) {
47
80
  total,
48
81
  firstLimit
49
82
  ]);
50
- const follow = null != (_props_followEnd = props.followEnd) ? _props_followEnd : true === props.startAtEnd;
83
+ const follow = (null != (_props_followEnd = props.followEnd) ? _props_followEnd : true === props.startAtEnd) !== false;
84
+ const readable = 'readable' === props.followEnd;
85
+ const gap = null != (_props_endGap = props.endGap) ? _props_endGap : 14;
51
86
  const node = useRef(null);
87
+ const viewH = useRef(0);
88
+ const touching = useRef(false);
89
+ const pending = useRef(false);
90
+ const scrollTo = (position, alignTo, offset, smooth)=>{
91
+ try {
92
+ var _node_current;
93
+ null == (_node_current = node.current) || _node_current.invoke({
94
+ method: 'scrollToPosition',
95
+ params: {
96
+ position,
97
+ alignTo,
98
+ smooth,
99
+ ...offset ? {
100
+ offset
101
+ } : {}
102
+ },
103
+ success: ()=>{},
104
+ fail: ()=>{}
105
+ }).exec();
106
+ return true;
107
+ } catch {
108
+ return false;
109
+ }
110
+ };
52
111
  const atEnd = useRef(true);
112
+ const landRef = useRef(null);
113
+ const [watcher] = useState(()=>g9LastRowWatcher({
114
+ following: atEnd,
115
+ land: landRef
116
+ }));
117
+ landRef.current = ()=>{
118
+ if (!total) return;
119
+ if (touching.current) {
120
+ pending.current = true;
121
+ return;
122
+ }
123
+ pending.current = false;
124
+ const position = total - 1 + (props.header ? 1 : 0);
125
+ if (!readable) return void scrollTo(position, 'bottom', 0, true);
126
+ const at = g9ReadableLanding(viewH.current, watcher.height(), gap);
127
+ scrollTo(position, at.alignTo, at.offset, true);
128
+ };
129
+ if (props.handleRef) props.handleRef.current = {
130
+ scrollToKey: (key, options)=>{
131
+ var _ref;
132
+ const index = props.items.findIndex((item, i)=>props.getKey(item, i) === key);
133
+ if (index < 0) return false;
134
+ const end = (null == options ? void 0 : options.align) === 'end';
135
+ return scrollTo(index + (props.header ? 1 : 0), end ? 'bottom' : 'top', null != (_ref = null == options ? void 0 : options.offset) ? _ref : 0, (null == options ? void 0 : options.smooth) !== false);
136
+ },
137
+ land: ()=>{
138
+ var _landRef_current;
139
+ return null == (_landRef_current = landRef.current) ? void 0 : _landRef_current.call(landRef);
140
+ }
141
+ };
53
142
  const lastTop = useRef(0);
54
143
  const lastKey = total ? props.getKey(props.items[total - 1], total - 1) : '';
55
144
  const seen = useRef({
@@ -61,6 +150,7 @@ function G9VirtualList(props) {
61
150
  node.current = r;
62
151
  }).current;
63
152
  useEffect(()=>{
153
+ var _landRef_current;
64
154
  const before = seen.current;
65
155
  seen.current = {
66
156
  first: firstKey,
@@ -69,25 +159,18 @@ function G9VirtualList(props) {
69
159
  };
70
160
  if (!follow || !atEnd.current || !total || before.first !== firstKey) return;
71
161
  if (before.last === lastKey && before.total >= total) return;
72
- try {
73
- var _node_current;
74
- null == (_node_current = node.current) || _node_current.invoke({
75
- method: 'scrollToPosition',
76
- params: {
77
- position: total - 1 + (props.header ? 1 : 0),
78
- alignTo: 'bottom',
79
- smooth: true
80
- },
81
- success: ()=>{},
82
- fail: ()=>{}
83
- }).exec();
84
- } catch {}
162
+ null == (_landRef_current = landRef.current) || _landRef_current.call(landRef);
85
163
  }, [
86
164
  follow,
87
165
  firstKey,
88
166
  lastKey,
89
167
  total
90
168
  ]);
169
+ useEffect(()=>()=>watcher.stop(), [
170
+ watcher
171
+ ]);
172
+ const onLastLayout = (e)=>watcher.measured(e.detail.height);
173
+ const lastIndex = visibleItems.length - 1;
91
174
  const deferMode = null != (_props_defer = props.defer) ? _props_defer : false;
92
175
  const defer = false === deferMode ? void 0 : 'keep' === deferMode ? true : DEFER_UNMOUNT;
93
176
  const cells = useMemo(()=>visibleItems.map((item, index)=>{
@@ -101,7 +184,10 @@ function G9VirtualList(props) {
101
184
  'full-span': true
102
185
  } : {};
103
186
  const reuse = props.reuseKey ? props.reuseKey(item, index) : void 0;
104
- const cell = <Cell item={item} render={()=>render.current(item, index)}/>;
187
+ const plain = <Cell item={item} render={()=>render.current(item, index)}/>;
188
+ const cell = readable && index === lastIndex ? <view className="g9-vlist__measure" bindlayoutchange={onLastLayout}>
189
+ {plain}
190
+ </view> : plain;
105
191
  return defer ? <list-item key={key} item-key={key} reuse-identifier={reuse} estimated-main-axis-size-px={size} {...sticky} {...span} defer={defer}>
106
192
  {cell}
107
193
  </list-item> : <list-item key={key} item-key={key} reuse-identifier={reuse} estimated-main-axis-size-px={size} {...sticky} {...span}>
@@ -114,7 +200,9 @@ function G9VirtualList(props) {
114
200
  props.isSticky,
115
201
  props.isFullSpan,
116
202
  props.reuseKey,
117
- defer
203
+ defer,
204
+ readable,
205
+ lastIndex
118
206
  ]);
119
207
  if (0 === props.items.length && props.empty) return <view className={`g9-vlist g9-vlist--empty${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)} style={mergeStyle(void 0, props.style)}>
120
208
  {props.header}
@@ -136,6 +224,23 @@ function G9VirtualList(props) {
136
224
  var _props_onStartReached;
137
225
  return null == (_props_onStartReached = props.onStartReached) ? void 0 : _props_onStartReached.call(props);
138
226
  }
227
+ } : {}} {...readable ? {
228
+ bindlayoutchange: (e)=>{
229
+ viewH.current = e.detail.height;
230
+ },
231
+ bindtouchstart: ()=>{
232
+ touching.current = true;
233
+ },
234
+ bindtouchend: ()=>{
235
+ var _landRef_current;
236
+ touching.current = false;
237
+ if (pending.current) null == (_landRef_current = landRef.current) || _landRef_current.call(landRef);
238
+ },
239
+ bindtouchcancel: ()=>{
240
+ var _landRef_current;
241
+ touching.current = false;
242
+ if (pending.current) null == (_landRef_current = landRef.current) || _landRef_current.call(landRef);
243
+ }
139
244
  } : {}} {...props.onScroll || follow ? {
140
245
  bindscroll: (e)=>{
141
246
  var _props_onScroll;
@@ -156,4 +261,4 @@ function G9VirtualList(props) {
156
261
  </list-item> : null}
157
262
  </list>;
158
263
  }
159
- export { G9VirtualList, g9ListFirstBatch, g9ListNextBatch, g9ListProgressiveFrom };
264
+ export { G9VirtualList, g9LastRowWatcher, g9ListFirstBatch, g9ListNextBatch, g9ListProgressiveFrom, g9ReadableLanding };
@@ -10,4 +10,12 @@ export interface G9DirectionScopeProps {
10
10
  * app inherits CSS direction. Its own layout is the app's (`className`, `style`).
11
11
  */
12
12
  export declare function G9DirectionScope(props: G9DirectionScopeProps): ReactNode;
13
+ /**
14
+ * A slot of a G9 row that holds the app's content (internal): the content as it is, or — under
15
+ * `settings.layout.inheritedDirection` — in a `.g9-slot` row view in the culture's direction.
16
+ */
17
+ export declare function G9Slot(props: {
18
+ readonly children?: ReactNode;
19
+ readonly className?: string;
20
+ }): ReactNode;
13
21
  //# sourceMappingURL=direction-scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"direction-scope.d.ts","sourceRoot":"","sources":["../../src/provider/direction-scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,CAUxE"}
1
+ {"version":3,"file":"direction-scope.d.ts","sourceRoot":"","sources":["../../src/provider/direction-scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,CAUxE;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAUvG"}
@@ -1,4 +1,4 @@
1
- import { useG9Direction } from "./hooks.jsx";
1
+ import { useG9Direction, useG9Settings } from "./hooks.jsx";
2
2
  function G9DirectionScope(props) {
3
3
  var _props_style;
4
4
  const dir = useG9Direction();
@@ -9,4 +9,15 @@ function G9DirectionScope(props) {
9
9
  {props.children}
10
10
  </view>;
11
11
  }
12
- export { G9DirectionScope };
12
+ function G9Slot(props) {
13
+ const scoped = useG9Settings().layout.inheritedDirection;
14
+ const dir = useG9Direction();
15
+ if (void 0 === props.children || null === props.children || false === props.children) return null;
16
+ if (!scoped) return props.children;
17
+ return <view className={`g9-slot g9-dir-${dir}${props.className ? ` ${props.className}` : ''}`} style={{
18
+ direction: dir
19
+ }}>
20
+ {props.children}
21
+ </view>;
22
+ }
23
+ export { G9DirectionScope, G9Slot };
@@ -4,5 +4,5 @@ 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, } 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 G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
7
+ export { type G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9LayoutSettings, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
8
8
  //# 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,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,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,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,CAAC"}
@@ -18,5 +18,12 @@
18
18
  transition-duration: 0s;
19
19
  }
20
20
 
21
+ .g9-slot {
22
+ flex-direction: row;
23
+ flex-shrink: 0;
24
+ align-items: center;
25
+ display: flex;
26
+ }
27
+
21
28
 
22
29
  /*# sourceMappingURL=provider.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/provider/provider.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,cAAc;AAChB;;AAMA;EAHE,cAAc;AAChB;;AASA;EANE,uBAAuB;AACzB","sourcesContent":["/* G9Provider root: fills the LynxView and carries the theme variables (set inline / with setProperty). */\n.g9-provider {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n}\n\n/* direction does not inherit in Lynx (plan/specs/02 §2): every G9 root sets it; these are the provider's.\n The theme's font per script (LC-07) is `--g9-font-text`, which the provider writes for its root's direction\n (toShapeCssVariables): every G9 text reads it; in the stock theme it is never set and the platform's font stays. */\n.g9-dir-ltr {\n direction: ltr;\n}\n\n.g9-dir-rtl {\n direction: rtl;\n}\n\n/* Reduced motion (setG9MotionScale(0), the provider's `g9-motion-off`): every CSS transition of the kit ends at once, as\n the JS-timed motion does. Listed one by one (no universal selector); a new transition in a component belongs here too\n (provider-motion.test.ts checks); another package lists its own in its own stylesheet (progress-overlay.css). The infinite spinners keep turning: they say «busy», they move nothing a test waits for. */\n.g9-motion-off .g9-deferred__cover,\n.g9-motion-off .g9-progress__fill,\n.g9-motion-off .g9-expander__chevron,\n.g9-motion-off .g9-expander__clip,\n.g9-motion-off .g9-field__label,\n.g9-motion-off .g9-page-loading,\n.g9-motion-off .g9-toast__fill,\n.g9-motion-off .g9-switch__track,\n.g9-motion-off .g9-switch__thumb,\n.g9-motion-off .g9-chip,\n.g9-motion-off .g9-chip__check,\n.g9-motion-off .g9-press-s96,\n.g9-motion-off .g9-press-s96:active,\n.g9-motion-off .g9-press-s92,\n.g9-motion-off .g9-press-s92:active,\n.g9-motion-off .g9-press-s82,\n.g9-motion-off .g9-press-s82:active,\n.g9-motion-off .g9-press-s985,\n.g9-motion-off .g9-press-s985:active,\n.g9-motion-off .g9-press-s99,\n.g9-motion-off .g9-press-s99:active,\n.g9-motion-off .g9-press-o78,\n.g9-motion-off .g9-press-o78:active,\n.g9-motion-off .g9-press-o78b,\n.g9-motion-off .g9-press-o78b:active,\n.g9-motion-off .g9-press-card,\n.g9-motion-off .g9-press-card:active,\n.g9-motion-off .g9-card--down,\n.g9-motion-off .g9-list-row--pressable,\n.g9-motion-off .g9-step-slider__dot,\n.g9-motion-off .g9-shell__tab-bar,\n.g9-motion-off .g9-update-bar,\n.g9-motion-off .g9-scale__step,\n.g9-motion-off .g9-seg__indicator {\n transition-duration: 0ms;\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./src/provider/provider.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,cAAc;AAChB;;AAMA;EAHE,cAAc;AAChB;;AASA;EANE,uBAAuB;AACzB;;AA4CA;EAzCE,mBAAmB;EACnB,cAAc;EACd,mBAAmB;EACnB,aAAa;AACf","sourcesContent":["/* G9Provider root: fills the LynxView and carries the theme variables (set inline / with setProperty). */\n.g9-provider {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n}\n\n/* direction does not inherit in Lynx (plan/specs/02 §2): every G9 root sets it; these are the provider's.\n The theme's font per script (LC-07) is `--g9-font-text`, which the provider writes for its root's direction\n (toShapeCssVariables): every G9 text reads it; in the stock theme it is never set and the platform's font stays. */\n.g9-dir-ltr {\n direction: ltr;\n}\n\n.g9-dir-rtl {\n direction: rtl;\n}\n\n/* Reduced motion (setG9MotionScale(0), the provider's `g9-motion-off`): every CSS transition of the kit ends at once, as\n the JS-timed motion does. Listed one by one (no universal selector); a new transition in a component belongs here too\n (provider-motion.test.ts checks); another package lists its own in its own stylesheet (progress-overlay.css). The infinite spinners keep turning: they say «busy», they move nothing a test waits for. */\n.g9-motion-off .g9-deferred__cover,\n.g9-motion-off .g9-progress__fill,\n.g9-motion-off .g9-expander__chevron,\n.g9-motion-off .g9-expander__clip,\n.g9-motion-off .g9-field__label,\n.g9-motion-off .g9-page-loading,\n.g9-motion-off .g9-toast__fill,\n.g9-motion-off .g9-switch__track,\n.g9-motion-off .g9-switch__thumb,\n.g9-motion-off .g9-chip,\n.g9-motion-off .g9-chip__check,\n.g9-motion-off .g9-press-s96,\n.g9-motion-off .g9-press-s96:active,\n.g9-motion-off .g9-press-s92,\n.g9-motion-off .g9-press-s92:active,\n.g9-motion-off .g9-press-s82,\n.g9-motion-off .g9-press-s82:active,\n.g9-motion-off .g9-press-s985,\n.g9-motion-off .g9-press-s985:active,\n.g9-motion-off .g9-press-s99,\n.g9-motion-off .g9-press-s99:active,\n.g9-motion-off .g9-press-o78,\n.g9-motion-off .g9-press-o78:active,\n.g9-motion-off .g9-press-o78b,\n.g9-motion-off .g9-press-o78b:active,\n.g9-motion-off .g9-press-card,\n.g9-motion-off .g9-press-card:active,\n.g9-motion-off .g9-card--down,\n.g9-motion-off .g9-list-row--pressable,\n.g9-motion-off .g9-step-slider__dot,\n.g9-motion-off .g9-shell__tab-bar,\n.g9-motion-off .g9-update-bar,\n.g9-motion-off .g9-scale__step,\n.g9-motion-off .g9-seg__indicator {\n transition-duration: 0ms;\n}\n\n/* A slot of a G9 row holding the app's content under `settings.layout.inheritedDirection` (2.5.7): a row in the\n culture's direction (set inline), sized by its content. */\n.g9-slot {\n display: flex;\n flex-direction: row;\n align-items: center;\n flex-shrink: 0;\n}\n"],"sourceRoot":""}
@@ -71,6 +71,19 @@ export interface G9Settings {
71
71
  readonly guide?: G9GuideSettings;
72
72
  /** Where toasts stand and how they look (SAC: ink toasts, 420 wide and at the bottom on a desk). */
73
73
  readonly toasts?: G9ToastSettings;
74
+ /** How the library's rows meet the app's CSS (2.5.7). */
75
+ readonly layout?: G9LayoutSettings;
76
+ }
77
+ /** App-wide layout settings. */
78
+ export interface G9LayoutSettings {
79
+ /**
80
+ * The app inherits CSS `direction` (`enableCSSInheritance` with direction in its list: G9Hub, SAC, Riskara). The
81
+ * library pins its own rows to `direction: ltr` (it orders them itself); with this on, every slot that holds the app's
82
+ * content inside such a row (a top bar's `start` and `actions`, a list row's `leading` and `trailing`, a section's
83
+ * `actions`, a form field's `aside`) gets the culture's direction back, in a row view (`.g9-slot`) — what
84
+ * `G9DirectionScope` does by hand. Default `false` (no extra view).
85
+ */
86
+ readonly inheritedDirection?: boolean;
74
87
  }
75
88
  /** App-wide toast settings. */
76
89
  export interface G9ToastSettings {
@@ -125,6 +138,7 @@ export interface G9ResolvedSettings {
125
138
  readonly toggles: Required<G9ToggleSettings>;
126
139
  readonly guide: G9GuideSettings;
127
140
  readonly toasts: G9ToastSettings;
141
+ readonly layout: Required<G9LayoutSettings>;
128
142
  }
129
143
  /** MAUI `G9PageBase.PageLoadingDismissDelayMs` default. */
130
144
  export declare const g9PageLoadingDismissDelayMs = 369;
@@ -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,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAA8B,KAAK,eAAe,EAAsB,MAAM,gBAAgB,CAAC;AACtG,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AAE9E,qGAAqG;AACrG,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD,iHAAiH;AACjH,MAAM,WAAW,qBAAqB;IACpC,2GAA2G;IAC3G,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,sFAAsF;IACtF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,yGAAyG;IACzG,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,8FAA8F;IAC9F,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE;IACpC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAA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e,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,CAiCpB"}
@@ -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_toggles;
17
+ var _s_fields, _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.');
@@ -44,6 +44,9 @@ function resolveSettings(settings, fallbackIconFonts) {
44
44
  guide: null != (_s_guide = s.guide) ? _s_guide : {},
45
45
  toasts: Object.freeze({
46
46
  ...null != (_s_toasts = s.toasts) ? _s_toasts : {}
47
+ }),
48
+ layout: Object.freeze({
49
+ inheritedDirection: (null == (_s_layout = s.layout) ? void 0 : _s_layout.inheritedDirection) === true
47
50
  })
48
51
  });
49
52
  }