@agnos-ui/svelte-bootstrap 0.4.0-next.0 → 0.4.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.
Files changed (52) hide show
  1. package/components/accordion/Accordion.svelte.d.ts +1 -1
  2. package/components/accordion/Item.svelte.d.ts +1 -1
  3. package/components/accordion/accordion.d.ts +3 -6
  4. package/components/accordion/accordion.gen.d.ts +77 -5
  5. package/components/accordion/accordion.gen.js +32 -1
  6. package/components/accordion/accordion.js +1 -4
  7. package/components/alert/Alert.svelte.d.ts +1 -1
  8. package/components/alert/alert.d.ts +3 -5
  9. package/components/alert/alert.gen.d.ts +61 -7
  10. package/components/alert/alert.gen.js +14 -1
  11. package/components/alert/alert.js +1 -3
  12. package/components/modal/Modal.svelte +4 -4
  13. package/components/modal/ModalDefaultHeader.svelte +1 -1
  14. package/components/modal/ModalDefaultStructure.svelte +4 -4
  15. package/components/modal/modal.d.ts +3 -6
  16. package/components/modal/modal.gen.d.ts +131 -31
  17. package/components/modal/modal.gen.js +26 -1
  18. package/components/modal/modal.js +1 -4
  19. package/components/pagination/Pagination.svelte +10 -10
  20. package/components/pagination/Pagination.svelte.d.ts +1 -1
  21. package/components/pagination/PaginationDefaultPages.svelte +15 -15
  22. package/components/pagination/PaginationDefaultStructure.svelte +40 -40
  23. package/components/pagination/pagination.d.ts +3 -5
  24. package/components/pagination/pagination.gen.d.ts +204 -34
  25. package/components/pagination/pagination.gen.js +14 -1
  26. package/components/pagination/pagination.js +1 -3
  27. package/components/progressbar/Progressbar.svelte +3 -3
  28. package/components/progressbar/Progressbar.svelte.d.ts +1 -1
  29. package/components/progressbar/progressbar.d.ts +3 -5
  30. package/components/progressbar/progressbar.gen.d.ts +56 -3
  31. package/components/progressbar/progressbar.gen.js +14 -1
  32. package/components/progressbar/progressbar.js +1 -3
  33. package/components/rating/rating.d.ts +3 -5
  34. package/components/rating/rating.gen.d.ts +84 -1
  35. package/components/rating/rating.gen.js +14 -1
  36. package/components/rating/rating.js +1 -3
  37. package/components/select/select.d.ts +3 -5
  38. package/components/select/select.gen.d.ts +121 -1
  39. package/components/select/select.gen.js +14 -1
  40. package/components/select/select.js +1 -3
  41. package/components/slider/Slider.svelte.d.ts +1 -1
  42. package/components/slider/slider.d.ts +3 -5
  43. package/components/slider/slider.gen.d.ts +98 -3
  44. package/components/slider/slider.gen.js +14 -1
  45. package/components/slider/slider.js +1 -3
  46. package/components/toast/Toast.svelte.d.ts +1 -1
  47. package/components/toast/toast.d.ts +3 -5
  48. package/components/toast/toast.gen.d.ts +65 -7
  49. package/components/toast/toast.gen.js +14 -1
  50. package/components/toast/toast.js +1 -3
  51. package/config.d.ts +1 -1
  52. package/package.json +3 -3
@@ -1,7 +1,16 @@
1
- import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/svelte-headless/types';
1
+ import type { WidgetSlotContext, SlotContent, Widget, PropsConfig, Directive } from '@agnos-ui/svelte-headless/types';
2
2
  import type { Placement } from '@floating-ui/dom';
3
3
  import type { HasFocus } from '@agnos-ui/svelte-headless/services/focustrack';
4
4
  import type { FloatingUI } from '@agnos-ui/svelte-headless/services/floatingUI';
5
+ /**
6
+ * Retrieve a shallow copy of the default Select config
7
+ * @returns the default Select config
8
+ */
9
+ declare const export_getSelectDefaultConfig: () => SelectProps<any>;
10
+ export { export_getSelectDefaultConfig as getSelectDefaultConfig };
11
+ /**
12
+ * A type for the slot context of the pagination widget
13
+ */
5
14
  export type SelectContext<Item> = WidgetSlotContext<SelectWidget<Item>>;
6
15
  export type SelectItemContext<Item> = SelectContext<Item> & {
7
16
  /**
@@ -33,84 +42,150 @@ export interface SelectState<Item> {
33
42
  id: string | undefined;
34
43
  /**
35
44
  * aria-label used for the input inside the select
45
+ *
46
+ * @defaultValue `'Select'`
36
47
  */
37
48
  ariaLabel: string | undefined;
38
49
  /**
39
50
  * List of selected item ids
51
+ *
52
+ * @defaultValue `[]`
40
53
  */
41
54
  selected: Item[];
42
55
  /**
43
56
  * Filtered text to be display in the filter input
57
+ *
58
+ * @defaultValue `''`
44
59
  */
45
60
  filterText: string;
46
61
  /**
47
62
  * true if the select is disabled
63
+ *
64
+ * @defaultValue `false`
48
65
  */
49
66
  disabled: boolean;
50
67
  /**
51
68
  * true if the select is open
69
+ *
70
+ * @defaultValue `false`
52
71
  */
53
72
  open: boolean;
54
73
  /**
55
74
  * Class to be added on the dropdown menu container
75
+ *
76
+ * @defaultValue `''`
56
77
  */
57
78
  menuClassName: string;
58
79
  /**
59
80
  * Class to be added on menu items
81
+ *
82
+ * @defaultValue `''`
60
83
  */
61
84
  menuItemClassName: string;
62
85
  /**
63
86
  * Class to be added on selected items (displayed in the input zone)
87
+ *
88
+ * @defaultValue `''`
64
89
  */
65
90
  badgeClassName: string;
66
91
  /**
67
92
  * true if a loading process is being done
93
+ *
94
+ * @defaultValue `false`
68
95
  */
69
96
  loading: boolean;
70
97
  /**
71
98
  * CSS classes to be applied on the widget main container
99
+ *
100
+ * @defaultValue `''`
72
101
  */
73
102
  className: string;
74
103
  /**
75
104
  * The template to override the way each badge on the left of the input is displayed.
76
105
  * This define the content of the badge inside the badge container.
106
+ *
107
+ * @defaultValue
108
+ * ```ts
109
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
110
+ * ```
77
111
  */
78
112
  badgeLabel: SlotContent<SelectItemContext<Item>>;
79
113
  /**
80
114
  * The template to override the way each item is displayed in the list.
81
115
  * This define the content of the badge inside the badge container.
116
+ *
117
+ * @defaultValue
118
+ * ```ts
119
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
120
+ * ```
82
121
  */
83
122
  itemLabel: SlotContent<SelectItemContext<Item>>;
84
123
  }
85
124
  export interface SelectProps<Item> {
86
125
  /**
87
126
  * List of available items for the dropdown
127
+ *
128
+ * @defaultValue `[]`
88
129
  */
89
130
  items: Item[];
90
131
  /**
91
132
  * List of allowed placements for the dropdown.
92
133
  * This refers to the [allowedPlacements from floating UI](https://floating-ui.com/docs/autoPlacement#allowedplacements), given the different [Placement possibilities](https://floating-ui.com/docs/computePosition#placement).
134
+ *
135
+ * @defaultValue
136
+ * ```ts
137
+ * ['bottom-start', 'top-start', 'bottom-end', 'top-end']
138
+ * ```
93
139
  */
94
140
  allowedPlacements: Placement[];
95
141
  /**
96
142
  * Custom function to get the id of an item
97
143
  * By default, the item is returned
144
+ *
145
+ * @defaultValue
146
+ * ```ts
147
+ * (item: any) => '' + item
148
+ * ```
98
149
  */
99
150
  itemIdFn(item: Item): string;
100
151
  /**
101
152
  * Retrieves navigable elements within an HTML element containing badges and the input.
153
+ *
154
+ * @param node - HTMLElement that contains the badges and the input
155
+ *
156
+ * @defaultValue
157
+ * ```ts
158
+ * (node: HTMLElement) => node.querySelectorAll('.au-select-badge,input')
159
+ * ```
102
160
  */
103
161
  navSelector(node: HTMLElement): NodeListOf<HTMLSpanElement | HTMLInputElement>;
104
162
  /**
105
163
  * Callback called dropdown open state change
164
+ * @param isOpen - updated open state
165
+ *
166
+ * @defaultValue
167
+ * ```ts
168
+ * () => {}
169
+ * ```
106
170
  */
107
171
  onOpenChange(isOpen: boolean): void;
108
172
  /**
109
173
  * Callback called when the text filter change
174
+ * @param text - Filtered text
175
+ *
176
+ * @defaultValue
177
+ * ```ts
178
+ * () => {}
179
+ * ```
110
180
  */
111
181
  onFilterTextChange(text: string): void;
112
182
  /**
113
183
  * Callback called when the selection change
184
+ *
185
+ * @defaultValue
186
+ * ```ts
187
+ * () => {}
188
+ * ```
114
189
  */
115
190
  onSelectedChange(selected: Item[]): void;
116
191
  /**
@@ -119,56 +194,93 @@ export interface SelectProps<Item> {
119
194
  id: string | undefined;
120
195
  /**
121
196
  * aria-label used for the input inside the select
197
+ *
198
+ * @defaultValue `'Select'`
122
199
  */
123
200
  ariaLabel: string | undefined;
124
201
  /**
125
202
  * List of selected item ids
203
+ *
204
+ * @defaultValue `[]`
126
205
  */
127
206
  selected: Item[];
128
207
  /**
129
208
  * Filtered text to be display in the filter input
209
+ *
210
+ * @defaultValue `''`
130
211
  */
131
212
  filterText: string;
132
213
  /**
133
214
  * true if the select is disabled
215
+ *
216
+ * @defaultValue `false`
134
217
  */
135
218
  disabled: boolean;
136
219
  /**
137
220
  * true if the select is open
221
+ *
222
+ * @defaultValue `false`
138
223
  */
139
224
  open: boolean;
140
225
  /**
141
226
  * Class to be added on the dropdown menu container
227
+ *
228
+ * @defaultValue `''`
142
229
  */
143
230
  menuClassName: string;
144
231
  /**
145
232
  * Class to be added on menu items
233
+ *
234
+ * @defaultValue `''`
146
235
  */
147
236
  menuItemClassName: string;
148
237
  /**
149
238
  * Class to be added on selected items (displayed in the input zone)
239
+ *
240
+ * @defaultValue `''`
150
241
  */
151
242
  badgeClassName: string;
152
243
  /**
153
244
  * true if a loading process is being done
245
+ *
246
+ * @defaultValue `false`
154
247
  */
155
248
  loading: boolean;
156
249
  /**
157
250
  * CSS classes to be applied on the widget main container
251
+ *
252
+ * @defaultValue `''`
158
253
  */
159
254
  className: string;
160
255
  /**
161
256
  * The template to override the way each badge on the left of the input is displayed.
162
257
  * This define the content of the badge inside the badge container.
258
+ *
259
+ * @defaultValue
260
+ * ```ts
261
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
262
+ * ```
163
263
  */
164
264
  badgeLabel: SlotContent<SelectItemContext<Item>>;
165
265
  /**
166
266
  * The template to override the way each item is displayed in the list.
167
267
  * This define the content of the badge inside the badge container.
268
+ *
269
+ * @defaultValue
270
+ * ```ts
271
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
272
+ * ```
168
273
  */
169
274
  itemLabel: SlotContent<SelectItemContext<Item>>;
170
275
  }
171
276
  export type SelectWidget<Item> = Widget<SelectProps<Item>, SelectState<Item>, SelectApi<Item>, SelectActions<Item>, SelectDirectives<Item>>;
277
+ /**
278
+ * Creates a new select widget instance.
279
+ * @param config - config of the modal, either as a store or as an object containing values or stores.
280
+ * @returns a new select widget instance
281
+ */
282
+ declare const export_createSelect: <Item>(config?: PropsConfig<SelectProps<Item>>) => SelectWidget<Item>;
283
+ export { export_createSelect as createSelect };
172
284
  export interface ItemContext<T> {
173
285
  /**
174
286
  * Original item given in the parameters
@@ -217,14 +329,18 @@ export interface SelectApi<Item> {
217
329
  /**
218
330
  * Select the provided item.
219
331
  * The selected list is used to
332
+ * @param item - the item to select
220
333
  */
221
334
  select(item: Item): void;
222
335
  /**
223
336
  * Unselect the provided item.
337
+ * @param item - the item to unselect
224
338
  */
225
339
  unselect(item: Item): void;
226
340
  /**
227
341
  * Toggle the selection of an item
342
+ * @param item - the item to toggle
343
+ * @param selected - an optional boolean to enforce the selected/unselected state instead of toggling
228
344
  */
229
345
  toggleItem(item: Item, selected?: boolean): void;
230
346
  /**
@@ -237,6 +353,7 @@ export interface SelectApi<Item> {
237
353
  close(): void;
238
354
  /**
239
355
  * Toggle the dropdown menu
356
+ * @param isOpen - If specified, set the menu in the defined state.
240
357
  */
241
358
  toggle(isOpen?: boolean): void;
242
359
  }
@@ -288,6 +405,9 @@ export interface SelectActions<Item> {
288
405
  onInputKeydown: (event: KeyboardEvent) => void;
289
406
  /**
290
407
  * Method to be plugged to on an keydown event of a badge container, in order to manage main actions on badges.
408
+ *
409
+ * @param event - keyboard event
410
+ * @param item - corresponding item
291
411
  */
292
412
  onBadgeKeydown: (event: KeyboardEvent, item: Item) => void;
293
413
  }
@@ -1 +1,14 @@
1
- export {};
1
+ import { getSelectDefaultConfig, createSelect } from '@agnos-ui/core-bootstrap/components/select';
2
+ /**
3
+ * Retrieve a shallow copy of the default Select config
4
+ * @returns the default Select config
5
+ */
6
+ const export_getSelectDefaultConfig = getSelectDefaultConfig;
7
+ export { export_getSelectDefaultConfig as getSelectDefaultConfig };
8
+ /**
9
+ * Creates a new select widget instance.
10
+ * @param config - config of the modal, either as a store or as an object containing values or stores.
11
+ * @returns a new select widget instance
12
+ */
13
+ const export_createSelect = createSelect;
14
+ export { export_createSelect as createSelect };
@@ -1,3 +1 @@
1
- import { createSelect as coreCreateSelect, getSelectDefaultConfig as coreGetSelectDefaultConfig } from '@agnos-ui/core-bootstrap/components/select';
2
- export const createSelect = coreCreateSelect;
3
- export const getSelectDefaultConfig = coreGetSelectDefaultConfig;
1
+ export * from './select.gen';
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  import type { SliderApi, SliderProps, SliderSlots } from './slider';
3
3
  declare const __propDef: {
4
4
  props: {
5
- api?: SliderApi | undefined;
5
+ api?: SliderApi;
6
6
  } & Partial<SliderProps>;
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -1,7 +1,5 @@
1
- import type { WidgetPropsSlots, WidgetFactory } from '@agnos-ui/svelte-headless/types';
2
- import type { SliderWidget, SliderProps } from './slider.gen';
3
- export type * from './slider.gen';
4
- export declare const createSlider: WidgetFactory<SliderWidget>;
5
- export declare const getSliderDefaultConfig: () => SliderProps;
1
+ import type { WidgetPropsSlots } from '@agnos-ui/svelte-headless/types';
2
+ import type { SliderProps } from './slider.gen';
3
+ export * from './slider.gen';
6
4
  export interface SliderSlots extends WidgetPropsSlots<SliderProps> {
7
5
  }
@@ -1,4 +1,10 @@
1
- import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/svelte-headless/types';
1
+ import type { WidgetSlotContext, SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/svelte-headless/types';
2
+ /**
3
+ * Retrieve a shallow copy of the default Slider config
4
+ * @returns the default Slider config
5
+ */
6
+ declare const export_getSliderDefaultConfig: () => SliderProps;
7
+ export { export_getSliderDefaultConfig as getSliderDefaultConfig };
2
8
  export type SliderContext = WidgetSlotContext<SliderWidget>;
3
9
  export type SliderSlotLabelContext = SliderContext & {
4
10
  value: number;
@@ -49,46 +55,68 @@ export interface SliderState {
49
55
  interactive: boolean;
50
56
  /**
51
57
  * Minimum value that can be assigned to the slider
58
+ *
59
+ * @defaultValue `0`
52
60
  */
53
61
  min: number;
54
62
  /**
55
63
  * Maximum value that can be assigned to the slider
64
+ *
65
+ * @defaultValue `100`
56
66
  */
57
67
  max: number;
58
68
  /**
59
69
  * Unit value between slider steps
70
+ *
71
+ * @defaultValue `1`
60
72
  */
61
73
  stepSize: number;
62
74
  /**
63
75
  * If `true` slider value cannot be changed but the slider is still focusable
76
+ *
77
+ * @defaultValue `false`
64
78
  */
65
79
  readonly: boolean;
66
80
  /**
67
81
  * If `true` slider value cannot be changed and the slider cannot be focused
82
+ *
83
+ * @defaultValue `false`
68
84
  */
69
85
  disabled: boolean;
70
86
  /**
71
87
  * If `true` is vertically positioned otherwise it is horizontal
88
+ *
89
+ * @defaultValue `false`
72
90
  */
73
91
  vertical: boolean;
74
92
  /**
75
93
  * Current slider values
94
+ *
95
+ * @defaultValue `[0]`
76
96
  */
77
97
  values: number[];
78
98
  /**
79
99
  * If `true` the value labels are displayed on the slider
100
+ *
101
+ * @defaultValue `true`
80
102
  */
81
103
  showValueLabels: boolean;
82
104
  /**
83
105
  * If `true` the min and max labels are displayed on the slider
106
+ *
107
+ * @defaultValue `true`
84
108
  */
85
109
  showMinMaxLabels: boolean;
86
110
  /**
87
111
  * It `true` slider display is inversed
112
+ *
113
+ * @defaultValue `false`
88
114
  */
89
115
  rtl: boolean;
90
116
  /**
91
117
  * CSS classes to be applied on the widget main container
118
+ *
119
+ * @defaultValue `''`
92
120
  */
93
121
  className: string;
94
122
  /**
@@ -97,70 +125,118 @@ export interface SliderState {
97
125
  structure: SlotContent<SliderContext>;
98
126
  /**
99
127
  * Slot to change the default labels of the slider
128
+ *
129
+ * @defaultValue
130
+ * ```ts
131
+ * ({value}: SliderSlotLabelContext) => '' + value
132
+ * ```
100
133
  */
101
134
  label: SlotContent<SliderSlotLabelContext>;
102
135
  /**
103
- * Slot to change the handlers
136
+ * Slot to change the handlers
104
137
  */
105
138
  handle: SlotContent<SliderSlotHandleContext>;
106
139
  }
107
140
  export interface SliderProps {
108
141
  /**
109
142
  * Return the value for the 'aria-label' attribute for the handle
143
+ * @param value - value of the handle
144
+ * @param sortedIndex - index of the handle in the sorted list
145
+ * @param index - index of the handle in the original list
146
+ *
147
+ * @defaultValue
148
+ * ```ts
149
+ * (value: number) => '' + value
150
+ * ```
110
151
  */
111
152
  ariaLabelHandle: (value: number, sortedIndex: number, index: number) => string;
112
153
  /**
113
154
  * Return the value for the 'aria-valuetext' attribute for the handle
155
+ * @param value - value of the handle
156
+ * @param sortedIndex - index of the handle in the sorted list
157
+ * @param index - index of the handle in the original list
158
+ *
159
+ * @defaultValue
160
+ * ```ts
161
+ * (value: number) => '' + value
162
+ * ```
114
163
  */
115
164
  ariaValueText: (value: number, sortedIndex: number, index: number) => string;
116
165
  /**
117
166
  * An event emitted when slider values are changed
118
167
  *
119
168
  * Event payload equals to the updated slider values
169
+ *
170
+ * @defaultValue
171
+ * ```ts
172
+ * () => {}
173
+ * ```
120
174
  */
121
175
  onValuesChange: (values: number[]) => void;
122
176
  /**
123
177
  * Minimum value that can be assigned to the slider
178
+ *
179
+ * @defaultValue `0`
124
180
  */
125
181
  min: number;
126
182
  /**
127
183
  * Maximum value that can be assigned to the slider
184
+ *
185
+ * @defaultValue `100`
128
186
  */
129
187
  max: number;
130
188
  /**
131
189
  * Unit value between slider steps
190
+ *
191
+ * @defaultValue `1`
132
192
  */
133
193
  stepSize: number;
134
194
  /**
135
195
  * If `true` slider value cannot be changed but the slider is still focusable
196
+ *
197
+ * @defaultValue `false`
136
198
  */
137
199
  readonly: boolean;
138
200
  /**
139
201
  * If `true` slider value cannot be changed and the slider cannot be focused
202
+ *
203
+ * @defaultValue `false`
140
204
  */
141
205
  disabled: boolean;
142
206
  /**
143
207
  * If `true` is vertically positioned otherwise it is horizontal
208
+ *
209
+ * @defaultValue `false`
144
210
  */
145
211
  vertical: boolean;
146
212
  /**
147
213
  * Current slider values
214
+ *
215
+ * @defaultValue `[0]`
148
216
  */
149
217
  values: number[];
150
218
  /**
151
219
  * If `true` the value labels are displayed on the slider
220
+ *
221
+ * @defaultValue `true`
152
222
  */
153
223
  showValueLabels: boolean;
154
224
  /**
155
225
  * If `true` the min and max labels are displayed on the slider
226
+ *
227
+ * @defaultValue `true`
156
228
  */
157
229
  showMinMaxLabels: boolean;
158
230
  /**
159
231
  * It `true` slider display is inversed
232
+ *
233
+ * @defaultValue `false`
160
234
  */
161
235
  rtl: boolean;
162
236
  /**
163
237
  * CSS classes to be applied on the widget main container
238
+ *
239
+ * @defaultValue `''`
164
240
  */
165
241
  className: string;
166
242
  /**
@@ -169,14 +245,26 @@ export interface SliderProps {
169
245
  structure: SlotContent<SliderContext>;
170
246
  /**
171
247
  * Slot to change the default labels of the slider
248
+ *
249
+ * @defaultValue
250
+ * ```ts
251
+ * ({value}: SliderSlotLabelContext) => '' + value
252
+ * ```
172
253
  */
173
254
  label: SlotContent<SliderSlotLabelContext>;
174
255
  /**
175
- * Slot to change the handlers
256
+ * Slot to change the handlers
176
257
  */
177
258
  handle: SlotContent<SliderSlotHandleContext>;
178
259
  }
179
260
  export type SliderWidget = Widget<SliderProps, SliderState, SliderApi, SliderActions, SliderDirectives>;
261
+ /**
262
+ * Create a Slider with given config props
263
+ * @param config - an optional slider config
264
+ * @returns a SliderWidget
265
+ */
266
+ declare const export_createSlider: WidgetFactory<SliderWidget>;
267
+ export { export_createSlider as createSlider };
180
268
  export interface ProgressDisplayOptions {
181
269
  /**
182
270
  * Right offset of the progress in %
@@ -276,18 +364,25 @@ export interface SliderDirectives {
276
364
  export interface SliderActions {
277
365
  /**
278
366
  * Method to handle click on the slider
367
+ * @param event - mouse event
279
368
  */
280
369
  click(event: MouseEvent): void;
281
370
  /**
282
371
  * Method to process the keyboard event
372
+ * @param event - keyboard event object
373
+ * @param handleNumber - id of the modified handle
283
374
  */
284
375
  keydown(event: KeyboardEvent, handleNumber: number): void;
285
376
  /**
286
377
  * Method describing the behavior of the slider handle on mouse down event
378
+ * @param event - mouse event
379
+ * @param handleId - numeric id of the handle
287
380
  */
288
381
  mouseDown(event: MouseEvent, handleId: number): void;
289
382
  /**
290
383
  * Method describing the behavior of the slider handle on touch start event
384
+ * @param event - touch event
385
+ * @param handleId - number id of the handle
291
386
  */
292
387
  touchStart(event: TouchEvent, handleId: number): void;
293
388
  }
@@ -1 +1,14 @@
1
- export {};
1
+ import { getSliderDefaultConfig, createSlider } from '@agnos-ui/core-bootstrap/components/slider';
2
+ /**
3
+ * Retrieve a shallow copy of the default Slider config
4
+ * @returns the default Slider config
5
+ */
6
+ const export_getSliderDefaultConfig = getSliderDefaultConfig;
7
+ export { export_getSliderDefaultConfig as getSliderDefaultConfig };
8
+ /**
9
+ * Create a Slider with given config props
10
+ * @param config - an optional slider config
11
+ * @returns a SliderWidget
12
+ */
13
+ const export_createSlider = createSlider;
14
+ export { export_createSlider as createSlider };
@@ -1,3 +1 @@
1
- import { createSlider as coreCreateSlider, getSliderDefaultConfig as coreGetSliderDefaultConfig } from '@agnos-ui/core-bootstrap/components/slider';
2
- export const createSlider = coreCreateSlider;
3
- export const getSliderDefaultConfig = coreGetSliderDefaultConfig;
1
+ export * from './slider.gen';
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  import type { ToastApi, ToastProps, ToastSlots } from './toast';
3
3
  declare const __propDef: {
4
4
  props: {
5
- api?: ToastApi | undefined;
5
+ api?: ToastApi;
6
6
  } & Partial<ToastProps>;
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -1,7 +1,5 @@
1
- import type { WidgetPropsSlots, WidgetFactory } from '@agnos-ui/svelte-headless/types';
2
- import type { ToastWidget, ToastProps } from './toast.gen';
3
- export type * from './toast.gen';
4
- export declare const createToast: WidgetFactory<ToastWidget>;
5
- export declare const getToastDefaultConfig: () => ToastProps;
1
+ import type { WidgetPropsSlots } from '@agnos-ui/svelte-headless/types';
2
+ import type { ToastProps } from './toast.gen';
3
+ export * from './toast.gen';
6
4
  export interface ToastSlots extends WidgetPropsSlots<ToastProps> {
7
5
  }