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

15
node_modules/jodit/esm/core/traits/dlgs.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
/*!
* 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
*/
/**
* @module traits
*/
import type { IDialog, IDialogOptions, IDlgs, IViewBased } from "../../types/index";
export declare abstract class Dlgs implements IDlgs {
dlg(this: IViewBased & IDlgs, options?: IDialogOptions): IDialog;
confirm(this: IViewBased & IDlgs, msg: string, title: string | ((yes: boolean) => void) | undefined, callback?: (yes: boolean) => void | false): IDialog;
prompt(this: IViewBased & IDlgs, msg: string, title: string | (() => false | void) | undefined, callback: (value: string) => false | void, placeholder?: string, defaultValue?: string): IDialog;
alert(this: IViewBased & IDlgs, msg: string | HTMLElement, title?: string | (() => void | false), callback?: string | ((dialog: IDialog) => void | false), className?: string): IDialog;
}

50
node_modules/jodit/esm/core/traits/dlgs.js generated vendored Normal file
View File

@@ -0,0 +1,50 @@
/*!
* 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 { getPopupViewRoot } from "../global.js";
import { isHTML, isString } from "../helpers/checker/index.js";
import { markOwner } from "../helpers/utils/utils.js";
import { Alert, Confirm, Dialog, Prompt } from "../../modules/dialog/index.js";
export class Dlgs {
dlg(options) {
const popupRoot = getPopupViewRoot(this.o, this.container, this.od.body);
const dialog = new Dialog({
language: this.o.language,
shadowRoot: this.o.shadowRoot,
popupRoot,
ownerWindow: this.o.ownerWindow,
defaultTimeout: this.o.defaultTimeout,
direction: this.o.direction,
theme: this.o.theme,
globalFullSize: this.o.globalFullSize,
...options
});
markOwner(this, dialog.container);
dialog.parent = this;
return dialog.bindDestruct(this);
}
confirm(msg, title, callback) {
msg = processTitle(msg, this);
title = processTitle(title, this);
return Confirm.call(this.dlg({ closeOnClickOverlay: true }), msg, title, callback);
}
prompt(msg, title, callback, placeholder, defaultValue) {
msg = processTitle(msg, this);
title = processTitle(title, this);
placeholder = processTitle(placeholder, this);
return Prompt.call(this.dlg({ closeOnClickOverlay: true }), msg, title, callback, placeholder, defaultValue);
}
alert(msg, title, callback, className) {
msg = processTitle(msg, this);
title = processTitle(title, this);
return Alert.call(this.dlg({ closeOnClickOverlay: true }), msg, title, callback, className);
}
}
function processTitle(title, self) {
if (isString(title) && !isHTML(title)) {
title = self.i18n(title);
}
return title;
}

19
node_modules/jodit/esm/core/traits/elms.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
/*!
* 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
*/
/**
* @module traits
*/
import type { IComponent, IContainer, IElms, Nullable } from "../../types/index";
export declare abstract class Elms implements IElms {
/**
* Return element with BEM class name
*/
getElm<T extends IComponent & IContainer & IElms>(this: T, elementName: string): Nullable<HTMLElement>;
/**
* Return elements with BEM class name
*/
getElms<T extends IComponent & IContainer & IElms>(this: T, elementName: string): HTMLElement[];
}

20
node_modules/jodit/esm/core/traits/elms.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
/*!
* 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 { toArray } from "../helpers/array/to-array.js";
export class Elms {
/**
* Return element with BEM class name
*/
getElm(elementName) {
return this.container.querySelector(`.${this.getFullElName(elementName)}`);
}
/**
* Return elements with BEM class name
*/
getElms(elementName) {
return toArray(this.container.querySelectorAll(`.${this.getFullElName(elementName)}`));
}
}

23
node_modules/jodit/esm/core/traits/mods.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
/*!
* 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
*/
/**
* @module traits
*/
import type { IComponent, IContainer, IDictionary, IMods, ModType } from "../../types/index";
export declare abstract class Mods implements IMods {
abstract mods: IDictionary;
afterSetMod(name: string, value: ModType): void;
/**
* Set/remove BEM class modification
*
* @param value - if null, mod will be removed
*/
setMod<T extends IComponent & IContainer & IMods>(this: T, name: string, value: ModType, container?: HTMLElement): T;
/**
* Get BEM class modification value
*/
getMod(this: IMods, name: string): ModType;
}

38
node_modules/jodit/esm/core/traits/mods.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
/*!
* 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 { isVoid } from "../helpers/checker/is-void.js";
export class Mods {
afterSetMod(name, value) { }
/**
* Set/remove BEM class modification
*
* @param value - if null, mod will be removed
*/
setMod(name, value, container) {
name = name.toLowerCase();
const oldValue = this.mods[name];
if (oldValue === value) {
return this;
}
const mod = `${this.componentName}_${name}_`, cl = (container || this.container).classList;
if (oldValue != null) {
cl.remove(`${mod}${oldValue.toString().toLowerCase()}`);
}
!isVoid(value) &&
value !== '' &&
cl.add(`${mod}${value.toString().toLowerCase()}`);
this.mods[name] = value;
this.afterSetMod(name, value);
return this;
}
/**
* Get BEM class modification value
*/
getMod(name) {
var _a;
return (_a = this.mods[name]) !== null && _a !== void 0 ? _a : null;
}
}