graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 2.73 kB
JavaScript
export const __webpack_id__=21388;export const __webpack_ids__=[16747,21388];export const __webpack_modules__={16747:(e,t,s)=>{s.r(t),s.d(t,{Wizard:()=>r,WizardStep:()=>c});class r{#e=[];#t=0;constructor(e=[],t=0){this.#e=e,this.#t=t}addStep(e){return this.#e.push(e),this}getActiveStep(){return this.#e.find(e=>e.active)}isAPreviousStep(e){return this.#e.indexOf(e)<this.#t}setStepActive(e){this.#e.forEach(e=>e.active=!1),e.active=!0;const t=this.#e.indexOf(e);this.#t=t,this.#e.forEach((e,s)=>{e.visited=s<t})}previousStep(){this.#t>0&&this.#t--;const e=this.#e[this.#t];return this.setStepActive(e),e}nextStep(){this.#t<this.#e.length-1&&this.#t++;const e=this.#e[this.#t];return this.setStepActive(e),e}get steps(){return this.#e}set steps(e){this.#e=e}get currentStep(){return this.#t}set currentStep(e){this.#t=e}}class c{#s="";#r=!1;#c=!1;#i="";#p="";constructor(e,t,s,r=!1){this.#s=e,this.#r=r,this.#i=t,this.#p=s,this.#c=!1}get page(){return this.#p}set page(e){this.#p=e}get templateUrl(){return this.#i}set templateUrl(e){this.#i=e}get active(){return this.#r}set active(e){this.#r=e}get id(){return this.#s}set id(e){this.#s=e}get visited(){return this.#c}set visited(e){this.#c=e}}},21388:(e,t,s)=>{s.r(t),s.d(t,{ConfigureEndpointStep:()=>S,GenerateEndpointStep:()=>h,OntologyShaclShapeSource:()=>i,SchemaSourceType:()=>c,SelectSchemaSourceStep:()=>p});var r=s(16747);const c={GRAPHQL_SCHEMA_SHAPES:"graphql_schema_shapes",SHACL_SHAPES:"shacl_shapes"},i={USE_ALL_GRAPHS:"use_all_graphs",USE_SHACL_SHAPE_GRAPH:"use_shacl_shape_graph",PICK_GRAPHS:"pick_graphs"};class p extends r.WizardStep{_schemaSourceTypes=[{value:c.GRAPHQL_SCHEMA_SHAPES},{value:c.SHACL_SHAPES}];_schemaSourceType=this._schemaSourceTypes[0].value;_ontologyShaclShapeSources=[{value:i.USE_ALL_GRAPHS},{value:i.USE_SHACL_SHAPE_GRAPH},{value:i.PICK_GRAPHS}];_ontotlogyShaclShapeSource=this._ontologyShaclShapeSources[0].value;constructor(){super("select_schema_sources",void 0,"schema-sources",!0)}get ontotlogyShaclShapeSource(){return this._ontotlogyShaclShapeSource}set ontotlogyShaclShapeSource(e){this._ontotlogyShaclShapeSource=e}get ontologyShaclShapeSources(){return this._ontologyShaclShapeSources}set ontologyShaclShapeSources(e){this._ontologyShaclShapeSources=e}get schemaSourceType(){return this._schemaSourceType}set schemaSourceType(e){this._schemaSourceType=e}get schemaSourceTypes(){return this._schemaSourceTypes}set schemaSourceTypes(e){this._schemaSourceTypes=e}}class S extends r.WizardStep{constructor(){super("configure_endpoint",void 0,"endpoint-config",!1)}}class h extends r.WizardStep{constructor(){super("generate_endpoint",void 0,"generate-endpoint",!1)}}}};
//# sourceMappingURL=21388.8da90385fe12e8b8d859.bundle.js.map