@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/go.js
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
function c(e) {
|
|
2
|
+
const n = {
|
|
3
|
+
keyword: [
|
|
4
|
+
"break",
|
|
5
|
+
"case",
|
|
6
|
+
"chan",
|
|
7
|
+
"const",
|
|
8
|
+
"continue",
|
|
9
|
+
"default",
|
|
10
|
+
"defer",
|
|
11
|
+
"else",
|
|
12
|
+
"fallthrough",
|
|
13
|
+
"for",
|
|
14
|
+
"func",
|
|
15
|
+
"go",
|
|
16
|
+
"goto",
|
|
17
|
+
"if",
|
|
18
|
+
"import",
|
|
19
|
+
"interface",
|
|
20
|
+
"map",
|
|
21
|
+
"package",
|
|
22
|
+
"range",
|
|
23
|
+
"return",
|
|
24
|
+
"select",
|
|
25
|
+
"struct",
|
|
26
|
+
"switch",
|
|
27
|
+
"type",
|
|
28
|
+
"var"
|
|
29
|
+
],
|
|
30
|
+
type: [
|
|
31
|
+
"bool",
|
|
32
|
+
"byte",
|
|
33
|
+
"complex64",
|
|
34
|
+
"complex128",
|
|
35
|
+
"error",
|
|
36
|
+
"float32",
|
|
37
|
+
"float64",
|
|
38
|
+
"int8",
|
|
39
|
+
"int16",
|
|
40
|
+
"int32",
|
|
41
|
+
"int64",
|
|
42
|
+
"string",
|
|
43
|
+
"uint8",
|
|
44
|
+
"uint16",
|
|
45
|
+
"uint32",
|
|
46
|
+
"uint64",
|
|
47
|
+
"int",
|
|
48
|
+
"uint",
|
|
49
|
+
"uintptr",
|
|
50
|
+
"rune"
|
|
51
|
+
],
|
|
52
|
+
literal: [
|
|
53
|
+
"true",
|
|
54
|
+
"false",
|
|
55
|
+
"iota",
|
|
56
|
+
"nil"
|
|
57
|
+
],
|
|
58
|
+
built_in: [
|
|
59
|
+
"append",
|
|
60
|
+
"cap",
|
|
61
|
+
"close",
|
|
62
|
+
"complex",
|
|
63
|
+
"copy",
|
|
64
|
+
"imag",
|
|
65
|
+
"len",
|
|
66
|
+
"make",
|
|
67
|
+
"new",
|
|
68
|
+
"panic",
|
|
69
|
+
"print",
|
|
70
|
+
"println",
|
|
71
|
+
"real",
|
|
72
|
+
"recover",
|
|
73
|
+
"delete"
|
|
74
|
+
]
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
name: "Go",
|
|
78
|
+
aliases: ["golang"],
|
|
79
|
+
keywords: n,
|
|
80
|
+
illegal: "</",
|
|
81
|
+
contains: [
|
|
82
|
+
e.C_LINE_COMMENT_MODE,
|
|
83
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
84
|
+
{
|
|
85
|
+
className: "string",
|
|
86
|
+
variants: [
|
|
87
|
+
e.QUOTE_STRING_MODE,
|
|
88
|
+
e.APOS_STRING_MODE,
|
|
89
|
+
{
|
|
90
|
+
begin: "`",
|
|
91
|
+
end: "`"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
className: "number",
|
|
97
|
+
variants: [
|
|
98
|
+
{
|
|
99
|
+
match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
|
|
100
|
+
// hex without a present digit before . (making a digit afterwards required)
|
|
101
|
+
relevance: 0
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
|
|
105
|
+
// hex with a present digit before . (making a digit afterwards optional)
|
|
106
|
+
relevance: 0
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
match: /-?\b0[oO](_?[0-7])*i?/,
|
|
110
|
+
// leading 0o octal
|
|
111
|
+
relevance: 0
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
|
|
115
|
+
// decimal without a present digit before . (making a digit afterwards required)
|
|
116
|
+
relevance: 0
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
|
|
120
|
+
// decimal with a present digit before . (making a digit afterwards optional)
|
|
121
|
+
relevance: 0
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
begin: /:=/
|
|
127
|
+
// relevance booster
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
className: "function",
|
|
131
|
+
beginKeywords: "func",
|
|
132
|
+
end: "\\s*(\\{|$)",
|
|
133
|
+
excludeEnd: !0,
|
|
134
|
+
contains: [
|
|
135
|
+
e.TITLE_MODE,
|
|
136
|
+
{
|
|
137
|
+
className: "params",
|
|
138
|
+
begin: /\(/,
|
|
139
|
+
end: /\)/,
|
|
140
|
+
endsParent: !0,
|
|
141
|
+
keywords: n,
|
|
142
|
+
illegal: /["']/
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export {
|
|
150
|
+
c as default
|
|
151
|
+
};
|
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", _ = {
|
|
2
|
+
className: "number",
|
|
3
|
+
variants: [
|
|
4
|
+
// DecimalFloatingPointLiteral
|
|
5
|
+
// including ExponentPart
|
|
6
|
+
{ begin: `(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b` },
|
|
7
|
+
// excluding ExponentPart
|
|
8
|
+
{ begin: `\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
9
|
+
{ begin: `(${r})[fFdD]?\\b` },
|
|
10
|
+
{ begin: `\\b(${n})[fFdD]\\b` },
|
|
11
|
+
// HexadecimalFloatingPointLiteral
|
|
12
|
+
{ begin: `\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b` },
|
|
13
|
+
// DecimalIntegerLiteral
|
|
14
|
+
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
15
|
+
// HexIntegerLiteral
|
|
16
|
+
{ begin: `\\b0[xX](${i})[lL]?\\b` },
|
|
17
|
+
// OctalIntegerLiteral
|
|
18
|
+
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
19
|
+
// BinaryIntegerLiteral
|
|
20
|
+
{ begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
|
|
21
|
+
],
|
|
22
|
+
relevance: 0
|
|
23
|
+
};
|
|
24
|
+
function b(e, t, a) {
|
|
25
|
+
return a === -1 ? "" : e.replace(t, (c) => b(e, t, a - 1));
|
|
26
|
+
}
|
|
27
|
+
function M(e) {
|
|
28
|
+
const t = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", c = a + b("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), s = {
|
|
29
|
+
keyword: [
|
|
30
|
+
"synchronized",
|
|
31
|
+
"abstract",
|
|
32
|
+
"private",
|
|
33
|
+
"var",
|
|
34
|
+
"static",
|
|
35
|
+
"if",
|
|
36
|
+
"const ",
|
|
37
|
+
"for",
|
|
38
|
+
"while",
|
|
39
|
+
"strictfp",
|
|
40
|
+
"finally",
|
|
41
|
+
"protected",
|
|
42
|
+
"import",
|
|
43
|
+
"native",
|
|
44
|
+
"final",
|
|
45
|
+
"void",
|
|
46
|
+
"enum",
|
|
47
|
+
"else",
|
|
48
|
+
"break",
|
|
49
|
+
"transient",
|
|
50
|
+
"catch",
|
|
51
|
+
"instanceof",
|
|
52
|
+
"volatile",
|
|
53
|
+
"case",
|
|
54
|
+
"assert",
|
|
55
|
+
"package",
|
|
56
|
+
"default",
|
|
57
|
+
"public",
|
|
58
|
+
"try",
|
|
59
|
+
"switch",
|
|
60
|
+
"continue",
|
|
61
|
+
"throws",
|
|
62
|
+
"protected",
|
|
63
|
+
"public",
|
|
64
|
+
"private",
|
|
65
|
+
"module",
|
|
66
|
+
"requires",
|
|
67
|
+
"exports",
|
|
68
|
+
"do",
|
|
69
|
+
"sealed",
|
|
70
|
+
"yield",
|
|
71
|
+
"permits",
|
|
72
|
+
"goto",
|
|
73
|
+
"when"
|
|
74
|
+
],
|
|
75
|
+
literal: [
|
|
76
|
+
"false",
|
|
77
|
+
"true",
|
|
78
|
+
"null"
|
|
79
|
+
],
|
|
80
|
+
type: [
|
|
81
|
+
"char",
|
|
82
|
+
"boolean",
|
|
83
|
+
"long",
|
|
84
|
+
"float",
|
|
85
|
+
"int",
|
|
86
|
+
"byte",
|
|
87
|
+
"short",
|
|
88
|
+
"double"
|
|
89
|
+
],
|
|
90
|
+
built_in: [
|
|
91
|
+
"super",
|
|
92
|
+
"this"
|
|
93
|
+
]
|
|
94
|
+
}, o = {
|
|
95
|
+
className: "meta",
|
|
96
|
+
begin: "@" + a,
|
|
97
|
+
contains: [
|
|
98
|
+
{
|
|
99
|
+
begin: /\(/,
|
|
100
|
+
end: /\)/,
|
|
101
|
+
contains: ["self"]
|
|
102
|
+
// allow nested () inside our annotation
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}, l = {
|
|
106
|
+
className: "params",
|
|
107
|
+
begin: /\(/,
|
|
108
|
+
end: /\)/,
|
|
109
|
+
keywords: s,
|
|
110
|
+
relevance: 0,
|
|
111
|
+
contains: [e.C_BLOCK_COMMENT_MODE],
|
|
112
|
+
endsParent: !0
|
|
113
|
+
};
|
|
114
|
+
return {
|
|
115
|
+
name: "Java",
|
|
116
|
+
aliases: ["jsp"],
|
|
117
|
+
keywords: s,
|
|
118
|
+
illegal: /<\/|#/,
|
|
119
|
+
contains: [
|
|
120
|
+
e.COMMENT(
|
|
121
|
+
"/\\*\\*",
|
|
122
|
+
"\\*/",
|
|
123
|
+
{
|
|
124
|
+
relevance: 0,
|
|
125
|
+
contains: [
|
|
126
|
+
{
|
|
127
|
+
// eat up @'s in emails to prevent them to be recognized as doctags
|
|
128
|
+
begin: /\w+@/,
|
|
129
|
+
relevance: 0
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
className: "doctag",
|
|
133
|
+
begin: "@[A-Za-z]+"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
// relevance boost
|
|
139
|
+
{
|
|
140
|
+
begin: /import java\.[a-z]+\./,
|
|
141
|
+
keywords: "import",
|
|
142
|
+
relevance: 2
|
|
143
|
+
},
|
|
144
|
+
e.C_LINE_COMMENT_MODE,
|
|
145
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
146
|
+
{
|
|
147
|
+
begin: /"""/,
|
|
148
|
+
end: /"""/,
|
|
149
|
+
className: "string",
|
|
150
|
+
contains: [e.BACKSLASH_ESCAPE]
|
|
151
|
+
},
|
|
152
|
+
e.APOS_STRING_MODE,
|
|
153
|
+
e.QUOTE_STRING_MODE,
|
|
154
|
+
{
|
|
155
|
+
match: [
|
|
156
|
+
/\b(?:class|interface|enum|extends|implements|new)/,
|
|
157
|
+
/\s+/,
|
|
158
|
+
a
|
|
159
|
+
],
|
|
160
|
+
className: {
|
|
161
|
+
1: "keyword",
|
|
162
|
+
3: "title.class"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
// Exceptions for hyphenated keywords
|
|
167
|
+
match: /non-sealed/,
|
|
168
|
+
scope: "keyword"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
begin: [
|
|
172
|
+
t.concat(/(?!else)/, a),
|
|
173
|
+
/\s+/,
|
|
174
|
+
a,
|
|
175
|
+
/\s+/,
|
|
176
|
+
/=(?!=)/
|
|
177
|
+
],
|
|
178
|
+
className: {
|
|
179
|
+
1: "type",
|
|
180
|
+
3: "variable",
|
|
181
|
+
5: "operator"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
begin: [
|
|
186
|
+
/record/,
|
|
187
|
+
/\s+/,
|
|
188
|
+
a
|
|
189
|
+
],
|
|
190
|
+
className: {
|
|
191
|
+
1: "keyword",
|
|
192
|
+
3: "title.class"
|
|
193
|
+
},
|
|
194
|
+
contains: [
|
|
195
|
+
l,
|
|
196
|
+
e.C_LINE_COMMENT_MODE,
|
|
197
|
+
e.C_BLOCK_COMMENT_MODE
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
// Expression keywords prevent 'keyword Name(...)' from being
|
|
202
|
+
// recognized as a function definition
|
|
203
|
+
beginKeywords: "new throw return else",
|
|
204
|
+
relevance: 0
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
begin: [
|
|
208
|
+
"(?:" + c + "\\s+)",
|
|
209
|
+
e.UNDERSCORE_IDENT_RE,
|
|
210
|
+
/\s*(?=\()/
|
|
211
|
+
],
|
|
212
|
+
className: { 2: "title.function" },
|
|
213
|
+
keywords: s,
|
|
214
|
+
contains: [
|
|
215
|
+
{
|
|
216
|
+
className: "params",
|
|
217
|
+
begin: /\(/,
|
|
218
|
+
end: /\)/,
|
|
219
|
+
keywords: s,
|
|
220
|
+
relevance: 0,
|
|
221
|
+
contains: [
|
|
222
|
+
o,
|
|
223
|
+
e.APOS_STRING_MODE,
|
|
224
|
+
e.QUOTE_STRING_MODE,
|
|
225
|
+
_,
|
|
226
|
+
e.C_BLOCK_COMMENT_MODE
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
e.C_LINE_COMMENT_MODE,
|
|
230
|
+
e.C_BLOCK_COMMENT_MODE
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
_,
|
|
234
|
+
o
|
|
235
|
+
]
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
export {
|
|
239
|
+
M as default
|
|
240
|
+
};
|