@pacem/pacem-ui 1.0.0-abel
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/LICENSE +191 -0
- package/NOTICE +4 -0
- package/dist/browser/pacem-ui.js +6343 -0
- package/dist/browser/pacem-ui.js.map +1 -0
- package/dist/browser/pacem-ui.min.js +2 -0
- package/dist/browser/pacem-ui.min.js.map +1 -0
- package/dist/bundle/pacem-ui.min.mjs +168 -0
- package/dist/bundle/pacem-ui.mjs +6276 -0
- package/dist/bundle/pacem-ui.mjs.map +7 -0
- package/dist/esm/adapter.js +360 -0
- package/dist/esm/anchor.js +149 -0
- package/dist/esm/balloon.js +583 -0
- package/dist/esm/binder.js +678 -0
- package/dist/esm/blade.js +31 -0
- package/dist/esm/bottom-sheet.js +277 -0
- package/dist/esm/button.js +100 -0
- package/dist/esm/buttonset.js +41 -0
- package/dist/esm/calendar.js +662 -0
- package/dist/esm/collapse.js +72 -0
- package/dist/esm/dialog-abstractions.js +61 -0
- package/dist/esm/dialog.js +102 -0
- package/dist/esm/divider.js +48 -0
- package/dist/esm/icon.js +131 -0
- package/dist/esm/image.js +109 -0
- package/dist/esm/index-components-ui.js +41 -0
- package/dist/esm/index-components.js +1 -0
- package/dist/esm/index-iife.js +3 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/infinite-scroller.js +137 -0
- package/dist/esm/iterative.js +45 -0
- package/dist/esm/lightbox-abstractions.js +6 -0
- package/dist/esm/lightbox.js +203 -0
- package/dist/esm/loader.js +100 -0
- package/dist/esm/markdown-svc.js +235 -0
- package/dist/esm/markdown.js +35 -0
- package/dist/esm/marquee.js +87 -0
- package/dist/esm/media-query.js +85 -0
- package/dist/esm/menu.js +165 -0
- package/dist/esm/pager.js +111 -0
- package/dist/esm/picture.js +157 -0
- package/dist/esm/progressbar.js +54 -0
- package/dist/esm/sidebar.js +60 -0
- package/dist/esm/slideshow.js +27 -0
- package/dist/esm/social-twitter.js +39 -0
- package/dist/esm/sticky-header.js +113 -0
- package/dist/esm/tabs.js +187 -0
- package/dist/esm/ticker.js +78 -0
- package/dist/esm/toast.js +171 -0
- package/dist/esm/toc.js +171 -0
- package/dist/esm/tuner.js +200 -0
- package/dist/esm/types.js +7 -0
- package/dist/esm/vibration.js +33 -0
- package/dist/esm/view.js +206 -0
- package/dist/esm/window.js +181 -0
- package/package.json +38 -0
- package/typings/index.d.ts +1165 -0
|
@@ -0,0 +1,1165 @@
|
|
|
1
|
+
import { Animations } from '@pacem/pacem-core';
|
|
2
|
+
import { Components as Components_2 } from '@pacem/pacem-core';
|
|
3
|
+
import { CustomTypedEvent } from '@pacem/pacem-core';
|
|
4
|
+
import { CustomUIEvent } from '@pacem/pacem-core';
|
|
5
|
+
import { Net } from '@pacem/pacem-core';
|
|
6
|
+
import { PacemEventTarget } from '@pacem/pacem-core';
|
|
7
|
+
import { Point } from '@pacem/pacem-foundation';
|
|
8
|
+
import { PropertyConverter } from '@pacem/pacem-core';
|
|
9
|
+
|
|
10
|
+
declare enum AdapterOrientation {
|
|
11
|
+
Vertical = "vertical",
|
|
12
|
+
Horizontal = "horizontal"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class AdapterPageButtonRefreshEvent extends CustomEvent<AdapterPageButtonRefreshEventArgs> {
|
|
16
|
+
constructor(args: AdapterPageButtonRefreshEventArgs);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare interface AdapterPageButtonRefreshEventArgs {
|
|
20
|
+
index: number;
|
|
21
|
+
hide: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
content: string | Node;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare const AdapterPageButtonRefreshEventName = "pagerefresh";
|
|
27
|
+
|
|
28
|
+
declare enum BalloonAlignment {
|
|
29
|
+
Start = "start",
|
|
30
|
+
Center = "center",
|
|
31
|
+
End = "end",
|
|
32
|
+
Auto = "auto"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare enum BalloonBehavior {
|
|
36
|
+
Menu = "menu",
|
|
37
|
+
Tooltip = "tooltip",
|
|
38
|
+
Inert = "inert"
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare type BalloonOptions = {
|
|
42
|
+
trigger?: BalloonTrigger;
|
|
43
|
+
position?: BalloonPosition;
|
|
44
|
+
size?: BalloonSizing;
|
|
45
|
+
behavior?: BalloonBehavior;
|
|
46
|
+
verticalOffset?: number;
|
|
47
|
+
horizontalOffset?: number;
|
|
48
|
+
track?: boolean;
|
|
49
|
+
/** @deprecated Just use 'track' instead. */
|
|
50
|
+
'trackPosition'?: boolean;
|
|
51
|
+
/** @deprecated Use <pacem-shell-proxy> to wrap the balloon. */
|
|
52
|
+
'moveToRoot'?: boolean;
|
|
53
|
+
hoverDelay?: number;
|
|
54
|
+
hoverTimeout?: number;
|
|
55
|
+
align?: BalloonAlignment;
|
|
56
|
+
/** Optimizes the start- and end-alignments in case of tiny targets. */
|
|
57
|
+
autoAdjust?: boolean;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
declare const BalloonPopoutEventName = "popout";
|
|
61
|
+
|
|
62
|
+
declare const BalloonPopupEventName = "popup";
|
|
63
|
+
|
|
64
|
+
declare enum BalloonPosition {
|
|
65
|
+
Top = "top",
|
|
66
|
+
Left = "left",
|
|
67
|
+
Bottom = "bottom",
|
|
68
|
+
Right = "right",
|
|
69
|
+
Auto = "auto",
|
|
70
|
+
HorizontalAuto = "x",
|
|
71
|
+
VerticalAuto = "y"
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare enum BalloonSizing {
|
|
75
|
+
Auto = "auto",
|
|
76
|
+
Match = "match"
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare enum BalloonTrigger {
|
|
80
|
+
Hover = "hover",
|
|
81
|
+
Click = "click",
|
|
82
|
+
ContextMenu = "contextmenu",
|
|
83
|
+
Focus = "focus"
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare enum BinderAnchor {
|
|
87
|
+
Auto = "auto",
|
|
88
|
+
Left = "left",
|
|
89
|
+
Top = "top",
|
|
90
|
+
Right = "right",
|
|
91
|
+
Bottom = "bottom",
|
|
92
|
+
Center = "center"
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare enum BinderEnd {
|
|
96
|
+
Default = "default",
|
|
97
|
+
Arrow = "arrow",
|
|
98
|
+
FatArrow = "fatarrow",
|
|
99
|
+
None = "none"
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare class BinderInteractionEvent extends CustomUIEvent<null> {
|
|
103
|
+
constructor(orig: MouseEvent | KeyboardEvent | TouchEvent);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare const BinderInteractionEventName = "interact";
|
|
107
|
+
|
|
108
|
+
declare enum BinderTension {
|
|
109
|
+
Mass = "mass",
|
|
110
|
+
Path = "path"
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare type CalendarDataItem = {
|
|
114
|
+
continuing: {
|
|
115
|
+
start: boolean;
|
|
116
|
+
end: boolean;
|
|
117
|
+
};
|
|
118
|
+
allDay?: boolean;
|
|
119
|
+
day?: number;
|
|
120
|
+
hour?: number;
|
|
121
|
+
span: number;
|
|
122
|
+
caption: string;
|
|
123
|
+
offset?: {
|
|
124
|
+
start: string;
|
|
125
|
+
end: string;
|
|
126
|
+
};
|
|
127
|
+
event: PacemCalendarEventElement;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
declare type CalendarEventEventArgs = {
|
|
131
|
+
event: PacemCalendarEventElement;
|
|
132
|
+
element: HTMLElement;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
declare class CalendarEventSelectEvent extends CustomTypedEvent<CalendarEventEventArgs> {
|
|
136
|
+
constructor(args: CalendarEventEventArgs);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare class CalendarEventUnselectEvent extends CustomTypedEvent<CalendarEventEventArgs> {
|
|
140
|
+
constructor(args: CalendarEventEventArgs);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare enum CalendarZoom {
|
|
144
|
+
Month = "month",
|
|
145
|
+
Week = "week",
|
|
146
|
+
Day = "day"
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export declare namespace Components {
|
|
150
|
+
export {
|
|
151
|
+
UI
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare type DateRange = {
|
|
156
|
+
from?: Date;
|
|
157
|
+
to?: Date;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
declare class DateSelectEvent extends CustomTypedEvent<Date> {
|
|
161
|
+
constructor(date: Date);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare enum DialogButton {
|
|
165
|
+
Yes = "yes",
|
|
166
|
+
No = "no",
|
|
167
|
+
Cancel = "cancel",
|
|
168
|
+
Ok = "ok"
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare enum DialogButtons {
|
|
172
|
+
YesNo = "yesno",
|
|
173
|
+
YesNoCancel = "yesnocancel",
|
|
174
|
+
Ok = "ok",
|
|
175
|
+
OkCancel = "okcancel"
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
declare class DialogResultEvent extends CustomTypedEvent<DialogResultEventArgs> {
|
|
179
|
+
constructor(args: DialogResultEventArgs);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare type DialogResultEventArgs = {
|
|
183
|
+
button: DialogButton;
|
|
184
|
+
state?: any;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
declare const DialogResultEventName = "commit";
|
|
188
|
+
|
|
189
|
+
declare type ElementOrPoint = Element | Point;
|
|
190
|
+
|
|
191
|
+
declare const ElementOrPointPropertyConverter: PropertyConverter;
|
|
192
|
+
|
|
193
|
+
declare interface Lightbox {
|
|
194
|
+
show: boolean;
|
|
195
|
+
behavior: LightboxBehavior;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare enum LightboxBehavior {
|
|
199
|
+
ClickOutsideClose = "clickOutsideClose",
|
|
200
|
+
ExplicitClose = "explicitClose"
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare enum LoaderType {
|
|
204
|
+
Spinner = "spin",
|
|
205
|
+
Pacem = "pacem",
|
|
206
|
+
Custom = "custom"
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
declare class MarkdownService {
|
|
210
|
+
#private;
|
|
211
|
+
constructor();
|
|
212
|
+
private _escape;
|
|
213
|
+
toHtml(md: string): string;
|
|
214
|
+
tokenize(md: string): any[];
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
declare const MEDIAQUERY_2K = "(min-width: 2048px)";
|
|
218
|
+
|
|
219
|
+
declare const MEDIAQUERY_4K = "(min-width: 3840px)";
|
|
220
|
+
|
|
221
|
+
declare const MEDIAQUERY_HD = "(min-width: 1920px)";
|
|
222
|
+
|
|
223
|
+
declare const MEDIAQUERY_LANDSCAPE = "(orientation: landscape)";
|
|
224
|
+
|
|
225
|
+
declare const MEDIAQUERY_LG = "(min-width: 1200px)";
|
|
226
|
+
|
|
227
|
+
declare const MEDIAQUERY_MD = "(min-width: 992px)";
|
|
228
|
+
|
|
229
|
+
declare const MEDIAQUERY_PORTRAIT = "(orientation: portrait)";
|
|
230
|
+
|
|
231
|
+
declare const MEDIAQUERY_PREFERS_DARK = "(prefers-color-scheme: dark)";
|
|
232
|
+
|
|
233
|
+
declare const MEDIAQUERY_PREFERS_LIGHT = "(prefers-color-scheme: light)";
|
|
234
|
+
|
|
235
|
+
declare const MEDIAQUERY_SM = "(min-width: 768px)";
|
|
236
|
+
|
|
237
|
+
declare const MEDIAQUERY_XL = "(min-width: 1824px)";
|
|
238
|
+
|
|
239
|
+
declare const MEDIAQUERY_XS = "(max-width: 767px)";
|
|
240
|
+
|
|
241
|
+
declare abstract class PacemAdaptedIterativeElement<TItem> extends Components_2.PacemElement {
|
|
242
|
+
protected abstract get adapter(): PacemAdapterElement;
|
|
243
|
+
index: number;
|
|
244
|
+
datasource: TItem[];
|
|
245
|
+
protected isCloseTo(ndx: number, focusndx: number): boolean;
|
|
246
|
+
protected isPrevious(ndx: number, focusndx: number): boolean;
|
|
247
|
+
protected isNext(ndx: number, focusndx: number): boolean;
|
|
248
|
+
private _isNextCore;
|
|
249
|
+
private _isPreviousCore;
|
|
250
|
+
private _isCloseToCore;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare class PacemAdapterElement extends Components_2.PacemAdapter<Components_2.PacemIterativeElement<any>, any> {
|
|
254
|
+
private _repeater;
|
|
255
|
+
private _prevBtn;
|
|
256
|
+
private _nextBtn;
|
|
257
|
+
private _panel;
|
|
258
|
+
private _swiper;
|
|
259
|
+
private _liPause;
|
|
260
|
+
masterPropertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
261
|
+
viewActivatedCallback(): void;
|
|
262
|
+
disconnectedCallback(): void;
|
|
263
|
+
private _previousTabIndex;
|
|
264
|
+
initializeCallback(): void;
|
|
265
|
+
destroyCallback(): void;
|
|
266
|
+
itemPropertyChangedCallback(index: number, name: string, old: any, val: any, first?: boolean): void;
|
|
267
|
+
private _itemCreatedHandler;
|
|
268
|
+
private _pageMap;
|
|
269
|
+
private _fireAdapterPageRefreshCallback;
|
|
270
|
+
private _tickVersion;
|
|
271
|
+
private _handle;
|
|
272
|
+
pausable: boolean;
|
|
273
|
+
interval: number;
|
|
274
|
+
orientation: AdapterOrientation;
|
|
275
|
+
interactive: boolean;
|
|
276
|
+
/** Gets or sets whether swipe gesture is enabled for navigation (also depends on the 'interactive' flag being set to 'true') */
|
|
277
|
+
swipeEnabled: boolean;
|
|
278
|
+
/** Gets or sets whether, by selecting twice an item, you will de-select it and obtain an overall unselected state. */
|
|
279
|
+
deselectable: boolean;
|
|
280
|
+
loop: boolean;
|
|
281
|
+
labelCallback: (item: any, index: number) => string | Node;
|
|
282
|
+
private _index;
|
|
283
|
+
private _paused;
|
|
284
|
+
private _v;
|
|
285
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
286
|
+
private _syncViewWithItems;
|
|
287
|
+
private _toggle;
|
|
288
|
+
private _resetTimer;
|
|
289
|
+
private _next;
|
|
290
|
+
private _previous;
|
|
291
|
+
private _select;
|
|
292
|
+
private _itemRegisterHandler;
|
|
293
|
+
private _itemUnregisterHandler;
|
|
294
|
+
private _keydownHandler;
|
|
295
|
+
private _isDisabled;
|
|
296
|
+
private _isHidden;
|
|
297
|
+
private _disableOrHide;
|
|
298
|
+
private _labelCallback;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare class PacemAgendaElement extends PacemCalendarWithEventsBaseElement {
|
|
302
|
+
protected buildDataSource(items: PacemCalendarEventElement[]): CalendarDataItem[][];
|
|
303
|
+
private _clock;
|
|
304
|
+
time: Date;
|
|
305
|
+
private _allDayDatasource;
|
|
306
|
+
get allDayDatasource(): CalendarDataItem[];
|
|
307
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
declare class PacemAnchorElement extends Components_2.PacemElement implements Net.OAuthFetchable {
|
|
311
|
+
fetchCredentials: RequestCredentials;
|
|
312
|
+
fetchHeaders: {
|
|
313
|
+
[key: string]: string;
|
|
314
|
+
};
|
|
315
|
+
constructor();
|
|
316
|
+
href: string;
|
|
317
|
+
target: string;
|
|
318
|
+
download: string | boolean;
|
|
319
|
+
router: Components_2.PacemRouterElement;
|
|
320
|
+
private _fetching;
|
|
321
|
+
get fetching(): boolean;
|
|
322
|
+
connectedCallback(): void;
|
|
323
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
324
|
+
protected emit(evt: Event): void;
|
|
325
|
+
private _download;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare class PacemBalloonElement extends Components_2.PacemElement {
|
|
329
|
+
private _timer;
|
|
330
|
+
private _visible;
|
|
331
|
+
private _options;
|
|
332
|
+
private _originalNeighborhood;
|
|
333
|
+
private _container;
|
|
334
|
+
private _resize;
|
|
335
|
+
private _position;
|
|
336
|
+
target: ElementOrPoint;
|
|
337
|
+
options: BalloonOptions;
|
|
338
|
+
/** Gets whether the balloon is open and visible. */
|
|
339
|
+
get visible(): boolean;
|
|
340
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
341
|
+
viewActivatedCallback(): void;
|
|
342
|
+
disconnectedCallback(): void;
|
|
343
|
+
private _synchronizeOptions;
|
|
344
|
+
private _ensurePopup;
|
|
345
|
+
private _destroyPopup;
|
|
346
|
+
private _registerEvents;
|
|
347
|
+
private _unregisterEvents;
|
|
348
|
+
private _onLayoutChange;
|
|
349
|
+
private _adjust;
|
|
350
|
+
private _adjustWatchers;
|
|
351
|
+
/**
|
|
352
|
+
* Shows the balloon, if hidden.
|
|
353
|
+
*/
|
|
354
|
+
popup(delay?: number): void;
|
|
355
|
+
private _popoutDelegate;
|
|
356
|
+
/**
|
|
357
|
+
* Hides the balloon, if visible.
|
|
358
|
+
*/
|
|
359
|
+
popout(delay?: number): void;
|
|
360
|
+
/**
|
|
361
|
+
* Shows the balloon, if hidden. Otherwise hides it.
|
|
362
|
+
*/
|
|
363
|
+
toggle(delay?: number): void;
|
|
364
|
+
private _hoverDelegate;
|
|
365
|
+
private _outConditionalDelegate;
|
|
366
|
+
private _mousedownConditionalDelegate;
|
|
367
|
+
private _outDelegate;
|
|
368
|
+
private _toggleDelegate;
|
|
369
|
+
private _removeHandlers;
|
|
370
|
+
private _setHandlers;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare class PacemBinderElement extends Components_2.PacemElement {
|
|
374
|
+
from: PacemBinderTarget;
|
|
375
|
+
to: PacemBinderTarget;
|
|
376
|
+
fromAnchor: BinderAnchor;
|
|
377
|
+
toAnchor: BinderAnchor;
|
|
378
|
+
fromEnd: BinderEnd;
|
|
379
|
+
toEnd: BinderEnd;
|
|
380
|
+
tension: BinderTension;
|
|
381
|
+
color: string;
|
|
382
|
+
interactive: boolean;
|
|
383
|
+
connectedCallback(): void;
|
|
384
|
+
viewActivatedCallback(): void;
|
|
385
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
386
|
+
private _broadcastHandler;
|
|
387
|
+
disconnectedCallback(): void;
|
|
388
|
+
private _setPathVisibility;
|
|
389
|
+
private _ensurePath;
|
|
390
|
+
invalidateSize(): void;
|
|
391
|
+
private _path;
|
|
392
|
+
private _svg;
|
|
393
|
+
private _state;
|
|
394
|
+
private _computeAnchorPoints;
|
|
395
|
+
refresh(element: PacemBinderTarget, args?: Components_2.ResizeEventArgs): void;
|
|
396
|
+
private _draw;
|
|
397
|
+
private _getDefaultEndingPath;
|
|
398
|
+
private _getArrowEndingPath;
|
|
399
|
+
private _getFatArrowEndingPath;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare type PacemBinderTarget = ElementOrPoint;
|
|
403
|
+
|
|
404
|
+
declare class PacemBladeElement extends Components_2.PacemElement {
|
|
405
|
+
open: boolean;
|
|
406
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
407
|
+
private _toggle;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
declare class PacemBottomSheetElement extends Components_2.PacemElement {
|
|
411
|
+
private _swiper;
|
|
412
|
+
private _resizer;
|
|
413
|
+
private _handleResizer;
|
|
414
|
+
private _sheet;
|
|
415
|
+
open: boolean;
|
|
416
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
417
|
+
private _toggleSwiper;
|
|
418
|
+
/** @internal */
|
|
419
|
+
_setHandle(handle: PacemBottomSheetHandleElement | null): void;
|
|
420
|
+
private _assignLogger;
|
|
421
|
+
private _resizeHandler;
|
|
422
|
+
private _rebuildSwiperSnaps;
|
|
423
|
+
viewActivatedCallback(): void;
|
|
424
|
+
disconnectedCallback(): void;
|
|
425
|
+
private _panHandler;
|
|
426
|
+
private _swipeHandler;
|
|
427
|
+
/**
|
|
428
|
+
* Snap (other than 0 := current position) given the current state.
|
|
429
|
+
* Anchor point for sheet is the top of the page, so snap is computed accordingly.
|
|
430
|
+
* @param ope
|
|
431
|
+
* @returns
|
|
432
|
+
*/
|
|
433
|
+
private _getSnap;
|
|
434
|
+
/**
|
|
435
|
+
* Css transform to be applied to the sheet in order to have UI consistent with open state.
|
|
436
|
+
* Anchor point for sheet is the bottom of the page, so CSS transform is applied accordingly.
|
|
437
|
+
* @param open
|
|
438
|
+
* @returns
|
|
439
|
+
*/
|
|
440
|
+
private _getCssTransform;
|
|
441
|
+
private _setPosition;
|
|
442
|
+
private _toggle;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
declare class PacemBottomSheetHandleElement extends Components_2.PacemElement {
|
|
446
|
+
#private;
|
|
447
|
+
_icon: PacemIconElement;
|
|
448
|
+
iconGlyph: string;
|
|
449
|
+
viewActivatedCallback(): void;
|
|
450
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
451
|
+
disconnectedCallback(): void;
|
|
452
|
+
private _bindToBottomSheet;
|
|
453
|
+
private _clickHandler;
|
|
454
|
+
private _toggleHandle;
|
|
455
|
+
private _setIcon;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
declare class PacemButtonElement extends Components_2.PacemIterableElement {
|
|
459
|
+
constructor();
|
|
460
|
+
iconGlyph: string;
|
|
461
|
+
iconUrl: string;
|
|
462
|
+
commandName: string;
|
|
463
|
+
commandArgument: any;
|
|
464
|
+
confirmationMessage: string;
|
|
465
|
+
confirmationDialog: PacemDialogBase;
|
|
466
|
+
connectedCallback(): void;
|
|
467
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
468
|
+
protected emit(evt: Event): void;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare class PacemButtonsetElement extends Components_2.PacemIterativeElement<PacemButtonElement> {
|
|
472
|
+
connectedCallback(): void;
|
|
473
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
474
|
+
validate(item: any): item is PacemButtonElement;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare abstract class PacemCalendarBaseElement extends Components_2.PacemItemsContainerElement<PacemCalendarEventElement> {
|
|
478
|
+
validate(item: PacemCalendarEventElement): boolean;
|
|
479
|
+
viewDate: Date;
|
|
480
|
+
now: Date;
|
|
481
|
+
zoom: CalendarZoom;
|
|
482
|
+
weekStart: 'mon' | 'sun' | 'm' | 's' | 'monday' | 'sunday';
|
|
483
|
+
week: Date[];
|
|
484
|
+
month: Date[][];
|
|
485
|
+
disabledRanges: DateRange[];
|
|
486
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
487
|
+
protected oneventselect(el: HTMLElement, evt: PacemCalendarEventElement): void;
|
|
488
|
+
protected oneventunselect(el: HTMLElement, evt: PacemCalendarEventElement): void;
|
|
489
|
+
protected getHeaderLabel(d: Date, f: CalendarZoom): string;
|
|
490
|
+
protected getDayLabel(d: Date): string;
|
|
491
|
+
protected getHourLabel(d: Date): string;
|
|
492
|
+
protected getTimeLabel(d: Date): string;
|
|
493
|
+
protected isNow(d: Date, now: Date): boolean;
|
|
494
|
+
protected isToday(d: Date, now: Date): boolean;
|
|
495
|
+
protected isViewDay(d: Date, vd?: Date): boolean;
|
|
496
|
+
protected isDate(expected: Date, d: Date): boolean;
|
|
497
|
+
protected isViewWeek(d: Date): Date;
|
|
498
|
+
protected isViewMonth(d: Date): boolean;
|
|
499
|
+
protected isTimeSlotDisabled(ranges: DateRange[], d: Date, h?: number): boolean;
|
|
500
|
+
private _getWeekStart;
|
|
501
|
+
private _getDatasource;
|
|
502
|
+
private _synchronizeWeek;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
declare class PacemCalendarDayOfWeekRuleElement extends PacemCalendarRuleBaseElement {
|
|
506
|
+
days: string[];
|
|
507
|
+
viewActivatedCallback(): void;
|
|
508
|
+
private _daysOfWeek;
|
|
509
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
510
|
+
private _calendarChangeHandler;
|
|
511
|
+
protected computeDisabledRanges(): DateRange[];
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
declare class PacemCalendarElement extends PacemCalendarWithEventsBaseElement {
|
|
515
|
+
protected buildDataSource(items: PacemCalendarEventElement[]): CalendarDataItem[][];
|
|
516
|
+
date: Date;
|
|
517
|
+
/** Gets or sets the format for the first day of each month. */
|
|
518
|
+
dayLabelFormatter: (d: Date) => string;
|
|
519
|
+
private _formatVersion;
|
|
520
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
521
|
+
private _setDate;
|
|
522
|
+
protected getDayLabel(d: Date, _?: number): string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare class PacemCalendarEventElement extends Components_2.PacemItemElement {
|
|
526
|
+
start: Date;
|
|
527
|
+
end: Date;
|
|
528
|
+
caption: string;
|
|
529
|
+
place: string;
|
|
530
|
+
allDay: boolean;
|
|
531
|
+
private _handle;
|
|
532
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare abstract class PacemCalendarRuleBaseElement extends HTMLElement {
|
|
536
|
+
viewActivatedCallback(): void;
|
|
537
|
+
disconnectedCallback(): void;
|
|
538
|
+
private _target;
|
|
539
|
+
protected get target(): PacemCalendarBaseElement;
|
|
540
|
+
private _disabledRanges;
|
|
541
|
+
protected refreshDisabledRanges(): void;
|
|
542
|
+
protected abstract computeDisabledRanges(): DateRange[];
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
declare abstract class PacemCalendarWithEventsBaseElement extends PacemCalendarBaseElement {
|
|
546
|
+
private _datasource;
|
|
547
|
+
private _handle;
|
|
548
|
+
get datasource(): CalendarDataItem[][];
|
|
549
|
+
private _getSortedItems;
|
|
550
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
551
|
+
protected abstract buildDataSource(items: PacemCalendarEventElement[]): CalendarDataItem[][];
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
declare class PacemClockElement extends Components_2.PacemElement {
|
|
555
|
+
now: Date;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
declare class PacemCollapseElement extends PacemEventTarget {
|
|
559
|
+
#private;
|
|
560
|
+
collapse: boolean;
|
|
561
|
+
horizontal: boolean;
|
|
562
|
+
private _resizer;
|
|
563
|
+
private _container;
|
|
564
|
+
private _resizeHandler;
|
|
565
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
566
|
+
viewActivatedCallback(): void;
|
|
567
|
+
private _toggle;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
declare abstract class PacemDialogBase extends Components_2.PacemElement {
|
|
571
|
+
#private;
|
|
572
|
+
/** Gets the current state/datacontext of the dialog.
|
|
573
|
+
* It is automatically destroyed when the dialog closes.
|
|
574
|
+
* (It has not to be set declaratively.) */
|
|
575
|
+
state: any;
|
|
576
|
+
protected abstract get lightbox(): Lightbox;
|
|
577
|
+
open(state?: any): Promise<DialogResultEventArgs>;
|
|
578
|
+
protected commit(btn: DialogButton, evt: Event): void;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
declare class PacemDialogElement extends PacemDialogBase {
|
|
582
|
+
buttons: DialogButtons;
|
|
583
|
+
okCaption: string;
|
|
584
|
+
yesCaption: string;
|
|
585
|
+
noCaption: string;
|
|
586
|
+
cancelCaption: string;
|
|
587
|
+
private _buttons;
|
|
588
|
+
protected lightbox: PacemLightboxElement;
|
|
589
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
590
|
+
open(state?: any): Promise<DialogResultEventArgs>;
|
|
591
|
+
viewActivatedCallback(): void;
|
|
592
|
+
/** Gets the 'ok', 'yes', 'no' and 'cancel' dialog buttons. */
|
|
593
|
+
get dialogButtons(): {
|
|
594
|
+
ok: Element;
|
|
595
|
+
yes: Element;
|
|
596
|
+
no: Element;
|
|
597
|
+
cancel: Element;
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
declare class PacemDividerElement extends Components_2.PacemElement {
|
|
602
|
+
constructor();
|
|
603
|
+
orientation: 'vertical' | 'horizontal';
|
|
604
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
605
|
+
viewActivatedCallback(): void;
|
|
606
|
+
private _syncOrientation;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
declare class PacemIconElement extends Components_2.PacemElement {
|
|
610
|
+
constructor();
|
|
611
|
+
icon: string;
|
|
612
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
613
|
+
viewActivatedCallback(): void;
|
|
614
|
+
private _setIcon;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
declare class PacemImageElement extends Components_2.PacemElement {
|
|
618
|
+
#private;
|
|
619
|
+
constructor();
|
|
620
|
+
adapt: 'cover' | 'contain' | 'auto';
|
|
621
|
+
src: string;
|
|
622
|
+
size: {
|
|
623
|
+
width: string;
|
|
624
|
+
height: string;
|
|
625
|
+
weight?: number;
|
|
626
|
+
};
|
|
627
|
+
loading: boolean;
|
|
628
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
629
|
+
viewActivatedCallback(): void;
|
|
630
|
+
private _setLayout;
|
|
631
|
+
private _setSource;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
declare class PacemInfiniteScrollerElement extends PacemEventTarget {
|
|
635
|
+
constructor();
|
|
636
|
+
container: string | HTMLElement;
|
|
637
|
+
threshold: number;
|
|
638
|
+
viewActivatedCallback(): void;
|
|
639
|
+
disconnectedCallback(): void;
|
|
640
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
641
|
+
setInfiniteScrollContainer(v?: string | HTMLElement): void;
|
|
642
|
+
private _scrollDelegate;
|
|
643
|
+
private _enabled;
|
|
644
|
+
private _viewportHeight;
|
|
645
|
+
private _innerHeight;
|
|
646
|
+
private _isDocument;
|
|
647
|
+
private _container;
|
|
648
|
+
private _viewport;
|
|
649
|
+
private _scroller;
|
|
650
|
+
private _bottomGap;
|
|
651
|
+
private _emitFetchMore;
|
|
652
|
+
private _doScroll;
|
|
653
|
+
private _computeHeight;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare class PacemLightboxElement extends Components_2.PacemElement implements Lightbox {
|
|
657
|
+
#private;
|
|
658
|
+
private _keyupHandler;
|
|
659
|
+
private _wrapperMousedownHandler;
|
|
660
|
+
show: boolean;
|
|
661
|
+
modal: boolean;
|
|
662
|
+
behavior: LightboxBehavior;
|
|
663
|
+
private _wrapperElement;
|
|
664
|
+
private _container;
|
|
665
|
+
private _slot;
|
|
666
|
+
private _closeWrapper;
|
|
667
|
+
private _slotchangeHandler;
|
|
668
|
+
private _resetLayout;
|
|
669
|
+
private _toggleCloseVisibility;
|
|
670
|
+
viewActivatedCallback(): void;
|
|
671
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
672
|
+
disconnectedCallback(): void;
|
|
673
|
+
private _disposeButton;
|
|
674
|
+
private _disposeSlot;
|
|
675
|
+
private _closeHandler;
|
|
676
|
+
private _close;
|
|
677
|
+
private _ensureButton;
|
|
678
|
+
private _lookForAButton;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
declare class PacemLoaderElement extends Components_2.PacemElement {
|
|
682
|
+
private _spinner;
|
|
683
|
+
private _container;
|
|
684
|
+
private _svgSpinner;
|
|
685
|
+
active: boolean;
|
|
686
|
+
type: LoaderType;
|
|
687
|
+
viewActivatedCallback(): void;
|
|
688
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
declare class PacemMarkdownElement extends Components_2.PacemElement {
|
|
692
|
+
private _md;
|
|
693
|
+
constructor(_md?: MarkdownService);
|
|
694
|
+
value: string;
|
|
695
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
696
|
+
tokens(md?: string): any[];
|
|
697
|
+
html(md?: string): string;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
declare class PacemMarqueeElement extends Components_2.PacemElement {
|
|
701
|
+
connectedCallback(): void;
|
|
702
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
703
|
+
viewActivatedCallback(): void;
|
|
704
|
+
disconnectedCallback(): void;
|
|
705
|
+
private _overlapResize;
|
|
706
|
+
private _contentResize;
|
|
707
|
+
private _css;
|
|
708
|
+
private _state;
|
|
709
|
+
private _marquee;
|
|
710
|
+
private _overlap;
|
|
711
|
+
private _resizer;
|
|
712
|
+
/** seconds per 1920px */
|
|
713
|
+
speed: number;
|
|
714
|
+
private _adjust;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
declare class PacemMediaQueryElement extends PacemEventTarget {
|
|
718
|
+
#private;
|
|
719
|
+
query: string;
|
|
720
|
+
/** @readonly */
|
|
721
|
+
isMatch: boolean;
|
|
722
|
+
viewActivatedCallback(): void;
|
|
723
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
724
|
+
disconnectedCallback(): void;
|
|
725
|
+
private _changeHandler;
|
|
726
|
+
private _broadcastChange;
|
|
727
|
+
private _init;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
declare class PacemMenuCursorElement extends Components_2.PacemElement {
|
|
731
|
+
private _menu;
|
|
732
|
+
viewActivatedCallback(): void;
|
|
733
|
+
connectedCallback(): void;
|
|
734
|
+
disconnectedCallback(): void;
|
|
735
|
+
private _onPathChange;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
declare class PacemMenuElement extends Components_2.PacemElement {
|
|
739
|
+
open: boolean;
|
|
740
|
+
hideHamburgerButton: boolean;
|
|
741
|
+
hideBackButton: boolean;
|
|
742
|
+
outset: boolean;
|
|
743
|
+
synchronizeShell: boolean;
|
|
744
|
+
private _container;
|
|
745
|
+
private _base;
|
|
746
|
+
private _stopPropagationHandlerConditional;
|
|
747
|
+
viewActivatedCallback(): void;
|
|
748
|
+
disconnectedCallback(): void;
|
|
749
|
+
connectedCallback(): void;
|
|
750
|
+
private _toggle;
|
|
751
|
+
private _shell;
|
|
752
|
+
private _sync;
|
|
753
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare class PacemPagerElement extends Components_2.PacemElement {
|
|
757
|
+
private _repeater;
|
|
758
|
+
index: number;
|
|
759
|
+
total: number;
|
|
760
|
+
pages: number;
|
|
761
|
+
size: number;
|
|
762
|
+
mode: 'standard' | 'numeric-only';
|
|
763
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
764
|
+
private _databind;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
declare class PacemPictureElement extends Components_2.PacemItemsContainerElement<PacemPictureSourceElement> {
|
|
768
|
+
constructor();
|
|
769
|
+
validate(item: any): boolean;
|
|
770
|
+
private _picture;
|
|
771
|
+
private _img;
|
|
772
|
+
src: string;
|
|
773
|
+
currentSrc: string;
|
|
774
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
775
|
+
viewActivatedCallback(): void;
|
|
776
|
+
disconnectedCallback(): void;
|
|
777
|
+
private _updateCurrentSrcHandler;
|
|
778
|
+
refreshSources(): void;
|
|
779
|
+
private _setSources;
|
|
780
|
+
private _setSource;
|
|
781
|
+
private _setAltText;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
declare class PacemPictureSourceElement extends Components_2.PacemItemElement {
|
|
785
|
+
srcset: string;
|
|
786
|
+
media: string;
|
|
787
|
+
type: string;
|
|
788
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
declare class PacemProgressbarElement extends Components_2.PacemElement {
|
|
792
|
+
constructor();
|
|
793
|
+
private _bar;
|
|
794
|
+
private _glow;
|
|
795
|
+
private _caption;
|
|
796
|
+
caption: string;
|
|
797
|
+
percentage: number;
|
|
798
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
declare class PacemScheduleElement extends PacemCalendarBaseElement {
|
|
802
|
+
private _calendar;
|
|
803
|
+
private _agenda;
|
|
804
|
+
viewActivatedCallback(): void;
|
|
805
|
+
disconnectedCallback(): void;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
declare class PacemSidebarElement extends Components_2.PacemElement {
|
|
809
|
+
#private;
|
|
810
|
+
open: boolean;
|
|
811
|
+
synchronizeShell: boolean;
|
|
812
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
813
|
+
disconnectedCallback(): void;
|
|
814
|
+
private _sync;
|
|
815
|
+
connectedCallback(): void;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare class PacemSlideElement extends Components_2.PacemIterableElement {
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare class PacemSlideshowElement extends Components_2.PacemIterativeElement<PacemSlideElement> {
|
|
822
|
+
validate(item: any): item is PacemSlideElement;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
declare class PacemStickyHeaderElement extends PacemEventTarget {
|
|
826
|
+
#private;
|
|
827
|
+
threshold: number;
|
|
828
|
+
offset: Components_2.ScrollEventArgs;
|
|
829
|
+
visible: boolean;
|
|
830
|
+
visibility: StickyHeaderVisibility;
|
|
831
|
+
private _scrollHandler;
|
|
832
|
+
private _ensureScrollAwareElement;
|
|
833
|
+
private _manageOffsetChange;
|
|
834
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
835
|
+
connectedCallback(): void;
|
|
836
|
+
disconnectedCallback(): void;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare class PacemTabElement extends Components_2.PacemIterableElement {
|
|
840
|
+
#private;
|
|
841
|
+
constructor();
|
|
842
|
+
_slotLabel: HTMLSlotElement;
|
|
843
|
+
viewActivatedCallback(): void;
|
|
844
|
+
disconnectedCallback(): void;
|
|
845
|
+
private _slotChangeHandler;
|
|
846
|
+
get content(): NodeList;
|
|
847
|
+
label: string | Node;
|
|
848
|
+
key: string;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
declare class PacemTabsElement extends Components_2.PacemIterativeElement<PacemTabElement> {
|
|
852
|
+
private _tweener;
|
|
853
|
+
constructor(_tweener?: Animations.TweenService);
|
|
854
|
+
private _defaultTabAdapter;
|
|
855
|
+
private _tabs;
|
|
856
|
+
private _container;
|
|
857
|
+
private _isUsingDefaultTabAdapter;
|
|
858
|
+
/** Gets or sets the orientation of the default tabs adapter. */
|
|
859
|
+
orientation: AdapterOrientation;
|
|
860
|
+
private _labelCallback;
|
|
861
|
+
private _syncOrientation;
|
|
862
|
+
private _syncVisibility;
|
|
863
|
+
viewActivatedCallback(): void;
|
|
864
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
865
|
+
validate(item: any): item is PacemTabElement;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
declare class PacemTickerElement extends Components_2.PacemSafeContentElement {
|
|
869
|
+
#private;
|
|
870
|
+
private _slot;
|
|
871
|
+
private _outgoing;
|
|
872
|
+
private _incoming;
|
|
873
|
+
private _tickContent;
|
|
874
|
+
private _buildMarkupNode;
|
|
875
|
+
private _contentChangeHandler;
|
|
876
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
877
|
+
viewActivatedCallback(): void;
|
|
878
|
+
disconnectedCallback(): void;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
declare class PacemToastElement extends Components_2.PacemElement {
|
|
882
|
+
autohide: boolean;
|
|
883
|
+
timeout: number;
|
|
884
|
+
show: boolean;
|
|
885
|
+
connectedCallback(): void;
|
|
886
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
887
|
+
disconnectedCallback(): void;
|
|
888
|
+
private _handle;
|
|
889
|
+
private _doHide;
|
|
890
|
+
private _show;
|
|
891
|
+
popup(): void;
|
|
892
|
+
/**
|
|
893
|
+
* Opinionated shortcut/utility for toast spinning.
|
|
894
|
+
* @param toaster Toast container
|
|
895
|
+
* @param level Message criticity level
|
|
896
|
+
* @param message The message
|
|
897
|
+
* @param options Further options object
|
|
898
|
+
*/
|
|
899
|
+
static toast(toaster: HTMLElement, level: 'info' | 'success' | 'warning' | 'danger' | 'error', message: string | HTMLElement, options?: {
|
|
900
|
+
autohide?: boolean;
|
|
901
|
+
timeout?: number;
|
|
902
|
+
cssClass?: string | string[];
|
|
903
|
+
}): Promise<void>;
|
|
904
|
+
static toast2(toaster: HTMLElement, level: 'info' | 'success' | 'warning' | 'danger' | 'error', message: string | HTMLElement, options?: {
|
|
905
|
+
autohide?: boolean;
|
|
906
|
+
timeout?: number;
|
|
907
|
+
cssClass?: string | string[];
|
|
908
|
+
}): Promise<void>;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
declare class PacemTocElement extends Components_2.PacemElement {
|
|
912
|
+
private _tweener;
|
|
913
|
+
constructor(_tweener?: Animations.TweenService);
|
|
914
|
+
selector: string;
|
|
915
|
+
offset: number;
|
|
916
|
+
target: HTMLElement;
|
|
917
|
+
router: Components_2.PacemRouterElement;
|
|
918
|
+
/** @readonly */
|
|
919
|
+
hasContent: boolean;
|
|
920
|
+
private _repeater;
|
|
921
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
922
|
+
connectedCallback(): void;
|
|
923
|
+
disconnectedCallback(): void;
|
|
924
|
+
viewActivatedCallback(): void;
|
|
925
|
+
private _onScroll;
|
|
926
|
+
private _observer;
|
|
927
|
+
private _items;
|
|
928
|
+
private _observe;
|
|
929
|
+
private _scrollToSelf;
|
|
930
|
+
private _getTop;
|
|
931
|
+
private _scrollTo;
|
|
932
|
+
private _hashChange;
|
|
933
|
+
private _startScrollTo;
|
|
934
|
+
private _update;
|
|
935
|
+
/** DOM might change while interacting with the page, this method allows extemporary resets. */
|
|
936
|
+
refresh(): void;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
declare class PacemTunerElement extends Components_2.PacemElement {
|
|
940
|
+
#private;
|
|
941
|
+
constructor();
|
|
942
|
+
private _canvas;
|
|
943
|
+
private _rail;
|
|
944
|
+
private _counterRail;
|
|
945
|
+
private _tween;
|
|
946
|
+
private _rotate;
|
|
947
|
+
viewActivatedCallback(): void;
|
|
948
|
+
disconnectedCallback(): void;
|
|
949
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
950
|
+
value: number;
|
|
951
|
+
min: number;
|
|
952
|
+
max: number;
|
|
953
|
+
interactive: boolean;
|
|
954
|
+
round: number;
|
|
955
|
+
private _toggleRotate;
|
|
956
|
+
private _angleToValue;
|
|
957
|
+
private _valueToAngle;
|
|
958
|
+
private _rotateStartHandler;
|
|
959
|
+
private _rotateEndHandler;
|
|
960
|
+
private _rotateHandler;
|
|
961
|
+
private _setValue;
|
|
962
|
+
/**
|
|
963
|
+
* Returns the angle between the vertical line through 'center' and the line through 'center' and 'currentPosition'.
|
|
964
|
+
* @param evt
|
|
965
|
+
* @returns
|
|
966
|
+
*/
|
|
967
|
+
private _getAngle;
|
|
968
|
+
private _draw;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
declare class PacemTweetEmbedElement extends Components_2.PacemElement {
|
|
972
|
+
tweetid: string;
|
|
973
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
974
|
+
private _scriptsLoaded;
|
|
975
|
+
viewActivatedCallback(): void;
|
|
976
|
+
private _render;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
declare class PacemVibrateElement extends PacemEventTarget {
|
|
980
|
+
pattern: number[];
|
|
981
|
+
vibrate(): void;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
declare class PacemViewElement extends PacemEventTarget {
|
|
985
|
+
#private;
|
|
986
|
+
url: string | HTMLTemplateElement | Components_2.PacemTemplateProxyElement;
|
|
987
|
+
fetching: boolean;
|
|
988
|
+
progress: number;
|
|
989
|
+
renderErrors: boolean;
|
|
990
|
+
followRedirects: boolean;
|
|
991
|
+
/** use it to ensure animation */
|
|
992
|
+
debounce: number;
|
|
993
|
+
private _fetchHandle;
|
|
994
|
+
private _renderHandle;
|
|
995
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
996
|
+
viewActivatedCallback(): void;
|
|
997
|
+
private _isReference;
|
|
998
|
+
private _templateChangeHandler;
|
|
999
|
+
private _dispose;
|
|
1000
|
+
private _manage;
|
|
1001
|
+
private _manageRef;
|
|
1002
|
+
private _setTmpl;
|
|
1003
|
+
private _manageUrl;
|
|
1004
|
+
private _manageResult;
|
|
1005
|
+
private _dispatchRender;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
declare class PacemWindowAreaElement extends Components_2.PacemIterativeElement<PacemWindowElement> {
|
|
1009
|
+
validate(item: PacemWindowElement): boolean;
|
|
1010
|
+
private _behaviors;
|
|
1011
|
+
private _dragDrop;
|
|
1012
|
+
private _rescale;
|
|
1013
|
+
private _zIndex;
|
|
1014
|
+
private _startHandler;
|
|
1015
|
+
private _blurHandler;
|
|
1016
|
+
private _focusHandler;
|
|
1017
|
+
private _incrementZIndex;
|
|
1018
|
+
connectedCallback(): void;
|
|
1019
|
+
viewActivatedCallback(): void;
|
|
1020
|
+
disconnectedCallback(): void;
|
|
1021
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1022
|
+
register(item: PacemWindowElement): boolean;
|
|
1023
|
+
unregister(item: PacemWindowElement): boolean;
|
|
1024
|
+
private _itemPropertyChangeHandler;
|
|
1025
|
+
private _adapterPagerCallback;
|
|
1026
|
+
private _syncVisibility;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
declare class PacemWindowElement extends Components_2.PacemIterableElement {
|
|
1030
|
+
caption: string;
|
|
1031
|
+
minimized: boolean;
|
|
1032
|
+
floating: boolean;
|
|
1033
|
+
propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
|
|
1034
|
+
viewActivatedCallback(): void;
|
|
1035
|
+
private _syncLayout;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
declare enum StickyHeaderVisibility {
|
|
1039
|
+
Persistent = "persistent",
|
|
1040
|
+
QuickReturn = "quickreturn"
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
declare class TimeSelectEvent extends CustomTypedEvent<Date> {
|
|
1044
|
+
constructor(date: Date);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export declare namespace UI {
|
|
1048
|
+
export {
|
|
1049
|
+
AdapterOrientation,
|
|
1050
|
+
AdapterPageButtonRefreshEventArgs,
|
|
1051
|
+
AdapterPageButtonRefreshEventName,
|
|
1052
|
+
AdapterPageButtonRefreshEvent,
|
|
1053
|
+
PacemAdapterElement,
|
|
1054
|
+
PacemAnchorElement,
|
|
1055
|
+
BalloonBehavior,
|
|
1056
|
+
BalloonTrigger,
|
|
1057
|
+
BalloonAlignment,
|
|
1058
|
+
BalloonPosition,
|
|
1059
|
+
BalloonSizing,
|
|
1060
|
+
BalloonPopupEventName,
|
|
1061
|
+
BalloonPopoutEventName,
|
|
1062
|
+
BalloonOptions,
|
|
1063
|
+
PacemBalloonElement,
|
|
1064
|
+
BinderAnchor,
|
|
1065
|
+
BinderEnd,
|
|
1066
|
+
BinderTension,
|
|
1067
|
+
BinderInteractionEventName,
|
|
1068
|
+
BinderInteractionEvent,
|
|
1069
|
+
PacemBinderElement,
|
|
1070
|
+
PacemBladeElement,
|
|
1071
|
+
PacemBottomSheetHandleElement,
|
|
1072
|
+
PacemBottomSheetElement,
|
|
1073
|
+
PacemButtonElement,
|
|
1074
|
+
PacemButtonsetElement,
|
|
1075
|
+
CalendarZoom,
|
|
1076
|
+
ViewDateChangeEvent,
|
|
1077
|
+
DateSelectEvent,
|
|
1078
|
+
TimeSelectEvent,
|
|
1079
|
+
DateRange,
|
|
1080
|
+
PacemCalendarEventElement,
|
|
1081
|
+
CalendarEventSelectEvent,
|
|
1082
|
+
CalendarEventUnselectEvent,
|
|
1083
|
+
PacemCalendarBaseElement,
|
|
1084
|
+
PacemCalendarWithEventsBaseElement,
|
|
1085
|
+
PacemAgendaElement,
|
|
1086
|
+
PacemCalendarElement,
|
|
1087
|
+
PacemClockElement,
|
|
1088
|
+
PacemScheduleElement,
|
|
1089
|
+
PacemCalendarRuleBaseElement,
|
|
1090
|
+
PacemCalendarDayOfWeekRuleElement,
|
|
1091
|
+
PacemCollapseElement,
|
|
1092
|
+
DialogButtons,
|
|
1093
|
+
DialogButton,
|
|
1094
|
+
DialogResultEventArgs,
|
|
1095
|
+
DialogResultEventName,
|
|
1096
|
+
DialogResultEvent,
|
|
1097
|
+
PacemDialogBase,
|
|
1098
|
+
PacemDialogElement,
|
|
1099
|
+
PacemDividerElement,
|
|
1100
|
+
PacemIconElement,
|
|
1101
|
+
PacemImageElement,
|
|
1102
|
+
PacemInfiniteScrollerElement,
|
|
1103
|
+
PacemAdaptedIterativeElement,
|
|
1104
|
+
LightboxBehavior,
|
|
1105
|
+
Lightbox,
|
|
1106
|
+
PacemLightboxElement,
|
|
1107
|
+
LoaderType,
|
|
1108
|
+
PacemLoaderElement,
|
|
1109
|
+
PacemMarkdownElement,
|
|
1110
|
+
MarkdownService,
|
|
1111
|
+
PacemMarqueeElement,
|
|
1112
|
+
MEDIAQUERY_XS,
|
|
1113
|
+
MEDIAQUERY_SM,
|
|
1114
|
+
MEDIAQUERY_MD,
|
|
1115
|
+
MEDIAQUERY_LG,
|
|
1116
|
+
MEDIAQUERY_XL,
|
|
1117
|
+
MEDIAQUERY_HD,
|
|
1118
|
+
MEDIAQUERY_2K,
|
|
1119
|
+
MEDIAQUERY_4K,
|
|
1120
|
+
MEDIAQUERY_PORTRAIT,
|
|
1121
|
+
MEDIAQUERY_LANDSCAPE,
|
|
1122
|
+
MEDIAQUERY_PREFERS_LIGHT,
|
|
1123
|
+
MEDIAQUERY_PREFERS_DARK,
|
|
1124
|
+
PacemMediaQueryElement,
|
|
1125
|
+
PacemMenuElement,
|
|
1126
|
+
PacemMenuCursorElement,
|
|
1127
|
+
PacemPagerElement,
|
|
1128
|
+
PacemPictureSourceElement,
|
|
1129
|
+
PacemPictureElement,
|
|
1130
|
+
PacemProgressbarElement,
|
|
1131
|
+
PacemSidebarElement,
|
|
1132
|
+
PacemSlideElement,
|
|
1133
|
+
PacemSlideshowElement,
|
|
1134
|
+
PacemTweetEmbedElement,
|
|
1135
|
+
StickyHeaderVisibility,
|
|
1136
|
+
PacemStickyHeaderElement,
|
|
1137
|
+
PacemTabElement,
|
|
1138
|
+
PacemTabsElement,
|
|
1139
|
+
PacemTickerElement,
|
|
1140
|
+
PacemToastElement,
|
|
1141
|
+
PacemTocElement,
|
|
1142
|
+
PacemTunerElement,
|
|
1143
|
+
ElementOrPoint,
|
|
1144
|
+
ElementOrPointPropertyConverter,
|
|
1145
|
+
PacemVibrateElement,
|
|
1146
|
+
PacemViewElement,
|
|
1147
|
+
PacemWindowAreaElement,
|
|
1148
|
+
PacemWindowElement
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
declare class ViewDateChangeEvent extends CustomTypedEvent<Date> {
|
|
1153
|
+
constructor(date: Date);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
declare global {
|
|
1159
|
+
namespace Pacem {
|
|
1160
|
+
export {
|
|
1161
|
+
Components,
|
|
1162
|
+
UI
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
}
|