PageSourceSearch

https://app.selectfromuser.com/assets/SingleTableCell-542b125c.js

js selectfromuser.com collected 2026-09-30 12:24:08 UTC 6,884 bytes, 1 lines download raw bytes

1import{m as l}from"./vendor-d2a191fb.js";import s from"./ParamBlockSingle-8c51d611.js";import{n as o}from"./_plugin-vue2_normalizer-2bbd088e.js";import"./ParamSheet-f95f7454.js";import"./TextViewer-e8a5c13e.js";import"./Monaco-1c8aabbb.js";import"./ParamSheet.vue_vue_type_style_index_0_scoped_51dcd898_lang-4ed993c7.js";import"./ParamAddress-891dce27.js";import"./ParamAddress.vue_vue_type_style_index_0_scoped_a25e673f_lang-4ed993c7.js";import"./AdminUpload-be12f2d4.js";import"./ParamListBox-a2d293c9.js";import"./OpenIndicator-573596e2.js";import"./Tiptap-d38139b9.js";var r=function(){var e=this,n=e._self._c;return n("span",{ref:"el",staticClass:"block hover:bg-zinc-200/50 cursor-pointer cell-focus focus-visible:outline-2 focus:outline-blue-500 focus-visible:outline-blue-500",staticStyle:{margin:"-0.75em -0.75em",padding:"0.75em","min-height":"3em"},attrs:{tabindex:`${e.index}:${e.column.field}`},on:{click:e.select,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&t.button!==2?null:e.right.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&t.button!==0?null:e.left.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"home",void 0,t.key,void 0)?null:e.left.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"end",void 0,t.key,void 0)?null:e.right.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.up.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.down.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enter.apply(null,arguments)}]}},[n("VDropdown",{attrs:{placement:"bottom-start",distance:e.height,skidding:-19,triggers:[],shown:e.shown,"show-group":"table-cell","instant-move":"",container:"body","
1skip-transition":!0},on:{show:e.show,"apply-show":e.apply_show,"update:shown":function(t){e.shown=t},hide:e.hide},scopedSlots:e._u([{key:"popper",fn:function(){return[n("div",{staticStyle:{padding:"1px","margin-bottom":"-1px"},style:{width:`calc(min(90vw, ${e.width}))`,minWidth:"200px",minHeight:-e.height+"px"}},[n("form",{on:{submit:function(t){return t.preventDefault(),e.leave.apply(null,arguments)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.esc.apply(null,arguments)}}},[e.column.editable?[n("param-block-single",{key:`${e.index}:${e.column.field}`,ref:"input",staticClass:"-mb-1",attrs:{param:e.param,sub_ref:`${e.index}:${e.column.field}:input`,defaultFormClass:"w-100 border-zinc-400 border rounded-lg"}})]:[n("div",{staticClass:"w-100 border-zinc-400 border rounded-lg focus-visible:outline-0",staticStyle:{margin:"-1px -1px 0px -1px","min-height":"3em",padding:"0.75em","font-size":"13px","max-width":"90vw","max-height":"10rem",overflow:"scroll","white-space":"pre-wrap"},attrs:{id:`${e.index}:${e.column.field}:input`,tabindex:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.enter_down.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),t.stopPropagation(),e.enter_right.apply(null,arguments))}]}},[e._v(e._s(e.value))])]],2)])]},proxy:!0}])},[n("span",{staticClass:"block",staticStyle:{"min-height":"1rem"}},[e._t("default"),e.loading?[n("span",{staticClass:"text-blue-500 px-1 mdi mdi-loading mdi-spin"})]:e._e()],2)])],1)},u=[];const a={components:{ParamBlockSingle:s},computed:{},watch:{},data:()=>({shown:!1,width:"100px",height:0,update_value:null,param:{},select_queue:null,loading:!1}),props:["result","column","columns","value","selection","index","save_cell","row"],created(){this.param=Object.assign({},this.column,{value:this.value})},watch:{},mounted(){},methods:{input(i){},right(i){let e;if(i.code=="End")e=this.columns.length-1;else for(const t in this.result.cols)if(this.result.cols[t].field==this.column.field){e=+t+1;break}const n=this.result.cols[e];if(n){const t=document.querySelector(`[tabindex="${`${this.index}:${n.field}`}"]`);return t==null||t.focus(),i.stopPropagation(),i.preventDefault(),!1}},left(i){let e;if(i.code=="Home")e=0;else for(const t in this.result.cols)if(this.result.cols[t].field==this.column.field){e=+t-1;break}const n=this.result.cols[e];if(n){const t=document.querySelector(`[tabindex="${`${this.index}:${n.field}`}"]`);return t==null||t.focus(),i.stopPropagation(),i.preventDefault(),!1}},down(i){const e=document.querySelector(`[tabindex="${`${this.index+1}:${this.column.field}`}"]`);return e==null||e.focus(),i.stopPropagation(),i.preventDefault(),!1},up(i){const e=document.querySelector(`[tabindex="${`${this.index-1}:${this.column.field}`}"]`);return e==null||e.focus(),i.stopPropagation(),i.preventDefault(),!1},select(i){const e=document.querySelector(`[tabindex="${`${this.index}:${this.column.field}`}"]`);if(e==document.activeElement)return this.enter();e==null||e.focus(),i.stopPropagation(),i.preventDefault()},enter(i){const e=`${this.index}:${this.column.field}`;this.selection.target=e,this.shown=!0},leave(i){l()},esc(){this.param.value=this.value,l()},hide(i){const e=`${this.index}:${this.column.field}`;this.selection.target!=e&&this.update_target!=e||(this.update_value=this.value!=this.param.value?this.param.value:null,this.enter_input(this.update_target))},enter_down(i){this.shown=!1,setTimeout(()=>{i.shiftKey?this.up(i):this.down(i)},30)},enter_right(i){this.shown=!1,setTimeout(()=>{i.shiftKey?this.left(i):this.right(i)},30)},show(){this.width=this.$refs.el.offsetWidth+"px",this.height=-this.$refs.el.offsetHeight,this.update_target=`${this.index}:${this.column.field}`},apply_show(){setTimeout(()=>{const i=document.getElementById(`${this.selection.target}:input`);i==null||i.focus()},200)},input(i){if(!this.column.updateOptions){i.target.value=this.value;return}this.update_value=i.target.value},async enter_input(i){try{if(this.update_value===null){this.selection.target==i&&setTimeout(()=>{document.querySelector(`[tabindex="${i}"]`).focus()},0);return}if(!this.column.updateOptions){this.selection.target==i&&setTimeout(()=>{document.querySelector(`[tabindex="${i}"]`).focus()},0);return}this.$emit("update",this.update_value),this.selection.target==i&&setTimeout(()=>{document.querySelector(`[tabindex="${i}"]`).focus()},0),this.loading=!0,await this.save_cell(this.column,this.update_value,this.row,this.result.block,this.result.block_idx,this.result),this.update_value=null}catch(e){this.$toast.error(e.message)}finally{this.loading=!1}}}};var d=o(a,r,u,!1,null,"3996d302",null,null);const v=d.exports;export{v as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.