@drayman/elements 1.64.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.
@@ -62,10 +62,6 @@ export interface DraymanGrid {
62
62
  changedColumnWidthIndex: number;
63
63
  }>;
64
64
  gridStyle?: any;
65
- /**
66
- * Snap to rows and columns when scrolling.
67
- */
68
- scrollSnap?: boolean;
69
65
  }
70
66
  export interface GridCell {
71
67
  overlay?: string;
@@ -60,4 +60,7 @@ export interface DraymanNebula {
60
60
  * By default, Nebula packages are loaded from https://unpkg.com/@nebula.js/PACKAGE_NAME.
61
61
  */
62
62
  nebulaPackagesUrl?: string;
63
+ onEvaluate?: ElementEvent<{
64
+ expression: string;
65
+ }>;
63
66
  }
@@ -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 {};
@@ -19,4 +19,8 @@ export interface DraymanTextField extends InputFieldOptionsBase<string>, Autocom
19
19
  showOnBlur?: boolean;
20
20
  tooltip?: string;
21
21
  };
22
+ /**
23
+ * Float label behavior.
24
+ */
25
+ floatLabel?: 'always' | 'never' | 'auto';
22
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drayman/elements",
3
- "version": "1.64.0",
3
+ "version": "1.66.0",
4
4
  "description": "A collection of web components for Drayman.",
5
5
  "license": "MIT",
6
6
  "keywords": [