UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

848 lines (847 loc) 205 kB
this.primevue = this.primevue || {}; this.primevue.passthrough = this.primevue.passthrough || {}; this.primevue.passthrough.tailwind = (function (exports) { 'use strict'; function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var TRANSITIONS = { toggleable: { enterFromClass: 'max-h-0', enterActiveClass: 'overflow-hidden transition-all duration-500 ease-in-out', enterToClass: 'max-h-40 ', leaveFromClass: 'max-h-40', leaveActiveClass: 'overflow-hidden transition-all duration-500 ease-in', leaveToClass: 'max-h-0' }, overlay: { enterFromClass: 'opacity-0 scale-75', enterActiveClass: 'transition-transform transition-opacity duration-150 ease-in', leaveActiveClass: 'transition-opacity duration-150 ease-linear', leaveToClass: 'opacity-0' } }; var index = { global: { css: "\n *[data-pd-ripple=\"true\"]{\n overflow: hidden;\n position: relative;\n }\n span[data-p-ink-active=\"true\"]{\n animation: ripple 0.4s linear;\n }\n @keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n }\n\n .progress-spinner-circle {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: 0;\n animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;\n stroke-linecap: round;\n }\n\n @keyframes p-progress-spinner-dash{\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n }\n @keyframes p-progress-spinner-color {\n 100%, 0% {\n stroke: #ff5757;\n }\n 40% {\n stroke: #696cff;\n }\n 66% {\n stroke: #1ea97c;\n }\n 80%, 90% {\n stroke: #cc8925;\n }\n }\n\n .progressbar-value-animate::after {\n will-change: left, right;\n animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n }\n .progressbar-value-animate::before {\n will-change: left, right;\n animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n }\n @keyframes p-progressbar-indeterminate-anim {\n 0% {\n left: -35%;\n right: 100%;\n }\n 60% {\n left: 100%;\n right: -90%;\n }\n 100% {\n left: 100%;\n right: -90%;\n }\n }\n" }, directives: { ripple: { root: { "class": ['block absolute bg-white/50 rounded-full pointer-events-none'], style: 'transform: scale(0)' } }, badge: { root: function root(_ref) { var context = _ref.context; return { "class": ['absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 origin-top-right m-0', 'text-xs leading-6 flex items-center justify-center', 'text-center text-white font-bold', { 'rounded-full p-0': context.nogutter || context.dot, 'rounded-[10px] px-2': !context.nogutter && !context.dot, 'min-w-[0.5rem] w-2 h-2': context.dot, 'min-w-[1.5rem] h-6': !context.dot }, { 'bg-blue-500 ': context.info || !context.info && !context.success && !context.warning && !context.danger, 'bg-green-500 ': context.success, 'bg-orange-500 ': context.warning, 'bg-red-500 ': context.danger }] }; } }, tooltip: { root: function root(_ref2) { var context = _ref2.context; return { "class": ['absolute shadow-md', { 'py-0 px-1': (context === null || context === void 0 ? void 0 : context.right) || (context === null || context === void 0 ? void 0 : context.left) || !(context !== null && context !== void 0 && context.right) && !(context !== null && context !== void 0 && context.left) && !(context !== null && context !== void 0 && context.top) && !(context !== null && context !== void 0 && context.bottom), 'py-1 px-0': (context === null || context === void 0 ? void 0 : context.top) || (context === null || context === void 0 ? void 0 : context.bottom) }] }; }, arrow: function arrow(_ref3) { var context = _ref3.context; return { "class": ['absolute w-0 h-0 border-transparent border-solid', { '-m-t-1 border-y-[0.25rem] border-r-[0.25rem] border-l-0 border-r-gray-600': (context === null || context === void 0 ? void 0 : context.right) || !(context !== null && context !== void 0 && context.right) && !(context !== null && context !== void 0 && context.left) && !(context !== null && context !== void 0 && context.top) && !(context !== null && context !== void 0 && context.bottom), '-m-t-1 border-y-[0.25rem] border-l-[0.25rem] border-r-0 border-l-gray-600': context === null || context === void 0 ? void 0 : context.left, '-m-l-1 border-x-[0.25rem] border-t-[0.25rem] border-b-0 border-t-gray-600': context === null || context === void 0 ? void 0 : context.top, '-m-l-1 border-x-[0.25rem] border-b-[0.25rem] border-t-0 border-b-gray-600': context === null || context === void 0 ? void 0 : context.bottom }] }; }, text: { "class": 'p-3 bg-gray-600 text-white rounded-md whitespace-pre-line break-words' } } }, //PANELS panel: { header: function header(_ref4) { var props = _ref4.props; return { "class": ['flex items-center justify-between', // flex and alignments 'border border-gray-300 bg-gray-100 text-gray-700 rounded-tl-lg rounded-tr-lg', // borders and colors 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80', // Dark mode { 'p-5': !props.toggleable, 'py-3 px-5': props.toggleable } // condition ] }; }, title: { "class": 'leading-none font-bold' }, toggler: { "class": ['inline-flex items-center justify-center overflow-hidden relative no-underline', // alignments 'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition duration-200 ease-in-out', // widths, borders, and transitions 'hover:text-gray-900 hover:border-transparent hover:bg-gray-200 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // hover 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]' // focus ] }, togglerIcon: { "class": 'inline-block' }, content: { "class": ['p-5 border border-gray-300 bg-white text-gray-700 border-t-0 last:rounded-br-lg last:rounded-bl-lg', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode ] }, transition: TRANSITIONS.toggleable }, accordion: { root: { "class": 'mb-1' }, accordiontab: { root: { "class": 'mb-1' }, header: function header(_ref5) { var props = _ref5.props; return { "class": [{ 'select-none pointer-events-none cursor-default opacity-60': props === null || props === void 0 ? void 0 : props.disabled } // Condition ] }; }, headerAction: function headerAction(_ref6) { var context = _ref6.context; return { "class": ['flex items-center cursor-pointer relative no-underline select-none', // Alignments 'p-5 transition duration-200 ease-in-out rounded-t-md font-bold transition-shadow duration-200', // Padding and transition 'border border-gray-300 bg-gray-100 text-gray-600', // Borders and colors 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // Dark mode 'hover:border-gray-300 hover:bg-gray-200 hover:text-gray-800', // Hover 'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)]', // Focus { 'rounded-br-md rounded-bl-md': !context.active, 'rounded-br-0 rounded-bl-0 text-gray-800': context.active } // Condition ] }; }, headerIcon: { "class": 'inline-block mr-2' }, headerTitle: { "class": 'leading-none' }, content: { "class": ['p-5 border border-gray-300 bg-white text-gray-700 border-t-0 rounded-tl-none rounded-tr-none rounded-br-lg rounded-bl-lg', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode ] }, transition: TRANSITIONS.toggleable } }, card: { root: { "class": ['bg-white text-gray-700 shadow-md rounded-md', // Background, text color, box shadow, and border radius. 'dark:bg-gray-900 dark:text-white ' //dark ] }, body: { "class": 'p-5' }, // Padding. title: { "class": 'text-2xl font-bold mb-2' // Font size, font weight, and margin bottom. }, subtitle: { "class": ['font-normal mb-2 text-gray-600', // Font weight, margin bottom, and text color. 'dark:text-white/60 ' //dark ] }, content: { "class": 'py-5' // Vertical padding. }, footer: { "class": 'pt-5' // Top padding. } }, divider: { root: function root(_ref7) { var props = _ref7.props; return { "class": ['flex relative', // alignments. { 'w-full my-5 mx-0 py-0 px-5 before:block before:left-0 before:absolute before:top-1/2 before:w-full before:border-t before:border-gray-300 before:dark:border-blue-900/40': props.layout == 'horizontal', // Padding and borders for horizontal layout. 'min-h-full mx-4 md:mx-5 py-5 before:block before:min-h-full before:absolute before:left-1/2 before:top-0 before:transform before:-translate-x-1/2 before:border-l before:border-gray-300 before:dark:border-blue-900/40': props.layout == 'vertical' // Padding and borders for vertical layout. }, { 'before:border-solid': props.type == 'solid', 'before:border-dotted': props.type == 'dotted', 'before:border-dashed': props.type == 'dashed' } // Border type condition. ] }; }, content: { "class": 'px-1 bg-white z-10 dark:bg-gray-900' // Padding and background color. } }, fieldset: { root: { "class": ['border border-gray-300 bg-white text-gray-700 rounded-md block mx-2 my-0.5 pl-4 pr-5 inline-size-min', // Borders, background, text color, spacing, and inline size. 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' //dark ] }, legend: function legend(_ref8) { var props = _ref8.props; return { "class": ['border border-gray-300 text-gray-700 bg-gray-50 font-bold rounded-md', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ', //dark { 'p-0 transition-none hover:bg-gray-100 hover:border-gray-300 hover:text-gray-900 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': props.toggleable, 'p-5': !props.toggleable }] }; }, toggler: function toggler(_ref9) { var props = _ref9.props; return { "class": ['flex items-center justify-center', { 'p-5 text-gray-700 rounded-md transition-none cursor-pointer overflow-hidden relative select-none hover:text-gray-900 focus:focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:text-white/80 dark:hover:text-white/80 dark:hover:bg-gray-800/60 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': props.toggleable }] }; }, togglerIcon: { "class": 'mr-2 inline-block' // Margin and display style. }, legendTitle: { "class": 'flex items-center justify-center leading-none' // alignments, and leading style. }, content: { "class": 'p-5' // Padding. }, transition: TRANSITIONS.toggleable }, scrollpanel: { wrapper: { "class": 'overflow-hidden relative float-left h-full w-full z-[1]' }, content: { "class": 'box-border h-[calc(100%+18px)] overflow-scroll pr-[18px] pb-[18px] pl-0 pt-0 relative w-[calc(100%+18px)] [&::-webkit-scrollbar]:hidden' }, barX: { "class": ['relative bg-gray-100 invisible rounded cursor-pointer h-[9px] bottom-0 z-[2]', 'transition duration-[250ms] ease-linear'] }, barY: { "class": ['relative bg-gray-100 rounded cursor-pointer w-[9px] top-0 z-[2]', 'transition duration-[250ms] ease-linear'] } }, tabview: { navContainer: function navContainer(_ref10) { var props = _ref10.props; return { "class": ['relative', // Relative positioning. { 'overflow-hidden': props.scrollable } // Overflow condition. ] }; }, navContent: { "class": 'overflow-y-hidden overscroll-contain overscroll-auto scroll-smooth [&::-webkit-scrollbar]:hidden' // Overflow and scrollbar styles. }, previousButton: { "class": ['h-full flex items-center justify-center !absolute top-0 z-20', 'left-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ]'] // Flex and absolute positioning styles. }, nextButton: { "class": ['h-full flex items-center justify-center !absolute top-0 z-20', 'right-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 '] // Flex and absolute positioning styles. }, nav: { "class": ['flex flex-1 list-none m-0 p-0', 'bg-transparent border border-gray-300 border-0 border-b-2', 'dark:border-blue-900/40 dark:text-white/80 '] // Flex, list, margin, padding, and border styles. }, tabpanel: { header: function header(_ref11) { var props = _ref11.props; return { "class": ['mr-0', { 'cursor-default pointer-events-none select-none select-none opacity-60': props === null || props === void 0 ? void 0 : props.disabled }] // Margin and condition-based styles. }; }, headerAction: function headerAction(_ref12) { var parent = _ref12.parent, context = _ref12.context; return { "class": ['items-center cursor-pointer flex overflow-hidden relative select-none text-decoration-none select-none', // Flex and overflow styles. 'border-b-2 p-5 font-bold rounded-t-md transition-shadow duration-200 m-0', // Border, padding, font, and transition styles. 'transition-colors duration-200', // Transition duration style. 'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', // Focus styles. { 'border-gray-300 bg-white text-gray-700 hover:bg-white hover:border-gray-400 hover:text-gray-600 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80': parent.state.d_activeIndex !== context.index, // Condition-based hover styles. 'bg-white border-blue-500 text-blue-500 dark:bg-gray-900 dark:border-blue-300 dark:text-blue-300': parent.state.d_activeIndex === context.index // Condition-based active styles. }], style: 'margin-bottom:-2px' // Negative margin style. }; }, headerTitle: { "class": ['leading-none whitespace-nowrap'] // Leading and whitespace styles. }, content: { "class": ['bg-white p-5 border-0 text-gray-700 rounded-bl-md rounded-br-md', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80'] // Background, padding, border, and text styles. } } }, splitter: { root: function root(_ref13) { var context = _ref13.context; return { "class": ['bg-white dark:bg-gray-900 rounded-lg text-gray-700 dark:text-white/80', { 'border border-solid border-gray-300 dark:border-blue-900/40': !context.nested }] }; }, gutter: function gutter(_ref14) { var props = _ref14.props; return { "class": ['flex items-center justify-center shrink-0', 'transition-all duration-200 bg-gray-100 dark:bg-gray-800', { 'cursor-col-resize': props.layout == 'horizontal', 'cursor-row-resize': props.layout !== 'horizontal' }] }; }, gutterhandler: function gutterhandler(_ref15) { var props = _ref15.props; return { "class": ['bg-gray-300 dark:bg-gray-600 transition-all duration-200', { 'h-7': props.layout == 'horizontal', 'w-7 h-2': props.layout !== 'horizontal' }] }; } }, splitterpanel: { root: { "class": 'flex grow' } }, dialog: { root: function root(_ref16) { var state = _ref16.state; return { "class": ['rounded-lg shadow-lg border-0', 'max-h-[90%] transform scale-100', 'm-0 w-[50vw]', 'dark:border dark:border-blue-900/40', { 'transition-none transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': state.maximized }] }; }, header: { "class": ['flex items-center justify-between shrink-0', 'bg-white text-gray-800 border-t-0 rounded-tl-lg rounded-tr-lg p-6', 'dark:bg-gray-900 dark:text-white/80'] }, headerTitle: { "class": 'font-bold text-lg' }, headerIcons: { "class": 'flex items-center' }, closeButton: { "class": ['flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // focus 'dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]'] }, closeButtonIcon: { "class": 'w-4 h-4 inline-block' }, content: function content(_ref17) { var state = _ref17.state, instance = _ref17.instance; return { "class": ['overflow-y-auto', 'bg-white text-gray-700 px-6 pb-8 pt-0', 'dark:bg-gray-900 dark:text-white/80', { grow: state.maximized }, { 'rounded-bl-lg rounded-br-lg': !instance.$slots.footer }] }; }, footer: { "class": ['flex gap-2 shrink-0 justify-end align-center', 'border-t-0 bg-white text-gray-700 px-6 pb-6 text-right rounded-b-lg', 'dark:bg-gray-900 dark:text-white/80'] }, mask: function mask(_ref18) { var props = _ref18.props; return { "class": ['transition duration-200', { 'bg-black/40': props.modal }] }; }, transition: function transition(_ref19) { var props = _ref19.props; return props.position === 'top' ? { enterFromClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0', enterActiveClass: 'transition-all duration-200 ease-out', leaveActiveClass: 'transition-all duration-200 ease-out', leaveToClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0' } : props.position === 'bottom' ? { enterFromClass: 'opacity-0 scale-75 translate-y-full', enterActiveClass: 'transition-all duration-200 ease-out', leaveActiveClass: 'transition-all duration-200 ease-out', leaveToClass: 'opacity-0 scale-75 translate-x-0 translate-y-full translate-z-0' } : props.position === 'left' || props.position === 'topleft' || props.position === 'bottomleft' ? { enterFromClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0', enterActiveClass: 'transition-all duration-200 ease-out', leaveActiveClass: 'transition-all duration-200 ease-out', leaveToClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0' } : props.position === 'right' || props.position === 'topright' || props.position === 'bottomright' ? { enterFromClass: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0', enterActiveClass: 'transition-all duration-200 ease-out', leaveActiveClass: 'transition-all duration-200 ease-out', leaveToClass: 'opacity-0 scale-75 opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0' } : { enterFromClass: 'opacity-0 scale-75', enterActiveClass: 'transition-all duration-200 ease-out', leaveActiveClass: 'transition-all duration-200 ease-out', leaveToClass: 'opacity-0 scale-75' }; } }, confirmpopup: { root: { "class": ['bg-white text-gray-700 border-0 rounded-md shadow-lg', 'z-40 transform origin-center', 'mt-3 absolute left-0 top-0', 'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-white dark:before:border-b-gray-900', 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'] }, content: { "class": 'p-5 items-center flex' }, icon: { "class": 'text-2xl' }, message: { "class": 'ml-4' }, footer: { "class": 'flex gap-2 justify-end align-center text-right px-5 py-5 pt-0' }, transition: TRANSITIONS.overlay }, overlaypanel: { root: { "class": ['bg-white text-gray-700 border-0 rounded-md shadow-lg', 'z-40 transform origin-center', 'absolute left-0 top-0 mt-3', 'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-white dark:before:border-b-gray-900', 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'] }, content: { "class": 'p-5 items-center flex' }, transition: TRANSITIONS.overlay }, sidebar: { root: function root(_ref20) { var props = _ref20.props; return { "class": ['flex flex-col pointer-events-auto relative transition-transform duration-300', 'bg-white text-gray-700 border-0 shadow-lg', { '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': props.position == 'full', 'h-full w-80': props.position == 'left' || props.position == 'right', 'h-40 w-full': props.position == 'top' || props.position == 'bottom' }, 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'] }; }, header: { "class": ['flex items-center justify-end', 'p-5'] }, closeButton: { "class": ['flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]', // focus 'dark:hover:text-white/80 dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]'] }, closeButtonIcon: { "class": 'w-4 h-4 inline-block' }, content: { "class": ['p-5 pt-0 h-full w-full', 'grow overflow-y-auto'] }, mask: function mask(_ref21) { var props = _ref21.props; return { "class": ['flex pointer-events-auto', 'transition duration-200 z-20 transition-colors', { 'bg-black/40': props.modal }] }; }, transition: function transition(_ref22) { var props = _ref22.props; return props.position === 'top' ? { enterFromClass: 'translate-x-0 -translate-y-full translate-z-0', leaveToClass: 'translate-x-0 -translate-y-full translate-z-0' } : props.position === 'bottom' ? { enterFromClass: 'translate-x-0 translate-y-full translate-z-0', leaveToClass: 'translate-x-0 translate-y-full translate-z-0' } : props.position === 'left' ? { enterFromClass: '-translate-x-full translate-y-0 translate-z-0', leaveToClass: '-translate-x-full translate-y-0 translate-z-0' } : props.position === 'right' ? { enterFromClass: 'translate-x-full translate-y-0 translate-z-0', leaveToClass: 'translate-x-full translate-y-0 translate-z-0' } : { enterFromClass: 'opacity-0', enterActiveClass: 'transition-opacity duration-400 ease-in', leaveActiveClass: 'transition-opacity duration-400 ease-in', leaveToClass: 'opacity-0' }; } }, toolbar: { root: { "class": ['flex items-center justify-between flex-wrap', 'bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-blue-900/40 p-5 rounded-md gap-2'] }, start: { "class": 'flex items-center' }, center: { "class": 'flex items-center' }, end: { "class": 'flex items-center' } }, //UPLOAD fileupload: { input: { "class": 'hidden' }, buttonbar: { "class": ['flex flex-wrap', 'bg-gray-50 dark:bg-gray-800 p-5 border border-solid border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-tr-lg rounded-tl-lg gap-2 border-b-0'] }, chooseButton: { "class": ['text-white bg-blue-500 border border-blue-500 p-3 px-5 rounded-md text-base', 'overflow-hidden relative'] }, chooseIcon: { "class": 'mr-2 inline-block' }, chooseButtonLabel: { "class": 'flex-1 font-bold' }, uploadbutton: { icon: { "class": 'mr-2' } }, cancelbutton: { icon: { "class": 'mr-2' } }, content: { "class": ['relative', 'bg-white dark:bg-gray-900 p-8 border border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-b-lg'] }, file: { "class": ['flex items-center flex-wrap', 'p-4 border border-gray-300 dark:border-blue-900/40 rounded gap-2 mb-2', 'last:mb-0'] }, thumbnail: { "class": 'shrink-0' }, fileName: { "class": 'mb-2' }, fileSize: { "class": 'mr-2' }, uploadicon: { "class": 'mr-2' } }, //Messages message: { root: function root(_ref23) { var props = _ref23.props; return { "class": ['my-4 rounded-md', { 'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': props.severity == 'info', 'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': props.severity == 'success', 'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': props.severity == 'warn', 'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': props.severity == 'error' }] }; }, wrapper: { "class": 'flex items-center py-5 px-7' }, icon: { "class": ['w-6 h-6', 'text-lg mr-2'] }, text: { "class": 'text-base font-normal' }, button: { "class": ['w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30'] }, transition: { enterFromClass: 'opacity-0', enterActiveClass: 'transition-opacity duration-300', leaveFromClass: 'max-h-40', leaveActiveClass: 'overflow-hidden transition-all duration-300 ease-in', leaveToClass: 'max-h-0 opacity-0 !m-0' } }, inlinemessage: { root: function root(_ref24) { var props = _ref24.props; return { "class": ['inline-flex items-center justify-center align-top', 'p-3 m-0 rounded-md', { 'bg-blue-100 border-0 text-blue-700': props.severity == 'info', 'bg-green-100 border-0 text-green-700': props.severity == 'success', 'bg-orange-100 border-0 text-orange-700': props.severity == 'warn', 'bg-red-100 border-0 text-red-700': props.severity == 'error' }] }; }, icon: { "class": 'text-base mr-2' } }, toast: { root: { "class": ['w-96', 'opacity-90'] }, container: function container(_ref25) { var props = _ref25.props; return { "class": ['my-4 rounded-md w-full', { 'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': props.message.severity == 'info', 'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': props.message.severity == 'success', 'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': props.message.severity == 'warn', 'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': props.message.severity == 'error' }] }; }, content: { "class": 'flex items-center py-5 px-7' }, icon: { "class": ['w-6 h-6', 'text-lg mr-2'] }, text: { "class": 'text-base font-normal flex flex-col flex-1 grow shrink ml-4' }, summary: { "class": 'font-bold block' }, detail: { "class": 'mt-1 block' }, closebutton: { "class": ['w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30'] }, transition: { enterFromClass: 'opacity-0 translate-x-0 translate-y-2/4 translate-z-0', enterActiveClass: 'transition-transform transition-opacity duration-300', leaveFromClass: 'max-h-40', leaveActiveClass: 'transition-all duration-500 ease-in', leaveToClass: 'max-h-0 opacity-0 mb-0 overflow-hidden' } }, //BUTTONS button: { root: function root(_ref26) { var props = _ref26.props, context = _ref26.context; return { "class": ['items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom', 'transition duration-200 ease-in-out', 'focus:outline-none focus:outline-offset-0', { 'text-white dark:text-gray-900 bg-blue-500 dark:bg-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-600 dark:hover:bg-blue-500 hover:border-blue-600 dark:hover:border-blue-500 focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain, 'text-blue-600 bg-transparent border-transparent focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.link }, { 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(176,185,198,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(203,213,225,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'secondary', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(136,234,172,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(134,239,172,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'success', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'info', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(250,207,133,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(252,211,77,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'warning', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(212,170,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(216,180,254,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'help', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(247,162,162,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(252,165,165,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'danger' }, { 'text-white dark:text-gray-900 bg-gray-500 dark:bg-gray-400 border border-gray-500 dark:border-gray-400 hover:bg-gray-600 dark:hover:bg-gray-500 hover:border-gray-600 dark:hover:border-gray-500': props.severity === 'secondary' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 bg-green-500 dark:bg-green-400 border border-green-500 dark:border-green-400 hover:bg-green-600 dark:hover:bg-green-500 hover:border-green-600 dark:hover:border-green-500': props.severity === 'success' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 dark:bg-blue-400 bg-blue-500 dark:bg-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-600 hover:border-blue-600 dark:hover:bg-blue-500 dark:hover:border-blue-500': props.severity === 'info' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 bg-orange-500 dark:bg-orange-400 border border-orange-500 dark:border-orange-400 hover:bg-orange-600 dark:hover:bg-orange-500 hover:border-orange-600 dark:hover:border-orange-500': props.severity === 'warning' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 bg-purple-500 dark:bg-purple-400 border border-purple-500 dark:border-purple-400 hover:bg-purple-600 dark:hover:bg-purple-500 hover:border-purple-600 dark:hover:border-purple-500': props.severity === 'help' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 bg-red-500 dark:bg-red-400 border border-red-500 dark:border-red-400 hover:bg-red-600 dark:hover:bg-red-500 hover:border-red-600 dark:hover:border-red-500': props.severity === 'danger' && !props.text && !props.outlined && !props.plain }, { 'shadow-lg': props.raised }, { 'rounded-md': !props.rounded, 'rounded-full': props.rounded }, { 'bg-transparent border-transparent': props.text && !props.plain, 'text-blue-500 dark:text-blue-400 hover:bg-blue-300/20': props.text && (props.severity === null || props.severity === 'info') && !props.plain, 'text-gray-500 dark:text-gray-400 hover:bg-gray-300/20': props.text && props.severity === 'secondary' && !props.plain, 'text-green-500 dark:text-green-400 hover:bg-green-300/20': props.text && props.severity === 'success' && !props.plain, 'text-orange-500 dark:text-orange-400 hover:bg-orange-300/20': props.text && props.severity === 'warning' && !props.plain, 'text-purple-500 dark:text-purple-400 hover:bg-purple-300/20': props.text && props.severity === 'help' && !props.plain, 'text-red-500 dark:text-red-400 hover:bg-red-300/20': props.text && props.severity === 'danger' && !props.plain }, { 'shadow-lg': props.raised && props.text }, { 'text-gray-500 hover:bg-gray-300/20': props.plain && props.text, 'text-gray-500 border border-gray-500 hover:bg-gray-300/20': props.plain && props.outlined, 'text-white bg-gray-500 border border-gray-500 hover:bg-gray-600 hover:border-gray-600': props.plain && !props.outlined && !props.text }, { 'bg-transparent border': props.outlined && !props.plain, 'text-blue-500 dark:text-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-300/20': props.outlined && (props.severity === null || props.severity === 'info') && !props.plain, 'text-gray-500 dark:text-gray-400 border border-gray-500 dark:border-gray-400 hover:bg-gray-300/20': props.outlined && props.severity === 'secondary' && !props.plain, 'text-green-500 dark:text-green-400 border border-green-500 dark:border-green-400 hover:bg-green-300/20': props.outlined && props.severity === 'success' && !props.plain, 'text-orange-500 dark:text-orange-400 border border-orange-500 dark:border-orange-400 hover:bg-orange-300/20': props.outlined && props.severity === 'warning' && !props.plain, 'text-purple-500 dark:text-purple-400 border border-purple-500 dark:border-purple-400 hover:bg-purple-300/20': props.outlined && props.severity === 'help' && !props.plain, 'text-red-500 dark:text-red-400 border border-red-500 dark:border-red-400 hover:bg-red-300/20': props.outlined && props.severity === 'danger' && !props.plain }, { 'px-4 py-3 text-base': props.size === null, 'text-xs py-2 px-3': props.size === 'small', 'text-xl py-3 px-4': props.size === 'large' }, { 'flex-column': props.iconPos == 'top' || props.iconPos == 'bottom' }, { 'opacity-60 pointer-events-none cursor-default': context.disabled }] }; }, label: function label(_ref27) { var props = _ref27.props; return { "class": ['flex-1', 'duration-200', 'font-bold', { 'hover:underline': props.link }, { 'invisible w-0': props.label == null }] }; }, icon: function icon(_ref28) { var props = _ref28.props; return { "class": ['mx-0', { 'mr-2': props.iconPos == 'left' && props.label != null, 'ml-2 order-1': props.iconPos == 'right' && props.label != null, 'mb-2': props.iconPos == 'top' && props.label != null, 'mt-2 order-2': props.iconPos == 'bottom' && props.label != null }] }; }, badge: function badge(_ref29) { var props = _ref29.props; return { "class": [{ 'ml-2 w-4 h-4 leading-none flex items-center justify-center': props.badge }] }; } }, speeddial: { root: { "class": 'absolute flex' }, button: { root: function root(_ref30) { var parent = _ref30.parent; return { "class": ['text-white dark:text-gray-900 bg-blue-500 dark:bg-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-600 dark:hover:bg-blue-500 hover:border-blue-600 dark:hover:border-blue-500 focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]', 'flex items-center justify-center', 'transition duration-200 ease-in-out', 'focus:outline-none focus:outline-offset-0', 'w-16 !h-16 !rounded-full justify-center z-10', { 'rotate-45': parent.state.d_visible }] }; }, label: function label() { return { "class": 'hidden' }; } }, menu: { "class": 'm-0 p-0 list-none flex items-center justify-center transition delay-200 z-20' }, menuitem: function menuitem(_ref31) { var props = _ref31.props, context = _ref31.context; return { "class": ['transform transition-transform duration-200 ease-out transition-opacity duration-800', context.hidden ? 'opacity-0 scale-0' : 'opacity-1 scale-100', { 'my-1 first:mb-2': props.direction == 'up' && props.type == 'linear', 'my-1 first:mt-2': props.direction == 'down' && props.type == 'linear', 'mx-1 first:mr-2': props.direction == 'left' && props.type == 'linear', 'mx-1 first:ml-2': props.direction == 'right' && props.type == 'linear' }, { absolute: props.type !== 'linear' }] }; }, action: { "class": ['flex items-center justify-center rounded-full relative overflow-hidden', 'w-12 h-12 bg-gray-700 hover:bg-gray-800 text-white'] }, mask: function mask(_ref32) { var state = _ref32.state; return { "class": ['absolute left-0 top-0 w-full h-full transition-opacity duration-250 ease-in-out bg-black/40 z-0', { 'opacity-0': !state.d_visible, 'pointer-events-none opacity-100 transition-opacity duration-400 ease-in-out': state.d_visible }] }; } }, splitbutton: { root: function root(_ref33) { var props = _ref33.props; return { "class": ['inline-flex relative', 'rounded-md', { 'shadow-lg': props.raised }] }; }, button: { root: function root(_ref34) { var props = _ref34.props, parent = _ref34.parent; return { "class": ['rounded-r-none border-r-0', { 'rounded-l-full': parent.props.rounded }, { 'text-white dark:text-gray-900 bg-blue-500 dark:bg-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-600 dark:hover:bg-blue-500 hover:border-blue-600 dark:hover:border-blue-500 focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]': !parent.props.link && parent.props.severity === null && !parent.props.text && !parent.props.outlined && !parent.props.plain, 'text-blue-600 bg-transparent border-transparent focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]': parent.props.link }, { 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(176,185,198,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(203,213,225,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'secondary', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(136,234,172,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(134,239,172,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'success', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'info', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(250,207,133,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(252,211,77,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'warning', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(212,170,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(216,180,254,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'help', 'focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(247,162,162,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(252,165,165,0.7),0_1px_2px_0_rgba(0,0,0,0)]': props.severity === 'danger' }, { 'text-white dark:text-gray-900 bg-gray-500 dark:bg-gray-400 border border-gray-500 dark:border-gray-400 hover:bg-gray-600 dark:hover:bg-gray-500 hover:border-gray-600 dark:hover:border-gray-500': props.severity === 'secondary' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 bg-green-500 dark:bg-green-400 border border-green-500 dark:border-green-400 hover:bg-green-600 dark:hover:bg-green-500 hover:border-green-600 dark:hover:border-green-500': props.severity === 'success' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 dark:bg-blue-400 bg-blue-500 dark:bg-blue-400 border border-blue-500 dark:border-blue-400 hover:bg-blue-600 hover:border-blue-600 dark:hover:bg-blue-500 dark:hover:border-blue-500': props.severity === 'info' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 bg-orange-500 dark:bg-orange-400 border border-orange-500 dark:border-orange-400 hover:bg-orange-600 dark:hover:bg-orange-500 hover:border-orange-600 dark:hover:border-orange-500': props.severity === 'warning' && !props.text && !props.outlined && !props.plain, 'text-white dark:text-gray-900 bg-purple-500 dark:bg-purple-400 border border-purple-500 dark:border-purple-400 hover:bg-purple-600 dark:hover:bg-purple-500 hover:border-purple-600 dark:hover:border-purple-500': props.severity === 'help' && !props.tex