UNPKG

graphdb-workbench

Version:
2 lines 3.52 kB
export const __webpack_id__=45149;export const __webpack_ids__=[868,16014,28379,29646,45149];export const __webpack_modules__={868:(t,e,s)=>{s.r(e),s.d(e,{DynamicFormField:()=>i});class i{_key="";_label="";_type="";_collection=!1;_value;_values;_regex;_required=!1;_group;hidden=!1;constructor(t){this._key=t.key,this._label=t.label,this._type=t.type,this._collection=t.collection,this._value=t.value,this._values=t.values,this._regex="string"==typeof t.regex?new RegExp(t.regex):t.regex,this._required=t.required,this._group=t.group,this.hidden=t.hidden}get key(){return this._key}set key(t){this._key=t}get label(){return this._label}set label(t){this._label=t}get type(){return this._type}set type(t){this._type=t}get collection(){return this._collection}set collection(t){this._collection=t}get value(){return this._value}set value(t){this._value=t}get values(){return this._values}set values(t){this._values=t}get regex(){return this._regex}set regex(t){this._regex="string"==typeof t?new RegExp(t):t}get required(){return this._required}set required(t){this._required=t}get group(){return this._group}set group(t){this._group=t}get hidden(){return this._hidden}set hidden(t){this._hidden=t}}},16014:(t,e,s)=>{s.r(e),s.d(e,{ENDPOINT_GENERATION_STATUS:()=>i,GraphqlEndpointOverview:()=>h,GraphqlEndpointOverviewList:()=>r});const i={NONE:"NONE",SUCCESS:"SUCCESS",ERROR:"ERROR"};class r{_endpointList=[];constructor(t){this._endpointList=t||[]}get endpointList(){return this._endpointList}set endpointList(t){this._endpointList=t}}class h{_label;_uri;_status;constructor(t){this._label=t.label||"",this._uri=t.uri||"",this._status=t.status||i.NONE}get label(){return this._label}set label(t){this._label=t}get uri(){return this._uri}set uri(t){this._uri=t}get status(){return this._status}set status(t){this._status=t}}},28379:(t,e,s)=>{s.r(e),s.d(e,{CONFIG_TYPE:()=>r,GraphqlEndpointConfigurationSettings:()=>h});var i=s(868);const r={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json"};class h{_settings;_hasSettings;constructor(t){this._settings=t,this._hasSettings=!!this._settings&&this._settings.models.length>0}toFlatJSON(){const t={},e=e=>{e.collection?t[e.key]=e.value:"select"===e.type?t[e.key]=e.value.value:t[e.key]=e.value};return this._settings.models.forEach(t=>{t instanceof i.DynamicFormField?e(t):[...t.fields,...t.hiddenFields].forEach(e)}),t}get hasSettings(){return this._hasSettings}get settings(){return this._settings}set settings(t){this._settings=t,this._hasSettings=this._settings.models.length>0}}},29646:(t,e,s)=>{s.r(e),s.d(e,{GraphqlSchemaShape:()=>r,GraphqlSchemaShapes:()=>i});class i{_shapes;_size;_isEmpty;constructor(t){this._shapes=t||[],this._size=this.shapes.length,this._isEmpty=0===this.shapes.length}processShapes(t){return this.shapes.map(t)}getShapeIds(){return this.shapes.map(t=>t.id)}get isEmpty(){return this._isEmpty}get size(){return this._size}get shapes(){return this._shapes}set shapes(t){this._shapes=t,this._size=this.shapes.length,this._isEmpty=0===this.shapes.length}toJSON(){return this.shapes.map(t=>t.id)}}class r{_id;_name;_label;_description;constructor(t){this._id=t.id,this._name=t.name,this._label=t.label,this._description=t.description}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get label(){return this._label}set label(t){this._label=t}get description(){return this._description}set description(t){this._description=t}}}}; //# sourceMappingURL=45149.2f77aa736bbfb13fd987.bundle.js.map