@g9tm/lynxcontrols 0.0.0-stage → 1.4.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.
- package/README.md +22 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/base/base.css +16 -0
- package/dist/base/base.css.map +1 -0
- package/dist/base/control.d.ts +44 -0
- package/dist/base/control.d.ts.map +1 -0
- package/dist/base/control.jsx +24 -0
- package/dist/base/control.jsx.map +1 -0
- package/dist/base/corner-badge.d.ts +35 -0
- package/dist/base/corner-badge.d.ts.map +1 -0
- package/dist/base/corner-badge.jsx +45 -0
- package/dist/base/corner-badge.jsx.map +1 -0
- package/dist/base/disposer.d.ts +28 -0
- package/dist/base/disposer.d.ts.map +1 -0
- package/dist/base/disposer.jsx +61 -0
- package/dist/base/disposer.jsx.map +1 -0
- package/dist/base/index.d.ts +10 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.jsx +9 -0
- package/dist/base/press.d.ts +38 -0
- package/dist/base/press.d.ts.map +1 -0
- package/dist/base/press.jsx +73 -0
- package/dist/base/press.jsx.map +1 -0
- package/dist/base/pressable.d.ts +25 -0
- package/dist/base/pressable.d.ts.map +1 -0
- package/dist/base/pressable.jsx +38 -0
- package/dist/base/pressable.jsx.map +1 -0
- package/dist/base/selection-item.d.ts +29 -0
- package/dist/base/selection-item.d.ts.map +1 -0
- package/dist/base/selection-item.jsx +6 -0
- package/dist/base/selection-item.jsx.map +1 -0
- package/dist/base/timers.d.ts +7 -0
- package/dist/base/timers.d.ts.map +1 -0
- package/dist/base/timers.jsx +10 -0
- package/dist/base/timers.jsx.map +1 -0
- package/dist/base/use-controllable-state.d.ts +30 -0
- package/dist/base/use-controllable-state.d.ts.map +1 -0
- package/dist/base/use-controllable-state.jsx +49 -0
- package/dist/base/use-controllable-state.jsx.map +1 -0
- package/dist/base/use-stable-callback.d.ts +8 -0
- package/dist/base/use-stable-callback.d.ts.map +1 -0
- package/dist/base/use-stable-callback.jsx +12 -0
- package/dist/base/use-stable-callback.jsx.map +1 -0
- package/dist/button/button.css +162 -0
- package/dist/button/button.css.map +1 -0
- package/dist/button/button.d.ts +52 -0
- package/dist/button/button.d.ts.map +1 -0
- package/dist/button/button.jsx +87 -0
- package/dist/button/button.jsx.map +1 -0
- package/dist/button/header-action-button.d.ts +34 -0
- package/dist/button/header-action-button.d.ts.map +1 -0
- package/dist/button/header-action-button.jsx +51 -0
- package/dist/button/header-action-button.jsx.map +1 -0
- package/dist/button/icon-button.d.ts +46 -0
- package/dist/button/icon-button.d.ts.map +1 -0
- package/dist/button/icon-button.jsx +69 -0
- package/dist/button/icon-button.jsx.map +1 -0
- package/dist/button/index.d.ts +9 -0
- package/dist/button/index.d.ts.map +1 -0
- package/dist/button/index.jsx +8 -0
- package/dist/button/nav-card.d.ts +58 -0
- package/dist/button/nav-card.d.ts.map +1 -0
- package/dist/button/nav-card.jsx +95 -0
- package/dist/button/nav-card.jsx.map +1 -0
- package/dist/button/safe-tap.d.ts +27 -0
- package/dist/button/safe-tap.d.ts.map +1 -0
- package/dist/button/safe-tap.jsx +46 -0
- package/dist/button/safe-tap.jsx.map +1 -0
- package/dist/button/safe.d.ts +84 -0
- package/dist/button/safe.d.ts.map +1 -0
- package/dist/button/safe.jsx +116 -0
- package/dist/button/safe.jsx.map +1 -0
- package/dist/button/vertical-icon-text-button.d.ts +18 -0
- package/dist/button/vertical-icon-text-button.d.ts.map +1 -0
- package/dist/button/vertical-icon-text-button.jsx +21 -0
- package/dist/button/vertical-icon-text-button.jsx.map +1 -0
- package/dist/button/visuals.d.ts +53 -0
- package/dist/button/visuals.d.ts.map +1 -0
- package/dist/button/visuals.jsx +92 -0
- package/dist/button/visuals.jsx.map +1 -0
- package/dist/cascade/cascade-panel.d.ts +80 -0
- package/dist/cascade/cascade-panel.d.ts.map +1 -0
- package/dist/cascade/cascade-panel.jsx +179 -0
- package/dist/cascade/cascade-panel.jsx.map +1 -0
- package/dist/cascade/cascade.css +70 -0
- package/dist/cascade/cascade.css.map +1 -0
- package/dist/cascade/index.d.ts +3 -0
- package/dist/cascade/index.d.ts.map +1 -0
- package/dist/cascade/index.jsx +2 -0
- package/dist/cascade/model.d.ts +68 -0
- package/dist/cascade/model.d.ts.map +1 -0
- package/dist/cascade/model.jsx +161 -0
- package/dist/cascade/model.jsx.map +1 -0
- package/dist/deferred/deferred-content.d.ts +82 -0
- package/dist/deferred/deferred-content.d.ts.map +1 -0
- package/dist/deferred/deferred-content.jsx +263 -0
- package/dist/deferred/deferred-content.jsx.map +1 -0
- package/dist/deferred/deferred.css +62 -0
- package/dist/deferred/deferred.css.map +1 -0
- package/dist/deferred/index.d.ts +3 -0
- package/dist/deferred/index.d.ts.map +1 -0
- package/dist/deferred/index.jsx +2 -0
- package/dist/deferred/readiness-signal.d.ts +16 -0
- package/dist/deferred/readiness-signal.d.ts.map +1 -0
- package/dist/deferred/readiness-signal.jsx +29 -0
- package/dist/deferred/readiness-signal.jsx.map +1 -0
- package/dist/display/activity-indicator.d.ts +21 -0
- package/dist/display/activity-indicator.d.ts.map +1 -0
- package/dist/display/activity-indicator.jsx +22 -0
- package/dist/display/activity-indicator.jsx.map +1 -0
- package/dist/display/culture-date-time-label.d.ts +64 -0
- package/dist/display/culture-date-time-label.d.ts.map +1 -0
- package/dist/display/culture-date-time-label.jsx +71 -0
- package/dist/display/culture-date-time-label.jsx.map +1 -0
- package/dist/display/display.css +217 -0
- package/dist/display/display.css.map +1 -0
- package/dist/display/index.d.ts +7 -0
- package/dist/display/index.d.ts.map +1 -0
- package/dist/display/index.jsx +6 -0
- package/dist/display/progress-bar.d.ts +38 -0
- package/dist/display/progress-bar.d.ts.map +1 -0
- package/dist/display/progress-bar.jsx +57 -0
- package/dist/display/progress-bar.jsx.map +1 -0
- package/dist/display/separator.d.ts +30 -0
- package/dist/display/separator.d.ts.map +1 -0
- package/dist/display/separator.jsx +55 -0
- package/dist/display/separator.jsx.map +1 -0
- package/dist/display/shimmer.d.ts +41 -0
- package/dist/display/shimmer.d.ts.map +1 -0
- package/dist/display/shimmer.jsx +41 -0
- package/dist/display/shimmer.jsx.map +1 -0
- package/dist/display/title-with-line.d.ts +13 -0
- package/dist/display/title-with-line.d.ts.map +1 -0
- package/dist/display/title-with-line.jsx +21 -0
- package/dist/display/title-with-line.jsx.map +1 -0
- package/dist/edge-panel/edge-panel.css +132 -0
- package/dist/edge-panel/edge-panel.css.map +1 -0
- package/dist/edge-panel/edge-panel.d.ts +87 -0
- package/dist/edge-panel/edge-panel.d.ts.map +1 -0
- package/dist/edge-panel/edge-panel.jsx +326 -0
- package/dist/edge-panel/edge-panel.jsx.map +1 -0
- package/dist/edge-panel/helper.d.ts +27 -0
- package/dist/edge-panel/helper.d.ts.map +1 -0
- package/dist/edge-panel/helper.jsx +118 -0
- package/dist/edge-panel/helper.jsx.map +1 -0
- package/dist/edge-panel/index.d.ts +4 -0
- package/dist/edge-panel/index.d.ts.map +1 -0
- package/dist/edge-panel/index.jsx +3 -0
- package/dist/edge-panel/types.d.ts +155 -0
- package/dist/edge-panel/types.d.ts.map +1 -0
- package/dist/edge-panel/types.jsx +139 -0
- package/dist/edge-panel/types.jsx.map +1 -0
- package/dist/expander/expander.css +54 -0
- package/dist/expander/expander.css.map +1 -0
- package/dist/expander/expander.d.ts +46 -0
- package/dist/expander/expander.d.ts.map +1 -0
- package/dist/expander/expander.jsx +110 -0
- package/dist/expander/expander.jsx.map +1 -0
- package/dist/expander/index.d.ts +2 -0
- package/dist/expander/index.d.ts.map +1 -0
- package/dist/expander/index.jsx +1 -0
- package/dist/fields/dictation.d.ts +43 -0
- package/dist/fields/dictation.d.ts.map +1 -0
- package/dist/fields/dictation.jsx +124 -0
- package/dist/fields/dictation.jsx.map +1 -0
- package/dist/fields/editor.d.ts +26 -0
- package/dist/fields/editor.d.ts.map +1 -0
- package/dist/fields/editor.jsx +46 -0
- package/dist/fields/editor.jsx.map +1 -0
- package/dist/fields/fields.css +156 -0
- package/dist/fields/fields.css.map +1 -0
- package/dist/fields/index.d.ts +12 -0
- package/dist/fields/index.d.ts.map +1 -0
- package/dist/fields/index.jsx +11 -0
- package/dist/fields/input-policy.d.ts +48 -0
- package/dist/fields/input-policy.d.ts.map +1 -0
- package/dist/fields/input-policy.jsx +215 -0
- package/dist/fields/input-policy.jsx.map +1 -0
- package/dist/fields/outlined-field.d.ts +146 -0
- package/dist/fields/outlined-field.d.ts.map +1 -0
- package/dist/fields/outlined-field.jsx +196 -0
- package/dist/fields/outlined-field.jsx.map +1 -0
- package/dist/fields/pin-entry.d.ts +63 -0
- package/dist/fields/pin-entry.d.ts.map +1 -0
- package/dist/fields/pin-entry.jsx +293 -0
- package/dist/fields/pin-entry.jsx.map +1 -0
- package/dist/fields/search-entry.d.ts +35 -0
- package/dist/fields/search-entry.d.ts.map +1 -0
- package/dist/fields/search-entry.jsx +118 -0
- package/dist/fields/search-entry.jsx.map +1 -0
- package/dist/fields/slot-layout.d.ts +33 -0
- package/dist/fields/slot-layout.d.ts.map +1 -0
- package/dist/fields/slot-layout.jsx +33 -0
- package/dist/fields/slot-layout.jsx.map +1 -0
- package/dist/fields/text-entry.d.ts +62 -0
- package/dist/fields/text-entry.d.ts.map +1 -0
- package/dist/fields/text-entry.jsx +72 -0
- package/dist/fields/text-entry.jsx.map +1 -0
- package/dist/fields/use-dictation.d.ts +34 -0
- package/dist/fields/use-dictation.d.ts.map +1 -0
- package/dist/fields/use-dictation.jsx +80 -0
- package/dist/fields/use-dictation.jsx.map +1 -0
- package/dist/fields/use-text-input.d.ts +150 -0
- package/dist/fields/use-text-input.d.ts.map +1 -0
- package/dist/fields/use-text-input.jsx +237 -0
- package/dist/fields/use-text-input.jsx.map +1 -0
- package/dist/fields/validator.d.ts +14 -0
- package/dist/fields/validator.d.ts.map +1 -0
- package/dist/fields/validator.jsx +20 -0
- package/dist/fields/validator.jsx.map +1 -0
- package/dist/host/back.d.ts +42 -0
- package/dist/host/back.d.ts.map +1 -0
- package/dist/host/back.jsx +47 -0
- package/dist/host/back.jsx.map +1 -0
- package/dist/host/hooks.d.ts +85 -0
- package/dist/host/hooks.d.ts.map +1 -0
- package/dist/host/hooks.jsx +163 -0
- package/dist/host/hooks.jsx.map +1 -0
- package/dist/host/host.css +81 -0
- package/dist/host/host.css.map +1 -0
- package/dist/host/host.d.ts +70 -0
- package/dist/host/host.d.ts.map +1 -0
- package/dist/host/host.jsx +229 -0
- package/dist/host/host.jsx.map +1 -0
- package/dist/host/index.d.ts +9 -0
- package/dist/host/index.d.ts.map +1 -0
- package/dist/host/index.jsx +8 -0
- package/dist/host/keyboard.d.ts +24 -0
- package/dist/host/keyboard.d.ts.map +1 -0
- package/dist/host/keyboard.jsx +28 -0
- package/dist/host/keyboard.jsx.map +1 -0
- package/dist/host/layers.d.ts +69 -0
- package/dist/host/layers.d.ts.map +1 -0
- package/dist/host/layers.jsx +111 -0
- package/dist/host/layers.jsx.map +1 -0
- package/dist/host/page-loading-overlay.d.ts +17 -0
- package/dist/host/page-loading-overlay.d.ts.map +1 -0
- package/dist/host/page-loading-overlay.jsx +16 -0
- package/dist/host/page-loading-overlay.jsx.map +1 -0
- package/dist/host/readiness.d.ts +57 -0
- package/dist/host/readiness.d.ts.map +1 -0
- package/dist/host/readiness.jsx +138 -0
- package/dist/host/readiness.jsx.map +1 -0
- package/dist/host/registry.d.ts +106 -0
- package/dist/host/registry.d.ts.map +1 -0
- package/dist/host/registry.jsx +93 -0
- package/dist/host/registry.jsx.map +1 -0
- package/dist/icon/icon.css +39 -0
- package/dist/icon/icon.css.map +1 -0
- package/dist/icon/icon.d.ts +57 -0
- package/dist/icon/icon.d.ts.map +1 -0
- package/dist/icon/icon.jsx +115 -0
- package/dist/icon/icon.jsx.map +1 -0
- package/dist/icon/index.d.ts +4 -0
- package/dist/icon/index.d.ts.map +1 -0
- package/dist/icon/index.jsx +3 -0
- package/dist/icon/slot.d.ts +45 -0
- package/dist/icon/slot.d.ts.map +1 -0
- package/dist/icon/slot.jsx +61 -0
- package/dist/icon/slot.jsx.map +1 -0
- package/dist/icon/swatch.d.ts +29 -0
- package/dist/icon/swatch.d.ts.map +1 -0
- package/dist/icon/swatch.jsx +25 -0
- package/dist/icon/swatch.jsx.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.jsx +1 -0
- package/dist/pickers/combo-box.d.ts +42 -0
- package/dist/pickers/combo-box.d.ts.map +1 -0
- package/dist/pickers/combo-box.jsx +129 -0
- package/dist/pickers/combo-box.jsx.map +1 -0
- package/dist/pickers/date-time-picker.d.ts +63 -0
- package/dist/pickers/date-time-picker.d.ts.map +1 -0
- package/dist/pickers/date-time-picker.jsx +141 -0
- package/dist/pickers/date-time-picker.jsx.map +1 -0
- package/dist/pickers/date-time.d.ts +82 -0
- package/dist/pickers/date-time.d.ts.map +1 -0
- package/dist/pickers/date-time.jsx +130 -0
- package/dist/pickers/date-time.jsx.map +1 -0
- package/dist/pickers/index.d.ts +10 -0
- package/dist/pickers/index.d.ts.map +1 -0
- package/dist/pickers/index.jsx +9 -0
- package/dist/pickers/picker-sheet.d.ts +21 -0
- package/dist/pickers/picker-sheet.d.ts.map +1 -0
- package/dist/pickers/picker-sheet.jsx +61 -0
- package/dist/pickers/picker-sheet.jsx.map +1 -0
- package/dist/pickers/picker.d.ts +32 -0
- package/dist/pickers/picker.d.ts.map +1 -0
- package/dist/pickers/picker.jsx +72 -0
- package/dist/pickers/picker.jsx.map +1 -0
- package/dist/pickers/pickers.css +219 -0
- package/dist/pickers/pickers.css.map +1 -0
- package/dist/pickers/timespan-picker.d.ts +36 -0
- package/dist/pickers/timespan-picker.d.ts.map +1 -0
- package/dist/pickers/timespan-picker.jsx +99 -0
- package/dist/pickers/timespan-picker.jsx.map +1 -0
- package/dist/pickers/timespan.d.ts +38 -0
- package/dist/pickers/timespan.d.ts.map +1 -0
- package/dist/pickers/timespan.jsx +49 -0
- package/dist/pickers/timespan.jsx.map +1 -0
- package/dist/pickers/trigger.d.ts +34 -0
- package/dist/pickers/trigger.d.ts.map +1 -0
- package/dist/pickers/trigger.jsx +77 -0
- package/dist/pickers/trigger.jsx.map +1 -0
- package/dist/pickers/wheel-column.d.ts +32 -0
- package/dist/pickers/wheel-column.d.ts.map +1 -0
- package/dist/pickers/wheel-column.jsx +99 -0
- package/dist/pickers/wheel-column.jsx.map +1 -0
- package/dist/plus-button/index.d.ts +3 -0
- package/dist/plus-button/index.d.ts.map +1 -0
- package/dist/plus-button/index.jsx +2 -0
- package/dist/plus-button/model.d.ts +65 -0
- package/dist/plus-button/model.d.ts.map +1 -0
- package/dist/plus-button/model.jsx +86 -0
- package/dist/plus-button/model.jsx.map +1 -0
- package/dist/plus-button/plus-button.css +67 -0
- package/dist/plus-button/plus-button.css.map +1 -0
- package/dist/plus-button/plus-button.d.ts +38 -0
- package/dist/plus-button/plus-button.d.ts.map +1 -0
- package/dist/plus-button/plus-button.jsx +155 -0
- package/dist/plus-button/plus-button.jsx.map +1 -0
- package/dist/popup/frame.d.ts +101 -0
- package/dist/popup/frame.d.ts.map +1 -0
- package/dist/popup/frame.jsx +244 -0
- package/dist/popup/frame.jsx.map +1 -0
- package/dist/popup/index.d.ts +8 -0
- package/dist/popup/index.d.ts.map +1 -0
- package/dist/popup/index.jsx +7 -0
- package/dist/popup/input-form.d.ts +35 -0
- package/dist/popup/input-form.d.ts.map +1 -0
- package/dist/popup/input-form.jsx +160 -0
- package/dist/popup/input-form.jsx.map +1 -0
- package/dist/popup/input.d.ts +175 -0
- package/dist/popup/input.d.ts.map +1 -0
- package/dist/popup/input.jsx +176 -0
- package/dist/popup/input.jsx.map +1 -0
- package/dist/popup/popup-view.d.ts +25 -0
- package/dist/popup/popup-view.d.ts.map +1 -0
- package/dist/popup/popup-view.jsx +67 -0
- package/dist/popup/popup-view.jsx.map +1 -0
- package/dist/popup/popup.css +203 -0
- package/dist/popup/popup.css.map +1 -0
- package/dist/popup/queue.d.ts +90 -0
- package/dist/popup/queue.d.ts.map +1 -0
- package/dist/popup/queue.jsx +309 -0
- package/dist/popup/queue.jsx.map +1 -0
- package/dist/popup/service.d.ts +60 -0
- package/dist/popup/service.d.ts.map +1 -0
- package/dist/popup/service.jsx +342 -0
- package/dist/popup/service.jsx.map +1 -0
- package/dist/popup/types.d.ts +211 -0
- package/dist/popup/types.d.ts.map +1 -0
- package/dist/popup/types.jsx +218 -0
- package/dist/popup/types.jsx.map +1 -0
- package/dist/provider/contexts.d.ts +41 -0
- package/dist/provider/contexts.d.ts.map +1 -0
- package/dist/provider/contexts.jsx +11 -0
- package/dist/provider/contexts.jsx.map +1 -0
- package/dist/provider/global-events.d.ts +8 -0
- package/dist/provider/global-events.d.ts.map +1 -0
- package/dist/provider/global-events.jsx +17 -0
- package/dist/provider/global-events.jsx.map +1 -0
- package/dist/provider/hooks.d.ts +49 -0
- package/dist/provider/hooks.d.ts.map +1 -0
- package/dist/provider/hooks.jsx +72 -0
- package/dist/provider/hooks.jsx.map +1 -0
- package/dist/provider/index.d.ts +5 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.jsx +3 -0
- package/dist/provider/provider.css +18 -0
- package/dist/provider/provider.css.map +1 -0
- package/dist/provider/provider.d.ts +51 -0
- package/dist/provider/provider.d.ts.map +1 -0
- package/dist/provider/provider.jsx +290 -0
- package/dist/provider/provider.jsx.map +1 -0
- package/dist/provider/settings.d.ts +99 -0
- package/dist/provider/settings.d.ts.map +1 -0
- package/dist/provider/settings.jsx +45 -0
- package/dist/provider/settings.jsx.map +1 -0
- package/dist/provider/theme-css.d.ts +12 -0
- package/dist/provider/theme-css.d.ts.map +1 -0
- package/dist/provider/theme-css.jsx +19 -0
- package/dist/provider/theme-css.jsx.map +1 -0
- package/dist/provider/theme-root.d.ts +10 -0
- package/dist/provider/theme-root.d.ts.map +1 -0
- package/dist/provider/theme-root.jsx +24 -0
- package/dist/provider/theme-root.jsx.map +1 -0
- package/dist/provider/theme.css +473 -0
- package/dist/provider/theme.css.map +1 -0
- package/dist/range-slider/index.d.ts +3 -0
- package/dist/range-slider/index.d.ts.map +1 -0
- package/dist/range-slider/index.jsx +2 -0
- package/dist/range-slider/math.d.ts +23 -0
- package/dist/range-slider/math.d.ts.map +1 -0
- package/dist/range-slider/math.jsx +71 -0
- package/dist/range-slider/math.jsx.map +1 -0
- package/dist/range-slider/range-slider.css +90 -0
- package/dist/range-slider/range-slider.css.map +1 -0
- package/dist/range-slider/range-slider.d.ts +52 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -0
- package/dist/range-slider/range-slider.jsx +159 -0
- package/dist/range-slider/range-slider.jsx.map +1 -0
- package/dist/selection/index.d.ts +5 -0
- package/dist/selection/index.d.ts.map +1 -0
- package/dist/selection/index.jsx +3 -0
- package/dist/selection/model.d.ts +53 -0
- package/dist/selection/model.d.ts.map +1 -0
- package/dist/selection/model.jsx +69 -0
- package/dist/selection/model.jsx.map +1 -0
- package/dist/selection/selection-sheet.d.ts +80 -0
- package/dist/selection/selection-sheet.d.ts.map +1 -0
- package/dist/selection/selection-sheet.jsx +362 -0
- package/dist/selection/selection-sheet.jsx.map +1 -0
- package/dist/selection/selection.css +75 -0
- package/dist/selection/selection.css.map +1 -0
- package/dist/selection/use-selection-model.d.ts +9 -0
- package/dist/selection/use-selection-model.d.ts.map +1 -0
- package/dist/selection/use-selection-model.jsx +22 -0
- package/dist/selection/use-selection-model.jsx.map +1 -0
- package/dist/sheet/frame.d.ts +45 -0
- package/dist/sheet/frame.d.ts.map +1 -0
- package/dist/sheet/frame.jsx +205 -0
- package/dist/sheet/frame.jsx.map +1 -0
- package/dist/sheet/header.d.ts +35 -0
- package/dist/sheet/header.d.ts.map +1 -0
- package/dist/sheet/header.jsx +145 -0
- package/dist/sheet/header.jsx.map +1 -0
- package/dist/sheet/height-memo.d.ts +47 -0
- package/dist/sheet/height-memo.d.ts.map +1 -0
- package/dist/sheet/height-memo.jsx +100 -0
- package/dist/sheet/height-memo.jsx.map +1 -0
- package/dist/sheet/index.d.ts +11 -0
- package/dist/sheet/index.d.ts.map +1 -0
- package/dist/sheet/index.jsx +10 -0
- package/dist/sheet/loadable.d.ts +35 -0
- package/dist/sheet/loadable.d.ts.map +1 -0
- package/dist/sheet/loadable.jsx +65 -0
- package/dist/sheet/loadable.jsx.map +1 -0
- package/dist/sheet/options.d.ts +220 -0
- package/dist/sheet/options.d.ts.map +1 -0
- package/dist/sheet/options.jsx +91 -0
- package/dist/sheet/options.jsx.map +1 -0
- package/dist/sheet/processing.d.ts +22 -0
- package/dist/sheet/processing.d.ts.map +1 -0
- package/dist/sheet/processing.jsx +66 -0
- package/dist/sheet/processing.jsx.map +1 -0
- package/dist/sheet/service.d.ts +55 -0
- package/dist/sheet/service.d.ts.map +1 -0
- package/dist/sheet/service.jsx +143 -0
- package/dist/sheet/service.jsx.map +1 -0
- package/dist/sheet/sheet.css +195 -0
- package/dist/sheet/sheet.css.map +1 -0
- package/dist/sheet/sheet.d.ts +19 -0
- package/dist/sheet/sheet.d.ts.map +1 -0
- package/dist/sheet/sheet.jsx +40 -0
- package/dist/sheet/sheet.jsx.map +1 -0
- package/dist/sheet/sizing.d.ts +69 -0
- package/dist/sheet/sizing.d.ts.map +1 -0
- package/dist/sheet/sizing.jsx +146 -0
- package/dist/sheet/sizing.jsx.map +1 -0
- package/dist/sheet/stack.d.ts +161 -0
- package/dist/sheet/stack.d.ts.map +1 -0
- package/dist/sheet/stack.jsx +378 -0
- package/dist/sheet/stack.jsx.map +1 -0
- package/dist/swipe/index.d.ts +3 -0
- package/dist/swipe/index.d.ts.map +1 -0
- package/dist/swipe/index.jsx +2 -0
- package/dist/swipe/model.d.ts +72 -0
- package/dist/swipe/model.d.ts.map +1 -0
- package/dist/swipe/model.jsx +66 -0
- package/dist/swipe/model.jsx.map +1 -0
- package/dist/swipe/swipe-view.d.ts +40 -0
- package/dist/swipe/swipe-view.d.ts.map +1 -0
- package/dist/swipe/swipe-view.jsx +163 -0
- package/dist/swipe/swipe-view.jsx.map +1 -0
- package/dist/swipe/swipe.css +34 -0
- package/dist/swipe/swipe.css.map +1 -0
- package/dist/tab-bar/index.d.ts +4 -0
- package/dist/tab-bar/index.d.ts.map +1 -0
- package/dist/tab-bar/index.jsx +3 -0
- package/dist/tab-bar/metrics.d.ts +230 -0
- package/dist/tab-bar/metrics.d.ts.map +1 -0
- package/dist/tab-bar/metrics.jsx +221 -0
- package/dist/tab-bar/metrics.jsx.map +1 -0
- package/dist/tab-bar/model.d.ts +170 -0
- package/dist/tab-bar/model.d.ts.map +1 -0
- package/dist/tab-bar/model.jsx +349 -0
- package/dist/tab-bar/model.jsx.map +1 -0
- package/dist/tab-bar/tab-bar.css +173 -0
- package/dist/tab-bar/tab-bar.css.map +1 -0
- package/dist/tab-bar/tab-bar.d.ts +56 -0
- package/dist/tab-bar/tab-bar.d.ts.map +1 -0
- package/dist/tab-bar/tab-bar.jsx +343 -0
- package/dist/tab-bar/tab-bar.jsx.map +1 -0
- package/dist/tabs/index.d.ts +3 -0
- package/dist/tabs/index.d.ts.map +1 -0
- package/dist/tabs/index.jsx +2 -0
- package/dist/tabs/model.d.ts +83 -0
- package/dist/tabs/model.d.ts.map +1 -0
- package/dist/tabs/model.jsx +113 -0
- package/dist/tabs/model.jsx.map +1 -0
- package/dist/tabs/tab-view.d.ts +47 -0
- package/dist/tabs/tab-view.d.ts.map +1 -0
- package/dist/tabs/tab-view.jsx +227 -0
- package/dist/tabs/tab-view.jsx.map +1 -0
- package/dist/tabs/tabs.css +182 -0
- package/dist/tabs/tabs.css.map +1 -0
- package/dist/toast/index.d.ts +3 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toast/index.jsx +2 -0
- package/dist/toast/service.d.ts +48 -0
- package/dist/toast/service.d.ts.map +1 -0
- package/dist/toast/service.jsx +201 -0
- package/dist/toast/service.jsx.map +1 -0
- package/dist/toast/store.d.ts +174 -0
- package/dist/toast/store.d.ts.map +1 -0
- package/dist/toast/store.jsx +353 -0
- package/dist/toast/store.jsx.map +1 -0
- package/dist/toast/toast.css +152 -0
- package/dist/toast/toast.css.map +1 -0
- package/dist/toggle/checkbox-math.d.ts +52 -0
- package/dist/toggle/checkbox-math.d.ts.map +1 -0
- package/dist/toggle/checkbox-math.jsx +111 -0
- package/dist/toggle/checkbox-math.jsx.map +1 -0
- package/dist/toggle/checkbox.d.ts +56 -0
- package/dist/toggle/checkbox.d.ts.map +1 -0
- package/dist/toggle/checkbox.jsx +152 -0
- package/dist/toggle/checkbox.jsx.map +1 -0
- package/dist/toggle/chip-group.d.ts +50 -0
- package/dist/toggle/chip-group.d.ts.map +1 -0
- package/dist/toggle/chip-group.jsx +107 -0
- package/dist/toggle/chip-group.jsx.map +1 -0
- package/dist/toggle/index.d.ts +5 -0
- package/dist/toggle/index.d.ts.map +1 -0
- package/dist/toggle/index.jsx +4 -0
- package/dist/toggle/switch.d.ts +52 -0
- package/dist/toggle/switch.d.ts.map +1 -0
- package/dist/toggle/switch.jsx +192 -0
- package/dist/toggle/switch.jsx.map +1 -0
- package/dist/toggle/toggle.css +189 -0
- package/dist/toggle/toggle.css.map +1 -0
- package/package.json +155 -4
- package/rspeedy/index.d.ts +21 -0
- package/rspeedy/index.mjs +75 -0
- package/rspeedy/index.test.mjs +52 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { type G9ToastService, g9ToastMetrics, g9Toasts, toastServiceOf, useG9Toasts } from './service.js';
|
|
2
|
+
export { type G9LoaderState, type G9LoadingLease, type G9LoadingToastState, type G9ProgressToastState, type G9ToastEntry, type G9ToastHandle, type G9ToastOptions, G9ToastPosition, type G9ToastSnapshot, G9ToastStore, type G9ToastStoreConfig, G9ToastType, g9DefaultToastOptions, g9MaxToastsPerStack, g9ToastTimings, resolveToastPosition, } from './store.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACvG,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,eAAe,EACf,KAAK,eAAe,EACpB,YAAY,EACZ,KAAK,kBAAkB,EACvB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import './toast.css';
|
|
2
|
+
import { type G9HostHandle } from '../host/registry.js';
|
|
3
|
+
import { type G9LoadingLease, type G9ToastHandle, type G9ToastOptions, type G9ToastPosition, G9ToastStore, type G9ToastType } from './store.js';
|
|
4
|
+
/** Margin between a toast stack and the screen edge (MAUI 16 dp) and between toasts (8 dp). */
|
|
5
|
+
export declare const g9ToastMetrics: Readonly<{
|
|
6
|
+
edgeMargin: 16;
|
|
7
|
+
gap: 8;
|
|
8
|
+
loaderScrimOpacity: 0.55;
|
|
9
|
+
}>;
|
|
10
|
+
/** The toasts of a host (MAUI `G9ToastHelper`). */
|
|
11
|
+
export interface G9ToastService {
|
|
12
|
+
/** A typed, auto-dismissing toast (MAUI `ShowToastAsync`). */
|
|
13
|
+
showToast(message: string, type?: G9ToastType, options?: G9ToastOptions): G9ToastHandle;
|
|
14
|
+
/** Dismisses one toast or every typed toast (MAUI `DismissToastAsync`). */
|
|
15
|
+
dismissToast(id?: number): void;
|
|
16
|
+
/** Full-screen blocking loader, reference-counted (MAUI `ShowLoadingAsync`). */
|
|
17
|
+
showLoading(text?: string): void;
|
|
18
|
+
/** Lease form of `showLoading` (MAUI `BeginLoadingAsync`). */
|
|
19
|
+
beginLoading(text?: string): G9LoadingLease;
|
|
20
|
+
/** Releases one anonymous hold (MAUI `DismissLoadingAsync`). */
|
|
21
|
+
dismissLoading(): void;
|
|
22
|
+
/** Compact non-blocking loading toast (MAUI `ShowLoadingToastAsync`). */
|
|
23
|
+
showLoadingToast(text?: string, position?: G9ToastPosition | null): void;
|
|
24
|
+
dismissLoadingToast(): void;
|
|
25
|
+
/** Progress toast (MAUI `ShowProgressToastAsync`). */
|
|
26
|
+
showProgressToast(title: string, detail?: string | null, progress?: number, position?: G9ToastPosition | null): void;
|
|
27
|
+
updateProgressToast(title?: string | null, detail?: string | null, progress?: number | null): void;
|
|
28
|
+
dismissProgressToast(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Re-anchors live toasts after the bottom clearance changed (MAUI `RefreshBottomInsetsAsync`, ADR-0027: an explicit
|
|
31
|
+
* call, not a subscription). `animate` glides 220 ms; false snaps.
|
|
32
|
+
*/
|
|
33
|
+
refreshBottomInsets(animate?: boolean): void;
|
|
34
|
+
/** The space a bottom bar (tab bar) takes above the safe area; call `refreshBottomInsets` after changing it. */
|
|
35
|
+
setBottomClearance(px: number): void;
|
|
36
|
+
/** A bottom-anchored overlay (MAUI `IG9BottomAnchoredOverlay`): bottom stacks sit above its height. */
|
|
37
|
+
setBottomOverlay(key: string, heightPx: number | null): void;
|
|
38
|
+
/** Clears every toast, loader and progress (MAUI `DismissAllAsync`). */
|
|
39
|
+
dismissAll(): void;
|
|
40
|
+
readonly store: G9ToastStore;
|
|
41
|
+
}
|
|
42
|
+
/** The toast service of a host (created once as a host feature). */
|
|
43
|
+
export declare function toastServiceOf(host: G9HostHandle): G9ToastService;
|
|
44
|
+
/** The toasts of the nearest `G9Host` (MAUI `G9ToastHelper`), in its `feedback` layer above popups and sheets. */
|
|
45
|
+
export declare function useG9Toasts(): G9ToastService;
|
|
46
|
+
/** The toasts of the active host, for code outside components. Throws `host-missing` without a host. */
|
|
47
|
+
export declare function g9Toasts(): G9ToastService;
|
|
48
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":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AAG,IAAI,GAAG,IAAI,CAAC;IACnG,oBAAoB,IAAI,IAAI,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7C,gHAAgH;IAChH,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,uGAAuG;IACvG,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7D,wEAAwE;IACxE,UAAU,IAAI,IAAI,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;CAC9B;AAoND,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAGjE;AAED,kHAAkH;AAClH,wBAAgB,WAAW,IAAI,cAAc,CAE5C;AAED,wGAAwG;AACxG,wBAAgB,QAAQ,IAAI,cAAc,CAEzC"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import "./toast.css";
|
|
2
|
+
import { g9Token, toNativeDigits } from "@g9tm/lynxcontrols-foundation";
|
|
3
|
+
import { useEffect, useState, useSyncExternalStore } from "@lynx-js/react";
|
|
4
|
+
import { g9RowStyle } from "../base/control.jsx";
|
|
5
|
+
import { useG9Press } from "../base/press.jsx";
|
|
6
|
+
import { startTimer, stopTimer } from "../base/timers.jsx";
|
|
7
|
+
import { G9ActivityIndicator } from "../display/activity-indicator.jsx";
|
|
8
|
+
import { useG9Host, useG9HostInsets } from "../host/hooks.jsx";
|
|
9
|
+
import { g9Hosts } from "../host/registry.jsx";
|
|
10
|
+
import { G9IconSlot } from "../icon/slot.jsx";
|
|
11
|
+
import { useG9Culture, useG9Direction, useG9Executor, useG9Settings } from "../provider/hooks.jsx";
|
|
12
|
+
import { G9ToastStore, g9ToastTimings } from "./store.jsx";
|
|
13
|
+
const g9ToastMetrics = Object.freeze({
|
|
14
|
+
edgeMargin: 16,
|
|
15
|
+
gap: 8,
|
|
16
|
+
loaderScrimOpacity: 0.55
|
|
17
|
+
});
|
|
18
|
+
const FEATURE = 'g9.toasts';
|
|
19
|
+
const ACCENT = {
|
|
20
|
+
information: 'Info',
|
|
21
|
+
success: 'Success',
|
|
22
|
+
warning: 'Warning',
|
|
23
|
+
error: 'Error'
|
|
24
|
+
};
|
|
25
|
+
function ToastCard(props) {
|
|
26
|
+
var _entry_icon;
|
|
27
|
+
const { entry, store } = props;
|
|
28
|
+
const glyphs = useG9Settings().glyphs;
|
|
29
|
+
const action = useG9Press(()=>store.pressAction(entry.id), {
|
|
30
|
+
source: 'G9Toast',
|
|
31
|
+
guardMs: 0
|
|
32
|
+
});
|
|
33
|
+
const accent = g9Token(ACCENT[entry.type]);
|
|
34
|
+
const icon = null != (_entry_icon = entry.icon) ? _entry_icon : 'success' === entry.type ? glyphs.success : 'warning' === entry.type ? glyphs.warning : 'error' === entry.type ? glyphs.error : glyphs.info;
|
|
35
|
+
const offset = props.bottom ? '12px' : '-12px';
|
|
36
|
+
const direction = useG9Direction();
|
|
37
|
+
return <view className={`g9-toast g9-toast--${entry.type} g9-toast--${entry.status}`} accessibility-element={true} accessibility-label={entry.message} style={{
|
|
38
|
+
...g9RowStyle(direction),
|
|
39
|
+
borderColor: accent,
|
|
40
|
+
opacity: 'shown' === entry.status || 'entering' === entry.status ? 1 : 0,
|
|
41
|
+
transform: `translateY(${'leaving' === entry.status ? offset : '0px'})`,
|
|
42
|
+
transition: `opacity ${'leaving' === entry.status ? g9ToastTimings.exitMs : g9ToastTimings.enterMs}ms, transform ${g9ToastTimings.enterMs}ms`
|
|
43
|
+
}}>
|
|
44
|
+
<G9IconSlot icon={icon} size={20} color={accent}/>
|
|
45
|
+
<text className="g9-toast__message">{entry.message}</text>
|
|
46
|
+
{entry.actionText ? <view className="g9-toast__action" accessibility-element={true} accessibility-traits="button" bindtap={action}>
|
|
47
|
+
<text className="g9-toast__action-text" style={{
|
|
48
|
+
color: accent
|
|
49
|
+
}}>
|
|
50
|
+
{entry.actionText}
|
|
51
|
+
</text>
|
|
52
|
+
</view> : null}
|
|
53
|
+
</view>;
|
|
54
|
+
}
|
|
55
|
+
function anchorStyle(position, top, bottom) {
|
|
56
|
+
const m = `${g9ToastMetrics.edgeMargin}px`;
|
|
57
|
+
const style = {};
|
|
58
|
+
if (position.startsWith('top')) style.top = `${top}px`;
|
|
59
|
+
else if (position.startsWith('bottom')) style.bottom = `${bottom}px`;
|
|
60
|
+
else {
|
|
61
|
+
style.top = '0px';
|
|
62
|
+
style.bottom = '0px';
|
|
63
|
+
}
|
|
64
|
+
if (position.endsWith('Left')) style.left = m;
|
|
65
|
+
else if (position.endsWith('Right')) style.right = m;
|
|
66
|
+
else {
|
|
67
|
+
style.left = m;
|
|
68
|
+
style.right = m;
|
|
69
|
+
}
|
|
70
|
+
return style;
|
|
71
|
+
}
|
|
72
|
+
function ToastLayer(props) {
|
|
73
|
+
const { state } = props;
|
|
74
|
+
const store = state.service.store;
|
|
75
|
+
const snap = useSyncExternalStore((l)=>store.subscribe(l), ()=>store.getSnapshot());
|
|
76
|
+
const insets = useG9HostInsets();
|
|
77
|
+
const culture = useG9Culture();
|
|
78
|
+
const rtl = 'rtl' === useG9Direction();
|
|
79
|
+
state.rtl = rtl;
|
|
80
|
+
const executor = useG9Executor();
|
|
81
|
+
state.run = (action)=>void executor.run(()=>action(), {
|
|
82
|
+
source: 'G9Toast',
|
|
83
|
+
enableThrottle: false,
|
|
84
|
+
preventConcurrentExecution: false
|
|
85
|
+
});
|
|
86
|
+
const [clearance, setClearance] = useState(state.committedClearance);
|
|
87
|
+
useEffect(()=>{
|
|
88
|
+
state.committedClearance = state.clearance;
|
|
89
|
+
setClearance(state.clearance);
|
|
90
|
+
}, [
|
|
91
|
+
snap.insetVersion,
|
|
92
|
+
snap.toasts.length
|
|
93
|
+
]);
|
|
94
|
+
useEffect(()=>()=>store.dispose(), [
|
|
95
|
+
store
|
|
96
|
+
]);
|
|
97
|
+
const top = insets.top + g9ToastMetrics.edgeMargin;
|
|
98
|
+
const bottom = insets.bottom + clearance + snap.bottomOverlayHeight + g9ToastMetrics.edgeMargin;
|
|
99
|
+
const positions = new Set(snap.toasts.map((t)=>t.position));
|
|
100
|
+
if (snap.loadingToast) positions.add(snap.loadingToast.position);
|
|
101
|
+
if (snap.progress) positions.add(snap.progress.position);
|
|
102
|
+
const glide = snap.reanchorAnimated ? `top ${g9ToastTimings.reanchorMs}ms cubic-bezier(0.215, 0.61, 0.355, 1), bottom ${g9ToastTimings.reanchorMs}ms cubic-bezier(0.215, 0.61, 0.355, 1)` : 'none';
|
|
103
|
+
const percent = (p)=>toNativeDigits(`${Math.round(100 * p)}%`, culture.numberingSystem);
|
|
104
|
+
return <view className={`g9-toast-layer g9-dir-${rtl ? 'rtl' : 'ltr'}`} event-through={true}>
|
|
105
|
+
{[
|
|
106
|
+
...positions
|
|
107
|
+
].map((position)=>{
|
|
108
|
+
const bottomStack = position.startsWith('bottom');
|
|
109
|
+
return <view key={position} className={`g9-toast-stack g9-toast-stack--${position}${bottomStack ? ' g9-toast-stack--bottom' : ''}`} event-through={true} style={{
|
|
110
|
+
...anchorStyle(position, top, bottom),
|
|
111
|
+
transition: glide
|
|
112
|
+
}}>
|
|
113
|
+
{snap.toasts.filter((t)=>t.position === position).map((t)=><ToastCard key={t.id} entry={t} store={store} bottom={bottomStack}/>)}
|
|
114
|
+
{snap.loadingToast && snap.loadingToast.position === position ? <view className="g9-toast g9-toast--loading" accessibility-label={snap.loadingToast.text}>
|
|
115
|
+
<G9ActivityIndicator running size={18}/>
|
|
116
|
+
<text className="g9-toast__message">{snap.loadingToast.text}</text>
|
|
117
|
+
</view> : null}
|
|
118
|
+
{snap.progress && snap.progress.position === position ? <view className="g9-toast g9-toast--progress" accessibility-value={percent(snap.progress.progress)}>
|
|
119
|
+
<view className="g9-toast__fill" style={{
|
|
120
|
+
transform: `scaleX(${snap.progress.progress})`,
|
|
121
|
+
transformOrigin: rtl ? 'right center' : 'left center'
|
|
122
|
+
}}/>
|
|
123
|
+
<view className="g9-toast__progress-text">
|
|
124
|
+
<text className="g9-toast__message">{snap.progress.title}</text>
|
|
125
|
+
{snap.progress.detail ? <text className="g9-toast__detail">{snap.progress.detail}</text> : null}
|
|
126
|
+
</view>
|
|
127
|
+
<view className="g9-toast__pill">
|
|
128
|
+
<text className="g9-toast__pill-text">{percent(snap.progress.progress)}</text>
|
|
129
|
+
</view>
|
|
130
|
+
</view> : null}
|
|
131
|
+
</view>;
|
|
132
|
+
})}
|
|
133
|
+
{snap.loader ? <view className={`g9-loader g9-loader--${snap.loader.status}`} style={{
|
|
134
|
+
opacity: 'leaving' === snap.loader.status ? 0 : 1,
|
|
135
|
+
transition: `opacity ${'leaving' === snap.loader.status ? g9ToastTimings.loaderFadeOutMs : g9ToastTimings.loaderFadeInMs}ms`
|
|
136
|
+
}} event-through={false} bindtap={()=>{}}>
|
|
137
|
+
<view className="g9-loader__scrim" style={{
|
|
138
|
+
opacity: g9ToastMetrics.loaderScrimOpacity
|
|
139
|
+
}}/>
|
|
140
|
+
<view className="g9-loader__card">
|
|
141
|
+
<G9ActivityIndicator running size={36} color="var(--g9-inverse-on-surface)"/>
|
|
142
|
+
{snap.loader.text ? <text className="g9-loader__text">{snap.loader.text}</text> : null}
|
|
143
|
+
</view>
|
|
144
|
+
</view> : null}
|
|
145
|
+
</view>;
|
|
146
|
+
}
|
|
147
|
+
function createToastService(host) {
|
|
148
|
+
const state = {
|
|
149
|
+
clearance: 0,
|
|
150
|
+
committedClearance: 0,
|
|
151
|
+
rtl: false
|
|
152
|
+
};
|
|
153
|
+
const store = new G9ToastStore({
|
|
154
|
+
setTimer: (cb, ms)=>startTimer(cb, ms),
|
|
155
|
+
clearTimer: (h)=>stopTimer(h),
|
|
156
|
+
runAction: (action)=>{
|
|
157
|
+
var _state_run;
|
|
158
|
+
return null == (_state_run = state.run) ? void 0 : _state_run.call(state, action);
|
|
159
|
+
},
|
|
160
|
+
defaultPosition: ()=>state.rtl ? 'bottomLeft' : 'bottomRight'
|
|
161
|
+
});
|
|
162
|
+
state.service = {
|
|
163
|
+
store,
|
|
164
|
+
showToast: (message, type, options)=>store.show(message, type, options),
|
|
165
|
+
dismissToast: (id)=>store.dismissToast(id),
|
|
166
|
+
showLoading: (text1)=>store.showLoading(text1),
|
|
167
|
+
beginLoading: (text1)=>store.beginLoading(text1),
|
|
168
|
+
dismissLoading: ()=>store.dismissLoading(),
|
|
169
|
+
showLoadingToast: (text1, position)=>store.showLoadingToast(text1, null != position ? position : null),
|
|
170
|
+
dismissLoadingToast: ()=>store.dismissLoadingToast(),
|
|
171
|
+
showProgressToast: (title, detail, progress, position)=>store.showProgress(title, null != detail ? detail : null, null != progress ? progress : 0, null != position ? position : null),
|
|
172
|
+
updateProgressToast: (title, detail, progress)=>store.updateProgress(title, detail, progress),
|
|
173
|
+
dismissProgressToast: ()=>store.dismissProgress(),
|
|
174
|
+
refreshBottomInsets: (animate = true)=>store.refreshBottomInsets(animate),
|
|
175
|
+
setBottomClearance: (px)=>{
|
|
176
|
+
state.clearance = Math.max(0, px);
|
|
177
|
+
},
|
|
178
|
+
setBottomOverlay: (key, height)=>store.setBottomOverlay(key, height),
|
|
179
|
+
dismissAll: ()=>store.dismissAll()
|
|
180
|
+
};
|
|
181
|
+
host.attachFeature(FEATURE, state);
|
|
182
|
+
host.registerLayerItem('feedback', {
|
|
183
|
+
key: FEATURE,
|
|
184
|
+
element: <ToastLayer state={state}/>,
|
|
185
|
+
order: 0
|
|
186
|
+
});
|
|
187
|
+
return state;
|
|
188
|
+
}
|
|
189
|
+
function toastServiceOf(host) {
|
|
190
|
+
const existing = host.getFeature(FEATURE);
|
|
191
|
+
return (null != existing ? existing : createToastService(host)).service;
|
|
192
|
+
}
|
|
193
|
+
function useG9Toasts() {
|
|
194
|
+
return toastServiceOf(useG9Host());
|
|
195
|
+
}
|
|
196
|
+
function g9Toasts() {
|
|
197
|
+
return toastServiceOf(g9Hosts.require());
|
|
198
|
+
}
|
|
199
|
+
export { g9ToastMetrics, g9Toasts, toastServiceOf, useG9Toasts };
|
|
200
|
+
|
|
201
|
+
//# sourceMappingURL=service.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast/service.jsx","sources":["../../src/toast/service.tsx"],"sourcesContent":["import './toast.css';\nimport { type G9ColorToken, g9Token, toNativeDigits } from '@g9tm/lynxcontrols-foundation';\nimport { type ReactNode, useEffect, useState, useSyncExternalStore } from '@lynx-js/react';\nimport { g9RowStyle } from '../base/control';\nimport { useG9Press } from '../base/press';\nimport { startTimer, stopTimer } from '../base/timers';\nimport { G9ActivityIndicator } from '../display/activity-indicator';\nimport { useG9Host, useG9HostInsets } from '../host/hooks';\nimport { type G9HostHandle, g9Hosts } from '../host/registry';\nimport { G9IconSlot } from '../icon/slot';\nimport { useG9Culture, useG9Direction, useG9Executor, useG9Settings } from '../provider/hooks';\nimport {\n type G9LoadingLease,\n type G9ToastEntry,\n type G9ToastHandle,\n type G9ToastOptions,\n type G9ToastPosition,\n G9ToastStore,\n type G9ToastType,\n g9ToastTimings,\n} from './store';\n\n/** Margin between a toast stack and the screen edge (MAUI 16 dp) and between toasts (8 dp). */\nexport const g9ToastMetrics = Object.freeze({ edgeMargin: 16, gap: 8, loaderScrimOpacity: 0.55 });\n\n/** The toasts of a host (MAUI `G9ToastHelper`). */\nexport interface G9ToastService {\n /** A typed, auto-dismissing toast (MAUI `ShowToastAsync`). */\n showToast(message: string, type?: G9ToastType, options?: G9ToastOptions): G9ToastHandle;\n /** Dismisses one toast or every typed toast (MAUI `DismissToastAsync`). */\n dismissToast(id?: number): void;\n /** Full-screen blocking loader, reference-counted (MAUI `ShowLoadingAsync`). */\n showLoading(text?: string): void;\n /** Lease form of `showLoading` (MAUI `BeginLoadingAsync`). */\n beginLoading(text?: string): G9LoadingLease;\n /** Releases one anonymous hold (MAUI `DismissLoadingAsync`). */\n dismissLoading(): void;\n /** Compact non-blocking loading toast (MAUI `ShowLoadingToastAsync`). */\n showLoadingToast(text?: string, position?: G9ToastPosition | null): void;\n dismissLoadingToast(): void;\n /** Progress toast (MAUI `ShowProgressToastAsync`). */\n showProgressToast(title: string, detail?: string | null, progress?: number, position?: G9ToastPosition | null): void;\n updateProgressToast(title?: string | null, detail?: string | null, progress?: number | null): void;\n dismissProgressToast(): void;\n /**\n * Re-anchors live toasts after the bottom clearance changed (MAUI `RefreshBottomInsetsAsync`, ADR-0027: an explicit\n * call, not a subscription). `animate` glides 220 ms; false snaps.\n */\n refreshBottomInsets(animate?: boolean): void;\n /** The space a bottom bar (tab bar) takes above the safe area; call `refreshBottomInsets` after changing it. */\n setBottomClearance(px: number): void;\n /** A bottom-anchored overlay (MAUI `IG9BottomAnchoredOverlay`): bottom stacks sit above its height. */\n setBottomOverlay(key: string, heightPx: number | null): void;\n /** Clears every toast, loader and progress (MAUI `DismissAllAsync`). */\n dismissAll(): void;\n readonly store: G9ToastStore;\n}\n\nconst FEATURE = 'g9.toasts';\n\ninterface State {\n service: G9ToastService;\n clearance: number;\n committedClearance: number;\n rtl: boolean;\n /** Set by the layer (the provider's safe executor); a toast cannot show before the layer renders. */\n run?: (action: () => unknown) => void;\n}\n\nconst ACCENT: Record<G9ToastType, G9ColorToken> = {\n information: 'Info',\n success: 'Success',\n warning: 'Warning',\n error: 'Error',\n};\n\nfunction ToastCard(props: {\n readonly entry: G9ToastEntry;\n readonly store: G9ToastStore;\n readonly bottom: boolean;\n}): ReactNode {\n const { entry, store } = props;\n const glyphs = useG9Settings().glyphs;\n const action = useG9Press(() => store.pressAction(entry.id), { source: 'G9Toast', guardMs: 0 });\n const accent = g9Token(ACCENT[entry.type]);\n const icon =\n entry.icon ??\n (entry.type === 'success'\n ? glyphs.success\n : entry.type === 'warning'\n ? glyphs.warning\n : entry.type === 'error'\n ? glyphs.error\n : glyphs.info);\n const offset = props.bottom ? '12px' : '-12px';\n const direction = useG9Direction();\n return (\n <view\n className={`g9-toast g9-toast--${entry.type} g9-toast--${entry.status}`}\n accessibility-element={true}\n accessibility-label={entry.message}\n style={{\n ...g9RowStyle(direction),\n borderColor: accent,\n opacity: entry.status === 'shown' || entry.status === 'entering' ? 1 : 0,\n transform: `translateY(${entry.status === 'leaving' ? offset : '0px'})`,\n transition: `opacity ${entry.status === 'leaving' ? g9ToastTimings.exitMs : g9ToastTimings.enterMs}ms, transform ${g9ToastTimings.enterMs}ms`,\n }}\n >\n <G9IconSlot icon={icon} size={20} color={accent} />\n <text className=\"g9-toast__message\">{entry.message}</text>\n {entry.actionText ? (\n <view className=\"g9-toast__action\" accessibility-element={true} accessibility-traits=\"button\" bindtap={action}>\n <text className=\"g9-toast__action-text\" style={{ color: accent }}>\n {entry.actionText}\n </text>\n </view>\n ) : null}\n </view>\n );\n}\n\nfunction anchorStyle(position: G9ToastPosition, top: number, bottom: number): Record<string, string> {\n const m = `${g9ToastMetrics.edgeMargin}px`;\n const style: Record<string, string> = {};\n if (position.startsWith('top')) style.top = `${top}px`;\n else if (position.startsWith('bottom')) style.bottom = `${bottom}px`;\n else {\n style.top = '0px';\n style.bottom = '0px';\n }\n if (position.endsWith('Left')) style.left = m;\n else if (position.endsWith('Right')) style.right = m;\n else {\n style.left = m;\n style.right = m;\n }\n return style;\n}\n\n/** The feedback layer: stacks per position, the compact loading toast, the progress toast, the full-screen loader. */\nfunction ToastLayer(props: { readonly state: State }): ReactNode {\n const { state } = props;\n const store = state.service.store;\n const snap = useSyncExternalStore(\n (l) => store.subscribe(l),\n () => store.getSnapshot(),\n );\n const insets = useG9HostInsets();\n const culture = useG9Culture();\n const rtl = useG9Direction() === 'rtl';\n state.rtl = rtl;\n const executor = useG9Executor();\n state.run = (action) =>\n void executor.run(() => action(), { source: 'G9Toast', enableThrottle: false, preventConcurrentExecution: false });\n // The clearance is read when insets are refreshed (or a toast shows): a change alone does not move live toasts.\n const [clearance, setClearance] = useState(state.committedClearance);\n useEffect(() => {\n state.committedClearance = state.clearance;\n setClearance(state.clearance);\n }, [snap.insetVersion, snap.toasts.length]);\n useEffect(() => () => store.dispose(), [store]);\n const top = insets.top + g9ToastMetrics.edgeMargin;\n const bottom = insets.bottom + clearance + snap.bottomOverlayHeight + g9ToastMetrics.edgeMargin;\n const positions = new Set<G9ToastPosition>(snap.toasts.map((t) => t.position));\n if (snap.loadingToast) positions.add(snap.loadingToast.position);\n if (snap.progress) positions.add(snap.progress.position);\n const glide = snap.reanchorAnimated\n ? `top ${g9ToastTimings.reanchorMs}ms cubic-bezier(0.215, 0.61, 0.355, 1), bottom ${g9ToastTimings.reanchorMs}ms cubic-bezier(0.215, 0.61, 0.355, 1)`\n : 'none';\n const percent = (p: number) => toNativeDigits(`${Math.round(p * 100)}%`, culture.numberingSystem);\n return (\n <view className={`g9-toast-layer g9-dir-${rtl ? 'rtl' : 'ltr'}`} event-through={true}>\n {[...positions].map((position) => {\n const bottomStack = position.startsWith('bottom');\n return (\n <view\n key={position}\n className={`g9-toast-stack g9-toast-stack--${position}${bottomStack ? ' g9-toast-stack--bottom' : ''}`}\n event-through={true}\n style={{ ...anchorStyle(position, top, bottom), transition: glide }}\n >\n {snap.toasts\n .filter((t) => t.position === position)\n .map((t) => (\n <ToastCard key={t.id} entry={t} store={store} bottom={bottomStack} />\n ))}\n {snap.loadingToast && snap.loadingToast.position === position ? (\n <view className=\"g9-toast g9-toast--loading\" accessibility-label={snap.loadingToast.text}>\n <G9ActivityIndicator running size={18} />\n <text className=\"g9-toast__message\">{snap.loadingToast.text}</text>\n </view>\n ) : null}\n {snap.progress && snap.progress.position === position ? (\n <view className=\"g9-toast g9-toast--progress\" accessibility-value={percent(snap.progress.progress)}>\n <view\n className=\"g9-toast__fill\"\n style={{\n transform: `scaleX(${snap.progress.progress})`,\n transformOrigin: rtl ? 'right center' : 'left center',\n }}\n />\n <view className=\"g9-toast__progress-text\">\n <text className=\"g9-toast__message\">{snap.progress.title}</text>\n {snap.progress.detail ? <text className=\"g9-toast__detail\">{snap.progress.detail}</text> : null}\n </view>\n <view className=\"g9-toast__pill\">\n <text className=\"g9-toast__pill-text\">{percent(snap.progress.progress)}</text>\n </view>\n </view>\n ) : null}\n </view>\n );\n })}\n {snap.loader ? (\n <view\n className={`g9-loader g9-loader--${snap.loader.status}`}\n style={{\n opacity: snap.loader.status === 'leaving' ? 0 : 1,\n transition: `opacity ${snap.loader.status === 'leaving' ? g9ToastTimings.loaderFadeOutMs : g9ToastTimings.loaderFadeInMs}ms`,\n }}\n event-through={false}\n bindtap={() => {}}\n >\n <view className=\"g9-loader__scrim\" style={{ opacity: g9ToastMetrics.loaderScrimOpacity }} />\n <view className=\"g9-loader__card\">\n <G9ActivityIndicator running size={36} color=\"var(--g9-inverse-on-surface)\" />\n {snap.loader.text ? <text className=\"g9-loader__text\">{snap.loader.text}</text> : null}\n </view>\n </view>\n ) : null}\n </view>\n );\n}\n\nfunction createToastService(host: G9HostHandle): State {\n const state = { clearance: 0, committedClearance: 0, rtl: false } as State;\n const store = new G9ToastStore({\n setTimer: (cb, ms) => startTimer(cb, ms),\n clearTimer: (h) => stopTimer(h as never),\n runAction: (action) => state.run?.(action),\n defaultPosition: () => (state.rtl ? 'bottomLeft' : 'bottomRight'),\n });\n state.service = {\n store,\n showToast: (message, type, options) => store.show(message, type, options),\n dismissToast: (id) => store.dismissToast(id),\n showLoading: (text) => store.showLoading(text),\n beginLoading: (text) => store.beginLoading(text),\n dismissLoading: () => store.dismissLoading(),\n showLoadingToast: (text, position) => store.showLoadingToast(text, position ?? null),\n dismissLoadingToast: () => store.dismissLoadingToast(),\n showProgressToast: (title, detail, progress, position) =>\n store.showProgress(title, detail ?? null, progress ?? 0, position ?? null),\n updateProgressToast: (title, detail, progress) => store.updateProgress(title, detail, progress),\n dismissProgressToast: () => store.dismissProgress(),\n refreshBottomInsets: (animate = true) => store.refreshBottomInsets(animate),\n setBottomClearance: (px) => {\n state.clearance = Math.max(0, px);\n },\n setBottomOverlay: (key, height) => store.setBottomOverlay(key, height),\n dismissAll: () => store.dismissAll(),\n };\n host.attachFeature(FEATURE, state);\n host.registerLayerItem('feedback', { key: FEATURE, element: <ToastLayer state={state} />, order: 0 });\n return state;\n}\n\n/** The toast service of a host (created once as a host feature). */\nexport function toastServiceOf(host: G9HostHandle): G9ToastService {\n const existing = host.getFeature(FEATURE) as State | undefined;\n return (existing ?? createToastService(host)).service;\n}\n\n/** The toasts of the nearest `G9Host` (MAUI `G9ToastHelper`), in its `feedback` layer above popups and sheets. */\nexport function useG9Toasts(): G9ToastService {\n return toastServiceOf(useG9Host());\n}\n\n/** The toasts of the active host, for code outside components. Throws `host-missing` without a host. */\nexport function g9Toasts(): G9ToastService {\n return toastServiceOf(g9Hosts.require());\n}\n"],"names":["g9ToastMetrics","Object","FEATURE","ACCENT","ToastCard","props","_entry_icon","entry","store","glyphs","useG9Settings","action","useG9Press","accent","g9Token","icon","offset","direction","useG9Direction","view","g9RowStyle","g9ToastTimings","G9IconSlot","text","anchorStyle","position","top","bottom","m","style","ToastLayer","state","snap","useSyncExternalStore","l","insets","useG9HostInsets","culture","useG9Culture","rtl","executor","useG9Executor","clearance","setClearance","useState","useEffect","positions","Set","t","glide","percent","p","toNativeDigits","Math","bottomStack","G9ActivityIndicator","createToastService","host","G9ToastStore","cb","ms","startTimer","h","stopTimer","message","type","options","id","text1","title","detail","progress","animate","px","key","height","toastServiceOf","existing","useG9Toasts","useG9Host","g9Toasts","g9Hosts"],"mappings":";;;;;;;;;;;;AAuBO,MAAMA,iBAAiBC,OAAO,MAAM,CAAC;IAAE,YAAY;IAAI,KAAK;IAAG,oBAAoB;AAAK;AAmC/F,MAAMC,UAAU;AAWhB,MAAMC,SAA4C;IAChD,aAAa;IACb,SAAS;IACT,SAAS;IACT,OAAO;AACT;AAEA,SAASC,UAAUC,KAIlB;QAMGC;IALF,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGH;IACzB,MAAMI,SAASC,gBAAgB,MAAM;IACrC,MAAMC,SAASC,WAAW,IAAMJ,MAAM,WAAW,CAACD,MAAM,EAAE,G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B,CAAC4D,OAAM3C,QAAAA,WAAAA,WAAY;QAC/E,qBAAqB,IAAMjB,MAAM,mBAAmB;QACpD,mBAAmB,CAAC6D,OAAOC,QAAQC,UAAU9C,WAC3CjB,MAAM,YAAY,CAAC6D,OAAOC,QAAAA,SAAAA,SAAU,MAAMC,QAAAA,WAAAA,WAAY,GAAG9C,QAAAA,WAAAA,WAAY;QACvE,qBAAqB,CAAC4C,OAAOC,QAAQC,WAAa/D,MAAM,cAAc,CAAC6D,OAAOC,QAAQC;QACtF,sBAAsB,IAAM/D,MAAM,eAAe;QACjD,qBAAqB,CAACgE,UAAU,IAAI,GAAKhE,MAAM,mBAAmB,CAACgE;QACnE,oBAAoB,CAACC;YACnB1C,MAAM,SAAS,GAAGsB,KAAK,GAAG,CAAC,GAAGoB;QAChC;QACA,kBAAkB,CAACC,KAAKC,SAAWnE,MAAM,gBAAgB,CAACkE,KAAKC;QAC/D,YAAY,IAAMnE,MAAM,UAAU;IACpC;IACAiD,KAAK,aAAa,CAACvD,SAAS6B;IAC5B0B,KAAK,iBAAiB,CAAC,YAAY;QAAE,KAAKvD;QAAS,UAAU4B,WAAW,OAAOC;QAAW,OAAO;IAAE;IACnG,OAAOA;AACT;AAGO,SAAS6C,eAAenB,IAAkB;IAC/C,MAAMoB,WAAWpB,KAAK,UAAU,CAACvD;IACjC,OAAO,AAAC2E,CAAAA,QAAAA,WAAAA,WAAYrB,mBAAmBC,KAAI,EAAG,OAAO;AACvD;AAGO,SAASqB;IACd,OAAOF,eAAeG;AACxB;AAGO,SAASC;IACd,OAAOJ,eAAeK,QAAQ,OAAO;AACvC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { G9IconInput } from '../icon/icon.js';
|
|
2
|
+
/** Toast kind (MAUI `G9ToastType`). */
|
|
3
|
+
export declare const G9ToastType: {
|
|
4
|
+
readonly Information: "information";
|
|
5
|
+
readonly Success: "success";
|
|
6
|
+
readonly Warning: "warning";
|
|
7
|
+
readonly Error: "error";
|
|
8
|
+
};
|
|
9
|
+
export type G9ToastType = (typeof G9ToastType)[keyof typeof G9ToastType];
|
|
10
|
+
/** Nine anchors (MAUI `G9ToastPosition`). */
|
|
11
|
+
export declare const G9ToastPosition: {
|
|
12
|
+
readonly TopLeft: "topLeft";
|
|
13
|
+
readonly TopCenter: "topCenter";
|
|
14
|
+
readonly TopRight: "topRight";
|
|
15
|
+
readonly MiddleLeft: "middleLeft";
|
|
16
|
+
readonly MiddleCenter: "middleCenter";
|
|
17
|
+
readonly MiddleRight: "middleRight";
|
|
18
|
+
readonly BottomLeft: "bottomLeft";
|
|
19
|
+
readonly BottomCenter: "bottomCenter";
|
|
20
|
+
readonly BottomRight: "bottomRight";
|
|
21
|
+
};
|
|
22
|
+
export type G9ToastPosition = (typeof G9ToastPosition)[keyof typeof G9ToastPosition];
|
|
23
|
+
/** Options of one toast (MAUI `G9ToastOptions`). */
|
|
24
|
+
export interface G9ToastOptions {
|
|
25
|
+
/** Default: bottom right (LTR) / bottom left (RTL). */
|
|
26
|
+
readonly position?: G9ToastPosition | null;
|
|
27
|
+
/** Auto-dismiss after this many ms. Default 3000. */
|
|
28
|
+
readonly durationMs?: number;
|
|
29
|
+
/** Icon override; default the type's glyph. */
|
|
30
|
+
readonly icon?: G9IconInput;
|
|
31
|
+
/** Action button text (e.g. "Undo"); with `action`. */
|
|
32
|
+
readonly actionText?: string | null;
|
|
33
|
+
/** Runs once when the action button is tapped (through the provider's safe executor). */
|
|
34
|
+
readonly action?: (() => unknown) | null;
|
|
35
|
+
}
|
|
36
|
+
/** Default toast options (MAUI `G9ToastOptions.Default`). */
|
|
37
|
+
export declare const g9DefaultToastOptions: Readonly<Required<Pick<G9ToastOptions, 'durationMs'>>>;
|
|
38
|
+
/** Timings (MAUI toast guide). */
|
|
39
|
+
export declare const g9ToastTimings: Readonly<{
|
|
40
|
+
enterMs: 250;
|
|
41
|
+
exitMs: 200;
|
|
42
|
+
loaderFadeInMs: 200;
|
|
43
|
+
loaderFadeOutMs: 180;
|
|
44
|
+
reanchorMs: 220;
|
|
45
|
+
}>;
|
|
46
|
+
/** Most toasts per stack (MAUI `MaxToastsPerStack`). */
|
|
47
|
+
export declare const g9MaxToastsPerStack = 4;
|
|
48
|
+
/** One live toast. */
|
|
49
|
+
export interface G9ToastEntry {
|
|
50
|
+
readonly id: number;
|
|
51
|
+
readonly message: string;
|
|
52
|
+
readonly type: G9ToastType;
|
|
53
|
+
readonly position: G9ToastPosition;
|
|
54
|
+
readonly icon: G9IconInput;
|
|
55
|
+
readonly actionText: string | null;
|
|
56
|
+
readonly hasAction: boolean;
|
|
57
|
+
readonly status: 'entering' | 'shown' | 'leaving';
|
|
58
|
+
/** Bumped when an identical toast collapsed into this one (its lifetime restarted). */
|
|
59
|
+
readonly refreshes: number;
|
|
60
|
+
}
|
|
61
|
+
/** The full-screen loader (visible while at least one hold is open). */
|
|
62
|
+
export interface G9LoaderState {
|
|
63
|
+
readonly text: string;
|
|
64
|
+
readonly status: 'entering' | 'shown' | 'leaving';
|
|
65
|
+
}
|
|
66
|
+
/** The compact loading toast. */
|
|
67
|
+
export interface G9LoadingToastState {
|
|
68
|
+
readonly text: string;
|
|
69
|
+
readonly position: G9ToastPosition;
|
|
70
|
+
}
|
|
71
|
+
/** The progress toast. */
|
|
72
|
+
export interface G9ProgressToastState {
|
|
73
|
+
readonly title: string;
|
|
74
|
+
readonly detail: string | null;
|
|
75
|
+
/** 0…1. */
|
|
76
|
+
readonly progress: number;
|
|
77
|
+
readonly position: G9ToastPosition;
|
|
78
|
+
}
|
|
79
|
+
/** What the view renders. */
|
|
80
|
+
export interface G9ToastSnapshot {
|
|
81
|
+
readonly toasts: ReadonlyArray<G9ToastEntry>;
|
|
82
|
+
readonly loader: G9LoaderState | null;
|
|
83
|
+
readonly loadingToast: G9LoadingToastState | null;
|
|
84
|
+
readonly progress: G9ProgressToastState | null;
|
|
85
|
+
/** Bumped by `refreshBottomInsets`; `reanchorAnimated` says whether the move glides. */
|
|
86
|
+
readonly insetVersion: number;
|
|
87
|
+
readonly reanchorAnimated: boolean;
|
|
88
|
+
/** Heights of bottom-anchored overlays the bottom stacks sit above (MAUI `IG9BottomAnchoredOverlay`). */
|
|
89
|
+
readonly bottomOverlayHeight: number;
|
|
90
|
+
}
|
|
91
|
+
/** A hold on the full-screen loader (MAUI `BeginLoadingAsync` lease); disposing twice is harmless. */
|
|
92
|
+
export interface G9LoadingLease {
|
|
93
|
+
dispose(): void;
|
|
94
|
+
}
|
|
95
|
+
/** A shown toast. */
|
|
96
|
+
export interface G9ToastHandle {
|
|
97
|
+
readonly id: number;
|
|
98
|
+
dismiss(): void;
|
|
99
|
+
/** Settles when the toast left the screen. */
|
|
100
|
+
readonly closed: Promise<void>;
|
|
101
|
+
}
|
|
102
|
+
/** Timing and action plumbing of the store. */
|
|
103
|
+
export interface G9ToastStoreConfig {
|
|
104
|
+
setTimer(callback: () => void, ms: number): unknown;
|
|
105
|
+
clearTimer(handle: unknown): void;
|
|
106
|
+
/** Runs a toast action (once per tap is the store's job; errors are the runner's). */
|
|
107
|
+
runAction(action: () => unknown): void;
|
|
108
|
+
/** Where a toast without a position goes (bottom right in LTR, bottom left in RTL). */
|
|
109
|
+
defaultPosition(): G9ToastPosition;
|
|
110
|
+
}
|
|
111
|
+
/** The toast store. */
|
|
112
|
+
export declare class G9ToastStore {
|
|
113
|
+
private readonly config;
|
|
114
|
+
private records;
|
|
115
|
+
private holds;
|
|
116
|
+
private loaderStatus;
|
|
117
|
+
private loaderText;
|
|
118
|
+
private loaderTimer;
|
|
119
|
+
private loadingToast;
|
|
120
|
+
private progress;
|
|
121
|
+
private insetVersion;
|
|
122
|
+
private reanchorAnimated;
|
|
123
|
+
private readonly overlays;
|
|
124
|
+
private nextId;
|
|
125
|
+
private readonly listeners;
|
|
126
|
+
private snapshot;
|
|
127
|
+
private disposed;
|
|
128
|
+
constructor(config: G9ToastStoreConfig);
|
|
129
|
+
getSnapshot(): G9ToastSnapshot;
|
|
130
|
+
subscribe(listener: () => void): () => void;
|
|
131
|
+
/**
|
|
132
|
+
* Shows a toast (MAUI `ShowToastAsync`). An identical newest toast of the same stack (same message and type, no
|
|
133
|
+
* action on either) is refreshed instead (lifetime restarted). Past four per stack the oldest leaves.
|
|
134
|
+
*/
|
|
135
|
+
show(message: string, type?: G9ToastType, options?: G9ToastOptions): G9ToastHandle;
|
|
136
|
+
/** Dismisses one toast, or every typed toast (MAUI `DismissToastAsync`). */
|
|
137
|
+
dismissToast(id?: number): void;
|
|
138
|
+
/** The action button: runs the action once (a second tap during the exit does nothing) and dismisses. */
|
|
139
|
+
pressAction(id: number): void;
|
|
140
|
+
/** Raises the full-screen loader (reference-counted; the newest text wins) (MAUI `ShowLoadingAsync`). */
|
|
141
|
+
showLoading(text?: string): void;
|
|
142
|
+
/** A lease on the loader (MAUI `BeginLoadingAsync`). */
|
|
143
|
+
beginLoading(text?: string): G9LoadingLease;
|
|
144
|
+
/** Releases the newest anonymous hold; a lease's hold is never released here (MAUI `DismissLoadingAsync`). */
|
|
145
|
+
dismissLoading(): void;
|
|
146
|
+
/** Shows (or relabels) the compact loading toast (MAUI `ShowLoadingToastAsync`); it never auto-dismisses. */
|
|
147
|
+
showLoadingToast(text?: string, position?: G9ToastPosition | null): void;
|
|
148
|
+
dismissLoadingToast(): void;
|
|
149
|
+
/** Shows the progress toast, replacing an active one (MAUI `ShowProgressToastAsync`). */
|
|
150
|
+
showProgress(title: string, detail?: string | null, progress?: number, position?: G9ToastPosition | null): void;
|
|
151
|
+
/** Updates the progress toast; omitted parts stay (MAUI `UpdateProgressToastAsync`). No-op without one. */
|
|
152
|
+
updateProgress(title?: string | null, detail?: string | null, progress?: number | null): void;
|
|
153
|
+
dismissProgress(): void;
|
|
154
|
+
/** Re-anchors every live toast to the current insets; `animate` glides (220 ms) (MAUI `RefreshBottomInsetsAsync`). */
|
|
155
|
+
refreshBottomInsets(animate?: boolean): void;
|
|
156
|
+
/** Registers (or clears with `null`) a bottom-anchored overlay the bottom stacks must sit above. */
|
|
157
|
+
setBottomOverlay(key: string, heightPx: number | null): void;
|
|
158
|
+
/** Clears everything, the loader regardless of its count (MAUI `DismissAllAsync`). */
|
|
159
|
+
dismissAll(): void;
|
|
160
|
+
/** The host unmounted. */
|
|
161
|
+
dispose(): void;
|
|
162
|
+
private handle;
|
|
163
|
+
private arm;
|
|
164
|
+
private leave;
|
|
165
|
+
private hold;
|
|
166
|
+
private release;
|
|
167
|
+
private updateLoader;
|
|
168
|
+
private later;
|
|
169
|
+
private build;
|
|
170
|
+
private emit;
|
|
171
|
+
}
|
|
172
|
+
/** The culture default position: bottom right in LTR, bottom left in RTL. */
|
|
173
|
+
export declare function resolveToastPosition(position: G9ToastPosition | null | undefined, rtl: boolean): G9ToastPosition;
|
|
174
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/toast/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAMhD,uCAAuC;AACvC,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,6CAA6C;AAC7C,eAAO,MAAM,eAAe;;;;;;;;;;CAUlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC3C,qDAAqD;IACrD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,uDAAuD;IACvD,QAAQ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