quasar-ui-danx 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/danx.es.js +201 -201
- package/dist/danx.es.js.map +1 -0
- package/dist/danx.umd.js +3 -2
- package/dist/danx.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/ActionTable/Filters/FilterToolbarLayout.vue +0 -1
- package/src/components/PanelsDrawer/PanelsDrawerTabs.vue +2 -7
- package/src/helpers/actions.ts +22 -16
- package/src/vue-plugin.js +0 -2
- package/vite.config.js +1 -0
package/dist/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.slide-image[data-v-d14549c8]{width:100%;height:100%;background:#000;display:flex;justify-content:center;align-items:center}.slide-image img[data-v-d14549c8]{max-height:100%;max-width:100%;object-fit:contain}.carousel[data-v-d14549c8] .q-carousel__navigation--bottom{position:relative;bottom:8em}.action-button[data-v-ed8155ce]{position:absolute;bottom:1.5em;right:1em;z-index:1}.play-button[data-v-ed8155ce]{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;pointer-events:none}.collapsable-sidebar[data-v-168ec366]{flex-shrink:0;overflow-y:auto;scroll-behavior:smooth;border-right-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.dialog-title[data-v-c7e24fdd]{border-top-left-radius:.375rem;border-top-right-radius:.375rem;border-bottom-width:1px;padding:.75rem 1.5rem;font-size:.75rem;line-height:1rem;font-weight:500;text-transform:uppercase;font-family:Roboto,sans-serif;letter-spacing:.05em;box-shadow:0 -4px 12px #00000040}.dialog-content[data-v-c7e24fdd]{box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}body .q-tooltip.interactive-tooltip{pointer-events:auto!important;background:#fff;color:inherit;box-shadow:0 0 10px 3px #0003}[class*=list-move],[class*=list-enter-active],[class*=".list-leave-active"]{transition:all .3s cubic-bezier(.55,0,.1,1)}[class*=list-leave-active]{position:absolute!important}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.fade-list-enter-from,.fade-list-leave-to{opacity:0;transform:scaleY(.01) translate(30px)}.fade-down-list-enter-from,.fade-down-list-leave-to{opacity:0;transform-origin:top;transform:translateY(30px)}.slide-enter-active,.slide-leave-active,.slide-right-enter-active,.slide-right-leave-active{transition:all .3s linear;width:100%}.slide-right-enter-active,.slide-enter-active{position:absolute!important;top:0}.slide-enter-from{right:-120%}.slide-enter-to{right:0}.slide-leave-to{left:-120%}.slide-leave-from{left:0}.slide-right-enter-from{left:-120%}.slide-right-enter-to{left:0}.slide-right-leave-to{right:-120%}.slide-right-leave-from{right:0}.list-move[data-v-6a1edcb9],.list-enter-active[data-v-6a1edcb9],.list-leave-active[data-v-6a1edcb9]{transition:all .5s ease}.list-enter-from[data-v-6a1edcb9],.list-leave-to[data-v-6a1edcb9]{opacity:0;transform:translate(2em)}.list-leave-active[data-v-6a1edcb9]{position:absolute}.category-toggle[data-v-a55d8e51]{margin-left:.25rem;margin-right:.25rem;display:flex;cursor:pointer;align-items:center;border-radius:.5rem;border-width:1px;border-style:solid;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:700}[data-drop-zone] .resize-handle[data-v-c99a35fa]{position:absolute;top:0;right:-.45em;width:.9em;opacity:0;transition:all .3s}[data-drop-zone]:hover .resize-handle[data-v-c99a35fa]{opacity:1}.panel-tabs[data-v-af6a5458] .q-tab{justify-content:start!important;padding:0;border-radius:.5rem;padding:.625rem .5rem;text-align:left}.panel-tabs[data-v-af6a5458] .q-tab:hover{background:var(--slate-200)}.panel-tabs[data-v-af6a5458] .q-tab .q-focus-helper,.panel-tabs[data-v-af6a5458] .q-tab .q-tab__indicator{display:none}.panel-tabs[data-v-af6a5458] .q-tab .q-tab__content{padding:0}.panel-tabs[data-v-af6a5458] .q-tab.q-tab--active{background:var(--blue-600);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-1{bottom:.25rem}.left-0{left:0}.right-0{right:0}.right-1{right:.25rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-4{top:1rem}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.\!mr-1{margin-right:.25rem!important}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-2\.5{margin-left:.625rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-\[-\.2em\]{margin-left:-.2em}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-full{max-height:100%}.w-16{width:4rem}.w-2\/5{width:40%}.w-24{width:6rem}.w-3{width:.75rem}.w-3\/5{width:60%}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-\[13\.5em\]{width:13.5em}.w-\[35\.5rem\]{width:35.5rem}.w-\[6\.5rem\]{width:6.5rem}.w-full{width:100%}.\!min-w-0{min-width:0px!important}.max-w-\[50em\]{max-width:50em}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-ew-resize{cursor:ew-resize}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-ns-resize{cursor:ns-resize}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-y-0{row-gap:0px}.gap-y-1{row-gap:.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.scroll-smooth{scroll-behavior:smooth}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.\!rounded-l-none{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.\!rounded-r-none{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.\!border-0{border-width:0px!important}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.\!bg-blue-600{--tw-bg-opacity: 1 !important;background-color:rgb(37 99 235 / var(--tw-bg-opacity))!important}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.\!p-1{padding:.25rem!important}.\!p-2{padding:.5rem!important}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\!py-0{padding-top:0!important;padding-bottom:0!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.\!pl-4{padding-left:1rem!important}.\!pl-5{padding-left:1.25rem!important}.pl-2{padding-left:.5rem}.pl-6{padding-left:1.5rem}.pr-10{padding-right:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\!text-xs{font-size:.75rem!important;line-height:1rem!important}.text-\[1rem\]{font-size:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-\[1\.2rem\]{line-height:1.2rem}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.hover\:opacity-100:hover{opacity:1}
|
1
|
+
.slide-image[data-v-d14549c8]{width:100%;height:100%;background:#000;display:flex;justify-content:center;align-items:center}.slide-image img[data-v-d14549c8]{max-height:100%;max-width:100%;object-fit:contain}.carousel[data-v-d14549c8] .q-carousel__navigation--bottom{position:relative;bottom:8em}.action-button[data-v-ed8155ce]{position:absolute;bottom:1.5em;right:1em;z-index:1}.play-button[data-v-ed8155ce]{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;pointer-events:none}.collapsable-sidebar[data-v-168ec366]{flex-shrink:0;overflow-y:auto;scroll-behavior:smooth;border-right-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.dialog-title[data-v-c7e24fdd]{border-top-left-radius:.375rem;border-top-right-radius:.375rem;border-bottom-width:1px;padding:.75rem 1.5rem;font-size:.75rem;line-height:1rem;font-weight:500;text-transform:uppercase;font-family:Roboto,sans-serif;letter-spacing:.05em;box-shadow:0 -4px 12px #00000040}.dialog-content[data-v-c7e24fdd]{box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}body .q-tooltip.interactive-tooltip{pointer-events:auto!important;background:#fff;color:inherit;box-shadow:0 0 10px 3px #0003}[class*=list-move],[class*=list-enter-active],[class*=".list-leave-active"]{transition:all .3s cubic-bezier(.55,0,.1,1)}[class*=list-leave-active]{position:absolute!important}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.fade-list-enter-from,.fade-list-leave-to{opacity:0;transform:scaleY(.01) translate(30px)}.fade-down-list-enter-from,.fade-down-list-leave-to{opacity:0;transform-origin:top;transform:translateY(30px)}.slide-enter-active,.slide-leave-active,.slide-right-enter-active,.slide-right-leave-active{transition:all .3s linear;width:100%}.slide-right-enter-active,.slide-enter-active{position:absolute!important;top:0}.slide-enter-from{right:-120%}.slide-enter-to{right:0}.slide-leave-to{left:-120%}.slide-leave-from{left:0}.slide-right-enter-from{left:-120%}.slide-right-enter-to{left:0}.slide-right-leave-to{right:-120%}.slide-right-leave-from{right:0}.list-move[data-v-6a1edcb9],.list-enter-active[data-v-6a1edcb9],.list-leave-active[data-v-6a1edcb9]{transition:all .5s ease}.list-enter-from[data-v-6a1edcb9],.list-leave-to[data-v-6a1edcb9]{opacity:0;transform:translate(2em)}.list-leave-active[data-v-6a1edcb9]{position:absolute}.category-toggle[data-v-a55d8e51]{margin-left:.25rem;margin-right:.25rem;display:flex;cursor:pointer;align-items:center;border-radius:.5rem;border-width:1px;border-style:solid;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:700}[data-drop-zone] .resize-handle[data-v-c99a35fa]{position:absolute;top:0;right:-.45em;width:.9em;opacity:0;transition:all .3s}[data-drop-zone]:hover .resize-handle[data-v-c99a35fa]{opacity:1}.panel-tabs[data-v-beaa5548] .q-tab{justify-content:start!important;padding:0;border-radius:.5rem;padding:.625rem .5rem;text-align:left}.panel-tabs[data-v-beaa5548] .q-tab:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.panel-tabs[data-v-beaa5548] .q-tab .q-focus-helper,.panel-tabs[data-v-beaa5548] .q-tab .q-tab__indicator{display:none}.panel-tabs[data-v-beaa5548] .q-tab .q-tab__content{padding:0}.panel-tabs[data-v-beaa5548] .q-tab.q-tab--active{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "quasar-ui-danx",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.13",
|
4
4
|
"author": "Dan <dan@flytedesk.com>",
|
5
5
|
"description": "DanX Vue / Quasar component library",
|
6
6
|
"license": "MIT",
|
7
7
|
"type": "module",
|
8
8
|
"main": "dist/danx.es.js",
|
9
|
-
"module": "
|
9
|
+
"module": "dist/danx.es.js",
|
10
10
|
"scripts": {
|
11
11
|
"dev": "cd dev && quasar dev && cd ..",
|
12
12
|
"build": "vite build",
|
@@ -47,11 +47,7 @@ defineProps({
|
|
47
47
|
:deep(.q-tab) {
|
48
48
|
justify-content: start !important;
|
49
49
|
padding: 0;
|
50
|
-
@apply text-left py-2.5 px-2 rounded-lg;
|
51
|
-
|
52
|
-
&:hover {
|
53
|
-
background: var(--slate-200);
|
54
|
-
}
|
50
|
+
@apply text-left py-2.5 px-2 rounded-lg hover:bg-slate-200;
|
55
51
|
|
56
52
|
.q-focus-helper, .q-tab__indicator {
|
57
53
|
display: none;
|
@@ -63,8 +59,7 @@ defineProps({
|
|
63
59
|
}
|
64
60
|
|
65
61
|
:deep(.q-tab.q-tab--active) {
|
66
|
-
|
67
|
-
@apply text-white;
|
62
|
+
@apply text-white bg-blue-600;
|
68
63
|
}
|
69
64
|
}
|
70
65
|
</style>
|
package/src/helpers/actions.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
import { ref, shallowRef, VNode } from "vue";
|
2
2
|
import { FlashMessages } from "./FlashMessages";
|
3
3
|
|
4
|
+
type ActionTarget = object[] | object;
|
5
|
+
|
4
6
|
interface ActionOptions {
|
5
7
|
name?: string;
|
6
8
|
label?: string;
|
@@ -8,32 +10,32 @@ interface ActionOptions {
|
|
8
10
|
batch?: boolean;
|
9
11
|
category?: string;
|
10
12
|
class?: string;
|
11
|
-
trigger?: (target:
|
13
|
+
trigger?: (target: ActionTarget, input: any) => Promise<any>;
|
12
14
|
activeTarget?: any;
|
13
|
-
vnode?: (target:
|
15
|
+
vnode?: (target: ActionTarget) => VNode;
|
14
16
|
enabled?: (target: object) => boolean;
|
15
17
|
batchEnabled?: (targets: object[]) => boolean;
|
16
18
|
optimistic?: (action: ActionOptions, target: object, input: any) => void;
|
17
|
-
onAction?: (action: string | null, target: object, input: any) => Promise<any>;
|
18
|
-
onBatchAction?: (action: string | null, targets: object[], input: any) => Promise<any>;
|
19
|
-
onStart?: (action: ActionOptions | null, targets:
|
20
|
-
onSuccess?: (
|
21
|
-
onError?: (
|
22
|
-
onFinish?: (
|
19
|
+
onAction?: (action: string | null | undefined, target: object, input: any) => Promise<any>;
|
20
|
+
onBatchAction?: (action: string | null | undefined, targets: object[], input: any) => Promise<any>;
|
21
|
+
onStart?: (action: ActionOptions | null, targets: ActionTarget, input: any) => boolean;
|
22
|
+
onSuccess?: (result: any, targets: ActionTarget, input: any) => any;
|
23
|
+
onError?: (result: any, targets: ActionTarget, input: any) => any;
|
24
|
+
onFinish?: (result: any, targets: ActionTarget, input: any) => any;
|
23
25
|
}
|
24
26
|
|
25
|
-
export const activeActionVnode = shallowRef(null);
|
27
|
+
export const activeActionVnode: object = shallowRef(null);
|
26
28
|
|
27
29
|
/**
|
28
30
|
* Hook to perform an action on a set of targets
|
29
31
|
* This helper allows you to perform actions by name on a set of targets using a provided list of actions
|
30
32
|
*
|
31
33
|
* @param actions
|
32
|
-
* @param {ActionOptions} globalOptions
|
34
|
+
* @param {ActionOptions | null} globalOptions
|
33
35
|
*/
|
34
|
-
export function useActions(actions: ActionOptions[], globalOptions: ActionOptions = null) {
|
36
|
+
export function useActions(actions: ActionOptions[], globalOptions: ActionOptions | null = null) {
|
35
37
|
const mappedActions = actions.map(action => {
|
36
|
-
const mappedAction = { ...globalOptions, ...action };
|
38
|
+
const mappedAction: ActionOptions = { ...globalOptions, ...action };
|
37
39
|
if (!mappedAction.trigger) {
|
38
40
|
mappedAction.trigger = (target, input) => performAction(mappedAction, target, input);
|
39
41
|
mappedAction.activeTarget = ref(null);
|
@@ -68,7 +70,7 @@ export function useActions(actions: ActionOptions[], globalOptions: ActionOption
|
|
68
70
|
* @param {object[]|object} target - an array of targets or a single target object
|
69
71
|
* @param {any} input - The input data to pass to the action handler
|
70
72
|
*/
|
71
|
-
async function performAction(name: string | object, target:
|
73
|
+
async function performAction(name: string | object, target: ActionTarget, input: any = null) {
|
72
74
|
const action: ActionOptions = typeof name === "string" ? mappedActions.find(a => a.name === name) : name;
|
73
75
|
if (!action) {
|
74
76
|
throw new Error(`Unknown action: ${name}`);
|
@@ -85,7 +87,7 @@ export function useActions(actions: ActionOptions[], globalOptions: ActionOption
|
|
85
87
|
|
86
88
|
// Run the onStart handler if it exists and quit the operation if it returns false
|
87
89
|
if (action.onStart) {
|
88
|
-
if (action.onStart(action, target, input)
|
90
|
+
if (!action.onStart(action, target, input)) {
|
89
91
|
return;
|
90
92
|
}
|
91
93
|
}
|
@@ -146,7 +148,7 @@ export function useActions(actions: ActionOptions[], globalOptions: ActionOption
|
|
146
148
|
};
|
147
149
|
}
|
148
150
|
|
149
|
-
async function onConfirmAction(action: ActionOptions, target:
|
151
|
+
async function onConfirmAction(action: ActionOptions, target: ActionTarget, input: any = null) {
|
150
152
|
if (!action.onAction) {
|
151
153
|
throw new Error("No onAction handler found for the selected action:" + action.name);
|
152
154
|
}
|
@@ -154,7 +156,11 @@ async function onConfirmAction(action: ActionOptions, target: object[] | object,
|
|
154
156
|
let result: any;
|
155
157
|
try {
|
156
158
|
if (Array.isArray(target)) {
|
157
|
-
|
159
|
+
if (action.onBatchAction) {
|
160
|
+
result = await action.onBatchAction(action.name, target, input);
|
161
|
+
} else {
|
162
|
+
result = { error: `Action ${action.name} does not support batch actions` };
|
163
|
+
}
|
158
164
|
} else {
|
159
165
|
// If the action has an optimistic callback, we call it before the actual action to immediately
|
160
166
|
// update the UI
|
package/src/vue-plugin.js
CHANGED