@corvina/web-components-library 0.0.2 → 0.0.5
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/icons-corvina-classes-font-face.css +1 -0
- package/package.json +2 -2
- package/src/index.d.ts +44 -7
- package/src/theme/ecciconset.d.ts +4 -0
- package/web-components-library.cjs.js +11 -11
- package/web-components-library.es.js +4990 -5001
- package/web-components-library.umd.js +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corvina/web-components-library",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "web-components-library.umd.js",
|
|
6
6
|
"module": "web-components-library.es.js",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
},
|
|
21
21
|
"packageManager": "pnpm@9.1.1+sha1.09ada6cd05003e0ced25fb716f9fda4063ec2e3b"
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
1
2
|
export declare namespace CORVINA {
|
|
2
3
|
const block: readonly ["top", "bottom"];
|
|
3
4
|
const inline: readonly ["start", "end", "left", "right"];
|
|
@@ -87,6 +88,12 @@ export declare namespace CORVINA {
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
export namespace TABLE {
|
|
91
|
+
enum HEADER_CELL_TYPE {
|
|
92
|
+
/** You need to set `customHeaderGeneratorFunction` */
|
|
93
|
+
CUSTOM = "Custom",
|
|
94
|
+
/** You need to set `headerVueComponent`. Vue only. */
|
|
95
|
+
VUE_COMPONENT = "VueComponent"
|
|
96
|
+
}
|
|
90
97
|
enum CELL_TYPE {
|
|
91
98
|
/** You need to set `propString`, `propStringTooltip` */
|
|
92
99
|
STRING = "String",
|
|
@@ -98,6 +105,8 @@ export declare namespace CORVINA {
|
|
|
98
105
|
BUTTON = "Button",
|
|
99
106
|
/** You need to set `customCellGeneratorFunction` */
|
|
100
107
|
CUSTOM = "Custom",
|
|
108
|
+
/** You need to set `propVueComponent`. Vue only. */
|
|
109
|
+
VUE_COMPONENT = "VueComponent",
|
|
101
110
|
/** Reserved for internal usage. Do not used for user columns */
|
|
102
111
|
EXPAND = "Expand",
|
|
103
112
|
/** Empty column */
|
|
@@ -125,6 +134,22 @@ export declare namespace CORVINA {
|
|
|
125
134
|
function: (item: any) => void;
|
|
126
135
|
}
|
|
127
136
|
type MenuPropEntries = MenuPropEntry[];
|
|
137
|
+
/** Use it with `CELL_TYPE.VUE_COMPONENT` */
|
|
138
|
+
interface VueComponent {
|
|
139
|
+
/** Name of the Vue component or Vue component definition */
|
|
140
|
+
component: string | Component;
|
|
141
|
+
/** Vue component's props */
|
|
142
|
+
props?: Record<string, any>;
|
|
143
|
+
/** Name of the prop that will contain the row item */
|
|
144
|
+
itemPropName?: string;
|
|
145
|
+
}
|
|
146
|
+
/** Use it with `HEADER_CELL_TYPE.VUE_COMPONENT` */
|
|
147
|
+
interface HeaderVueComponent {
|
|
148
|
+
/** Name of the Vue component or Vue component definition */
|
|
149
|
+
component: string | Component;
|
|
150
|
+
/** Vue component's props */
|
|
151
|
+
props?: Record<string, any>;
|
|
152
|
+
}
|
|
128
153
|
/**
|
|
129
154
|
* Interface representing a table header entry.
|
|
130
155
|
*/
|
|
@@ -144,13 +169,27 @@ export declare namespace CORVINA {
|
|
|
144
169
|
/** Indicates if the column is sortable */
|
|
145
170
|
sortable?: boolean;
|
|
146
171
|
/** Additional class to assign to the column header */
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
|
|
172
|
+
colClass?: string;
|
|
173
|
+
/** Additional attributes to add to the column header (th) */
|
|
174
|
+
colAttributes?: Record<string, string>;
|
|
175
|
+
/** Menu action is disabled in the header*/
|
|
176
|
+
menuActionDisabled?: boolean;
|
|
150
177
|
/** Array of menu entries to be displayed in the header */
|
|
151
178
|
menuActions?: MenuPropEntries;
|
|
179
|
+
/** Icon name for the menu activator in the header */
|
|
180
|
+
menuActionIcon?: string;
|
|
181
|
+
/** Type of header cell */
|
|
182
|
+
headerCellType?: HEADER_CELL_TYPE;
|
|
183
|
+
/** Function that generates the header cell virtual dom */
|
|
184
|
+
customHeaderCellGeneratorFunction?: () => HTMLElement;
|
|
185
|
+
/** The `HeaderVueComponent` describing the vuejs component to use */
|
|
186
|
+
headerVueComponent?: HeaderVueComponent;
|
|
187
|
+
/** Type of the row cells */
|
|
188
|
+
type: CELL_TYPE;
|
|
152
189
|
/** Function that generates the cell virtual dom */
|
|
153
190
|
customCellGeneratorFunction?: (item: any, header: TableHeaderEntry) => HTMLElement;
|
|
191
|
+
/** Name of the property of the item object containing the `VueComponent` data */
|
|
192
|
+
propVueComponent?: string;
|
|
154
193
|
/** Additional class to assign to the cell */
|
|
155
194
|
propCellClass?: string;
|
|
156
195
|
/** Name of the property of the item object containing the text string to display */
|
|
@@ -163,10 +202,8 @@ export declare namespace CORVINA {
|
|
|
163
202
|
propButton?: string;
|
|
164
203
|
/** Name of the property of the item object containing an array of objects with text properties for the menu item name */
|
|
165
204
|
propMenu?: string;
|
|
166
|
-
/**
|
|
167
|
-
|
|
168
|
-
/** Menu action is disabled */
|
|
169
|
-
menuActionDisabled?: boolean;
|
|
205
|
+
/** Name of the property of the item object containing an object with additional attributes to add to the cell (td) */
|
|
206
|
+
propCellAttributes?: Record<string, any>;
|
|
170
207
|
/** Name of the property of the item object entry */
|
|
171
208
|
alignTooltip?: Anchor;
|
|
172
209
|
}
|