@ternarytech-io/gears-ui 0.2.1 → 0.3.1
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/README.md +162 -161
- package/package.json +113 -111
- package/src/components/TAccentPicker.vue +41 -41
- package/src/components/TChart.vue +188 -0
- package/src/components/TContainerPicker.vue +22 -22
- package/src/components/TDataGrid.vue +41 -0
- package/src/components/TDataGridItem.vue +23 -0
- package/src/components/TDensityPicker.vue +19 -19
- package/src/components/TEditableTable.vue +203 -0
- package/src/components/TFontPicker.vue +23 -23
- package/src/components/TNavPositionPicker.vue +22 -22
- package/src/components/TRadiusPicker.vue +21 -21
- package/src/components/TScaledFrame.vue +36 -36
- package/src/components/TShell.vue +82 -72
- package/src/components/TSortableTree.vue +73 -73
- package/src/components/TSortableTreeList.vue +60 -60
- package/src/components/TSparkline.vue +34 -0
- package/src/components/TStatCard.vue +56 -26
- package/src/components/TTable.vue +138 -134
- package/src/components/TThemeBasePicker.vue +22 -22
- package/src/components/sortableTree.ts +19 -19
- package/src/index.ts +227 -215
- package/src/plugins/charts.ts +4 -0
- package/src/plugins/index.ts +55 -52
- package/src/styles/gears.css +666 -625
- package/src/theme.ts +50 -45
- package/src/types.ts +38 -1
package/src/index.ts
CHANGED
|
@@ -1,215 +1,227 @@
|
|
|
1
|
-
// Gears UI: Vue components on Tabler. Import the styles once (`@ternarytech-io/gears-ui/styles.css`), then either
|
|
2
|
-
// install the plugin (registers every component globally) or import components one by one.
|
|
3
|
-
// Components that need an optional library have their own entry points, so apps that don't use
|
|
4
|
-
// them don't need the library: `@ternarytech-io/gears-ui/code-editor` (Monaco) and `@ternarytech-io/gears-ui/plugins` (Tom
|
|
5
|
-
// Select, Coloris, Vanilla Calendar Pro, Dropzone, IMask, noUiSlider, SortableJS, HugeRTE).
|
|
6
|
-
import type { App } from 'vue'
|
|
7
|
-
import TAccentPicker from './components/TAccentPicker.vue'
|
|
8
|
-
import TAdvancedTable from './components/TAdvancedTable.vue'
|
|
9
|
-
import TAlert from './components/TAlert.vue'
|
|
10
|
-
import TAppLayout from './components/TAppLayout.vue'
|
|
11
|
-
import TAuthLayout from './components/TAuthLayout.vue'
|
|
12
|
-
import TAvatar from './components/TAvatar.vue'
|
|
13
|
-
import TBadge from './components/TBadge.vue'
|
|
14
|
-
import TButton from './components/TButton.vue'
|
|
15
|
-
import TCard from './components/TCard.vue'
|
|
16
|
-
import TCheckbox from './components/TCheckbox.vue'
|
|
17
|
-
import TColorModeButton from './components/TColorModeButton.vue'
|
|
18
|
-
import TCommandPalette from './components/TCommandPalette.vue'
|
|
19
|
-
import TContainerPicker from './components/TContainerPicker.vue'
|
|
20
|
-
import TCopyButton from './components/TCopyButton.vue'
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
1
|
+
// Gears UI: Vue components on Tabler. Import the styles once (`@ternarytech-io/gears-ui/styles.css`), then either
|
|
2
|
+
// install the plugin (registers every component globally) or import components one by one.
|
|
3
|
+
// Components that need an optional library have their own entry points, so apps that don't use
|
|
4
|
+
// them don't need the library: `@ternarytech-io/gears-ui/code-editor` (Monaco) and `@ternarytech-io/gears-ui/plugins` (Tom
|
|
5
|
+
// Select, Coloris, Vanilla Calendar Pro, Dropzone, IMask, noUiSlider, SortableJS, HugeRTE).
|
|
6
|
+
import type { App } from 'vue'
|
|
7
|
+
import TAccentPicker from './components/TAccentPicker.vue'
|
|
8
|
+
import TAdvancedTable from './components/TAdvancedTable.vue'
|
|
9
|
+
import TAlert from './components/TAlert.vue'
|
|
10
|
+
import TAppLayout from './components/TAppLayout.vue'
|
|
11
|
+
import TAuthLayout from './components/TAuthLayout.vue'
|
|
12
|
+
import TAvatar from './components/TAvatar.vue'
|
|
13
|
+
import TBadge from './components/TBadge.vue'
|
|
14
|
+
import TButton from './components/TButton.vue'
|
|
15
|
+
import TCard from './components/TCard.vue'
|
|
16
|
+
import TCheckbox from './components/TCheckbox.vue'
|
|
17
|
+
import TColorModeButton from './components/TColorModeButton.vue'
|
|
18
|
+
import TCommandPalette from './components/TCommandPalette.vue'
|
|
19
|
+
import TContainerPicker from './components/TContainerPicker.vue'
|
|
20
|
+
import TCopyButton from './components/TCopyButton.vue'
|
|
21
|
+
import TDataGrid from './components/TDataGrid.vue'
|
|
22
|
+
import TDataGridItem from './components/TDataGridItem.vue'
|
|
23
|
+
import TDensityPicker from './components/TDensityPicker.vue'
|
|
24
|
+
import TDropdown from './components/TDropdown.vue'
|
|
25
|
+
import TEditableTable from './components/TEditableTable.vue'
|
|
26
|
+
import TEmpty from './components/TEmpty.vue'
|
|
27
|
+
import TFieldGroup from './components/TFieldGroup.vue'
|
|
28
|
+
import TFileUpload from './components/TFileUpload.vue'
|
|
29
|
+
import TFontPicker from './components/TFontPicker.vue'
|
|
30
|
+
import TFormField from './components/TFormField.vue'
|
|
31
|
+
import TIcon from './components/TIcon.vue'
|
|
32
|
+
import TImageUpload from './components/TImageUpload.vue'
|
|
33
|
+
import TInput from './components/TInput.vue'
|
|
34
|
+
import TInputNumber from './components/TInputNumber.vue'
|
|
35
|
+
import TInputTags from './components/TInputTags.vue'
|
|
36
|
+
import TLogView from './components/TLogView.vue'
|
|
37
|
+
import TModal from './components/TModal.vue'
|
|
38
|
+
import TNav from './components/TNav.vue'
|
|
39
|
+
import TNavPositionPicker from './components/TNavPositionPicker.vue'
|
|
40
|
+
import TPage from './components/TPage.vue'
|
|
41
|
+
import TPagination from './components/TPagination.vue'
|
|
42
|
+
import TPanelList from './components/TPanelList.vue'
|
|
43
|
+
import TProgress from './components/TProgress.vue'
|
|
44
|
+
import TRadioGroup from './components/TRadioGroup.vue'
|
|
45
|
+
import TRadiusPicker from './components/TRadiusPicker.vue'
|
|
46
|
+
import TScaledFrame from './components/TScaledFrame.vue'
|
|
47
|
+
import TSearchButton from './components/TSearchButton.vue'
|
|
48
|
+
import TSectionLayout from './components/TSectionLayout.vue'
|
|
49
|
+
import TSelect from './components/TSelect.vue'
|
|
50
|
+
import TSelectMenu from './components/TSelectMenu.vue'
|
|
51
|
+
import TSeparator from './components/TSeparator.vue'
|
|
52
|
+
import TShell from './components/TShell.vue'
|
|
53
|
+
import TSkeleton from './components/TSkeleton.vue'
|
|
54
|
+
import TSlideover from './components/TSlideover.vue'
|
|
55
|
+
import TSparkline from './components/TSparkline.vue'
|
|
56
|
+
import TSpinner from './components/TSpinner.vue'
|
|
57
|
+
import TSplitter from './components/TSplitter.vue'
|
|
58
|
+
import TStatCard from './components/TStatCard.vue'
|
|
59
|
+
import TSteps from './components/TSteps.vue'
|
|
60
|
+
import TSwitch from './components/TSwitch.vue'
|
|
61
|
+
import TTable from './components/TTable.vue'
|
|
62
|
+
import TTabs from './components/TTabs.vue'
|
|
63
|
+
import TTextarea from './components/TTextarea.vue'
|
|
64
|
+
import TThemeBasePicker from './components/TThemeBasePicker.vue'
|
|
65
|
+
import TThemeScope from './components/TThemeScope.vue'
|
|
66
|
+
import TToaster from './components/TToaster.vue'
|
|
67
|
+
import TTooltip from './components/TTooltip.vue'
|
|
68
|
+
import TTopbar from './components/TTopbar.vue'
|
|
69
|
+
import TVectorMap from './components/TVectorMap.vue'
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
TAccentPicker,
|
|
73
|
+
TAdvancedTable,
|
|
74
|
+
TAlert,
|
|
75
|
+
TAppLayout,
|
|
76
|
+
TAuthLayout,
|
|
77
|
+
TAvatar,
|
|
78
|
+
TBadge,
|
|
79
|
+
TButton,
|
|
80
|
+
TCard,
|
|
81
|
+
TCheckbox,
|
|
82
|
+
TColorModeButton,
|
|
83
|
+
TCommandPalette,
|
|
84
|
+
TContainerPicker,
|
|
85
|
+
TCopyButton,
|
|
86
|
+
TDataGrid,
|
|
87
|
+
TDataGridItem,
|
|
88
|
+
TDensityPicker,
|
|
89
|
+
TDropdown,
|
|
90
|
+
TEditableTable,
|
|
91
|
+
TEmpty,
|
|
92
|
+
TFieldGroup,
|
|
93
|
+
TFileUpload,
|
|
94
|
+
TFontPicker,
|
|
95
|
+
TFormField,
|
|
96
|
+
TIcon,
|
|
97
|
+
TImageUpload,
|
|
98
|
+
TInput,
|
|
99
|
+
TInputNumber,
|
|
100
|
+
TInputTags,
|
|
101
|
+
TLogView,
|
|
102
|
+
TModal,
|
|
103
|
+
TNav,
|
|
104
|
+
TNavPositionPicker,
|
|
105
|
+
TPage,
|
|
106
|
+
TPagination,
|
|
107
|
+
TPanelList,
|
|
108
|
+
TProgress,
|
|
109
|
+
TRadioGroup,
|
|
110
|
+
TRadiusPicker,
|
|
111
|
+
TScaledFrame,
|
|
112
|
+
TSearchButton,
|
|
113
|
+
TSectionLayout,
|
|
114
|
+
TSelect,
|
|
115
|
+
TSelectMenu,
|
|
116
|
+
TSeparator,
|
|
117
|
+
TShell,
|
|
118
|
+
TSkeleton,
|
|
119
|
+
TSlideover,
|
|
120
|
+
TSparkline,
|
|
121
|
+
TSpinner,
|
|
122
|
+
TSplitter,
|
|
123
|
+
TStatCard,
|
|
124
|
+
TSteps,
|
|
125
|
+
TSwitch,
|
|
126
|
+
TTable,
|
|
127
|
+
TTabs,
|
|
128
|
+
TTextarea,
|
|
129
|
+
TThemeBasePicker,
|
|
130
|
+
TThemeScope,
|
|
131
|
+
TToaster,
|
|
132
|
+
TTooltip,
|
|
133
|
+
TTopbar,
|
|
134
|
+
TVectorMap
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export * from './types'
|
|
138
|
+
export { isCustomAccent, themeAccents, themeBases, themeContainers, themeDensities, themeFonts, themeNavs, themeRadii, themeRadiusSizes } from './theme'
|
|
139
|
+
export { useColorMode, type ColorMode } from './composables/useColorMode'
|
|
140
|
+
export { useCommandPalette } from './composables/useCommandPalette'
|
|
141
|
+
export { useField } from './composables/useField'
|
|
142
|
+
export { useToast, type Toast } from './composables/useToast'
|
|
143
|
+
|
|
144
|
+
const components = {
|
|
145
|
+
TAccentPicker, TAdvancedTable, TAlert, TAppLayout, TAuthLayout, TAvatar, TBadge, TButton, TCard,
|
|
146
|
+
TCheckbox, TColorModeButton, TCommandPalette, TContainerPicker, TCopyButton, TDataGrid, TDataGridItem, TDensityPicker,
|
|
147
|
+
TDropdown, TEditableTable, TEmpty, TFieldGroup, TFileUpload, TFontPicker, TFormField, TIcon, TImageUpload,
|
|
148
|
+
TInput, TInputNumber, TInputTags, TLogView, TModal, TNav, TNavPositionPicker, TPage, TPagination,
|
|
149
|
+
TPanelList, TProgress, TRadioGroup, TRadiusPicker, TScaledFrame, TSearchButton, TSectionLayout,
|
|
150
|
+
TSelect, TSelectMenu, TSeparator, TShell, TSkeleton, TSlideover, TSparkline, TSpinner, TSplitter, TStatCard,
|
|
151
|
+
TSteps, TSwitch, TTable, TTabs, TTextarea, TThemeBasePicker, TThemeScope, TToaster, TTooltip,
|
|
152
|
+
TTopbar, TVectorMap
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export default {
|
|
156
|
+
install(app: App) {
|
|
157
|
+
for (const [name, component] of Object.entries(components)) app.component(name, component)
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare module 'vue' {
|
|
162
|
+
export interface GlobalComponents {
|
|
163
|
+
TAccentPicker: typeof TAccentPicker
|
|
164
|
+
TAdvancedTable: typeof TAdvancedTable
|
|
165
|
+
TAlert: typeof TAlert
|
|
166
|
+
TAppLayout: typeof TAppLayout
|
|
167
|
+
TAuthLayout: typeof TAuthLayout
|
|
168
|
+
TAvatar: typeof TAvatar
|
|
169
|
+
TBadge: typeof TBadge
|
|
170
|
+
TButton: typeof TButton
|
|
171
|
+
TCard: typeof TCard
|
|
172
|
+
TCheckbox: typeof TCheckbox
|
|
173
|
+
TColorModeButton: typeof TColorModeButton
|
|
174
|
+
TCommandPalette: typeof TCommandPalette
|
|
175
|
+
TContainerPicker: typeof TContainerPicker
|
|
176
|
+
TCopyButton: typeof TCopyButton
|
|
177
|
+
TDataGrid: typeof TDataGrid
|
|
178
|
+
TDataGridItem: typeof TDataGridItem
|
|
179
|
+
TDensityPicker: typeof TDensityPicker
|
|
180
|
+
TDropdown: typeof TDropdown
|
|
181
|
+
TEditableTable: typeof TEditableTable
|
|
182
|
+
TEmpty: typeof TEmpty
|
|
183
|
+
TFieldGroup: typeof TFieldGroup
|
|
184
|
+
TFileUpload: typeof TFileUpload
|
|
185
|
+
TFontPicker: typeof TFontPicker
|
|
186
|
+
TFormField: typeof TFormField
|
|
187
|
+
TIcon: typeof TIcon
|
|
188
|
+
TImageUpload: typeof TImageUpload
|
|
189
|
+
TInput: typeof TInput
|
|
190
|
+
TInputNumber: typeof TInputNumber
|
|
191
|
+
TInputTags: typeof TInputTags
|
|
192
|
+
TLogView: typeof TLogView
|
|
193
|
+
TModal: typeof TModal
|
|
194
|
+
TNav: typeof TNav
|
|
195
|
+
TNavPositionPicker: typeof TNavPositionPicker
|
|
196
|
+
TPage: typeof TPage
|
|
197
|
+
TPagination: typeof TPagination
|
|
198
|
+
TPanelList: typeof TPanelList
|
|
199
|
+
TProgress: typeof TProgress
|
|
200
|
+
TRadioGroup: typeof TRadioGroup
|
|
201
|
+
TRadiusPicker: typeof TRadiusPicker
|
|
202
|
+
TScaledFrame: typeof TScaledFrame
|
|
203
|
+
TSearchButton: typeof TSearchButton
|
|
204
|
+
TSectionLayout: typeof TSectionLayout
|
|
205
|
+
TSelect: typeof TSelect
|
|
206
|
+
TSelectMenu: typeof TSelectMenu
|
|
207
|
+
TSeparator: typeof TSeparator
|
|
208
|
+
TShell: typeof TShell
|
|
209
|
+
TSkeleton: typeof TSkeleton
|
|
210
|
+
TSlideover: typeof TSlideover
|
|
211
|
+
TSparkline: typeof TSparkline
|
|
212
|
+
TSpinner: typeof TSpinner
|
|
213
|
+
TSplitter: typeof TSplitter
|
|
214
|
+
TStatCard: typeof TStatCard
|
|
215
|
+
TSteps: typeof TSteps
|
|
216
|
+
TSwitch: typeof TSwitch
|
|
217
|
+
TTable: typeof TTable
|
|
218
|
+
TTabs: typeof TTabs
|
|
219
|
+
TTextarea: typeof TTextarea
|
|
220
|
+
TThemeBasePicker: typeof TThemeBasePicker
|
|
221
|
+
TThemeScope: typeof TThemeScope
|
|
222
|
+
TToaster: typeof TToaster
|
|
223
|
+
TTooltip: typeof TTooltip
|
|
224
|
+
TTopbar: typeof TTopbar
|
|
225
|
+
TVectorMap: typeof TVectorMap
|
|
226
|
+
}
|
|
227
|
+
}
|
package/src/plugins/index.ts
CHANGED
|
@@ -1,52 +1,55 @@
|
|
|
1
|
-
// Gears UI's plugin components, on the libraries Tabler's plugins use. Each library is an optional
|
|
2
|
-
// peer dependency that loads the first time its component is shown. Installing this plugin needs
|
|
3
|
-
// all of them; to use only some, import those components from `@ternarytech-io/gears-ui/components/…` instead.
|
|
4
|
-
import type { App } from 'vue'
|
|
5
|
-
import TAdvancedSelect from '../components/TAdvancedSelect.vue'
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
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
|
-
|
|
1
|
+
// Gears UI's plugin components, on the libraries Tabler's plugins use. Each library is an optional
|
|
2
|
+
// peer dependency that loads the first time its component is shown. Installing this plugin needs
|
|
3
|
+
// all of them; to use only some, import those components from `@ternarytech-io/gears-ui/components/…` instead.
|
|
4
|
+
import type { App } from 'vue'
|
|
5
|
+
import TAdvancedSelect from '../components/TAdvancedSelect.vue'
|
|
6
|
+
import TChart from '../components/TChart.vue'
|
|
7
|
+
import TColorPicker from '../components/TColorPicker.vue'
|
|
8
|
+
import TDatePicker from '../components/TDatePicker.vue'
|
|
9
|
+
import TDropzone from '../components/TDropzone.vue'
|
|
10
|
+
import TInputMask from '../components/TInputMask.vue'
|
|
11
|
+
import TRangeSlider from '../components/TRangeSlider.vue'
|
|
12
|
+
import TRichEditor from '../components/TRichEditor.vue'
|
|
13
|
+
import TSortable from '../components/TSortable.vue'
|
|
14
|
+
import TSortableTree from '../components/TSortableTree.vue'
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
TAdvancedSelect,
|
|
18
|
+
TChart,
|
|
19
|
+
TColorPicker,
|
|
20
|
+
TDatePicker,
|
|
21
|
+
TDropzone,
|
|
22
|
+
TInputMask,
|
|
23
|
+
TRangeSlider,
|
|
24
|
+
TRichEditor,
|
|
25
|
+
TSortable,
|
|
26
|
+
TSortableTree
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type { RichEditorPlugin } from './richEditor'
|
|
30
|
+
|
|
31
|
+
const components = {
|
|
32
|
+
TAdvancedSelect, TChart, TColorPicker, TDatePicker, TDropzone, TInputMask, TRangeSlider, TRichEditor,
|
|
33
|
+
TSortable, TSortableTree
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const GearsUIPlugins = {
|
|
37
|
+
install(app: App) {
|
|
38
|
+
for (const [name, component] of Object.entries(components)) app.component(name, component)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare module 'vue' {
|
|
43
|
+
export interface GlobalComponents {
|
|
44
|
+
TAdvancedSelect: typeof TAdvancedSelect
|
|
45
|
+
TChart: typeof TChart
|
|
46
|
+
TColorPicker: typeof TColorPicker
|
|
47
|
+
TDatePicker: typeof TDatePicker
|
|
48
|
+
TDropzone: typeof TDropzone
|
|
49
|
+
TInputMask: typeof TInputMask
|
|
50
|
+
TRangeSlider: typeof TRangeSlider
|
|
51
|
+
TRichEditor: typeof TRichEditor
|
|
52
|
+
TSortable: typeof TSortable
|
|
53
|
+
TSortableTree: typeof TSortableTree
|
|
54
|
+
}
|
|
55
|
+
}
|