@ternarytech-io/gears-ui 0.2.0 → 0.3.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/README.md +4 -3
- package/package.json +4 -2
- package/src/components/TAppLayout.vue +88 -76
- package/src/components/TChart.vue +188 -0
- package/src/components/TDataGrid.vue +41 -0
- package/src/components/TDataGridItem.vue +23 -0
- package/src/components/TEditableTable.vue +203 -0
- package/src/components/TRadiusPicker.vue +21 -21
- package/src/components/TSparkline.vue +34 -0
- package/src/components/TStatCard.vue +36 -6
- package/src/components/TTable.vue +138 -134
- package/src/index.ts +16 -4
- package/src/plugins/charts.ts +4 -0
- package/src/plugins/index.ts +55 -52
- package/src/styles/gears.css +660 -625
- package/src/theme.ts +50 -45
- package/src/types.ts +38 -1
package/src/index.ts
CHANGED
|
@@ -18,8 +18,11 @@ import TColorModeButton from './components/TColorModeButton.vue'
|
|
|
18
18
|
import TCommandPalette from './components/TCommandPalette.vue'
|
|
19
19
|
import TContainerPicker from './components/TContainerPicker.vue'
|
|
20
20
|
import TCopyButton from './components/TCopyButton.vue'
|
|
21
|
+
import TDataGrid from './components/TDataGrid.vue'
|
|
22
|
+
import TDataGridItem from './components/TDataGridItem.vue'
|
|
21
23
|
import TDensityPicker from './components/TDensityPicker.vue'
|
|
22
24
|
import TDropdown from './components/TDropdown.vue'
|
|
25
|
+
import TEditableTable from './components/TEditableTable.vue'
|
|
23
26
|
import TEmpty from './components/TEmpty.vue'
|
|
24
27
|
import TFieldGroup from './components/TFieldGroup.vue'
|
|
25
28
|
import TFileUpload from './components/TFileUpload.vue'
|
|
@@ -49,6 +52,7 @@ import TSeparator from './components/TSeparator.vue'
|
|
|
49
52
|
import TShell from './components/TShell.vue'
|
|
50
53
|
import TSkeleton from './components/TSkeleton.vue'
|
|
51
54
|
import TSlideover from './components/TSlideover.vue'
|
|
55
|
+
import TSparkline from './components/TSparkline.vue'
|
|
52
56
|
import TSpinner from './components/TSpinner.vue'
|
|
53
57
|
import TSplitter from './components/TSplitter.vue'
|
|
54
58
|
import TStatCard from './components/TStatCard.vue'
|
|
@@ -79,8 +83,11 @@ export {
|
|
|
79
83
|
TCommandPalette,
|
|
80
84
|
TContainerPicker,
|
|
81
85
|
TCopyButton,
|
|
86
|
+
TDataGrid,
|
|
87
|
+
TDataGridItem,
|
|
82
88
|
TDensityPicker,
|
|
83
89
|
TDropdown,
|
|
90
|
+
TEditableTable,
|
|
84
91
|
TEmpty,
|
|
85
92
|
TFieldGroup,
|
|
86
93
|
TFileUpload,
|
|
@@ -110,6 +117,7 @@ export {
|
|
|
110
117
|
TShell,
|
|
111
118
|
TSkeleton,
|
|
112
119
|
TSlideover,
|
|
120
|
+
TSparkline,
|
|
113
121
|
TSpinner,
|
|
114
122
|
TSplitter,
|
|
115
123
|
TStatCard,
|
|
@@ -127,7 +135,7 @@ export {
|
|
|
127
135
|
}
|
|
128
136
|
|
|
129
137
|
export * from './types'
|
|
130
|
-
export { isCustomAccent, themeAccents, themeBases, themeContainers, themeDensities, themeFonts, themeNavs, themeRadii } from './theme'
|
|
138
|
+
export { isCustomAccent, themeAccents, themeBases, themeContainers, themeDensities, themeFonts, themeNavs, themeRadii, themeRadiusSizes } from './theme'
|
|
131
139
|
export { useColorMode, type ColorMode } from './composables/useColorMode'
|
|
132
140
|
export { useCommandPalette } from './composables/useCommandPalette'
|
|
133
141
|
export { useField } from './composables/useField'
|
|
@@ -135,11 +143,11 @@ export { useToast, type Toast } from './composables/useToast'
|
|
|
135
143
|
|
|
136
144
|
const components = {
|
|
137
145
|
TAccentPicker, TAdvancedTable, TAlert, TAppLayout, TAuthLayout, TAvatar, TBadge, TButton, TCard,
|
|
138
|
-
TCheckbox, TColorModeButton, TCommandPalette, TContainerPicker, TCopyButton, TDensityPicker,
|
|
139
|
-
TDropdown, TEmpty, TFieldGroup, TFileUpload, TFontPicker, TFormField, TIcon, TImageUpload,
|
|
146
|
+
TCheckbox, TColorModeButton, TCommandPalette, TContainerPicker, TCopyButton, TDataGrid, TDataGridItem, TDensityPicker,
|
|
147
|
+
TDropdown, TEditableTable, TEmpty, TFieldGroup, TFileUpload, TFontPicker, TFormField, TIcon, TImageUpload,
|
|
140
148
|
TInput, TInputNumber, TInputTags, TLogView, TModal, TNav, TNavPositionPicker, TPage, TPagination,
|
|
141
149
|
TPanelList, TProgress, TRadioGroup, TRadiusPicker, TScaledFrame, TSearchButton, TSectionLayout,
|
|
142
|
-
TSelect, TSelectMenu, TSeparator, TShell, TSkeleton, TSlideover, TSpinner, TSplitter, TStatCard,
|
|
150
|
+
TSelect, TSelectMenu, TSeparator, TShell, TSkeleton, TSlideover, TSparkline, TSpinner, TSplitter, TStatCard,
|
|
143
151
|
TSteps, TSwitch, TTable, TTabs, TTextarea, TThemeBasePicker, TThemeScope, TToaster, TTooltip,
|
|
144
152
|
TTopbar, TVectorMap
|
|
145
153
|
}
|
|
@@ -166,8 +174,11 @@ declare module 'vue' {
|
|
|
166
174
|
TCommandPalette: typeof TCommandPalette
|
|
167
175
|
TContainerPicker: typeof TContainerPicker
|
|
168
176
|
TCopyButton: typeof TCopyButton
|
|
177
|
+
TDataGrid: typeof TDataGrid
|
|
178
|
+
TDataGridItem: typeof TDataGridItem
|
|
169
179
|
TDensityPicker: typeof TDensityPicker
|
|
170
180
|
TDropdown: typeof TDropdown
|
|
181
|
+
TEditableTable: typeof TEditableTable
|
|
171
182
|
TEmpty: typeof TEmpty
|
|
172
183
|
TFieldGroup: typeof TFieldGroup
|
|
173
184
|
TFileUpload: typeof TFileUpload
|
|
@@ -197,6 +208,7 @@ declare module 'vue' {
|
|
|
197
208
|
TShell: typeof TShell
|
|
198
209
|
TSkeleton: typeof TSkeleton
|
|
199
210
|
TSlideover: typeof TSlideover
|
|
211
|
+
TSparkline: typeof TSparkline
|
|
200
212
|
TSpinner: typeof TSpinner
|
|
201
213
|
TSplitter: typeof TSplitter
|
|
202
214
|
TStatCard: typeof TStatCard
|
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
|
+
}
|