UNPKG

devextreme-dist

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

1,206 lines (1,148 loc) 16.9 MB
/*! * DevExtreme (dx.all.debug.js) * Version: 25.1.3 * Build date: Wed Jun 25 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function() { var __webpack_modules__ = { 70037: /*!*************************************************************************************************************************!*\ !*** ../../node_modules/.pnpm/@preact+signals-core@1.8.0/node_modules/@preact/signals-core/dist/signals-core.module.js ***! \*************************************************************************************************************************/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { Signal: function() { return u }, batch: function() { return r }, computed: function() { return w }, effect: function() { return E }, signal: function() { return d }, untracked: function() { return n } }); var i = Symbol.for("preact-signals"); function t() { if (!(s > 1)) { var i, t = !1; while (void 0 !== h) { var r = h; h = void 0; f++; while (void 0 !== r) { var o = r.o; r.o = void 0; r.f &= -3; if (!(8 & r.f) && c(r)) { try { r.c() } catch (r) { if (!t) { i = r; t = !0 } } } r = o } } f = 0; s--; if (t) { throw i } } else { s-- } } function r(i) { if (s > 0) { return i() } s++; try { return i() } finally { t() } } var o = void 0; function n(i) { var t = o; o = void 0; try { return i() } finally { o = t } } var h = void 0, s = 0, f = 0, v = 0; function e(i) { if (void 0 !== o) { var t = i.n; if (void 0 === t || t.t !== o) { t = { i: 0, S: i, p: o.s, n: void 0, t: o, e: void 0, x: void 0, r: t }; if (void 0 !== o.s) { o.s.n = t } o.s = t; i.n = t; if (32 & o.f) { i.S(t) } return t } else if (-1 === t.i) { t.i = 0; if (void 0 !== t.n) { t.n.p = t.p; if (void 0 !== t.p) { t.p.n = t.n } t.p = o.s; t.n = void 0; o.s.n = t; o.s = t } return t } } } function u(i) { this.v = i; this.i = 0; this.n = void 0; this.t = void 0 } u.prototype.brand = i; u.prototype.h = function() { return !0 }; u.prototype.S = function(i) { if (this.t !== i && void 0 === i.e) { i.x = this.t; if (void 0 !== this.t) { this.t.e = i } this.t = i } }; u.prototype.U = function(i) { if (void 0 !== this.t) { var t = i.e, r = i.x; if (void 0 !== t) { t.x = r; i.e = void 0 } if (void 0 !== r) { r.e = t; i.x = void 0 } if (i === this.t) { this.t = r } } }; u.prototype.subscribe = function(i) { var t = this; return E((function() { var r = t.value, n = o; o = void 0; try { i(r) } finally { o = n } })) }; u.prototype.valueOf = function() { return this.value }; u.prototype.toString = function() { return this.value + "" }; u.prototype.toJSON = function() { return this.value }; u.prototype.peek = function() { var i = o; o = void 0; try { return this.value } finally { o = i } }; Object.defineProperty(u.prototype, "value", { get: function() { var i = e(this); if (void 0 !== i) { i.i = this.i } return this.v }, set: function(i) { if (i !== this.v) { if (f > 100) { throw new Error("Cycle detected") } this.v = i; this.i++; v++; s++; try { for (var r = this.t; void 0 !== r; r = r.x) { r.t.N() } } finally { t() } } } }); function d(i) { return new u(i) } function c(i) { for (var t = i.s; void 0 !== t; t = t.n) { if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) { return !0 } } return !1 } function a(i) { for (var t = i.s; void 0 !== t; t = t.n) { var r = t.S.n; if (void 0 !== r) { t.r = r } t.S.n = t; t.i = -1; if (void 0 === t.n) { i.s = t; break } } } function l(i) { var t = i.s, r = void 0; while (void 0 !== t) { var o = t.p; if (-1 === t.i) { t.S.U(t); if (void 0 !== o) { o.n = t.n } if (void 0 !== t.n) { t.n.p = o } } else { r = t } t.S.n = t.r; if (void 0 !== t.r) { t.r = void 0 } t = o } i.s = r } function y(i) { u.call(this, void 0); this.x = i; this.s = void 0; this.g = v - 1; this.f = 4 }(y.prototype = new u).h = function() { this.f &= -3; if (1 & this.f) { return !1 } if (32 == (36 & this.f)) { return !0 } this.f &= -5; if (this.g === v) { return !0 } this.g = v; this.f |= 1; if (this.i > 0 && !c(this)) { this.f &= -2; return !0 } var i = o; try { a(this); o = this; var t = this.x(); if (16 & this.f || this.v !== t || 0 === this.i) { this.v = t; this.f &= -17; this.i++ } } catch (i) { this.v = i; this.f |= 16; this.i++ } o = i; l(this); this.f &= -2; return !0 }; y.prototype.S = function(i) { if (void 0 === this.t) { this.f |= 36; for (var t = this.s; void 0 !== t; t = t.n) { t.S.S(t) } } u.prototype.S.call(this, i) }; y.prototype.U = function(i) { if (void 0 !== this.t) { u.prototype.U.call(this, i); if (void 0 === this.t) { this.f &= -33; for (var t = this.s; void 0 !== t; t = t.n) { t.S.U(t) } } } }; y.prototype.N = function() { if (!(2 & this.f)) { this.f |= 6; for (var i = this.t; void 0 !== i; i = i.x) { i.t.N() } } }; Object.defineProperty(y.prototype, "value", { get: function() { if (1 & this.f) { throw new Error("Cycle detected") } var i = e(this); this.h(); if (void 0 !== i) { i.i = this.i } if (16 & this.f) { throw this.v } return this.v } }); function w(i) { return new y(i) } function _(i) { var r = i.u; i.u = void 0; if ("function" == typeof r) { s++; var n = o; o = void 0; try { r() } catch (t) { i.f &= -2; i.f |= 8; g(i); throw t } finally { o = n; t() } } } function g(i) { for (var t = i.s; void 0 !== t; t = t.n) { t.S.U(t) } i.x = void 0; i.s = void 0; _(i) } function p(i) { if (o !== this) { throw new Error("Out-of-order effect") } l(this); o = i; this.f &= -2; if (8 & this.f) { g(this) } t() } function b(i) { this.x = i; this.u = void 0; this.s = void 0; this.o = void 0; this.f = 32 } b.prototype.c = function() { var i = this.S(); try { if (8 & this.f) { return } if (void 0 === this.x) { return } var t = this.x(); if ("function" == typeof t) { this.u = t } } finally { i() } }; b.prototype.S = function() { if (1 & this.f) { throw new Error("Cycle detected") } this.f |= 1; this.f &= -9; _(this); a(this); s++; var i = o; o = this; return p.bind(this, i) }; b.prototype.N = function() { if (!(2 & this.f)) { this.f |= 2; this.o = h; h = this } }; b.prototype.d = function() { this.f |= 8; if (!(1 & this.f)) { g(this) } }; function E(i) { var t = new b(i); try { t.c() } catch (i) { t.d(); throw i } return t.d.bind(t) } }, 12887: /*!*******************************************************************************************************************!*\ !*** ../../node_modules/.pnpm/inferno-create-element@8.2.3/node_modules/inferno-create-element/dist/index.esm.js ***! \*******************************************************************************************************************/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { createElement: function() { return createElement } }); var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! inferno */ 76231); function isNullOrUndef(o) { return void 0 === o || null === o } function isUndefined(o) { return void 0 === o } var componentHooks = { onComponentDidAppear: 1, onComponentDidMount: 1, onComponentDidUpdate: 1, onComponentShouldUpdate: 1, onComponentWillDisappear: 1, onComponentWillMount: 1, onComponentWillUnmount: 1, onComponentWillUpdate: 1 }; function createElement(type, props, _children) { var children; var ref = null; var key = null; var className = null; var flags; var newProps; var childLen = arguments.length - 2; if (1 === childLen) { children = _children } else if (childLen > 1) { children = []; while (childLen-- > 0) { children[childLen] = arguments[childLen + 2] } } if (o = type, "string" === typeof o) { flags = (0, inferno__WEBPACK_IMPORTED_MODULE_0__.getFlagsForElementVnode)(type); if (!isNullOrUndef(props)) { newProps = {}; for (var prop in props) { if ("className" === prop || "class" === prop) { className = props[prop] } else if ("key" === prop) { key = props.key } else if ("children" === prop && isUndefined(children)) { children = props.children } else if ("ref" === prop) { ref = props.ref } else { if ("contenteditable" === prop) { flags |= 4096 } newProps[prop] = props[prop] } } } } else { flags = 2; if (!isUndefined(children)) { if (!props) { props = {} } props.children = children } if (!isNullOrUndef(props)) { newProps = {}; for (var _prop in props) { if ("key" === _prop) { key = props.key } else if ("ref" === _prop) { ref = props.ref } else if (1 === componentHooks[_prop]) { if (!ref) { ref = {} } ref[_prop] = props[_prop] } else { newProps[_prop] = props[_prop] } } } return (0, inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(flags, type, newProps, key, ref) } var o; if (8192 & flags) { return (0, inferno__WEBPACK_IMPORTED_MODULE_0__.createFragment)(1 === childLen ? [children] : children, 0, key) } return (0, inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(flags, type, className, children, 0, newProps, key, ref) } }, 76231: /*!********************************************************************************************!*\ !*** ../../node_modules/.pnpm/inferno@8.2.3/node_modules/inferno/index.esm.js + 1 modules ***! \********************************************************************************************/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { AnimationQueues: function() { return AnimationQueues }, Component: function() { return Component }, EMPTY_OBJ: function() { return EMPTY_OBJ }, Fragment: function() { return Fragment }, _CI: function() { return createClassComponentInstance }, _HI: function() { return normalizeRoot }, _M: function() { return mount }, _MCCC: function() { return mountClassComponentCallbacks }, _ME: function() { return mountElement }, _MFCC: function() { return mountFunctionalComponentCallbacks }, _MP: function() { return mountProps }, _MR: function() { return mountRef }, _RFC: function() { return renderFunctionalComponent }, __render: function() { return __render }, createComponentVNode: function() { return createComponentVNode }, createFragment: function() { return createFragment }, createPortal: function() { return createPortal }, createRef: function() { return createRef }, createRenderer: function() { return createRenderer }, createTextVNode: function() { return createTextVNode }, createVNode: function() { return createVNode }, directClone: function() { return directClone }, findDOMFromVNode: function() { return findDOMFromVNode }, forwardRef: function() { return forwardRef }, getFlagsForElementVnode: function() { return getFlagsForElementVnode }, linkEvent: function() { return linkEvent }, normalizeProps: function() { return normalizeProps }, options: function() { return options }, render: function() { return render }, rerender: function() { return rerender }, version: function() { return version } }); var isArray = Array.isArray; function isStringOrNumber(o) { var type = typeof o; return "string" === type || "number" === type } function isNullOrUndef(o) { return void 0 === o || null === o } function isInvalid(o) { return null === o || false === o || true === o || void 0 === o } function isFunction(o) { return "function" === typeof o } function isString(o) { return "string" === typeof o } function isNull(o) { return null === o } function combineFrom(first, second) { var out = {}; if (first) { for (var key in first) { out[key] = first[key] } } if (second) { for (var _key in second) { out[_key] = second[_key] } } return out } function linkEvent(data, event) { if (isFunction(event)) { return { data: data, event: event } } return null } function isLinkEventObject(o) { return !isNull(o) && "object" === typeof o } var EMPTY_OBJ = {}; var Fragment = "$F"; var AnimationQueues = function() { this.componentDidAppear = []; this.componentWillDisappear = []; this.componentWillMove = [] }; function normalizeEventName(name) { return name.substring(2).toLowerCase() } function appendChild(parentDOM, dom) { parentDOM.appendChild(dom) } function insertOrAppend(parentDOM, newNode, nextNode) { if (isNull(nextNode)) { appendChild(parentDOM, newNode) } else { parentDOM.insertBefore(newNode, nextNode) } } function removeChild(parentDOM, childNode) { parentDOM.removeChild(childNode) } function callAll(arrayFn) { for (var i = 0; i < arrayFn.length; i++) { arrayFn[i]() } } function findChildVNode(vNode, startEdge, flags) { var children = vNode.children; if (4 & flags) { return children.$LI } if (8192 & flags) { return 2 === vNode.childFlags ? children : children[startEdge ? 0 : children.length - 1] } return children } function findDOMFromVNode(vNode, startEdge) { var flags; while (vNode) { flags = vNode.flags; if (1521 & flags) { return vNode.dom } vNode = findChildVNode(vNode, startEdge, flags) } return null } function callAllAnimationHooks(animationQueue, callback) { var animationsLeft = animationQueue.length; var fn; while (void 0 !== (fn = animationQueue.pop())) { fn((function() { if (--animationsLeft <= 0 && isFunction(callback)) { callback() } })) } } function clearVNodeDOM(vNode, parentDOM, deferredRemoval) { do { var flags = vNode.flags; if (1521 & flags) { if (!deferredRemoval || vNode.dom.parentNode === parentDOM) { removeChild(parentDOM, vNode.dom) } return } var children = vNode.children; if (4 & flags) { vNode = children.$LI } if (8 & flags) { vNode = children } if (8192 & flags) { if (2 === vNode.childFlags) { vNode = children } else { for (var i = 0, len = children.length; i < len; ++i) { clearVNodeDOM(children[i], parentDOM, false) } return } } } while (vNode) } function removeVNodeDOM(vNode, parentDOM, animations) { if (animations.componentWillDisappear.length > 0) { callAllAnimationHooks(animations.componentWillDisappear, function(vNode, parentDOM) { return function() { clearVNodeDOM(vNode, parentDOM, true) } }(vNode, parentDOM)) } else { clearVNodeDOM(vNode, parentDOM, false) } } function addMoveAnimationHook(animations, parentVNode, refOrInstance, dom, parentDOM, nextNode, flags, props) { animations.componentWillMove.push({ dom: dom, fn: function() { if (4 & flags) { refOrInstance.componentWillMove(parentVNode, parentDOM, dom) } else if (8 & flags) { refOrInstance.onComponentWillMove(parentVNode, parentDOM, dom, props) } }, next: nextNode, parent: parentDOM }) } function moveVNodeDOM(parentVNode, vNode, parentDOM, nextNode, animations) { var refOrInstance; var instanceProps; var instanceFlags = vNode.flags; do { var flags = vNode.flags; if (1521 & flags) { if (!isNullOrUndef(refOrInstance) && (isFunction(refOrInstance.componentWillMove) || isFunction(refOrInstance.onComponentWillMove))) { addMoveAnimationHook(animations, parentVNode, refOrInstance, vNode.dom, parentDOM, nextNode, instanceFlags, instanceProps) } else { insertOrAppend(parentDOM, vNode.dom, nextNode) } return } var children = vNode.children; if (4 & flags) { refOrInstance = vNode.children; instanceProps = vNode.props; vNode = children.$LI } else if (8 & flags) { refOrInstance = vNode.ref; instanceProps = vNode.props; vNode = children } else if (8192 & flags) { if (2 === vNode.childFlags) { vNode = children } else { for (var i = 0, len = children.length; i < len; ++i) { moveVNodeDOM(parentVNode, children[i], parentDOM, nextNode, animations) } return } } } while (vNode) } function createDerivedState(instance, nextProps, state) { if (instance.constructor.getDerivedStateFromProps) { return combineFrom(state, instance.constructor.getDerivedStateFromProps(nextProps, state)) } return state } var renderCheck = { v: false }; var options = { componentComparator: null, createVNode: null, renderComplete: null }; function setTextContent(dom, children) { dom.textContent = children } function isLastValueSameLinkEvent(lastValue, nextValue) { return isLinkEventObject(lastValue) && lastValue.event === nextValue.event && lastValue.data === nextValue.data } function mergeUnsetProperties(to, from) { for (var propName in from) { if (o = to[propName], void 0 === o) { to[propName] = from[propName] } } var o; return to } function safeCall1(method, arg1) { return !!isFunction(method) && (method(arg1), true) } var keyPrefix = "$"; function V(childFlags, children, className, flags, key, props, ref, type) { this.childFlags = childFlags; this.children = children; this.className = className; this.dom = null; this.flags = flags; this.key = void 0 === key ? null : key; this.props = void 0 === props ? null : props; this.ref = void 0 === ref ? null : ref; this.type = type } function createVNode(flags, type, className, children, childFlags, props, key, ref) { var childFlag = void 0 === childFlags ? 1 : childFlags; var vNode = new V(childFlag, children, className, flags, key, props, ref, type); if (options.createVNode) { options.createVNode(vNode) } if (0 === childFlag) { normalizeChildren(vNode, vNode.children) } return vNode } function createComponentVNode(flags, type, props, key, ref) { flags = function(flags, type) { if (12 & flags) { return flags } if (type.prototype && type.prototype.render) { return 4 } if (type.render) { return 32776 } return 8 }(flags, type); var vNode = new V(1, null, null, flags, key, function(flags, type, props) { var defaultProps = (32768 & flags ? type.render : type).defaultProps; if (isNullOrUndef(defaultProps)) { return props } if (isNullOrUndef(props)) { return combineFrom(defaultProps, null) } return mergeUnsetProperties(props, defaultProps) }(flags, type, props), function(flags, type, ref) { if (4 & flags) { return ref } var defaultHooks = (32768 & flags ? type.render : type).defaultHooks; if (isNullOrUndef(defaultHooks)) { return ref } if (isNullOrUndef(ref)) { return defaultHooks } return mergeUnsetProperties(ref, defaultHooks) }(flags, type, ref), type); if (options.createVNode) { options.createVNode(vNode) } return vNode } function createTextVNode(text, key) { return new V(1, isNullOrUndef(text) || true === text || false === text ? "" : text, null, 16, key, null, null, null) } function createFragment(children, childFlags, key) { var fragment = createVNode(8192, 8192, null, children, childFlags, null, key, null); switch (fragment.childFlags) { case 1: fragment.children = createVoidVNode(); fragment.childFlags = 2; break; case 16: fragment.children = [createTextVNode(children)]; fragment.childFlags = 4 } return fragment } function normalizeProps(vNode) { var props = vNode.props; if (props) { var flags = vNode.flags; if (481 & flags) { if (void 0 !== props.children && isNullOrUndef(vNode.children)) { normalizeChildren(vNode, props.children) } if (void 0 !== props.className) { if (isNullOrUndef(vNode.className)) { vNode.className = props.className || null } props.className = void 0 } } if (void 0 !== props.key) { vNode.key = props.key; props.key = void 0 } if (void 0 !== props.ref) { if (8 & flags) { vNode.ref = combineFrom(vNode.ref, props.ref) } else { vNode.ref = props.ref } props.ref = void 0 } } return vNode } function directClone(vNodeToClone) { var flags = -16385 & vNodeToClone.flags; var props = vNodeToClone.props; if (14 & flags) { if (!isNull(props)) { var propsToClone = props; props = {}; for (var key in propsToClone) { props[key] = propsToClone[key] } } } if (0 === (8192 & flags)) { return new V(vNodeToClone.childFlags, vNodeToClone.children, vNodeToClone.className, flags, vNodeToClone.key, props, vNodeToClone.ref, vNodeToClone.type) } return function(vNodeToClone) { var oldChildren = vNodeToClone.children; var childFlags = vNodeToClone.childFlags; return createFragment(2 === childFlags ? directClone(oldChildren) : oldChildren.map(directClone), childFlags, vNodeToClone.key) }(vNodeToClone) } function createVoidVNode() { return createTextVNode("", null) } function createPortal(children, container) { var normalizedRoot = normalizeRoot(children); return createVNode(1024, 1024, null, normalizedRoot, 0, null, normalizedRoot.key, container) } function _normalizeVNodes(nodes, result, index, currentKey) { for (var len = nodes.length; index < len; index++) { var n = nodes[index]; if (!isInvalid(n)) { var newKey = currentKey + keyPrefix + index; if (isArray(n)) { _normalizeVNodes(n, result, 0, newKey) } else { if (isStringOrNumber(n)) { n = createTextVNode(n, newKey) } else { var oldKey = n.key; var isPrefixedKey = isString(oldKey) && oldKey[0] === keyPrefix; if (81920 & n.flags || isPrefixedKey) { n = directClone(n) } n.flags |= 65536; if (!isPrefixedKey) { if (isNull(oldKey)) { n.key = newKey } else { n.key = currentKey + oldKey } } else if (oldKey.substring(0, currentKey.length) !== currentKey) { n.key = currentKey + oldKey } } result.push(n) } } } } function getFlagsForElementVnode(type) { switch (type) { case "svg": return 32; case "input": return 64; case "select": return 256; case "textarea": return 128; case Fragment: return 8192; default: return 1 } } function normalizeChildren(vNode, children) { var newChildren; var newChildFlags = 1; if (isInvalid(children)) { newChildren = children } else if (isStringOrNumber(children)) { newChildFlags = 16; newChildren = children } else if (isArray(children)) { var len = children.length; for (var i = 0; i < len; ++i) { var n = children[i]; if (isInvalid(n) || isArray(n)) { newChildren = newChildren || children.slice(0, i); _normalizeVNodes(children, newChildren, i, ""); break } else if (isStringOrNumber(n)) { newChildren = newChildren || children.slice(0, i); newChildren.push(createTextVNode(n, keyPrefix + i)) } else { var key = n.key; var needsCloning = (81920 & n.flags) > 0; var isNullKey = isNull(key); var isPrefixed = isString(key) && key[0] === keyPrefix; if (needsCloning || isNullKey || isPrefixed) { newChildren = newChildren || children.slice(0, i); if (needsCloning || isPrefixed) { n = directClone(n) } if (isNullKey || isPrefixed) { n.key = keyPrefix + i } newChildren.push(n) } else if (newChildren) { newChildren.push(n) } n.flags |= 65536 } } newChildren = newChildren || children; if (0 === newChildren.length) { newChildFlags = 1 } else { newChildFlags = 8 } } else { newChildren = children; newChildren.flags |= 65536; if (81920 & children.flags) { newChildren = directClone(children) } newChildFlags = 2 } vNode.children = newChildren; vNode.childFlags = newChildFlags; return vNode } function normalizeRoot(input) { if (isInvalid(input) || isStringOrNumber(input)) { return createTextVNode(input, null) } if (isArray(input)) { return createFragment(input, 0, null) } return 16384 & input.flags ? directClone(input) : input } var x