mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Update npm and add the jquery mask
This commit is contained in:
parent
d5fab8dacf
commit
bd97e8aa6c
2799 changed files with 332053 additions and 2864 deletions
229
node_modules/tinymce/plugins/fullscreen/plugin.js
generated
vendored
229
node_modules/tinymce/plugins/fullscreen/plugin.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* TinyMCE version 6.8.2 (2023-12-11)
|
||||
* TinyMCE version 6.8.3 (2024-02-08)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
@ -47,6 +47,7 @@
|
|||
const isSimpleType = type => value => typeof value === type;
|
||||
const eq$1 = t => a => t === a;
|
||||
const isString = isType$1('string');
|
||||
const isObject = isType$1('object');
|
||||
const isArray = isType$1('array');
|
||||
const isNull = eq$1(null);
|
||||
const isBoolean = isSimpleType('boolean');
|
||||
|
@ -171,58 +172,6 @@
|
|||
}
|
||||
Optional.singletonNone = new Optional(false);
|
||||
|
||||
const singleton = doRevoke => {
|
||||
const subject = Cell(Optional.none());
|
||||
const revoke = () => subject.get().each(doRevoke);
|
||||
const clear = () => {
|
||||
revoke();
|
||||
subject.set(Optional.none());
|
||||
};
|
||||
const isSet = () => subject.get().isSome();
|
||||
const get = () => subject.get();
|
||||
const set = s => {
|
||||
revoke();
|
||||
subject.set(Optional.some(s));
|
||||
};
|
||||
return {
|
||||
clear,
|
||||
isSet,
|
||||
get,
|
||||
set
|
||||
};
|
||||
};
|
||||
const unbindable = () => singleton(s => s.unbind());
|
||||
const value = () => {
|
||||
const subject = singleton(noop);
|
||||
const on = f => subject.get().each(f);
|
||||
return {
|
||||
...subject,
|
||||
on
|
||||
};
|
||||
};
|
||||
|
||||
const first = (fn, rate) => {
|
||||
let timer = null;
|
||||
const cancel = () => {
|
||||
if (!isNull(timer)) {
|
||||
clearTimeout(timer);
|
||||
timer = null;
|
||||
}
|
||||
};
|
||||
const throttle = (...args) => {
|
||||
if (isNull(timer)) {
|
||||
timer = setTimeout(() => {
|
||||
timer = null;
|
||||
fn.apply(null, args);
|
||||
}, rate);
|
||||
}
|
||||
};
|
||||
return {
|
||||
cancel,
|
||||
throttle
|
||||
};
|
||||
};
|
||||
|
||||
const nativePush = Array.prototype.push;
|
||||
const map = (xs, f) => {
|
||||
const len = xs.length;
|
||||
|
@ -286,6 +235,60 @@
|
|||
return Optional.none();
|
||||
};
|
||||
|
||||
const lift2 = (oa, ob, f) => oa.isSome() && ob.isSome() ? Optional.some(f(oa.getOrDie(), ob.getOrDie())) : Optional.none();
|
||||
|
||||
const singleton = doRevoke => {
|
||||
const subject = Cell(Optional.none());
|
||||
const revoke = () => subject.get().each(doRevoke);
|
||||
const clear = () => {
|
||||
revoke();
|
||||
subject.set(Optional.none());
|
||||
};
|
||||
const isSet = () => subject.get().isSome();
|
||||
const get = () => subject.get();
|
||||
const set = s => {
|
||||
revoke();
|
||||
subject.set(Optional.some(s));
|
||||
};
|
||||
return {
|
||||
clear,
|
||||
isSet,
|
||||
get,
|
||||
set
|
||||
};
|
||||
};
|
||||
const unbindable = () => singleton(s => s.unbind());
|
||||
const value = () => {
|
||||
const subject = singleton(noop);
|
||||
const on = f => subject.get().each(f);
|
||||
return {
|
||||
...subject,
|
||||
on
|
||||
};
|
||||
};
|
||||
|
||||
const first = (fn, rate) => {
|
||||
let timer = null;
|
||||
const cancel = () => {
|
||||
if (!isNull(timer)) {
|
||||
clearTimeout(timer);
|
||||
timer = null;
|
||||
}
|
||||
};
|
||||
const throttle = (...args) => {
|
||||
if (isNull(timer)) {
|
||||
timer = setTimeout(() => {
|
||||
timer = null;
|
||||
fn.apply(null, args);
|
||||
}, rate);
|
||||
}
|
||||
};
|
||||
return {
|
||||
cancel,
|
||||
throttle
|
||||
};
|
||||
};
|
||||
|
||||
const keys = Object.keys;
|
||||
const each = (obj, f) => {
|
||||
const props = keys(obj);
|
||||
|
@ -296,6 +299,76 @@
|
|||
}
|
||||
};
|
||||
|
||||
const Global = typeof window !== 'undefined' ? window : Function('return this;')();
|
||||
|
||||
const path = (parts, scope) => {
|
||||
let o = scope !== undefined && scope !== null ? scope : Global;
|
||||
for (let i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
|
||||
o = o[parts[i]];
|
||||
}
|
||||
return o;
|
||||
};
|
||||
const resolve = (p, scope) => {
|
||||
const parts = p.split('.');
|
||||
return path(parts, scope);
|
||||
};
|
||||
|
||||
const unsafe = (name, scope) => {
|
||||
return resolve(name, scope);
|
||||
};
|
||||
const getOrDie = (name, scope) => {
|
||||
const actual = unsafe(name, scope);
|
||||
if (actual === undefined || actual === null) {
|
||||
throw new Error(name + ' not available on this browser');
|
||||
}
|
||||
return actual;
|
||||
};
|
||||
|
||||
const getPrototypeOf = Object.getPrototypeOf;
|
||||
const sandHTMLElement = scope => {
|
||||
return getOrDie('HTMLElement', scope);
|
||||
};
|
||||
const isPrototypeOf = x => {
|
||||
const scope = resolve('ownerDocument.defaultView', x);
|
||||
return isObject(x) && (sandHTMLElement(scope).prototype.isPrototypeOf(x) || /^HTML\w*Element$/.test(getPrototypeOf(x).constructor.name));
|
||||
};
|
||||
|
||||
const DOCUMENT = 9;
|
||||
const DOCUMENT_FRAGMENT = 11;
|
||||
const ELEMENT = 1;
|
||||
const TEXT = 3;
|
||||
|
||||
const type = element => element.dom.nodeType;
|
||||
const isType = t => element => type(element) === t;
|
||||
const isHTMLElement = element => isElement(element) && isPrototypeOf(element.dom);
|
||||
const isElement = isType(ELEMENT);
|
||||
const isText = isType(TEXT);
|
||||
const isDocument = isType(DOCUMENT);
|
||||
const isDocumentFragment = isType(DOCUMENT_FRAGMENT);
|
||||
|
||||
const rawSet = (dom, key, value) => {
|
||||
if (isString(value) || isBoolean(value) || isNumber(value)) {
|
||||
dom.setAttribute(key, value + '');
|
||||
} else {
|
||||
console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
|
||||
throw new Error('Attribute value was not simple');
|
||||
}
|
||||
};
|
||||
const set$1 = (element, key, value) => {
|
||||
rawSet(element.dom, key, value);
|
||||
};
|
||||
const get$3 = (element, key) => {
|
||||
const v = element.dom.getAttribute(key);
|
||||
return v === null ? undefined : v;
|
||||
};
|
||||
const remove = (element, key) => {
|
||||
element.dom.removeAttribute(key);
|
||||
};
|
||||
|
||||
const supports = element => element.dom.classList !== undefined;
|
||||
|
||||
const has = (element, clazz) => supports(element) && element.dom.classList.contains(clazz);
|
||||
|
||||
const contains = (str, substr, start = 0, end) => {
|
||||
const idx = str.indexOf(substr, start);
|
||||
if (idx !== -1) {
|
||||
|
@ -343,20 +416,6 @@
|
|||
fromPoint
|
||||
};
|
||||
|
||||
typeof window !== 'undefined' ? window : Function('return this;')();
|
||||
|
||||
const DOCUMENT = 9;
|
||||
const DOCUMENT_FRAGMENT = 11;
|
||||
const ELEMENT = 1;
|
||||
const TEXT = 3;
|
||||
|
||||
const type = element => element.dom.nodeType;
|
||||
const isType = t => element => type(element) === t;
|
||||
const isElement = isType(ELEMENT);
|
||||
const isText = isType(TEXT);
|
||||
const isDocument = isType(DOCUMENT);
|
||||
const isDocumentFragment = isType(DOCUMENT_FRAGMENT);
|
||||
|
||||
const is = (element, selector) => {
|
||||
const dom = element.dom;
|
||||
if (dom.nodeType !== ELEMENT) {
|
||||
|
@ -407,6 +466,7 @@
|
|||
const filterSelf = elements => filter$1(elements, x => !eq(element, x));
|
||||
return parent(element).map(children).map(filterSelf).getOr([]);
|
||||
};
|
||||
const nextSibling = element => Optional.from(element.dom.nextSibling).map(SugarElement.fromDom);
|
||||
const children = element => map(element.dom.childNodes, SugarElement.fromDom);
|
||||
|
||||
const isShadowRoot = dos => isDocumentFragment(dos) && isNonNullable(dos.dom.host);
|
||||
|
@ -450,25 +510,6 @@
|
|||
return SugarElement.fromDom(b);
|
||||
};
|
||||
|
||||
const rawSet = (dom, key, value) => {
|
||||
if (isString(value) || isBoolean(value) || isNumber(value)) {
|
||||
dom.setAttribute(key, value + '');
|
||||
} else {
|
||||
console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
|
||||
throw new Error('Attribute value was not simple');
|
||||
}
|
||||
};
|
||||
const set = (element, key, value) => {
|
||||
rawSet(element.dom, key, value);
|
||||
};
|
||||
const get$3 = (element, key) => {
|
||||
const v = element.dom.getAttribute(key);
|
||||
return v === null ? undefined : v;
|
||||
};
|
||||
const remove = (element, key) => {
|
||||
element.dom.removeAttribute(key);
|
||||
};
|
||||
|
||||
const internalSet = (dom, property, value) => {
|
||||
if (!isString(value)) {
|
||||
console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom);
|
||||
|
@ -478,6 +519,10 @@
|
|||
dom.style.setProperty(property, value);
|
||||
}
|
||||
};
|
||||
const set = (element, property, value) => {
|
||||
const dom = element.dom;
|
||||
internalSet(dom, property, value);
|
||||
};
|
||||
const setAll = (element, css) => {
|
||||
const dom = element.dom;
|
||||
each(css, (v, k) => {
|
||||
|
@ -998,7 +1043,7 @@
|
|||
if (backup === clobberStyle) {
|
||||
return;
|
||||
} else {
|
||||
set(element, attr, backup);
|
||||
set$1(element, attr, backup);
|
||||
setAll(element, dom.parseStyle(clobberStyle));
|
||||
}
|
||||
};
|
||||
|
@ -1074,6 +1119,7 @@
|
|||
const documentElement = document.documentElement;
|
||||
const editorContainer = editor.getContainer();
|
||||
const editorContainerS = SugarElement.fromDom(editorContainer);
|
||||
const sinkContainerS = nextSibling(editorContainerS).filter(elm => isHTMLElement(elm) && has(elm, 'tox-silver-sink'));
|
||||
const fullscreenRoot = getFullscreenRoot(editor);
|
||||
const fullscreenInfo = fullscreenState.get();
|
||||
const editorBody = SugarElement.fromDom(editor.getBody());
|
||||
|
@ -1114,7 +1160,8 @@
|
|||
containerLeft: editorContainerStyle.left,
|
||||
iframeWidth: iframeStyle.width,
|
||||
iframeHeight: iframeStyle.height,
|
||||
fullscreenChangeHandler
|
||||
fullscreenChangeHandler,
|
||||
sinkCssPosition: sinkContainerS.map(elm => get$2(elm, 'position'))
|
||||
};
|
||||
if (isTouch) {
|
||||
clobberStyles(editor.dom, editorContainerS, editorBody);
|
||||
|
@ -1122,6 +1169,9 @@
|
|||
iframeStyle.width = iframeStyle.height = '100%';
|
||||
editorContainerStyle.width = editorContainerStyle.height = '';
|
||||
handleClasses(DOM.addClass);
|
||||
sinkContainerS.each(elm => {
|
||||
set(elm, 'position', 'fixed');
|
||||
});
|
||||
viewportUpdate.bind(editorContainerS);
|
||||
editor.on('remove', cleanup);
|
||||
fullscreenState.set(newFullScreenInfo);
|
||||
|
@ -1140,6 +1190,9 @@
|
|||
editorContainerStyle.height = fullscreenInfo.containerHeight;
|
||||
editorContainerStyle.top = fullscreenInfo.containerTop;
|
||||
editorContainerStyle.left = fullscreenInfo.containerLeft;
|
||||
lift2(sinkContainerS, fullscreenInfo.sinkCssPosition, (elm, val) => {
|
||||
set(elm, 'position', val);
|
||||
});
|
||||
cleanup();
|
||||
setScrollPos(fullscreenInfo.scrollPos);
|
||||
fullscreenState.set(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue