Home
last modified time | relevance | path

Searched defs:constructor (Results 1 – 25 of 97) sorted by relevance

1234

/plugin/refnotes/
H A Dadmin.js6 constructor(sentinel) { method in refnotes_admin.NameMap
/plugin/diagramsnet/lib/
H A Dworkbox-9fe249eb.js1 …n e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,… method in AnonymousFunction8b687b4f0100.o
H A Dworkbox-f163abaa.js1 …n e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,… method in AnonymousFunction9744a2ea0100.o
H A Dworkbox-bed83ea8.js1 …n e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,… method in AnonymousFunction118ed2d90100.r
/plugin/aichat/script/
H A DAIChatButton.js6 constructor() { method in AIChatButton
H A DAIChatChat.js9 constructor() { method in AIChatChat
/plugin/encryptedpasswords/script/
H A DEditorHandling.js13 constructor(aes) { method in EditorHandling
H A DPageHandling.js13 constructor(aes) { method in PageHandling
/plugin/diagrams/script/
H A DDiagramsMediaManager.js9 constructor() { method in DiagramsMediaManager
H A DDiagramsForm.js23 constructor(attributes, onsubmit, onclose = null) { method in DiagramsForm
H A DDiagramsEditor.js47 constructor(postSaveCallback = null) { method in DiagramsEditor
/plugin/pwaoffline/node_modules/idb-keyval/dist/
H A Didb-keyval-iife.min.js1 var idbKeyval=function(e){"use strict";class t{constructor(e="keyval-store",t="keyval"){this.storeN… method in idbKeyval.t
/plugin/diagramsnet/lib/plugins/webcola/
H A DmxWebColaLayout.js39 mxWebColaLayout.prototype.constructor = mxWebColaLayout; method in mxWebColaLayout
/plugin/combo/resources/snippet/js/
H A Dcombo-search-box.js20 constructor(idSelector, getSuggestedItems) { method in combos.searchBox
/plugin/combo/resources/library/combo/
H A Dcombo.min.js1 (function(u,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("bootstrap")):typeof define=="function"&&define.amd?define(["exports","bootstrap"],c):(u=typeof globalThis<"u"?globalThis:u||self,c(u.combo={},u.bootstrap))})(this,function(u,c){"use strict";var et=Object.defineProperty;var it=(u,c,H)=>c in u?et(u,c,{enumerable:!0,configurable:!0,writable:!0,value:H}):u[c]=H;var i=(u,c,H)=>(it(u,typeof c!="symbol"?c+"":c,H),H);class H{static toBoolean(t){return typeof t=="boolean"?t:t==="true"}}let F;class E{static getLogger(){return F===void 0&&(F=new E),F}error(t){if(console.error(t),process.env.NODE_ENV!=="production")throw new Error(t)}}let J=g=>crypto.getRandomValues(new Uint8Array(g)),q=(g,t,e)=>{let s=(2<<Math.log(g.length-1)/Math.LN2)-1,l=-~(1.6*s*t/g.length);return()=>{let r="";for(;;){let n=e(l),o=l;for(;o--;)if(r+=g[n[o]&s]||"",r.length===t)return r}}},G=(g,t)=>q(g,t,J);class ${static toHtmlId(t){return t.toString().replace(/[_.\s:\/\\]/g,"-")}static createRandomId(){return G("abcdefghijklmnopqrstuvwxyz",10)()}static createRandomIdWithPrefix(t){return t+"-"+this.createRandomId()}static toEntities(t){let e=[];for(let s=0;s<t.length;s++){let l=`&#${t.charCodeAt(s)};`;e.push(l)}return e.join("")}}class Q{static isString(t){return typeof t=="string"||t instanceof String}}const w=class{constructor(t){i(this,"tab","unknown");i(this,"mutable",!0);i(this,"values",[]);i(this,"defaultValues",[]);i(this,"multiple",!1);i(this,"children",{});i(this,"name");i(this,"type");i(this,"label");i(this,"url");i(this,"description");i(this,"parent");i(this,"domainValues");i(this,"width");this.name=t}getLabelAnchor(){if(this.getUrl()===void 0&&this.getDescription()===void 0)return this.getLabel();let t=this.getUrl();return this.getUrl()===void 0?(t="#",` method in AnonymousFunction75dc2f360100.w
4 </span>`):`<a href="${t}" title="${this.getDescription()}" data-bs-toggle="tooltip" style="text-decoration:none" target="_blank">${this.getLabel()}</a>`}setType(t){return this.type=t,this}setLabel(t){return this.label=t,this}setUrl(t){return this.url=t,this}addValue(t,e){return this.values.push(t),this.defaultValues.push(e),this}getType(){return this.type}getLabel(){return this.label===void 0?this.getName().split(/[_\-]/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):this.label}getUrl(){return this.url}getName(){return this.name}getDescription(){return this.description}getTab(){return this.tab}static createFromJson(t,e=null){t.hasOwnProperty("name")||E.getLogger().error("To create a form meta field, the name property is mandatory.");let s=t.name,l=w.createFromName(s);e!=null&&l.setParent(e);let r,n;for(let o in t){if(!t.hasOwnProperty(o))continue;let a=t[o];switch(o){case"name":continue;case"label":l.setLabel(a);continue;case"tab":l.setTab(a);continue;case"type":l.setType(a);continue;case"mutable":l.setMutable(a);continue;case"description":l.setDescription(a);continue;case"url":l.setUrl(a);continue;case"value":r=a;continue;case"default":n=a;continue;case"domain-values":l.setDomainValues(a);continue;case"multiple":l.setMultiple(a);continue;case"width":l.setControlWidth(a);continue;case"children":let p=a;for(let b in p){if(!p.hasOwnProperty(b))continue;let d=w.createFromJson(p[b],l);l.addChild(d)}continue;default:E.getLogger().error(`The property (${o}) of the form (${s}) is unknown`)}}return Array.isArray(r)?r.forEach((o,a)=>{let p=n[a];p!==void 0?l.addValue(o,p):l.addValue(o,"")}):l.addValue(r,n),l}setMultiple(t){return this.multiple=t,this}setParent(t){return this.parent=t,this}static createFromName(t){return new w(t)}isMutable(){return this.mutable}setTab(t){return this.tab=t,this}setMutable(t){return this.mutable=H.toBoolean(t),this}setDescription(t){return this.description=t,this}getDefaultValue(){return this.defaultValues[0]}getValue(){return this.values[0]}getDomainValues(){return this.domainValues}setDomainValues(t){if(!Array.isArray(t)){console.error(`The domains values should be an array. (${t}) is not an array`);return}return this.domainValues=t,this}setControlWidth(t){return this.width=t,this}getControlWidth(){return this.width===void 0&&this.parent!==void 0?12/this.parent.getChildren().length:this.width}getValues(){return this.values}getDefaultValues(){return this.defaultValues}getChildren(){return Object.values(this.children)}addChild(t){return this.children[t.getName()]=t,this}toHtmlLabel(t,e){let s=this.getLabelAnchor(),l;return this.getType()===w.BOOLEAN?l="form-check-label":l="col-form-label",typeof e<"u"&&(l=`${e} ${l}`),`<label for="${t}" class="${l}">${s}</label>`}toHtmlControl(t,e=null,s=null){let l=this.getType(),r=this.isMutable(),n=this.getDomainValues(),o,a;if(n!==void 0){a="select";let p="";s!==void 0&&(p=` (${s})`);let b="";this.getMultiple()&&(b="multiple"),a=`<select class="form-select" aria-label="${this.getLabel()}" name="${this.getName()}" id="${t}" ${b}>`;let d="";e===null&&(d="selected"),a+=`<option value="" ${d}>Default${p}</option>`;for(let h of n)h===e?d="selected":d="",a+=`<option value="${h}" ${d}>${h}</option>`;return a+="</select>",a}else{let p="No value";r&&(p=`Enter a ${this.getLabel()}`),s!=null&&(Q.isString(s)?p=$.toEntities(s):p=s);let b=`placeholder="${p}"`,d="",h,P=this.getName();r!==void 0&&!r?o="disabled":o="";let C="input",v="form-control",m="",A=3;switch(l){case w.DATE_TIME:h="datetime-local",e!==null?(e=e.slice(0,19),d=`value="${e}"`):!r&&s!==null&&(s=s.slice(0,19),d=`value="${s}"`),b="";break;case w.PARAGRAPH:C="textarea",e!==null&&(e=$.toEntities(e),d=`${e}`);break;case w.JSON:C="textarea",e!==null&&(typeof e=="object"&&(e=JSON.stringify(e,null,2)),e=$.toEntities(e),d=`${e}`),A=15;break;case w.BOOLEAN:h="checkbox",v="form-check-input",s!==null?(d=`value="${s}"`,e===s&&(m="checked")):e==="on"&&(m="checked"),b="";break;default:h="text",e!=null&&(d=`value="${e}"`)}switch(C){case"textarea":a=`<textarea id="${t}" name="${P}" class="${v}" rows="${A}" ${b} ${o}>${d}</textarea>`;break;default:case"input":a=`<input type="${h}" name="${P}" class="${v}" id="${t}" ${b} ${d} ${m} ${o}/>`;break}return a}}toJavascriptObject(){return{name:this.getName(),label:this.getLabel(),type:this.getType(),description:this.getDescription(),tab:this.getTab(),mutable:this.isMutable(),value:this.getValue(),default:this.getDefaultValue(),url:this.getUrl()}}getMultiple(){return this.multiple}};let T=w;i(T,"TABULAR_TYPE","tabular"),i(T,"DATE_TIME","datetime"),i(T,"PARAGRAPH","paragraph"),i(T,"BOOLEAN","boolean"),i(T,"JSON","json");class I{constructor(t){i(this,"name");i(this,"width");i(this,"label");i(this,"widthField");i(this,"widthLabel");this.name=t}getName(){return this.name}setWidth(t){return this.width=t,this}getWidth(){return this.width}static createFromJson(t){t.hasOwnProperty("name")||E.getLogger().error("A name property is mandatory to create a tab and was not found in the json provided");let e=t.name,s=new I(e);for(let l in t){if(!t.hasOwnProperty(l))continue;let r=t[l];switch(l){case"name":continue;case"label":s.setLabel(r);continue;case"width-field":s.setWidthField(r);continue;case"width-label":s.setWidthLabel(r);continue;default:E.getLogger().error(`The property (${l}) of the tab (${e}) is unknown`)}}return s}setLabel(t){return this.label=t,this}getLabel(){return this.label===void 0?this.name:this.label}setWidthField(t){return this.widthField=t,this}setWidthLabel(t){return this.widthLabel=t,this}getLabelWidth(){return this.widthLabel===void 0?3:this.widthLabel}getFieldWidth(){return this.widthField===void 0?12-this.getLabelWidth():this.widthField}static createFromName(t){return new I(t)}}class B{constructor(t){i(this,"formFields",{});i(this,"tabs",{});i(this,"width",8);i(this,"name");i(this,"label");i(this,"url");i(this,"getTabPaneId");i(this,"getTabNavId");i(this,"getControlId");if(t==null)throw new Error("The if of the form should not be null");this.name=t,this.getControlId=function(e){let s=$.toHtmlId(e);return`${t}-control-${s}`},this.getTabNavId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-nav-${s}`},this.getTabPaneId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-pane-${s}`}}getLabel(){return this.label}getUrl(){return this.url}getId(){return this.name}getControlWidth(){return this.width}getLabelWidth(){return 12-this.getControlWidth()}static createFromJson(t,e){let s=B.createFromId(t);for(let l in e){if(!e.hasOwnProperty(l))continue;let r=e[l];switch(l){case"fields":let n=r;for(let a in n)n.hasOwnProperty(a)&&s.addFormField(T.createFromJson(n[a]));continue;case"tabs":let o=r;for(let a in o)o.hasOwnProperty(a)&&s.addTab(I.createFromJson(o[a]));break;case"width":s.setControlWidth(r);break;case"label":s.setLabel(r);break;case"url":s.setUrl(r);break;default:E.getLogger().error(`The form property (${l}) is unknown`)}}return s}static createFromId(t){return new B(t)}addFormField(t){return this.formFields[t.getName()]=t,this.tabs.hasOwnProperty(t.getTab())||(this.tabs[t.getTab()]=I.createFromName(t.getTab())),this}getFields(){return Object.values(this.formFields)}getTabs(){return Object.values(this.tabs)}addTab(t){this.tabs[t.getName()]=t}valueOf(){return this.getId()}getFieldsForTab(t){return this.getFields().filter(e=>e.getTab()===t)}toHtmlElement(){let t=this.getId(),e='<ul class="nav nav-tabs mb-3">',s,l,r=this.getTabs(),n=r[0];for(let h of r){Object.is(h,n)?(s="active",l="true"):(s="",l="false");let P=h.getLabel(),C=this.getTabPaneId(h),v=this.getTabNavId(h);e+=` method in AnonymousFunction75dc2f360100.I
/plugin/sequencediagram/bower_components/js-sequence-diagrams/src/
H A Ddiagram.js125 return object.constructor.prototype; class in object
/plugin/gallery/script/
H A Dprosemirror.js299 GalleryNodeView.prototype.constructor = GalleryNodeView; global() method in GalleryNodeView
/plugin/bez/lib/jquery.datepair/
H A Ddatepair.min.js7 !function(a,b){"use strict";function c(a,b){var c=b||{};for(var d in a)d in c||(c[d]=a[d]);return c}function d(a,c){if(h)h(a).trigger(c);else{var d=b.createEvent("CustomEvent");d.initCustomEvent(c,!0,!0,{}),a.dispatchEvent(d)}}function e(a,b){return h?h(a).hasClass(b):a.classList.contains(b)}function f(a,b){this.dateDelta=null,this.timeDelta=null,this._defaults={startClass:"start",endClass:"end",timeClass:"time",dateClass:"date",defaultDateDelta:0,defaultTimeDelta:36e5,anchor:"start",parseTime:function(a){return h(a).timepicker("getTime")},updateTime:function(a,b){h(a).timepicker("setTime",b)},setMinTime:function(a,b){h(a).timepicker("option","minTime",b)},parseDate:function(a){return a.value&&h(a).datepicker("getDate")},updateDate:function(a,b){h(a).datepicker("update",b)}},this.container=a,this.settings=c(this._defaults,b),this.startDateInput=this.container.querySelector("."+this.settings.startClass+"."+this.settings.dateClass),this.endDateInput=this.container.querySelector("."+this.settings.endClass+"."+this.settings.dateClass),this.startTimeInput=this.container.querySelector("."+this.settings.startClass+"."+this.settings.timeClass),this.endTimeInput=this.container.querySelector("."+this.settings.endClass+"."+this.settings.timeClass),this.refresh(),this._bindChangeHandler()}var g=864e5,h=a.Zepto||a.jQuery;f.prototype={constructor:f,option:function(a,b){if("object"==typeof a)this.settings=c(this.settings,a);else if("string"==ty (…) property in f
H A Ddatepair.js96 constructor: Datepair, property in Datepair
/plugin/stlviewer/stlviewer/
H A DTrackballControls.js619 THREE.TrackballControls.prototype.constructor = THREE.TrackballControls; method in THREE.TrackballControls
/plugin/shell/
H A DP0wnyShell.js22 constructor() { method in P0wnyShell
/plugin/highlightjs/highlight/languages/
H A Ddelphi.js6 …e': 1, 'threadvar': 1, 'try': 1, 'record': 1, 'near': 1, 'stored': 1, 'constructor': 1, 'stdcall':… property in hljs.LANGUAGES.delphi.DELPHI_KEYWORDS
7 …, 'public': 1, 'goto': 1, 'interface': 1, 'asm': 1, 'on': 1, 'of': 1, 'constructor': 1, 'or': 1, '… property in hljs.LANGUAGES.delphi.DELPHI_CLASS_KEYWORDS
/plugin/sequencediagram/bower_components/lodash/vendor/underscore/test/
H A Dobjects.js21 constructor: Object, property in AnonymousFunction235956210100.trouble
53 constructor: Object, property in AnonymousFunction235956210200.trouble
557 Foo.prototype.constructor = null; method in Foo
946 var oCon = {constructor: Object}; property in AnonymousFunction235956213700.oCon
/plugin/diagramsnet/lib/js/orgchart/
H A DmxOrgChartLayout.js62 mxOrgChartLayout.prototype.constructor = mxOrgChartLayout; method in mxOrgChartLayout
/plugin/imapmarkers/
H A Djquery.imagemapster.js245 BaseClass.prototype.constructor.apply(me, args); method in BaseClass
250 Subclass.prototype.constructor = Subclass; method in Subclass
598 constructor: m.Method, property in m.Method
1783 constructor: m.MapImages, property in m.MapImages
2460 constructor: m.MapData, property in m.MapData
3483 constructor: m.MapArea, property in m.MapArea

1234