@adyen/bento-vue3 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/packages/core/src/utils/ts/storybook.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +91 -0
- package/dist/@types/packages/vue2/src/components/dashed-underline/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +65 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/data-grid/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +38 -42
- package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +59 -85
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +48 -80
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +19 -16
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +21 -2
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
- package/dist/accordion.js +3 -125
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +2 -270
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +5 -181
- package/dist/alert.js.map +1 -1
- package/dist/assets/{index10.css → accordion-item.css} +1 -1
- package/dist/assets/{index17.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/{index26.css → card.css} +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/{index14.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/{index43.css → form-layout-title.css} +1 -1
- package/dist/assets/{index39.css → input-field.css} +1 -1
- package/dist/assets/link.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/{index7.css → menu.css} +1 -1
- package/dist/assets/{index27.css → modal-fullscreen.css} +1 -1
- package/dist/assets/{index19.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/{index44.css → sidepanel.css} +1 -1
- package/dist/assets/status.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/{index32.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 +13 -14
- package/dist/badge.js.map +1 -1
- package/dist/button.js +14 -89
- package/dist/button.js.map +1 -1
- package/dist/card.js +4 -203
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +8 -194
- 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-vue_export-helper.dad06003.js → _plugin-vue_export-helper.CHgC5LLL.js} +1 -1
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
- package/dist/chunks/accordion-item.BcfGYvjn.js +126 -0
- package/dist/chunks/accordion-item.BcfGYvjn.js.map +1 -0
- package/dist/chunks/action-bar.BvAtk-jI.js +188 -0
- package/dist/chunks/action-bar.BvAtk-jI.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.C0gIf7Ka.js +162 -0
- package/dist/chunks/alert.C0gIf7Ka.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/avatar-image.DO4w_loj.js +61 -0
- package/dist/chunks/avatar-image.DO4w_loj.js.map +1 -0
- package/dist/chunks/{base-button.e84acf30.js → base-button.ewkxHD6W.js} +24 -25
- package/dist/chunks/{base-button.e84acf30.js.map → base-button.ewkxHD6W.js.map} +1 -1
- package/dist/chunks/{base-modal.29e062d0.js → base-modal.BgYlnM_Q.js} +81 -83
- package/dist/chunks/{base-modal.29e062d0.js.map → base-modal.BgYlnM_Q.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.7fce47a2.js → button-actions-with-menu.C14zvgVo.js} +14 -15
- package/dist/chunks/{button-actions-with-menu.7fce47a2.js.map → button-actions-with-menu.C14zvgVo.js.map} +1 -1
- package/dist/chunks/{button-actions.642b37de.js → button-actions.hGhRdgC2.js} +41 -40
- package/dist/chunks/button-actions.hGhRdgC2.js.map +1 -0
- package/dist/chunks/{button.60dad578.js → button.DoqHEvPh.js} +38 -38
- package/dist/chunks/button.DoqHEvPh.js.map +1 -0
- package/dist/chunks/{calendar.f38cdab9.js → calendar.CwULNbSL.js} +285 -326
- package/dist/chunks/{calendar.f38cdab9.js.map → calendar.CwULNbSL.js.map} +1 -1
- package/dist/chunks/card.C7zLKdcy.js +205 -0
- package/dist/chunks/card.C7zLKdcy.js.map +1 -0
- package/dist/chunks/checkbox-group.BcT-eZ2p.js +192 -0
- package/dist/chunks/checkbox-group.BcT-eZ2p.js.map +1 -0
- package/dist/chunks/{checkbox-input.ab758a81.js → checkbox-input.CR1lHf7f.js} +43 -43
- package/dist/chunks/{checkbox-input.ab758a81.js.map → checkbox-input.CR1lHf7f.js.map} +1 -1
- package/dist/chunks/{checkbox.f55ee3a5.js → checkbox.xjIFibII.js} +38 -39
- package/dist/chunks/{checkbox.f55ee3a5.js.map → checkbox.xjIFibII.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +44 -0
- package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js.map → checkmark-circle-fill.D29b-JWj.js.map} +1 -1
- package/dist/chunks/{checkmark-small.d7e31e5e.js → checkmark-small.BCeGkayS.js} +10 -10
- package/dist/chunks/{checkmark-small.d7e31e5e.js.map → checkmark-small.BCeGkayS.js.map} +1 -1
- package/dist/chunks/{chevron-left.963d35e9.js → chevron-left.4JHuWe7i.js} +18 -18
- package/dist/chunks/{chevron-left.963d35e9.js.map → chevron-left.4JHuWe7i.js.map} +1 -1
- package/dist/chunks/{chevron-up.05ca20db.js → chevron-up.5-KtIp8i.js} +19 -19
- package/dist/chunks/{chevron-up.05ca20db.js.map → chevron-up.5-KtIp8i.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.e8bxDBCO.js +1052 -0
- package/dist/chunks/code-snippet.e8bxDBCO.js.map +1 -0
- package/dist/chunks/{controls-group.9e0f17b2.js → controls-group.DWu8NqKL.js} +17 -18
- package/dist/chunks/{controls-group.9e0f17b2.js.map → controls-group.DWu8NqKL.js.map} +1 -1
- package/dist/chunks/{copy.852d4cb8.js → copy.BhO7oRgC.js} +39 -40
- package/dist/chunks/{copy.852d4cb8.js.map → copy.BhO7oRgC.js.map} +1 -1
- 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/country.vX94O3uR.js +98 -0
- package/dist/chunks/country.vX94O3uR.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.81925c7f.js → cross-circle-fill.vLaelNTN.js} +12 -12
- package/dist/chunks/{cross-circle-fill.81925c7f.js.map → cross-circle-fill.vLaelNTN.js.map} +1 -1
- package/dist/chunks/cross-small.48UCoOqB.js +29 -0
- package/dist/chunks/{cross-small.9bc6a02f.js.map → cross-small.48UCoOqB.js.map} +1 -1
- package/dist/chunks/cross.BlL0FyHo.js +29 -0
- package/dist/chunks/{cross.a60533f6.js.map → cross.BlL0FyHo.js.map} +1 -1
- package/dist/chunks/currency.CgVd9fQN.js +121 -0
- package/dist/chunks/currency.CgVd9fQN.js.map +1 -0
- package/dist/chunks/dashboard-section.DKeDjvkB.js +167 -0
- package/dist/chunks/dashboard-section.DKeDjvkB.js.map +1 -0
- package/dist/chunks/dashed-underline.DGTW7Y_-.js +79 -0
- package/dist/chunks/dashed-underline.DGTW7Y_-.js.map +1 -0
- package/dist/chunks/data-grid-template.6Nls-D4o.js +89 -0
- package/dist/chunks/data-grid-template.6Nls-D4o.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.BwfZhc09.js +2733 -0
- package/dist/chunks/data-grid.BwfZhc09.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.CoPmllNh.js +273 -0
- package/dist/chunks/date-picker.CoPmllNh.js.map +1 -0
- package/dist/chunks/{index.96cd0d4c.js → date-range-picker.CiwDo2jW.js} +216 -218
- package/dist/chunks/date-range-picker.CiwDo2jW.js.map +1 -0
- package/dist/chunks/{index.146f967e.js → date.2ndGvIGE.js} +36 -41
- package/dist/chunks/date.2ndGvIGE.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.ea67bb14.js → dialog-page.BLqqR73w.js} +48 -49
- package/dist/chunks/{dialog-page.ea67bb14.js.map → dialog-page.BLqqR73w.js.map} +1 -1
- package/dist/chunks/divider.CnwfddJD.js +22 -0
- package/dist/chunks/divider.CnwfddJD.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.ad5063c2.js → dropdown-default-textbox.-Oy2eT40.js} +75 -77
- package/dist/chunks/{dropdown-default-textbox.ad5063c2.js.map → dropdown-default-textbox.-Oy2eT40.js.map} +1 -1
- package/dist/chunks/dropdown-tag.C-LxVWlt.js +201 -0
- package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +1 -0
- package/dist/chunks/{dropdown.d8587f36.js → dropdown.CxBlK83Q.js} +221 -233
- package/dist/chunks/dropdown.CxBlK83Q.js.map +1 -0
- package/dist/chunks/empty-state.BBxgpI-D.js +185 -0
- package/dist/chunks/empty-state.BBxgpI-D.js.map +1 -0
- package/dist/chunks/{error-message.3fb5573a.js → error-message.DyjHMyEZ.js} +30 -32
- package/dist/chunks/{error-message.3fb5573a.js.map → error-message.DyjHMyEZ.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.U2ZcPmSU.js +2775 -0
- package/dist/chunks/filter-bar.U2ZcPmSU.js.map +1 -0
- package/dist/chunks/{fixed-scroller.59aefd1b.js → fixed-scroller.DV7HtKDr.js} +20 -21
- package/dist/chunks/{fixed-scroller.59aefd1b.js.map → fixed-scroller.DV7HtKDr.js.map} +1 -1
- package/dist/chunks/{index.8be283d5.js → focus-trap.CwkbHfT8.js} +20 -20
- package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -0
- package/dist/chunks/{footer-actions.89e68269.js → footer-actions.D9nQFagi.js} +20 -21
- package/dist/chunks/{footer-actions.89e68269.js.map → footer-actions.D9nQFagi.js.map} +1 -1
- package/dist/chunks/form-layout-title.4Gz8-dJv.js +204 -0
- package/dist/chunks/form-layout-title.4Gz8-dJv.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.bead058f.js → get-slot-text.D5WBGjic.js} +1 -1
- package/dist/chunks/{get-slot-text.bead058f.js.map → get-slot-text.D5WBGjic.js.map} +1 -1
- package/dist/chunks/{grid-layout.c2fe3057.js → grid-layout.CqLbbEzI.js} +15 -15
- package/dist/chunks/{grid-layout.c2fe3057.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
- package/dist/chunks/header.Cr7115vM.js +307 -0
- package/dist/chunks/header.Cr7115vM.js.map +1 -0
- package/dist/chunks/{i18n.f7e6533e.js → i18n.DY5YXG5f.js} +46 -89
- package/dist/chunks/{i18n.f7e6533e.js.map → i18n.DY5YXG5f.js.map} +1 -1
- package/dist/chunks/image.0KzfycGE.js +78 -0
- package/dist/chunks/image.0KzfycGE.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.Dytpif0G.js +125 -0
- package/dist/chunks/index.Dytpif0G.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.DvL1e5Iu.js +45 -0
- package/dist/chunks/info-icon.DvL1e5Iu.js.map +1 -0
- package/dist/chunks/{info.205b4496.js → info.CNegCnli.js} +17 -17
- package/dist/chunks/{info.205b4496.js.map → info.CNegCnli.js.map} +1 -1
- package/dist/chunks/input-field.iH1ICJkQ.js +344 -0
- package/dist/chunks/input-field.iH1ICJkQ.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/link.DeNN3Amu.js +111 -0
- package/dist/chunks/link.DeNN3Amu.js.map +1 -0
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +94 -0
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +1 -0
- package/dist/chunks/{loading-button.0391ad8b.js → loading-button.BI32pZiW.js} +19 -20
- package/dist/chunks/{loading-button.0391ad8b.js.map → loading-button.BI32pZiW.js.map} +1 -1
- package/dist/chunks/loading-indicator.BFMEf39U.js +44 -0
- package/dist/chunks/loading-indicator.BFMEf39U.js.map +1 -0
- package/dist/chunks/{index.030c1dd7.js → menu.DN-xhDQU.js} +80 -82
- package/dist/chunks/menu.DN-xhDQU.js.map +1 -0
- package/dist/chunks/modal-fullscreen.CeogBGfr.js +264 -0
- package/dist/chunks/modal-fullscreen.CeogBGfr.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.vue_vue_type_script_setup_true_lang.BBef1Rl9.js +495 -0
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.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.BwG1MF4j.js +633 -0
- package/dist/chunks/pagination.BwG1MF4j.js.map +1 -0
- package/dist/chunks/{payment-method.31a68b9b.js → payment-method.NCItxw1D.js} +26 -27
- package/dist/chunks/{payment-method.31a68b9b.js.map → payment-method.NCItxw1D.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.5bdebf9d.js → popover.DRb2GW7t.js} +48 -49
- package/dist/chunks/popover.DRb2GW7t.js.map +1 -0
- package/dist/chunks/{index.9bf04b01.js → popper-container.B76aE-3-.js} +180 -182
- package/dist/chunks/popper-container.B76aE-3-.js.map +1 -0
- package/dist/chunks/radio-group.B9HCffiZ.js +296 -0
- package/dist/chunks/radio-group.B9HCffiZ.js.map +1 -0
- package/dist/chunks/{radio-input.1dd15424.js → radio-input.BEzK-fgR.js} +13 -14
- package/dist/chunks/radio-input.BEzK-fgR.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.BfxRdaQb.js +29 -0
- package/dist/chunks/{refresh.53691839.js.map → refresh.BfxRdaQb.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.DxskyM4e.js +107 -0
- package/dist/chunks/search-bar.DxskyM4e.js.map +1 -0
- package/dist/chunks/{search.4e4ee4dd.js → search.0lh99z1F.js} +16 -16
- package/dist/chunks/{search.4e4ee4dd.js.map → search.0lh99z1F.js.map} +1 -1
- package/dist/chunks/secondary-nav.D66nxbU-.js +112 -0
- package/dist/chunks/secondary-nav.D66nxbU-.js.map +1 -0
- package/dist/chunks/segmented-control.NnFfAdTq.js +142 -0
- package/dist/chunks/segmented-control.NnFfAdTq.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.C-YLePO4.js +385 -0
- package/dist/chunks/selection-card-group.C-YLePO4.js.map +1 -0
- package/dist/chunks/sidepanel.B-LtA15e.js +230 -0
- package/dist/chunks/sidepanel.B-LtA15e.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.Bqdcr1WO.js +42 -0
- package/dist/chunks/status.types.Bqdcr1WO.js.map +1 -0
- package/dist/chunks/step.CVoaYmVZ.js +284 -0
- package/dist/chunks/step.CVoaYmVZ.js.map +1 -0
- package/dist/chunks/structured-list-item.DQiPKhOI.js +101 -0
- package/dist/chunks/structured-list-item.DQiPKhOI.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.B941Kdvq.js +720 -0
- package/dist/chunks/summary-grid-item-custom.B941Kdvq.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.TNKpNgTM.js +185 -0
- package/dist/chunks/tabs.TNKpNgTM.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.CPhtHjDD.js +75 -0
- package/dist/chunks/tag.CPhtHjDD.js.map +1 -0
- package/dist/chunks/{teleport.afeb4c3b.js → teleport.L8qFCYpr.js} +20 -21
- package/dist/chunks/{teleport.afeb4c3b.js.map → teleport.L8qFCYpr.js.map} +1 -1
- package/dist/chunks/textarea.CJ8xiMjv.js +288 -0
- package/dist/chunks/textarea.CJ8xiMjv.js.map +1 -0
- package/dist/chunks/timeline-item.Cap9MXkH.js +531 -0
- package/dist/chunks/timeline-item.Cap9MXkH.js.map +1 -0
- package/dist/chunks/toast.Bwo57uNy.js +215 -0
- package/dist/chunks/toast.Bwo57uNy.js.map +1 -0
- package/dist/chunks/toggle-button.q9F2dsIi.js +79 -0
- package/dist/chunks/toggle-button.q9F2dsIi.js.map +1 -0
- package/dist/chunks/toggle.DmTjGY0a.js +161 -0
- package/dist/chunks/toggle.DmTjGY0a.js.map +1 -0
- package/dist/chunks/{tooltip.1084d92b.js → tooltip.CTR3s-Rm.js} +60 -61
- package/dist/chunks/tooltip.CTR3s-Rm.js.map +1 -0
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js +408 -0
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map +1 -0
- package/dist/chunks/typography.D7onlQ9v.js +73 -0
- package/dist/chunks/typography.D7onlQ9v.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.98d8613c.js → use-bento-toast-controller.C0A5tZgd.js} +3 -3
- package/dist/chunks/{use-bento-toast-controller.98d8613c.js.map → use-bento-toast-controller.C0A5tZgd.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.852aeafe.js → use-cached-selected-values.BQBWFTvi.js} +490 -476
- package/dist/chunks/use-cached-selected-values.BQBWFTvi.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.32e30471.js → use-country-items.CongYNiX.js} +4 -4
- package/dist/chunks/{use-country-items.32e30471.js.map → use-country-items.CongYNiX.js.map} +1 -1
- package/dist/chunks/{use-default-slot-validator.1169c221.js → use-default-slot-validator.O02rzsob.js} +1 -1
- package/dist/chunks/{use-default-slot-validator.1169c221.js.map → use-default-slot-validator.O02rzsob.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.4d98bf29.js → use-has-slot.B7eQSabc.js} +1 -1
- package/dist/chunks/{use-has-slot.4d98bf29.js.map → use-has-slot.B7eQSabc.js.map} +1 -1
- package/dist/chunks/warning-filled.DHw1rVWs.js +29 -0
- package/dist/chunks/warning-filled.DHw1rVWs.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 -2131
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +8 -101
- package/dist/country.js.map +1 -1
- package/dist/currency.js +3 -118
- 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 -87
- package/dist/data-grid-template.js.map +1 -1
- package/dist/data-grid.js +8 -2643
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +5 -272
- 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 -205
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +5 -176
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +5 -2778
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +5 -205
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +2 -306
- package/dist/header.js.map +1 -1
- package/dist/image.js +4 -75
- package/dist/image.js.map +1 -1
- package/dist/index.js +263 -256
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -43
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +7 -342
- 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 -41
- package/dist/loading-indicator.js.map +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +3 -263
- package/dist/modal-fullscreen.js.map +1 -1
- package/dist/modal.js +11 -501
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +2 -634
- 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 -296
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +6 -107
- package/dist/search-bar.js.map +1 -1
- package/dist/secondary-nav.js +2 -112
- package/dist/secondary-nav.js.map +1 -1
- package/dist/segmented-control.js +4 -255
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -384
- package/dist/selection-card.js.map +1 -1
- package/dist/sidepanel.js +4 -229
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +3 -50
- package/dist/status.js.map +1 -1
- package/dist/stepper.js +5 -283
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +9 -720
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +3 -182
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -73
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +2 -286
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +7 -530
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -215
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +4 -159
- package/dist/toggle.js.map +1 -1
- package/dist/tutorial.js +2 -392
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +10 -10
- package/dist/assets/index11.css +0 -1
- package/dist/assets/index16.css +0 -1
- package/dist/assets/index18.css +0 -1
- package/dist/assets/index24.css +0 -1
- package/dist/assets/index25.css +0 -1
- package/dist/assets/index37.css +0 -1
- package/dist/assets/index40.css +0 -1
- package/dist/assets/index42.css +0 -1
- package/dist/assets/index46.css +0 -1
- package/dist/assets/index47.css +0 -1
- package/dist/assets/index9.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-vue_export-helper.dad06003.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/button-actions.642b37de.js.map +0 -1
- package/dist/chunks/button.60dad578.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.f3a69c6a.js +0 -44
- package/dist/chunks/checkmark.87919b24.js +0 -29
- package/dist/chunks/checkmark.87919b24.js.map +0 -1
- package/dist/chunks/cross-small.9bc6a02f.js +0 -29
- package/dist/chunks/cross.a60533f6.js +0 -29
- package/dist/chunks/dropdown.d8587f36.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js +0 -50
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.030c1dd7.js.map +0 -1
- package/dist/chunks/index.07122048.js +0 -23
- package/dist/chunks/index.07122048.js.map +0 -1
- package/dist/chunks/index.146f967e.js.map +0 -1
- package/dist/chunks/index.5bdebf9d.js.map +0 -1
- package/dist/chunks/index.6e0e9d21.js +0 -118
- package/dist/chunks/index.6e0e9d21.js.map +0 -1
- package/dist/chunks/index.8be283d5.js.map +0 -1
- package/dist/chunks/index.96cd0d4c.js.map +0 -1
- package/dist/chunks/index.9bf04b01.js.map +0 -1
- package/dist/chunks/index.a3d60e4f.js +0 -74
- package/dist/chunks/index.a3d60e4f.js.map +0 -1
- package/dist/chunks/index.ba3396d3.js +0 -62
- package/dist/chunks/index.ba3396d3.js.map +0 -1
- package/dist/chunks/index.c8ffede1.js +0 -168
- package/dist/chunks/index.c8ffede1.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.b6182b2e.js +0 -129
- package/dist/chunks/listbox-option-tag.b6182b2e.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.1dd15424.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/refresh.53691839.js +0 -29
- 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.1084d92b.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.852aeafe.js.map +0 -1
- 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/@types/packages/{vue2/src/components/internal → core/src/components}/radio-input/radio-input.types.d.ts +0 -0
- /package/dist/assets/{index13.css → avatar-image.css} +0 -0
- /package/dist/assets/{index21.css → badge.css} +0 -0
- /package/dist/assets/{index5.css → checkbox-group.css} +0 -0
- /package/dist/assets/{index4.css → country.css} +0 -0
- /package/dist/assets/{checkmark-circle-fill.css → cross.css} +0 -0
- /package/dist/assets/{index2.css → date-picker.css} +0 -0
- /package/dist/assets/{index20.css → date-range-picker.css} +0 -0
- /package/dist/assets/{index3.css → divider.css} +0 -0
- /package/dist/assets/{index48.css → dropdown-tag.css} +0 -0
- /package/dist/assets/{index8.css → empty-state.css} +0 -0
- /package/dist/assets/{index.css → focus-trap.css} +0 -0
- /package/dist/assets/{index15.css → header.css} +0 -0
- /package/dist/assets/{index6.css → info-icon.css} +0 -0
- /package/dist/assets/{index41.css → loading-indicator.css} +0 -0
- /package/dist/assets/{index28.css → pagination.css} +0 -0
- /package/dist/assets/{index29.css → popper-container.css} +0 -0
- /package/dist/assets/{index30.css → radio-group.css} +0 -0
- /package/dist/assets/{index22.css → search-bar.css} +0 -0
- /package/dist/assets/{index23.css → secondary-nav.css} +0 -0
- /package/dist/assets/{index45.css → step.css} +0 -0
- /package/dist/assets/{index31.css → summary-grid-item-custom.css} +0 -0
- /package/dist/assets/{index33.css → tag.css} +0 -0
- /package/dist/assets/{index34.css → textarea.css} +0 -0
- /package/dist/assets/{index35.css → timeline-item.css} +0 -0
- /package/dist/assets/{index36.css → toast.css} +0 -0
- /package/dist/assets/{index12.css → toggle-button.css} +0 -0
- /package/dist/assets/{index38.css → typography.css} +0 -0
package/dist/code-snippet.js
CHANGED
|
@@ -1,2134 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { highlightActiveLine as at, keymap as ut, EditorView as He, lineNumbers as ht } from "@codemirror/view";
|
|
3
|
-
import { EditorSelection as ft, Compartment as Ne, EditorState as je } from "@codemirror/state";
|
|
4
|
-
import { indentWithTab as ct, history as dt } from "@codemirror/commands";
|
|
5
|
-
import { syntaxHighlighting as pt, HighlightStyle as gt } from "@codemirror/language";
|
|
6
|
-
import { B as mt } from "./chunks/dropdown.d8587f36.js";
|
|
7
|
-
import { a as bt } from "./chunks/button.60dad578.js";
|
|
8
|
-
import { B as yt } from "./chunks/index.a3d60e4f.js";
|
|
9
|
-
import { b as xt } from "./chunks/tooltip.1084d92b.js";
|
|
10
|
-
import { BentoLoadingIndicator as kt } from "./loading-indicator.js";
|
|
11
|
-
import { u as _t } from "./chunks/i18n.f7e6533e.js";
|
|
12
|
-
import { _ as qe } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
13
|
-
import { h as vt } from "./chunks/base-modal.29e062d0.js";
|
|
14
|
-
import { C as wt } from "./chunks/copy.852d4cb8.js";
|
|
15
|
-
import { json as Ct } from "@codemirror/lang-json";
|
|
16
|
-
import { xml as Nt } from "@codemirror/lang-xml";
|
|
17
|
-
import { javascript as St } from "@codemirror/lang-javascript";
|
|
18
|
-
import { java as At } from "@codemirror/lang-java";
|
|
19
|
-
import "./assets/index14.css";
|
|
20
|
-
const It = 1024;
|
|
21
|
-
let Lt = 0;
|
|
22
|
-
class v {
|
|
23
|
-
/**
|
|
24
|
-
Create a new node prop type.
|
|
25
|
-
*/
|
|
26
|
-
constructor(e = {}) {
|
|
27
|
-
this.id = Lt++, 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 = G.match(e)), (t) => {
|
|
44
|
-
let n = e(t);
|
|
45
|
-
return n === void 0 ? null : [this, n];
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
v.closedBy = new v({ deserialize: (r) => r.split(" ") });
|
|
50
|
-
v.openedBy = new v({ deserialize: (r) => r.split(" ") });
|
|
51
|
-
v.group = new v({ deserialize: (r) => r.split(" ") });
|
|
52
|
-
v.isolate = new v({ deserialize: (r) => {
|
|
53
|
-
if (r && r != "rtl" && r != "ltr" && r != "auto")
|
|
54
|
-
throw new RangeError("Invalid value for isolate: " + r);
|
|
55
|
-
return r || "auto";
|
|
56
|
-
} });
|
|
57
|
-
v.contextHash = new v({ perNode: !0 });
|
|
58
|
-
v.lookAhead = new v({ perNode: !0 });
|
|
59
|
-
v.mounted = new v({ perNode: !0 });
|
|
60
|
-
class we {
|
|
61
|
-
constructor(e, t, n) {
|
|
62
|
-
this.tree = e, this.overlay = t, this.parser = n;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
@internal
|
|
66
|
-
*/
|
|
67
|
-
static get(e) {
|
|
68
|
-
return e && e.props && e.props[v.mounted.id];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const Bt = /* @__PURE__ */ Object.create(null);
|
|
72
|
-
class G {
|
|
73
|
-
/**
|
|
74
|
-
@internal
|
|
75
|
-
*/
|
|
76
|
-
constructor(e, t, n, i = 0) {
|
|
77
|
-
this.name = e, this.props = t, this.id = n, this.flags = i;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
Define a node type.
|
|
81
|
-
*/
|
|
82
|
-
static define(e) {
|
|
83
|
-
let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Bt, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new G(e.name || "", t, e.id, n);
|
|
84
|
-
if (e.props) {
|
|
85
|
-
for (let s of e.props)
|
|
86
|
-
if (Array.isArray(s) || (s = s(i)), s) {
|
|
87
|
-
if (s[0].perNode)
|
|
88
|
-
throw new RangeError("Can't store a per-node prop on a node type");
|
|
89
|
-
t[s[0].id] = s[1];
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return i;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
Retrieves a node prop for this type. Will return `undefined` if
|
|
96
|
-
the prop isn't present on this node.
|
|
97
|
-
*/
|
|
98
|
-
prop(e) {
|
|
99
|
-
return this.props[e.id];
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
True when this is the top node of a grammar.
|
|
103
|
-
*/
|
|
104
|
-
get isTop() {
|
|
105
|
-
return (this.flags & 1) > 0;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
True when this node is produced by a skip rule.
|
|
109
|
-
*/
|
|
110
|
-
get isSkipped() {
|
|
111
|
-
return (this.flags & 2) > 0;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
Indicates whether this is an error node.
|
|
115
|
-
*/
|
|
116
|
-
get isError() {
|
|
117
|
-
return (this.flags & 4) > 0;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
When true, this node type doesn't correspond to a user-declared
|
|
121
|
-
named node, for example because it is used to cache repetition.
|
|
122
|
-
*/
|
|
123
|
-
get isAnonymous() {
|
|
124
|
-
return (this.flags & 8) > 0;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
Returns true when this node's name or one of its
|
|
128
|
-
[groups](#common.NodeProp^group) matches the given string.
|
|
129
|
-
*/
|
|
130
|
-
is(e) {
|
|
131
|
-
if (typeof e == "string") {
|
|
132
|
-
if (this.name == e)
|
|
133
|
-
return !0;
|
|
134
|
-
let t = this.prop(v.group);
|
|
135
|
-
return t ? t.indexOf(e) > -1 : !1;
|
|
136
|
-
}
|
|
137
|
-
return this.id == e;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
Create a function from node types to arbitrary values by
|
|
141
|
-
specifying an object whose property names are node or
|
|
142
|
-
[group](#common.NodeProp^group) names. Often useful with
|
|
143
|
-
[`NodeProp.add`](#common.NodeProp.add). You can put multiple
|
|
144
|
-
names, separated by spaces, in a single property name to map
|
|
145
|
-
multiple node names to a single value.
|
|
146
|
-
*/
|
|
147
|
-
static match(e) {
|
|
148
|
-
let t = /* @__PURE__ */ Object.create(null);
|
|
149
|
-
for (let n in e)
|
|
150
|
-
for (let i of n.split(" "))
|
|
151
|
-
t[i] = e[n];
|
|
152
|
-
return (n) => {
|
|
153
|
-
for (let i = n.prop(v.group), s = -1; s < (i ? i.length : 0); s++) {
|
|
154
|
-
let o = t[s < 0 ? n.name : i[s]];
|
|
155
|
-
if (o)
|
|
156
|
-
return o;
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
G.none = new G(
|
|
162
|
-
"",
|
|
163
|
-
/* @__PURE__ */ Object.create(null),
|
|
164
|
-
0,
|
|
165
|
-
8
|
|
166
|
-
/* NodeFlag.Anonymous */
|
|
167
|
-
);
|
|
168
|
-
const be = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap();
|
|
169
|
-
var I;
|
|
170
|
-
(function(r) {
|
|
171
|
-
r[r.ExcludeBuffers = 1] = "ExcludeBuffers", r[r.IncludeAnonymous = 2] = "IncludeAnonymous", r[r.IgnoreMounts = 4] = "IgnoreMounts", r[r.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
172
|
-
})(I || (I = {}));
|
|
173
|
-
class R {
|
|
174
|
-
/**
|
|
175
|
-
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
176
|
-
*/
|
|
177
|
-
constructor(e, t, n, i, s) {
|
|
178
|
-
if (this.type = e, this.children = t, this.positions = n, this.length = i, this.props = null, s && s.length) {
|
|
179
|
-
this.props = /* @__PURE__ */ Object.create(null);
|
|
180
|
-
for (let [o, u] of s)
|
|
181
|
-
this.props[typeof o == "number" ? o : o.id] = u;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
@internal
|
|
186
|
-
*/
|
|
187
|
-
toString() {
|
|
188
|
-
let e = we.get(this);
|
|
189
|
-
if (e && !e.overlay)
|
|
190
|
-
return e.tree.toString();
|
|
191
|
-
let t = "";
|
|
192
|
-
for (let n of this.children) {
|
|
193
|
-
let i = n.toString();
|
|
194
|
-
i && (t && (t += ","), t += i);
|
|
195
|
-
}
|
|
196
|
-
return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (t.length ? "(" + t + ")" : "") : t;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
Get a [tree cursor](#common.TreeCursor) positioned at the top of
|
|
200
|
-
the tree. Mode can be used to [control](#common.IterMode) which
|
|
201
|
-
nodes the cursor visits.
|
|
202
|
-
*/
|
|
203
|
-
cursor(e = 0) {
|
|
204
|
-
return new Le(this.topNode, e);
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
Get a [tree cursor](#common.TreeCursor) pointing into this tree
|
|
208
|
-
at the given position and side (see
|
|
209
|
-
[`moveTo`](#common.TreeCursor.moveTo).
|
|
210
|
-
*/
|
|
211
|
-
cursorAt(e, t = 0, n = 0) {
|
|
212
|
-
let i = be.get(this) || this.topNode, s = new Le(i);
|
|
213
|
-
return s.moveTo(e, t), be.set(this, s._tree), s;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
Get a [syntax node](#common.SyntaxNode) object for the top of the
|
|
217
|
-
tree.
|
|
218
|
-
*/
|
|
219
|
-
get topNode() {
|
|
220
|
-
return new z(this, 0, 0, null);
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
Get the [syntax node](#common.SyntaxNode) at the given position.
|
|
224
|
-
If `side` is -1, this will move into nodes that end at the
|
|
225
|
-
position. If 1, it'll move into nodes that start at the
|
|
226
|
-
position. With 0, it'll only enter nodes that cover the position
|
|
227
|
-
from both sides.
|
|
228
|
-
|
|
229
|
-
Note that this will not enter
|
|
230
|
-
[overlays](#common.MountedTree.overlay), and you often want
|
|
231
|
-
[`resolveInner`](#common.Tree.resolveInner) instead.
|
|
232
|
-
*/
|
|
233
|
-
resolve(e, t = 0) {
|
|
234
|
-
let n = de(be.get(this) || this.topNode, e, t, !1);
|
|
235
|
-
return be.set(this, n), n;
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
Like [`resolve`](#common.Tree.resolve), but will enter
|
|
239
|
-
[overlaid](#common.MountedTree.overlay) nodes, producing a syntax node
|
|
240
|
-
pointing into the innermost overlaid tree at the given position
|
|
241
|
-
(with parent links going through all parent structure, including
|
|
242
|
-
the host trees).
|
|
243
|
-
*/
|
|
244
|
-
resolveInner(e, t = 0) {
|
|
245
|
-
let n = de(Re.get(this) || this.topNode, e, t, !0);
|
|
246
|
-
return Re.set(this, n), n;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
In some situations, it can be useful to iterate through all
|
|
250
|
-
nodes around a position, including those in overlays that don't
|
|
251
|
-
directly cover the position. This method gives you an iterator
|
|
252
|
-
that will produce all nodes, from small to big, around the given
|
|
253
|
-
position.
|
|
254
|
-
*/
|
|
255
|
-
resolveStack(e, t = 0) {
|
|
256
|
-
return zt(this, e, t);
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
Iterate over the tree and its children, calling `enter` for any
|
|
260
|
-
node that touches the `from`/`to` region (if given) before
|
|
261
|
-
running over such a node's children, and `leave` (if given) when
|
|
262
|
-
leaving the node. When `enter` returns `false`, that node will
|
|
263
|
-
not have its children iterated over (or `leave` called).
|
|
264
|
-
*/
|
|
265
|
-
iterate(e) {
|
|
266
|
-
let { enter: t, leave: n, from: i = 0, to: s = this.length } = e, o = e.mode || 0, u = (o & I.IncludeAnonymous) > 0;
|
|
267
|
-
for (let f = this.cursor(o | I.IncludeAnonymous); ; ) {
|
|
268
|
-
let x = !1;
|
|
269
|
-
if (f.from <= s && f.to >= i && (!u && f.type.isAnonymous || t(f) !== !1)) {
|
|
270
|
-
if (f.firstChild())
|
|
271
|
-
continue;
|
|
272
|
-
x = !0;
|
|
273
|
-
}
|
|
274
|
-
for (; x && n && (u || !f.type.isAnonymous) && n(f), !f.nextSibling(); ) {
|
|
275
|
-
if (!f.parent())
|
|
276
|
-
return;
|
|
277
|
-
x = !0;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
Get the value of the given [node prop](#common.NodeProp) for this
|
|
283
|
-
node. Works with both per-node and per-type props.
|
|
284
|
-
*/
|
|
285
|
-
prop(e) {
|
|
286
|
-
return e.perNode ? this.props ? this.props[e.id] : void 0 : this.type.prop(e);
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
Returns the node's [per-node props](#common.NodeProp.perNode) in a
|
|
290
|
-
format that can be passed to the [`Tree`](#common.Tree)
|
|
291
|
-
constructor.
|
|
292
|
-
*/
|
|
293
|
-
get propValues() {
|
|
294
|
-
let e = [];
|
|
295
|
-
if (this.props)
|
|
296
|
-
for (let t in this.props)
|
|
297
|
-
e.push([+t, this.props[t]]);
|
|
298
|
-
return e;
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
Balance the direct children of this tree, producing a copy of
|
|
302
|
-
which may have children grouped into subtrees with type
|
|
303
|
-
[`NodeType.none`](#common.NodeType^none).
|
|
304
|
-
*/
|
|
305
|
-
balance(e = {}) {
|
|
306
|
-
return this.children.length <= 8 ? this : ze(G.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, i) => new R(this.type, t, n, i, this.propValues), e.makeTree || ((t, n, i) => new R(G.none, t, n, i)));
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
Build a tree from a postfix-ordered buffer of node information,
|
|
310
|
-
or a cursor over such a buffer.
|
|
311
|
-
*/
|
|
312
|
-
static build(e) {
|
|
313
|
-
return Mt(e);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
R.empty = new R(G.none, [], [], 0);
|
|
317
|
-
class Ee {
|
|
318
|
-
constructor(e, t) {
|
|
319
|
-
this.buffer = e, this.index = t;
|
|
320
|
-
}
|
|
321
|
-
get id() {
|
|
322
|
-
return this.buffer[this.index - 4];
|
|
323
|
-
}
|
|
324
|
-
get start() {
|
|
325
|
-
return this.buffer[this.index - 3];
|
|
326
|
-
}
|
|
327
|
-
get end() {
|
|
328
|
-
return this.buffer[this.index - 2];
|
|
329
|
-
}
|
|
330
|
-
get size() {
|
|
331
|
-
return this.buffer[this.index - 1];
|
|
332
|
-
}
|
|
333
|
-
get pos() {
|
|
334
|
-
return this.index;
|
|
335
|
-
}
|
|
336
|
-
next() {
|
|
337
|
-
this.index -= 4;
|
|
338
|
-
}
|
|
339
|
-
fork() {
|
|
340
|
-
return new Ee(this.buffer, this.index);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
class Q {
|
|
344
|
-
/**
|
|
345
|
-
Create a tree buffer.
|
|
346
|
-
*/
|
|
347
|
-
constructor(e, t, n) {
|
|
348
|
-
this.buffer = e, this.length = t, this.set = n;
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
@internal
|
|
352
|
-
*/
|
|
353
|
-
get type() {
|
|
354
|
-
return G.none;
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
@internal
|
|
358
|
-
*/
|
|
359
|
-
toString() {
|
|
360
|
-
let e = [];
|
|
361
|
-
for (let t = 0; t < this.buffer.length; )
|
|
362
|
-
e.push(this.childString(t)), t = this.buffer[t + 3];
|
|
363
|
-
return e.join(",");
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
@internal
|
|
367
|
-
*/
|
|
368
|
-
childString(e) {
|
|
369
|
-
let t = this.buffer[e], n = this.buffer[e + 3], i = this.set.types[t], s = i.name;
|
|
370
|
-
if (/\W/.test(s) && !i.isError && (s = JSON.stringify(s)), e += 4, n == e)
|
|
371
|
-
return s;
|
|
372
|
-
let o = [];
|
|
373
|
-
for (; e < n; )
|
|
374
|
-
o.push(this.childString(e)), e = this.buffer[e + 3];
|
|
375
|
-
return s + "(" + o.join(",") + ")";
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
@internal
|
|
379
|
-
*/
|
|
380
|
-
findChild(e, t, n, i, s) {
|
|
381
|
-
let { buffer: o } = this, u = -1;
|
|
382
|
-
for (let f = e; f != t && !(Xe(s, i, o[f + 1], o[f + 2]) && (u = f, n > 0)); f = o[f + 3])
|
|
383
|
-
;
|
|
384
|
-
return u;
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
@internal
|
|
388
|
-
*/
|
|
389
|
-
slice(e, t, n) {
|
|
390
|
-
let i = this.buffer, s = new Uint16Array(t - e), o = 0;
|
|
391
|
-
for (let u = e, f = 0; u < t; ) {
|
|
392
|
-
s[f++] = i[u++], s[f++] = i[u++] - n;
|
|
393
|
-
let x = s[f++] = i[u++] - n;
|
|
394
|
-
s[f++] = i[u++] - e, o = Math.max(o, x);
|
|
395
|
-
}
|
|
396
|
-
return new Q(s, o, this.set);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
function Xe(r, e, t, n) {
|
|
400
|
-
switch (r) {
|
|
401
|
-
case -2:
|
|
402
|
-
return t < e;
|
|
403
|
-
case -1:
|
|
404
|
-
return n >= e && t < e;
|
|
405
|
-
case 0:
|
|
406
|
-
return t < e && n > e;
|
|
407
|
-
case 1:
|
|
408
|
-
return t <= e && n > e;
|
|
409
|
-
case 2:
|
|
410
|
-
return n > e;
|
|
411
|
-
case 4:
|
|
412
|
-
return !0;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
function de(r, e, t, n) {
|
|
416
|
-
for (var i; r.from == r.to || (t < 1 ? r.from >= e : r.from > e) || (t > -1 ? r.to <= e : r.to < e); ) {
|
|
417
|
-
let o = !n && r instanceof z && r.index < 0 ? null : r.parent;
|
|
418
|
-
if (!o)
|
|
419
|
-
return r;
|
|
420
|
-
r = o;
|
|
421
|
-
}
|
|
422
|
-
let s = n ? 0 : I.IgnoreOverlays;
|
|
423
|
-
if (n)
|
|
424
|
-
for (let o = r, u = o.parent; u; o = u, u = o.parent)
|
|
425
|
-
o instanceof z && o.index < 0 && ((i = u.enter(e, t, s)) === null || i === void 0 ? void 0 : i.from) != o.from && (r = u);
|
|
426
|
-
for (; ; ) {
|
|
427
|
-
let o = r.enter(e, t, s);
|
|
428
|
-
if (!o)
|
|
429
|
-
return r;
|
|
430
|
-
r = o;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
class Ze {
|
|
434
|
-
cursor(e = 0) {
|
|
435
|
-
return new Le(this, e);
|
|
436
|
-
}
|
|
437
|
-
getChild(e, t = null, n = null) {
|
|
438
|
-
let i = De(this, e, t, n);
|
|
439
|
-
return i.length ? i[0] : null;
|
|
440
|
-
}
|
|
441
|
-
getChildren(e, t = null, n = null) {
|
|
442
|
-
return De(this, e, t, n);
|
|
443
|
-
}
|
|
444
|
-
resolve(e, t = 0) {
|
|
445
|
-
return de(this, e, t, !1);
|
|
446
|
-
}
|
|
447
|
-
resolveInner(e, t = 0) {
|
|
448
|
-
return de(this, e, t, !0);
|
|
449
|
-
}
|
|
450
|
-
matchContext(e) {
|
|
451
|
-
return Ie(this, e);
|
|
452
|
-
}
|
|
453
|
-
enterUnfinishedNodesBefore(e) {
|
|
454
|
-
let t = this.childBefore(e), n = this;
|
|
455
|
-
for (; t; ) {
|
|
456
|
-
let i = t.lastChild;
|
|
457
|
-
if (!i || i.to != t.to)
|
|
458
|
-
break;
|
|
459
|
-
i.type.isError && i.from == i.to ? (n = t, t = i.prevSibling) : t = i;
|
|
460
|
-
}
|
|
461
|
-
return n;
|
|
462
|
-
}
|
|
463
|
-
get node() {
|
|
464
|
-
return this;
|
|
465
|
-
}
|
|
466
|
-
get next() {
|
|
467
|
-
return this.parent;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
class z extends Ze {
|
|
471
|
-
constructor(e, t, n, i) {
|
|
472
|
-
super(), this._tree = e, this.from = t, this.index = n, this._parent = i;
|
|
473
|
-
}
|
|
474
|
-
get type() {
|
|
475
|
-
return this._tree.type;
|
|
476
|
-
}
|
|
477
|
-
get name() {
|
|
478
|
-
return this._tree.type.name;
|
|
479
|
-
}
|
|
480
|
-
get to() {
|
|
481
|
-
return this.from + this._tree.length;
|
|
482
|
-
}
|
|
483
|
-
nextChild(e, t, n, i, s = 0) {
|
|
484
|
-
for (let o = this; ; ) {
|
|
485
|
-
for (let { children: u, positions: f } = o._tree, x = t > 0 ? u.length : -1; e != x; e += t) {
|
|
486
|
-
let w = u[e], C = f[e] + o.from;
|
|
487
|
-
if (Xe(i, n, C, C + w.length)) {
|
|
488
|
-
if (w instanceof Q) {
|
|
489
|
-
if (s & I.ExcludeBuffers)
|
|
490
|
-
continue;
|
|
491
|
-
let A = w.findChild(0, w.buffer.length, t, n - C, i);
|
|
492
|
-
if (A > -1)
|
|
493
|
-
return new Z(new Et(o, w, e, C), null, A);
|
|
494
|
-
} else if (s & I.IncludeAnonymous || !w.type.isAnonymous || Oe(w)) {
|
|
495
|
-
let A;
|
|
496
|
-
if (!(s & I.IgnoreMounts) && (A = we.get(w)) && !A.overlay)
|
|
497
|
-
return new z(A.tree, C, e, o);
|
|
498
|
-
let B = new z(w, C, e, o);
|
|
499
|
-
return s & I.IncludeAnonymous || !B.type.isAnonymous ? B : B.nextChild(t < 0 ? w.children.length - 1 : 0, t, n, i);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
if (s & I.IncludeAnonymous || !o.type.isAnonymous || (o.index >= 0 ? e = o.index + t : e = t < 0 ? -1 : o._parent._tree.children.length, o = o._parent, !o))
|
|
504
|
-
return null;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
get firstChild() {
|
|
508
|
-
return this.nextChild(
|
|
509
|
-
0,
|
|
510
|
-
1,
|
|
511
|
-
0,
|
|
512
|
-
4
|
|
513
|
-
/* Side.DontCare */
|
|
514
|
-
);
|
|
515
|
-
}
|
|
516
|
-
get lastChild() {
|
|
517
|
-
return this.nextChild(
|
|
518
|
-
this._tree.children.length - 1,
|
|
519
|
-
-1,
|
|
520
|
-
0,
|
|
521
|
-
4
|
|
522
|
-
/* Side.DontCare */
|
|
523
|
-
);
|
|
524
|
-
}
|
|
525
|
-
childAfter(e) {
|
|
526
|
-
return this.nextChild(
|
|
527
|
-
0,
|
|
528
|
-
1,
|
|
529
|
-
e,
|
|
530
|
-
2
|
|
531
|
-
/* Side.After */
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
childBefore(e) {
|
|
535
|
-
return this.nextChild(
|
|
536
|
-
this._tree.children.length - 1,
|
|
537
|
-
-1,
|
|
538
|
-
e,
|
|
539
|
-
-2
|
|
540
|
-
/* Side.Before */
|
|
541
|
-
);
|
|
542
|
-
}
|
|
543
|
-
enter(e, t, n = 0) {
|
|
544
|
-
let i;
|
|
545
|
-
if (!(n & I.IgnoreOverlays) && (i = we.get(this._tree)) && i.overlay) {
|
|
546
|
-
let s = e - this.from;
|
|
547
|
-
for (let { from: o, to: u } of i.overlay)
|
|
548
|
-
if ((t > 0 ? o <= s : o < s) && (t < 0 ? u >= s : u > s))
|
|
549
|
-
return new z(i.tree, i.overlay[0].from + this.from, -1, this);
|
|
550
|
-
}
|
|
551
|
-
return this.nextChild(0, 1, e, t, n);
|
|
552
|
-
}
|
|
553
|
-
nextSignificantParent() {
|
|
554
|
-
let e = this;
|
|
555
|
-
for (; e.type.isAnonymous && e._parent; )
|
|
556
|
-
e = e._parent;
|
|
557
|
-
return e;
|
|
558
|
-
}
|
|
559
|
-
get parent() {
|
|
560
|
-
return this._parent ? this._parent.nextSignificantParent() : null;
|
|
561
|
-
}
|
|
562
|
-
get nextSibling() {
|
|
563
|
-
return this._parent && this.index >= 0 ? this._parent.nextChild(
|
|
564
|
-
this.index + 1,
|
|
565
|
-
1,
|
|
566
|
-
0,
|
|
567
|
-
4
|
|
568
|
-
/* Side.DontCare */
|
|
569
|
-
) : null;
|
|
570
|
-
}
|
|
571
|
-
get prevSibling() {
|
|
572
|
-
return this._parent && this.index >= 0 ? this._parent.nextChild(
|
|
573
|
-
this.index - 1,
|
|
574
|
-
-1,
|
|
575
|
-
0,
|
|
576
|
-
4
|
|
577
|
-
/* Side.DontCare */
|
|
578
|
-
) : null;
|
|
579
|
-
}
|
|
580
|
-
get tree() {
|
|
581
|
-
return this._tree;
|
|
582
|
-
}
|
|
583
|
-
toTree() {
|
|
584
|
-
return this._tree;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
@internal
|
|
588
|
-
*/
|
|
589
|
-
toString() {
|
|
590
|
-
return this._tree.toString();
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
function De(r, e, t, n) {
|
|
594
|
-
let i = r.cursor(), s = [];
|
|
595
|
-
if (!i.firstChild())
|
|
596
|
-
return s;
|
|
597
|
-
if (t != null) {
|
|
598
|
-
for (let o = !1; !o; )
|
|
599
|
-
if (o = i.type.is(t), !i.nextSibling())
|
|
600
|
-
return s;
|
|
601
|
-
}
|
|
602
|
-
for (; ; ) {
|
|
603
|
-
if (n != null && i.type.is(n))
|
|
604
|
-
return s;
|
|
605
|
-
if (i.type.is(e) && s.push(i.node), !i.nextSibling())
|
|
606
|
-
return n == null ? s : [];
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
function Ie(r, e, t = e.length - 1) {
|
|
610
|
-
for (let n = r.parent; t >= 0; n = n.parent) {
|
|
611
|
-
if (!n)
|
|
612
|
-
return !1;
|
|
613
|
-
if (!n.type.isAnonymous) {
|
|
614
|
-
if (e[t] && e[t] != n.name)
|
|
615
|
-
return !1;
|
|
616
|
-
t--;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
return !0;
|
|
620
|
-
}
|
|
621
|
-
class Et {
|
|
622
|
-
constructor(e, t, n, i) {
|
|
623
|
-
this.parent = e, this.buffer = t, this.index = n, this.start = i;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
class Z extends Ze {
|
|
627
|
-
get name() {
|
|
628
|
-
return this.type.name;
|
|
629
|
-
}
|
|
630
|
-
get from() {
|
|
631
|
-
return this.context.start + this.context.buffer.buffer[this.index + 1];
|
|
632
|
-
}
|
|
633
|
-
get to() {
|
|
634
|
-
return this.context.start + this.context.buffer.buffer[this.index + 2];
|
|
635
|
-
}
|
|
636
|
-
constructor(e, t, n) {
|
|
637
|
-
super(), this.context = e, this._parent = t, this.index = n, this.type = e.buffer.set.types[e.buffer.buffer[n]];
|
|
638
|
-
}
|
|
639
|
-
child(e, t, n) {
|
|
640
|
-
let { buffer: i } = this.context, s = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.context.start, n);
|
|
641
|
-
return s < 0 ? null : new Z(this.context, this, s);
|
|
642
|
-
}
|
|
643
|
-
get firstChild() {
|
|
644
|
-
return this.child(
|
|
645
|
-
1,
|
|
646
|
-
0,
|
|
647
|
-
4
|
|
648
|
-
/* Side.DontCare */
|
|
649
|
-
);
|
|
650
|
-
}
|
|
651
|
-
get lastChild() {
|
|
652
|
-
return this.child(
|
|
653
|
-
-1,
|
|
654
|
-
0,
|
|
655
|
-
4
|
|
656
|
-
/* Side.DontCare */
|
|
657
|
-
);
|
|
658
|
-
}
|
|
659
|
-
childAfter(e) {
|
|
660
|
-
return this.child(
|
|
661
|
-
1,
|
|
662
|
-
e,
|
|
663
|
-
2
|
|
664
|
-
/* Side.After */
|
|
665
|
-
);
|
|
666
|
-
}
|
|
667
|
-
childBefore(e) {
|
|
668
|
-
return this.child(
|
|
669
|
-
-1,
|
|
670
|
-
e,
|
|
671
|
-
-2
|
|
672
|
-
/* Side.Before */
|
|
673
|
-
);
|
|
674
|
-
}
|
|
675
|
-
enter(e, t, n = 0) {
|
|
676
|
-
if (n & I.ExcludeBuffers)
|
|
677
|
-
return null;
|
|
678
|
-
let { buffer: i } = this.context, s = i.findChild(this.index + 4, i.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
679
|
-
return s < 0 ? null : new Z(this.context, this, s);
|
|
680
|
-
}
|
|
681
|
-
get parent() {
|
|
682
|
-
return this._parent || this.context.parent.nextSignificantParent();
|
|
683
|
-
}
|
|
684
|
-
externalSibling(e) {
|
|
685
|
-
return this._parent ? null : this.context.parent.nextChild(
|
|
686
|
-
this.context.index + e,
|
|
687
|
-
e,
|
|
688
|
-
0,
|
|
689
|
-
4
|
|
690
|
-
/* Side.DontCare */
|
|
691
|
-
);
|
|
692
|
-
}
|
|
693
|
-
get nextSibling() {
|
|
694
|
-
let { buffer: e } = this.context, t = e.buffer[this.index + 3];
|
|
695
|
-
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new Z(this.context, this._parent, t) : this.externalSibling(1);
|
|
696
|
-
}
|
|
697
|
-
get prevSibling() {
|
|
698
|
-
let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
|
|
699
|
-
return this.index == t ? this.externalSibling(-1) : new Z(this.context, this._parent, e.findChild(
|
|
700
|
-
t,
|
|
701
|
-
this.index,
|
|
702
|
-
-1,
|
|
703
|
-
0,
|
|
704
|
-
4
|
|
705
|
-
/* Side.DontCare */
|
|
706
|
-
));
|
|
707
|
-
}
|
|
708
|
-
get tree() {
|
|
709
|
-
return null;
|
|
710
|
-
}
|
|
711
|
-
toTree() {
|
|
712
|
-
let e = [], t = [], { buffer: n } = this.context, i = this.index + 4, s = n.buffer[this.index + 3];
|
|
713
|
-
if (s > i) {
|
|
714
|
-
let o = n.buffer[this.index + 1];
|
|
715
|
-
e.push(n.slice(i, s, o)), t.push(0);
|
|
716
|
-
}
|
|
717
|
-
return new R(this.type, e, t, this.to - this.from);
|
|
718
|
-
}
|
|
719
|
-
/**
|
|
720
|
-
@internal
|
|
721
|
-
*/
|
|
722
|
-
toString() {
|
|
723
|
-
return this.context.buffer.childString(this.index);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
function Qe(r) {
|
|
727
|
-
if (!r.length)
|
|
728
|
-
return null;
|
|
729
|
-
let e = 0, t = r[0];
|
|
730
|
-
for (let s = 1; s < r.length; s++) {
|
|
731
|
-
let o = r[s];
|
|
732
|
-
(o.from > t.from || o.to < t.to) && (t = o, e = s);
|
|
733
|
-
}
|
|
734
|
-
let n = t instanceof z && t.index < 0 ? null : t.parent, i = r.slice();
|
|
735
|
-
return n ? i[e] = n : i.splice(e, 1), new Ot(i, t);
|
|
736
|
-
}
|
|
737
|
-
class Ot {
|
|
738
|
-
constructor(e, t) {
|
|
739
|
-
this.heads = e, this.node = t;
|
|
740
|
-
}
|
|
741
|
-
get next() {
|
|
742
|
-
return Qe(this.heads);
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
function zt(r, e, t) {
|
|
746
|
-
let n = r.resolveInner(e, t), i = null;
|
|
747
|
-
for (let s = n instanceof z ? n : n.context.parent; s; s = s.parent)
|
|
748
|
-
if (s.index < 0) {
|
|
749
|
-
let o = s.parent;
|
|
750
|
-
(i || (i = [n])).push(o.resolve(e, t)), s = o;
|
|
751
|
-
} else {
|
|
752
|
-
let o = we.get(s.tree);
|
|
753
|
-
if (o && o.overlay && o.overlay[0].from <= e && o.overlay[o.overlay.length - 1].to >= e) {
|
|
754
|
-
let u = new z(o.tree, o.overlay[0].from + s.from, -1, s);
|
|
755
|
-
(i || (i = [n])).push(de(u, e, t, !1));
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
return i ? Qe(i) : n;
|
|
759
|
-
}
|
|
760
|
-
class Le {
|
|
761
|
-
/**
|
|
762
|
-
Shorthand for `.type.name`.
|
|
763
|
-
*/
|
|
764
|
-
get name() {
|
|
765
|
-
return this.type.name;
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
@internal
|
|
769
|
-
*/
|
|
770
|
-
constructor(e, t = 0) {
|
|
771
|
-
if (this.mode = t, this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, e instanceof z)
|
|
772
|
-
this.yieldNode(e);
|
|
773
|
-
else {
|
|
774
|
-
this._tree = e.context.parent, this.buffer = e.context;
|
|
775
|
-
for (let n = e._parent; n; n = n._parent)
|
|
776
|
-
this.stack.unshift(n.index);
|
|
777
|
-
this.bufferNode = e, this.yieldBuf(e.index);
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
yieldNode(e) {
|
|
781
|
-
return e ? (this._tree = e, this.type = e.type, this.from = e.from, this.to = e.to, !0) : !1;
|
|
782
|
-
}
|
|
783
|
-
yieldBuf(e, t) {
|
|
784
|
-
this.index = e;
|
|
785
|
-
let { start: n, buffer: i } = this.buffer;
|
|
786
|
-
return this.type = t || i.set.types[i.buffer[e]], this.from = n + i.buffer[e + 1], this.to = n + i.buffer[e + 2], !0;
|
|
787
|
-
}
|
|
788
|
-
/**
|
|
789
|
-
@internal
|
|
790
|
-
*/
|
|
791
|
-
yield(e) {
|
|
792
|
-
return e ? e instanceof z ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
@internal
|
|
796
|
-
*/
|
|
797
|
-
toString() {
|
|
798
|
-
return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
|
|
799
|
-
}
|
|
800
|
-
/**
|
|
801
|
-
@internal
|
|
802
|
-
*/
|
|
803
|
-
enterChild(e, t, n) {
|
|
804
|
-
if (!this.buffer)
|
|
805
|
-
return this.yield(this._tree.nextChild(e < 0 ? this._tree._tree.children.length - 1 : 0, e, t, n, this.mode));
|
|
806
|
-
let { buffer: i } = this.buffer, s = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.buffer.start, n);
|
|
807
|
-
return s < 0 ? !1 : (this.stack.push(this.index), this.yieldBuf(s));
|
|
808
|
-
}
|
|
809
|
-
/**
|
|
810
|
-
Move the cursor to this node's first child. When this returns
|
|
811
|
-
false, the node has no child, and the cursor has not been moved.
|
|
812
|
-
*/
|
|
813
|
-
firstChild() {
|
|
814
|
-
return this.enterChild(
|
|
815
|
-
1,
|
|
816
|
-
0,
|
|
817
|
-
4
|
|
818
|
-
/* Side.DontCare */
|
|
819
|
-
);
|
|
820
|
-
}
|
|
821
|
-
/**
|
|
822
|
-
Move the cursor to this node's last child.
|
|
823
|
-
*/
|
|
824
|
-
lastChild() {
|
|
825
|
-
return this.enterChild(
|
|
826
|
-
-1,
|
|
827
|
-
0,
|
|
828
|
-
4
|
|
829
|
-
/* Side.DontCare */
|
|
830
|
-
);
|
|
831
|
-
}
|
|
832
|
-
/**
|
|
833
|
-
Move the cursor to the first child that ends after `pos`.
|
|
834
|
-
*/
|
|
835
|
-
childAfter(e) {
|
|
836
|
-
return this.enterChild(
|
|
837
|
-
1,
|
|
838
|
-
e,
|
|
839
|
-
2
|
|
840
|
-
/* Side.After */
|
|
841
|
-
);
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
Move to the last child that starts before `pos`.
|
|
845
|
-
*/
|
|
846
|
-
childBefore(e) {
|
|
847
|
-
return this.enterChild(
|
|
848
|
-
-1,
|
|
849
|
-
e,
|
|
850
|
-
-2
|
|
851
|
-
/* Side.Before */
|
|
852
|
-
);
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
Move the cursor to the child around `pos`. If side is -1 the
|
|
856
|
-
child may end at that position, when 1 it may start there. This
|
|
857
|
-
will also enter [overlaid](#common.MountedTree.overlay)
|
|
858
|
-
[mounted](#common.NodeProp^mounted) trees unless `overlays` is
|
|
859
|
-
set to false.
|
|
860
|
-
*/
|
|
861
|
-
enter(e, t, n = this.mode) {
|
|
862
|
-
return this.buffer ? n & I.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
|
|
863
|
-
}
|
|
864
|
-
/**
|
|
865
|
-
Move to the node's parent node, if this isn't the top node.
|
|
866
|
-
*/
|
|
867
|
-
parent() {
|
|
868
|
-
if (!this.buffer)
|
|
869
|
-
return this.yieldNode(this.mode & I.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
870
|
-
if (this.stack.length)
|
|
871
|
-
return this.yieldBuf(this.stack.pop());
|
|
872
|
-
let e = this.mode & I.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
873
|
-
return this.buffer = null, this.yieldNode(e);
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
@internal
|
|
877
|
-
*/
|
|
878
|
-
sibling(e) {
|
|
879
|
-
if (!this.buffer)
|
|
880
|
-
return this._tree._parent ? this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + e, e, 0, 4, this.mode)) : !1;
|
|
881
|
-
let { buffer: t } = this.buffer, n = this.stack.length - 1;
|
|
882
|
-
if (e < 0) {
|
|
883
|
-
let i = n < 0 ? 0 : this.stack[n] + 4;
|
|
884
|
-
if (this.index != i)
|
|
885
|
-
return this.yieldBuf(t.findChild(
|
|
886
|
-
i,
|
|
887
|
-
this.index,
|
|
888
|
-
-1,
|
|
889
|
-
0,
|
|
890
|
-
4
|
|
891
|
-
/* Side.DontCare */
|
|
892
|
-
));
|
|
893
|
-
} else {
|
|
894
|
-
let i = t.buffer[this.index + 3];
|
|
895
|
-
if (i < (n < 0 ? t.buffer.length : t.buffer[this.stack[n] + 3]))
|
|
896
|
-
return this.yieldBuf(i);
|
|
897
|
-
}
|
|
898
|
-
return n < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + e, e, 0, 4, this.mode)) : !1;
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
Move to this node's next sibling, if any.
|
|
902
|
-
*/
|
|
903
|
-
nextSibling() {
|
|
904
|
-
return this.sibling(1);
|
|
905
|
-
}
|
|
906
|
-
/**
|
|
907
|
-
Move to this node's previous sibling, if any.
|
|
908
|
-
*/
|
|
909
|
-
prevSibling() {
|
|
910
|
-
return this.sibling(-1);
|
|
911
|
-
}
|
|
912
|
-
atLastNode(e) {
|
|
913
|
-
let t, n, { buffer: i } = this;
|
|
914
|
-
if (i) {
|
|
915
|
-
if (e > 0) {
|
|
916
|
-
if (this.index < i.buffer.buffer.length)
|
|
917
|
-
return !1;
|
|
918
|
-
} else
|
|
919
|
-
for (let s = 0; s < this.index; s++)
|
|
920
|
-
if (i.buffer.buffer[s + 3] < this.index)
|
|
921
|
-
return !1;
|
|
922
|
-
({ index: t, parent: n } = i);
|
|
923
|
-
} else
|
|
924
|
-
({ index: t, _parent: n } = this._tree);
|
|
925
|
-
for (; n; { index: t, _parent: n } = n)
|
|
926
|
-
if (t > -1)
|
|
927
|
-
for (let s = t + e, o = e < 0 ? -1 : n._tree.children.length; s != o; s += e) {
|
|
928
|
-
let u = n._tree.children[s];
|
|
929
|
-
if (this.mode & I.IncludeAnonymous || u instanceof Q || !u.type.isAnonymous || Oe(u))
|
|
930
|
-
return !1;
|
|
931
|
-
}
|
|
932
|
-
return !0;
|
|
933
|
-
}
|
|
934
|
-
move(e, t) {
|
|
935
|
-
if (t && this.enterChild(
|
|
936
|
-
e,
|
|
937
|
-
0,
|
|
938
|
-
4
|
|
939
|
-
/* Side.DontCare */
|
|
940
|
-
))
|
|
941
|
-
return !0;
|
|
942
|
-
for (; ; ) {
|
|
943
|
-
if (this.sibling(e))
|
|
944
|
-
return !0;
|
|
945
|
-
if (this.atLastNode(e) || !this.parent())
|
|
946
|
-
return !1;
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
Move to the next node in a
|
|
951
|
-
[pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)
|
|
952
|
-
traversal, going from a node to its first child or, if the
|
|
953
|
-
current node is empty or `enter` is false, its next sibling or
|
|
954
|
-
the next sibling of the first parent node that has one.
|
|
955
|
-
*/
|
|
956
|
-
next(e = !0) {
|
|
957
|
-
return this.move(1, e);
|
|
958
|
-
}
|
|
959
|
-
/**
|
|
960
|
-
Move to the next node in a last-to-first pre-order traveral. A
|
|
961
|
-
node is followed by its last child or, if it has none, its
|
|
962
|
-
previous sibling or the previous sibling of the first parent
|
|
963
|
-
node that has one.
|
|
964
|
-
*/
|
|
965
|
-
prev(e = !0) {
|
|
966
|
-
return this.move(-1, e);
|
|
967
|
-
}
|
|
968
|
-
/**
|
|
969
|
-
Move the cursor to the innermost node that covers `pos`. If
|
|
970
|
-
`side` is -1, it will enter nodes that end at `pos`. If it is 1,
|
|
971
|
-
it will enter nodes that start at `pos`.
|
|
972
|
-
*/
|
|
973
|
-
moveTo(e, t = 0) {
|
|
974
|
-
for (; (this.from == this.to || (t < 1 ? this.from >= e : this.from > e) || (t > -1 ? this.to <= e : this.to < e)) && this.parent(); )
|
|
975
|
-
;
|
|
976
|
-
for (; this.enterChild(1, e, t); )
|
|
977
|
-
;
|
|
978
|
-
return this;
|
|
979
|
-
}
|
|
980
|
-
/**
|
|
981
|
-
Get a [syntax node](#common.SyntaxNode) at the cursor's current
|
|
982
|
-
position.
|
|
983
|
-
*/
|
|
984
|
-
get node() {
|
|
985
|
-
if (!this.buffer)
|
|
986
|
-
return this._tree;
|
|
987
|
-
let e = this.bufferNode, t = null, n = 0;
|
|
988
|
-
if (e && e.context == this.buffer)
|
|
989
|
-
e:
|
|
990
|
-
for (let i = this.index, s = this.stack.length; s >= 0; ) {
|
|
991
|
-
for (let o = e; o; o = o._parent)
|
|
992
|
-
if (o.index == i) {
|
|
993
|
-
if (i == this.index)
|
|
994
|
-
return o;
|
|
995
|
-
t = o, n = s + 1;
|
|
996
|
-
break e;
|
|
997
|
-
}
|
|
998
|
-
i = this.stack[--s];
|
|
999
|
-
}
|
|
1000
|
-
for (let i = n; i < this.stack.length; i++)
|
|
1001
|
-
t = new Z(this.buffer, t, this.stack[i]);
|
|
1002
|
-
return this.bufferNode = new Z(this.buffer, t, this.index);
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
Get the [tree](#common.Tree) that represents the current node, if
|
|
1006
|
-
any. Will return null when the node is in a [tree
|
|
1007
|
-
buffer](#common.TreeBuffer).
|
|
1008
|
-
*/
|
|
1009
|
-
get tree() {
|
|
1010
|
-
return this.buffer ? null : this._tree._tree;
|
|
1011
|
-
}
|
|
1012
|
-
/**
|
|
1013
|
-
Iterate over the current node and all its descendants, calling
|
|
1014
|
-
`enter` when entering a node and `leave`, if given, when leaving
|
|
1015
|
-
one. When `enter` returns `false`, any children of that node are
|
|
1016
|
-
skipped, and `leave` isn't called for it.
|
|
1017
|
-
*/
|
|
1018
|
-
iterate(e, t) {
|
|
1019
|
-
for (let n = 0; ; ) {
|
|
1020
|
-
let i = !1;
|
|
1021
|
-
if (this.type.isAnonymous || e(this) !== !1) {
|
|
1022
|
-
if (this.firstChild()) {
|
|
1023
|
-
n++;
|
|
1024
|
-
continue;
|
|
1025
|
-
}
|
|
1026
|
-
this.type.isAnonymous || (i = !0);
|
|
1027
|
-
}
|
|
1028
|
-
for (; i && t && t(this), i = this.type.isAnonymous, !this.nextSibling(); ) {
|
|
1029
|
-
if (!n)
|
|
1030
|
-
return;
|
|
1031
|
-
this.parent(), n--, i = !0;
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
Test whether the current node matches a given context—a sequence
|
|
1037
|
-
of direct parent node names. Empty strings in the context array
|
|
1038
|
-
are treated as wildcards.
|
|
1039
|
-
*/
|
|
1040
|
-
matchContext(e) {
|
|
1041
|
-
if (!this.buffer)
|
|
1042
|
-
return Ie(this.node, e);
|
|
1043
|
-
let { buffer: t } = this.buffer, { types: n } = t.set;
|
|
1044
|
-
for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) {
|
|
1045
|
-
if (s < 0)
|
|
1046
|
-
return Ie(this.node, e, i);
|
|
1047
|
-
let o = n[t.buffer[this.stack[s]]];
|
|
1048
|
-
if (!o.isAnonymous) {
|
|
1049
|
-
if (e[i] && e[i] != o.name)
|
|
1050
|
-
return !1;
|
|
1051
|
-
i--;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
return !0;
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
function Oe(r) {
|
|
1058
|
-
return r.children.some((e) => e instanceof Q || !e.type.isAnonymous || Oe(e));
|
|
1059
|
-
}
|
|
1060
|
-
function Mt(r) {
|
|
1061
|
-
var e;
|
|
1062
|
-
let { buffer: t, nodeSet: n, maxBufferLength: i = It, reused: s = [], minRepeatType: o = n.types.length } = r, u = Array.isArray(t) ? new Ee(t, t.length) : t, f = n.types, x = 0, w = 0;
|
|
1063
|
-
function C(g, b, h, y, p, m) {
|
|
1064
|
-
let { id: c, start: d, end: _, size: k } = u, L = w;
|
|
1065
|
-
for (; k < 0; )
|
|
1066
|
-
if (u.next(), k == -1) {
|
|
1067
|
-
let W = s[c];
|
|
1068
|
-
h.push(W), y.push(d - g);
|
|
1069
|
-
return;
|
|
1070
|
-
} else if (k == -3) {
|
|
1071
|
-
x = c;
|
|
1072
|
-
return;
|
|
1073
|
-
} else if (k == -4) {
|
|
1074
|
-
w = c;
|
|
1075
|
-
return;
|
|
1076
|
-
} else
|
|
1077
|
-
throw new RangeError(`Unrecognized record size: ${k}`);
|
|
1078
|
-
let Y = f[c], ie, ee, Me = d - g;
|
|
1079
|
-
if (_ - d <= i && (ee = M(u.pos - b, p))) {
|
|
1080
|
-
let W = new Uint16Array(ee.size - ee.skip), E = u.pos - ee.size, P = W.length;
|
|
1081
|
-
for (; u.pos > E; )
|
|
1082
|
-
P = D(ee.start, W, P);
|
|
1083
|
-
ie = new Q(W, _ - ee.start, n), Me = ee.start - g;
|
|
1084
|
-
} else {
|
|
1085
|
-
let W = u.pos - k;
|
|
1086
|
-
u.next();
|
|
1087
|
-
let E = [], P = [], te = c >= o ? c : -1, se = 0, pe = _;
|
|
1088
|
-
for (; u.pos > W; )
|
|
1089
|
-
te >= 0 && u.id == te && u.size >= 0 ? (u.end <= pe - i && (N(E, P, d, se, u.end, pe, te, L), se = E.length, pe = u.end), u.next()) : m > 2500 ? A(d, W, E, P) : C(d, W, E, P, te, m + 1);
|
|
1090
|
-
if (te >= 0 && se > 0 && se < E.length && N(E, P, d, se, d, pe, te, L), E.reverse(), P.reverse(), te > -1 && se > 0) {
|
|
1091
|
-
let Te = B(Y);
|
|
1092
|
-
ie = ze(Y, E, P, 0, E.length, 0, _ - d, Te, Te);
|
|
1093
|
-
} else
|
|
1094
|
-
ie = T(Y, E, P, _ - d, L - _);
|
|
1095
|
-
}
|
|
1096
|
-
h.push(ie), y.push(Me);
|
|
1097
|
-
}
|
|
1098
|
-
function A(g, b, h, y) {
|
|
1099
|
-
let p = [], m = 0, c = -1;
|
|
1100
|
-
for (; u.pos > b; ) {
|
|
1101
|
-
let { id: d, start: _, end: k, size: L } = u;
|
|
1102
|
-
if (L > 4)
|
|
1103
|
-
u.next();
|
|
1104
|
-
else {
|
|
1105
|
-
if (c > -1 && _ < c)
|
|
1106
|
-
break;
|
|
1107
|
-
c < 0 && (c = k - i), p.push(d, _, k), m++, u.next();
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
if (m) {
|
|
1111
|
-
let d = new Uint16Array(m * 4), _ = p[p.length - 2];
|
|
1112
|
-
for (let k = p.length - 3, L = 0; k >= 0; k -= 3)
|
|
1113
|
-
d[L++] = p[k], d[L++] = p[k + 1] - _, d[L++] = p[k + 2] - _, d[L++] = L;
|
|
1114
|
-
h.push(new Q(d, p[2] - _, n)), y.push(_ - g);
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
function B(g) {
|
|
1118
|
-
return (b, h, y) => {
|
|
1119
|
-
let p = 0, m = b.length - 1, c, d;
|
|
1120
|
-
if (m >= 0 && (c = b[m]) instanceof R) {
|
|
1121
|
-
if (!m && c.type == g && c.length == y)
|
|
1122
|
-
return c;
|
|
1123
|
-
(d = c.prop(v.lookAhead)) && (p = h[m] + c.length + d);
|
|
1124
|
-
}
|
|
1125
|
-
return T(g, b, h, y, p);
|
|
1126
|
-
};
|
|
1127
|
-
}
|
|
1128
|
-
function N(g, b, h, y, p, m, c, d) {
|
|
1129
|
-
let _ = [], k = [];
|
|
1130
|
-
for (; g.length > y; )
|
|
1131
|
-
_.push(g.pop()), k.push(b.pop() + h - p);
|
|
1132
|
-
g.push(T(n.types[c], _, k, m - p, d - m)), b.push(p - h);
|
|
1133
|
-
}
|
|
1134
|
-
function T(g, b, h, y, p = 0, m) {
|
|
1135
|
-
if (x) {
|
|
1136
|
-
let c = [v.contextHash, x];
|
|
1137
|
-
m = m ? [c].concat(m) : [c];
|
|
1138
|
-
}
|
|
1139
|
-
if (p > 25) {
|
|
1140
|
-
let c = [v.lookAhead, p];
|
|
1141
|
-
m = m ? [c].concat(m) : [c];
|
|
1142
|
-
}
|
|
1143
|
-
return new R(g, b, h, y, m);
|
|
1144
|
-
}
|
|
1145
|
-
function M(g, b) {
|
|
1146
|
-
let h = u.fork(), y = 0, p = 0, m = 0, c = h.end - i, d = { size: 0, start: 0, skip: 0 };
|
|
1147
|
-
e:
|
|
1148
|
-
for (let _ = h.pos - g; h.pos > _; ) {
|
|
1149
|
-
let k = h.size;
|
|
1150
|
-
if (h.id == b && k >= 0) {
|
|
1151
|
-
d.size = y, d.start = p, d.skip = m, m += 4, y += 4, h.next();
|
|
1152
|
-
continue;
|
|
1153
|
-
}
|
|
1154
|
-
let L = h.pos - k;
|
|
1155
|
-
if (k < 0 || L < _ || h.start < c)
|
|
1156
|
-
break;
|
|
1157
|
-
let Y = h.id >= o ? 4 : 0, ie = h.start;
|
|
1158
|
-
for (h.next(); h.pos > L; ) {
|
|
1159
|
-
if (h.size < 0)
|
|
1160
|
-
if (h.size == -3)
|
|
1161
|
-
Y += 4;
|
|
1162
|
-
else
|
|
1163
|
-
break e;
|
|
1164
|
-
else
|
|
1165
|
-
h.id >= o && (Y += 4);
|
|
1166
|
-
h.next();
|
|
1167
|
-
}
|
|
1168
|
-
p = ie, y += k, m += Y;
|
|
1169
|
-
}
|
|
1170
|
-
return (b < 0 || y == g) && (d.size = y, d.start = p, d.skip = m), d.size > 4 ? d : void 0;
|
|
1171
|
-
}
|
|
1172
|
-
function D(g, b, h) {
|
|
1173
|
-
let { id: y, start: p, end: m, size: c } = u;
|
|
1174
|
-
if (u.next(), c >= 0 && y < o) {
|
|
1175
|
-
let d = h;
|
|
1176
|
-
if (c > 4) {
|
|
1177
|
-
let _ = u.pos - (c - 4);
|
|
1178
|
-
for (; u.pos > _; )
|
|
1179
|
-
h = D(g, b, h);
|
|
1180
|
-
}
|
|
1181
|
-
b[--h] = d, b[--h] = m - g, b[--h] = p - g, b[--h] = y;
|
|
1182
|
-
} else
|
|
1183
|
-
c == -3 ? x = y : c == -4 && (w = y);
|
|
1184
|
-
return h;
|
|
1185
|
-
}
|
|
1186
|
-
let U = [], S = [];
|
|
1187
|
-
for (; u.pos > 0; )
|
|
1188
|
-
C(r.start || 0, r.bufferStart || 0, U, S, -1, 0);
|
|
1189
|
-
let J = (e = r.length) !== null && e !== void 0 ? e : U.length ? S[0] + U[0].length : 0;
|
|
1190
|
-
return new R(f[r.topID], U.reverse(), S.reverse(), J);
|
|
1191
|
-
}
|
|
1192
|
-
const Ue = /* @__PURE__ */ new WeakMap();
|
|
1193
|
-
function _e(r, e) {
|
|
1194
|
-
if (!r.isAnonymous || e instanceof Q || e.type != r)
|
|
1195
|
-
return 1;
|
|
1196
|
-
let t = Ue.get(e);
|
|
1197
|
-
if (t == null) {
|
|
1198
|
-
t = 1;
|
|
1199
|
-
for (let n of e.children) {
|
|
1200
|
-
if (n.type != r || !(n instanceof R)) {
|
|
1201
|
-
t = 1;
|
|
1202
|
-
break;
|
|
1203
|
-
}
|
|
1204
|
-
t += _e(r, n);
|
|
1205
|
-
}
|
|
1206
|
-
Ue.set(e, t);
|
|
1207
|
-
}
|
|
1208
|
-
return t;
|
|
1209
|
-
}
|
|
1210
|
-
function ze(r, e, t, n, i, s, o, u, f) {
|
|
1211
|
-
let x = 0;
|
|
1212
|
-
for (let N = n; N < i; N++)
|
|
1213
|
-
x += _e(r, e[N]);
|
|
1214
|
-
let w = Math.ceil(
|
|
1215
|
-
x * 1.5 / 8
|
|
1216
|
-
/* Balance.BranchFactor */
|
|
1217
|
-
), C = [], A = [];
|
|
1218
|
-
function B(N, T, M, D, U) {
|
|
1219
|
-
for (let S = M; S < D; ) {
|
|
1220
|
-
let J = S, g = T[S], b = _e(r, N[S]);
|
|
1221
|
-
for (S++; S < D; S++) {
|
|
1222
|
-
let h = _e(r, N[S]);
|
|
1223
|
-
if (b + h >= w)
|
|
1224
|
-
break;
|
|
1225
|
-
b += h;
|
|
1226
|
-
}
|
|
1227
|
-
if (S == J + 1) {
|
|
1228
|
-
if (b > w) {
|
|
1229
|
-
let h = N[J];
|
|
1230
|
-
B(h.children, h.positions, 0, h.children.length, T[J] + U);
|
|
1231
|
-
continue;
|
|
1232
|
-
}
|
|
1233
|
-
C.push(N[J]);
|
|
1234
|
-
} else {
|
|
1235
|
-
let h = T[S - 1] + N[S - 1].length - g;
|
|
1236
|
-
C.push(ze(r, N, T, J, S, g, h, null, f));
|
|
1237
|
-
}
|
|
1238
|
-
A.push(g + U - s);
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
return B(e, t, n, i, 0), (u || f)(C, A, o);
|
|
1242
|
-
}
|
|
1243
|
-
new v({ perNode: !0 });
|
|
1244
|
-
let Tt = 0;
|
|
1245
|
-
class j {
|
|
1246
|
-
/**
|
|
1247
|
-
@internal
|
|
1248
|
-
*/
|
|
1249
|
-
constructor(e, t, n) {
|
|
1250
|
-
this.set = e, this.base = t, this.modified = n, this.id = Tt++;
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
Define a new tag. If `parent` is given, the tag is treated as a
|
|
1254
|
-
sub-tag of that parent, and
|
|
1255
|
-
[highlighters](#highlight.tagHighlighter) that don't mention
|
|
1256
|
-
this tag will try to fall back to the parent tag (or grandparent
|
|
1257
|
-
tag, etc).
|
|
1258
|
-
*/
|
|
1259
|
-
static define(e) {
|
|
1260
|
-
if (e != null && e.base)
|
|
1261
|
-
throw new Error("Can not derive from a modified tag");
|
|
1262
|
-
let t = new j([], null, []);
|
|
1263
|
-
if (t.set.push(t), e)
|
|
1264
|
-
for (let n of e.set)
|
|
1265
|
-
t.set.push(n);
|
|
1266
|
-
return t;
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
Define a tag _modifier_, which is a function that, given a tag,
|
|
1270
|
-
will return a tag that is a subtag of the original. Applying the
|
|
1271
|
-
same modifier to a twice tag will return the same value (`m1(t1)
|
|
1272
|
-
== m1(t1)`) and applying multiple modifiers will, regardless or
|
|
1273
|
-
order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
|
|
1274
|
-
|
|
1275
|
-
When multiple modifiers are applied to a given base tag, each
|
|
1276
|
-
smaller set of modifiers is registered as a parent, so that for
|
|
1277
|
-
example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
|
|
1278
|
-
`m1(m3(t1)`, and so on.
|
|
1279
|
-
*/
|
|
1280
|
-
static defineModifier() {
|
|
1281
|
-
let e = new Ce();
|
|
1282
|
-
return (t) => t.modified.indexOf(e) > -1 ? t : Ce.get(t.base || t, t.modified.concat(e).sort((n, i) => n.id - i.id));
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
let Pt = 0;
|
|
1286
|
-
class Ce {
|
|
1287
|
-
constructor() {
|
|
1288
|
-
this.instances = [], this.id = Pt++;
|
|
1289
|
-
}
|
|
1290
|
-
static get(e, t) {
|
|
1291
|
-
if (!t.length)
|
|
1292
|
-
return e;
|
|
1293
|
-
let n = t[0].instances.find((u) => u.base == e && $t(t, u.modified));
|
|
1294
|
-
if (n)
|
|
1295
|
-
return n;
|
|
1296
|
-
let i = [], s = new j(i, e, t);
|
|
1297
|
-
for (let u of t)
|
|
1298
|
-
u.instances.push(s);
|
|
1299
|
-
let o = Vt(t);
|
|
1300
|
-
for (let u of e.set)
|
|
1301
|
-
if (!u.modified.length)
|
|
1302
|
-
for (let f of o)
|
|
1303
|
-
i.push(Ce.get(u, f));
|
|
1304
|
-
return s;
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
function $t(r, e) {
|
|
1308
|
-
return r.length == e.length && r.every((t, n) => t == e[n]);
|
|
1309
|
-
}
|
|
1310
|
-
function Vt(r) {
|
|
1311
|
-
let e = [[]];
|
|
1312
|
-
for (let t = 0; t < r.length; t++)
|
|
1313
|
-
for (let n = 0, i = e.length; n < i; n++)
|
|
1314
|
-
e.push(e[n].concat(r[t]));
|
|
1315
|
-
return e.sort((t, n) => n.length - t.length);
|
|
1316
|
-
}
|
|
1317
|
-
new v();
|
|
1318
|
-
function Ht(r, e) {
|
|
1319
|
-
let t = /* @__PURE__ */ Object.create(null);
|
|
1320
|
-
for (let s of r)
|
|
1321
|
-
if (!Array.isArray(s.tag))
|
|
1322
|
-
t[s.tag.id] = s.class;
|
|
1323
|
-
else
|
|
1324
|
-
for (let o of s.tag)
|
|
1325
|
-
t[o.id] = s.class;
|
|
1326
|
-
let { scope: n, all: i = null } = e || {};
|
|
1327
|
-
return {
|
|
1328
|
-
style: (s) => {
|
|
1329
|
-
let o = i;
|
|
1330
|
-
for (let u of s)
|
|
1331
|
-
for (let f of u.set) {
|
|
1332
|
-
let x = t[f.id];
|
|
1333
|
-
if (x) {
|
|
1334
|
-
o = o ? o + " " + x : x;
|
|
1335
|
-
break;
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
return o;
|
|
1339
|
-
},
|
|
1340
|
-
scope: n
|
|
1341
|
-
};
|
|
1342
|
-
}
|
|
1343
|
-
const a = j.define, ye = a(), q = a(), Je = a(q), We = a(q), X = a(), xe = a(X), Se = a(X), H = a(), ne = a(H), $ = a(), V = a(), Be = a(), fe = a(Be), ke = a(), l = {
|
|
1344
|
-
/**
|
|
1345
|
-
A comment.
|
|
1346
|
-
*/
|
|
1347
|
-
comment: ye,
|
|
1348
|
-
/**
|
|
1349
|
-
A line [comment](#highlight.tags.comment).
|
|
1350
|
-
*/
|
|
1351
|
-
lineComment: a(ye),
|
|
1352
|
-
/**
|
|
1353
|
-
A block [comment](#highlight.tags.comment).
|
|
1354
|
-
*/
|
|
1355
|
-
blockComment: a(ye),
|
|
1356
|
-
/**
|
|
1357
|
-
A documentation [comment](#highlight.tags.comment).
|
|
1358
|
-
*/
|
|
1359
|
-
docComment: a(ye),
|
|
1360
|
-
/**
|
|
1361
|
-
Any kind of identifier.
|
|
1362
|
-
*/
|
|
1363
|
-
name: q,
|
|
1364
|
-
/**
|
|
1365
|
-
The [name](#highlight.tags.name) of a variable.
|
|
1366
|
-
*/
|
|
1367
|
-
variableName: a(q),
|
|
1368
|
-
/**
|
|
1369
|
-
A type [name](#highlight.tags.name).
|
|
1370
|
-
*/
|
|
1371
|
-
typeName: Je,
|
|
1372
|
-
/**
|
|
1373
|
-
A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
|
|
1374
|
-
*/
|
|
1375
|
-
tagName: a(Je),
|
|
1376
|
-
/**
|
|
1377
|
-
A property or field [name](#highlight.tags.name).
|
|
1378
|
-
*/
|
|
1379
|
-
propertyName: We,
|
|
1380
|
-
/**
|
|
1381
|
-
An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
|
|
1382
|
-
*/
|
|
1383
|
-
attributeName: a(We),
|
|
1384
|
-
/**
|
|
1385
|
-
The [name](#highlight.tags.name) of a class.
|
|
1386
|
-
*/
|
|
1387
|
-
className: a(q),
|
|
1388
|
-
/**
|
|
1389
|
-
A label [name](#highlight.tags.name).
|
|
1390
|
-
*/
|
|
1391
|
-
labelName: a(q),
|
|
1392
|
-
/**
|
|
1393
|
-
A namespace [name](#highlight.tags.name).
|
|
1394
|
-
*/
|
|
1395
|
-
namespace: a(q),
|
|
1396
|
-
/**
|
|
1397
|
-
The [name](#highlight.tags.name) of a macro.
|
|
1398
|
-
*/
|
|
1399
|
-
macroName: a(q),
|
|
1400
|
-
/**
|
|
1401
|
-
A literal value.
|
|
1402
|
-
*/
|
|
1403
|
-
literal: X,
|
|
1404
|
-
/**
|
|
1405
|
-
A string [literal](#highlight.tags.literal).
|
|
1406
|
-
*/
|
|
1407
|
-
string: xe,
|
|
1408
|
-
/**
|
|
1409
|
-
A documentation [string](#highlight.tags.string).
|
|
1410
|
-
*/
|
|
1411
|
-
docString: a(xe),
|
|
1412
|
-
/**
|
|
1413
|
-
A character literal (subtag of [string](#highlight.tags.string)).
|
|
1414
|
-
*/
|
|
1415
|
-
character: a(xe),
|
|
1416
|
-
/**
|
|
1417
|
-
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
1418
|
-
*/
|
|
1419
|
-
attributeValue: a(xe),
|
|
1420
|
-
/**
|
|
1421
|
-
A number [literal](#highlight.tags.literal).
|
|
1422
|
-
*/
|
|
1423
|
-
number: Se,
|
|
1424
|
-
/**
|
|
1425
|
-
An integer [number](#highlight.tags.number) literal.
|
|
1426
|
-
*/
|
|
1427
|
-
integer: a(Se),
|
|
1428
|
-
/**
|
|
1429
|
-
A floating-point [number](#highlight.tags.number) literal.
|
|
1430
|
-
*/
|
|
1431
|
-
float: a(Se),
|
|
1432
|
-
/**
|
|
1433
|
-
A boolean [literal](#highlight.tags.literal).
|
|
1434
|
-
*/
|
|
1435
|
-
bool: a(X),
|
|
1436
|
-
/**
|
|
1437
|
-
Regular expression [literal](#highlight.tags.literal).
|
|
1438
|
-
*/
|
|
1439
|
-
regexp: a(X),
|
|
1440
|
-
/**
|
|
1441
|
-
An escape [literal](#highlight.tags.literal), for example a
|
|
1442
|
-
backslash escape in a string.
|
|
1443
|
-
*/
|
|
1444
|
-
escape: a(X),
|
|
1445
|
-
/**
|
|
1446
|
-
A color [literal](#highlight.tags.literal).
|
|
1447
|
-
*/
|
|
1448
|
-
color: a(X),
|
|
1449
|
-
/**
|
|
1450
|
-
A URL [literal](#highlight.tags.literal).
|
|
1451
|
-
*/
|
|
1452
|
-
url: a(X),
|
|
1453
|
-
/**
|
|
1454
|
-
A language keyword.
|
|
1455
|
-
*/
|
|
1456
|
-
keyword: $,
|
|
1457
|
-
/**
|
|
1458
|
-
The [keyword](#highlight.tags.keyword) for the self or this
|
|
1459
|
-
object.
|
|
1460
|
-
*/
|
|
1461
|
-
self: a($),
|
|
1462
|
-
/**
|
|
1463
|
-
The [keyword](#highlight.tags.keyword) for null.
|
|
1464
|
-
*/
|
|
1465
|
-
null: a($),
|
|
1466
|
-
/**
|
|
1467
|
-
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
1468
|
-
*/
|
|
1469
|
-
atom: a($),
|
|
1470
|
-
/**
|
|
1471
|
-
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
1472
|
-
*/
|
|
1473
|
-
unit: a($),
|
|
1474
|
-
/**
|
|
1475
|
-
A modifier [keyword](#highlight.tags.keyword).
|
|
1476
|
-
*/
|
|
1477
|
-
modifier: a($),
|
|
1478
|
-
/**
|
|
1479
|
-
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
1480
|
-
*/
|
|
1481
|
-
operatorKeyword: a($),
|
|
1482
|
-
/**
|
|
1483
|
-
A control-flow related [keyword](#highlight.tags.keyword).
|
|
1484
|
-
*/
|
|
1485
|
-
controlKeyword: a($),
|
|
1486
|
-
/**
|
|
1487
|
-
A [keyword](#highlight.tags.keyword) that defines something.
|
|
1488
|
-
*/
|
|
1489
|
-
definitionKeyword: a($),
|
|
1490
|
-
/**
|
|
1491
|
-
A [keyword](#highlight.tags.keyword) related to defining or
|
|
1492
|
-
interfacing with modules.
|
|
1493
|
-
*/
|
|
1494
|
-
moduleKeyword: a($),
|
|
1495
|
-
/**
|
|
1496
|
-
An operator.
|
|
1497
|
-
*/
|
|
1498
|
-
operator: V,
|
|
1499
|
-
/**
|
|
1500
|
-
An [operator](#highlight.tags.operator) that dereferences something.
|
|
1501
|
-
*/
|
|
1502
|
-
derefOperator: a(V),
|
|
1503
|
-
/**
|
|
1504
|
-
Arithmetic-related [operator](#highlight.tags.operator).
|
|
1505
|
-
*/
|
|
1506
|
-
arithmeticOperator: a(V),
|
|
1507
|
-
/**
|
|
1508
|
-
Logical [operator](#highlight.tags.operator).
|
|
1509
|
-
*/
|
|
1510
|
-
logicOperator: a(V),
|
|
1511
|
-
/**
|
|
1512
|
-
Bit [operator](#highlight.tags.operator).
|
|
1513
|
-
*/
|
|
1514
|
-
bitwiseOperator: a(V),
|
|
1515
|
-
/**
|
|
1516
|
-
Comparison [operator](#highlight.tags.operator).
|
|
1517
|
-
*/
|
|
1518
|
-
compareOperator: a(V),
|
|
1519
|
-
/**
|
|
1520
|
-
[Operator](#highlight.tags.operator) that updates its operand.
|
|
1521
|
-
*/
|
|
1522
|
-
updateOperator: a(V),
|
|
1523
|
-
/**
|
|
1524
|
-
[Operator](#highlight.tags.operator) that defines something.
|
|
1525
|
-
*/
|
|
1526
|
-
definitionOperator: a(V),
|
|
1527
|
-
/**
|
|
1528
|
-
Type-related [operator](#highlight.tags.operator).
|
|
1529
|
-
*/
|
|
1530
|
-
typeOperator: a(V),
|
|
1531
|
-
/**
|
|
1532
|
-
Control-flow [operator](#highlight.tags.operator).
|
|
1533
|
-
*/
|
|
1534
|
-
controlOperator: a(V),
|
|
1535
|
-
/**
|
|
1536
|
-
Program or markup punctuation.
|
|
1537
|
-
*/
|
|
1538
|
-
punctuation: Be,
|
|
1539
|
-
/**
|
|
1540
|
-
[Punctuation](#highlight.tags.punctuation) that separates
|
|
1541
|
-
things.
|
|
1542
|
-
*/
|
|
1543
|
-
separator: a(Be),
|
|
1544
|
-
/**
|
|
1545
|
-
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
1546
|
-
*/
|
|
1547
|
-
bracket: fe,
|
|
1548
|
-
/**
|
|
1549
|
-
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
1550
|
-
tokens).
|
|
1551
|
-
*/
|
|
1552
|
-
angleBracket: a(fe),
|
|
1553
|
-
/**
|
|
1554
|
-
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
1555
|
-
tokens).
|
|
1556
|
-
*/
|
|
1557
|
-
squareBracket: a(fe),
|
|
1558
|
-
/**
|
|
1559
|
-
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
1560
|
-
[bracket](#highlight.tags.bracket).
|
|
1561
|
-
*/
|
|
1562
|
-
paren: a(fe),
|
|
1563
|
-
/**
|
|
1564
|
-
Braces (usually `{` and `}` tokens). Subtag of
|
|
1565
|
-
[bracket](#highlight.tags.bracket).
|
|
1566
|
-
*/
|
|
1567
|
-
brace: a(fe),
|
|
1568
|
-
/**
|
|
1569
|
-
Content, for example plain text in XML or markup documents.
|
|
1570
|
-
*/
|
|
1571
|
-
content: H,
|
|
1572
|
-
/**
|
|
1573
|
-
[Content](#highlight.tags.content) that represents a heading.
|
|
1574
|
-
*/
|
|
1575
|
-
heading: ne,
|
|
1576
|
-
/**
|
|
1577
|
-
A level 1 [heading](#highlight.tags.heading).
|
|
1578
|
-
*/
|
|
1579
|
-
heading1: a(ne),
|
|
1580
|
-
/**
|
|
1581
|
-
A level 2 [heading](#highlight.tags.heading).
|
|
1582
|
-
*/
|
|
1583
|
-
heading2: a(ne),
|
|
1584
|
-
/**
|
|
1585
|
-
A level 3 [heading](#highlight.tags.heading).
|
|
1586
|
-
*/
|
|
1587
|
-
heading3: a(ne),
|
|
1588
|
-
/**
|
|
1589
|
-
A level 4 [heading](#highlight.tags.heading).
|
|
1590
|
-
*/
|
|
1591
|
-
heading4: a(ne),
|
|
1592
|
-
/**
|
|
1593
|
-
A level 5 [heading](#highlight.tags.heading).
|
|
1594
|
-
*/
|
|
1595
|
-
heading5: a(ne),
|
|
1596
|
-
/**
|
|
1597
|
-
A level 6 [heading](#highlight.tags.heading).
|
|
1598
|
-
*/
|
|
1599
|
-
heading6: a(ne),
|
|
1600
|
-
/**
|
|
1601
|
-
A prose separator (such as a horizontal rule).
|
|
1602
|
-
*/
|
|
1603
|
-
contentSeparator: a(H),
|
|
1604
|
-
/**
|
|
1605
|
-
[Content](#highlight.tags.content) that represents a list.
|
|
1606
|
-
*/
|
|
1607
|
-
list: a(H),
|
|
1608
|
-
/**
|
|
1609
|
-
[Content](#highlight.tags.content) that represents a quote.
|
|
1610
|
-
*/
|
|
1611
|
-
quote: a(H),
|
|
1612
|
-
/**
|
|
1613
|
-
[Content](#highlight.tags.content) that is emphasized.
|
|
1614
|
-
*/
|
|
1615
|
-
emphasis: a(H),
|
|
1616
|
-
/**
|
|
1617
|
-
[Content](#highlight.tags.content) that is styled strong.
|
|
1618
|
-
*/
|
|
1619
|
-
strong: a(H),
|
|
1620
|
-
/**
|
|
1621
|
-
[Content](#highlight.tags.content) that is part of a link.
|
|
1622
|
-
*/
|
|
1623
|
-
link: a(H),
|
|
1624
|
-
/**
|
|
1625
|
-
[Content](#highlight.tags.content) that is styled as code or
|
|
1626
|
-
monospace.
|
|
1627
|
-
*/
|
|
1628
|
-
monospace: a(H),
|
|
1629
|
-
/**
|
|
1630
|
-
[Content](#highlight.tags.content) that has a strike-through
|
|
1631
|
-
style.
|
|
1632
|
-
*/
|
|
1633
|
-
strikethrough: a(H),
|
|
1634
|
-
/**
|
|
1635
|
-
Inserted text in a change-tracking format.
|
|
1636
|
-
*/
|
|
1637
|
-
inserted: a(),
|
|
1638
|
-
/**
|
|
1639
|
-
Deleted text.
|
|
1640
|
-
*/
|
|
1641
|
-
deleted: a(),
|
|
1642
|
-
/**
|
|
1643
|
-
Changed text.
|
|
1644
|
-
*/
|
|
1645
|
-
changed: a(),
|
|
1646
|
-
/**
|
|
1647
|
-
An invalid or unsyntactic element.
|
|
1648
|
-
*/
|
|
1649
|
-
invalid: a(),
|
|
1650
|
-
/**
|
|
1651
|
-
Metadata or meta-instruction.
|
|
1652
|
-
*/
|
|
1653
|
-
meta: ke,
|
|
1654
|
-
/**
|
|
1655
|
-
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
1656
|
-
document.
|
|
1657
|
-
*/
|
|
1658
|
-
documentMeta: a(ke),
|
|
1659
|
-
/**
|
|
1660
|
-
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
1661
|
-
attributes to a given syntactic element.
|
|
1662
|
-
*/
|
|
1663
|
-
annotation: a(ke),
|
|
1664
|
-
/**
|
|
1665
|
-
Processing instruction or preprocessor directive. Subtag of
|
|
1666
|
-
[meta](#highlight.tags.meta).
|
|
1667
|
-
*/
|
|
1668
|
-
processingInstruction: a(ke),
|
|
1669
|
-
/**
|
|
1670
|
-
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
1671
|
-
given element is being defined. Expected to be used with the
|
|
1672
|
-
various [name](#highlight.tags.name) tags.
|
|
1673
|
-
*/
|
|
1674
|
-
definition: j.defineModifier(),
|
|
1675
|
-
/**
|
|
1676
|
-
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
1677
|
-
something is constant. Mostly expected to be used with
|
|
1678
|
-
[variable names](#highlight.tags.variableName).
|
|
1679
|
-
*/
|
|
1680
|
-
constant: j.defineModifier(),
|
|
1681
|
-
/**
|
|
1682
|
-
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
1683
|
-
a [variable](#highlight.tags.variableName) or [property
|
|
1684
|
-
name](#highlight.tags.propertyName) is being called or defined
|
|
1685
|
-
as a function.
|
|
1686
|
-
*/
|
|
1687
|
-
function: j.defineModifier(),
|
|
1688
|
-
/**
|
|
1689
|
-
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
1690
|
-
[names](#highlight.tags.name) to indicate that they belong to
|
|
1691
|
-
the language's standard environment.
|
|
1692
|
-
*/
|
|
1693
|
-
standard: j.defineModifier(),
|
|
1694
|
-
/**
|
|
1695
|
-
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
1696
|
-
[names](#highlight.tags.name) is local to some scope.
|
|
1697
|
-
*/
|
|
1698
|
-
local: j.defineModifier(),
|
|
1699
|
-
/**
|
|
1700
|
-
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
1701
|
-
can be used to tag language-specific alternative variants of
|
|
1702
|
-
some common tag. It is recommended for themes to define special
|
|
1703
|
-
forms of at least the [string](#highlight.tags.string) and
|
|
1704
|
-
[variable name](#highlight.tags.variableName) tags, since those
|
|
1705
|
-
come up a lot.
|
|
1706
|
-
*/
|
|
1707
|
-
special: j.defineModifier()
|
|
1708
|
-
};
|
|
1709
|
-
Ht([
|
|
1710
|
-
{ tag: l.link, class: "tok-link" },
|
|
1711
|
-
{ tag: l.heading, class: "tok-heading" },
|
|
1712
|
-
{ tag: l.emphasis, class: "tok-emphasis" },
|
|
1713
|
-
{ tag: l.strong, class: "tok-strong" },
|
|
1714
|
-
{ tag: l.keyword, class: "tok-keyword" },
|
|
1715
|
-
{ tag: l.atom, class: "tok-atom" },
|
|
1716
|
-
{ tag: l.bool, class: "tok-bool" },
|
|
1717
|
-
{ tag: l.url, class: "tok-url" },
|
|
1718
|
-
{ tag: l.labelName, class: "tok-labelName" },
|
|
1719
|
-
{ tag: l.inserted, class: "tok-inserted" },
|
|
1720
|
-
{ tag: l.deleted, class: "tok-deleted" },
|
|
1721
|
-
{ tag: l.literal, class: "tok-literal" },
|
|
1722
|
-
{ tag: l.string, class: "tok-string" },
|
|
1723
|
-
{ tag: l.number, class: "tok-number" },
|
|
1724
|
-
{ tag: [l.regexp, l.escape, l.special(l.string)], class: "tok-string2" },
|
|
1725
|
-
{ tag: l.variableName, class: "tok-variableName" },
|
|
1726
|
-
{ tag: l.local(l.variableName), class: "tok-variableName tok-local" },
|
|
1727
|
-
{ tag: l.definition(l.variableName), class: "tok-variableName tok-definition" },
|
|
1728
|
-
{ tag: l.special(l.variableName), class: "tok-variableName2" },
|
|
1729
|
-
{ tag: l.definition(l.propertyName), class: "tok-propertyName tok-definition" },
|
|
1730
|
-
{ tag: l.typeName, class: "tok-typeName" },
|
|
1731
|
-
{ tag: l.namespace, class: "tok-namespace" },
|
|
1732
|
-
{ tag: l.className, class: "tok-className" },
|
|
1733
|
-
{ tag: l.macroName, class: "tok-macroName" },
|
|
1734
|
-
{ tag: l.propertyName, class: "tok-propertyName" },
|
|
1735
|
-
{ tag: l.operator, class: "tok-operator" },
|
|
1736
|
-
{ tag: l.comment, class: "tok-comment" },
|
|
1737
|
-
{ tag: l.meta, class: "tok-meta" },
|
|
1738
|
-
{ tag: l.invalid, class: "tok-invalid" },
|
|
1739
|
-
{ tag: l.punctuation, class: "tok-punctuation" }
|
|
1740
|
-
]);
|
|
1741
|
-
const jt = "#c72727", Rt = "#9b5700", Dt = "#067934", Ut = "#0063d7", Jt = {
|
|
1742
|
-
red: jt,
|
|
1743
|
-
orange: Rt,
|
|
1744
|
-
green: Dt,
|
|
1745
|
-
blue: Ut,
|
|
1746
|
-
invalid: "#ffffff"
|
|
1747
|
-
}, Wt = (r) => gt.define([
|
|
1748
|
-
{
|
|
1749
|
-
tag: l.keyword,
|
|
1750
|
-
color: r.red
|
|
1751
|
-
},
|
|
1752
|
-
{
|
|
1753
|
-
tag: [l.name, l.deleted, l.character, l.propertyName, l.macroName],
|
|
1754
|
-
color: r.green
|
|
1755
|
-
},
|
|
1756
|
-
{
|
|
1757
|
-
tag: [l.function(l.variableName), l.labelName],
|
|
1758
|
-
color: r.blue
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
tag: [l.color, l.constant(l.name), l.standard(l.name)],
|
|
1762
|
-
color: r.red
|
|
1763
|
-
},
|
|
1764
|
-
{
|
|
1765
|
-
tag: [l.definition(l.name), l.separator],
|
|
1766
|
-
color: r.red
|
|
1767
|
-
},
|
|
1768
|
-
{
|
|
1769
|
-
tag: [l.typeName, l.className, l.number, l.changed, l.annotation, l.modifier, l.self, l.namespace],
|
|
1770
|
-
color: r.orange
|
|
1771
|
-
},
|
|
1772
|
-
{
|
|
1773
|
-
tag: [l.operator, l.operatorKeyword, l.url, l.escape, l.regexp, l.link, l.special(l.string)],
|
|
1774
|
-
color: r.blue
|
|
1775
|
-
},
|
|
1776
|
-
{
|
|
1777
|
-
tag: [l.meta, l.comment],
|
|
1778
|
-
color: r.orange
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
tag: l.strong,
|
|
1782
|
-
fontWeight: "bold"
|
|
1783
|
-
},
|
|
1784
|
-
{
|
|
1785
|
-
tag: l.emphasis,
|
|
1786
|
-
fontStyle: "italic"
|
|
1787
|
-
},
|
|
1788
|
-
{
|
|
1789
|
-
tag: l.strikethrough,
|
|
1790
|
-
textDecoration: "line-through"
|
|
1791
|
-
},
|
|
1792
|
-
{
|
|
1793
|
-
tag: l.link,
|
|
1794
|
-
color: r.orange,
|
|
1795
|
-
textDecoration: "underline"
|
|
1796
|
-
},
|
|
1797
|
-
{
|
|
1798
|
-
tag: l.heading,
|
|
1799
|
-
fontWeight: "bold",
|
|
1800
|
-
color: r.blue
|
|
1801
|
-
},
|
|
1802
|
-
{
|
|
1803
|
-
tag: [l.atom, l.bool, l.special(l.variableName)],
|
|
1804
|
-
color: r.red
|
|
1805
|
-
},
|
|
1806
|
-
{
|
|
1807
|
-
tag: [l.processingInstruction, l.string, l.inserted],
|
|
1808
|
-
color: r.blue
|
|
1809
|
-
},
|
|
1810
|
-
{
|
|
1811
|
-
tag: l.invalid,
|
|
1812
|
-
color: r.invalid
|
|
1813
|
-
}
|
|
1814
|
-
]), Gt = pt(Wt(Jt));
|
|
1815
|
-
var ve = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.SINGLELINE = "singleline", r.MULTILINE = "multiline", r))(ve || {}), re = /* @__PURE__ */ ((r) => (r.JSON = "json", r.XML = "xml", r.JAVA = "java", r.JAVASCRIPT = "javascript", r))(re || {}), ce = /* @__PURE__ */ ((r) => (r.ACTION = "action", r.CHANGE = "change", r))(ce || {});
|
|
1816
|
-
const Kt = {
|
|
1817
|
-
[re.JSON]: Ct,
|
|
1818
|
-
[re.XML]: Nt,
|
|
1819
|
-
[re.JAVASCRIPT]: St,
|
|
1820
|
-
[re.JAVA]: At
|
|
1821
|
-
}, Ft = (r) => async () => Kt[r], qt = (r, e) => {
|
|
1822
|
-
const t = r.doc.lineAt(e.from), n = /^\s*/.exec(t.text);
|
|
1823
|
-
return n ? n[0] : "";
|
|
1824
|
-
}, Xt = {
|
|
1825
|
-
key: "Enter",
|
|
1826
|
-
run: ({ state: r, dispatch: e }) => {
|
|
1827
|
-
const t = r.changeByRange((n) => {
|
|
1828
|
-
const s = `
|
|
1829
|
-
${qt(r, n)}`;
|
|
1830
|
-
return {
|
|
1831
|
-
changes: { from: n.from, to: n.to, insert: s },
|
|
1832
|
-
range: ft.cursor(n.from + s.length)
|
|
1833
|
-
};
|
|
1834
|
-
});
|
|
1835
|
-
return e(r.update(t, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
1836
|
-
}
|
|
1837
|
-
};
|
|
1838
|
-
let Ge = 0;
|
|
1839
|
-
const Zt = {
|
|
1840
|
-
beforeCreate() {
|
|
1841
|
-
this.uuid = Ge.toString(), Ge += 1;
|
|
1842
|
-
}
|
|
1843
|
-
}, Qt = { key: 0 }, Yt = /* @__PURE__ */ ae("path", {
|
|
1844
|
-
fill: "#00112C",
|
|
1845
|
-
d: "M14.75 1.25V6.75H13.25V3.81083L10.0001 7.06072L8.93945 6.00006L12.1895 2.75H9.25V1.25H14.75Z"
|
|
1846
|
-
}, null, -1), en = /* @__PURE__ */ ae("path", {
|
|
1847
|
-
fill: "#00112C",
|
|
1848
|
-
d: "M2.75 12.1895V9.25H1.25V14.75H6.75V13.25H3.81083L7.06072 10.0001L6.00006 8.93945L2.75 12.1895Z"
|
|
1849
|
-
}, null, -1);
|
|
1850
|
-
function tn(r, e, t, n, i, s) {
|
|
1851
|
-
return O(), le("svg", Fe({ role: "img" }, r.$attrs, {
|
|
1852
|
-
class: "ui-assets-icons-16",
|
|
1853
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1854
|
-
width: "16",
|
|
1855
|
-
height: "16",
|
|
1856
|
-
fill: "none"
|
|
1857
|
-
}), [
|
|
1858
|
-
r.$attrs["svg-title"] ? (O(), le("title", Qt, Ae(r.$attrs["svg-title"]), 1)) : F("", !0),
|
|
1859
|
-
Yt,
|
|
1860
|
-
en
|
|
1861
|
-
], 16);
|
|
1862
|
-
}
|
|
1863
|
-
const nn = /* @__PURE__ */ qe(Zt, [["render", tn]]), Ke = {
|
|
1864
|
-
"en-US": {
|
|
1865
|
-
run: "Run",
|
|
1866
|
-
expand: "Expand"
|
|
1867
|
-
}
|
|
1868
|
-
}, rn = Ye({
|
|
1869
|
-
i18n: { messages: Ke },
|
|
1870
|
-
name: "bento-code-snippet",
|
|
1871
|
-
components: {
|
|
1872
|
-
BentoTypography: yt,
|
|
1873
|
-
BentoButton: bt,
|
|
1874
|
-
BentoDropdown: mt,
|
|
1875
|
-
Copy: wt,
|
|
1876
|
-
BaseModal: vt,
|
|
1877
|
-
BentoLoadingIndicator: kt,
|
|
1878
|
-
ExpandIcon: nn
|
|
1879
|
-
},
|
|
1880
|
-
directives: { BentoTooltipDirective: xt },
|
|
1881
|
-
props: {
|
|
1882
|
-
/**
|
|
1883
|
-
* Defines the variant of code-snippet
|
|
1884
|
-
*/
|
|
1885
|
-
variant: {
|
|
1886
|
-
type: String,
|
|
1887
|
-
default: ve.MULTILINE,
|
|
1888
|
-
validator: (r) => Object.values(ve).includes(r)
|
|
1889
|
-
},
|
|
1890
|
-
/**
|
|
1891
|
-
* Language name for syntax highlighting rules
|
|
1892
|
-
*/
|
|
1893
|
-
lang: {
|
|
1894
|
-
type: String,
|
|
1895
|
-
default: re.JSON,
|
|
1896
|
-
validator: (r) => Object.values(re).includes(r)
|
|
1897
|
-
},
|
|
1898
|
-
/**
|
|
1899
|
-
* Label to show in the action-bar, describing the language
|
|
1900
|
-
*/
|
|
1901
|
-
langLabel: {
|
|
1902
|
-
type: String,
|
|
1903
|
-
default: null
|
|
1904
|
-
},
|
|
1905
|
-
/**
|
|
1906
|
-
* The code content
|
|
1907
|
-
*/
|
|
1908
|
-
content: {
|
|
1909
|
-
type: String,
|
|
1910
|
-
default: ""
|
|
1911
|
-
},
|
|
1912
|
-
/**
|
|
1913
|
-
* Allows editing of the code-snippet content by the user
|
|
1914
|
-
*/
|
|
1915
|
-
editable: {
|
|
1916
|
-
type: Boolean,
|
|
1917
|
-
default: !1
|
|
1918
|
-
},
|
|
1919
|
-
/**
|
|
1920
|
-
* Displays a button that when clicked will emit an action event
|
|
1921
|
-
* Leaves to the parent component the logic of what to do with it
|
|
1922
|
-
*/
|
|
1923
|
-
actionable: {
|
|
1924
|
-
type: Boolean,
|
|
1925
|
-
default: !1
|
|
1926
|
-
},
|
|
1927
|
-
/**
|
|
1928
|
-
* Displays a button that can expand the codeblock into a modal to easily
|
|
1929
|
-
* view large blocks of code.
|
|
1930
|
-
*/
|
|
1931
|
-
expandable: {
|
|
1932
|
-
type: Boolean,
|
|
1933
|
-
default: !1
|
|
1934
|
-
},
|
|
1935
|
-
/**
|
|
1936
|
-
* Displays a button that when clicked will emit a run event
|
|
1937
|
-
* Leaves to the parent component the logic of what to do with it
|
|
1938
|
-
*/
|
|
1939
|
-
actionableText: {
|
|
1940
|
-
type: String,
|
|
1941
|
-
default: "run"
|
|
1942
|
-
},
|
|
1943
|
-
/**
|
|
1944
|
-
* Toggles the loading indicator within the action bar
|
|
1945
|
-
*/
|
|
1946
|
-
loading: {
|
|
1947
|
-
type: Boolean,
|
|
1948
|
-
default: !1
|
|
1949
|
-
}
|
|
1950
|
-
},
|
|
1951
|
-
emits: [ce.ACTION, ce.CHANGE],
|
|
1952
|
-
setup(r, { emit: e }) {
|
|
1953
|
-
const { t } = _t({ messages: Ke }), n = ge(null), i = [], s = () => {
|
|
1954
|
-
}, o = ue(() => r.langLabel ?? r.lang.toUpperCase()), u = ue(() => r.variant === ve.INLINE), f = ue(() => ({
|
|
1955
|
-
"b-code-snippet--inline": u.value,
|
|
1956
|
-
"b-code-snippet--scrollable": !u.value
|
|
1957
|
-
})), x = ue(() => ({
|
|
1958
|
-
"b-code-snippet__code-area-content--editable": r.editable
|
|
1959
|
-
})), w = Ft(r.lang), C = Pe(), A = Pe(), B = new Ne(), N = new Ne(), T = new Ne(), M = ge(null), D = ge(0);
|
|
1960
|
-
et(async () => {
|
|
1961
|
-
const g = await w();
|
|
1962
|
-
M.value = r.content;
|
|
1963
|
-
const b = ({ state: p }) => {
|
|
1964
|
-
M.value = p.doc.toString();
|
|
1965
|
-
}, h = [
|
|
1966
|
-
at(),
|
|
1967
|
-
ut.of([ct, Xt]),
|
|
1968
|
-
B.of(g()),
|
|
1969
|
-
N.of(Gt),
|
|
1970
|
-
T.of(je.readOnly.of(!r.editable)),
|
|
1971
|
-
He.updateListener.of((p) => b(p))
|
|
1972
|
-
];
|
|
1973
|
-
r.variant === "multiline" && h.push([ht(), dt()]);
|
|
1974
|
-
const y = je.create({
|
|
1975
|
-
doc: r.content,
|
|
1976
|
-
extensions: [...h]
|
|
1977
|
-
});
|
|
1978
|
-
D.value = y.doc.length, A.value = new He({
|
|
1979
|
-
state: y,
|
|
1980
|
-
parent: C.value
|
|
1981
|
-
});
|
|
1982
|
-
}), tt(
|
|
1983
|
-
() => r.content,
|
|
1984
|
-
() => {
|
|
1985
|
-
if (r.content !== M.value) {
|
|
1986
|
-
const g = r.content.length;
|
|
1987
|
-
A.value.dispatch({
|
|
1988
|
-
changes: {
|
|
1989
|
-
from: 0,
|
|
1990
|
-
to: D.value,
|
|
1991
|
-
insert: r.content
|
|
1992
|
-
}
|
|
1993
|
-
}), D.value = g;
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
);
|
|
1997
|
-
const U = ue(() => t(r.actionableText)), S = () => {
|
|
1998
|
-
e(ce.ACTION, M.value);
|
|
1999
|
-
};
|
|
2000
|
-
nt(() => {
|
|
2001
|
-
M.value !== null && e(ce.CHANGE, M.value);
|
|
2002
|
-
});
|
|
2003
|
-
const J = ge(!1);
|
|
2004
|
-
return {
|
|
2005
|
-
// Values
|
|
2006
|
-
availableLanguages: i,
|
|
2007
|
-
codeAreaContentConditionalClasses: x,
|
|
2008
|
-
conditionalClasses: f,
|
|
2009
|
-
container: C,
|
|
2010
|
-
currentContents: M,
|
|
2011
|
-
displayedLang: o,
|
|
2012
|
-
editor: A,
|
|
2013
|
-
selectedLanguage: n,
|
|
2014
|
-
showModal: J,
|
|
2015
|
-
isInlineVariant: u,
|
|
2016
|
-
// Methods
|
|
2017
|
-
handleChangeLanguage: s,
|
|
2018
|
-
onActionClicked: S,
|
|
2019
|
-
runText: U,
|
|
2020
|
-
// Translations
|
|
2021
|
-
t
|
|
2022
|
-
};
|
|
2023
|
-
}
|
|
2024
|
-
});
|
|
2025
|
-
const sn = (r) => (ot("data-v-5eb6a936"), r = r(), lt(), r), on = {
|
|
2026
|
-
key: 0,
|
|
2027
|
-
class: "b-code-snippet__action-bar"
|
|
2028
|
-
}, ln = { class: "b-code-snippet__action-bar--start" }, an = { class: "b-code-snippet__action-bar--end" }, un = {
|
|
2029
|
-
key: 1,
|
|
2030
|
-
class: "b-code-snippet__code-area"
|
|
2031
|
-
}, hn = { key: 2 }, fn = /* @__PURE__ */ sn(() => /* @__PURE__ */ ae("div", { class: "b-code-snippet__empty-state" }, "Nothing to show", -1));
|
|
2032
|
-
function cn(r, e, t, n, i, s) {
|
|
2033
|
-
const o = K("bento-dropdown"), u = K("bento-typography"), f = K("bento-loading-indicator"), x = K("copy"), w = K("expand-icon"), C = K("bento-button"), A = K("bento-code-snippet"), B = K("base-modal");
|
|
2034
|
-
return O(), le("div", {
|
|
2035
|
-
class: $e(["b-code-snippet", r.conditionalClasses])
|
|
2036
|
-
}, [
|
|
2037
|
-
r.isInlineVariant ? F("", !0) : (O(), le("section", on, [
|
|
2038
|
-
ae("div", ln, [
|
|
2039
|
-
r.availableLanguages.length > 0 ? (O(), oe(o, Fe({
|
|
2040
|
-
key: 0,
|
|
2041
|
-
modelValue: r.selectedLanguage,
|
|
2042
|
-
"onUpdate:modelValue": e[0] || (e[0] = (N) => r.selectedLanguage = N)
|
|
2043
|
-
}, r.$props, {
|
|
2044
|
-
disabled: r.availableLanguages.length === 1,
|
|
2045
|
-
items: r.availableLanguages,
|
|
2046
|
-
class: "b-code-snippet__language-picker",
|
|
2047
|
-
onInput: r.handleChangeLanguage
|
|
2048
|
-
}), null, 16, ["modelValue", "disabled", "items", "onInput"])) : F("", !0),
|
|
2049
|
-
me(u, {
|
|
2050
|
-
el: "span",
|
|
2051
|
-
stronger: ""
|
|
2052
|
-
}, {
|
|
2053
|
-
default: he(() => [
|
|
2054
|
-
Ve(Ae(r.displayedLang), 1)
|
|
2055
|
-
]),
|
|
2056
|
-
_: 1
|
|
2057
|
-
})
|
|
2058
|
-
]),
|
|
2059
|
-
ae("div", an, [
|
|
2060
|
-
r.loading ? (O(), oe(f, { key: 0 })) : F("", !0),
|
|
2061
|
-
r.currentContents !== null ? (O(), oe(x, {
|
|
2062
|
-
key: 1,
|
|
2063
|
-
class: "b-structured-list__icon",
|
|
2064
|
-
text: r.currentContents
|
|
2065
|
-
}, null, 8, ["text"])) : F("", !0),
|
|
2066
|
-
r.expandable ? (O(), oe(C, {
|
|
2067
|
-
key: 2,
|
|
2068
|
-
variant: "tertiary",
|
|
2069
|
-
condensed: "",
|
|
2070
|
-
"aria-label": r.t("expand"),
|
|
2071
|
-
onClick: e[1] || (e[1] = (N) => r.showModal = !0)
|
|
2072
|
-
}, {
|
|
2073
|
-
iconLeft: he(() => [
|
|
2074
|
-
me(w)
|
|
2075
|
-
]),
|
|
2076
|
-
_: 1
|
|
2077
|
-
}, 8, ["aria-label"])) : F("", !0),
|
|
2078
|
-
r.actionable ? (O(), oe(C, {
|
|
2079
|
-
key: 3,
|
|
2080
|
-
variant: "primary",
|
|
2081
|
-
tertiary: "",
|
|
2082
|
-
condensed: "",
|
|
2083
|
-
onClick: r.onActionClicked
|
|
2084
|
-
}, {
|
|
2085
|
-
iconLeft: he(() => [
|
|
2086
|
-
me(u, {
|
|
2087
|
-
el: "span",
|
|
2088
|
-
class: "b-code-snippet__action-button"
|
|
2089
|
-
}, {
|
|
2090
|
-
default: he(() => [
|
|
2091
|
-
Ve(Ae(r.runText), 1)
|
|
2092
|
-
]),
|
|
2093
|
-
_: 1
|
|
2094
|
-
})
|
|
2095
|
-
]),
|
|
2096
|
-
_: 1
|
|
2097
|
-
}, 8, ["onClick"])) : F("", !0)
|
|
2098
|
-
])
|
|
2099
|
-
])),
|
|
2100
|
-
r.content || r.editable ? (O(), le("code", un, [
|
|
2101
|
-
ae("div", {
|
|
2102
|
-
ref: "container",
|
|
2103
|
-
class: $e(["b-code-snippet__code-area-content", r.codeAreaContentConditionalClasses])
|
|
2104
|
-
}, null, 2)
|
|
2105
|
-
])) : (O(), le("section", hn, [
|
|
2106
|
-
rt(r.$slots, "empty-state", {}, () => [
|
|
2107
|
-
fn
|
|
2108
|
-
], !0)
|
|
2109
|
-
])),
|
|
2110
|
-
r.expandable ? (O(), oe(B, {
|
|
2111
|
-
key: 3,
|
|
2112
|
-
class: "b-code-snippet__modal",
|
|
2113
|
-
"hide-close-button": !0,
|
|
2114
|
-
"custom-padding": "0px",
|
|
2115
|
-
"is-dismissible": !0,
|
|
2116
|
-
"is-open": r.showModal,
|
|
2117
|
-
size: "large",
|
|
2118
|
-
onCloseModal: e[2] || (e[2] = (N) => r.showModal = !1)
|
|
2119
|
-
}, {
|
|
2120
|
-
content: he(() => [
|
|
2121
|
-
me(A, it(st({ ...r.$props, expandable: !1 })), null, 16)
|
|
2122
|
-
]),
|
|
2123
|
-
_: 1
|
|
2124
|
-
}, 8, ["is-open"])) : F("", !0)
|
|
2125
|
-
], 2);
|
|
2126
|
-
}
|
|
2127
|
-
const En = /* @__PURE__ */ qe(rn, [["render", cn], ["__scopeId", "data-v-5eb6a936"]]);
|
|
1
|
+
import { c as n, b as o, a as p, B as a } from "./chunks/code-snippet.e8bxDBCO.js";
|
|
2128
2
|
export {
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
3
|
+
n as BentoCodeSnippet,
|
|
4
|
+
o as BentoCodeSnippetEvent,
|
|
5
|
+
p as BentoCodeSnippetSupportedLanguage,
|
|
6
|
+
a as BentoCodeSnippetVariant
|
|
2133
7
|
};
|
|
2134
8
|
//# sourceMappingURL=code-snippet.js.map
|