graphdb-workbench 4.0.0-TR20 → 4.0.0-TR21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/28944.10ba3819ab642475c4cc.bundle.js +2 -0
  2. package/dist/28944.10ba3819ab642475c4cc.bundle.js.map +1 -0
  3. package/dist/43239.40282ca142f86c6dde15.bundle.js +2 -0
  4. package/dist/43239.40282ca142f86c6dde15.bundle.js.map +1 -0
  5. package/dist/44906.c4c659df4b02ccae9229.bundle.js +2 -0
  6. package/dist/44906.c4c659df4b02ccae9229.bundle.js.map +1 -0
  7. package/dist/{64709.3025889983ec8209d336.bundle.js → 64709.18515378d91873dbe224.bundle.js} +2 -2
  8. package/dist/{64709.3025889983ec8209d336.bundle.js.map → 64709.18515378d91873dbe224.bundle.js.map} +1 -1
  9. package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js → 65677.16009c5d1eabcad00aeb.bundle.js} +2 -2
  10. package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js.map → 65677.16009c5d1eabcad00aeb.bundle.js.map} +1 -1
  11. package/dist/{7257.1990b2e548feb7975f39.bundle.js → 7257.d60c8e9f046b1392ea1e.bundle.js} +2 -2
  12. package/dist/{7257.1990b2e548feb7975f39.bundle.js.map → 7257.d60c8e9f046b1392ea1e.bundle.js.map} +1 -1
  13. package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js +2 -0
  14. package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js.map +1 -0
  15. package/dist/{80933.3851df33b6cf8f94243c.bundle.js → 80933.32639a47f5bcab72f129.bundle.js} +2 -2
  16. package/dist/{80933.3851df33b6cf8f94243c.bundle.js.map → 80933.32639a47f5bcab72f129.bundle.js.map} +1 -1
  17. package/dist/{82917.c4d381f514d7ffa59784.bundle.js → 82917.a13bbac26dd299c57f0c.bundle.js} +2 -2
  18. package/dist/{82917.c4d381f514d7ffa59784.bundle.js.map → 82917.a13bbac26dd299c57f0c.bundle.js.map} +1 -1
  19. package/dist/{86099.dab1ff44dc71449a5aec.bundle.js → 86099.fe7fcec5f4ad92673a0b.bundle.js} +2 -2
  20. package/dist/{86099.dab1ff44dc71449a5aec.bundle.js.map → 86099.fe7fcec5f4ad92673a0b.bundle.js.map} +1 -1
  21. package/dist/96827.33e11fed0a796c76a367.bundle.js +2 -0
  22. package/dist/96827.33e11fed0a796c76a367.bundle.js.map +1 -0
  23. package/dist/assets/i18n/en.json +6 -2
  24. package/dist/assets/i18n/fr.json +6 -2
  25. package/dist/assets/i18n/language-config.json +1 -1
  26. package/dist/css/core-errors.css +1 -1
  27. package/dist/css/repositories.css +1 -1
  28. package/dist/css/repository-info-popover.css +1 -1
  29. package/dist/css/repository.create.css +1 -1
  30. package/dist/i18n/locale-en.json +9 -5
  31. package/dist/i18n/locale-fr.json +9 -5
  32. package/dist/index.html +9 -9
  33. package/dist/js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html +1 -1
  34. package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +1 -1
  35. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  36. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  37. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  38. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  39. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  40. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  41. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +7 -7
  42. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  43. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  44. package/dist/js/angular/core/templates/core-errors.html +4 -2
  45. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  46. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  47. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  48. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  49. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  50. package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
  51. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  52. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  53. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  54. package/dist/js/angular/repositories/templates/manage-remote-location-dialog.template.html +0 -13
  55. package/dist/js/angular/security/templates/user.html +2 -2
  56. package/dist/js/angular/security/templates/users.html +1 -1
  57. package/dist/js/angular/templates/repositorySize.html +10 -6
  58. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  59. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  60. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  61. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  62. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  63. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  64. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
  65. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  66. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  67. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  68. package/dist/legacyWorkbench.d8ed4eb634c5be181feb.js +3 -0
  69. package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.map → legacyWorkbench.d8ed4eb634c5be181feb.js.map} +1 -1
  70. package/dist/{main.519bdd021ad27b8f7c2a.js → main.bb3c33c0be119ba8d7dd.js} +3 -3
  71. package/dist/main.bb3c33c0be119ba8d7dd.js.map +1 -0
  72. package/dist/pages/aclmanagement.html +1 -1
  73. package/dist/pages/autocomplete.html +1 -1
  74. package/dist/pages/choose-repository-type.html +2 -1
  75. package/dist/pages/cluster-management/clusterInfo.html +2 -2
  76. package/dist/pages/create-index.html +1 -1
  77. package/dist/pages/dependencies.html +1 -1
  78. package/dist/pages/domainRangeInfo.html +2 -2
  79. package/dist/pages/edit.html +1 -1
  80. package/dist/pages/explore.html +1 -1
  81. package/dist/pages/export.html +1 -1
  82. package/dist/pages/find.html +1 -1
  83. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  84. package/dist/pages/graphs-visualizations.html +7 -7
  85. package/dist/pages/guides.html +1 -1
  86. package/dist/pages/home.html +1 -1
  87. package/dist/pages/import.html +2 -2
  88. package/dist/pages/jdbc-create.html +1 -1
  89. package/dist/pages/jdbc.html +1 -1
  90. package/dist/pages/monitor/backup-and-restore.html +1 -1
  91. package/dist/pages/monitor/queries.html +1 -1
  92. package/dist/pages/monitor/resources.html +1 -1
  93. package/dist/pages/namespaces.html +2 -2
  94. package/dist/pages/plugins.html +1 -1
  95. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  96. package/dist/pages/rdfrank.html +2 -2
  97. package/dist/pages/repositories.html +8 -4
  98. package/dist/pages/repository.html +6 -2
  99. package/dist/pages/similarity-indexes.html +1 -1
  100. package/dist/pages/sparql-editor.html +1 -1
  101. package/dist/pages/sparql-template-create.html +1 -1
  102. package/dist/pages/sparql-templates.html +1 -1
  103. package/dist/pages/ux-test1.html +2 -2
  104. package/dist/pages/viewQuery.html +1 -1
  105. package/dist/pages/webapi.html +2 -2
  106. package/dist/res/swagger5/index.html +11 -11
  107. package/dist/shared-components/cjs/loader.cjs.js +1 -1
  108. package/dist/shared-components/cjs/onto-footer_3.cjs.entry.js +1 -1
  109. package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
  110. package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
  111. package/dist/shared-components/cjs/onto-repository-info.cjs.entry.js +1 -1
  112. package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
  113. package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
  114. package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
  115. package/dist/shared-components/collection/components/onto-navbar/onto-navbar.js +1 -1
  116. package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.css +1 -1
  117. package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.js +1 -1
  118. package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.css +1 -1
  119. package/dist/shared-components/collection/components/onto-repository-selector/selector-item.js +1 -1
  120. package/dist/shared-components/esm/loader.js +1 -1
  121. package/dist/shared-components/esm/onto-footer_3.entry.js +1 -1
  122. package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
  123. package/dist/shared-components/esm/onto-layout.entry.js +1 -1
  124. package/dist/shared-components/esm/onto-repository-info.entry.js +1 -1
  125. package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
  126. package/dist/shared-components/esm/shared-components.js +1 -1
  127. package/dist/shared-components/shared-components/p-0b5b6ae2.entry.js +1 -0
  128. package/dist/shared-components/shared-components/{p-b8548920.entry.js → p-3201c16d.entry.js} +1 -1
  129. package/dist/shared-components/shared-components/p-6bb1e333.entry.js +1 -0
  130. package/dist/shared-components/shared-components/p-b3e34efa.entry.js +1 -0
  131. package/dist/shared-components/shared-components/p-e07c6668.entry.js +1 -0
  132. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  133. package/dist/shared-components/types/components/onto-layout/onto-layout.d.ts +12 -0
  134. package/dist/shared-components/types/components/onto-navbar/onto-navbar.d.ts +3 -0
  135. package/dist/shared-components/types/components/onto-repository-info/onto-repository-info.d.ts +4 -0
  136. package/dist/shared-components/types/components/onto-repository-selector/selector-item.d.ts +1 -1
  137. package/dist/workbench/workbench/216.84774aeec22c9e0d.js +1 -0
  138. package/dist/workbench/workbench/{937.c2bb6617eb67b694.js → 272.720044b4ff7554f5.js} +1 -1
  139. package/dist/workbench/workbench/472.eb8524a286baa5e7.js +1 -0
  140. package/dist/workbench/workbench/workbenchApp.js +1 -1
  141. package/package.json +1 -1
  142. package/dist/28944.50f6cc0b531327c3210e.bundle.js +0 -2
  143. package/dist/28944.50f6cc0b531327c3210e.bundle.js.map +0 -1
  144. package/dist/43239.520a41f9703920195281.bundle.js +0 -2
  145. package/dist/43239.520a41f9703920195281.bundle.js.map +0 -1
  146. package/dist/44906.732540785071c9088916.bundle.js +0 -2
  147. package/dist/44906.732540785071c9088916.bundle.js.map +0 -1
  148. package/dist/7714.ccdf9a75e387a85cb980.bundle.js +0 -2
  149. package/dist/7714.ccdf9a75e387a85cb980.bundle.js.map +0 -1
  150. package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js +0 -2
  151. package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js.map +0 -1
  152. package/dist/legacyWorkbench.ec3c7f8dd4342d75e489.js +0 -3
  153. package/dist/main.519bdd021ad27b8f7c2a.js.map +0 -1
  154. package/dist/shared-components/shared-components/p-388d4524.entry.js +0 -1
  155. package/dist/shared-components/shared-components/p-78c03a43.entry.js +0 -1
  156. package/dist/shared-components/shared-components/p-8952636b.entry.js +0 -1
  157. package/dist/shared-components/shared-components/p-b6fa9b0a.entry.js +0 -1
  158. package/dist/workbench/workbench/216.1d0b714ace0ab8e4.js +0 -1
  159. package/dist/workbench/workbench/472.d4b7ec12b3627aee.js +0 -1
  160. /package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.LICENSE.txt → legacyWorkbench.d8ed4eb634c5be181feb.js.LICENSE.txt} +0 -0
  161. /package/dist/{main.519bdd021ad27b8f7c2a.js.LICENSE.txt → main.bb3c33c0be119ba8d7dd.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=7714;export const __webpack_esm_ids__=[7714];export const __webpack_esm_modules__={53325(e,o,t){t.d(o,{L:()=>i});var r=t(57154);class i{static get logger(){return r.Loggers.getLoggerInstance("SharedComponents")}}},7714(e,o,t){t.r(o),t.d(o,{onto_repository_info:()=>n});var r=t(18072),i=t(57154),s=t(53325);const n=class{constructor(e){(0,r.r)(this,e),this.languageContextService=(0,i.service)(i.LanguageContextService),this.languageService=(0,i.service)(i.LanguageService),this.subscriptions=new i.SubscriptionList,this.productInfoContextService=(0,i.service)(i.ProductInfoContextService),this.fedxMigrationDocumentationUrl=this.resolveFedxMigrationDocumentationUrl(),this.loading=!1}connectedCallback(){this.setupFormatters(),this.subscriptions.add(this.languageContextService.onSelectedLanguageChanged(e=>{this.setupFormatters(e)}))}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){const e=this.parseProperty(this.repository,"repository");return e?(0,r.h)(r.a,null,(0,r.h)("div",{class:"repository-info-title","data-test":"repository-info-title"},this.renderHeading(e)),e.title&&(0,r.h)("div",{class:"repository-info-description","data-test":"repository-info-description"},e.title),(0,r.h)("div",{class:"repository-info-content"},this.renderRow("location","location",e.location?e.location:this.renderLabel("local")),this.renderRow("type","type",this.renderLabel(`types.${e.type||"unknown"}`)),this.renderRow("permissions","permissions_label",this.renderPermission()),this.renderStatements(e),e.type===i.RepositoryType.FEDX&&this.renderFedxDeprecationMessage())):(0,r.h)(r.a,null)}renderPermission(){return this.permission?this.renderLabel(`permissions.${this.permission.toLowerCase()}`):"-"}renderHeading(e){let o,t="inactive";return e.state===i.RepositoryState.RUNNING?(o="ri-checkbox-blank-circle-fill",t=""):o=e.state===i.RepositoryState.INACTIVE?"ri-stop-large-fill":"ri-loop-left-fill",(0,r.h)("h6",{class:`title ${t}`},(0,r.h)("i",{class:o}),(0,r.h)("span",null,e.id))}renderStatements(e){return e.state!==i.RepositoryState.RUNNING?this.renderInactiveRepositoryMessage():this.loading?(0,r.h)("div",{class:"repository-info-row repository-size-loading","data-test":"repository-info-loading"},(0,r.h)("onto-loader",{loading:!0,size:25})):this.renderSizeInfo(this.parseProperty(this.sizeInfo,"sizeInfo"))}renderSizeInfo(e){return!e||e.total<0?(0,r.h)("div",{"data-test":"repository-info-not-available"},this.renderLabel("repository-size.repository-info-not-available")):[this.renderRow("total","repository-size.total",this.totalStatementsFormatter.format(e.total)),e.explicit>=0&&this.renderRow("explicit","repository-size.explicit",this.totalStatementsFormatter.format(e.explicit)),e.inferred>=0&&this.renderRow("inferred","repository-size.inferred",this.totalStatementsFormatter.format(e.inferred)),e.explicit>=0&&this.renderRow("expansion-ratio","repository-size.expansion_ratio",this.formatExpansionRatio(e))]}renderInactiveRepositoryMessage(){return(0,r.h)("div",{class:"repository-info-row inactive-repo-message","data-test":"repository-info-inactive"},(0,r.h)("div",{class:"icon"},(0,r.h)("i",{class:"ri-information-2-line"})),(0,r.h)("div",{class:"message"},(0,r.h)("p",null,this.renderLabel("repository-size.repository_inactive"))))}renderFedxDeprecationMessage(){return(0,r.h)("div",{class:"repository-info-row deprecation-message","data-test":"repository-info-deprecation"},(0,r.h)("div",{class:"icon"},(0,r.h)("i",{class:"ri-alert-line"})),(0,r.h)("div",{class:"message"},(0,r.h)("p",null,this.renderLabel("fedx_deprecated")," ",(0,r.h)("a",{href:this.fedxMigrationDocumentationUrl,target:"_blank",rel:"noopener noreferrer","data-test":"repository-info-fedx-migration-link"},this.renderLabel("fedx_learn_more")))))}renderRow(e,o,t){return(0,r.h)("div",{class:`repository-info-row ${e}`,"data-test":`repository-info-${e}`},(0,r.h)("div",{class:"label"},this.renderLabel(o),":"),(0,r.h)("div",{class:"value"},t))}renderLabel(e){const o=`repository-info.${e}`;return(0,r.h)("translate-label",{key:o,labelKey:o})}formatExpansionRatio(e){return e.explicit>0?this.expansionRatioFormatter.format(e.total/e.explicit):"-"}setupFormatters(e){const o=e||this.languageService.getDefaultLanguage();this.totalStatementsFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0}),this.expansionRatioFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2})}resolveFedxMigrationDocumentationUrl(){var e;return i.UriUtil.resolveDocumentationUrl(null===(e=this.productInfoContextService.getProductInfo())||void 0===e?void 0:e.shortVersion,"sparql-federation.html")}parseProperty(e,o){try{return function(e){return"string"!=typeof e?null!=e?e:void 0:e?JSON.parse(e):void 0}(e)}catch(t){return void s.L.logger.error(`The "${o}" property of onto-repository-info is not a valid JSON: "${e}"`,t)}}};n.style="onto-repository-info{display:block;padding:0.5rem 0}onto-repository-info .repository-info-title{font-size:1rem;margin-bottom:0.375em}onto-repository-info .repository-info-title .title{display:flex;align-items:baseline;font-weight:600;color:var(--gw-foreground-on-surface-default)}onto-repository-info .repository-info-title .title.inactive{color:var(--gw-foreground-on-surface-subtle)}onto-repository-info .repository-info-title .title span{overflow-wrap:anywhere}onto-repository-info .repository-info-title .title i{flex-shrink:0;font-size:inherit;margin-right:0.8em}onto-repository-info .repository-info-title .title i::before{font-size:0.9em}onto-repository-info .repository-info-title .title .ri-stop-large-fill{color:var(--gw-foreground-on-surface-disabled)}onto-repository-info .repository-info-title .title .ri-checkbox-blank-circle-fill{color:var(--gw-success-base)}onto-repository-info .repository-info-description{margin-bottom:0.375em;font-size:0.8rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}onto-repository-info .repository-info-content{border-top:1px solid var(--gw-dialog-border-color);padding-top:0.5em;display:flex;flex-direction:column;gap:0.2em;font-weight:400;font-size:0.875rem}onto-repository-info .repository-info-row{display:flex;justify-content:space-between}onto-repository-info .repository-info-row.total{margin-top:1.2em}onto-repository-info .repository-info-row .value{margin-left:0.6em;font-weight:500}onto-repository-info .repository-info-row.repository-size-loading{justify-content:center;align-items:center}onto-repository-info .repository-info-row.inactive-repo-message,onto-repository-info .repository-info-row.deprecation-message{font-size:1.15em;background-color:var(--gw-message-help-background);color:var(--gw-message-help-color);justify-content:flex-start;margin-top:0.75rem;padding:0.25rem 0.5rem;gap:0.57em;border:1px solid var(--gw-message-help-border-color)}onto-repository-info .repository-info-row.inactive-repo-message p,onto-repository-info .repository-info-row.deprecation-message p{margin:0}onto-repository-info .repository-info-row.deprecation-message{background-color:var(--gw-message-warning-background);color:var(--gw-message-warning-color);border-color:var(--gw-message-warning-border-color)}"}};
2
+ //# sourceMappingURL=7714.5b4ab90c7b30c68d74f2.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"7714.5b4ab90c7b30c68d74f2.bundle.js","mappings":"gKAMA,MAAMA,EAMF,iBAAWC,GACP,OAAOC,EAAAA,QAAQC,kBAXH,mBAYhB,E,8FCcJ,MAIMC,EAAqB,MACvBC,WAAAA,CAAYC,IACRC,EAAAA,EAAAA,GAAiBC,KAAMF,GACvBE,KAAKC,wBAAyBC,EAAAA,EAAAA,SAAQC,EAAAA,wBACtCH,KAAKI,iBAAkBF,EAAAA,EAAAA,SAAQG,EAAAA,iBAC/BL,KAAKM,cAAgB,IAAIC,EAAAA,iBACzBP,KAAKQ,2BAA4BN,EAAAA,EAAAA,SAAQO,EAAAA,2BACzCT,KAAKU,8BAAgCV,KAAKW,uCAI1CX,KAAKY,SAAU,CACnB,CACAC,iBAAAA,GAEIb,KAAKc,kBACLd,KAAKM,cAAcS,IAAIf,KAAKC,uBAAuBe,0BAA2BC,IAC1EjB,KAAKc,gBAAgBG,KAE7B,CACAC,oBAAAA,GACIlB,KAAKM,cAAca,gBACvB,CACAC,MAAAA,GACI,MAAMC,EAAarB,KAAKsB,cAActB,KAAKqB,WAAY,cACvD,OAAKA,GAGGE,EAAAA,EAAAA,GAAEC,EAAAA,EAAM,MAAMD,EAAAA,EAAAA,GAAE,MAAO,CAAEE,MAAO,wBAAyB,YAAa,yBAA2BzB,KAAK0B,cAAcL,IAAcA,EAAWM,QACjJJ,EAAAA,EAAAA,GAAE,MAAO,CAAEE,MAAO,8BAA+B,YAAa,+BAAiCJ,EAAWM,QAAQJ,EAAAA,EAAAA,GAAE,MAAO,CAAEE,MAAO,2BAA6BzB,KAAK4B,UAAU,WAAY,WAAYP,EAAWQ,SAAWR,EAAWQ,SAAW7B,KAAK8B,YAAY,UAAW9B,KA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Y8B,GACR,MAAME,EAAM,mBAAyBF,IACrC,OAAOrC,EAAAA,EAAAA,GAAE,kBAAmB,CAAEuC,IAAKA,EAAKF,SAAUE,GACtD,CACAP,oBAAAA,CAAqBN,GACjB,OAAIA,EAASI,SAAW,EACbrD,KAAK+D,wBAAwBX,OAAOH,EAASC,MAAQD,EAASI,UAElE,GACX,CACAvC,eAAAA,CAAgBG,GACZ,MAAM+C,EAAoB/C,GAAYjB,KAAKI,gBAAgB6D,qBAC3DjE,KAAKmD,yBAA2B,IAAIe,KAAKC,aAAaH,EAAmB,CACrEI,MAAO,UACPC,sBAAuB,EACvBC,sBAAuB,IAE3BtE,KAAK+D,wBAA0B,IAAIG,KAAKC,aAAaH,EAAmB,CACpEI,MAAO,UACPC,sBAAuB,EACvBC,sBAAuB,GAE/B,CACA3D,oCAAAA,GACI,IAAI4D,EACJ,OAAOC,EAAAA,QAAQC,wBAAmF,QAA1DF,EAAKvE,KAAKQ,0BAA0BkE,wBAA0C,IAAZH,OAAqB,EAAIA,EAAGI,aAzHpG,yBA0HtC,CAKArD,aAAAA,CAAcuC,EAAOe,GACjB,IACI,OA3IZ,SAA2Bf,GACvB,MAAqB,iBAAVA,EACAA,QAAqCA,OAAQgB,EAEjDhB,EAAQiB,KAAKC,MAAMlB,QAASgB,CACvC,CAsImBG,CAAkBnB,EAC7B,CACA,MAAOoB,GAEH,YADAzF,EAAAA,EAAeC,OAAOwF,MAAM,QAAQL,6DAAwEf,KAAUoB,EAE1H,CACJ,GAEJrF,EAAmBwE,MA5IW,4wE","sources":["webpack://root-config/./packages/shared-components/dist/esm/logger-provider-BIkLC5Zf.js","webpack://root-config/./packages/shared-components/dist/esm/onto-repository-info.entry.js"],"sourcesContent":["import { Loggers } from '@ontotext/workbench-api';\n\nconst MODULE_NAME = 'SharedComponents';\n/**\n * Logger for the Shared Components module.\n */\nclass LoggerProvider {\n /**\n * Gets the logger instance for the Shared Components module.\n *\n * @returns LoggerService instance for the Shared Components module\n */\n static get logger() {\n return Loggers.getLoggerInstance(MODULE_NAME);\n }\n}\n\nexport { LoggerProvider as L };\n","import { r as registerInstance, h, a as Host } from './index-BntG-4Sv.js';\nimport { service, LanguageContextService, LanguageService, SubscriptionList, ProductInfoContextService, RepositoryType, RepositoryState, UriUtil } from '@ontotext/workbench-api';\nimport { L as LoggerProvider } from './logger-provider-BIkLC5Zf.js';\n\n/**\n * Returns the given value as an object. A value that is not a string is returned as it is. A string is parsed\n * as JSON.\n *\n * It is for component properties that accept an object, or the same data as JSON text from consumers that can only\n * write the component as a tag in an HTML string.\n *\n * @template T - The type of the expected object\n * @param value - The object, or the JSON text that represents it\n * @returns The object, or `undefined` if the value is null, undefined or an empty string\n * @throws SyntaxError if the value is a string that is not a valid JSON\n *\n * @example\n * parseJsonIfString<{a: number}>('{\"a\": 1}'); // { a: 1 }\n * parseJsonIfString({a: 1}); // { a: 1 }\n * parseJsonIfString('not a json'); // throws SyntaxError\n */\nfunction parseJsonIfString(value) {\n if (typeof value !== 'string') {\n return value !== null && value !== void 0 ? value : undefined;\n }\n return value ? JSON.parse(value) : undefined;\n}\n\nconst ontoRepositoryInfoCss = \"onto-repository-info{display:block;padding:0.5rem 0}onto-repository-info .repository-info-title{font-size:1rem;margin-bottom:0.375em}onto-repository-info .repository-info-title .title{display:flex;align-items:baseline;font-weight:600;color:var(--gw-foreground-on-surface-default)}onto-repository-info .repository-info-title .title.inactive{color:var(--gw-foreground-on-surface-subtle)}onto-repository-info .repository-info-title .title span{overflow-wrap:anywhere}onto-repository-info .repository-info-title .title i{flex-shrink:0;font-size:inherit;margin-right:0.8em}onto-repository-info .repository-info-title .title i::before{font-size:0.9em}onto-repository-info .repository-info-title .title .ri-stop-large-fill{color:var(--gw-foreground-on-surface-disabled)}onto-repository-info .repository-info-title .title .ri-checkbox-blank-circle-fill{color:var(--gw-success-base)}onto-repository-info .repository-info-description{margin-bottom:0.375em;font-size:0.8rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}onto-repository-info .repository-info-content{border-top:1px solid var(--gw-dialog-border-color);padding-top:0.5em;display:flex;flex-direction:column;gap:0.2em;font-weight:400;font-size:0.875rem}onto-repository-info .repository-info-row{display:flex;justify-content:space-between}onto-repository-info .repository-info-row.total{margin-top:1.2em}onto-repository-info .repository-info-row .value{margin-left:0.6em;font-weight:500}onto-repository-info .repository-info-row.repository-size-loading{justify-content:center;align-items:center}onto-repository-info .repository-info-row.inactive-repo-message,onto-repository-info .repository-info-row.deprecation-message{font-size:1.15em;background-color:var(--gw-message-help-background);color:var(--gw-message-help-color);justify-content:flex-start;margin-top:0.75rem;padding:0.25rem 0.5rem;gap:0.57em;border:1px solid var(--gw-message-help-border-color)}onto-repository-info .repository-info-row.inactive-repo-message p,onto-repository-info .repository-info-row.deprecation-message p{margin:0}onto-repository-info .repository-info-row.deprecation-message{background-color:var(--gw-message-warning-background);color:var(--gw-message-warning-color);border-color:var(--gw-message-warning-border-color)}\";\n\nconst TRANSLATION_PREFIX = 'repository-info';\nconst FEDX_MIGRATION_DOCUMENTATION_PAGE = 'sparql-federation.html';\nconst OntoRepositoryInfo = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.languageContextService = service(LanguageContextService);\n this.languageService = service(LanguageService);\n this.subscriptions = new SubscriptionList();\n this.productInfoContextService = service(ProductInfoContextService);\n this.fedxMigrationDocumentationUrl = this.resolveFedxMigrationDocumentationUrl();\n /**\n * Whether the statement counts are being loaded. A spinner is shown in their place.\n */\n this.loading = false;\n }\n connectedCallback() {\n // The formatters are created here, so that they do not depend on the first notification of the subscription.\n this.setupFormatters();\n this.subscriptions.add(this.languageContextService.onSelectedLanguageChanged((language) => {\n this.setupFormatters(language);\n }));\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n const repository = this.parseProperty(this.repository, 'repository');\n if (!repository) {\n return h(Host, null);\n }\n return (h(Host, null, h(\"div\", { class: \"repository-info-title\", \"data-test\": \"repository-info-title\" }, this.renderHeading(repository)), repository.title &&\n h(\"div\", { class: \"repository-info-description\", \"data-test\": \"repository-info-description\" }, repository.title), h(\"div\", { class: \"repository-info-content\" }, this.renderRow('location', 'location', repository.location ? repository.location : this.renderLabel('local')), this.renderRow('type', 'type', this.renderLabel(`types.${repository.type || 'unknown'}`)), this.renderRow('permissions', 'permissions_label', this.renderPermission()), this.renderStatements(repository), repository.type === RepositoryType.FEDX && this.renderFedxDeprecationMessage())));\n }\n renderPermission() {\n if (!this.permission) {\n return '-';\n }\n return this.renderLabel(`permissions.${this.permission.toLowerCase()}`);\n }\n /**\n * Renders the heading: the state icon and the id of the repository. The <code>title</code> of the repository is\n * its description and is rendered separately.\n */\n renderHeading(repository) {\n let stateIndicatorIconClass;\n let stateIndicatorClass = 'inactive';\n if (repository.state === RepositoryState.RUNNING) {\n stateIndicatorIconClass = 'ri-checkbox-blank-circle-fill';\n stateIndicatorClass = '';\n }\n else if (repository.state === RepositoryState.INACTIVE) {\n stateIndicatorIconClass = 'ri-stop-large-fill';\n }\n else {\n stateIndicatorIconClass = 'ri-loop-left-fill';\n }\n return (h(\"h6\", { class: `title ${stateIndicatorClass}` }, h(\"i\", { class: stateIndicatorIconClass }), h(\"span\", null, repository.id)));\n }\n renderStatements(repository) {\n if (repository.state !== RepositoryState.RUNNING) {\n return this.renderInactiveRepositoryMessage();\n }\n if (this.loading) {\n return (h(\"div\", { class: \"repository-info-row repository-size-loading\", \"data-test\": \"repository-info-loading\" }, h(\"onto-loader\", { loading: true, size: 25 })));\n }\n return this.renderSizeInfo(this.parseProperty(this.sizeInfo, 'sizeInfo'));\n }\n renderSizeInfo(sizeInfo) {\n if (!sizeInfo || sizeInfo.total < 0) {\n return (h(\"div\", { \"data-test\": \"repository-info-not-available\" }, this.renderLabel('repository-size.repository-info-not-available')));\n }\n return [\n this.renderRow('total', 'repository-size.total', this.totalStatementsFormatter.format(sizeInfo.total)),\n sizeInfo.explicit >= 0\n && this.renderRow('explicit', 'repository-size.explicit', this.totalStatementsFormatter.format(sizeInfo.explicit)),\n sizeInfo.inferred >= 0\n && this.renderRow('inferred', 'repository-size.inferred', this.totalStatementsFormatter.format(sizeInfo.inferred)),\n sizeInfo.explicit >= 0\n && this.renderRow('expansion-ratio', 'repository-size.expansion_ratio', this.formatExpansionRatio(sizeInfo))\n ];\n }\n renderInactiveRepositoryMessage() {\n return (h(\"div\", { class: \"repository-info-row inactive-repo-message\", \"data-test\": \"repository-info-inactive\" }, h(\"div\", { class: \"icon\" }, h(\"i\", { class: \"ri-information-2-line\" })), h(\"div\", { class: \"message\" }, h(\"p\", null, this.renderLabel('repository-size.repository_inactive')))));\n }\n renderFedxDeprecationMessage() {\n return (h(\"div\", { class: \"repository-info-row deprecation-message\", \"data-test\": \"repository-info-deprecation\" }, h(\"div\", { class: \"icon\" }, h(\"i\", { class: \"ri-alert-line\" })), h(\"div\", { class: \"message\" }, h(\"p\", null, this.renderLabel('fedx_deprecated'), ' ', h(\"a\", { href: this.fedxMigrationDocumentationUrl, target: \"_blank\", rel: \"noopener noreferrer\", \"data-test\": \"repository-info-fedx-migration-link\" }, this.renderLabel('fedx_learn_more'))))));\n }\n /**\n * Renders a row with a label and a value.\n *\n * @param rowName The name of the row. It is the CSS class of the row and the end of its test id.\n * @param labelKey The translation key of the label, without the prefix of the component.\n * @param value The value to show.\n */\n renderRow(rowName, labelKey, value) {\n return (h(\"div\", { class: `repository-info-row ${rowName}`, \"data-test\": `repository-info-${rowName}` }, h(\"div\", { class: \"label\" }, this.renderLabel(labelKey), \":\"), h(\"div\", { class: \"value\" }, value)));\n }\n renderLabel(labelKey) {\n const key = `${TRANSLATION_PREFIX}.${labelKey}`;\n return h(\"translate-label\", { key: key, labelKey: key });\n }\n formatExpansionRatio(sizeInfo) {\n if (sizeInfo.explicit > 0) {\n return this.expansionRatioFormatter.format(sizeInfo.total / sizeInfo.explicit);\n }\n return '-';\n }\n setupFormatters(language) {\n const formatterLanguage = language || this.languageService.getDefaultLanguage();\n this.totalStatementsFormatter = new Intl.NumberFormat(formatterLanguage, {\n style: 'decimal',\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n this.expansionRatioFormatter = new Intl.NumberFormat(formatterLanguage, {\n style: 'decimal',\n minimumFractionDigits: 2,\n maximumFractionDigits: 2\n });\n }\n resolveFedxMigrationDocumentationUrl() {\n var _a;\n return UriUtil.resolveDocumentationUrl((_a = this.productInfoContextService.getProductInfo()) === null || _a === void 0 ? void 0 : _a.shortVersion, FEDX_MIGRATION_DOCUMENTATION_PAGE);\n }\n /**\n * Returns the value of a property that accepts an object or JSON text. A text that is not a valid JSON is\n * logged and treated as a missing value.\n */\n parseProperty(value, propertyName) {\n try {\n return parseJsonIfString(value);\n }\n catch (error) {\n LoggerProvider.logger.error(`The \"${propertyName}\" property of onto-repository-info is not a valid JSON: \"${value}\"`, error);\n return undefined;\n }\n }\n};\nOntoRepositoryInfo.style = ontoRepositoryInfoCss;\n\nexport { OntoRepositoryInfo as onto_repository_info };\n"],"names":["LoggerProvider","logger","Loggers","getLoggerInstance","OntoRepositoryInfo","constructor","hostRef","registerInstance","this","languageContextService","service","LanguageContextService","languageService","LanguageService","subscriptions","SubscriptionList","productInfoContextService","ProductInfoContextService","fedxMigrationDocumentationUrl","resolveFedxMigrationDocumentationUrl","loading","connectedCallback","setupFormatters","add","onSelectedLanguageChanged","language","disconnectedCallback","unsubscribeAll","render","repository","parseProperty","h","Host","class","renderHeading","title","renderRow","location","renderLabel","type","renderPermission","renderStatements","RepositoryType","FEDX","renderFedxDeprecationMessage","permission","toLowerCase","stateIndicatorIconClass","stateIndicatorClass","state","RepositoryState","RUNNING","INACTIVE","id","renderInactiveRepositoryMessage","size","renderSizeInfo","sizeInfo","total","totalStatementsFormatter","format","explicit","inferred","formatExpansionRatio","href","target","rel","rowName","labelKey","value","key","expansionRatioFormatter","formatterLanguage","getDefaultLanguage","Intl","NumberFormat","style","minimumFractionDigits","maximumFractionDigits","_a","UriUtil","resolveDocumentationUrl","getProductInfo","shortVersion","propertyName","undefined","JSON","parse","parseJsonIfString","error"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- export const __webpack_esm_id__=80933;export const __webpack_esm_ids__=[28662,64709,78469,80933,83847];export const __webpack_esm_modules__={80933(e,r,o){o(22742),o(33136),o(41559),o(83847),o(64709),o(72953),o(75752),o(21146),o(63030),angular.module("graphdb.framework.impex.import",["toastr","ngRoute","ngFileUpload","ui.bootstrap","graphdb.framework.impex.import.controllers","graphdb.framework.core.services.repositories","graphdb.framework.import.directives.validate-uri","graphdb.framework.import.directives.import-progress-indicator","graphdb.framework.import.directives.import-resource-tree"])},78469(e,r,o){var t=o(71315);angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",i),i.$inject=["$scope","$uibModalInstance","$translate","toastr","message"];const s=t.I.logger;function i(e,r,o,t,i){e.message=i,e.close=()=>{r.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(o.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{s.error("Could not copy text: ",e)})}}},64709(){function e(){return{link:function(e,r,o){e.$watch("file.status",function(){"IMPORTING"!==e.file.status&&"UPLOADING"!==e.file.status||!$(r).has("object").length>0&&$(r).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=4.0.0-TR20">{{\'common.loading\' | translate}}</object>')})}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("ImportProgressIndicator",e),e.$inject=[]},60016(e,r,o){o(78469);var t=o(2998),s=o(35195);function i(e){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-message.html",scope:{resource:"="},link:r=>{r.ImportResourceStatus=t.I,r.toTitleCase=e=>s.Sn(e),r.showMessage=r=>{e.open({templateUrl:"js/angular/import/templates/import-resource-message-dialog.html",controller:"ImportResourceMessageDialogController",size:"lg",windowClass:"import-resource-message-dialog",backdrop:"static",resolve:{message:function(){return r?r.importResource.message:""}}})}}}}angular.module("graphdb.framework.import.directives.import-resource-message",["graphdb.framework.impex.import.controllers.import-resource-message-dialog"]).directive("importResourceMessage",i),i.$inject=["$uibModal"]},28662(){function e(e,r){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-status-info.html",scope:{resource:"="},link:o=>{const t=[];o.popoverTemplate="resourceStatusInfoTemplate.html",o.popoverIsOpen=!1,o.context=o.resource.importResource.context,o.replaceGraphs=o.resource.importResource.replaceGraphs,o.baseUrl=decodeURIComponent(o.resource.importResource.baseURI),o.forceSerial=o.resource.importResource.forceSerial,o.importedOn=o.resource.importResource.importedOn,o.parserSettings=o.resource.importResource.parserSettings,o.open=()=>{o.closeAllDialogs(),o.popoverIsOpen=!0},o.closeAllDialogs=()=>{e.$broadcast("closePopovers")},o.close=()=>{o.popoverIsOpen=!1};const s=e=>{"Escape"===e.key&&o.$apply(()=>{o.close()})};t.push(o.$on("closePopovers",o.close)),r.on("keydown",s),o.$on("$destroy",()=>{r.off("keydown",s),t.forEach(e=>e())})}}}angular.module("graphdb.framework.import.directives.import-resource-status-info",[]).directive("importResourceStatusInfo",e),e.$inject=["$rootScope","$document"]},72953(e,r,o){var t=o(2998),s=(o(60016),o(28662),o(66256)),i=o(71609),c=o(59601),a=o(33757),l=o(57154);const n={FILE:"FILE",DIRECTORY:"DIRECTORY",ALL:"ALL"},p={ALL:"ALL",NONE:"NONE",IMPORTED:"IMPORTED",NOT_IMPORTED:"NOT_IMPORTED"};function m(e,r){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-tree.html",scope:{columnKeys:"=",showTypeFilter:"=",sortBy:"=",asc:"=",onImport:"&",onImportAll:"&",onReset:"&",onRemove:"&",onStopImport:"&",onEditResource:"&"},link:(o,m,u)=>{o.resources=new i.k,o.displayResources=[],o.TYPE_FILTER_OPTIONS=n,o.filterByType=n.ALL,o.filterByFileName="",o.STATUS_OPTIONS=p,o.allDisplayedSelected=!1,o.displayedPartiallySelected=!1,o.ImportResourceStatus=t.I,o.canRemoveResource=angular.isDefined(u.onRemove),o.canResetSelectedResources=!1,o.SORTING_TYPES=s.R,o.sortAsc=!angular.isDefined(u.asc)||o.asc,o.sortedBy=o.sortBy,o.showLoader=r.getShowLoader(),o.hasSelection=!1,o.selectionChanged=e=>{e.setSelection(e.selected),I(),d(),R()},o.selectResourceWithStatus=e=>{o.resources.setSelection(!1),p.ALL===e?o.resources.setSelection(!0):p.IMPORTED===e?o.resources.selectAllWithStatus([t.I.DONE]):p.NOT_IMPORTED===e&&o.resources.selectAllWithStatus([t.I.IMPORTING,t.I.NONE,t.I.ERROR,t.I.PENDING,t.I.INTERRUPTING]),g(),d()},o.toggleAllDisplayedResources=()=>{const e=!o.allDisplayedSelected;o.displayResources.forEach(r=>r.setSelection(e)),g(),d()},o.filterByTypeChanged=e=>{o.filterByType=e,g()},o.filterByFileNameChanged=e=>{o.filterByFileName=e,N(g,100)},o.onResetStatus=()=>{const e=o.resources.getAllSelected().map(e=>e.path);e.length>0&&o.onReset({resources:e})},o.resetStatus=e=>{o.onReset({resources:[e.path]})},o.onRemoveResources=()=>{const e=o.resources.getAllSelected();e&&e.length>0&&o.onRemove({resources:e})},o.removeResource=e=>{o.onRemove({resources:[e]})},o.importAll=e=>{const r=o.resources.getAllSelectedForImport();r.length>0&&o.onImportAll({selectedResources:r,withoutChangingSettings:e})},o.stopImport=e=>{o.onStopImport({resource:e})},o.sort=e=>{o.sortedBy===e?o.sortAsc=!o.sortAsc:o.sortAsc=!0,o.sortedBy=e,g()},o.getAriaSort=e=>o.sortedBy!==e?"none":o.sortAsc?"ascending":"descending",o.getSortClass=e=>o.sortedBy!==e?"sorting":o.sortAsc?"sorting_asc":"sorting_desc",o.editResource=e=>{o.onEditResource({resource:e})};const d=()=>{o.canResetSelectedResources=o.resources.getSelectedImportedResources()},g=()=>{o.resources.getRoot().updateSelectionState(),y(),o.displayResources=o.resources.toList().filter(v).filter(A),R(),I()},R=()=>{const e=o.resources.getAllSelectedFilesNames();o.hasSelection=e.length>0,r.updateSelectedFilesNames(e)},I=()=>{const e=o.displayResources.some(e=>!e.selected),r=o.displayResources.some(e=>e.selected);o.allDisplayedSelected=r&&!e,o.displayedPartiallySelected=r&&e},y=()=>{s.R.NAME===o.sortedBy?o.resources.sort(f(o.sortAsc)):s.R.SIZE===o.sortedBy?o.resources.sort(h(o.sortAsc)):s.R.MODIFIED===o.sortedBy?o.resources.sort(T(o.sortAsc)):s.R.IMPORTED===o.sortedBy?o.resources.sort(S(o.sortAsc)):s.R.CONTEXT===o.sortedBy&&o.resources.sort(E(o.sortAsc))},f=e=>(r,o)=>e?r.importResource.name.localeCompare(o.importResource.name):o.importResource.name.localeCompare(r.importResource.name),h=e=>(r,o)=>{const t=l.ByteUtils.convertToBytes(r.importResource.size),s=l.ByteUtils.convertToBytes(o.importResource.size);return e?t-s:s-t},T=e=>(r,o)=>{const t=r.importResource.modifiedOn||Number.MAX_VALUE,s=o.importResource.modifiedOn||Number.MAX_VALUE;return e?t-s:s-t},S=e=>(r,o)=>{const t=r.importResource.importedOn||Number.MAX_VALUE,s=o.importResource.importedOn||Number.MAX_VALUE;return e?t-s:s-t},E=e=>(r,o)=>e?r.importResource.context.localeCompare(o.importResource.context):o.importResource.context.localeCompare(r.importResource.context),v=e=>n.ALL===o.filterByType||(o.filterByType===n.FILE?e.isFile():o.filterByType===n.DIRECTORY&&e.isDirectory()),A=e=>!o.filterByFileName||(o.filterByType===n.DIRECTORY?e.hasTextInDirectoriesName(o.filterByFileName):o.filterByType===n.FILE?e.hasTextInFilesName(o.filterByFileName):e.hasTextInResourcesName(o.filterByFileName));let O;const N=(r,o)=>{O&&e.cancel(O),O=e(r,o)},b=[];b.push(r.onResourcesUpdated((e=[])=>{const t=c.D.USER===r.getActiveTabId();o.resources.isEmpty()?(o.resources=a.Fp.toImportResourceTree(e,t),t&&(o.sortedBy=s.R.MODIFIED)):a.Fp.mergeResourceTree(o.resources,e,t),a.Fp.calculateElementIndent(o.resources),a.Fp.setupAfterTreeInitProperties(o.resources),g(),d()})),b.push(r.onShowLoaderUpdated(e=>o.showLoader=e)),b.push(r.onActiveTabIdUpdated(()=>o.resources=new i.k)),o.$on("$destroy",()=>{b.forEach(e=>e())})}}}angular.module("graphdb.framework.import.directives.import-resource-tree",["graphdb.framework.import.directives.import-resource-message","graphdb.framework.import.directives.import-resource-status-info"]).directive("importResourceTree",m),m.$inject=["$timeout","ImportContextService"]},83847(){function e(e){return{restrict:"A",require:"ngModel",link:function(r,o,t,s){s.$parsers.unshift(function(r){if(s.$setValidity("validateUri",!0),!s.$isEmpty(r)){const o=e.isValidIri(r,r.toString());s.$setValidity("validateUri",o)}return r})}}}angular.module("graphdb.framework.import.directives.validate-uri",[]).directive("validateUri",e),e.$inject=["UriUtils"]}};
2
- //# sourceMappingURL=80933.3851df33b6cf8f94243c.bundle.js.map
1
+ export const __webpack_esm_id__=80933;export const __webpack_esm_ids__=[28662,64709,78469,80933,83847];export const __webpack_esm_modules__={80933(e,r,o){o(22742),o(33136),o(41559),o(83847),o(64709),o(72953),o(75752),o(21146),o(63030),angular.module("graphdb.framework.impex.import",["toastr","ngRoute","ngFileUpload","ui.bootstrap","graphdb.framework.impex.import.controllers","graphdb.framework.core.services.repositories","graphdb.framework.import.directives.validate-uri","graphdb.framework.import.directives.import-progress-indicator","graphdb.framework.import.directives.import-resource-tree"])},78469(e,r,o){var t=o(71315);angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",i),i.$inject=["$scope","$uibModalInstance","$translate","toastr","message"];const s=t.I.logger;function i(e,r,o,t,i){e.message=i,e.close=()=>{r.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(o.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{s.error("Could not copy text: ",e)})}}},64709(){function e(){return{link:function(e,r,o){e.$watch("file.status",function(){"IMPORTING"!==e.file.status&&"UPLOADING"!==e.file.status||!$(r).has("object").length>0&&$(r).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=4.0.0-TR21">{{\'common.loading\' | translate}}</object>')})}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("ImportProgressIndicator",e),e.$inject=[]},60016(e,r,o){o(78469);var t=o(2998),s=o(35195);function i(e){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-message.html",scope:{resource:"="},link:r=>{r.ImportResourceStatus=t.I,r.toTitleCase=e=>s.Sn(e),r.showMessage=r=>{e.open({templateUrl:"js/angular/import/templates/import-resource-message-dialog.html",controller:"ImportResourceMessageDialogController",size:"lg",windowClass:"import-resource-message-dialog",backdrop:"static",resolve:{message:function(){return r?r.importResource.message:""}}})}}}}angular.module("graphdb.framework.import.directives.import-resource-message",["graphdb.framework.impex.import.controllers.import-resource-message-dialog"]).directive("importResourceMessage",i),i.$inject=["$uibModal"]},28662(){function e(e,r){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-status-info.html",scope:{resource:"="},link:o=>{const t=[];o.popoverTemplate="resourceStatusInfoTemplate.html",o.popoverIsOpen=!1,o.context=o.resource.importResource.context,o.replaceGraphs=o.resource.importResource.replaceGraphs,o.baseUrl=decodeURIComponent(o.resource.importResource.baseURI),o.forceSerial=o.resource.importResource.forceSerial,o.importedOn=o.resource.importResource.importedOn,o.parserSettings=o.resource.importResource.parserSettings,o.open=()=>{o.closeAllDialogs(),o.popoverIsOpen=!0},o.closeAllDialogs=()=>{e.$broadcast("closePopovers")},o.close=()=>{o.popoverIsOpen=!1};const s=e=>{"Escape"===e.key&&o.$apply(()=>{o.close()})};t.push(o.$on("closePopovers",o.close)),r.on("keydown",s),o.$on("$destroy",()=>{r.off("keydown",s),t.forEach(e=>e())})}}}angular.module("graphdb.framework.import.directives.import-resource-status-info",[]).directive("importResourceStatusInfo",e),e.$inject=["$rootScope","$document"]},72953(e,r,o){var t=o(2998),s=(o(60016),o(28662),o(66256)),i=o(71609),c=o(59601),a=o(33757),l=o(57154);const n={FILE:"FILE",DIRECTORY:"DIRECTORY",ALL:"ALL"},p={ALL:"ALL",NONE:"NONE",IMPORTED:"IMPORTED",NOT_IMPORTED:"NOT_IMPORTED"};function m(e,r){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-tree.html",scope:{columnKeys:"=",showTypeFilter:"=",sortBy:"=",asc:"=",onImport:"&",onImportAll:"&",onReset:"&",onRemove:"&",onStopImport:"&",onEditResource:"&"},link:(o,m,u)=>{o.resources=new i.k,o.displayResources=[],o.TYPE_FILTER_OPTIONS=n,o.filterByType=n.ALL,o.filterByFileName="",o.STATUS_OPTIONS=p,o.allDisplayedSelected=!1,o.displayedPartiallySelected=!1,o.ImportResourceStatus=t.I,o.canRemoveResource=angular.isDefined(u.onRemove),o.canResetSelectedResources=!1,o.SORTING_TYPES=s.R,o.sortAsc=!angular.isDefined(u.asc)||o.asc,o.sortedBy=o.sortBy,o.showLoader=r.getShowLoader(),o.hasSelection=!1,o.selectionChanged=e=>{e.setSelection(e.selected),I(),d(),R()},o.selectResourceWithStatus=e=>{o.resources.setSelection(!1),p.ALL===e?o.resources.setSelection(!0):p.IMPORTED===e?o.resources.selectAllWithStatus([t.I.DONE]):p.NOT_IMPORTED===e&&o.resources.selectAllWithStatus([t.I.IMPORTING,t.I.NONE,t.I.ERROR,t.I.PENDING,t.I.INTERRUPTING]),g(),d()},o.toggleAllDisplayedResources=()=>{const e=!o.allDisplayedSelected;o.displayResources.forEach(r=>r.setSelection(e)),g(),d()},o.filterByTypeChanged=e=>{o.filterByType=e,g()},o.filterByFileNameChanged=e=>{o.filterByFileName=e,N(g,100)},o.onResetStatus=()=>{const e=o.resources.getAllSelected().map(e=>e.path);e.length>0&&o.onReset({resources:e})},o.resetStatus=e=>{o.onReset({resources:[e.path]})},o.onRemoveResources=()=>{const e=o.resources.getAllSelected();e&&e.length>0&&o.onRemove({resources:e})},o.removeResource=e=>{o.onRemove({resources:[e]})},o.importAll=e=>{const r=o.resources.getAllSelectedForImport();r.length>0&&o.onImportAll({selectedResources:r,withoutChangingSettings:e})},o.stopImport=e=>{o.onStopImport({resource:e})},o.sort=e=>{o.sortedBy===e?o.sortAsc=!o.sortAsc:o.sortAsc=!0,o.sortedBy=e,g()},o.getAriaSort=e=>o.sortedBy!==e?"none":o.sortAsc?"ascending":"descending",o.getSortClass=e=>o.sortedBy!==e?"sorting":o.sortAsc?"sorting_asc":"sorting_desc",o.editResource=e=>{o.onEditResource({resource:e})};const d=()=>{o.canResetSelectedResources=o.resources.getSelectedImportedResources()},g=()=>{o.resources.getRoot().updateSelectionState(),y(),o.displayResources=o.resources.toList().filter(v).filter(A),R(),I()},R=()=>{const e=o.resources.getAllSelectedFilesNames();o.hasSelection=e.length>0,r.updateSelectedFilesNames(e)},I=()=>{const e=o.displayResources.some(e=>!e.selected),r=o.displayResources.some(e=>e.selected);o.allDisplayedSelected=r&&!e,o.displayedPartiallySelected=r&&e},y=()=>{s.R.NAME===o.sortedBy?o.resources.sort(f(o.sortAsc)):s.R.SIZE===o.sortedBy?o.resources.sort(h(o.sortAsc)):s.R.MODIFIED===o.sortedBy?o.resources.sort(T(o.sortAsc)):s.R.IMPORTED===o.sortedBy?o.resources.sort(S(o.sortAsc)):s.R.CONTEXT===o.sortedBy&&o.resources.sort(E(o.sortAsc))},f=e=>(r,o)=>e?r.importResource.name.localeCompare(o.importResource.name):o.importResource.name.localeCompare(r.importResource.name),h=e=>(r,o)=>{const t=l.ByteUtils.convertToBytes(r.importResource.size),s=l.ByteUtils.convertToBytes(o.importResource.size);return e?t-s:s-t},T=e=>(r,o)=>{const t=r.importResource.modifiedOn||Number.MAX_VALUE,s=o.importResource.modifiedOn||Number.MAX_VALUE;return e?t-s:s-t},S=e=>(r,o)=>{const t=r.importResource.importedOn||Number.MAX_VALUE,s=o.importResource.importedOn||Number.MAX_VALUE;return e?t-s:s-t},E=e=>(r,o)=>e?r.importResource.context.localeCompare(o.importResource.context):o.importResource.context.localeCompare(r.importResource.context),v=e=>n.ALL===o.filterByType||(o.filterByType===n.FILE?e.isFile():o.filterByType===n.DIRECTORY&&e.isDirectory()),A=e=>!o.filterByFileName||(o.filterByType===n.DIRECTORY?e.hasTextInDirectoriesName(o.filterByFileName):o.filterByType===n.FILE?e.hasTextInFilesName(o.filterByFileName):e.hasTextInResourcesName(o.filterByFileName));let O;const N=(r,o)=>{O&&e.cancel(O),O=e(r,o)},b=[];b.push(r.onResourcesUpdated((e=[])=>{const t=c.D.USER===r.getActiveTabId();o.resources.isEmpty()?(o.resources=a.Fp.toImportResourceTree(e,t),t&&(o.sortedBy=s.R.MODIFIED)):a.Fp.mergeResourceTree(o.resources,e,t),a.Fp.calculateElementIndent(o.resources),a.Fp.setupAfterTreeInitProperties(o.resources),g(),d()})),b.push(r.onShowLoaderUpdated(e=>o.showLoader=e)),b.push(r.onActiveTabIdUpdated(()=>o.resources=new i.k)),o.$on("$destroy",()=>{b.forEach(e=>e())})}}}angular.module("graphdb.framework.import.directives.import-resource-tree",["graphdb.framework.import.directives.import-resource-message","graphdb.framework.import.directives.import-resource-status-info"]).directive("importResourceTree",m),m.$inject=["$timeout","ImportContextService"]},83847(){function e(e){return{restrict:"A",require:"ngModel",link:function(r,o,t,s){s.$parsers.unshift(function(r){if(s.$setValidity("validateUri",!0),!s.$isEmpty(r)){const o=e.isValidIri(r,r.toString());s.$setValidity("validateUri",o)}return r})}}}angular.module("graphdb.framework.import.directives.validate-uri",[]).directive("validateUri",e),e.$inject=["UriUtils"]}};
2
+ //# sourceMappingURL=80933.32639a47f5bcab72f129.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"80933.3851df33b6cf8f94243c.bundle.js","mappings":"2OAsBAA,QAAQC,OAAO,iCAZC,CACZ,SACA,UACA,eACA,eACA,6CACA,+CACA,mDACA,gEACA,4D,8BCjBJD,QACKC,OAAO,4EAA6E,IACpFC,WAAW,wCAAyCC,GAEzDA,EAAsCC,QAAU,CAAC,SAAU,oBAAqB,aAAc,SAAU,WAExG,MAAMC,EAASC,EAAAA,E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SAAWF,EAAAA,EAAYiE,WAGlCyC,EAAAA,GAA0BE,kBAAkBhN,EAAOwF,UAAWgH,EAAcC,GAEhFK,EAAAA,GAA0BG,uBAAuBjN,EAAOwF,WACxDsH,EAAAA,GAA0BI,6BAA6BlN,EAAOwF,WAC9DmC,IACAb,OASJuF,EAAcnI,KAAKU,EAAqBuI,oBAAqB5G,GAAevG,EAAOuG,WAAaA,IAChG8F,EAAcnI,KAAKU,EAAqBwI,qBAAqB,IAAMpN,EAAOwF,UAAY,IAAIC,EAAAA,IAO1FzF,EAAOmE,IAAI,WALkBkJ,KACzBhB,EAAc/H,QAASgJ,GAAiBA,QAOxD,CAxVA7N,QACKC,OAAO,2DANI,CACZ,8DACA,oEAKCmC,UAAU,qBAAsB6C,GAErCA,EAA4B7E,QAAU,CAAC,WAAY,uB,UCXnD,SAAS0N,EAAYC,GACjB,MAAO,CACHxL,SAAU,IACVyL,QAAS,UACTxM,KAAM,SAAUC,EAAOC,EAASC,EAAMsM,GAClCA,EAAKC,SAASC,QAAQ,SAAUC,GAE5B,GADAH,EAAKI,aAAa,eAAe,IAC5BJ,EAAKK,SAASF,GAAQ,CACvB,MAAMG,EAAQR,EAASS,WAAWJ,EAAOA,EAAMK,YAC/CR,EAAKI,aAAa,cAAeE,EACrC,CACA,OAAOH,CACX,EACJ,EAER,CAzBApO,QACKC,OAAO,mDAHI,IAIXmC,UAAU,cAAe0L,GAE9BA,EAAY1N,QAAU,CAAC,W","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/import/app.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/import-resource-message-dialog.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-progress-indicator.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-message.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-status-info.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-tree.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/validate-uri.directive.js"],"sourcesContent":["import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/import/controllers/import-view.controller';\nimport 'angular/import/directives/validate-uri.directive';\nimport 'angular/import/directives/import-progress-indicator.directive';\nimport 'angular/import/directives/import-resource-tree.directive';\nimport 'angular/core/services/repositories.service';\nimport 'ng-file-upload/dist/ng-file-upload.min';\nimport 'ng-file-upload/dist/ng-file-upload-shim.min';\n\nconst modules = [\n 'toastr',\n 'ngRoute',\n 'ngFileUpload',\n 'ui.bootstrap',\n 'graphdb.framework.impex.import.controllers',\n 'graphdb.framework.core.services.repositories',\n 'graphdb.framework.import.directives.validate-uri',\n 'graphdb.framework.import.directives.import-progress-indicator',\n 'graphdb.framework.import.directives.import-resource-tree'\n];\n\nangular.module('graphdb.framework.impex.import', modules);\n","import {LoggerProvider} from \"../../core/services/logger-provider\";\n\nangular\n .module('graphdb.framework.impex.import.controllers.import-resource-message-dialog', [])\n .controller('ImportResourceMessageDialogController', ImportResourceMessageDialogController);\n\nImportResourceMessageDialogController.$inject = ['$scope', '$uibModalInstance', '$translate', 'toastr', 'message'];\n\nconst logger = LoggerProvider.logger;\n\nfunction ImportResourceMessageDialogController($scope, $uibModalInstance, $translate, toastr, message) {\n $scope.message = message;\n\n\n $scope.close = () => {\n $uibModalInstance.dismiss();\n };\n\n $scope.copyToClipboard = () => {\n navigator.clipboard.writeText($scope.message)\n .then(() => {\n toastr.success($translate.instant('import.help.messages.copied_to_clipboard'));\n $scope.close();\n }, (err) => {\n logger.error('Could not copy text: ', err);\n });\n };\n}\n","const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-progress-indicator', modules)\n .directive('ImportProgressIndicator', ImportProgressIndicator);\n\nImportProgressIndicator.$inject = [];\n\n// importDirectives.directive('filesOntoLoader',\nfunction ImportProgressIndicator() {\n return {\n link: function (scope, element, attr) {\n scope.$watch('file.status', function () {\n if (scope.file.status === 'IMPORTING' || scope.file.status === 'UPLOADING') {\n if (!$(element).has('object').length > 0) {\n $(element).append('<object width=\"' + attr.size + '\" height=\"' + attr.size + '\" data=\"js/angular/templates/loader/ot-loader.svg?v=4.0.0-TR20\">{{\\'common.loading\\' | translate}}</object>');\n }\n }\n });\n }\n };\n}\n","import 'angular/import/controllers/import-resource-message-dialog.controller';\nimport {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport * as stringUtils from \"../../utils/string-utils\";\n\nconst modules = ['graphdb.framework.impex.import.controllers.import-resource-message-dialog'];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-message', modules)\n .directive('importResourceMessage', importResourceMessageDirective);\n\nimportResourceMessageDirective.$inject = ['$uibModal'];\n\nfunction importResourceMessageDirective($uibModal) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-message.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.toTitleCase = (str) => stringUtils.toTitleCase(str);\n\n /**\n *\n * @param {ImportResourceTreeElement} resourceTreeElement\n */\n $scope.showMessage = (resourceTreeElement) => {\n $uibModal.open({\n templateUrl: 'js/angular/import/templates/import-resource-message-dialog.html',\n controller: 'ImportResourceMessageDialogController',\n size: 'lg',\n windowClass: 'import-resource-message-dialog',\n backdrop: 'static',\n resolve: {\n message: function () {\n return resourceTreeElement ? resourceTreeElement.importResource.message : '';\n }\n }\n });\n }\n }\n };\n}\n","const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-status-info', modules)\n .directive('importResourceStatusInfo', importResourceStatusInfoDirective);\n\nimportResourceStatusInfoDirective.$inject = ['$rootScope', '$document'];\n\nfunction importResourceStatusInfoDirective($rootScope, $document) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-status-info.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n const subscribers = [];\n\n // =========================\n // Public variables\n // =========================\n $scope.popoverTemplate = 'resourceStatusInfoTemplate.html';\n $scope.popoverIsOpen = false;\n $scope.context = $scope.resource.importResource.context;\n $scope.replaceGraphs = $scope.resource.importResource.replaceGraphs;\n $scope.baseUrl = decodeURIComponent($scope.resource.importResource.baseURI);\n $scope.forceSerial = $scope.resource.importResource.forceSerial;\n $scope.importedOn = $scope.resource.importResource.importedOn;\n $scope.parserSettings = $scope.resource.importResource.parserSettings;\n\n // =========================\n // Public functions\n // =========================\n $scope.open = () => {\n $scope.closeAllDialogs();\n $scope.popoverIsOpen = true;\n };\n\n $scope.closeAllDialogs = () => {\n $rootScope.$broadcast('closePopovers');\n };\n\n $scope.close = () => {\n $scope.popoverIsOpen = false;\n };\n\n const handleEscapeKeyPress = (event) => {\n if (event.key === 'Escape') {\n $scope.$apply(() => {\n $scope.close();\n });\n }\n };\n\n const removeAllSubscribers = () => {\n subscribers.forEach((subscriber) => subscriber());\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n subscribers.push($scope.$on('closePopovers', $scope.close));\n $document.on('keydown', handleEscapeKeyPress);\n\n $scope.$on('$destroy', () => {\n $document.off('keydown', handleEscapeKeyPress);\n removeAllSubscribers();\n });\n }\n };\n}\n","import {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport 'angular/import/directives/import-resource-message.directive';\nimport 'angular/import/directives/import-resource-status-info.directive';\nimport {SortingType} from \"../../models/import/sorting-type\";\nimport {ImportResourceTreeElement} from \"../../models/import/import-resource-tree-element\";\nimport {TABS} from \"../services/import-context.service\";\nimport {ImportResourceTreeService} from \"../services/import-resource-tree.service\";\nimport {\n ByteUtils,\n} from \"@ontotext/workbench-api\";\n\nconst TYPE_FILTER_OPTIONS = {\n 'FILE': 'FILE',\n 'DIRECTORY': 'DIRECTORY',\n 'ALL': 'ALL',\n};\n\nconst STATUS_OPTIONS = {\n 'ALL': 'ALL',\n 'NONE': 'NONE',\n 'IMPORTED': 'IMPORTED',\n 'NOT_IMPORTED': 'NOT_IMPORTED',\n};\n\nconst modules = [\n 'graphdb.framework.import.directives.import-resource-message',\n 'graphdb.framework.import.directives.import-resource-status-info',\n];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-tree', modules)\n .directive('importResourceTree', importResourceTreeDirective);\n\nimportResourceTreeDirective.$inject = ['$timeout', 'ImportContextService'];\n\nfunction importResourceTreeDirective($timeout, ImportContextService) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-tree.html',\n scope: {\n /**\n * Contains mapping of the column names to label keys. Should contain\n * keys for: name, size, imported, modified, context column names.\n */\n columnKeys: '=',\n /**\n * If the type filter buttons should be visible.\n */\n showTypeFilter: '=',\n /**\n * The default field to sort the resources by.\n */\n sortBy: '=',\n asc: '=',\n onImport: '&',\n onImportAll: '&',\n onReset: '&',\n onRemove: '&',\n onStopImport: '&',\n onEditResource: '&',\n },\n link: ($scope, element, attrs) => {\n // =========================\n // Public variables\n // =========================\n $scope.resources = new ImportResourceTreeElement();\n $scope.displayResources = [];\n $scope.TYPE_FILTER_OPTIONS = TYPE_FILTER_OPTIONS;\n $scope.filterByType = TYPE_FILTER_OPTIONS.ALL;\n $scope.filterByFileName = '';\n $scope.STATUS_OPTIONS = STATUS_OPTIONS;\n $scope.allDisplayedSelected = false;\n $scope.displayedPartiallySelected = false;\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.canRemoveResource = angular.isDefined(attrs.onRemove);\n $scope.canResetSelectedResources = false;\n $scope.SORTING_TYPES = SortingType;\n $scope.sortAsc = angular.isDefined(attrs.asc) ? $scope.asc : true;\n $scope.sortedBy = $scope.sortBy;\n $scope.showLoader = ImportContextService.getShowLoader();\n $scope.hasSelection = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Updates the selection model when a resource is selected or unselected.\n * @param {ImportResourceTreeElement} resource The resource that was selected or unselected.\n */\n $scope.selectionChanged = ((resource) => {\n resource.setSelection(resource.selected);\n updateSelectAllState();\n setCanResetResourcesFlag();\n updateHasSelection();\n });\n\n $scope.selectResourceWithStatus = (resourceStatus) => {\n $scope.resources.setSelection(false);\n\n if (STATUS_OPTIONS.ALL === resourceStatus) {\n $scope.resources.setSelection(true);\n } else if (STATUS_OPTIONS.IMPORTED === resourceStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.DONE]);\n } else if (STATUS_OPTIONS.NOT_IMPORTED === resourceStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.IMPORTING, ImportResourceStatus.NONE, ImportResourceStatus.ERROR, ImportResourceStatus.PENDING, ImportResourceStatus.INTERRUPTING]);\n }\n\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n /**\n * Selects all displayed resources, or deselects them if all of them are already selected.\n * Resources hidden by the type or name filter keep their selection.\n */\n $scope.toggleAllDisplayedResources = () => {\n const select = !$scope.allDisplayedSelected;\n $scope.displayResources.forEach((resource) => resource.setSelection(select));\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n $scope.filterByTypeChanged = (newType) => {\n $scope.filterByType = newType;\n updateListedImportResources();\n };\n\n $scope.filterByFileNameChanged = (filterByFileName) => {\n $scope.filterByFileName = filterByFileName;\n debounce(updateListedImportResources, 100);\n };\n\n /**\n * Resets the status of the selected resources.\n */\n $scope.onResetStatus = () => {\n const resourcesNames = $scope.resources.getAllSelected()\n .map((resource) => resource.path);\n if (resourcesNames.length > 0) {\n $scope.onReset({resources: resourcesNames});\n }\n };\n\n /**\n * Resets the status of the given resource.\n * @param {ImportResourceTreeElement} importResource\n */\n $scope.resetStatus = (importResource) => {\n $scope.onReset({resources: [importResource.path]});\n };\n\n $scope.onRemoveResources = () => {\n const selectedResources = $scope.resources.getAllSelected();\n if (selectedResources && selectedResources.length > 0) {\n $scope.onRemove({resources: selectedResources});\n }\n };\n\n $scope.removeResource = (resource) => {\n $scope.onRemove({resources: [resource]});\n };\n\n $scope.importAll = (withoutChangingSettings) => {\n const selectedResources = $scope.resources.getAllSelectedForImport();\n if (selectedResources.length > 0) {\n $scope.onImportAll({selectedResources: selectedResources, withoutChangingSettings});\n }\n };\n\n $scope.stopImport = (importResource) => {\n $scope.onStopImport({resource: importResource});\n };\n\n /**\n * Sorts resources by provided sorting type.\n * @param {SortingType} sortedBy The sorting type to use.\n */\n $scope.sort = (sortedBy) => {\n if ($scope.sortedBy === sortedBy) {\n $scope.sortAsc = !$scope.sortAsc;\n } else {\n $scope.sortAsc = true;\n }\n $scope.sortedBy = sortedBy;\n updateListedImportResources();\n };\n\n /**\n * Returns the value of the aria-sort attribute of the column header with the given sorting type.\n * @param {SortingType} sortingType The sorting type of the column.\n * @return {string} 'ascending', 'descending' or 'none'.\n */\n $scope.getAriaSort = (sortingType) => {\n if ($scope.sortedBy !== sortingType) {\n return 'none';\n }\n return $scope.sortAsc ? 'ascending' : 'descending';\n };\n\n /**\n * Returns the CSS class of the sorting icon of the column header with the given sorting type.\n * @param {SortingType} sortingType The sorting type of the column.\n * @return {string} 'sorting_asc', 'sorting_desc' or 'sorting' when the column isn't sorted.\n */\n $scope.getSortClass = (sortingType) => {\n if ($scope.sortedBy !== sortingType) {\n return 'sorting';\n }\n return $scope.sortAsc ? 'sorting_asc' : 'sorting_desc';\n };\n\n $scope.editResource = (resource) => {\n $scope.onEditResource({resource});\n };\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Sets the flag showing if any of the selected resources is already imported\n * and can have their states reset.\n */\n const setCanResetResourcesFlag = () => {\n $scope.canResetSelectedResources = $scope.resources.getSelectedImportedResources();\n };\n\n const updateListedImportResources = () => {\n $scope.resources.getRoot().updateSelectionState();\n sortResources();\n $scope.displayResources = $scope.resources.toList()\n .filter(filterByType)\n .filter(filterByName);\n\n updateHasSelection();\n updateSelectAllState();\n };\n\n const updateHasSelection = () => {\n const allSelectedFilesNames = $scope.resources.getAllSelectedFilesNames();\n $scope.hasSelection = allSelectedFilesNames.length > 0;\n ImportContextService.updateSelectedFilesNames(allSelectedFilesNames);\n };\n\n const updateSelectAllState = () => {\n const hasUnselected = $scope.displayResources.some((resource) => !resource.selected);\n const hasSelected = $scope.displayResources.some((resource) => resource.selected);\n $scope.allDisplayedSelected = hasSelected && !hasUnselected;\n $scope.displayedPartiallySelected = hasSelected && hasUnselected;\n };\n\n const sortResources = () => {\n if (SortingType.NAME === $scope.sortedBy) {\n $scope.resources.sort(compareByName($scope.sortAsc));\n } else if (SortingType.SIZE === $scope.sortedBy) {\n $scope.resources.sort(compareBySize($scope.sortAsc));\n } else if (SortingType.MODIFIED === $scope.sortedBy) {\n $scope.resources.sort(compareByModified($scope.sortAsc));\n } else if (SortingType.IMPORTED === $scope.sortedBy) {\n $scope.resources.sort(compareByImportedOn($scope.sortAsc));\n } else if (SortingType.CONTEXT === $scope.sortedBy) {\n $scope.resources.sort(compareByContext($scope.sortAsc));\n }\n };\n\n const compareByName = (acs) => (r1, r2) => {\n return acs ? r1.importResource.name.localeCompare(r2.importResource.name) : r2.importResource.name.localeCompare(r1.importResource.name);\n };\n\n const compareBySize = (acs) => (r1, r2) => {\n // The format of size returned by the backend has changed, but we need to keep the old format for backward compatibility.\n // Therefore, we convert the size to always be in bytes.\n const r1Size = ByteUtils.convertToBytes(r1.importResource.size);\n const r2Size = ByteUtils.convertToBytes(r2.importResource.size);\n return acs ? r1Size - r2Size : r2Size - r1Size;\n };\n\n const compareByModified = (acs) => (r1, r2) => {\n const r1ModifiedOn = r1.importResource.modifiedOn || Number.MAX_VALUE;\n const r2ModifiedOn = r2.importResource.modifiedOn || Number.MAX_VALUE;\n return acs ? r1ModifiedOn - r2ModifiedOn : r2ModifiedOn - r1ModifiedOn;\n };\n\n const compareByImportedOn = (acs) => (r1, r2) => {\n const r1ImportedOn = r1.importResource.importedOn || Number.MAX_VALUE;\n const r2ImportedOn = r2.importResource.importedOn || Number.MAX_VALUE;\n return acs ? r1ImportedOn - r2ImportedOn : r2ImportedOn - r1ImportedOn;\n };\n\n const compareByContext = (acs) => (r1, r2) => {\n return acs ? r1.importResource.context.localeCompare(r2.importResource.context) : r2.importResource.context.localeCompare(r1.importResource.context);\n };\n\n const filterByType = (resource) => {\n if (TYPE_FILTER_OPTIONS.ALL === $scope.filterByType) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.isFile();\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.isDirectory();\n }\n\n return false;\n };\n\n const filterByName = (resource) => {\n if (!$scope.filterByFileName) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.hasTextInDirectoriesName($scope.filterByFileName);\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.hasTextInFilesName($scope.filterByFileName);\n }\n return resource.hasTextInResourcesName($scope.filterByFileName);\n };\n\n let debounceTimeout;\n const debounce = (func, delay) => {\n // Clear previous timeout\n if (debounceTimeout) {\n $timeout.cancel(debounceTimeout);\n }\n\n // Set new timeout\n debounceTimeout = $timeout(func, delay);\n };\n\n // =========================\n // Subscription handlers\n // =========================\n\n const onResourcesUpdatedHandler = (newResources = []) => {\n const isUserImport = TABS.USER === ImportContextService.getActiveTabId();\n if ($scope.resources.isEmpty()) {\n $scope.resources = ImportResourceTreeService.toImportResourceTree(newResources, isUserImport);\n if (isUserImport) {\n $scope.sortedBy = SortingType.MODIFIED;\n }\n } else {\n ImportResourceTreeService.mergeResourceTree($scope.resources, newResources, isUserImport);\n }\n ImportResourceTreeService.calculateElementIndent($scope.resources);\n ImportResourceTreeService.setupAfterTreeInitProperties($scope.resources);\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n // =========================\n // Subscriptions\n // =========================\n const subscriptions = [];\n\n subscriptions.push(ImportContextService.onResourcesUpdated(onResourcesUpdatedHandler));\n subscriptions.push(ImportContextService.onShowLoaderUpdated((showLoader) => $scope.showLoader = showLoader));\n subscriptions.push(ImportContextService.onActiveTabIdUpdated(() => $scope.resources = new ImportResourceTreeElement()));\n\n const removeAllSubscribers = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n // Deregister the watcher when the scope/directive is destroyed\n $scope.$on('$destroy', removeAllSubscribers);\n },\n };\n}\n","/**\n * This AngularJS directive validates whether an input value is a valid URI (IRI).\n *\n * @directive validateUri\n * @restrict A (Attribute)\n * @requires ngModel\n *\n * @example\n * <input type=\"text\" name=\"url\" ng-model=\"url\" validate-uri>\n */\nconst modules = [];\n\nangular\n .module('graphdb.framework.import.directives.validate-uri', modules)\n .directive('validateUri', validateUri);\n\nvalidateUri.$inject = ['UriUtils'];\n\n/**\n * @function validateUri\n * @param {UriUtils} UriUtils - Service for URI validation.\n */\nfunction validateUri(UriUtils) {\n return {\n restrict: 'A',\n require: 'ngModel',\n link: function (scope, element, attr, ctrl) {\n ctrl.$parsers.unshift(function (value) {\n ctrl.$setValidity('validateUri', true);\n if (!ctrl.$isEmpty(value)) {\n const valid = UriUtils.isValidIri(value, value.toString());\n ctrl.$setValidity('validateUri', valid);\n }\n return value;\n });\n }\n };\n}\n"],"names":["angular","module","controller","ImportResourceMessageDialogController","$inject","logger","LoggerProvider","$scope","$uibModalInstance","$translate","toastr","message","close","dismiss","copyToClipboard","navigator","clipboard","writeText","then","success","instant","err","error","ImportProgressIndicator","link","scope","element","attr","$watch","file","status","$","has","length","append","size","directive","importResourceMessageDirective","$uibModal","restrict","templateUrl","resource","ImportResourceStatus","toTitleCase","str","stringUtils","showMessage","resourceTreeElement","open","windowClass","backdrop","resolve","importResource","importResourceStatusInfoDirective","$rootScope","$document","subscribers","popoverTemplate","popoverIsOpen","context","replaceGraphs","baseUrl","decodeURIComponent","baseURI","forceSerial","importedOn","parserSettings","closeAllDialogs","$broadcast","handleEscapeKeyPress","event","key","$apply","push","$on","on","off","forEach","subscriber","TYPE_FILTER_OPTIONS","STATUS_OPTIONS","importResourceTreeDirective","$timeout","ImportContextService","columnKeys","showTypeFilter","sortBy","asc","onImport","onImportAll","onReset","onRemove","onStopImport","onEditResource","attrs","resources","ImportResourceTreeElement","displayResources","filterByType","ALL","filterByFileName","allDisplayedSelected","displayedPartiallySelected","canRemoveResource","isDefined","canResetSelectedResources","SORTING_TYPES","SortingType","sortAsc","sortedBy","showLoader","getShowLoader","hasSelection","selectionChanged","setSelection","selected","updateSelectAllState","setCanResetResourcesFlag","updateHasSelection","selectResourceWithStatus","resourceStatus","IMPORTED","selectAllWithStatus","DONE","NOT_IMPORTED","IMPORTING","NONE","ERROR","PENDING","INTERRUPTING","updateListedImportResources","toggleAllDisplayedResources","select","filterByTypeChanged","newType","filterByFileNameChanged","debounce","onResetStatus","resourcesNames","getAllSelected","map","path","resetStatus","onRemoveResources","selectedResources","removeResource","importAll","withoutChangingSettings","getAllSelectedForImport","stopImport","sort","getAriaSort","sortingType","getSortClass","editResource","getSelectedImportedResources","getRoot","updateSelectionState","sortResources","toList","filter","filterByName","allSelectedFilesNames","getAllSelectedFilesNames","updateSelectedFilesNames","hasUnselected","some","hasSelected","NAME","compareByName","SIZE","compareBySize","MODIFIED","compareByModified","compareByImportedOn","CONTEXT","compareByContext","acs","r1","r2","name","localeCompare","r1Size","ByteUtils","convertToBytes","r2Size","r1ModifiedOn","modifiedOn","Number","MAX_VALUE","r2ModifiedOn","r1ImportedOn","r2ImportedOn","FILE","isFile","DIRECTORY","isDirectory","hasTextInDirectoriesName","hasTextInFilesName","hasTextInResourcesName","debounceTimeout","func","delay","cancel","subscriptions","onResourcesUpdated","onResourcesUpdatedHandler","newResources","isUserImport","TABS","USER","getActiveTabId","isEmpty","ImportResourceTreeService","toImportResourceTree","mergeResourceTree","calculateElementIndent","setupAfterTreeInitProperties","onShowLoaderUpdated","onActiveTabIdUpdated","removeAllSubscribers","subscription","validateUri","UriUtils","require","ctrl","$parsers","unshift","value","$setValidity","$isEmpty","valid","isValidIri","toString"],"sourceRoot":""}
1
+ {"version":3,"file":"80933.32639a47f5bcab72f129.bundle.js","mappings":"2OAsBAA,QAAQC,OAAO,iCAZC,CACZ,SACA,UACA,eACA,eACA,6CACA,+CACA,mDACA,gEACA,4D,8BCjBJD,QACKC,OAAO,4EAA6E,IACpFC,WAAW,wCA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AAUqH,WACjB7M,EAAOwF,UAAYsH,EAAAA,GAA0BC,qBAAqBP,EAAcC,GAC5EA,IACAzM,EAAOsG,SAAWF,EAAAA,EAAYiE,WAGlCyC,EAAAA,GAA0BE,kBAAkBhN,EAAOwF,UAAWgH,EAAcC,GAEhFK,EAAAA,GAA0BG,uBAAuBjN,EAAOwF,WACxDsH,EAAAA,GAA0BI,6BAA6BlN,EAAOwF,WAC9DmC,IACAb,OASJuF,EAAcnI,KAAKU,EAAqBuI,oBAAqB5G,GAAevG,EAAOuG,WAAaA,IAChG8F,EAAcnI,KAAKU,EAAqBwI,qBAAqB,IAAMpN,EAAOwF,UAAY,IAAIC,EAAAA,IAO1FzF,EAAOmE,IAAI,WALkBkJ,KACzBhB,EAAc/H,QAASgJ,GAAiBA,QAOxD,CAxVA7N,QACKC,OAAO,2DANI,CACZ,8DACA,oEAKCmC,UAAU,qBAAsB6C,GAErCA,EAA4B7E,QAAU,CAAC,WAAY,uB,UCXnD,SAAS0N,EAAYC,GACjB,MAAO,CACHxL,SAAU,IACVyL,QAAS,UACTxM,KAAM,SAAUC,EAAOC,EAASC,EAAMsM,GAClCA,EAAKC,SAASC,QAAQ,SAAUC,GAE5B,GADAH,EAAKI,aAAa,eAAe,IAC5BJ,EAAKK,SAASF,GAAQ,CACvB,MAAMG,EAAQR,EAASS,WAAWJ,EAAOA,EAAMK,YAC/CR,EAAKI,aAAa,cAAeE,EACrC,CACA,OAAOH,CACX,EACJ,EAER,CAzBApO,QACKC,OAAO,mDAHI,IAIXmC,UAAU,cAAe0L,GAE9BA,EAAY1N,QAAU,CAAC,W","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/import/app.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/import-resource-message-dialog.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-progress-indicator.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-message.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-status-info.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-tree.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/validate-uri.directive.js"],"sourcesContent":["import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/import/controllers/import-view.controller';\nimport 'angular/import/directives/validate-uri.directive';\nimport 'angular/import/directives/import-progress-indicator.directive';\nimport 'angular/import/directives/import-resource-tree.directive';\nimport 'angular/core/services/repositories.service';\nimport 'ng-file-upload/dist/ng-file-upload.min';\nimport 'ng-file-upload/dist/ng-file-upload-shim.min';\n\nconst modules = [\n 'toastr',\n 'ngRoute',\n 'ngFileUpload',\n 'ui.bootstrap',\n 'graphdb.framework.impex.import.controllers',\n 'graphdb.framework.core.services.repositories',\n 'graphdb.framework.import.directives.validate-uri',\n 'graphdb.framework.import.directives.import-progress-indicator',\n 'graphdb.framework.import.directives.import-resource-tree'\n];\n\nangular.module('graphdb.framework.impex.import', modules);\n","import {LoggerProvider} from \"../../core/services/logger-provider\";\n\nangular\n .module('graphdb.framework.impex.import.controllers.import-resource-message-dialog', [])\n .controller('ImportResourceMessageDialogController', ImportResourceMessageDialogController);\n\nImportResourceMessageDialogController.$inject = ['$scope', '$uibModalInstance', '$translate', 'toastr', 'message'];\n\nconst logger = LoggerProvider.logger;\n\nfunction ImportResourceMessageDialogController($scope, $uibModalInstance, $translate, toastr, message) {\n $scope.message = message;\n\n\n $scope.close = () => {\n $uibModalInstance.dismiss();\n };\n\n $scope.copyToClipboard = () => {\n navigator.clipboard.writeText($scope.message)\n .then(() => {\n toastr.success($translate.instant('import.help.messages.copied_to_clipboard'));\n $scope.close();\n }, (err) => {\n logger.error('Could not copy text: ', err);\n });\n };\n}\n","const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-progress-indicator', modules)\n .directive('ImportProgressIndicator', ImportProgressIndicator);\n\nImportProgressIndicator.$inject = [];\n\n// importDirectives.directive('filesOntoLoader',\nfunction ImportProgressIndicator() {\n return {\n link: function (scope, element, attr) {\n scope.$watch('file.status', function () {\n if (scope.file.status === 'IMPORTING' || scope.file.status === 'UPLOADING') {\n if (!$(element).has('object').length > 0) {\n $(element).append('<object width=\"' + attr.size + '\" height=\"' + attr.size + '\" data=\"js/angular/templates/loader/ot-loader.svg?v=4.0.0-TR21\">{{\\'common.loading\\' | translate}}</object>');\n }\n }\n });\n }\n };\n}\n","import 'angular/import/controllers/import-resource-message-dialog.controller';\nimport {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport * as stringUtils from \"../../utils/string-utils\";\n\nconst modules = ['graphdb.framework.impex.import.controllers.import-resource-message-dialog'];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-message', modules)\n .directive('importResourceMessage', importResourceMessageDirective);\n\nimportResourceMessageDirective.$inject = ['$uibModal'];\n\nfunction importResourceMessageDirective($uibModal) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-message.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.toTitleCase = (str) => stringUtils.toTitleCase(str);\n\n /**\n *\n * @param {ImportResourceTreeElement} resourceTreeElement\n */\n $scope.showMessage = (resourceTreeElement) => {\n $uibModal.open({\n templateUrl: 'js/angular/import/templates/import-resource-message-dialog.html',\n controller: 'ImportResourceMessageDialogController',\n size: 'lg',\n windowClass: 'import-resource-message-dialog',\n backdrop: 'static',\n resolve: {\n message: function () {\n return resourceTreeElement ? resourceTreeElement.importResource.message : '';\n }\n }\n });\n }\n }\n };\n}\n","const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-status-info', modules)\n .directive('importResourceStatusInfo', importResourceStatusInfoDirective);\n\nimportResourceStatusInfoDirective.$inject = ['$rootScope', '$document'];\n\nfunction importResourceStatusInfoDirective($rootScope, $document) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-status-info.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n const subscribers = [];\n\n // =========================\n // Public variables\n // =========================\n $scope.popoverTemplate = 'resourceStatusInfoTemplate.html';\n $scope.popoverIsOpen = false;\n $scope.context = $scope.resource.importResource.context;\n $scope.replaceGraphs = $scope.resource.importResource.replaceGraphs;\n $scope.baseUrl = decodeURIComponent($scope.resource.importResource.baseURI);\n $scope.forceSerial = $scope.resource.importResource.forceSerial;\n $scope.importedOn = $scope.resource.importResource.importedOn;\n $scope.parserSettings = $scope.resource.importResource.parserSettings;\n\n // =========================\n // Public functions\n // =========================\n $scope.open = () => {\n $scope.closeAllDialogs();\n $scope.popoverIsOpen = true;\n };\n\n $scope.closeAllDialogs = () => {\n $rootScope.$broadcast('closePopovers');\n };\n\n $scope.close = () => {\n $scope.popoverIsOpen = false;\n };\n\n const handleEscapeKeyPress = (event) => {\n if (event.key === 'Escape') {\n $scope.$apply(() => {\n $scope.close();\n });\n }\n };\n\n const removeAllSubscribers = () => {\n subscribers.forEach((subscriber) => subscriber());\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n subscribers.push($scope.$on('closePopovers', $scope.close));\n $document.on('keydown', handleEscapeKeyPress);\n\n $scope.$on('$destroy', () => {\n $document.off('keydown', handleEscapeKeyPress);\n removeAllSubscribers();\n });\n }\n };\n}\n","import {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport 'angular/import/directives/import-resource-message.directive';\nimport 'angular/import/directives/import-resource-status-info.directive';\nimport {SortingType} from \"../../models/import/sorting-type\";\nimport {ImportResourceTreeElement} from \"../../models/import/import-resource-tree-element\";\nimport {TABS} from \"../services/import-context.service\";\nimport {ImportResourceTreeService} from \"../services/import-resource-tree.service\";\nimport {\n ByteUtils,\n} from \"@ontotext/workbench-api\";\n\nconst TYPE_FILTER_OPTIONS = {\n 'FILE': 'FILE',\n 'DIRECTORY': 'DIRECTORY',\n 'ALL': 'ALL',\n};\n\nconst STATUS_OPTIONS = {\n 'ALL': 'ALL',\n 'NONE': 'NONE',\n 'IMPORTED': 'IMPORTED',\n 'NOT_IMPORTED': 'NOT_IMPORTED',\n};\n\nconst modules = [\n 'graphdb.framework.import.directives.import-resource-message',\n 'graphdb.framework.import.directives.import-resource-status-info',\n];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-tree', modules)\n .directive('importResourceTree', importResourceTreeDirective);\n\nimportResourceTreeDirective.$inject = ['$timeout', 'ImportContextService'];\n\nfunction importResourceTreeDirective($timeout, ImportContextService) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-tree.html',\n scope: {\n /**\n * Contains mapping of the column names to label keys. Should contain\n * keys for: name, size, imported, modified, context column names.\n */\n columnKeys: '=',\n /**\n * If the type filter buttons should be visible.\n */\n showTypeFilter: '=',\n /**\n * The default field to sort the resources by.\n */\n sortBy: '=',\n asc: '=',\n onImport: '&',\n onImportAll: '&',\n onReset: '&',\n onRemove: '&',\n onStopImport: '&',\n onEditResource: '&',\n },\n link: ($scope, element, attrs) => {\n // =========================\n // Public variables\n // =========================\n $scope.resources = new ImportResourceTreeElement();\n $scope.displayResources = [];\n $scope.TYPE_FILTER_OPTIONS = TYPE_FILTER_OPTIONS;\n $scope.filterByType = TYPE_FILTER_OPTIONS.ALL;\n $scope.filterByFileName = '';\n $scope.STATUS_OPTIONS = STATUS_OPTIONS;\n $scope.allDisplayedSelected = false;\n $scope.displayedPartiallySelected = false;\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.canRemoveResource = angular.isDefined(attrs.onRemove);\n $scope.canResetSelectedResources = false;\n $scope.SORTING_TYPES = SortingType;\n $scope.sortAsc = angular.isDefined(attrs.asc) ? $scope.asc : true;\n $scope.sortedBy = $scope.sortBy;\n $scope.showLoader = ImportContextService.getShowLoader();\n $scope.hasSelection = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Updates the selection model when a resource is selected or unselected.\n * @param {ImportResourceTreeElement} resource The resource that was selected or unselected.\n */\n $scope.selectionChanged = ((resource) => {\n resource.setSelection(resource.selected);\n updateSelectAllState();\n setCanResetResourcesFlag();\n updateHasSelection();\n });\n\n $scope.selectResourceWithStatus = (resourceStatus) => {\n $scope.resources.setSelection(false);\n\n if (STATUS_OPTIONS.ALL === resourceStatus) {\n $scope.resources.setSelection(true);\n } else if (STATUS_OPTIONS.IMPORTED === resourceStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.DONE]);\n } else if (STATUS_OPTIONS.NOT_IMPORTED === resourceStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.IMPORTING, ImportResourceStatus.NONE, ImportResourceStatus.ERROR, ImportResourceStatus.PENDING, ImportResourceStatus.INTERRUPTING]);\n }\n\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n /**\n * Selects all displayed resources, or deselects them if all of them are already selected.\n * Resources hidden by the type or name filter keep their selection.\n */\n $scope.toggleAllDisplayedResources = () => {\n const select = !$scope.allDisplayedSelected;\n $scope.displayResources.forEach((resource) => resource.setSelection(select));\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n $scope.filterByTypeChanged = (newType) => {\n $scope.filterByType = newType;\n updateListedImportResources();\n };\n\n $scope.filterByFileNameChanged = (filterByFileName) => {\n $scope.filterByFileName = filterByFileName;\n debounce(updateListedImportResources, 100);\n };\n\n /**\n * Resets the status of the selected resources.\n */\n $scope.onResetStatus = () => {\n const resourcesNames = $scope.resources.getAllSelected()\n .map((resource) => resource.path);\n if (resourcesNames.length > 0) {\n $scope.onReset({resources: resourcesNames});\n }\n };\n\n /**\n * Resets the status of the given resource.\n * @param {ImportResourceTreeElement} importResource\n */\n $scope.resetStatus = (importResource) => {\n $scope.onReset({resources: [importResource.path]});\n };\n\n $scope.onRemoveResources = () => {\n const selectedResources = $scope.resources.getAllSelected();\n if (selectedResources && selectedResources.length > 0) {\n $scope.onRemove({resources: selectedResources});\n }\n };\n\n $scope.removeResource = (resource) => {\n $scope.onRemove({resources: [resource]});\n };\n\n $scope.importAll = (withoutChangingSettings) => {\n const selectedResources = $scope.resources.getAllSelectedForImport();\n if (selectedResources.length > 0) {\n $scope.onImportAll({selectedResources: selectedResources, withoutChangingSettings});\n }\n };\n\n $scope.stopImport = (importResource) => {\n $scope.onStopImport({resource: importResource});\n };\n\n /**\n * Sorts resources by provided sorting type.\n * @param {SortingType} sortedBy The sorting type to use.\n */\n $scope.sort = (sortedBy) => {\n if ($scope.sortedBy === sortedBy) {\n $scope.sortAsc = !$scope.sortAsc;\n } else {\n $scope.sortAsc = true;\n }\n $scope.sortedBy = sortedBy;\n updateListedImportResources();\n };\n\n /**\n * Returns the value of the aria-sort attribute of the column header with the given sorting type.\n * @param {SortingType} sortingType The sorting type of the column.\n * @return {string} 'ascending', 'descending' or 'none'.\n */\n $scope.getAriaSort = (sortingType) => {\n if ($scope.sortedBy !== sortingType) {\n return 'none';\n }\n return $scope.sortAsc ? 'ascending' : 'descending';\n };\n\n /**\n * Returns the CSS class of the sorting icon of the column header with the given sorting type.\n * @param {SortingType} sortingType The sorting type of the column.\n * @return {string} 'sorting_asc', 'sorting_desc' or 'sorting' when the column isn't sorted.\n */\n $scope.getSortClass = (sortingType) => {\n if ($scope.sortedBy !== sortingType) {\n return 'sorting';\n }\n return $scope.sortAsc ? 'sorting_asc' : 'sorting_desc';\n };\n\n $scope.editResource = (resource) => {\n $scope.onEditResource({resource});\n };\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Sets the flag showing if any of the selected resources is already imported\n * and can have their states reset.\n */\n const setCanResetResourcesFlag = () => {\n $scope.canResetSelectedResources = $scope.resources.getSelectedImportedResources();\n };\n\n const updateListedImportResources = () => {\n $scope.resources.getRoot().updateSelectionState();\n sortResources();\n $scope.displayResources = $scope.resources.toList()\n .filter(filterByType)\n .filter(filterByName);\n\n updateHasSelection();\n updateSelectAllState();\n };\n\n const updateHasSelection = () => {\n const allSelectedFilesNames = $scope.resources.getAllSelectedFilesNames();\n $scope.hasSelection = allSelectedFilesNames.length > 0;\n ImportContextService.updateSelectedFilesNames(allSelectedFilesNames);\n };\n\n const updateSelectAllState = () => {\n const hasUnselected = $scope.displayResources.some((resource) => !resource.selected);\n const hasSelected = $scope.displayResources.some((resource) => resource.selected);\n $scope.allDisplayedSelected = hasSelected && !hasUnselected;\n $scope.displayedPartiallySelected = hasSelected && hasUnselected;\n };\n\n const sortResources = () => {\n if (SortingType.NAME === $scope.sortedBy) {\n $scope.resources.sort(compareByName($scope.sortAsc));\n } else if (SortingType.SIZE === $scope.sortedBy) {\n $scope.resources.sort(compareBySize($scope.sortAsc));\n } else if (SortingType.MODIFIED === $scope.sortedBy) {\n $scope.resources.sort(compareByModified($scope.sortAsc));\n } else if (SortingType.IMPORTED === $scope.sortedBy) {\n $scope.resources.sort(compareByImportedOn($scope.sortAsc));\n } else if (SortingType.CONTEXT === $scope.sortedBy) {\n $scope.resources.sort(compareByContext($scope.sortAsc));\n }\n };\n\n const compareByName = (acs) => (r1, r2) => {\n return acs ? r1.importResource.name.localeCompare(r2.importResource.name) : r2.importResource.name.localeCompare(r1.importResource.name);\n };\n\n const compareBySize = (acs) => (r1, r2) => {\n // The format of size returned by the backend has changed, but we need to keep the old format for backward compatibility.\n // Therefore, we convert the size to always be in bytes.\n const r1Size = ByteUtils.convertToBytes(r1.importResource.size);\n const r2Size = ByteUtils.convertToBytes(r2.importResource.size);\n return acs ? r1Size - r2Size : r2Size - r1Size;\n };\n\n const compareByModified = (acs) => (r1, r2) => {\n const r1ModifiedOn = r1.importResource.modifiedOn || Number.MAX_VALUE;\n const r2ModifiedOn = r2.importResource.modifiedOn || Number.MAX_VALUE;\n return acs ? r1ModifiedOn - r2ModifiedOn : r2ModifiedOn - r1ModifiedOn;\n };\n\n const compareByImportedOn = (acs) => (r1, r2) => {\n const r1ImportedOn = r1.importResource.importedOn || Number.MAX_VALUE;\n const r2ImportedOn = r2.importResource.importedOn || Number.MAX_VALUE;\n return acs ? r1ImportedOn - r2ImportedOn : r2ImportedOn - r1ImportedOn;\n };\n\n const compareByContext = (acs) => (r1, r2) => {\n return acs ? r1.importResource.context.localeCompare(r2.importResource.context) : r2.importResource.context.localeCompare(r1.importResource.context);\n };\n\n const filterByType = (resource) => {\n if (TYPE_FILTER_OPTIONS.ALL === $scope.filterByType) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.isFile();\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.isDirectory();\n }\n\n return false;\n };\n\n const filterByName = (resource) => {\n if (!$scope.filterByFileName) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.hasTextInDirectoriesName($scope.filterByFileName);\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.hasTextInFilesName($scope.filterByFileName);\n }\n return resource.hasTextInResourcesName($scope.filterByFileName);\n };\n\n let debounceTimeout;\n const debounce = (func, delay) => {\n // Clear previous timeout\n if (debounceTimeout) {\n $timeout.cancel(debounceTimeout);\n }\n\n // Set new timeout\n debounceTimeout = $timeout(func, delay);\n };\n\n // =========================\n // Subscription handlers\n // =========================\n\n const onResourcesUpdatedHandler = (newResources = []) => {\n const isUserImport = TABS.USER === ImportContextService.getActiveTabId();\n if ($scope.resources.isEmpty()) {\n $scope.resources = ImportResourceTreeService.toImportResourceTree(newResources, isUserImport);\n if (isUserImport) {\n $scope.sortedBy = SortingType.MODIFIED;\n }\n } else {\n ImportResourceTreeService.mergeResourceTree($scope.resources, newResources, isUserImport);\n }\n ImportResourceTreeService.calculateElementIndent($scope.resources);\n ImportResourceTreeService.setupAfterTreeInitProperties($scope.resources);\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n // =========================\n // Subscriptions\n // =========================\n const subscriptions = [];\n\n subscriptions.push(ImportContextService.onResourcesUpdated(onResourcesUpdatedHandler));\n subscriptions.push(ImportContextService.onShowLoaderUpdated((showLoader) => $scope.showLoader = showLoader));\n subscriptions.push(ImportContextService.onActiveTabIdUpdated(() => $scope.resources = new ImportResourceTreeElement()));\n\n const removeAllSubscribers = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n // Deregister the watcher when the scope/directive is destroyed\n $scope.$on('$destroy', removeAllSubscribers);\n },\n };\n}\n","/**\n * This AngularJS directive validates whether an input value is a valid URI (IRI).\n *\n * @directive validateUri\n * @restrict A (Attribute)\n * @requires ngModel\n *\n * @example\n * <input type=\"text\" name=\"url\" ng-model=\"url\" validate-uri>\n */\nconst modules = [];\n\nangular\n .module('graphdb.framework.import.directives.validate-uri', modules)\n .directive('validateUri', validateUri);\n\nvalidateUri.$inject = ['UriUtils'];\n\n/**\n * @function validateUri\n * @param {UriUtils} UriUtils - Service for URI validation.\n */\nfunction validateUri(UriUtils) {\n return {\n restrict: 'A',\n require: 'ngModel',\n link: function (scope, element, attr, ctrl) {\n ctrl.$parsers.unshift(function (value) {\n ctrl.$setValidity('validateUri', true);\n if (!ctrl.$isEmpty(value)) {\n const valid = UriUtils.isValidIri(value, value.toString());\n ctrl.$setValidity('validateUri', valid);\n }\n return value;\n });\n }\n };\n}\n"],"names":["angular","module","controller","ImportResourceMessageDialogController","$inject","logger","LoggerProvider","$scope","$uibModalInstance","$translate","toastr","message","close","dismiss","copyToClipboard","navigator","clipboard","writeText","then","success","instant","err","error","ImportProgressIndicator","link","scope","element","attr","$watch","file","status","$","has","length","append","size","directive","importResourceMessageDirective","$uibModal","restrict","templateUrl","resource","ImportResourceStatus","toTitleCase","str","stringUtils","showMessage","resourceTreeElement","open","windowClass","backdrop","resolve","importResource","importResourceStatusInfoDirective","$rootScope","$document","subscribers","popoverTemplate","popoverIsOpen","context","replaceGraphs","baseUrl","decodeURIComponent","baseURI","forceSerial","importedOn","parserSettings","closeAllDialogs","$broadcast","handleEscapeKeyPress","event","key","$apply","push","$on","on","off","forEach","subscriber","TYPE_FILTER_OPTIONS","STATUS_OPTIONS","importResourceTreeDirective","$timeout","ImportContextService","columnKeys","showTypeFilter","sortBy","asc","onImport","onImportAll","onReset","onRemove","onStopImport","onEditResource","attrs","resources","ImportResourceTreeElement","displayResources","filterByType","ALL","filterByFileName","allDisplayedSelected","displayedPartiallySelected","canRemoveResource","isDefined","canResetSelectedResources","SORTING_TYPES","SortingType","sortAsc","sortedBy","showLoader","getShowLoader","hasSelection","selectionChanged","setSelection","selected","updateSelectAllState","setCanResetResourcesFlag","updateHasSelection","selectResourceWithStatus","resourceStatus","IMPORTED","selectAllWithStatus","DONE","NOT_IMPORTED","IMPORTING","NONE","ERROR","PENDING","INTERRUPTING","updateListedImportResources","toggleAllDisplayedResources","select","filterByTypeChanged","newType","filterByFileNameChanged","debounce","onResetStatus","resourcesNames","getAllSelected","map","path","resetStatus","onRemoveResources","selectedResources","removeResource","importAll","withoutChangingSettings","getAllSelectedForImport","stopImport","sort","getAriaSort","sortingType","getSortClass","editResource","getSelectedImportedResources","getRoot","updateSelectionState","sortResources","toList","filter","filterByName","allSelectedFilesNames","getAllSelectedFilesNames","updateSelectedFilesNames","hasUnselected","some","hasSelected","NAME","compareByName","SIZE","compareBySize","MODIFIED","compareByModified","compareByImportedOn","CONTEXT","compareByContext","acs","r1","r2","name","localeCompare","r1Size","ByteUtils","convertToBytes","r2Size","r1ModifiedOn","modifiedOn","Number","MAX_VALUE","r2ModifiedOn","r1ImportedOn","r2ImportedOn","FILE","isFile","DIRECTORY","isDirectory","hasTextInDirectoriesName","hasTextInFilesName","hasTextInResourcesName","debounceTimeout","func","delay","cancel","subscriptions","onResourcesUpdated","onResourcesUpdatedHandler","newResources","isUserImport","TABS","USER","getActiveTabId","isEmpty","ImportResourceTreeService","toImportResourceTree","mergeResourceTree","calculateElementIndent","setupAfterTreeInitProperties","onShowLoaderUpdated","onActiveTabIdUpdated","removeAllSubscribers","subscription","validateUri","UriUtils","require","ctrl","$parsers","unshift","value","$setValidity","$isEmpty","valid","isValidIri","toString"],"sourceRoot":""}