@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.
- package/dist/atable/src/tsdoc-metadata.json +11 -0
- package/dist/atable.d.ts +46 -0
- package/dist/atable.js +463 -416
- package/dist/atable.js.map +1 -1
- package/dist/atable.tsbuildinfo +1 -0
- package/dist/atable.umd.cjs +1 -1
- package/dist/atable.umd.cjs.map +1 -1
- package/dist/components/index.js +97 -0
- package/dist/index.js +21 -0
- package/dist/src/components/index.d.ts +23 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +46 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/types/index.js +0 -0
- package/package.json +26 -31
- package/src/components/ACell.vue +1 -1
- package/src/components/AExpansionRow.vue +5 -6
- package/src/components/ARow.vue +15 -28
- package/src/components/ATable.vue +8 -8
- package/src/components/ATableHeader.vue +2 -3
- package/src/components/ATableModal.vue +8 -9
- package/src/components/index.ts +1 -1
- package/src/index.ts +6 -0
- package/src/themes/default.css +0 -2
- package/src/types/index.ts +53 -0
- package/src/histoire.setup.ts +0 -24
|
@@ -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
|
+
}
|
package/src/histoire.setup.ts
DELETED
|
@@ -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
|
-
})
|