@nldd/design-system 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +521 -57
- 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-rknt4FBO.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-DyBQSaQl.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-Clti_wKN.js +654 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-2TCQLd5D.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-CUc4WWY3.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-Bff6_1pp.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-CrBk3W-t.js → cdn/chunks/icon-BORlalt0.js} +298 -309
- 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-Cg1l0HhB.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-BOu_pD1Q.js +719 -0
- package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.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-C-CVVtfl.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-Xmagtk6r.js +52 -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-BdVCqm2H.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-DP4jnS7g.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-BeXnOUTt.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-DmslEoPD.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-Cj5WojfO.js +597 -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-hvDB3l6O.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-iNd1VmuG.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-D1hjWIF3.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-t5iFkMLY.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/button/button.d.ts +5 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +6 -6
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +6 -8
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +15 -4
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +7 -1
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +2 -2
- package/dist/components/actions/icon-button/icon-button.d.ts +3 -3
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +4 -4
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +2 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +12 -3
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +27 -6
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +31 -8
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +108 -32
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +7 -0
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.pointer.js +17 -0
- package/dist/components/actions/menu/menu.pointer.js.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.d.ts +6 -5
- package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.js +3 -3
- package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +6 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +17 -9
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -2
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/content/avatar/avatar.js +1 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +2 -1
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/image/image.js +1 -1
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +3 -3
- package/dist/components/content/tag/tag.js +3 -3
- package/dist/components/content/tag/tag.template.js +3 -3
- package/dist/components/content/tag/tag.template.js.map +1 -1
- package/dist/components/content/title/title.js +1 -1
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/token/token.d.ts +6 -4
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +6 -4
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +67 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +1 -1
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +4 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +2 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.js +4 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +1 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/inputs/toggle-button/toggle-button.js +3 -3
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +7 -10
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +3 -3
- package/dist/components/layout/card/card.js +1 -1
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +3 -1
- package/dist/components/layout/card/card.styles.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/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +2 -1
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +3 -2
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +3 -2
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +5 -2
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +5 -2
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +2 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +2 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +2 -2
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +2 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +2 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +4 -4
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +2 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +2 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +1 -2
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +10 -12
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +1 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +6 -1
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/spacer/spacer.js +1 -1
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +2 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +3 -2
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -0
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +7 -1
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +5 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -4
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +3 -3
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +2 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +4 -1
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +19 -9
- 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 +30 -14
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +20 -0
- package/dist/components/lists-and-tables/list-item/list-item.styles.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/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +6 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +5 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +2 -4
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +7 -4
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +7 -4
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +5 -5
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +3 -2
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +18 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +51 -3
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +5 -3
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +4 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +26 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +2 -2
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +4 -4
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +5 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +6 -3
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
- package/dist/css/variables.css +6 -0
- package/dist/nldd.min.js +784 -728
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +26 -14
- 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 +17 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/input-modality.d.ts.map +1 -1
- package/dist/utilities/input-modality.js +4 -2
- package/dist/utilities/input-modality.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/page-section-mixin.d.ts +10 -4
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +29 -23
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +44 -0
- package/dist/utilities/return-focus.d.ts.map +1 -0
- package/dist/utilities/return-focus.js +99 -0
- package/dist/utilities/return-focus.js.map +1 -0
- package/dist/utilities/slot-content.d.ts +30 -0
- package/dist/utilities/slot-content.d.ts.map +1 -0
- package/dist/utilities/slot-content.js +38 -0
- package/dist/utilities/slot-content.js.map +1 -0
- package/lint/data.generated.json +1 -1
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -67895
- package/dist/components/decorate-C7khEuc7.js +0 -16
- package/dist/components/defer-focus-BQ3c4mzj.js +0 -176
- package/dist/components/dev-checks-lQ-gHUjV.js +0 -2706
- 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-CfpnGzYQ.js +0 -2308
- package/dist/components/input-modality-CiPLYYMN.js +0 -42
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/reflect-non-default-B9wQcnne.js +0 -36
- 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-BMtETgjk.js +0 -153
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { i as e, n as t, t as n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as r, o as i, t as a } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { r as s } from "./element-state-B-44fVqq.js";
|
|
5
|
+
import { t as c } from "./translations-wxBSz213.js";
|
|
6
|
+
import { t as l } from "./validation-list.i18n-CM6In8zD.js";
|
|
7
|
+
// src/components/forms/validation-list/validation-list.styles.ts
|
|
8
|
+
var u = e`
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/* # Host */
|
|
12
|
+
|
|
13
|
+
:host {
|
|
14
|
+
--_validation-list-gap: var(--primitives-space-2);
|
|
15
|
+
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host(:not(.has-items)) {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([hidden]) {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
/* # List */
|
|
29
|
+
|
|
30
|
+
.validation-list {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: var(--_validation-list-gap);
|
|
34
|
+
}
|
|
35
|
+
`, d = e`
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/* # Host */
|
|
39
|
+
|
|
40
|
+
:host {
|
|
41
|
+
--_validation-item-content-color: var(--semantics-content-color);
|
|
42
|
+
--_validation-item-font: var(--primitives-font-body-sm-regular-tight);
|
|
43
|
+
|
|
44
|
+
display: none;
|
|
45
|
+
color: var(--_validation-item-content-color);
|
|
46
|
+
font: var(--_validation-item-font);
|
|
47
|
+
text-wrap: pretty;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([visible]) {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([unmet]) {
|
|
55
|
+
--_validation-item-content-color: var(--semantics-content-critical-color);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* After the visible rule at equal specificity: hidden must also win on an
|
|
59
|
+
item that is currently shown. */
|
|
60
|
+
:host([hidden]) {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
// src/components/forms/validation-list/validation-list.template.ts
|
|
65
|
+
function f(e) {
|
|
66
|
+
return i`
|
|
67
|
+
<div class="validation-list"
|
|
68
|
+
role="list"
|
|
69
|
+
>
|
|
70
|
+
<slot></slot>
|
|
71
|
+
</div>
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
function p(e) {
|
|
75
|
+
return i`
|
|
76
|
+
<slot></slot>
|
|
77
|
+
`;
|
|
78
|
+
}
|
|
79
|
+
// src/components/forms/validation-list/validation-list.ts
|
|
80
|
+
var m = class extends r {
|
|
81
|
+
constructor(...e) {
|
|
82
|
+
super(...e), this.match = "", this.required = !1, this.hint = !1, this.unmet = !1, this.visible = !1;
|
|
83
|
+
}
|
|
84
|
+
get hasRule() {
|
|
85
|
+
return this.required || !!this.match || this.minlength !== void 0 || this.maxlength !== void 0;
|
|
86
|
+
}
|
|
87
|
+
test(e) {
|
|
88
|
+
return this.hasRule ? !(this.required && !e || this.minlength !== void 0 && e.length < this.minlength || this.maxlength !== void 0 && e.length > this.maxlength || this.match && !new RegExp(this.match, "u").test(e)) : null;
|
|
89
|
+
}
|
|
90
|
+
connectedCallback() {
|
|
91
|
+
super.connectedCallback(), this.setAttribute("role", "listitem");
|
|
92
|
+
}
|
|
93
|
+
updated(e) {
|
|
94
|
+
if (![
|
|
95
|
+
"match",
|
|
96
|
+
"minlength",
|
|
97
|
+
"maxlength",
|
|
98
|
+
"required"
|
|
99
|
+
].some((t) => e.has(t))) return;
|
|
100
|
+
let t = this.parentElement;
|
|
101
|
+
t instanceof _ && t.requestUpdate();
|
|
102
|
+
}
|
|
103
|
+
render() {
|
|
104
|
+
return p(this);
|
|
105
|
+
}
|
|
106
|
+
}, h, g = (m.styles = d, m);
|
|
107
|
+
a([t({ type: String })], g.prototype, "match", void 0), a([t({ type: Number })], g.prototype, "minlength", void 0), a([t({ type: Number })], g.prototype, "maxlength", void 0), a([t({
|
|
108
|
+
type: Boolean,
|
|
109
|
+
reflect: !0
|
|
110
|
+
})], g.prototype, "required", void 0), a([t({
|
|
111
|
+
type: Boolean,
|
|
112
|
+
reflect: !0
|
|
113
|
+
})], g.prototype, "hint", void 0), a([t({
|
|
114
|
+
type: Boolean,
|
|
115
|
+
reflect: !0
|
|
116
|
+
})], g.prototype, "unmet", void 0), a([t({
|
|
117
|
+
type: Boolean,
|
|
118
|
+
reflect: !0
|
|
119
|
+
})], g.prototype, "visible", void 0), g = a([o("nldd-validation-item")], g);
|
|
120
|
+
var _ = (h = class extends r {
|
|
121
|
+
constructor(...e) {
|
|
122
|
+
super(...e), this.for = "", this.hint = !1, this.judging = !1, this.control = null, this.translations = {}, this._resolved = null, this._observer = null, this._onInput = () => this._evaluate(), this._fallbackItem = null;
|
|
123
|
+
}
|
|
124
|
+
_t(e, t) {
|
|
125
|
+
return c(this.translations, l, e, t);
|
|
126
|
+
}
|
|
127
|
+
connectedCallback() {
|
|
128
|
+
super.connectedCallback(), this._resolve();
|
|
129
|
+
}
|
|
130
|
+
disconnectedCallback() {
|
|
131
|
+
super.disconnectedCallback(), this._detach();
|
|
132
|
+
}
|
|
133
|
+
willUpdate(e) {
|
|
134
|
+
(e.has("for") || e.has("control")) && this._resolve(), this._latchJudging();
|
|
135
|
+
}
|
|
136
|
+
updated() {
|
|
137
|
+
this._evaluate();
|
|
138
|
+
}
|
|
139
|
+
_latchJudging() {
|
|
140
|
+
this._resolved?.hasAttribute("invalid") && (this.judging = !0);
|
|
141
|
+
}
|
|
142
|
+
render() {
|
|
143
|
+
return f(this);
|
|
144
|
+
}
|
|
145
|
+
get _items() {
|
|
146
|
+
return Array.from(this.children).filter((e) => e instanceof g && e !== this._fallbackItem);
|
|
147
|
+
}
|
|
148
|
+
_resolve() {
|
|
149
|
+
let e = this.getRootNode(), t = this.for ? e.getElementById?.(this.for) ?? null : this.control;
|
|
150
|
+
t === this._resolved && this._observer || (this._detach(), this._resolved = t, t && (t.addEventListener("input", this._onInput), this._observer = new MutationObserver(() => {
|
|
151
|
+
this._latchJudging(), this._evaluate();
|
|
152
|
+
}), this._observer.observe(t, {
|
|
153
|
+
attributes: !0,
|
|
154
|
+
attributeFilter: [
|
|
155
|
+
"invalid",
|
|
156
|
+
"unmet",
|
|
157
|
+
"required"
|
|
158
|
+
]
|
|
159
|
+
})));
|
|
160
|
+
}
|
|
161
|
+
_detach() {
|
|
162
|
+
this._resolved?.removeEventListener("input", this._onInput), this._observer?.disconnect(), this._observer = null;
|
|
163
|
+
}
|
|
164
|
+
_currentValue() {
|
|
165
|
+
if (this.value !== void 0) return this.value;
|
|
166
|
+
let e = this._resolved;
|
|
167
|
+
return e?.value === void 0 || e.value === null ? "" : String(e.value);
|
|
168
|
+
}
|
|
169
|
+
_evaluate() {
|
|
170
|
+
let e = this._resolved, t = e?.hasAttribute("invalid") ?? !1, n = (e?.getAttribute("unmet") ?? "").split(" ").filter(Boolean), r = this._currentValue(), i = this._items, a = i.some((e) => e.required) || !!e?.required || (e?.hasAttribute("required") ?? !1), o = r === "" && !a, c = !1, l = !1, u = !1, d = [];
|
|
171
|
+
for (let e of i) {
|
|
172
|
+
let i = e.test(r), a = i !== null && o ? !0 : i, s = a === null ? n.includes(e.id) : !a;
|
|
173
|
+
a !== null && n.includes(e.id) && (u = !0), e.unmet = t && s, e.visible = e.unmet || !this.judging && (e.hint || this.hint), e.visible && (c = !0), a === !1 && (l = !0, d.push(e.textContent?.trim() ?? ""));
|
|
174
|
+
}
|
|
175
|
+
let f = t && !i.some((e) => e.unmet) ? this._fallbackText() : "";
|
|
176
|
+
this._syncFallbackItem(f), this.classList.toggle("has-items", c || !!f), s(this, "rule-and-unmet", u), this._reportValidity(l, d);
|
|
177
|
+
}
|
|
178
|
+
_syncFallbackItem(e) {
|
|
179
|
+
e ? (this._fallbackItem || (this._fallbackItem = document.createElement("nldd-validation-item"), this._fallbackItem.toggleAttribute("data-fallback", !0)), this._fallbackItem.textContent !== e && (this._fallbackItem.textContent = e), this._fallbackItem.unmet = !0, this._fallbackItem.visible = !0, this._fallbackItem.parentElement !== this && this.append(this._fallbackItem)) : (this._fallbackItem?.remove(), this._fallbackItem = null);
|
|
180
|
+
}
|
|
181
|
+
_fallbackText() {
|
|
182
|
+
let e = this._resolved, t = e?.internals?.validity ?? e?.validity, n = (t) => e?.getAttribute(t) ?? "";
|
|
183
|
+
if (t?.typeMismatch) {
|
|
184
|
+
let t = e?.type ?? n("type");
|
|
185
|
+
if (t === "email") return this._t("components.validation-list.email-text");
|
|
186
|
+
if (t === "url") return this._t("components.validation-list.url-text");
|
|
187
|
+
}
|
|
188
|
+
return t?.valueMissing ? this._t("components.validation-list.value-missing-text") : t?.tooShort ? this._t("components.validation-list.too-short-text", { minlength: n("minlength") }) : t?.tooLong ? this._t("components.validation-list.too-long-text", { maxlength: n("maxlength") }) : t?.rangeUnderflow ? this._t("components.validation-list.range-underflow-text", { min: n("min") }) : t?.rangeOverflow ? this._t("components.validation-list.range-overflow-text", { max: n("max") }) : this._t("components.validation-list.invalid-text");
|
|
189
|
+
}
|
|
190
|
+
_reportValidity(e, t) {
|
|
191
|
+
let n = this._resolved;
|
|
192
|
+
n?.setCustomValidity && n.setCustomValidity(e ? t.filter(Boolean).join(". ") : "");
|
|
193
|
+
}
|
|
194
|
+
}, h.styles = u, h);
|
|
195
|
+
a([t({ type: String })], _.prototype, "for", void 0), a([t({
|
|
196
|
+
type: Boolean,
|
|
197
|
+
reflect: !0
|
|
198
|
+
})], _.prototype, "hint", void 0), a([t({
|
|
199
|
+
type: Boolean,
|
|
200
|
+
reflect: !0
|
|
201
|
+
})], _.prototype, "judging", void 0), a([t({ attribute: !1 })], _.prototype, "control", void 0), a([t({ attribute: !1 })], _.prototype, "value", void 0), a([t({ type: Object })], _.prototype, "translations", void 0), a([n()], _.prototype, "_resolved", void 0), _ = a([o("nldd-validation-list")], _);
|
|
202
|
+
export { g as NLDDValidationItem, _ as NLDDValidationList };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/forms/validation-list/validation-list.i18n.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"components.validation-list.email-text": "Een geldig e-mailadres zoals naam@voorbeeld.nl.",
|
|
4
|
+
"components.validation-list.url-text": "Een geldig webadres zoals https://www.voorbeeld.nl.",
|
|
5
|
+
"components.validation-list.value-missing-text": "Dit veld is verplicht.",
|
|
6
|
+
"components.validation-list.too-short-text": "Minstens {minlength} tekens.",
|
|
7
|
+
"components.validation-list.too-long-text": "Hoogstens {maxlength} tekens.",
|
|
8
|
+
"components.validation-list.range-underflow-text": "{min} of meer.",
|
|
9
|
+
"components.validation-list.range-overflow-text": "{max} of minder.",
|
|
10
|
+
"components.validation-list.invalid-text": "Dit klopt nog niet."
|
|
11
|
+
};
|
|
12
|
+
export { e as t };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { a as e, i as t, n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { t as r } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { n as i } from "./breakpoints-Cwor8TRP.js";
|
|
4
|
+
// src/utilities/visibility-mixin.styles.ts
|
|
5
|
+
var a = e(i.smMax), o = e(i.mdMin), s = e(i.mdMax), c = e(i.lgMin), l = /* @__PURE__ */ new Map();
|
|
6
|
+
function u(n) {
|
|
7
|
+
let r = n ?? "", i = l.get(r);
|
|
8
|
+
if (i) return i;
|
|
9
|
+
let u = e(n ? `${n} ` : ""), d = t`
|
|
10
|
+
/* # Hide below: the value names the breakpoint you hide BELOW */
|
|
11
|
+
|
|
12
|
+
:host([hide-below="md"]) {
|
|
13
|
+
@container ${u}(max-width: ${a}) { display: none !important; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([hide-below="lg"]) {
|
|
17
|
+
@container ${u}(max-width: ${s}) { display: none !important; }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/* # Hide above */
|
|
22
|
+
|
|
23
|
+
:host([hide-above="sm"]) {
|
|
24
|
+
@container ${u}(min-width: ${o}) { display: none !important; }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([hide-above="md"]) {
|
|
28
|
+
@container ${u}(min-width: ${c}) { display: none !important; }
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
return l.set(r, d), d;
|
|
32
|
+
}
|
|
33
|
+
// src/utilities/visibility-mixin.ts
|
|
34
|
+
var d = /* @__PURE__ */ new Set([
|
|
35
|
+
"sm",
|
|
36
|
+
"md",
|
|
37
|
+
"lg"
|
|
38
|
+
]);
|
|
39
|
+
function f(e) {
|
|
40
|
+
return e === void 0 || d.has(e) ? null : e;
|
|
41
|
+
}
|
|
42
|
+
function p(e, t) {
|
|
43
|
+
class i extends e {
|
|
44
|
+
static finalizeStyles(n) {
|
|
45
|
+
return [...e.finalizeStyles.call(this, n), u(t)];
|
|
46
|
+
}
|
|
47
|
+
updated(e) {
|
|
48
|
+
super.updated(e), (e.has("hideBelow") || e.has("hideAbove")) && this._updateVisibilityRules();
|
|
49
|
+
}
|
|
50
|
+
_updateVisibilityRules() {
|
|
51
|
+
let e = this.shadowRoot;
|
|
52
|
+
if (!e) return;
|
|
53
|
+
let n = t ? `${t} ` : "", r = [], i = f(this.hideBelow);
|
|
54
|
+
i && r.push(`:host { @container ${n}(max-width: ${i}) { display: none !important; } }`);
|
|
55
|
+
let a = f(this.hideAbove);
|
|
56
|
+
if (a && r.push(`:host { @container ${n}(min-width: ${a}) { display: none !important; } }`), r.length === 0) {
|
|
57
|
+
if (this._visibilitySheet) {
|
|
58
|
+
let t = this._visibilitySheet;
|
|
59
|
+
e.adoptedStyleSheets = Array.from(e.adoptedStyleSheets).filter((e) => e !== t), this._visibilitySheet = void 0;
|
|
60
|
+
}
|
|
61
|
+
} else this._visibilitySheet || (this._visibilitySheet = new CSSStyleSheet(), e.adoptedStyleSheets = [...e.adoptedStyleSheets, this._visibilitySheet]), this._visibilitySheet.replaceSync(r.join("\n"));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return r([n({
|
|
65
|
+
type: String,
|
|
66
|
+
reflect: !0,
|
|
67
|
+
attribute: "hide-below"
|
|
68
|
+
})], i.prototype, "hideBelow", void 0), r([n({
|
|
69
|
+
type: String,
|
|
70
|
+
reflect: !0,
|
|
71
|
+
attribute: "hide-above"
|
|
72
|
+
})], i.prototype, "hideAbove", void 0), i;
|
|
73
|
+
}
|
|
74
|
+
export { p as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { i as e } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as t, o as n, t as r } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as i } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
// src/components/content/visually-hidden/visually-hidden.styles.ts
|
|
5
|
+
var a = e`
|
|
6
|
+
:host {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/* # Host */
|
|
12
|
+
|
|
13
|
+
:host {
|
|
14
|
+
display: block;
|
|
15
|
+
position: absolute;
|
|
16
|
+
/* !important: a reset on * would beat it on the host. The 1px offset keeps
|
|
17
|
+
the box from adding a pixel to the scroll area of a container. */
|
|
18
|
+
margin: -1px !important;
|
|
19
|
+
width: 1px;
|
|
20
|
+
height: 1px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
clip-path: inset(50%);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([hidden]) {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
// src/components/content/visually-hidden/visually-hidden.template.ts
|
|
31
|
+
function o() {
|
|
32
|
+
return n`
|
|
33
|
+
<slot></slot>
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
// src/components/content/visually-hidden/visually-hidden.ts
|
|
37
|
+
var s = class extends t {
|
|
38
|
+
render() {
|
|
39
|
+
return o();
|
|
40
|
+
}
|
|
41
|
+
}, c = (s.styles = a, s);
|
|
42
|
+
c = r([i("nldd-visually-hidden")], c);
|
|
43
|
+
export { c as NLDDVisuallyHidden };
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n, o as r, t as i } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as o } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { r as s } from "./element-state-B-44fVqq.js";
|
|
6
|
+
import { t as c } from "./shadow-resets-6SToDsPu.js";
|
|
7
|
+
import { t as l } from "./translations-wxBSz213.js";
|
|
8
|
+
import { n as u } from "./input-modality-XE0B7yCn.js";
|
|
9
|
+
import { t as d } from "./return-focus-Xmagtk6r.js";
|
|
10
|
+
import { t as f } from "./dismiss-from-title-bar-C6mP7sWP.js";
|
|
11
|
+
import { n as p, t as m } from "./open-when-rendered-CW_2_WUZ.js";
|
|
12
|
+
import { t as h } from "./title-bar-label-controller-DSxdKZOg.js";
|
|
13
|
+
import { t as g } from "./window.i18n-CsEnUPAk.js";
|
|
14
|
+
// src/components/layout/window/window.styles.ts
|
|
15
|
+
var _ = e`
|
|
16
|
+
:host {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/* # Host */
|
|
22
|
+
|
|
23
|
+
:host {
|
|
24
|
+
--_window-background-color: var(--semantics-surfaces-base-background-color);
|
|
25
|
+
--_window-default-width: var(--primitives-area-640);
|
|
26
|
+
|
|
27
|
+
${c}
|
|
28
|
+
/* contents, not block: the window is a position:fixed <dialog>, so the host
|
|
29
|
+
would only add an empty box. As a block it is a flex item like any other
|
|
30
|
+
and grows with its siblings, taking space from them. Same reason as
|
|
31
|
+
nldd-sheet and nldd-modal-dialog. */
|
|
32
|
+
display: contents;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([hidden]) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/* # Block */
|
|
41
|
+
|
|
42
|
+
.window {
|
|
43
|
+
--context-parent-background-color: var(--_window-background-color);
|
|
44
|
+
display: flex;
|
|
45
|
+
position: fixed;
|
|
46
|
+
margin: auto;
|
|
47
|
+
outline: none;
|
|
48
|
+
border: none;
|
|
49
|
+
border-radius: var(--semantics-overlays-corner-radius);
|
|
50
|
+
box-shadow: var(--semantics-overlays-box-shadow);
|
|
51
|
+
background-color: var(--_window-background-color);
|
|
52
|
+
width: var(--_window-default-width);
|
|
53
|
+
max-width: calc(100vw - var(--semantics-overlays-inset) * 2);
|
|
54
|
+
max-height: calc(100dvh - var(--semantics-overlays-inset) * 2);
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
padding: 0;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.window:not([open]) {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.window:focus-visible:not(.is-pointer-focus) {
|
|
65
|
+
outline: var(--semantics-focus-ring-outline);
|
|
66
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
67
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), var(--semantics-overlays-box-shadow);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.window::backdrop {
|
|
71
|
+
background-color: var(--semantics-overlays-backdrop-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/* # Elements */
|
|
76
|
+
|
|
77
|
+
.window__body {
|
|
78
|
+
display: flex;
|
|
79
|
+
min-height: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
flex-grow: 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
::slotted(*) {
|
|
86
|
+
min-height: 0;
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
// src/components/layout/window/window.template.ts
|
|
90
|
+
function v(e) {
|
|
91
|
+
return r`
|
|
92
|
+
<dialog class="window"
|
|
93
|
+
aria-label=${e._resolvedAccessibleLabel}
|
|
94
|
+
aria-modal="true"
|
|
95
|
+
@pointerdown=${e._handleDialogPointerDown}
|
|
96
|
+
@click=${e._handleDialogClick}
|
|
97
|
+
@cancel=${e._handleCancel}
|
|
98
|
+
@close=${e._handleDialogClose}
|
|
99
|
+
>
|
|
100
|
+
<div class="window__body">
|
|
101
|
+
<slot></slot>
|
|
102
|
+
</div>
|
|
103
|
+
<!-- Inside the dialog, so it escapes the inertness a modal imposes on
|
|
104
|
+
everything outside it. Plumbing, not consumer API. -->
|
|
105
|
+
<slot name="notifications"></slot>
|
|
106
|
+
</dialog>
|
|
107
|
+
`;
|
|
108
|
+
}
|
|
109
|
+
// src/components/layout/window/window.ts
|
|
110
|
+
var y = class extends n {
|
|
111
|
+
constructor(...e) {
|
|
112
|
+
super(...e), this.scheme = "inherit", this.centered = !1, this.accessibleLabel = "", this.translations = {}, this.noLightDismiss = !1, this.open = !1, this._closing = !1, this._titleBar = new h(this), this._cancelPendingOpen = null, this._closeEmitted = !1, this._focusReturn = new d(), this._handleDialogClose = (e) => {
|
|
113
|
+
e.target === this._dialog && (this._closing = !1, this._emitClose());
|
|
114
|
+
}, this._pointerDownOnBackdrop = !1, this._handleDialogPointerDown = (e) => {
|
|
115
|
+
this._pointerDownOnBackdrop = this._isOnBackdrop(e);
|
|
116
|
+
}, this._handleDialogClick = (e) => {
|
|
117
|
+
this.noLightDismiss || this._isOnBackdrop(e) && this._pointerDownOnBackdrop && this.hide();
|
|
118
|
+
}, this._handleCancel = (e) => {
|
|
119
|
+
e.preventDefault(), this.hide();
|
|
120
|
+
}, this._handleDismiss = (e) => {
|
|
121
|
+
f(e) && (e.stopPropagation(), this.hide());
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
get _dialog() {
|
|
125
|
+
return this.shadowRoot?.querySelector("dialog") ?? null;
|
|
126
|
+
}
|
|
127
|
+
connectedCallback() {
|
|
128
|
+
super.connectedCallback(), this.style.containerType = "inline-size", this.style.containerName = "layout-container", this.addEventListener("dismiss", this._handleDismiss);
|
|
129
|
+
}
|
|
130
|
+
disconnectedCallback() {
|
|
131
|
+
super.disconnectedCallback(), this.removeEventListener("dismiss", this._handleDismiss);
|
|
132
|
+
}
|
|
133
|
+
firstUpdated() {
|
|
134
|
+
this._applyScheme();
|
|
135
|
+
}
|
|
136
|
+
updated(e) {
|
|
137
|
+
if (e.has("open")) {
|
|
138
|
+
let e = this._dialog;
|
|
139
|
+
this.open && !e?.open ? this.show() : !this.open && e?.open && this.hide();
|
|
140
|
+
}
|
|
141
|
+
this._applyPositionStyles(), e.has("scheme") && this._applyScheme();
|
|
142
|
+
}
|
|
143
|
+
_applyScheme() {
|
|
144
|
+
let e = this._dialog;
|
|
145
|
+
this.scheme === "light" || this.scheme === "dark" ? (this.style.colorScheme = this.scheme, e && (e.style.colorScheme = this.scheme)) : (this.style.removeProperty("color-scheme"), e && e.style.removeProperty("color-scheme"));
|
|
146
|
+
}
|
|
147
|
+
_t(e) {
|
|
148
|
+
return l(this.translations, g, e);
|
|
149
|
+
}
|
|
150
|
+
get _resolvedAccessibleLabel() {
|
|
151
|
+
return this.accessibleLabel || this._titleBar.text || this._t("components.window.accessible-label");
|
|
152
|
+
}
|
|
153
|
+
show() {
|
|
154
|
+
let e = this._dialog;
|
|
155
|
+
e ? (this._cancelPendingOpen?.(), this._cancelPendingOpen = null, this._closeEmitted = !1, s(this, "unnamed", !this.accessibleLabel && !this._titleBar.text), this._focusReturn.remember(), e.showModal(), this.open = !0, this._applyPositionStyles(), this._manageFocus(), this.dispatchEvent(new CustomEvent("open", {
|
|
156
|
+
bubbles: !0,
|
|
157
|
+
composed: !0
|
|
158
|
+
}))) : (this._cancelPendingOpen?.(), this._cancelPendingOpen = m(this, () => this._dialog, () => this.show()));
|
|
159
|
+
}
|
|
160
|
+
hide() {
|
|
161
|
+
this._cancelPendingOpen?.(), this._cancelPendingOpen = null;
|
|
162
|
+
let e = this._dialog;
|
|
163
|
+
e && e.open && !this._closing && (this.open = !1, this._closing = !0, e.close(), this._closing = !1, this._emitClose());
|
|
164
|
+
}
|
|
165
|
+
_emitClose() {
|
|
166
|
+
this.open = !1, !this._closeEmitted && (this._closeEmitted = !0, this.dispatchEvent(new CustomEvent("close", {
|
|
167
|
+
bubbles: !1,
|
|
168
|
+
composed: !0
|
|
169
|
+
})), this._focusReturn.restore(this));
|
|
170
|
+
}
|
|
171
|
+
_manageFocus() {
|
|
172
|
+
if (p(this)) return;
|
|
173
|
+
let e = this._dialog;
|
|
174
|
+
e && (e.classList.toggle("is-pointer-focus", u()), e.focus());
|
|
175
|
+
}
|
|
176
|
+
_applyPositionStyles() {
|
|
177
|
+
let e = this._dialog;
|
|
178
|
+
if (!e) return;
|
|
179
|
+
let t = this.top !== void 0 || this.left !== void 0 || this.right !== void 0 || this.bottom !== void 0 || this.centered, n = this.centered && this.top === void 0 && this.bottom === void 0, r = this.centered && this.left === void 0 && this.right === void 0;
|
|
180
|
+
e.style.top = this.top ?? (n ? "50%" : this.bottom === void 0 ? "" : "auto"), e.style.bottom = this.bottom ?? (this.top === void 0 ? "" : "auto"), e.style.left = this.left ?? (r ? "50%" : this.right === void 0 ? "" : "auto"), e.style.right = this.right ?? (this.left === void 0 ? "" : "auto"), e.style.width = this.width ?? "", e.style.height = this.height ?? "", e.style.transform = r || n ? `translate(${r ? "-50%" : "0"}, ${n ? "-50%" : "0"})` : "", e.style.margin = t ? "0" : "";
|
|
181
|
+
}
|
|
182
|
+
_isOnBackdrop(e) {
|
|
183
|
+
let t = this._dialog;
|
|
184
|
+
if (!t || e.composedPath()[0] !== t) return !1;
|
|
185
|
+
let n = t.getBoundingClientRect();
|
|
186
|
+
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
|
|
187
|
+
}
|
|
188
|
+
render() {
|
|
189
|
+
return v(this);
|
|
190
|
+
}
|
|
191
|
+
}, b = (y.styles = _, y);
|
|
192
|
+
i([t({
|
|
193
|
+
reflect: !0,
|
|
194
|
+
converter: o("inherit")
|
|
195
|
+
})], b.prototype, "scheme", void 0), i([t({
|
|
196
|
+
type: String,
|
|
197
|
+
reflect: !0
|
|
198
|
+
})], b.prototype, "width", void 0), i([t({
|
|
199
|
+
type: String,
|
|
200
|
+
reflect: !0
|
|
201
|
+
})], b.prototype, "height", void 0), i([t({
|
|
202
|
+
type: String,
|
|
203
|
+
reflect: !0
|
|
204
|
+
})], b.prototype, "top", void 0), i([t({
|
|
205
|
+
type: String,
|
|
206
|
+
reflect: !0
|
|
207
|
+
})], b.prototype, "right", void 0), i([t({
|
|
208
|
+
type: String,
|
|
209
|
+
reflect: !0
|
|
210
|
+
})], b.prototype, "bottom", void 0), i([t({
|
|
211
|
+
type: String,
|
|
212
|
+
reflect: !0
|
|
213
|
+
})], b.prototype, "left", void 0), i([t({
|
|
214
|
+
type: Boolean,
|
|
215
|
+
reflect: !0
|
|
216
|
+
})], b.prototype, "centered", void 0), i([t({
|
|
217
|
+
type: String,
|
|
218
|
+
attribute: "accessible-label"
|
|
219
|
+
})], b.prototype, "accessibleLabel", void 0), i([t({ type: Object })], b.prototype, "translations", void 0), i([t({
|
|
220
|
+
type: Boolean,
|
|
221
|
+
reflect: !0,
|
|
222
|
+
attribute: "no-light-dismiss"
|
|
223
|
+
})], b.prototype, "noLightDismiss", void 0), i([t({
|
|
224
|
+
type: Boolean,
|
|
225
|
+
reflect: !0
|
|
226
|
+
})], b.prototype, "open", void 0), b = i([a("nldd-window")], b);
|
|
227
|
+
export { b as NLDDWindow };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { n as e } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { t } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as n } from "./translations-wxBSz213.js";
|
|
4
|
+
// src/utilities/with-translations.ts
|
|
5
|
+
function r(r, i) {
|
|
6
|
+
class a extends r {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.translations = {};
|
|
9
|
+
}
|
|
10
|
+
_t(e, t) {
|
|
11
|
+
return n(this.translations, i, e, t);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return t([e({ type: Object })], a.prototype, "translations", void 0), a;
|
|
15
|
+
}
|
|
16
|
+
export { r as t };
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
35
35
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
36
36
|
*
|
|
37
|
-
* @slot text - Slot for custom button content (e.g. text with inline markup).
|
|
38
|
-
* @slot start-icon - Slot for a custom start icon (e.g. custom SVG).
|
|
39
|
-
* @slot end-icon - Slot for a custom end icon (e.g. custom SVG).
|
|
37
|
+
* @slot text - Slot for custom button content (e.g. text with inline markup). Wins over `text`. Provide accessible-label when the slotted content isn't plain text.
|
|
38
|
+
* @slot start-icon - Slot for a custom start icon (e.g. custom SVG). Wins over `start-icon`.
|
|
39
|
+
* @slot end-icon - Slot for a custom end icon (e.g. custom SVG). Wins over `end-icon`.
|
|
40
40
|
* @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; the manual `anchor`/`popovertarget` wiring keeps working when you don't slot an overlay.
|
|
41
41
|
*
|
|
42
42
|
* @fires click - When button is clicked (not fired when disabled)
|
|
@@ -124,9 +124,9 @@ export declare class NLDDButton extends NLDDButton_base {
|
|
|
124
124
|
singleLine: boolean;
|
|
125
125
|
/** Removes the per-appearance highlight border (e.g. when nldd-button-bar draws a single group border instead). */
|
|
126
126
|
noHighlightBorder: boolean;
|
|
127
|
-
/** Icon name for the start icon (before text).
|
|
127
|
+
/** Icon name for the start icon (before text). An icon in the start-icon slot wins. */
|
|
128
128
|
startIcon: string;
|
|
129
|
-
/** Icon name for the end icon (after text).
|
|
129
|
+
/** Icon name for the end icon (after text). An icon in the end-icon slot wins. */
|
|
130
130
|
endIcon: string;
|
|
131
131
|
/** Accessible label forwarded to the inner <button> or <a>. Use when visible text alone lacks context. */
|
|
132
132
|
accessibleLabel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAQ9E,KAAK,UAAU,GACZ,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,CAAC;AACpB,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChD,KAAK,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;AAEjE,qBACa,UAAW,SAAQ,eAAiE;IAChG,OAAgB,MAAM,0BAAgB;IAKtC,MAAM,CAAC,cAAc,UAAQ;IAC7B,OAAO,CAAC,UAAU,CAAqB;IAGvC,UAAU,EAAE,UAAU,CAAoB;IAG1C,IAAI,EAAE,IAAI,CAAQ;IAElB,mGAAmG;IAEnG,mBAAmB,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,EAAE,CAAM;IAE3D,mEAAmE;IAEnE,KAAK,SAAM;IAEX;;6DAEyD;IAEzD,QAAQ,SAAM;IAEd;;qFAEiF;IAEjF,KAAK,UAAS;IAGd,UAAU,UAAS;IAGnB,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,SAAS,CAAC,EAAE,SAAS,CAAC;IAGtB,IAAI,EAAE,UAAU,CAAY;IAG5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAa;IAE9C;;;;;;;;OAQG;IAEH,oBAAoB,EAAE,OAAO,GAAG,IAAI,CAAQ;IAE5C;;;;;;OAMG;IAEH,mBAAmB,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAY;IAE3D;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB,4GAA4G;IAE5G,WAAW,SAAM;IAGjB,QAAQ,UAAS;IAEjB,mBAAmB;IAEnB,IAAI,SAAM;IAEV,mMAAmM;IAEnM,cAAc,SAAM;IAGpB,UAAU,UAAS;IAEnB,mHAAmH;IAEnH,iBAAiB,UAAS;IAE1B,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAQ9E,KAAK,UAAU,GACZ,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,CAAC;AACpB,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChD,KAAK,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;AAEjE,qBACa,UAAW,SAAQ,eAAiE;IAChG,OAAgB,MAAM,0BAAgB;IAKtC,MAAM,CAAC,cAAc,UAAQ;IAC7B,OAAO,CAAC,UAAU,CAAqB;IAGvC,UAAU,EAAE,UAAU,CAAoB;IAG1C,IAAI,EAAE,IAAI,CAAQ;IAElB,mGAAmG;IAEnG,mBAAmB,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,EAAE,CAAM;IAE3D,mEAAmE;IAEnE,KAAK,SAAM;IAEX;;6DAEyD;IAEzD,QAAQ,SAAM;IAEd;;qFAEiF;IAEjF,KAAK,UAAS;IAGd,UAAU,UAAS;IAGnB,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,SAAS,CAAC,EAAE,SAAS,CAAC;IAGtB,IAAI,EAAE,UAAU,CAAY;IAG5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAa;IAE9C;;;;;;;;OAQG;IAEH,oBAAoB,EAAE,OAAO,GAAG,IAAI,CAAQ;IAE5C;;;;;;OAMG;IAEH,mBAAmB,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAY;IAE3D;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB,4GAA4G;IAE5G,WAAW,SAAM;IAGjB,QAAQ,UAAS;IAEjB,mBAAmB;IAEnB,IAAI,SAAM;IAEV,mMAAmM;IAEnM,cAAc,SAAM;IAGpB,UAAU,UAAS;IAEnB,mHAAmH;IAEnH,iBAAiB,UAAS;IAE1B,uFAAuF;IAEvF,SAAS,SAAM;IAEf,kFAAkF;IAElF,OAAO,SAAM;IAEb,0GAA0G;IAE1G,eAAe,SAAM;IAGrB,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,eAAe,SAAM;IAGrB,aAAa,SAAM;IAEnB,4DAA4D;IAE5D,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAErC,+DAA+D;IAE/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;8DAC0D;IAE1D,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAa;IAEzC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC;;6BAEyB;IACzB,MAAM,wBAAmC;IAEzC,6GAA6G;IAC7G,OAAO,CAAC,qBAAqB,CAA4C;IAEhE,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA2B/D,OAAO,CAAC,YAAY;IAsCpB,OAAO,CAAC,UAAU;IAIlB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAK5C,6DAA6D;IACpD,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
35
35
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
36
36
|
*
|
|
37
|
-
* @slot text - Slot for custom button content (e.g. text with inline markup).
|
|
38
|
-
* @slot start-icon - Slot for a custom start icon (e.g. custom SVG).
|
|
39
|
-
* @slot end-icon - Slot for a custom end icon (e.g. custom SVG).
|
|
37
|
+
* @slot text - Slot for custom button content (e.g. text with inline markup). Wins over `text`. Provide accessible-label when the slotted content isn't plain text.
|
|
38
|
+
* @slot start-icon - Slot for a custom start icon (e.g. custom SVG). Wins over `start-icon`.
|
|
39
|
+
* @slot end-icon - Slot for a custom end icon (e.g. custom SVG). Wins over `end-icon`.
|
|
40
40
|
* @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; the manual `anchor`/`popovertarget` wiring keeps working when you don't slot an overlay.
|
|
41
41
|
*
|
|
42
42
|
* @fires click - When button is clicked (not fired when disabled)
|
|
@@ -124,9 +124,9 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
124
124
|
this.singleLine = false;
|
|
125
125
|
/** Removes the per-appearance highlight border (e.g. when nldd-button-bar draws a single group border instead). */
|
|
126
126
|
this.noHighlightBorder = false;
|
|
127
|
-
/** Icon name for the start icon (before text).
|
|
127
|
+
/** Icon name for the start icon (before text). An icon in the start-icon slot wins. */
|
|
128
128
|
this.startIcon = '';
|
|
129
|
-
/** Icon name for the end icon (after text).
|
|
129
|
+
/** Icon name for the end icon (after text). An icon in the end-icon slot wins. */
|
|
130
130
|
this.endIcon = '';
|
|
131
131
|
/** Accessible label forwarded to the inner <button> or <a>. Use when visible text alone lacks context. */
|
|
132
132
|
this.accessibleLabel = '';
|
|
@@ -279,7 +279,7 @@ __decorate([
|
|
|
279
279
|
property({ type: String, reflect: true, attribute: 'popup-type' })
|
|
280
280
|
], NLDDButton.prototype, "popupType", void 0);
|
|
281
281
|
__decorate([
|
|
282
|
-
property({
|
|
282
|
+
property({ reflect: true, converter: reflectNonDefault('button') })
|
|
283
283
|
], NLDDButton.prototype, "type", void 0);
|
|
284
284
|
__decorate([
|
|
285
285
|
property({ type: String })
|