@ -21231,7 +21231,9 @@
] ) ;
record . id = ` ${ recordNode . nodeId } - ${ shortid_1 ( ) } ` ;
record . key = joinKey ( collectionKey , record . id ) ;
record . key = isSingleRecord ( recordNode )
? joinKey ( collectionKey , recordNode . name )
: joinKey ( collectionKey , record . id ) ;
record . isNew = true ;
record . type = recordNode . name ;
return record ;
@ -26873,7 +26875,15 @@
if ( isIndex ( obj ) )
// Q: why are indexes not children ?
// A: because they cannot have children of their own.
{ parent . indexes . push ( obj ) ; } else if ( isaggregateGroup ( obj ) ) { parent . aggregateGroups . push ( obj ) ; } else { parent . children . push ( obj ) ; }
{
parent . indexes . push ( obj ) ;
}
else if ( isaggregateGroup ( obj ) )
{
parent . aggregateGroups . push ( obj ) ;
} else {
parent . children . push ( obj ) ;
}
if ( isRecord ( obj ) ) {
const defaultIndex = lodash_15 (
@ -29310,7 +29320,7 @@
existingNode . parent ( ) . children = pipe$1 ( existingNode . parent ( ) . children , [
fp_8 ( c => c . nodeId !== existingNode . nodeId )
] ) ;
}
}
// should add node into existing hierarchy
const cloned = fp_4 ( s . currentNode ) ;
@ -29329,6 +29339,13 @@
fp_52 ( newIndexOfchild )
] ) ;
if ( ! existingNode && s . currentNode . type === "record" ) {
const defaultIndex = templateApi ( s . hierarchy )
. getNewIndexTemplate ( cloned . parent ( ) ) ;
defaultIndex . name = ` all_ ${ cloned . collectionName } ` ;
defaultIndex . allowedRecordNodeIds = [ cloned . nodeId ] ;
}
s . currentNodeIsNew = false ;
savePackage ( store , s ) ;
@ -49170,7 +49187,7 @@
return child_ctx ;
}
// (74 :8) {#each events as ev}
// (75 :8) {#each events as ev}
function create_each_block_1$4 ( ctx ) {
var option , t_value = ctx . ev . name + "" , t , option_value_value ;
@ -49180,7 +49197,7 @@
t = text ( t_value ) ;
option . __ value = option_value_value = ctx . ev . name ;
option . value = option . __ value ;
add_location ( option , file$e , 74 , 8 , 1965 ) ;
add_location ( option , file$e , 75 , 8 , 1992 ) ;
} ,
m : function mount ( target , anchor ) {
@ -49206,11 +49223,11 @@
}
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block_1$4 . name , type : "each" , source : "(74 :8) {#each events as ev}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block_1$4 . name , type : "each" , source : "(75 :8) {#each events as ev}" , ctx } ) ;
return block ;
}
// (85 :0) {#if parameters}
// (86 :0) {#if parameters}
function create_if_block$6 ( ctx ) {
var each_1_anchor , current ;
@ -49297,11 +49314,11 @@
}
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block$6 . name , type : "if" , source : "(85 :0) {#if parameters}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block$6 . name , type : "if" , source : "(86 :0) {#if parameters}" , ctx } ) ;
return block ;
}
// (86 :0) {#each parameters as p, index}
// (87 :0) {#each parameters as p, index}
function create_each_block$6 ( ctx ) {
var div , t0_value = ctx . p . name + "" , t0 , t1 , current ;
@ -49319,7 +49336,7 @@
t0 = text ( t0_value ) ;
t1 = space ( ) ;
statebindingcontrol . $$ . fragment . c ( ) ;
add_location ( div , file$e , 87 , 0 , 2206 ) ;
add_location ( div , file$e , 88 , 0 , 2233 ) ;
} ,
m : function mount ( target , anchor ) {
@ -49361,12 +49378,12 @@
destroy_component ( statebindingcontrol , detaching ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block$6 . name , type : "each" , source : "(86 :0) {#each parameters as p, index}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block$6 . name , type : "each" , source : "(87 :0) {#each parameters as p, index}" , ctx } ) ;
return block ;
}
function create_fragment$d ( ctx ) {
var div , select , select_value_value , t0 , t1 , if_block_anchor , current , dispose ;
var div , select , option , select_value_value , t0 , t1 , if_block_anchor , current , dispose ;
let each_value_1 = ctx . events ;
@ -49388,6 +49405,7 @@
c : function create ( ) {
div = element ( "div" ) ;
select = element ( "select" ) ;
option = element ( "option" ) ;
for ( let i_1 = 0 ; i_1 < each_blocks . length ; i_1 += 1 ) {
each_blocks [ i_1 ] . c ( ) ;
@ -49398,6 +49416,9 @@
t1 = space ( ) ;
if ( if_block ) if_block . c ( ) ;
if_block_anchor = empty ( ) ;
option . __ value = "" ;
option . value = option . __ value ;
add_location ( option , file$e , 73 , 8 , 1935 ) ;
attr_dev ( select , "class" , "type-selector uk-select uk-form-small svelte-1b6pj9u" ) ;
add_location ( select , file$e , 72 , 4 , 1823 ) ;
attr_dev ( div , "class" , "type-selector-container svelte-1b6pj9u" ) ;
@ -49412,6 +49433,7 @@
m : function mount ( target , anchor ) {
insert_dev ( target , div , anchor ) ;
append_dev ( div , select ) ;
append_dev ( select , option ) ;
for ( let i_1 = 0 ; i_1 < each_blocks . length ; i_1 += 1 ) {
each_blocks [ i_1 ] . m ( select , null ) ;
@ -49419,10 +49441,10 @@
select_value_value = ctx . eventType ;
for ( var i = 0 ; i < select . options . length ; i += 1 ) {
var option = select . options [ i ] ;
var option_1 = select . options [ i ] ;
if ( option . __ value === select_value_value ) {
option . selected = true ;
if ( option_1 . __ value === select_value_value ) {
option_1 . selected = true ;
break ;
}
}
@ -49460,10 +49482,10 @@
if ( ( ! current || changed . eventType ) && select_value_value !== ( select_value_value = ctx . eventType ) ) {
for ( var i = 0 ; i < select . options . length ; i += 1 ) {
var option = select . options [ i ] ;
var option_1 = select . options [ i ] ;
if ( option . __ value === select_value_value ) {
option . selected = true ;
if ( option_1 . __ value === select_value_value ) {
option_1 . selected = true ;
break ;
}
}
@ -52435,10 +52457,10 @@
attr_dev ( div0 , "class" , "uk-modal-dialog uk-modal-body svelte-vwwrf9" ) ;
attr_dev ( div0 , "uk-overflow-auto" , "" ) ;
add_location ( div0 , file$k , 28 , 4 , 487 ) ;
add_location ( div0 , file$k , 28 , 4 , 500 ) ;
attr_dev ( div1 , "uk-modal" , "" ) ;
attr_dev ( div1 , "id" , ctx . id ) ;
add_location ( div1 , file$k , 27 , 0 , 443 ) ;
add_location ( div1 , file$k , 27 , 0 , 456 ) ;
} ,
l : function claim ( nodes ) {
@ -52535,11 +52557,12 @@
} ;
$$self . $$ . update = ( $$dirty = { ukModal : 1 , listenerAdded : 1 , onClosed : 1 , isOpen : 1 } ) => {
if ( $$dirty . ukModal || $$dirty . listenerAdded || $$dirty . onClosed ) { if ( ukModal && ! listenerAdded ) {
$$invalidate ( 'listenerAdded' , listenerAdded = true ) ;
ukModal . addEventListener ( "hide" , onClosed ) ;
} }
if ( $$dirty . ukModal || $$dirty . isOpen ) { {
if ( $$dirty . ukModal || $$dirty . listenerAdded || $$dirty . onClosed || $$dirty . isOpen ) { {
if ( ukModal && ! listenerAdded ) {
$$invalidate ( 'listenerAdded' , listenerAdded = true ) ;
ukModal . addEventListener ( "hide" , onClosed ) ;
}
if ( ukModal ) {
if ( isOpen ) {
uikit . modal ( ukModal ) . show ( ) ;
@ -55814,7 +55837,7 @@
return child_ctx ;
}
// (60 :12) {#each $store.hierarchy.children as record}
// (83 :12) {#each $store.hierarchy.children as record}
function create_each_block_1$8 ( ctx ) {
var current ;
@ -55855,11 +55878,11 @@
destroy_component ( hierarchyrow , detaching ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block_1$8 . name , type : "each" , source : "(60 :12) {#each $store.hierarchy.children as record}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block_1$8 . name , type : "each" , source : "(83 :12) {#each $store.hierarchy.children as record}" , ctx } ) ;
return block ;
}
// (65 :12) {#each $store.hierarchy.indexes as index}
// (88 :12) {#each $store.hierarchy.indexes as index}
function create_each_block$d ( ctx ) {
var current ;
@ -55900,7 +55923,7 @@
destroy_component ( hierarchyrow , detaching ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block$d . name , type : "each" , source : "(65 :12) {#each $store.hierarchy.indexes as index}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block$d . name , type : "each" , source : "(88 :12) {#each $store.hierarchy.indexes as index}" , ctx } ) ;
return block ;
}
@ -55982,19 +56005,19 @@
t6 = space ( ) ;
navitem1 . $$ . fragment . c ( ) ;
attr_dev ( div0 , "class" , "svelte-19lmivt" ) ;
add_location ( div0 , file$u , 52 , 16 , 1390 ) ;
add_location ( div0 , file$u , 7 5, 16 , 1728 ) ;
attr_dev ( div1 , "class" , "hierarchy-title svelte-19lmivt" ) ;
add_location ( div1 , file$u , 53 , 16 , 1450 ) ;
add_location ( div1 , file$u , 76 , 16 , 1788 ) ;
attr_dev ( div2 , "class" , "nav-group-header svelte-19lmivt" ) ;
add_location ( div2 , file$u , 51 , 12 , 1343 ) ;
add_location ( div2 , file$u , 74 , 12 , 1681 ) ;
attr_dev ( div3 , "class" , "components-list-container" ) ;
add_location ( div3 , file$u , 50 , 8 , 1291 ) ;
add_location ( div3 , file$u , 73 , 8 , 16 29 ) ;
attr_dev ( div4 , "class" , "hierarchy-items-container svelte-19lmivt" ) ;
add_location ( div4 , file$u , 5 8, 8 , 1614 ) ;
add_location ( div4 , file$u , 81 , 8 , 1952 ) ;
attr_dev ( div5 , "class" , "hierarchy svelte-19lmivt" ) ;
add_location ( div5 , file$u , 49 , 4 , 12 59 ) ;
add_location ( div5 , file$u , 72 , 4 , 1597 ) ;
attr_dev ( div6 , "class" , "items-root svelte-19lmivt" ) ;
add_location ( div6 , file$u , 48 , 0 , 1230 ) ;
add_location ( div6 , file$u , 71 , 0 , 1568 ) ;
} ,
l : function claim ( nodes ) {
@ -56154,33 +56177,56 @@
const newRootRecord = ( ) => {
store . newRootRecord ( ) ;
} ;
const newRootIndex = ( ) => {
store . newRootIndex ( ) ;
} ;
const newChildRecord = ( ) => {
store . newChildRecord ( ) ;
} ;
const newChildIndex = ( ) => {
store . newChildIndex ( ) ;
} ;
const defaultNewChildActions = [
{
label : "New Root Index" ,
onclick : store . newRootIndex
} ,
{
label : "New Root Record" ,
onclick : store . newRootRecord
onclick : newRootRecord
} ,
{
label : "New Root Index" ,
onclick : newRootIndex
}
] ;
let newChildActions = defaultNewChildActions ;
store . subscribe ( db => {
if ( ! db . currentNode || hierarchyFunctions . isIndex ( db . currentNode ) ) {
$$invalidate ( 'newChildActions' , newChildActions = defaultNewChildActions ) ;
} else {
$$invalidate ( 'newChildActions' , newChildActions = [
{ label : "New Root Record" ,
onclick : store . newRootRecord } ,
{ label : ` New Child Record of ${ db . currentNode . name } ` ,
onclick : store . newChildRecord } ,
{ label : "New Root Index" ,
onclick : store . newRootIndex } ,
{ label : ` New Index on ${ db . currentNode . name } ` ,
onclick : store . newChildIndex }
{
label : "New Root Record" ,
onclick : newRootRecord
} ,
{
label : "New Root Index" ,
onclick : newRootIndex
} ,
{
label : ` New Child Record of ${ db . currentNode . name } ` ,
onclick : newChildRecord
} ,
{
label : ` New Index on ${ db . currentNode . name } ` ,
onclick : newChildIndex
}
] ) ;
}
} ) ;
@ -60809,7 +60855,7 @@
return child_ctx ;
}
// (93 :8) {#if !record.isSingle}
// (99 :8) {#if !record.isSingle}
function create_if_block_3$3 ( ctx ) {
var updating_text , t , updating_text_1 , current ;
@ -60894,11 +60940,11 @@
destroy_component ( textbox1 , detaching ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block_3$3 . name , type : "if" , source : "(93 :8) {#if !record.isSingle}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block_3$3 . name , type : "if" , source : "(99 :8) {#if !record.isSingle}" , ctx } ) ;
return block ;
}
// (131 :4) {:else}
// (137 :4) {:else}
function create_else_block_1$1 ( ctx ) {
var t ;
@ -60919,11 +60965,11 @@
}
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_else_block_1$1 . name , type : "else" , source : "(131 :4) {:else}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_else_block_1$1 . name , type : "else" , source : "(137 :4) {:else}" , ctx } ) ;
return block ;
}
// (104 :4) {#if record.fields.length > 0}
// (11 0:4) {#if record.fields.length > 0}
function create_if_block_2$5 ( ctx ) {
var table , thead , tr , th0 , t1 , th1 , t3 , th2 , t5 , th3 , t6 , tbody ;
@ -60957,21 +61003,21 @@
each_blocks [ i ] . c ( ) ;
}
attr_dev ( th0 , "class" , "svelte-18xd5y3" ) ;
add_location ( th0 , file$A , 107 , 16 , 29 54) ;
add_location ( th0 , file$A , 113 , 16 , 31 54) ;
attr_dev ( th1 , "class" , "svelte-18xd5y3" ) ;
add_location ( th1 , file$A , 108 , 16 , 29 84) ;
add_location ( th1 , file$A , 114 , 16 , 31 84) ;
attr_dev ( th2 , "class" , "svelte-18xd5y3" ) ;
add_location ( th2 , file$A , 109 , 16 , 30 14 ) ;
add_location ( th2 , file$A , 115 , 16 , 32 14 ) ;
attr_dev ( th3 , "class" , "svelte-18xd5y3" ) ;
add_location ( th3 , file$A , 110 , 16 , 30 47 ) ;
add_location ( th3 , file$A , 116 , 16 , 32 47 ) ;
attr_dev ( tr , "class" , "svelte-18xd5y3" ) ;
add_location ( tr , file$A , 106 , 12 , 29 33) ;
add_location ( tr , file$A , 112 , 12 , 31 33) ;
attr_dev ( thead , "class" , "svelte-18xd5y3" ) ;
add_location ( thead , file$A , 105 , 8 , 29 13 ) ;
add_location ( thead , file$A , 111 , 8 , 31 13 ) ;
attr_dev ( tbody , "class" , "svelte-18xd5y3" ) ;
add_location ( tbody , file$A , 113 , 8 , 31 00 ) ;
add_location ( tbody , file$A , 119 , 8 , 33 00 ) ;
attr_dev ( table , "class" , "fields-table uk-table svelte-18xd5y3" ) ;
add_location ( table , file$A , 104 , 4 , 28 67) ;
add_location ( table , file$A , 11 0 , 4 , 30 67) ;
} ,
m : function mount ( target , anchor ) {
@ -61025,11 +61071,11 @@
destroy_each ( each_blocks , detaching ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block_2$5 . name , type : "if" , source : "(104 :4) {#if record.fields.length > 0}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block_2$5 . name , type : "if" , source : "(11 0:4) {#if record.fields.length > 0}" , ctx } ) ;
return block ;
}
// (115 :12) {#each record.fields as field}
// (12 1:12) {#each record.fields as field}
function create_each_block_1$9 ( ctx ) {
var tr , td0 , div0 , t0_value = ctx . field . label + "" , t0 , t1 , div1 , t2_value = ctx . field . name + "" , t2 , t3 , td1 , t4_value = ctx . field . type + "" , t4 , t5 , td2 , raw0_value = ctx . getTypeOptions ( ctx . field . typeOptions ) + "" , t6 , td3 , span0 , raw1_value = getIcon ( "edit" ) + "" , t7 , span1 , raw2_value = getIcon ( "trash" ) + "" , t8 , dispose ;
@ -61062,24 +61108,24 @@
span1 = element ( "span" ) ;
t8 = space ( ) ;
attr_dev ( div0 , "class" , "field-label svelte-18xd5y3" ) ;
add_location ( div0 , file$A , 117 , 20 , 32 10 ) ;
add_location ( div0 , file$A , 123 , 20 , 34 10 ) ;
set_style ( div1 , "font-size" , "0.8em" ) ;
set_style ( div1 , "color" , "var(--slate)" ) ;
add_location ( div1 , file$A , 118 , 20 , 32 75 ) ;
add_location ( div1 , file$A , 124 , 20 , 34 75 ) ;
attr_dev ( td0 , "class" , "svelte-18xd5y3" ) ;
add_location ( td0 , file$A , 116 , 16 , 31 84 ) ;
add_location ( td0 , file$A , 122 , 16 , 33 84 ) ;
attr_dev ( td1 , "class" , "svelte-18xd5y3" ) ;
add_location ( td1 , file$A , 120 , 16 , 33 83 ) ;
add_location ( td1 , file$A , 126 , 16 , 35 83 ) ;
attr_dev ( td2 , "class" , "svelte-18xd5y3" ) ;
add_location ( td2 , file$A , 121 , 16 , 34 22 ) ;
add_location ( td2 , file$A , 127 , 16 , 36 22 ) ;
attr_dev ( span0 , "class" , "edit-button svelte-18xd5y3" ) ;
add_location ( span0 , file$A , 123 , 20 , 35 15 ) ;
add_location ( span0 , file$A , 129 , 20 , 37 15 ) ;
attr_dev ( span1 , "class" , "edit-button svelte-18xd5y3" ) ;
add_location ( span1 , file$A , 124 , 20 , 36 26 ) ;
add_location ( span1 , file$A , 130 , 20 , 38 26 ) ;
attr_dev ( td3 , "class" , "svelte-18xd5y3" ) ;
add_location ( td3 , file$A , 122 , 16 , 34 90 ) ;
add_location ( td3 , file$A , 128 , 16 , 36 90 ) ;
attr_dev ( tr , "class" , "svelte-18xd5y3" ) ;
add_location ( tr , file$A , 115 , 12 , 31 63 ) ;
add_location ( tr , file$A , 12 1 , 12 , 33 63 ) ;
dispose = [
listen_dev ( span0 , "click" , click_handler ) ,
@ -61138,11 +61184,11 @@
run_all ( dispose ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block_1$9 . name , type : "each" , source : "(115 :12) {#each record.fields as field}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block_1$9 . name , type : "each" , source : "(12 1:12) {#each record.fields as field}" , ctx } ) ;
return block ;
}
// (135 :4) {#if editingField}
// (141 :4) {#if editingField}
function create_if_block_1$8 ( ctx ) {
var updating_isOpen , current ;
@ -61198,11 +61244,11 @@
destroy_component ( modal , detaching ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block_1$8 . name , type : "if" , source : "(135 :4) {#if editingField}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block_1$8 . name , type : "if" , source : "(141 :4) {#if editingField}" , ctx } ) ;
return block ;
}
// (136 :4) <Modal bind:isOpen={editingField}>
// (142 :4) <Modal bind:isOpen={editingField}>
function create_default_slot$6 ( ctx ) {
var current ;
@ -61251,11 +61297,11 @@
destroy_component ( fieldview , detaching ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_default_slot$6 . name , type : "slot" , source : "(136 :4) <Modal bind:isOpen={editingField}>" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_default_slot$6 . name , type : "slot" , source : "(142 :4) <Modal bind:isOpen={editingField}>" , ctx } ) ;
return block ;
}
// (171 :4) {:else}
// (177 :4) {:else}
function create_else_block$6 ( ctx ) {
var div ;
@ -61264,7 +61310,7 @@
div = element ( "div" ) ;
div . textContent = "No indexes added.\n " ;
attr_dev ( div , "class" , "no-indexes svelte-18xd5y3" ) ;
add_location ( div , file$A , 171 , 4 , 51 14 ) ;
add_location ( div , file$A , 177 , 4 , 53 14 ) ;
} ,
m : function mount ( target , anchor ) {
@ -61277,11 +61323,11 @@
}
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_else_block$6 . name , type : "else" , source : "(171 :4) {:else}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_else_block$6 . name , type : "else" , source : "(177 :4) {:else}" , ctx } ) ;
return block ;
}
// (164 :8) {#if index.filter}
// (170 :8) {#if index.filter}
function create_if_block$i ( ctx ) {
var div , span , t1 , code , t2_value = ctx . index . filter + "" , t2 ;
@ -61294,11 +61340,11 @@
code = element ( "code" ) ;
t2 = text ( t2_value ) ;
attr_dev ( span , "class" , "index-label svelte-18xd5y3" ) ;
add_location ( span , file$A , 165 , 12 , 49 53) ;
add_location ( span , file$A , 171 , 12 , 51 53) ;
attr_dev ( code , "class" , "index-mapfilter svelte-18xd5y3" ) ;
add_location ( code , file$A , 166 , 12 , 50 06 ) ;
add_location ( code , file$A , 172 , 12 , 52 06 ) ;
attr_dev ( div , "class" , "index-field-row svelte-18xd5y3" ) ;
add_location ( div , file$A , 164 , 8 , 49 11 ) ;
add_location ( div , file$A , 170 , 8 , 51 11 ) ;
} ,
m : function mount ( target , anchor ) {
@ -61321,11 +61367,11 @@
}
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block$i . name , type : "if" , source : "(164 :8) {#if index.filter}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_if_block$i . name , type : "if" , source : "(170 :8) {#if index.filter}" , ctx } ) ;
return block ;
}
// (148 :4) {#each record.indexes as index}
// (15 4:4) {#each record.indexes as index}
function create_each_block$f ( ctx ) {
var div3 , div0 , t0_value = ctx . index . name + "" , t0 , t1 , span0 , raw_value = getIcon ( "edit" ) + "" , t2 , div1 , span1 , t4 , span2 , t5_value = ctx . getIndexAllowedRecords ( ctx . index ) + "" , t5 , t6 , span3 , t8 , span4 , t9_value = ctx . index . indexType + "" , t9 , t10 , div2 , span5 , t12 , code , t13_value = ctx . index . map + "" , t13 , t14 , t15 , dispose ;
@ -61366,26 +61412,26 @@
if ( if_block ) if_block . c ( ) ;
t15 = space ( ) ;
set_style ( span0 , "margin-left" , "7px" ) ;
add_location ( span0 , file$A , 151 , 12 , 43 06 ) ;
add_location ( span0 , file$A , 157 , 12 , 45 06 ) ;
attr_dev ( div0 , "class" , "index-name svelte-18xd5y3" ) ;
add_location ( div0 , file$A , 149 , 8 , 42 44 ) ;
add_location ( div0 , file$A , 155 , 8 , 44 44 ) ;
attr_dev ( span1 , "class" , "index-label svelte-18xd5y3" ) ;
add_location ( span1 , file$A , 154 , 12 , 44 67 ) ;
add_location ( span2 , file$A , 155 , 12 , 45 31 ) ;
add_location ( span1 , file$A , 160 , 12 , 46 67 ) ;
add_location ( span2 , file$A , 161 , 12 , 47 31 ) ;
attr_dev ( span3 , "class" , "index-label svelte-18xd5y3" ) ;
set_style ( span3 , "margin-left" , "15px" ) ;
add_location ( span3 , file$A , 15 6 , 12 , 45 88 ) ;
add_location ( span4 , file$A , 157 , 12 , 46 66 ) ;
add_location ( span3 , file$A , 162 , 12 , 47 88 ) ;
add_location ( span4 , file$A , 163 , 12 , 48 66 ) ;
attr_dev ( div1 , "class" , "index-field-row svelte-18xd5y3" ) ;
add_location ( div1 , file$A , 153 , 8 , 44 25 ) ;
add_location ( div1 , file$A , 159 , 8 , 46 25 ) ;
attr_dev ( span5 , "class" , "index-label svelte-18xd5y3" ) ;
add_location ( span5 , file$A , 160 , 12 , 47 62 ) ;
add_location ( span5 , file$A , 166 , 12 , 49 62 ) ;
attr_dev ( code , "class" , "index-mapfilter svelte-18xd5y3" ) ;
add_location ( code , file$A , 161 , 12 , 48 12) ;
add_location ( code , file$A , 167 , 12 , 50 12) ;
attr_dev ( div2 , "class" , "index-field-row svelte-18xd5y3" ) ;
add_location ( div2 , file$A , 159 , 8 , 47 20 ) ;
add_location ( div2 , file$A , 16 5 , 8 , 49 20 ) ;
attr_dev ( div3 , "class" , "index-container svelte-18xd5y3" ) ;
add_location ( div3 , file$A , 148 , 4 , 42 06 ) ;
add_location ( div3 , file$A , 15 4 , 4 , 44 06 ) ;
dispose = listen_dev ( span0 , "click" , click_handler_2 ) ;
} ,
@ -61459,7 +61505,7 @@
dispose ( ) ;
}
} ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block$f . name , type : "each" , source : "(148 :4) {#each record.indexes as index}" , ctx } ) ;
dispatch_dev ( "SvelteRegisterBlock" , { block , id : create_each_block$f . name , type : "each" , source : "(15 4:4) {#each record.indexes as index}" , ctx } ) ;
return block ;
}
@ -61479,6 +61525,7 @@
var textbox = new Textbox ( { props : textbox_props , $$inline : true } ) ;
binding_callbacks . push ( ( ) => bind ( textbox , 'text' , textbox_text_binding ) ) ;
textbox . $on ( "change" , ctx . nameChanged ) ;
var if_block0 = ( ! ctx . record . isSingle ) && create_if_block_3$3 ( ctx ) ;
@ -61537,19 +61584,19 @@
each_blocks [ i ] . c ( ) ;
}
attr_dev ( h30 , "class" , "settings-title svelte-18xd5y3" ) ;
add_location ( h30 , file$A , 87 , 8 , 2306 ) ;
add_location ( h30 , file$A , 93 , 8 , 2479 ) ;
attr_dev ( div0 , "class" , "recordkey svelte-18xd5y3" ) ;
add_location ( div0 , file$A , 96 , 8 , 26 36 ) ;
add_location ( div0 , file$A , 102 , 8 , 28 36 ) ;
attr_dev ( form , "class" , "uk-form-horizontal" ) ;
add_location ( form , file$A , 86 , 4 , 226 4 ) ;
add_location ( form , file$A , 92 , 4 , 2437 ) ;
attr_dev ( span , "class" , "add-field-button svelte-18xd5y3" ) ;
add_location ( span , file$A , 100 , 15 , 27 35 ) ;
add_location ( span , file$A , 106 , 15 , 29 35 ) ;
attr_dev ( h31 , "class" , "title svelte-18xd5y3" ) ;
add_location ( h31 , file$A , 99 , 4 , 27 01 ) ;
add_location ( h31 , file$A , 105 , 4 , 29 01 ) ;
attr_dev ( h32 , "class" , "title svelte-18xd5y3" ) ;
add_location ( h32 , file$A , 143 , 4 , 41 19 ) ;
add_location ( h32 , file$A , 149 , 4 , 43 19 ) ;
attr_dev ( div1 , "class" , "root svelte-18xd5y3" ) ;
add_location ( div1 , file$A , 84 , 0 , 2240 ) ;
add_location ( div1 , file$A , 90 , 0 , 2413 ) ;
dispose = listen_dev ( span , "click" , ctx . newField ) ;
} ,
@ -61798,6 +61845,13 @@
fp_41 ( "<br>" )
] ) ;
const nameChanged = ev => {
const pluralName = n => ` ${ n } s ` ;
if ( record . collectionName === "" ) {
$$invalidate ( 'record' , record . collectionName = pluralName ( ev . target . value ) , record ) ;
}
} ;
function textbox_text_binding ( value ) {
record . name = value ;
$$invalidate ( 'record' , record ) ;
@ -61855,6 +61909,7 @@
onFinishedFieldEdit ,
editIndex ,
getTypeOptions ,
nameChanged ,
$store ,
textbox_text_binding ,
textbox0_text_binding ,