@softistx/material 3.248.0 → 3.250.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.
Files changed (228) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +8 -4
  3. package/dist/adopt-styles-C3MfGnxE.js +20 -0
  4. package/dist/{async-slice-C5HfFq1M.js → async-slice-DdEr7vFx.js} +1 -1
  5. package/dist/{audio-player-2kKst8lH.js → audio-player-DMYszRGT.js} +3 -3
  6. package/dist/{audio-player-viewer-D9DsYBcy.js → audio-player-viewer-z13yCjo4.js} +2 -2
  7. package/dist/{autocomplete-JuRCjl48.js → autocomplete-Bgf_AJ6U.js} +11 -11
  8. package/dist/{avatar-CvvdaBu4.js → avatar-WvTropuJ.js} +1 -1
  9. package/dist/blank-placeholder-DZIFJ0DG.js +17 -0
  10. package/dist/{breadcrumb-DacRqg91.js → breadcrumb-DYa6pVsq.js} +5 -5
  11. package/dist/{button-CpUMPIdk.js → button-RsWgka2v.js} +1 -1
  12. package/dist/{calculator-BYgFgWHL.js → calculator-DPHCuAZy.js} +11 -11
  13. package/dist/calculator-field.js +6 -6
  14. package/dist/{calculator-segment-DCHWZy6b.js → calculator-segment-Ckn9Fua9.js} +1 -1
  15. package/dist/calculator.js +1 -1
  16. package/dist/canvas-BShNj4yp.js +144 -0
  17. package/dist/capture-outputs-qcYUPW6K.js +174 -0
  18. package/dist/capture-toolbar.css +2 -0
  19. package/dist/capture-toolbar.js +858 -0
  20. package/dist/capture.js +53 -139
  21. package/dist/charts.js +3 -3
  22. package/dist/{chip-CjJPmAYO.js → chip-tyDM0lpO.js} +2 -2
  23. package/dist/{code-editor-nNcxtslA.js → code-editor-gHHXEwF-.js} +6 -6
  24. package/dist/code-editor.js +6 -6
  25. package/dist/{code-file-viewer-CcESl49v.js → code-file-viewer-CYQcskvt.js} +4 -4
  26. package/dist/{code-language-items-CW8_Si05.js → code-language-items-DDFuDf_E.js} +2 -2
  27. package/dist/{components-BdMaUeOm.js → components-DUvKQIBi.js} +16714 -20832
  28. package/dist/components.js +83 -79
  29. package/dist/{confirm-dialog-B2eonW2X.js → confirm-dialog-IHvPA3O2.js} +4 -4
  30. package/dist/{conversion-variant-DZm_xgUK.js → conversion-variant-MWTjnFnG.js} +5 -5
  31. package/dist/{currency-field-UIkYAlvP.js → currency-field-Bd9od1Ee.js} +5 -5
  32. package/dist/{detail-panel-header-CL2_tUG0.js → detail-panel-header-D2a63Sk3.js} +1 -1
  33. package/dist/{details-content-CPzj3vUr.js → details-content-CnN_ukTA.js} +6 -6
  34. package/dist/{details-header-band-D-CyB_Xx.js → details-header-band-wcgmC7qC.js} +5 -5
  35. package/dist/{details-host-BvYgFIWx.js → details-host-DKEaGH4P.js} +1 -1
  36. package/dist/{details-sheet-D4PTV_jR.js → details-sheet-CtNM4oDU.js} +2 -2
  37. package/dist/{details-shell-D4XoPRBu.js → details-shell-DZ80h6mN.js} +1 -1
  38. package/dist/{dialog-CleLsHkZ.js → dialog-DwUxG2-o.js} +1 -1
  39. package/dist/{dialog-app-bar-CLC990e6.js → dialog-app-bar-BsJ4UwKb.js} +2 -2
  40. package/dist/dist-Cb17ixQs.js +16 -0
  41. package/dist/dist-CyqFzDZ6.js +11 -0
  42. package/dist/dnd.js +1 -1
  43. package/dist/draw.js +1 -1
  44. package/dist/{drop-overlay-BTkVfscF.js → drop-overlay-B26hx0-T.js} +2 -2
  45. package/dist/{dropdown-menu-BoJC2DEH.js → dropdown-menu-D-PRbHaP.js} +1 -1
  46. package/dist/{editable-section-CTRGfbLJ.js → editable-section-DPmF1flG.js} +3 -3
  47. package/dist/editor.js +14 -14
  48. package/dist/embed-chunks/{avatar-GlGqPU7B.js → avatar-CSDtFCum.js} +1 -1
  49. package/dist/embed-chunks/{dist-BrYZYfsJ.js → dist-BVPJSDov.js} +2 -2
  50. package/dist/embed-chunks/{emoji-picker-BSYBi_C8.js → emoji-picker-CrIXB9pF.js} +23 -23
  51. package/dist/embed-chunks/{mention-list-NW43QcRq.js → mention-list-9hwOYNND.js} +3 -3
  52. package/dist/embed-chunks/{nxgt-theme-provider-B1aeqDja.js → nxgt-theme-provider-Cjl7Eb8v.js} +703 -592
  53. package/dist/embed-chunks/switch-control-BrwJRN_V.js +207 -0
  54. package/dist/embed-chunks/{tabs-root-CY-uLp1C.js → tabs-root-BvPc1aaV.js} +6 -6
  55. package/dist/embed-chunks/{use-shape-morph-NrJQMv7i.js → use-shape-morph-D1MOoQ4T.js} +110 -2
  56. package/dist/embed-chunks/{useLatest-B57qw3XH.js → useLatest-CbcU5ozz.js} +323 -323
  57. package/dist/embed.css +2 -2
  58. package/dist/embed.js +1280 -741
  59. package/dist/{emoji-picker-DZbTd3Fr.js → emoji-picker-DabgsEVQ.js} +7 -7
  60. package/dist/{empty-state-DBSJDLKL.js → empty-state-BylD7RYH.js} +1 -1
  61. package/dist/{error-state-kauz4If4.js → error-state-BTe_NzTC.js} +2 -2
  62. package/dist/fab-DUnGwNE7.js +41 -0
  63. package/dist/fab-dock-By2pLVh7.js +49 -0
  64. package/dist/{feature-popup-CcXMGFES.js → feature-popup-CW7VS2fx.js} +1 -1
  65. package/dist/{blank-placeholder-DeDn5Xor.js → field-box-BXN-uyrv.js} +1 -16
  66. package/dist/{field-group-BpV74Ttu.js → field-group-B2Ozd5Jn.js} +1 -1
  67. package/dist/{file-dialogs-CbdvmY__.js → file-dialogs-CgEXaCev.js} +7 -7
  68. package/dist/{file-manager-shell-DLaJ5Z_L.js → file-manager-shell-Tqduf5lh.js} +21 -21
  69. package/dist/{file-preview-host-RhZvGGqC.js → file-preview-host-CM4pV3ZD.js} +2367 -2384
  70. package/dist/{file-viewer-body-DM3RkXGn.js → file-viewer-body-DrWFmnp4.js} +3 -3
  71. package/dist/{file-viewer-dialog-impl-ei5EYj8k.js → file-viewer-dialog-impl-DZpuZZ7x.js} +2 -2
  72. package/dist/files-drop.js +1 -1
  73. package/dist/files-picker.js +8 -8
  74. package/dist/files.js +3 -3
  75. package/dist/{financial-variant-BNdOqzA5.js → financial-variant-ljdP0JL4.js} +5 -5
  76. package/dist/{flow-diagram-BBB6r8--.js → flow-diagram-DwUnyl0u.js} +1 -1
  77. package/dist/{gallery-CIIJHpmj.js → gallery-DfN2KE4Y.js} +11 -11
  78. package/dist/{gallery-file-viewer-DkshswFr.js → gallery-file-viewer-BfFWfLIF.js} +3 -3
  79. package/dist/{gl-markers-abqcNuYT.js → gl-markers-CBNFeWIk.js} +3 -3
  80. package/dist/{hooks-D6lOSXA5.js → hooks-DiAhgchz.js} +3 -3
  81. package/dist/hooks.js +3 -3
  82. package/dist/i18n.js +3 -3
  83. package/dist/{icon-button-GKYj7uC4.js → icon-button-D-gi4Plg.js} +1 -1
  84. package/dist/image-editor-mmhbsqs-.js +4423 -0
  85. package/dist/image-editor.css +1 -1
  86. package/dist/image-editor.js +1157 -996
  87. package/dist/image-markup-editor-D-QkZWKf.js +24 -0
  88. package/dist/input-CWf3Apid.js +18 -0
  89. package/dist/input-box-moFuoMt0.js +15 -0
  90. package/dist/{input-group-CKO68Pyi.js → input-group-Bb8sAFRF.js} +3 -2
  91. package/dist/{item-details-l_-rk3Hj.js → item-details-BWdHMfsS.js} +7 -7
  92. package/dist/keypad.js +2 -2
  93. package/dist/lib/capture/engine/canvas.d.ts +17 -0
  94. package/dist/lib/capture/engine/capture.d.ts +19 -0
  95. package/dist/lib/capture/engine/filters.d.ts +27 -0
  96. package/dist/lib/capture/engine/rect.d.ts +26 -0
  97. package/dist/lib/capture/engine/types.d.ts +66 -0
  98. package/dist/lib/capture/index.d.ts +16 -0
  99. package/dist/lib/capture/modes/capture-mode.d.ts +24 -0
  100. package/dist/lib/capture/modes/countdown.d.ts +16 -0
  101. package/dist/lib/capture/modes/full-page.d.ts +14 -0
  102. package/dist/lib/capture/modes/pick-element.d.ts +22 -0
  103. package/dist/lib/capture/modes/scroller.d.ts +13 -0
  104. package/dist/lib/capture/modes/visible.d.ts +3 -0
  105. package/dist/lib/capture-toolbar/index.d.ts +25 -0
  106. package/dist/lib/capture-toolbar/lazy-capture-outputs.d.ts +2 -0
  107. package/dist/lib/capture-toolbar/outputs-encode.d.ts +25 -0
  108. package/dist/lib/capture-toolbar/outputs.d.ts +38 -0
  109. package/dist/lib/capture-toolbar/partials/capture-editor.d.ts +11 -0
  110. package/dist/lib/capture-toolbar/partials/capture-outputs.d.ts +16 -0
  111. package/dist/lib/capture-toolbar/region-overlay.d.ts +15 -0
  112. package/dist/lib/capture-toolbar/screen-capture-toolbar.d.ts +31 -0
  113. package/dist/lib/capture-toolbar/types.d.ts +117 -0
  114. package/dist/lib/capture-toolbar/use-screen-capture.d.ts +16 -0
  115. package/dist/lib/components/ui/layout/account-frame/account-frame.d.ts +2 -2
  116. package/dist/lib/components/ui/media/attachment-list/attachment-list.d.ts +2 -2
  117. package/dist/lib/components/ui/media/image-editor/image-markup-editor.d.ts +11 -3
  118. package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +7 -0
  119. package/dist/lib/components/ui/media/image-editor/types-session.d.ts +1 -1
  120. package/dist/lib/components/ui/media/image-editor/types.d.ts +8 -0
  121. package/dist/lib/embed/index.d.ts +6 -1
  122. package/dist/lib/i18n/resources/resources.d.ts +108 -0
  123. package/dist/lib/i18n/translator.d.ts +1 -1
  124. package/dist/lib/image-editor/index.d.ts +1 -1
  125. package/dist/lib.js +38 -56
  126. package/dist/{list-sheet-D22J9I-K.js → list-sheet-CejfrKJr.js} +1 -1
  127. package/dist/{loading-indicator-sDzxZg8f.js → loading-indicator-BBjOF25N.js} +1 -1
  128. package/dist/main.js +103 -98
  129. package/dist/{map-draw-DfbfT0eJ.js → map-draw-DyRy9SSV.js} +2 -2
  130. package/dist/map-draw.js +5 -5
  131. package/dist/map-static.js +1 -1
  132. package/dist/{map-view-DAx2zvV-.js → map-view-YfuYD3zS.js} +9 -9
  133. package/dist/map-zone-events.js +1 -1
  134. package/dist/map-zone-field.js +7 -7
  135. package/dist/map.js +10 -10
  136. package/dist/{marker-button-D7hEvEZD.js → marker-button-CXBaToHp.js} +1 -1
  137. package/dist/{marker-count-image-CWS3G-k8.js → marker-count-image-DHuzSev9.js} +1 -1
  138. package/dist/material.css +1 -1
  139. package/dist/{measure-manual-Bfvu8B_R.js → measure-manual-CcESmV1d.js} +3 -3
  140. package/dist/{measurement-B-OeWv7j.js → measurement-D2or6yM_.js} +1 -1
  141. package/dist/{media-player-DGXmWK7W.js → media-player-qW9RXFuO.js} +451 -567
  142. package/dist/{media-player-viewer-C3vXYcd8.js → media-player-viewer-DozPiF6T.js} +2 -2
  143. package/dist/{media-surface-BySonDjv.js → media-surface-BJsdNynm.js} +6 -6
  144. package/dist/{mention-list-BpoZHwO6.js → mention-list-z1wnlJgs.js} +2 -2
  145. package/dist/{native-select-Dg4bc7aC.js → native-select-BnDOVnER.js} +1 -1
  146. package/dist/{nxgt-theme-Ob-uFqU_.js → nxgt-theme-EYZ5aFHi.js} +6 -15
  147. package/dist/nxgt-theme-provider-BPXd3h82.js +40 -0
  148. package/dist/outputs-DF-aVqUO.js +81 -0
  149. package/dist/passkey.js +1 -1
  150. package/dist/{pdf-form-filler-DgH52W2Q.js → pdf-form-filler-Ct4eexhZ.js} +34 -34
  151. package/dist/pdf-form.js +2 -2
  152. package/dist/{pdf-reader-Bilz5foK.js → pdf-reader-khpMMEjU.js} +16 -16
  153. package/dist/{pdf-reader-viewer-DwQP2IpV.js → pdf-reader-viewer-B3_TdFOn.js} +2 -2
  154. package/dist/pdf-reader.js +2 -2
  155. package/dist/{percent-field-Ldc7K2wC.js → percent-field-Bu-PmCNR.js} +2 -2
  156. package/dist/{picker-surface-DZQbBgvA.js → picker-surface-THexE1OU.js} +3 -3
  157. package/dist/{popover-DwsaHFrK.js → popover-osl5duoA.js} +1 -1
  158. package/dist/portal-container-provider-fZFUk-ZB.js +11 -0
  159. package/dist/{pos-types-CKDG7pZA.js → pos-types-BPPae99i.js} +1 -1
  160. package/dist/{pos-variant-9nhz-ZzW.js → pos-variant-D6bDUqwV.js} +4 -4
  161. package/dist/print.js +1 -1
  162. package/dist/{programmer-variant-BzwfeMGC.js → programmer-variant-CDlFE24o.js} +2 -2
  163. package/dist/{progress-BBfp7sMi.js → progress-DjHnanxA.js} +2 -2
  164. package/dist/{progress-linear-BOJbHnzd.js → progress-linear-CTJ_U6kY.js} +1 -1
  165. package/dist/{public-I8nb8pCC.js → public-u9u2Osmx.js} +6 -6
  166. package/dist/{rendition-stage-A1nHXYrA.js → rendition-stage-BXjQpfKK.js} +2 -2
  167. package/dist/{rich-code-block-BJERY3N3.js → rich-code-block-DWSzyQRw.js} +5 -5
  168. package/dist/{scientific-variant-st2NBm1K.js → scientific-variant-DCgApH87.js} +2 -2
  169. package/dist/{scroll-area-B3XstZU2.js → scroll-area-BxKiT4Dn.js} +155 -164
  170. package/dist/{search-field-D3AOJr7s.js → search-field-Cgqa2bQf.js} +2 -2
  171. package/dist/{select-DhfzCkun.js → select-BGhRlBh4.js} +166 -179
  172. package/dist/{sheet-B8cO1T5K.js → sheet-BvNVroog.js} +1 -1
  173. package/dist/{signature-dialog-BNLMPgao.js → signature-dialog-x--_QWRB.js} +5 -5
  174. package/dist/signature.js +1 -1
  175. package/dist/{site-footer-cta-Cx7zsvkq.js → site-footer-cta-B3Kfqpep.js} +4 -4
  176. package/dist/{site-footer-link-Di8IMIw0.js → site-footer-link-SFHrO4ld.js} +1 -1
  177. package/dist/{size-slot-D1cKqb09.js → size-slot-Cb-W2Zm4.js} +1 -1
  178. package/dist/{sortable-provider-DrLnoygf.js → sortable-provider-KRScvvYx.js} +2 -2
  179. package/dist/{spinner-BpH9tE8R.js → spinner-DpB6XvJJ.js} +1 -1
  180. package/dist/switch-c_6OtXzW.js +125 -0
  181. package/dist/{tabs-root-BUnIfDah.js → tabs-root-C2n3K_Yv.js} +1 -1
  182. package/dist/{tags-form-BwqR4UVj.js → tags-form-BKB9fP03.js} +5 -5
  183. package/dist/{text-field-CFCHo07X.js → text-field-Dl7xTxZe.js} +2 -2
  184. package/dist/{textarea-B_iMDYgM.js → textarea-C3BGZELU.js} +1 -1
  185. package/dist/{textarea-field-DIOGxyUd.js → textarea-field-mqWhhbis.js} +2 -2
  186. package/dist/theme-picker.js +5 -4
  187. package/dist/{theme-toggle-CsBe64lm.js → theme-toggle-K-n5eq0T.js} +3 -3
  188. package/dist/theme-value-CD2nDrj_.js +12 -0
  189. package/dist/themes.js +15 -48
  190. package/dist/{toasts-McZnLRHP.js → toasts-DFLecXh0.js} +5 -5
  191. package/dist/{toggle-group-DKN1XLBS.js → toggle-group-DMDjNJWx.js} +1 -1
  192. package/dist/{toolbar-group-BmzGP_JO.js → toolbar-group-bttMdvg4.js} +1 -1
  193. package/dist/{toolbar-item-slot-BnqQLkVd.js → toolbar-item-slot-CBn3YjeE.js} +1 -1
  194. package/dist/{toolbar-items-C9uasXZ2.js → toolbar-items-zL5TYLf2.js} +4 -4
  195. package/dist/{toolbar-keep-focus-Vc5V-dX2.js → toolbar-keep-focus-C6bnzvpE.js} +2 -2
  196. package/dist/{tracked-layer-CjCXB_O6.js → tracked-layer-CYdLWRK-.js} +4 -4
  197. package/dist/{translate-material-C-qVvGLn.js → translate-material-DZNgWjYu.js} +1 -1
  198. package/dist/{translator-BrzI307E.js → translator-CrIFDzAz.js} +110 -2
  199. package/dist/{tree-DOAs456A.js → tree-CFXDccIe.js} +1 -1
  200. package/dist/{upload-host-ZpSSql8v.js → upload-host-DDktVohu.js} +9 -8
  201. package/dist/{use-calculator-keyboard-Ss25SRoM.js → use-calculator-keyboard-BWkYuIw5.js} +1 -1
  202. package/dist/{use-chat-composer-DopDN-zP.js → use-chat-composer-C1Qlnw2i.js} +20 -20
  203. package/dist/{use-file-meta-DyJX0JVs.js → use-file-meta-DcfQCh52.js} +1 -1
  204. package/dist/{use-heading-spy-CA2IAqMe.js → use-heading-spy-B9xEMHbZ.js} +2 -2
  205. package/dist/use-image-preview-BNq_RQm5.js +20 -0
  206. package/dist/{use-item-entries-CYbS5otl.js → use-item-entries-BKQHcWFx.js} +1 -1
  207. package/dist/{use-material-translation-eYySryw3.js → use-material-translation-ZEUtduro.js} +1 -1
  208. package/dist/{use-media-viewer-DoNdrzhN.js → use-media-viewer-DViJNx75.js} +1 -1
  209. package/dist/{use-text-preview-BQE4U9cT.js → use-text-preview-Ci97JKKo.js} +2 -2
  210. package/dist/{use-unsaved-guard-CSfDvdxd.js → use-unsaved-guard-CWlHEvjN.js} +2 -2
  211. package/dist/{viewer-CXF1dAv0.js → viewer-DDPJOxBt.js} +5 -5
  212. package/dist/{viewer-stage-class-CpyA8o-M.js → viewer-stage-class-DJ1uod4l.js} +4 -4
  213. package/dist/{viewer-states-BXyCdNhE.js → viewer-states-DkaPBkK4.js} +3 -3
  214. package/dist/{virtual-layer-rows-DHy8vAup.js → virtual-layer-rows-DKejQ_Jd.js} +1 -1
  215. package/dist/visible-B-IFZ4Nv.js +475 -0
  216. package/docs/components/media-and-files.md +1 -1
  217. package/docs/components/navigation-and-layout.md +2 -2
  218. package/docs/guides/capture.md +248 -0
  219. package/docs/guides/csp.md +1 -1
  220. package/docs/guides/embed.md +94 -2
  221. package/docs/roadmap.md +2 -1
  222. package/docs/troubleshooting.md +56 -0
  223. package/package.json +18 -1
  224. package/dist/embed-chunks/bubble-input-yXAeW84_.js +0 -29
  225. package/dist/embed-chunks/switch-control-ChcowM3u.js +0 -181
  226. package/dist/fab-dock-DqwbI-5n.js +0 -86
  227. package/dist/input-BaBE_MR_.js +0 -27
  228. /package/dist/{dist-B1qFabLJ.js → dist-B1qFabLJ2.js} +0 -0
@@ -0,0 +1,475 @@
1
+ import { a as e, c as t, d as n, i as r, l as i, m as a, o, s, t as c } from "./canvas-BShNj4yp.js";
2
+ //#region lib/capture/can-capture-screen.ts
3
+ function l() {
4
+ let e = navigator;
5
+ return e.userAgentData?.mobile ? !0 : /iPhone|iPod|Android.+Mobile|Mobile.+Android|Windows Phone/i.test(e.userAgent);
6
+ }
7
+ function u() {
8
+ return typeof navigator > "u" || typeof document > "u" || typeof navigator.mediaDevices?.getDisplayMedia != "function" ? !1 : !l();
9
+ }
10
+ //#endregion
11
+ //#region lib/capture/frame.ts
12
+ var d = 5e3;
13
+ function f(e, t) {
14
+ return new Promise((n, r) => {
15
+ let i = setTimeout(() => r(/* @__PURE__ */ Error("No frame arrived")), d), a = () => {
16
+ clearTimeout(i), n();
17
+ };
18
+ for (let e of t.getTracks()) e.addEventListener("ended", () => {
19
+ clearTimeout(i), r(/* @__PURE__ */ Error("The stream ended"));
20
+ }, { once: !0 });
21
+ e.readyState >= 2 && "requestVideoFrameCallback" in e ? e.requestVideoFrameCallback(a) : e.readyState >= 2 ? a() : e.addEventListener("loadeddata", a, { once: !0 });
22
+ });
23
+ }
24
+ async function p(e) {
25
+ let t = document.createElement("video");
26
+ return t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await f(t, e), t;
27
+ }
28
+ var m = {
29
+ size: 16,
30
+ color: [
31
+ 255,
32
+ 0,
33
+ 255
34
+ ]
35
+ };
36
+ function h() {
37
+ let e = document.createElement("div");
38
+ return e.setAttribute("aria-hidden", "true"), e.style.cssText = `position:fixed;top:0;left:0;width:${m.size}px;height:${m.size}px;background:rgb(${m.color.join(",")});z-index:2147483647;pointer-events:none`, document.body.append(e), e;
39
+ }
40
+ function g(e, t, n) {
41
+ let r = m.size / 2, i = e.getImageData(Math.floor(r * t), Math.floor(r * n), 1, 1).data;
42
+ return m.color.every((e, t) => Math.abs((i[t] ?? 0) - e) < 40);
43
+ }
44
+ //#endregion
45
+ //#region lib/capture/engine/filters.ts
46
+ var _ = "data-capture-exclude", v = "data-capture-mask", y = `[${_}]`, b = `[${v}]`;
47
+ function x(e, t) {
48
+ if (!e) return null;
49
+ let n = e === !0 ? {} : e;
50
+ return {
51
+ selector: n.selector ?? b,
52
+ text: n.text ? n.text === !0 ? t : n.text : null,
53
+ unmaskSelector: n.unmaskSelector ?? "[data-capture-unmask]"
54
+ };
55
+ }
56
+ function S(e) {
57
+ let t = [e], n = e.querySelectorAll("*");
58
+ for (let e of Array.from(n)) e.shadowRoot && t.push(...S(e.shadowRoot));
59
+ return t;
60
+ }
61
+ function C(e, t) {
62
+ let n = [];
63
+ for (let r of S(e)) r instanceof Element && r.matches(t) && n.push(r), n.push(...Array.from(r.querySelectorAll(t)));
64
+ return Array.from(new Set(n));
65
+ }
66
+ function w(e, t) {
67
+ let n = [];
68
+ for (let r of C(t, e.selector)) {
69
+ let e = r.getBoundingClientRect();
70
+ e.width > 0 && e.height > 0 && n.push({
71
+ x: e.left,
72
+ y: e.top,
73
+ w: e.width,
74
+ h: e.height
75
+ });
76
+ }
77
+ return e.text && n.push(...a(e.text, e.unmaskSelector)), n;
78
+ }
79
+ function ee(e = document) {
80
+ let t = C(e, y).map((e) => {
81
+ let t = e.style;
82
+ return [
83
+ t,
84
+ t.getPropertyValue("visibility"),
85
+ t.getPropertyPriority("visibility")
86
+ ];
87
+ });
88
+ for (let [e] of t) e.setProperty("visibility", "hidden", "important");
89
+ return () => {
90
+ for (let [e, n, r] of t) n ? e.setProperty("visibility", n, r) : e.removeProperty("visibility");
91
+ };
92
+ }
93
+ //#endregion
94
+ //#region lib/capture/engine/dom-engine.ts
95
+ function T() {
96
+ return import("@zumer/snapdom").catch((e) => {
97
+ throw new s("peer-missing", "@zumer/snapdom (^3.7.1) could not be loaded. Install it (`bun add @zumer/snapdom@^3.7.1`) to capture the page without a permission prompt.", e);
98
+ });
99
+ }
100
+ var E = "#c4c7cc";
101
+ function D(e = 64, t = 64) {
102
+ let n = `<svg xmlns="http://www.w3.org/2000/svg" width="${Math.max(1, Math.round(e))}" height="${Math.max(1, Math.round(t))}"><rect width="100%" height="100%" fill="${E}"/></svg>`;
103
+ return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`;
104
+ }
105
+ function O(e, t) {
106
+ if (!e) return null;
107
+ let r = t.getBoundingClientRect();
108
+ return n(e, {
109
+ x: r.left,
110
+ y: r.top
111
+ });
112
+ }
113
+ var k = {
114
+ name: "dom",
115
+ isAvailable: () => typeof document < "u",
116
+ async capture({ target: t, rect: n, options: r }) {
117
+ let a = t ?? document.documentElement;
118
+ if (!a.isConnected) throw new s("invalid-target", "The element is not in the page");
119
+ if (n && i(n)) throw new s("invalid-target", "The region is empty");
120
+ let o = r.scale ?? window.devicePixelRatio ?? 1;
121
+ if (!Number.isFinite(o) || o <= 0) throw new s("invalid-target", "The scale must be a positive number");
122
+ let l = x(r.mask, a), u = l ? w(l, a) : [], d = O(n, a), f = a.getBoundingClientRect(), { snapdom: p } = await T(), m;
123
+ try {
124
+ m = await p.toCanvas(a, {
125
+ dpr: o,
126
+ scale: 1,
127
+ exclude: y,
128
+ excludeMode: "hide",
129
+ placeholders: !0,
130
+ fallbackURL: ({ width: e, height: t }) => D(e, t),
131
+ ...r.backgroundColor ? { backgroundColor: r.backgroundColor } : {}
132
+ });
133
+ } catch (e) {
134
+ throw new s("failed", "The page could not be rendered", e);
135
+ }
136
+ return c(m, u.map((e) => ({
137
+ ...e,
138
+ x: e.x - f.left,
139
+ y: e.y - f.top
140
+ })), o), {
141
+ canvas: d ? e(m, d, o) : m,
142
+ scale: o,
143
+ engine: "dom"
144
+ };
145
+ }
146
+ };
147
+ //#endregion
148
+ //#region lib/capture/engine/system-engine.ts
149
+ function A(e, n) {
150
+ if (!e) return n;
151
+ let r = e.getBoundingClientRect(), a = {
152
+ x: r.left,
153
+ y: r.top,
154
+ w: r.width,
155
+ h: r.height
156
+ }, o = n ? t(a, n) : a;
157
+ if (!o || i(o)) throw new s("invalid-target", "The target and the region do not overlap");
158
+ return o;
159
+ }
160
+ async function j() {
161
+ try {
162
+ return await navigator.mediaDevices.getDisplayMedia({
163
+ video: !0,
164
+ audio: !1,
165
+ preferCurrentTab: !0
166
+ });
167
+ } catch (e) {
168
+ throw new s("denied", "The capture was refused", e);
169
+ }
170
+ }
171
+ var te = {
172
+ name: "system",
173
+ isAvailable: () => u(),
174
+ async capture({ target: t, rect: n, options: a }) {
175
+ if (!u()) throw new s("unsupported", "Screen capture is not available here");
176
+ if (n && i(n)) throw new s("invalid-target", "The region is empty");
177
+ if (a.scale !== void 0 && (!Number.isFinite(a.scale) || a.scale <= 0)) throw new s("invalid-target", "The scale must be a positive number");
178
+ let l = t ?? document.documentElement, d = x(a.mask, l), f = await j(), m = () => {};
179
+ try {
180
+ let i = f.getVideoTracks()[0]?.getSettings().displaySurface;
181
+ if ((n || t || d) && i && i !== "browser") throw new s("invalid-target", "A target, a region or a mask needs the current tab to be shared");
182
+ let a = A(t, n);
183
+ m = ee(), await new Promise((e) => requestAnimationFrame(() => e()));
184
+ let u;
185
+ try {
186
+ u = await p(f);
187
+ } catch (e) {
188
+ throw new s("failed", "No frame was read", e);
189
+ }
190
+ let h = o(u.videoWidth, u.videoHeight), g = d ? w(d, l) : [], _ = h.width / window.innerWidth, v = h.height / window.innerHeight;
191
+ return r(h).drawImage(u, 0, 0), u.srcObject = null, m(), c(h, g, _, v), {
192
+ canvas: a ? e(h, a, _, v) : h,
193
+ scale: _,
194
+ engine: "system"
195
+ };
196
+ } finally {
197
+ m();
198
+ for (let e of f.getTracks()) e.stop();
199
+ }
200
+ }
201
+ };
202
+ //#endregion
203
+ //#region lib/capture/engine/capture.ts
204
+ function M(e) {
205
+ return e === "system" ? te : k;
206
+ }
207
+ function N(e) {
208
+ return e && typeof e == "object" ? e : M(e ?? "dom");
209
+ }
210
+ function P(e) {
211
+ let t = N(e.options.engine);
212
+ return t.isAvailable() ? t.capture(e) : Promise.reject(new s("unsupported", `The ${t.name} engine is not available here`));
213
+ }
214
+ function F(e, t = {}) {
215
+ return P({
216
+ target: e,
217
+ options: t
218
+ });
219
+ }
220
+ function I(e, t = {}) {
221
+ let { target: n, ...r } = t;
222
+ return P({
223
+ target: n,
224
+ rect: e,
225
+ options: r
226
+ });
227
+ }
228
+ //#endregion
229
+ //#region lib/capture/modes/countdown.ts
230
+ var L = [
231
+ 3,
232
+ 5,
233
+ 10
234
+ ];
235
+ function R() {
236
+ let e = document.createElement("div");
237
+ return e.setAttribute(_, ""), e.setAttribute("role", "timer"), e.setAttribute("aria-live", "polite"), Object.assign(e.style, {
238
+ position: "fixed",
239
+ inset: "0",
240
+ display: "grid",
241
+ placeItems: "center",
242
+ zIndex: "2147483647",
243
+ pointerEvents: "none",
244
+ font: "700 min(30vw, 8rem)/1 system-ui, sans-serif",
245
+ color: "var(--primary, #6750a4)",
246
+ textShadow: "0 0 0.15em var(--background, #fff)"
247
+ }), e;
248
+ }
249
+ function z(e, t = {}) {
250
+ let { onTick: n, signal: r, overlay: i = !0 } = t;
251
+ return new Promise((t, a) => {
252
+ let o = Math.max(0, Math.floor(e)), c = i && o > 0 ? R() : null;
253
+ c && document.body.appendChild(c);
254
+ let l, u = () => {
255
+ clearTimeout(l), document.removeEventListener("keydown", f, !0), r?.removeEventListener("abort", d), c?.remove();
256
+ }, d = () => {
257
+ u(), a(new s("cancelled", "The timer was cancelled"));
258
+ }, f = (e) => {
259
+ e.key === "Escape" && d();
260
+ }, p = () => {
261
+ if (o <= 0) {
262
+ u(), t();
263
+ return;
264
+ }
265
+ c && (c.textContent = String(o)), n?.(o), --o, l = setTimeout(p, 1e3);
266
+ };
267
+ document.addEventListener("keydown", f, !0), r?.aborted ? d() : (r?.addEventListener("abort", d), p());
268
+ });
269
+ }
270
+ //#endregion
271
+ //#region lib/capture/modes/scroller.ts
272
+ var B = /(auto|scroll|overlay)/;
273
+ function V(e) {
274
+ return e.scrollHeight <= e.clientHeight + 1 ? !1 : B.test(getComputedStyle(e).overflowY);
275
+ }
276
+ function H(e = document) {
277
+ let t = window.innerWidth * window.innerHeight, n = null, r = t / 3;
278
+ for (let t of Array.from(e.querySelectorAll("*"))) {
279
+ if (t === document.body || t === document.documentElement || !V(t)) continue;
280
+ let e = t.clientWidth * t.clientHeight;
281
+ e > r && (n = t, r = e);
282
+ }
283
+ return n;
284
+ }
285
+ var U = {
286
+ height: "auto",
287
+ maxHeight: "none",
288
+ overflow: "visible",
289
+ overflowY: "visible"
290
+ };
291
+ function W(e) {
292
+ let t = e.ownerDocument, n = e === t.documentElement, r = n ? [e, t.body] : [e], i = n ? t.defaultView?.scrollY ?? 0 : e.scrollTop, a = r.map((e) => [e, Object.fromEntries(Object.keys(U).map((t) => [t, e.style[t]]))]);
293
+ for (let e of r) Object.assign(e.style, U);
294
+ return n ? t.defaultView?.scrollTo(0, 0) : e.scrollTop = 0, () => {
295
+ for (let [e, t] of a) Object.assign(e.style, t);
296
+ n ? t.defaultView?.scrollTo(0, i) : e.scrollTop = i;
297
+ };
298
+ }
299
+ //#endregion
300
+ //#region lib/capture/modes/full-page.ts
301
+ function G(e) {
302
+ return e ?? H() ?? document.documentElement;
303
+ }
304
+ async function K(e = {}) {
305
+ let { target: t, ...n } = e;
306
+ if (n.engine === "system") throw new s("unsupported", "A full page needs the DOM engine: the system engine sees only the screen");
307
+ let r = G(t), i = W(r);
308
+ try {
309
+ return await F(r, n);
310
+ } finally {
311
+ i();
312
+ }
313
+ }
314
+ //#endregion
315
+ //#region lib/capture/modes/pick-keyboard.ts
316
+ var q = /* @__PURE__ */ new Set([
317
+ "SCRIPT",
318
+ "STYLE",
319
+ "LINK",
320
+ "META",
321
+ "TEMPLATE",
322
+ "NOSCRIPT",
323
+ "HEAD",
324
+ "TITLE"
325
+ ]);
326
+ function J(e, t) {
327
+ return q.has(e.tagName) || e.closest("[data-capture-exclude]") || e.ownerDocument.defaultView?.getComputedStyle(e).display === "none" ? !1 : !t || t(e);
328
+ }
329
+ function Y(e, t, n) {
330
+ let r = e?.[t === "next" ? "nextElementSibling" : "previousElementSibling"];
331
+ for (; r && !n(r);) r = r[t === "next" ? "nextElementSibling" : "previousElementSibling"];
332
+ return r ?? null;
333
+ }
334
+ function X(e) {
335
+ return Array.from(document.body.querySelectorAll("*")).filter(e);
336
+ }
337
+ function Z(e) {
338
+ let t = document.activeElement;
339
+ return t && t !== document.body && e(t) ? t : X(e)[0] ?? null;
340
+ }
341
+ function ne(e, t, n) {
342
+ switch (e.key) {
343
+ case "ArrowUp": {
344
+ let e = t.parentElement;
345
+ return e && e !== document.documentElement && n(e) ? e : null;
346
+ }
347
+ case "ArrowDown": {
348
+ let e = t.firstElementChild;
349
+ for (; e && !n(e);) e = e.nextElementSibling;
350
+ return e;
351
+ }
352
+ case "ArrowLeft": return Y(t, "previous", n);
353
+ case "ArrowRight": return Y(t, "next", n);
354
+ case "Tab": {
355
+ let r = X(n);
356
+ return r[(r.indexOf(t) + (e.shiftKey ? -1 : 1) + r.length) % r.length] ?? null;
357
+ }
358
+ default: return null;
359
+ }
360
+ }
361
+ function re(e) {
362
+ let t = e.getAttribute("aria-label") || (e.textContent ?? "").trim().replace(/\s+/g, " ").slice(0, 60), n = e.tagName.toLowerCase();
363
+ return t ? `${n}, ${t}` : n;
364
+ }
365
+ function ie(e) {
366
+ return (t) => {
367
+ if (t.key === "Escape") return e.cancel();
368
+ let n = e.current();
369
+ if (t.key === "Enter" || t.key === " ") {
370
+ e.swallow(t), n && e.pick(n);
371
+ return;
372
+ }
373
+ /^(Arrow(Up|Down|Left|Right)|Tab)$/.test(t.key) && (e.swallow(t), e.show(n ? ne(t, n, e.pickable) : Z(e.pickable)));
374
+ };
375
+ }
376
+ //#endregion
377
+ //#region lib/capture/modes/pick-element.ts
378
+ var Q = [
379
+ "pointerdown",
380
+ "pointerup",
381
+ "mousedown",
382
+ "mouseup",
383
+ "touchstart",
384
+ "touchend"
385
+ ];
386
+ function ae() {
387
+ let e = document.createElement("div");
388
+ return e.setAttribute(_, ""), e.setAttribute("role", "status"), Object.assign(e.style, {
389
+ position: "fixed",
390
+ width: "1px",
391
+ height: "1px",
392
+ overflow: "hidden",
393
+ clipPath: "inset(50%)",
394
+ whiteSpace: "nowrap"
395
+ }), e;
396
+ }
397
+ function oe() {
398
+ let e = document.createElement("div");
399
+ return e.setAttribute(_, ""), e.setAttribute("aria-hidden", "true"), Object.assign(e.style, {
400
+ position: "fixed",
401
+ zIndex: "2147483647",
402
+ pointerEvents: "none",
403
+ boxSizing: "border-box",
404
+ border: "2px solid var(--primary, #6750a4)",
405
+ background: "color-mix(in oklab, var(--primary, #6750a4) 12%, transparent)",
406
+ display: "none"
407
+ }), e;
408
+ }
409
+ function $(e, t) {
410
+ if (!t) {
411
+ e.style.display = "none";
412
+ return;
413
+ }
414
+ let n = t.getBoundingClientRect();
415
+ Object.assign(e.style, {
416
+ display: "block",
417
+ left: `${n.left}px`,
418
+ top: `${n.top}px`,
419
+ width: `${n.width}px`,
420
+ height: `${n.height}px`
421
+ });
422
+ }
423
+ function se(e, t) {
424
+ let n = e.composedPath()[0];
425
+ return !(n instanceof Element) || n.closest("[data-capture-exclude]") || t && !t(n) ? null : n;
426
+ }
427
+ function ce(e = {}) {
428
+ let { filter: t, onHover: n, signal: r, outline: i = !0, describe: a = re, announce: o = !0 } = e;
429
+ return new Promise((e, c) => {
430
+ let l = i ? oe() : null;
431
+ l && document.body.appendChild(l);
432
+ let u = o ? ae() : null;
433
+ u && document.body.appendChild(u);
434
+ let d = null, f = (e) => se(e, t), p = (e) => {
435
+ e !== d && (d = e, l && $(l, e), u && e && (u.textContent = a(e)), n?.(e));
436
+ }, m = (e) => p(f(e)), h = (e) => {
437
+ b(), e();
438
+ }, g = (t) => {
439
+ _(t);
440
+ let n = f(t);
441
+ n && h(() => e(n));
442
+ }, _ = (e) => {
443
+ e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation();
444
+ }, v = ie({
445
+ current: () => d,
446
+ show: p,
447
+ pick: (t) => h(() => e(t)),
448
+ cancel: () => y(),
449
+ swallow: _,
450
+ pickable: (e) => J(e, t)
451
+ }), y = () => h(() => c(new s("cancelled", "The pick was cancelled"))), b = () => {
452
+ document.removeEventListener("pointermove", m, !0), document.removeEventListener("click", g, !0), document.removeEventListener("keydown", v, !0);
453
+ for (let e of Q) document.removeEventListener(e, _, !0);
454
+ r?.removeEventListener("abort", y), l?.remove(), u?.remove();
455
+ };
456
+ document.addEventListener("pointermove", m, !0), document.addEventListener("click", g, !0), document.addEventListener("keydown", v, !0);
457
+ for (let e of Q) document.addEventListener(e, _, {
458
+ capture: !0,
459
+ passive: !1
460
+ });
461
+ r?.aborted ? y() : r?.addEventListener("abort", y);
462
+ });
463
+ }
464
+ //#endregion
465
+ //#region lib/capture/modes/visible.ts
466
+ function le(e = {}) {
467
+ return I({
468
+ x: 0,
469
+ y: 0,
470
+ w: window.innerWidth,
471
+ h: window.innerHeight
472
+ }, e);
473
+ }
474
+ //#endregion
475
+ export { L as a, I as c, v as d, m as f, u as g, g as h, H as i, M as l, p as m, ce as n, z as o, h as p, K as r, F as s, le as t, _ as u };
@@ -578,7 +578,7 @@ folder tile of the file manager.
578
578
  ## AttachmentList
579
579
 
580
580
  The files of a message or a form, one row each: a type icon (or a thumbnail
581
- drawn on a `<canvas>` for an image), the name, the size, a progress bar while
581
+ drawn on a `<canvas>` for an image), the name, the size (left out when `file.size` is unknown), a progress bar while
582
582
  it uploads, the refusal sentence when a file was refused, and a Remove button.
583
583
  It belongs to the lean `@softistx/material/embed` entry: inline icons and no
584
584
  `<img>`, so it works in a shadow root on a page with a strict `img-src`. See
@@ -481,7 +481,7 @@ The tint follows the theme's primary. Pass `backdrop={false}` on the card: the v
481
481
 
482
482
  ![AccountFrame](https://github.com/softistx/nxgt-material/blob/develop/packages/material/docs/previews/navigation-layout-accountframe.webp)
483
483
 
484
- The frame of a signed-in page that is not the app's shell (a workspace chooser, an account page, a consent screen). A sibling of `AuthCard` on the same base: one `main`, the title as the page's `h1`, a brand row, a notice (status or alert), a footer, an optional backdrop and safe-area padding. It adds the signed-in `account` (the last item at the far right of the brand row, after `toolbar`, as in `AppShell`), `width` (`'sm'` 24rem, `'md'` 32rem by default, `'lg'` 48rem), `surface` (`'card'` by default, or `'plain'` with no border, fill, shadow or inner padding), a tinted page `ground` and a raised card by default (`ground="none"`, `elevation="flat"` opt out), and a `hero` band inside the card. `AuthCard` keeps its own `max-w-sm` card.
484
+ The frame of a signed-in page that is not the app's shell (a workspace chooser, an account page, a consent screen). A sibling of `AuthCard` on the same base: one `main`, the title as the page's `h1`, a brand row, a notice (status or alert), a footer, an optional backdrop and safe-area padding. It adds the signed-in `account` (the last item at the far right of the brand row, after `toolbar`, as in `AppShell`), `width` (`'sm'` 24rem, `'md'` 32rem by default, `'lg'` 48rem, `'xl'` 64rem and `'2xl'` 80rem for a two-column page), `surface` (`'card'` by default, or `'plain'` with no border, fill, shadow or inner padding), a tinted page `ground` and a raised card by default (`ground="none"`, `elevation="flat"` opt out), and a `hero` band inside the card. `AuthCard` keeps its own `max-w-sm` card.
485
485
 
486
486
  ```tsx
487
487
  import { AccountFrame, Button, LanguageSwitcher } from '@softistx/material/components';
@@ -527,7 +527,7 @@ An account page that keeps the workspace's trail: the routes declare `handle.bre
527
527
  | `breadcrumb` | `boolean` | `false` | Shows the breadcrumb trail (`AppBreadcrumb`, built from the matched routes' `handle.breadcrumb`) in a row between the brand row and the card, as `ActivityLayout` draws it, hidden on a phone. Needs a data router (#4944). |
528
528
  | `breadcrumbRoot` | `AppBreadcrumbRoot` | none | The trail's first crumb, as `ActivityLayout`'s `breadcrumbRoot`: a text link, or (`icon: true`) the home icon with its own target and name. |
529
529
  | `back` | `true \| 'breadcrumb' \| { to, label? }` | none | A way back at the start of the trail row, as `handle.back`: `true` goes back in the history; `{ to, label }` is a link named "Back to <label>"; `'breadcrumb'` links to the trail's parent crumb below 768px only, where the trail is hidden. A `SettingsLayout` with `hideFrameBack` hides it on a phone while a section page is open. |
530
- | `width` | `'sm' \| 'md' \| 'lg'` | `'md'` | The width of the row, the panel and the footer: 24, 32 or 48rem. |
530
+ | `width` | `'sm' \| 'md' \| 'lg' \| 'xl' \| '2xl'` | `'md'` | The width of the row, the panel and the footer: 24, 32, 48, 64 or 80rem. |
531
531
  | `surface` | `'card' \| 'plain'` | `'card'` | `'plain'` drops the panel's border, fill, shadow and inner horizontal padding, so the title, description and content share the left edge of the brand row and the banner (#4707). |
532
532
  | `notice`, `noticeTone` | `ReactNode`, `'info' \| 'success' \| 'warning' \| 'error'` | none, `'info'` | A notice above the content; `'error'` makes it an alert, the others a status. |
533
533
  | `focusTitle` | `boolean` | `false` | Moves the focus to the title once shown. |