@stonecrop/atable 0.2.23 → 0.2.25

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.
@@ -0,0 +1,53 @@
1
+ export type TableColumn = {
2
+ name: string
3
+
4
+ align?: CanvasTextAlign
5
+ edit?: boolean
6
+ label?: string
7
+ type?: string
8
+ width?: string
9
+
10
+ cellComponent?: string
11
+ cellComponentProps?: Record<string, any>
12
+ modalComponent?: string
13
+ modalComponentProps?: Record<string, any>
14
+
15
+ format?: string | ((value: any) => any)
16
+ mask?: (value: any) => any
17
+ }
18
+
19
+ export type TableConfig = {
20
+ view?: 'list' | 'tree' | 'list-expansion'
21
+ fullWidth?: boolean
22
+ }
23
+
24
+ export type TableDisplay = {
25
+ childrenOpen?: boolean
26
+ expanded?: boolean
27
+ indent?: number
28
+ isParent?: boolean
29
+ isRoot?: boolean
30
+ modified?: boolean
31
+ open?: boolean
32
+ parent?: number
33
+ }
34
+
35
+ export type TableRow = {
36
+ [key: string]: any
37
+ indent?: number
38
+ parent?: number
39
+ }
40
+
41
+ export type TableModal = {
42
+ colIndex?: number
43
+ event?: string
44
+ left?: number
45
+ parent?: HTMLElement
46
+ rowIndex?: number
47
+ top?: number
48
+ visible?: boolean
49
+ width?: string
50
+
51
+ component?: string
52
+ componentProps?: Record<string, any>
53
+ }
@@ -1,24 +0,0 @@
1
- import { defineSetupVue3 } from '@histoire/plugin-vue'
2
-
3
- import ACell from '@/components/ACell.vue'
4
- import AExpansionRow from '@/components/AExpansionRow.vue'
5
- import ARow from '@/components/ARow.vue'
6
- import ATable from '@/components/ATable.vue'
7
- import ATableHeader from '@/components/ATableHeader.vue'
8
- import ATableModal from '@/components/ATableModal.vue'
9
-
10
- import { ADate, AForm, ANumericInput, ATextInput } from '@stonecrop/aform'
11
-
12
- export const setupVue3 = defineSetupVue3(({ app }) => {
13
- // TODO: (typing) add typing for ADate
14
- app.component('ACell', ACell)
15
- app.component('ADate', ADate)
16
- app.component('AExpansionRow', AExpansionRow)
17
- app.component('AForm', AForm)
18
- app.component('ANumericInput', ANumericInput)
19
- app.component('ARow', ARow)
20
- app.component('ATable', ATable)
21
- app.component('ATableHeader', ATableHeader)
22
- app.component('ATableModal', ATableModal)
23
- app.component('ATextInput', ATextInput)
24
- })