@onereach/ui-components 20.1.0 → 20.1.2
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/esm/components/OrAutocompleteV3-8c6de221.js +910 -0
- package/dist/{esm-deps/components/or-editor-tabs-v3/index.js → esm/components/OrEditorTabsV3-7f1eb4be.js} +124 -34
- package/dist/esm/components/OrInlineInputV3-061441a3.js +292 -0
- package/dist/{esm-deps → esm}/components/index.js +51 -83
- package/dist/esm/components/or-autocomplete-v3/index.js +29 -0
- package/dist/{esm-deps → esm}/components/or-avatar-v3/index.js +48 -4
- package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/index.js +50 -4
- package/dist/esm/components/or-button-group-v3/index.js +92 -0
- package/dist/{esm-deps → esm}/components/or-button-v3/index.js +84 -4
- package/dist/{esm-deps → esm}/components/or-card-collection-v3/index.js +96 -87
- package/dist/{esm-deps → esm}/components/or-card-v3/index.js +13 -1
- package/dist/esm/components/or-checkbox-group-v3/index.js +116 -0
- package/dist/esm/components/or-checkbox-tree-v3/index.js +235 -0
- package/dist/{esm-deps → esm}/components/or-checkbox-v3/index.js +66 -5
- package/dist/esm/components/or-code-v3/index.js +496 -0
- package/dist/esm/components/or-combined-input-v3/index.js +123 -0
- package/dist/{esm-deps → esm}/components/or-confirm-v3/index.js +84 -40
- package/dist/{esm-deps → esm}/components/or-context-menu-v3/index.js +42 -11
- package/dist/esm/components/or-data-grid-v3/index.js +1376 -0
- package/dist/esm/components/or-date-format-v3/index.js +93 -0
- package/dist/esm/components/or-date-picker-v3/index.js +345 -0
- package/dist/esm/components/or-date-range-picker-v3/index.js +430 -0
- package/dist/esm/components/or-date-time-format-v3/index.js +100 -0
- package/dist/esm/components/or-date-time-picker-v3/index.js +1522 -0
- package/dist/{esm-deps → esm}/components/or-drawer-v3/index.js +43 -4
- package/dist/{esm-deps → esm}/components/or-drop-area-v3/index.js +84 -5
- package/dist/esm/components/or-editor-tabs-v3/index.js +31 -0
- package/dist/{esm-deps → esm}/components/or-empty-state-v3/index.js +24 -1
- package/dist/esm/components/or-error-tag-v3/index.js +53 -0
- package/dist/{esm-deps → esm}/components/or-error-v3/index.js +17 -1
- package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/index.js +70 -5
- package/dist/esm/components/or-fab-v3/index.js +114 -0
- package/dist/{esm-deps/components/or-filter-v3 → esm/components/or-filter-popover-v3}/index.js +144 -129
- package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/index.js +54 -15
- package/dist/esm/components/or-filter-v3/index.js +128 -0
- package/dist/esm/components/or-form-group-v3/index.js +111 -0
- package/dist/{esm-deps → esm}/components/or-hint-v3/index.js +17 -1
- package/dist/{esm-deps → esm}/components/or-icon-button-v3/index.js +53 -13
- package/dist/{esm-deps → esm}/components/or-icon-v3/index.js +12 -1
- package/dist/{esm-deps → esm}/components/or-indicator-v3/index.js +15 -2
- package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/index.js +14 -1
- package/dist/esm/components/or-inline-input-v3/index.js +29 -0
- package/dist/esm/components/or-inline-textarea-v3/index.js +248 -0
- package/dist/{esm-deps → esm}/components/or-input-box-v3/index.js +54 -6
- package/dist/{esm-deps/OrInput-4fcaf87c.js → esm/components/or-input-v3/index.js} +202 -3
- package/dist/{esm-deps → esm}/components/or-label-v3/index.js +24 -1
- package/dist/{esm-deps → esm}/components/or-link-v3/index.js +18 -1
- package/dist/esm/components/or-list-v3/index.js +294 -0
- package/dist/esm/components/or-loader-v3/index.js +190 -0
- package/dist/{esm-deps → esm}/components/or-menu-item-v3/index.js +61 -13
- package/dist/esm/components/or-menu-v3/index.js +127 -0
- package/dist/{esm-deps → esm}/components/or-modal-v3/index.js +62 -21
- package/dist/{esm-deps → esm}/components/or-notification-v3/index.js +47 -16
- package/dist/esm/components/or-overlay-v3/index.js +92 -0
- package/dist/esm/components/or-pagination-v3/index.js +356 -0
- package/dist/esm/components/or-popover-v3/index.js +442 -0
- package/dist/{esm-deps → esm}/components/or-progress-v3/index.js +101 -3
- package/dist/esm/components/or-radio-group-v3/index.js +116 -0
- package/dist/{esm-deps → esm}/components/or-radio-v3/index.js +70 -5
- package/dist/{esm-deps → esm}/components/or-range-slider-v3/index.js +120 -11
- package/dist/{esm-deps → esm}/components/or-rating-v3/index.js +60 -5
- package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/index.js +56 -13
- package/dist/esm/components/or-rich-text-editor-v3/index.js +1250 -0
- package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/index.js +58 -9
- package/dist/{esm-deps → esm}/components/or-search-v3/index.js +38 -22
- package/dist/{esm-deps → esm}/components/or-segmented-control-v3/index.js +51 -6
- package/dist/{esm-deps → esm}/components/or-select-v3/index.js +293 -99
- package/dist/{esm-deps → esm}/components/or-sidebar-v3/index.js +58 -52
- package/dist/esm/components/or-skeleton-v3/index.js +250 -0
- package/dist/{esm-deps → esm}/components/or-slider-v3/index.js +103 -11
- package/dist/esm/components/or-sorting-v3/index.js +137 -0
- package/dist/{esm-deps → esm}/components/or-status-v3/index.js +18 -3
- package/dist/{esm-deps → esm}/components/or-switch-v3/index.js +77 -6
- package/dist/{esm-deps → esm}/components/or-tab-v3/index.js +18 -1
- package/dist/{esm-deps → esm}/components/or-tabs-v3/index.js +94 -42
- package/dist/{esm-deps → esm}/components/or-tag-input-v3/index.js +142 -22
- package/dist/{esm-deps → esm}/components/or-tag-v3/index.js +51 -16
- package/dist/esm/components/or-tags-v3/index.js +252 -0
- package/dist/esm/components/or-teleport-v3/index.js +27 -0
- package/dist/{esm-deps → esm}/components/or-text-v3/index.js +17 -1
- package/dist/esm/components/or-textarea-v3/index.js +265 -0
- package/dist/esm/components/or-time-format-v3/index.js +93 -0
- package/dist/esm/components/or-time-picker-v3/index.js +340 -0
- package/dist/esm/components/or-time-range-picker-v3/index.js +415 -0
- package/dist/{esm-deps → esm}/components/or-toast-v3/index.js +61 -21
- package/dist/{esm-deps → esm}/components/or-tooltip-v3/index.js +53 -10
- package/dist/{esm-deps → esm}/components/or-tree-v3/index.js +55 -8
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/index.js +129 -0
- package/package.json +11 -12
- package/src/constants.ts +1 -1
- package/dist/esm-deps/OrButton-91f48227.js +0 -39
- package/dist/esm-deps/OrCheckbox-cfd587f1.js +0 -43
- package/dist/esm-deps/OrDateTimePicker.vue_vue_type_script_lang-92237043.js +0 -275
- package/dist/esm-deps/OrDateTimePickerMonthSelect-8ff9ca1b.js +0 -507
- package/dist/esm-deps/OrDateTimePickerPopoverHeader-b4f2d13e.js +0 -162
- package/dist/esm-deps/OrDateTimePickerTimeSelect-92ce3cf8.js +0 -382
- package/dist/esm-deps/OrFormGroup-081248a1.js +0 -38
- package/dist/esm-deps/OrHint-fcdf591c.js +0 -35
- package/dist/esm-deps/OrIcon-cd8db2b5.js +0 -13
- package/dist/esm-deps/OrIconButton-b7d4175c.js +0 -34
- package/dist/esm-deps/OrIndicator-c4efdee9.js +0 -16
- package/dist/esm-deps/OrInlineInputBox-d9dc104a.js +0 -15
- package/dist/esm-deps/OrInputBox-e79531c2.js +0 -34
- package/dist/esm-deps/OrLabel-d50a3ebb.js +0 -25
- package/dist/esm-deps/OrLoader-4e331586.js +0 -75
- package/dist/esm-deps/OrMenu-13beee12.js +0 -26
- package/dist/esm-deps/OrMenuItem-c40a275b.js +0 -44
- package/dist/esm-deps/OrModal-b06077ec.js +0 -37
- package/dist/esm-deps/OrOverlay-d67e7093.js +0 -19
- package/dist/esm-deps/OrPopover-bd078650.js +0 -38
- package/dist/esm-deps/OrSearch-8e817fad.js +0 -25
- package/dist/esm-deps/OrSkeletonText.vue_vue_type_script_lang-890c25e3.js +0 -104
- package/dist/esm-deps/OrTagInput-4439b294.js +0 -133
- package/dist/esm-deps/OrTags-995e4846.js +0 -73
- package/dist/esm-deps/OrTooltip-62181b78.js +0 -32
- package/dist/esm-deps/components/or-autocomplete-v3/index.js +0 -383
- package/dist/esm-deps/components/or-button-group-v3/index.js +0 -55
- package/dist/esm-deps/components/or-checkbox-group-v3/index.js +0 -155
- package/dist/esm-deps/components/or-checkbox-tree-v3/index.js +0 -148
- package/dist/esm-deps/components/or-code-v3/index.js +0 -1413
- package/dist/esm-deps/components/or-combined-input-v3/index.js +0 -83
- package/dist/esm-deps/components/or-data-grid-v3/index.js +0 -2111
- package/dist/esm-deps/components/or-date-format-v3/index.js +0 -55
- package/dist/esm-deps/components/or-date-picker-v3/index.js +0 -232
- package/dist/esm-deps/components/or-date-range-picker-v3/index.js +0 -278
- package/dist/esm-deps/components/or-date-time-format-v3/index.js +0 -63
- package/dist/esm-deps/components/or-date-time-picker-v3/index.js +0 -48
- package/dist/esm-deps/components/or-error-tag-v3/index.js +0 -37
- package/dist/esm-deps/components/or-fab-v3/index.js +0 -64
- package/dist/esm-deps/components/or-filter-popover-v3/index.js +0 -146
- package/dist/esm-deps/components/or-form-group-v3/index.js +0 -77
- package/dist/esm-deps/components/or-inline-input-v3/index.js +0 -220
- package/dist/esm-deps/components/or-inline-textarea-v3/index.js +0 -174
- package/dist/esm-deps/components/or-input-v3/index.js +0 -206
- package/dist/esm-deps/components/or-list-v3/index.js +0 -3307
- package/dist/esm-deps/components/or-loader-v3/index.js +0 -117
- package/dist/esm-deps/components/or-menu-v3/index.js +0 -90
- package/dist/esm-deps/components/or-overlay-v3/index.js +0 -63
- package/dist/esm-deps/components/or-pagination-v3/index.js +0 -232
- package/dist/esm-deps/components/or-popover-v3/index.js +0 -1010
- package/dist/esm-deps/components/or-radio-group-v3/index.js +0 -115
- package/dist/esm-deps/components/or-rich-text-editor-v3/index.js +0 -14305
- package/dist/esm-deps/components/or-skeleton-v3/index.js +0 -91
- package/dist/esm-deps/components/or-sorting-v3/index.js +0 -92
- package/dist/esm-deps/components/or-tags-v3/index.js +0 -210
- package/dist/esm-deps/components/or-teleport-v3/index.js +0 -17
- package/dist/esm-deps/components/or-textarea-v3/index.js +0 -174
- package/dist/esm-deps/components/or-time-format-v3/index.js +0 -55
- package/dist/esm-deps/components/or-time-picker-v3/index.js +0 -226
- package/dist/esm-deps/components/or-time-range-picker-v3/index.js +0 -265
- package/dist/esm-deps/constants-57e8b5da.js +0 -6
- package/dist/esm-deps/constants.d.ts +0 -2
- package/dist/esm-deps/dom-CwV-xS38-5babad01.js +0 -72
- package/dist/esm-deps/dropdown-open-k6cFnrqA-b1726667.js +0 -17
- package/dist/esm-deps/extractCssVarName-IHa2pGlF-614fb8d2.js +0 -85
- package/dist/esm-deps/formatDate-0536a8d5.js +0 -11
- package/dist/esm-deps/formatTime-6d5fedb0.js +0 -14
- package/dist/esm-deps/getNextMonthDate-25fe3c1a.js +0 -6
- package/dist/esm-deps/index-a90d6354.js +0 -19754
- package/dist/esm-deps/index-f0bbebaa.js +0 -407
- package/dist/esm-deps/index.js +0 -2658
- package/dist/esm-deps/props-bba3dca8.js +0 -21
- package/dist/esm-deps/searchItemsByLabel-BhinsABA-b8049fb6.js +0 -11
- package/dist/esm-deps/style-inject.es-87955792.js +0 -26
- package/dist/esm-deps/types-75a1cc13.js +0 -14
- package/dist/esm-deps/types-98e9a758.js +0 -18
- package/dist/esm-deps/useValidationAttributes-DxhcSj_h-3380c3cf.js +0 -4004
- /package/dist/{esm-deps → esm}/components/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/OrAutocomplete.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-autocomplete-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-avatar-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/hooks/useBottomSheetSwipeState.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-bottom-sheet-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-group-v3/OrButtonGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-group-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/OrButton.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-button-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-collection-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/OrCard.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-card-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-tree-v3/utils/extractChildrenValues.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/OrCheckbox.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-checkbox-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/OrCode.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/libs.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/partials/OrCodeControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-code-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-combined-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-combined-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/OrConfirm.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-confirm-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-context-menu-v3/OrContextMenu.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-context-menu-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/OrDataGrid.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-footer/OrDataGridFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-header/OrDataGridHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table/OrDataGridTable.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content/OrDataGridTableContent.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-row/OrDataGridTableContentRow.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-content-row/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer/OrDataGridTableFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/OrDataGridTableFooterRow.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header/OrDataGridTableHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-row/OrDataGridTableHeaderRow.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-header-row/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-toolbar/OrDataGridToolbar.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/partials/or-data-grid-toolbar/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-data-grid-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-format-v3/OrDateFormat.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-format-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-format-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-picker-v3/OrDatePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-range-picker-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-format-v3/OrDateTimeFormat.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-format-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-format-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatMobileDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatMobileTime.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/formatTime.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/getCurrentDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/getNextMonthDate.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-date-time-picker-v3/utils/scrollToElementWithinContainer.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/OrDrawer.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drawer-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/OrDropArea.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/utils/approximateFileSize.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-drop-area-v3/utils/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/OrEditorTabs.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/partials/or-editor-tabs-item/OrEditorTabsItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/partials/or-editor-tabs-item/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-editor-tabs-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-empty-state-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-tag-v3/OrErrorTag.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-tag-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-tag-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-v3/OrError.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-error-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-expansion-panel-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/OrFab.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-fab-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-popover-v3/OrFilterPopover.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-popover-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-popover-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/OrFilterTrigger.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-trigger-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-v3/OrFilter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-filter-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/OrFormGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-form-group-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-hint-v3/OrHint.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-hint-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-hint-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/OrIconButton.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-button-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/OrIcon.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-icon-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/OrIndicator.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-indicator-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-box-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-input-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-inline-textarea-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/OrInputBox.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/partials/or-input-box-addon/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-box-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/OrInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-input-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/OrLabel.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-label-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/OrLink.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-link-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/OrList.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/partials/or-list-item/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-list-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/OrLoader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-loader-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-item-v3/OrMenuItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-item-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-item-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-v3/OrMenu.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-menu-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/OrModal.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-content/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/partials/or-modal-header/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-modal-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/OrNotification.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-notification-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/OrOverlay.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-overlay-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/OrPagination.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-pagination-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/OrPopover.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/hooks/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/hooks/useFloating.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/utils/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-popover-v3/utils/isPrevented.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/OrProgress.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-progress-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-group-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-group-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/OrRadio.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-radio-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/OrRangeSlider.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-range-slider-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/OrRating.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rating-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/OrResizeablePanel.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-resizeable-panel-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/OrRichTooltip.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-rich-tooltip-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-search-v3/OrSearch.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-search-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-search-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/constants.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/partials/or-segmented-control-item/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-segmented-control-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/OrSelect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-control-input/OrSelectControlInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-control-input/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-control-input/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-multiple-control/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-multiple-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-placeholder/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-placeholder/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-single-control/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/partials/or-select-single-control/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-select-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/OrSidebar.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sidebar-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-circle-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-rect-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/or-skeleton-text-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-skeleton-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/OrSlider.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-slider-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/OrSorting.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-sorting-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/OrStatus.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-status-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/OrSwitch.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-switch-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tab-v3/OrTab.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tab-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tab-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/OrTabs.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tabs-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/OrTagInput.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-input-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/OrTag.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tag-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/OrTags.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tags-v3/utils/castToTag.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-teleport-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-text-v3/OrText.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-text-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-text-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-textarea-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-format-v3/OrTimeFormat.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-format-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-format-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-picker-v3/OrTimePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-time-range-picker-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/OrToast.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/Timer.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/useQueue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/useToast.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/composable/useToastEventBus.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/or-toast-container-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/props.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-toast-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tooltip-v3/OrTooltip.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tooltip-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tooltip-v3/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/OrTree.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/index.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/partials/or-tree-node/styles.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/partials/or-tree-node/utils.d.ts +0 -0
- /package/dist/{esm-deps → esm}/components/or-tree-v3/types.d.ts +0 -0
- /package/dist/{esm-deps → esm}/index.d.ts +0 -0
|
@@ -1,1413 +0,0 @@
|
|
|
1
|
-
import { v as basicSetup, k as keymap, w as indentWithTab, E as EditorView, b as EditorState, C as Compartment, L as LanguageSupport, x as LRLanguage, m as indentNodeProp, y as continuedIndent, i as foldNodeProp, z as foldInside, s as syntaxTree, A as typescriptLanguage, B as jsxLanguage, D as tsxLanguage, F as javascriptLanguage, j as javascript, h as EditorSelection, G as bracketMatchingHandle } from '../../index-a90d6354.js';
|
|
2
|
-
export { a as lintGutter, l as linter } from '../../index-a90d6354.js';
|
|
3
|
-
import { parser } from '@lezer/json';
|
|
4
|
-
import { configureNesting, parser as parser$2 } from '@lezer/html';
|
|
5
|
-
import { parser as parser$1 } from '@lezer/css';
|
|
6
|
-
import { IterMode, NodeWeakMap } from '@lezer/common';
|
|
7
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, renderSlot, createTextVNode, toDisplayString, createElementVNode, withDirectives, createBlock, vShow, createCommentVNode, reactive, toRef, watch, onMounted, onUnmounted } from 'vue';
|
|
8
|
-
import { K, _, i as ie, r as re, u as ue } from '../../useValidationAttributes-DxhcSj_h-3380c3cf.js';
|
|
9
|
-
import '../../OrHint-fcdf591c.js';
|
|
10
|
-
import { OrErrorV3 as script$2 } from '../or-error-v3/index.js';
|
|
11
|
-
import { OrHintV3 as script$3 } from '../or-hint-v3/index.js';
|
|
12
|
-
import '../../OrInputBox-e79531c2.js';
|
|
13
|
-
import { OrInputBoxV3 as script$4 } from '../or-input-box-v3/index.js';
|
|
14
|
-
import '../../OrLabel-d50a3ebb.js';
|
|
15
|
-
import { OrLabelV3 as script$5 } from '../or-label-v3/index.js';
|
|
16
|
-
import '../../OrModal-b06077ec.js';
|
|
17
|
-
import { OrModalV3 as script$6 } from '../or-modal-v3/index.js';
|
|
18
|
-
import '../../OrIconButton-b7d4175c.js';
|
|
19
|
-
import { OrIconButtonV3 as script$7 } from '../or-icon-button-v3/index.js';
|
|
20
|
-
import '@codemirror/search';
|
|
21
|
-
import '@codemirror/autocomplete';
|
|
22
|
-
import 'crelt';
|
|
23
|
-
import '@lezer/javascript';
|
|
24
|
-
import 'style-mod';
|
|
25
|
-
import 'w3c-keyname';
|
|
26
|
-
import '../../dom-CwV-xS38-5babad01.js';
|
|
27
|
-
import 'lodash/get';
|
|
28
|
-
import 'lodash/isElement';
|
|
29
|
-
import '@vueuse/core';
|
|
30
|
-
import '../../types-98e9a758.js';
|
|
31
|
-
import '../../OrOverlay-d67e7093.js';
|
|
32
|
-
import '../or-overlay-v3/index.js';
|
|
33
|
-
import '../or-teleport-v3/index.js';
|
|
34
|
-
import '../../constants-57e8b5da.js';
|
|
35
|
-
import '../../OrIcon-cd8db2b5.js';
|
|
36
|
-
import '../or-icon-v3/index.js';
|
|
37
|
-
import '../../OrTooltip-62181b78.js';
|
|
38
|
-
import '../or-tooltip-v3/index.js';
|
|
39
|
-
import '../or-popover-v3/index.js';
|
|
40
|
-
import '../../extractCssVarName-IHa2pGlF-614fb8d2.js';
|
|
41
|
-
import '@floating-ui/core';
|
|
42
|
-
import '@floating-ui/utils';
|
|
43
|
-
import '@floating-ui/utils/dom';
|
|
44
|
-
import '../or-bottom-sheet-v3/index.js';
|
|
45
|
-
import '../../OrPopover-bd078650.js';
|
|
46
|
-
|
|
47
|
-
const Code = [
|
|
48
|
-
// Layout
|
|
49
|
-
'layout-column',
|
|
50
|
-
// Spacing
|
|
51
|
-
'gap-xs'];
|
|
52
|
-
const CodeControlRoot = [
|
|
53
|
-
// Layout
|
|
54
|
-
'layout-column',
|
|
55
|
-
// Sizing
|
|
56
|
-
'h-full',
|
|
57
|
-
// Spacing
|
|
58
|
-
'gap-xs'];
|
|
59
|
-
const CodeControl = [
|
|
60
|
-
// Layout
|
|
61
|
-
'grid',
|
|
62
|
-
// Box
|
|
63
|
-
'w-full', 'h-full',
|
|
64
|
-
// Spacing
|
|
65
|
-
'!mx-0', '!my-0',
|
|
66
|
-
// Theme
|
|
67
|
-
'theme-background-default', 'dark:theme-background-default-dark',
|
|
68
|
-
// todo: https://onereach.atlassian.net/browse/UI-580
|
|
69
|
-
'dark:invert dark:hue-rotate-180'];
|
|
70
|
-
const CodeModal = [
|
|
71
|
-
// Sizing
|
|
72
|
-
'!h-full'];
|
|
73
|
-
|
|
74
|
-
var script$1 = defineComponent({
|
|
75
|
-
name: 'OrCodeControl',
|
|
76
|
-
components: {
|
|
77
|
-
OrError: script$2,
|
|
78
|
-
OrHint: script$3,
|
|
79
|
-
OrInputBox: script$4,
|
|
80
|
-
OrLabel: script$5
|
|
81
|
-
},
|
|
82
|
-
props: {
|
|
83
|
-
error: {
|
|
84
|
-
type: [String, Boolean],
|
|
85
|
-
default: undefined
|
|
86
|
-
},
|
|
87
|
-
required: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: false
|
|
90
|
-
},
|
|
91
|
-
controlId: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: undefined
|
|
94
|
-
},
|
|
95
|
-
label: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: undefined
|
|
98
|
-
},
|
|
99
|
-
readonly: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default: false
|
|
102
|
-
},
|
|
103
|
-
disabled: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: false
|
|
106
|
-
},
|
|
107
|
-
hint: {
|
|
108
|
-
type: String,
|
|
109
|
-
default: undefined
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
expose: ['root', 'control', 'focus', 'blur'],
|
|
113
|
-
setup() {
|
|
114
|
-
// Refs
|
|
115
|
-
const root = ref();
|
|
116
|
-
const control = ref();
|
|
117
|
-
// Methods
|
|
118
|
-
function focus() {
|
|
119
|
-
var _a;
|
|
120
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
121
|
-
}
|
|
122
|
-
function blur() {
|
|
123
|
-
var _a;
|
|
124
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
125
|
-
}
|
|
126
|
-
// Styles
|
|
127
|
-
const rootStyles = computed(() => ['or-code-control-v3', ...CodeControlRoot]);
|
|
128
|
-
const controlStyles = computed(() => [...CodeControl]);
|
|
129
|
-
return {
|
|
130
|
-
root,
|
|
131
|
-
control,
|
|
132
|
-
rootStyles,
|
|
133
|
-
controlStyles,
|
|
134
|
-
focus,
|
|
135
|
-
blur
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
141
|
-
const _component_OrLabel = resolveComponent("OrLabel");
|
|
142
|
-
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
143
|
-
const _component_OrHint = resolveComponent("OrHint");
|
|
144
|
-
const _component_OrError = resolveComponent("OrError");
|
|
145
|
-
return openBlock(), createElementBlock("div", {
|
|
146
|
-
ref: 'root',
|
|
147
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
148
|
-
}, [createVNode(_component_OrLabel, {
|
|
149
|
-
"control-id": _ctx.controlId,
|
|
150
|
-
variant: 'input',
|
|
151
|
-
required: _ctx.required,
|
|
152
|
-
disabled: _ctx.disabled
|
|
153
|
-
}, {
|
|
154
|
-
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
155
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
|
|
156
|
-
_: 3 /* FORWARDED */
|
|
157
|
-
}, 8 /* PROPS */, ["control-id", "required", "disabled"]), createVNode(_component_OrInputBox, {
|
|
158
|
-
class: normalizeClass(['grow']),
|
|
159
|
-
size: 'm',
|
|
160
|
-
invalid: !!_ctx.error || !!_ctx.$slots.error,
|
|
161
|
-
readonly: _ctx.readonly,
|
|
162
|
-
disabled: _ctx.disabled
|
|
163
|
-
}, {
|
|
164
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
165
|
-
ref: 'control',
|
|
166
|
-
class: normalizeClass(_ctx.controlStyles)
|
|
167
|
-
}, null, 2 /* CLASS */)]),
|
|
168
|
-
_: 1 /* STABLE */
|
|
169
|
-
}, 8 /* PROPS */, ["invalid", "readonly", "disabled"]), _ctx.$slots.hint || _ctx.hint ? withDirectives((openBlock(), createBlock(_component_OrHint, {
|
|
170
|
-
key: 0,
|
|
171
|
-
disabled: _ctx.disabled
|
|
172
|
-
}, {
|
|
173
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "hint", {}, () => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)])]),
|
|
174
|
-
_: 3 /* FORWARDED */
|
|
175
|
-
}, 8 /* PROPS */, ["disabled"])), [[vShow, !_ctx.error]]) : createCommentVNode("v-if", true), withDirectives(createVNode(_component_OrError, {
|
|
176
|
-
disabled: _ctx.disabled
|
|
177
|
-
}, {
|
|
178
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "error", {}, () => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)])]),
|
|
179
|
-
_: 3 /* FORWARDED */
|
|
180
|
-
}, 8 /* PROPS */, ["disabled"]), [[vShow, typeof _ctx.error === 'string' && _ctx.error.length > 0 || _ctx.$slots.error]])], 2 /* CLASS */);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
script$1.render = render;
|
|
184
|
-
script$1.__file = "src/components/or-code-v3/partials/OrCodeControl.vue";
|
|
185
|
-
|
|
186
|
-
var CodeLanguage;
|
|
187
|
-
(function (CodeLanguage) {
|
|
188
|
-
CodeLanguage["HTML"] = "html";
|
|
189
|
-
CodeLanguage["CSS"] = "css";
|
|
190
|
-
CodeLanguage["JS"] = "js";
|
|
191
|
-
CodeLanguage["TS"] = "ts";
|
|
192
|
-
CodeLanguage["JSON"] = "json";
|
|
193
|
-
CodeLanguage["MD"] = "md";
|
|
194
|
-
})(CodeLanguage || (CodeLanguage = {}));
|
|
195
|
-
|
|
196
|
-
var script = defineComponent({
|
|
197
|
-
name: 'OrCode',
|
|
198
|
-
components: {
|
|
199
|
-
OrModal: script$6,
|
|
200
|
-
OrCodeControl: script$1,
|
|
201
|
-
OrIconButton: script$7
|
|
202
|
-
},
|
|
203
|
-
model: {
|
|
204
|
-
prop: 'modelValue',
|
|
205
|
-
event: 'update:modelValue'
|
|
206
|
-
},
|
|
207
|
-
props: {
|
|
208
|
-
modelValue: {
|
|
209
|
-
type: String,
|
|
210
|
-
default: undefined
|
|
211
|
-
},
|
|
212
|
-
language: {
|
|
213
|
-
type: String,
|
|
214
|
-
default: () => CodeLanguage.JS
|
|
215
|
-
},
|
|
216
|
-
extensions: {
|
|
217
|
-
type: Array,
|
|
218
|
-
default: () => []
|
|
219
|
-
},
|
|
220
|
-
label: {
|
|
221
|
-
type: String,
|
|
222
|
-
default: undefined
|
|
223
|
-
},
|
|
224
|
-
hint: {
|
|
225
|
-
type: String,
|
|
226
|
-
default: undefined
|
|
227
|
-
},
|
|
228
|
-
error: {
|
|
229
|
-
type: [String, Boolean],
|
|
230
|
-
default: undefined
|
|
231
|
-
},
|
|
232
|
-
required: {
|
|
233
|
-
type: Boolean,
|
|
234
|
-
default: false
|
|
235
|
-
},
|
|
236
|
-
readonly: {
|
|
237
|
-
type: Boolean,
|
|
238
|
-
default: false
|
|
239
|
-
},
|
|
240
|
-
disabled: {
|
|
241
|
-
type: Boolean,
|
|
242
|
-
default: false
|
|
243
|
-
},
|
|
244
|
-
// todo: review flag prop, seems better to set 'false' default value
|
|
245
|
-
enableFullscreen: {
|
|
246
|
-
type: Boolean,
|
|
247
|
-
default: true
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
251
|
-
expose: ['root', 'editorView', 'control', 'fullscreenControl', 'modal', 'focus', 'blur', 'openFullscreen'],
|
|
252
|
-
setup(props, context) {
|
|
253
|
-
// Refs
|
|
254
|
-
const root = ref();
|
|
255
|
-
const control = ref();
|
|
256
|
-
const fullscreenControl = ref();
|
|
257
|
-
const modal = ref();
|
|
258
|
-
// Styles
|
|
259
|
-
const rootStyles = computed(() => ['or-code-v3', ...Code]);
|
|
260
|
-
const controlStyles = computed(() => [...CodeControl]);
|
|
261
|
-
const modalStyles = computed(() => [...CodeModal]);
|
|
262
|
-
const addedExtensionCompartment = new Compartment();
|
|
263
|
-
const languageExtensionCompartment = new Compartment();
|
|
264
|
-
const readonlyExtensionCompartment = new Compartment();
|
|
265
|
-
const disabledExtensionCompartment = new Compartment();
|
|
266
|
-
// State
|
|
267
|
-
const controlAttributes = reactive({
|
|
268
|
-
id: K(),
|
|
269
|
-
..._(),
|
|
270
|
-
...ie()
|
|
271
|
-
});
|
|
272
|
-
const proxyModelValue = re(toRef(props, 'modelValue'), context.emit);
|
|
273
|
-
const getLanguageExtension = async language => {
|
|
274
|
-
switch (language) {
|
|
275
|
-
case CodeLanguage.HTML:
|
|
276
|
-
return (await Promise.resolve().then(function () { return index; })).html();
|
|
277
|
-
case CodeLanguage.CSS:
|
|
278
|
-
return (await Promise.resolve().then(function () { return index$1; })).css();
|
|
279
|
-
case CodeLanguage.JS:
|
|
280
|
-
return (await import('../../index-a90d6354.js').then(function (n) { return n.I; })).javascript();
|
|
281
|
-
case CodeLanguage.TS:
|
|
282
|
-
return (await import('../../index-a90d6354.js').then(function (n) { return n.I; })).javascript({
|
|
283
|
-
typescript: true
|
|
284
|
-
});
|
|
285
|
-
case CodeLanguage.JSON:
|
|
286
|
-
return (await Promise.resolve().then(function () { return index$2; })).json();
|
|
287
|
-
case CodeLanguage.MD:
|
|
288
|
-
return (await import('../../index-f0bbebaa.js')).markdown();
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
// Methods
|
|
292
|
-
function focus() {
|
|
293
|
-
var _a, _b;
|
|
294
|
-
(_b = (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
295
|
-
}
|
|
296
|
-
function blur() {
|
|
297
|
-
var _a, _b;
|
|
298
|
-
(_b = (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
299
|
-
}
|
|
300
|
-
function openFullscreen() {
|
|
301
|
-
var _a, _b;
|
|
302
|
-
(_b = (_a = modal.value) === null || _a === void 0 ? void 0 : _a.open) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
303
|
-
}
|
|
304
|
-
// #region Codemirror
|
|
305
|
-
const theme = ue();
|
|
306
|
-
const defaultExtensions = [basicSetup, keymap.of([indentWithTab]), EditorView.domEventHandlers({
|
|
307
|
-
input: event => {
|
|
308
|
-
context.emit('input', event);
|
|
309
|
-
},
|
|
310
|
-
keydown: event => {
|
|
311
|
-
context.emit('keydown', event);
|
|
312
|
-
},
|
|
313
|
-
keyup: event => {
|
|
314
|
-
context.emit('keyup', event);
|
|
315
|
-
},
|
|
316
|
-
focus: event => {
|
|
317
|
-
context.emit('focus', event);
|
|
318
|
-
},
|
|
319
|
-
blur: event => {
|
|
320
|
-
context.emit('blur', event);
|
|
321
|
-
}
|
|
322
|
-
}), EditorView.theme({
|
|
323
|
-
'&': {
|
|
324
|
-
overflow: 'hidden',
|
|
325
|
-
color: theme.textColor['on-background'],
|
|
326
|
-
backgroundColor: theme.backgroundColor['background']
|
|
327
|
-
},
|
|
328
|
-
'&.cm-focused': {
|
|
329
|
-
outline: 'none'
|
|
330
|
-
},
|
|
331
|
-
'.cm-scroller': {
|
|
332
|
-
fontFamily: theme.fontFamily['caption'],
|
|
333
|
-
fontWeight: theme.fontWeight['caption'],
|
|
334
|
-
fontSize: theme.fontSize['caption'],
|
|
335
|
-
lineHeight: theme.lineHeight['caption']
|
|
336
|
-
},
|
|
337
|
-
'.cm-gutters': {
|
|
338
|
-
color: theme.textColor['on-background'],
|
|
339
|
-
backgroundColor: theme.backgroundColor['primary-opacity-0-12'],
|
|
340
|
-
borderColor: theme.borderColor['outline'],
|
|
341
|
-
backdropFilter: 'blur(2px)'
|
|
342
|
-
},
|
|
343
|
-
'.cm-activeLineGutter, .cm-activeLine': {
|
|
344
|
-
backgroundColor: theme.backgroundColor['primary-opacity-0-08']
|
|
345
|
-
}
|
|
346
|
-
})];
|
|
347
|
-
const state = EditorState.create({
|
|
348
|
-
doc: proxyModelValue.value,
|
|
349
|
-
extensions: [...defaultExtensions, languageExtensionCompartment.of([]), addedExtensionCompartment.of(props.extensions), readonlyExtensionCompartment.of([EditorState.readOnly.of(props.readonly)]), disabledExtensionCompartment.of([EditorView.editable.of(!props.disabled)])]
|
|
350
|
-
});
|
|
351
|
-
const editorView = new EditorView({
|
|
352
|
-
state,
|
|
353
|
-
dispatch: transaction => {
|
|
354
|
-
editorView.update([transaction]);
|
|
355
|
-
if (transaction.docChanged) {
|
|
356
|
-
proxyModelValue.value = String(editorView.state.doc);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
watch(proxyModelValue, value => {
|
|
361
|
-
if (editorView.composing) return;
|
|
362
|
-
if (editorView.state.doc.toString() === value) return;
|
|
363
|
-
const modelValue = value !== null && value !== void 0 ? value : '';
|
|
364
|
-
const {
|
|
365
|
-
selection
|
|
366
|
-
} = editorView.state;
|
|
367
|
-
editorView.dispatch({
|
|
368
|
-
changes: {
|
|
369
|
-
from: 0,
|
|
370
|
-
to: editorView.state.doc.length,
|
|
371
|
-
insert: modelValue
|
|
372
|
-
},
|
|
373
|
-
selection: selection.ranges.some(range => range.to > modelValue.length) ? {
|
|
374
|
-
anchor: modelValue.length
|
|
375
|
-
} : selection
|
|
376
|
-
});
|
|
377
|
-
});
|
|
378
|
-
watch([() => props.extensions, () => props.language, () => props.readonly, () => props.disabled], async ([extensions, language, readonly, disabled], [, prevLanguage, pevReadonly, pevDisabled]) => {
|
|
379
|
-
let effects = [];
|
|
380
|
-
if (readonly !== pevReadonly) {
|
|
381
|
-
effects.push(readonlyExtensionCompartment.reconfigure(EditorState.readOnly.of(readonly)));
|
|
382
|
-
}
|
|
383
|
-
if (disabled !== pevDisabled) {
|
|
384
|
-
effects.push(disabledExtensionCompartment.reconfigure(EditorView.editable.of(!disabled)));
|
|
385
|
-
}
|
|
386
|
-
if (language !== prevLanguage) {
|
|
387
|
-
const languageExt = await getLanguageExtension(language);
|
|
388
|
-
effects.push(languageExtensionCompartment.reconfigure([languageExt]));
|
|
389
|
-
}
|
|
390
|
-
effects.push(addedExtensionCompartment.reconfigure(extensions));
|
|
391
|
-
editorView.dispatch({
|
|
392
|
-
effects
|
|
393
|
-
});
|
|
394
|
-
}, {
|
|
395
|
-
immediate: true
|
|
396
|
-
});
|
|
397
|
-
// #endregion
|
|
398
|
-
// Effects
|
|
399
|
-
watch(() => {
|
|
400
|
-
var _a;
|
|
401
|
-
return (_a = modal.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
402
|
-
}, value => {
|
|
403
|
-
setTimeout(() => {
|
|
404
|
-
var _a, _b, _c, _d;
|
|
405
|
-
if (value === 'open') {
|
|
406
|
-
(_b = (_a = fullscreenControl.value) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.append(editorView.dom);
|
|
407
|
-
} else {
|
|
408
|
-
(_d = (_c = control.value) === null || _c === void 0 ? void 0 : _c.control) === null || _d === void 0 ? void 0 : _d.append(editorView.dom);
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
// Lifecycle
|
|
413
|
-
onMounted(() => {
|
|
414
|
-
var _a, _b;
|
|
415
|
-
(_b = (_a = control.value) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.append(editorView.dom);
|
|
416
|
-
});
|
|
417
|
-
onUnmounted(() => {
|
|
418
|
-
editorView.destroy();
|
|
419
|
-
});
|
|
420
|
-
return {
|
|
421
|
-
root,
|
|
422
|
-
editorView,
|
|
423
|
-
control,
|
|
424
|
-
fullscreenControl,
|
|
425
|
-
modal,
|
|
426
|
-
rootStyles,
|
|
427
|
-
controlStyles,
|
|
428
|
-
modalStyles,
|
|
429
|
-
controlAttributes,
|
|
430
|
-
proxyModelValue,
|
|
431
|
-
focus,
|
|
432
|
-
blur,
|
|
433
|
-
openFullscreen
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
Calls
|
|
440
|
-
[`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
|
|
441
|
-
on the document and, if that throws an error, reports it as a
|
|
442
|
-
single diagnostic.
|
|
443
|
-
*/
|
|
444
|
-
const jsonParseLinter = () => (view) => {
|
|
445
|
-
try {
|
|
446
|
-
JSON.parse(view.state.doc.toString());
|
|
447
|
-
}
|
|
448
|
-
catch (e) {
|
|
449
|
-
if (!(e instanceof SyntaxError))
|
|
450
|
-
throw e;
|
|
451
|
-
const pos = getErrorPosition(e, view.state.doc);
|
|
452
|
-
return [{
|
|
453
|
-
from: pos,
|
|
454
|
-
message: e.message,
|
|
455
|
-
severity: 'error',
|
|
456
|
-
to: pos
|
|
457
|
-
}];
|
|
458
|
-
}
|
|
459
|
-
return [];
|
|
460
|
-
};
|
|
461
|
-
function getErrorPosition(error, doc) {
|
|
462
|
-
let m;
|
|
463
|
-
if (m = error.message.match(/at position (\d+)/))
|
|
464
|
-
return Math.min(+m[1], doc.length);
|
|
465
|
-
if (m = error.message.match(/at line (\d+) column (\d+)/))
|
|
466
|
-
return Math.min(doc.line(+m[1]).from + (+m[2]) - 1, doc.length);
|
|
467
|
-
return 0;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
A language provider that provides JSON parsing.
|
|
472
|
-
*/
|
|
473
|
-
const jsonLanguage = /*@__PURE__*/LRLanguage.define({
|
|
474
|
-
name: "json",
|
|
475
|
-
parser: /*@__PURE__*/parser.configure({
|
|
476
|
-
props: [
|
|
477
|
-
/*@__PURE__*/indentNodeProp.add({
|
|
478
|
-
Object: /*@__PURE__*/continuedIndent({ except: /^\s*\}/ }),
|
|
479
|
-
Array: /*@__PURE__*/continuedIndent({ except: /^\s*\]/ })
|
|
480
|
-
}),
|
|
481
|
-
/*@__PURE__*/foldNodeProp.add({
|
|
482
|
-
"Object Array": foldInside
|
|
483
|
-
})
|
|
484
|
-
]
|
|
485
|
-
}),
|
|
486
|
-
languageData: {
|
|
487
|
-
closeBrackets: { brackets: ["[", "{", '"'] },
|
|
488
|
-
indentOnInput: /^\s*[\}\]]$/
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
/**
|
|
492
|
-
JSON language support.
|
|
493
|
-
*/
|
|
494
|
-
function json() {
|
|
495
|
-
return new LanguageSupport(jsonLanguage);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
var index$2 = /*#__PURE__*/Object.freeze({
|
|
499
|
-
__proto__: null,
|
|
500
|
-
json: json,
|
|
501
|
-
jsonLanguage: jsonLanguage,
|
|
502
|
-
jsonParseLinter: jsonParseLinter
|
|
503
|
-
});
|
|
504
|
-
|
|
505
|
-
let _properties = null;
|
|
506
|
-
function properties() {
|
|
507
|
-
if (!_properties && typeof document == "object" && document.body) {
|
|
508
|
-
let { style } = document.body, names = [], seen = new Set;
|
|
509
|
-
for (let prop in style)
|
|
510
|
-
if (prop != "cssText" && prop != "cssFloat") {
|
|
511
|
-
if (typeof style[prop] == "string") {
|
|
512
|
-
if (/[A-Z]/.test(prop))
|
|
513
|
-
prop = prop.replace(/[A-Z]/g, ch => "-" + ch.toLowerCase());
|
|
514
|
-
if (!seen.has(prop)) {
|
|
515
|
-
names.push(prop);
|
|
516
|
-
seen.add(prop);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
_properties = names.sort().map(name => ({ type: "property", label: name }));
|
|
521
|
-
}
|
|
522
|
-
return _properties || [];
|
|
523
|
-
}
|
|
524
|
-
const pseudoClasses = /*@__PURE__*/[
|
|
525
|
-
"active", "after", "any-link", "autofill", "backdrop", "before",
|
|
526
|
-
"checked", "cue", "default", "defined", "disabled", "empty",
|
|
527
|
-
"enabled", "file-selector-button", "first", "first-child",
|
|
528
|
-
"first-letter", "first-line", "first-of-type", "focus",
|
|
529
|
-
"focus-visible", "focus-within", "fullscreen", "has", "host",
|
|
530
|
-
"host-context", "hover", "in-range", "indeterminate", "invalid",
|
|
531
|
-
"is", "lang", "last-child", "last-of-type", "left", "link", "marker",
|
|
532
|
-
"modal", "not", "nth-child", "nth-last-child", "nth-last-of-type",
|
|
533
|
-
"nth-of-type", "only-child", "only-of-type", "optional", "out-of-range",
|
|
534
|
-
"part", "placeholder", "placeholder-shown", "read-only", "read-write",
|
|
535
|
-
"required", "right", "root", "scope", "selection", "slotted", "target",
|
|
536
|
-
"target-text", "valid", "visited", "where"
|
|
537
|
-
].map(name => ({ type: "class", label: name }));
|
|
538
|
-
const values = /*@__PURE__*/[
|
|
539
|
-
"above", "absolute", "activeborder", "additive", "activecaption", "after-white-space",
|
|
540
|
-
"ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always",
|
|
541
|
-
"antialiased", "appworkspace", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column",
|
|
542
|
-
"avoid-page", "avoid-region", "axis-pan", "background", "backwards", "baseline", "below",
|
|
543
|
-
"bidi-override", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
|
|
544
|
-
"both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel",
|
|
545
|
-
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "capitalize",
|
|
546
|
-
"caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle",
|
|
547
|
-
"cjk-decimal", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn",
|
|
548
|
-
"color-dodge", "column", "column-reverse", "compact", "condensed", "contain", "content",
|
|
549
|
-
"contents", "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover",
|
|
550
|
-
"crop", "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
|
|
551
|
-
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in",
|
|
552
|
-
"destination-out", "destination-over", "difference", "disc", "discard", "disclosure-closed",
|
|
553
|
-
"disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize",
|
|
554
|
-
"ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end",
|
|
555
|
-
"ethiopic-abegede-gez", "ethiopic-halehame-aa-er", "ethiopic-halehame-gez", "ew-resize", "exclusion",
|
|
556
|
-
"expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fill-box",
|
|
557
|
-
"fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from",
|
|
558
|
-
"geometricPrecision", "graytext", "grid", "groove", "hand", "hard-light", "help", "hidden", "hide",
|
|
559
|
-
"higher", "highlight", "highlighttext", "horizontal", "hsl", "hsla", "hue", "icon", "ignore",
|
|
560
|
-
"inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext",
|
|
561
|
-
"inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid",
|
|
562
|
-
"inline-table", "inset", "inside", "intrinsic", "invert", "italic", "justify", "keep-all",
|
|
563
|
-
"landscape", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear",
|
|
564
|
-
"linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower",
|
|
565
|
-
"lower-hexadecimal", "lower-latin", "lower-norwegian", "lowercase", "ltr", "luminosity", "manipulation",
|
|
566
|
-
"match", "matrix", "matrix3d", "medium", "menu", "menutext", "message-box", "middle", "min-intrinsic",
|
|
567
|
-
"mix", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "n-resize", "narrower",
|
|
568
|
-
"ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none",
|
|
569
|
-
"normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize",
|
|
570
|
-
"oblique", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "outset", "outside",
|
|
571
|
-
"outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused",
|
|
572
|
-
"perspective", "pinch-zoom", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait",
|
|
573
|
-
"pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio",
|
|
574
|
-
"read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat",
|
|
575
|
-
"repeating-linear-gradient", "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
|
|
576
|
-
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round",
|
|
577
|
-
"row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturation",
|
|
578
|
-
"scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position",
|
|
579
|
-
"se-resize", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "serif", "show",
|
|
580
|
-
"single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
|
|
581
|
-
"slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps",
|
|
582
|
-
"small-caption", "smaller", "soft-light", "solid", "source-atop", "source-in", "source-out",
|
|
583
|
-
"source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "start",
|
|
584
|
-
"static", "status-bar", "stretch", "stroke", "stroke-box", "sub", "subpixel-antialiased", "svg_masks",
|
|
585
|
-
"super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell",
|
|
586
|
-
"table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row",
|
|
587
|
-
"table-row-group", "text", "text-bottom", "text-top", "textarea", "textfield", "thick", "thin",
|
|
588
|
-
"threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "to", "top",
|
|
589
|
-
"transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent",
|
|
590
|
-
"ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up", "upper-latin",
|
|
591
|
-
"uppercase", "url", "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill",
|
|
592
|
-
"visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe",
|
|
593
|
-
"windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small"
|
|
594
|
-
].map(name => ({ type: "keyword", label: name })).concat(/*@__PURE__*/[
|
|
595
|
-
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
|
|
596
|
-
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
|
|
597
|
-
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
|
|
598
|
-
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
|
|
599
|
-
"darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen",
|
|
600
|
-
"darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
|
|
601
|
-
"darkslateblue", "darkslategray", "darkturquoise", "darkviolet",
|
|
602
|
-
"deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick",
|
|
603
|
-
"floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
|
|
604
|
-
"gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
|
|
605
|
-
"hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
|
|
606
|
-
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
|
|
607
|
-
"lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink",
|
|
608
|
-
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray",
|
|
609
|
-
"lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
|
|
610
|
-
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
|
|
611
|
-
"mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
|
|
612
|
-
"mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
|
|
613
|
-
"navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
|
|
614
|
-
"orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
|
|
615
|
-
"papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
|
|
616
|
-
"purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
|
|
617
|
-
"salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
|
|
618
|
-
"slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
|
|
619
|
-
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
|
|
620
|
-
"whitesmoke", "yellow", "yellowgreen"
|
|
621
|
-
].map(name => ({ type: "constant", label: name })));
|
|
622
|
-
const tags = /*@__PURE__*/[
|
|
623
|
-
"a", "abbr", "address", "article", "aside", "b", "bdi", "bdo", "blockquote", "body",
|
|
624
|
-
"br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "dd", "del",
|
|
625
|
-
"details", "dfn", "dialog", "div", "dl", "dt", "em", "figcaption", "figure", "footer",
|
|
626
|
-
"form", "header", "hgroup", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "html", "i", "iframe",
|
|
627
|
-
"img", "input", "ins", "kbd", "label", "legend", "li", "main", "meter", "nav", "ol", "output",
|
|
628
|
-
"p", "pre", "ruby", "section", "select", "small", "source", "span", "strong", "sub", "summary",
|
|
629
|
-
"sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "tr", "u", "ul"
|
|
630
|
-
].map(name => ({ type: "type", label: name }));
|
|
631
|
-
const identifier$1 = /^(\w[\w-]*|-\w[\w-]*|)$/, variable = /^-(-[\w-]*)?$/;
|
|
632
|
-
function isVarArg(node, doc) {
|
|
633
|
-
var _a;
|
|
634
|
-
if (node.name == "(" || node.type.isError)
|
|
635
|
-
node = node.parent || node;
|
|
636
|
-
if (node.name != "ArgList")
|
|
637
|
-
return false;
|
|
638
|
-
let callee = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.firstChild;
|
|
639
|
-
if ((callee === null || callee === void 0 ? void 0 : callee.name) != "Callee")
|
|
640
|
-
return false;
|
|
641
|
-
return doc.sliceString(callee.from, callee.to) == "var";
|
|
642
|
-
}
|
|
643
|
-
const VariablesByNode = /*@__PURE__*/new NodeWeakMap();
|
|
644
|
-
const declSelector = ["Declaration"];
|
|
645
|
-
function astTop(node) {
|
|
646
|
-
for (let cur = node;;) {
|
|
647
|
-
if (cur.type.isTop)
|
|
648
|
-
return cur;
|
|
649
|
-
if (!(cur = cur.parent))
|
|
650
|
-
return node;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
function variableNames(doc, node, isVariable) {
|
|
654
|
-
if (node.to - node.from > 4096) {
|
|
655
|
-
let known = VariablesByNode.get(node);
|
|
656
|
-
if (known)
|
|
657
|
-
return known;
|
|
658
|
-
let result = [], seen = new Set, cursor = node.cursor(IterMode.IncludeAnonymous);
|
|
659
|
-
if (cursor.firstChild())
|
|
660
|
-
do {
|
|
661
|
-
for (let option of variableNames(doc, cursor.node, isVariable))
|
|
662
|
-
if (!seen.has(option.label)) {
|
|
663
|
-
seen.add(option.label);
|
|
664
|
-
result.push(option);
|
|
665
|
-
}
|
|
666
|
-
} while (cursor.nextSibling());
|
|
667
|
-
VariablesByNode.set(node, result);
|
|
668
|
-
return result;
|
|
669
|
-
}
|
|
670
|
-
else {
|
|
671
|
-
let result = [], seen = new Set;
|
|
672
|
-
node.cursor().iterate(node => {
|
|
673
|
-
var _a;
|
|
674
|
-
if (isVariable(node) && node.matchContext(declSelector) && ((_a = node.node.nextSibling) === null || _a === void 0 ? void 0 : _a.name) == ":") {
|
|
675
|
-
let name = doc.sliceString(node.from, node.to);
|
|
676
|
-
if (!seen.has(name)) {
|
|
677
|
-
seen.add(name);
|
|
678
|
-
result.push({ label: name, type: "variable" });
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
});
|
|
682
|
-
return result;
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
Create a completion source for a CSS dialect, providing a
|
|
687
|
-
predicate for determining what kind of syntax node can act as a
|
|
688
|
-
completable variable. This is used by language modes like Sass and
|
|
689
|
-
Less to reuse this package's completion logic.
|
|
690
|
-
*/
|
|
691
|
-
const defineCSSCompletionSource = (isVariable) => context => {
|
|
692
|
-
let { state, pos } = context, node = syntaxTree(state).resolveInner(pos, -1);
|
|
693
|
-
let isDash = node.type.isError && node.from == node.to - 1 && state.doc.sliceString(node.from, node.to) == "-";
|
|
694
|
-
if (node.name == "PropertyName" ||
|
|
695
|
-
(isDash || node.name == "TagName") && /^(Block|Styles)$/.test(node.resolve(node.to).name))
|
|
696
|
-
return { from: node.from, options: properties(), validFor: identifier$1 };
|
|
697
|
-
if (node.name == "ValueName")
|
|
698
|
-
return { from: node.from, options: values, validFor: identifier$1 };
|
|
699
|
-
if (node.name == "PseudoClassName")
|
|
700
|
-
return { from: node.from, options: pseudoClasses, validFor: identifier$1 };
|
|
701
|
-
if (isVariable(node) || (context.explicit || isDash) && isVarArg(node, state.doc))
|
|
702
|
-
return { from: isVariable(node) || isDash ? node.from : pos,
|
|
703
|
-
options: variableNames(state.doc, astTop(node), isVariable),
|
|
704
|
-
validFor: variable };
|
|
705
|
-
if (node.name == "TagName") {
|
|
706
|
-
for (let { parent } = node; parent; parent = parent.parent)
|
|
707
|
-
if (parent.name == "Block")
|
|
708
|
-
return { from: node.from, options: properties(), validFor: identifier$1 };
|
|
709
|
-
return { from: node.from, options: tags, validFor: identifier$1 };
|
|
710
|
-
}
|
|
711
|
-
if (!context.explicit)
|
|
712
|
-
return null;
|
|
713
|
-
let above = node.resolve(pos), before = above.childBefore(pos);
|
|
714
|
-
if (before && before.name == ":" && above.name == "PseudoClassSelector")
|
|
715
|
-
return { from: pos, options: pseudoClasses, validFor: identifier$1 };
|
|
716
|
-
if (before && before.name == ":" && above.name == "Declaration" || above.name == "ArgList")
|
|
717
|
-
return { from: pos, options: values, validFor: identifier$1 };
|
|
718
|
-
if (above.name == "Block" || above.name == "Styles")
|
|
719
|
-
return { from: pos, options: properties(), validFor: identifier$1 };
|
|
720
|
-
return null;
|
|
721
|
-
};
|
|
722
|
-
/**
|
|
723
|
-
CSS property, variable, and value keyword completion source.
|
|
724
|
-
*/
|
|
725
|
-
const cssCompletionSource = /*@__PURE__*/defineCSSCompletionSource(n => n.name == "VariableName");
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
A language provider based on the [Lezer CSS
|
|
729
|
-
parser](https://github.com/lezer-parser/css), extended with
|
|
730
|
-
highlighting and indentation information.
|
|
731
|
-
*/
|
|
732
|
-
const cssLanguage = /*@__PURE__*/LRLanguage.define({
|
|
733
|
-
name: "css",
|
|
734
|
-
parser: /*@__PURE__*/parser$1.configure({
|
|
735
|
-
props: [
|
|
736
|
-
/*@__PURE__*/indentNodeProp.add({
|
|
737
|
-
Declaration: /*@__PURE__*/continuedIndent()
|
|
738
|
-
}),
|
|
739
|
-
/*@__PURE__*/foldNodeProp.add({
|
|
740
|
-
Block: foldInside
|
|
741
|
-
})
|
|
742
|
-
]
|
|
743
|
-
}),
|
|
744
|
-
languageData: {
|
|
745
|
-
commentTokens: { block: { open: "/*", close: "*/" } },
|
|
746
|
-
indentOnInput: /^\s*\}$/,
|
|
747
|
-
wordChars: "-"
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
/**
|
|
751
|
-
Language support for CSS.
|
|
752
|
-
*/
|
|
753
|
-
function css() {
|
|
754
|
-
return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
var index$1 = /*#__PURE__*/Object.freeze({
|
|
758
|
-
__proto__: null,
|
|
759
|
-
css: css,
|
|
760
|
-
cssCompletionSource: cssCompletionSource,
|
|
761
|
-
cssLanguage: cssLanguage,
|
|
762
|
-
defineCSSCompletionSource: defineCSSCompletionSource
|
|
763
|
-
});
|
|
764
|
-
|
|
765
|
-
const Targets = ["_blank", "_self", "_top", "_parent"];
|
|
766
|
-
const Charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
|
|
767
|
-
const Methods = ["get", "post", "put", "delete"];
|
|
768
|
-
const Encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
|
|
769
|
-
const Bool = ["true", "false"];
|
|
770
|
-
const S = {}; // Empty tag spec
|
|
771
|
-
const Tags = {
|
|
772
|
-
a: {
|
|
773
|
-
attrs: {
|
|
774
|
-
href: null, ping: null, type: null,
|
|
775
|
-
media: null,
|
|
776
|
-
target: Targets,
|
|
777
|
-
hreflang: null
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
abbr: S,
|
|
781
|
-
address: S,
|
|
782
|
-
area: {
|
|
783
|
-
attrs: {
|
|
784
|
-
alt: null, coords: null, href: null, target: null, ping: null,
|
|
785
|
-
media: null, hreflang: null, type: null,
|
|
786
|
-
shape: ["default", "rect", "circle", "poly"]
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
article: S,
|
|
790
|
-
aside: S,
|
|
791
|
-
audio: {
|
|
792
|
-
attrs: {
|
|
793
|
-
src: null, mediagroup: null,
|
|
794
|
-
crossorigin: ["anonymous", "use-credentials"],
|
|
795
|
-
preload: ["none", "metadata", "auto"],
|
|
796
|
-
autoplay: ["autoplay"],
|
|
797
|
-
loop: ["loop"],
|
|
798
|
-
controls: ["controls"]
|
|
799
|
-
}
|
|
800
|
-
},
|
|
801
|
-
b: S,
|
|
802
|
-
base: { attrs: { href: null, target: Targets } },
|
|
803
|
-
bdi: S,
|
|
804
|
-
bdo: S,
|
|
805
|
-
blockquote: { attrs: { cite: null } },
|
|
806
|
-
body: S,
|
|
807
|
-
br: S,
|
|
808
|
-
button: {
|
|
809
|
-
attrs: {
|
|
810
|
-
form: null, formaction: null, name: null, value: null,
|
|
811
|
-
autofocus: ["autofocus"],
|
|
812
|
-
disabled: ["autofocus"],
|
|
813
|
-
formenctype: Encs,
|
|
814
|
-
formmethod: Methods,
|
|
815
|
-
formnovalidate: ["novalidate"],
|
|
816
|
-
formtarget: Targets,
|
|
817
|
-
type: ["submit", "reset", "button"]
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
canvas: { attrs: { width: null, height: null } },
|
|
821
|
-
caption: S,
|
|
822
|
-
center: S,
|
|
823
|
-
cite: S,
|
|
824
|
-
code: S,
|
|
825
|
-
col: { attrs: { span: null } },
|
|
826
|
-
colgroup: { attrs: { span: null } },
|
|
827
|
-
command: {
|
|
828
|
-
attrs: {
|
|
829
|
-
type: ["command", "checkbox", "radio"],
|
|
830
|
-
label: null, icon: null, radiogroup: null, command: null, title: null,
|
|
831
|
-
disabled: ["disabled"],
|
|
832
|
-
checked: ["checked"]
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
data: { attrs: { value: null } },
|
|
836
|
-
datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
|
|
837
|
-
datalist: { attrs: { data: null } },
|
|
838
|
-
dd: S,
|
|
839
|
-
del: { attrs: { cite: null, datetime: null } },
|
|
840
|
-
details: { attrs: { open: ["open"] } },
|
|
841
|
-
dfn: S,
|
|
842
|
-
div: S,
|
|
843
|
-
dl: S,
|
|
844
|
-
dt: S,
|
|
845
|
-
em: S,
|
|
846
|
-
embed: { attrs: { src: null, type: null, width: null, height: null } },
|
|
847
|
-
eventsource: { attrs: { src: null } },
|
|
848
|
-
fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
|
|
849
|
-
figcaption: S,
|
|
850
|
-
figure: S,
|
|
851
|
-
footer: S,
|
|
852
|
-
form: {
|
|
853
|
-
attrs: {
|
|
854
|
-
action: null, name: null,
|
|
855
|
-
"accept-charset": Charsets,
|
|
856
|
-
autocomplete: ["on", "off"],
|
|
857
|
-
enctype: Encs,
|
|
858
|
-
method: Methods,
|
|
859
|
-
novalidate: ["novalidate"],
|
|
860
|
-
target: Targets
|
|
861
|
-
}
|
|
862
|
-
},
|
|
863
|
-
h1: S, h2: S, h3: S, h4: S, h5: S, h6: S,
|
|
864
|
-
head: {
|
|
865
|
-
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
|
866
|
-
},
|
|
867
|
-
header: S,
|
|
868
|
-
hgroup: S,
|
|
869
|
-
hr: S,
|
|
870
|
-
html: {
|
|
871
|
-
attrs: { manifest: null }
|
|
872
|
-
},
|
|
873
|
-
i: S,
|
|
874
|
-
iframe: {
|
|
875
|
-
attrs: {
|
|
876
|
-
src: null, srcdoc: null, name: null, width: null, height: null,
|
|
877
|
-
sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
|
|
878
|
-
seamless: ["seamless"]
|
|
879
|
-
}
|
|
880
|
-
},
|
|
881
|
-
img: {
|
|
882
|
-
attrs: {
|
|
883
|
-
alt: null, src: null, ismap: null, usemap: null, width: null, height: null,
|
|
884
|
-
crossorigin: ["anonymous", "use-credentials"]
|
|
885
|
-
}
|
|
886
|
-
},
|
|
887
|
-
input: {
|
|
888
|
-
attrs: {
|
|
889
|
-
alt: null, dirname: null, form: null, formaction: null,
|
|
890
|
-
height: null, list: null, max: null, maxlength: null, min: null,
|
|
891
|
-
name: null, pattern: null, placeholder: null, size: null, src: null,
|
|
892
|
-
step: null, value: null, width: null,
|
|
893
|
-
accept: ["audio/*", "video/*", "image/*"],
|
|
894
|
-
autocomplete: ["on", "off"],
|
|
895
|
-
autofocus: ["autofocus"],
|
|
896
|
-
checked: ["checked"],
|
|
897
|
-
disabled: ["disabled"],
|
|
898
|
-
formenctype: Encs,
|
|
899
|
-
formmethod: Methods,
|
|
900
|
-
formnovalidate: ["novalidate"],
|
|
901
|
-
formtarget: Targets,
|
|
902
|
-
multiple: ["multiple"],
|
|
903
|
-
readonly: ["readonly"],
|
|
904
|
-
required: ["required"],
|
|
905
|
-
type: ["hidden", "text", "search", "tel", "url", "email", "password", "datetime", "date", "month",
|
|
906
|
-
"week", "time", "datetime-local", "number", "range", "color", "checkbox", "radio",
|
|
907
|
-
"file", "submit", "image", "reset", "button"]
|
|
908
|
-
}
|
|
909
|
-
},
|
|
910
|
-
ins: { attrs: { cite: null, datetime: null } },
|
|
911
|
-
kbd: S,
|
|
912
|
-
keygen: {
|
|
913
|
-
attrs: {
|
|
914
|
-
challenge: null, form: null, name: null,
|
|
915
|
-
autofocus: ["autofocus"],
|
|
916
|
-
disabled: ["disabled"],
|
|
917
|
-
keytype: ["RSA"]
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
label: { attrs: { for: null, form: null } },
|
|
921
|
-
legend: S,
|
|
922
|
-
li: { attrs: { value: null } },
|
|
923
|
-
link: {
|
|
924
|
-
attrs: {
|
|
925
|
-
href: null, type: null,
|
|
926
|
-
hreflang: null,
|
|
927
|
-
media: null,
|
|
928
|
-
sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
|
|
929
|
-
}
|
|
930
|
-
},
|
|
931
|
-
map: { attrs: { name: null } },
|
|
932
|
-
mark: S,
|
|
933
|
-
menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
|
|
934
|
-
meta: {
|
|
935
|
-
attrs: {
|
|
936
|
-
content: null,
|
|
937
|
-
charset: Charsets,
|
|
938
|
-
name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
|
|
939
|
-
"http-equiv": ["content-language", "content-type", "default-style", "refresh"]
|
|
940
|
-
}
|
|
941
|
-
},
|
|
942
|
-
meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
|
|
943
|
-
nav: S,
|
|
944
|
-
noscript: S,
|
|
945
|
-
object: {
|
|
946
|
-
attrs: {
|
|
947
|
-
data: null, type: null, name: null, usemap: null, form: null, width: null, height: null,
|
|
948
|
-
typemustmatch: ["typemustmatch"]
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
ol: { attrs: { reversed: ["reversed"], start: null, type: ["1", "a", "A", "i", "I"] },
|
|
952
|
-
children: ["li", "script", "template", "ul", "ol"] },
|
|
953
|
-
optgroup: { attrs: { disabled: ["disabled"], label: null } },
|
|
954
|
-
option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
|
|
955
|
-
output: { attrs: { for: null, form: null, name: null } },
|
|
956
|
-
p: S,
|
|
957
|
-
param: { attrs: { name: null, value: null } },
|
|
958
|
-
pre: S,
|
|
959
|
-
progress: { attrs: { value: null, max: null } },
|
|
960
|
-
q: { attrs: { cite: null } },
|
|
961
|
-
rp: S,
|
|
962
|
-
rt: S,
|
|
963
|
-
ruby: S,
|
|
964
|
-
samp: S,
|
|
965
|
-
script: {
|
|
966
|
-
attrs: {
|
|
967
|
-
type: ["text/javascript"],
|
|
968
|
-
src: null,
|
|
969
|
-
async: ["async"],
|
|
970
|
-
defer: ["defer"],
|
|
971
|
-
charset: Charsets
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
section: S,
|
|
975
|
-
select: {
|
|
976
|
-
attrs: {
|
|
977
|
-
form: null, name: null, size: null,
|
|
978
|
-
autofocus: ["autofocus"],
|
|
979
|
-
disabled: ["disabled"],
|
|
980
|
-
multiple: ["multiple"]
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
slot: { attrs: { name: null } },
|
|
984
|
-
small: S,
|
|
985
|
-
source: { attrs: { src: null, type: null, media: null } },
|
|
986
|
-
span: S,
|
|
987
|
-
strong: S,
|
|
988
|
-
style: {
|
|
989
|
-
attrs: {
|
|
990
|
-
type: ["text/css"],
|
|
991
|
-
media: null,
|
|
992
|
-
scoped: null
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
sub: S,
|
|
996
|
-
summary: S,
|
|
997
|
-
sup: S,
|
|
998
|
-
table: S,
|
|
999
|
-
tbody: S,
|
|
1000
|
-
td: { attrs: { colspan: null, rowspan: null, headers: null } },
|
|
1001
|
-
template: S,
|
|
1002
|
-
textarea: {
|
|
1003
|
-
attrs: {
|
|
1004
|
-
dirname: null, form: null, maxlength: null, name: null, placeholder: null,
|
|
1005
|
-
rows: null, cols: null,
|
|
1006
|
-
autofocus: ["autofocus"],
|
|
1007
|
-
disabled: ["disabled"],
|
|
1008
|
-
readonly: ["readonly"],
|
|
1009
|
-
required: ["required"],
|
|
1010
|
-
wrap: ["soft", "hard"]
|
|
1011
|
-
}
|
|
1012
|
-
},
|
|
1013
|
-
tfoot: S,
|
|
1014
|
-
th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
|
|
1015
|
-
thead: S,
|
|
1016
|
-
time: { attrs: { datetime: null } },
|
|
1017
|
-
title: S,
|
|
1018
|
-
tr: S,
|
|
1019
|
-
track: {
|
|
1020
|
-
attrs: {
|
|
1021
|
-
src: null, label: null, default: null,
|
|
1022
|
-
kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
|
|
1023
|
-
srclang: null
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
ul: { children: ["li", "script", "template", "ul", "ol"] },
|
|
1027
|
-
var: S,
|
|
1028
|
-
video: {
|
|
1029
|
-
attrs: {
|
|
1030
|
-
src: null, poster: null, width: null, height: null,
|
|
1031
|
-
crossorigin: ["anonymous", "use-credentials"],
|
|
1032
|
-
preload: ["auto", "metadata", "none"],
|
|
1033
|
-
autoplay: ["autoplay"],
|
|
1034
|
-
mediagroup: ["movie"],
|
|
1035
|
-
muted: ["muted"],
|
|
1036
|
-
controls: ["controls"]
|
|
1037
|
-
}
|
|
1038
|
-
},
|
|
1039
|
-
wbr: S
|
|
1040
|
-
};
|
|
1041
|
-
const GlobalAttrs = {
|
|
1042
|
-
accesskey: null,
|
|
1043
|
-
class: null,
|
|
1044
|
-
contenteditable: Bool,
|
|
1045
|
-
contextmenu: null,
|
|
1046
|
-
dir: ["ltr", "rtl", "auto"],
|
|
1047
|
-
draggable: ["true", "false", "auto"],
|
|
1048
|
-
dropzone: ["copy", "move", "link", "string:", "file:"],
|
|
1049
|
-
hidden: ["hidden"],
|
|
1050
|
-
id: null,
|
|
1051
|
-
inert: ["inert"],
|
|
1052
|
-
itemid: null,
|
|
1053
|
-
itemprop: null,
|
|
1054
|
-
itemref: null,
|
|
1055
|
-
itemscope: ["itemscope"],
|
|
1056
|
-
itemtype: null,
|
|
1057
|
-
lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
|
|
1058
|
-
spellcheck: Bool,
|
|
1059
|
-
autocorrect: Bool,
|
|
1060
|
-
autocapitalize: Bool,
|
|
1061
|
-
style: null,
|
|
1062
|
-
tabindex: null,
|
|
1063
|
-
title: null,
|
|
1064
|
-
translate: ["yes", "no"],
|
|
1065
|
-
rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
|
|
1066
|
-
role: /*@__PURE__*/"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
1067
|
-
"aria-activedescendant": null,
|
|
1068
|
-
"aria-atomic": Bool,
|
|
1069
|
-
"aria-autocomplete": ["inline", "list", "both", "none"],
|
|
1070
|
-
"aria-busy": Bool,
|
|
1071
|
-
"aria-checked": ["true", "false", "mixed", "undefined"],
|
|
1072
|
-
"aria-controls": null,
|
|
1073
|
-
"aria-describedby": null,
|
|
1074
|
-
"aria-disabled": Bool,
|
|
1075
|
-
"aria-dropeffect": null,
|
|
1076
|
-
"aria-expanded": ["true", "false", "undefined"],
|
|
1077
|
-
"aria-flowto": null,
|
|
1078
|
-
"aria-grabbed": ["true", "false", "undefined"],
|
|
1079
|
-
"aria-haspopup": Bool,
|
|
1080
|
-
"aria-hidden": Bool,
|
|
1081
|
-
"aria-invalid": ["true", "false", "grammar", "spelling"],
|
|
1082
|
-
"aria-label": null,
|
|
1083
|
-
"aria-labelledby": null,
|
|
1084
|
-
"aria-level": null,
|
|
1085
|
-
"aria-live": ["off", "polite", "assertive"],
|
|
1086
|
-
"aria-multiline": Bool,
|
|
1087
|
-
"aria-multiselectable": Bool,
|
|
1088
|
-
"aria-owns": null,
|
|
1089
|
-
"aria-posinset": null,
|
|
1090
|
-
"aria-pressed": ["true", "false", "mixed", "undefined"],
|
|
1091
|
-
"aria-readonly": Bool,
|
|
1092
|
-
"aria-relevant": null,
|
|
1093
|
-
"aria-required": Bool,
|
|
1094
|
-
"aria-selected": ["true", "false", "undefined"],
|
|
1095
|
-
"aria-setsize": null,
|
|
1096
|
-
"aria-sort": ["ascending", "descending", "none", "other"],
|
|
1097
|
-
"aria-valuemax": null,
|
|
1098
|
-
"aria-valuemin": null,
|
|
1099
|
-
"aria-valuenow": null,
|
|
1100
|
-
"aria-valuetext": null
|
|
1101
|
-
};
|
|
1102
|
-
const eventAttributes = /*@__PURE__*/("beforeunload copy cut dragstart dragover dragleave dragenter dragend " +
|
|
1103
|
-
"drag paste focus blur change click load mousedown mouseenter mouseleave " +
|
|
1104
|
-
"mouseup keydown keyup resize scroll unload").split(" ").map(n => "on" + n);
|
|
1105
|
-
for (let a of eventAttributes)
|
|
1106
|
-
GlobalAttrs[a] = null;
|
|
1107
|
-
class Schema {
|
|
1108
|
-
constructor(extraTags, extraAttrs) {
|
|
1109
|
-
this.tags = Object.assign(Object.assign({}, Tags), extraTags);
|
|
1110
|
-
this.globalAttrs = Object.assign(Object.assign({}, GlobalAttrs), extraAttrs);
|
|
1111
|
-
this.allTags = Object.keys(this.tags);
|
|
1112
|
-
this.globalAttrNames = Object.keys(this.globalAttrs);
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
Schema.default = /*@__PURE__*/new Schema;
|
|
1116
|
-
function elementName(doc, tree, max = doc.length) {
|
|
1117
|
-
if (!tree)
|
|
1118
|
-
return "";
|
|
1119
|
-
let tag = tree.firstChild;
|
|
1120
|
-
let name = tag && tag.getChild("TagName");
|
|
1121
|
-
return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
|
|
1122
|
-
}
|
|
1123
|
-
function findParentElement(tree, skip = false) {
|
|
1124
|
-
for (; tree; tree = tree.parent)
|
|
1125
|
-
if (tree.name == "Element") {
|
|
1126
|
-
if (skip)
|
|
1127
|
-
skip = false;
|
|
1128
|
-
else
|
|
1129
|
-
return tree;
|
|
1130
|
-
}
|
|
1131
|
-
return null;
|
|
1132
|
-
}
|
|
1133
|
-
function allowedChildren(doc, tree, schema) {
|
|
1134
|
-
let parentInfo = schema.tags[elementName(doc, findParentElement(tree))];
|
|
1135
|
-
return (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.children) || schema.allTags;
|
|
1136
|
-
}
|
|
1137
|
-
function openTags(doc, tree) {
|
|
1138
|
-
let open = [];
|
|
1139
|
-
for (let parent = findParentElement(tree); parent && !parent.type.isTop; parent = findParentElement(parent.parent)) {
|
|
1140
|
-
let tagName = elementName(doc, parent);
|
|
1141
|
-
if (tagName && parent.lastChild.name == "CloseTag")
|
|
1142
|
-
break;
|
|
1143
|
-
if (tagName && open.indexOf(tagName) < 0 && (tree.name == "EndTag" || tree.from >= parent.firstChild.to))
|
|
1144
|
-
open.push(tagName);
|
|
1145
|
-
}
|
|
1146
|
-
return open;
|
|
1147
|
-
}
|
|
1148
|
-
const identifier = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
1149
|
-
function completeTag(state, schema, tree, from, to) {
|
|
1150
|
-
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
1151
|
-
let parent = findParentElement(tree, true);
|
|
1152
|
-
return { from, to,
|
|
1153
|
-
options: allowedChildren(state.doc, parent, schema).map(tagName => ({ label: tagName, type: "type" })).concat(openTags(state.doc, tree).map((tag, i) => ({ label: "/" + tag, apply: "/" + tag + end,
|
|
1154
|
-
type: "type", boost: 99 - i }))),
|
|
1155
|
-
validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/ };
|
|
1156
|
-
}
|
|
1157
|
-
function completeCloseTag(state, tree, from, to) {
|
|
1158
|
-
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
1159
|
-
return { from, to,
|
|
1160
|
-
options: openTags(state.doc, tree).map((tag, i) => ({ label: tag, apply: tag + end, type: "type", boost: 99 - i })),
|
|
1161
|
-
validFor: identifier };
|
|
1162
|
-
}
|
|
1163
|
-
function completeStartTag(state, schema, tree, pos) {
|
|
1164
|
-
let options = [], level = 0;
|
|
1165
|
-
for (let tagName of allowedChildren(state.doc, tree, schema))
|
|
1166
|
-
options.push({ label: "<" + tagName, type: "type" });
|
|
1167
|
-
for (let open of openTags(state.doc, tree))
|
|
1168
|
-
options.push({ label: "</" + open + ">", type: "type", boost: 99 - level++ });
|
|
1169
|
-
return { from: pos, to: pos, options, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
|
|
1170
|
-
}
|
|
1171
|
-
function completeAttrName(state, schema, tree, from, to) {
|
|
1172
|
-
let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
1173
|
-
let localAttrs = info && info.attrs ? Object.keys(info.attrs) : [];
|
|
1174
|
-
let names = info && info.globalAttrs === false ? localAttrs
|
|
1175
|
-
: localAttrs.length ? localAttrs.concat(schema.globalAttrNames) : schema.globalAttrNames;
|
|
1176
|
-
return { from, to,
|
|
1177
|
-
options: names.map(attrName => ({ label: attrName, type: "property" })),
|
|
1178
|
-
validFor: identifier };
|
|
1179
|
-
}
|
|
1180
|
-
function completeAttrValue(state, schema, tree, from, to) {
|
|
1181
|
-
var _a;
|
|
1182
|
-
let nameNode = (_a = tree.parent) === null || _a === void 0 ? void 0 : _a.getChild("AttributeName");
|
|
1183
|
-
let options = [], token = undefined;
|
|
1184
|
-
if (nameNode) {
|
|
1185
|
-
let attrName = state.sliceDoc(nameNode.from, nameNode.to);
|
|
1186
|
-
let attrs = schema.globalAttrs[attrName];
|
|
1187
|
-
if (!attrs) {
|
|
1188
|
-
let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
1189
|
-
attrs = (info === null || info === void 0 ? void 0 : info.attrs) && info.attrs[attrName];
|
|
1190
|
-
}
|
|
1191
|
-
if (attrs) {
|
|
1192
|
-
let base = state.sliceDoc(from, to).toLowerCase(), quoteStart = '"', quoteEnd = '"';
|
|
1193
|
-
if (/^['"]/.test(base)) {
|
|
1194
|
-
token = base[0] == '"' ? /^[^"]*$/ : /^[^']*$/;
|
|
1195
|
-
quoteStart = "";
|
|
1196
|
-
quoteEnd = state.sliceDoc(to, to + 1) == base[0] ? "" : base[0];
|
|
1197
|
-
base = base.slice(1);
|
|
1198
|
-
from++;
|
|
1199
|
-
}
|
|
1200
|
-
else {
|
|
1201
|
-
token = /^[^\s<>='"]*$/;
|
|
1202
|
-
}
|
|
1203
|
-
for (let value of attrs)
|
|
1204
|
-
options.push({ label: value, apply: quoteStart + value + quoteEnd, type: "constant" });
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
return { from, to, options, validFor: token };
|
|
1208
|
-
}
|
|
1209
|
-
function htmlCompletionFor(schema, context) {
|
|
1210
|
-
let { state, pos } = context, around = syntaxTree(state).resolveInner(pos), tree = around.resolve(pos, -1);
|
|
1211
|
-
for (let scan = pos, before; around == tree && (before = tree.childBefore(scan));) {
|
|
1212
|
-
let last = before.lastChild;
|
|
1213
|
-
if (!last || !last.type.isError || last.from < last.to)
|
|
1214
|
-
break;
|
|
1215
|
-
around = tree = before;
|
|
1216
|
-
scan = last.from;
|
|
1217
|
-
}
|
|
1218
|
-
if (tree.name == "TagName") {
|
|
1219
|
-
return tree.parent && /CloseTag$/.test(tree.parent.name) ? completeCloseTag(state, tree, tree.from, pos)
|
|
1220
|
-
: completeTag(state, schema, tree, tree.from, pos);
|
|
1221
|
-
}
|
|
1222
|
-
else if (tree.name == "StartTag") {
|
|
1223
|
-
return completeTag(state, schema, tree, pos, pos);
|
|
1224
|
-
}
|
|
1225
|
-
else if (tree.name == "StartCloseTag" || tree.name == "IncompleteCloseTag") {
|
|
1226
|
-
return completeCloseTag(state, tree, pos, pos);
|
|
1227
|
-
}
|
|
1228
|
-
else if (context.explicit && (tree.name == "OpenTag" || tree.name == "SelfClosingTag") || tree.name == "AttributeName") {
|
|
1229
|
-
return completeAttrName(state, schema, tree, tree.name == "AttributeName" ? tree.from : pos, pos);
|
|
1230
|
-
}
|
|
1231
|
-
else if (tree.name == "Is" || tree.name == "AttributeValue" || tree.name == "UnquotedAttributeValue") {
|
|
1232
|
-
return completeAttrValue(state, schema, tree, tree.name == "Is" ? pos : tree.from, pos);
|
|
1233
|
-
}
|
|
1234
|
-
else if (context.explicit && (around.name == "Element" || around.name == "Text" || around.name == "Document")) {
|
|
1235
|
-
return completeStartTag(state, schema, tree, pos);
|
|
1236
|
-
}
|
|
1237
|
-
else {
|
|
1238
|
-
return null;
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
/**
|
|
1242
|
-
Create a completion source for HTML extended with additional tags
|
|
1243
|
-
or attributes.
|
|
1244
|
-
*/
|
|
1245
|
-
function htmlCompletionSourceWith(config) {
|
|
1246
|
-
let { extraTags, extraGlobalAttributes: extraAttrs } = config;
|
|
1247
|
-
let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;
|
|
1248
|
-
return (context) => htmlCompletionFor(schema, context);
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
const defaultNesting = [
|
|
1252
|
-
{ tag: "script",
|
|
1253
|
-
attrs: attrs => attrs.type == "text/typescript" || attrs.lang == "ts",
|
|
1254
|
-
parser: typescriptLanguage.parser },
|
|
1255
|
-
{ tag: "script",
|
|
1256
|
-
attrs: attrs => attrs.type == "text/babel" || attrs.type == "text/jsx",
|
|
1257
|
-
parser: jsxLanguage.parser },
|
|
1258
|
-
{ tag: "script",
|
|
1259
|
-
attrs: attrs => attrs.type == "text/typescript-jsx",
|
|
1260
|
-
parser: tsxLanguage.parser },
|
|
1261
|
-
{ tag: "script",
|
|
1262
|
-
attrs(attrs) {
|
|
1263
|
-
return !attrs.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(attrs.type);
|
|
1264
|
-
},
|
|
1265
|
-
parser: javascriptLanguage.parser },
|
|
1266
|
-
{ tag: "style",
|
|
1267
|
-
attrs(attrs) {
|
|
1268
|
-
return (!attrs.lang || attrs.lang == "css") && (!attrs.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(attrs.type));
|
|
1269
|
-
},
|
|
1270
|
-
parser: cssLanguage.parser }
|
|
1271
|
-
];
|
|
1272
|
-
const defaultAttrs = /*@__PURE__*/[
|
|
1273
|
-
{ name: "style",
|
|
1274
|
-
parser: /*@__PURE__*/cssLanguage.parser.configure({ top: "Styles" }) }
|
|
1275
|
-
].concat(/*@__PURE__*/eventAttributes.map(name => ({ name, parser: javascriptLanguage.parser })));
|
|
1276
|
-
/**
|
|
1277
|
-
A language provider based on the [Lezer HTML
|
|
1278
|
-
parser](https://github.com/lezer-parser/html), extended with the
|
|
1279
|
-
JavaScript and CSS parsers to parse the content of `<script>` and
|
|
1280
|
-
`<style>` tags.
|
|
1281
|
-
*/
|
|
1282
|
-
const htmlPlain = /*@__PURE__*/LRLanguage.define({
|
|
1283
|
-
name: "html",
|
|
1284
|
-
parser: /*@__PURE__*/parser$2.configure({
|
|
1285
|
-
props: [
|
|
1286
|
-
/*@__PURE__*/indentNodeProp.add({
|
|
1287
|
-
Element(context) {
|
|
1288
|
-
let after = /^(\s*)(<\/)?/.exec(context.textAfter);
|
|
1289
|
-
if (context.node.to <= context.pos + after[0].length)
|
|
1290
|
-
return context.continue();
|
|
1291
|
-
return context.lineIndent(context.node.from) + (after[2] ? 0 : context.unit);
|
|
1292
|
-
},
|
|
1293
|
-
"OpenTag CloseTag SelfClosingTag"(context) {
|
|
1294
|
-
return context.column(context.node.from) + context.unit;
|
|
1295
|
-
},
|
|
1296
|
-
Document(context) {
|
|
1297
|
-
if (context.pos + /\s*/.exec(context.textAfter)[0].length < context.node.to)
|
|
1298
|
-
return context.continue();
|
|
1299
|
-
let endElt = null, close;
|
|
1300
|
-
for (let cur = context.node;;) {
|
|
1301
|
-
let last = cur.lastChild;
|
|
1302
|
-
if (!last || last.name != "Element" || last.to != cur.to)
|
|
1303
|
-
break;
|
|
1304
|
-
endElt = cur = last;
|
|
1305
|
-
}
|
|
1306
|
-
if (endElt && !((close = endElt.lastChild) && (close.name == "CloseTag" || close.name == "SelfClosingTag")))
|
|
1307
|
-
return context.lineIndent(endElt.from) + context.unit;
|
|
1308
|
-
return null;
|
|
1309
|
-
}
|
|
1310
|
-
}),
|
|
1311
|
-
/*@__PURE__*/foldNodeProp.add({
|
|
1312
|
-
Element(node) {
|
|
1313
|
-
let first = node.firstChild, last = node.lastChild;
|
|
1314
|
-
if (!first || first.name != "OpenTag")
|
|
1315
|
-
return null;
|
|
1316
|
-
return { from: first.to, to: last.name == "CloseTag" ? last.from : node.to };
|
|
1317
|
-
}
|
|
1318
|
-
}),
|
|
1319
|
-
/*@__PURE__*/bracketMatchingHandle.add({
|
|
1320
|
-
"OpenTag CloseTag": node => node.getChild("TagName")
|
|
1321
|
-
})
|
|
1322
|
-
]
|
|
1323
|
-
}),
|
|
1324
|
-
languageData: {
|
|
1325
|
-
commentTokens: { block: { open: "<!--", close: "-->" } },
|
|
1326
|
-
indentOnInput: /^\s*<\/\w+\W$/,
|
|
1327
|
-
wordChars: "-._"
|
|
1328
|
-
}
|
|
1329
|
-
});
|
|
1330
|
-
/**
|
|
1331
|
-
A language provider based on the [Lezer HTML
|
|
1332
|
-
parser](https://github.com/lezer-parser/html), extended with the
|
|
1333
|
-
JavaScript and CSS parsers to parse the content of `<script>` and
|
|
1334
|
-
`<style>` tags.
|
|
1335
|
-
*/
|
|
1336
|
-
const htmlLanguage = /*@__PURE__*/htmlPlain.configure({
|
|
1337
|
-
wrap: /*@__PURE__*/configureNesting(defaultNesting, defaultAttrs)
|
|
1338
|
-
});
|
|
1339
|
-
/**
|
|
1340
|
-
Language support for HTML, including
|
|
1341
|
-
[`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
|
|
1342
|
-
CSS support extensions.
|
|
1343
|
-
*/
|
|
1344
|
-
function html(config = {}) {
|
|
1345
|
-
let dialect = "", wrap;
|
|
1346
|
-
if (config.matchClosingTags === false)
|
|
1347
|
-
dialect = "noMatch";
|
|
1348
|
-
if (config.selfClosingTags === true)
|
|
1349
|
-
dialect = (dialect ? dialect + " " : "") + "selfClosing";
|
|
1350
|
-
if (config.nestedLanguages && config.nestedLanguages.length ||
|
|
1351
|
-
config.nestedAttributes && config.nestedAttributes.length)
|
|
1352
|
-
wrap = configureNesting((config.nestedLanguages || []).concat(defaultNesting), (config.nestedAttributes || []).concat(defaultAttrs));
|
|
1353
|
-
let lang = wrap ? htmlPlain.configure({ wrap, dialect }) : dialect ? htmlLanguage.configure({ dialect }) : htmlLanguage;
|
|
1354
|
-
return new LanguageSupport(lang, [
|
|
1355
|
-
htmlLanguage.data.of({ autocomplete: htmlCompletionSourceWith(config) }),
|
|
1356
|
-
config.autoCloseTags !== false ? autoCloseTags : [],
|
|
1357
|
-
javascript().support,
|
|
1358
|
-
css().support
|
|
1359
|
-
]);
|
|
1360
|
-
}
|
|
1361
|
-
const selfClosers = /*@__PURE__*/new Set(/*@__PURE__*/"area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
|
|
1362
|
-
/**
|
|
1363
|
-
Extension that will automatically insert close tags when a `>` or
|
|
1364
|
-
`/` is typed.
|
|
1365
|
-
*/
|
|
1366
|
-
const autoCloseTags = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text) => {
|
|
1367
|
-
if (view.composing || view.state.readOnly || from != to || (text != ">" && text != "/") ||
|
|
1368
|
-
!htmlLanguage.isActiveAt(view.state, from, -1))
|
|
1369
|
-
return false;
|
|
1370
|
-
let { state } = view;
|
|
1371
|
-
let changes = state.changeByRange(range => {
|
|
1372
|
-
var _a, _b, _c;
|
|
1373
|
-
let { head } = range, around = syntaxTree(state).resolveInner(head, -1), name;
|
|
1374
|
-
if (around.name == "TagName" || around.name == "StartTag")
|
|
1375
|
-
around = around.parent;
|
|
1376
|
-
if (text == ">" && around.name == "OpenTag") {
|
|
1377
|
-
if (((_b = (_a = around.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != "CloseTag" &&
|
|
1378
|
-
(name = elementName(state.doc, around.parent, head)) &&
|
|
1379
|
-
!selfClosers.has(name)) {
|
|
1380
|
-
let hasRightBracket = view.state.doc.sliceString(head, head + 1) === ">";
|
|
1381
|
-
let insert = `${hasRightBracket ? "" : ">"}</${name}>`;
|
|
1382
|
-
return { range: EditorSelection.cursor(head + 1), changes: { from: head + (hasRightBracket ? 1 : 0), insert } };
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
else if (text == "/" && around.name == "OpenTag") {
|
|
1386
|
-
let empty = around.parent, base = empty === null || empty === void 0 ? void 0 : empty.parent;
|
|
1387
|
-
if (empty.from == head - 1 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != "CloseTag" &&
|
|
1388
|
-
(name = elementName(state.doc, base, head)) &&
|
|
1389
|
-
!selfClosers.has(name)) {
|
|
1390
|
-
let hasRightBracket = view.state.doc.sliceString(head, head + 1) === ">";
|
|
1391
|
-
let insert = `/${name}${hasRightBracket ? "" : ">"}`;
|
|
1392
|
-
let pos = head + insert.length + (hasRightBracket ? 1 : 0);
|
|
1393
|
-
return { range: EditorSelection.cursor(pos), changes: { from: head, insert } };
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
return { range };
|
|
1397
|
-
});
|
|
1398
|
-
if (changes.changes.empty)
|
|
1399
|
-
return false;
|
|
1400
|
-
view.dispatch(changes, { userEvent: "input.type", scrollIntoView: true });
|
|
1401
|
-
return true;
|
|
1402
|
-
});
|
|
1403
|
-
|
|
1404
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
1405
|
-
__proto__: null,
|
|
1406
|
-
autoCloseTags: autoCloseTags,
|
|
1407
|
-
html: html,
|
|
1408
|
-
htmlCompletionSourceWith: htmlCompletionSourceWith,
|
|
1409
|
-
htmlLanguage: htmlLanguage,
|
|
1410
|
-
htmlPlain: htmlPlain
|
|
1411
|
-
});
|
|
1412
|
-
|
|
1413
|
-
export { CodeLanguage, EditorState, EditorView, script as OrCodeV3, html, javascript, json, jsonParseLinter };
|