@componyx/ui 0.0.0-stage → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppSkin/AppSkin.css +1268 -0
- package/AppSkin/AppSkin.js +2748 -0
- package/AppSkin/Themes/Default.css +241 -0
- package/Base/Base.js +3407 -0
- package/Base/ComponentIcons.css +66 -0
- package/Base/Font/ComponentIcons.woff +0 -0
- package/Base/Font/UI.woff +0 -0
- package/Base/Library.js +8432 -0
- package/Base/NavigationManager.js +462 -0
- package/Base/ResponsiveTemplates.js +371 -0
- package/Base/Sanitizer.js +288 -0
- package/Base/Themes/Default.css +255 -0
- package/Base/UI.css +618 -0
- package/Base/UIResourcePath.js +6 -0
- package/Bindary/Bindary.js +2011 -0
- package/Bindary/Modules/Connection.js +216 -0
- package/Bindary/Modules/Core.js +854 -0
- package/Bindary/Modules/DataUpdater.js +351 -0
- package/Bindary/Modules/ExpressionEngine.js +347 -0
- package/Bindary/Modules/ProxyManager.js +482 -0
- package/Bindary/Modules/Renderer.js +605 -0
- package/Bindary/Modules/Router.js +291 -0
- package/Bindary/Modules/Scroller.js +89 -0
- package/Bindary/Modules/Template.js +1273 -0
- package/BookmarkSpy/BookmarkSpy.js +430 -0
- package/Box/Box.css +36 -0
- package/Box/Box.js +1685 -0
- package/Button/Button.css +470 -0
- package/Button/Button.js +1398 -0
- package/Button/Themes/Default.css +200 -0
- package/Carousel/Carousel.css +273 -0
- package/Carousel/Carousel.js +607 -0
- package/ColorButton/ColorButton.css +39 -0
- package/ColorButton/ColorButton.js +336 -0
- package/ColorPicker/ColorPicker.css +359 -0
- package/ColorPicker/ColorPicker.js +972 -0
- package/ComboBox/ComboBox.css +357 -0
- package/ComboBox/ComboBox.js +2342 -0
- package/ComboBox/Themes/Default.css +23 -0
- package/DataPager/DataPager.css +72 -0
- package/DataPager/DataPager.js +674 -0
- package/DatePicker/DatePicker.css +227 -0
- package/DatePicker/DatePicker.js +1531 -0
- package/DatePicker/Themes/Default.css +26 -0
- package/Dialog/Dialog.css +106 -0
- package/Dialog/Dialog.js +572 -0
- package/Dialog/Themes/Default.css +10 -0
- package/Editor/Data/Emoji.json +8285 -0
- package/Editor/Data/Special.json +1042 -0
- package/Editor/Editor.css +1562 -0
- package/Editor/Editor.js +4058 -0
- package/Editor/Font/Editor.woff +0 -0
- package/Editor/Modules/ComponentFactory.js +565 -0
- package/Editor/Modules/ContentManager.js +748 -0
- package/Editor/Modules/DialogManager.js +1234 -0
- package/Editor/Modules/EventManager.js +458 -0
- package/Editor/Modules/Format.js +950 -0
- package/Editor/Modules/History.js +191 -0
- package/Editor/Modules/LayoutState.js +379 -0
- package/Editor/Modules/ListManager.js +296 -0
- package/Editor/Modules/MenuManager.js +388 -0
- package/Editor/Modules/NodeManager.js +681 -0
- package/Editor/Modules/ParagraphButtons.js +122 -0
- package/Editor/Modules/Resizer.js +176 -0
- package/Editor/Modules/SelectionRange.js +564 -0
- package/Editor/Modules/SourceViewBuilder.js +212 -0
- package/Editor/Modules/SymbolPicker.js +208 -0
- package/Editor/Modules/Table.js +2327 -0
- package/Editor/Modules/TableDialog.js +757 -0
- package/Editor/Modules/Toolbar.js +375 -0
- package/Editor/Modules/TooltipMenu.js +125 -0
- package/Editor/Modules/Utility.js +131 -0
- package/Editor/Themes/Default.css +204 -0
- package/FileUpload/FileUpload.css +156 -0
- package/FileUpload/FileUpload.js +898 -0
- package/FileUpload/Themes/Default.css +17 -0
- package/Form/Form.css +1934 -0
- package/Form/Form.js +4943 -0
- package/Form/Modules/ActionManager.js +368 -0
- package/Form/Modules/BuildPanelManager.js +319 -0
- package/Form/Modules/ComponentFactory.js +468 -0
- package/Form/Modules/ComponentPanel.js +265 -0
- package/Form/Modules/ConfigPanelManager.js +685 -0
- package/Form/Modules/DataBinder.js +602 -0
- package/Form/Modules/DataObserver.js +717 -0
- package/Form/Modules/Draggable.js +756 -0
- package/Form/Modules/OptionsPanel.js +342 -0
- package/Form/Modules/Renderer.js +1889 -0
- package/Form/Modules/RuleEngine.js +585 -0
- package/Form/Modules/RulesPanel.js +1158 -0
- package/Form/Modules/Types.js +1709 -0
- package/Form/Modules/ValidationManager.js +194 -0
- package/Form/Themes/Default.css +216 -0
- package/FormField/FormField.css +468 -0
- package/FormField/FormField.js +576 -0
- package/FormField/Themes/Default.css +99 -0
- package/Grid/Grid.css +544 -0
- package/Grid/Grid.js +3761 -0
- package/Grid/Themes/Default.css +43 -0
- package/LICENSE +126 -0
- package/MaskedTextBox/MaskedTextBox.css +28 -0
- package/MaskedTextBox/MaskedTextBox.js +642 -0
- package/MaskedTextBox/Themes/Default.css +6 -0
- package/Menu/Menu.css +328 -0
- package/Menu/Menu.js +2386 -0
- package/Menu/Themes/Default.css +24 -0
- package/NumericBox/NumericBox.css +120 -0
- package/NumericBox/NumericBox.js +984 -0
- package/PanelBar/PanelBar.css +123 -0
- package/PanelBar/PanelBar.js +505 -0
- package/PanelBar/Themes/Default.css +51 -0
- package/PieChart/PieChart.css +95 -0
- package/PieChart/PieChart.js +820 -0
- package/PieChart/Themes/Default.css +9 -0
- package/README.md +178 -3
- package/Slider/Slider.css +348 -0
- package/Slider/Slider.js +1306 -0
- package/Slider/Themes/Default.css +44 -0
- package/TabStrip/TabStrip.css +52 -0
- package/TabStrip/TabStrip.js +362 -0
- package/TabStrip/Themes/Default.css +35 -0
- package/TimePicker/Themes/Default.css +30 -0
- package/TimePicker/TimePicker.css +253 -0
- package/TimePicker/TimePicker.js +1485 -0
- package/TooltipManager/Themes/Default.css +21 -0
- package/TooltipManager/TooltipManager.css +227 -0
- package/TooltipManager/TooltipManager.js +791 -0
- package/Validator/Validator.css +54 -0
- package/Validator/Validator.js +2508 -0
- package/componyx.html-data.json +619 -0
- package/index.js +27 -0
- package/package.json +43 -4
- package/types/AppSkin.d.ts +842 -0
- package/types/Base.d.ts +1034 -0
- package/types/Bindary.d.ts +1196 -0
- package/types/BookmarkSpy.d.ts +112 -0
- package/types/Box.d.ts +374 -0
- package/types/Button.d.ts +455 -0
- package/types/Carousel.d.ts +136 -0
- package/types/ColorButton.d.ts +120 -0
- package/types/ColorPicker.d.ts +225 -0
- package/types/ComboBox.d.ts +507 -0
- package/types/DataPager.d.ts +152 -0
- package/types/DatePicker.d.ts +354 -0
- package/types/Dialog.d.ts +160 -0
- package/types/Editor.d.ts +1289 -0
- package/types/FileUpload.d.ts +206 -0
- package/types/Form.d.ts +3078 -0
- package/types/FormField.d.ts +204 -0
- package/types/Grid.d.ts +911 -0
- package/types/Library.d.ts +1899 -0
- package/types/MaskedTextBox.d.ts +91 -0
- package/types/Menu.d.ts +577 -0
- package/types/NumericBox.d.ts +310 -0
- package/types/PanelBar.d.ts +223 -0
- package/types/PieChart.d.ts +224 -0
- package/types/ResponsiveTemplates.d.ts +108 -0
- package/types/Slider.d.ts +227 -0
- package/types/TabStrip.d.ts +185 -0
- package/types/TimePicker.d.ts +265 -0
- package/types/TooltipManager.d.ts +178 -0
- package/types/UI.d.ts +29 -0
- package/types/Validator.d.ts +653 -0
- package/types/index.d.ts +59 -0
- package/ui.css +11783 -0
- package/ui.js +79477 -0
- package/ui.min.css +138 -0
- package/ui.min.js +264 -0
- package/ui.min.js.map +1 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface BookmarkSpy extends Omit<componyx.UI.base.methods, 'hide'> { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>BookmarkSpy class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class BookmarkSpy extends componyx.UI.base.Component
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new BookmarkSpy instance.
|
|
13
|
+
* @param id - <p>The id of the component.</p>
|
|
14
|
+
* @param properties - <p>The properties used to initialize the component or the container element.</p>
|
|
15
|
+
*/
|
|
16
|
+
constructor(id: string, properties: Partial<BookmarkSpy> | HTMLElement);
|
|
17
|
+
/**
|
|
18
|
+
* <p>BookmarkSpy events</p>
|
|
19
|
+
*/
|
|
20
|
+
events: componyx.UI.BookmarkSpy.BookmarkSpyEvents;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Initializes the BookmarkSpy component if this has not yet been done.</p>
|
|
23
|
+
*/
|
|
24
|
+
show(): void;
|
|
25
|
+
/**
|
|
26
|
+
* <p>Initializes the BookmarkSpy component.</p>
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
29
|
+
/**
|
|
30
|
+
* <p>Initializes the BookmarkSpy component. Both init and render are the same for this component.</p>
|
|
31
|
+
*/
|
|
32
|
+
render(): void;
|
|
33
|
+
/**
|
|
34
|
+
* <p>Destroys the component.</p>
|
|
35
|
+
*/
|
|
36
|
+
destroy(): void;
|
|
37
|
+
/**
|
|
38
|
+
* <p>Gets or sets the css class to apply to the active menu-item anchor. Default: 'selected'.</p>
|
|
39
|
+
*/
|
|
40
|
+
cssClass: string;
|
|
41
|
+
/**
|
|
42
|
+
* <p>Gets or sets the css class to apply to the parent anchor(s) of the active menu-item anchor.</p>
|
|
43
|
+
*/
|
|
44
|
+
cssClassParent?: string;
|
|
45
|
+
/**
|
|
46
|
+
* <p>Gets or sets a value indicating to spy on horizontal instead of vertical scrolling.</p>
|
|
47
|
+
*/
|
|
48
|
+
horizontal?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* <p>Gets or sets a value indicating if the URL anchor must be rewritten to the active bookmark.</p>
|
|
51
|
+
*/
|
|
52
|
+
updateURL?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* <p>Gets or sets a value indicating if the click event of the selected anchor is executed.</p>
|
|
55
|
+
*/
|
|
56
|
+
fireAnchorClick?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* <p>Gets or sets the scrollable container element or element id.</p>
|
|
59
|
+
*/
|
|
60
|
+
scroller?: HTMLElement | string | null;
|
|
61
|
+
/**
|
|
62
|
+
* <p>Gets or sets the anchor container element or element id.</p>
|
|
63
|
+
*/
|
|
64
|
+
anchorContainer?: HTMLElement | string | null;
|
|
65
|
+
/**
|
|
66
|
+
* <p>Gets or sets the offset in pixels.</p>
|
|
67
|
+
*/
|
|
68
|
+
offset?: number;
|
|
69
|
+
/**
|
|
70
|
+
* <p>Gets or sets the bookmark tags (space delimited) to spy on.</p>
|
|
71
|
+
*/
|
|
72
|
+
tags?: string;
|
|
73
|
+
/**
|
|
74
|
+
* <p>Gets or sets the menu component which holds the bookmark links.</p>
|
|
75
|
+
*/
|
|
76
|
+
menuId?: string | null;
|
|
77
|
+
}
|
|
78
|
+
namespace BookmarkSpy
|
|
79
|
+
{
|
|
80
|
+
/**
|
|
81
|
+
* @property onPreInit - <p>Event which fires before init but after resources load.</p>
|
|
82
|
+
* @property onPostInit - <p>Event which fires after init.</p>
|
|
83
|
+
* @property onChange - <p>Event which fires when the active bookmark changes.</p>
|
|
84
|
+
*/
|
|
85
|
+
class BookmarkSpyEvents extends componyx.UI.base.Events<componyx.UI.BookmarkSpy>
|
|
86
|
+
{
|
|
87
|
+
constructor();
|
|
88
|
+
/**
|
|
89
|
+
* <p>Event which fires before init but after resources load.</p>
|
|
90
|
+
*/
|
|
91
|
+
onPreInit: componyx.UI.base.Event<componyx.UI.BookmarkSpy, undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Event which fires after init.</p>
|
|
94
|
+
*/
|
|
95
|
+
onPostInit: componyx.UI.base.Event<componyx.UI.BookmarkSpy, undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* <p>Event which fires when the active bookmark changes.</p>
|
|
98
|
+
*/
|
|
99
|
+
onChange: componyx.UI.base.Event<componyx.UI.BookmarkSpy, componyx.UI.BookmarkSpy.ChangeEventArgs>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* <p>BookmarkSpy change event arguments.</p>
|
|
103
|
+
*/
|
|
104
|
+
type ChangeEventArgs = {
|
|
105
|
+
/** <p>The anchor of the active bookmark.</p> */
|
|
106
|
+
selected: HTMLAnchorElement;
|
|
107
|
+
/** <p>The anchor of the previously active bookmark, empty on the first change.</p> */
|
|
108
|
+
deselected?: HTMLAnchorElement | null;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
package/types/Box.d.ts
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface Box extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>Box class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class Box extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Box instance.
|
|
13
|
+
* @param id - <p>The id of the component.</p>
|
|
14
|
+
* @param properties - <p>The properties used to initialize the component or the container element.</p>
|
|
15
|
+
*/
|
|
16
|
+
constructor(id: string, properties: Partial<Box> | HTMLElement);
|
|
17
|
+
ajax: componyx.UI.base.Component['ajax'] & {
|
|
18
|
+
/**
|
|
19
|
+
* <p>AJAX method used to load box content data on demand.</p>
|
|
20
|
+
*/
|
|
21
|
+
load: componyx.UI.base.AjaxMethod;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* <p>Box animation.</p>
|
|
25
|
+
* @property showType - <p>Gets or sets the animation type used when showing the box.</p>
|
|
26
|
+
* @property showClass - <p>Gets or sets the CSS class applied when showing the box.</p>
|
|
27
|
+
* @property showDirection - <p>Gets or sets the animation direction (down, right, up, left) used when showing the box.</p>
|
|
28
|
+
* @property showFade - <p>Gets or sets a value indicating if fading is used when showing the box.</p>
|
|
29
|
+
* @property hideType - <p>Gets or sets the animation type used when hiding the box.</p>
|
|
30
|
+
* @property hideClass - <p>Gets or sets the CSS class applied when hiding the box.</p>
|
|
31
|
+
* @property hideDirection - <p>Gets or sets the animation direction (top, right, bottom, left) used when hiding the box.</p>
|
|
32
|
+
* @property hideFade - <p>Gets or sets a value indicating if fading is used when hiding the box.</p>
|
|
33
|
+
*/
|
|
34
|
+
animation: componyx.UI.Box.Animation;
|
|
35
|
+
dragSettings: componyx.library.DraggableSettings;
|
|
36
|
+
/**
|
|
37
|
+
* <p>Box events</p>
|
|
38
|
+
*/
|
|
39
|
+
events: componyx.UI.Box.BoxEvents;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Adds the content template.</p>
|
|
42
|
+
* @param content - <p>The content template.</p>
|
|
43
|
+
*/
|
|
44
|
+
setContentTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
45
|
+
/**
|
|
46
|
+
* <p>Updates the box view to stretch and position with the updated content.</p>
|
|
47
|
+
* @param [content] - <p>A new content template.</p>
|
|
48
|
+
* @param [show = true] - <p>A value indicating if the box should be displayed when hidden.</p>
|
|
49
|
+
*/
|
|
50
|
+
update(content?: HTMLElement | HTMLElement[] | DocumentFragment | string, show?: boolean): void;
|
|
51
|
+
/**
|
|
52
|
+
* <p>Stops the animation.</p>
|
|
53
|
+
*/
|
|
54
|
+
stopAnimation(): void;
|
|
55
|
+
/**
|
|
56
|
+
* <p>Shows or hides the component.</p>
|
|
57
|
+
*/
|
|
58
|
+
toggle(): void;
|
|
59
|
+
/**
|
|
60
|
+
* <p>Shows the component.</p>
|
|
61
|
+
* @param [instant] - <p>A value indicating if the box should be shown instantly without animation.</p>
|
|
62
|
+
* @param [pointerCoordinates] - <p>Optional pointer coordinates for POINTER auto-positioning. Pass these when the show is deferred (e.g. via setTimeout), as the original pointer event may no longer be available by then.</p>
|
|
63
|
+
*/
|
|
64
|
+
show(instant?: boolean, pointerCoordinates?: { clientX: number, clientY: number }): void;
|
|
65
|
+
/**
|
|
66
|
+
* <p>Hides the component.</p>
|
|
67
|
+
* @param [instant] - <p>A value indicating if the box should be hidden instantly without animation.</p>
|
|
68
|
+
*/
|
|
69
|
+
hide(instant?: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* <p>Renders the component.</p>
|
|
72
|
+
*/
|
|
73
|
+
render(): void;
|
|
74
|
+
/**
|
|
75
|
+
* <p>Destroys the component.</p>
|
|
76
|
+
*/
|
|
77
|
+
destroy(): void;
|
|
78
|
+
/**
|
|
79
|
+
* <p>Gets or sets the css class of the box content.</p>
|
|
80
|
+
*/
|
|
81
|
+
cssClassContent: string;
|
|
82
|
+
/**
|
|
83
|
+
* <p>Gets or sets the css class of the box modal overlay.</p>
|
|
84
|
+
*/
|
|
85
|
+
cssClassModal: string;
|
|
86
|
+
/**
|
|
87
|
+
* <p>Gets or sets the css class of the box when AutoInvertFit is true and the box is inverted.</p>
|
|
88
|
+
*/
|
|
89
|
+
cssClassHorizontalInverted: string;
|
|
90
|
+
/**
|
|
91
|
+
* <p>Gets or sets the css class of the box when AutoInvertFit is true and the box is inverted.</p>
|
|
92
|
+
*/
|
|
93
|
+
cssClassVerticalInverted: string;
|
|
94
|
+
/**
|
|
95
|
+
* <p>Gets or sets the top position of the box. Overwrites the property if already defined through Style.</p>
|
|
96
|
+
*/
|
|
97
|
+
top: string;
|
|
98
|
+
/**
|
|
99
|
+
* <p>Gets or sets the right position of the box. Overwrites the property if already defined through Style.</p>
|
|
100
|
+
*/
|
|
101
|
+
right: string;
|
|
102
|
+
/**
|
|
103
|
+
* <p>Gets or sets the bottom position of the box. Overwrites the property if already defined through Style.</p>
|
|
104
|
+
*/
|
|
105
|
+
bottom: string;
|
|
106
|
+
/**
|
|
107
|
+
* <p>Gets or sets the left position of the box. Overwrites the property if already defined through Style.</p>
|
|
108
|
+
*/
|
|
109
|
+
left: string;
|
|
110
|
+
/**
|
|
111
|
+
* <p>Gets or sets the width of the box. Overwrites the property if already defined through Style.</p>
|
|
112
|
+
*/
|
|
113
|
+
width: string;
|
|
114
|
+
/**
|
|
115
|
+
* <p>Gets or sets the height of the box. Overwrites the property if already defined through Style.</p>
|
|
116
|
+
*/
|
|
117
|
+
height: string;
|
|
118
|
+
/**
|
|
119
|
+
* <p>Gets or sets a value indicating if the box element must stretch to the size of the expander element. The content width has priority over the expander width when stretchToContent is enabled and the content exceeds the expander width.</p>
|
|
120
|
+
*/
|
|
121
|
+
stretchToExpander: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* <p>Gets or sets a value indicating if the box element must stretch to the size of the content element. This setting is useful when the box is positioned absolute/fixed and the content element is a flex-box (display:flex).</p>
|
|
124
|
+
*/
|
|
125
|
+
stretchToContent: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* <p>Gets or sets a value indicating whether the box should handle focus events for focusable child elements. Only applies when modal is false.</p>
|
|
128
|
+
*/
|
|
129
|
+
handleFocus: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* <p>Gets or sets a value indicating whether the first element of the focusable list should get focus when the box is shown.</p>
|
|
132
|
+
*/
|
|
133
|
+
autoFocus: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* <p>Gets or sets a value indicating whether the focusable list is ordered by tabindex (requires all elements to have a tabindex set).</p>
|
|
136
|
+
*/
|
|
137
|
+
tabIndexFocus: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* <p>Gets or sets the auto position of the box.</p>
|
|
140
|
+
*/
|
|
141
|
+
autoPosition: componyx.UI.Box.AutoPositionOption;
|
|
142
|
+
/**
|
|
143
|
+
* <p>Gets or sets a value indicating whether the box should try to fit when the window is to small.</p>
|
|
144
|
+
*/
|
|
145
|
+
autoFit: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* <p>Gets or sets a value indicating whether the box should try to fit inverted when the window is to small.</p>
|
|
148
|
+
*/
|
|
149
|
+
autoInvertFit: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* <p>Gets or sets a value indicating whether the box should be resized when the window is to small.</p>
|
|
152
|
+
*/
|
|
153
|
+
autoResizeFit: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* <p>Gets or sets a value indicating whether the animation direction should be auto inverted when the box is inverted.</p>
|
|
156
|
+
*/
|
|
157
|
+
autoInvertAnimation: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* <p>Gets or sets a value indicating whether the box is either resized to the window width or available (inverted)space when auto resized.</p>
|
|
160
|
+
*/
|
|
161
|
+
resizeToMaxWidth: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* <p>Gets or sets a value indicating whether the box is either resized to the window height or available (inverted)space when auto resized.</p>
|
|
164
|
+
*/
|
|
165
|
+
resizeToMaxHeight: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* <p>Gets or sets a value indicating whether the box is displayed as modal popup.</p>
|
|
168
|
+
*/
|
|
169
|
+
modal: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* <p>Gets or sets a value indicating whether the box is draggable.</p>
|
|
172
|
+
*/
|
|
173
|
+
draggable: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* <p>Gets or sets a value indicating whether the box is hidden when the user clicks outside the box.</p>
|
|
176
|
+
*/
|
|
177
|
+
hideOnOutsideClick: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* <p>Gets or sets a value indicating whether the box position tracks the pointer when AutoPosition is set to POINTER.</p>
|
|
180
|
+
*/
|
|
181
|
+
trackPointer: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* <p>Gets or sets a value indicating whether the box's horizontal position is aligned to the left, center or right of the expander element or mouse cursor.</p>
|
|
184
|
+
*/
|
|
185
|
+
alignX: componyx.UI.Box.AlignXOption | null;
|
|
186
|
+
/**
|
|
187
|
+
* <p>Gets or sets a value indicating whether the box's vertical position is aligned to the top, center or bottom of the expander element or mouse cursor.</p>
|
|
188
|
+
*/
|
|
189
|
+
alignY: componyx.UI.Box.AlignYOption | null;
|
|
190
|
+
/**
|
|
191
|
+
* <p>Gets the tag name of the content element.</p>
|
|
192
|
+
*/
|
|
193
|
+
contentTag: string;
|
|
194
|
+
/**
|
|
195
|
+
* <p>Gets or sets the expand direction.</p>
|
|
196
|
+
*/
|
|
197
|
+
expandDirection: componyx.UI.Box.ExpandDirectionOption;
|
|
198
|
+
/**
|
|
199
|
+
* <p>Gets or sets the expander element or element-id.</p>
|
|
200
|
+
*/
|
|
201
|
+
expander: HTMLElement | string | null;
|
|
202
|
+
/**
|
|
203
|
+
* <p>Gets or sets the submitter element or element-id on which to fire a click event when the enter-key is pressed within a field inside the box element.</p>
|
|
204
|
+
*/
|
|
205
|
+
enterKeySubmitter: HTMLElement | string | null;
|
|
206
|
+
/**
|
|
207
|
+
* <p>Gets the element which contains the box content.</p>
|
|
208
|
+
*/
|
|
209
|
+
readonly contentElement: HTMLElement;
|
|
210
|
+
}
|
|
211
|
+
namespace Box
|
|
212
|
+
{
|
|
213
|
+
/**
|
|
214
|
+
* <p>Box animation settings.</p>
|
|
215
|
+
*/
|
|
216
|
+
type Animation = {
|
|
217
|
+
/** <p>Gets or sets the animation type used when showing the box.</p> */
|
|
218
|
+
showType: componyx.UI.Box.AnimationTypeOption | null;
|
|
219
|
+
/** <p>Gets or sets the CSS class applied when showing the box.</p> */
|
|
220
|
+
showClass: string | null;
|
|
221
|
+
/** <p>Gets or sets the animation direction (down, right, up, left) used when showing the box.</p> */
|
|
222
|
+
showDirection: string | null;
|
|
223
|
+
/** <p>Gets or sets a value indicating if fading is used when showing the box.</p> */
|
|
224
|
+
showFade: boolean | null;
|
|
225
|
+
/** <p>Gets or sets the animation type used when hiding the box.</p> */
|
|
226
|
+
hideType: componyx.UI.Box.AnimationTypeOption | null;
|
|
227
|
+
/** <p>Gets or sets the CSS class applied when hiding the box.</p> */
|
|
228
|
+
hideClass: string | null;
|
|
229
|
+
/** <p>Gets or sets the animation direction (top, right, bottom, left) used when hiding the box.</p> */
|
|
230
|
+
hideDirection: string | null;
|
|
231
|
+
/** <p>Gets or sets a value indicating if fading is used when hiding the box.</p> */
|
|
232
|
+
hideFade: boolean | null;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* @property onPrePosition - <p>Event which fires before the box is positioned.</p>
|
|
236
|
+
* @property onPostPosition - <p>Event which fires after the box is positioned.</p>
|
|
237
|
+
* @property onAutoFit - <p>Event which fires when the window is too small and the box performs an auto fit.</p>
|
|
238
|
+
* @property onShowComplete - <p>Event which fires when the show animation has completed, or immediately if animation type is 'none'.</p>
|
|
239
|
+
* @property onHideComplete - <p>Event which fires when the hide animation has completed, or immediately if animation type is 'none'.</p>
|
|
240
|
+
* @property onHide - <p>Inherited event which fires when the box is hidden. The Box passes HideEventArgs: set cancel to true to keep the box visible.</p>
|
|
241
|
+
*/
|
|
242
|
+
class BoxEvents extends componyx.UI.base.Events<componyx.UI.Box, componyx.UI.Box.HideEventArgs>
|
|
243
|
+
{
|
|
244
|
+
constructor();
|
|
245
|
+
/**
|
|
246
|
+
* <p>Event which fires before the box is positioned.</p>
|
|
247
|
+
*/
|
|
248
|
+
onPrePosition: componyx.UI.base.Event<componyx.UI.Box, null>;
|
|
249
|
+
/**
|
|
250
|
+
* <p>Event which fires after the box is positioned.</p>
|
|
251
|
+
*/
|
|
252
|
+
onPostPosition: componyx.UI.base.Event<componyx.UI.Box, null>;
|
|
253
|
+
/**
|
|
254
|
+
* <p>Event which fires when the window is too small and the box performs an auto fit.</p>
|
|
255
|
+
*/
|
|
256
|
+
onAutoFit: componyx.UI.base.Event<componyx.UI.Box, componyx.UI.Box.AutoFitEventArgs>;
|
|
257
|
+
/**
|
|
258
|
+
* <p>Event which fires when the show animation has completed, or immediately if animation type is 'none'.</p>
|
|
259
|
+
*/
|
|
260
|
+
onShowComplete: componyx.UI.base.Event<componyx.UI.Box, undefined>;
|
|
261
|
+
/**
|
|
262
|
+
* <p>Event which fires when the hide animation has completed, or immediately if animation type is 'none'.</p>
|
|
263
|
+
*/
|
|
264
|
+
onHideComplete: componyx.UI.base.Event<componyx.UI.Box, undefined>;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* <p>Box hide event arguments.</p>
|
|
268
|
+
*/
|
|
269
|
+
type HideEventArgs = {
|
|
270
|
+
/** <p>The original event object.</p> */
|
|
271
|
+
event: Event;
|
|
272
|
+
/** <p>Set to true to cancel hiding the box.</p> */
|
|
273
|
+
cancel: boolean;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* <p>Box auto fit event arguments.</p>
|
|
277
|
+
*/
|
|
278
|
+
type AutoFitEventArgs = {
|
|
279
|
+
/** <p>A value indicating if the box was fitted horizontally.</p> */
|
|
280
|
+
fitX: boolean;
|
|
281
|
+
/** <p>A value indicating if the box was fitted vertically.</p> */
|
|
282
|
+
fitY: boolean;
|
|
283
|
+
/** <p>A value indicating if the box position was inverted horizontally.</p> */
|
|
284
|
+
invertedX: boolean;
|
|
285
|
+
/** <p>A value indicating if the box position was inverted vertically.</p> */
|
|
286
|
+
invertedY: boolean;
|
|
287
|
+
/** <p>A value indicating if the box was resized horizontally.</p> */
|
|
288
|
+
resizedX: boolean;
|
|
289
|
+
/** <p>A value indicating if the box was resized vertically.</p> */
|
|
290
|
+
resizedY: boolean;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* <p>AutoPositionOption</p>
|
|
294
|
+
*/
|
|
295
|
+
enum AutoPositionOption
|
|
296
|
+
{
|
|
297
|
+
NONE = 0,
|
|
298
|
+
TOPLEFT = 1,
|
|
299
|
+
TOPCENTER = 2,
|
|
300
|
+
TOPRIGHT = 3,
|
|
301
|
+
LEFT = 4,
|
|
302
|
+
CENTER = 5,
|
|
303
|
+
RIGHT = 6,
|
|
304
|
+
BOTTOMLEFT = 7,
|
|
305
|
+
BOTTOMCENTER = 8,
|
|
306
|
+
BOTTOMRIGHT = 9,
|
|
307
|
+
POINTER = 10,
|
|
308
|
+
EXPAND = 11
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* <p>ExpandDirectionOption</p>
|
|
312
|
+
*/
|
|
313
|
+
enum ExpandDirectionOption
|
|
314
|
+
{
|
|
315
|
+
DOWN = 0,
|
|
316
|
+
RIGHT = 1,
|
|
317
|
+
UP = 2,
|
|
318
|
+
LEFT = 3
|
|
319
|
+
}
|
|
320
|
+
namespace ExpandDirectionOption
|
|
321
|
+
{
|
|
322
|
+
/**
|
|
323
|
+
* <p>Gets the lowercase name of the option value.</p>
|
|
324
|
+
* @param value - <p>The enum value.</p>
|
|
325
|
+
*/
|
|
326
|
+
function getName(value: componyx.UI.Box.ExpandDirectionOption): string;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* <p>AlignXOption</p>
|
|
330
|
+
*/
|
|
331
|
+
enum AlignXOption
|
|
332
|
+
{
|
|
333
|
+
LEFT = 0,
|
|
334
|
+
CENTER = 1,
|
|
335
|
+
RIGHT = 2
|
|
336
|
+
}
|
|
337
|
+
namespace AlignXOption
|
|
338
|
+
{
|
|
339
|
+
/**
|
|
340
|
+
* <p>Gets the lowercase name of the option value.</p>
|
|
341
|
+
* @param value - <p>The enum value.</p>
|
|
342
|
+
*/
|
|
343
|
+
function getName(value: componyx.UI.Box.AlignXOption): string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* <p>AlignYOption</p>
|
|
347
|
+
*/
|
|
348
|
+
enum AlignYOption
|
|
349
|
+
{
|
|
350
|
+
TOP = 0,
|
|
351
|
+
CENTER = 1,
|
|
352
|
+
BOTTOM = 2
|
|
353
|
+
}
|
|
354
|
+
namespace AlignYOption
|
|
355
|
+
{
|
|
356
|
+
/**
|
|
357
|
+
* <p>Gets the lowercase name of the option value.</p>
|
|
358
|
+
* @param value - <p>The enum value.</p>
|
|
359
|
+
*/
|
|
360
|
+
function getName(value: componyx.UI.Box.AlignYOption): string;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* <p>AnimationTypeOption</p>
|
|
364
|
+
*/
|
|
365
|
+
enum AnimationTypeOption
|
|
366
|
+
{
|
|
367
|
+
NONE = 0,
|
|
368
|
+
SLIDE = 1,
|
|
369
|
+
REVEAL = 2,
|
|
370
|
+
CSS = 3
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|