Source
const rel_new = this.#constrainDragRel(this.#drag_item.rel, [constraints_by_target, constraints_by_freeze]);
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
class CSortable {
/**
* Class applied to a sortable container.
*
* @type {string}
*/
static ZBX_STYLE_CLASS = 'sortable';
/**
* Class applied to a sortable container if sorting is disabled or there are less than two items to sort.
*
* @type {string}
*/
static ZBX_STYLE_DISABLED = 'sortable-disabled';
/**
* Class applied to a sortable container while transitions are temporarily disabled.
*
* @type {string}
*/
static ZBX_STYLE_TRANSITIONS_DISABLED = 'sortable-transitions-disabled';
/**
* Class applied to a sortable container while item is being dragged.
*
* @type {string}
*/
static ZBX_STYLE_DRAGGING = 'sortable-dragging';
/**
* Class applied to item elements.
*
* @type {string}
*/
static ZBX_STYLE_ITEM = 'sortable-item';
/**
* Class applied to frozen item elements.
*
* @type {string}
*/
static ZBX_STYLE_ITEM_FROZEN = 'sortable-item-frozen';
/**
* Class applied to elements of item while it is being dragged.
*
* @type {string}