@bagelink/vue 1.21.47 → 1.21.50
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/{StructuredEditor-D5JeqIq4.cjs → StructuredEditor-Br8oBdPt.cjs} +1 -1
- package/dist/{StructuredEditor-BCbsamyc.js → StructuredEditor-BszsyuHR.js} +85 -85
- package/dist/components/Accordion.vue.d.ts +8 -10
- package/dist/components/Accordion.vue.d.ts.map +1 -1
- package/dist/components/AccordionItem.vue.d.ts +14 -14
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/AddToCalendar.vue.d.ts +2 -1
- package/dist/components/AddToCalendar.vue.d.ts.map +1 -1
- package/dist/components/AddressSearch.vue.d.ts +3 -226
- package/dist/components/AddressSearch.vue.d.ts.map +1 -1
- package/dist/components/Alert.vue.d.ts +10 -11
- package/dist/components/Alert.vue.d.ts.map +1 -1
- package/dist/components/Avatar.vue.d.ts +3 -2
- package/dist/components/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Badge.vue.d.ts +10 -12
- package/dist/components/Badge.vue.d.ts.map +1 -1
- package/dist/components/BglVideo.vue.d.ts +3 -5
- package/dist/components/BglVideo.vue.d.ts.map +1 -1
- package/dist/components/Btn.vue.d.ts +12 -14
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Card.vue.d.ts +22 -17
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu.vue.d.ts +16 -464
- package/dist/components/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/DataPreview.vue.d.ts +12 -7
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DragOver.vue.d.ts +9 -11
- package/dist/components/DragOver.vue.d.ts.map +1 -1
- package/dist/components/Dropdown.vue.d.ts +14 -15
- package/dist/components/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/EmptyState.vue.d.ts +13 -13
- package/dist/components/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/FieldSetVue.vue.d.ts +8 -10
- package/dist/components/FieldSetVue.vue.d.ts.map +1 -1
- package/dist/components/FilterQuery.vue.d.ts +20 -15
- package/dist/components/FilterQuery.vue.d.ts.map +1 -1
- package/dist/components/Flag.vue.d.ts +2 -1
- package/dist/components/Flag.vue.d.ts.map +1 -1
- package/dist/components/FlipBook.vue.d.ts +4 -6
- package/dist/components/FlipBook.vue.d.ts.map +1 -1
- package/dist/components/FloatingPanel.vue.d.ts +12 -13
- package/dist/components/FloatingPanel.vue.d.ts.map +1 -1
- package/dist/components/Icon/Icon.vue.d.ts +3 -2
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/IframeVue.vue.d.ts +3 -4
- package/dist/components/IframeVue.vue.d.ts.map +1 -1
- package/dist/components/Image.vue.d.ts +8 -10
- package/dist/components/Image.vue.d.ts.map +1 -1
- package/dist/components/JSONSchema.vue.d.ts +58 -0
- package/dist/components/JSONSchema.vue.d.ts.map +1 -0
- package/dist/components/JsonBuilder.vue.d.ts +18 -0
- package/dist/components/JsonBuilder.vue.d.ts.map +1 -0
- package/dist/components/ListItem.vue.d.ts +18 -15
- package/dist/components/ListItem.vue.d.ts.map +1 -1
- package/dist/components/ListView.vue.d.ts +10 -11
- package/dist/components/ListView.vue.d.ts.map +1 -1
- package/dist/components/Loading.vue.d.ts +12 -12
- package/dist/components/Loading.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed/Index.vue.d.ts +3 -2
- package/dist/components/MapEmbed/Index.vue.d.ts.map +1 -1
- package/dist/components/Menu.vue.d.ts +8 -10
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts +13 -14
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/PageTitle.vue.d.ts +11 -12
- package/dist/components/PageTitle.vue.d.ts.map +1 -1
- package/dist/components/Pagination.vue.d.ts +9 -9
- package/dist/components/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Progress.vue.d.ts +10 -11
- package/dist/components/Progress.vue.d.ts.map +1 -1
- package/dist/components/Rating.vue.d.ts +2 -1
- package/dist/components/Rating.vue.d.ts.map +1 -1
- package/dist/components/RouterWrapper.vue.d.ts +8 -14
- package/dist/components/RouterWrapper.vue.d.ts.map +1 -1
- package/dist/components/Spreadsheet/Index.vue.d.ts +3 -38
- package/dist/components/Spreadsheet/Index.vue.d.ts.map +1 -1
- package/dist/components/Spreadsheet/SpreadsheetCell.vue.d.ts +2 -1
- package/dist/components/Spreadsheet/SpreadsheetCell.vue.d.ts.map +1 -1
- package/dist/components/Spreadsheet/SpreadsheetTable.vue.d.ts +3 -2
- package/dist/components/Spreadsheet/SpreadsheetTable.vue.d.ts.map +1 -1
- package/dist/components/Swiper.vue.d.ts +22 -39
- package/dist/components/Swiper.vue.d.ts.map +1 -1
- package/dist/components/Toast.vue.d.ts +3 -2
- package/dist/components/Toast.vue.d.ts.map +1 -1
- package/dist/components/TopBar.vue.d.ts +8 -10
- package/dist/components/TopBar.vue.d.ts.map +1 -1
- package/dist/components/Zoomer.vue.d.ts +9 -15
- package/dist/components/Zoomer.vue.d.ts.map +1 -1
- package/dist/components/calendar/CalendarPopover.vue.d.ts +9 -11
- package/dist/components/calendar/CalendarPopover.vue.d.ts.map +1 -1
- package/dist/components/calendar/Index.vue.d.ts +14 -15
- package/dist/components/calendar/Index.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/AgendaView.vue.d.ts +3 -4
- package/dist/components/calendar/views/AgendaView.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/DayView.vue.d.ts +3 -2
- package/dist/components/calendar/views/DayView.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/MonthView.vue.d.ts +3 -2
- package/dist/components/calendar/views/MonthView.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/WeekView.vue.d.ts +3 -6
- package/dist/components/calendar/views/WeekView.vue.d.ts.map +1 -1
- package/dist/components/charts/BarChart.vue.d.ts +3 -4
- package/dist/components/charts/BarChart.vue.d.ts.map +1 -1
- package/dist/components/charts/ChartTooltip.vue.d.ts +4 -5
- package/dist/components/charts/ChartTooltip.vue.d.ts.map +1 -1
- package/dist/components/charts/Donut.vue.d.ts +5 -6
- package/dist/components/charts/Donut.vue.d.ts.map +1 -1
- package/dist/components/charts/Funnel.vue.d.ts +5 -6
- package/dist/components/charts/Funnel.vue.d.ts.map +1 -1
- package/dist/components/charts/Gauge.vue.d.ts +3 -4
- package/dist/components/charts/Gauge.vue.d.ts.map +1 -1
- package/dist/components/charts/LineChart.vue.d.ts +3 -4
- package/dist/components/charts/LineChart.vue.d.ts.map +1 -1
- package/dist/components/charts/MapChart.vue.d.ts +4 -6
- package/dist/components/charts/MapChart.vue.d.ts.map +1 -1
- package/dist/components/charts/RadialBars.vue.d.ts +3 -4
- package/dist/components/charts/RadialBars.vue.d.ts.map +1 -1
- package/dist/components/charts/RankBars.vue.d.ts +4 -3
- package/dist/components/charts/RankBars.vue.d.ts.map +1 -1
- package/dist/components/charts/Sparkline.vue.d.ts +3 -4
- package/dist/components/charts/Sparkline.vue.d.ts.map +1 -1
- package/dist/components/charts/StatCard.vue.d.ts +3 -2
- package/dist/components/charts/StatCard.vue.d.ts.map +1 -1
- package/dist/components/charts/core/format.d.ts.map +1 -1
- package/dist/components/charts/core/useScale.d.ts +4 -2
- package/dist/components/charts/core/useScale.d.ts.map +1 -1
- package/dist/components/dataTable/DataTable.vue.d.ts +43 -27
- package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/draggable/Draggable.vue.d.ts +11 -17
- package/dist/components/draggable/Draggable.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ArrayInput.vue.d.ts +15 -15
- package/dist/components/form/inputs/ArrayInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +18 -13
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Checkbox.vue.d.ts +13 -14
- package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +4 -3
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts +2 -1
- package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts +3 -4
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ColorInput.vue.d.ts +3 -2
- package/dist/components/form/inputs/ColorInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +9 -10
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.vue.d.ts +3 -2
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/EmailInput.vue.d.ts +4 -5
- package/dist/components/form/inputs/EmailInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/IconPickerInput.vue.d.ts +3 -226
- package/dist/components/form/inputs/IconPickerInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/MarkdownEditor.vue.d.ts +6 -40
- package/dist/components/form/inputs/MarkdownEditor.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/NumberInput.vue.d.ts +3 -2
- package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/OTP.vue.d.ts +3 -4
- package/dist/components/form/inputs/OTP.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +8 -6
- package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioGroup.vue.d.ts +24 -19
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RangeInput.vue.d.ts +22 -24
- package/dist/components/form/inputs/RangeInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/components/EditorToolbar.vue.d.ts +9 -11
- package/dist/components/form/inputs/RichText/components/EditorToolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/components/TableGridSelector.vue.d.ts +2 -1
- package/dist/components/form/inputs/RichText/components/TableGridSelector.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts +10 -20
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectBtn.vue.d.ts +7 -5
- package/dist/components/form/inputs/SelectBtn.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +9 -87
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.vue.d.ts +8 -8
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TableField.vue.d.ts +3 -2
- package/dist/components/form/inputs/TableField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +3 -39
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +3 -5
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ToggleInput.vue.d.ts +12 -13
- package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/AssetFileRow.vue.d.ts +4 -3
- package/dist/components/form/inputs/Upload/AssetFileRow.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/AssetUploadInput.vue.d.ts +19 -85
- package/dist/components/form/inputs/Upload/AssetUploadInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/ImageCropper.vue.d.ts +3 -6
- package/dist/components/form/inputs/Upload/ImageCropper.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +20 -18
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts.map +1 -1
- package/dist/components/kanban/KanbanBoard.vue.d.ts +15 -27
- package/dist/components/kanban/KanbanBoard.vue.d.ts.map +1 -1
- package/dist/components/layout/AppContent.vue.d.ts +17 -15
- package/dist/components/layout/AppContent.vue.d.ts.map +1 -1
- package/dist/components/layout/AppLayout.vue.d.ts +31 -26
- package/dist/components/layout/AppLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/AppNav.vue.d.ts +12 -13
- package/dist/components/layout/AppNav.vue.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.vue.d.ts +22 -14
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/components/layout/BottomMenu.vue.d.ts +10 -11
- package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/Divider.vue.d.ts +8 -10
- package/dist/components/layout/Divider.vue.d.ts.map +1 -1
- package/dist/components/layout/Layout.vue.d.ts +9 -11
- package/dist/components/layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/layout/Panel.vue.d.ts +10 -16
- package/dist/components/layout/Panel.vue.d.ts.map +1 -1
- package/dist/components/layout/Resizable.vue.d.ts +9 -15
- package/dist/components/layout/Resizable.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts +15 -14
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarNavCaption.vue.d.ts +16 -0
- package/dist/components/layout/SidebarNavCaption.vue.d.ts.map +1 -0
- package/dist/components/layout/SidebarNavItem.vue.d.ts +2 -1
- package/dist/components/layout/SidebarNavItem.vue.d.ts.map +1 -1
- package/dist/components/layout/Skeleton.vue.d.ts +8 -10
- package/dist/components/layout/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedLayout.vue.d.ts +13 -13
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/Tabs.vue.d.ts +11 -9
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsBody.vue.d.ts +11 -9
- package/dist/components/layout/TabsBody.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts +10 -16
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- package/dist/components/layout/Timeline.vue.d.ts +14 -14
- package/dist/components/layout/Timeline.vue.d.ts.map +1 -1
- package/dist/components/layout/TimelineItem.vue.d.ts +14 -13
- package/dist/components/layout/TimelineItem.vue.d.ts.map +1 -1
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/lightbox/AssetPreview.vue.d.ts +2 -1
- package/dist/components/lightbox/AssetPreview.vue.d.ts.map +1 -1
- package/dist/components/lightbox/Lightbox.vue.d.ts +3 -4
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/components/lightbox/LightboxImage.vue.d.ts +2 -1
- package/dist/components/lightbox/LightboxImage.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/dialog/Dialog.vue.d.ts +14 -18
- package/dist/dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/dialog/DialogConfirm.vue.d.ts +4 -3
- package/dist/dialog/DialogConfirm.vue.d.ts.map +1 -1
- package/dist/dialog/DialogForm.vue.d.ts +18 -13
- package/dist/dialog/DialogForm.vue.d.ts.map +1 -1
- package/dist/env.d.ts +8 -0
- package/dist/form-flow/FormFlow.vue.d.ts +17 -40
- package/dist/form-flow/FormFlow.vue.d.ts.map +1 -1
- package/dist/form-flow/FormFlowPlayer.vue.d.ts +23 -31
- package/dist/form-flow/FormFlowPlayer.vue.d.ts.map +1 -1
- package/dist/form-flow/MultiStepForm.vue.d.ts +17 -15
- package/dist/form-flow/MultiStepForm.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +273 -271
- package/dist/{src-BCvft5i9.js → src-DaSKch48.js} +4381 -4339
- package/dist/src-Dlh5iQ0R.cjs +764 -0
- package/dist/src.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +117 -116
- package/src/components/charts/core/format.ts +16 -2
- package/src/components/charts/core/useScale.ts +19 -7
- package/src/components/dataTable/DataTable.vue +1 -1
- package/src/components/layout/AppSidebar.vue +20 -7
- package/src/components/layout/SidebarNavCaption.vue +43 -0
- package/src/components/layout/index.ts +2 -0
- package/LICENSE +0 -21
- package/dist/src-Bye2pFTO.cjs +0 -764
package/package.json
CHANGED
|
@@ -1,117 +1,118 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
2
|
+
"name": "@bagelink/vue",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.21.50",
|
|
5
|
+
"description": "Bagel core sdk packages",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Bagel Studio",
|
|
8
|
+
"email": "hi@bagelstudio.co.il"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/bageldb/bagelink/tree/master/packages/vue#readme",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/bageldb/bagelink.git",
|
|
15
|
+
"directory": "packages/vue"
|
|
16
|
+
},
|
|
17
|
+
"bugs": "https://github.com/bageldb/bagelink/issues",
|
|
18
|
+
"keywords": [],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
"./tsconfig.json": "./tsconfig.json",
|
|
24
|
+
"./package.json": "./package.json",
|
|
25
|
+
"./src": "./src/index.ts",
|
|
26
|
+
"./src/components": "./src/components/index.ts",
|
|
27
|
+
"./src/utils": "./src/utils/index.ts",
|
|
28
|
+
"./src/types": "./src/types/index.ts",
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"require": "./dist/index.cjs",
|
|
32
|
+
"import": "./dist/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./style.css": "./dist/style.css",
|
|
35
|
+
"./styles/core.css": "./dist/core.css",
|
|
36
|
+
"./styles/admin.css": "./dist/style.css",
|
|
37
|
+
"./styles/fonts/admin.css": "./dist/admin.css",
|
|
38
|
+
"./styles/fonts/ploni.css": "./dist/ploni.css",
|
|
39
|
+
"./*": "./*"
|
|
40
|
+
},
|
|
41
|
+
"main": "./dist/index.cjs",
|
|
42
|
+
"module": "./dist/index.mjs",
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"typesVersions": {
|
|
45
|
+
"*": {
|
|
46
|
+
"*": [
|
|
47
|
+
"./dist/*",
|
|
48
|
+
"./dist/index.d.ts"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"bin": {
|
|
53
|
+
"experimentalGenTypedRoutes": "./bin/experimentalGenTypedRoutes.ts"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist",
|
|
57
|
+
"src",
|
|
58
|
+
"./vite.config.ts",
|
|
59
|
+
"bin/experimentalGenTypedRoutes.ts"
|
|
60
|
+
],
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@bagelink/sdk": "workspace:*",
|
|
63
|
+
"@types/leaflet": "^1.9.22",
|
|
64
|
+
"@types/signature_pad": "^4.0.0",
|
|
65
|
+
"vue": "^3.5.45",
|
|
66
|
+
"vue-component-type-helpers": "^2.2.12"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@bagelink/sdk": "*",
|
|
70
|
+
"type-fest": "^4",
|
|
71
|
+
"vue": "*",
|
|
72
|
+
"vue-component-type-helpers": ">=2.2.10",
|
|
73
|
+
"vue-draggable-next": "^2.2.1",
|
|
74
|
+
"vue-router": "*"
|
|
75
|
+
},
|
|
76
|
+
"peerDependenciesMeta": {
|
|
77
|
+
"vue-draggable-next": {
|
|
78
|
+
"optional": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"scripts": {
|
|
82
|
+
"prepublishOnly": "pnpm build",
|
|
83
|
+
"dev": "tsx watch src/index.ts",
|
|
84
|
+
"build": "vite build && pnpm verify:css",
|
|
85
|
+
"verify:css": "tsx scripts/verify-css-build.ts",
|
|
86
|
+
"gen:cheatsheet": "tsx scripts/gen-cheatsheet.ts",
|
|
87
|
+
"start": "tsx src/index.ts"
|
|
88
|
+
},
|
|
89
|
+
"publishConfig": {
|
|
90
|
+
"access": "public"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"@codemirror/commands": "^6.11.1",
|
|
94
|
+
"@codemirror/lang-css": "^6.3.1",
|
|
95
|
+
"@codemirror/lang-html": "^6.4.12",
|
|
96
|
+
"@codemirror/lang-javascript": "^6.2.5",
|
|
97
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
98
|
+
"@codemirror/language": "^6.13.1",
|
|
99
|
+
"@codemirror/search": "^6.7.2",
|
|
100
|
+
"@codemirror/state": "^6.7.6",
|
|
101
|
+
"@codemirror/view": "^6.43.15",
|
|
102
|
+
"@floating-ui/dom": "^1.8.0",
|
|
103
|
+
"@oddbird/popover-polyfill": "^0.6.1",
|
|
104
|
+
"@uiw/codemirror-theme-atomone": "^4.25.12",
|
|
105
|
+
"@vueuse/core": "^13.9.0",
|
|
106
|
+
"@zxcvbn-ts/core": "^3.0.4",
|
|
107
|
+
"axios": "^1.20.0",
|
|
108
|
+
"floating-vue": "^5.4.0",
|
|
109
|
+
"libphonenumber-js": "^1.13.14",
|
|
110
|
+
"page-flip": "^2.0.7",
|
|
111
|
+
"pdfjs-dist": "^6.3.289",
|
|
112
|
+
"prettier": "^3.9.9",
|
|
113
|
+
"signature_pad": "^5.1.4",
|
|
114
|
+
"swiper": "^12.2.0",
|
|
115
|
+
"vue-i18n": "^11.4.12",
|
|
116
|
+
"vue-toastification": "^2.0.0-rc.5"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { getI18n } from '../../../i18n'
|
|
6
6
|
|
|
7
|
+
/** Compact form is safe only when rounding it back recovers the value. */
|
|
8
|
+
function compactIsExact(value: number, locale: string, digits: number): boolean {
|
|
9
|
+
const compact = new Intl.NumberFormat(locale, { notation: 'compact', maximumFractionDigits: digits }).format(value)
|
|
10
|
+
const parsed = Number(compact.replace(/[^\d.-]/g, ''))
|
|
11
|
+
if (!Number.isFinite(parsed)) return false
|
|
12
|
+
const unit = /k/i.test(compact) ? 1e3 : /m/i.test(compact) ? 1e6 : /b/i.test(compact) ? 1e9 : 1
|
|
13
|
+
return Math.abs(parsed * unit - value) < Math.max(1, Math.abs(value)) * 1e-6
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
function currentLocale(): string {
|
|
8
17
|
try {
|
|
9
18
|
const loc = getI18n().global.locale as unknown
|
|
@@ -38,9 +47,14 @@ export function formatValue(value: number, fmt: ValueFormat = {}): string {
|
|
|
38
47
|
maximumFractionDigits: fmt.maximumFractionDigits ?? (fmt.compact ? 1 : 0),
|
|
39
48
|
}).format(value)
|
|
40
49
|
} else {
|
|
50
|
+
const digits = fmt.maximumFractionDigits ?? (fmt.compact ? 1 : 2)
|
|
51
|
+
// Compact notation collapses nearby ticks onto the same label
|
|
52
|
+
// (75 and 112.5 both render as "112"), so a tick only compacts when
|
|
53
|
+
// its compact form is unambiguous.
|
|
54
|
+
const compact = fmt.compact && (digits === 0 || compactIsExact(value, locale, digits))
|
|
41
55
|
out = new Intl.NumberFormat(locale, {
|
|
42
|
-
notation:
|
|
43
|
-
maximumFractionDigits:
|
|
56
|
+
notation: compact ? 'compact' : 'standard',
|
|
57
|
+
maximumFractionDigits: digits,
|
|
44
58
|
}).format(value)
|
|
45
59
|
}
|
|
46
60
|
} catch {
|
|
@@ -2,19 +2,31 @@
|
|
|
2
2
|
* Minimal scale + tick helpers. No d3 — just the bits dashboards need.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
/** "Nice"
|
|
6
|
-
export function
|
|
7
|
-
if (max <= 0) return
|
|
8
|
-
const rough = max /
|
|
5
|
+
/** "Nice" step so axis ticks land on clean numbers (1/2/5 × 10ⁿ). */
|
|
6
|
+
export function niceStep(max: number, count = 4): number {
|
|
7
|
+
if (max <= 0) return 1
|
|
8
|
+
const rough = max / count
|
|
9
9
|
const mag = 10 ** Math.floor(Math.log10(rough))
|
|
10
10
|
const norm = rough / mag
|
|
11
11
|
const step = norm >= 5 ? 10 : norm >= 2 ? 5 : norm >= 1 ? 2 : 1
|
|
12
|
-
|
|
13
|
-
return Math.ceil(max / niceStep) * niceStep
|
|
12
|
+
return step * mag
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
/**
|
|
15
|
+
/** "Nice" rounded domain max so axis ticks land on clean numbers. */
|
|
16
|
+
export function niceMax(max: number, count = 4): number {
|
|
17
|
+
if (max <= 0) return count
|
|
18
|
+
const step = niceStep(max, count)
|
|
19
|
+
return Math.ceil(max / step) * step
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Evenly spaced tick values from min..max (inclusive), on a clean step. */
|
|
17
23
|
export function ticks(min: number, max: number, count = 4): number[] {
|
|
24
|
+
if (min === 0) {
|
|
25
|
+
const step = niceStep(max, count)
|
|
26
|
+
const out: number[] = []
|
|
27
|
+
for (let v = 0; v <= max + step / 2; v += step) out.push(v)
|
|
28
|
+
return out
|
|
29
|
+
}
|
|
18
30
|
const out: number[] = []
|
|
19
31
|
const step = (max - min) / count
|
|
20
32
|
for (let i = 0; i <= count; i++) out.push(min + step * i)
|
|
@@ -194,7 +194,7 @@ const headerFontSize = computed(() => {
|
|
|
194
194
|
<thead class="row first-row">
|
|
195
195
|
<th v-if="isSortable" class="col-drag" />
|
|
196
196
|
<th v-if="isSelectable" class="col-check">
|
|
197
|
-
<input ref="allSelectorEl" type="checkbox" @click.stop @change="(e) => toggleSelectAll(e)">
|
|
197
|
+
<input ref="allSelectorEl" type="checkbox" aria-label="Select all" title="Select all" @click.stop @change="(e) => toggleSelectAll(e)">
|
|
198
198
|
</th>
|
|
199
199
|
<th
|
|
200
200
|
v-for="field in computedSchema" :key="field.id" class="col"
|
|
@@ -213,16 +213,28 @@ const leafPlacement = computed(() => {
|
|
|
213
213
|
'align-items-center': !isMobile && !isOpen,
|
|
214
214
|
}"
|
|
215
215
|
>
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
:
|
|
216
|
+
<!-- Hosts that group their own nav replace the loop entirely.
|
|
217
|
+
The default keeps every existing caller rendering navLinks. -->
|
|
218
|
+
<slot
|
|
219
|
+
name="nav"
|
|
220
|
+
:is-open="isOpen"
|
|
221
|
+
:is-visually-open="isVisuallyOpen"
|
|
221
222
|
:is-mobile="isMobile"
|
|
222
223
|
:bg-color="props.bgColor"
|
|
223
224
|
:text-color="props.textColor"
|
|
224
225
|
:active-color="props.activeColor"
|
|
225
|
-
|
|
226
|
+
>
|
|
227
|
+
<SidebarNavItem
|
|
228
|
+
v-for="link in props.navLinks" :key="link.to || link.label"
|
|
229
|
+
:link="link"
|
|
230
|
+
:open="isVisuallyOpen"
|
|
231
|
+
:real-open="isOpen"
|
|
232
|
+
:is-mobile="isMobile"
|
|
233
|
+
:bg-color="props.bgColor"
|
|
234
|
+
:text-color="props.textColor"
|
|
235
|
+
:active-color="props.activeColor"
|
|
236
|
+
/>
|
|
237
|
+
</slot>
|
|
226
238
|
</nav>
|
|
227
239
|
<div class="sidebar-footer flex column flex-stretch gap-025 px-05 mx-auto mt-auto m_border-top m_pt-05">
|
|
228
240
|
<Dropdown
|
|
@@ -368,7 +380,8 @@ margin-inline-start: 0;
|
|
|
368
380
|
}
|
|
369
381
|
|
|
370
382
|
.sidebar-link-btn:not(.nav-btn-active) {
|
|
371
|
-
background: var(--bgl-box-bg) !important;
|
|
383
|
+
background: var(--bgl-gray-side, var(--bgl-box-bg)) !important;
|
|
384
|
+
|
|
372
385
|
transition:
|
|
373
386
|
background-color 0.2s ease,
|
|
374
387
|
color 0.2s ease,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
/**
|
|
3
|
+
* Small muted section caption for a grouped sidebar nav. Rendered inside
|
|
4
|
+
* AppSidebar's `nav` slot, between groups of SidebarNavItem. When the sidebar
|
|
5
|
+
* collapses, the row animates its height shut so the links below slide up
|
|
6
|
+
* instead of jumping.
|
|
7
|
+
*/
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="sidebar-nav-caption">
|
|
12
|
+
<span class="sidebar-nav-caption-label nav-text"><slot /></span>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style>
|
|
17
|
+
.sidebar-nav-caption {
|
|
18
|
+
display: grid;
|
|
19
|
+
align-self: stretch;
|
|
20
|
+
width: 100%;
|
|
21
|
+
grid-template-rows: 1fr;
|
|
22
|
+
transition: grid-template-rows 0.45s ease;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.sidebar-nav-caption-label {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
width: 100%;
|
|
28
|
+
min-height: 0;
|
|
29
|
+
text-align: start;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
font-size: 0.6875rem;
|
|
32
|
+
line-height: 1;
|
|
33
|
+
letter-spacing: 0.04em;
|
|
34
|
+
text-transform: uppercase;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
opacity: 0.5;
|
|
37
|
+
padding: 0.75rem 0.75rem 0.25rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.app-sidebar.sidebar-collapsed .sidebar-nav-caption {
|
|
41
|
+
grid-template-rows: 0fr;
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
@@ -2,6 +2,8 @@ export { default as AppContent } from './AppContent.vue'
|
|
|
2
2
|
export { default as AppLayout } from './AppLayout.vue'
|
|
3
3
|
export { default as AppNav } from './AppNav.vue'
|
|
4
4
|
export { default as AppSidebar } from './AppSidebar.vue'
|
|
5
|
+
export { default as SidebarNavCaption } from './SidebarNavCaption.vue'
|
|
6
|
+
export { default as SidebarNavItem } from './SidebarNavItem.vue'
|
|
5
7
|
export { useAppLayout } from './appLayoutContext'
|
|
6
8
|
export type { AppLayoutContext, RegionSide, RegionState, RegionPatch } from './appLayoutContext'
|
|
7
9
|
export { default as BottomMenu } from './BottomMenu.vue'
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Bagel Studio
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|