@adyen/bento-vue2 1.26.0 → 1.28.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/dist/@types/components.d.ts +8 -0
- package/dist/@types/index.d.ts +967 -374
- package/dist/accordion.js +3 -101
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +2 -231
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +5 -116
- package/dist/alert.js.map +1 -1
- package/dist/assets/{index2.css → accordion-item.css} +1 -1
- package/dist/assets/{index3.css → action-bar.css} +1 -1
- package/dist/assets/alert.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/{index7.css → card.css} +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/{index9.css → code-snippet.css} +1 -1
- package/dist/assets/dashboard-section.css +1 -0
- package/dist/assets/dashed-underline.css +1 -0
- package/dist/assets/data-grid-template.css +1 -0
- package/dist/assets/data-grid.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/filter-bar.css +1 -0
- package/dist/assets/{index15.css → form-layout-title.css} +1 -1
- package/dist/assets/{index25.css → input-field.css} +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/{index26.css → menu.css} +1 -1
- package/dist/assets/{index22.css → modal-fullscreen.css} +1 -1
- package/dist/assets/{index28.css → popover.css} +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/segmented-control.css +1 -0
- package/dist/assets/selection-card-group.css +1 -0
- package/dist/assets/{index37.css → sidepanel.css} +1 -1
- package/dist/assets/status.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/{index43.css → tabs.css} +1 -1
- package/dist/assets/toggle.css +1 -0
- package/dist/assets/tutorial.css +1 -0
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +22 -24
- package/dist/badge.js.map +1 -1
- package/dist/button.js +14 -94
- package/dist/button.js.map +1 -1
- package/dist/card.js +4 -114
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +8 -155
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
- package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
- package/dist/chunks/accordion-item.DmnrjNzw.js +100 -0
- package/dist/chunks/accordion-item.DmnrjNzw.js.map +1 -0
- package/dist/chunks/action-bar.Bebh6PHI.js +147 -0
- package/dist/chunks/action-bar.Bebh6PHI.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
- package/dist/chunks/alert.CJyTM4Az.js +96 -0
- package/dist/chunks/alert.CJyTM4Az.js.map +1 -0
- package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
- package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
- package/dist/chunks/{index.7eefc59c.js → avatar-image.DhlR-7Yg.js} +22 -24
- package/dist/chunks/avatar-image.DhlR-7Yg.js.map +1 -0
- package/dist/chunks/base-button.DER7_IsF.js +86 -0
- package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.DER7_IsF.js.map} +1 -1
- package/dist/chunks/{base-modal.1fff7abe.js → base-modal.C5I7bR0d.js} +42 -46
- package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.C5I7bR0d.js.map} +1 -1
- package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
- package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.f3yuLK-L.js} +25 -27
- package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.f3yuLK-L.js.map} +1 -1
- package/dist/chunks/button-actions.Bg9ey0p6.js +111 -0
- package/dist/chunks/button-actions.Bg9ey0p6.js.map +1 -0
- package/dist/chunks/button.DhAUh5JA.js +99 -0
- package/dist/chunks/button.DhAUh5JA.js.map +1 -0
- package/dist/chunks/{calendar.640b8d25.js → calendar.B69z8gjb.js} +287 -332
- package/dist/chunks/{calendar.640b8d25.js.map → calendar.B69z8gjb.js.map} +1 -1
- package/dist/chunks/card.70Xvba2C.js +115 -0
- package/dist/chunks/card.70Xvba2C.js.map +1 -0
- package/dist/chunks/checkbox-group.B-KdeRXC.js +152 -0
- package/dist/chunks/checkbox-group.B-KdeRXC.js.map +1 -0
- package/dist/chunks/{checkbox-input.1c3cc8ed.js → checkbox-input.DwDwI2BD.js} +27 -30
- package/dist/chunks/{checkbox-input.1c3cc8ed.js.map → checkbox-input.DwDwI2BD.js.map} +1 -1
- package/dist/chunks/{checkbox.bfed007c.js → checkbox.Bi2RDBEZ.js} +21 -23
- package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.Bi2RDBEZ.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +24 -0
- package/dist/chunks/{checkmark-circle-fill.345311d2.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
- package/dist/chunks/{checkmark-small.520f01b1.js → checkmark-small.BtF8b2gE.js} +6 -8
- package/dist/chunks/{checkmark-small.520f01b1.js.map → checkmark-small.BtF8b2gE.js.map} +1 -1
- package/dist/chunks/{chevron-left.5edf02ac.js → chevron-left.CtnrsqUy.js} +13 -17
- package/dist/chunks/{chevron-left.5edf02ac.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
- package/dist/chunks/{chevron-up.81185563.js → chevron-up.B2uWhZf7.js} +14 -18
- package/dist/chunks/{chevron-up.81185563.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
- package/dist/chunks/click-outside.DABh6NLr.js +23 -0
- package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
- package/dist/chunks/code-snippet.C4IbjAhH.js +968 -0
- package/dist/chunks/code-snippet.C4IbjAhH.js.map +1 -0
- package/dist/chunks/{controls-group.4fb50009.js → controls-group.cSRFiEVO.js} +17 -19
- package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.cSRFiEVO.js.map} +1 -1
- package/dist/chunks/{copy.f85700c6.js → copy.BtFWFG3q.js} +15 -19
- package/dist/chunks/{copy.f85700c6.js.map → copy.BtFWFG3q.js.map} +1 -1
- package/dist/chunks/country.KayLT0zy.js +93 -0
- package/dist/chunks/country.KayLT0zy.js.map +1 -0
- package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
- package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.27580c4b.js → cross-circle-fill.CnYH4R_h.js} +7 -9
- package/dist/chunks/{cross-circle-fill.27580c4b.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
- package/dist/chunks/{cross-small.e851e0de.js → cross-small.BLUwtRB-.js} +9 -11
- package/dist/chunks/{cross-small.e851e0de.js.map → cross-small.BLUwtRB-.js.map} +1 -1
- package/dist/chunks/{cross.04678d81.js → cross.CsUPDmaA.js} +9 -11
- package/dist/chunks/{cross.04678d81.js.map → cross.CsUPDmaA.js.map} +1 -1
- package/dist/chunks/currency.H7n7RQiX.js +113 -0
- package/dist/chunks/currency.H7n7RQiX.js.map +1 -0
- package/dist/chunks/dashboard-section.BcH-_en7.js +105 -0
- package/dist/chunks/dashboard-section.BcH-_en7.js.map +1 -0
- package/dist/chunks/dashed-underline.ChUlcFJR.js +59 -0
- package/dist/chunks/dashed-underline.ChUlcFJR.js.map +1 -0
- package/dist/chunks/data-grid-template.DqG5bNeD.js +66 -0
- package/dist/chunks/data-grid-template.DqG5bNeD.js.map +1 -0
- package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
- package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
- package/dist/chunks/data-grid.CvHAdmvs.js +2022 -0
- package/dist/chunks/data-grid.CvHAdmvs.js.map +1 -0
- package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
- package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
- package/dist/chunks/date-picker.ByP2Wpo0.js +196 -0
- package/dist/chunks/date-picker.ByP2Wpo0.js.map +1 -0
- package/dist/chunks/{index.8b8c3b16.js → date-range-picker.DrnklTJ-.js} +113 -117
- package/dist/chunks/date-range-picker.DrnklTJ-.js.map +1 -0
- package/dist/chunks/{index.b21197ca.js → date.DKjxxR6P.js} +44 -51
- package/dist/chunks/date.DKjxxR6P.js.map +1 -0
- package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
- package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
- package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.DAh0M4mT.js} +20 -24
- package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.DAh0M4mT.js.map} +1 -1
- package/dist/chunks/divider.BZfeYmB9.js +30 -0
- package/dist/chunks/divider.BZfeYmB9.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.CKOkl_Qa.js} +30 -34
- package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.CKOkl_Qa.js.map} +1 -1
- package/dist/chunks/dropdown-tag.DCMKQy-E.js +214 -0
- package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +1 -0
- package/dist/chunks/{dropdown.10c034aa.js → dropdown.yhhQCKve.js} +195 -214
- package/dist/chunks/dropdown.yhhQCKve.js.map +1 -0
- package/dist/chunks/empty-state.BqVOj4v1.js +151 -0
- package/dist/chunks/empty-state.BqVOj4v1.js.map +1 -0
- package/dist/chunks/error-message.BSxUoE3_.js +107 -0
- package/dist/chunks/{error-message.31ec12b7.js.map → error-message.BSxUoE3_.js.map} +1 -1
- package/dist/chunks/events.CMzGybJJ.js +47 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -0
- package/dist/chunks/filter-bar.AhsOPMZ1.js +2119 -0
- package/dist/chunks/filter-bar.AhsOPMZ1.js.map +1 -0
- package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.Bq1AgPnw.js} +18 -20
- package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.Bq1AgPnw.js.map} +1 -1
- package/dist/chunks/{index.d553d3d1.js → focus-trap.DSkLNO_i.js} +35 -37
- package/dist/chunks/focus-trap.DSkLNO_i.js.map +1 -0
- package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.DqMRmlV_.js} +11 -13
- package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.DqMRmlV_.js.map} +1 -1
- package/dist/chunks/form-layout-title.BzNU0B72.js +187 -0
- package/dist/chunks/form-layout-title.BzNU0B72.js.map +1 -0
- package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
- package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
- package/dist/chunks/{get-slot-text.99c3d860.js → get-slot-text.Cgn-E48s.js} +2 -2
- package/dist/chunks/{get-slot-text.99c3d860.js.map → get-slot-text.Cgn-E48s.js.map} +1 -1
- package/dist/chunks/{grid-layout.e0025286.js → grid-layout.HvTAa4to.js} +11 -13
- package/dist/chunks/{grid-layout.e0025286.js.map → grid-layout.HvTAa4to.js.map} +1 -1
- package/dist/chunks/header.DmKHCmXh.js +245 -0
- package/dist/chunks/header.DmKHCmXh.js.map +1 -0
- package/dist/chunks/{i18n.eb5b985b.js → i18n.BQkEbtPM.js} +2 -2
- package/dist/chunks/{i18n.eb5b985b.js.map → i18n.BQkEbtPM.js.map} +1 -1
- package/dist/chunks/image.B3uqhFjl.js +82 -0
- package/dist/chunks/image.B3uqhFjl.js.map +1 -0
- package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
- package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
- package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
- package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
- package/dist/chunks/{index.4c062058.js → index.Cl4_42j5.js} +1 -1
- package/dist/chunks/{index.4c062058.js.map → index.Cl4_42j5.js.map} +1 -1
- package/dist/chunks/index.OCPp3NST.js +126 -0
- package/dist/chunks/index.OCPp3NST.js.map +1 -0
- package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
- package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
- package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
- package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
- package/dist/chunks/info-icon.CLguYHRt.js +41 -0
- package/dist/chunks/info-icon.CLguYHRt.js.map +1 -0
- package/dist/chunks/{info.8b6328aa.js → info.CyeBsLgt.js} +9 -11
- package/dist/chunks/{info.8b6328aa.js.map → info.CyeBsLgt.js.map} +1 -1
- package/dist/chunks/input-field.BnlEPPYr.js +218 -0
- package/dist/chunks/input-field.BnlEPPYr.js.map +1 -0
- package/dist/chunks/internal-error.BLZodVBE.js +5 -0
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
- package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.Clz1jOaA.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
- package/dist/chunks/{index.317fca12.js → link.DJ1A53gF.js} +20 -24
- package/dist/chunks/link.DJ1A53gF.js.map +1 -0
- package/dist/chunks/listbox-option-tag.BDjsYOE1.js +75 -0
- package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +1 -0
- package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.CoF1IhEU.js} +32 -34
- package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.CoF1IhEU.js.map} +1 -1
- package/dist/chunks/loading-indicator.DXc7I1Lm.js +48 -0
- package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
- package/dist/chunks/{index.1ea85d4a.js → menu.2TwUMlA9.js} +82 -94
- package/dist/chunks/menu.2TwUMlA9.js.map +1 -0
- package/dist/chunks/modal-fullscreen.BB_8EMNo.js +196 -0
- package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
- package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
- package/dist/chunks/modal.DLwvcaRx.js +439 -0
- package/dist/chunks/modal.DLwvcaRx.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
- package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
- package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
- package/dist/chunks/pagination.BXjbVe4Z.js +494 -0
- package/dist/chunks/pagination.BXjbVe4Z.js.map +1 -0
- package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.D9Qx-s4V.js} +19 -21
- package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.D9Qx-s4V.js.map} +1 -1
- package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
- package/dist/chunks/{index.15b088b9.js → popover.B8YH92W8.js} +31 -37
- package/dist/chunks/popover.B8YH92W8.js.map +1 -0
- package/dist/chunks/{index.671768a1.js → popper-container.Bt02N3o1.js} +12 -15
- package/dist/chunks/popper-container.Bt02N3o1.js.map +1 -0
- package/dist/chunks/radio-group.CPbBFTzB.js +211 -0
- package/dist/chunks/radio-group.CPbBFTzB.js.map +1 -0
- package/dist/chunks/{radio-input.c6550a9c.js → radio-input.BQcC0INR.js} +17 -19
- package/dist/chunks/radio-input.BQcC0INR.js.map +1 -0
- package/dist/chunks/referrals.BvtT-kQS.js +5 -0
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
- package/dist/chunks/referrals.aX8WZigH.js +5 -0
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
- package/dist/chunks/{refresh.71a03998.js → refresh.BKI9WwKh.js} +7 -9
- package/dist/chunks/{refresh.71a03998.js.map → refresh.BKI9WwKh.js.map} +1 -1
- package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
- package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
- package/dist/chunks/search-bar.CsAgO-t5.js +89 -0
- package/dist/chunks/search-bar.CsAgO-t5.js.map +1 -0
- package/dist/chunks/{search.471270fe.js → search.CBKhp7zB.js} +10 -12
- package/dist/chunks/{search.471270fe.js.map → search.CBKhp7zB.js.map} +1 -1
- package/dist/chunks/secondary-nav.CNgpPxUU.js +97 -0
- package/dist/chunks/secondary-nav.CNgpPxUU.js.map +1 -0
- package/dist/chunks/segmented-control.DGjIC7Ab.js +111 -0
- package/dist/chunks/segmented-control.DGjIC7Ab.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
- package/dist/chunks/selection-card-group.DlOs8BkR.js +247 -0
- package/dist/chunks/selection-card-group.DlOs8BkR.js.map +1 -0
- package/dist/chunks/sidepanel.BBjm2QvZ.js +187 -0
- package/dist/chunks/sidepanel.BBjm2QvZ.js.map +1 -0
- package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
- package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
- package/dist/chunks/status.types.BhbOYpZx.js +36 -0
- package/dist/chunks/status.types.BhbOYpZx.js.map +1 -0
- package/dist/chunks/step.DY8Txb6a.js +234 -0
- package/dist/chunks/step.DY8Txb6a.js.map +1 -0
- package/dist/chunks/structured-list-item.C9NTVDvT.js +81 -0
- package/dist/chunks/structured-list-item.C9NTVDvT.js.map +1 -0
- package/dist/chunks/success.DhioLvPD.js +5 -0
- package/dist/chunks/success.DhioLvPD.js.map +1 -0
- package/dist/chunks/success.nNwxJRBS.js +5 -0
- package/dist/chunks/success.nNwxJRBS.js.map +1 -0
- package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +573 -0
- package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +1 -0
- package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
- package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
- package/dist/chunks/tabs.CE65f3E_.js +140 -0
- package/dist/chunks/tabs.CE65f3E_.js.map +1 -0
- package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
- package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
- package/dist/chunks/tag.bhKrZHTU.js +64 -0
- package/dist/chunks/tag.bhKrZHTU.js.map +1 -0
- package/dist/chunks/{teleport.84b0f20b.js → teleport.CQKBJZU5.js} +14 -16
- package/dist/chunks/{teleport.84b0f20b.js.map → teleport.CQKBJZU5.js.map} +1 -1
- package/dist/chunks/textarea.CcKbtQBs.js +208 -0
- package/dist/chunks/textarea.CcKbtQBs.js.map +1 -0
- package/dist/chunks/timeline-item.ScTrUBKC.js +364 -0
- package/dist/chunks/timeline-item.ScTrUBKC.js.map +1 -0
- package/dist/chunks/toast.0EYDj8o-.js +165 -0
- package/dist/chunks/toast.0EYDj8o-.js.map +1 -0
- package/dist/chunks/toggle-button.2U-vbQhk.js +83 -0
- package/dist/chunks/toggle-button.2U-vbQhk.js.map +1 -0
- package/dist/chunks/toggle.CiOVTWlk.js +121 -0
- package/dist/chunks/toggle.CiOVTWlk.js.map +1 -0
- package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.DR8rbIYw.js} +29 -32
- package/dist/chunks/tooltip.DR8rbIYw.js.map +1 -0
- package/dist/chunks/tutorial.DMm12L0S.js +335 -0
- package/dist/chunks/tutorial.DMm12L0S.js.map +1 -0
- package/dist/chunks/{index.dd30e538.js → typography.Bjtu3Gca.js} +30 -32
- package/dist/chunks/typography.Bjtu3Gca.js.map +1 -0
- package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
- package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
- package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.BifdE4ak.js} +4 -4
- package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.BifdE4ak.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.CVLzxvTi.js} +345 -346
- package/dist/chunks/use-cached-selected-values.CVLzxvTi.js.map +1 -0
- package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
- package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
- package/dist/chunks/{use-country-items.6b7985bf.js → use-country-items.C25TI6tp.js} +4 -4
- package/dist/chunks/{use-country-items.6b7985bf.js.map → use-country-items.C25TI6tp.js.map} +1 -1
- package/dist/chunks/{use-default-slot-validator.b9bff4c6.js → use-default-slot-validator.BDn0wkYP.js} +2 -2
- package/dist/chunks/{use-default-slot-validator.b9bff4c6.js.map → use-default-slot-validator.BDn0wkYP.js.map} +1 -1
- package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
- package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
- package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
- package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
- package/dist/chunks/{use-has-slot.fbeb19ec.js.map → use-has-slot.C9lQZ6nz.js.map} +1 -1
- package/dist/chunks/warning-filled.CLKRzGMT.js +24 -0
- package/dist/chunks/warning-filled.CLKRzGMT.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
- package/dist/click-outside.js +2 -20
- package/dist/click-outside.js.map +1 -1
- package/dist/code-snippet.js +5 -2050
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +8 -97
- package/dist/country.js.map +1 -1
- package/dist/currency.js +3 -112
- package/dist/currency.js.map +1 -1
- package/dist/dashboard-template.js +6 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/dashed-underline.js +5 -0
- package/dist/dashed-underline.js.map +1 -0
- package/dist/data-grid-template.js +2 -65
- package/dist/data-grid-template.js.map +1 -1
- package/dist/data-grid.js +8 -1978
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +5 -197
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +12 -227
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +5 -143
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +5 -2154
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +5 -192
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +2 -246
- package/dist/header.js.map +1 -1
- package/dist/image.js +4 -81
- package/dist/image.js.map +1 -1
- package/dist/index.js +276 -269
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -40
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +7 -217
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +15 -15
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +3 -47
- package/dist/loading-indicator.js.map +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +3 -197
- package/dist/modal-fullscreen.js.map +1 -1
- package/dist/modal.js +11 -451
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +2 -507
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +4 -4
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +6 -213
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +6 -90
- package/dist/search-bar.js.map +1 -1
- package/dist/secondary-nav.js +2 -100
- package/dist/secondary-nav.js.map +1 -1
- package/dist/segmented-control.js +4 -215
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -248
- package/dist/selection-card.js.map +1 -1
- package/dist/sidepanel.js +4 -189
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +3 -40
- package/dist/status.js.map +1 -1
- package/dist/stepper.js +5 -237
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +9 -584
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +3 -140
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -63
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +2 -209
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +7 -367
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -168
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +4 -120
- package/dist/toggle.js.map +1 -1
- package/dist/tutorial.js +2 -325
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +482 -305
- package/package.json +11 -10
- package/dist/assets/index11.css +0 -1
- package/dist/assets/index18.css +0 -1
- package/dist/assets/index33.css +0 -1
- package/dist/assets/index34.css +0 -1
- package/dist/assets/index35.css +0 -1
- package/dist/assets/index38.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/assets/index40.css +0 -1
- package/dist/assets/index44.css +0 -1
- package/dist/assets/index46.css +0 -1
- package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
- package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
- package/dist/chunks/1-generic-use.ccca5813.js +0 -5
- package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
- package/dist/chunks/2-generic-use.443db127.js +0 -5
- package/dist/chunks/2-generic-use.443db127.js.map +0 -1
- package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
- package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
- package/dist/chunks/3-generic-use.9f74667f.js +0 -5
- package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
- package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
- package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
- package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
- package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
- package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
- package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +0 -33
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +0 -1
- package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
- package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
- package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
- package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
- package/dist/chunks/adyen-giving.480913b5.js +0 -5
- package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
- package/dist/chunks/adyen-giving.54ed984c.js +0 -5
- package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
- package/dist/chunks/base-button.ad74b6f8.js +0 -88
- package/dist/chunks/button-actions.81db18e8.js +0 -111
- package/dist/chunks/button-actions.81db18e8.js.map +0 -1
- package/dist/chunks/button.9d6435ae.js +0 -100
- package/dist/chunks/button.9d6435ae.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.345311d2.js +0 -26
- package/dist/chunks/checkmark.a6ed8f47.js +0 -26
- package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
- package/dist/chunks/dropdown.10c034aa.js.map +0 -1
- package/dist/chunks/error-message.31ec12b7.js +0 -111
- package/dist/chunks/events.58c00e6d.js +0 -50
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.15b088b9.js.map +0 -1
- package/dist/chunks/index.1ea85d4a.js.map +0 -1
- package/dist/chunks/index.317fca12.js.map +0 -1
- package/dist/chunks/index.671768a1.js.map +0 -1
- package/dist/chunks/index.7eefc59c.js.map +0 -1
- package/dist/chunks/index.885d05a9.js +0 -32
- package/dist/chunks/index.885d05a9.js.map +0 -1
- package/dist/chunks/index.8b8c3b16.js.map +0 -1
- package/dist/chunks/index.aaf965f8.js +0 -147
- package/dist/chunks/index.aaf965f8.js.map +0 -1
- package/dist/chunks/index.b21197ca.js.map +0 -1
- package/dist/chunks/index.d553d3d1.js.map +0 -1
- package/dist/chunks/index.dd30e538.js.map +0 -1
- package/dist/chunks/internal-error.35cbb071.js +0 -5
- package/dist/chunks/internal-error.35cbb071.js.map +0 -1
- package/dist/chunks/internal-error.9a4823ed.js +0 -5
- package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
- package/dist/chunks/listbox-option-tag.6bbb6bbe.js +0 -107
- package/dist/chunks/listbox-option-tag.6bbb6bbe.js.map +0 -1
- package/dist/chunks/no-results-found.58856d70.js +0 -5
- package/dist/chunks/no-results-found.58856d70.js.map +0 -1
- package/dist/chunks/no-results-found.cbb12f78.js +0 -5
- package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
- package/dist/chunks/notifications-cleared.71025c22.js +0 -5
- package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
- package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
- package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
- package/dist/chunks/page-not-found.a500440d.js +0 -5
- package/dist/chunks/page-not-found.a500440d.js.map +0 -1
- package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
- package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
- package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
- package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
- package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
- package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
- package/dist/chunks/radio-input.c6550a9c.js.map +0 -1
- package/dist/chunks/referrals.178ce0eb.js +0 -5
- package/dist/chunks/referrals.178ce0eb.js.map +0 -1
- package/dist/chunks/referrals.599047da.js +0 -5
- package/dist/chunks/referrals.599047da.js.map +0 -1
- package/dist/chunks/success.41981fe8.js +0 -5
- package/dist/chunks/success.41981fe8.js.map +0 -1
- package/dist/chunks/success.77fac78b.js +0 -5
- package/dist/chunks/success.77fac78b.js.map +0 -1
- package/dist/chunks/tooltip.58ef3f4a.js.map +0 -1
- package/dist/chunks/upload-files.2708eca7.js +0 -5
- package/dist/chunks/upload-files.2708eca7.js.map +0 -1
- package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
- package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
- package/dist/chunks/use-has-slot.fbeb19ec.js +0 -6
- package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
- package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
- package/dist/chunks/wrong-environment.f890a237.js +0 -5
- package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
- /package/dist/assets/{index5.css → avatar-image.css} +0 -0
- /package/dist/assets/{index.css → badge.css} +0 -0
- /package/dist/assets/{index8.css → checkbox-group.css} +0 -0
- /package/dist/assets/{index10.css → country.css} +0 -0
- /package/dist/assets/{index12.css → date-picker.css} +0 -0
- /package/dist/assets/{index13.css → date-range-picker.css} +0 -0
- /package/dist/assets/{index14.css → divider.css} +0 -0
- /package/dist/assets/{index16.css → dropdown-tag.css} +0 -0
- /package/dist/assets/{index17.css → empty-state.css} +0 -0
- /package/dist/assets/{index19.css → focus-trap.css} +0 -0
- /package/dist/assets/{index21.css → header.css} +0 -0
- /package/dist/assets/{index27.css → info-icon.css} +0 -0
- /package/dist/assets/{index42.css → link.css} +0 -0
- /package/dist/assets/{index23.css → loading-indicator.css} +0 -0
- /package/dist/assets/{index24.css → pagination.css} +0 -0
- /package/dist/assets/{index45.css → popper-container.css} +0 -0
- /package/dist/assets/{index20.css → radio-group.css} +0 -0
- /package/dist/assets/{index47.css → search-bar.css} +0 -0
- /package/dist/assets/{index48.css → secondary-nav.css} +0 -0
- /package/dist/assets/{index39.css → step.css} +0 -0
- /package/dist/assets/{index41.css → summary-grid-item-custom.css} +0 -0
- /package/dist/assets/{index36.css → tag.css} +0 -0
- /package/dist/assets/{index30.css → textarea.css} +0 -0
- /package/dist/assets/{index31.css → timeline-item.css} +0 -0
- /package/dist/assets/{index32.css → toast.css} +0 -0
- /package/dist/assets/{index6.css → toggle-button.css} +0 -0
- /package/dist/assets/{index29.css → typography.css} +0 -0
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
import { defineComponent as oe, ref as L, computed as k, shallowRef as P, onMounted as re, watch as ie, watchEffect as se } from "vue";
|
|
2
|
+
import { highlightActiveLine as le, keymap as ce, EditorView as J, lineNumbers as de } from "@codemirror/view";
|
|
3
|
+
import { EditorSelection as ge, Compartment as j, EditorState as G } from "@codemirror/state";
|
|
4
|
+
import { indentWithTab as ue, history as pe } from "@codemirror/commands";
|
|
5
|
+
import { syntaxHighlighting as fe, HighlightStyle as me } from "@codemirror/language";
|
|
6
|
+
import { B as he } from "./dropdown.yhhQCKve.js";
|
|
7
|
+
import { B as be } from "./button.DhAUh5JA.js";
|
|
8
|
+
import { B as ye } from "./typography.Bjtu3Gca.js";
|
|
9
|
+
import { B as ve } from "./loading-indicator.DXc7I1Lm.js";
|
|
10
|
+
import { u as _e } from "./i18n.BQkEbtPM.js";
|
|
11
|
+
import { n as q } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
12
|
+
import { h as Ne } from "./base-modal.C5I7bR0d.js";
|
|
13
|
+
import { C as ke } from "./copy.BtFWFG3q.js";
|
|
14
|
+
import { json as we } from "@codemirror/lang-json";
|
|
15
|
+
import { xml as Ce } from "@codemirror/lang-xml";
|
|
16
|
+
import { javascript as xe } from "@codemirror/lang-javascript";
|
|
17
|
+
import { java as Le } from "@codemirror/lang-java";
|
|
18
|
+
import { python as Ae } from "@codemirror/lang-python";
|
|
19
|
+
import { B as Oe } from "./tooltip.DR8rbIYw.js";
|
|
20
|
+
import "../assets/code-snippet.css";
|
|
21
|
+
let Ie = 0;
|
|
22
|
+
class l {
|
|
23
|
+
/**
|
|
24
|
+
Create a new node prop type.
|
|
25
|
+
*/
|
|
26
|
+
constructor(e = {}) {
|
|
27
|
+
this.id = Ie++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
|
|
28
|
+
throw new Error("This node type doesn't define a deserialize function");
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
This is meant to be used with
|
|
33
|
+
[`NodeSet.extend`](#common.NodeSet.extend) or
|
|
34
|
+
[`LRParser.configure`](#lr.ParserConfig.props) to compute
|
|
35
|
+
prop values for each node type in the set. Takes a [match
|
|
36
|
+
object](#common.NodeType^match) or function that returns undefined
|
|
37
|
+
if the node type doesn't get this prop, and the prop's value if
|
|
38
|
+
it does.
|
|
39
|
+
*/
|
|
40
|
+
add(e) {
|
|
41
|
+
if (this.perNode)
|
|
42
|
+
throw new RangeError("Can't add per-node props to node types");
|
|
43
|
+
return typeof e != "function" && (e = x.match(e)), (o) => {
|
|
44
|
+
let r = e(o);
|
|
45
|
+
return r === void 0 ? null : [this, r];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
l.closedBy = new l({ deserialize: (t) => t.split(" ") });
|
|
50
|
+
l.openedBy = new l({ deserialize: (t) => t.split(" ") });
|
|
51
|
+
l.group = new l({ deserialize: (t) => t.split(" ") });
|
|
52
|
+
l.isolate = new l({ deserialize: (t) => {
|
|
53
|
+
if (t && t != "rtl" && t != "ltr" && t != "auto")
|
|
54
|
+
throw new RangeError("Invalid value for isolate: " + t);
|
|
55
|
+
return t || "auto";
|
|
56
|
+
} });
|
|
57
|
+
l.contextHash = new l({ perNode: !0 });
|
|
58
|
+
l.lookAhead = new l({ perNode: !0 });
|
|
59
|
+
l.mounted = new l({ perNode: !0 });
|
|
60
|
+
const Ee = /* @__PURE__ */ Object.create(null);
|
|
61
|
+
class x {
|
|
62
|
+
/**
|
|
63
|
+
@internal
|
|
64
|
+
*/
|
|
65
|
+
constructor(e, o, r, s = 0) {
|
|
66
|
+
this.name = e, this.props = o, this.id = r, this.flags = s;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
Define a node type.
|
|
70
|
+
*/
|
|
71
|
+
static define(e) {
|
|
72
|
+
let o = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Ee, r = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), s = new x(e.name || "", o, e.id, r);
|
|
73
|
+
if (e.props) {
|
|
74
|
+
for (let i of e.props)
|
|
75
|
+
if (Array.isArray(i) || (i = i(s)), i) {
|
|
76
|
+
if (i[0].perNode)
|
|
77
|
+
throw new RangeError("Can't store a per-node prop on a node type");
|
|
78
|
+
o[i[0].id] = i[1];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return s;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
Retrieves a node prop for this type. Will return `undefined` if
|
|
85
|
+
the prop isn't present on this node.
|
|
86
|
+
*/
|
|
87
|
+
prop(e) {
|
|
88
|
+
return this.props[e.id];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
True when this is the top node of a grammar.
|
|
92
|
+
*/
|
|
93
|
+
get isTop() {
|
|
94
|
+
return (this.flags & 1) > 0;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
True when this node is produced by a skip rule.
|
|
98
|
+
*/
|
|
99
|
+
get isSkipped() {
|
|
100
|
+
return (this.flags & 2) > 0;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
Indicates whether this is an error node.
|
|
104
|
+
*/
|
|
105
|
+
get isError() {
|
|
106
|
+
return (this.flags & 4) > 0;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
When true, this node type doesn't correspond to a user-declared
|
|
110
|
+
named node, for example because it is used to cache repetition.
|
|
111
|
+
*/
|
|
112
|
+
get isAnonymous() {
|
|
113
|
+
return (this.flags & 8) > 0;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
Returns true when this node's name or one of its
|
|
117
|
+
[groups](#common.NodeProp^group) matches the given string.
|
|
118
|
+
*/
|
|
119
|
+
is(e) {
|
|
120
|
+
if (typeof e == "string") {
|
|
121
|
+
if (this.name == e)
|
|
122
|
+
return !0;
|
|
123
|
+
let o = this.prop(l.group);
|
|
124
|
+
return o ? o.indexOf(e) > -1 : !1;
|
|
125
|
+
}
|
|
126
|
+
return this.id == e;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
Create a function from node types to arbitrary values by
|
|
130
|
+
specifying an object whose property names are node or
|
|
131
|
+
[group](#common.NodeProp^group) names. Often useful with
|
|
132
|
+
[`NodeProp.add`](#common.NodeProp.add). You can put multiple
|
|
133
|
+
names, separated by spaces, in a single property name to map
|
|
134
|
+
multiple node names to a single value.
|
|
135
|
+
*/
|
|
136
|
+
static match(e) {
|
|
137
|
+
let o = /* @__PURE__ */ Object.create(null);
|
|
138
|
+
for (let r in e)
|
|
139
|
+
for (let s of r.split(" "))
|
|
140
|
+
o[s] = e[r];
|
|
141
|
+
return (r) => {
|
|
142
|
+
for (let s = r.prop(l.group), i = -1; i < (s ? s.length : 0); i++) {
|
|
143
|
+
let c = o[i < 0 ? r.name : s[i]];
|
|
144
|
+
if (c)
|
|
145
|
+
return c;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
x.none = new x(
|
|
151
|
+
"",
|
|
152
|
+
/* @__PURE__ */ Object.create(null),
|
|
153
|
+
0,
|
|
154
|
+
8
|
|
155
|
+
/* NodeFlag.Anonymous */
|
|
156
|
+
);
|
|
157
|
+
var K;
|
|
158
|
+
(function(t) {
|
|
159
|
+
t[t.ExcludeBuffers = 1] = "ExcludeBuffers", t[t.IncludeAnonymous = 2] = "IncludeAnonymous", t[t.IgnoreMounts = 4] = "IgnoreMounts", t[t.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
160
|
+
})(K || (K = {}));
|
|
161
|
+
new l({ perNode: !0 });
|
|
162
|
+
let Te = 0;
|
|
163
|
+
class f {
|
|
164
|
+
/**
|
|
165
|
+
@internal
|
|
166
|
+
*/
|
|
167
|
+
constructor(e, o, r) {
|
|
168
|
+
this.set = e, this.base = o, this.modified = r, this.id = Te++;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
Define a new tag. If `parent` is given, the tag is treated as a
|
|
172
|
+
sub-tag of that parent, and
|
|
173
|
+
[highlighters](#highlight.tagHighlighter) that don't mention
|
|
174
|
+
this tag will try to fall back to the parent tag (or grandparent
|
|
175
|
+
tag, etc).
|
|
176
|
+
*/
|
|
177
|
+
static define(e) {
|
|
178
|
+
if (e != null && e.base)
|
|
179
|
+
throw new Error("Can not derive from a modified tag");
|
|
180
|
+
let o = new f([], null, []);
|
|
181
|
+
if (o.set.push(o), e)
|
|
182
|
+
for (let r of e.set)
|
|
183
|
+
o.set.push(r);
|
|
184
|
+
return o;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
Define a tag _modifier_, which is a function that, given a tag,
|
|
188
|
+
will return a tag that is a subtag of the original. Applying the
|
|
189
|
+
same modifier to a twice tag will return the same value (`m1(t1)
|
|
190
|
+
== m1(t1)`) and applying multiple modifiers will, regardless or
|
|
191
|
+
order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
|
|
192
|
+
|
|
193
|
+
When multiple modifiers are applied to a given base tag, each
|
|
194
|
+
smaller set of modifiers is registered as a parent, so that for
|
|
195
|
+
example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
|
|
196
|
+
`m1(m3(t1)`, and so on.
|
|
197
|
+
*/
|
|
198
|
+
static defineModifier() {
|
|
199
|
+
let e = new T();
|
|
200
|
+
return (o) => o.modified.indexOf(e) > -1 ? o : T.get(o.base || o, o.modified.concat(e).sort((r, s) => r.id - s.id));
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
let Be = 0;
|
|
204
|
+
class T {
|
|
205
|
+
constructor() {
|
|
206
|
+
this.instances = [], this.id = Be++;
|
|
207
|
+
}
|
|
208
|
+
static get(e, o) {
|
|
209
|
+
if (!o.length)
|
|
210
|
+
return e;
|
|
211
|
+
let r = o[0].instances.find((d) => d.base == e && Se(o, d.modified));
|
|
212
|
+
if (r)
|
|
213
|
+
return r;
|
|
214
|
+
let s = [], i = new f(s, e, o);
|
|
215
|
+
for (let d of o)
|
|
216
|
+
d.instances.push(i);
|
|
217
|
+
let c = He(o);
|
|
218
|
+
for (let d of e.set)
|
|
219
|
+
if (!d.modified.length)
|
|
220
|
+
for (let _ of c)
|
|
221
|
+
s.push(T.get(d, _));
|
|
222
|
+
return i;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
function Se(t, e) {
|
|
226
|
+
return t.length == e.length && t.every((o, r) => o == e[r]);
|
|
227
|
+
}
|
|
228
|
+
function He(t) {
|
|
229
|
+
let e = [[]];
|
|
230
|
+
for (let o = 0; o < t.length; o++)
|
|
231
|
+
for (let r = 0, s = e.length; r < s; r++)
|
|
232
|
+
e.push(e[r].concat(t[o]));
|
|
233
|
+
return e.sort((o, r) => r.length - o.length);
|
|
234
|
+
}
|
|
235
|
+
new l();
|
|
236
|
+
function Me(t, e) {
|
|
237
|
+
let o = /* @__PURE__ */ Object.create(null);
|
|
238
|
+
for (let i of t)
|
|
239
|
+
if (!Array.isArray(i.tag))
|
|
240
|
+
o[i.tag.id] = i.class;
|
|
241
|
+
else
|
|
242
|
+
for (let c of i.tag)
|
|
243
|
+
o[c.id] = i.class;
|
|
244
|
+
let { scope: r, all: s = null } = {};
|
|
245
|
+
return {
|
|
246
|
+
style: (i) => {
|
|
247
|
+
let c = s;
|
|
248
|
+
for (let d of i)
|
|
249
|
+
for (let _ of d.set) {
|
|
250
|
+
let N = o[_.id];
|
|
251
|
+
if (N) {
|
|
252
|
+
c = c ? c + " " + N : N;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
return c;
|
|
257
|
+
},
|
|
258
|
+
scope: r
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
const a = f.define, A = a(), m = a(), U = a(m), F = a(m), h = a(), O = a(h), R = a(h), p = a(), v = a(p), g = a(), u = a(), V = a(), w = a(V), I = a(), n = {
|
|
262
|
+
/**
|
|
263
|
+
A comment.
|
|
264
|
+
*/
|
|
265
|
+
comment: A,
|
|
266
|
+
/**
|
|
267
|
+
A line [comment](#highlight.tags.comment).
|
|
268
|
+
*/
|
|
269
|
+
lineComment: a(A),
|
|
270
|
+
/**
|
|
271
|
+
A block [comment](#highlight.tags.comment).
|
|
272
|
+
*/
|
|
273
|
+
blockComment: a(A),
|
|
274
|
+
/**
|
|
275
|
+
A documentation [comment](#highlight.tags.comment).
|
|
276
|
+
*/
|
|
277
|
+
docComment: a(A),
|
|
278
|
+
/**
|
|
279
|
+
Any kind of identifier.
|
|
280
|
+
*/
|
|
281
|
+
name: m,
|
|
282
|
+
/**
|
|
283
|
+
The [name](#highlight.tags.name) of a variable.
|
|
284
|
+
*/
|
|
285
|
+
variableName: a(m),
|
|
286
|
+
/**
|
|
287
|
+
A type [name](#highlight.tags.name).
|
|
288
|
+
*/
|
|
289
|
+
typeName: U,
|
|
290
|
+
/**
|
|
291
|
+
A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
|
|
292
|
+
*/
|
|
293
|
+
tagName: a(U),
|
|
294
|
+
/**
|
|
295
|
+
A property or field [name](#highlight.tags.name).
|
|
296
|
+
*/
|
|
297
|
+
propertyName: F,
|
|
298
|
+
/**
|
|
299
|
+
An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
|
|
300
|
+
*/
|
|
301
|
+
attributeName: a(F),
|
|
302
|
+
/**
|
|
303
|
+
The [name](#highlight.tags.name) of a class.
|
|
304
|
+
*/
|
|
305
|
+
className: a(m),
|
|
306
|
+
/**
|
|
307
|
+
A label [name](#highlight.tags.name).
|
|
308
|
+
*/
|
|
309
|
+
labelName: a(m),
|
|
310
|
+
/**
|
|
311
|
+
A namespace [name](#highlight.tags.name).
|
|
312
|
+
*/
|
|
313
|
+
namespace: a(m),
|
|
314
|
+
/**
|
|
315
|
+
The [name](#highlight.tags.name) of a macro.
|
|
316
|
+
*/
|
|
317
|
+
macroName: a(m),
|
|
318
|
+
/**
|
|
319
|
+
A literal value.
|
|
320
|
+
*/
|
|
321
|
+
literal: h,
|
|
322
|
+
/**
|
|
323
|
+
A string [literal](#highlight.tags.literal).
|
|
324
|
+
*/
|
|
325
|
+
string: O,
|
|
326
|
+
/**
|
|
327
|
+
A documentation [string](#highlight.tags.string).
|
|
328
|
+
*/
|
|
329
|
+
docString: a(O),
|
|
330
|
+
/**
|
|
331
|
+
A character literal (subtag of [string](#highlight.tags.string)).
|
|
332
|
+
*/
|
|
333
|
+
character: a(O),
|
|
334
|
+
/**
|
|
335
|
+
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
336
|
+
*/
|
|
337
|
+
attributeValue: a(O),
|
|
338
|
+
/**
|
|
339
|
+
A number [literal](#highlight.tags.literal).
|
|
340
|
+
*/
|
|
341
|
+
number: R,
|
|
342
|
+
/**
|
|
343
|
+
An integer [number](#highlight.tags.number) literal.
|
|
344
|
+
*/
|
|
345
|
+
integer: a(R),
|
|
346
|
+
/**
|
|
347
|
+
A floating-point [number](#highlight.tags.number) literal.
|
|
348
|
+
*/
|
|
349
|
+
float: a(R),
|
|
350
|
+
/**
|
|
351
|
+
A boolean [literal](#highlight.tags.literal).
|
|
352
|
+
*/
|
|
353
|
+
bool: a(h),
|
|
354
|
+
/**
|
|
355
|
+
Regular expression [literal](#highlight.tags.literal).
|
|
356
|
+
*/
|
|
357
|
+
regexp: a(h),
|
|
358
|
+
/**
|
|
359
|
+
An escape [literal](#highlight.tags.literal), for example a
|
|
360
|
+
backslash escape in a string.
|
|
361
|
+
*/
|
|
362
|
+
escape: a(h),
|
|
363
|
+
/**
|
|
364
|
+
A color [literal](#highlight.tags.literal).
|
|
365
|
+
*/
|
|
366
|
+
color: a(h),
|
|
367
|
+
/**
|
|
368
|
+
A URL [literal](#highlight.tags.literal).
|
|
369
|
+
*/
|
|
370
|
+
url: a(h),
|
|
371
|
+
/**
|
|
372
|
+
A language keyword.
|
|
373
|
+
*/
|
|
374
|
+
keyword: g,
|
|
375
|
+
/**
|
|
376
|
+
The [keyword](#highlight.tags.keyword) for the self or this
|
|
377
|
+
object.
|
|
378
|
+
*/
|
|
379
|
+
self: a(g),
|
|
380
|
+
/**
|
|
381
|
+
The [keyword](#highlight.tags.keyword) for null.
|
|
382
|
+
*/
|
|
383
|
+
null: a(g),
|
|
384
|
+
/**
|
|
385
|
+
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
386
|
+
*/
|
|
387
|
+
atom: a(g),
|
|
388
|
+
/**
|
|
389
|
+
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
390
|
+
*/
|
|
391
|
+
unit: a(g),
|
|
392
|
+
/**
|
|
393
|
+
A modifier [keyword](#highlight.tags.keyword).
|
|
394
|
+
*/
|
|
395
|
+
modifier: a(g),
|
|
396
|
+
/**
|
|
397
|
+
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
398
|
+
*/
|
|
399
|
+
operatorKeyword: a(g),
|
|
400
|
+
/**
|
|
401
|
+
A control-flow related [keyword](#highlight.tags.keyword).
|
|
402
|
+
*/
|
|
403
|
+
controlKeyword: a(g),
|
|
404
|
+
/**
|
|
405
|
+
A [keyword](#highlight.tags.keyword) that defines something.
|
|
406
|
+
*/
|
|
407
|
+
definitionKeyword: a(g),
|
|
408
|
+
/**
|
|
409
|
+
A [keyword](#highlight.tags.keyword) related to defining or
|
|
410
|
+
interfacing with modules.
|
|
411
|
+
*/
|
|
412
|
+
moduleKeyword: a(g),
|
|
413
|
+
/**
|
|
414
|
+
An operator.
|
|
415
|
+
*/
|
|
416
|
+
operator: u,
|
|
417
|
+
/**
|
|
418
|
+
An [operator](#highlight.tags.operator) that dereferences something.
|
|
419
|
+
*/
|
|
420
|
+
derefOperator: a(u),
|
|
421
|
+
/**
|
|
422
|
+
Arithmetic-related [operator](#highlight.tags.operator).
|
|
423
|
+
*/
|
|
424
|
+
arithmeticOperator: a(u),
|
|
425
|
+
/**
|
|
426
|
+
Logical [operator](#highlight.tags.operator).
|
|
427
|
+
*/
|
|
428
|
+
logicOperator: a(u),
|
|
429
|
+
/**
|
|
430
|
+
Bit [operator](#highlight.tags.operator).
|
|
431
|
+
*/
|
|
432
|
+
bitwiseOperator: a(u),
|
|
433
|
+
/**
|
|
434
|
+
Comparison [operator](#highlight.tags.operator).
|
|
435
|
+
*/
|
|
436
|
+
compareOperator: a(u),
|
|
437
|
+
/**
|
|
438
|
+
[Operator](#highlight.tags.operator) that updates its operand.
|
|
439
|
+
*/
|
|
440
|
+
updateOperator: a(u),
|
|
441
|
+
/**
|
|
442
|
+
[Operator](#highlight.tags.operator) that defines something.
|
|
443
|
+
*/
|
|
444
|
+
definitionOperator: a(u),
|
|
445
|
+
/**
|
|
446
|
+
Type-related [operator](#highlight.tags.operator).
|
|
447
|
+
*/
|
|
448
|
+
typeOperator: a(u),
|
|
449
|
+
/**
|
|
450
|
+
Control-flow [operator](#highlight.tags.operator).
|
|
451
|
+
*/
|
|
452
|
+
controlOperator: a(u),
|
|
453
|
+
/**
|
|
454
|
+
Program or markup punctuation.
|
|
455
|
+
*/
|
|
456
|
+
punctuation: V,
|
|
457
|
+
/**
|
|
458
|
+
[Punctuation](#highlight.tags.punctuation) that separates
|
|
459
|
+
things.
|
|
460
|
+
*/
|
|
461
|
+
separator: a(V),
|
|
462
|
+
/**
|
|
463
|
+
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
464
|
+
*/
|
|
465
|
+
bracket: w,
|
|
466
|
+
/**
|
|
467
|
+
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
468
|
+
tokens).
|
|
469
|
+
*/
|
|
470
|
+
angleBracket: a(w),
|
|
471
|
+
/**
|
|
472
|
+
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
473
|
+
tokens).
|
|
474
|
+
*/
|
|
475
|
+
squareBracket: a(w),
|
|
476
|
+
/**
|
|
477
|
+
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
478
|
+
[bracket](#highlight.tags.bracket).
|
|
479
|
+
*/
|
|
480
|
+
paren: a(w),
|
|
481
|
+
/**
|
|
482
|
+
Braces (usually `{` and `}` tokens). Subtag of
|
|
483
|
+
[bracket](#highlight.tags.bracket).
|
|
484
|
+
*/
|
|
485
|
+
brace: a(w),
|
|
486
|
+
/**
|
|
487
|
+
Content, for example plain text in XML or markup documents.
|
|
488
|
+
*/
|
|
489
|
+
content: p,
|
|
490
|
+
/**
|
|
491
|
+
[Content](#highlight.tags.content) that represents a heading.
|
|
492
|
+
*/
|
|
493
|
+
heading: v,
|
|
494
|
+
/**
|
|
495
|
+
A level 1 [heading](#highlight.tags.heading).
|
|
496
|
+
*/
|
|
497
|
+
heading1: a(v),
|
|
498
|
+
/**
|
|
499
|
+
A level 2 [heading](#highlight.tags.heading).
|
|
500
|
+
*/
|
|
501
|
+
heading2: a(v),
|
|
502
|
+
/**
|
|
503
|
+
A level 3 [heading](#highlight.tags.heading).
|
|
504
|
+
*/
|
|
505
|
+
heading3: a(v),
|
|
506
|
+
/**
|
|
507
|
+
A level 4 [heading](#highlight.tags.heading).
|
|
508
|
+
*/
|
|
509
|
+
heading4: a(v),
|
|
510
|
+
/**
|
|
511
|
+
A level 5 [heading](#highlight.tags.heading).
|
|
512
|
+
*/
|
|
513
|
+
heading5: a(v),
|
|
514
|
+
/**
|
|
515
|
+
A level 6 [heading](#highlight.tags.heading).
|
|
516
|
+
*/
|
|
517
|
+
heading6: a(v),
|
|
518
|
+
/**
|
|
519
|
+
A prose separator (such as a horizontal rule).
|
|
520
|
+
*/
|
|
521
|
+
contentSeparator: a(p),
|
|
522
|
+
/**
|
|
523
|
+
[Content](#highlight.tags.content) that represents a list.
|
|
524
|
+
*/
|
|
525
|
+
list: a(p),
|
|
526
|
+
/**
|
|
527
|
+
[Content](#highlight.tags.content) that represents a quote.
|
|
528
|
+
*/
|
|
529
|
+
quote: a(p),
|
|
530
|
+
/**
|
|
531
|
+
[Content](#highlight.tags.content) that is emphasized.
|
|
532
|
+
*/
|
|
533
|
+
emphasis: a(p),
|
|
534
|
+
/**
|
|
535
|
+
[Content](#highlight.tags.content) that is styled strong.
|
|
536
|
+
*/
|
|
537
|
+
strong: a(p),
|
|
538
|
+
/**
|
|
539
|
+
[Content](#highlight.tags.content) that is part of a link.
|
|
540
|
+
*/
|
|
541
|
+
link: a(p),
|
|
542
|
+
/**
|
|
543
|
+
[Content](#highlight.tags.content) that is styled as code or
|
|
544
|
+
monospace.
|
|
545
|
+
*/
|
|
546
|
+
monospace: a(p),
|
|
547
|
+
/**
|
|
548
|
+
[Content](#highlight.tags.content) that has a strike-through
|
|
549
|
+
style.
|
|
550
|
+
*/
|
|
551
|
+
strikethrough: a(p),
|
|
552
|
+
/**
|
|
553
|
+
Inserted text in a change-tracking format.
|
|
554
|
+
*/
|
|
555
|
+
inserted: a(),
|
|
556
|
+
/**
|
|
557
|
+
Deleted text.
|
|
558
|
+
*/
|
|
559
|
+
deleted: a(),
|
|
560
|
+
/**
|
|
561
|
+
Changed text.
|
|
562
|
+
*/
|
|
563
|
+
changed: a(),
|
|
564
|
+
/**
|
|
565
|
+
An invalid or unsyntactic element.
|
|
566
|
+
*/
|
|
567
|
+
invalid: a(),
|
|
568
|
+
/**
|
|
569
|
+
Metadata or meta-instruction.
|
|
570
|
+
*/
|
|
571
|
+
meta: I,
|
|
572
|
+
/**
|
|
573
|
+
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
574
|
+
document.
|
|
575
|
+
*/
|
|
576
|
+
documentMeta: a(I),
|
|
577
|
+
/**
|
|
578
|
+
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
579
|
+
attributes to a given syntactic element.
|
|
580
|
+
*/
|
|
581
|
+
annotation: a(I),
|
|
582
|
+
/**
|
|
583
|
+
Processing instruction or preprocessor directive. Subtag of
|
|
584
|
+
[meta](#highlight.tags.meta).
|
|
585
|
+
*/
|
|
586
|
+
processingInstruction: a(I),
|
|
587
|
+
/**
|
|
588
|
+
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
589
|
+
given element is being defined. Expected to be used with the
|
|
590
|
+
various [name](#highlight.tags.name) tags.
|
|
591
|
+
*/
|
|
592
|
+
definition: f.defineModifier(),
|
|
593
|
+
/**
|
|
594
|
+
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
595
|
+
something is constant. Mostly expected to be used with
|
|
596
|
+
[variable names](#highlight.tags.variableName).
|
|
597
|
+
*/
|
|
598
|
+
constant: f.defineModifier(),
|
|
599
|
+
/**
|
|
600
|
+
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
601
|
+
a [variable](#highlight.tags.variableName) or [property
|
|
602
|
+
name](#highlight.tags.propertyName) is being called or defined
|
|
603
|
+
as a function.
|
|
604
|
+
*/
|
|
605
|
+
function: f.defineModifier(),
|
|
606
|
+
/**
|
|
607
|
+
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
608
|
+
[names](#highlight.tags.name) to indicate that they belong to
|
|
609
|
+
the language's standard environment.
|
|
610
|
+
*/
|
|
611
|
+
standard: f.defineModifier(),
|
|
612
|
+
/**
|
|
613
|
+
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
614
|
+
[names](#highlight.tags.name) is local to some scope.
|
|
615
|
+
*/
|
|
616
|
+
local: f.defineModifier(),
|
|
617
|
+
/**
|
|
618
|
+
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
619
|
+
can be used to tag language-specific alternative variants of
|
|
620
|
+
some common tag. It is recommended for themes to define special
|
|
621
|
+
forms of at least the [string](#highlight.tags.string) and
|
|
622
|
+
[variable name](#highlight.tags.variableName) tags, since those
|
|
623
|
+
come up a lot.
|
|
624
|
+
*/
|
|
625
|
+
special: f.defineModifier()
|
|
626
|
+
};
|
|
627
|
+
Me([
|
|
628
|
+
{ tag: n.link, class: "tok-link" },
|
|
629
|
+
{ tag: n.heading, class: "tok-heading" },
|
|
630
|
+
{ tag: n.emphasis, class: "tok-emphasis" },
|
|
631
|
+
{ tag: n.strong, class: "tok-strong" },
|
|
632
|
+
{ tag: n.keyword, class: "tok-keyword" },
|
|
633
|
+
{ tag: n.atom, class: "tok-atom" },
|
|
634
|
+
{ tag: n.bool, class: "tok-bool" },
|
|
635
|
+
{ tag: n.url, class: "tok-url" },
|
|
636
|
+
{ tag: n.labelName, class: "tok-labelName" },
|
|
637
|
+
{ tag: n.inserted, class: "tok-inserted" },
|
|
638
|
+
{ tag: n.deleted, class: "tok-deleted" },
|
|
639
|
+
{ tag: n.literal, class: "tok-literal" },
|
|
640
|
+
{ tag: n.string, class: "tok-string" },
|
|
641
|
+
{ tag: n.number, class: "tok-number" },
|
|
642
|
+
{ tag: [n.regexp, n.escape, n.special(n.string)], class: "tok-string2" },
|
|
643
|
+
{ tag: n.variableName, class: "tok-variableName" },
|
|
644
|
+
{ tag: n.local(n.variableName), class: "tok-variableName tok-local" },
|
|
645
|
+
{ tag: n.definition(n.variableName), class: "tok-variableName tok-definition" },
|
|
646
|
+
{ tag: n.special(n.variableName), class: "tok-variableName2" },
|
|
647
|
+
{ tag: n.definition(n.propertyName), class: "tok-propertyName tok-definition" },
|
|
648
|
+
{ tag: n.typeName, class: "tok-typeName" },
|
|
649
|
+
{ tag: n.namespace, class: "tok-namespace" },
|
|
650
|
+
{ tag: n.className, class: "tok-className" },
|
|
651
|
+
{ tag: n.macroName, class: "tok-macroName" },
|
|
652
|
+
{ tag: n.propertyName, class: "tok-propertyName" },
|
|
653
|
+
{ tag: n.operator, class: "tok-operator" },
|
|
654
|
+
{ tag: n.comment, class: "tok-comment" },
|
|
655
|
+
{ tag: n.meta, class: "tok-meta" },
|
|
656
|
+
{ tag: n.invalid, class: "tok-invalid" },
|
|
657
|
+
{ tag: n.punctuation, class: "tok-punctuation" }
|
|
658
|
+
]);
|
|
659
|
+
const je = "#c72727", Re = "#9b5700", Ve = "#067934", $e = "#0063d7", ze = {
|
|
660
|
+
red: je,
|
|
661
|
+
orange: Re,
|
|
662
|
+
green: Ve,
|
|
663
|
+
blue: $e,
|
|
664
|
+
invalid: "#ffffff"
|
|
665
|
+
}, De = (t) => me.define([
|
|
666
|
+
{
|
|
667
|
+
tag: n.keyword,
|
|
668
|
+
color: t.red
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
tag: [n.name, n.deleted, n.character, n.propertyName, n.macroName],
|
|
672
|
+
color: t.green
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
tag: [n.function(n.variableName), n.labelName],
|
|
676
|
+
color: t.blue
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
tag: [n.color, n.constant(n.name), n.standard(n.name)],
|
|
680
|
+
color: t.red
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
tag: [n.definition(n.name), n.separator],
|
|
684
|
+
color: t.red
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
tag: [n.typeName, n.className, n.number, n.changed, n.annotation, n.modifier, n.self, n.namespace],
|
|
688
|
+
color: t.orange
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
tag: [n.operator, n.operatorKeyword, n.url, n.escape, n.regexp, n.link, n.special(n.string)],
|
|
692
|
+
color: t.blue
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
tag: [n.meta, n.comment],
|
|
696
|
+
color: t.orange
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
tag: n.strong,
|
|
700
|
+
fontWeight: "bold"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
tag: n.emphasis,
|
|
704
|
+
fontStyle: "italic"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
tag: n.strikethrough,
|
|
708
|
+
textDecoration: "line-through"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
tag: n.link,
|
|
712
|
+
color: t.orange,
|
|
713
|
+
textDecoration: "underline"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
tag: n.heading,
|
|
717
|
+
fontWeight: "bold",
|
|
718
|
+
color: t.blue
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
tag: [n.atom, n.bool, n.special(n.variableName)],
|
|
722
|
+
color: t.red
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
tag: [n.processingInstruction, n.string, n.inserted],
|
|
726
|
+
color: t.blue
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
tag: n.invalid,
|
|
730
|
+
color: t.invalid
|
|
731
|
+
}
|
|
732
|
+
]), Pe = fe(De(ze));
|
|
733
|
+
var E = /* @__PURE__ */ ((t) => (t.INLINE = "inline", t.SINGLELINE = "singleline", t.MULTILINE = "multiline", t))(E || {}), b = /* @__PURE__ */ ((t) => (t.JSON = "json", t.XML = "xml", t.JAVA = "java", t.JAVASCRIPT = "javascript", t.PYTHON = "python", t))(b || {}), C = /* @__PURE__ */ ((t) => (t.ACTION = "action", t.CHANGE = "change", t))(C || {});
|
|
734
|
+
const Je = {
|
|
735
|
+
[b.JSON]: we,
|
|
736
|
+
[b.XML]: Ce,
|
|
737
|
+
[b.JAVASCRIPT]: xe,
|
|
738
|
+
[b.JAVA]: Le,
|
|
739
|
+
[b.PYTHON]: Ae
|
|
740
|
+
}, Ge = (t) => async () => Je[t], Ke = (t, e) => {
|
|
741
|
+
const o = t.doc.lineAt(e.from), r = /^\s*/.exec(o.text);
|
|
742
|
+
return r ? r[0] : "";
|
|
743
|
+
}, Ue = {
|
|
744
|
+
key: "Enter",
|
|
745
|
+
run: ({ state: t, dispatch: e }) => {
|
|
746
|
+
const o = t.changeByRange((r) => {
|
|
747
|
+
const i = `
|
|
748
|
+
${Ke(t, r)}`;
|
|
749
|
+
return {
|
|
750
|
+
changes: { from: r.from, to: r.to, insert: i },
|
|
751
|
+
range: ge.cursor(r.from + i.length)
|
|
752
|
+
};
|
|
753
|
+
});
|
|
754
|
+
return e(t.update(o, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
let W = 0;
|
|
758
|
+
const Fe = {
|
|
759
|
+
beforeCreate() {
|
|
760
|
+
this.uuid = W.toString(), W += 1;
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
var We = function() {
|
|
764
|
+
var e = this, o = e._self._c;
|
|
765
|
+
return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M14.75 1.25V6.75H13.25V3.81083L10.0001 7.06072L8.93945 6.00006L12.1895 2.75H9.25V1.25H14.75Z" } }), o("path", { attrs: { fill: "#00112C", d: "M2.75 12.1895V9.25H1.25V14.75H6.75V13.25H3.81083L7.06072 10.0001L6.00006 8.93945L2.75 12.1895Z" } })]);
|
|
766
|
+
}, qe = [], Xe = /* @__PURE__ */ q(
|
|
767
|
+
Fe,
|
|
768
|
+
We,
|
|
769
|
+
qe,
|
|
770
|
+
!1,
|
|
771
|
+
null,
|
|
772
|
+
null
|
|
773
|
+
);
|
|
774
|
+
const Ye = Xe.exports, Ze = {
|
|
775
|
+
"en-US": {
|
|
776
|
+
run: "Run",
|
|
777
|
+
expand: "Expand"
|
|
778
|
+
}
|
|
779
|
+
}, Qe = oe({
|
|
780
|
+
i18n: { messages: Ze },
|
|
781
|
+
name: "bento-code-snippet",
|
|
782
|
+
components: {
|
|
783
|
+
BentoTypography: ye,
|
|
784
|
+
BentoButton: be,
|
|
785
|
+
BentoDropdown: he,
|
|
786
|
+
Copy: ke,
|
|
787
|
+
BaseModal: Ne,
|
|
788
|
+
BentoLoadingIndicator: ve,
|
|
789
|
+
ExpandIcon: Ye
|
|
790
|
+
},
|
|
791
|
+
directives: { BentoTooltipDirective: Oe },
|
|
792
|
+
props: {
|
|
793
|
+
/**
|
|
794
|
+
* Defines the variant of code-snippet
|
|
795
|
+
*/
|
|
796
|
+
variant: {
|
|
797
|
+
type: String,
|
|
798
|
+
default: E.MULTILINE,
|
|
799
|
+
validator: (t) => Object.values(E).includes(t)
|
|
800
|
+
},
|
|
801
|
+
/**
|
|
802
|
+
* Language name for syntax highlighting rules
|
|
803
|
+
*/
|
|
804
|
+
lang: {
|
|
805
|
+
type: String,
|
|
806
|
+
default: b.JSON,
|
|
807
|
+
validator: (t) => Object.values(b).includes(t)
|
|
808
|
+
},
|
|
809
|
+
/**
|
|
810
|
+
* Label to show in the action-bar, describing the language
|
|
811
|
+
*/
|
|
812
|
+
langLabel: {
|
|
813
|
+
type: String,
|
|
814
|
+
default: null
|
|
815
|
+
},
|
|
816
|
+
/**
|
|
817
|
+
* The code content
|
|
818
|
+
*/
|
|
819
|
+
content: {
|
|
820
|
+
type: String,
|
|
821
|
+
default: ""
|
|
822
|
+
},
|
|
823
|
+
/**
|
|
824
|
+
* Allows editing of the code-snippet content by the user
|
|
825
|
+
*/
|
|
826
|
+
editable: {
|
|
827
|
+
type: Boolean,
|
|
828
|
+
default: !1
|
|
829
|
+
},
|
|
830
|
+
/**
|
|
831
|
+
* Displays a button that when clicked will emit an action event
|
|
832
|
+
* Leaves to the parent component the logic of what to do with it
|
|
833
|
+
*/
|
|
834
|
+
actionable: {
|
|
835
|
+
type: Boolean,
|
|
836
|
+
default: !1
|
|
837
|
+
},
|
|
838
|
+
/**
|
|
839
|
+
* Displays a button that can expand the codeblock into a modal to easily
|
|
840
|
+
* view large blocks of code.
|
|
841
|
+
*/
|
|
842
|
+
expandable: {
|
|
843
|
+
type: Boolean,
|
|
844
|
+
default: !1
|
|
845
|
+
},
|
|
846
|
+
/**
|
|
847
|
+
* Displays a button that when clicked will emit a run event
|
|
848
|
+
* Leaves to the parent component the logic of what to do with it
|
|
849
|
+
*/
|
|
850
|
+
actionableText: {
|
|
851
|
+
type: String,
|
|
852
|
+
default: "run"
|
|
853
|
+
},
|
|
854
|
+
/**
|
|
855
|
+
* Toggles the loading indicator within the action bar
|
|
856
|
+
*/
|
|
857
|
+
loading: {
|
|
858
|
+
type: Boolean,
|
|
859
|
+
default: !1
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
emits: [C.ACTION, C.CHANGE],
|
|
863
|
+
setup(t, { emit: e }) {
|
|
864
|
+
const { t: o } = _e(), r = L(null), s = [], i = () => {
|
|
865
|
+
}, c = k(() => t.langLabel ?? t.lang.toUpperCase()), d = k(() => t.variant === E.INLINE), _ = k(() => ({
|
|
866
|
+
"b-code-snippet--inline": d.value,
|
|
867
|
+
"b-code-snippet--scrollable": !d.value
|
|
868
|
+
})), N = k(() => ({
|
|
869
|
+
"b-code-snippet__code-area-content--editable": t.editable
|
|
870
|
+
})), X = Ge(t.lang), $ = P(), B = P(), Y = new j(), Z = new j(), Q = new j(), y = L(null), S = L(0);
|
|
871
|
+
re(async () => {
|
|
872
|
+
const H = await X();
|
|
873
|
+
y.value = t.content;
|
|
874
|
+
const ae = ({ state: M }) => {
|
|
875
|
+
y.value = M.doc.toString();
|
|
876
|
+
}, z = [
|
|
877
|
+
le(),
|
|
878
|
+
ce.of([ue, Ue]),
|
|
879
|
+
Y.of(H()),
|
|
880
|
+
Z.of(Pe),
|
|
881
|
+
Q.of(G.readOnly.of(!t.editable)),
|
|
882
|
+
J.updateListener.of((M) => ae(M))
|
|
883
|
+
];
|
|
884
|
+
t.variant === "multiline" && z.push([de(), pe()]);
|
|
885
|
+
const D = G.create({
|
|
886
|
+
doc: t.content,
|
|
887
|
+
extensions: [...z]
|
|
888
|
+
});
|
|
889
|
+
S.value = D.doc.length, B.value = new J({
|
|
890
|
+
state: D,
|
|
891
|
+
parent: $.value
|
|
892
|
+
});
|
|
893
|
+
}), ie(
|
|
894
|
+
() => t.content,
|
|
895
|
+
() => {
|
|
896
|
+
if (t.content !== y.value) {
|
|
897
|
+
const H = t.content.length;
|
|
898
|
+
B.value.dispatch({
|
|
899
|
+
changes: {
|
|
900
|
+
from: 0,
|
|
901
|
+
to: S.value,
|
|
902
|
+
insert: t.content
|
|
903
|
+
}
|
|
904
|
+
}), S.value = H;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
);
|
|
908
|
+
const ee = k(() => o(t.actionableText)), te = () => {
|
|
909
|
+
e(C.ACTION, y.value);
|
|
910
|
+
};
|
|
911
|
+
se(() => {
|
|
912
|
+
y.value !== null && e(C.CHANGE, y.value);
|
|
913
|
+
});
|
|
914
|
+
const ne = L(!1);
|
|
915
|
+
return {
|
|
916
|
+
// Values
|
|
917
|
+
availableLanguages: s,
|
|
918
|
+
codeAreaContentConditionalClasses: N,
|
|
919
|
+
conditionalClasses: _,
|
|
920
|
+
container: $,
|
|
921
|
+
currentContents: y,
|
|
922
|
+
displayedLang: c,
|
|
923
|
+
editor: B,
|
|
924
|
+
selectedLanguage: r,
|
|
925
|
+
showModal: ne,
|
|
926
|
+
isInlineVariant: d,
|
|
927
|
+
// Methods
|
|
928
|
+
handleChangeLanguage: i,
|
|
929
|
+
onActionClicked: te,
|
|
930
|
+
runText: ee,
|
|
931
|
+
// Translations
|
|
932
|
+
t: o
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
var et = function() {
|
|
937
|
+
var e = this, o = e._self._c;
|
|
938
|
+
return e._self._setupProxy, o("div", { staticClass: "b-code-snippet", class: e.conditionalClasses }, [e.isInlineVariant ? e._e() : o("section", { staticClass: "b-code-snippet__action-bar" }, [o("div", { staticClass: "b-code-snippet__action-bar--start" }, [e.availableLanguages.length > 0 ? o("bento-dropdown", e._b({ staticClass: "b-code-snippet__language-picker", attrs: { disabled: e.availableLanguages.length === 1, items: e.availableLanguages }, on: { input: e.handleChangeLanguage }, model: { value: e.selectedLanguage, callback: function(r) {
|
|
939
|
+
e.selectedLanguage = r;
|
|
940
|
+
}, expression: "selectedLanguage" } }, "bento-dropdown", e.$props, !1)) : e._e(), o("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.displayedLang) + " ")])], 1), o("div", { staticClass: "b-code-snippet__action-bar--end" }, [e.loading ? o("bento-loading-indicator") : e._e(), e.currentContents !== null ? o("copy", { staticClass: "b-structured-list__icon", attrs: { text: e.currentContents } }) : e._e(), e.expandable ? o("bento-button", { attrs: { variant: "tertiary", condensed: "", "aria-label": e.t("expand") }, on: { click: function(r) {
|
|
941
|
+
e.showModal = !0;
|
|
942
|
+
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
943
|
+
return [o("expand-icon")];
|
|
944
|
+
}, proxy: !0 }], null, !1, 3789760120) }) : e._e(), e.actionable ? o("bento-button", { attrs: { variant: "primary", tertiary: "", condensed: "" }, on: { click: e.onActionClicked }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
945
|
+
return [o("bento-typography", { staticClass: "b-code-snippet__action-button", attrs: { el: "span" } }, [e._v(" " + e._s(e.runText) + " ")])];
|
|
946
|
+
}, proxy: !0 }], null, !1, 4293069853) }) : e._e()], 1)]), e.content || e.editable ? o("code", { staticClass: "b-code-snippet__code-area" }, [o("div", { ref: "container", staticClass: "b-code-snippet__code-area-content", class: e.codeAreaContentConditionalClasses })]) : o("section", [e._t("empty-state", function() {
|
|
947
|
+
return [o("div", { staticClass: "b-code-snippet__empty-state" }, [e._v("Nothing to show")])];
|
|
948
|
+
})], 2), e.expandable ? o("base-modal", { staticClass: "b-code-snippet__modal", attrs: { "hide-close-button": !0, "custom-padding": "0px", "is-dismissible": !0, "is-open": e.showModal, size: "large" }, on: { "close-modal": function(r) {
|
|
949
|
+
e.showModal = !1;
|
|
950
|
+
} }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
951
|
+
return [o("bento-code-snippet", e._b({}, "bento-code-snippet", { ...e.$props, expandable: !1 }, !1))];
|
|
952
|
+
}, proxy: !0 }], null, !1, 3343589027) }) : e._e()], 1);
|
|
953
|
+
}, tt = [], nt = /* @__PURE__ */ q(
|
|
954
|
+
Qe,
|
|
955
|
+
et,
|
|
956
|
+
tt,
|
|
957
|
+
!1,
|
|
958
|
+
null,
|
|
959
|
+
"befa6cc9"
|
|
960
|
+
);
|
|
961
|
+
const kt = nt.exports;
|
|
962
|
+
export {
|
|
963
|
+
E as B,
|
|
964
|
+
b as a,
|
|
965
|
+
C as b,
|
|
966
|
+
kt as c
|
|
967
|
+
};
|
|
968
|
+
//# sourceMappingURL=code-snippet.C4IbjAhH.js.map
|