@nldd/design-system 0.20.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 +204 -8
- 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-_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-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/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/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/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/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 +298 -298
- 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/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 -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,240 @@
|
|
|
1
|
+
import { a as e, i as t, n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { t as l } from "./shadow-resets-6SToDsPu.js";
|
|
6
|
+
import { n as u } from "./input-modality-XE0B7yCn.js";
|
|
7
|
+
import { n as d } from "./breakpoints-Cwor8TRP.js";
|
|
8
|
+
import "./inline-dialog-WlqtPBPJ.js";
|
|
9
|
+
import { n as f, t as p } from "./open-when-rendered-CW_2_WUZ.js";
|
|
10
|
+
// src/components/status-and-feedback/modal-dialog/modal-dialog.styles.ts
|
|
11
|
+
var m = e(d.mdMin), h = t`
|
|
12
|
+
:host {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/* # Host */
|
|
18
|
+
|
|
19
|
+
:host {
|
|
20
|
+
--_modal-dialog-background-color: var(--semantics-surfaces-base-background-color);
|
|
21
|
+
--_modal-dialog-max-height: 90vh;
|
|
22
|
+
--_modal-dialog-padding: var(--primitives-space-16);
|
|
23
|
+
--_modal-dialog-content-max-width: var(--primitives-area-360);
|
|
24
|
+
|
|
25
|
+
@media (min-width: ${m}) {
|
|
26
|
+
--_modal-dialog-padding: var(--primitives-space-24);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
--_modal-dialog-animation-duration: 150ms;
|
|
30
|
+
--_modal-dialog-animation-easing: ease;
|
|
31
|
+
|
|
32
|
+
${l}
|
|
33
|
+
display: contents;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([hidden]) {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* # Block */
|
|
42
|
+
|
|
43
|
+
.modal-dialog {
|
|
44
|
+
/* Where the app's layout context ends, as in nldd-sheet: the dialog scrolls
|
|
45
|
+
itself and starts at its own top edge, so anything inside it stops
|
|
46
|
+
following the app's scroll mode and its insets. */
|
|
47
|
+
--context-scroll-mode: nested;
|
|
48
|
+
--context-inset-top: 0px;
|
|
49
|
+
--context-inset-bottom: 0px;
|
|
50
|
+
--context-parent-background-color: var(--_modal-dialog-background-color);
|
|
51
|
+
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
outline: none;
|
|
54
|
+
border: none;
|
|
55
|
+
border-radius: var(--semantics-overlays-corner-radius);
|
|
56
|
+
box-shadow: var(--semantics-overlays-box-shadow);
|
|
57
|
+
background-color: var(--_modal-dialog-background-color);
|
|
58
|
+
width: calc(100% - var(--primitives-space-16) * 2);
|
|
59
|
+
max-width: calc(var(--_modal-dialog-content-max-width) + var(--_modal-dialog-padding) * 2);
|
|
60
|
+
max-height: var(--_modal-dialog-max-height);
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
padding: var(--_modal-dialog-padding);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.modal-dialog:not([open]) {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.modal-dialog:focus-visible:not(.is-pointer-focus) {
|
|
70
|
+
outline: var(--semantics-focus-ring-outline);
|
|
71
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
72
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), var(--semantics-overlays-box-shadow);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.modal-dialog::backdrop {
|
|
76
|
+
background: var(--semantics-overlays-backdrop-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.modal-dialog[open] {
|
|
80
|
+
animation: modal-dialog-in var(--_modal-dialog-animation-duration) var(--_modal-dialog-animation-easing) backwards;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.modal-dialog.is-closing {
|
|
84
|
+
animation: modal-dialog-out var(--_modal-dialog-animation-duration) var(--_modal-dialog-animation-easing) both;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (prefers-reduced-motion: reduce) {
|
|
88
|
+
.modal-dialog[open],
|
|
89
|
+
.modal-dialog.is-closing {
|
|
90
|
+
animation: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/* # Keyframes */
|
|
96
|
+
|
|
97
|
+
@keyframes modal-dialog-in {
|
|
98
|
+
from {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
transform: scale(0.95);
|
|
101
|
+
}
|
|
102
|
+
to {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
transform: scale(1);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes modal-dialog-out {
|
|
109
|
+
from {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
transform: scale(1);
|
|
112
|
+
}
|
|
113
|
+
to {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transform: scale(0.95);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`;
|
|
119
|
+
// src/components/status-and-feedback/modal-dialog/modal-dialog.template.ts
|
|
120
|
+
function g(e) {
|
|
121
|
+
return i`
|
|
122
|
+
<dialog class="modal-dialog"
|
|
123
|
+
role=${e.variant === "alert" ? "alertdialog" : a}
|
|
124
|
+
aria-label=${e.accessibleLabel || e.text || a}
|
|
125
|
+
aria-modal="true"
|
|
126
|
+
@pointerdown=${e._handleDialogPointerDown}
|
|
127
|
+
@click=${e._handleBackdropClick}
|
|
128
|
+
@cancel=${e._handleCancel}
|
|
129
|
+
>
|
|
130
|
+
<nldd-inline-dialog
|
|
131
|
+
variant=${e.variant || a}
|
|
132
|
+
icon=${e.icon || a}
|
|
133
|
+
text=${e.text || a}
|
|
134
|
+
supporting-text=${e.supportingText || a}
|
|
135
|
+
horizontal-alignment=${e.horizontalAlignment || a}
|
|
136
|
+
heading-level="2"
|
|
137
|
+
>
|
|
138
|
+
<slot></slot>
|
|
139
|
+
<slot
|
|
140
|
+
slot="actions"
|
|
141
|
+
name="actions"
|
|
142
|
+
></slot>
|
|
143
|
+
</nldd-inline-dialog>
|
|
144
|
+
<!-- Inside the dialog, so it escapes the inertness a modal imposes on
|
|
145
|
+
everything outside it. Plumbing, not consumer API. -->
|
|
146
|
+
<slot name="notifications"></slot>
|
|
147
|
+
</dialog>
|
|
148
|
+
`;
|
|
149
|
+
}
|
|
150
|
+
// src/components/status-and-feedback/modal-dialog/modal-dialog.ts
|
|
151
|
+
var _, v = 1e3, y = (_ = class extends r {
|
|
152
|
+
constructor(...e) {
|
|
153
|
+
super(...e), this.variant = "", this.horizontalAlignment = "", this.text = "", this.supportingText = "", this.icon = "", this.accessibleLabel = "", this.open = !1, this._closing = !1, this._cancelPendingOpen = null, this._closeFallback = 0, this._pointerDownOnBackdrop = !1, this._handleDialogPointerDown = (e) => {
|
|
154
|
+
this._pointerDownOnBackdrop = this._isOnBackdrop(e);
|
|
155
|
+
}, this._handleBackdropClick = (e) => {
|
|
156
|
+
this._isOnBackdrop(e) && this._pointerDownOnBackdrop && this.hide();
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
updated(e) {
|
|
160
|
+
if (e.has("open")) {
|
|
161
|
+
let e = this._dialog;
|
|
162
|
+
this.open && (!e?.open || this._closing) ? this.show() : !this.open && e?.open && !this._closing && this.hide();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
get _dialog() {
|
|
166
|
+
return this.shadowRoot?.querySelector("dialog") ?? null;
|
|
167
|
+
}
|
|
168
|
+
show() {
|
|
169
|
+
let e = this._dialog;
|
|
170
|
+
if (!e) this._cancelPendingOpen?.(), this._cancelPendingOpen = p(this, () => this._dialog, () => this.show());
|
|
171
|
+
else {
|
|
172
|
+
if (this._cancelPendingOpen?.(), this._cancelPendingOpen = null, this._closing) window.clearTimeout(this._closeFallback), this._closing = !1, e.classList.remove("is-closing");
|
|
173
|
+
else {
|
|
174
|
+
if (e.open) return;
|
|
175
|
+
e.showModal(), this._manageFocus();
|
|
176
|
+
}
|
|
177
|
+
this.open = !0, this.dispatchEvent(new CustomEvent("open", {
|
|
178
|
+
bubbles: !0,
|
|
179
|
+
composed: !0
|
|
180
|
+
}));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
_manageFocus() {
|
|
184
|
+
if (f(this)) return;
|
|
185
|
+
let e = this._dialog;
|
|
186
|
+
e && (e.classList.toggle("is-pointer-focus", u()), e.focus());
|
|
187
|
+
}
|
|
188
|
+
hide() {
|
|
189
|
+
this._cancelPendingOpen?.(), this._cancelPendingOpen = null;
|
|
190
|
+
let e = this._dialog;
|
|
191
|
+
if (!e || !e.open || this._closing) return;
|
|
192
|
+
this.open = !1, this._closing = !0, e.classList.add("is-closing");
|
|
193
|
+
let t = () => {
|
|
194
|
+
this._closing && (window.clearTimeout(this._closeFallback), e.classList.remove("is-closing"), this._closing = !1, e.close(), this.dispatchEvent(new CustomEvent("close", {
|
|
195
|
+
bubbles: !1,
|
|
196
|
+
composed: !0
|
|
197
|
+
})));
|
|
198
|
+
};
|
|
199
|
+
e.addEventListener("animationend", t, { once: !0 }), requestAnimationFrame(() => {
|
|
200
|
+
this._closing && getComputedStyle(e).animationName === "none" && t();
|
|
201
|
+
}), this._closeFallback = window.setTimeout(t, v);
|
|
202
|
+
}
|
|
203
|
+
_isOnBackdrop(e) {
|
|
204
|
+
let t = this._dialog;
|
|
205
|
+
if (!t || e.composedPath()[0] !== t) return !1;
|
|
206
|
+
let n = t.getBoundingClientRect();
|
|
207
|
+
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
|
|
208
|
+
}
|
|
209
|
+
_handleCancel(e) {
|
|
210
|
+
e.preventDefault(), this.hide();
|
|
211
|
+
}
|
|
212
|
+
render() {
|
|
213
|
+
return g(this);
|
|
214
|
+
}
|
|
215
|
+
}, _.styles = h, _);
|
|
216
|
+
o([n({
|
|
217
|
+
reflect: !0,
|
|
218
|
+
converter: c("")
|
|
219
|
+
})], y.prototype, "variant", void 0), o([n({
|
|
220
|
+
reflect: !0,
|
|
221
|
+
attribute: "horizontal-alignment",
|
|
222
|
+
converter: c("")
|
|
223
|
+
})], y.prototype, "horizontalAlignment", void 0), o([n({
|
|
224
|
+
reflect: !0,
|
|
225
|
+
converter: c("")
|
|
226
|
+
})], y.prototype, "text", void 0), o([n({
|
|
227
|
+
reflect: !0,
|
|
228
|
+
attribute: "supporting-text",
|
|
229
|
+
converter: c("")
|
|
230
|
+
})], y.prototype, "supportingText", void 0), o([n({
|
|
231
|
+
reflect: !0,
|
|
232
|
+
converter: c("")
|
|
233
|
+
})], y.prototype, "icon", void 0), o([n({
|
|
234
|
+
type: String,
|
|
235
|
+
attribute: "accessible-label"
|
|
236
|
+
})], y.prototype, "accessibleLabel", void 0), o([n({
|
|
237
|
+
type: Boolean,
|
|
238
|
+
reflect: !0
|
|
239
|
+
})], y.prototype, "open", void 0), y = o([s("nldd-modal-dialog")], y);
|
|
240
|
+
export { y as NLDDModalDialog };
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n, o as r, r as i, t as a } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as s } from "./query-ChDzi9FQ.js";
|
|
6
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import { t as l } from "./shadow-resets-6SToDsPu.js";
|
|
8
|
+
import { t as u } from "./described-by-mixin-daRE7orX.js";
|
|
9
|
+
import { t as d } from "./form-associated-mixin--GIbl98p.js";
|
|
10
|
+
// src/components/inputs/multi-line-text-field/multi-line-text-field.styles.ts
|
|
11
|
+
var f = e`
|
|
12
|
+
:host {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/* # Host */
|
|
18
|
+
|
|
19
|
+
:host {
|
|
20
|
+
--_multi-line-text-field-width: 100%;
|
|
21
|
+
--_multi-line-text-field-background-color: var(--semantics-input-fields-background-color);
|
|
22
|
+
--_multi-line-text-field-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
23
|
+
--_multi-line-text-field-inline-padding: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-width));
|
|
24
|
+
--_multi-line-text-field-min-height: var(--semantics-controls-md-min-size);
|
|
25
|
+
--_multi-line-text-field-text-font: var(--semantics-input-fields-md-text-font);
|
|
26
|
+
--_multi-line-text-field-icon-area-size: calc(var(--_multi-line-text-field-min-height) - var(--semantics-input-fields-border-width) * 2);
|
|
27
|
+
--_multi-line-text-field-validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
|
|
28
|
+
--_multi-line-text-field-rows: 3;
|
|
29
|
+
|
|
30
|
+
${l}
|
|
31
|
+
display: block;
|
|
32
|
+
width: var(--_multi-line-text-field-width);
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
-webkit-tap-highlight-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([hidden]) {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([size="sm"]) {
|
|
42
|
+
--_multi-line-text-field-corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
43
|
+
--_multi-line-text-field-inline-padding: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-width));
|
|
44
|
+
--_multi-line-text-field-min-height: var(--semantics-controls-sm-min-size);
|
|
45
|
+
--_multi-line-text-field-text-font: var(--semantics-input-fields-sm-text-font);
|
|
46
|
+
--_multi-line-text-field-validation-icon-size: var(--semantics-input-fields-sm-validation-icon-size);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/* # Block */
|
|
51
|
+
|
|
52
|
+
.multi-line-text-field {
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
display: block;
|
|
55
|
+
position: relative;
|
|
56
|
+
border: var(--semantics-input-fields-border);
|
|
57
|
+
border-radius: var(--_multi-line-text-field-corner-radius);
|
|
58
|
+
background-color: var(--_multi-line-text-field-background-color);
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([valid]) .multi-line-text-field {
|
|
63
|
+
border-color: var(--semantics-input-fields-is-valid-border-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([invalid]) .multi-line-text-field {
|
|
67
|
+
border-color: var(--semantics-input-fields-is-invalid-border-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([readonly]) .multi-line-text-field {
|
|
71
|
+
--_multi-line-text-field-background-color: var(--semantics-input-fields-is-read-only-background-color);
|
|
72
|
+
border-color: var(--semantics-input-fields-is-read-only-border-color);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([disabled]) .multi-line-text-field {
|
|
76
|
+
opacity: var(--primitives-opacity-disabled);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.multi-line-text-field:has(textarea:-webkit-autofill),
|
|
80
|
+
.multi-line-text-field:has(textarea:autofill) {
|
|
81
|
+
--_multi-line-text-field-background-color: var(--semantics-input-fields-is-autofill-background-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.multi-line-text-field:focus-within {
|
|
85
|
+
outline: var(--semantics-focus-ring-outline);
|
|
86
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
87
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/* # Elements */
|
|
92
|
+
|
|
93
|
+
.multi-line-text-field__input {
|
|
94
|
+
border-radius: calc(var(--_multi-line-text-field-corner-radius) - var(--semantics-input-fields-border-width));
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
display: block;
|
|
97
|
+
margin: 0;
|
|
98
|
+
outline: none;
|
|
99
|
+
border: none;
|
|
100
|
+
background: transparent;
|
|
101
|
+
width: 100%;
|
|
102
|
+
/* rows is the floor in every resize mode: one row already fits in
|
|
103
|
+
--_multi-line-text-field-min-height, each extra row adds one line height. (resize="auto"
|
|
104
|
+
then grows past it via field-sizing.) */
|
|
105
|
+
min-height: calc(var(--_multi-line-text-field-min-height) - var(--semantics-input-fields-border-width) * 2 + (var(--_multi-line-text-field-rows) - 1) * 1lh);
|
|
106
|
+
padding-block: calc((var(--_multi-line-text-field-min-height) - var(--semantics-input-fields-border-width) * 2 - 1lh) / 2);
|
|
107
|
+
padding-inline: var(--_multi-line-text-field-inline-padding);
|
|
108
|
+
color: var(--semantics-content-color);
|
|
109
|
+
font: var(--_multi-line-text-field-text-font);
|
|
110
|
+
appearance: none;
|
|
111
|
+
resize: none;
|
|
112
|
+
field-sizing: content;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:host([resize="vertical"]) .multi-line-text-field__input {
|
|
116
|
+
resize: vertical;
|
|
117
|
+
field-sizing: fixed;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([resize="none"]) .multi-line-text-field__input {
|
|
121
|
+
resize: none;
|
|
122
|
+
field-sizing: fixed;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:host([valid]) .multi-line-text-field__input,
|
|
126
|
+
:host([invalid]) .multi-line-text-field__input {
|
|
127
|
+
padding-inline-end: var(--_multi-line-text-field-icon-area-size);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([disabled]) .multi-line-text-field__input {
|
|
131
|
+
pointer-events: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.multi-line-text-field__input::placeholder {
|
|
135
|
+
color: var(--semantics-input-fields-placeholder-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.multi-line-text-field__input:-webkit-autofill,
|
|
139
|
+
.multi-line-text-field__input:autofill,
|
|
140
|
+
.multi-line-text-field__input:-webkit-autofill:disabled,
|
|
141
|
+
.multi-line-text-field__input:autofill:disabled {
|
|
142
|
+
box-shadow: 0 0 0 999px var(--_multi-line-text-field-background-color) inset;
|
|
143
|
+
-webkit-text-fill-color: var(--semantics-input-fields-is-autofill-content-color);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.multi-line-text-field__validation-icon-area {
|
|
147
|
+
display: flex;
|
|
148
|
+
position: absolute;
|
|
149
|
+
top: 0;
|
|
150
|
+
right: 0;
|
|
151
|
+
pointer-events: none;
|
|
152
|
+
width: var(--_multi-line-text-field-icon-area-size);
|
|
153
|
+
height: var(--_multi-line-text-field-icon-area-size);
|
|
154
|
+
align-items: center;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host([valid]) .multi-line-text-field__validation-icon-area {
|
|
159
|
+
color: var(--semantics-input-fields-is-valid-icon-color);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:host([invalid]) .multi-line-text-field__validation-icon-area {
|
|
163
|
+
color: var(--semantics-input-fields-is-invalid-icon-color);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.multi-line-text-field__validation-icon {
|
|
167
|
+
width: var(--_multi-line-text-field-validation-icon-size);
|
|
168
|
+
height: var(--_multi-line-text-field-validation-icon-size);
|
|
169
|
+
}
|
|
170
|
+
`;
|
|
171
|
+
// src/components/inputs/multi-line-text-field/multi-line-text-field.template.ts
|
|
172
|
+
function p(e) {
|
|
173
|
+
return e.invalid ? r`
|
|
174
|
+
<div class="multi-line-text-field__validation-icon-area">
|
|
175
|
+
<nldd-icon class="multi-line-text-field__validation-icon"
|
|
176
|
+
icon="invalid"
|
|
177
|
+
aria-hidden="true"
|
|
178
|
+
></nldd-icon>
|
|
179
|
+
</div>
|
|
180
|
+
` : e.valid ? r`
|
|
181
|
+
<div class="multi-line-text-field__validation-icon-area">
|
|
182
|
+
<nldd-icon class="multi-line-text-field__validation-icon"
|
|
183
|
+
icon="valid"
|
|
184
|
+
aria-hidden="true"
|
|
185
|
+
></nldd-icon>
|
|
186
|
+
</div>
|
|
187
|
+
` : i;
|
|
188
|
+
}
|
|
189
|
+
function m(e) {
|
|
190
|
+
return r`
|
|
191
|
+
<div class="multi-line-text-field">
|
|
192
|
+
<textarea class="multi-line-text-field__input"
|
|
193
|
+
minlength=${e.minlength ?? i}
|
|
194
|
+
maxlength=${e.maxlength ?? i}
|
|
195
|
+
id=${e.inputId || i}
|
|
196
|
+
rows=${e.rows}
|
|
197
|
+
inputmode=${e.keyboard || i}
|
|
198
|
+
enterkeyhint=${e.enterKey || i}
|
|
199
|
+
.value=${e.value}
|
|
200
|
+
placeholder=${e.placeholder || i}
|
|
201
|
+
?disabled=${e.disabled}
|
|
202
|
+
?readonly=${e.readonly}
|
|
203
|
+
?required=${e.required}
|
|
204
|
+
autocomplete=${e.autocomplete || i}
|
|
205
|
+
spellcheck=${e.noSpellcheck ? "false" : "true"}
|
|
206
|
+
aria-label=${e.accessibleLabel || i}
|
|
207
|
+
aria-invalid=${e.invalid ? "true" : i}
|
|
208
|
+
@input=${e._handleInput}
|
|
209
|
+
@change=${e._handleChange}
|
|
210
|
+
></textarea>
|
|
211
|
+
${p(e)}
|
|
212
|
+
</div>
|
|
213
|
+
`;
|
|
214
|
+
}
|
|
215
|
+
// src/components/inputs/multi-line-text-field/multi-line-text-field.ts
|
|
216
|
+
var h = class extends u(d(n)) {
|
|
217
|
+
constructor(...e) {
|
|
218
|
+
super(...e), this._initialValue = "", this.size = "md", this.value = "", this.inputId = "", this.placeholder = "", this.invalid = !1, this.valid = !1, this.disabled = !1, this.name = "", this.readonly = !1, this.required = !1, this.autocomplete = "", this.rows = 3, this.resize = "auto", this.accessibleLabel = "", this.noSpellcheck = !1, this.width = "";
|
|
219
|
+
}
|
|
220
|
+
firstUpdated() {
|
|
221
|
+
this._initialValue = this.value;
|
|
222
|
+
}
|
|
223
|
+
updated(e) {
|
|
224
|
+
if (e.has("width")) {
|
|
225
|
+
let e = this.width;
|
|
226
|
+
e && e !== "full" && CSS.supports("width", e) ? this.style.setProperty("--_multi-line-text-field-width", e) : this.style.removeProperty("--_multi-line-text-field-width");
|
|
227
|
+
}
|
|
228
|
+
e.has("rows") && this.style.setProperty("--_multi-line-text-field-rows", String(this.rows)), e.has("resize") && this.resize === "auto" && this._textarea && (this._textarea.style.width = "", this._textarea.style.height = "");
|
|
229
|
+
}
|
|
230
|
+
formValue() {
|
|
231
|
+
return this.value;
|
|
232
|
+
}
|
|
233
|
+
formResetCallback() {
|
|
234
|
+
this.value = this._initialValue;
|
|
235
|
+
}
|
|
236
|
+
formStateRestoreCallback(e) {
|
|
237
|
+
typeof e == "string" && (this.value = e);
|
|
238
|
+
}
|
|
239
|
+
_handleInput(e) {
|
|
240
|
+
e.stopPropagation();
|
|
241
|
+
let t = e.target;
|
|
242
|
+
this.value = t.value, this.commitFormValue(), this.dispatchEvent(new CustomEvent("input", {
|
|
243
|
+
detail: { value: this.value },
|
|
244
|
+
bubbles: !0,
|
|
245
|
+
composed: !0
|
|
246
|
+
}));
|
|
247
|
+
}
|
|
248
|
+
_handleChange(e) {
|
|
249
|
+
e.stopPropagation();
|
|
250
|
+
let t = e.target;
|
|
251
|
+
this.value = t.value, this.commitFormValue(), this.dispatchEvent(new CustomEvent("change", {
|
|
252
|
+
detail: { value: this.value },
|
|
253
|
+
bubbles: !0,
|
|
254
|
+
composed: !0
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
render() {
|
|
258
|
+
return m(this);
|
|
259
|
+
}
|
|
260
|
+
}, g = (h.shadowRootOptions = {
|
|
261
|
+
...n.shadowRootOptions,
|
|
262
|
+
delegatesFocus: !0
|
|
263
|
+
}, h.styles = f, h.isFormInput = !0, h);
|
|
264
|
+
a([t({
|
|
265
|
+
reflect: !0,
|
|
266
|
+
converter: c("md")
|
|
267
|
+
})], g.prototype, "size", void 0), a([t({ type: String })], g.prototype, "value", void 0), a([t({
|
|
268
|
+
type: String,
|
|
269
|
+
attribute: "input-id"
|
|
270
|
+
})], g.prototype, "inputId", void 0), a([t({
|
|
271
|
+
reflect: !0,
|
|
272
|
+
converter: c("")
|
|
273
|
+
})], g.prototype, "placeholder", void 0), a([t({
|
|
274
|
+
type: Boolean,
|
|
275
|
+
reflect: !0
|
|
276
|
+
})], g.prototype, "invalid", void 0), a([t({
|
|
277
|
+
type: Boolean,
|
|
278
|
+
reflect: !0
|
|
279
|
+
})], g.prototype, "valid", void 0), a([t({
|
|
280
|
+
type: Boolean,
|
|
281
|
+
reflect: !0
|
|
282
|
+
})], g.prototype, "disabled", void 0), a([t({
|
|
283
|
+
reflect: !0,
|
|
284
|
+
converter: c("")
|
|
285
|
+
})], g.prototype, "name", void 0), a([t({
|
|
286
|
+
type: Boolean,
|
|
287
|
+
reflect: !0
|
|
288
|
+
})], g.prototype, "readonly", void 0), a([t({
|
|
289
|
+
type: Boolean,
|
|
290
|
+
reflect: !0
|
|
291
|
+
})], g.prototype, "required", void 0), a([t({ type: String })], g.prototype, "autocomplete", void 0), a([t({
|
|
292
|
+
type: String,
|
|
293
|
+
reflect: !0
|
|
294
|
+
})], g.prototype, "keyboard", void 0), a([t({
|
|
295
|
+
type: String,
|
|
296
|
+
reflect: !0,
|
|
297
|
+
attribute: "enter-key"
|
|
298
|
+
})], g.prototype, "enterKey", void 0), a([t({ type: Number })], g.prototype, "rows", void 0), a([t({
|
|
299
|
+
reflect: !0,
|
|
300
|
+
converter: c("auto")
|
|
301
|
+
})], g.prototype, "resize", void 0), a([t({
|
|
302
|
+
type: String,
|
|
303
|
+
attribute: "accessible-label"
|
|
304
|
+
})], g.prototype, "accessibleLabel", void 0), a([t({
|
|
305
|
+
type: Boolean,
|
|
306
|
+
reflect: !0,
|
|
307
|
+
attribute: "no-spellcheck"
|
|
308
|
+
})], g.prototype, "noSpellcheck", void 0), a([t({
|
|
309
|
+
reflect: !0,
|
|
310
|
+
converter: c("")
|
|
311
|
+
})], g.prototype, "width", void 0), a([s(".multi-line-text-field__input")], g.prototype, "_textarea", void 0), a([t({
|
|
312
|
+
type: Number,
|
|
313
|
+
reflect: !0
|
|
314
|
+
})], g.prototype, "minlength", void 0), a([t({
|
|
315
|
+
type: Number,
|
|
316
|
+
reflect: !0
|
|
317
|
+
})], g.prototype, "maxlength", void 0), g = a([o("nldd-multi-line-text-field")], g);
|
|
318
|
+
export { g as NLDDMultiLineTextField };
|