OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
mobile
/
main
/
ts
/
ui
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:45:48 AM
rwxr-xr-x
📄
AndroidRealm.ts
2.43 KB
02/20/2020 06:32:39 AM
rw-r--r--
📄
Buttons.ts
2.4 KB
02/20/2020 06:32:40 AM
rw-r--r--
📄
ColorSlider.ts
3.21 KB
02/20/2020 06:32:40 AM
rw-r--r--
📄
CommonRealm.ts
1.49 KB
02/20/2020 06:32:41 AM
rw-r--r--
📄
Dropup.ts
2.38 KB
02/20/2020 06:32:41 AM
rw-r--r--
📄
FontSizeSlider.ts
1.34 KB
02/20/2020 06:32:42 AM
rw-r--r--
📄
HeadingSlider.ts
1.63 KB
02/20/2020 06:32:42 AM
rw-r--r--
📄
ImagePicker.ts
2.13 KB
02/20/2020 06:32:43 AM
rw-r--r--
📄
Inputs.ts
2.86 KB
02/20/2020 06:32:43 AM
rw-r--r--
📄
IosRealm.ts
2.65 KB
02/20/2020 06:32:44 AM
rw-r--r--
📄
LinkButton.ts
2.33 KB
02/20/2020 06:32:45 AM
rw-r--r--
📄
OuterContainer.ts
953 bytes
02/20/2020 06:32:45 AM
rw-r--r--
📄
SerialisedDialog.ts
8.2 KB
02/20/2020 06:32:46 AM
rw-r--r--
📄
SizeSlider.ts
2.32 KB
02/20/2020 06:32:46 AM
rw-r--r--
📄
StylesMenu.ts
6.51 KB
02/20/2020 06:32:47 AM
rw-r--r--
📄
ToolbarWidgets.ts
645 bytes
02/20/2020 06:32:47 AM
rw-r--r--
Editing: Dropup.ts
Close
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Behaviour, Container, GuiFactory, Replacing, Sliding, AlloyComponent } from '@ephox/alloy'; import { Fun } from '@ephox/katamari'; import Receivers from '../channels/Receivers'; import Styles from '../style/Styles'; import { SugarElement } from 'tinymce/themes/mobile/alien/TypeDefinitions'; import { window } from '@ephox/dom-globals'; export interface DropUp { appear: (menu: any, update: any, component: any) => void; disappear: (onReadyToShrink: any) => void; component: () => AlloyComponent; element: () => SugarElement; } const build = function (refresh, scrollIntoView): DropUp { const dropup = GuiFactory.build( Container.sketch({ dom: { tag: 'div', classes: [ Styles.resolve('dropup') ] }, components: [ ], containerBehaviours: Behaviour.derive([ Replacing.config({ }), Sliding.config({ closedClass: Styles.resolve('dropup-closed'), openClass: Styles.resolve('dropup-open'), shrinkingClass: Styles.resolve('dropup-shrinking'), growingClass: Styles.resolve('dropup-growing'), dimension: { property: 'height' }, onShrunk (component) { refresh(); scrollIntoView(); Replacing.set(component, [ ]); }, onGrown (component) { refresh(); scrollIntoView(); } }), Receivers.orientation(function (component, data) { disappear(Fun.noop); }) ]) }) ) as AlloyComponent; const appear = function (menu, update, component) { if (Sliding.hasShrunk(dropup) === true && Sliding.isTransitioning(dropup) === false) { window.requestAnimationFrame(function () { update(component); Replacing.set(dropup, [ menu() ]); Sliding.grow(dropup); }); } }; const disappear = function (onReadyToShrink) { window.requestAnimationFrame(function () { onReadyToShrink(); Sliding.shrink(dropup); }); }; return { appear, disappear, component: Fun.constant(dropup), element: dropup.element }; }; export { build };