@oneflowui/ui 0.4.2 → 0.4.4
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/tableWorker-CTsbCPPP.js +1 -0
- package/dist/components/ContextMenu/index.vue.d.ts +2 -1
- package/dist/components/ContextMenu/index.vue.js +7 -0
- package/dist/components/ContextMenu/index.vue2.js +92 -0
- package/dist/components/Dashboard/charts/BarChart.vue.js +7 -0
- package/dist/components/Dashboard/charts/BarChart.vue2.js +43 -0
- package/dist/components/Dashboard/charts/DoughnutChart.vue.js +23 -0
- package/dist/components/Dashboard/charts/DoughnutChart.vue2.js +4 -0
- package/dist/components/Dashboard/charts/NumberCard.vue.js +7 -0
- package/dist/components/Dashboard/charts/NumberCard.vue2.js +41 -0
- package/dist/components/Dashboard/charts/PieChart.vue.js +7 -0
- package/dist/components/Dashboard/charts/PieChart.vue2.js +53 -0
- package/dist/components/Dashboard/charts/TableChart.vue.js +7 -0
- package/dist/components/Dashboard/charts/TableChart.vue2.js +50 -0
- package/dist/components/Dashboard/index.vue.js +7 -0
- package/dist/components/Dashboard/index.vue2.js +104 -0
- package/dist/components/ai/AiMessageBubble.vue.js +7 -0
- package/dist/components/ai/AiMessageBubble.vue2.js +47 -0
- package/dist/components/ai/AiMessageList.vue.js +7 -0
- package/dist/components/ai/AiMessageList.vue2.js +78 -0
- package/dist/components/ai/AiSender.vue.js +7 -0
- package/dist/components/ai/AiSender.vue2.js +86 -0
- package/dist/components/ai/AiStreamingCursor.vue.js +7 -0
- package/dist/components/ai/AiStreamingCursor.vue2.js +16 -0
- package/dist/components/ai/AiThinking.vue.js +7 -0
- package/dist/components/ai/AiThinking.vue2.js +19 -0
- package/dist/components/ai/UserMessageBubble.vue.js +7 -0
- package/dist/components/ai/UserMessageBubble.vue2.js +34 -0
- package/dist/components/auxiliary/ColorPanel.vue.js +7 -0
- package/dist/components/auxiliary/ColorPanel.vue2.js +65 -0
- package/dist/components/auxiliary/FileUpload.vue.js +7 -0
- package/dist/components/auxiliary/FileUpload.vue2.js +90 -0
- package/dist/components/auxiliary/PersonPanel.vue.js +7 -0
- package/dist/components/auxiliary/PersonPanel.vue2.js +66 -0
- package/dist/components/base/Accordion.vue.js +7 -0
- package/dist/components/base/Accordion.vue2.js +78 -0
- package/dist/components/base/AddViewBtn.vue.js +7 -0
- package/dist/components/base/AddViewBtn.vue2.js +25 -0
- package/dist/components/base/Avatar.vue.js +7 -0
- package/dist/components/base/Avatar.vue2.js +72 -0
- package/dist/components/base/Badge.vue.js +7 -0
- package/dist/components/base/Badge.vue2.js +70 -0
- package/dist/components/base/ButtonGroup.vue.js +7 -0
- package/dist/components/base/ButtonGroup.vue2.js +40 -0
- package/dist/components/base/ChainItem.vue.js +7 -0
- package/dist/components/base/ChainItem.vue2.js +68 -0
- package/dist/components/base/DescBlock.vue.js +7 -0
- package/dist/components/base/DescBlock.vue2.js +13 -0
- package/dist/components/base/DropdownMenu.vue.js +7 -0
- package/dist/components/base/DropdownMenu.vue2.js +91 -0
- package/dist/components/base/EmptyState.vue.js +7 -0
- package/dist/components/base/EmptyState.vue2.js +38 -0
- package/dist/components/base/InfoCard.vue.js +7 -0
- package/dist/components/base/InfoCard.vue2.js +167 -0
- package/dist/components/base/MonitorItem.vue.d.ts +1 -1
- package/dist/components/base/MonitorItem.vue.js +7 -0
- package/dist/components/base/MonitorItem.vue2.js +56 -0
- package/dist/components/base/PersonaCard.vue.d.ts +2 -1
- package/dist/components/base/PersonaCard.vue.js +7 -0
- package/dist/components/base/PersonaCard.vue2.js +185 -0
- package/dist/components/base/ProgressBar.vue.js +7 -0
- package/dist/components/base/ProgressBar.vue2.js +49 -0
- package/dist/components/base/RangeSlider.vue.js +7 -0
- package/dist/components/base/RangeSlider.vue2.js +35 -0
- package/dist/components/base/RefTag.vue.d.ts +2 -2
- package/dist/components/base/RefTag.vue.js +7 -0
- package/dist/components/base/RefTag.vue2.js +52 -0
- package/dist/components/base/SearchHighlight.vue.d.ts +6 -0
- package/dist/components/base/SearchHighlight.vue.js +7 -0
- package/dist/components/base/SearchHighlight.vue2.js +21 -0
- package/dist/components/base/SectionBlock.vue.js +7 -0
- package/dist/components/base/SectionBlock.vue2.js +115 -0
- package/dist/components/base/SelectBadge.vue.js +7 -0
- package/dist/components/base/SelectBadge.vue2.js +81 -0
- package/dist/components/base/StatisticCard.vue.js +7 -0
- package/dist/components/base/StatisticCard.vue2.js +57 -0
- package/dist/components/base/StatusIndicator.vue.js +7 -0
- package/dist/components/base/StatusIndicator.vue2.js +54 -0
- package/dist/components/base/StatusSummary.vue.js +7 -0
- package/dist/components/base/StatusSummary.vue2.js +64 -0
- package/dist/components/base/Stepper.vue.js +7 -0
- package/dist/components/base/Stepper.vue2.js +70 -0
- package/dist/components/base/Switch.vue.js +7 -0
- package/dist/components/base/Switch.vue2.js +43 -0
- package/dist/components/base/ToolbarBtn.vue.d.ts +2 -1
- package/dist/components/base/ToolbarBtn.vue.js +7 -0
- package/dist/components/base/ToolbarBtn.vue2.js +30 -0
- package/dist/components/base/ViewModeGroup.vue.d.ts +2 -1
- package/dist/components/base/ViewModeGroup.vue.js +7 -0
- package/dist/components/base/ViewModeGroup.vue2.js +32 -0
- package/dist/components/base/ViewSwitcher.vue.d.ts +2 -1
- package/dist/components/base/ViewSwitcher.vue.js +7 -0
- package/dist/components/base/ViewSwitcher.vue2.js +73 -0
- package/dist/components/base/ViewTab.vue.js +7 -0
- package/dist/components/base/ViewTab.vue2.js +42 -0
- package/dist/components/base/index.d.ts +1 -0
- package/dist/components/breadcrumb/Breadcrumb.vue.js +7 -0
- package/dist/components/breadcrumb/Breadcrumb.vue2.js +52 -0
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +7 -0
- package/dist/components/breadcrumb/BreadcrumbItem.vue2.js +35 -0
- package/dist/components/detail/CommentItem.vue.js +7 -0
- package/dist/components/detail/CommentItem.vue2.js +29 -0
- package/dist/components/detail/DetailLayout.vue.js +7 -0
- package/dist/components/detail/DetailLayout.vue2.js +118 -0
- package/dist/components/detail/PropPanel.vue.js +7 -0
- package/dist/components/detail/PropPanel.vue2.js +51 -0
- package/dist/components/detail/PropRow.vue.js +7 -0
- package/dist/components/detail/PropRow.vue2.js +51 -0
- package/dist/components/editor/BlockQuote.vue.js +7 -0
- package/dist/components/editor/BlockQuote.vue2.js +45 -0
- package/dist/components/editor/CodeBlock.vue.js +7 -0
- package/dist/components/editor/CodeBlock.vue2.js +48 -0
- package/dist/components/editor/ContentBlock.vue.js +7 -0
- package/dist/components/editor/ContentBlock.vue2.js +49 -0
- package/dist/components/editor/RefLink.vue.js +7 -0
- package/dist/components/editor/RefLink.vue2.js +37 -0
- package/dist/components/editor/RichTextEditor.vue.js +7 -0
- package/dist/components/editor/RichTextEditor.vue2.js +132 -0
- package/dist/components/field/FieldAttachment.vue.d.ts +17 -0
- package/dist/components/field/FieldAttachment.vue.js +7 -0
- package/dist/components/field/FieldAttachment.vue2.js +69 -0
- package/dist/components/field/FieldAutoNumber.vue.d.ts +7 -0
- package/dist/components/field/FieldAutoNumber.vue.js +7 -0
- package/dist/components/field/FieldAutoNumber.vue2.js +15 -0
- package/dist/components/field/FieldCheckbox.vue.js +7 -0
- package/dist/{FieldCheckbox-CV3QtQ4Y.js → components/field/FieldCheckbox.vue2.js} +8 -9
- package/dist/components/field/FieldCreator.vue.d.ts +7 -0
- package/dist/components/field/FieldCreator.vue.js +7 -0
- package/dist/components/field/FieldCreator.vue2.js +24 -0
- package/dist/components/field/FieldCurrency.vue.d.ts +17 -0
- package/dist/components/field/FieldCurrency.vue.js +7 -0
- package/dist/components/field/FieldCurrency.vue2.js +42 -0
- package/dist/components/field/FieldDate.vue.js +7 -0
- package/dist/components/field/FieldDate.vue2.js +36 -0
- package/dist/components/field/FieldDatetime.vue.js +7 -0
- package/dist/{FieldDatetime-B52GfWrK.js → components/field/FieldDatetime.vue2.js} +11 -12
- package/dist/components/field/FieldEmail.vue.js +7 -0
- package/dist/{FieldEmail-UREMoue-.js → components/field/FieldEmail.vue2.js} +12 -13
- package/dist/components/field/FieldMarkdownPreview.vue.d.ts +13 -0
- package/dist/components/field/FieldMarkdownPreview.vue.js +7 -0
- package/dist/components/field/FieldMarkdownPreview.vue2.js +37 -0
- package/dist/components/field/FieldMultiSelect.vue.js +7 -0
- package/dist/{FieldMultiSelect-Dlay1Fop.js → components/field/FieldMultiSelect.vue2.js} +32 -33
- package/dist/components/field/FieldNumber.vue.js +7 -0
- package/dist/{FieldNumber-BjhfFhs6.js → components/field/FieldNumber.vue2.js} +8 -9
- package/dist/components/field/FieldPhone.vue.d.ts +17 -0
- package/dist/components/field/FieldPhone.vue.js +7 -0
- package/dist/components/field/FieldPhone.vue2.js +34 -0
- package/dist/components/field/FieldProgress.vue.d.ts +15 -0
- package/dist/components/field/FieldProgress.vue.js +7 -0
- package/dist/components/field/FieldProgress.vue2.js +40 -0
- package/dist/components/field/FieldRating.vue.js +7 -0
- package/dist/components/field/FieldRating.vue2.js +31 -0
- package/dist/components/field/FieldRelation.vue.d.ts +17 -0
- package/dist/components/field/FieldRelation.vue.js +7 -0
- package/dist/components/field/FieldRelation.vue2.js +67 -0
- package/dist/components/field/FieldRichText.vue.d.ts +17 -0
- package/dist/components/field/FieldRichText.vue.js +7 -0
- package/dist/components/field/FieldRichText.vue2.js +65 -0
- package/dist/components/field/FieldSelect.vue.js +7 -0
- package/dist/{FieldSelect-B39Ad8VH.js → components/field/FieldSelect.vue2.js} +44 -44
- package/dist/components/field/FieldText.vue.js +7 -0
- package/dist/{FieldText-Ry7f72Ug.js → components/field/FieldText.vue2.js} +13 -14
- package/dist/components/field/FieldUrl.vue.js +7 -0
- package/dist/components/field/FieldUrl.vue2.js +33 -0
- package/dist/components/form/FormDesigner.vue.js +7 -0
- package/dist/components/form/FormDesigner.vue2.js +255 -0
- package/dist/components/gallery/GalleryCard.vue.js +7 -0
- package/dist/components/gallery/GalleryCard.vue2.js +87 -0
- package/dist/components/gallery/GalleryView.vue.d.ts +6 -2
- package/dist/components/gallery/GalleryView.vue.js +7 -0
- package/dist/components/gallery/GalleryView.vue2.js +58 -0
- package/dist/components/kanban/KanbanBoard.vue.d.ts +5 -1
- package/dist/components/kanban/KanbanBoard.vue.js +7 -0
- package/dist/components/kanban/KanbanBoard.vue2.js +119 -0
- package/dist/components/kanban/KanbanCard.vue.js +7 -0
- package/dist/components/kanban/KanbanCard.vue2.js +56 -0
- package/dist/components/kanban/KanbanColumn.vue.js +7 -0
- package/dist/components/kanban/KanbanColumn.vue2.js +103 -0
- package/dist/components/kanban/QuickAddRow.vue.js +7 -0
- package/dist/components/kanban/QuickAddRow.vue2.js +58 -0
- package/dist/components/layout/AppLayout.vue.js +7 -0
- package/dist/components/layout/AppLayout.vue2.js +82 -0
- package/dist/components/layout/Navbar.vue.js +7 -0
- package/dist/components/layout/Navbar.vue2.js +70 -0
- package/dist/components/layout/Sidebar.vue.js +7 -0
- package/dist/components/layout/Sidebar.vue2.js +88 -0
- package/dist/components/layout/StatusBar.vue.js +7 -0
- package/dist/components/layout/StatusBar.vue2.js +37 -0
- package/dist/components/mermaid/MermaidChart.vue.js +7 -0
- package/dist/components/mermaid/MermaidChart.vue2.js +75 -0
- package/dist/components/overlay/Dialog.vue.js +7 -0
- package/dist/components/overlay/Dialog.vue2.js +89 -0
- package/dist/components/overlay/Drawer.vue.js +7 -0
- package/dist/components/overlay/Drawer.vue2.js +96 -0
- package/dist/components/overlay/Modal.vue.js +7 -0
- package/dist/components/overlay/Modal.vue2.js +99 -0
- package/dist/components/overlay/SidePanel.vue.js +7 -0
- package/dist/components/overlay/SidePanel.vue2.js +121 -0
- package/dist/components/split/SplitPane.vue.js +8 -0
- package/dist/components/split/SplitPane.vue2.js +68 -0
- package/dist/components/table/ColumnHeaderMenu.vue.d.ts +33 -0
- package/dist/components/table/ColumnHeaderMenu.vue.js +7 -0
- package/dist/components/table/ColumnHeaderMenu.vue2.js +153 -0
- package/dist/components/table/DataTable.vue.d.ts +116 -25
- package/dist/components/table/DataTable.vue.js +7 -0
- package/dist/components/table/DataTable.vue2.js +821 -0
- package/dist/components/table/DetailSheet.vue.d.ts +43 -0
- package/dist/components/table/DetailSheet.vue.js +7 -0
- package/dist/components/table/DetailSheet.vue2.js +140 -0
- package/dist/components/table/FieldCell.vue.d.ts +1 -1
- package/dist/components/table/FieldCell.vue.js +7 -0
- package/dist/components/table/FieldCell.vue2.js +86 -0
- package/dist/components/table/FieldTypePicker.vue.d.ts +15 -0
- package/dist/components/table/FieldTypePicker.vue.js +7 -0
- package/dist/components/table/FieldTypePicker.vue2.js +92 -0
- package/dist/components/table/MobileListView.vue.d.ts +24 -0
- package/dist/components/table/MobileListView.vue.js +7 -0
- package/dist/components/table/MobileListView.vue2.js +90 -0
- package/dist/components/table/NewRowBtn.vue.js +7 -0
- package/dist/components/table/NewRowBtn.vue2.js +22 -0
- package/dist/components/table/TableColumnManager.vue.js +7 -0
- package/dist/components/table/TableColumnManager.vue2.js +100 -0
- package/dist/components/table/TableDataRow.vue.js +7 -0
- package/dist/components/table/TableDataRow.vue2.js +115 -0
- package/dist/components/table/TableFilterPanel.vue.js +7 -0
- package/dist/components/table/TableFilterPanel.vue2.js +142 -0
- package/dist/components/table/TableGroupRow.vue.d.ts +5 -0
- package/dist/components/table/TableGroupRow.vue.js +7 -0
- package/dist/components/table/TableGroupRow.vue2.js +58 -0
- package/dist/components/table/TableHeaderRow.vue.d.ts +16 -0
- package/dist/components/table/TableHeaderRow.vue.js +7 -0
- package/dist/components/table/TableHeaderRow.vue2.js +90 -0
- package/dist/components/table/TableToolbar.vue.d.ts +118 -0
- package/dist/components/table/TableToolbar.vue.js +7 -0
- package/dist/components/table/TableToolbar.vue2.js +273 -0
- package/dist/components/table/index.d.ts +5 -0
- package/dist/components/tabs/TabPanel.vue.js +7 -0
- package/dist/components/tabs/TabPanel.vue2.js +26 -0
- package/dist/components/tabs/Tabs.vue.js +7 -0
- package/dist/components/tabs/Tabs.vue2.js +87 -0
- package/dist/components/timeline/ActivityTimeline.vue.js +7 -0
- package/dist/components/timeline/ActivityTimeline.vue2.js +104 -0
- package/dist/components/timeline/GanttRow.vue.js +7 -0
- package/dist/components/timeline/GanttRow.vue2.js +110 -0
- package/dist/components/timeline/GanttTimeline.vue.js +7 -0
- package/dist/components/timeline/GanttTimeline.vue2.js +186 -0
- package/dist/components/toast/ToastContainer.vue.js +34 -0
- package/dist/components/toast/ToastContainer.vue3.js +5 -0
- package/dist/components/toast/ToastItem.vue.js +7 -0
- package/dist/components/toast/ToastItem.vue2.js +78 -0
- package/dist/composables/index.d.ts +19 -0
- package/dist/composables/useAiChat.js +103 -0
- package/dist/composables/useBadge.js +76 -0
- package/dist/composables/useBreakpoint.d.ts +2 -1
- package/dist/composables/useBreakpoint.js +18 -0
- package/dist/composables/useColumnResize.d.ts +19 -0
- package/dist/composables/useColumnResize.js +58 -0
- package/dist/composables/useDraftRows.d.ts +33 -0
- package/dist/composables/useDraftRows.js +103 -0
- package/dist/composables/useFixedColumns.d.ts +25 -0
- package/dist/composables/useFixedColumns.js +61 -0
- package/dist/composables/useFocusTrap.d.ts +10 -0
- package/dist/composables/useFocusTrap.js +37 -0
- package/dist/composables/useInlineEdit.js +28 -0
- package/dist/composables/useKeyboardNavigation.d.ts +45 -0
- package/dist/composables/useKeyboardNavigation.js +140 -0
- package/dist/composables/useMarkdown.js +69 -0
- package/dist/composables/useRowDrag.d.ts +32 -0
- package/dist/composables/useRowDrag.js +85 -0
- package/dist/composables/useSchemaEngine.d.ts +31 -0
- package/dist/composables/useSchemaEngine.js +129 -0
- package/dist/composables/useSearch.d.ts +30 -0
- package/dist/composables/useSearch.js +59 -0
- package/dist/composables/useStream.js +80 -0
- package/dist/composables/useSupabaseProvider.d.ts +70 -0
- package/dist/composables/useSupabaseProvider.js +126 -0
- package/dist/composables/useTable.d.ts +3 -0
- package/dist/composables/useTable.js +135 -0
- package/dist/composables/useTableColumns.js +24 -0
- package/dist/composables/useTableData.js +16 -0
- package/dist/composables/useTableFilter.js +97 -0
- package/dist/composables/useTableGroup.d.ts +14 -1
- package/dist/composables/useTableGroup.js +70 -0
- package/dist/composables/useToast.js +38 -0
- package/dist/composables/useTypewriter.js +56 -0
- package/dist/composables/useViewPersistence.d.ts +98 -0
- package/dist/composables/useViewPersistence.js +141 -0
- package/dist/composables/useVirtualList.d.ts +4 -1
- package/dist/composables/useVirtualList.js +140 -0
- package/dist/composables/useWorkerSort.d.ts +14 -0
- package/dist/composables/useWorkerSort.js +61 -0
- package/dist/constants/table.js +11 -0
- package/dist/index.d.ts +28 -4
- package/dist/index.js +349 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +377 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +923 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +151 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +240 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +658 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +38 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +216 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +13 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +399 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +305 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +615 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +753 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +219 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +183 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +63 -2
- package/dist/types/index.js +94 -0
- package/dist/types/table-internal.d.ts +64 -0
- package/dist/utils/aggregation.d.ts +5 -0
- package/dist/utils/aggregation.js +38 -0
- package/dist/utils/icon.js +15 -0
- package/dist/utils/supabaseAdapter.d.ts +48 -0
- package/dist/utils/supabaseAdapter.js +76 -0
- package/dist/utils/supabaseSchema.d.ts +81 -0
- package/dist/utils/supabaseSchema.js +202 -0
- package/dist/workers/tableWorker.d.ts +31 -0
- package/package.json +13 -6
- package/dist/FieldDate-Bljx4jb7.js +0 -34
- package/dist/FieldRating-BKHUu-A1.js +0 -32
- package/dist/FieldUrl-bv0EB9sh.js +0 -34
- package/dist/index-DQph5iTq.js +0 -12936
- package/dist/oneflow-ui.js +0 -111
- package/dist/oneflow-ui.umd.cjs +0 -13
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
function g(n) {
|
|
2
|
+
const e = n.regex, a = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), o = /[\p{L}0-9._:-]+/u, s = {
|
|
3
|
+
className: "symbol",
|
|
4
|
+
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
5
|
+
}, t = {
|
|
6
|
+
begin: /\s/,
|
|
7
|
+
contains: [
|
|
8
|
+
{
|
|
9
|
+
className: "keyword",
|
|
10
|
+
begin: /#?[a-z_][a-z1-9_-]+/,
|
|
11
|
+
illegal: /\n/
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}, r = n.inherit(t, {
|
|
15
|
+
begin: /\(/,
|
|
16
|
+
end: /\)/
|
|
17
|
+
}), l = n.inherit(n.APOS_STRING_MODE, { className: "string" }), c = n.inherit(n.QUOTE_STRING_MODE, { className: "string" }), i = {
|
|
18
|
+
endsWithParent: !0,
|
|
19
|
+
illegal: /</,
|
|
20
|
+
relevance: 0,
|
|
21
|
+
contains: [
|
|
22
|
+
{
|
|
23
|
+
className: "attr",
|
|
24
|
+
begin: o,
|
|
25
|
+
relevance: 0
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
begin: /=\s*/,
|
|
29
|
+
relevance: 0,
|
|
30
|
+
contains: [
|
|
31
|
+
{
|
|
32
|
+
className: "string",
|
|
33
|
+
endsParent: !0,
|
|
34
|
+
variants: [
|
|
35
|
+
{
|
|
36
|
+
begin: /"/,
|
|
37
|
+
end: /"/,
|
|
38
|
+
contains: [s]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
begin: /'/,
|
|
42
|
+
end: /'/,
|
|
43
|
+
contains: [s]
|
|
44
|
+
},
|
|
45
|
+
{ begin: /[^\s"'=<>`]+/ }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
name: "HTML, XML",
|
|
54
|
+
aliases: [
|
|
55
|
+
"html",
|
|
56
|
+
"xhtml",
|
|
57
|
+
"rss",
|
|
58
|
+
"atom",
|
|
59
|
+
"xjb",
|
|
60
|
+
"xsd",
|
|
61
|
+
"xsl",
|
|
62
|
+
"plist",
|
|
63
|
+
"wsf",
|
|
64
|
+
"svg"
|
|
65
|
+
],
|
|
66
|
+
case_insensitive: !0,
|
|
67
|
+
unicodeRegex: !0,
|
|
68
|
+
contains: [
|
|
69
|
+
{
|
|
70
|
+
className: "meta",
|
|
71
|
+
begin: /<![a-z]/,
|
|
72
|
+
end: />/,
|
|
73
|
+
relevance: 10,
|
|
74
|
+
contains: [
|
|
75
|
+
t,
|
|
76
|
+
c,
|
|
77
|
+
l,
|
|
78
|
+
r,
|
|
79
|
+
{
|
|
80
|
+
begin: /\[/,
|
|
81
|
+
end: /\]/,
|
|
82
|
+
contains: [
|
|
83
|
+
{
|
|
84
|
+
className: "meta",
|
|
85
|
+
begin: /<![a-z]/,
|
|
86
|
+
end: />/,
|
|
87
|
+
contains: [
|
|
88
|
+
t,
|
|
89
|
+
r,
|
|
90
|
+
c,
|
|
91
|
+
l
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
n.COMMENT(
|
|
99
|
+
/<!--/,
|
|
100
|
+
/-->/,
|
|
101
|
+
{ relevance: 10 }
|
|
102
|
+
),
|
|
103
|
+
{
|
|
104
|
+
begin: /<!\[CDATA\[/,
|
|
105
|
+
end: /\]\]>/,
|
|
106
|
+
relevance: 10
|
|
107
|
+
},
|
|
108
|
+
s,
|
|
109
|
+
// xml processing instructions
|
|
110
|
+
{
|
|
111
|
+
className: "meta",
|
|
112
|
+
end: /\?>/,
|
|
113
|
+
variants: [
|
|
114
|
+
{
|
|
115
|
+
begin: /<\?xml/,
|
|
116
|
+
relevance: 10,
|
|
117
|
+
contains: [
|
|
118
|
+
c
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
begin: /<\?[a-z][a-z0-9]+/
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
className: "tag",
|
|
128
|
+
/*
|
|
129
|
+
The lookahead pattern (?=...) ensures that 'begin' only matches
|
|
130
|
+
'<style' as a single word, followed by a whitespace or an
|
|
131
|
+
ending bracket.
|
|
132
|
+
*/
|
|
133
|
+
begin: /<style(?=\s|>)/,
|
|
134
|
+
end: />/,
|
|
135
|
+
keywords: { name: "style" },
|
|
136
|
+
contains: [i],
|
|
137
|
+
starts: {
|
|
138
|
+
end: /<\/style>/,
|
|
139
|
+
returnEnd: !0,
|
|
140
|
+
subLanguage: [
|
|
141
|
+
"css",
|
|
142
|
+
"xml"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
className: "tag",
|
|
148
|
+
// See the comment in the <style tag about the lookahead pattern
|
|
149
|
+
begin: /<script(?=\s|>)/,
|
|
150
|
+
end: />/,
|
|
151
|
+
keywords: { name: "script" },
|
|
152
|
+
contains: [i],
|
|
153
|
+
starts: {
|
|
154
|
+
end: /<\/script>/,
|
|
155
|
+
returnEnd: !0,
|
|
156
|
+
subLanguage: [
|
|
157
|
+
"javascript",
|
|
158
|
+
"handlebars",
|
|
159
|
+
"xml"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
// we need this for now for jSX
|
|
164
|
+
{
|
|
165
|
+
className: "tag",
|
|
166
|
+
begin: /<>|<\/>/
|
|
167
|
+
},
|
|
168
|
+
// open tag
|
|
169
|
+
{
|
|
170
|
+
className: "tag",
|
|
171
|
+
begin: e.concat(
|
|
172
|
+
/</,
|
|
173
|
+
e.lookahead(e.concat(
|
|
174
|
+
a,
|
|
175
|
+
// <tag/>
|
|
176
|
+
// <tag>
|
|
177
|
+
// <tag ...
|
|
178
|
+
e.either(/\/>/, />/, /\s/)
|
|
179
|
+
))
|
|
180
|
+
),
|
|
181
|
+
end: /\/?>/,
|
|
182
|
+
contains: [
|
|
183
|
+
{
|
|
184
|
+
className: "name",
|
|
185
|
+
begin: a,
|
|
186
|
+
relevance: 0,
|
|
187
|
+
starts: i
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
// close tag
|
|
192
|
+
{
|
|
193
|
+
className: "tag",
|
|
194
|
+
begin: e.concat(
|
|
195
|
+
/<\//,
|
|
196
|
+
e.lookahead(e.concat(
|
|
197
|
+
a,
|
|
198
|
+
/>/
|
|
199
|
+
))
|
|
200
|
+
),
|
|
201
|
+
contains: [
|
|
202
|
+
{
|
|
203
|
+
className: "name",
|
|
204
|
+
begin: a,
|
|
205
|
+
relevance: 0
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
begin: />/,
|
|
209
|
+
relevance: 0,
|
|
210
|
+
endsParent: !0
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
export {
|
|
218
|
+
g as default
|
|
219
|
+
};
|
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
function A(e) {
|
|
2
|
+
const a = "true false yes no null", n = "[\\w#;/?:@&=+$,.~*'()[\\]]+", E = {
|
|
3
|
+
className: "attr",
|
|
4
|
+
variants: [
|
|
5
|
+
// added brackets support and special char support
|
|
6
|
+
{ begin: /[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/ },
|
|
7
|
+
{
|
|
8
|
+
// double quoted keys - with brackets and special char support
|
|
9
|
+
begin: /"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
// single quoted keys - with brackets and special char support
|
|
13
|
+
begin: /'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}, l = {
|
|
17
|
+
className: "template-variable",
|
|
18
|
+
variants: [
|
|
19
|
+
{
|
|
20
|
+
// jinja templates Ansible
|
|
21
|
+
begin: /\{\{/,
|
|
22
|
+
end: /\}\}/
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
// Ruby i18n
|
|
26
|
+
begin: /%\{/,
|
|
27
|
+
end: /\}/
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}, r = {
|
|
31
|
+
className: "string",
|
|
32
|
+
relevance: 0,
|
|
33
|
+
begin: /'/,
|
|
34
|
+
end: /'/,
|
|
35
|
+
contains: [
|
|
36
|
+
{
|
|
37
|
+
match: /''/,
|
|
38
|
+
scope: "char.escape",
|
|
39
|
+
relevance: 0
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}, c = {
|
|
43
|
+
className: "string",
|
|
44
|
+
relevance: 0,
|
|
45
|
+
variants: [
|
|
46
|
+
{
|
|
47
|
+
begin: /"/,
|
|
48
|
+
end: /"/
|
|
49
|
+
},
|
|
50
|
+
{ begin: /\S+/ }
|
|
51
|
+
],
|
|
52
|
+
contains: [
|
|
53
|
+
e.BACKSLASH_ESCAPE,
|
|
54
|
+
l
|
|
55
|
+
]
|
|
56
|
+
}, b = e.inherit(c, { variants: [
|
|
57
|
+
{
|
|
58
|
+
begin: /'/,
|
|
59
|
+
end: /'/,
|
|
60
|
+
contains: [
|
|
61
|
+
{
|
|
62
|
+
begin: /''/,
|
|
63
|
+
relevance: 0
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
begin: /"/,
|
|
69
|
+
end: /"/
|
|
70
|
+
},
|
|
71
|
+
{ begin: /[^\s,{}[\]]+/ }
|
|
72
|
+
] }), g = {
|
|
73
|
+
className: "number",
|
|
74
|
+
begin: "\\b" + "[0-9]{4}(-[0-9][0-9]){0,2}" + "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?" + "(\\.[0-9]*)?" + "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?" + "\\b"
|
|
75
|
+
}, s = {
|
|
76
|
+
end: ",",
|
|
77
|
+
endsWithParent: !0,
|
|
78
|
+
excludeEnd: !0,
|
|
79
|
+
keywords: a,
|
|
80
|
+
relevance: 0
|
|
81
|
+
}, N = {
|
|
82
|
+
begin: /\{/,
|
|
83
|
+
end: /\}/,
|
|
84
|
+
contains: [s],
|
|
85
|
+
illegal: "\\n",
|
|
86
|
+
relevance: 0
|
|
87
|
+
}, o = {
|
|
88
|
+
begin: "\\[",
|
|
89
|
+
end: "\\]",
|
|
90
|
+
contains: [s],
|
|
91
|
+
illegal: "\\n",
|
|
92
|
+
relevance: 0
|
|
93
|
+
}, i = [
|
|
94
|
+
E,
|
|
95
|
+
{
|
|
96
|
+
className: "meta",
|
|
97
|
+
begin: "^---\\s*$",
|
|
98
|
+
relevance: 10
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
// multi line string
|
|
102
|
+
// Blocks start with a | or > followed by a newline
|
|
103
|
+
//
|
|
104
|
+
// Indentation of subsequent lines must be the same to
|
|
105
|
+
// be considered part of the block
|
|
106
|
+
className: "string",
|
|
107
|
+
begin: "[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
// Ruby/Rails erb
|
|
111
|
+
begin: "<%[%=-]?",
|
|
112
|
+
end: "[%-]?%>",
|
|
113
|
+
subLanguage: "ruby",
|
|
114
|
+
excludeBegin: !0,
|
|
115
|
+
excludeEnd: !0,
|
|
116
|
+
relevance: 0
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
// named tags
|
|
120
|
+
className: "type",
|
|
121
|
+
begin: "!\\w+!" + n
|
|
122
|
+
},
|
|
123
|
+
// https://yaml.org/spec/1.2/spec.html#id2784064
|
|
124
|
+
{
|
|
125
|
+
// verbatim tags
|
|
126
|
+
className: "type",
|
|
127
|
+
begin: "!<" + n + ">"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
// primary tags
|
|
131
|
+
className: "type",
|
|
132
|
+
begin: "!" + n
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
// secondary tags
|
|
136
|
+
className: "type",
|
|
137
|
+
begin: "!!" + n
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
// fragment id &ref
|
|
141
|
+
className: "meta",
|
|
142
|
+
begin: "&" + e.UNDERSCORE_IDENT_RE + "$"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
// fragment reference *ref
|
|
146
|
+
className: "meta",
|
|
147
|
+
begin: "\\*" + e.UNDERSCORE_IDENT_RE + "$"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
// array listing
|
|
151
|
+
className: "bullet",
|
|
152
|
+
// TODO: remove |$ hack when we have proper look-ahead support
|
|
153
|
+
begin: "-(?=[ ]|$)",
|
|
154
|
+
relevance: 0
|
|
155
|
+
},
|
|
156
|
+
e.HASH_COMMENT_MODE,
|
|
157
|
+
{
|
|
158
|
+
beginKeywords: a,
|
|
159
|
+
keywords: { literal: a }
|
|
160
|
+
},
|
|
161
|
+
g,
|
|
162
|
+
// numbers are any valid C-style number that
|
|
163
|
+
// sit isolated from other words
|
|
164
|
+
{
|
|
165
|
+
className: "number",
|
|
166
|
+
begin: e.C_NUMBER_RE + "\\b",
|
|
167
|
+
relevance: 0
|
|
168
|
+
},
|
|
169
|
+
N,
|
|
170
|
+
o,
|
|
171
|
+
r,
|
|
172
|
+
c
|
|
173
|
+
], t = [...i];
|
|
174
|
+
return t.pop(), t.push(b), s.contains = t, {
|
|
175
|
+
name: "YAML",
|
|
176
|
+
case_insensitive: !0,
|
|
177
|
+
aliases: ["yml"],
|
|
178
|
+
contains: i
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
export {
|
|
182
|
+
A as default
|
|
183
|
+
};
|