intable 0.0.63 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__uno.css +1 -1
- package/dist/components/Dialog.d.ts +9 -0
- package/dist/components/Dialog.js +23 -0
- package/dist/components/utils.d.ts +1 -1
- package/dist/components/utils.js +4 -5
- package/dist/index.d.ts +13 -1
- package/dist/index.js +25 -8
- package/dist/plugins/EditablePlugin.d.ts +1 -0
- package/dist/plugins/EditablePlugin.js +73 -75
- package/dist/plugins/FilterPlugin.d.ts +2 -1
- package/dist/plugins/FilterPlugin.js +1 -1
- package/dist/plugins/OrmPlugin.d.ts +15 -0
- package/dist/plugins/OrmPlugin.js +161 -0
- package/dist/plugins/RenderPlugin/components.js +7 -3
- package/dist/plugins/RenderPlugin/index.d.ts +1 -10
- package/dist/plugins/RenderPlugin/index.js +37 -50
- package/dist/plugins/ResizePlugin.js +23 -25
- package/dist/plugins/TreePlugin.d.ts +4 -0
- package/dist/plugins/TreePlugin.js +27 -18
- package/dist/plugins/ValidatorPlugin.js +57 -42
- package/dist/style.css +2 -2
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +52 -41
- package/package.json +1 -1
package/dist/__uno.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--un-bg-opacity:100%;--un-leading:initial;--un-content:"";--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-text-opacity:100%;--un-border-opacity:100%;--un-outline-opacity:100%;--un-space-y-reverse:initial;--un-space-x-reverse:initial;--un-outline-style:solid;--un-border-top-opacity:100%;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1}}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-leading{syntax:"*";inherits:false}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-inset-ring-color{syntax:"*";inherits:false}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow-color{syntax:"*";inherits:false}@property --un-ring-color{syntax:"*";inherits:false}@property --un-ring-inset{syntax:"*";inherits:false}@property --un-ring-offset-color{syntax:"*";inherits:false}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow-color{syntax:"*";inherits:false}@property --un-translate-x{syntax:"*";inherits:false;initial-value:0}@property --un-translate-y{syntax:"*";inherits:false;initial-value:0}@property --un-translate-z{syntax:"*";inherits:false;initial-value:0}@property --un-scale-x{syntax:"*";inherits:false;initial-value:1}@property --un-scale-y{syntax:"*";inherits:false;initial-value:1}@property --un-scale-z{syntax:"*";inherits:false;initial-value:1}@property --un-numeric-figure{syntax:"*";inherits:false}@property --un-numeric-fraction{syntax:"*";inherits:false}@property --un-numeric-spacing{syntax:"*";inherits:false}@property --un-ordinal{syntax:"*";inherits:false}@property --un-slashed-zero{syntax:"*";inherits:false}@property --un-space-y-reverse{syntax:"*";inherits:false;initial-value:0}:root,:host{--spacing:.25rem;--fontWeight-semibold:600;--radius-DEFAULT:.25rem;--colors-gray-DEFAULT:#99a1af;--leading-snug:1.375;--colors-gray-800:#1e2939;--colors-white:#fff;--colors-gray-100:#f3f4f6;--colors-gray-900:#101828;--text-xs-fontSize:.75rem;--text-xs-lineHeight:1rem;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--default-transition-timingFunction:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--radius-md:.375rem;--radius-xl:.75rem;--fontWeight-medium:500;--tracking-wide:.025em;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--radius-sm:.25rem;--leading-none:1;--colors-blue-DEFAULT:#54a2ff;--colors-red-DEFAULT:#ff6568;--colors-gray-200:#e5e7eb;--colors-gray-500:#6a7282;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-green-DEFAULT:#05df72;--colors-black:#000;--font-sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--default-font-family:var(--font-sans);--default-monoFont-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--colors-gray-DEFAULT:lab(65.9269% -.832677 -8.17474);--colors-gray-800:lab(16.1051% -1.18239 -11.7533);--colors-gray-100:lab(96.1596% -.082314 -1.13575);--colors-gray-900:lab(8.11897% .811271 -12.254);--colors-blue-DEFAULT:lab(65.0361% -1.42065 -56.9802);--colors-red-DEFAULT:lab(63.7053% 60.745 31.3109);--colors-gray-200:lab(91.6229% -.159115 -2.26791);--colors-gray-500:lab(47.7841% -.393182 -10.0268);--colors-green-DEFAULT:lab(78.503% -64.9264 39.7492)}}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-featureSettings,normal);font-variation-settings:var(--default-font-variationSettings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-monoFont-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-monoFont-featureSettings,normal);font-variation-settings:var(--default-monoFont-variationSettings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden~=until-found])){display:none!important}.container{width:100%}.aic{align-items:center}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.text-11px{font-size:11px}.text-2xl{font-size:var(--text-2xl-fontSize);line-height:var(--un-leading,var(--text-2xl-lineHeight))}.text-3{font-size:.75rem}.text-4{font-size:1rem}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight))}.text-xs{font-size:var(--text-xs-fontSize);line-height:var(--un-leading,var(--text-xs-lineHeight))}.c-\[--c-primary\]{color:color-mix(in oklab,var(--c-primary)var(--un-text-opacity),transparent)}.c-\#1e3a8a{color:color-mix(in oklab,#1e3a8a var(--un-text-opacity),transparent)}.c-\#7c2d12{color:color-mix(in oklab,#7c2d12 var(--un-text-opacity),transparent)}.c-blue{color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray-500{color:color-mix(in srgb,var(--colors-gray-500)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in srgb,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in srgb,var(--colors-red-DEFAULT)75%,transparent)}.leading-5{--un-leading:calc(4px*5);line-height:20px}.lh-\[1\]{--un-leading:1;line-height:1}.lh-none{--un-leading:var(--leading-none);line-height:var(--leading-none)}.tracking-wide{--un-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.font-medium{--un-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-mono{font-family:var(--font-mono)}.font-semibold{--un-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.m9{margin:36px}.mx-1{margin-inline:4px}.mx-2{margin-inline:8px}.mx-3\!{margin-inline:12px!important}.my-1{margin-block:4px}.ml{margin-left:16px}.ml-\.5{margin-left:2px}.ml-1{margin-left:4px}.mr--1{margin-right:-4px}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-2\.5{margin-right:10px}.mt-1{margin-top:4px}.p-0\!{padding:0!important}.p-1{padding:4px}.p-4\!{padding:16px!important}.px,.px-4{padding-inline:16px}.px-1{padding-inline:4px}.px-1\.5{padding-inline:6px}.px-2{padding-inline:8px}.px-3{padding-inline:12px}.py-1{padding-block:4px}.py-1\.5{padding-block:6px}.py-2{padding-block:8px}.pl-1{padding-left:4px}.pl-4{padding-left:16px}.pr-4{padding-right:16px}.ps{padding-inline-start:16px}.text-center{text-align:center}.text-right{text-align:right}.outline-0{outline-style:var(--un-outline-style);outline-width:0}.outline-1\.5px{outline-style:var(--un-outline-style);outline-width:1.5px}.outline-2{outline-style:var(--un-outline-style);outline-width:2px}.outline-\[--c-primary\]{outline-color:color-mix(in oklab,var(--c-primary)var(--un-outline-opacity),transparent)}.outline-blue{outline-color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.outline-none{--un-outline-style:none;outline-style:none}.outline-solid{--un-outline-style:solid;outline-style:solid}.b,.b-1,.border{border-width:1px}.b-2px{border-width:2px}.b-r-0{border-right-width:0}.b-\[--table-bg\]{border-color:color-mix(in oklab,var(--table-bg)var(--un-border-opacity),transparent)}.b-\#00000000\!{border-color:color-mix(in oklab,#0000 var(--un-border-opacity),transparent)!important}.b-\#4f7ff0{border-color:color-mix(in oklab,#4f7ff0 var(--un-border-opacity),transparent)}.b-\#f59e0b{border-color:color-mix(in oklab,#f59e0b var(--un-border-opacity),transparent)}.rd-1{border-radius:.25rem}.rd-1\.5{border-radius:.375rem}.rd-2{border-radius:.5rem}.rd-full{border-radius:3.40282e38px}.rd-sm{border-radius:var(--radius-sm)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rd-l-4{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.b-dashed{--un-border-style:dashed;border-style:dashed}.b-solid{--un-border-style:solid;border-style:solid}.bg-\[--bg\]{background-color:color-mix(in oklab,var(--bg)var(--un-bg-opacity),transparent)}.bg-\[--c-primary\]{background-color:color-mix(in oklab,var(--c-primary)var(--un-bg-opacity),transparent)}.bg-\[--table-bg\]{background-color:color-mix(in oklab,var(--table-bg)var(--un-bg-opacity),transparent)}.bg-\[--table-header-bg\]{background-color:color-mix(in oklab,var(--table-header-bg)var(--un-bg-opacity),transparent)}.bg-\#dbe6ff\/75{background-color:#dbe6ffbf;background-color:lab(91.0303% -.143617 -13.4803/.75)}.bg-\#fff{background-color:color-mix(in oklab,#fff var(--un-bg-opacity),transparent)}.bg-\#fff3d6\/85{background-color:#fff3d6d9;background-color:lab(96.236% .744313 15.5662/.85)}.bg-blue\/20\!{background-color:color-mix(in srgb,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in srgb,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in srgb,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in srgb,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-transparent{background-color:#0000}.hover\:bg-\[--li-hover-bg\]:hover{background-color:color-mix(in oklab,var(--li-hover-bg)var(--un-bg-opacity),transparent)}.hover\:bg-black\/8:hover{background-color:color-mix(in srgb,var(--colors-black)8%,transparent)}.op-0{opacity:0}.op-15{opacity:.15}.op-60{opacity:.6}.op-75{opacity:.75}.op40{opacity:.4}.opacity-50{opacity:.5}.group:hover .group-hover\:op-100{opacity:1}.disabled\:op-30:disabled{opacity:.3}.hover\:underline:hover{text-decoration-line:underline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-0\.5{gap:2px}.gap-1{gap:4px}.gap-1\.5{gap:6px}.gap-2{gap:8px}.grid{display:grid}.size-3\.5{width:14px;height:14px}.size-4\!{width:16px!important;height:16px!important}.size-full{width:100%;height:100%}.h-1\!{height:4px!important}.h-2{height:8px}.h-2\.5{height:10px}.h-3\.5{height:14px}.h-5{height:20px}.h-6{height:24px}.h-6\.5{height:26px}.h-a\!{height:auto!important}.h-full{height:100%}.max-h-100{max-height:400px}.max-h-60{max-height:240px}.max-h-inherit{max-height:inherit}.min-h-16{min-height:64px}.min-h-40{min-height:160px}.min-h-a\!{min-height:auto!important}.min-w-24{min-width:96px}.min-w-30px{min-width:30px}.min-w-44{min-width:176px}.min-w-52{min-width:208px}.w-10{width:40px}.w-10px\!{width:10px!important}.w-2\.5{width:10px}.w-3\.5{width:14px}.w-6\.5{width:26px}.w-8\!{width:32px!important}.w-a\!{width:auto!important}.w-full{width:100%}.after\:h-1:after{height:4px}.after\:w-1:after{width:4px}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.contents{display:contents}.hidden{display:none}.visible{visibility:visible}.collapse{visibility:collapse}.cursor-pointer{cursor:pointer}.cursor-crosshair{cursor:crosshair}.cursor-s-resize{cursor:s-resize}.cursor-w-resize{cursor:w-resize}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.select-none{-webkit-user-select:none;user-select:none}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.uppercase{text-transform:uppercase}.shadow-sm{--un-shadow:0 1px 3px 0 var(--un-shadow-color,#0000001a),0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:0 20px 25px -5px var(--un-shadow-color,#0000001a),0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.translate-x--1\/2{--un-translate-x:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-x-1\/2{--un-translate-x:50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-y--1\/2{--un-translate-y:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.hover\:scale-110:hover{--un-scale-x:110%;--un-scale-y:110%;scale:var(--un-scale-x)var(--un-scale-y)}.transform{transform:var(--un-rotate-x)var(--un-rotate-y)var(--un-rotate-z)var(--un-skew-x)var(--un-skew-y)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.duration-300{--un-duration:.3s;transition-duration:.3s}.items-start{align-items:flex-start}.items-center{align-items:center}.box-border{box-sizing:border-box}.inset-0{inset:0}.bottom-0{bottom:0}.left--0,.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\/2{top:50%}.justify-end{justify-content:flex-end}.justify-end\!{justify-content:flex-end!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.z--1{z-index:-1}.z-1{z-index:1}.z-2{z-index:2}.z-9{z-index:9}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.of-y-auto{overflow-y:auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.filter{filter:var(--un-blur,)var(--un-brightness,)var(--un-contrast,)var(--un-grayscale,)var(--un-hue-rotate,)var(--un-invert,)var(--un-saturate,)var(--un-sepia,)var(--un-drop-shadow,)}.table{display:table}.table-cell{display:table-cell}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal,)var(--un-slashed-zero,)var(--un-numeric-figure,)var(--un-numeric-spacing,)var(--un-numeric-fraction,)}:where(.space-y-5>:not(:last-child)){--un-space-y-reverse:0;margin-block-start:calc(calc(4px*5)*var(--un-space-y-reverse));margin-block-end:calc(calc(4px*5)*calc(1 - var(--un-space-y-reverse)))}@supports (color:color-mix(in lab, red, red)){.c-blue{color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray-500{color:color-mix(in oklab,var(--colors-gray-500)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in oklab,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in oklab,var(--colors-red-DEFAULT)75%,transparent)}.outline-blue{outline-color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.bg-blue\/20\!{background-color:color-mix(in oklab,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in oklab,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in oklab,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in oklab,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.hover\:bg-black\/8:hover{background-color:color-mix(in oklab,var(--colors-black)8%,transparent)}}
|
|
1
|
+
@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--un-bg-opacity:100%;--un-leading:initial;--un-content:"";--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-text-opacity:100%;--un-border-opacity:100%;--un-outline-opacity:100%;--un-space-y-reverse:initial;--un-space-x-reverse:initial;--un-outline-style:solid;--un-border-top-opacity:100%;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1}}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-leading{syntax:"*";inherits:false}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-inset-ring-color{syntax:"*";inherits:false}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow-color{syntax:"*";inherits:false}@property --un-ring-color{syntax:"*";inherits:false}@property --un-ring-inset{syntax:"*";inherits:false}@property --un-ring-offset-color{syntax:"*";inherits:false}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow-color{syntax:"*";inherits:false}@property --un-translate-x{syntax:"*";inherits:false;initial-value:0}@property --un-translate-y{syntax:"*";inherits:false;initial-value:0}@property --un-translate-z{syntax:"*";inherits:false;initial-value:0}@property --un-scale-x{syntax:"*";inherits:false;initial-value:1}@property --un-scale-y{syntax:"*";inherits:false;initial-value:1}@property --un-scale-z{syntax:"*";inherits:false;initial-value:1}@property --un-numeric-figure{syntax:"*";inherits:false}@property --un-numeric-fraction{syntax:"*";inherits:false}@property --un-numeric-spacing{syntax:"*";inherits:false}@property --un-ordinal{syntax:"*";inherits:false}@property --un-slashed-zero{syntax:"*";inherits:false}@property --un-space-y-reverse{syntax:"*";inherits:false;initial-value:0}:root,:host{--spacing:.25rem;--fontWeight-semibold:600;--radius-DEFAULT:.25rem;--colors-gray-DEFAULT:#99a1af;--leading-snug:1.375;--colors-gray-800:#1e2939;--colors-white:#fff;--colors-gray-100:#f3f4f6;--colors-gray-900:#101828;--text-xs-fontSize:.75rem;--text-xs-lineHeight:1rem;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--default-transition-timingFunction:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--radius-md:.375rem;--radius-xl:.75rem;--fontWeight-medium:500;--radius-lg:.5rem;--tracking-wide:.025em;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--radius-sm:.25rem;--leading-none:1;--colors-gray-200:#e5e7eb;--colors-blue-600:#155dfc;--colors-blue-DEFAULT:#54a2ff;--colors-gray-500:#6a7282;--colors-gray-400:#99a1af;--colors-red-DEFAULT:#ff6568;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-green-DEFAULT:#05df72;--colors-black:#000;--colors-gray-300:#d1d5dc;--colors-blue-700:#1447e6;--colors-red-500:#fb2c36;--font-sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--default-font-family:var(--font-sans);--default-monoFont-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--colors-gray-DEFAULT:lab(65.9269% -.832677 -8.17474);--colors-gray-800:lab(16.1051% -1.18239 -11.7533);--colors-gray-100:lab(96.1596% -.082314 -1.13575);--colors-gray-900:lab(8.11897% .811271 -12.254);--colors-gray-200:lab(91.6229% -.159115 -2.26791);--colors-blue-600:lab(44.0605% 29.0279 -86.0352);--colors-blue-DEFAULT:lab(65.0361% -1.42065 -56.9802);--colors-gray-500:lab(47.7841% -.393182 -10.0268);--colors-gray-400:lab(65.9269% -.832677 -8.17474);--colors-red-DEFAULT:lab(63.7053% 60.745 31.3109);--colors-green-DEFAULT:lab(78.503% -64.9264 39.7492);--colors-gray-300:lab(85.1236% -.612289 -3.7138);--colors-blue-700:lab(36.9089% 35.0961 -85.6872);--colors-red-500:lab(55.4814% 75.0732 48.8528)}}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-featureSettings,normal);font-variation-settings:var(--default-font-variationSettings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-monoFont-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-monoFont-featureSettings,normal);font-variation-settings:var(--default-monoFont-variationSettings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden~=until-found])){display:none!important}.container{width:100%}.aic{align-items:center}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.text-11px{font-size:11px}.text-2xl{font-size:var(--text-2xl-fontSize);line-height:var(--un-leading,var(--text-2xl-lineHeight))}.text-3{font-size:.75rem}.text-4{font-size:1rem}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight))}.text-xs{font-size:var(--text-xs-fontSize);line-height:var(--un-leading,var(--text-xs-lineHeight))}.text-gray-400{color:color-mix(in srgb,var(--colors-gray-400)var(--un-text-opacity),transparent)}.c-gray-500,.text-gray-500{color:color-mix(in srgb,var(--colors-gray-500)var(--un-text-opacity),transparent)}.text-gray-800{color:color-mix(in srgb,var(--colors-gray-800)var(--un-text-opacity),transparent)}.text-white{color:color-mix(in srgb,var(--colors-white)var(--un-text-opacity),transparent)}.hover\:text-red-500:hover{color:color-mix(in srgb,var(--colors-red-500)var(--un-text-opacity),transparent)}.c-\[--c-primary\]{color:color-mix(in oklab,var(--c-primary)var(--un-text-opacity),transparent)}.c-\#1e3a8a{color:color-mix(in oklab,#1e3a8a var(--un-text-opacity),transparent)}.c-\#7c2d12{color:color-mix(in oklab,#7c2d12 var(--un-text-opacity),transparent)}.c-blue{color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in srgb,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in srgb,var(--colors-red-DEFAULT)75%,transparent)}.leading-5{--un-leading:calc(4px*5);line-height:20px}.lh-\[1\]{--un-leading:1;line-height:1}.lh-none{--un-leading:var(--leading-none);line-height:var(--leading-none)}.tracking-wide{--un-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.font-medium{--un-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-mono{font-family:var(--font-mono)}.font-semibold{--un-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.m9{margin:36px}.ma{margin:auto}.mx-1{margin-inline:4px}.mx-2{margin-inline:8px}.mx-3\!{margin-inline:12px!important}.my-1{margin-block:4px}.ml{margin-left:16px}.ml-\.5{margin-left:2px}.ml-1{margin-left:4px}.ml-2{margin-left:8px}.mr--1{margin-right:-4px}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-2\.5{margin-right:10px}.mt-1{margin-top:4px}.p-0\!{padding:0!important}.p-1{padding:4px}.p-3{padding:12px}.p-4\!{padding:16px!important}.px,.px-4{padding-inline:16px}.px-1{padding-inline:4px}.px-1\.5{padding-inline:6px}.px-2{padding-inline:8px}.px-3{padding-inline:12px}.py-1{padding-block:4px}.py-1\.5{padding-block:6px}.py-2{padding-block:8px}.pl-1{padding-left:4px}.pl-4{padding-left:16px}.pr-4{padding-right:16px}.ps{padding-inline-start:16px}.text-center{text-align:center}.text-right{text-align:right}.outline-0{outline-style:var(--un-outline-style);outline-width:0}.outline-1\.5px{outline-style:var(--un-outline-style);outline-width:1.5px}.outline-2{outline-style:var(--un-outline-style);outline-width:2px}.outline-\[--c-primary\]{outline-color:color-mix(in oklab,var(--c-primary)var(--un-outline-opacity),transparent)}.outline-blue{outline-color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.outline-none{--un-outline-style:none;outline-style:none}.outline-solid{--un-outline-style:solid;outline-style:solid}.b,.b-1,.border{border-width:1px}.b-2px{border-width:2px}.b-r-0{border-right-width:0}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.b-\[--table-bg\]{border-color:color-mix(in oklab,var(--table-bg)var(--un-border-opacity),transparent)}.b-\#00000000\!{border-color:color-mix(in oklab,#0000 var(--un-border-opacity),transparent)!important}.b-\#4f7ff0{border-color:color-mix(in oklab,#4f7ff0 var(--un-border-opacity),transparent)}.b-\#f59e0b{border-color:color-mix(in oklab,#f59e0b var(--un-border-opacity),transparent)}.border-gray\/20{border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.rd-1{border-radius:.25rem}.rd-1\.5{border-radius:.375rem}.rd-2{border-radius:.5rem}.rd-full{border-radius:3.40282e38px}.rd-sm{border-radius:var(--radius-sm)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rd-l-4{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.b-dashed{--un-border-style:dashed;border-style:dashed}.b-solid{--un-border-style:solid;border-style:solid}.backdrop\:bg-gray\/50::backdrop{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)50%,transparent)}.bg-\[--bg\]{background-color:color-mix(in oklab,var(--bg)var(--un-bg-opacity),transparent)}.bg-\[--c-primary\]{background-color:color-mix(in oklab,var(--c-primary)var(--un-bg-opacity),transparent)}.bg-\[--table-bg\]{background-color:color-mix(in oklab,var(--table-bg)var(--un-bg-opacity),transparent)}.bg-\[--table-header-bg\]{background-color:color-mix(in oklab,var(--table-header-bg)var(--un-bg-opacity),transparent)}.bg-\#dbe6ff\/75{background-color:#dbe6ffbf;background-color:lab(91.0303% -.143617 -13.4803/.75)}.bg-\#fff{background-color:color-mix(in oklab,#fff var(--un-bg-opacity),transparent)}.bg-\#fff3d6\/85{background-color:#fff3d6d9;background-color:lab(96.236% .744313 15.5662/.85)}.bg-blue-600{background-color:color-mix(in srgb,var(--colors-blue-600)var(--un-bg-opacity),transparent)}.bg-blue\/20\!{background-color:color-mix(in srgb,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in srgb,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in srgb,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in srgb,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-transparent{background-color:#0000}.hover\:bg-\[--li-hover-bg\]:hover{background-color:color-mix(in oklab,var(--li-hover-bg)var(--un-bg-opacity),transparent)}.hover\:bg-black\/8:hover{background-color:color-mix(in srgb,var(--colors-black)8%,transparent)}.hover\:bg-blue-700:hover{background-color:color-mix(in srgb,var(--colors-blue-700)var(--un-bg-opacity),transparent)}.hover\:bg-gray-300:hover{background-color:color-mix(in srgb,var(--colors-gray-300)var(--un-bg-opacity),transparent)}.op-0{opacity:0}.op-15{opacity:.15}.op-60{opacity:.6}.op-75{opacity:.75}.op40{opacity:.4}.opacity-50{opacity:.5}.group:hover .group-hover\:op-100{opacity:1}.disabled\:op-30:disabled{opacity:.3}.hover\:underline:hover{text-decoration-line:underline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-0\.5{gap:2px}.gap-1{gap:4px}.gap-1\.5{gap:6px}.gap-2{gap:8px}.grid{display:grid}.size-3\.5{width:14px;height:14px}.size-4\!{width:16px!important;height:16px!important}.size-full{width:100%;height:100%}.h-1\!{height:4px!important}.h-2{height:8px}.h-2\.5{height:10px}.h-3\.5{height:14px}.h-5{height:20px}.h-6{height:24px}.h-6\.5{height:26px}.h-a\!{height:auto!important}.h-full{height:100%}.max-h-100{max-height:400px}.max-h-60{max-height:240px}.max-h-inherit{max-height:inherit}.min-h-16{min-height:64px}.min-h-40{min-height:160px}.min-h-a\!{min-height:auto!important}.min-w-\[40vw\]{min-width:40vw}.min-w-24{min-width:96px}.min-w-30px{min-width:30px}.min-w-44{min-width:176px}.min-w-52{min-width:208px}.w-10{width:40px}.w-10px\!{width:10px!important}.w-2\.5{width:10px}.w-3\.5{width:14px}.w-6\.5{width:26px}.w-8\!{width:32px!important}.w-a\!{width:auto!important}.w-full{width:100%}.after\:h-1:after{height:4px}.after\:w-1:after{width:4px}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.contents{display:contents}.hidden{display:none}.visible{visibility:visible}.collapse{visibility:collapse}.cursor-pointer{cursor:pointer}.cursor-crosshair{cursor:crosshair}.cursor-s-resize{cursor:s-resize}.cursor-w-resize{cursor:w-resize}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.select-none{-webkit-user-select:none;user-select:none}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.uppercase{text-transform:uppercase}.shadow-sm{--un-shadow:0 1px 3px 0 var(--un-shadow-color,#0000001a),0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:0 20px 25px -5px var(--un-shadow-color,#0000001a),0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.hover\:shadow-md:hover{--un-shadow:0 4px 6px -1px var(--un-shadow-color,#0000001a),0 2px 4px -2px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.translate-x--1\/2{--un-translate-x:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-x-1\/2{--un-translate-x:50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-y--1\/2{--un-translate-y:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.hover\:scale-110:hover{--un-scale-x:110%;--un-scale-y:110%;scale:var(--un-scale-x)var(--un-scale-y)}.transform{transform:var(--un-rotate-x)var(--un-rotate-y)var(--un-rotate-z)var(--un-skew-x)var(--un-skew-y)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.duration-200{--un-duration:.2s;transition-duration:.2s}.duration-300{--un-duration:.3s;transition-duration:.3s}.items-start{align-items:flex-start}.items-center{align-items:center}.box-border{box-sizing:border-box}.inset-0{inset:0}.bottom-0{bottom:0}.left--0,.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\/2{top:50%}.justify-end{justify-content:flex-end}.justify-end\!{justify-content:flex-end!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.z--1{z-index:-1}.z-1{z-index:1}.z-2{z-index:2}.z-9{z-index:9}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.of-y-auto{overflow-y:auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.filter{filter:var(--un-blur,)var(--un-brightness,)var(--un-contrast,)var(--un-grayscale,)var(--un-hue-rotate,)var(--un-invert,)var(--un-saturate,)var(--un-sepia,)var(--un-drop-shadow,)}.table{display:table}.table-cell{display:table-cell}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal,)var(--un-slashed-zero,)var(--un-numeric-figure,)var(--un-numeric-spacing,)var(--un-numeric-fraction,)}:where(.space-y-5>:not(:last-child)){--un-space-y-reverse:0;margin-block-start:calc(calc(4px*5)*var(--un-space-y-reverse));margin-block-end:calc(calc(4px*5)*calc(1 - var(--un-space-y-reverse)))}@supports (color:color-mix(in lab, red, red)){.text-gray-400{color:color-mix(in oklab,var(--colors-gray-400)var(--un-text-opacity),transparent)}.text-gray-500{color:color-mix(in oklab,var(--colors-gray-500)var(--un-text-opacity),transparent)}.text-gray-800{color:color-mix(in oklab,var(--colors-gray-800)var(--un-text-opacity),transparent)}.text-white{color:color-mix(in oklab,var(--colors-white)var(--un-text-opacity),transparent)}.hover\:text-red-500:hover{color:color-mix(in oklab,var(--colors-red-500)var(--un-text-opacity),transparent)}.c-blue{color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray-500{color:color-mix(in oklab,var(--colors-gray-500)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in oklab,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in oklab,var(--colors-red-DEFAULT)75%,transparent)}.outline-blue{outline-color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.border-gray\/20{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}.backdrop\:bg-gray\/50::backdrop{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)50%,transparent)}.bg-blue-600{background-color:color-mix(in oklab,var(--colors-blue-600)var(--un-bg-opacity),transparent)}.bg-blue\/20\!{background-color:color-mix(in oklab,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in oklab,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in oklab,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in oklab,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.hover\:bg-black\/8:hover{background-color:color-mix(in oklab,var(--colors-black)8%,transparent)}.hover\:bg-blue-700:hover{background-color:color-mix(in oklab,var(--colors-blue-700)var(--un-bg-opacity),transparent)}.hover\:bg-gray-300:hover{background-color:color-mix(in oklab,var(--colors-gray-300)var(--un-bg-opacity),transparent)}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Portal, addEventListener, className, createComponent, delegateEvents, effect, insert, style, template, use } from "solid-js/web";
|
|
2
|
+
import { delay } from "es-toolkit";
|
|
3
|
+
var _tmpl$ = /* @__PURE__ */ template("<dialog><div class=\"p-3 border-b border-gray/20\"></div><div class=\"flex justify-end gap-2 p-3 border-t border-gray/20\"><button type=button class=\"px-3 py-1.5 bg-gray-200 text-gray-800 rounded-lg hover:bg-gray-300 transition-all duration-200 shadow-sm hover:shadow-md flex items-center gap-1.5 text-sm\">Cancel</button><button type=button class=\"px-3 py-1.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-all duration-200 shadow-sm hover:shadow-md flex items-center gap-1.5 text-sm\">Confirm");
|
|
4
|
+
const Dialog = (l) => {
|
|
5
|
+
let d = () => l.onCancel?.();
|
|
6
|
+
return createComponent(Portal, {
|
|
7
|
+
get mount() {
|
|
8
|
+
return document.body;
|
|
9
|
+
},
|
|
10
|
+
get children() {
|
|
11
|
+
var e = _tmpl$(), c = e.firstChild, f = c.nextSibling, p = f.firstChild, m = p.nextSibling;
|
|
12
|
+
return addEventListener(e, "close", l.onClose), e.addEventListener("cancel", d), e.$$click = (e) => e.target == e.currentTarget && d(), use((e) => delay(0).then(() => e?.showModal?.()), e), insert(c, () => l.title), insert(e, () => l.children, f), p.$$click = d, addEventListener(m, "click", l.onOk, !0), effect((s) => {
|
|
13
|
+
var c = `in-dialog fixed inset-0 ma backdrop:bg-gray/50 ${l.class}`, u = l.style;
|
|
14
|
+
return c !== s.e && className(e, s.e = c), s.t = style(e, u, s.t), s;
|
|
15
|
+
}, {
|
|
16
|
+
e: void 0,
|
|
17
|
+
t: void 0
|
|
18
|
+
}), e;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
delegateEvents(["click"]);
|
|
23
|
+
export { Dialog };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
2
|
import type { TableStore } from '..';
|
|
3
3
|
export declare function solidComponent<T extends (...arg: any[]) => JSX.Element>(comp: T): T;
|
|
4
4
|
export declare function renderComponent(Comp: any, props: any, store: TableStore): any;
|
package/dist/components/utils.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { createComponent } from "solid-js/web";
|
|
2
1
|
function solidComponent(e) {
|
|
3
2
|
return e.__solid = 1, e;
|
|
4
3
|
}
|
|
5
|
-
function renderComponent(t, n
|
|
6
|
-
if (!
|
|
7
|
-
let
|
|
8
|
-
return
|
|
4
|
+
function renderComponent(e, t, n) {
|
|
5
|
+
if (!e) return null;
|
|
6
|
+
let r = typeof e;
|
|
7
|
+
return r === "string" || r === "number" || e.__solid || (e = n.props.renderer(e)), r === "function" ? e(t) : e;
|
|
9
8
|
}
|
|
10
9
|
export { renderComponent, solidComponent };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import './plugins/ResizePlugin';
|
|
|
12
12
|
import './plugins/DragPlugin';
|
|
13
13
|
import './plugins/RowGroupPlugin';
|
|
14
14
|
import './plugins/ExpandPlugin';
|
|
15
|
-
import './plugins/SortPlugin';
|
|
15
|
+
import { type SortKey } from './plugins/SortPlugin';
|
|
16
16
|
import './plugins/CellMergePlugin';
|
|
17
17
|
import './plugins/TreePlugin';
|
|
18
18
|
import './plugins/HeaderGroup';
|
|
@@ -24,6 +24,8 @@ import './plugins/TooltipPlugin';
|
|
|
24
24
|
import './plugins/KeyEachPlugin';
|
|
25
25
|
import './plugins/PaginationPlugin';
|
|
26
26
|
import './plugins/BranchGraphPlugin';
|
|
27
|
+
import type { AndOrNode } from './components/AndOr';
|
|
28
|
+
import './plugins/OrmPlugin';
|
|
27
29
|
export declare const Ctx: import("solid-js").Context<{
|
|
28
30
|
props: TableProps2;
|
|
29
31
|
store: TableStore;
|
|
@@ -78,6 +80,15 @@ export interface TableProps {
|
|
|
78
80
|
x?: number | string;
|
|
79
81
|
};
|
|
80
82
|
newRow?: (i: number) => any;
|
|
83
|
+
request?: (params: {
|
|
84
|
+
page?: number;
|
|
85
|
+
pageSize?: number;
|
|
86
|
+
filters?: AndOrNode[];
|
|
87
|
+
sorts?: SortKey[];
|
|
88
|
+
}) => Promise<{
|
|
89
|
+
data: any[];
|
|
90
|
+
total?: number;
|
|
91
|
+
}>;
|
|
81
92
|
Scroll?: Component<any>;
|
|
82
93
|
Table?: Component<any>;
|
|
83
94
|
Thead?: Component<any>;
|
|
@@ -134,6 +145,7 @@ export interface TDProps {
|
|
|
134
145
|
children?: JSX.Element;
|
|
135
146
|
rowspan?: number;
|
|
136
147
|
colspan?: number;
|
|
148
|
+
[key: string]: any;
|
|
137
149
|
}
|
|
138
150
|
type Obj = Record<string | symbol, any>;
|
|
139
151
|
export interface TableColumn extends Obj {
|
package/dist/index.js
CHANGED
|
@@ -26,15 +26,17 @@ import { TooltipPlugin } from "./plugins/TooltipPlugin.js";
|
|
|
26
26
|
import { KeyEachPlugin } from "./plugins/KeyEachPlugin.js";
|
|
27
27
|
import { PaginationPlugin } from "./plugins/PaginationPlugin.js";
|
|
28
28
|
import { BranchGraphPlugin } from "./plugins/BranchGraphPlugin.js";
|
|
29
|
+
import { OrmPlugin } from "./plugins/OrmPlugin.js";
|
|
29
30
|
import loading_bold_default from "./loading-bold.js";
|
|
30
31
|
import { className, createComponent, effect, insert, memo, mergeProps, spread, template, use } from "solid-js/web";
|
|
31
|
-
import { $PROXY, For, batch, createComputed, createContext, createEffect, createMemo, createRenderEffect, createSignal, getOwner, mapArray, mergeProps as mergeProps$1, onCleanup, onMount, runWithOwner, useContext } from "solid-js";
|
|
32
|
+
import { $PROXY, For, batch, createComputed, createContext, createEffect, createMemo, createRenderEffect, createResource, createSignal, getOwner, mapArray, mergeProps as mergeProps$1, onCleanup, onMount, runWithOwner, useContext } from "solid-js";
|
|
32
33
|
import { createMutable } from "solid-js/store";
|
|
33
34
|
import { combineProps } from "@solid-primitives/props";
|
|
34
35
|
import { createLazyMemo } from "@solid-primitives/memo";
|
|
35
36
|
import { createElementSize, makeResizeObserver } from "@solid-primitives/resize-observer";
|
|
36
37
|
import { createScrollPosition } from "@solid-primitives/scroll";
|
|
37
38
|
import { difference, isEqual, memoize, sumBy, uniq } from "es-toolkit";
|
|
39
|
+
import { get, set } from "es-toolkit/compat";
|
|
38
40
|
var _tmpl$ = /* @__PURE__ */ template("<div>"), _tmpl$2 = /* @__PURE__ */ template("<table>"), _tmpl$3 = /* @__PURE__ */ template("<thead>"), _tmpl$4 = /* @__PURE__ */ template("<tbody>"), _tmpl$5 = /* @__PURE__ */ template("<tr>"), _tmpl$6 = /* @__PURE__ */ template("<th>"), _tmpl$7 = /* @__PURE__ */ template("<td>"), _tmpl$8 = /* @__PURE__ */ template("<div class=data-table__layers>"), _tmpl$9 = /* @__PURE__ */ template("<div class=data-table__empty>No data"), _tmpl$0 = /* @__PURE__ */ template("<div class=data-table__loading>");
|
|
39
41
|
const Ctx = createContext({
|
|
40
42
|
props: {},
|
|
@@ -143,12 +145,12 @@ var THead = () => {
|
|
|
143
145
|
return K();
|
|
144
146
|
},
|
|
145
147
|
get value() {
|
|
146
|
-
return K()
|
|
148
|
+
return get(K(), J().id);
|
|
147
149
|
},
|
|
148
|
-
onChange: (g) =>
|
|
149
|
-
...K()
|
|
150
|
-
|
|
151
|
-
}
|
|
150
|
+
onChange: (g) => {
|
|
151
|
+
let q = { ...K() };
|
|
152
|
+
set(q, J().id, g), G.commands.rowChange(q);
|
|
153
|
+
}
|
|
152
154
|
})
|
|
153
155
|
});
|
|
154
156
|
}
|
|
@@ -221,7 +223,7 @@ function BasePlugin() {
|
|
|
221
223
|
};
|
|
222
224
|
},
|
|
223
225
|
rewriteProps: {
|
|
224
|
-
data: ({ data: g = [] }) => g,
|
|
226
|
+
data: ({ data: g = [] }, { store: G }) => g,
|
|
225
227
|
columns: ({ columns: g = [] }) => g,
|
|
226
228
|
newRow: ({ newRow: g }, { store: G }) => function() {
|
|
227
229
|
let K = g?.(...arguments) || {};
|
|
@@ -444,6 +446,21 @@ const defaultsPlugins = [
|
|
|
444
446
|
TooltipPlugin,
|
|
445
447
|
KeyEachPlugin,
|
|
446
448
|
PaginationPlugin,
|
|
447
|
-
BranchGraphPlugin
|
|
449
|
+
BranchGraphPlugin,
|
|
450
|
+
{
|
|
451
|
+
name: "request",
|
|
452
|
+
priority: Infinity,
|
|
453
|
+
store: (g) => ({}),
|
|
454
|
+
rewriteProps: { data: ({ data: g = [] }, { store: G }) => G.props.request ? (G._req ??= runWithOwner(G.owner, () => createResource(() => G.props.request({
|
|
455
|
+
filters: G.props.filter?.value,
|
|
456
|
+
sorts: G.props.sort?.value,
|
|
457
|
+
page: G.props.pagination?.value,
|
|
458
|
+
pageSize: G.props.pagination?.pageSize
|
|
459
|
+
}), { initialValue: {
|
|
460
|
+
data: [],
|
|
461
|
+
total: 0
|
|
462
|
+
} })))[0]().data : g }
|
|
463
|
+
},
|
|
464
|
+
OrmPlugin
|
|
448
465
|
];
|
|
449
466
|
export { Ctx, Intable, src_default as default, defaultsPlugins };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { chooseFile, resolveOptions, unFn } from "../utils.js";
|
|
2
2
|
import { mergeProps as mergeProps$2 } from "../mergeProps2.js";
|
|
3
3
|
import { Checkbox, Files } from "./RenderPlugin/components.js";
|
|
4
|
-
import Textarea_default from "../components/Textarea.js";
|
|
5
4
|
import { addEventListener, createComponent, delegateEvents, effect, insert, memo, spread, template, use } from "solid-js/web";
|
|
6
5
|
import { createEffect, createMemo, createRoot, createSignal, on, onCleanup } from "solid-js";
|
|
7
6
|
import { createMutable } from "solid-js/store";
|
|
@@ -12,113 +11,112 @@ const EditablePlugin = {
|
|
|
12
11
|
name: "editable",
|
|
13
12
|
store: () => ({ editors: { ...editors } }),
|
|
14
13
|
rewriteProps: {
|
|
15
|
-
editable: ({ editable: e }, { store:
|
|
16
|
-
let
|
|
17
|
-
return !!
|
|
14
|
+
editable: ({ editable: e }, { store: f }) => (m) => {
|
|
15
|
+
let h = [m.col.editable, e].filter((e) => e != null);
|
|
16
|
+
return !!h.length && h.every((e) => unFn(e, m)) && !m.data[f.internal] && !m.col[f.internal];
|
|
18
17
|
},
|
|
19
|
-
Td: ({ Td: e }, { store:
|
|
20
|
-
let { props:
|
|
21
|
-
return createMemo(() =>
|
|
22
|
-
let
|
|
18
|
+
Td: ({ Td: e }, { store: f }) => (h) => {
|
|
19
|
+
let { props: g } = f, y, b = () => unFn(f.props.editable, h);
|
|
20
|
+
return createMemo(() => b() ? unFn(() => {
|
|
21
|
+
let p = "", [S, C] = createSignal(!1), D = () => (([e, f]) => h.x == e && h.y == f)(f.selected.start || []), O = () => b() && !S() && D(), [k, A] = createSignal(!1), j = createAsyncMemo(() => {
|
|
23
22
|
if (S()) {
|
|
24
|
-
let e = createMemo(() => JSON.stringify(
|
|
25
|
-
createEffect(on(e, () =>
|
|
26
|
-
let
|
|
27
|
-
props:
|
|
28
|
-
col:
|
|
29
|
-
eventKey:
|
|
30
|
-
data:
|
|
31
|
-
value:
|
|
23
|
+
let e = createMemo(() => JSON.stringify(f.selected ?? "{}"));
|
|
24
|
+
createEffect(on(e, () => C(!1), { defer: !0 })), P.w = y.getBoundingClientRect().width, P.h = y.getBoundingClientRect().height;
|
|
25
|
+
let m = !1, _ = h.data[h.col.id], v = ((e) => typeof e == "string" ? f.editors[e] : e)(h.col.editor ?? h.col.type ?? (h.col.enum && "select")) ?? (_ == null ? null : f.editors[typeof _]) ?? f.editors.text, b = {
|
|
26
|
+
props: h.col.editorProps,
|
|
27
|
+
col: h.col,
|
|
28
|
+
eventKey: p,
|
|
29
|
+
data: h.data,
|
|
30
|
+
value: _,
|
|
32
31
|
ok: async () => {
|
|
33
|
-
await
|
|
32
|
+
await M(x.getValue()), C(!1);
|
|
34
33
|
},
|
|
35
|
-
cancel: () => (
|
|
36
|
-
onChange: (e) => S() &&
|
|
37
|
-
},
|
|
38
|
-
return queueMicrotask(() =>
|
|
39
|
-
!
|
|
40
|
-
...
|
|
41
|
-
[
|
|
42
|
-
}),
|
|
43
|
-
}), [
|
|
34
|
+
cancel: () => (m = !0, C(!1)),
|
|
35
|
+
onChange: (e) => S() && M(e).catch(() => {})
|
|
36
|
+
}, x = v(b);
|
|
37
|
+
return queueMicrotask(() => x.focus?.()), onCleanup(() => {
|
|
38
|
+
!m && x.getValue() !== _ && f.commands.rowChange({
|
|
39
|
+
...g.data[h.y],
|
|
40
|
+
[h.col.id]: x.getValue()
|
|
41
|
+
}), m || M(x.getValue()).catch(() => {}), p = "", x.destroy();
|
|
42
|
+
}), [b, x];
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
|
-
async function
|
|
45
|
+
async function M(e) {
|
|
47
46
|
try {
|
|
48
|
-
|
|
47
|
+
A(!0), await f.validateCell(e, h.data, h.col);
|
|
49
48
|
} finally {
|
|
50
|
-
|
|
49
|
+
A(!1);
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
|
-
let
|
|
52
|
+
let N, P = createMutable({
|
|
54
53
|
w: 0,
|
|
55
54
|
h: 0
|
|
56
|
-
}),
|
|
57
|
-
ref: (e) => (
|
|
55
|
+
}), F = mergeProps$2(h, {
|
|
56
|
+
ref: (e) => (y = e, h.ref?.(e)),
|
|
58
57
|
get class() {
|
|
59
|
-
return [S() ? "is-editing" : "",
|
|
58
|
+
return [S() ? "is-editing" : "", h.class].filter(Boolean).join(" ");
|
|
60
59
|
},
|
|
61
60
|
get style() {
|
|
62
|
-
return [S() ? `width: ${
|
|
61
|
+
return [S() ? `width: ${P.w}px; height: ${P.h}px; ` : "", h.style].filter(Boolean).join(" ");
|
|
63
62
|
},
|
|
64
|
-
onClick: (e) => (
|
|
65
|
-
onDblClick: (e) => (
|
|
66
|
-
onKeyDown: (e) => (e.key == "Escape" && M()?.[0].cancel(), g.onKeyDown?.(e))
|
|
63
|
+
onClick: (e) => (N?.focus?.(), h.onClick?.(e)),
|
|
64
|
+
onDblClick: (e) => (C(b()), h.onDblClick?.(e))
|
|
67
65
|
});
|
|
68
|
-
return createComponent(e, mergeProps$2(
|
|
69
|
-
return [() =>
|
|
66
|
+
return createComponent(e, mergeProps$2(F, { get children() {
|
|
67
|
+
return [() => j()?.[1]?.dialog ? [memo(() => h.children), memo(() => j()?.[1]?.el)] : j()?.[1]?.el ? (() => {
|
|
70
68
|
var e = _tmpl$();
|
|
71
69
|
return addEventListener(e, "keydown", (e) => {
|
|
72
|
-
e.stopPropagation(), e.key == "Enter" && !e.shiftKey && (
|
|
73
|
-
}), addEventListener(e, "pointerdown", (e) => e.stopPropagation()), insert(e, () =>
|
|
74
|
-
var e = memo(() => !!
|
|
70
|
+
e.stopPropagation(), e.key == "Enter" && !e.shiftKey && (j()?.[0].ok(), e.preventDefault()), e.key == "Escape" && j()?.[0].cancel();
|
|
71
|
+
}), addEventListener(e, "pointerdown", (e) => e.stopPropagation()), insert(e, () => j()?.[1]?.el, null), insert(e, (() => {
|
|
72
|
+
var e = memo(() => !!k());
|
|
75
73
|
return () => e() && _tmpl$2();
|
|
76
74
|
})(), null), e;
|
|
77
|
-
})() :
|
|
75
|
+
})() : h.children, () => O() && (() => {
|
|
78
76
|
var e = _tmpl$3();
|
|
79
77
|
return e.addEventListener("compositionend", () => {
|
|
80
|
-
|
|
78
|
+
C(!0);
|
|
81
79
|
}), e.$$input = (e) => {
|
|
82
|
-
|
|
80
|
+
p = e.target.value, C(!e.isComposing);
|
|
83
81
|
}, e.$$keydown = (e) => {
|
|
84
82
|
e.key == " " && e.preventDefault();
|
|
85
83
|
}, use((e) => {
|
|
86
|
-
|
|
84
|
+
N = e, delay(0).then(() => e.focus({ preventScroll: !0 }));
|
|
87
85
|
}, e), e;
|
|
88
86
|
})()];
|
|
89
87
|
} }));
|
|
90
|
-
}) : createComponent(e,
|
|
88
|
+
}) : createComponent(e, h));
|
|
91
89
|
}
|
|
92
90
|
}
|
|
93
91
|
};
|
|
94
|
-
var createEditor = (e,
|
|
95
|
-
let
|
|
92
|
+
var createEditor = (e, p, h) => ({ eventKey: g, value: _, col: y, ok: b, cancel: x, props: S, onChange: C }) => createRoot((x) => {
|
|
93
|
+
let w = p?.out ?? ((e) => e), [T, E] = createSignal(g || _), D;
|
|
96
94
|
return createComponent(e, mergeProps$2({
|
|
97
|
-
ref: (e) =>
|
|
95
|
+
ref: (e) => D = e,
|
|
98
96
|
class: "relative block px-2 size-full z-9 box-border resize-none outline-0",
|
|
99
97
|
get value() {
|
|
100
|
-
return
|
|
98
|
+
return T();
|
|
101
99
|
},
|
|
102
|
-
onInput: (e) => (
|
|
103
|
-
onChange: (e) => (
|
|
100
|
+
onInput: (e) => (E(w(e instanceof Event ? e.target.value : e)), C?.(T())),
|
|
101
|
+
onChange: (e) => (E(w(e instanceof Event ? e.target.value : e)), C?.(T()), h && b()),
|
|
104
102
|
get options() {
|
|
105
103
|
return memo(() => !!y.enum)() ? resolveOptions(y.enum ?? []) : void 0;
|
|
106
104
|
}
|
|
107
|
-
},
|
|
108
|
-
|
|
105
|
+
}, p, S)), setTimeout(() => {
|
|
106
|
+
h && D?.showPicker?.();
|
|
109
107
|
}, 0), {
|
|
110
|
-
el:
|
|
111
|
-
getValue:
|
|
112
|
-
focus: () =>
|
|
113
|
-
destroy:
|
|
108
|
+
el: D,
|
|
109
|
+
getValue: T,
|
|
110
|
+
focus: () => D.focus(),
|
|
111
|
+
destroy: x
|
|
114
112
|
};
|
|
115
113
|
}), Input = (e) => (() => {
|
|
116
|
-
var
|
|
117
|
-
return spread(
|
|
114
|
+
var f = _tmpl$4();
|
|
115
|
+
return spread(f, e, !1, !1), f;
|
|
118
116
|
})();
|
|
119
117
|
const editors = {
|
|
120
118
|
text: createEditor(Input),
|
|
121
|
-
textarea: createEditor((e) => createComponent(
|
|
119
|
+
textarea: createEditor((e) => createComponent(Textarea, mergeProps$2({ autosize: {
|
|
122
120
|
minRows: 2,
|
|
123
121
|
maxRows: 3
|
|
124
122
|
} }, e, { get class() {
|
|
@@ -138,30 +136,30 @@ const editors = {
|
|
|
138
136
|
color: createEditor(Input, { type: "color" }),
|
|
139
137
|
tel: createEditor(Input, { type: "tel" }),
|
|
140
138
|
password: createEditor(Input, { type: "password" }),
|
|
141
|
-
file: createEditor((
|
|
139
|
+
file: createEditor((f) => createComponent(Files, mergeProps$2(f, {
|
|
142
140
|
class: "relative z-9 outline-2 outline-blue min-h-a! h-a! p-1 bg-#fff",
|
|
143
|
-
onAdd: () => chooseFile({ multiple: !0 }).then((e) =>
|
|
141
|
+
onAdd: () => chooseFile({ multiple: !0 }).then((e) => f.onChange([...f.value || [], ...e.map((e) => ({
|
|
144
142
|
name: e.name,
|
|
145
143
|
size: e.size
|
|
146
144
|
}))]))
|
|
147
145
|
}))),
|
|
148
146
|
checkbox: createEditor((e) => (() => {
|
|
149
|
-
var
|
|
150
|
-
return typeof
|
|
147
|
+
var f = _tmpl$5(), p = e.ref;
|
|
148
|
+
return typeof p == "function" ? use(p, f) : e.ref = f, insert(f, createComponent(Checkbox, mergeProps$2(e, {
|
|
151
149
|
ref: () => {},
|
|
152
150
|
onInput: () => {},
|
|
153
151
|
class: "mx-3!"
|
|
154
|
-
}))),
|
|
152
|
+
}))), f;
|
|
155
153
|
})()),
|
|
156
154
|
select: createEditor((e) => (() => {
|
|
157
|
-
var
|
|
158
|
-
return spread(
|
|
159
|
-
var
|
|
160
|
-
return () =>
|
|
161
|
-
})(), null), insert(
|
|
162
|
-
var
|
|
163
|
-
return insert(
|
|
164
|
-
})()), null), effect(() =>
|
|
155
|
+
var f = _tmpl$6();
|
|
156
|
+
return spread(f, e, !1, !0), insert(f, (() => {
|
|
157
|
+
var f = memo(() => !e.multiple);
|
|
158
|
+
return () => f() && _tmpl$7();
|
|
159
|
+
})(), null), insert(f, () => e.options?.map((e) => (() => {
|
|
160
|
+
var f = _tmpl$8();
|
|
161
|
+
return insert(f, () => e.label), effect(() => f.value = e.value), f;
|
|
162
|
+
})()), null), effect(() => f.value = e.value), f;
|
|
165
163
|
})(), {}, !0)
|
|
166
164
|
};
|
|
167
165
|
editors.boolean = editors.checkbox, delegateEvents(["keydown", "input"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Plugin } from '..';
|
|
1
|
+
import type { Plugin, TableColumn } from '..';
|
|
2
2
|
import type { AndOrNode } from '../components/AndOr';
|
|
3
3
|
import { useControlled } from '../hooks/useControlled';
|
|
4
4
|
declare module '../index' {
|
|
@@ -19,4 +19,5 @@ declare module '../index' {
|
|
|
19
19
|
filter: ReturnType<typeof useControlled<Exclude<TableProps['filter'], undefined>>>;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
export declare function passesFilters(row: any, filters: AndOrNode[], columns: TableColumn[]): boolean;
|
|
22
23
|
export declare const FilterPlugin: Plugin;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Plugin } from '..';
|
|
2
|
+
declare module '../index' {
|
|
3
|
+
interface TableProps {
|
|
4
|
+
}
|
|
5
|
+
interface TableColumn {
|
|
6
|
+
/**
|
|
7
|
+
* 外键对象的属性。
|
|
8
|
+
* 会自动将外键对象 组装到当前行数据中,便于在表格中显示外键对象中的其他属性。
|
|
9
|
+
*/
|
|
10
|
+
foreignField?: string;
|
|
11
|
+
}
|
|
12
|
+
interface TableStore {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export declare const OrmPlugin: Plugin;
|