@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,842 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface AppSkin extends componyx.UI.base.methods { }
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* <p>AppSkin class.</p>
|
|
9
|
+
*/
|
|
10
|
+
class AppSkin extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
11
|
+
{
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new AppSkin instance.
|
|
14
|
+
* @param id - <p>The id of the component.</p>
|
|
15
|
+
* @param properties - <p>The properties used to initialize the component or the container element.</p>
|
|
16
|
+
*/
|
|
17
|
+
constructor(id: string, properties: Partial<AppSkin> | HTMLElement);
|
|
18
|
+
ajax: componyx.UI.base.Component['ajax'] & {
|
|
19
|
+
/**
|
|
20
|
+
* <p>AJAX method used to authenticate.</p>
|
|
21
|
+
*/
|
|
22
|
+
authenticate: componyx.UI.base.AjaxMethod;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>AJAX method used to load search results.</p>
|
|
26
|
+
*/
|
|
27
|
+
search: componyx.UI.base.AjaxMethod;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>AppSkin events</p>
|
|
31
|
+
*/
|
|
32
|
+
events: componyx.UI.AppSkin.AppSkinEvents;
|
|
33
|
+
/**
|
|
34
|
+
* <p>Internal CSS class name constants. You can override any of these classes on the Component instance by defining a property named
|
|
35
|
+
* <code>cssClass<Key></code> where <Key> is the PascalCase key from this object (e.g. 'SEARCH_RESULT' -> 'cssClassSearchResult').
|
|
36
|
+
* Be cautious: overriding these classes without including the default names may break styling and functionality.</p>
|
|
37
|
+
*/
|
|
38
|
+
readonly classOption: Readonly<{
|
|
39
|
+
FULL: 'full';
|
|
40
|
+
ERROR: 'error';
|
|
41
|
+
TOPBAR: 'topbar';
|
|
42
|
+
FOOTER: 'footer';
|
|
43
|
+
REQUIRED: 'required';
|
|
44
|
+
MENU_LEFT: 'menu-left';
|
|
45
|
+
AUTHENTICATED: 'authenticated';
|
|
46
|
+
SEARCH_ACTIVE: 'search-active';
|
|
47
|
+
PORTAL_MENU: 'portal-menu';
|
|
48
|
+
SIDE_MENU: 'side-menu';
|
|
49
|
+
LOGIN: 'login';
|
|
50
|
+
VERIFICATION: 'verification';
|
|
51
|
+
HEADER_ALL: 'header-all';
|
|
52
|
+
HEADER_MENU_HIDDEN: 'header-menu-hidden';
|
|
53
|
+
HEADER_OVERFLOW: 'header-overflow';
|
|
54
|
+
BODY: 'body';
|
|
55
|
+
PAGE: 'page';
|
|
56
|
+
VIEW: 'view';
|
|
57
|
+
OVERLAY: 'overlay';
|
|
58
|
+
SIDEBAR: 'sidebar';
|
|
59
|
+
APP_CONTENT: 'app-content';
|
|
60
|
+
SEARCH: 'search';
|
|
61
|
+
SEARCH_RESULT: 'search-result';
|
|
62
|
+
SPINNER: 'spinner';
|
|
63
|
+
BOX: 'box';
|
|
64
|
+
PRELOADER: 'preloader';
|
|
65
|
+
MENU: 'menu';
|
|
66
|
+
MAIN: 'main';
|
|
67
|
+
SIDE: 'side';
|
|
68
|
+
PORTAL: 'portal';
|
|
69
|
+
HEADER_MENU: 'header-menu';
|
|
70
|
+
QUICK_LAUNCH: 'quick-launch';
|
|
71
|
+
FOOTER_MENU: 'footer-menu';
|
|
72
|
+
BUTTON: 'button';
|
|
73
|
+
MENU_BUTTON: 'menu-button';
|
|
74
|
+
ACCOUNT: 'account';
|
|
75
|
+
ACCOUNT_AVATAR: 'account-avatar';
|
|
76
|
+
NO_ACTION: 'no-action';
|
|
77
|
+
SUB_GROUP: 'sub-group';
|
|
78
|
+
ROW_START: 'row-start';
|
|
79
|
+
SHADE: 'shade';
|
|
80
|
+
LOGIN_SCREEN: 'login-screen';
|
|
81
|
+
LOGIN_VERIFICATION: 'login-verification';
|
|
82
|
+
CONTENT: 'content';
|
|
83
|
+
USER: 'user';
|
|
84
|
+
PASS: 'pass';
|
|
85
|
+
REMEMBER: 'remember';
|
|
86
|
+
CODE: 'code';
|
|
87
|
+
MESSAGE: 'message';
|
|
88
|
+
ICON_MENU: 'ico-menu ico-m';
|
|
89
|
+
ICON_USER: 'ico-user';
|
|
90
|
+
ICON_LOCK: 'ico-lock';
|
|
91
|
+
ICON_KEY: 'ico-key';
|
|
92
|
+
ICON_EYE: 'ico-eye';
|
|
93
|
+
ICON_EYE_BLOCKED: 'ico-eye-blocked';
|
|
94
|
+
}>;
|
|
95
|
+
/**
|
|
96
|
+
* <p>Gets the css class if it exists and otherwise the default css class.</p>
|
|
97
|
+
* @param cssClassValue - <p>The default css class (a value of the classOption object).</p>
|
|
98
|
+
* @returns <p>The css class.</p>
|
|
99
|
+
*/
|
|
100
|
+
getCssClass(cssClassValue: string): string;
|
|
101
|
+
/**
|
|
102
|
+
* <p>Sets the header template. This template supports the below listed interpolations. Default value: {logo}{quickLaunchMenu}{menuButton}{topbar}{menu}{/topbar}</p>
|
|
103
|
+
* <ul>
|
|
104
|
+
* <li>{topbar} This value will be replaced with the opening topbar element tag.</li>
|
|
105
|
+
* <li>{/topbar} This value will be replaced with the closing topbar element tag.</li>
|
|
106
|
+
* <li>{logo} This value will be replaced with the figure element.</li>
|
|
107
|
+
* <li>{menuButton} This value will be replaced with the menu button.</li>
|
|
108
|
+
* <li>{accountButton} When authenticated this value will be replaced with the account button otherwise it will open the login screen.</li>
|
|
109
|
+
* <li>{menu} This value will be replaced with the header menu, containing all menu-items with menuSection set to either MAIN_HEADER or HEADER.</li>
|
|
110
|
+
* <li>{quickLaunchMenu} This value will be replaced with the quick-launch menu, containing all menu-items with menuSection set to QUICKLAUNCH</li>
|
|
111
|
+
* <li>{username} This value will be replaced with the username of the logged in user.</li>
|
|
112
|
+
* <li>{searchBox} This value will be replaced with the search-box.</li>
|
|
113
|
+
* </ul>
|
|
114
|
+
* @param content - <p>The HTML template.</p>
|
|
115
|
+
*/
|
|
116
|
+
setHeaderTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
117
|
+
/**
|
|
118
|
+
* <p>Sets the footer template. This template supports the below listed interpolations. Default value: {menu}{username}{loginButton}</p>
|
|
119
|
+
* <ul>
|
|
120
|
+
* <li>{logo} This value will be replaced with the figure element.</li>
|
|
121
|
+
* <li>{accountButton} When authenticated this value will be replaced with the account button otherwise it will open the login screen.</li>
|
|
122
|
+
* <li>{menu} This value will be replaced with the footer menu, containing all menu-items with menuSection set to FOOTER.</li>
|
|
123
|
+
* <li>{quickLaunchMenu} This value will be replaced with the quick-launch menu, containing all menu-items with menuSection set to QUICKLAUNCH</li>
|
|
124
|
+
* <li>{username} This value will be replaced with the username of the logged in user.</li>
|
|
125
|
+
* <li>{searchBox} This value will be replaced with the search-box.</li>
|
|
126
|
+
* </ul>
|
|
127
|
+
* @param content - <p>The HTML template.</p>
|
|
128
|
+
*/
|
|
129
|
+
setFooterTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
130
|
+
/**
|
|
131
|
+
* <p>Sets the sidebar template. This template supports the below listed interpolations.</p>
|
|
132
|
+
* <ul>
|
|
133
|
+
* <li>{logo} This value will be replaced with the figure element.</li>
|
|
134
|
+
* <li>{menuButton} This value will be replaced with the menu button.</li>
|
|
135
|
+
* <li>{accountButton} When authenticated this value will be replaced with the account button otherwise it will open the login screen.</li>
|
|
136
|
+
* <li>{quickLaunchMenu} This value will be replaced with the quick-launch menu, containing all menu-items with menuSection set to QUICKLAUNCH</li>
|
|
137
|
+
* <li>{username} This value will be replaced with the username of the logged in user.</li>
|
|
138
|
+
* <li>{searchBox} This value will be replaced with the search-box.</li>
|
|
139
|
+
* </ul>
|
|
140
|
+
* @param content - <p>The HTML template.</p>
|
|
141
|
+
*/
|
|
142
|
+
setSidebarTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
143
|
+
/**
|
|
144
|
+
* <p>Sets the login template. This template supports the below listed interpolations. Default value: {logo}{username}{password}{rememberMe}{loginButton}{failedMessage}</p>
|
|
145
|
+
* <ul>
|
|
146
|
+
* <li>{logo} This value will be replaced with the figure element.</li>
|
|
147
|
+
* <li>{username} This value will be replaced with the username input field.</li>
|
|
148
|
+
* <li>{password} This value will be replaced with the password input field.</li>
|
|
149
|
+
* <li>{rememberMe} This value will be replaced with the remember-me checkbox.</li>
|
|
150
|
+
* <li>{loginButton} This value will be replaced with the login button.</li>
|
|
151
|
+
* <li>{failedMessage} This value will be replaced with the message displayed when a login attempt failed.</li>
|
|
152
|
+
* </ul>
|
|
153
|
+
* @param content - <p>The HTML template.</p>
|
|
154
|
+
*/
|
|
155
|
+
setLoginTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
156
|
+
/**
|
|
157
|
+
* <p>Sets the login verification template. This template supports the below listed interpolations. Default value: {logo}{verificationCode}{verificationButton}{failedMessage}</p>
|
|
158
|
+
* <ul>
|
|
159
|
+
* <li>{logo} This value will be replaced with the figure element.</li>
|
|
160
|
+
* <li>{verificationCode} This value will be replaced with the verification-code input field.</li>
|
|
161
|
+
* <li>{verificationButton} This value will be replaced with the verification button.</li>
|
|
162
|
+
* <li>{failedMessage} This value will be replaced with the message displayed when a verification attempt failed.</li>
|
|
163
|
+
* </ul>
|
|
164
|
+
* @param content - <p>The HTML template.</p>
|
|
165
|
+
*/
|
|
166
|
+
setLoginVerificationTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
167
|
+
/**
|
|
168
|
+
* <p>Sets the error template. The error template supports the below listed interpolations.</p>
|
|
169
|
+
* <ul>
|
|
170
|
+
* <li>{message} This value will be replaced with the error message.</li>
|
|
171
|
+
* <li>{timestamp} This value will be replaced with the error timestamp (optional).</li>
|
|
172
|
+
* <li>{id} This value will be replaced with the error identifier (optional).</li>
|
|
173
|
+
* <li>{stackTrace} This value will be replaced with the error stack trace (optional).</li>
|
|
174
|
+
* </ul>
|
|
175
|
+
* @param content - <p>The HTML template.</p>
|
|
176
|
+
*/
|
|
177
|
+
setErrorTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
178
|
+
/**
|
|
179
|
+
* <p>Sets the page header template.</p>
|
|
180
|
+
* @param content - <p>The HTML template.</p>
|
|
181
|
+
*/
|
|
182
|
+
setPageHeaderTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
183
|
+
/**
|
|
184
|
+
* <p>Sets the page footer template.</p>
|
|
185
|
+
* @param content - <p>The HTML template.</p>
|
|
186
|
+
*/
|
|
187
|
+
setPageFooterTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
188
|
+
/**
|
|
189
|
+
* <p>Sets a value indicating if the app skin utilizes the full width of the screen.</p>
|
|
190
|
+
* @param value - <p>A value indicating if the appskin utilizes the full width of the screen.</p>
|
|
191
|
+
*/
|
|
192
|
+
setFullscreen(value: boolean): void;
|
|
193
|
+
/**
|
|
194
|
+
* <p>Sets a value indicating if the page content utilizes the full-screen width when not in full-screen mode.</p>
|
|
195
|
+
* @param value - <p>A value indicating if the page content container utilizes the full width of the screen.</p>
|
|
196
|
+
*/
|
|
197
|
+
setFullpage(value: boolean): void;
|
|
198
|
+
/**
|
|
199
|
+
* <p>Shows the intial page based upon the defined properties.</p>
|
|
200
|
+
*/
|
|
201
|
+
launch(): void;
|
|
202
|
+
/**
|
|
203
|
+
* <p>Updates the menu state to the active route path. The corresponding menu items are selected / expanded based on the menuRoutePathMatching setting.</p>
|
|
204
|
+
* @param routePath - <p>The active route path. The route path may end with a page anchor.</p>
|
|
205
|
+
* @param [hashtagRoutes] - <p>A value indicating if hashtag routes are used, in other words, the route-path follows the first hashtag.</p>
|
|
206
|
+
*/
|
|
207
|
+
updateMenuState(routePath: string, hashtagRoutes?: string): void;
|
|
208
|
+
/**
|
|
209
|
+
* <p>Gets the active screen.</p>
|
|
210
|
+
* @returns <p>The active screen.</p>
|
|
211
|
+
*/
|
|
212
|
+
activeScreen(): componyx.UI.AppSkin.ScreenOption;
|
|
213
|
+
/**
|
|
214
|
+
* <p>Gets the main menu.</p>
|
|
215
|
+
* @returns <p>The main menu component.</p>
|
|
216
|
+
*/
|
|
217
|
+
getMainMenu(): componyx.UI.Menu;
|
|
218
|
+
/**
|
|
219
|
+
* <p>Gets the header menu.</p>
|
|
220
|
+
* @returns <p>The header menu component.</p>
|
|
221
|
+
*/
|
|
222
|
+
getHeaderMenu(): componyx.UI.Menu;
|
|
223
|
+
/**
|
|
224
|
+
* <p>Gets the footer menu.</p>
|
|
225
|
+
* @returns <p>The footer menu component.</p>
|
|
226
|
+
*/
|
|
227
|
+
getFooterMenu(): componyx.UI.Menu;
|
|
228
|
+
/**
|
|
229
|
+
* <p>Gets the quick-launch menu.</p>
|
|
230
|
+
* @returns <p>The quick-launch menu component.</p>
|
|
231
|
+
*/
|
|
232
|
+
getQuickLaunchMenu(): componyx.UI.Menu;
|
|
233
|
+
/**
|
|
234
|
+
* <p>Gets the preloader.</p>
|
|
235
|
+
* @returns <p>The preloader box component.</p>
|
|
236
|
+
*/
|
|
237
|
+
preloader(): componyx.UI.Box;
|
|
238
|
+
/**
|
|
239
|
+
* <p>Shows the login page.</p>
|
|
240
|
+
*/
|
|
241
|
+
showLogin(): void;
|
|
242
|
+
/**
|
|
243
|
+
* <p>Shows the login verification page.</p>
|
|
244
|
+
*/
|
|
245
|
+
showLoginVerification(): void;
|
|
246
|
+
/**
|
|
247
|
+
* <p>Toggles the display of the main menu.</p>
|
|
248
|
+
*/
|
|
249
|
+
toggleMenu(): void;
|
|
250
|
+
/**
|
|
251
|
+
* <p>Shows the main menu.</p>
|
|
252
|
+
* @param [instant] - <p>A value indicating if the menu should be shown instantly without animation. Only applicable for side menu.</p>
|
|
253
|
+
*/
|
|
254
|
+
showMenu(instant?: boolean): void;
|
|
255
|
+
/**
|
|
256
|
+
* <p>Hides the main menu.</p>
|
|
257
|
+
* @param [instant] - <p>A value indicating if the menu should be shown instantly without animation. Only applicable for side menu.</p>
|
|
258
|
+
*/
|
|
259
|
+
hideMenu(instant?: boolean): void;
|
|
260
|
+
/**
|
|
261
|
+
* <p>Processes the header overflow tasks.</p>
|
|
262
|
+
*/
|
|
263
|
+
checkHeaderOverflow(): void;
|
|
264
|
+
/**
|
|
265
|
+
* <p>Shows the page.</p>
|
|
266
|
+
* @param hideError - <p>Hides the error screen if active.</p>
|
|
267
|
+
*/
|
|
268
|
+
showPage(hideError: boolean): void;
|
|
269
|
+
/**
|
|
270
|
+
* <p>Checks if the error screen is active.</p>
|
|
271
|
+
* @returns <p>A value indicating if an error occurred.</p>
|
|
272
|
+
*/
|
|
273
|
+
hasError(): boolean;
|
|
274
|
+
/**
|
|
275
|
+
* <p>Initiates a search request.</p>
|
|
276
|
+
* @param terms - <p>The search terms.</p>
|
|
277
|
+
*/
|
|
278
|
+
search(terms: string): void;
|
|
279
|
+
/**
|
|
280
|
+
* <p>Log's the user in.</p>
|
|
281
|
+
* @param [settings] - <p>The login settings to send to the authentication handler. By default input values (string username, string password, boolean persistent) from the login-screen are sent to the authentication handler.</p>
|
|
282
|
+
*/
|
|
283
|
+
login(settings?: any): void;
|
|
284
|
+
/**
|
|
285
|
+
* <p>Verifies the login verification code.</p>
|
|
286
|
+
* @param [settings] - <p>The login settings to send to the authentication handler. By default the input value (string verificationCode) from the login-verification-screen is sent to the authentication handler.</p>
|
|
287
|
+
*/
|
|
288
|
+
verifyCode(settings?: any): void;
|
|
289
|
+
/**
|
|
290
|
+
* <p>Log's the user out.</p>
|
|
291
|
+
* @param [settings] - <p>The logout settings to send to the authentication handler. By default boolean logout:true is sent to the authentication handler.</p>
|
|
292
|
+
*/
|
|
293
|
+
logout(settings?: any): void;
|
|
294
|
+
/**
|
|
295
|
+
* <p>Renders the component</p>
|
|
296
|
+
*/
|
|
297
|
+
render(): Promise<void>;
|
|
298
|
+
/**
|
|
299
|
+
* <p>Handles the post render procedure.</p>
|
|
300
|
+
*/
|
|
301
|
+
postRender(): void;
|
|
302
|
+
/**
|
|
303
|
+
* <p>Destroys the component.</p>
|
|
304
|
+
* @param keepEvents - <p>A value indicating if the events must be kept.</p>
|
|
305
|
+
* @param [removeElement = true] - <p>A value indicating if the element must be removed.</p>
|
|
306
|
+
*/
|
|
307
|
+
destroy(keepEvents: boolean, removeElement?: boolean): void;
|
|
308
|
+
/**
|
|
309
|
+
* <p>Gets or sets a value indicating if authentication is required.</p>
|
|
310
|
+
*/
|
|
311
|
+
authenticationRequired: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* <p>Gets a value indicating if the user is authenticated.</p>
|
|
314
|
+
*/
|
|
315
|
+
authenticated: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* <p>Gets a value indicating if the menu is displayed on app launch.</p>
|
|
318
|
+
*/
|
|
319
|
+
launchMenu: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* <p>Gets a value indicating if the menu button is displayed when the app-skin login page is active.</p>
|
|
322
|
+
*/
|
|
323
|
+
hideMenuButtonOnLogin: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* <p>Gets or sets a value indicating if the contents of the app skin will utilize the full-screen width.</p>
|
|
326
|
+
*/
|
|
327
|
+
fullscreen: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* <p>Gets or sets a value indicating if the page content utilizes the full-screen width when not in full-screen mode.</p>
|
|
330
|
+
*/
|
|
331
|
+
fullpage: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* <p>Gets or sets a value indicating if the rememeber me option is available for manual login.</p>
|
|
334
|
+
*/
|
|
335
|
+
showRememberMe: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* <p>Gets or sets a value indicating if the top-bar in the header is always visible (true) or is hidden when the portal-menu is active (false).</p>
|
|
338
|
+
*/
|
|
339
|
+
persistentTopBar: boolean;
|
|
340
|
+
/**
|
|
341
|
+
* <p>Gets or sets a value indicating if the menu button is always visible (true) or is hidden when the all menu-items are visible in the header-menu.</p>
|
|
342
|
+
*/
|
|
343
|
+
persistentMenuButton: boolean;
|
|
344
|
+
/**
|
|
345
|
+
* <p>Gets or sets a value indicating if the side-menu displays at the right side (false) or the left side (true) of the screen.</p>
|
|
346
|
+
*/
|
|
347
|
+
menuLeft: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* <p>Gets or sets a value indicating if the account button is displayed as avatar when the user is authenticated.</p>
|
|
350
|
+
*/
|
|
351
|
+
accountButtonAvatar: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* <p>Gets or sets a value indicating if the login template is created when rendering the app skin.</p>
|
|
354
|
+
*/
|
|
355
|
+
useLoginTemplate: boolean;
|
|
356
|
+
/**
|
|
357
|
+
* <p>Gets or sets a value indicating if the Bindary framework is used for loading routes.</p>
|
|
358
|
+
*/
|
|
359
|
+
useBindary: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* <p>Gets or sets the menu navigation type (portal-menu or side-menu).</p>
|
|
362
|
+
*/
|
|
363
|
+
menuType: componyx.UI.AppSkin.MenuTypeOption;
|
|
364
|
+
/**
|
|
365
|
+
* <p>Gets or sets a value indicating if menu-items are automatically selected if the item's route-path (partially) matches the current URL route-path.</p>
|
|
366
|
+
*/
|
|
367
|
+
menuRoutePathMatching: componyx.UI.AppSkin.RoutePathMatchingOption;
|
|
368
|
+
/**
|
|
369
|
+
* <p>Gets or sets a value indicating when the footer is displayed.</p>
|
|
370
|
+
*/
|
|
371
|
+
footerDisplay: componyx.UI.AppSkin.FooterDisplayOption;
|
|
372
|
+
/**
|
|
373
|
+
* <p>Gets or sets the delay in milliseconds before the typed letter(s) in the search-box are sent to the server.</p>
|
|
374
|
+
*/
|
|
375
|
+
searchDelay: number;
|
|
376
|
+
/**
|
|
377
|
+
* <p>Gets or sets the search-box placeholder label.</p>
|
|
378
|
+
*/
|
|
379
|
+
searchLabel: string;
|
|
380
|
+
/**
|
|
381
|
+
* <p>Gets or sets the label when no search results are found.</p>
|
|
382
|
+
*/
|
|
383
|
+
searchNoResultLabel: string;
|
|
384
|
+
/**
|
|
385
|
+
* <p>Gets or sets the category labels for the search-results. Use empty string key for root label.</p>
|
|
386
|
+
*/
|
|
387
|
+
searchCategoryLabels: any;
|
|
388
|
+
/**
|
|
389
|
+
* <p>Gets or sets the action of the account button.</p>
|
|
390
|
+
*/
|
|
391
|
+
accountAction: ((...params: any[]) => any) | string;
|
|
392
|
+
/**
|
|
393
|
+
* <p>Gets or sets the account button avatar initials.</p>
|
|
394
|
+
*/
|
|
395
|
+
avatarInitials: string;
|
|
396
|
+
/**
|
|
397
|
+
* <p>Gets or sets the account button avatar image path.</p>
|
|
398
|
+
*/
|
|
399
|
+
avatarImagePath: string;
|
|
400
|
+
/**
|
|
401
|
+
* <p>Gets or sets the Loading text label.</p>
|
|
402
|
+
*/
|
|
403
|
+
loadingLabel: string;
|
|
404
|
+
/**
|
|
405
|
+
* <p>Gets or sets the text label of the main category.</p>
|
|
406
|
+
*/
|
|
407
|
+
mainCategoryLabel: string;
|
|
408
|
+
/**
|
|
409
|
+
* <p>Gets or sets the username of the authenticated user.</p>
|
|
410
|
+
*/
|
|
411
|
+
username: string;
|
|
412
|
+
/**
|
|
413
|
+
* <p>Gets or sets the Username text label.</p>
|
|
414
|
+
*/
|
|
415
|
+
usernameLabel: string;
|
|
416
|
+
/**
|
|
417
|
+
* <p>Gets or sets the Password text label.</p>
|
|
418
|
+
*/
|
|
419
|
+
passwordLabel: string;
|
|
420
|
+
/**
|
|
421
|
+
* <p>Gets or sets the RememberMe text label.</p>
|
|
422
|
+
*/
|
|
423
|
+
rememberMeLabel: string;
|
|
424
|
+
/**
|
|
425
|
+
* <p>Gets or sets the text label of the login button.</p>
|
|
426
|
+
*/
|
|
427
|
+
loginButtonLabel: string;
|
|
428
|
+
/**
|
|
429
|
+
* <p>Gets or sets the default label for an authentication failure.</p>
|
|
430
|
+
*/
|
|
431
|
+
authenticationFailureLabel: string;
|
|
432
|
+
/**
|
|
433
|
+
* <p>Gets or sets the labels for the authentication failure reasons.</p>
|
|
434
|
+
*/
|
|
435
|
+
authenticationFailureReasonLabels: String[];
|
|
436
|
+
/**
|
|
437
|
+
* <p>Gets or sets the text label of the login-verification button.</p>
|
|
438
|
+
*/
|
|
439
|
+
verificationButtonLabel: string;
|
|
440
|
+
/**
|
|
441
|
+
* <p>Gets or sets the text label of the login verification code.</p>
|
|
442
|
+
*/
|
|
443
|
+
verificationCodeLabel: string;
|
|
444
|
+
/**
|
|
445
|
+
* <p>Gets or sets the input field length of the login verification code.</p>
|
|
446
|
+
*/
|
|
447
|
+
verificationCodeLength: number;
|
|
448
|
+
/**
|
|
449
|
+
* <p>Gets or sets the delay in milliseconds before the app is reloaded when the login verification failed.</p>
|
|
450
|
+
*/
|
|
451
|
+
verificationFailedReloadDelay: number;
|
|
452
|
+
/**
|
|
453
|
+
* <p>Gets or sets the CRSF Token to send with autorisation POST actions.</p>
|
|
454
|
+
*/
|
|
455
|
+
crsfToken: string | null;
|
|
456
|
+
/**
|
|
457
|
+
* <p>Gets or sets the list of menu-items.</p>
|
|
458
|
+
*/
|
|
459
|
+
menu: componyx.UI.AppSkin.MenuItem[];
|
|
460
|
+
/**
|
|
461
|
+
* <p>Gets or sets the id of the menu component used as base for the main menu.</p>
|
|
462
|
+
*/
|
|
463
|
+
mainMenuId: string | null;
|
|
464
|
+
/**
|
|
465
|
+
* <p>Gets or sets the id of the menu component used as base for the header menu.</p>
|
|
466
|
+
*/
|
|
467
|
+
headerMenuId: string | null;
|
|
468
|
+
/**
|
|
469
|
+
* <p>Gets or sets the id of the menu component used as base for the footer menu.</p>
|
|
470
|
+
*/
|
|
471
|
+
footerMenuId: string | null;
|
|
472
|
+
/**
|
|
473
|
+
* <p>Gets or sets the id of the menu component used as base for the quick launch menu.</p>
|
|
474
|
+
*/
|
|
475
|
+
quickLaunchMenuId: string | null;
|
|
476
|
+
/**
|
|
477
|
+
* <p>Gets or sets the id of the button component used as base for the menu button.</p>
|
|
478
|
+
*/
|
|
479
|
+
menuButtonId: string | null;
|
|
480
|
+
/**
|
|
481
|
+
* <p>Gets or sets the id of the button component used as base for the login button.</p>
|
|
482
|
+
*/
|
|
483
|
+
loginButtonId: string | null;
|
|
484
|
+
/**
|
|
485
|
+
* <p>Gets or sets the id of the button component used as base for the login-verification button.</p>
|
|
486
|
+
*/
|
|
487
|
+
verificationButtonId: string | null;
|
|
488
|
+
/**
|
|
489
|
+
* <p>Gets or sets the id of the button component used as base for the account button.</p>
|
|
490
|
+
*/
|
|
491
|
+
accountButtonId: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* <p>Gets or sets the id of the form-field component used as base for the username form field.</p>
|
|
494
|
+
*/
|
|
495
|
+
usernameFormFieldId: string | null;
|
|
496
|
+
/**
|
|
497
|
+
* <p>Gets or sets the id of the form-field component used as base for the password form field.</p>
|
|
498
|
+
*/
|
|
499
|
+
passwordFormFieldId: string | null;
|
|
500
|
+
/**
|
|
501
|
+
* <p>Gets or sets the id of the form-field component used as base for the remember-me form field.</p>
|
|
502
|
+
*/
|
|
503
|
+
rememberMeFormFieldId: string | null;
|
|
504
|
+
/**
|
|
505
|
+
* <p>Gets or sets the id of the form-field component used as base for the verification code form field.</p>
|
|
506
|
+
*/
|
|
507
|
+
verificationCodeFormFieldId: string | null;
|
|
508
|
+
}
|
|
509
|
+
namespace AppSkin
|
|
510
|
+
{
|
|
511
|
+
/**
|
|
512
|
+
* @property authenticationState - <p>The authentication state.</p>
|
|
513
|
+
* @property failureReason - <p>The reason why the authentication attempt failed.</p>
|
|
514
|
+
* @property failureMessage - <p>The failure message.</p>
|
|
515
|
+
* @property [cancel = false] - <p>A value indicating if the default action of the AppSkin component should be canceled.</p>
|
|
516
|
+
*/
|
|
517
|
+
type AuthenticationResponseEventArgs = {
|
|
518
|
+
authenticationState: AuthenticationStateOption;
|
|
519
|
+
failureReason: FailureReasonOption;
|
|
520
|
+
failureMessage: string;
|
|
521
|
+
cancel?: boolean;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* @property headerOverflow - <p>A value indicating if the content in the header caused an overflow.</p>
|
|
525
|
+
* @property [cancel = false] - <p>A value indicating if the default action of the AppSkin component should be canceled.</p>
|
|
526
|
+
*/
|
|
527
|
+
type ResizeActionEventArgs = {
|
|
528
|
+
headerOverflow: boolean;
|
|
529
|
+
cancel?: boolean;
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* @property data - <p>The search results.</p>
|
|
533
|
+
* @property container - <p>The search results container element.</p>
|
|
534
|
+
* @property [cancel = false] - <p>A value indicating if the default action of the AppSkin component should be canceled.</p>
|
|
535
|
+
*/
|
|
536
|
+
type SearchResultsEventArgs = {
|
|
537
|
+
data: object[];
|
|
538
|
+
container: HTMLElement;
|
|
539
|
+
cancel?: boolean;
|
|
540
|
+
};
|
|
541
|
+
/**
|
|
542
|
+
* @property data - <p>The search results.</p>
|
|
543
|
+
* @property container - <p>The search results container element.</p>
|
|
544
|
+
* @property [anchor] - <p>The seach result element.</p>
|
|
545
|
+
* @property [item] - <p>The seach result item.</p>
|
|
546
|
+
*/
|
|
547
|
+
type SearchResultEventArgs = {
|
|
548
|
+
data: object[];
|
|
549
|
+
container: HTMLElement;
|
|
550
|
+
anchor?: HTMLElement;
|
|
551
|
+
item?: any;
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* @property onShowLogin - <p>Event which fires when the login-screen is shown.</p>
|
|
555
|
+
* @property onShowLoginVerification - <p>Event which fires when the login-verification-screen is shown.</p>
|
|
556
|
+
* @property onShowPage - <p>Event which fires when the page-screen is shown.</p>
|
|
557
|
+
* @property onShowError - <p>Event which fires when the error-screen is shown.</p>
|
|
558
|
+
* @property onShowMenu - <p>Event which fires when the menu is shown.</p>
|
|
559
|
+
* @property onHideMenu - <p>Event which fires when the menu is hidden.</p>
|
|
560
|
+
* @property onLoginAttempt - <p>Event which fires when a login attempt is made. The event arguments are of type {@link componyx.UI.AppSkin.AuthenticationResponseEventArgs}.</p>
|
|
561
|
+
* @property onLoginVerificationAttempt - <p>Event which fires when a login verification attempt is made. The event arguments are of type {@link componyx.UI.AppSkin.AuthenticationResponseEventArgs}.</p>
|
|
562
|
+
* @property onLogout - <p>Event which fires when the user logged out. The event arguments are of type {@link componyx.UI.AppSkin.AuthenticationResponseEventArgs}.</p>
|
|
563
|
+
* @property onPreSearchResults - <p>Event which fires before the search results are rendered. The event arguments are of type {@link componyx.UI.AppSkin.SearchResultsEventArgs}.</p>
|
|
564
|
+
* @property onRenderSearchResult - <p>Event which fires when a search result link is rendered. The event arguments are of type {@link componyx.UI.AppSkin.SearchResultEventArgs}.</p>
|
|
565
|
+
* @property onPostSearchResults - <p>Event which fires after the search results are rendered. The event arguments are of type {@link componyx.UI.AppSkin.SearchResultsEventArgs}.</p>
|
|
566
|
+
* @property onResize - <p>Event which fires when the window is resized. The event arguments are of type {@link componyx.UI.AppSkin.ResizeActionEventArgs}.</p>
|
|
567
|
+
*/
|
|
568
|
+
class AppSkinEvents extends componyx.UI.base.Events<componyx.UI.AppSkin>
|
|
569
|
+
{
|
|
570
|
+
constructor();
|
|
571
|
+
/**
|
|
572
|
+
* <p>Event which fires when the login-screen is shown.</p>
|
|
573
|
+
*/
|
|
574
|
+
onShowLogin: componyx.UI.base.Event<componyx.UI.AppSkin, undefined>;
|
|
575
|
+
/**
|
|
576
|
+
* <p>Event which fires when the login-verification-screen is shown.</p>
|
|
577
|
+
*/
|
|
578
|
+
onShowLoginVerification: componyx.UI.base.Event<componyx.UI.AppSkin, undefined>;
|
|
579
|
+
/**
|
|
580
|
+
* <p>Event which fires when the page-screen is shown.</p>
|
|
581
|
+
*/
|
|
582
|
+
onShowPage: componyx.UI.base.Event<componyx.UI.AppSkin, undefined>;
|
|
583
|
+
/**
|
|
584
|
+
* <p>Event which fires when the error-screen is shown.</p>
|
|
585
|
+
*/
|
|
586
|
+
onShowError: componyx.UI.base.Event<componyx.UI.AppSkin, undefined>;
|
|
587
|
+
/**
|
|
588
|
+
* <p>Event which fires when the menu is shown.</p>
|
|
589
|
+
*/
|
|
590
|
+
onShowMenu: componyx.UI.base.Event<componyx.UI.AppSkin, undefined>;
|
|
591
|
+
/**
|
|
592
|
+
* <p>Event which fires when the menu is hidden.</p>
|
|
593
|
+
*/
|
|
594
|
+
onHideMenu: componyx.UI.base.Event<componyx.UI.AppSkin, undefined>;
|
|
595
|
+
/**
|
|
596
|
+
* <p>Event which fires when a login attempt is made. The event arguments are of type {@link componyx.UI.AppSkin.AuthenticationResponseEventArgs}.</p>
|
|
597
|
+
*/
|
|
598
|
+
onLoginAttempt: componyx.UI.base.Event<componyx.UI.AppSkin, componyx.UI.AppSkin.AuthenticationResponseEventArgs>;
|
|
599
|
+
/**
|
|
600
|
+
* <p>Event which fires when a login verification attempt is made. The event arguments are of type {@link componyx.UI.AppSkin.AuthenticationResponseEventArgs}.</p>
|
|
601
|
+
*/
|
|
602
|
+
onLoginVerificationAttempt: componyx.UI.base.Event<componyx.UI.AppSkin, componyx.UI.AppSkin.AuthenticationResponseEventArgs>;
|
|
603
|
+
/**
|
|
604
|
+
* <p>Event which fires when the user logged out. The event arguments are of type {@link componyx.UI.AppSkin.AuthenticationResponseEventArgs}.</p>
|
|
605
|
+
*/
|
|
606
|
+
onLogout: componyx.UI.base.Event<componyx.UI.AppSkin, componyx.UI.AppSkin.AuthenticationResponseEventArgs>;
|
|
607
|
+
/**
|
|
608
|
+
* <p>Event which fires before the search results are rendered. The event arguments are of type {@link componyx.UI.AppSkin.SearchResultsEventArgs}.</p>
|
|
609
|
+
*/
|
|
610
|
+
onPreSearchResults: componyx.UI.base.Event<componyx.UI.AppSkin, componyx.UI.AppSkin.SearchResultsEventArgs>;
|
|
611
|
+
/**
|
|
612
|
+
* <p>Event which fires when a search result link is rendered. The event arguments are of type {@link componyx.UI.AppSkin.SearchResultEventArgs}.</p>
|
|
613
|
+
*/
|
|
614
|
+
onRenderSearchResult: componyx.UI.base.Event<componyx.UI.AppSkin, componyx.UI.AppSkin.SearchResultEventArgs>;
|
|
615
|
+
/**
|
|
616
|
+
* <p>Event which fires after the search results are rendered. The event arguments are of type {@link componyx.UI.AppSkin.SearchResultsEventArgs}.</p>
|
|
617
|
+
*/
|
|
618
|
+
onPostSearchResults: componyx.UI.base.Event<componyx.UI.AppSkin, componyx.UI.AppSkin.SearchResultsEventArgs>;
|
|
619
|
+
/**
|
|
620
|
+
* <p>Event which fires when the window is resized. The event arguments are of type {@link componyx.UI.AppSkin.ResizeActionEventArgs}.</p>
|
|
621
|
+
*/
|
|
622
|
+
onResize: componyx.UI.base.Event<componyx.UI.AppSkin, componyx.UI.AppSkin.ResizeActionEventArgs>;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* <p>ScreenOption</p>
|
|
626
|
+
*/
|
|
627
|
+
enum ScreenOption
|
|
628
|
+
{
|
|
629
|
+
/**
|
|
630
|
+
* <p>the login screen is visible</p>
|
|
631
|
+
*/
|
|
632
|
+
LOGIN = 0,
|
|
633
|
+
/**
|
|
634
|
+
* <p>the login verification screen is visible</p>
|
|
635
|
+
*/
|
|
636
|
+
LOGIN_VERIFICATION = 1,
|
|
637
|
+
/**
|
|
638
|
+
* <p>the portal navigation screen is visible</p>
|
|
639
|
+
*/
|
|
640
|
+
PORTAL = 2,
|
|
641
|
+
/**
|
|
642
|
+
* <p>the page is visible</p>
|
|
643
|
+
*/
|
|
644
|
+
PAGE = 3
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* <p>MenuTypeOption</p>
|
|
648
|
+
*/
|
|
649
|
+
enum MenuTypeOption
|
|
650
|
+
{
|
|
651
|
+
/**
|
|
652
|
+
* <p>the main menu is displayed as portal navigation</p>
|
|
653
|
+
*/
|
|
654
|
+
PORTALMENU = 0,
|
|
655
|
+
/**
|
|
656
|
+
* <p>the main menu is displayed as side navigation</p>
|
|
657
|
+
*/
|
|
658
|
+
SIDEMENU = 1
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* <p>MenuSectionOption</p>
|
|
662
|
+
*/
|
|
663
|
+
enum MenuSectionOption
|
|
664
|
+
{
|
|
665
|
+
/**
|
|
666
|
+
* <p>the menu-item will be rendered in the header and main menu-sections</p>
|
|
667
|
+
*/
|
|
668
|
+
HEADER = 0,
|
|
669
|
+
/**
|
|
670
|
+
* <p>the menu-item will be rendered in the main menu-section</p>
|
|
671
|
+
*/
|
|
672
|
+
MAIN = 1,
|
|
673
|
+
/**
|
|
674
|
+
* <p>the menu-item will be rendered in the footer menu-section</p>
|
|
675
|
+
*/
|
|
676
|
+
FOOTER = 2,
|
|
677
|
+
/**
|
|
678
|
+
* <p>the menu-item will be rendered in the quick-launch menu-section</p>
|
|
679
|
+
*/
|
|
680
|
+
QUICKLAUNCH = 3
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* <p>ButtonTileSizeOption</p>
|
|
684
|
+
*/
|
|
685
|
+
enum TileSizeOption
|
|
686
|
+
{
|
|
687
|
+
/**
|
|
688
|
+
* <p>renders the menu-item button as small tile in the portal-menu</p>
|
|
689
|
+
*/
|
|
690
|
+
SMALL = 1,
|
|
691
|
+
/**
|
|
692
|
+
* <p>renders the menu-item button as small-wide tile in the portal-menu</p>
|
|
693
|
+
*/
|
|
694
|
+
SMALL_WIDE = 2,
|
|
695
|
+
/**
|
|
696
|
+
* <p>renders the menu-item button as medium tile in the portal-menu</p>
|
|
697
|
+
*/
|
|
698
|
+
MEDIUM = 4,
|
|
699
|
+
/**
|
|
700
|
+
* <p>renders the menu-item button as medium-wide tile in the portal-menu</p>
|
|
701
|
+
*/
|
|
702
|
+
MEDIUM_WIDE = 8,
|
|
703
|
+
/**
|
|
704
|
+
* <p>renders the menu-item button as large tile in the portal-menu</p>
|
|
705
|
+
*/
|
|
706
|
+
LARGE = 16
|
|
707
|
+
}
|
|
708
|
+
namespace TileSizeOption
|
|
709
|
+
{
|
|
710
|
+
/**
|
|
711
|
+
* <p>Gets the lowercase name of the option value.</p>
|
|
712
|
+
* @param value - <p>The enum value.</p>
|
|
713
|
+
*/
|
|
714
|
+
function getName(value: componyx.UI.AppSkin.TileSizeOption): string;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* <p>RoutePathMatchingOption</p>
|
|
718
|
+
*/
|
|
719
|
+
enum RoutePathMatchingOption
|
|
720
|
+
{
|
|
721
|
+
/**
|
|
722
|
+
* <p>there is no menu-item route-path matching</p>
|
|
723
|
+
*/
|
|
724
|
+
DISABLED = 0,
|
|
725
|
+
/**
|
|
726
|
+
* <p>matches if the item's route-path equals the current URL route-path exactly</p>
|
|
727
|
+
*/
|
|
728
|
+
EXACT = 1,
|
|
729
|
+
/**
|
|
730
|
+
* <p>matches if the item's route-path equals the current URL route-path while ignoring possible parameters preceded by a question mark character.</p>
|
|
731
|
+
*/
|
|
732
|
+
PARTIAL = 2
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* <p>FooterDisplayOption</p>
|
|
736
|
+
*/
|
|
737
|
+
enum FooterDisplayOption
|
|
738
|
+
{
|
|
739
|
+
/**
|
|
740
|
+
* <p>the footer is not visible</p>
|
|
741
|
+
*/
|
|
742
|
+
DISABLED = 0,
|
|
743
|
+
/**
|
|
744
|
+
* <p>the footer is visible when the menu is visible</p>
|
|
745
|
+
*/
|
|
746
|
+
MENU = 1,
|
|
747
|
+
/**
|
|
748
|
+
* <p>the footer is always visible</p>
|
|
749
|
+
*/
|
|
750
|
+
PERSISTENT = 2
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* <p>FailureReasonOption</p>
|
|
754
|
+
*/
|
|
755
|
+
enum FailureReasonOption
|
|
756
|
+
{
|
|
757
|
+
/**
|
|
758
|
+
* <p>Provided CRSF Token does not match with token in Session object.</p>
|
|
759
|
+
*/
|
|
760
|
+
CRSF_TOKEN_MISMATCH = 0,
|
|
761
|
+
/**
|
|
762
|
+
* <p>Total attempts exceeded configured max sign-in attempts.</p>
|
|
763
|
+
*/
|
|
764
|
+
MAX_SIGNIN_ATTEMPTS_EXCEEDED = 1,
|
|
765
|
+
/**
|
|
766
|
+
* <p>Provided username and/or password do not match.</p>
|
|
767
|
+
*/
|
|
768
|
+
USERNAME_OR_PASSWORD_MISMATCH = 2,
|
|
769
|
+
/**
|
|
770
|
+
* <p>Provided verificatin code does not match.</p>
|
|
771
|
+
*/
|
|
772
|
+
VERIFICATION_CODE_MISMATCH = 3,
|
|
773
|
+
/**
|
|
774
|
+
* <p>The generated verification-code has expired.</p>
|
|
775
|
+
*/
|
|
776
|
+
VERIFICATION_CODE_EXPIRED = 4,
|
|
777
|
+
/**
|
|
778
|
+
* <p>Total attempts exceeded the configured max verify code attempts.</p>
|
|
779
|
+
*/
|
|
780
|
+
MAX_VERIFY_ATTEMPTS_EXCEEDED = 5,
|
|
781
|
+
/**
|
|
782
|
+
* <p>Other reason</p>
|
|
783
|
+
*/
|
|
784
|
+
OTHER = 6
|
|
785
|
+
}
|
|
786
|
+
namespace FailureReasonOption
|
|
787
|
+
{
|
|
788
|
+
/**
|
|
789
|
+
* <p>Gets the lowercase name of the option value.</p>
|
|
790
|
+
* @param value - <p>The enum value.</p>
|
|
791
|
+
*/
|
|
792
|
+
function getName(value: componyx.UI.AppSkin.FailureReasonOption): string;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* <p>AuthenticationStateOption</p>
|
|
796
|
+
*/
|
|
797
|
+
enum AuthenticationStateOption
|
|
798
|
+
{
|
|
799
|
+
/**
|
|
800
|
+
* <p>The user is not authenticated.</p>
|
|
801
|
+
*/
|
|
802
|
+
UNAUTHENTICATED = 0,
|
|
803
|
+
/**
|
|
804
|
+
* <p>The credentials have been successfully validated but the user is not yet authenticated (Step 1 in Two-Factor authentication).</p>
|
|
805
|
+
*/
|
|
806
|
+
CREDENTIALS_VALIDATED = 1,
|
|
807
|
+
/**
|
|
808
|
+
* <p>The user is successfully authenticated.</p>
|
|
809
|
+
*/
|
|
810
|
+
AUTHENTICATED = 2
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* <p>Creates an instance of the AppSkin MenuItem.</p>
|
|
814
|
+
* @property menuSection - <p>Gets or sets a value indicating in which menu-section the item is displayed.</p>
|
|
815
|
+
* @property groupTileSize - <p>Gets or sets the tile-size of the portal menu group.</p>
|
|
816
|
+
* @property buttonTileSize - <p>Gets or sets the tile-size of the portal menu buttons.</p>
|
|
817
|
+
* @property categoryInHeader - <p>Gets or sets a value indicating if the category (isCategory:true) is shown in the header-menu when menuSection:HEADER. By default the category is always displayed in the main-menu.</p>
|
|
818
|
+
* @param properties - <p>The properties used to initialize the object.</p>
|
|
819
|
+
*/
|
|
820
|
+
class MenuItem extends componyx.UI.Menu.Item
|
|
821
|
+
{
|
|
822
|
+
constructor(properties: any);
|
|
823
|
+
/**
|
|
824
|
+
* <p>Gets or sets a value indicating in which menu-section the item is displayed.</p>
|
|
825
|
+
*/
|
|
826
|
+
menuSection: componyx.UI.AppSkin.MenuSectionOption;
|
|
827
|
+
/**
|
|
828
|
+
* <p>Gets or sets the tile-size of the portal menu group.</p>
|
|
829
|
+
*/
|
|
830
|
+
groupTileSize: componyx.UI.AppSkin.TileSizeOption;
|
|
831
|
+
/**
|
|
832
|
+
* <p>Gets or sets the tile-size of the portal menu buttons.</p>
|
|
833
|
+
*/
|
|
834
|
+
buttonTileSize: componyx.UI.AppSkin.TileSizeOption;
|
|
835
|
+
/**
|
|
836
|
+
* <p>Gets or sets a value indicating if the category (isCategory:true) is shown in the header-menu when menuSection:HEADER. By default the category is always displayed in the main-menu.</p>
|
|
837
|
+
*/
|
|
838
|
+
categoryInHeader: boolean;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|