@design-factory/angular 21.1.0-next.0 → 21.1.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 (191) hide show
  1. package/fesm2022/design-factory-angular-drawer.mjs +22 -29
  2. package/fesm2022/design-factory-angular-drawer.mjs.map +1 -1
  3. package/fesm2022/design-factory-angular-internals.mjs +5 -5
  4. package/fesm2022/design-factory-angular-internals.mjs.map +1 -1
  5. package/fesm2022/design-factory-angular-sidenav.mjs +139 -62
  6. package/fesm2022/design-factory-angular-sidenav.mjs.map +1 -1
  7. package/fesm2022/design-factory-angular-theme.mjs +1 -1
  8. package/fesm2022/design-factory-angular-theme.mjs.map +1 -1
  9. package/fesm2022/design-factory-angular-topnav.mjs +152 -75
  10. package/fesm2022/design-factory-angular-topnav.mjs.map +1 -1
  11. package/package.json +3 -6
  12. package/types/design-factory-angular-drawer.d.ts +13 -14
  13. package/types/design-factory-angular-internals.d.ts +3 -3
  14. package/types/design-factory-angular-sidenav.d.ts +19 -6
  15. package/types/design-factory-angular-topnav.d.ts +13 -6
  16. package/node_modules/@agnos-ui/core/README.md +0 -5
  17. package/node_modules/@agnos-ui/core/accordion-BC_9xn23.cjs +0 -314
  18. package/node_modules/@agnos-ui/core/accordion-Ca_0T8Bc.js +0 -315
  19. package/node_modules/@agnos-ui/core/alert-AhaliJ17.cjs +0 -9
  20. package/node_modules/@agnos-ui/core/alert-Cb9FhbFQ.js +0 -10
  21. package/node_modules/@agnos-ui/core/collapse-COriZO7o.cjs +0 -94
  22. package/node_modules/@agnos-ui/core/collapse-CP79atna.js +0 -95
  23. package/node_modules/@agnos-ui/core/common-B5jS-Ih_.cjs +0 -73
  24. package/node_modules/@agnos-ui/core/common-DFyZvkII.js +0 -74
  25. package/node_modules/@agnos-ui/core/components/accordion/accordion.d.ts +0 -333
  26. package/node_modules/@agnos-ui/core/components/accordion/index.cjs +0 -7
  27. package/node_modules/@agnos-ui/core/components/accordion/index.d.ts +0 -1
  28. package/node_modules/@agnos-ui/core/components/accordion/index.js +0 -7
  29. package/node_modules/@agnos-ui/core/components/alert/alert.d.ts +0 -37
  30. package/node_modules/@agnos-ui/core/components/alert/common.d.ts +0 -138
  31. package/node_modules/@agnos-ui/core/components/alert/index.cjs +0 -5
  32. package/node_modules/@agnos-ui/core/components/alert/index.d.ts +0 -1
  33. package/node_modules/@agnos-ui/core/components/alert/index.js +0 -5
  34. package/node_modules/@agnos-ui/core/components/carousel/carousel.d.ts +0 -247
  35. package/node_modules/@agnos-ui/core/components/carousel/index.cjs +0 -292
  36. package/node_modules/@agnos-ui/core/components/carousel/index.d.ts +0 -1
  37. package/node_modules/@agnos-ui/core/components/carousel/index.js +0 -292
  38. package/node_modules/@agnos-ui/core/components/collapse/collapse.d.ts +0 -135
  39. package/node_modules/@agnos-ui/core/components/collapse/index.cjs +0 -5
  40. package/node_modules/@agnos-ui/core/components/collapse/index.d.ts +0 -1
  41. package/node_modules/@agnos-ui/core/components/collapse/index.js +0 -5
  42. package/node_modules/@agnos-ui/core/components/commonProps.d.ts +0 -11
  43. package/node_modules/@agnos-ui/core/components/drawer/drawer.d.ts +0 -279
  44. package/node_modules/@agnos-ui/core/components/drawer/index.cjs +0 -5
  45. package/node_modules/@agnos-ui/core/components/drawer/index.d.ts +0 -1
  46. package/node_modules/@agnos-ui/core/components/drawer/index.js +0 -5
  47. package/node_modules/@agnos-ui/core/components/modal/index.cjs +0 -8
  48. package/node_modules/@agnos-ui/core/components/modal/index.d.ts +0 -1
  49. package/node_modules/@agnos-ui/core/components/modal/index.js +0 -8
  50. package/node_modules/@agnos-ui/core/components/modal/modal.d.ts +0 -245
  51. package/node_modules/@agnos-ui/core/components/pagination/index.cjs +0 -5
  52. package/node_modules/@agnos-ui/core/components/pagination/index.d.ts +0 -1
  53. package/node_modules/@agnos-ui/core/components/pagination/index.js +0 -5
  54. package/node_modules/@agnos-ui/core/components/pagination/pagination.d.ts +0 -313
  55. package/node_modules/@agnos-ui/core/components/progressbar/index.cjs +0 -5
  56. package/node_modules/@agnos-ui/core/components/progressbar/index.d.ts +0 -1
  57. package/node_modules/@agnos-ui/core/components/progressbar/index.js +0 -5
  58. package/node_modules/@agnos-ui/core/components/progressbar/progressbar.d.ts +0 -91
  59. package/node_modules/@agnos-ui/core/components/rating/index.cjs +0 -5
  60. package/node_modules/@agnos-ui/core/components/rating/index.d.ts +0 -1
  61. package/node_modules/@agnos-ui/core/components/rating/index.js +0 -5
  62. package/node_modules/@agnos-ui/core/components/rating/rating.d.ts +0 -191
  63. package/node_modules/@agnos-ui/core/components/slider/index.cjs +0 -5
  64. package/node_modules/@agnos-ui/core/components/slider/index.d.ts +0 -1
  65. package/node_modules/@agnos-ui/core/components/slider/index.js +0 -5
  66. package/node_modules/@agnos-ui/core/components/slider/slider-utils.d.ts +0 -25
  67. package/node_modules/@agnos-ui/core/components/slider/slider.d.ts +0 -383
  68. package/node_modules/@agnos-ui/core/components/toast/index.cjs +0 -7
  69. package/node_modules/@agnos-ui/core/components/toast/index.d.ts +0 -2
  70. package/node_modules/@agnos-ui/core/components/toast/index.js +0 -7
  71. package/node_modules/@agnos-ui/core/components/toast/toast.d.ts +0 -66
  72. package/node_modules/@agnos-ui/core/components/toast/toaster.d.ts +0 -128
  73. package/node_modules/@agnos-ui/core/components/tree/index.cjs +0 -5
  74. package/node_modules/@agnos-ui/core/components/tree/index.d.ts +0 -1
  75. package/node_modules/@agnos-ui/core/components/tree/index.js +0 -5
  76. package/node_modules/@agnos-ui/core/components/tree/tree.d.ts +0 -143
  77. package/node_modules/@agnos-ui/core/config.cjs +0 -36
  78. package/node_modules/@agnos-ui/core/config.d.ts +0 -117
  79. package/node_modules/@agnos-ui/core/config.js +0 -36
  80. package/node_modules/@agnos-ui/core/directive-Bsreu2z1.js +0 -523
  81. package/node_modules/@agnos-ui/core/directive-DCaXmRe_.cjs +0 -522
  82. package/node_modules/@agnos-ui/core/drawer-BbFAHV07.cjs +0 -328
  83. package/node_modules/@agnos-ui/core/drawer-C6Qa0xEu.js +0 -329
  84. package/node_modules/@agnos-ui/core/index.cjs +0 -134
  85. package/node_modules/@agnos-ui/core/index.d.ts +0 -29
  86. package/node_modules/@agnos-ui/core/index.js +0 -134
  87. package/node_modules/@agnos-ui/core/isFocusable-Ckwus82R.js +0 -32
  88. package/node_modules/@agnos-ui/core/isFocusable-DfzDLeAN.cjs +0 -31
  89. package/node_modules/@agnos-ui/core/modal-BsNuHhT7.cjs +0 -252
  90. package/node_modules/@agnos-ui/core/modal-CgzY8ezz.js +0 -253
  91. package/node_modules/@agnos-ui/core/package.json +0 -57
  92. package/node_modules/@agnos-ui/core/pagination-ZxGaNWZz.js +0 -255
  93. package/node_modules/@agnos-ui/core/pagination-xbcOHnhd.cjs +0 -254
  94. package/node_modules/@agnos-ui/core/progressbar-CRbMKp4b.cjs +0 -86
  95. package/node_modules/@agnos-ui/core/progressbar-CSEIFnlD.js +0 -87
  96. package/node_modules/@agnos-ui/core/promise-CxCD3NYv.cjs +0 -118
  97. package/node_modules/@agnos-ui/core/promise-D-RZVPuv.js +0 -119
  98. package/node_modules/@agnos-ui/core/rating-BIdiiPUo.js +0 -184
  99. package/node_modules/@agnos-ui/core/rating-qx1xaBmz.cjs +0 -183
  100. package/node_modules/@agnos-ui/core/scrollbars-CT87iv_6.cjs +0 -30
  101. package/node_modules/@agnos-ui/core/scrollbars-CcxSrnCx.js +0 -31
  102. package/node_modules/@agnos-ui/core/services/extendWidget.cjs +0 -41
  103. package/node_modules/@agnos-ui/core/services/extendWidget.d.ts +0 -31
  104. package/node_modules/@agnos-ui/core/services/extendWidget.js +0 -41
  105. package/node_modules/@agnos-ui/core/services/floatingUI.cjs +0 -111
  106. package/node_modules/@agnos-ui/core/services/floatingUI.d.ts +0 -76
  107. package/node_modules/@agnos-ui/core/services/floatingUI.js +0 -111
  108. package/node_modules/@agnos-ui/core/services/focusElement.cjs +0 -46
  109. package/node_modules/@agnos-ui/core/services/focusElement.d.ts +0 -9
  110. package/node_modules/@agnos-ui/core/services/focusElement.js +0 -46
  111. package/node_modules/@agnos-ui/core/services/focustrack.cjs +0 -47
  112. package/node_modules/@agnos-ui/core/services/focustrack.d.ts +0 -40
  113. package/node_modules/@agnos-ui/core/services/focustrack.js +0 -47
  114. package/node_modules/@agnos-ui/core/services/hash.cjs +0 -15
  115. package/node_modules/@agnos-ui/core/services/hash.d.ts +0 -3
  116. package/node_modules/@agnos-ui/core/services/hash.js +0 -15
  117. package/node_modules/@agnos-ui/core/services/intersection.cjs +0 -53
  118. package/node_modules/@agnos-ui/core/services/intersection.d.ts +0 -30
  119. package/node_modules/@agnos-ui/core/services/intersection.js +0 -53
  120. package/node_modules/@agnos-ui/core/services/matchMedia.cjs +0 -14
  121. package/node_modules/@agnos-ui/core/services/matchMedia.d.ts +0 -8
  122. package/node_modules/@agnos-ui/core/services/matchMedia.js +0 -14
  123. package/node_modules/@agnos-ui/core/services/navManager.cjs +0 -166
  124. package/node_modules/@agnos-ui/core/services/navManager.d.ts +0 -144
  125. package/node_modules/@agnos-ui/core/services/navManager.js +0 -166
  126. package/node_modules/@agnos-ui/core/services/pointerdownPosition.cjs +0 -60
  127. package/node_modules/@agnos-ui/core/services/pointerdownPosition.d.ts +0 -42
  128. package/node_modules/@agnos-ui/core/services/pointerdownPosition.js +0 -60
  129. package/node_modules/@agnos-ui/core/services/portal.cjs +0 -42
  130. package/node_modules/@agnos-ui/core/services/portal.d.ts +0 -16
  131. package/node_modules/@agnos-ui/core/services/portal.js +0 -42
  132. package/node_modules/@agnos-ui/core/services/resizeObserver.cjs +0 -54
  133. package/node_modules/@agnos-ui/core/services/resizeObserver.d.ts +0 -18
  134. package/node_modules/@agnos-ui/core/services/resizeObserver.js +0 -54
  135. package/node_modules/@agnos-ui/core/services/siblingsInert.cjs +0 -44
  136. package/node_modules/@agnos-ui/core/services/siblingsInert.d.ts +0 -16
  137. package/node_modules/@agnos-ui/core/services/siblingsInert.js +0 -44
  138. package/node_modules/@agnos-ui/core/services/transitions/baseTransitions.cjs +0 -186
  139. package/node_modules/@agnos-ui/core/services/transitions/baseTransitions.d.ts +0 -166
  140. package/node_modules/@agnos-ui/core/services/transitions/baseTransitions.js +0 -186
  141. package/node_modules/@agnos-ui/core/services/transitions/collapse.cjs +0 -40
  142. package/node_modules/@agnos-ui/core/services/transitions/collapse.d.ts +0 -49
  143. package/node_modules/@agnos-ui/core/services/transitions/collapse.js +0 -40
  144. package/node_modules/@agnos-ui/core/services/transitions/cssTransitions.cjs +0 -32
  145. package/node_modules/@agnos-ui/core/services/transitions/cssTransitions.d.ts +0 -25
  146. package/node_modules/@agnos-ui/core/services/transitions/cssTransitions.js +0 -32
  147. package/node_modules/@agnos-ui/core/services/transitions/simpleClassTransition.cjs +0 -37
  148. package/node_modules/@agnos-ui/core/services/transitions/simpleClassTransition.d.ts +0 -47
  149. package/node_modules/@agnos-ui/core/services/transitions/simpleClassTransition.js +0 -37
  150. package/node_modules/@agnos-ui/core/slider-B93hE0ag.cjs +0 -807
  151. package/node_modules/@agnos-ui/core/slider-Cjiq9FgI.js +0 -808
  152. package/node_modules/@agnos-ui/core/textDirection-cNgt24LJ.js +0 -4
  153. package/node_modules/@agnos-ui/core/textDirection-zqcZ5-eK.cjs +0 -3
  154. package/node_modules/@agnos-ui/core/toaster-BQWqxYv-.cjs +0 -190
  155. package/node_modules/@agnos-ui/core/toaster-BzEkshT2.js +0 -191
  156. package/node_modules/@agnos-ui/core/tree-DY04XPPg.cjs +0 -228
  157. package/node_modules/@agnos-ui/core/tree-HwcvZ0_p.js +0 -229
  158. package/node_modules/@agnos-ui/core/types.cjs +0 -6
  159. package/node_modules/@agnos-ui/core/types.d.ts +0 -246
  160. package/node_modules/@agnos-ui/core/types.js +0 -6
  161. package/node_modules/@agnos-ui/core/utils/directive.cjs +0 -28
  162. package/node_modules/@agnos-ui/core/utils/directive.d.ts +0 -352
  163. package/node_modules/@agnos-ui/core/utils/directive.js +0 -28
  164. package/node_modules/@agnos-ui/core/utils/func.cjs +0 -7
  165. package/node_modules/@agnos-ui/core/utils/func.d.ts +0 -11
  166. package/node_modules/@agnos-ui/core/utils/func.js +0 -7
  167. package/node_modules/@agnos-ui/core/utils/id.cjs +0 -5
  168. package/node_modules/@agnos-ui/core/utils/id.d.ts +0 -6
  169. package/node_modules/@agnos-ui/core/utils/id.js +0 -5
  170. package/node_modules/@agnos-ui/core/utils/internal/assign.d.ts +0 -10
  171. package/node_modules/@agnos-ui/core/utils/internal/checks.d.ts +0 -57
  172. package/node_modules/@agnos-ui/core/utils/internal/dom.d.ts +0 -75
  173. package/node_modules/@agnos-ui/core/utils/internal/isFocusable.d.ts +0 -9
  174. package/node_modules/@agnos-ui/core/utils/internal/math.d.ts +0 -5
  175. package/node_modules/@agnos-ui/core/utils/internal/promise.d.ts +0 -98
  176. package/node_modules/@agnos-ui/core/utils/internal/scrollbars.d.ts +0 -8
  177. package/node_modules/@agnos-ui/core/utils/internal/sort.d.ts +0 -16
  178. package/node_modules/@agnos-ui/core/utils/internal/ssrHTMLElement.d.ts +0 -17
  179. package/node_modules/@agnos-ui/core/utils/internal/textDirection.d.ts +0 -7
  180. package/node_modules/@agnos-ui/core/utils/internal/traversal.d.ts +0 -54
  181. package/node_modules/@agnos-ui/core/utils/stores.cjs +0 -172
  182. package/node_modules/@agnos-ui/core/utils/stores.d.ts +0 -224
  183. package/node_modules/@agnos-ui/core/utils/stores.js +0 -172
  184. package/node_modules/@agnos-ui/core/utils/widget.cjs +0 -8
  185. package/node_modules/@agnos-ui/core/utils/widget.d.ts +0 -11
  186. package/node_modules/@agnos-ui/core/utils/widget.js +0 -8
  187. package/node_modules/@agnos-ui/core/utils/writables.cjs +0 -16
  188. package/node_modules/@agnos-ui/core/utils/writables.d.ts +0 -95
  189. package/node_modules/@agnos-ui/core/utils/writables.js +0 -16
  190. package/node_modules/@agnos-ui/core/writables-DYGjj5T3.js +0 -103
  191. package/node_modules/@agnos-ui/core/writables-Dt68gADJ.cjs +0 -102
@@ -1,279 +0,0 @@
1
- import type { TransitionFn } from '../../services/transitions/baseTransitions';
2
- import type { Directive, WidgetFactory } from '../../types';
3
- import { type Widget } from '../../types';
4
- import type { WidgetsCommonPropsAndState } from '../commonProps';
5
- /**
6
- * Possible values for the drawer positions
7
- */
8
- export type DrawerPosition = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
9
- /**
10
- * Possible values for the drawer display configuration.
11
- * - `'overlay'`: the drawer overlays the page content with a backdrop.
12
- * - `'inline'`: the drawer stays in the document flow and moves content as it expands/resizes.
13
- */
14
- export type DrawerConfiguration = 'inline' | 'overlay';
15
- interface DrawerCommonPropsAndState extends WidgetsCommonPropsAndState {
16
- /**
17
- * CSS classes to be applied on the widget main container
18
- *
19
- * @defaultValue `''`
20
- */
21
- className: string;
22
- /**
23
- * Which element should contain the drawer and backdrop DOM elements.
24
- * If it is not null, the drawer and backdrop DOM elements are moved to the specified container.
25
- * Otherwise, they stay where the widget is located.
26
- *
27
- * @defaultValue
28
- * ```ts
29
- * typeof window !== 'undefined' ? document.body : null
30
- * ```
31
- */
32
- container: HTMLElement | null;
33
- /**
34
- * Classes to add on the backdrop DOM element.
35
- *
36
- * @defaultValue `''`
37
- */
38
- backdropClass: string;
39
- /**
40
- * If `true`, the drawer is shown; otherwise, it is hidden.
41
- *
42
- * @defaultValue `false`
43
- */
44
- visible: boolean;
45
- /**
46
- * If `true`, the drawer can be resized by the user.
47
- *
48
- * @defaultValue `false`
49
- */
50
- resizable: boolean;
51
- /**
52
- * Size of the drawer in pixel once the user start interacting.
53
- * It corresponds to the height or the width depending on the drawer orientation
54
- *
55
- * @defaultValue `null`
56
- */
57
- size: number | null;
58
- /**
59
- * The display configuration of the drawer.
60
- * - `'overlay'` (default): the drawer overlays the page content with a backdrop.
61
- * - `'inline'`: the drawer stays in the document flow and moves content as it expands/resizes.
62
- *
63
- * @defaultValue `'overlay'`
64
- */
65
- configuration: DrawerConfiguration;
66
- /**
67
- * The position of the drawer on the screen.
68
- *
69
- * @defaultValue `'inline-start'`
70
- */
71
- position: DrawerPosition;
72
- }
73
- /**
74
- * Interface representing the properties for the Drawer component.
75
- */
76
- export interface DrawerProps extends DrawerCommonPropsAndState {
77
- /**
78
- * The transition function will be executed when the drawer is displayed or hidden.
79
- *
80
- * @defaultValue
81
- * ```ts
82
- * () => {}
83
- * ```
84
- */
85
- transition: TransitionFn;
86
- /**
87
- * The transition function for vertically positioned drawer (top, bottom) that will be executed when the drawer is displayed or hidden.
88
- *
89
- * @defaultValue
90
- * ```ts
91
- * () => {}
92
- * ```
93
- */
94
- verticalTransition: TransitionFn;
95
- /**
96
- * The transition to use for the backdrop behind the drawer (if present).
97
- *
98
- * @defaultValue
99
- * ```ts
100
- * () => {}
101
- * ```
102
- */
103
- backdropTransition: TransitionFn;
104
- /**
105
- * If `true` opening and closing will be animated.
106
- *
107
- * @defaultValue `true`
108
- */
109
- animated: boolean;
110
- /**
111
- * aria-labelledby attribute to use for the drawer element.
112
- *
113
- * @defaultValue `''`
114
- */
115
- ariaLabelledBy: string;
116
- /**
117
- * aria-describedby attribute to use for the drawer element.
118
- *
119
- * @defaultValue `''`
120
- */
121
- ariaDescribedBy: string;
122
- /**
123
- * If `true` displays the backdrop element and disables the body scrolling, otherwise the body of the document is navigable
124
- *
125
- * @defaultValue `true`
126
- */
127
- backdrop: boolean;
128
- /**
129
- * If `true` allows body scrolling when the drawer is open.
130
- *
131
- * @defaultValue `false`
132
- */
133
- bodyScroll: boolean;
134
- /**
135
- * If `true` focuses the drawer when it is opened.
136
- *
137
- * @defaultValue `true`
138
- */
139
- focusOnInit: boolean;
140
- /**
141
- * Event to be triggered when the transition is completed and the drawer is not visible.
142
- *
143
- * @defaultValue
144
- * ```ts
145
- * () => {}
146
- * ```
147
- */
148
- onHidden: () => void;
149
- /**
150
- * Event to be triggered when the transition is completed and the drawer is visible.
151
- *
152
- * @defaultValue
153
- * ```ts
154
- * () => {}
155
- * ```
156
- */
157
- onShown: () => void;
158
- /**
159
- * An event emitted when the drawer size changes (width or height depending on the orientation).
160
- *
161
- * Event payload is equal to the newly selected width or height.
162
- *
163
- * @defaultValue
164
- * ```ts
165
- * () => {}
166
- * ```
167
- */
168
- onSizeChange: (size: number | null) => void;
169
- /**
170
- * Event to be triggered when the visible property changes.
171
- *
172
- * @param visible - new value of the visible propery
173
- *
174
- * @defaultValue
175
- * ```ts
176
- * () => {}
177
- * ```
178
- */
179
- onVisibleChange: (visible: boolean) => void;
180
- /**
181
- * Event to be triggered when the minimized state changes.
182
- *
183
- * @defaultValue
184
- * ```ts
185
- * () => {}
186
- * ```
187
- */
188
- onMinimizedChange: (isMinimized: boolean) => void;
189
- /**
190
- * Event to be triggered when the maximized state changes.
191
- *
192
- * @defaultValue
193
- * ```ts
194
- * () => {}
195
- * ```
196
- */
197
- onMaximizedChange: (isMaximized: boolean) => void;
198
- /**
199
- * Event to be triggered when the user starts or stops resizing the drawer.
200
- *
201
- * @defaultValue
202
- * ```ts
203
- * () => {}
204
- * ```
205
- */
206
- onResizingChange: (isResizing: boolean) => void;
207
- }
208
- /**
209
- * Represents the state of a Drawer component.
210
- */
211
- export interface DrawerState extends DrawerCommonPropsAndState {
212
- /**
213
- * Whether the backdrop is fully hidden. This can be true either because {@link DrawerProps.backdrop|backdrop} is false or
214
- * because {@link DrawerProps.visible|visible} is false and there is no current transition.
215
- */
216
- backdropHidden: boolean;
217
- /**
218
- * Flag to show whether the drawer is fully hidden.
219
- */
220
- hidden: boolean;
221
- /**
222
- * Flag to show whether the drawer is vertically positioned.
223
- */
224
- isVertical: boolean;
225
- }
226
- /**
227
- * Interface representing the API for a Drawer component.
228
- */
229
- export interface DrawerApi {
230
- /**
231
- * Trigger the opening of the drawer.
232
- */
233
- open: (animated?: boolean) => Promise<void>;
234
- /**
235
- * Trigger the closing of the drawer.
236
- */
237
- close: (animated?: boolean) => Promise<void>;
238
- }
239
- /**
240
- * Interface representing various directives used in the Drawer component.
241
- */
242
- export interface DrawerDirectives {
243
- /**
244
- * Directive to put on the drawer DOM element.
245
- */
246
- drawerDirective: Directive;
247
- /**
248
- * Portal directive to put on the drawer DOM element.
249
- */
250
- drawerPortalDirective: Directive;
251
- /**
252
- * Directive to put on the backdrop DOM element.
253
- */
254
- backdropDirective: Directive;
255
- /**
256
- * Portal directive to put on the backdrop DOM element.
257
- */
258
- backdropPortalDirective: Directive;
259
- /**
260
- * Directive to put on the splitter DOM element.
261
- */
262
- splitterDirective: Directive;
263
- }
264
- /**
265
- * Represents a Drawer widget component.
266
- */
267
- export type DrawerWidget = Widget<DrawerProps, DrawerState, DrawerApi, DrawerDirectives>;
268
- /**
269
- * Retrieve a shallow copy of the default Drawer config
270
- * @returns the default Drawer config
271
- */
272
- export declare function getDrawerDefaultConfig(): DrawerProps;
273
- /**
274
- * Create a Drawer widget with given config props
275
- * @param config - an optional Drawer config
276
- * @returns a DrawerWidget
277
- */
278
- export declare const createDrawer: WidgetFactory<DrawerWidget>;
279
- export {};
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const drawer = require("../../drawer-BbFAHV07.cjs");
4
- exports.createDrawer = drawer.createDrawer;
5
- exports.getDrawerDefaultConfig = drawer.getDrawerDefaultConfig;
@@ -1 +0,0 @@
1
- export * from './drawer';
@@ -1,5 +0,0 @@
1
- import { c, g } from "../../drawer-C6Qa0xEu.js";
2
- export {
3
- c as createDrawer,
4
- g as getDrawerDefaultConfig
5
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const modal = require("../../modal-BsNuHhT7.cjs");
4
- exports.createModal = modal.createModal;
5
- exports.getModalDefaultConfig = modal.getModalDefaultConfig;
6
- exports.modalCloseButtonClick = modal.modalCloseButtonClick;
7
- exports.modalCloseEscape = modal.modalCloseEscape;
8
- exports.modalOutsideClick = modal.modalOutsideClick;
@@ -1 +0,0 @@
1
- export * from './modal';
@@ -1,8 +0,0 @@
1
- import { c, g, m, a, b } from "../../modal-CgzY8ezz.js";
2
- export {
3
- c as createModal,
4
- g as getModalDefaultConfig,
5
- m as modalCloseButtonClick,
6
- a as modalCloseEscape,
7
- b as modalOutsideClick
8
- };
@@ -1,245 +0,0 @@
1
- import type { WidgetsCommonPropsAndState } from '../commonProps';
2
- import type { TransitionFn } from '../../services/transitions/baseTransitions';
3
- import type { Directive, Widget, WidgetFactory } from '../../types';
4
- /**
5
- * Value present in the {@link ModalBeforeCloseEvent.result|result} property of the {@link ModalProps.onBeforeClose|onBeforeClose} event
6
- * and returned by the {@link ModalApi.open|open} method, when the modal is closed by a click inside the viewport but outside the modal.
7
- */
8
- export declare const modalOutsideClick: unique symbol;
9
- /**
10
- * Value present in the {@link ModalBeforeCloseEvent.result|result} property of the {@link ModalProps.onBeforeClose|onBeforeClose} event
11
- * and returned by the {@link ModalApi.open|open} method, when the modal is closed by a click on the close button.
12
- */
13
- export declare const modalCloseButtonClick: unique symbol;
14
- /**
15
- * Value present in the {@link ModalBeforeCloseEvent.result|result} property of the {@link ModalProps.onBeforeClose|onBeforeClose} event
16
- * and returned by the {@link ModalApi.open|open} method, when the modal is closed by pressing the Escape key.
17
- */
18
- export declare const modalCloseEscape: unique symbol;
19
- /**
20
- * Properties of the modal widget that are also in the state of the modal.
21
- */
22
- interface ModalCommonPropsAndState extends WidgetsCommonPropsAndState {
23
- /**
24
- * Value of the aria-label attribute to put on the close button.
25
- *
26
- * @defaultValue `'Close'`
27
- */
28
- ariaCloseButtonLabel: string;
29
- /**
30
- * Classes to add on the backdrop DOM element.
31
- *
32
- * @defaultValue `''`
33
- */
34
- backdropClass: string;
35
- /**
36
- * Whether to display the close button.
37
- *
38
- * @defaultValue `true`
39
- */
40
- closeButton: boolean;
41
- /**
42
- * Which element should contain the modal and backdrop DOM elements.
43
- * If it is not null, the modal and backdrop DOM elements are moved to the specified container.
44
- * Otherwise, they stay where the widget is located.
45
- *
46
- * @defaultValue
47
- * ```ts
48
- * typeof window !== 'undefined' ? document.body : null
49
- * ```
50
- */
51
- container: HTMLElement | null;
52
- /**
53
- * Whether the modal should be visible when the transition is completed.
54
- *
55
- * @defaultValue `false`
56
- */
57
- visible: boolean;
58
- }
59
- /**
60
- * Type of the parameter of {@link ModalProps.onBeforeClose|onBeforeClose}.
61
- */
62
- export interface ModalBeforeCloseEvent {
63
- /**
64
- * Result of the modal, which is the value passed to the {@link ModalApi.close|close} method
65
- * and later resolved by the promise returned by the {@link ModalApi.open|open} method.
66
- * If needed, it can be changed from the {@link ModalProps.onBeforeClose|onBeforeClose} event handler.
67
- */
68
- result: any;
69
- /**
70
- * Whether to cancel the close of the modal.
71
- * It can be changed from the {@link ModalProps.onBeforeClose|onBeforeClose} event handler.
72
- */
73
- cancel: boolean;
74
- }
75
- /**
76
- * Properties of the modal widget.
77
- */
78
- export interface ModalProps extends ModalCommonPropsAndState {
79
- /**
80
- * Whether the modal and its backdrop (if present) should be animated when shown or hidden.
81
- *
82
- * @defaultValue `true`
83
- */
84
- animated: boolean;
85
- /**
86
- * Whether a backdrop should be created behind the modal.
87
- *
88
- * @defaultValue `true`
89
- */
90
- backdrop: boolean;
91
- /**
92
- * The transition to use for the backdrop behind the modal (if present).
93
- *
94
- * @defaultValue
95
- * ```ts
96
- * () => {}
97
- * ```
98
- */
99
- backdropTransition: TransitionFn;
100
- /**
101
- * Whether the modal should be closed when clicking on the viewport outside the modal.
102
- *
103
- * @defaultValue `true`
104
- */
105
- closeOnOutsideClick: boolean;
106
- /**
107
- * The transition to use for the modal.
108
- *
109
- * @defaultValue
110
- * ```ts
111
- * () => {}
112
- * ```
113
- */
114
- modalTransition: TransitionFn;
115
- /**
116
- * Event to be triggered when the modal is about to be closed (i.e. the {@link ModalApi.close|close} method was called).
117
- *
118
- * @param event - event giving access to the argument given to the {@link ModalApi.close|close} method and allowing
119
- * to cancel the close process.
120
- *
121
- * @defaultValue
122
- * ```ts
123
- * () => {}
124
- * ```
125
- */
126
- onBeforeClose: (event: ModalBeforeCloseEvent) => void;
127
- /**
128
- * Event to be triggered when the visible property changes.
129
- *
130
- * @param visible - new value of the visible propery
131
- *
132
- * @defaultValue
133
- * ```ts
134
- * () => {}
135
- * ```
136
- */
137
- onVisibleChange: (visible: boolean) => void;
138
- /**
139
- * Event to be triggered when the transition is completed and the modal is not visible.
140
- *
141
- * @defaultValue
142
- * ```ts
143
- * () => {}
144
- * ```
145
- */
146
- onHidden: () => void;
147
- /**
148
- * Event to be triggered when the transition is completed and the modal is visible.
149
- *
150
- * @defaultValue
151
- * ```ts
152
- * () => {}
153
- * ```
154
- */
155
- onShown: () => void;
156
- }
157
- /**
158
- * State of the modal widget.
159
- */
160
- export interface ModalState extends ModalCommonPropsAndState {
161
- /**
162
- * Whether the backdrop is fully hidden. This can be true either because {@link ModalProps.backdrop|backdrop} is false or
163
- * because {@link ModalProps.visible|visible} is false and there is no current transition.
164
- */
165
- backdropHidden: boolean;
166
- /**
167
- * Whether the modal is fully hidden.
168
- */
169
- hidden: boolean;
170
- /**
171
- * Whether there is an active transition to either display or hide the modal.
172
- */
173
- transitioning: boolean;
174
- /**
175
- * DOM element of the modal.
176
- */
177
- modalElement: HTMLElement | null;
178
- }
179
- /**
180
- * API of the modal widget.
181
- */
182
- export interface ModalApi {
183
- /**
184
- * Closes the modal with the given result.
185
- *
186
- * @param result - result of the modal, as passed in the {@link ModalBeforeCloseEvent.result|result} property of the event passed to the
187
- * {@link ModalProps.onBeforeClose|onBeforeClose} event handler (and possibly changed by it) and resolved by the promise returned by the {@link ModalApi.open|open} method.
188
- */
189
- close(result?: any): void;
190
- /**
191
- * Opens the modal and returns a promise that is resolved when the modal is closed.
192
- * The resolved value is the result passed to the {@link ModalApi.close|close} method and possibly changed by the
193
- * {@link ModalProps.onBeforeClose|onBeforeClose} event handler
194
- */
195
- open(): Promise<any>;
196
- /**
197
- * Method to change some modal properties.
198
- */
199
- patch: ModalWidget['patch'];
200
- }
201
- /**
202
- * Directives of the modal widget.
203
- */
204
- export interface ModalDirectives {
205
- /**
206
- * Directive to put on the modal DOM element.
207
- */
208
- modalDirective: Directive;
209
- /**
210
- * Directive to put on the backdrop DOM element.
211
- */
212
- backdropDirective: Directive;
213
- /**
214
- * Portal directive to put on the modal DOM element.
215
- */
216
- modalPortalDirective: Directive;
217
- /**
218
- * Portal directive to put on the backdrop DOM element.
219
- */
220
- backdropPortalDirective: Directive;
221
- /**
222
- * Directive that adds all the necessary attributes to the close button
223
- */
224
- closeButtonDirective: Directive;
225
- /**
226
- * Directive to apply to the dialog element when using the native {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement | HTMLDialogElement}
227
- */
228
- dialogDirective: Directive;
229
- }
230
- /**
231
- * Modal widget.
232
- */
233
- export type ModalWidget = Widget<ModalProps, ModalState, ModalApi, ModalDirectives>;
234
- /**
235
- * Returns a copy of the default modal config.
236
- * @returns a copy of the default modal config
237
- */
238
- export declare function getModalDefaultConfig(): ModalProps;
239
- /**
240
- * Creates a new modal widget instance.
241
- * @param config$ - config of the modal, either as a store or as an object containing values or stores.
242
- * @returns a new modal widget instance
243
- */
244
- export declare const createModal: WidgetFactory<ModalWidget>;
245
- export {};
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pagination = require("../../pagination-xbcOHnhd.cjs");
4
- exports.createPagination = pagination.createPagination;
5
- exports.getPaginationDefaultConfig = pagination.getPaginationDefaultConfig;
@@ -1 +0,0 @@
1
- export * from './pagination';
@@ -1,5 +0,0 @@
1
- import { c, g } from "../../pagination-ZxGaNWZz.js";
2
- export {
3
- c as createPagination,
4
- g as getPaginationDefaultConfig
5
- };