@corvina/web-components-library 0.0.2 → 0.0.4
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 +39 -6
- package/src/theme/ecciconset.d.ts +4 -0
- package/web-components-library.cjs.js +11 -11
- package/web-components-library.es.js +4862 -4876
- 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.4",
|
|
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
|
*/
|
|
@@ -145,12 +170,24 @@ export declare namespace CORVINA {
|
|
|
145
170
|
sortable?: boolean;
|
|
146
171
|
/** Additional class to assign to the column header */
|
|
147
172
|
propColClass?: string;
|
|
148
|
-
/**
|
|
149
|
-
|
|
173
|
+
/** Menu action is disabled in the header*/
|
|
174
|
+
menuActionDisabled?: boolean;
|
|
150
175
|
/** Array of menu entries to be displayed in the header */
|
|
151
176
|
menuActions?: MenuPropEntries;
|
|
177
|
+
/** Icon name for the menu activator in the header */
|
|
178
|
+
menuActionIcon?: string;
|
|
179
|
+
/** Type of header cell */
|
|
180
|
+
headerCellType?: HEADER_CELL_TYPE;
|
|
181
|
+
/** Function that generates the header cell virtual dom */
|
|
182
|
+
customHeaderCellGeneratorFunction?: () => HTMLElement;
|
|
183
|
+
/** The `HeaderVueComponent` describing the vuejs component to use */
|
|
184
|
+
headerVueComponent?: HeaderVueComponent;
|
|
185
|
+
/** Type of the row cells */
|
|
186
|
+
type: CELL_TYPE;
|
|
152
187
|
/** Function that generates the cell virtual dom */
|
|
153
188
|
customCellGeneratorFunction?: (item: any, header: TableHeaderEntry) => HTMLElement;
|
|
189
|
+
/** Name of the property of the item object containing the `VueComponent` data */
|
|
190
|
+
propVueComponent?: string;
|
|
154
191
|
/** Additional class to assign to the cell */
|
|
155
192
|
propCellClass?: string;
|
|
156
193
|
/** Name of the property of the item object containing the text string to display */
|
|
@@ -163,10 +200,6 @@ export declare namespace CORVINA {
|
|
|
163
200
|
propButton?: string;
|
|
164
201
|
/** Name of the property of the item object containing an array of objects with text properties for the menu item name */
|
|
165
202
|
propMenu?: string;
|
|
166
|
-
/** Icon name for the menu activator */
|
|
167
|
-
menuActionIcon?: string;
|
|
168
|
-
/** Menu action is disabled */
|
|
169
|
-
menuActionDisabled?: boolean;
|
|
170
203
|
/** Name of the property of the item object entry */
|
|
171
204
|
alignTooltip?: Anchor;
|
|
172
205
|
}
|