@ternarytech-io/gears-ui 0.5.0 → 0.6.0

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/src/index.ts CHANGED
@@ -1,243 +1,249 @@
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 TCheckboxTree from './components/TCheckboxTree.vue'
18
- import TColorModeButton from './components/TColorModeButton.vue'
19
- import TCommandPalette from './components/TCommandPalette.vue'
20
- import TContainerPicker from './components/TContainerPicker.vue'
21
- import TCopyButton from './components/TCopyButton.vue'
22
- import TDataGrid from './components/TDataGrid.vue'
23
- import TDataGridItem from './components/TDataGridItem.vue'
24
- import TDensityPicker from './components/TDensityPicker.vue'
25
- import TDropdown from './components/TDropdown.vue'
26
- import TEditableTable from './components/TEditableTable.vue'
27
- import TEmpty from './components/TEmpty.vue'
28
- import TFieldGroup from './components/TFieldGroup.vue'
29
- import TFileUpload from './components/TFileUpload.vue'
30
- import TFontPicker from './components/TFontPicker.vue'
31
- import TFormField from './components/TFormField.vue'
32
- import TIcon from './components/TIcon.vue'
33
- import TIconPicker from './components/TIconPicker.vue'
34
- import TImageUpload from './components/TImageUpload.vue'
35
- import TInput from './components/TInput.vue'
36
- import TLightbox from './components/TLightbox.vue'
37
- import TInputNumber from './components/TInputNumber.vue'
38
- import TInputTags from './components/TInputTags.vue'
39
- import TListBox from './components/TListBox.vue'
40
- import TLogView from './components/TLogView.vue'
41
- import TModal from './components/TModal.vue'
42
- import TNav from './components/TNav.vue'
43
- import TNavPositionPicker from './components/TNavPositionPicker.vue'
44
- import TPage from './components/TPage.vue'
45
- import TPagination from './components/TPagination.vue'
46
- import TPanelList from './components/TPanelList.vue'
47
- import TProgress from './components/TProgress.vue'
48
- import TRadioGroup from './components/TRadioGroup.vue'
49
- import TRadiusPicker from './components/TRadiusPicker.vue'
50
- import TRating from './components/TRating.vue'
51
- import TScaledFrame from './components/TScaledFrame.vue'
52
- import TSearchButton from './components/TSearchButton.vue'
53
- import TSectionLayout from './components/TSectionLayout.vue'
54
- import TSelect from './components/TSelect.vue'
55
- import TSelectMenu from './components/TSelectMenu.vue'
56
- import TSeparator from './components/TSeparator.vue'
57
- import TShell from './components/TShell.vue'
58
- import TSkeleton from './components/TSkeleton.vue'
59
- import TSlideover from './components/TSlideover.vue'
60
- import TSparkline from './components/TSparkline.vue'
61
- import TSpinner from './components/TSpinner.vue'
62
- import TSplitter from './components/TSplitter.vue'
63
- import TStatCard from './components/TStatCard.vue'
64
- import TSteps from './components/TSteps.vue'
65
- import TSwitch from './components/TSwitch.vue'
66
- import TTable from './components/TTable.vue'
67
- import TTabs from './components/TTabs.vue'
68
- import TTextarea from './components/TTextarea.vue'
69
- import TThemeBasePicker from './components/TThemeBasePicker.vue'
70
- import TThemeScope from './components/TThemeScope.vue'
71
- import TToaster from './components/TToaster.vue'
72
- import TTooltip from './components/TTooltip.vue'
73
- import TTopbar from './components/TTopbar.vue'
74
- import TVectorMap from './components/TVectorMap.vue'
75
-
76
- export {
77
- TAccentPicker,
78
- TAdvancedTable,
79
- TAlert,
80
- TAppLayout,
81
- TAuthLayout,
82
- TAvatar,
83
- TBadge,
84
- TButton,
85
- TCard,
86
- TCheckbox,
87
- TCheckboxTree,
88
- TColorModeButton,
89
- TCommandPalette,
90
- TContainerPicker,
91
- TCopyButton,
92
- TDataGrid,
93
- TDataGridItem,
94
- TDensityPicker,
95
- TDropdown,
96
- TEditableTable,
97
- TEmpty,
98
- TFieldGroup,
99
- TFileUpload,
100
- TFontPicker,
101
- TFormField,
102
- TIcon,
103
- TIconPicker,
104
- TImageUpload,
105
- TInput,
106
- TInputNumber,
107
- TLightbox,
108
- TInputTags,
109
- TListBox,
110
- TLogView,
111
- TModal,
112
- TNav,
113
- TNavPositionPicker,
114
- TPage,
115
- TPagination,
116
- TPanelList,
117
- TProgress,
118
- TRadioGroup,
119
- TRadiusPicker,
120
- TRating,
121
- TScaledFrame,
122
- TSearchButton,
123
- TSectionLayout,
124
- TSelect,
125
- TSelectMenu,
126
- TSeparator,
127
- TShell,
128
- TSkeleton,
129
- TSlideover,
130
- TSparkline,
131
- TSpinner,
132
- TSplitter,
133
- TStatCard,
134
- TSteps,
135
- TSwitch,
136
- TTable,
137
- TTabs,
138
- TTextarea,
139
- TThemeBasePicker,
140
- TThemeScope,
141
- TToaster,
142
- TTooltip,
143
- TTopbar,
144
- TVectorMap
145
- }
146
-
147
- export * from './types'
148
- export type { LightboxImage } from './components/TLightbox.vue'
149
- export { isCustomAccent, themeAccents, themeBases, themeContainers, themeDensities, themeFonts, themeNavs, themeRadii, themeRadiusSizes } from './theme'
150
- export { useColorMode, type ColorMode } from './composables/useColorMode'
151
- export { useCommandPalette } from './composables/useCommandPalette'
152
- export { useField } from './composables/useField'
153
- export { useToast, type Toast } from './composables/useToast'
154
-
155
- const components = {
156
- TAccentPicker, TAdvancedTable, TAlert, TAppLayout, TAuthLayout, TAvatar, TBadge, TButton, TCard,
157
- TCheckbox, TCheckboxTree, TColorModeButton, TCommandPalette, TContainerPicker, TCopyButton, TDataGrid, TDataGridItem, TDensityPicker,
158
- TDropdown, TEditableTable, TEmpty, TFieldGroup, TFileUpload, TFontPicker, TFormField, TIcon, TIconPicker, TImageUpload,
159
- TInput, TInputNumber, TInputTags, TLightbox, TListBox, TLogView, TModal, TNav, TNavPositionPicker, TPage, TPagination,
160
- TPanelList, TProgress, TRadioGroup, TRadiusPicker, TRating, TScaledFrame, TSearchButton, TSectionLayout,
161
- TSelect, TSelectMenu, TSeparator, TShell, TSkeleton, TSlideover, TSparkline, TSpinner, TSplitter, TStatCard,
162
- TSteps, TSwitch, TTable, TTabs, TTextarea, TThemeBasePicker, TThemeScope, TToaster, TTooltip,
163
- TTopbar, TVectorMap
164
- }
165
-
166
- export default {
167
- install(app: App) {
168
- for (const [name, component] of Object.entries(components)) app.component(name, component)
169
- }
170
- }
171
-
172
- declare module 'vue' {
173
- export interface GlobalComponents {
174
- TAccentPicker: typeof TAccentPicker
175
- TAdvancedTable: typeof TAdvancedTable
176
- TAlert: typeof TAlert
177
- TAppLayout: typeof TAppLayout
178
- TAuthLayout: typeof TAuthLayout
179
- TAvatar: typeof TAvatar
180
- TBadge: typeof TBadge
181
- TButton: typeof TButton
182
- TCard: typeof TCard
183
- TCheckbox: typeof TCheckbox
184
- TCheckboxTree: typeof TCheckboxTree
185
- TColorModeButton: typeof TColorModeButton
186
- TCommandPalette: typeof TCommandPalette
187
- TContainerPicker: typeof TContainerPicker
188
- TCopyButton: typeof TCopyButton
189
- TDataGrid: typeof TDataGrid
190
- TDataGridItem: typeof TDataGridItem
191
- TDensityPicker: typeof TDensityPicker
192
- TDropdown: typeof TDropdown
193
- TEditableTable: typeof TEditableTable
194
- TEmpty: typeof TEmpty
195
- TFieldGroup: typeof TFieldGroup
196
- TFileUpload: typeof TFileUpload
197
- TFontPicker: typeof TFontPicker
198
- TFormField: typeof TFormField
199
- TIcon: typeof TIcon
200
- TIconPicker: typeof TIconPicker
201
- TImageUpload: typeof TImageUpload
202
- TInput: typeof TInput
203
- TLightbox: typeof TLightbox
204
- TInputNumber: typeof TInputNumber
205
- TInputTags: typeof TInputTags
206
- TListBox: typeof TListBox
207
- TLogView: typeof TLogView
208
- TModal: typeof TModal
209
- TNav: typeof TNav
210
- TNavPositionPicker: typeof TNavPositionPicker
211
- TPage: typeof TPage
212
- TPagination: typeof TPagination
213
- TPanelList: typeof TPanelList
214
- TProgress: typeof TProgress
215
- TRadioGroup: typeof TRadioGroup
216
- TRadiusPicker: typeof TRadiusPicker
217
- TRating: typeof TRating
218
- TScaledFrame: typeof TScaledFrame
219
- TSearchButton: typeof TSearchButton
220
- TSectionLayout: typeof TSectionLayout
221
- TSelect: typeof TSelect
222
- TSelectMenu: typeof TSelectMenu
223
- TSeparator: typeof TSeparator
224
- TShell: typeof TShell
225
- TSkeleton: typeof TSkeleton
226
- TSlideover: typeof TSlideover
227
- TSparkline: typeof TSparkline
228
- TSpinner: typeof TSpinner
229
- TSplitter: typeof TSplitter
230
- TStatCard: typeof TStatCard
231
- TSteps: typeof TSteps
232
- TSwitch: typeof TSwitch
233
- TTable: typeof TTable
234
- TTabs: typeof TTabs
235
- TTextarea: typeof TTextarea
236
- TThemeBasePicker: typeof TThemeBasePicker
237
- TThemeScope: typeof TThemeScope
238
- TToaster: typeof TToaster
239
- TTooltip: typeof TTooltip
240
- TTopbar: typeof TTopbar
241
- TVectorMap: typeof TVectorMap
242
- }
243
- }
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 TButtonGroup from './components/TButtonGroup.vue'
16
+ import TCard from './components/TCard.vue'
17
+ import TCheckbox from './components/TCheckbox.vue'
18
+ import TCheckboxTree from './components/TCheckboxTree.vue'
19
+ import TColorModeButton from './components/TColorModeButton.vue'
20
+ import TCommandPalette from './components/TCommandPalette.vue'
21
+ import TContainerPicker from './components/TContainerPicker.vue'
22
+ import TCopyButton from './components/TCopyButton.vue'
23
+ import TDataGrid from './components/TDataGrid.vue'
24
+ import TDataGridItem from './components/TDataGridItem.vue'
25
+ import TDensityPicker from './components/TDensityPicker.vue'
26
+ import TDropdown from './components/TDropdown.vue'
27
+ import TEditableTable from './components/TEditableTable.vue'
28
+ import TEmpty from './components/TEmpty.vue'
29
+ import TFieldGroup from './components/TFieldGroup.vue'
30
+ import TFileUpload from './components/TFileUpload.vue'
31
+ import TFontPicker from './components/TFontPicker.vue'
32
+ import TFormField from './components/TFormField.vue'
33
+ import TIcon from './components/TIcon.vue'
34
+ import TIconPicker from './components/TIconPicker.vue'
35
+ import TImageUpload from './components/TImageUpload.vue'
36
+ import TInput from './components/TInput.vue'
37
+ import TLightbox from './components/TLightbox.vue'
38
+ import TInputNumber from './components/TInputNumber.vue'
39
+ import TInputTags from './components/TInputTags.vue'
40
+ import TListBox from './components/TListBox.vue'
41
+ import TLogView from './components/TLogView.vue'
42
+ import TModal from './components/TModal.vue'
43
+ import TNav from './components/TNav.vue'
44
+ import TNavPositionPicker from './components/TNavPositionPicker.vue'
45
+ import TPage from './components/TPage.vue'
46
+ import TPagination from './components/TPagination.vue'
47
+ import TPanelList from './components/TPanelList.vue'
48
+ import TProgress from './components/TProgress.vue'
49
+ import TRadioGroup from './components/TRadioGroup.vue'
50
+ import TRadiusPicker from './components/TRadiusPicker.vue'
51
+ import TRating from './components/TRating.vue'
52
+ import TScaledFrame from './components/TScaledFrame.vue'
53
+ import TSearchButton from './components/TSearchButton.vue'
54
+ import TSectionLayout from './components/TSectionLayout.vue'
55
+ import TSelect from './components/TSelect.vue'
56
+ import TSelectMenu from './components/TSelectMenu.vue'
57
+ import TSeparator from './components/TSeparator.vue'
58
+ import TShell from './components/TShell.vue'
59
+ import TSkeleton from './components/TSkeleton.vue'
60
+ import TSlideover from './components/TSlideover.vue'
61
+ import TSparkline from './components/TSparkline.vue'
62
+ import TSpinner from './components/TSpinner.vue'
63
+ import TSplitButton from './components/TSplitButton.vue'
64
+ import TSplitter from './components/TSplitter.vue'
65
+ import TStatCard from './components/TStatCard.vue'
66
+ import TSteps from './components/TSteps.vue'
67
+ import TSwitch from './components/TSwitch.vue'
68
+ import TTable from './components/TTable.vue'
69
+ import TTabs from './components/TTabs.vue'
70
+ import TTextarea from './components/TTextarea.vue'
71
+ import TThemeBasePicker from './components/TThemeBasePicker.vue'
72
+ import TThemeScope from './components/TThemeScope.vue'
73
+ import TToaster from './components/TToaster.vue'
74
+ import TTooltip from './components/TTooltip.vue'
75
+ import TTopbar from './components/TTopbar.vue'
76
+ import TVectorMap from './components/TVectorMap.vue'
77
+
78
+ export {
79
+ TAccentPicker,
80
+ TAdvancedTable,
81
+ TAlert,
82
+ TAppLayout,
83
+ TAuthLayout,
84
+ TAvatar,
85
+ TBadge,
86
+ TButton,
87
+ TButtonGroup,
88
+ TCard,
89
+ TCheckbox,
90
+ TCheckboxTree,
91
+ TColorModeButton,
92
+ TCommandPalette,
93
+ TContainerPicker,
94
+ TCopyButton,
95
+ TDataGrid,
96
+ TDataGridItem,
97
+ TDensityPicker,
98
+ TDropdown,
99
+ TEditableTable,
100
+ TEmpty,
101
+ TFieldGroup,
102
+ TFileUpload,
103
+ TFontPicker,
104
+ TFormField,
105
+ TIcon,
106
+ TIconPicker,
107
+ TImageUpload,
108
+ TInput,
109
+ TInputNumber,
110
+ TLightbox,
111
+ TInputTags,
112
+ TListBox,
113
+ TLogView,
114
+ TModal,
115
+ TNav,
116
+ TNavPositionPicker,
117
+ TPage,
118
+ TPagination,
119
+ TPanelList,
120
+ TProgress,
121
+ TRadioGroup,
122
+ TRadiusPicker,
123
+ TRating,
124
+ TScaledFrame,
125
+ TSearchButton,
126
+ TSectionLayout,
127
+ TSelect,
128
+ TSelectMenu,
129
+ TSeparator,
130
+ TShell,
131
+ TSkeleton,
132
+ TSlideover,
133
+ TSparkline,
134
+ TSpinner,
135
+ TSplitButton,
136
+ TSplitter,
137
+ TStatCard,
138
+ TSteps,
139
+ TSwitch,
140
+ TTable,
141
+ TTabs,
142
+ TTextarea,
143
+ TThemeBasePicker,
144
+ TThemeScope,
145
+ TToaster,
146
+ TTooltip,
147
+ TTopbar,
148
+ TVectorMap
149
+ }
150
+
151
+ export * from './types'
152
+ export type { LightboxImage } from './components/TLightbox.vue'
153
+ export { isCustomAccent, themeAccents, themeBases, themeContainers, themeDensities, themeFonts, themeNavs, themeRadii, themeRadiusSizes } from './theme'
154
+ export { useColorMode, type ColorMode } from './composables/useColorMode'
155
+ export { useCommandPalette } from './composables/useCommandPalette'
156
+ export { useField } from './composables/useField'
157
+ export { useToast, type Toast, type ToastPosition } from './composables/useToast'
158
+
159
+ const components = {
160
+ TAccentPicker, TAdvancedTable, TAlert, TAppLayout, TAuthLayout, TAvatar, TBadge, TButton, TButtonGroup, TCard,
161
+ TCheckbox, TCheckboxTree, TColorModeButton, TCommandPalette, TContainerPicker, TCopyButton, TDataGrid, TDataGridItem, TDensityPicker,
162
+ TDropdown, TEditableTable, TEmpty, TFieldGroup, TFileUpload, TFontPicker, TFormField, TIcon, TIconPicker, TImageUpload,
163
+ TInput, TInputNumber, TInputTags, TLightbox, TListBox, TLogView, TModal, TNav, TNavPositionPicker, TPage, TPagination,
164
+ TPanelList, TProgress, TRadioGroup, TRadiusPicker, TRating, TScaledFrame, TSearchButton, TSectionLayout,
165
+ TSelect, TSelectMenu, TSeparator, TShell, TSkeleton, TSlideover, TSparkline, TSpinner, TSplitButton, TSplitter, TStatCard,
166
+ TSteps, TSwitch, TTable, TTabs, TTextarea, TThemeBasePicker, TThemeScope, TToaster, TTooltip,
167
+ TTopbar, TVectorMap
168
+ }
169
+
170
+ export default {
171
+ install(app: App) {
172
+ for (const [name, component] of Object.entries(components)) app.component(name, component)
173
+ }
174
+ }
175
+
176
+ declare module 'vue' {
177
+ export interface GlobalComponents {
178
+ TAccentPicker: typeof TAccentPicker
179
+ TAdvancedTable: typeof TAdvancedTable
180
+ TAlert: typeof TAlert
181
+ TAppLayout: typeof TAppLayout
182
+ TAuthLayout: typeof TAuthLayout
183
+ TAvatar: typeof TAvatar
184
+ TBadge: typeof TBadge
185
+ TButton: typeof TButton
186
+ TButtonGroup: typeof TButtonGroup
187
+ TCard: typeof TCard
188
+ TCheckbox: typeof TCheckbox
189
+ TCheckboxTree: typeof TCheckboxTree
190
+ TColorModeButton: typeof TColorModeButton
191
+ TCommandPalette: typeof TCommandPalette
192
+ TContainerPicker: typeof TContainerPicker
193
+ TCopyButton: typeof TCopyButton
194
+ TDataGrid: typeof TDataGrid
195
+ TDataGridItem: typeof TDataGridItem
196
+ TDensityPicker: typeof TDensityPicker
197
+ TDropdown: typeof TDropdown
198
+ TEditableTable: typeof TEditableTable
199
+ TEmpty: typeof TEmpty
200
+ TFieldGroup: typeof TFieldGroup
201
+ TFileUpload: typeof TFileUpload
202
+ TFontPicker: typeof TFontPicker
203
+ TFormField: typeof TFormField
204
+ TIcon: typeof TIcon
205
+ TIconPicker: typeof TIconPicker
206
+ TImageUpload: typeof TImageUpload
207
+ TInput: typeof TInput
208
+ TLightbox: typeof TLightbox
209
+ TInputNumber: typeof TInputNumber
210
+ TInputTags: typeof TInputTags
211
+ TListBox: typeof TListBox
212
+ TLogView: typeof TLogView
213
+ TModal: typeof TModal
214
+ TNav: typeof TNav
215
+ TNavPositionPicker: typeof TNavPositionPicker
216
+ TPage: typeof TPage
217
+ TPagination: typeof TPagination
218
+ TPanelList: typeof TPanelList
219
+ TProgress: typeof TProgress
220
+ TRadioGroup: typeof TRadioGroup
221
+ TRadiusPicker: typeof TRadiusPicker
222
+ TRating: typeof TRating
223
+ TScaledFrame: typeof TScaledFrame
224
+ TSearchButton: typeof TSearchButton
225
+ TSectionLayout: typeof TSectionLayout
226
+ TSelect: typeof TSelect
227
+ TSelectMenu: typeof TSelectMenu
228
+ TSeparator: typeof TSeparator
229
+ TShell: typeof TShell
230
+ TSkeleton: typeof TSkeleton
231
+ TSlideover: typeof TSlideover
232
+ TSparkline: typeof TSparkline
233
+ TSpinner: typeof TSpinner
234
+ TSplitButton: typeof TSplitButton
235
+ TSplitter: typeof TSplitter
236
+ TStatCard: typeof TStatCard
237
+ TSteps: typeof TSteps
238
+ TSwitch: typeof TSwitch
239
+ TTable: typeof TTable
240
+ TTabs: typeof TTabs
241
+ TTextarea: typeof TTextarea
242
+ TThemeBasePicker: typeof TThemeBasePicker
243
+ TThemeScope: typeof TThemeScope
244
+ TToaster: typeof TToaster
245
+ TTooltip: typeof TTooltip
246
+ TTopbar: typeof TTopbar
247
+ TVectorMap: typeof TVectorMap
248
+ }
249
+ }
@@ -1,59 +1,62 @@
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 TPdfViewer from '../components/TPdfViewer.vue'
12
- import TRangeSlider from '../components/TRangeSlider.vue'
13
- import TRichEditor from '../components/TRichEditor.vue'
14
- import TSortable from '../components/TSortable.vue'
15
- import TSortableTree from '../components/TSortableTree.vue'
16
-
17
- export {
18
- TAdvancedSelect,
19
- TChart,
20
- TColorPicker,
21
- TDatePicker,
22
- TDropzone,
23
- TInputMask,
24
- TPdfViewer,
25
- TRangeSlider,
26
- TRichEditor,
27
- TSortable,
28
- TSortableTree
29
- }
30
-
31
- export type { RichEditorPlugin } from './richEditor'
32
- export type { PdfZoom } from '../components/TPdfViewer.vue'
33
-
34
- const components = {
35
- TAdvancedSelect, TChart, TColorPicker, TDatePicker, TDropzone, TInputMask, TPdfViewer, TRangeSlider, TRichEditor,
36
- TSortable, TSortableTree
37
- }
38
-
39
- export const GearsUIPlugins = {
40
- install(app: App) {
41
- for (const [name, component] of Object.entries(components)) app.component(name, component)
42
- }
43
- }
44
-
45
- declare module 'vue' {
46
- export interface GlobalComponents {
47
- TAdvancedSelect: typeof TAdvancedSelect
48
- TChart: typeof TChart
49
- TColorPicker: typeof TColorPicker
50
- TDatePicker: typeof TDatePicker
51
- TDropzone: typeof TDropzone
52
- TInputMask: typeof TInputMask
53
- TPdfViewer: typeof TPdfViewer
54
- TRangeSlider: typeof TRangeSlider
55
- TRichEditor: typeof TRichEditor
56
- TSortable: typeof TSortable
57
- TSortableTree: typeof TSortableTree
58
- }
59
- }
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 TPdfViewer from '../components/TPdfViewer.vue'
12
+ import TRangeSlider from '../components/TRangeSlider.vue'
13
+ import TRichEditor from '../components/TRichEditor.vue'
14
+ import TSortable from '../components/TSortable.vue'
15
+ import TSortableTree from '../components/TSortableTree.vue'
16
+ import TTimeInput from '../components/TTimeInput.vue'
17
+
18
+ export {
19
+ TAdvancedSelect,
20
+ TChart,
21
+ TColorPicker,
22
+ TDatePicker,
23
+ TDropzone,
24
+ TInputMask,
25
+ TPdfViewer,
26
+ TRangeSlider,
27
+ TRichEditor,
28
+ TSortable,
29
+ TSortableTree,
30
+ TTimeInput
31
+ }
32
+
33
+ export type { RichEditorPlugin } from './richEditor'
34
+ export type { PdfZoom } from '../components/TPdfViewer.vue'
35
+
36
+ const components = {
37
+ TAdvancedSelect, TChart, TColorPicker, TDatePicker, TDropzone, TInputMask, TPdfViewer, TRangeSlider, TRichEditor,
38
+ TSortable, TSortableTree, TTimeInput
39
+ }
40
+
41
+ export const GearsUIPlugins = {
42
+ install(app: App) {
43
+ for (const [name, component] of Object.entries(components)) app.component(name, component)
44
+ }
45
+ }
46
+
47
+ declare module 'vue' {
48
+ export interface GlobalComponents {
49
+ TAdvancedSelect: typeof TAdvancedSelect
50
+ TChart: typeof TChart
51
+ TColorPicker: typeof TColorPicker
52
+ TDatePicker: typeof TDatePicker
53
+ TDropzone: typeof TDropzone
54
+ TInputMask: typeof TInputMask
55
+ TPdfViewer: typeof TPdfViewer
56
+ TRangeSlider: typeof TRangeSlider
57
+ TRichEditor: typeof TRichEditor
58
+ TSortable: typeof TSortable
59
+ TSortableTree: typeof TSortableTree
60
+ TTimeInput: typeof TTimeInput
61
+ }
62
+ }