@privateaim/client-vue 0.8.11 → 0.8.12

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.
@@ -1 +1 @@
1
- {"version":3,"file":"FAnalyses.d.ts","sourceRoot":"","sources":["../../../src/components/analysis/FAnalyses.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACR,QAAQ,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAYpB,MAAM,YAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANvD,wBAyCG"}
1
+ {"version":3,"file":"FAnalyses.d.ts","sourceRoot":"","sources":["../../../src/components/analysis/FAnalyses.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACR,QAAQ,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAYpB,MAAM,YAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANvD,wBA0CG"}
@@ -1 +1 @@
1
- {"version":3,"file":"FAnalysisItemCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/analysis/FAnalysisItemCard.vue"],"names":[],"mappings":"AAqLA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;;;cAmBnB,QAAQ,CAAC,QAAQ,CAAC;;;;;;;;;;;0BAsBT,QAAQ;gCAIF,MAAM,WAAW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C/B,IAAI,EAAE,QAAQ,CAAA;KACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBApCT,GA1IoE;qBA0IpE,GAxIoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqJpB,wBA4DG"}
@@ -3,5 +3,5 @@ export declare function buildListCreatedHandler<T>(items: Ref<T[]>, cb?: (entity
3
3
  unshift?: boolean;
4
4
  }) => void;
5
5
  export declare function buildListUpdatedHandler<T>(items: Ref<T[]>, cb?: (entity: T) => void | Promise<void>): (item: T) => void;
6
- export declare function buildListDeletedHandler<T>(items: Ref<T[]>, cb?: (entity: T) => void | Promise<void>): (item: T) => T | undefined;
6
+ export declare function buildListDeletedHandler<T>(items: Ref<T[]>, cb?: (entity: T) => void | Promise<void>): (item: T) => void;
7
7
  //# sourceMappingURL=handlers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../src/core/list/utils/handlers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE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AAC,IAEhC,MAAM,CAAC,UAkBlB;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EACrC,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EACf,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAEhC,MAAM,CAAC,UAgBlB"}
package/dist/index.cjs CHANGED
@@ -1087,23 +1087,25 @@ function buildListUpdatedHandler(items, cb) {
1087
1087
  for(let i = 0; i < keys.length; i++){
1088
1088
  items.value[index][keys[i]] = item[keys[i]];
1089
1089
  }
1090
- cb(items.value[index]);
1090
+ if (cb) {
1091
+ cb(items.value[index]);
1092
+ }
1091
1093
  }
1092
1094
  };
1093
1095
  }
1094
1096
  function buildListDeletedHandler(items, cb) {
1095
1097
  return (item)=>{
1096
1098
  if (!smob.isObject(item)) {
1097
- return undefined;
1099
+ return;
1098
1100
  }
1099
1101
  const index = items.value.findIndex((el)=>el.id === item.id);
1100
1102
  if (index !== -1) {
1103
+ const output = items.value[index];
1104
+ items.value.splice(index, 1);
1101
1105
  if (cb) {
1102
- cb(items.value[index]);
1106
+ cb(output);
1103
1107
  }
1104
- return items.value.splice(index, 1).pop();
1105
1108
  }
1106
- return undefined;
1107
1109
  };
1108
1110
  }
1109
1111
 
@@ -12572,7 +12574,7 @@ var _sfc_main$1 = vue.defineComponent({
12572
12574
  });
12573
12575
 
12574
12576
  const _hoisted_1$1 = {
12575
- class: "d-flex flex-column w-100"
12577
+ class: "d-flex flex-column analysis-item-card"
12576
12578
  };
12577
12579
  const _hoisted_2$1 = {
12578
12580
  class: "d-flex flex-row align-items-center"
@@ -12604,85 +12606,84 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
12604
12606
  const _component_FAnalysisNodesProgress = vue.resolveComponent("FAnalysisNodesProgress");
12605
12607
  const _component_VCTimeago = vue.resolveComponent("VCTimeago");
12606
12608
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
12607
- vue.createElementVNode("div", null, [
12608
- vue.createElementVNode("div", _hoisted_2$1, [
12609
- vue.createElementVNode("div", _hoisted_3$1, [
12610
- vue.createVNode(_component_FAnalysisName, {
12611
- "entity-id": _ctx.entity.id,
12612
- "entity-name": _ctx.entity.name,
12613
- editable: true,
12614
- onUpdated: _ctx.handleUpdated
12615
- }, {
12616
- default: vue.withCtx((props)=>[
12617
- _cache[1] || (_cache[1] = vue.createElementVNode("i", {
12618
- class: "fas fa-microscope me-1"
12619
- }, null, -1)),
12620
- vue.createVNode(_component_VCLink, {
12621
- to: "/analyses/" + props.entityId
12622
- }, {
12623
- default: vue.withCtx(()=>[
12624
- vue.createTextVNode(vue.toDisplayString(props.nameDisplay), 1)
12625
- ]),
12626
- _: 2
12627
- }, 1032, [
12628
- "to"
12629
- ]),
12630
- props.entityName ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$1, vue.toDisplayString(props.entityId), 1)) : vue.createCommentVNode("", true)
12631
- ]),
12632
- _: 1
12633
- }, 8, [
12634
- "entity-id",
12635
- "entity-name",
12636
- "onUpdated"
12637
- ])
12638
- ]),
12639
- vue.createElementVNode("div", _hoisted_5$1, [
12640
- vue.renderSlot(_ctx.$slots, "itemActions", {
12641
- data: _ctx.entity
12642
- }, ()=>[
12643
- vue.createElementVNode("button", {
12644
- class: "btn btn-xs btn-dark",
12645
- onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args)=>_ctx.toggleView && _ctx.toggleView(...args), [
12646
- "prevent"
12647
- ]))
12648
- }, [
12649
- vue.createElementVNode("i", {
12650
- class: vue.normalizeClass({
12651
- "fa fa-chevron-down": !_ctx.extendedView,
12652
- "fa fa-chevron-up": _ctx.extendedView
12653
- })
12654
- }, null, 2)
12655
- ]),
12609
+ vue.createElementVNode("div", _hoisted_2$1, [
12610
+ vue.createElementVNode("div", _hoisted_3$1, [
12611
+ vue.createVNode(_component_FAnalysisName, {
12612
+ class: "analysis-item-card-title",
12613
+ "entity-id": _ctx.entity.id,
12614
+ "entity-name": _ctx.entity.name,
12615
+ editable: true,
12616
+ onUpdated: _ctx.handleUpdated
12617
+ }, {
12618
+ default: vue.withCtx((props)=>[
12619
+ _cache[1] || (_cache[1] = vue.createElementVNode("i", {
12620
+ class: "fas fa-microscope me-1"
12621
+ }, null, -1)),
12656
12622
  vue.createVNode(_component_VCLink, {
12657
- to: "/analyses/" + _ctx.entity.id,
12658
- disabled: _ctx.busy,
12659
- class: "btn btn-xs btn-dark ms-1"
12623
+ to: "/analyses/" + props.entityId
12660
12624
  }, {
12661
- default: vue.withCtx(()=>_cache[2] || (_cache[2] = [
12662
- vue.createElementVNode("i", {
12663
- class: "fa fa-bars"
12664
- }, null, -1)
12665
- ])),
12666
- _: 1
12667
- }, 8, [
12668
- "to",
12669
- "disabled"
12625
+ default: vue.withCtx(()=>[
12626
+ vue.createTextVNode(vue.toDisplayString(props.nameDisplay), 1)
12627
+ ]),
12628
+ _: 2
12629
+ }, 1032, [
12630
+ "to"
12670
12631
  ]),
12671
- _ctx.canDelete ? (vue.openBlock(), vue.createBlock(_component_FEntityDelete, {
12672
- key: 0,
12673
- "with-text": false,
12674
- "entity-id": _ctx.entity.id,
12675
- "entity-type": "analysis",
12676
- disabled: _ctx.busy,
12677
- class: "btn btn-xs btn-danger ms-1",
12678
- onDeleted: _ctx.handleDeleted
12679
- }, null, 8, [
12680
- "entity-id",
12681
- "disabled",
12682
- "onDeleted"
12683
- ])) : vue.createCommentVNode("", true)
12684
- ])
12632
+ props.entityName ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$1, vue.toDisplayString(props.entityId), 1)) : vue.createCommentVNode("", true)
12633
+ ]),
12634
+ _: 1
12635
+ }, 8, [
12636
+ "entity-id",
12637
+ "entity-name",
12638
+ "onUpdated"
12685
12639
  ])
12640
+ ]),
12641
+ vue.createElementVNode("div", _hoisted_5$1, [
12642
+ vue.renderSlot(_ctx.$slots, "itemActions", {
12643
+ data: _ctx.entity
12644
+ }, ()=>[
12645
+ vue.createElementVNode("button", {
12646
+ class: "btn btn-xs btn-dark",
12647
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args)=>_ctx.toggleView && _ctx.toggleView(...args), [
12648
+ "prevent"
12649
+ ]))
12650
+ }, [
12651
+ vue.createElementVNode("i", {
12652
+ class: vue.normalizeClass({
12653
+ "fa fa-chevron-down": !_ctx.extendedView,
12654
+ "fa fa-chevron-up": _ctx.extendedView
12655
+ })
12656
+ }, null, 2)
12657
+ ]),
12658
+ vue.createVNode(_component_VCLink, {
12659
+ to: "/analyses/" + _ctx.entity.id,
12660
+ disabled: _ctx.busy,
12661
+ class: "btn btn-xs btn-dark ms-1"
12662
+ }, {
12663
+ default: vue.withCtx(()=>_cache[2] || (_cache[2] = [
12664
+ vue.createElementVNode("i", {
12665
+ class: "fa fa-bars"
12666
+ }, null, -1)
12667
+ ])),
12668
+ _: 1
12669
+ }, 8, [
12670
+ "to",
12671
+ "disabled"
12672
+ ]),
12673
+ _ctx.canDelete ? (vue.openBlock(), vue.createBlock(_component_FEntityDelete, {
12674
+ key: 0,
12675
+ "with-text": false,
12676
+ "entity-id": _ctx.entity.id,
12677
+ "entity-type": "analysis",
12678
+ disabled: _ctx.busy,
12679
+ class: "btn btn-xs btn-danger ms-1",
12680
+ onDeleted: _ctx.handleDeleted
12681
+ }, null, 8, [
12682
+ "entity-id",
12683
+ "disabled",
12684
+ "onDeleted"
12685
+ ])) : vue.createCommentVNode("", true)
12686
+ ], true)
12686
12687
  ])
12687
12688
  ]),
12688
12689
  vue.createVNode(_component_FAnalysisPipeline, {
@@ -12741,6 +12742,10 @@ var FAnalysisItemCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [
12741
12742
  [
12742
12743
  "render",
12743
12744
  _sfc_render$1
12745
+ ],
12746
+ [
12747
+ "__scopeId",
12748
+ "data-v-56a48fa0"
12744
12749
  ]
12745
12750
  ]);
12746
12751
 
@@ -12813,6 +12818,7 @@ var FAnalyses = vue.defineComponent({
12813
12818
  item: {
12814
12819
  content (item) {
12815
12820
  return vue.h(FAnalysisItem, {
12821
+ key: item.id,
12816
12822
  entity: item,
12817
12823
  onDeleted: handleDeleted,
12818
12824
  onUpdated: handleUpdated,