@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,396 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { a as e, i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as l } from "./query-ChDzi9FQ.js";
|
|
6
|
+
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import "./button-bar-Bxgdbyh3.js";
|
|
8
|
+
import "./button-DO90Lo6q.js";
|
|
9
|
+
import { t as d } from "./translations-wxBSz213.js";
|
|
10
|
+
import "./icon-button-rKiIHs7A.js";
|
|
11
|
+
import { n as f } from "./breakpoints-Cwor8TRP.js";
|
|
12
|
+
import { t as p } from "./spacing-scale-SufIjHeN.js";
|
|
13
|
+
import { t as m } from "./if-defined-CaKKERku.js";
|
|
14
|
+
import { t as h } from "./collection.i18n-DqWPGnZO.js";
|
|
15
|
+
import { t as g } from "./list-items-Du0RCWsY.js";
|
|
16
|
+
// src/components/layout/collection/collection.styles.ts
|
|
17
|
+
var _ = e(f.smMax), v = e(f.mdMin), y = e(f.mdMax), b = e(f.lgMin), x = t`
|
|
18
|
+
:host {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/* # Host */
|
|
24
|
+
|
|
25
|
+
:host {
|
|
26
|
+
--_collection-item-min-width: var(--primitives-area-280);
|
|
27
|
+
--_collection-item-max-width: var(--primitives-area-480);
|
|
28
|
+
--_collection-focus-ring-z-index: 1;
|
|
29
|
+
|
|
30
|
+
/* Two sets, because a collection inside a layout-container follows that
|
|
31
|
+
container and anywhere else the viewport. The bare --_collection-gap is what
|
|
32
|
+
stands when neither set matches. */
|
|
33
|
+
--_collection-sm-gap: var(--primitives-space-16);
|
|
34
|
+
--_collection-md-gap: var(--primitives-space-24);
|
|
35
|
+
--_collection-lg-gap: var(--primitives-space-24);
|
|
36
|
+
--_collection-gap: var(--_collection-sm-gap);
|
|
37
|
+
|
|
38
|
+
@media (max-width: ${_}) { --_collection-gap: var(--_collection-sm-gap); }
|
|
39
|
+
@media (min-width: ${v}) and (max-width: ${y}) { --_collection-gap: var(--_collection-md-gap); }
|
|
40
|
+
@media (min-width: ${b}) { --_collection-gap: var(--_collection-lg-gap); }
|
|
41
|
+
|
|
42
|
+
@container layout-container (max-width: ${_}) { --_collection-gap: var(--_collection-sm-gap); }
|
|
43
|
+
@container layout-container (min-width: ${v}) and (max-width: ${y}) { --_collection-gap: var(--_collection-md-gap); }
|
|
44
|
+
@container layout-container (min-width: ${b}) { --_collection-gap: var(--_collection-lg-gap); }
|
|
45
|
+
|
|
46
|
+
display: flex;
|
|
47
|
+
width: 100%;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
gap: var(--_collection-gap);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([hidden]) {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/* # Items */
|
|
59
|
+
|
|
60
|
+
.collection__items {
|
|
61
|
+
display: flex;
|
|
62
|
+
width: 100%;
|
|
63
|
+
gap: var(--_collection-gap);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* ## Grid */
|
|
67
|
+
|
|
68
|
+
:host([layout="grid"]) .collection__items,
|
|
69
|
+
:host(:not([layout])) .collection__items {
|
|
70
|
+
/* min(item-min-width, 100%) clamps the track min to the container width so
|
|
71
|
+
a single column never forces horizontal overflow on narrow screens. */
|
|
72
|
+
display: grid;
|
|
73
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--_collection-item-min-width), 100%), 1fr));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* A grid item's automatic minimum is min-content, so one long unbreakable
|
|
77
|
+
string inside a card would stretch its whole track past 1fr. Every
|
|
78
|
+
consumer had to repeat min-width: 0 themselves; the track sizes the item,
|
|
79
|
+
not the content. */
|
|
80
|
+
:host([layout="grid"]) .collection__items ::slotted(*),
|
|
81
|
+
:host(:not([layout])) .collection__items ::slotted(*) {
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* ## Stack */
|
|
86
|
+
|
|
87
|
+
:host([layout="stack"]) .collection__items {
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/* ## Lanes */
|
|
93
|
+
|
|
94
|
+
/* Falls back to the grid above, not to the multicol nldd-container uses:
|
|
95
|
+
this component pages, and multicol redistributes the whole set every time
|
|
96
|
+
load-more adds to it. */
|
|
97
|
+
:host([layout="lanes"]) .collection__items {
|
|
98
|
+
display: grid;
|
|
99
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--_collection-item-min-width), 100%), 1fr));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([layout="lanes"]) .collection__items ::slotted(*) {
|
|
103
|
+
min-width: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@supports (display: grid-lanes) {
|
|
107
|
+
:host([layout="lanes"]) .collection__items {
|
|
108
|
+
display: grid-lanes;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* ## Horizontal scroll */
|
|
113
|
+
|
|
114
|
+
:host([layout="horizontal-scroll"]) .collection__items {
|
|
115
|
+
margin-inline: calc(var(--primitives-space-16) * -1);
|
|
116
|
+
margin-block: calc(var(--primitives-space-16) * -1);
|
|
117
|
+
overflow-x: auto;
|
|
118
|
+
padding-inline: var(--primitives-space-16);
|
|
119
|
+
padding-block: var(--primitives-space-16);
|
|
120
|
+
flex-direction: row;
|
|
121
|
+
flex-wrap: nowrap;
|
|
122
|
+
scroll-snap-type: x mandatory;
|
|
123
|
+
scroll-behavior: smooth;
|
|
124
|
+
-webkit-overflow-scrolling: touch;
|
|
125
|
+
scrollbar-width: none;
|
|
126
|
+
scroll-padding-inline-start: var(--primitives-space-16);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([layout="horizontal-scroll"][scrollable]) .collection__items {
|
|
130
|
+
mask-image: linear-gradient(
|
|
131
|
+
to right,
|
|
132
|
+
transparent 0,
|
|
133
|
+
black var(--primitives-space-16),
|
|
134
|
+
black calc(100% - var(--primitives-space-16)),
|
|
135
|
+
transparent 100%
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([layout="horizontal-scroll"]) .collection__items::-webkit-scrollbar {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([layout="horizontal-scroll"]) .collection__items ::slotted(*) {
|
|
144
|
+
max-width: min(max(var(--_collection-item-min-width), var(--_collection-item-max-width)), 100%);
|
|
145
|
+
flex-grow: 1;
|
|
146
|
+
flex-shrink: 0;
|
|
147
|
+
flex-basis: var(--_collection-item-min-width);
|
|
148
|
+
scroll-snap-align: start;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* The horizontal-scroll items has a mask-image that fades the left
|
|
152
|
+
* and right edges, which would clip an outline drawn directly on it.
|
|
153
|
+
* The .collection__scroll-area wrapper has no mask and is the layout
|
|
154
|
+
* box that matches the visible content area; its ::after sits above
|
|
155
|
+
* slotted cards via z-index, so card box-shadows can't overlap the
|
|
156
|
+
* ring. :has() works here because both elements are in the same
|
|
157
|
+
* shadow tree (unlike :host(:has()), which doesn't pierce). */
|
|
158
|
+
.collection__scroll-area {
|
|
159
|
+
position: relative;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.collection__items:focus-visible {
|
|
163
|
+
outline: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.collection__scroll-area:has(.collection__items:focus-visible)::after {
|
|
167
|
+
content: '';
|
|
168
|
+
position: absolute;
|
|
169
|
+
inset: 0;
|
|
170
|
+
z-index: var(--_collection-focus-ring-z-index);
|
|
171
|
+
outline: var(--semantics-focus-ring-outline);
|
|
172
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
173
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
174
|
+
pointer-events: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/* # Footer */
|
|
179
|
+
|
|
180
|
+
.collection__footer {
|
|
181
|
+
display: flex;
|
|
182
|
+
width: 100%;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.collection__footer[hidden] {
|
|
186
|
+
display: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* ## Scroll navigation — horizontal scroll */
|
|
190
|
+
|
|
191
|
+
:host([layout="horizontal-scroll"]) .collection__footer {
|
|
192
|
+
justify-content: flex-end;
|
|
193
|
+
gap: var(--primitives-space-16);
|
|
194
|
+
}
|
|
195
|
+
`;
|
|
196
|
+
// src/components/layout/collection/collection.template.ts
|
|
197
|
+
function S(e) {
|
|
198
|
+
let t = e.layout === "horizontal-scroll", n = !t && e.showLoadMore && e._hasMore, r = t && e._isScrollable, i = r || n || e._hasFooterSlot;
|
|
199
|
+
return a`
|
|
200
|
+
<div class="collection__scroll-area">
|
|
201
|
+
<div class="collection__items"
|
|
202
|
+
role="list"
|
|
203
|
+
tabindex=${m(r ? "0" : void 0)}
|
|
204
|
+
aria-label=${m(r ? e._t("components.collection.region-label") : void 0)}
|
|
205
|
+
>
|
|
206
|
+
<slot @slotchange=${(t) => e._onSlotChange(t)}></slot>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
<footer class="collection__footer"
|
|
210
|
+
?hidden=${!i}
|
|
211
|
+
>
|
|
212
|
+
<slot
|
|
213
|
+
name="footer"
|
|
214
|
+
@slotchange=${e._onFooterSlotChange}
|
|
215
|
+
>
|
|
216
|
+
${r ? a`
|
|
217
|
+
<nldd-button-bar>
|
|
218
|
+
<nldd-icon-button
|
|
219
|
+
icon="chevron-left"
|
|
220
|
+
text=${e._t("components.collection.previous-action")}
|
|
221
|
+
tooltip-timing="never"
|
|
222
|
+
.disabled=${e._atStart}
|
|
223
|
+
@click=${() => e._scrollBy(-1)}
|
|
224
|
+
></nldd-icon-button>
|
|
225
|
+
<nldd-button-bar-divider></nldd-button-bar-divider>
|
|
226
|
+
<nldd-icon-button
|
|
227
|
+
icon="chevron-right"
|
|
228
|
+
text=${e._t("components.collection.next-action")}
|
|
229
|
+
tooltip-timing="never"
|
|
230
|
+
.disabled=${e._atEnd}
|
|
231
|
+
@click=${() => e._scrollBy(1)}
|
|
232
|
+
></nldd-icon-button>
|
|
233
|
+
</nldd-button-bar>
|
|
234
|
+
` : o}
|
|
235
|
+
${n ? a`
|
|
236
|
+
<nldd-button
|
|
237
|
+
appearance="neutral-tinted"
|
|
238
|
+
text=${e._t("components.collection.load-more-action")}
|
|
239
|
+
width="full"
|
|
240
|
+
@click=${() => e._loadMore()}
|
|
241
|
+
></nldd-button>
|
|
242
|
+
` : o}
|
|
243
|
+
</slot>
|
|
244
|
+
</footer>
|
|
245
|
+
`;
|
|
246
|
+
}
|
|
247
|
+
// src/components/layout/collection/collection.ts
|
|
248
|
+
var C = class extends i {
|
|
249
|
+
constructor(...e) {
|
|
250
|
+
super(...e), this.layout = "grid", this.maxItems = 24, this.translations = {}, this.showLoadMore = !1, this.lazyLoad = !1, this._visibleCount = 0, this._totalCount = 0, this._atStart = !0, this._atEnd = !1, this._isScrollable = !1, this._hasFooterSlot = !1, this._onFooterSlotChange = (e) => {
|
|
251
|
+
let t = e.target;
|
|
252
|
+
queueMicrotask(() => {
|
|
253
|
+
this._hasFooterSlot = t.assignedElements().length > 0;
|
|
254
|
+
});
|
|
255
|
+
}, this._scrollListener = () => {
|
|
256
|
+
let e = this._itemsEl;
|
|
257
|
+
if (!e) return;
|
|
258
|
+
let t = this._atStart, n = this._atEnd;
|
|
259
|
+
this._atStart = e.scrollLeft < 1, this._atEnd = e.scrollLeft + e.clientWidth >= e.scrollWidth - 1, this._isScrollable = e.scrollWidth > e.clientWidth, !t && this._atStart && this._handOffControlFocus("previous"), !n && this._atEnd && this._handOffControlFocus("next");
|
|
260
|
+
}, this._scrollListenerAttached = !1, this._onFocusIn = (e) => {
|
|
261
|
+
let t = this._itemsEl;
|
|
262
|
+
if (this.layout !== "horizontal-scroll" || !t) return;
|
|
263
|
+
let n = e.target, r = this._itemStarts(), i = r.find(({ item: e }) => e === n || e.contains(n));
|
|
264
|
+
if (!i) return;
|
|
265
|
+
let a = parseFloat(getComputedStyle(t).scrollPaddingInlineStart) || 0, o = t.clientWidth - a * 2, s = t.scrollLeft, c;
|
|
266
|
+
i.start < s - 1 ? c = i.start : i.end > s + a + o + 1 && (c = r.map(({ start: e }) => e).find((e) => e > s && i.end <= e + a + o + 1) ?? i.start), c !== void 0 && t.scrollTo({
|
|
267
|
+
left: c,
|
|
268
|
+
behavior: "smooth"
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
_t(e) {
|
|
273
|
+
return d(this.translations, h, e);
|
|
274
|
+
}
|
|
275
|
+
_handOffControlFocus(e) {
|
|
276
|
+
let t = this.shadowRoot?.querySelectorAll("nldd-icon-button");
|
|
277
|
+
if (!t || t.length < 2) return;
|
|
278
|
+
let [n, r] = t, i = e === "previous" ? n : r;
|
|
279
|
+
if (this.shadowRoot?.activeElement !== i) return;
|
|
280
|
+
let a = e === "previous" ? r : n;
|
|
281
|
+
this.updateComplete.then(() => {
|
|
282
|
+
a.disabled || a.focus();
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
connectedCallback() {
|
|
286
|
+
super.connectedCallback(), this._visibleCount = this.maxItems, this.addEventListener("focusin", this._onFocusIn);
|
|
287
|
+
}
|
|
288
|
+
disconnectedCallback() {
|
|
289
|
+
super.disconnectedCallback(), this.removeEventListener("focusin", this._onFocusIn), this._intersectionObserver?.disconnect(), this._teardownScrollListeners();
|
|
290
|
+
}
|
|
291
|
+
updated(e) {
|
|
292
|
+
if (e.has("layout") && this._setupScrollListeners(), e.has("itemMinWidth") && (this.itemMinWidth ? this.style.setProperty("--_collection-item-min-width", this.itemMinWidth) : this.style.removeProperty("--_collection-item-min-width")), e.has("itemMaxWidth") && (this.itemMaxWidth ? this.style.setProperty("--_collection-item-max-width", this.itemMaxWidth) : this.style.removeProperty("--_collection-item-max-width")), e.has("gap") || e.has("smGap") || e.has("mdGap") || e.has("lgGap")) {
|
|
293
|
+
let e = p(this.gap), t = (t, n) => {
|
|
294
|
+
let r = n === void 0 ? e : p(n) ?? e;
|
|
295
|
+
r === null ? this.style.removeProperty(t) : this.style.setProperty(t, r);
|
|
296
|
+
};
|
|
297
|
+
t("--_collection-sm-gap", this.smGap), t("--_collection-md-gap", this.mdGap), t("--_collection-lg-gap", this.lgGap);
|
|
298
|
+
}
|
|
299
|
+
this.lazyLoad && this._loadMoreBtn && !this._intersectionObserver ? (this._intersectionObserver = new IntersectionObserver(([e]) => {
|
|
300
|
+
e.isIntersecting && this._loadMore();
|
|
301
|
+
}, { threshold: .1 }), this._intersectionObserver.observe(this._loadMoreBtn)) : this._loadMoreBtn || (this._intersectionObserver?.disconnect(), this._intersectionObserver = void 0), this.toggleAttribute("scrollable", this.layout === "horizontal-scroll" && this._isScrollable);
|
|
302
|
+
}
|
|
303
|
+
_setupScrollListeners() {
|
|
304
|
+
this._teardownScrollListeners(), this.layout === "horizontal-scroll" && this._itemsEl && (this._itemsEl.addEventListener("scroll", this._scrollListener, { passive: !0 }), this._resizeObserver = new ResizeObserver(() => this._scrollListener()), this._resizeObserver.observe(this._itemsEl), this._scrollListenerAttached = !0, this._scrollListener());
|
|
305
|
+
}
|
|
306
|
+
_teardownScrollListeners() {
|
|
307
|
+
this._itemsEl?.removeEventListener("scroll", this._scrollListener), this._resizeObserver?.disconnect(), this._resizeObserver = void 0, this._scrollListenerAttached = !1, this._isScrollable = !1;
|
|
308
|
+
}
|
|
309
|
+
_onSlotChange(e) {
|
|
310
|
+
let t = e.target.assignedElements();
|
|
311
|
+
g(t), queueMicrotask(() => {
|
|
312
|
+
this._totalCount = t.length;
|
|
313
|
+
}), this.layout === "horizontal-scroll" ? this._scrollListener() : this._applyVisibility(t);
|
|
314
|
+
}
|
|
315
|
+
_applyVisibility(e) {
|
|
316
|
+
let t = this._itemsEl?.querySelector("slot");
|
|
317
|
+
(e ?? t?.assignedElements() ?? []).forEach((e, t) => {
|
|
318
|
+
e.hidden = t >= this._visibleCount;
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
_loadMore() {
|
|
322
|
+
this._visibleCount = Math.min(this._visibleCount + this.maxItems, this._totalCount), this._applyVisibility(), this.dispatchEvent(new CustomEvent("load-more", {
|
|
323
|
+
bubbles: !0,
|
|
324
|
+
composed: !0
|
|
325
|
+
}));
|
|
326
|
+
}
|
|
327
|
+
get _hasMore() {
|
|
328
|
+
return this._visibleCount < this._totalCount;
|
|
329
|
+
}
|
|
330
|
+
_scrollBy(e) {
|
|
331
|
+
let t = this._itemsEl;
|
|
332
|
+
if (!t) return;
|
|
333
|
+
let n = this._itemStarts().map(({ start: e }) => e);
|
|
334
|
+
if (n.length === 0) return;
|
|
335
|
+
let r = t.scrollLeft, i = e === 1 ? n.find((e) => e > r + 2) : n.filter((e) => e < r - 2).pop();
|
|
336
|
+
i !== void 0 && t.scrollTo({
|
|
337
|
+
left: i,
|
|
338
|
+
behavior: "smooth"
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
_itemStarts() {
|
|
342
|
+
let e = this._itemsEl, t = (e?.querySelector("slot"))?.assignedElements() ?? [];
|
|
343
|
+
if (!e || t.length === 0) return [];
|
|
344
|
+
let n = e.getBoundingClientRect().left, r = parseFloat(getComputedStyle(e).scrollPaddingInlineStart) || 0;
|
|
345
|
+
return t.map((t) => {
|
|
346
|
+
let i = t.getBoundingClientRect();
|
|
347
|
+
return {
|
|
348
|
+
item: t,
|
|
349
|
+
start: Math.round(i.left - n + e.scrollLeft - r),
|
|
350
|
+
end: Math.round(i.right - n + e.scrollLeft)
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
render() {
|
|
355
|
+
return S(this);
|
|
356
|
+
}
|
|
357
|
+
}, w = (C.styles = x, C);
|
|
358
|
+
s([n({
|
|
359
|
+
reflect: !0,
|
|
360
|
+
converter: u("grid")
|
|
361
|
+
})], w.prototype, "layout", void 0), s([n({
|
|
362
|
+
type: String,
|
|
363
|
+
reflect: !0,
|
|
364
|
+
attribute: "item-min-width"
|
|
365
|
+
})], w.prototype, "itemMinWidth", void 0), s([n({
|
|
366
|
+
type: String,
|
|
367
|
+
reflect: !0,
|
|
368
|
+
attribute: "item-max-width"
|
|
369
|
+
})], w.prototype, "itemMaxWidth", void 0), s([n({
|
|
370
|
+
type: String,
|
|
371
|
+
reflect: !0
|
|
372
|
+
})], w.prototype, "gap", void 0), s([n({
|
|
373
|
+
type: String,
|
|
374
|
+
reflect: !0,
|
|
375
|
+
attribute: "sm-gap"
|
|
376
|
+
})], w.prototype, "smGap", void 0), s([n({
|
|
377
|
+
type: String,
|
|
378
|
+
reflect: !0,
|
|
379
|
+
attribute: "md-gap"
|
|
380
|
+
})], w.prototype, "mdGap", void 0), s([n({
|
|
381
|
+
type: String,
|
|
382
|
+
reflect: !0,
|
|
383
|
+
attribute: "lg-gap"
|
|
384
|
+
})], w.prototype, "lgGap", void 0), s([n({
|
|
385
|
+
type: Number,
|
|
386
|
+
attribute: "max-items"
|
|
387
|
+
})], w.prototype, "maxItems", void 0), s([n({ type: Object })], w.prototype, "translations", void 0), s([n({
|
|
388
|
+
type: Boolean,
|
|
389
|
+
reflect: !0,
|
|
390
|
+
attribute: "show-load-more"
|
|
391
|
+
})], w.prototype, "showLoadMore", void 0), s([n({
|
|
392
|
+
type: Boolean,
|
|
393
|
+
reflect: !0,
|
|
394
|
+
attribute: "lazy-load"
|
|
395
|
+
})], w.prototype, "lazyLoad", void 0), s([r()], w.prototype, "_visibleCount", void 0), s([r()], w.prototype, "_totalCount", void 0), s([r()], w.prototype, "_atStart", void 0), s([r()], w.prototype, "_atEnd", void 0), s([r()], w.prototype, "_isScrollable", void 0), s([r()], w.prototype, "_hasFooterSlot", void 0), s([l(".collection__items")], w.prototype, "_itemsEl", void 0), s([l("nldd-button.load-more")], w.prototype, "_loadMoreBtn", void 0), w = s([c("nldd-collection")], w);
|
|
396
|
+
export { w as NLDDCollection };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// src/components/layout/collection/collection.i18n.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"components.collection.previous-action": "Vorige",
|
|
4
|
+
"components.collection.next-action": "Volgende",
|
|
5
|
+
"components.collection.load-more-action": "Toon meer",
|
|
6
|
+
"components.collection.region-label": "Collectie"
|
|
7
|
+
};
|
|
8
|
+
export { e as t };
|