Source
const rel_new = this.#constrainDragRel(this.#drag_item.rel, [constraints_by_target, constraints_by_freeze]);
/*
** Zabbix
** Copyright (C) 2001-2024 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
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';