@adyen/bento-vue3 1.3.0 → 1.4.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 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
- 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 +37 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +104 -254
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +61 -64
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +143 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +99 -94
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +40 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/base-button.6d2843c2.js +108 -0
- package/dist/chunks/base-button.6d2843c2.js.map +1 -0
- package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
- package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
- package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
- package/dist/chunks/button.a8462029.js.map +1 -0
- package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
- package/dist/chunks/calendar.3f930683.js.map +1 -0
- package/dist/chunks/checkbox.5e1e05ae.js +235 -0
- package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
- package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
- package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
- package/dist/chunks/controls-group.3b0dfb94.js +136 -0
- package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
- package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
- package/dist/chunks/copy.1d14b783.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
- package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
- package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
- package/dist/chunks/dropdown.b798a82e.js.map +1 -0
- package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
- package/dist/chunks/error-message.9acead25.js.map +1 -0
- package/dist/chunks/footer-actions.9537d0df.js +111 -0
- package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
- package/dist/chunks/get-slot-text.bead058f.js +9 -0
- package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
- package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
- package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
- package/dist/chunks/index.228ecda0.js +101 -0
- package/dist/chunks/index.228ecda0.js.map +1 -0
- package/dist/chunks/index.89b00b94.js +124 -0
- package/dist/chunks/index.89b00b94.js.map +1 -0
- package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
- package/dist/chunks/index.9d8273fc.js.map +1 -0
- package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
- package/dist/chunks/index.c2a80208.js.map +1 -0
- package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
- package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
- package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
- package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
- package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
- package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
- package/dist/chunks/listbox.6b52af1a.js.map +1 -0
- package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
- package/dist/chunks/loading-button.081adbf3.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
- package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
- package/dist/chunks/use-has-slot.9fac7123.js +16 -0
- package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
- package/dist/code-snippet.js +548 -463
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +501 -505
- package/dist/country.js.map +1 -1
- package/dist/currency.js +38 -41
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +837 -833
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -87
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +30 -32
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +166 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +986 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -72
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +50 -52
- package/dist/header.js.map +1 -1
- package/dist/image.js +76 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +239 -232
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +241 -269
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +38 -36
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +131 -139
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +121 -356
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +182 -185
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +19 -23
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +56 -52
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +36 -41
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +112 -113
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +77 -91
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +88 -75
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +122 -121
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +18 -21
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +129 -162
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +83 -75
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +32 -35
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +156 -155
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +212 -213
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +68 -72
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +75 -73
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -10
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.20be08da.js +0 -111
- package/dist/chunks/base-button.20be08da.js.map +0 -1
- package/dist/chunks/button-actions.54e28e75.js +0 -124
- package/dist/chunks/button-actions.54e28e75.js.map +0 -1
- package/dist/chunks/button.e1c39f66.js.map +0 -1
- package/dist/chunks/calendar.09b683b3.js.map +0 -1
- package/dist/chunks/checkbox.a404069b.js +0 -226
- package/dist/chunks/checkbox.a404069b.js.map +0 -1
- package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
- package/dist/chunks/controls-group.60fb2a86.js +0 -136
- package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
- package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
- package/dist/chunks/dropdown.8b415aac.js.map +0 -1
- package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
- package/dist/chunks/footer-actions.0f640f87.js +0 -106
- package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
- package/dist/chunks/get-slot-text.2db867f8.js +0 -9
- package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
- package/dist/chunks/index.222d29b0.js +0 -120
- package/dist/chunks/index.222d29b0.js.map +0 -1
- package/dist/chunks/index.3da90517.js.map +0 -1
- package/dist/chunks/index.aa34e363.js +0 -104
- package/dist/chunks/index.aa34e363.js.map +0 -1
- package/dist/chunks/index.c9225c3b.js.map +0 -1
- package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
- package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
- package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
- package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
- package/dist/chunks/tooltip.835d9b52.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/code-snippet.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { highlightActiveLine as
|
|
3
|
-
import { Compartment as
|
|
4
|
-
import { indentWithTab as
|
|
5
|
-
import { syntaxHighlighting as
|
|
6
|
-
import { json as
|
|
7
|
-
import { xml as
|
|
8
|
-
import { javascript as
|
|
9
|
-
import { java as
|
|
10
|
-
import { B as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import { openBlock as E, createElementBlock as oe, mergeProps as qe, toDisplayString as Ae, createCommentVNode as ne, pushScopeId as Fe, popScopeId as Xe, createElementVNode as le, defineComponent as nt, ref as me, computed as ae, shallowRef as $e, onMounted as rt, watch as it, watchEffect as st, resolveComponent as K, normalizeClass as Te, createBlock as ue, createVNode as he, withCtx as fe, createTextVNode as je, renderSlot as ot, normalizeProps as lt, guardReactiveProps as at } from "vue";
|
|
2
|
+
import { highlightActiveLine as ut, keymap as ht, EditorView as He, lineNumbers as ft } from "@codemirror/view";
|
|
3
|
+
import { Compartment as Ne, EditorState as Ve } from "@codemirror/state";
|
|
4
|
+
import { indentWithTab as dt, history as ct } from "@codemirror/commands";
|
|
5
|
+
import { syntaxHighlighting as pt, HighlightStyle as gt } from "@codemirror/language";
|
|
6
|
+
import { json as mt } from "@codemirror/lang-json";
|
|
7
|
+
import { xml as bt } from "@codemirror/lang-xml";
|
|
8
|
+
import { javascript as yt } from "@codemirror/lang-javascript";
|
|
9
|
+
import { java as xt } from "@codemirror/lang-java";
|
|
10
|
+
import { B as kt } from "./chunks/dropdown.b798a82e.js";
|
|
11
|
+
import { f as Ct } from "./chunks/base-modal.3ccb9eb5.js";
|
|
12
|
+
import { a as _t } from "./chunks/button.a8462029.js";
|
|
13
|
+
import { B as vt } from "./chunks/index.89b00b94.js";
|
|
14
|
+
import { b as wt } from "./chunks/tooltip.e4e34b86.js";
|
|
15
|
+
import { BentoLoadingIndicator as Nt } from "./loading-indicator.js";
|
|
16
|
+
import { u as St } from "./chunks/i18n.6c402773.js";
|
|
17
|
+
import { _ as Ze } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
18
|
+
import { C as At } from "./chunks/copy.1d14b783.js";
|
|
17
19
|
import "./assets/index9.css";
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
class
|
|
20
|
+
const It = 1024;
|
|
21
|
+
let Bt = 0;
|
|
22
|
+
class _ {
|
|
21
23
|
/**
|
|
22
24
|
Create a new node prop type.
|
|
23
25
|
*/
|
|
24
26
|
constructor(e = {}) {
|
|
25
|
-
this.id =
|
|
27
|
+
this.id = Bt++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
|
|
26
28
|
throw new Error("This node type doesn't define a deserialize function");
|
|
27
29
|
});
|
|
28
30
|
}
|
|
@@ -38,24 +40,24 @@ class C {
|
|
|
38
40
|
add(e) {
|
|
39
41
|
if (this.perNode)
|
|
40
42
|
throw new RangeError("Can't add per-node props to node types");
|
|
41
|
-
return typeof e != "function" && (e =
|
|
43
|
+
return typeof e != "function" && (e = G.match(e)), (t) => {
|
|
42
44
|
let n = e(t);
|
|
43
45
|
return n === void 0 ? null : [this, n];
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
_.closedBy = new _({ deserialize: (r) => r.split(" ") });
|
|
50
|
+
_.openedBy = new _({ deserialize: (r) => r.split(" ") });
|
|
51
|
+
_.group = new _({ deserialize: (r) => r.split(" ") });
|
|
52
|
+
_.isolate = new _({ deserialize: (r) => {
|
|
51
53
|
if (r && r != "rtl" && r != "ltr" && r != "auto")
|
|
52
54
|
throw new RangeError("Invalid value for isolate: " + r);
|
|
53
55
|
return r || "auto";
|
|
54
56
|
} });
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
class
|
|
57
|
+
_.contextHash = new _({ perNode: !0 });
|
|
58
|
+
_.lookAhead = new _({ perNode: !0 });
|
|
59
|
+
_.mounted = new _({ perNode: !0 });
|
|
60
|
+
class ve {
|
|
59
61
|
constructor(e, t, n) {
|
|
60
62
|
this.tree = e, this.overlay = t, this.parser = n;
|
|
61
63
|
}
|
|
@@ -63,11 +65,11 @@ class me {
|
|
|
63
65
|
@internal
|
|
64
66
|
*/
|
|
65
67
|
static get(e) {
|
|
66
|
-
return e && e.props && e.props[
|
|
68
|
+
return e && e.props && e.props[_.mounted.id];
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
|
-
const
|
|
70
|
-
class
|
|
71
|
+
const Lt = /* @__PURE__ */ Object.create(null);
|
|
72
|
+
class G {
|
|
71
73
|
/**
|
|
72
74
|
@internal
|
|
73
75
|
*/
|
|
@@ -78,7 +80,7 @@ class J {
|
|
|
78
80
|
Define a node type.
|
|
79
81
|
*/
|
|
80
82
|
static define(e) {
|
|
81
|
-
let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) :
|
|
83
|
+
let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Lt, 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);
|
|
82
84
|
if (e.props) {
|
|
83
85
|
for (let s of e.props)
|
|
84
86
|
if (Array.isArray(s) || (s = s(i)), s) {
|
|
@@ -129,7 +131,7 @@ class J {
|
|
|
129
131
|
if (typeof e == "string") {
|
|
130
132
|
if (this.name == e)
|
|
131
133
|
return !0;
|
|
132
|
-
let t = this.prop(
|
|
134
|
+
let t = this.prop(_.group);
|
|
133
135
|
return t ? t.indexOf(e) > -1 : !1;
|
|
134
136
|
}
|
|
135
137
|
return this.id == e;
|
|
@@ -148,7 +150,7 @@ class J {
|
|
|
148
150
|
for (let i of n.split(" "))
|
|
149
151
|
t[i] = e[n];
|
|
150
152
|
return (n) => {
|
|
151
|
-
for (let i = n.prop(
|
|
153
|
+
for (let i = n.prop(_.group), s = -1; s < (i ? i.length : 0); s++) {
|
|
152
154
|
let o = t[s < 0 ? n.name : i[s]];
|
|
153
155
|
if (o)
|
|
154
156
|
return o;
|
|
@@ -156,34 +158,34 @@ class J {
|
|
|
156
158
|
};
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
|
-
|
|
161
|
+
G.none = new G(
|
|
160
162
|
"",
|
|
161
163
|
/* @__PURE__ */ Object.create(null),
|
|
162
164
|
0,
|
|
163
165
|
8
|
|
164
166
|
/* NodeFlag.Anonymous */
|
|
165
167
|
);
|
|
166
|
-
const
|
|
167
|
-
var
|
|
168
|
+
const be = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap();
|
|
169
|
+
var I;
|
|
168
170
|
(function(r) {
|
|
169
171
|
r[r.ExcludeBuffers = 1] = "ExcludeBuffers", r[r.IncludeAnonymous = 2] = "IncludeAnonymous", r[r.IgnoreMounts = 4] = "IgnoreMounts", r[r.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
170
|
-
})(
|
|
171
|
-
class
|
|
172
|
+
})(I || (I = {}));
|
|
173
|
+
class V {
|
|
172
174
|
/**
|
|
173
175
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
174
176
|
*/
|
|
175
177
|
constructor(e, t, n, i, s) {
|
|
176
178
|
if (this.type = e, this.children = t, this.positions = n, this.length = i, this.props = null, s && s.length) {
|
|
177
179
|
this.props = /* @__PURE__ */ Object.create(null);
|
|
178
|
-
for (let [o,
|
|
179
|
-
this.props[typeof o == "number" ? o : o.id] =
|
|
180
|
+
for (let [o, u] of s)
|
|
181
|
+
this.props[typeof o == "number" ? o : o.id] = u;
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
/**
|
|
183
185
|
@internal
|
|
184
186
|
*/
|
|
185
187
|
toString() {
|
|
186
|
-
let e =
|
|
188
|
+
let e = ve.get(this);
|
|
187
189
|
if (e && !e.overlay)
|
|
188
190
|
return e.tree.toString();
|
|
189
191
|
let t = "";
|
|
@@ -199,7 +201,7 @@ class D {
|
|
|
199
201
|
nodes the cursor visits.
|
|
200
202
|
*/
|
|
201
203
|
cursor(e = 0) {
|
|
202
|
-
return new
|
|
204
|
+
return new Be(this.topNode, e);
|
|
203
205
|
}
|
|
204
206
|
/**
|
|
205
207
|
Get a [tree cursor](#common.TreeCursor) pointing into this tree
|
|
@@ -207,8 +209,8 @@ class D {
|
|
|
207
209
|
[`moveTo`](#common.TreeCursor.moveTo).
|
|
208
210
|
*/
|
|
209
211
|
cursorAt(e, t = 0, n = 0) {
|
|
210
|
-
let i =
|
|
211
|
-
return s.moveTo(e, t),
|
|
212
|
+
let i = be.get(this) || this.topNode, s = new Be(i);
|
|
213
|
+
return s.moveTo(e, t), be.set(this, s._tree), s;
|
|
212
214
|
}
|
|
213
215
|
/**
|
|
214
216
|
Get a [syntax node](#common.SyntaxNode) object for the top of the
|
|
@@ -229,8 +231,8 @@ class D {
|
|
|
229
231
|
[`resolveInner`](#common.Tree.resolveInner) instead.
|
|
230
232
|
*/
|
|
231
233
|
resolve(e, t = 0) {
|
|
232
|
-
let n =
|
|
233
|
-
return
|
|
234
|
+
let n = pe(be.get(this) || this.topNode, e, t, !1);
|
|
235
|
+
return be.set(this, n), n;
|
|
234
236
|
}
|
|
235
237
|
/**
|
|
236
238
|
Like [`resolve`](#common.Tree.resolve), but will enter
|
|
@@ -240,8 +242,8 @@ class D {
|
|
|
240
242
|
the host trees).
|
|
241
243
|
*/
|
|
242
244
|
resolveInner(e, t = 0) {
|
|
243
|
-
let n =
|
|
244
|
-
return
|
|
245
|
+
let n = pe(Re.get(this) || this.topNode, e, t, !0);
|
|
246
|
+
return Re.set(this, n), n;
|
|
245
247
|
}
|
|
246
248
|
/**
|
|
247
249
|
In some situations, it can be useful to iterate through all
|
|
@@ -251,7 +253,7 @@ class D {
|
|
|
251
253
|
position.
|
|
252
254
|
*/
|
|
253
255
|
resolveStack(e, t = 0) {
|
|
254
|
-
return
|
|
256
|
+
return Et(this, e, t);
|
|
255
257
|
}
|
|
256
258
|
/**
|
|
257
259
|
Iterate over the tree and its children, calling `enter` for any
|
|
@@ -261,18 +263,18 @@ class D {
|
|
|
261
263
|
not have its children iterated over (or `leave` called).
|
|
262
264
|
*/
|
|
263
265
|
iterate(e) {
|
|
264
|
-
let { enter: t, leave: n, from: i = 0, to: s = this.length } = e, o = e.mode || 0,
|
|
265
|
-
for (let f = this.cursor(o |
|
|
266
|
-
let
|
|
267
|
-
if (f.from <= s && f.to >= i && (!
|
|
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)) {
|
|
268
270
|
if (f.firstChild())
|
|
269
271
|
continue;
|
|
270
|
-
|
|
272
|
+
x = !0;
|
|
271
273
|
}
|
|
272
|
-
for (;
|
|
274
|
+
for (; x && n && (u || !f.type.isAnonymous) && n(f), !f.nextSibling(); ) {
|
|
273
275
|
if (!f.parent())
|
|
274
276
|
return;
|
|
275
|
-
|
|
277
|
+
x = !0;
|
|
276
278
|
}
|
|
277
279
|
}
|
|
278
280
|
}
|
|
@@ -301,18 +303,18 @@ class D {
|
|
|
301
303
|
[`NodeType.none`](#common.NodeType^none).
|
|
302
304
|
*/
|
|
303
305
|
balance(e = {}) {
|
|
304
|
-
return this.children.length <= 8 ? this :
|
|
306
|
+
return this.children.length <= 8 ? this : Ee(G.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, i) => new V(this.type, t, n, i, this.propValues), e.makeTree || ((t, n, i) => new V(G.none, t, n, i)));
|
|
305
307
|
}
|
|
306
308
|
/**
|
|
307
309
|
Build a tree from a postfix-ordered buffer of node information,
|
|
308
310
|
or a cursor over such a buffer.
|
|
309
311
|
*/
|
|
310
312
|
static build(e) {
|
|
311
|
-
return
|
|
313
|
+
return Mt(e);
|
|
312
314
|
}
|
|
313
315
|
}
|
|
314
|
-
|
|
315
|
-
class
|
|
316
|
+
V.empty = new V(G.none, [], [], 0);
|
|
317
|
+
class Oe {
|
|
316
318
|
constructor(e, t) {
|
|
317
319
|
this.buffer = e, this.index = t;
|
|
318
320
|
}
|
|
@@ -335,10 +337,10 @@ class Be {
|
|
|
335
337
|
this.index -= 4;
|
|
336
338
|
}
|
|
337
339
|
fork() {
|
|
338
|
-
return new
|
|
340
|
+
return new Oe(this.buffer, this.index);
|
|
339
341
|
}
|
|
340
342
|
}
|
|
341
|
-
class
|
|
343
|
+
class Z {
|
|
342
344
|
/**
|
|
343
345
|
Create a tree buffer.
|
|
344
346
|
*/
|
|
@@ -349,7 +351,7 @@ class G {
|
|
|
349
351
|
@internal
|
|
350
352
|
*/
|
|
351
353
|
get type() {
|
|
352
|
-
return
|
|
354
|
+
return G.none;
|
|
353
355
|
}
|
|
354
356
|
/**
|
|
355
357
|
@internal
|
|
@@ -376,25 +378,25 @@ class G {
|
|
|
376
378
|
@internal
|
|
377
379
|
*/
|
|
378
380
|
findChild(e, t, n, i, s) {
|
|
379
|
-
let { buffer: o } = this,
|
|
380
|
-
for (let f = e; f != t && !(
|
|
381
|
+
let { buffer: o } = this, u = -1;
|
|
382
|
+
for (let f = e; f != t && !(Qe(s, i, o[f + 1], o[f + 2]) && (u = f, n > 0)); f = o[f + 3])
|
|
381
383
|
;
|
|
382
|
-
return
|
|
384
|
+
return u;
|
|
383
385
|
}
|
|
384
386
|
/**
|
|
385
387
|
@internal
|
|
386
388
|
*/
|
|
387
389
|
slice(e, t, n) {
|
|
388
390
|
let i = this.buffer, s = new Uint16Array(t - e), o = 0;
|
|
389
|
-
for (let
|
|
390
|
-
s[f++] = i[
|
|
391
|
-
let
|
|
392
|
-
s[f++] = i[
|
|
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);
|
|
393
395
|
}
|
|
394
|
-
return new
|
|
396
|
+
return new Z(s, o, this.set);
|
|
395
397
|
}
|
|
396
398
|
}
|
|
397
|
-
function
|
|
399
|
+
function Qe(r, e, t, n) {
|
|
398
400
|
switch (r) {
|
|
399
401
|
case -2:
|
|
400
402
|
return t < e;
|
|
@@ -410,17 +412,17 @@ function Ke(r, e, t, n) {
|
|
|
410
412
|
return !0;
|
|
411
413
|
}
|
|
412
414
|
}
|
|
413
|
-
function
|
|
415
|
+
function pe(r, e, t, n) {
|
|
414
416
|
for (var i; r.from == r.to || (t < 1 ? r.from >= e : r.from > e) || (t > -1 ? r.to <= e : r.to < e); ) {
|
|
415
417
|
let o = !n && r instanceof z && r.index < 0 ? null : r.parent;
|
|
416
418
|
if (!o)
|
|
417
419
|
return r;
|
|
418
420
|
r = o;
|
|
419
421
|
}
|
|
420
|
-
let s = n ? 0 :
|
|
422
|
+
let s = n ? 0 : I.IgnoreOverlays;
|
|
421
423
|
if (n)
|
|
422
|
-
for (let o = r,
|
|
423
|
-
o instanceof z && o.index < 0 && ((i =
|
|
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);
|
|
424
426
|
for (; ; ) {
|
|
425
427
|
let o = r.enter(e, t, s);
|
|
426
428
|
if (!o)
|
|
@@ -428,9 +430,9 @@ function oe(r, e, t, n) {
|
|
|
428
430
|
r = o;
|
|
429
431
|
}
|
|
430
432
|
}
|
|
431
|
-
class
|
|
433
|
+
class Ye {
|
|
432
434
|
cursor(e = 0) {
|
|
433
|
-
return new
|
|
435
|
+
return new Be(this, e);
|
|
434
436
|
}
|
|
435
437
|
getChild(e, t = null, n = null) {
|
|
436
438
|
let i = De(this, e, t, n);
|
|
@@ -440,13 +442,13 @@ class Ge {
|
|
|
440
442
|
return De(this, e, t, n);
|
|
441
443
|
}
|
|
442
444
|
resolve(e, t = 0) {
|
|
443
|
-
return
|
|
445
|
+
return pe(this, e, t, !1);
|
|
444
446
|
}
|
|
445
447
|
resolveInner(e, t = 0) {
|
|
446
|
-
return
|
|
448
|
+
return pe(this, e, t, !0);
|
|
447
449
|
}
|
|
448
450
|
matchContext(e) {
|
|
449
|
-
return
|
|
451
|
+
return Ie(this, e);
|
|
450
452
|
}
|
|
451
453
|
enterUnfinishedNodesBefore(e) {
|
|
452
454
|
let t = this.childBefore(e), n = this;
|
|
@@ -465,7 +467,7 @@ class Ge {
|
|
|
465
467
|
return this.parent;
|
|
466
468
|
}
|
|
467
469
|
}
|
|
468
|
-
class z extends
|
|
470
|
+
class z extends Ye {
|
|
469
471
|
constructor(e, t, n, i) {
|
|
470
472
|
super(), this._tree = e, this.from = t, this.index = n, this._parent = i;
|
|
471
473
|
}
|
|
@@ -480,25 +482,25 @@ class z extends Ge {
|
|
|
480
482
|
}
|
|
481
483
|
nextChild(e, t, n, i, s = 0) {
|
|
482
484
|
for (let o = this; ; ) {
|
|
483
|
-
for (let { children:
|
|
484
|
-
let
|
|
485
|
-
if (
|
|
486
|
-
if (
|
|
487
|
-
if (s &
|
|
485
|
+
for (let { children: u, positions: f } = o._tree, x = t > 0 ? u.length : -1; e != x; e += t) {
|
|
486
|
+
let v = u[e], w = f[e] + o.from;
|
|
487
|
+
if (Qe(i, n, w, w + v.length)) {
|
|
488
|
+
if (v instanceof Z) {
|
|
489
|
+
if (s & I.ExcludeBuffers)
|
|
488
490
|
continue;
|
|
489
|
-
let
|
|
490
|
-
if (
|
|
491
|
-
return new
|
|
492
|
-
} else if (s &
|
|
493
|
-
let
|
|
494
|
-
if (!(s &
|
|
495
|
-
return new z(
|
|
496
|
-
let
|
|
497
|
-
return s &
|
|
491
|
+
let A = v.findChild(0, v.buffer.length, t, n - w, i);
|
|
492
|
+
if (A > -1)
|
|
493
|
+
return new X(new Ot(o, v, e, w), null, A);
|
|
494
|
+
} else if (s & I.IncludeAnonymous || !v.type.isAnonymous || ze(v)) {
|
|
495
|
+
let A;
|
|
496
|
+
if (!(s & I.IgnoreMounts) && (A = ve.get(v)) && !A.overlay)
|
|
497
|
+
return new z(A.tree, w, e, o);
|
|
498
|
+
let L = new z(v, w, e, o);
|
|
499
|
+
return s & I.IncludeAnonymous || !L.type.isAnonymous ? L : L.nextChild(t < 0 ? v.children.length - 1 : 0, t, n, i);
|
|
498
500
|
}
|
|
499
501
|
}
|
|
500
502
|
}
|
|
501
|
-
if (s &
|
|
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))
|
|
502
504
|
return null;
|
|
503
505
|
}
|
|
504
506
|
}
|
|
@@ -540,10 +542,10 @@ class z extends Ge {
|
|
|
540
542
|
}
|
|
541
543
|
enter(e, t, n = 0) {
|
|
542
544
|
let i;
|
|
543
|
-
if (!(n &
|
|
545
|
+
if (!(n & I.IgnoreOverlays) && (i = ve.get(this._tree)) && i.overlay) {
|
|
544
546
|
let s = e - this.from;
|
|
545
|
-
for (let { from: o, to:
|
|
546
|
-
if ((t > 0 ? o <= s : o < s) && (t < 0 ?
|
|
547
|
+
for (let { from: o, to: u } of i.overlay)
|
|
548
|
+
if ((t > 0 ? o <= s : o < s) && (t < 0 ? u >= s : u > s))
|
|
547
549
|
return new z(i.tree, i.overlay[0].from + this.from, -1, this);
|
|
548
550
|
}
|
|
549
551
|
return this.nextChild(0, 1, e, t, n);
|
|
@@ -604,7 +606,7 @@ function De(r, e, t, n) {
|
|
|
604
606
|
return n == null ? s : [];
|
|
605
607
|
}
|
|
606
608
|
}
|
|
607
|
-
function
|
|
609
|
+
function Ie(r, e, t = e.length - 1) {
|
|
608
610
|
for (let n = r.parent; t >= 0; n = n.parent) {
|
|
609
611
|
if (!n)
|
|
610
612
|
return !1;
|
|
@@ -616,12 +618,12 @@ function Ne(r, e, t = e.length - 1) {
|
|
|
616
618
|
}
|
|
617
619
|
return !0;
|
|
618
620
|
}
|
|
619
|
-
class
|
|
621
|
+
class Ot {
|
|
620
622
|
constructor(e, t, n, i) {
|
|
621
623
|
this.parent = e, this.buffer = t, this.index = n, this.start = i;
|
|
622
624
|
}
|
|
623
625
|
}
|
|
624
|
-
class
|
|
626
|
+
class X extends Ye {
|
|
625
627
|
get name() {
|
|
626
628
|
return this.type.name;
|
|
627
629
|
}
|
|
@@ -636,7 +638,7 @@ class K extends Ge {
|
|
|
636
638
|
}
|
|
637
639
|
child(e, t, n) {
|
|
638
640
|
let { buffer: i } = this.context, s = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.context.start, n);
|
|
639
|
-
return s < 0 ? null : new
|
|
641
|
+
return s < 0 ? null : new X(this.context, this, s);
|
|
640
642
|
}
|
|
641
643
|
get firstChild() {
|
|
642
644
|
return this.child(
|
|
@@ -671,10 +673,10 @@ class K extends Ge {
|
|
|
671
673
|
);
|
|
672
674
|
}
|
|
673
675
|
enter(e, t, n = 0) {
|
|
674
|
-
if (n &
|
|
676
|
+
if (n & I.ExcludeBuffers)
|
|
675
677
|
return null;
|
|
676
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);
|
|
677
|
-
return s < 0 ? null : new
|
|
679
|
+
return s < 0 ? null : new X(this.context, this, s);
|
|
678
680
|
}
|
|
679
681
|
get parent() {
|
|
680
682
|
return this._parent || this.context.parent.nextSignificantParent();
|
|
@@ -690,11 +692,11 @@ class K extends Ge {
|
|
|
690
692
|
}
|
|
691
693
|
get nextSibling() {
|
|
692
694
|
let { buffer: e } = this.context, t = e.buffer[this.index + 3];
|
|
693
|
-
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new
|
|
695
|
+
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new X(this.context, this._parent, t) : this.externalSibling(1);
|
|
694
696
|
}
|
|
695
697
|
get prevSibling() {
|
|
696
698
|
let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
|
|
697
|
-
return this.index == t ? this.externalSibling(-1) : new
|
|
699
|
+
return this.index == t ? this.externalSibling(-1) : new X(this.context, this._parent, e.findChild(
|
|
698
700
|
t,
|
|
699
701
|
this.index,
|
|
700
702
|
-1,
|
|
@@ -712,7 +714,7 @@ class K extends Ge {
|
|
|
712
714
|
let o = n.buffer[this.index + 1];
|
|
713
715
|
e.push(n.slice(i, s, o)), t.push(0);
|
|
714
716
|
}
|
|
715
|
-
return new
|
|
717
|
+
return new V(this.type, e, t, this.to - this.from);
|
|
716
718
|
}
|
|
717
719
|
/**
|
|
718
720
|
@internal
|
|
@@ -721,7 +723,7 @@ class K extends Ge {
|
|
|
721
723
|
return this.context.buffer.childString(this.index);
|
|
722
724
|
}
|
|
723
725
|
}
|
|
724
|
-
function
|
|
726
|
+
function et(r) {
|
|
725
727
|
if (!r.length)
|
|
726
728
|
return null;
|
|
727
729
|
let e = 0, t = r[0];
|
|
@@ -730,32 +732,32 @@ function qe(r) {
|
|
|
730
732
|
(o.from > t.from || o.to < t.to) && (t = o, e = s);
|
|
731
733
|
}
|
|
732
734
|
let n = t instanceof z && t.index < 0 ? null : t.parent, i = r.slice();
|
|
733
|
-
return n ? i[e] = n : i.splice(e, 1), new
|
|
735
|
+
return n ? i[e] = n : i.splice(e, 1), new zt(i, t);
|
|
734
736
|
}
|
|
735
|
-
class
|
|
737
|
+
class zt {
|
|
736
738
|
constructor(e, t) {
|
|
737
739
|
this.heads = e, this.node = t;
|
|
738
740
|
}
|
|
739
741
|
get next() {
|
|
740
|
-
return
|
|
742
|
+
return et(this.heads);
|
|
741
743
|
}
|
|
742
744
|
}
|
|
743
|
-
function
|
|
745
|
+
function Et(r, e, t) {
|
|
744
746
|
let n = r.resolveInner(e, t), i = null;
|
|
745
747
|
for (let s = n instanceof z ? n : n.context.parent; s; s = s.parent)
|
|
746
748
|
if (s.index < 0) {
|
|
747
749
|
let o = s.parent;
|
|
748
750
|
(i || (i = [n])).push(o.resolve(e, t)), s = o;
|
|
749
751
|
} else {
|
|
750
|
-
let o =
|
|
752
|
+
let o = ve.get(s.tree);
|
|
751
753
|
if (o && o.overlay && o.overlay[0].from <= e && o.overlay[o.overlay.length - 1].to >= e) {
|
|
752
|
-
let
|
|
753
|
-
(i || (i = [n])).push(
|
|
754
|
+
let u = new z(o.tree, o.overlay[0].from + s.from, -1, s);
|
|
755
|
+
(i || (i = [n])).push(pe(u, e, t, !1));
|
|
754
756
|
}
|
|
755
757
|
}
|
|
756
|
-
return i ?
|
|
758
|
+
return i ? et(i) : n;
|
|
757
759
|
}
|
|
758
|
-
class
|
|
760
|
+
class Be {
|
|
759
761
|
/**
|
|
760
762
|
Shorthand for `.type.name`.
|
|
761
763
|
*/
|
|
@@ -857,17 +859,17 @@ class Se {
|
|
|
857
859
|
set to false.
|
|
858
860
|
*/
|
|
859
861
|
enter(e, t, n = this.mode) {
|
|
860
|
-
return this.buffer ? n &
|
|
862
|
+
return this.buffer ? n & I.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
|
|
861
863
|
}
|
|
862
864
|
/**
|
|
863
865
|
Move to the node's parent node, if this isn't the top node.
|
|
864
866
|
*/
|
|
865
867
|
parent() {
|
|
866
868
|
if (!this.buffer)
|
|
867
|
-
return this.yieldNode(this.mode &
|
|
869
|
+
return this.yieldNode(this.mode & I.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
868
870
|
if (this.stack.length)
|
|
869
871
|
return this.yieldBuf(this.stack.pop());
|
|
870
|
-
let e = this.mode &
|
|
872
|
+
let e = this.mode & I.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
871
873
|
return this.buffer = null, this.yieldNode(e);
|
|
872
874
|
}
|
|
873
875
|
/**
|
|
@@ -923,8 +925,8 @@ class Se {
|
|
|
923
925
|
for (; n; { index: t, _parent: n } = n)
|
|
924
926
|
if (t > -1)
|
|
925
927
|
for (let s = t + e, o = e < 0 ? -1 : n._tree.children.length; s != o; s += e) {
|
|
926
|
-
let
|
|
927
|
-
if (this.mode &
|
|
928
|
+
let u = n._tree.children[s];
|
|
929
|
+
if (this.mode & I.IncludeAnonymous || u instanceof Z || !u.type.isAnonymous || ze(u))
|
|
928
930
|
return !1;
|
|
929
931
|
}
|
|
930
932
|
return !0;
|
|
@@ -996,8 +998,8 @@ class Se {
|
|
|
996
998
|
i = this.stack[--s];
|
|
997
999
|
}
|
|
998
1000
|
for (let i = n; i < this.stack.length; i++)
|
|
999
|
-
t = new
|
|
1000
|
-
return this.bufferNode = new
|
|
1001
|
+
t = new X(this.buffer, t, this.stack[i]);
|
|
1002
|
+
return this.bufferNode = new X(this.buffer, t, this.index);
|
|
1001
1003
|
}
|
|
1002
1004
|
/**
|
|
1003
1005
|
Get the [tree](#common.Tree) that represents the current node, if
|
|
@@ -1037,11 +1039,11 @@ class Se {
|
|
|
1037
1039
|
*/
|
|
1038
1040
|
matchContext(e) {
|
|
1039
1041
|
if (!this.buffer)
|
|
1040
|
-
return
|
|
1042
|
+
return Ie(this.node, e);
|
|
1041
1043
|
let { buffer: t } = this.buffer, { types: n } = t.set;
|
|
1042
1044
|
for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) {
|
|
1043
1045
|
if (s < 0)
|
|
1044
|
-
return
|
|
1046
|
+
return Ie(this.node, e, i);
|
|
1045
1047
|
let o = n[t.buffer[this.stack[s]]];
|
|
1046
1048
|
if (!o.isAnonymous) {
|
|
1047
1049
|
if (e[i] && e[i] != o.name)
|
|
@@ -1052,200 +1054,200 @@ class Se {
|
|
|
1052
1054
|
return !0;
|
|
1053
1055
|
}
|
|
1054
1056
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return r.children.some((e) => e instanceof
|
|
1057
|
+
function ze(r) {
|
|
1058
|
+
return r.children.some((e) => e instanceof Z || !e.type.isAnonymous || ze(e));
|
|
1057
1059
|
}
|
|
1058
|
-
function
|
|
1060
|
+
function Mt(r) {
|
|
1059
1061
|
var e;
|
|
1060
|
-
let { buffer: t, nodeSet: n, maxBufferLength: i =
|
|
1061
|
-
function
|
|
1062
|
-
let { id:
|
|
1062
|
+
let { buffer: t, nodeSet: n, maxBufferLength: i = It, reused: s = [], minRepeatType: o = n.types.length } = r, u = Array.isArray(t) ? new Oe(t, t.length) : t, f = n.types, x = 0, v = 0;
|
|
1063
|
+
function w(g, b, h, y, p, m) {
|
|
1064
|
+
let { id: d, start: c, end: C, size: k } = u, B = v;
|
|
1063
1065
|
for (; k < 0; )
|
|
1064
|
-
if (
|
|
1065
|
-
let
|
|
1066
|
-
|
|
1066
|
+
if (u.next(), k == -1) {
|
|
1067
|
+
let W = s[d];
|
|
1068
|
+
h.push(W), y.push(c - g);
|
|
1067
1069
|
return;
|
|
1068
1070
|
} else if (k == -3) {
|
|
1069
|
-
|
|
1071
|
+
x = d;
|
|
1070
1072
|
return;
|
|
1071
1073
|
} else if (k == -4) {
|
|
1072
|
-
|
|
1074
|
+
v = d;
|
|
1073
1075
|
return;
|
|
1074
1076
|
} else
|
|
1075
1077
|
throw new RangeError(`Unrecognized record size: ${k}`);
|
|
1076
|
-
let
|
|
1077
|
-
if (
|
|
1078
|
-
let
|
|
1079
|
-
for (;
|
|
1080
|
-
|
|
1081
|
-
|
|
1078
|
+
let Q = f[d], ie, Y, Me = c - g;
|
|
1079
|
+
if (C - c <= i && (Y = R(u.pos - b, p))) {
|
|
1080
|
+
let W = new Uint16Array(Y.size - Y.skip), O = u.pos - Y.size, P = W.length;
|
|
1081
|
+
for (; u.pos > O; )
|
|
1082
|
+
P = D(Y.start, W, P);
|
|
1083
|
+
ie = new Z(W, C - Y.start, n), Me = Y.start - g;
|
|
1082
1084
|
} else {
|
|
1083
|
-
let
|
|
1084
|
-
|
|
1085
|
-
let O = [],
|
|
1086
|
-
for (;
|
|
1087
|
-
|
|
1088
|
-
if (
|
|
1089
|
-
let
|
|
1090
|
-
|
|
1085
|
+
let W = u.pos - k;
|
|
1086
|
+
u.next();
|
|
1087
|
+
let O = [], P = [], ee = d >= o ? d : -1, se = 0, ge = C;
|
|
1088
|
+
for (; u.pos > W; )
|
|
1089
|
+
ee >= 0 && u.id == ee && u.size >= 0 ? (u.end <= ge - i && (N(O, P, c, se, u.end, ge, ee, B), se = O.length, ge = u.end), u.next()) : m > 2500 ? A(c, W, O, P) : w(c, W, O, P, ee, m + 1);
|
|
1090
|
+
if (ee >= 0 && se > 0 && se < O.length && N(O, P, c, se, c, ge, ee, B), O.reverse(), P.reverse(), ee > -1 && se > 0) {
|
|
1091
|
+
let Pe = L(Q);
|
|
1092
|
+
ie = Ee(Q, O, P, 0, O.length, 0, C - c, Pe, Pe);
|
|
1091
1093
|
} else
|
|
1092
|
-
|
|
1094
|
+
ie = M(Q, O, P, C - c, B - C);
|
|
1093
1095
|
}
|
|
1094
|
-
|
|
1095
|
-
}
|
|
1096
|
-
function
|
|
1097
|
-
let
|
|
1098
|
-
for (;
|
|
1099
|
-
let { id:
|
|
1100
|
-
if (
|
|
1101
|
-
|
|
1096
|
+
h.push(ie), y.push(Me);
|
|
1097
|
+
}
|
|
1098
|
+
function A(g, b, h, y) {
|
|
1099
|
+
let p = [], m = 0, d = -1;
|
|
1100
|
+
for (; u.pos > b; ) {
|
|
1101
|
+
let { id: c, start: C, end: k, size: B } = u;
|
|
1102
|
+
if (B > 4)
|
|
1103
|
+
u.next();
|
|
1102
1104
|
else {
|
|
1103
|
-
if (
|
|
1105
|
+
if (d > -1 && C < d)
|
|
1104
1106
|
break;
|
|
1105
|
-
|
|
1107
|
+
d < 0 && (d = k - i), p.push(c, C, k), m++, u.next();
|
|
1106
1108
|
}
|
|
1107
1109
|
}
|
|
1108
|
-
if (
|
|
1109
|
-
let
|
|
1110
|
-
for (let k =
|
|
1111
|
-
|
|
1112
|
-
|
|
1110
|
+
if (m) {
|
|
1111
|
+
let c = new Uint16Array(m * 4), C = p[p.length - 2];
|
|
1112
|
+
for (let k = p.length - 3, B = 0; k >= 0; k -= 3)
|
|
1113
|
+
c[B++] = p[k], c[B++] = p[k + 1] - C, c[B++] = p[k + 2] - C, c[B++] = B;
|
|
1114
|
+
h.push(new Z(c, p[2] - C, n)), y.push(C - g);
|
|
1113
1115
|
}
|
|
1114
1116
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return (
|
|
1117
|
-
let
|
|
1118
|
-
if (
|
|
1119
|
-
if (!
|
|
1120
|
-
return
|
|
1121
|
-
(
|
|
1117
|
+
function L(g) {
|
|
1118
|
+
return (b, h, y) => {
|
|
1119
|
+
let p = 0, m = b.length - 1, d, c;
|
|
1120
|
+
if (m >= 0 && (d = b[m]) instanceof V) {
|
|
1121
|
+
if (!m && d.type == g && d.length == y)
|
|
1122
|
+
return d;
|
|
1123
|
+
(c = d.prop(_.lookAhead)) && (p = h[m] + d.length + c);
|
|
1122
1124
|
}
|
|
1123
|
-
return
|
|
1125
|
+
return M(g, b, h, y, p);
|
|
1124
1126
|
};
|
|
1125
1127
|
}
|
|
1126
|
-
function
|
|
1127
|
-
let
|
|
1128
|
-
for (;
|
|
1129
|
-
|
|
1130
|
-
|
|
1128
|
+
function N(g, b, h, y, p, m, d, c) {
|
|
1129
|
+
let C = [], k = [];
|
|
1130
|
+
for (; g.length > y; )
|
|
1131
|
+
C.push(g.pop()), k.push(b.pop() + h - p);
|
|
1132
|
+
g.push(M(n.types[d], C, k, m - p, c - m)), b.push(p - h);
|
|
1131
1133
|
}
|
|
1132
|
-
function
|
|
1133
|
-
if (
|
|
1134
|
-
let
|
|
1135
|
-
|
|
1134
|
+
function M(g, b, h, y, p = 0, m) {
|
|
1135
|
+
if (x) {
|
|
1136
|
+
let d = [_.contextHash, x];
|
|
1137
|
+
m = m ? [d].concat(m) : [d];
|
|
1136
1138
|
}
|
|
1137
|
-
if (
|
|
1138
|
-
let
|
|
1139
|
-
|
|
1139
|
+
if (p > 25) {
|
|
1140
|
+
let d = [_.lookAhead, p];
|
|
1141
|
+
m = m ? [d].concat(m) : [d];
|
|
1140
1142
|
}
|
|
1141
|
-
return new
|
|
1143
|
+
return new V(g, b, h, y, m);
|
|
1142
1144
|
}
|
|
1143
|
-
function
|
|
1144
|
-
let
|
|
1145
|
+
function R(g, b) {
|
|
1146
|
+
let h = u.fork(), y = 0, p = 0, m = 0, d = h.end - i, c = { size: 0, start: 0, skip: 0 };
|
|
1145
1147
|
e:
|
|
1146
|
-
for (let
|
|
1147
|
-
let k =
|
|
1148
|
-
if (
|
|
1149
|
-
|
|
1148
|
+
for (let C = h.pos - g; h.pos > C; ) {
|
|
1149
|
+
let k = h.size;
|
|
1150
|
+
if (h.id == b && k >= 0) {
|
|
1151
|
+
c.size = y, c.start = p, c.skip = m, m += 4, y += 4, h.next();
|
|
1150
1152
|
continue;
|
|
1151
1153
|
}
|
|
1152
|
-
let
|
|
1153
|
-
if (k < 0 ||
|
|
1154
|
+
let B = h.pos - k;
|
|
1155
|
+
if (k < 0 || B < C || h.start < d)
|
|
1154
1156
|
break;
|
|
1155
|
-
let
|
|
1156
|
-
for (
|
|
1157
|
-
if (
|
|
1158
|
-
if (
|
|
1159
|
-
|
|
1157
|
+
let Q = h.id >= o ? 4 : 0, ie = h.start;
|
|
1158
|
+
for (h.next(); h.pos > B; ) {
|
|
1159
|
+
if (h.size < 0)
|
|
1160
|
+
if (h.size == -3)
|
|
1161
|
+
Q += 4;
|
|
1160
1162
|
else
|
|
1161
1163
|
break e;
|
|
1162
1164
|
else
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
+
h.id >= o && (Q += 4);
|
|
1166
|
+
h.next();
|
|
1165
1167
|
}
|
|
1166
|
-
|
|
1168
|
+
p = ie, y += k, m += Q;
|
|
1167
1169
|
}
|
|
1168
|
-
return (
|
|
1169
|
-
}
|
|
1170
|
-
function
|
|
1171
|
-
let { id:
|
|
1172
|
-
if (
|
|
1173
|
-
let
|
|
1174
|
-
if (
|
|
1175
|
-
let
|
|
1176
|
-
for (;
|
|
1177
|
-
|
|
1170
|
+
return (b < 0 || y == g) && (c.size = y, c.start = p, c.skip = m), c.size > 4 ? c : void 0;
|
|
1171
|
+
}
|
|
1172
|
+
function D(g, b, h) {
|
|
1173
|
+
let { id: y, start: p, end: m, size: d } = u;
|
|
1174
|
+
if (u.next(), d >= 0 && y < o) {
|
|
1175
|
+
let c = h;
|
|
1176
|
+
if (d > 4) {
|
|
1177
|
+
let C = u.pos - (d - 4);
|
|
1178
|
+
for (; u.pos > C; )
|
|
1179
|
+
h = D(g, b, h);
|
|
1178
1180
|
}
|
|
1179
|
-
|
|
1181
|
+
b[--h] = c, b[--h] = m - g, b[--h] = p - g, b[--h] = y;
|
|
1180
1182
|
} else
|
|
1181
|
-
|
|
1182
|
-
return
|
|
1183
|
+
d == -3 ? x = y : d == -4 && (v = y);
|
|
1184
|
+
return h;
|
|
1183
1185
|
}
|
|
1184
|
-
let
|
|
1185
|
-
for (;
|
|
1186
|
-
|
|
1187
|
-
let
|
|
1188
|
-
return new
|
|
1186
|
+
let U = [], S = [];
|
|
1187
|
+
for (; u.pos > 0; )
|
|
1188
|
+
w(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 V(f[r.topID], U.reverse(), S.reverse(), J);
|
|
1189
1191
|
}
|
|
1190
1192
|
const Ue = /* @__PURE__ */ new WeakMap();
|
|
1191
|
-
function
|
|
1192
|
-
if (!r.isAnonymous || e instanceof
|
|
1193
|
+
function Ce(r, e) {
|
|
1194
|
+
if (!r.isAnonymous || e instanceof Z || e.type != r)
|
|
1193
1195
|
return 1;
|
|
1194
1196
|
let t = Ue.get(e);
|
|
1195
1197
|
if (t == null) {
|
|
1196
1198
|
t = 1;
|
|
1197
1199
|
for (let n of e.children) {
|
|
1198
|
-
if (n.type != r || !(n instanceof
|
|
1200
|
+
if (n.type != r || !(n instanceof V)) {
|
|
1199
1201
|
t = 1;
|
|
1200
1202
|
break;
|
|
1201
1203
|
}
|
|
1202
|
-
t +=
|
|
1204
|
+
t += Ce(r, n);
|
|
1203
1205
|
}
|
|
1204
1206
|
Ue.set(e, t);
|
|
1205
1207
|
}
|
|
1206
1208
|
return t;
|
|
1207
1209
|
}
|
|
1208
|
-
function
|
|
1209
|
-
let
|
|
1210
|
-
for (let
|
|
1211
|
-
|
|
1212
|
-
let
|
|
1213
|
-
|
|
1210
|
+
function Ee(r, e, t, n, i, s, o, u, f) {
|
|
1211
|
+
let x = 0;
|
|
1212
|
+
for (let N = n; N < i; N++)
|
|
1213
|
+
x += Ce(r, e[N]);
|
|
1214
|
+
let v = Math.ceil(
|
|
1215
|
+
x * 1.5 / 8
|
|
1214
1216
|
/* Balance.BranchFactor */
|
|
1215
|
-
),
|
|
1216
|
-
function
|
|
1217
|
-
for (let
|
|
1218
|
-
let
|
|
1219
|
-
for (
|
|
1220
|
-
let
|
|
1221
|
-
if (
|
|
1217
|
+
), w = [], A = [];
|
|
1218
|
+
function L(N, M, R, D, U) {
|
|
1219
|
+
for (let S = R; S < D; ) {
|
|
1220
|
+
let J = S, g = M[S], b = Ce(r, N[S]);
|
|
1221
|
+
for (S++; S < D; S++) {
|
|
1222
|
+
let h = Ce(r, N[S]);
|
|
1223
|
+
if (b + h >= v)
|
|
1222
1224
|
break;
|
|
1223
|
-
|
|
1225
|
+
b += h;
|
|
1224
1226
|
}
|
|
1225
|
-
if (
|
|
1226
|
-
if (
|
|
1227
|
-
let
|
|
1228
|
-
|
|
1227
|
+
if (S == J + 1) {
|
|
1228
|
+
if (b > v) {
|
|
1229
|
+
let h = N[J];
|
|
1230
|
+
L(h.children, h.positions, 0, h.children.length, M[J] + U);
|
|
1229
1231
|
continue;
|
|
1230
1232
|
}
|
|
1231
|
-
|
|
1233
|
+
w.push(N[J]);
|
|
1232
1234
|
} else {
|
|
1233
|
-
let
|
|
1234
|
-
|
|
1235
|
+
let h = M[S - 1] + N[S - 1].length - g;
|
|
1236
|
+
w.push(Ee(r, N, M, J, S, g, h, null, f));
|
|
1235
1237
|
}
|
|
1236
|
-
|
|
1238
|
+
A.push(g + U - s);
|
|
1237
1239
|
}
|
|
1238
1240
|
}
|
|
1239
|
-
return
|
|
1241
|
+
return L(e, t, n, i, 0), (u || f)(w, A, o);
|
|
1240
1242
|
}
|
|
1241
|
-
new
|
|
1242
|
-
let
|
|
1243
|
+
new _({ perNode: !0 });
|
|
1244
|
+
let Pt = 0;
|
|
1243
1245
|
class H {
|
|
1244
1246
|
/**
|
|
1245
1247
|
@internal
|
|
1246
1248
|
*/
|
|
1247
1249
|
constructor(e, t, n) {
|
|
1248
|
-
this.set = e, this.base = t, this.modified = n, this.id =
|
|
1250
|
+
this.set = e, this.base = t, this.modified = n, this.id = Pt++;
|
|
1249
1251
|
}
|
|
1250
1252
|
/**
|
|
1251
1253
|
Define a new tag. If `parent` is given, the tag is treated as a
|
|
@@ -1276,44 +1278,44 @@ class H {
|
|
|
1276
1278
|
`m1(m3(t1)`, and so on.
|
|
1277
1279
|
*/
|
|
1278
1280
|
static defineModifier() {
|
|
1279
|
-
let e = new
|
|
1280
|
-
return (t) => t.modified.indexOf(e) > -1 ? t :
|
|
1281
|
+
let e = new we();
|
|
1282
|
+
return (t) => t.modified.indexOf(e) > -1 ? t : we.get(t.base || t, t.modified.concat(e).sort((n, i) => n.id - i.id));
|
|
1281
1283
|
}
|
|
1282
1284
|
}
|
|
1283
|
-
let
|
|
1284
|
-
class
|
|
1285
|
+
let $t = 0;
|
|
1286
|
+
class we {
|
|
1285
1287
|
constructor() {
|
|
1286
|
-
this.instances = [], this.id =
|
|
1288
|
+
this.instances = [], this.id = $t++;
|
|
1287
1289
|
}
|
|
1288
1290
|
static get(e, t) {
|
|
1289
1291
|
if (!t.length)
|
|
1290
1292
|
return e;
|
|
1291
|
-
let n = t[0].instances.find((
|
|
1293
|
+
let n = t[0].instances.find((u) => u.base == e && Tt(t, u.modified));
|
|
1292
1294
|
if (n)
|
|
1293
1295
|
return n;
|
|
1294
1296
|
let i = [], s = new H(i, e, t);
|
|
1295
|
-
for (let
|
|
1296
|
-
|
|
1297
|
-
let o =
|
|
1298
|
-
for (let
|
|
1299
|
-
if (!
|
|
1297
|
+
for (let u of t)
|
|
1298
|
+
u.instances.push(s);
|
|
1299
|
+
let o = jt(t);
|
|
1300
|
+
for (let u of e.set)
|
|
1301
|
+
if (!u.modified.length)
|
|
1300
1302
|
for (let f of o)
|
|
1301
|
-
i.push(
|
|
1303
|
+
i.push(we.get(u, f));
|
|
1302
1304
|
return s;
|
|
1303
1305
|
}
|
|
1304
1306
|
}
|
|
1305
|
-
function
|
|
1307
|
+
function Tt(r, e) {
|
|
1306
1308
|
return r.length == e.length && r.every((t, n) => t == e[n]);
|
|
1307
1309
|
}
|
|
1308
|
-
function
|
|
1310
|
+
function jt(r) {
|
|
1309
1311
|
let e = [[]];
|
|
1310
1312
|
for (let t = 0; t < r.length; t++)
|
|
1311
1313
|
for (let n = 0, i = e.length; n < i; n++)
|
|
1312
1314
|
e.push(e[n].concat(r[t]));
|
|
1313
1315
|
return e.sort((t, n) => n.length - t.length);
|
|
1314
1316
|
}
|
|
1315
|
-
new
|
|
1316
|
-
function
|
|
1317
|
+
new _();
|
|
1318
|
+
function Ht(r, e) {
|
|
1317
1319
|
let t = /* @__PURE__ */ Object.create(null);
|
|
1318
1320
|
for (let s of r)
|
|
1319
1321
|
if (!Array.isArray(s.tag))
|
|
@@ -1325,11 +1327,11 @@ function Tt(r, e) {
|
|
|
1325
1327
|
return {
|
|
1326
1328
|
style: (s) => {
|
|
1327
1329
|
let o = i;
|
|
1328
|
-
for (let
|
|
1329
|
-
for (let f of
|
|
1330
|
-
let
|
|
1331
|
-
if (
|
|
1332
|
-
o = o ? o + " " +
|
|
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;
|
|
1333
1335
|
break;
|
|
1334
1336
|
}
|
|
1335
1337
|
}
|
|
@@ -1338,31 +1340,31 @@ function Tt(r, e) {
|
|
|
1338
1340
|
scope: n
|
|
1339
1341
|
};
|
|
1340
1342
|
}
|
|
1341
|
-
const a = H.define,
|
|
1343
|
+
const a = H.define, ye = a(), q = a(), Je = a(q), We = a(q), F = a(), xe = a(F), Se = a(F), j = a(), te = a(j), $ = a(), T = a(), Le = a(), de = a(Le), ke = a(), l = {
|
|
1342
1344
|
/**
|
|
1343
1345
|
A comment.
|
|
1344
1346
|
*/
|
|
1345
|
-
comment:
|
|
1347
|
+
comment: ye,
|
|
1346
1348
|
/**
|
|
1347
1349
|
A line [comment](#highlight.tags.comment).
|
|
1348
1350
|
*/
|
|
1349
|
-
lineComment: a(
|
|
1351
|
+
lineComment: a(ye),
|
|
1350
1352
|
/**
|
|
1351
1353
|
A block [comment](#highlight.tags.comment).
|
|
1352
1354
|
*/
|
|
1353
|
-
blockComment: a(
|
|
1355
|
+
blockComment: a(ye),
|
|
1354
1356
|
/**
|
|
1355
1357
|
A documentation [comment](#highlight.tags.comment).
|
|
1356
1358
|
*/
|
|
1357
|
-
docComment: a(
|
|
1359
|
+
docComment: a(ye),
|
|
1358
1360
|
/**
|
|
1359
1361
|
Any kind of identifier.
|
|
1360
1362
|
*/
|
|
1361
|
-
name:
|
|
1363
|
+
name: q,
|
|
1362
1364
|
/**
|
|
1363
1365
|
The [name](#highlight.tags.name) of a variable.
|
|
1364
1366
|
*/
|
|
1365
|
-
variableName: a(
|
|
1367
|
+
variableName: a(q),
|
|
1366
1368
|
/**
|
|
1367
1369
|
A type [name](#highlight.tags.name).
|
|
1368
1370
|
*/
|
|
@@ -1382,253 +1384,253 @@ const a = H.define, fe = a(), W = a(), Je = a(W), We = a(W), $ = a(), ce = a($),
|
|
|
1382
1384
|
/**
|
|
1383
1385
|
The [name](#highlight.tags.name) of a class.
|
|
1384
1386
|
*/
|
|
1385
|
-
className: a(
|
|
1387
|
+
className: a(q),
|
|
1386
1388
|
/**
|
|
1387
1389
|
A label [name](#highlight.tags.name).
|
|
1388
1390
|
*/
|
|
1389
|
-
labelName: a(
|
|
1391
|
+
labelName: a(q),
|
|
1390
1392
|
/**
|
|
1391
1393
|
A namespace [name](#highlight.tags.name).
|
|
1392
1394
|
*/
|
|
1393
|
-
namespace: a(
|
|
1395
|
+
namespace: a(q),
|
|
1394
1396
|
/**
|
|
1395
1397
|
The [name](#highlight.tags.name) of a macro.
|
|
1396
1398
|
*/
|
|
1397
|
-
macroName: a(
|
|
1399
|
+
macroName: a(q),
|
|
1398
1400
|
/**
|
|
1399
1401
|
A literal value.
|
|
1400
1402
|
*/
|
|
1401
|
-
literal:
|
|
1403
|
+
literal: F,
|
|
1402
1404
|
/**
|
|
1403
1405
|
A string [literal](#highlight.tags.literal).
|
|
1404
1406
|
*/
|
|
1405
|
-
string:
|
|
1407
|
+
string: xe,
|
|
1406
1408
|
/**
|
|
1407
1409
|
A documentation [string](#highlight.tags.string).
|
|
1408
1410
|
*/
|
|
1409
|
-
docString: a(
|
|
1411
|
+
docString: a(xe),
|
|
1410
1412
|
/**
|
|
1411
1413
|
A character literal (subtag of [string](#highlight.tags.string)).
|
|
1412
1414
|
*/
|
|
1413
|
-
character: a(
|
|
1415
|
+
character: a(xe),
|
|
1414
1416
|
/**
|
|
1415
1417
|
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
1416
1418
|
*/
|
|
1417
|
-
attributeValue: a(
|
|
1419
|
+
attributeValue: a(xe),
|
|
1418
1420
|
/**
|
|
1419
1421
|
A number [literal](#highlight.tags.literal).
|
|
1420
1422
|
*/
|
|
1421
|
-
number:
|
|
1423
|
+
number: Se,
|
|
1422
1424
|
/**
|
|
1423
1425
|
An integer [number](#highlight.tags.number) literal.
|
|
1424
1426
|
*/
|
|
1425
|
-
integer: a(
|
|
1427
|
+
integer: a(Se),
|
|
1426
1428
|
/**
|
|
1427
1429
|
A floating-point [number](#highlight.tags.number) literal.
|
|
1428
1430
|
*/
|
|
1429
|
-
float: a(
|
|
1431
|
+
float: a(Se),
|
|
1430
1432
|
/**
|
|
1431
1433
|
A boolean [literal](#highlight.tags.literal).
|
|
1432
1434
|
*/
|
|
1433
|
-
bool: a(
|
|
1435
|
+
bool: a(F),
|
|
1434
1436
|
/**
|
|
1435
1437
|
Regular expression [literal](#highlight.tags.literal).
|
|
1436
1438
|
*/
|
|
1437
|
-
regexp: a(
|
|
1439
|
+
regexp: a(F),
|
|
1438
1440
|
/**
|
|
1439
1441
|
An escape [literal](#highlight.tags.literal), for example a
|
|
1440
1442
|
backslash escape in a string.
|
|
1441
1443
|
*/
|
|
1442
|
-
escape: a(
|
|
1444
|
+
escape: a(F),
|
|
1443
1445
|
/**
|
|
1444
1446
|
A color [literal](#highlight.tags.literal).
|
|
1445
1447
|
*/
|
|
1446
|
-
color: a(
|
|
1448
|
+
color: a(F),
|
|
1447
1449
|
/**
|
|
1448
1450
|
A URL [literal](#highlight.tags.literal).
|
|
1449
1451
|
*/
|
|
1450
|
-
url: a(
|
|
1452
|
+
url: a(F),
|
|
1451
1453
|
/**
|
|
1452
1454
|
A language keyword.
|
|
1453
1455
|
*/
|
|
1454
|
-
keyword:
|
|
1456
|
+
keyword: $,
|
|
1455
1457
|
/**
|
|
1456
1458
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
1457
1459
|
object.
|
|
1458
1460
|
*/
|
|
1459
|
-
self: a(
|
|
1461
|
+
self: a($),
|
|
1460
1462
|
/**
|
|
1461
1463
|
The [keyword](#highlight.tags.keyword) for null.
|
|
1462
1464
|
*/
|
|
1463
|
-
null: a(
|
|
1465
|
+
null: a($),
|
|
1464
1466
|
/**
|
|
1465
1467
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
1466
1468
|
*/
|
|
1467
|
-
atom: a(
|
|
1469
|
+
atom: a($),
|
|
1468
1470
|
/**
|
|
1469
1471
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
1470
1472
|
*/
|
|
1471
|
-
unit: a(
|
|
1473
|
+
unit: a($),
|
|
1472
1474
|
/**
|
|
1473
1475
|
A modifier [keyword](#highlight.tags.keyword).
|
|
1474
1476
|
*/
|
|
1475
|
-
modifier: a(
|
|
1477
|
+
modifier: a($),
|
|
1476
1478
|
/**
|
|
1477
1479
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
1478
1480
|
*/
|
|
1479
|
-
operatorKeyword: a(
|
|
1481
|
+
operatorKeyword: a($),
|
|
1480
1482
|
/**
|
|
1481
1483
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
1482
1484
|
*/
|
|
1483
|
-
controlKeyword: a(
|
|
1485
|
+
controlKeyword: a($),
|
|
1484
1486
|
/**
|
|
1485
1487
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
1486
1488
|
*/
|
|
1487
|
-
definitionKeyword: a(
|
|
1489
|
+
definitionKeyword: a($),
|
|
1488
1490
|
/**
|
|
1489
1491
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
1490
1492
|
interfacing with modules.
|
|
1491
1493
|
*/
|
|
1492
|
-
moduleKeyword: a(
|
|
1494
|
+
moduleKeyword: a($),
|
|
1493
1495
|
/**
|
|
1494
1496
|
An operator.
|
|
1495
1497
|
*/
|
|
1496
|
-
operator:
|
|
1498
|
+
operator: T,
|
|
1497
1499
|
/**
|
|
1498
1500
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
1499
1501
|
*/
|
|
1500
|
-
derefOperator: a(
|
|
1502
|
+
derefOperator: a(T),
|
|
1501
1503
|
/**
|
|
1502
1504
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
1503
1505
|
*/
|
|
1504
|
-
arithmeticOperator: a(
|
|
1506
|
+
arithmeticOperator: a(T),
|
|
1505
1507
|
/**
|
|
1506
1508
|
Logical [operator](#highlight.tags.operator).
|
|
1507
1509
|
*/
|
|
1508
|
-
logicOperator: a(
|
|
1510
|
+
logicOperator: a(T),
|
|
1509
1511
|
/**
|
|
1510
1512
|
Bit [operator](#highlight.tags.operator).
|
|
1511
1513
|
*/
|
|
1512
|
-
bitwiseOperator: a(
|
|
1514
|
+
bitwiseOperator: a(T),
|
|
1513
1515
|
/**
|
|
1514
1516
|
Comparison [operator](#highlight.tags.operator).
|
|
1515
1517
|
*/
|
|
1516
|
-
compareOperator: a(
|
|
1518
|
+
compareOperator: a(T),
|
|
1517
1519
|
/**
|
|
1518
1520
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
1519
1521
|
*/
|
|
1520
|
-
updateOperator: a(
|
|
1522
|
+
updateOperator: a(T),
|
|
1521
1523
|
/**
|
|
1522
1524
|
[Operator](#highlight.tags.operator) that defines something.
|
|
1523
1525
|
*/
|
|
1524
|
-
definitionOperator: a(
|
|
1526
|
+
definitionOperator: a(T),
|
|
1525
1527
|
/**
|
|
1526
1528
|
Type-related [operator](#highlight.tags.operator).
|
|
1527
1529
|
*/
|
|
1528
|
-
typeOperator: a(
|
|
1530
|
+
typeOperator: a(T),
|
|
1529
1531
|
/**
|
|
1530
1532
|
Control-flow [operator](#highlight.tags.operator).
|
|
1531
1533
|
*/
|
|
1532
|
-
controlOperator: a(
|
|
1534
|
+
controlOperator: a(T),
|
|
1533
1535
|
/**
|
|
1534
1536
|
Program or markup punctuation.
|
|
1535
1537
|
*/
|
|
1536
|
-
punctuation:
|
|
1538
|
+
punctuation: Le,
|
|
1537
1539
|
/**
|
|
1538
1540
|
[Punctuation](#highlight.tags.punctuation) that separates
|
|
1539
1541
|
things.
|
|
1540
1542
|
*/
|
|
1541
|
-
separator: a(
|
|
1543
|
+
separator: a(Le),
|
|
1542
1544
|
/**
|
|
1543
1545
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
1544
1546
|
*/
|
|
1545
|
-
bracket:
|
|
1547
|
+
bracket: de,
|
|
1546
1548
|
/**
|
|
1547
1549
|
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
1548
1550
|
tokens).
|
|
1549
1551
|
*/
|
|
1550
|
-
angleBracket: a(
|
|
1552
|
+
angleBracket: a(de),
|
|
1551
1553
|
/**
|
|
1552
1554
|
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
1553
1555
|
tokens).
|
|
1554
1556
|
*/
|
|
1555
|
-
squareBracket: a(
|
|
1557
|
+
squareBracket: a(de),
|
|
1556
1558
|
/**
|
|
1557
1559
|
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
1558
1560
|
[bracket](#highlight.tags.bracket).
|
|
1559
1561
|
*/
|
|
1560
|
-
paren: a(
|
|
1562
|
+
paren: a(de),
|
|
1561
1563
|
/**
|
|
1562
1564
|
Braces (usually `{` and `}` tokens). Subtag of
|
|
1563
1565
|
[bracket](#highlight.tags.bracket).
|
|
1564
1566
|
*/
|
|
1565
|
-
brace: a(
|
|
1567
|
+
brace: a(de),
|
|
1566
1568
|
/**
|
|
1567
1569
|
Content, for example plain text in XML or markup documents.
|
|
1568
1570
|
*/
|
|
1569
|
-
content:
|
|
1571
|
+
content: j,
|
|
1570
1572
|
/**
|
|
1571
1573
|
[Content](#highlight.tags.content) that represents a heading.
|
|
1572
1574
|
*/
|
|
1573
|
-
heading:
|
|
1575
|
+
heading: te,
|
|
1574
1576
|
/**
|
|
1575
1577
|
A level 1 [heading](#highlight.tags.heading).
|
|
1576
1578
|
*/
|
|
1577
|
-
heading1: a(
|
|
1579
|
+
heading1: a(te),
|
|
1578
1580
|
/**
|
|
1579
1581
|
A level 2 [heading](#highlight.tags.heading).
|
|
1580
1582
|
*/
|
|
1581
|
-
heading2: a(
|
|
1583
|
+
heading2: a(te),
|
|
1582
1584
|
/**
|
|
1583
1585
|
A level 3 [heading](#highlight.tags.heading).
|
|
1584
1586
|
*/
|
|
1585
|
-
heading3: a(
|
|
1587
|
+
heading3: a(te),
|
|
1586
1588
|
/**
|
|
1587
1589
|
A level 4 [heading](#highlight.tags.heading).
|
|
1588
1590
|
*/
|
|
1589
|
-
heading4: a(
|
|
1591
|
+
heading4: a(te),
|
|
1590
1592
|
/**
|
|
1591
1593
|
A level 5 [heading](#highlight.tags.heading).
|
|
1592
1594
|
*/
|
|
1593
|
-
heading5: a(
|
|
1595
|
+
heading5: a(te),
|
|
1594
1596
|
/**
|
|
1595
1597
|
A level 6 [heading](#highlight.tags.heading).
|
|
1596
1598
|
*/
|
|
1597
|
-
heading6: a(
|
|
1599
|
+
heading6: a(te),
|
|
1598
1600
|
/**
|
|
1599
1601
|
A prose separator (such as a horizontal rule).
|
|
1600
1602
|
*/
|
|
1601
|
-
contentSeparator: a(
|
|
1603
|
+
contentSeparator: a(j),
|
|
1602
1604
|
/**
|
|
1603
1605
|
[Content](#highlight.tags.content) that represents a list.
|
|
1604
1606
|
*/
|
|
1605
|
-
list: a(
|
|
1607
|
+
list: a(j),
|
|
1606
1608
|
/**
|
|
1607
1609
|
[Content](#highlight.tags.content) that represents a quote.
|
|
1608
1610
|
*/
|
|
1609
|
-
quote: a(
|
|
1611
|
+
quote: a(j),
|
|
1610
1612
|
/**
|
|
1611
1613
|
[Content](#highlight.tags.content) that is emphasized.
|
|
1612
1614
|
*/
|
|
1613
|
-
emphasis: a(
|
|
1615
|
+
emphasis: a(j),
|
|
1614
1616
|
/**
|
|
1615
1617
|
[Content](#highlight.tags.content) that is styled strong.
|
|
1616
1618
|
*/
|
|
1617
|
-
strong: a(
|
|
1619
|
+
strong: a(j),
|
|
1618
1620
|
/**
|
|
1619
1621
|
[Content](#highlight.tags.content) that is part of a link.
|
|
1620
1622
|
*/
|
|
1621
|
-
link: a(
|
|
1623
|
+
link: a(j),
|
|
1622
1624
|
/**
|
|
1623
1625
|
[Content](#highlight.tags.content) that is styled as code or
|
|
1624
1626
|
monospace.
|
|
1625
1627
|
*/
|
|
1626
|
-
monospace: a(
|
|
1628
|
+
monospace: a(j),
|
|
1627
1629
|
/**
|
|
1628
1630
|
[Content](#highlight.tags.content) that has a strike-through
|
|
1629
1631
|
style.
|
|
1630
1632
|
*/
|
|
1631
|
-
strikethrough: a(
|
|
1633
|
+
strikethrough: a(j),
|
|
1632
1634
|
/**
|
|
1633
1635
|
Inserted text in a change-tracking format.
|
|
1634
1636
|
*/
|
|
@@ -1648,22 +1650,22 @@ const a = H.define, fe = a(), W = a(), Je = a(W), We = a(W), $ = a(), ce = a($),
|
|
|
1648
1650
|
/**
|
|
1649
1651
|
Metadata or meta-instruction.
|
|
1650
1652
|
*/
|
|
1651
|
-
meta:
|
|
1653
|
+
meta: ke,
|
|
1652
1654
|
/**
|
|
1653
1655
|
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
1654
1656
|
document.
|
|
1655
1657
|
*/
|
|
1656
|
-
documentMeta: a(
|
|
1658
|
+
documentMeta: a(ke),
|
|
1657
1659
|
/**
|
|
1658
1660
|
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
1659
1661
|
attributes to a given syntactic element.
|
|
1660
1662
|
*/
|
|
1661
|
-
annotation: a(
|
|
1663
|
+
annotation: a(ke),
|
|
1662
1664
|
/**
|
|
1663
1665
|
Processing instruction or preprocessor directive. Subtag of
|
|
1664
1666
|
[meta](#highlight.tags.meta).
|
|
1665
1667
|
*/
|
|
1666
|
-
processingInstruction: a(
|
|
1668
|
+
processingInstruction: a(ke),
|
|
1667
1669
|
/**
|
|
1668
1670
|
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
1669
1671
|
given element is being defined. Expected to be used with the
|
|
@@ -1704,7 +1706,7 @@ const a = H.define, fe = a(), W = a(), Je = a(W), We = a(W), $ = a(), ce = a($),
|
|
|
1704
1706
|
*/
|
|
1705
1707
|
special: H.defineModifier()
|
|
1706
1708
|
};
|
|
1707
|
-
|
|
1709
|
+
Ht([
|
|
1708
1710
|
{ tag: l.link, class: "tok-link" },
|
|
1709
1711
|
{ tag: l.heading, class: "tok-heading" },
|
|
1710
1712
|
{ tag: l.emphasis, class: "tok-emphasis" },
|
|
@@ -1736,13 +1738,13 @@ Tt([
|
|
|
1736
1738
|
{ tag: l.invalid, class: "tok-invalid" },
|
|
1737
1739
|
{ tag: l.punctuation, class: "tok-punctuation" }
|
|
1738
1740
|
]);
|
|
1739
|
-
const
|
|
1740
|
-
red:
|
|
1741
|
-
orange:
|
|
1742
|
-
green:
|
|
1743
|
-
blue:
|
|
1741
|
+
const Vt = "#c72727", Rt = "#9b5700", Dt = "#067934", Ut = "#0063d7", Jt = {
|
|
1742
|
+
red: Vt,
|
|
1743
|
+
orange: Rt,
|
|
1744
|
+
green: Dt,
|
|
1745
|
+
blue: Ut,
|
|
1744
1746
|
invalid: "#ffffff"
|
|
1745
|
-
},
|
|
1747
|
+
}, Wt = (r) => gt.define([
|
|
1746
1748
|
{
|
|
1747
1749
|
tag: l.keyword,
|
|
1748
1750
|
color: r.red
|
|
@@ -1809,45 +1811,78 @@ const Pt = "#c72727", jt = "#9b5700", Mt = "#067934", Vt = "#0063d7", Rt = {
|
|
|
1809
1811
|
tag: l.invalid,
|
|
1810
1812
|
color: r.invalid
|
|
1811
1813
|
}
|
|
1812
|
-
]),
|
|
1813
|
-
var
|
|
1814
|
-
const
|
|
1815
|
-
[
|
|
1816
|
-
[
|
|
1817
|
-
[
|
|
1818
|
-
[
|
|
1819
|
-
},
|
|
1820
|
-
loadLang: async () =>
|
|
1821
|
-
})
|
|
1814
|
+
]), Gt = pt(Wt(Jt));
|
|
1815
|
+
var _e = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.SINGLELINE = "singleline", r.MULTILINE = "multiline", r))(_e || {}), 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]: mt,
|
|
1818
|
+
[re.XML]: bt,
|
|
1819
|
+
[re.JAVASCRIPT]: yt,
|
|
1820
|
+
[re.JAVA]: xt
|
|
1821
|
+
}, qt = (r) => ({
|
|
1822
|
+
loadLang: async () => Kt[r]
|
|
1823
|
+
});
|
|
1824
|
+
let Ge = 0;
|
|
1825
|
+
const Ft = {
|
|
1826
|
+
beforeCreate() {
|
|
1827
|
+
this.uuid = Ge.toString(), Ge += 1;
|
|
1828
|
+
}
|
|
1829
|
+
}, tt = (r) => (Fe("data-v-012ee7f3"), r = r(), Xe(), r), Xt = { key: 0 }, Zt = /* @__PURE__ */ tt(() => /* @__PURE__ */ le("path", {
|
|
1830
|
+
fill: "#00112C",
|
|
1831
|
+
"fill-rule": "evenodd",
|
|
1832
|
+
d: "M14 1.25H10C9.58579 1.25 9.25 1.58579 9.25 2C9.25 2.41421 9.58579 2.75 10 2.75H12.1893L9.46967 5.46967C9.17678 5.76256 9.17678 6.23744 9.46967 6.53033C9.76256 6.82322 10.2374 6.82322 10.5303 6.53033L13.25 3.81066V6C13.25 6.41421 13.5858 6.75 14 6.75C14.4142 6.75 14.75 6.41421 14.75 6V2C14.75 1.80806 14.6768 1.61612 14.5303 1.46967C14.4584 1.39776 14.3755 1.34351 14.2871 1.30691C14.1987 1.27024 14.1017 1.25 14 1.25Z",
|
|
1833
|
+
"clip-rule": "evenodd"
|
|
1834
|
+
}, null, -1)), Qt = /* @__PURE__ */ tt(() => /* @__PURE__ */ le("path", {
|
|
1835
|
+
fill: "#00112C",
|
|
1836
|
+
"fill-rule": "evenodd",
|
|
1837
|
+
d: "M1.25 10C1.25 9.58579 1.58579 9.25 2 9.25C2.41421 9.25 2.75 9.58579 2.75 10V12.1893L5.46967 9.46967C5.76256 9.17678 6.23744 9.17678 6.53033 9.46967C6.82322 9.76256 6.82322 10.2374 6.53033 10.5303L3.81066 13.25H6C6.41421 13.25 6.75 13.5858 6.75 14C6.75 14.4142 6.41421 14.75 6 14.75H2C1.80806 14.75 1.61612 14.6768 1.46967 14.5303C1.39776 14.4584 1.34351 14.3755 1.30691 14.2871C1.27024 14.1987 1.25 14.1017 1.25 14V10Z",
|
|
1838
|
+
"clip-rule": "evenodd"
|
|
1839
|
+
}, null, -1));
|
|
1840
|
+
function Yt(r, e, t, n, i, s) {
|
|
1841
|
+
return E(), oe("svg", qe({ role: "img" }, r.$attrs, {
|
|
1842
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1843
|
+
width: "16",
|
|
1844
|
+
height: "16",
|
|
1845
|
+
fill: "none"
|
|
1846
|
+
}), [
|
|
1847
|
+
r.$attrs["svg-title"] ? (E(), oe("title", Xt, Ae(r.$attrs["svg-title"]), 1)) : ne("", !0),
|
|
1848
|
+
Zt,
|
|
1849
|
+
Qt
|
|
1850
|
+
], 16);
|
|
1851
|
+
}
|
|
1852
|
+
const en = /* @__PURE__ */ Ze(Ft, [["render", Yt], ["__scopeId", "data-v-012ee7f3"]]), Ke = {
|
|
1822
1853
|
"en-US": {
|
|
1823
|
-
run: "Run"
|
|
1854
|
+
run: "Run",
|
|
1855
|
+
expand: "Expand"
|
|
1824
1856
|
}
|
|
1825
|
-
},
|
|
1826
|
-
i18n: { messages:
|
|
1857
|
+
}, tn = nt({
|
|
1858
|
+
i18n: { messages: Ke },
|
|
1827
1859
|
name: "bento-code-snippet",
|
|
1828
1860
|
components: {
|
|
1829
|
-
BentoTypography:
|
|
1830
|
-
BentoButton:
|
|
1831
|
-
BentoDropdown:
|
|
1832
|
-
Copy:
|
|
1861
|
+
BentoTypography: vt,
|
|
1862
|
+
BentoButton: _t,
|
|
1863
|
+
BentoDropdown: kt,
|
|
1864
|
+
Copy: At,
|
|
1865
|
+
BaseModal: Ct,
|
|
1866
|
+
BentoLoadingIndicator: Nt,
|
|
1867
|
+
ExpandIcon: en
|
|
1833
1868
|
},
|
|
1834
|
-
directives: { BentoTooltipDirective:
|
|
1869
|
+
directives: { BentoTooltipDirective: wt },
|
|
1835
1870
|
props: {
|
|
1836
1871
|
/**
|
|
1837
1872
|
* Defines the variant of code-snippet
|
|
1838
1873
|
*/
|
|
1839
1874
|
variant: {
|
|
1840
1875
|
type: String,
|
|
1841
|
-
default:
|
|
1842
|
-
validator: (r) => Object.values(
|
|
1876
|
+
default: _e.MULTILINE,
|
|
1877
|
+
validator: (r) => Object.values(_e).includes(r)
|
|
1843
1878
|
},
|
|
1844
1879
|
/**
|
|
1845
1880
|
* Language name for syntax highlighting rules
|
|
1846
1881
|
*/
|
|
1847
1882
|
lang: {
|
|
1848
1883
|
type: String,
|
|
1849
|
-
default:
|
|
1850
|
-
validator: (r) => Object.values(
|
|
1884
|
+
default: re.JSON,
|
|
1885
|
+
validator: (r) => Object.values(re).includes(r)
|
|
1851
1886
|
},
|
|
1852
1887
|
/**
|
|
1853
1888
|
* Label to show in the action-bar, describing the language
|
|
@@ -1878,6 +1913,14 @@ const Ut = {
|
|
|
1878
1913
|
type: Boolean,
|
|
1879
1914
|
default: !1
|
|
1880
1915
|
},
|
|
1916
|
+
/**
|
|
1917
|
+
* Displays a button that can expand the codeblock into a modal to easily
|
|
1918
|
+
* view large blocks of code.
|
|
1919
|
+
*/
|
|
1920
|
+
expandable: {
|
|
1921
|
+
type: Boolean,
|
|
1922
|
+
default: !1
|
|
1923
|
+
},
|
|
1881
1924
|
/**
|
|
1882
1925
|
* Displays a button that when clicked will emit a run event
|
|
1883
1926
|
* Leaves to the parent component the logic of what to do with it
|
|
@@ -1885,151 +1928,193 @@ const Ut = {
|
|
|
1885
1928
|
actionableText: {
|
|
1886
1929
|
type: String,
|
|
1887
1930
|
default: "run"
|
|
1931
|
+
},
|
|
1932
|
+
/**
|
|
1933
|
+
* Toggles the loading indicator within the action bar
|
|
1934
|
+
*/
|
|
1935
|
+
loading: {
|
|
1936
|
+
type: Boolean,
|
|
1937
|
+
default: !1
|
|
1888
1938
|
}
|
|
1889
1939
|
},
|
|
1890
|
-
emits: [
|
|
1940
|
+
emits: [ce.ACTION, ce.CHANGE],
|
|
1891
1941
|
setup(r, { emit: e }) {
|
|
1892
|
-
const { t } =
|
|
1893
|
-
}, o =
|
|
1894
|
-
"b-code-snippet--inline":
|
|
1895
|
-
"b-code-snippet--scrollable":
|
|
1896
|
-
})),
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
const
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1942
|
+
const { t } = St({ messages: Ke }), n = me(null), i = [], s = () => {
|
|
1943
|
+
}, o = ae(() => r.langLabel ?? r.lang.toUpperCase()), u = ae(() => r.variant === _e.INLINE), f = ae(() => ({
|
|
1944
|
+
"b-code-snippet--inline": u.value,
|
|
1945
|
+
"b-code-snippet--scrollable": !u.value
|
|
1946
|
+
})), x = ae(() => ({
|
|
1947
|
+
"b-code-snippet__code-area-content--editable": r.editable
|
|
1948
|
+
})), { loadLang: v } = qt(r.lang), w = $e(), A = $e(), L = new Ne(), N = new Ne(), M = new Ne(), R = me(""), D = me(0);
|
|
1949
|
+
rt(async () => {
|
|
1950
|
+
const g = await v();
|
|
1951
|
+
R.value = r.content;
|
|
1952
|
+
const b = ({ state: p }) => {
|
|
1953
|
+
R.value = p.doc.toString();
|
|
1954
|
+
}, h = [
|
|
1955
|
+
ut(),
|
|
1956
|
+
ht.of([dt]),
|
|
1957
|
+
L.of(g()),
|
|
1958
|
+
N.of(Gt),
|
|
1959
|
+
M.of(Ve.readOnly.of(!r.editable)),
|
|
1960
|
+
He.updateListener.of((p) => b(p))
|
|
1909
1961
|
];
|
|
1910
|
-
r.variant === "multiline" &&
|
|
1911
|
-
const
|
|
1962
|
+
r.variant === "multiline" && h.push([ft(), ct()]);
|
|
1963
|
+
const y = Ve.create({
|
|
1912
1964
|
doc: r.content,
|
|
1913
|
-
extensions: [...
|
|
1965
|
+
extensions: [...h]
|
|
1914
1966
|
});
|
|
1915
|
-
|
|
1916
|
-
state:
|
|
1917
|
-
parent:
|
|
1967
|
+
D.value = y.doc.length, A.value = new He({
|
|
1968
|
+
state: y,
|
|
1969
|
+
parent: w.value
|
|
1918
1970
|
});
|
|
1919
|
-
}),
|
|
1971
|
+
}), it(
|
|
1920
1972
|
() => r.content,
|
|
1921
1973
|
() => {
|
|
1922
|
-
const
|
|
1923
|
-
|
|
1974
|
+
const g = r.content.length;
|
|
1975
|
+
A.value.dispatch({
|
|
1924
1976
|
changes: {
|
|
1925
1977
|
from: 0,
|
|
1926
|
-
to:
|
|
1978
|
+
to: D.value,
|
|
1927
1979
|
insert: r.content
|
|
1928
1980
|
}
|
|
1929
|
-
}),
|
|
1981
|
+
}), D.value = g;
|
|
1930
1982
|
}
|
|
1931
1983
|
);
|
|
1932
|
-
const
|
|
1984
|
+
const U = ae(() => t(r.actionableText)), S = () => {
|
|
1985
|
+
e(ce.ACTION, R.value);
|
|
1986
|
+
};
|
|
1987
|
+
st(() => {
|
|
1988
|
+
e(ce.CHANGE, R.value);
|
|
1989
|
+
});
|
|
1990
|
+
const J = me(!1);
|
|
1933
1991
|
return {
|
|
1934
|
-
// Enums
|
|
1935
|
-
BentoTypographyElement: yt,
|
|
1936
|
-
BentoButtonVariant: mt,
|
|
1937
|
-
BentoCodeSnippetVariant: re,
|
|
1938
1992
|
// Values
|
|
1939
|
-
container: y,
|
|
1940
|
-
editor: x,
|
|
1941
|
-
currentContents: _,
|
|
1942
|
-
conditionalClasses: h,
|
|
1943
1993
|
availableLanguages: i,
|
|
1994
|
+
codeAreaContentConditionalClasses: x,
|
|
1995
|
+
conditionalClasses: f,
|
|
1996
|
+
container: w,
|
|
1997
|
+
currentContents: R,
|
|
1944
1998
|
displayedLang: o,
|
|
1999
|
+
editor: A,
|
|
1945
2000
|
selectedLanguage: n,
|
|
2001
|
+
showModal: J,
|
|
2002
|
+
isInlineVariant: u,
|
|
1946
2003
|
// Methods
|
|
1947
2004
|
handleChangeLanguage: s,
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2005
|
+
onActionClicked: S,
|
|
2006
|
+
runText: U,
|
|
2007
|
+
// Translations
|
|
2008
|
+
t
|
|
1952
2009
|
};
|
|
1953
2010
|
}
|
|
1954
2011
|
});
|
|
1955
|
-
const
|
|
2012
|
+
const nn = (r) => (Fe("data-v-c3034448"), r = r(), Xe(), r), rn = {
|
|
1956
2013
|
key: 0,
|
|
1957
2014
|
class: "b-code-snippet__action-bar"
|
|
1958
|
-
},
|
|
2015
|
+
}, sn = { class: "b-code-snippet__action-bar--start" }, on = { class: "b-code-snippet__action-bar--end" }, ln = {
|
|
1959
2016
|
key: 1,
|
|
1960
2017
|
class: "b-code-snippet__code-area"
|
|
1961
|
-
},
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
const o = ae("bento-dropdown"), h = ae("bento-typography"), f = ae("copy"), y = ae("bento-button");
|
|
1967
|
-
return ne(), he("div", {
|
|
1968
|
-
class: Qe(["b-code-snippet", r.conditionalClasses])
|
|
2018
|
+
}, an = { key: 2 }, un = /* @__PURE__ */ nn(() => /* @__PURE__ */ le("div", { class: "b-code-snippet__empty-state" }, "Nothing to show", -1));
|
|
2019
|
+
function hn(r, e, t, n, i, s) {
|
|
2020
|
+
const o = K("bento-dropdown"), u = K("bento-typography"), f = K("bento-loading-indicator"), x = K("copy"), v = K("expand-icon"), w = K("bento-button"), A = K("bento-code-snippet"), L = K("base-modal");
|
|
2021
|
+
return E(), oe("div", {
|
|
2022
|
+
class: Te(["b-code-snippet", r.conditionalClasses])
|
|
1969
2023
|
}, [
|
|
1970
|
-
r.
|
|
1971
|
-
|
|
1972
|
-
r.availableLanguages.length > 0 ? (
|
|
2024
|
+
r.isInlineVariant ? ne("", !0) : (E(), oe("section", rn, [
|
|
2025
|
+
le("div", sn, [
|
|
2026
|
+
r.availableLanguages.length > 0 ? (E(), ue(o, qe({
|
|
1973
2027
|
key: 0,
|
|
1974
2028
|
modelValue: r.selectedLanguage,
|
|
1975
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
2029
|
+
"onUpdate:modelValue": e[0] || (e[0] = (N) => r.selectedLanguage = N)
|
|
1976
2030
|
}, r.$props, {
|
|
1977
2031
|
disabled: r.availableLanguages.length === 1,
|
|
1978
2032
|
items: r.availableLanguages,
|
|
1979
2033
|
class: "b-code-snippet__language-picker",
|
|
1980
2034
|
onInput: r.handleChangeLanguage
|
|
1981
|
-
}), null, 16, ["modelValue", "disabled", "items", "onInput"])) :
|
|
1982
|
-
|
|
1983
|
-
el:
|
|
2035
|
+
}), null, 16, ["modelValue", "disabled", "items", "onInput"])) : ne("", !0),
|
|
2036
|
+
he(u, {
|
|
2037
|
+
el: "span",
|
|
1984
2038
|
stronger: ""
|
|
1985
2039
|
}, {
|
|
1986
|
-
default:
|
|
1987
|
-
je(
|
|
2040
|
+
default: fe(() => [
|
|
2041
|
+
je(Ae(r.displayedLang), 1)
|
|
1988
2042
|
]),
|
|
1989
2043
|
_: 1
|
|
1990
|
-
}
|
|
2044
|
+
})
|
|
1991
2045
|
]),
|
|
1992
|
-
|
|
1993
|
-
|
|
2046
|
+
le("div", on, [
|
|
2047
|
+
r.loading ? (E(), ue(f, { key: 0 })) : ne("", !0),
|
|
2048
|
+
he(x, {
|
|
1994
2049
|
class: "b-structured-list__icon",
|
|
1995
2050
|
text: r.currentContents
|
|
1996
2051
|
}, null, 8, ["text"]),
|
|
1997
|
-
r.
|
|
1998
|
-
key:
|
|
1999
|
-
variant:
|
|
2052
|
+
r.expandable ? (E(), ue(w, {
|
|
2053
|
+
key: 1,
|
|
2054
|
+
variant: "tertiary",
|
|
2055
|
+
condensed: "",
|
|
2056
|
+
"aria-label": r.t("expand"),
|
|
2057
|
+
onClick: e[1] || (e[1] = (N) => r.showModal = !0)
|
|
2058
|
+
}, {
|
|
2059
|
+
iconLeft: fe(() => [
|
|
2060
|
+
he(v)
|
|
2061
|
+
]),
|
|
2062
|
+
_: 1
|
|
2063
|
+
}, 8, ["aria-label"])) : ne("", !0),
|
|
2064
|
+
r.actionable ? (E(), ue(w, {
|
|
2065
|
+
key: 2,
|
|
2066
|
+
variant: "primary",
|
|
2000
2067
|
tertiary: "",
|
|
2001
2068
|
condensed: "",
|
|
2002
2069
|
onClick: r.onActionClicked
|
|
2003
2070
|
}, {
|
|
2004
|
-
iconLeft:
|
|
2005
|
-
|
|
2006
|
-
el:
|
|
2071
|
+
iconLeft: fe(() => [
|
|
2072
|
+
he(u, {
|
|
2073
|
+
el: "span",
|
|
2007
2074
|
class: "b-code-snippet__action-button"
|
|
2008
2075
|
}, {
|
|
2009
|
-
default:
|
|
2010
|
-
je(
|
|
2076
|
+
default: fe(() => [
|
|
2077
|
+
je(Ae(r.runText), 1)
|
|
2011
2078
|
]),
|
|
2012
2079
|
_: 1
|
|
2013
|
-
}
|
|
2080
|
+
})
|
|
2014
2081
|
]),
|
|
2015
2082
|
_: 1
|
|
2016
|
-
}, 8, ["
|
|
2083
|
+
}, 8, ["onClick"])) : ne("", !0)
|
|
2017
2084
|
])
|
|
2018
|
-
]))
|
|
2019
|
-
r.content ? (
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2085
|
+
])),
|
|
2086
|
+
r.content ? (E(), oe("code", ln, [
|
|
2087
|
+
le("div", {
|
|
2088
|
+
ref: "container",
|
|
2089
|
+
class: Te(["b-code-snippet__code-area-content", r.codeAreaContentConditionalClasses])
|
|
2090
|
+
}, null, 2)
|
|
2091
|
+
])) : (E(), oe("section", an, [
|
|
2092
|
+
ot(r.$slots, "empty-state", {}, () => [
|
|
2093
|
+
un
|
|
2024
2094
|
], !0)
|
|
2025
|
-
]))
|
|
2095
|
+
])),
|
|
2096
|
+
r.expandable ? (E(), ue(L, {
|
|
2097
|
+
key: 3,
|
|
2098
|
+
class: "b-code-snippet__modal",
|
|
2099
|
+
"hide-close-button": !0,
|
|
2100
|
+
"custom-padding": "0px",
|
|
2101
|
+
"is-dismissible": !0,
|
|
2102
|
+
"is-open": r.showModal,
|
|
2103
|
+
size: "large",
|
|
2104
|
+
onCloseModal: e[2] || (e[2] = (N) => r.showModal = !1)
|
|
2105
|
+
}, {
|
|
2106
|
+
content: fe(() => [
|
|
2107
|
+
he(A, lt(at({ ...r.$props, expandable: !1 })), null, 16)
|
|
2108
|
+
]),
|
|
2109
|
+
_: 1
|
|
2110
|
+
}, 8, ["is-open"])) : ne("", !0)
|
|
2026
2111
|
], 2);
|
|
2027
2112
|
}
|
|
2028
|
-
const
|
|
2113
|
+
const Bn = /* @__PURE__ */ Ze(tn, [["render", hn], ["__scopeId", "data-v-c3034448"]]);
|
|
2029
2114
|
export {
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2115
|
+
Bn as BentoCodeSnippet,
|
|
2116
|
+
ce as BentoCodeSnippetEvent,
|
|
2117
|
+
re as BentoCodeSnippetSupportedLanguage,
|
|
2118
|
+
_e as BentoCodeSnippetVariant
|
|
2034
2119
|
};
|
|
2035
2120
|
//# sourceMappingURL=code-snippet.js.map
|