@corvina/vue-components-library 0.0.4 → 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/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -88,6 +88,12 @@ export declare namespace CORVINA {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
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
|
+
}
|
|
91
97
|
enum CELL_TYPE {
|
|
92
98
|
/** You need to set `propString`, `propStringTooltip` */
|
|
93
99
|
STRING = "String",
|
|
@@ -137,6 +143,13 @@ export declare namespace CORVINA {
|
|
|
137
143
|
/** Name of the prop that will contain the row item */
|
|
138
144
|
itemPropName?: string;
|
|
139
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
|
+
}
|
|
140
153
|
/**
|
|
141
154
|
* Interface representing a table header entry.
|
|
142
155
|
*/
|
|
@@ -157,13 +170,23 @@ export declare namespace CORVINA {
|
|
|
157
170
|
sortable?: boolean;
|
|
158
171
|
/** Additional class to assign to the column header */
|
|
159
172
|
propColClass?: string;
|
|
160
|
-
/**
|
|
161
|
-
|
|
173
|
+
/** Menu action is disabled in the header*/
|
|
174
|
+
menuActionDisabled?: boolean;
|
|
162
175
|
/** Array of menu entries to be displayed in the header */
|
|
163
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;
|
|
164
187
|
/** Function that generates the cell virtual dom */
|
|
165
188
|
customCellGeneratorFunction?: (item: any, header: TableHeaderEntry) => HTMLElement;
|
|
166
|
-
/** Name of the property of the item object containing
|
|
189
|
+
/** Name of the property of the item object containing the `VueComponent` data */
|
|
167
190
|
propVueComponent?: string;
|
|
168
191
|
/** Additional class to assign to the cell */
|
|
169
192
|
propCellClass?: string;
|
|
@@ -177,10 +200,6 @@ export declare namespace CORVINA {
|
|
|
177
200
|
propButton?: string;
|
|
178
201
|
/** Name of the property of the item object containing an array of objects with text properties for the menu item name */
|
|
179
202
|
propMenu?: string;
|
|
180
|
-
/** Icon name for the menu activator */
|
|
181
|
-
menuActionIcon?: string;
|
|
182
|
-
/** Menu action is disabled */
|
|
183
|
-
menuActionDisabled?: boolean;
|
|
184
203
|
/** Name of the property of the item object entry */
|
|
185
204
|
alignTooltip?: Anchor;
|
|
186
205
|
}
|