@progress/kendo-react-dialogs 7.2.4-develop.3 → 7.3.0-develop.1

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 (49) hide show
  1. package/Dialog.js +8 -0
  2. package/Dialog.mjs +122 -0
  3. package/DialogActionsBar.js +8 -0
  4. package/DialogActionsBar.mjs +32 -0
  5. package/DialogTitleBar.js +8 -0
  6. package/DialogTitleBar.mjs +26 -0
  7. package/MiddleLayerOptimization.js +8 -0
  8. package/MiddleLayerOptimization.mjs +20 -0
  9. package/StageEnum.js +8 -0
  10. package/StageEnum.mjs +12 -0
  11. package/Window.js +8 -0
  12. package/Window.mjs +407 -0
  13. package/WindowActionsBar.js +8 -0
  14. package/WindowActionsBar.mjs +36 -0
  15. package/WindowResizeHandlers.js +8 -0
  16. package/WindowResizeHandlers.mjs +39 -0
  17. package/WindowTitlebar.js +8 -0
  18. package/WindowTitlebar.mjs +87 -0
  19. package/constants.js +8 -0
  20. package/constants.mjs +15 -0
  21. package/dist/cdn/js/kendo-react-dialogs.js +8 -5
  22. package/index.d.mts +599 -5
  23. package/index.d.ts +599 -13
  24. package/index.js +8 -5
  25. package/index.mjs +17 -687
  26. package/messages/index.js +8 -0
  27. package/messages/index.mjs +21 -0
  28. package/package-metadata.js +8 -0
  29. package/package-metadata.mjs +19 -0
  30. package/package.json +3 -3
  31. package/utils.js +8 -0
  32. package/utils.mjs +26 -0
  33. package/Dialog.d.ts +0 -94
  34. package/DialogActionsBar.d.ts +0 -25
  35. package/DialogProps.d.ts +0 -77
  36. package/DialogTitleBar.d.ts +0 -30
  37. package/MiddleLayerOptimization.d.ts +0 -21
  38. package/StageEnum.d.ts +0 -9
  39. package/Window.d.ts +0 -179
  40. package/WindowActionsBar.d.ts +0 -25
  41. package/WindowProps.d.ts +0 -151
  42. package/WindowResizeHandlers.d.ts +0 -20
  43. package/WindowTitlebar.d.ts +0 -67
  44. package/constants.d.ts +0 -12
  45. package/events.d.ts +0 -49
  46. package/messages/index.d.ts +0 -29
  47. package/models/actions-layout.d.ts +0 -8
  48. package/package-metadata.d.ts +0 -9
  49. package/utils.d.ts +0 -6
package/index.d.ts CHANGED
@@ -1,13 +1,599 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Dialog, type DialogHandle, DialogPropsContext } from './Dialog';
6
- import { DialogActionsBar } from './DialogActionsBar';
7
- import { Window, type WindowHandle, WindowPropsContext } from './Window';
8
- import { type WindowProps } from './WindowProps';
9
- import { WindowActionsBar } from './WindowActionsBar';
10
- import { type DialogCloseEvent, type WindowActionsEvent, type WindowMoveEvent } from './events';
11
- import { type ActionsLayout } from './models/actions-layout';
12
- import { type DialogProps } from './DialogProps';
13
- export { Dialog, DialogProps, DialogActionsBar, DialogCloseEvent, DialogHandle, DialogPropsContext, Window, WindowProps, WindowActionsBar, WindowActionsEvent, WindowMoveEvent, WindowHandle, WindowPropsContext, ActionsLayout };
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { BaseEvent } from '@progress/kendo-react-common';
9
+ import { Draggable } from '@progress/kendo-react-common';
10
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
11
+ import PropTypes from 'prop-types';
12
+ import * as React_2 from 'react';
13
+ import { ZIndexContext } from '@progress/kendo-react-common';
14
+ import { ZIndexContextType } from '@progress/kendo-react-common';
15
+
16
+ /**
17
+ * Lists the possible layout of the dialogs action buttons.
18
+ */
19
+ export declare type ActionsLayout = 'start' | 'center' | 'end' | 'stretched';
20
+
21
+ /** @hidden */
22
+ export declare type Dialog = DialogHandle;
23
+
24
+ /**
25
+ * Represents the [KendoReact Dialog component]({% slug overview_dialog %}).
26
+ *
27
+ * Accepts properties of type [DialogProps]({% slug api_dialogs_dialogprops %}).
28
+ * Obtaining the `ref` returns an object of type [DialogHandle]({% slug api_dialogs_dialoghandle %}).
29
+ */
30
+ export declare const Dialog: React_2.ForwardRefExoticComponent<DialogProps & React_2.RefAttributes<any>>;
31
+
32
+ /**
33
+ * Returns the action bar of the Dialog.
34
+ *
35
+ * @returns React.ReactElement
36
+ */
37
+ export declare const DialogActionsBar: React_2.FunctionComponent<DialogActionsBarProps>;
38
+
39
+ /**
40
+ * Represents the props of the [KendoReact DialogActionsBar component]({% slug overview_dialog %}).
41
+ */
42
+ declare interface DialogActionsBarProps {
43
+ /**
44
+ * Specifies the possible layouts of the action buttons ([see example]({% slug actionbuttons_dialog %})). Defaults to `stretched`.
45
+ */
46
+ layout?: ActionsLayout;
47
+ /**
48
+ * @hidden
49
+ */
50
+ children?: any;
51
+ }
52
+
53
+ /**
54
+ * @hidden
55
+ */
56
+ export declare interface DialogCloseEvent extends BaseEvent<Dialog> {
57
+ }
58
+
59
+ /**
60
+ * Represent the `ref` of the Dialog component.
61
+ */
62
+ export declare interface DialogHandle extends Pick<DialogWithoutContext, keyof DialogWithoutContext> {
63
+ }
64
+
65
+ /**
66
+ * Represents the props of the [KendoReact Dialog component]({% slug overview_dialog %}).
67
+ */
68
+ export declare interface DialogProps {
69
+ /**
70
+ * Focus the Dialog container automatically when mounted. By default the autoFocus is false.
71
+ */
72
+ autoFocus?: boolean;
73
+ /**
74
+ * Sets the title of the Dialog ([see example]({% slug title_dialog %})). If `title` is not specified, the Dialog does not render a **Close** button.
75
+ */
76
+ title?: string | React.ReactElement<any>;
77
+ /**
78
+ * Sets a class of the Dialog DOM element.
79
+ */
80
+ className?: string;
81
+ /**
82
+ * Specifies whether a close button should be rendered at the top corner of the dialog.
83
+ */
84
+ closeIcon?: boolean;
85
+ /**
86
+ * Specifies the width of the Dialog ([see example]({% slug dimensions_dialog %})).
87
+ */
88
+ width?: number | string;
89
+ /**
90
+ * Specifies the height of the Dialog ([see example]({% slug dimensions_dialog %})).
91
+ */
92
+ height?: number | string;
93
+ /**
94
+ * Specifies the minimum width of the Dialog.
95
+ */
96
+ minWidth?: number | string;
97
+ /**
98
+ * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
99
+ */
100
+ onClose?: (event: DialogCloseEvent) => void;
101
+ /**
102
+ * @hidden
103
+ */
104
+ children?: React.ReactNode;
105
+ /**
106
+ * Sets the `aria-labelledby` value.
107
+ */
108
+ id?: string;
109
+ /**
110
+ * Represents the `dir` HTML attribute.
111
+ */
112
+ dir?: string;
113
+ /**
114
+ * The styles that are applied to the Dialog.
115
+ */
116
+ style?: React.CSSProperties;
117
+ /**
118
+ * The styles that are applied to the content of the Dialog.
119
+ */
120
+ contentStyle?: React.CSSProperties;
121
+ /**
122
+ * Defines the container to which the Dialog will be appended. Defaults to body.
123
+ * * If set to `null` the Dialog will be rendered without React Portal.
124
+ */
125
+ appendTo?: any;
126
+ /**
127
+ * Configures the `themeColor` of the Dialog.
128
+ *
129
+ * The available options are:
130
+ * - primary
131
+ * - dark
132
+ * - light
133
+ *
134
+ */
135
+ themeColor?: 'primary' | 'dark' | 'light';
136
+ }
137
+
138
+ /**
139
+ * Represents the PropsContext of the `Dialog` component.
140
+ * Used for global configuration of all `Dialog` instances.
141
+ */
142
+ export declare const DialogPropsContext: React_2.Context<(p: DialogProps) => DialogProps>;
143
+
144
+ declare interface DialogState {
145
+ zIndex: number;
146
+ }
147
+
148
+ /** @hidden */
149
+ declare class DialogWithoutContext extends React_2.Component<DialogProps, DialogState> {
150
+ static displayName: string;
151
+ /**
152
+ * @hidden
153
+ */
154
+ static propTypes: {
155
+ title: PropTypes.Requireable<any>;
156
+ id: PropTypes.Requireable<string>;
157
+ dir: PropTypes.Requireable<string>;
158
+ style: PropTypes.Requireable<object>;
159
+ closeIcon: PropTypes.Requireable<boolean>;
160
+ width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
161
+ height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
162
+ minWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
163
+ autoFocus: PropTypes.Requireable<boolean>;
164
+ };
165
+ /**
166
+ * @hidden
167
+ */
168
+ static defaultProps: {
169
+ autoFocus: boolean;
170
+ };
171
+ /**
172
+ * @hidden
173
+ */
174
+ static contextType: React_2.Context<ZIndexContextType>;
175
+ /**
176
+ * @hidden
177
+ */
178
+ context: React_2.ContextType<typeof ZIndexContext>;
179
+ /**
180
+ * @hidden
181
+ */
182
+ element?: HTMLDivElement | null;
183
+ private get _id();
184
+ private titleId;
185
+ private contentId;
186
+ private showLicenseWatermark;
187
+ constructor(props: DialogProps);
188
+ /**
189
+ * @hidden
190
+ */
191
+ componentDidMount(): void;
192
+ /**
193
+ * @hidden
194
+ */
195
+ onCloseDialog: (event: React_2.SyntheticEvent<any>) => void;
196
+ /**
197
+ * @hidden
198
+ */
199
+ onKeyDown: React_2.KeyboardEventHandler<HTMLDivElement>;
200
+ /**
201
+ * @hidden
202
+ */
203
+ render(): JSX_2.Element | null;
204
+ private getActionBar;
205
+ private getContent;
206
+ private generateTitleId;
207
+ private generateContentId;
208
+ private getCurrentZIndex;
209
+ private getDocument;
210
+ }
211
+
212
+ /** @hidden */
213
+ declare type Window_2 = WindowHandle;
214
+
215
+ /**
216
+ * Represents the [KendoReact Window component]({% slug overview_window %}).
217
+ *
218
+ * Accepts properties of type [WindowProps]({% slug api_dialogs_windowprops %}).
219
+ * Obtaining the `ref` returns an object of type [WindowHandle]({% slug api_dialogs_windowhandle %}).
220
+ */
221
+ declare const Window_2: React_2.ForwardRefExoticComponent<WindowProps & React_2.RefAttributes<any>>;
222
+ export { Window_2 as Window }
223
+
224
+ /**
225
+ * Returns the action bar of the Window.
226
+ *
227
+ * @returns React.ReactElement
228
+ */
229
+ export declare const WindowActionsBar: React_2.FunctionComponent<WindowActionsBarProps>;
230
+
231
+ /**
232
+ * Represents the props of the [KendoReact WindowActionsBar component]({% slug overview_dialog %}).
233
+ */
234
+ declare interface WindowActionsBarProps {
235
+ /**
236
+ * Specifies the possible layouts of the action buttons ([see example]({% slug actionbuttons_window %})). Defaults to `end`.
237
+ */
238
+ layout?: ActionsLayout;
239
+ /**
240
+ * @hidden
241
+ */
242
+ children?: any;
243
+ }
244
+
245
+ export declare interface WindowActionsEvent extends BaseEvent<Window_2> {
246
+ state?: 'DEFAULT' | 'FULLSCREEN' | 'MINIMIZED';
247
+ }
248
+
249
+ /**
250
+ * Represent the `ref` of the Window component.
251
+ */
252
+ export declare interface WindowHandle extends Pick<WindowWithoutContext, keyof WindowWithoutContext> {
253
+ /**
254
+ * The Window element.
255
+ */
256
+ element?: HTMLDivElement | null;
257
+ /**
258
+ * **Deprecated.** Use `element` instead.
259
+ */
260
+ windowElement?: HTMLDivElement | null;
261
+ }
262
+
263
+ export declare interface WindowMoveEvent {
264
+ /**
265
+ * An event target.
266
+ */
267
+ target: Window_2;
268
+ /**
269
+ * A native DOM event.
270
+ */
271
+ nativeEvent: any;
272
+ /**
273
+ * Indicates that dragging is completed and that the user dropped the resize handler.
274
+ */
275
+ end: boolean;
276
+ /**
277
+ * Indicates that the move operation was initialized through dragging. If the Window is moved through the keyboard, the value will be `false`.
278
+ */
279
+ drag: boolean;
280
+ /**
281
+ * The new top value of the Window.
282
+ */
283
+ top: number;
284
+ /**
285
+ * The new left value of the Window.
286
+ */
287
+ left: number;
288
+ /**
289
+ * The new width value of the Window.
290
+ */
291
+ width: number;
292
+ /**
293
+ * The new height value of the Window.
294
+ */
295
+ height: number;
296
+ }
297
+
298
+ /**
299
+ * Represents the props of the [KendoReact Window component]({% slug overview_window %}).
300
+ */
301
+ export declare interface WindowProps {
302
+ /**
303
+ * Defines the container to which the Window will be appended. Defaults to its parent element.
304
+ * * If set to `null` the Window will be rendered without React Portal.
305
+ */
306
+ appendTo?: HTMLElement | null;
307
+ /**
308
+ * @hidden
309
+ */
310
+ children?: React.ReactNode;
311
+ /**
312
+ * Specifies if the Window will render the close button.
313
+ */
314
+ closeButton?: React.ComponentType<any>;
315
+ /**
316
+ * Specifies if the Window stage will change on title double click. The this is on by default.
317
+ */
318
+ doubleClickStageChange?: boolean;
319
+ /**
320
+ * Specifies if the Window will be draggable ([see example]({% slug positioningdragging_window %}#toc-dragging)).
321
+ */
322
+ draggable?: boolean;
323
+ /**
324
+ * Specifies the height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)).
325
+ */
326
+ height?: number;
327
+ /**
328
+ * Specifies the initial `left` value ([see example]({% slug positioningdragging_window %}#toc-positioning)). The Window will be in an uncontrolled mode.
329
+ */
330
+ initialLeft?: number;
331
+ /**
332
+ * Specifies the initial `top` value ([see example]({% slug positioningdragging_window %}#toc-positioning)). The component will be in an uncontrolled mode.
333
+ */
334
+ initialTop?: number;
335
+ /**
336
+ * Specifies the initial width of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)). The component will be in an uncontrolled mode.
337
+ */
338
+ initialWidth?: number;
339
+ /**
340
+ * Specifies the initial height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)). The component will be in an uncontrolled mode.
341
+ */
342
+ initialHeight?: number;
343
+ /**
344
+ * Specifies the left coordinates of the Window.
345
+ */
346
+ left?: number;
347
+ /**
348
+ * Specifies if the Window will render the maximize button.
349
+ */
350
+ maximizeButton?: React.ComponentType<any>;
351
+ /**
352
+ * Specifies the minimum height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
353
+ */
354
+ minHeight?: number;
355
+ /**
356
+ * Specifies the minimum width of the Window ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
357
+ */
358
+ minWidth?: number;
359
+ /**
360
+ * Specifies if the Window will render the minimize button.
361
+ */
362
+ minimizeButton?: React.ComponentType<any>;
363
+ /**
364
+ * Specifies if the Window will be modal by rendering an overlay under the component.
365
+ */
366
+ modal?: boolean;
367
+ /**
368
+ * Specifies if the Window will be resizable ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
369
+ */
370
+ resizable?: boolean;
371
+ /**
372
+ * Specifies if the Window will render the restore button.
373
+ */
374
+ restoreButton?: React.ComponentType<any>;
375
+ /**
376
+ * Specifies if the Window content will update during resizing.
377
+ */
378
+ shouldUpdateOnDrag?: boolean;
379
+ /**
380
+ * Specifies the title of the Window ([see example]({% slug title_window %})).
381
+ */
382
+ title?: React.ReactNode | string;
383
+ /**
384
+ * Specifies the top coordinates of the Window.
385
+ */
386
+ top?: number;
387
+ /**
388
+ * Specifies the width of the Window.
389
+ */
390
+ width?: number;
391
+ /**
392
+ * Controls the state of the Window ([see example]({% slug windowstage_window %})).
393
+ *
394
+ * The supported values are:
395
+ * * `DEFAULT`
396
+ * * `MINIMIZED`
397
+ * * `FULLSCREEN`
398
+ */
399
+ stage?: windowStage | string;
400
+ /**
401
+ * Set styles to the Window element.
402
+ */
403
+ style?: React.CSSProperties;
404
+ /**
405
+ * Set styles to the Window overlay element rendered when the `modal` prop is enabled.
406
+ */
407
+ overlayStyle?: React.CSSProperties;
408
+ /**
409
+ * Sets a class of the Window DOM element.
410
+ */
411
+ className?: string;
412
+ /**
413
+ * Configures the `themeColor` of the Window.
414
+ *
415
+ * The available options are:
416
+ * - primary
417
+ * - dark
418
+ * - light
419
+ *
420
+ */
421
+ themeColor?: 'primary' | 'dark' | 'light';
422
+ /**
423
+ * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
424
+ */
425
+ onClose?: (event: WindowActionsEvent) => void;
426
+ /**
427
+ * Fires when the Window is dragged.
428
+ */
429
+ onMove?: (event: WindowMoveEvent) => void;
430
+ /**
431
+ * Fires when the `DEFAULT`, `FULLSCREEN`, or `MINIMIZED` state of the Window is changed.
432
+ */
433
+ onStageChange?: (event: WindowActionsEvent) => void;
434
+ /**
435
+ * Fires when the Window resizes.
436
+ */
437
+ onResize?: (event: WindowMoveEvent) => void;
438
+ /**
439
+ * Sets the `id` attribute value of the wrapper element of the Window.
440
+ */
441
+ id?: string;
442
+ }
443
+
444
+ /**
445
+ * Represents the PropsContext of the `Window` component.
446
+ * Used for global configuration of all `Window` instances.
447
+ */
448
+ export declare const WindowPropsContext: React_2.Context<(p: WindowProps) => WindowProps>;
449
+
450
+ declare enum windowStage {
451
+ DEFAULT = "DEFAULT",
452
+ FULLSCREEN = "FULLSCREEN",
453
+ MINIMIZED = "MINIMIZED"
454
+ }
455
+
456
+ declare interface WindowState {
457
+ stage: windowStage | string;
458
+ isDragging: boolean;
459
+ top: number;
460
+ left: number;
461
+ width: number;
462
+ height: number;
463
+ focused: boolean;
464
+ zIndex: number;
465
+ }
466
+
467
+ /** @hidden */
468
+ declare class WindowWithoutContext extends React_2.Component<WindowProps, WindowState> {
469
+ static displayName: string;
470
+ /**
471
+ * @hidden
472
+ */
473
+ static propTypes: {
474
+ width: PropTypes.Requireable<number>;
475
+ height: PropTypes.Requireable<number>;
476
+ left: PropTypes.Requireable<number>;
477
+ top: PropTypes.Requireable<number>;
478
+ initialWidth: PropTypes.Requireable<number>;
479
+ initialHeight: PropTypes.Requireable<number>;
480
+ initialLeft: PropTypes.Requireable<number>;
481
+ initialTop: PropTypes.Requireable<number>;
482
+ minWidth: PropTypes.Requireable<number>;
483
+ minHeight: PropTypes.Requireable<number>;
484
+ resizable: PropTypes.Requireable<boolean>;
485
+ draggable: PropTypes.Requireable<boolean>;
486
+ title: PropTypes.Requireable<any>;
487
+ shouldUpdateOnDrag: PropTypes.Requireable<boolean>;
488
+ stage: PropTypes.Requireable<string>;
489
+ className: PropTypes.Requireable<string>;
490
+ id: PropTypes.Requireable<string>;
491
+ style: PropTypes.Requireable<object>;
492
+ overlayStyle: PropTypes.Requireable<object>;
493
+ };
494
+ /**
495
+ * @hidden
496
+ */
497
+ static defaultProps: {
498
+ minWidth: number;
499
+ minHeight: number;
500
+ resizable: boolean;
501
+ draggable: boolean;
502
+ modal: boolean;
503
+ doubleClickStageChange: boolean;
504
+ };
505
+ /**
506
+ * @hidden
507
+ */
508
+ static contextType: React_2.Context<ZIndexContextType>;
509
+ /**
510
+ * @hidden
511
+ */
512
+ context: React_2.ContextType<typeof ZIndexContext>;
513
+ /**
514
+ * **Deprecated.** Use `element` instead.
515
+ */
516
+ windowElement?: HTMLDivElement | null;
517
+ /**
518
+ * The Window element.
519
+ */
520
+ element?: HTMLDivElement | null;
521
+ /**
522
+ * @hidden
523
+ */
524
+ windowTitle?: any;
525
+ draggable: Draggable | null;
526
+ private windowCoordinatesState?;
527
+ private offSetCoordinates?;
528
+ private get _id();
529
+ private titleId;
530
+ private _blurTimeout?;
531
+ private mounted;
532
+ private showLicenseWatermark;
533
+ constructor(props: WindowProps);
534
+ /**
535
+ * @hidden
536
+ */
537
+ componentDidMount(): void;
538
+ /**
539
+ * @hidden
540
+ */
541
+ componentWillUnmount(): void;
542
+ /**
543
+ * @hidden
544
+ */
545
+ componentDidUpdate(): void;
546
+ /**
547
+ * @hidden
548
+ */
549
+ onKeyDown: React_2.KeyboardEventHandler<HTMLDivElement>;
550
+ /**
551
+ * @hidden
552
+ */
553
+ onPress: (data: any) => void;
554
+ /**
555
+ * @hidden
556
+ */
557
+ onDrag: (data: any) => void;
558
+ /**
559
+ * @hidden
560
+ */
561
+ onRelease: (data: any) => void;
562
+ /**
563
+ * @hidden
564
+ */
565
+ onFocus: () => void;
566
+ /**
567
+ * @hidden
568
+ */
569
+ onBlur: () => void;
570
+ /**
571
+ * @hidden
572
+ */
573
+ render(): JSX_2.Element | null;
574
+ private get top();
575
+ private get left();
576
+ private get width();
577
+ private get height();
578
+ private get windowStage();
579
+ private getInitialTop;
580
+ private getInitialLeft;
581
+ private getInitialWidth;
582
+ private getInitialHeight;
583
+ private handleMinimize;
584
+ private handleFullscreen;
585
+ private handleRestore;
586
+ private handleCloseWindow;
587
+ private handleDoubleClick;
588
+ private handleResize;
589
+ private dispatchMoveEvent;
590
+ private handleBrowserWindowResize;
591
+ private getActionBar;
592
+ private getContent;
593
+ private getCurrentZIndex;
594
+ private getDocument;
595
+ private getWindow;
596
+ private generateTitleId;
597
+ }
598
+
599
+ export { }
package/index.js CHANGED
@@ -1,5 +1,8 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react"),Y=require("react-dom"),n=require("prop-types"),I=require("@progress/kendo-react-buttons"),D=require("@progress/kendo-svg-icons"),o=require("@progress/kendo-react-common"),$=require("@progress/kendo-react-intl");function Z(h){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const t in h)if(t!=="default"){const e=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(i,t,e.get?e:{enumerable:!0,get:()=>h[t]})}}return i.default=h,Object.freeze(i)}const s=Z(X),P=Z(Y),J=({children:h,onCloseButtonClick:i,id:t,closeIcon:e})=>s.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:t},s.createElement("span",{className:"k-window-title k-dialog-title"},h),s.createElement("div",{className:"k-window-titlebar-actions k-dialog-titlebar-actions"},e&&s.createElement(I.Button,{role:"button","aria-label":"Close",onClick:i,icon:"x",svgIcon:D.xIcon,fillMode:"flat",className:"k-window-titlebar-action k-dialog-titlebar-action"}))),T=h=>{const i={layout:"stretched",...h},{layout:t,children:e}=i,a=o.classNames("k-actions","k-actions-horizontal","k-window-actions k-dialog-actions",{[`k-actions-${t}`]:t});return s.createElement("div",{className:a},e)};T.propTypes={children:n.any,layout:n.oneOf(["start","center","end","stretched"])};const x={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"},O="data-windowid",B=10002,S=2,Q=".k-window:not(.k-dialog), .k-dialog-wrapper",N=(h,i,t)=>{let e=h;if(i&&i.defaultView){let a=i.querySelectorAll(Q),l=!1;return a.forEach(c=>{let d=i.defaultView.getComputedStyle(c,null);if(c.getAttribute(O)!==t&&d.zIndex!==null){let w=parseInt(d.zIndex,10);w>=e&&(e=w,l=!0)}}),l?e+S:e}return e};class y extends s.Component{constructor(i){super(i),this.context=0,this.titleId=this.generateTitleId(),this.contentId=this.generateContentId(),this.showLicenseWatermark=!1,this.onCloseDialog=t=>{t.preventDefault(),o.dispatchEvent(this.props.onClose,t,this,void 0)},this.onKeyDown=t=>{t.keyCode===o.Keys.esc&&this.props.onClose&&(t.preventDefault(),this.onCloseDialog(t)),o.keepFocusInContainer(t,this.element)},this.getCurrentZIndex=()=>!this.state||this.context===void 0?this.context?this.context:B:this.state.zIndex>(this.context?this.context+S:0)?this.state.zIndex:this.context+S,this.getDocument=()=>this.props.appendTo?this.props.appendTo.ownerDocument:document,o.validatePackage(x),this.showLicenseWatermark=o.shouldShowValidationUI(x)}get _id(){return this.props.id+"-accessibility-id"}componentDidMount(){this.element&&(this.props.autoFocus&&this.element.focus(),this.setState({zIndex:N(this.getCurrentZIndex(),this.getDocument(),this._id)}))}render(){const i=this.props.id!==void 0?this.props.id:this.titleId,{title:t,width:e,height:a,children:l,minWidth:c,dir:d,style:f,contentStyle:w}=this.props,g=s.Children.toArray(l),m=this.getContent(g),C=this.getActionBar(g),E=t?{"aria-labelledby":i}:null,p=this.props.closeIcon!==void 0?this.props.closeIcon:!0,H=this.getCurrentZIndex(),_=s.createElement(o.ZIndexContext.Provider,{value:H},s.createElement("div",{[O]:this._id,className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:d,style:{zIndex:H,...f},ref:V=>this.element=V},s.createElement("div",{className:"k-overlay"}),s.createElement("div",{...E,className:o.classNames("k-window k-dialog",{[`k-window-${this.props.themeColor}`]:this.props.themeColor}),role:"dialog","aria-labelledby":i,"aria-modal":!0,"aria-describedby":this.contentId,style:{width:e,height:a,minWidth:c}},this.props.title&&s.createElement(J,{closeIcon:p,onCloseButtonClick:this.onCloseDialog,id:i},t),s.createElement("div",{className:"k-window-content k-dialog-content",style:w,id:this.contentId},m),C,this.showLicenseWatermark&&s.createElement(o.WatermarkOverlay,null))));return o.canUseDOM?this.props.appendTo!==null?P.createPortal(_,this.props.appendTo||document.body):_:null}getActionBar(i){return i.filter(t=>t&&t.type===T)}getContent(i){return i.filter(t=>t&&t.type!==T)}generateTitleId(){return"dialog-title-"+this._id}generateContentId(){return"dialog-content-"+this._id}}y.displayName="Dialog";y.propTypes={title:n.any,id:n.string,dir:n.string,style:n.object,closeIcon:n.bool,width:n.oneOfType([n.number,n.string]),height:n.oneOfType([n.number,n.string]),minWidth:n.oneOfType([n.number,n.string]),autoFocus:n.bool};y.defaultProps={autoFocus:!1};y.contextType=o.ZIndexContext;const K=o.createPropsContext(),j=o.withIdHOC(o.withPropsContext(K,y));j.displayName="KendoReactDialog";var r=(h=>(h.DEFAULT="DEFAULT",h.FULLSCREEN="FULLSCREEN",h.MINIMIZED="MINIMIZED",h))(r||{});const M="dialogs.windowMaximizeButton",z="dialogs.windowMinimizeButton",R="dialogs.windowRestoreButton",A="dialogs.windowCloseButton",b={[M]:"maximize",[z]:"minimize",[R]:"restore",[A]:"close"},tt=h=>{const{children:i,onCloseButtonClick:t,onMinimizeButtonClick:e,onFullScreenButtonClick:a,onRestoreButtonClick:l,onDoubleClick:c,stage:d,forwardedRef:f,id:w}=h,g=$.useLocalization(),m=h.minimizeButton?s.createElement(h.minimizeButton,{onClick:e,stage:d}):s.createElement(I.Button,{fillMode:"flat",icon:"window-minimize",svgIcon:D.windowMinimizeIcon,className:"k-window-titlebar-action",onClick:e,"aria-label":g.toLanguageString(z,b[z])}),C=h.maximizeButton?s.createElement(h.maximizeButton,{onClick:a,stage:d}):s.createElement(I.Button,{fillMode:"flat",icon:"window-maximize",svgIcon:D.windowIcon,className:"k-window-titlebar-action",onClick:a,"aria-label":g.toLanguageString(M,b[M])}),E=h.restoreButton?s.createElement(h.restoreButton,{onClick:l,stage:d}):s.createElement(I.Button,{fillMode:"flat",icon:"window-restore",svgIcon:D.windowRestoreIcon,className:"k-window-titlebar-action",onClick:l,"aria-label":g.toLanguageString(R,b[R])}),p=h.closeButton?s.createElement(h.closeButton,{onClick:t,stage:d}):s.createElement(I.Button,{fillMode:"flat",icon:"x",svgIcon:D.xIcon,className:"k-window-titlebar-action",onClick:t,"aria-label":g.toLanguageString(A,b[A])});return s.createElement("div",{className:"k-window-titlebar",style:{touchAction:"none"},ref:f,onDoubleClick:c},s.createElement("span",{className:"k-window-title",id:w},i||""),s.createElement("div",{className:"k-window-titlebar-actions"},d===r.DEFAULT&&m,d===r.DEFAULT&&C,d!==r.DEFAULT&&E,p))},et=s.forwardRef((h,i)=>s.createElement(tt,{...h,forwardedRef:i})),it=["n","e","s","w","se","sw","ne","nw"];class st extends s.Component{render(){return s.createElement("div",{className:"k-resize-handles-wrapper"}," ",it.map((i,t)=>s.createElement(o.Draggable,{key:t,onDrag:e=>{const{event:a}=e;a.originalEvent.preventDefault(),this.props.onResize(a,{end:!1,direction:i})},onRelease:e=>{const{event:a}=e;a.originalEvent.preventDefault(),this.props.onResize(a,{end:!0,direction:i})}},s.createElement("div",{className:"k-resize-handle k-resize-"+i,style:{display:"block",touchAction:"none"}}))))}}class ot extends s.Component{shouldComponentUpdate(i){return i.shouldUpdateOnDrag||!i.isDragging}render(){return this.props.children}}const W=h=>{const i={layout:"end",...h},{layout:t,children:e}=i,a=o.classNames("k-actions","k-window-actions","k-actions-horizontal","k-hstack",{"k-justify-content-start":t==="start","k-justify-content-center":t==="center","k-justify-content-end":t==="end","k-justify-content-stretch":t==="stretched"});return s.createElement("div",{className:a},e)};W.propTypes={children:n.any,layout:n.oneOf(["start","center","end","stretched"])};const v=300,L=300,F=120,U=100,u=5;class k extends s.Component{constructor(i){super(i),this.context=0,this.draggable=null,this.offSetCoordinates={x:0,y:0},this.titleId=this.generateTitleId(),this.mounted=!1,this.showLicenseWatermark=!1,this.onKeyDown=t=>{if(t.target!==t.currentTarget)return;const e=this.props.minWidth||F,a=this.props.minHeight||U;if(t.ctrlKey&&this.props.resizable){switch(t.keyCode){case o.Keys.up:t.preventDefault(),a<=this.height-u&&this.setState({height:this.height-u});break;case o.Keys.down:t.preventDefault(),this.setState({height:this.height+u});break;case o.Keys.left:e<=this.width-u&&this.setState({width:this.width-u});break;case o.Keys.right:this.setState({width:this.width+u});break;default:return}this.dispatchMoveEvent(this.props.onResize,t,!1,void 0);return}if(t.altKey){switch(t.keyCode){case o.Keys.up:this.windowStage===r.MINIMIZED?(this.handleRestore(t),o.dispatchEvent(this.props.onStageChange,t,this,{state:r.DEFAULT})):this.windowStage===r.DEFAULT&&(this.handleFullscreen(t),o.dispatchEvent(this.props.onStageChange,t,this,{state:r.FULLSCREEN}));break;case o.Keys.down:this.windowStage===r.FULLSCREEN?(this.handleRestore(t),o.dispatchEvent(this.props.onStageChange,t,this,{state:r.DEFAULT})):this.windowStage===r.DEFAULT&&(this.handleMinimize(t),o.dispatchEvent(this.props.onStageChange,t,this,{state:r.MINIMIZED}));break}return}if(!t.ctrlKey)switch(t.keyCode){case o.Keys.esc:this.props.onClose&&this.handleCloseWindow(t);return;case o.Keys.up:this.setState({top:this.state.top-u});break;case o.Keys.down:this.setState({top:this.state.top+u});break;case o.Keys.left:this.setState({left:this.state.left-u});break;case o.Keys.right:this.setState({left:this.state.left+u});break;default:return}this.dispatchMoveEvent(this.props.onMove,t,!1,void 0)},this.onPress=t=>{const e=t.event;this.windowCoordinatesState.differenceLeft=e.pageX-this.left,this.windowCoordinatesState.differenceTop=e.pageY-this.top},this.onDrag=t=>{const e=t.event;e.originalEvent.preventDefault(),this.windowStage!==r.FULLSCREEN&&this.props.draggable&&(this.setState({top:Math.max(e.pageY-this.windowCoordinatesState.differenceTop,0),left:e.pageX-this.windowCoordinatesState.differenceLeft,isDragging:!0}),this.props.onMove&&this.dispatchMoveEvent(this.props.onMove,e,!0,!1))},this.onRelease=t=>{const e=t.event;this.windowStage!==r.FULLSCREEN&&this.props.draggable&&this.props.onMove&&this.dispatchMoveEvent(this.props.onMove,e,!0,!0),this.setState({isDragging:!1})},this.onFocus=()=>{this._blurTimeout?(clearTimeout(this._blurTimeout),this._blurTimeout=void 0):this.setState({focused:!0,zIndex:N(this.getCurrentZIndex(),this.getDocument(),this._id)})},this.onBlur=()=>{clearTimeout(this._blurTimeout);const t=this.getWindow();t&&(this._blurTimeout=t.setTimeout(()=>{this.mounted&&this.setState({focused:!1}),this._blurTimeout=void 0}))},this.getInitialTop=()=>{if(this.props.top!==void 0)return this.props.top;if(this.props.initialTop!==void 0)return this.props.initialTop;let t=L;if(this.props.height!==void 0?t=this.props.height:this.props.initialHeight!==void 0&&(t=this.props.initialHeight),this.props.appendTo)return this.props.appendTo.offsetHeight/2-t/2;const e=this.getWindow();return e?e.innerHeight/2-t/2:0},this.getInitialLeft=()=>{if(this.props.left!==void 0)return this.props.left;if(this.props.initialLeft!==void 0)return this.props.initialLeft;let t=v;if(this.props.width!==void 0?t=this.props.width:this.props.initialWidth!==void 0&&(t=this.props.initialWidth),this.props.appendTo)return this.props.appendTo.offsetWidth/2-t/2;const e=this.getWindow();return e?e.innerWidth/2-t/2:0},this.getInitialWidth=()=>{let t=v;return this.props.width!==void 0?t=this.props.width:this.props.initialWidth!==void 0&&(t=this.props.initialWidth),t},this.getInitialHeight=()=>{let t=L;return this.props.height!==void 0?t=this.props.height:this.props.initialHeight!==void 0&&(t=this.props.initialHeight),t},this.handleMinimize=t=>{t.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.left,this.windowCoordinatesState.topBeforeAction=this.top,this.windowCoordinatesState.widthBeforeAction=this.width,this.windowCoordinatesState.heightBeforeAction=this.height,this.setState({stage:r.MINIMIZED,height:0}),o.dispatchEvent(this.props.onStageChange,t,this,{state:r.MINIMIZED})},this.handleFullscreen=t=>{t.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.left,this.windowCoordinatesState.topBeforeAction=this.top,this.windowCoordinatesState.widthBeforeAction=this.width,this.windowCoordinatesState.heightBeforeAction=this.height;const e=this.getWindow(),a=e?e.innerWidth:0,l=e?e.innerHeight:0;this.setState({left:0,top:0,width:this.props.appendTo?this.props.appendTo.offsetWidth:a,height:this.props.appendTo?this.props.appendTo.offsetHeight:l,stage:r.FULLSCREEN}),o.dispatchEvent(this.props.onStageChange,t,this,{state:r.FULLSCREEN})},this.handleRestore=t=>{t.preventDefault(),this.windowStage===r.FULLSCREEN?this.setState({stage:r.DEFAULT,left:this.windowCoordinatesState.leftBeforeAction,top:this.windowCoordinatesState.topBeforeAction,width:this.windowCoordinatesState.widthBeforeAction,height:this.windowCoordinatesState.heightBeforeAction}):this.windowStage===r.MINIMIZED&&this.setState({stage:r.DEFAULT,height:this.windowCoordinatesState.heightBeforeAction}),o.dispatchEvent(this.props.onStageChange,t,this,{state:r.DEFAULT})},this.handleCloseWindow=t=>{t.preventDefault(),o.dispatchEvent(this.props.onClose,t,this,{state:void 0})},this.handleDoubleClick=t=>{this.windowStage===r.FULLSCREEN||this.windowStage===r.MINIMIZED?this.handleRestore(t):this.handleFullscreen(t)},this.handleResize=(t,e)=>{const a=this.props.appendTo?t.pageX-this.offSetCoordinates.x:t.pageX,l=this.props.appendTo?t.pageY-this.offSetCoordinates.y:t.pageY,c=this.width,d=this.height,f=this.props.minWidth||F,w=this.props.minHeight||U,g=this.top-l,m=this.left-a;let C=a-this.left,E=l-this.top;const p=Object.assign({},this.state,{isDragging:!e.end});e.direction.indexOf("n")>=0&&w-(d+g)<0&&(this.top>0&&(p.height=d+g),p.top=l),e.direction.indexOf("s")>=0&&w-E<0&&(p.height=E),e.direction.indexOf("w")>=0&&f-(c+m)<0&&(this.left>0&&(p.width=c+m),p.left=a),e.direction.indexOf("e")>=0&&f-C<0&&(p.width=C),this.setState(p),this.dispatchMoveEvent(this.props.onResize,t,!0,e.end)},this.dispatchMoveEvent=(t,e,a,l)=>{t&&t.call(void 0,{nativeEvent:e.nativeEvent?e.nativeEvent:e.originalEvent,drag:a,end:l,target:this,left:this.state.left,top:this.state.top,width:this.state.width,hight:this.state.height,height:this.state.height})},this.handleBrowserWindowResize=()=>{if(this.windowStage===r.FULLSCREEN){const t=this.getWindow(),e=t?t.innerWidth:0,a=t?t.innerHeight:0;this.setState({width:this.props.appendTo?this.props.appendTo.offsetWidth:e,height:this.props.appendTo?this.props.appendTo.offsetHeight:a})}},this.getCurrentZIndex=()=>!this.state||this.context===void 0?this.context?this.context:B:this.state.zIndex>(this.context?this.context+S:0)?this.state.zIndex:this.context+S,this.getDocument=()=>this.props.appendTo?this.props.appendTo.ownerDocument:document,this.getWindow=()=>{const t=this.getDocument();return t&&t.defaultView},o.validatePackage(x),this.showLicenseWatermark=o.shouldShowValidationUI(x),this.state={stage:this.props.stage||r.DEFAULT,isDragging:!1,top:0,left:0,width:v,height:L,focused:!0,zIndex:B}}get _id(){return this.props.id+"-accessibility-id"}componentDidMount(){const i=this.getWindow();i&&i.addEventListener("resize",this.handleBrowserWindowResize),this.setState({stage:this.props.stage||r.DEFAULT,isDragging:!1,top:this.getInitialTop(),left:this.getInitialLeft(),width:this.getInitialWidth(),height:this.getInitialHeight(),focused:!0,zIndex:N(this.getCurrentZIndex(),this.getDocument(),this._id)}),this.windowCoordinatesState={leftBeforeAction:this.getInitialLeft(),topBeforeAction:this.getInitialTop(),widthBeforeAction:this.getInitialWidth(),heightBeforeAction:this.getInitialHeight()};const t=this.getDocument();if(this.props.appendTo&&t){let e=this.props.appendTo.getBoundingClientRect(),a=t.body.getBoundingClientRect();this.offSetCoordinates.x=e.left-a.left,this.offSetCoordinates.y=e.top-a.top}this.mounted=!0}componentWillUnmount(){const i=this.getWindow();i&&i.removeEventListener("resize",this.handleBrowserWindowResize),this.mounted=!1}componentDidUpdate(){const i=this.getDocument();if(this.props.appendTo&&i){let t=this.props.appendTo.getBoundingClientRect(),e=i.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-e.left,this.offSetCoordinates.y=t.top-e.top}this.mounted=!0}render(){const i=s.Children.toArray(this.props.children),t=this.getContent(i),e=this.getActionBar(i),a=this.getCurrentZIndex(),l=o.classNames("k-window",this.props.className,{[`k-window-${this.props.themeColor}`]:this.props.themeColor,"k-window-minimized":this.state.stage==="MINIMIZED","k-window-focused":this.state.focused}),c=s.createElement(o.ZIndexContext.Provider,{value:a},s.createElement(s.Fragment,null,this.props.modal&&s.createElement("div",{className:"k-overlay",style:{zIndex:a,...this.props.overlayStyle}}),s.createElement("div",{id:this.props.id,[O]:this._id,tabIndex:0,role:"dialog","aria-labelledby":this.titleId,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:d=>{this.windowElement=d,this.element=d},className:l,style:{top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:a,...this.props.style}},s.createElement(ot,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},s.createElement(o.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:d=>this.draggable=d},s.createElement(et,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton,id:this.titleId},this.props.title)),this.windowStage!==r.MINIMIZED?s.createElement(s.Fragment,null,s.createElement("div",{className:"k-window-content"},t),e):null,this.windowStage===r.DEFAULT&&this.props.resizable?s.createElement(st,{onResize:this.handleResize}):null),this.showLicenseWatermark&&s.createElement(o.WatermarkOverlay,null))));return o.canUseDOM?this.props.appendTo!==null?P.createPortal(c,this.props.appendTo||document.body):c:null}get top(){return this.windowStage!==r.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0}get left(){return this.windowStage!==r.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0}get width(){let i=this.props.width||this.state.width;if(this.windowStage===r.FULLSCREEN){if(this.props.appendTo)return i=this.props.appendTo.offsetWidth,i;const t=this.getWindow();i=t?t.innerWidth:0}return i}get height(){let i=this.props.height||this.state.height;if(this.windowStage===r.FULLSCREEN){if(this.props.appendTo)return i=this.props.appendTo.offsetHeight,i;const t=this.getWindow();i=t?t.innerHeight:0}else this.windowStage===r.MINIMIZED&&(i=0);return i}get windowStage(){return this.props.stage||this.state.stage}getActionBar(i){return i.filter(t=>t&&t.type===W)}getContent(i){return i.filter(t=>t&&t.type!==W)}generateTitleId(){return"window-title-"+this._id}}k.displayName="Window";k.propTypes={width:n.number,height:n.number,left:n.number,top:n.number,initialWidth:n.number,initialHeight:n.number,initialLeft:n.number,initialTop:n.number,minWidth:n.number,minHeight:n.number,resizable:n.bool,draggable:n.bool,title:n.any,shouldUpdateOnDrag:n.bool,stage:n.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:n.string,id:n.string,style:n.object,overlayStyle:n.object};k.defaultProps={minWidth:F,minHeight:U,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0};k.contextType=o.ZIndexContext;const q=o.createPropsContext(),G=o.withIdHOC(o.withPropsContext(q,k));G.displayName="KendoReactWindow";exports.Dialog=j;exports.DialogActionsBar=T;exports.DialogPropsContext=K;exports.Window=G;exports.WindowActionsBar=W;exports.WindowPropsContext=q;
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Dialog.js"),n=require("./DialogActionsBar.js"),i=require("./Window.js"),t=require("./WindowActionsBar.js");exports.Dialog=o.Dialog;exports.DialogPropsContext=o.DialogPropsContext;exports.DialogActionsBar=n.DialogActionsBar;exports.Window=i.Window;exports.WindowPropsContext=i.WindowPropsContext;exports.WindowActionsBar=t.WindowActionsBar;