inital commit

This commit is contained in:
2026-01-01 15:25:19 +05:30
commit f0ae49465a
36361 changed files with 4894111 additions and 0 deletions

30
node_modules/jodit/esm/plugins/fullsize/config.d.ts generated vendored Normal file
View File

@@ -0,0 +1,30 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
declare module 'jodit/config' {
interface Config {
/**
* Open WYSIWYG in full screen
* @example
* ```javascript
* var editor = Jodit.make({
* fullsize: true // fullsize editor
* });
* ```
* @example
* ```javascript
* var editor = Jodit.make();
* editor.e.fire('toggleFullSize');
* editor.e.fire('toggleFullSize', true); // fullsize
* editor.e.fire('toggleFullSize', false); // usual mode
* ```
*/
fullsize: boolean;
/**
* True, after `fullsize` - all editors elements above jodit will get `jodit_fullsize-box_true` class (z-index: 100000 !important;)
*/
globalFullSize: boolean;
}
}

30
node_modules/jodit/esm/plugins/fullsize/config.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import * as consts from "../../core/constants.js";
import { Icon } from "../../core/ui/icon.js";
import { Config } from "../../config.js";
import fullsizeIcon from "./icons/fullsize.svg.js";
import shrinkIcon from "./icons/shrink.svg.js";
Config.prototype.fullsize = false;
Config.prototype.globalFullSize = true;
Icon.set('fullsize', fullsizeIcon).set('shrink', shrinkIcon);
Config.prototype.controls.fullsize = {
exec: (editor) => {
editor.toggleFullSize();
},
update(editor, button) {
const mode = editor.isFullSize ? 'shrink' : 'fullsize';
button.state.activated = editor.isFullSize;
if (editor.o.textIcons) {
button.state.text = mode;
}
else {
button.state.icon.name = mode;
}
},
tooltip: 'Open in fullsize',
mode: consts.MODE_SOURCE + consts.MODE_WYSIWYG
};

16
node_modules/jodit/esm/plugins/fullsize/fullsize.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* [[include:plugins/fullsize/README.md]]
* @packageDocumentation
* @module plugins/fullsize
*/
import type { IViewWithToolbar } from "../../types/index";
import "./config";
/**
* Process `toggleFullSize` event, and behavior - set/unset fullsize mode
*/
export declare function fullsize(editor: IViewWithToolbar): void;

95
node_modules/jodit/esm/plugins/fullsize/fullsize.js generated vendored Normal file
View File

@@ -0,0 +1,95 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import { pluginSystem } from "../../core/global.js";
import { isJoditObject } from "../../core/helpers/checker/is-jodit-object.js";
import { css } from "../../core/helpers/utils/css.js";
import "./config.js";
const fullsizeStack = new Set();
/**
* Process `toggleFullSize` event, and behavior - set/unset fullsize mode
*/
export function fullsize(editor) {
editor.registerButton({
name: 'fullsize'
});
let isEnabled = false, oldHeight = 0, oldWidth = 0, wasToggled = false;
const resize = () => {
const { container, events } = editor;
if (!events) {
return;
}
if (isEnabled) {
oldHeight = css(container, 'height', true);
oldWidth = css(container, 'width', true);
css(container, {
height: editor.ow.innerHeight,
width: editor.ow.innerWidth
});
wasToggled = true;
}
else if (wasToggled) {
css(container, {
height: oldHeight || 'auto',
width: oldWidth || 'auto'
});
}
},
/**
* Change editor's state between FullSize and normal
*/
toggle = (enable) => {
var _a;
const { container, events } = editor;
if (!container) {
return;
}
if (enable === undefined) {
enable = !container.classList.contains('jodit_fullsize');
}
editor.setMod('fullsize', enable);
editor.o.fullsize = enable;
isEnabled = enable;
container.classList.toggle('jodit_fullsize', enable);
if (editor.toolbar) {
isJoditObject(editor) &&
((_a = editor.toolbarContainer) === null || _a === void 0 ? void 0 : _a.appendChild(editor.toolbar.container));
css(editor.toolbar.container, 'width', 'auto');
}
enable
? fullsizeStack.add(container)
: fullsizeStack.delete(container);
const shouldToggleGlobalFullsize = editor.o.globalFullSize &&
((fullsizeStack.size === 1 && enable) ||
(fullsizeStack.size === 0 && !enable));
if (shouldToggleGlobalFullsize) {
let node = container.parentNode;
while (node &&
node.nodeType !== Node.DOCUMENT_NODE &&
node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) {
node.classList.toggle('jodit_fullsize-box_true', enable);
node = node.parentNode;
}
resize();
}
events.fire('afterResize');
};
if (editor.o.globalFullSize) {
editor.e.on(editor.ow, 'resize', resize);
}
editor.e
.on('afterInit afterOpen', () => {
var _a;
editor.toggleFullSize((_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.fullsize);
})
.on('toggleFullSize', toggle)
.on('beforeDestruct', () => {
isEnabled && toggle(false);
})
.on('beforeDestruct', () => {
editor.events && editor.e.off(editor.ow, 'resize', resize);
});
}
pluginSystem.add('fullsize', fullsize);

View File

@@ -0,0 +1 @@
export default "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 24 24\"> <path stroke-width=\"0\" d=\"M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z\"/> </svg> ";

View File

@@ -0,0 +1 @@
export default "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 1792\"> <path d=\"M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z\"/> </svg> ";