@nldd/design-system 0.20.0 → 0.21.1
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/custom-elements.json +361 -10
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-GinEMPm9.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-OywRKaWj.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-vmZLo80s.js +662 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-CXDzSBoL.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-A2DFWrP9.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-DQ52qq5L.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-BLXecYsZ.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BtxzRedh.js +719 -0
- package/dist/cdn/chunks/menu-bar-BU3Hjk1b.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-C7LQ0NI_.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-CGbeEv_-.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-BzZWhXhc.js +57 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-CqN7ViYV.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-CFPBdETU.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-DH19p8So.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-CA8K1XjU.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field--5K0YTcr.js +607 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-BpyxOGmU.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-C24LqAzK.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-C_kLPVKD.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-CxV6ELE9.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +1 -0
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +1 -0
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +1 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -0
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +1 -0
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +1 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +1 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +1 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +1 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +1 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +9 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +20 -7
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -0
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +68 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +4 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +17 -2
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -0
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +4 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/nldd.min.js +729 -727
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +14 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +26 -8
- package/dist/utilities/return-focus.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +53 -1
- package/lint/format.js +6 -5
- package/lint/frontends.js +224 -16
- package/lint/linter.js +5 -3
- package/lint/main.js +36 -9
- package/lint/project.js +73 -4
- package/lint/rule-data.js +17 -2
- package/lint/tree.js +3 -0
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n, o as r, r as i, t as a } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { t as c } from "./shadow-resets-6SToDsPu.js";
|
|
6
|
+
import { t as l } from "./with-translations-XX14GKFh.js";
|
|
7
|
+
import "./icon-button-rKiIHs7A.js";
|
|
8
|
+
import { a as u, i as d, n as f, t as p } from "./floating-ui.dom-B8J1rV2c.js";
|
|
9
|
+
import { n as m } from "./input-modality-XE0B7yCn.js";
|
|
10
|
+
import { t as h } from "./just-in-time-education.i18n-CW_dsaxf.js";
|
|
11
|
+
// src/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.ts
|
|
12
|
+
var g = e`
|
|
13
|
+
:host {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* # Host */
|
|
19
|
+
|
|
20
|
+
:host {
|
|
21
|
+
--_just-in-time-education-arrow-length: var(--primitives-space-64); /* JS overrides this with the arrow-length attribute when valid */
|
|
22
|
+
--_just-in-time-education-desired-arrow-length: max(var(--primitives-space-40), var(--_just-in-time-education-arrow-length));
|
|
23
|
+
--_just-in-time-education-no-arrow-gap: var(--primitives-space-16);
|
|
24
|
+
--_just-in-time-education-gap: min(var(--_just-in-time-education-desired-arrow-length), var(--_just-in-time-education-available-distance));
|
|
25
|
+
--_just-in-time-education-available-distance: 9999px; /* JS sets the px distance to the viewport/document edge; default = no clamp */
|
|
26
|
+
--_just-in-time-education-background-blur: var(--primitives-space-8);
|
|
27
|
+
--_just-in-time-education-background-z-index: -1;
|
|
28
|
+
--_just-in-time-education-corner-radius: var(--primitives-space-40);
|
|
29
|
+
--_just-in-time-education-text-width: var(--primitives-area-320);
|
|
30
|
+
--_just-in-time-education-min-text-width: var(--primitives-area-200);
|
|
31
|
+
--_just-in-time-education-dismiss-width: var(--semantics-controls-md-min-size);
|
|
32
|
+
--_just-in-time-education-main-width: var(--_just-in-time-education-text-width);
|
|
33
|
+
--_just-in-time-education-max-width: var(--_just-in-time-education-main-width);
|
|
34
|
+
--_just-in-time-education-show-duration: var(--primitives-transition-duration-fast);
|
|
35
|
+
--_just-in-time-education-hide-duration: var(--primitives-transition-duration-medium);
|
|
36
|
+
--_just-in-time-education-offset: 0; /* px, unitless — read by JS */
|
|
37
|
+
--_just-in-time-education-shift-padding: 8; /* px, unitless — read by JS */
|
|
38
|
+
--_just-in-time-education-main-padding: var(--primitives-space-16);
|
|
39
|
+
--_just-in-time-education-main-background-color: color-mix(in srgb, var(--semantics-surfaces-base-background-color) 90%, transparent);
|
|
40
|
+
--_just-in-time-education-text-color: var(--semantics-content-color);
|
|
41
|
+
--_just-in-time-education-text-font: var(--primitives-font-body-lg-bold-tight);
|
|
42
|
+
--_just-in-time-education-supporting-text-color: var(--semantics-content-color);
|
|
43
|
+
--_just-in-time-education-supporting-text-font: var(--primitives-font-body-md-regular-tight);
|
|
44
|
+
--_just-in-time-education-arrow-color: var(--semantics-content-color);
|
|
45
|
+
|
|
46
|
+
${c}
|
|
47
|
+
display: contents;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([hidden]) {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* no-arrow (consumer) or the auto-collapsed state (JS sets it when the gap would
|
|
55
|
+
* fall below its minimum): drop to a small fixed gap, with no arrow drawn. */
|
|
56
|
+
:host([no-arrow]),
|
|
57
|
+
:host([data-arrow-collapsed]) {
|
|
58
|
+
--_just-in-time-education-gap: var(--_just-in-time-education-no-arrow-gap);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Horizontal placement: the arrow gap is horizontal here (unlike vertical), so
|
|
62
|
+
* the container is the main plus the arrow length. (Vertical keeps the base
|
|
63
|
+
* --_just-in-time-education-max-width = --_just-in-time-education-main-width.) */
|
|
64
|
+
:host([data-arrow-side="left"]),
|
|
65
|
+
:host([data-arrow-side="right"]) {
|
|
66
|
+
--_just-in-time-education-max-width: calc(var(--_just-in-time-education-main-width) + var(--_just-in-time-education-desired-arrow-length));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* The dismiss button widens the main — it sits beside the text — for horizontal
|
|
70
|
+
* placement only; vertical stacks it below. --_just-in-time-education-max-width follows via --_just-in-time-education-main-width. */
|
|
71
|
+
:host([dismissable][data-arrow-side="left"]),
|
|
72
|
+
:host([dismissable][data-arrow-side="right"]) {
|
|
73
|
+
--_just-in-time-education-main-width: calc(var(--_just-in-time-education-text-width) + var(--_just-in-time-education-dismiss-width));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Horizontal placement near a viewport edge: --_just-in-time-education-available-distance (JS) is the
|
|
77
|
+
* distance to that edge. Reserve the main's width (--_just-in-time-education-main-width) so the arrow
|
|
78
|
+
* gap absorbs the first shrink and falls to 0; the container cap then narrows
|
|
79
|
+
* the main itself. Skipped for no-arrow, which keeps its fixed gap. */
|
|
80
|
+
:host(:not([no-arrow]):not([data-arrow-collapsed])[data-arrow-side="left"]),
|
|
81
|
+
:host(:not([no-arrow]):not([data-arrow-collapsed])[data-arrow-side="right"]) {
|
|
82
|
+
--_just-in-time-education-gap: clamp(0px, var(--_just-in-time-education-desired-arrow-length), calc(var(--_just-in-time-education-available-distance) - var(--_just-in-time-education-main-width)));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/* # Container */
|
|
87
|
+
|
|
88
|
+
/* Transparent top-layer wrapper. It carries the arrow gap as padding on the
|
|
89
|
+
* side facing the control (so the arrow lives INSIDE the box and is never
|
|
90
|
+
* clipped); the other sides keep a small margin for the blurred background.
|
|
91
|
+
* pointer-events are off so clicks on the empty padding fall through to the
|
|
92
|
+
* page (counted as "outside"). The whole thing fades as one on open/close;
|
|
93
|
+
* the base rule holds the (slower) hide timing, :popover-open the show. */
|
|
94
|
+
.just-in-time-education {
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
position: absolute;
|
|
97
|
+
opacity: 0;
|
|
98
|
+
margin: 0;
|
|
99
|
+
/* The container takes focus on open so Escape and the dismiss button are
|
|
100
|
+
reachable. Without this the browser draws its own ring around the whole
|
|
101
|
+
callout, text and arrow included, which reads as a drawing mistake rather
|
|
102
|
+
than a focus indicator. */
|
|
103
|
+
outline: none;
|
|
104
|
+
border: none;
|
|
105
|
+
background: none;
|
|
106
|
+
width: max-content;
|
|
107
|
+
max-width: var(--_just-in-time-education-max-width);
|
|
108
|
+
padding: var(--_just-in-time-education-background-blur);
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
overflow: visible;
|
|
111
|
+
transition:
|
|
112
|
+
opacity var(--_just-in-time-education-hide-duration) ease,
|
|
113
|
+
display var(--_just-in-time-education-hide-duration) allow-discrete,
|
|
114
|
+
overlay var(--_just-in-time-education-hide-duration) allow-discrete;
|
|
115
|
+
/* Force a GPU layer so Safari paints the freshly-opened top-layer popover
|
|
116
|
+
* (blurred background + SVG arrow) correctly instead of leaving it stale
|
|
117
|
+
* until a manual resize. */
|
|
118
|
+
transform: translate3d(0, 0, 0);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* :focus, not :focus-visible: this container is only ever focused from script,
|
|
122
|
+
and the browser does not read that as keyboard-initiated, so the ring would
|
|
123
|
+
never appear. Our own modality flag decides instead: no ring after a mouse
|
|
124
|
+
click, because the container is a landing spot rather than something you
|
|
125
|
+
operate, and a ring for a keyboard user, for whom it is the only sign that
|
|
126
|
+
focus moved into the callout. */
|
|
127
|
+
.just-in-time-education:focus:not(.is-pointer-focus) {
|
|
128
|
+
outline: var(--semantics-focus-ring-outline);
|
|
129
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Horizontal placement: never exceed the room to the viewport edge. Once the
|
|
133
|
+
* arrow gap has shrunk to 0, this is what makes the main itself narrower. */
|
|
134
|
+
:host([data-arrow-side="left"]) .just-in-time-education,
|
|
135
|
+
:host([data-arrow-side="right"]) .just-in-time-education {
|
|
136
|
+
max-width: min(var(--_just-in-time-education-max-width), var(--_just-in-time-education-available-distance));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
/* ## Arrow-side padding (only the side facing the control needs the gap) */
|
|
141
|
+
|
|
142
|
+
:host([data-arrow-side="bottom"]) .just-in-time-education {
|
|
143
|
+
padding-block-start: var(--_just-in-time-education-gap);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([data-arrow-side="top"]) .just-in-time-education {
|
|
147
|
+
padding-block-end: var(--_just-in-time-education-gap);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host([data-arrow-side="left"]) .just-in-time-education {
|
|
151
|
+
padding-inline-end: var(--_just-in-time-education-gap);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host([data-arrow-side="right"]) .just-in-time-education {
|
|
155
|
+
padding-inline-start: var(--_just-in-time-education-gap);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
/* ## Fade */
|
|
160
|
+
|
|
161
|
+
.just-in-time-education:popover-open {
|
|
162
|
+
opacity: 1;
|
|
163
|
+
transition:
|
|
164
|
+
opacity var(--_just-in-time-education-show-duration) ease,
|
|
165
|
+
display var(--_just-in-time-education-show-duration) allow-discrete,
|
|
166
|
+
overlay var(--_just-in-time-education-show-duration) allow-discrete;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Stay invisible (no fade) until Floating UI has placed it, so the fade-in plays at
|
|
170
|
+
the control rather than flashing at the popover's default spot. The positioned
|
|
171
|
+
attribute is set once _updatePosition writes the coordinates. */
|
|
172
|
+
.just-in-time-education:popover-open:not([positioned]) {
|
|
173
|
+
/* opacity, not visibility: the callout is focused synchronously on open (before
|
|
174
|
+
Floating UI places it), and a visibility:hidden element can't take focus. The
|
|
175
|
+
reveal-timeout in _open() guarantees it can't stay hidden while holding focus. */
|
|
176
|
+
opacity: 0;
|
|
177
|
+
transition: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@starting-style {
|
|
181
|
+
.just-in-time-education:popover-open {
|
|
182
|
+
opacity: 0;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@media (prefers-reduced-motion: reduce) {
|
|
187
|
+
.just-in-time-education {
|
|
188
|
+
transition: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/* # Main */
|
|
194
|
+
|
|
195
|
+
.just-in-time-education__main {
|
|
196
|
+
box-sizing: border-box;
|
|
197
|
+
position: relative;
|
|
198
|
+
isolation: isolate;
|
|
199
|
+
pointer-events: auto;
|
|
200
|
+
padding: var(--_just-in-time-education-main-padding);
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
align-items: center;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* The dismiss sits on the side away from the arrow: below the text for bottom,
|
|
207
|
+
* above it for top, beside it (on the placement's own side) for left/right —
|
|
208
|
+
* so the text always leans toward the control. */
|
|
209
|
+
:host([data-arrow-side="top"]) .just-in-time-education__main {
|
|
210
|
+
flex-direction: column-reverse;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host([data-arrow-side="left"]) .just-in-time-education__main {
|
|
214
|
+
flex-direction: row-reverse;
|
|
215
|
+
align-items: center;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:host([data-arrow-side="right"]) .just-in-time-education__main {
|
|
219
|
+
flex-direction: row;
|
|
220
|
+
align-items: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Horizontal placement floor: as the room narrows the main (after the arrow
|
|
224
|
+
* has collapsed), keep it usable at this minimum — the card overflows the
|
|
225
|
+
* viewport edge rather than shrinking further. */
|
|
226
|
+
:host([data-arrow-side="left"]) .just-in-time-education__main,
|
|
227
|
+
:host([data-arrow-side="right"]) .just-in-time-education__main {
|
|
228
|
+
min-width: var(--_just-in-time-education-min-text-width);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* ...plus the dismiss button when dismissable: it sits beside the text, so the
|
|
232
|
+
* text keeps its 200px floor with the button next to it. */
|
|
233
|
+
:host([dismissable][data-arrow-side="left"]) .just-in-time-education__main,
|
|
234
|
+
:host([dismissable][data-arrow-side="right"]) .just-in-time-education__main {
|
|
235
|
+
min-width: calc(var(--_just-in-time-education-min-text-width) + var(--_just-in-time-education-dismiss-width));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Background lives on a blurred pseudo-element so its edges fade softly (no
|
|
239
|
+
* hard border, no drop shadow). The radius is a local, free value because
|
|
240
|
+
* this surface has a different function than the standard surfaces. The
|
|
241
|
+
* element is grown by the blur radius so the solid center still covers the
|
|
242
|
+
* content after blurring. */
|
|
243
|
+
.just-in-time-education__main::before {
|
|
244
|
+
content: '';
|
|
245
|
+
position: absolute;
|
|
246
|
+
z-index: var(--_just-in-time-education-background-z-index);
|
|
247
|
+
inset: calc(-1 * var(--_just-in-time-education-background-blur));
|
|
248
|
+
border-radius: var(--_just-in-time-education-corner-radius);
|
|
249
|
+
background-color: var(--_just-in-time-education-main-background-color);
|
|
250
|
+
filter: blur(var(--_just-in-time-education-background-blur));
|
|
251
|
+
transform: translate3d(0, 0, 0);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
/* ## Text */
|
|
256
|
+
|
|
257
|
+
.just-in-time-education__text-area {
|
|
258
|
+
display: flex;
|
|
259
|
+
flex-direction: column;
|
|
260
|
+
text-align: center;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:host([data-arrow-side="left"]) .just-in-time-education__text-area {
|
|
264
|
+
text-align: right;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
:host([data-arrow-side="right"]) .just-in-time-education__text-area {
|
|
268
|
+
text-align: left;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.just-in-time-education__text {
|
|
272
|
+
margin: 0;
|
|
273
|
+
color: var(--_just-in-time-education-text-color);
|
|
274
|
+
font: var(--_just-in-time-education-text-font);
|
|
275
|
+
font-style: italic;
|
|
276
|
+
text-wrap: pretty;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.just-in-time-education__supporting-text {
|
|
280
|
+
margin: 0;
|
|
281
|
+
color: var(--_just-in-time-education-supporting-text-color);
|
|
282
|
+
font: var(--_just-in-time-education-supporting-text-font);
|
|
283
|
+
font-style: italic;
|
|
284
|
+
text-wrap: pretty;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
/* ## Dismiss button */
|
|
289
|
+
|
|
290
|
+
.just-in-time-education__dismiss-button {
|
|
291
|
+
display: flex;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/* # Arrow */
|
|
296
|
+
|
|
297
|
+
.just-in-time-education__arrow {
|
|
298
|
+
position: absolute;
|
|
299
|
+
pointer-events: none;
|
|
300
|
+
overflow: visible;
|
|
301
|
+
color: var(--_just-in-time-education-arrow-color);
|
|
302
|
+
transform: translate3d(0, 0, 0);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* Auto-collapsed (gap below its minimum near an edge): hide the arrow; the gap
|
|
306
|
+
* has already dropped to the small no-arrow value. */
|
|
307
|
+
:host([data-arrow-collapsed]) .just-in-time-education__arrow {
|
|
308
|
+
display: none;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.just-in-time-education__arrow-path {
|
|
312
|
+
fill: none;
|
|
313
|
+
stroke: currentColor;
|
|
314
|
+
stroke-width: 2;
|
|
315
|
+
stroke-linecap: butt;
|
|
316
|
+
stroke-dasharray: 5 3;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.just-in-time-education__arrow-head {
|
|
320
|
+
fill: currentColor;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/* # Live-region announcer */
|
|
325
|
+
|
|
326
|
+
/* Visually hidden but present in the a11y tree, so the polite announcement set
|
|
327
|
+
* on open reaches assistive tech without moving focus into the callout. */
|
|
328
|
+
.just-in-time-education__announcer {
|
|
329
|
+
position: absolute;
|
|
330
|
+
margin: -1px;
|
|
331
|
+
border: 0;
|
|
332
|
+
width: 1px;
|
|
333
|
+
height: 1px;
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
padding: 0;
|
|
336
|
+
white-space: nowrap;
|
|
337
|
+
clip-path: inset(50%);
|
|
338
|
+
}
|
|
339
|
+
`;
|
|
340
|
+
// src/components/status-and-feedback/just-in-time-education/just-in-time-education.template.ts
|
|
341
|
+
function _(e) {
|
|
342
|
+
return r`
|
|
343
|
+
<slot
|
|
344
|
+
@slotchange=${e._handleSlotChange}
|
|
345
|
+
@focusin=${e._handleAdvisedInteraction}
|
|
346
|
+
@pointerdown=${e._handleAdvisedInteraction}
|
|
347
|
+
></slot>
|
|
348
|
+
<div class="just-in-time-education__announcer"
|
|
349
|
+
aria-live="polite"
|
|
350
|
+
aria-atomic="true"
|
|
351
|
+
></div>
|
|
352
|
+
<div class="just-in-time-education"
|
|
353
|
+
popover="manual"
|
|
354
|
+
role=${e.dismissable ? "dialog" : "region"}
|
|
355
|
+
tabindex=${e.dismissable ? "-1" : i}
|
|
356
|
+
aria-label=${e.text || e._t("components.just-in-time-education.accessible-label")}
|
|
357
|
+
@keydown=${e._handleCalloutKeydown}
|
|
358
|
+
>
|
|
359
|
+
<div class="just-in-time-education__main">
|
|
360
|
+
<div class="just-in-time-education__text-area">
|
|
361
|
+
${e.text ? r`
|
|
362
|
+
<p class="just-in-time-education__text">
|
|
363
|
+
${e.text}
|
|
364
|
+
</p>
|
|
365
|
+
` : i}
|
|
366
|
+
${e.supportingText ? r`
|
|
367
|
+
<p class="just-in-time-education__supporting-text">
|
|
368
|
+
${e.supportingText}
|
|
369
|
+
</p>
|
|
370
|
+
` : i}
|
|
371
|
+
</div>
|
|
372
|
+
${e.dismissable ? r`
|
|
373
|
+
<div class="just-in-time-education__dismiss-button">
|
|
374
|
+
<nldd-icon-button
|
|
375
|
+
icon="dismiss"
|
|
376
|
+
appearance="neutral-transparent"
|
|
377
|
+
size="md"
|
|
378
|
+
accessible-label=${e._t("components.just-in-time-education.dismiss-action")}
|
|
379
|
+
@click=${e._handleDismiss}
|
|
380
|
+
></nldd-icon-button>
|
|
381
|
+
</div>
|
|
382
|
+
` : i}
|
|
383
|
+
</div>
|
|
384
|
+
${e.noArrow ? i : r`
|
|
385
|
+
<svg class="just-in-time-education__arrow"
|
|
386
|
+
aria-hidden="true"
|
|
387
|
+
>
|
|
388
|
+
<defs>
|
|
389
|
+
<marker
|
|
390
|
+
id=${e._arrowMarkerId}
|
|
391
|
+
markerWidth="10"
|
|
392
|
+
markerHeight="12"
|
|
393
|
+
refX="0"
|
|
394
|
+
refY="5.78"
|
|
395
|
+
orient="auto"
|
|
396
|
+
markerUnits="userSpaceOnUse"
|
|
397
|
+
>
|
|
398
|
+
<path class="just-in-time-education__arrow-head"
|
|
399
|
+
d="M0,0 L10,5.78 L0,11.55 Z"
|
|
400
|
+
></path>
|
|
401
|
+
</marker>
|
|
402
|
+
</defs>
|
|
403
|
+
<path class="just-in-time-education__arrow-path"
|
|
404
|
+
marker-end=${`url(#${e._arrowMarkerId})`}
|
|
405
|
+
></path>
|
|
406
|
+
</svg>
|
|
407
|
+
`}
|
|
408
|
+
</div>
|
|
409
|
+
`;
|
|
410
|
+
}
|
|
411
|
+
// src/components/status-and-feedback/just-in-time-education/just-in-time-education.ts
|
|
412
|
+
var v, y, b = 0, x = (v = class extends l(n, h) {
|
|
413
|
+
constructor(...e) {
|
|
414
|
+
super(...e), this.active = !1, this.text = "", this.supportingText = "", this.placement = "auto", this.dismissable = !1, this.arrowLength = "", this.noArrow = !1, this._cleanupAutoUpdate = null, this._attachTimeout = null, this._revealTimeout = null, this._attributeObserver = null, this._boundDocumentInteraction = (e) => this._handleDocumentInteraction(e), this._resolvedSide = null, this._lastViewportWidth = 0, this._lastViewportHeight = 0, this._arrowMarkerId = `nldd-jite-arrow-${++b}`;
|
|
415
|
+
}
|
|
416
|
+
updated(e) {
|
|
417
|
+
if (e.has("arrowLength") && (this.arrowLength && CSS.supports("width", this.arrowLength) ? this.style.setProperty("--_just-in-time-education-arrow-length", this.arrowLength) : this.style.removeProperty("--_just-in-time-education-arrow-length")), e.has("active")) this.active ? this._open() : this._closePopover();
|
|
418
|
+
else if (this.active && (e.has("placement") || e.has("text") || e.has("supportingText") || e.has("arrowLength") || e.has("noArrow"))) {
|
|
419
|
+
this._resolvedSide = null;
|
|
420
|
+
let e = this._getControl(), t = this._containerEl;
|
|
421
|
+
e && t && this._updatePosition(e, t);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
get _containerEl() {
|
|
425
|
+
return this.shadowRoot?.querySelector(".just-in-time-education") ?? null;
|
|
426
|
+
}
|
|
427
|
+
get _cardEl() {
|
|
428
|
+
return this.shadowRoot?.querySelector(".just-in-time-education__main") ?? null;
|
|
429
|
+
}
|
|
430
|
+
get _announcerEl() {
|
|
431
|
+
return this.shadowRoot?.querySelector(".just-in-time-education__announcer") ?? null;
|
|
432
|
+
}
|
|
433
|
+
_getControl() {
|
|
434
|
+
return (this.shadowRoot?.querySelector("slot"))?.assignedElements({ flatten: !0 })?.[0] ?? null;
|
|
435
|
+
}
|
|
436
|
+
_getControls() {
|
|
437
|
+
return (this.shadowRoot?.querySelector("slot"))?.assignedElements({ flatten: !0 }) ?? [];
|
|
438
|
+
}
|
|
439
|
+
_forwardAttribute(e) {
|
|
440
|
+
if (y._ownAttributes.has(e)) return;
|
|
441
|
+
let t = this.hasAttribute(e), n = this.getAttribute(e) ?? "";
|
|
442
|
+
for (let r of this._getControls()) t ? r.setAttribute(e, n) : r.removeAttribute(e);
|
|
443
|
+
}
|
|
444
|
+
_handleSlotChange() {
|
|
445
|
+
for (let e of Array.from(this.attributes)) this._forwardAttribute(e.name);
|
|
446
|
+
}
|
|
447
|
+
_open() {
|
|
448
|
+
let e = this._containerEl;
|
|
449
|
+
if (!e) return;
|
|
450
|
+
e.matches(":popover-open") || (e.removeAttribute("positioned"), e.showPopover()), this._startPositioning(), this._getControl() ? (this._revealTimeout && clearTimeout(this._revealTimeout), this._revealTimeout = setTimeout(() => {
|
|
451
|
+
this._revealTimeout = null, this.active && e.setAttribute("positioned", "");
|
|
452
|
+
}, 200)) : e.setAttribute("positioned", "");
|
|
453
|
+
let t = this._announcerEl;
|
|
454
|
+
t && (t.textContent = [this.text, this.supportingText].filter(Boolean).join(". ")), this.dismissable && (e.classList.toggle("is-pointer-focus", m()), e.focus(), this._attachTimeout && clearTimeout(this._attachTimeout), this._attachTimeout = setTimeout(() => {
|
|
455
|
+
this._attachTimeout = null, this.active && (document.addEventListener("click", this._boundDocumentInteraction, !0), document.addEventListener("keydown", this._boundDocumentInteraction, !0));
|
|
456
|
+
}, 0));
|
|
457
|
+
}
|
|
458
|
+
_closePopover() {
|
|
459
|
+
let e = this._containerEl, t = e?.matches(":focus-within") ?? !1;
|
|
460
|
+
e?.matches(":popover-open") && e.hidePopover(), this._stopPositioning();
|
|
461
|
+
let n = this._announcerEl;
|
|
462
|
+
n && (n.textContent = ""), t && this._getControl()?.focus(), this._attachTimeout && (clearTimeout(this._attachTimeout), this._attachTimeout = null), this._revealTimeout && (clearTimeout(this._revealTimeout), this._revealTimeout = null), document.removeEventListener("click", this._boundDocumentInteraction, !0), document.removeEventListener("keydown", this._boundDocumentInteraction, !0);
|
|
463
|
+
}
|
|
464
|
+
_startPositioning() {
|
|
465
|
+
let e = this._getControl(), t = this._containerEl;
|
|
466
|
+
e && t && (this._stopPositioning(), this._cleanupAutoUpdate = p(e, t, () => this._updatePosition(e, t)));
|
|
467
|
+
}
|
|
468
|
+
_stopPositioning() {
|
|
469
|
+
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = null, this._resolvedSide = null;
|
|
470
|
+
}
|
|
471
|
+
async _updatePosition(e, t) {
|
|
472
|
+
let n = getComputedStyle(this), r = parseInt(n.getPropertyValue("--_just-in-time-education-offset"), 10), i = parseInt(n.getPropertyValue("--_just-in-time-education-shift-padding"), 10), a = window.innerWidth, o = window.innerHeight;
|
|
473
|
+
(this._resolvedSide === null || a !== this._lastViewportWidth || o !== this._lastViewportHeight) && (this._resolvedSide = this._chooseSide(e), this._lastViewportWidth = a, this._lastViewportHeight = o);
|
|
474
|
+
let s = this._resolvedSide;
|
|
475
|
+
this.getAttribute("data-arrow-side") !== s && this.setAttribute("data-arrow-side", s);
|
|
476
|
+
let c = this._cardEl?.getBoundingClientRect().height ?? 0, l = e.getBoundingClientRect(), p = "9999px";
|
|
477
|
+
s === "top" ? p = `${Math.max(0, l.top + window.scrollY - c)}px` : s === "bottom" ? p = `${Math.max(0, document.documentElement.scrollHeight - (l.bottom + window.scrollY) - c)}px` : s === "left" ? p = `${Math.max(0, l.left)}px` : s === "right" && (p = `${Math.max(0, window.innerWidth - l.right)}px`), this.style.setProperty("--_just-in-time-education-available-distance", p);
|
|
478
|
+
let m = s === "top" || s === "bottom", h = parseFloat(n.getPropertyValue("--primitives-space-40")) || 40, g = parseFloat(p);
|
|
479
|
+
if (!m) {
|
|
480
|
+
let e = (parseFloat(n.getPropertyValue("--_just-in-time-education-text-width")) || 320) + (this.dismissable ? parseFloat(n.getPropertyValue("--_just-in-time-education-dismiss-width")) || 44 : 0);
|
|
481
|
+
g -= e;
|
|
482
|
+
}
|
|
483
|
+
let _ = !this.noArrow && g < h;
|
|
484
|
+
this.toggleAttribute("data-arrow-collapsed", _);
|
|
485
|
+
let { x: v, y } = await f(e, t, {
|
|
486
|
+
placement: s,
|
|
487
|
+
middleware: m ? [d(r), u({ padding: i })] : [d(r)]
|
|
488
|
+
});
|
|
489
|
+
t.style.left = `${v}px`, t.style.top = `${y}px`, this._revealTimeout && (clearTimeout(this._revealTimeout), this._revealTimeout = null), t.setAttribute("positioned", ""), this._updateArrow(e, t, s);
|
|
490
|
+
}
|
|
491
|
+
_chooseSide(e) {
|
|
492
|
+
if (this.placement !== "auto") return this.placement;
|
|
493
|
+
let t = e.getBoundingClientRect(), n = document.documentElement.scrollHeight, r = {
|
|
494
|
+
top: t.top + window.scrollY,
|
|
495
|
+
bottom: n - (t.bottom + window.scrollY),
|
|
496
|
+
left: t.left,
|
|
497
|
+
right: window.innerWidth - t.right
|
|
498
|
+
}, i = "bottom";
|
|
499
|
+
for (let e of [
|
|
500
|
+
"top",
|
|
501
|
+
"bottom",
|
|
502
|
+
"left",
|
|
503
|
+
"right"
|
|
504
|
+
]) r[e] > r[i] && (i = e);
|
|
505
|
+
return i;
|
|
506
|
+
}
|
|
507
|
+
_updateArrow(e, t, n) {
|
|
508
|
+
let r = this.shadowRoot?.querySelector(".just-in-time-education__arrow"), i = this.shadowRoot?.querySelector(".just-in-time-education__arrow-path"), a = this._cardEl;
|
|
509
|
+
if (!r || !i || !a || this.hasAttribute("data-arrow-collapsed")) return;
|
|
510
|
+
let o = t.getBoundingClientRect(), s = a.getBoundingClientRect(), c = e.getBoundingClientRect(), l = s.left + s.width / 2, u = s.top + s.height / 2, d = c.left + c.width / 2, f = c.top + c.height / 2, p = n.split("-")[0], m, h, g, _, v, y;
|
|
511
|
+
p === "top" ? (m = l, h = s.bottom, g = d, _ = c.top - 6, v = 0, y = 1) : p === "bottom" ? (m = l, h = s.top, g = d, _ = c.bottom + 6, v = 0, y = -1) : p === "left" ? (m = s.right, h = u, g = c.left - 6, _ = f, v = 1, y = 0) : (m = s.left, h = u, g = c.right + 6, _ = f, v = -1, y = 0);
|
|
512
|
+
let b = g - 10 * v, x = _ - 10 * y, S = .25, C = b - m, w = x - h, T = p === "top" || p === "bottom", E = Math.min(Math.hypot(C, w) * .18, 9), D = (m + b) / 2 + (T ? E : 0), O = (h + x) / 2 + (T ? 0 : E), k, A, j, M, N, P, F, I;
|
|
513
|
+
T ? (k = m, A = h + w * S, j = D, M = O - w * S, N = D, P = O + w * S, F = b, I = x - w * S) : (k = m + C * S, A = h, j = D - C * S, M = O, N = D + C * S, P = O, F = b - C * S, I = x);
|
|
514
|
+
let L = [
|
|
515
|
+
m,
|
|
516
|
+
D,
|
|
517
|
+
b,
|
|
518
|
+
g,
|
|
519
|
+
k,
|
|
520
|
+
j,
|
|
521
|
+
N,
|
|
522
|
+
F
|
|
523
|
+
], R = [
|
|
524
|
+
h,
|
|
525
|
+
O,
|
|
526
|
+
x,
|
|
527
|
+
_,
|
|
528
|
+
A,
|
|
529
|
+
M,
|
|
530
|
+
P,
|
|
531
|
+
I
|
|
532
|
+
], z = Math.min(...L) - 4, B = Math.min(...R) - 4, V = Math.max(...L) + 4 - z, H = Math.max(...R) + 4 - B;
|
|
533
|
+
r.style.left = `${z - o.left}px`, r.style.top = `${B - o.top}px`, r.setAttribute("width", `${V}`), r.setAttribute("height", `${H}`), r.setAttribute("viewBox", `0 0 ${V} ${H}`), i.setAttribute("d", `M ${m - z} ${h - B} C ${k - z} ${A - B}, ${j - z} ${M - B}, ${D - z} ${O - B} C ${N - z} ${P - B}, ${F - z} ${I - B}, ${b - z} ${x - B}`);
|
|
534
|
+
}
|
|
535
|
+
_handleAdvisedInteraction() {
|
|
536
|
+
this.active && this.dismissable && this._close("completed");
|
|
537
|
+
}
|
|
538
|
+
_handleDocumentInteraction(e) {
|
|
539
|
+
this.active && this.dismissable && (e.composedPath().includes(this) || this._close("ignored"));
|
|
540
|
+
}
|
|
541
|
+
_handleDismiss() {
|
|
542
|
+
this._close("dismissed");
|
|
543
|
+
}
|
|
544
|
+
_handleCalloutKeydown(e) {
|
|
545
|
+
e.key === "Escape" && this.dismissable && (e.stopPropagation(), this._handleDismiss());
|
|
546
|
+
}
|
|
547
|
+
complete() {
|
|
548
|
+
this.active && this._close("completed");
|
|
549
|
+
}
|
|
550
|
+
_close(e) {
|
|
551
|
+
this.active = !1, this.dispatchEvent(new CustomEvent("nldd-close", {
|
|
552
|
+
detail: { reason: e },
|
|
553
|
+
bubbles: !0,
|
|
554
|
+
composed: !0
|
|
555
|
+
}));
|
|
556
|
+
}
|
|
557
|
+
connectedCallback() {
|
|
558
|
+
super.connectedCallback(), this._attributeObserver || (this._attributeObserver = new MutationObserver((e) => {
|
|
559
|
+
for (let t of e) t.attributeName && this._forwardAttribute(t.attributeName);
|
|
560
|
+
})), this._attributeObserver.observe(this, { attributes: !0 });
|
|
561
|
+
}
|
|
562
|
+
disconnectedCallback() {
|
|
563
|
+
super.disconnectedCallback(), this._closePopover(), this._attributeObserver?.disconnect();
|
|
564
|
+
}
|
|
565
|
+
render() {
|
|
566
|
+
return _(this);
|
|
567
|
+
}
|
|
568
|
+
}, y = v, v.styles = g, v._ownAttributes = /* @__PURE__ */ new Set([
|
|
569
|
+
"active",
|
|
570
|
+
"text",
|
|
571
|
+
"supporting-text",
|
|
572
|
+
"placement",
|
|
573
|
+
"dismissable",
|
|
574
|
+
"arrow-length",
|
|
575
|
+
"no-arrow",
|
|
576
|
+
"translations",
|
|
577
|
+
"data-arrow-side",
|
|
578
|
+
"data-arrow-collapsed",
|
|
579
|
+
"style",
|
|
580
|
+
"class",
|
|
581
|
+
"id",
|
|
582
|
+
"role",
|
|
583
|
+
"slot",
|
|
584
|
+
"hidden"
|
|
585
|
+
]), v);
|
|
586
|
+
a([t({
|
|
587
|
+
type: Boolean,
|
|
588
|
+
reflect: !0
|
|
589
|
+
})], x.prototype, "active", void 0), a([t({
|
|
590
|
+
reflect: !0,
|
|
591
|
+
converter: s("")
|
|
592
|
+
})], x.prototype, "text", void 0), a([t({
|
|
593
|
+
reflect: !0,
|
|
594
|
+
attribute: "supporting-text",
|
|
595
|
+
converter: s("")
|
|
596
|
+
})], x.prototype, "supportingText", void 0), a([t({
|
|
597
|
+
reflect: !0,
|
|
598
|
+
converter: s("auto")
|
|
599
|
+
})], x.prototype, "placement", void 0), a([t({
|
|
600
|
+
type: Boolean,
|
|
601
|
+
reflect: !0
|
|
602
|
+
})], x.prototype, "dismissable", void 0), a([t({
|
|
603
|
+
reflect: !0,
|
|
604
|
+
attribute: "arrow-length",
|
|
605
|
+
converter: s("")
|
|
606
|
+
})], x.prototype, "arrowLength", void 0), a([t({
|
|
607
|
+
type: Boolean,
|
|
608
|
+
reflect: !0,
|
|
609
|
+
attribute: "no-arrow"
|
|
610
|
+
})], x.prototype, "noArrow", void 0), x = y = a([o("nldd-just-in-time-education")], x);
|
|
611
|
+
export { x as NLDDJustInTimeEducation };
|