@drayman/elements 1.65.0 → 1.66.0
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/table/main.js +1 -1
- package/dist/text-field/main.js +1 -1
- package/dist/types/grid/src/app/models/grid-options.d.ts +0 -4
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +3 -0
- package/dist/types/table/src/app/models/table-options.d.ts +38 -0
- package/dist/types/text-field/src/app/models/text-field-options.d.ts +4 -0
- package/package.json +1 -1
|
@@ -7,6 +7,31 @@ import { DraymanCheckbox } from '../../../../checkbox/src/app/models/checkbox-op
|
|
|
7
7
|
import { DraymanDatepicker } from '../../../../datepicker/src/app/models/datepicker-options';
|
|
8
8
|
import { DraymanTimepicker } from '../../../../timepicker/src/app/models/timepicker-options';
|
|
9
9
|
import { InputMaskOptionsBase } from '../../../../shared/models/input-mask-options-base';
|
|
10
|
+
import { DraymanSlider } from '../../../../slider/src/app/models/slider-options';
|
|
11
|
+
declare type EventHandlerKeys<T> = {
|
|
12
|
+
[K in keyof T]: K extends `on${string}` ? K : never;
|
|
13
|
+
}[keyof T];
|
|
14
|
+
declare type DraymanSliderOptions = Omit<DraymanSlider, EventHandlerKeys<DraymanSlider>>;
|
|
15
|
+
declare type DraymanTextFieldOptions = Omit<DraymanTextField, EventHandlerKeys<DraymanTextField>>;
|
|
16
|
+
/**
|
|
17
|
+
* A single toolbar item in the table: a button, slider, or text-field.
|
|
18
|
+
*/
|
|
19
|
+
export declare type DraymanToolbarItem = DraymanToolbarButtonItem | DraymanToolbarSliderItem | DraymanToolbarTextFieldItem;
|
|
20
|
+
/** Button item in the toolbar */
|
|
21
|
+
export interface DraymanToolbarButtonItem {
|
|
22
|
+
type: 'button';
|
|
23
|
+
options: DraymanToolbarButton;
|
|
24
|
+
}
|
|
25
|
+
/** Slider item in the toolbar */
|
|
26
|
+
export interface DraymanToolbarSliderItem {
|
|
27
|
+
type: 'slider';
|
|
28
|
+
options: DraymanSliderOptions;
|
|
29
|
+
}
|
|
30
|
+
/** Text-field item in the toolbar */
|
|
31
|
+
export interface DraymanToolbarTextFieldItem {
|
|
32
|
+
type: 'text-field';
|
|
33
|
+
options: DraymanTextFieldOptions;
|
|
34
|
+
}
|
|
10
35
|
export interface DraymanTable {
|
|
11
36
|
/**
|
|
12
37
|
* Title of the table.
|
|
@@ -145,6 +170,11 @@ export interface DraymanTable {
|
|
|
145
170
|
*/
|
|
146
171
|
select?: boolean;
|
|
147
172
|
/**
|
|
173
|
+
* List of toolbar items (buttons, sliders, text-fields, etc).
|
|
174
|
+
*/
|
|
175
|
+
toolbarItems?: DraymanToolbarItem[];
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated Use `toolbarItems` instead.
|
|
148
178
|
* List of toolbar buttons.
|
|
149
179
|
*/
|
|
150
180
|
toolbarButtons?: DraymanToolbarButton[];
|
|
@@ -158,6 +188,13 @@ export interface DraymanTable {
|
|
|
158
188
|
}[];
|
|
159
189
|
buttonDefinition: DraymanToolbarButton;
|
|
160
190
|
}>;
|
|
191
|
+
/**
|
|
192
|
+
* Event fired when value of input (text-field, slider, etc.) in toolbar changes.
|
|
193
|
+
*/
|
|
194
|
+
onToolbarItemValueChange?: ElementEvent<{
|
|
195
|
+
value: any;
|
|
196
|
+
itemDefinition: DraymanSliderOptions | DraymanTextFieldOptions;
|
|
197
|
+
}>;
|
|
161
198
|
/**
|
|
162
199
|
* This function can be used to override default cells with `select` type search algorithm.
|
|
163
200
|
* Accepts value of the search input. Can be `null`.
|
|
@@ -451,3 +488,4 @@ export interface GridTextCell extends GridCellBase {
|
|
|
451
488
|
type: 'text';
|
|
452
489
|
}
|
|
453
490
|
export declare type GridCellType = GridTextCell | GridTextFieldCell | GridButtonCell | GridNumberFieldCell | GridSelectCell | GridFileUploaderCell | GridCheckboxCell | GridDatepickerCell | GridTimepickerCell | GridProgressCell;
|
|
491
|
+
export {};
|