@platforma-sdk/ui-vue 1.40.4 → 1.40.5

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 (142) hide show
  1. package/.turbo/turbo-build.log +58 -31
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +9 -0
  4. package/dist/AgGridVue/useAgGridOptions.js +1 -1
  5. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +1 -1
  6. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +19 -19
  7. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js.map +1 -1
  8. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js +1 -1
  9. package/dist/components/PlAgDataTable/sources/table-source-v2.js +18 -18
  10. package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.js +6 -6
  11. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js +1 -1
  12. package/dist/components/PlAgRowNumHeader.vue.js +1 -1
  13. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.d.ts +17 -0
  14. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.d.ts.map +1 -0
  15. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.js +10 -0
  16. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue.js.map +1 -0
  17. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue2.js +99 -0
  18. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue2.js.map +1 -0
  19. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue3.js +15 -0
  20. package/dist/components/PlAnnotations/components/AnnotationsSidebar.vue3.js.map +1 -0
  21. package/dist/components/PlAnnotations/components/DynamicForm.vue.d.ts +25 -0
  22. package/dist/components/PlAnnotations/components/DynamicForm.vue.d.ts.map +1 -0
  23. package/dist/components/PlAnnotations/components/DynamicForm.vue.js +10 -0
  24. package/dist/components/PlAnnotations/components/DynamicForm.vue.js.map +1 -0
  25. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +110 -0
  26. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js.map +1 -0
  27. package/dist/components/PlAnnotations/components/DynamicForm.vue3.js +9 -0
  28. package/dist/components/PlAnnotations/components/DynamicForm.vue3.js.map +1 -0
  29. package/dist/components/PlAnnotations/components/FilterSidebar.vue.d.ts +20 -0
  30. package/dist/components/PlAnnotations/components/FilterSidebar.vue.d.ts.map +1 -0
  31. package/dist/components/PlAnnotations/components/FilterSidebar.vue.js +10 -0
  32. package/dist/components/PlAnnotations/components/FilterSidebar.vue.js.map +1 -0
  33. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +124 -0
  34. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js.map +1 -0
  35. package/dist/components/PlAnnotations/components/FilterSidebar.vue3.js +13 -0
  36. package/dist/components/PlAnnotations/components/FilterSidebar.vue3.js.map +1 -0
  37. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue.d.ts +19 -0
  38. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue.d.ts.map +1 -0
  39. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue.js +78 -0
  40. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue.js.map +1 -0
  41. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue2.js +5 -0
  42. package/dist/components/PlAnnotations/components/PlAnnotationCreateDialog.vue2.js.map +1 -0
  43. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.d.ts +23 -0
  44. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.d.ts.map +1 -0
  45. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.js +10 -0
  46. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue.js.map +1 -0
  47. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue2.js +97 -0
  48. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue2.js.map +1 -0
  49. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue3.js +13 -0
  50. package/dist/components/PlAnnotations/components/PlAnnotationsModal.vue3.js.map +1 -0
  51. package/dist/components/PlAnnotations/index.d.ts +2 -0
  52. package/dist/components/PlAnnotations/index.d.ts.map +1 -0
  53. package/dist/components/PlAnnotations/types.d.ts +8 -0
  54. package/dist/components/PlAnnotations/types.d.ts.map +1 -0
  55. package/dist/components/PlAnnotations/utils.d.ts +6 -0
  56. package/dist/components/PlAnnotations/utils.d.ts.map +1 -0
  57. package/dist/components/PlAnnotations/utils.js +29 -0
  58. package/dist/components/PlAnnotations/utils.js.map +1 -0
  59. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js +8 -8
  60. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue2.js +5 -5
  61. package/dist/components/PlMultiSequenceAlignment/data.js +62 -62
  62. package/dist/components/PlTableFilters/PlTableAddFilterV2.vue.js +8 -8
  63. package/dist/defineApp.js +6 -6
  64. package/dist/lib/ui/uikit/dist/components/DataTable/TableComponent.vue.js +22 -22
  65. package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
  66. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
  67. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  68. package/dist/lib/ui/uikit/dist/components/PlAutocomplete/PlAutocomplete.vue.js +1 -1
  69. package/dist/lib/ui/uikit/dist/components/PlBtnGhost/PlBtnGhost.vue.js +3 -3
  70. package/dist/lib/ui/uikit/dist/components/PlConfirmDialog.vue.js +63 -0
  71. package/dist/lib/ui/uikit/dist/components/PlConfirmDialog.vue.js.map +1 -0
  72. package/dist/lib/ui/uikit/dist/components/PlDialogModal/PlDialogModal.vue.js +37 -37
  73. package/dist/lib/ui/uikit/dist/components/PlDialogModal/PlDialogModal.vue.js.map +1 -1
  74. package/dist/lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js +1 -1
  75. package/dist/lib/ui/uikit/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
  76. package/dist/lib/ui/uikit/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +1 -1
  77. package/dist/lib/ui/uikit/dist/components/PlEditableTitle/PlEditableTitle.vue.js +42 -38
  78. package/dist/lib/ui/uikit/dist/components/PlEditableTitle/PlEditableTitle.vue.js.map +1 -1
  79. package/dist/lib/ui/uikit/dist/components/PlElementList/PlElementList.vue2.js +20 -16
  80. package/dist/lib/ui/uikit/dist/components/PlElementList/PlElementList.vue2.js.map +1 -1
  81. package/dist/lib/ui/uikit/dist/components/PlElementList/PlElementListItem.vue.js +2 -2
  82. package/dist/lib/ui/uikit/dist/components/PlElementList/PlElementListItem.vue2.js +17 -16
  83. package/dist/lib/ui/uikit/dist/components/PlElementList/PlElementListItem.vue2.js.map +1 -1
  84. package/dist/lib/ui/uikit/dist/components/PlElementList/PlElementListItem.vue3.js +27 -27
  85. package/dist/lib/ui/uikit/dist/components/PlElementList/utils.js +7 -6
  86. package/dist/lib/ui/uikit/dist/components/PlElementList/utils.js.map +1 -1
  87. package/dist/lib/ui/uikit/dist/components/PlFileDialog/PlFileDialog.vue.js +19 -19
  88. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +1 -1
  89. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarGroup.vue.js +10 -0
  90. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarGroup.vue.js.map +1 -0
  91. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarGroup.vue2.js +21 -0
  92. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarGroup.vue2.js.map +1 -0
  93. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarGroup.vue3.js +20 -0
  94. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarGroup.vue3.js.map +1 -0
  95. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarItem.vue.js +10 -0
  96. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarItem.vue.js.map +1 -0
  97. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarItem.vue2.js +39 -0
  98. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarItem.vue2.js.map +1 -0
  99. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarItem.vue3.js +26 -0
  100. package/dist/lib/ui/uikit/dist/components/PlSidebar/PlSidebarItem.vue3.js.map +1 -0
  101. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js +116 -0
  102. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -0
  103. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue.js +7 -128
  104. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue.js.map +1 -1
  105. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue2.js +56 -0
  106. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue2.js.map +1 -0
  107. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue3.js +18 -0
  108. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue3.js.map +1 -0
  109. package/dist/lib/ui/uikit/dist/components/PlSlideModal/props.js +10 -0
  110. package/dist/lib/ui/uikit/dist/components/PlSlideModal/props.js.map +1 -0
  111. package/dist/lib/ui/uikit/dist/components/PlTextArea/PlTextArea.vue.js +1 -1
  112. package/dist/lib/ui/uikit/dist/components/PlTextField/PlTextField.vue.js +1 -1
  113. package/dist/lib/ui/uikit/dist/composition/useConfirm.js +23 -0
  114. package/dist/lib/ui/uikit/dist/composition/useConfirm.js.map +1 -0
  115. package/dist/lib/ui/uikit/dist/generated/components/svg/images/{SvgRequired.vue.js → SvgRequired.vue2.js} +1 -1
  116. package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue2.js.map +1 -0
  117. package/dist/lib/ui/uikit/dist/index.js +92 -88
  118. package/dist/lib/ui/uikit/dist/index.js.map +1 -1
  119. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +26 -26
  120. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  121. package/dist/lib/util/helpers/dist/index.js +60 -50
  122. package/dist/lib/util/helpers/dist/index.js.map +1 -1
  123. package/dist/lib.d.ts +1 -0
  124. package/dist/lib.d.ts.map +1 -1
  125. package/dist/lib.js +261 -251
  126. package/dist/lib.js.map +1 -1
  127. package/dist/plugins/Monetization/MonetizationSidebar.vue.js +9 -9
  128. package/dist/sdk/model/dist/index.js +927 -545
  129. package/dist/sdk/model/dist/index.js.map +1 -1
  130. package/package.json +5 -7
  131. package/src/components/PlAgDataTable/PlAgDataTableV2.vue +14 -43
  132. package/src/components/PlAnnotations/components/AnnotationsSidebar.vue +103 -0
  133. package/src/components/PlAnnotations/components/DynamicForm.vue +144 -0
  134. package/src/components/PlAnnotations/components/FilterSidebar.vue +143 -0
  135. package/src/components/PlAnnotations/components/PlAnnotationCreateDialog.vue +64 -0
  136. package/src/components/PlAnnotations/components/PlAnnotationsModal.vue +114 -0
  137. package/src/components/PlAnnotations/index.ts +1 -0
  138. package/src/components/PlAnnotations/types.ts +9 -0
  139. package/src/components/PlAnnotations/utils.ts +25 -0
  140. package/src/lib.ts +2 -0
  141. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
  142. package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._modal_1634u_1{display:flex}._sidebarGroup_1634u_5,._sidebarItem_1634u_10{width:100%;height:100%}")),document.head.appendChild(e)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
2
+ const e = "_modal_1634u_1", s = "_sidebarGroup_1634u_5", a = "_sidebarItem_1634u_10", o = {
3
+ modal: e,
4
+ sidebarGroup: s,
5
+ sidebarItem: a
6
+ };
7
+ export {
8
+ o as default,
9
+ e as modal,
10
+ s as sidebarGroup,
11
+ a as sidebarItem
12
+ };
13
+ //# sourceMappingURL=PlAnnotationsModal.vue3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlAnnotationsModal.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -0,0 +1,2 @@
1
+ export { default as PlAnnotationsModal } from './components/PlAnnotationsModal.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PlAnnotations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PColumnSpec, SUniversalPColumnId } from '@platforma-sdk/model';
2
+ export type SimplifiedPColumnSpec = Pick<PColumnSpec, 'valueType' | 'annotations'>;
3
+ export type SimplifiedUniversalPColumnEntry = {
4
+ id: SUniversalPColumnId;
5
+ label: string;
6
+ obj: SimplifiedPColumnSpec;
7
+ };
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PlAnnotations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE7E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,aAAa,CAAC,CAAC;AAEnF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,EAAE,mBAAmB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,qBAAqB,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AnnotationScriptUi, FilterUi, TypeFieldRecord } from '@platforma-sdk/model';
2
+ export declare function getDefaultAnnotationScript(): AnnotationScriptUi;
3
+ export declare function createDefaultFilterMetadata<T extends Extract<FilterUi, {
4
+ column: unknown;
5
+ }>>(): TypeFieldRecord<T>;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/PlAnnotations/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE1F,wBAAgB,0BAA0B,IAAI,kBAAkB,CAO/D;AAED,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,OAAO,CAAC,QAAQ,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC,KAAK,eAAe,CAAC,CAAC,CAAC,CAalH"}
@@ -0,0 +1,29 @@
1
+ function e() {
2
+ return {
3
+ isCreated: !1,
4
+ title: "My Annotation",
5
+ mode: "byClonotype",
6
+ steps: []
7
+ };
8
+ }
9
+ function t() {
10
+ return {
11
+ column: {
12
+ label: "Column",
13
+ fieldType: "SUniversalPColumnId",
14
+ defaultValue: () => {
15
+ }
16
+ },
17
+ type: {
18
+ label: "Predicate",
19
+ fieldType: "FilterUiType",
20
+ defaultValue: () => {
21
+ }
22
+ }
23
+ };
24
+ }
25
+ export {
26
+ t as createDefaultFilterMetadata,
27
+ e as getDefaultAnnotationScript
28
+ };
29
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../src/components/PlAnnotations/utils.ts"],"sourcesContent":["import type { AnnotationScriptUi, FilterUi, TypeFieldRecord } from '@platforma-sdk/model';\n\nexport function getDefaultAnnotationScript(): AnnotationScriptUi {\n return {\n isCreated: false,\n title: 'My Annotation',\n mode: 'byClonotype',\n steps: [],\n };\n}\n\nexport function createDefaultFilterMetadata<T extends Extract<FilterUi, { column: unknown }>>(): TypeFieldRecord<T> {\n return {\n column: {\n label: 'Column',\n fieldType: 'SUniversalPColumnId',\n defaultValue: () => undefined,\n },\n type: {\n label: 'Predicate',\n fieldType: 'FilterUiType',\n defaultValue: () => undefined,\n },\n } as TypeFieldRecord<T>;\n};\n"],"names":["getDefaultAnnotationScript","createDefaultFilterMetadata"],"mappings":"AAEO,SAASA,IAAiD;AACxD,SAAA;AAAA,IACL,WAAW;AAAA,IACX,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO,CAAA;AAAA,EACT;AACF;AAEO,SAASC,IAAoG;AAC3G,SAAA;AAAA,IACL,QAAQ;AAAA,MACN,OAAO;AAAA,MACP,WAAW;AAAA,MACX,cAAc,MAAM;AAAA;AAAA,IACtB;AAAA,IACA,MAAM;AAAA,MACJ,OAAO;AAAA,MACP,WAAW;AAAA,MACX,cAAc,MAAM;AAAA;AAAA,IAAA;AAAA,EAExB;AACF;"}
@@ -3,10 +3,10 @@ import { defineComponent as x, ref as c, computed as y, watch as E, createElemen
3
3
 
4
4
  import "../../lib/ui/uikit/dist/index.js";
5
5
  import b from "../../lib/ui/uikit/dist/components/PlDialogModal/PlDialogModal.vue.js";
6
- import N from "../../lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js";
7
- import O from "../../lib/ui/uikit/dist/components/PlNotificationAlert/PlNotificationAlert.vue.js";
8
- import h from "../../lib/ui/uikit/dist/components/PlBtnPrimary/PlBtnPrimary.vue.js";
9
- import A from "../../lib/ui/uikit/dist/layout/PlSpacer/PlSpacer.vue.js";
6
+ import A from "../../lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js";
7
+ import N from "../../lib/ui/uikit/dist/components/PlNotificationAlert/PlNotificationAlert.vue.js";
8
+ import O from "../../lib/ui/uikit/dist/components/PlBtnPrimary/PlBtnPrimary.vue.js";
9
+ import h from "../../lib/ui/uikit/dist/layout/PlSpacer/PlSpacer.vue.js";
10
10
  const B = { class: "pl-app-notification-alert" }, M = { class: "pl-app-notification-alert__content" }, S = { class: "pl-app-notification-alert__title" }, q = /* @__PURE__ */ x({
11
11
  __name: "PlAppErrorNotificationAlert",
12
12
  props: {
@@ -42,7 +42,7 @@ const B = { class: "pl-app-notification-alert" }, M = { class: "pl-app-notificat
42
42
  class: "pl-app-notification-alert__item"
43
43
  }, [
44
44
  v("div", S, "Block output: " + C(t[0]), 1),
45
- o(r(N), {
45
+ o(r(A), {
46
46
  value: (m = t[1]) == null ? void 0 : m.message,
47
47
  valueToCopy: "fullMessage" in (t[1] ?? {}) ? t[1].fullMessage : (f = t[1]) == null ? void 0 : f.message
48
48
  }, null, 8, ["value", "valueToCopy"])
@@ -52,14 +52,14 @@ const B = { class: "pl-app-notification-alert" }, M = { class: "pl-app-notificat
52
52
  ]),
53
53
  _: 1
54
54
  }, 8, ["modelValue"]),
55
- o(r(O), {
55
+ o(r(N), {
56
56
  modelValue: i.value,
57
57
  "onUpdate:modelValue": e[1] || (e[1] = (t) => i.value = t),
58
58
  type: "error",
59
59
  closable: ""
60
60
  }, {
61
61
  actions: l(() => [
62
- o(r(h), {
62
+ o(r(O), {
63
63
  icon: "arrow-right",
64
64
  onClick: V
65
65
  }, {
@@ -68,7 +68,7 @@ const B = { class: "pl-app-notification-alert" }, M = { class: "pl-app-notificat
68
68
  ])),
69
69
  _: 1
70
70
  }),
71
- o(r(A))
71
+ o(r(h))
72
72
  ]),
73
73
  default: l(() => [
74
74
  e[4] || (e[4] = u(" Some outputs have errors. "))
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, ref as b, watchEffect as T, computed as P, createElementBlock as $, openBlock as f, Fragment as I, createElementVNode as r, createVNode as o, normalizeClass as d, unref as n, withModifiers as K, withCtx as s, createTextVNode as a, createCommentVNode as S, createBlock as L, withKeys as y } from "vue";
1
+ import { defineComponent as N, ref as b, watchEffect as I, computed as P, createElementBlock as $, openBlock as f, Fragment as K, createElementVNode as r, createVNode as o, normalizeClass as d, unref as n, withModifiers as L, withCtx as s, createTextVNode as a, createCommentVNode as S, createBlock as T, withKeys as y } from "vue";
2
2
  import { isJsonEqual as U } from "../../lib/util/helpers/dist/index.js";
3
3
  import "../../lib/ui/uikit/dist/index.js";
4
4
  import { defaultAlignmentParams as A } from "./multi-sequence-alignment.js";
@@ -31,7 +31,7 @@ const h = /* @__PURE__ */ N({
31
31
  );
32
32
  }
33
33
  const i = b({ ...u.settings.alignmentParams });
34
- T(() => {
34
+ I(() => {
35
35
  i.value = { ...u.settings.alignmentParams };
36
36
  });
37
37
  const O = P(
@@ -39,7 +39,7 @@ const h = /* @__PURE__ */ N({
39
39
  ), E = P(
40
40
  () => !U(u.settings.alignmentParams, A)
41
41
  );
42
- return (t, e) => (f(), $(I, null, [
42
+ return (t, e) => (f(), $(K, null, [
43
43
  r("div", {
44
44
  class: d(t.$style.container)
45
45
  }, [
@@ -75,7 +75,7 @@ const h = /* @__PURE__ */ N({
75
75
  }, [
76
76
  o(n(C), {
77
77
  icon: "settings",
78
- onClick: e[3] || (e[3] = K((l) => p.value = !0, ["stop"]))
78
+ onClick: e[3] || (e[3] = L((l) => p.value = !0, ["stop"]))
79
79
  }, {
80
80
  default: s(() => e[17] || (e[17] = [
81
81
  a(" Settings ")
@@ -210,7 +210,7 @@ const h = /* @__PURE__ */ N({
210
210
  _: 1
211
211
  })
212
212
  ], 2)) : S("", !0),
213
- E.value ? (f(), L(n(z), {
213
+ E.value ? (f(), T(n(z), {
214
214
  key: 1,
215
215
  class: d(t.$style["reset-button"]),
216
216
  icon: "reverse",
@@ -1,26 +1,26 @@
1
1
  import { isJsonEqual as L } from "../../lib/util/helpers/dist/index.js";
2
- import { getRawPlatformaInstance as Q, isLabelColumn as B, isLinkerColumn as X, createRowSelectionColumn as Y } from "../../sdk/model/dist/index.js";
2
+ import { getRawPlatformaInstance as K, isLabelColumn as B, isLinkerColumn as Q, createRowSelectionColumn as Y } from "../../sdk/model/dist/index.js";
3
3
  import { ref as O, watch as Z } from "vue";
4
4
  import { chemicalPropertiesColorMap as I, colorizeSequencesByChemicalProperties as ee } from "./chemical-properties.js";
5
- import { parseMarkup as te, markupAlignedSequence as ne, markupColors as T, colorizeSequencesByMarkup as oe } from "./markup.js";
5
+ import { parseMarkup as ne, markupAlignedSequence as te, markupColors as T, colorizeSequencesByMarkup as oe } from "./markup.js";
6
6
  import { multiSequenceAlignment as ae } from "./multi-sequence-alignment.js";
7
7
  import { getResidueCounts as re } from "./residue-counts.js";
8
8
  import { ensureError as se, canonicalizeJson as A, getAxisId as J, parseJson as D, matchAxisId as ie, pTableValue as q } from "../../lib/model/common/dist/index.js";
9
- const M = () => Q().pFrameDriver, E = 1e3, Se = C(
9
+ const M = () => K().pFrameDriver, E = 1e3, Se = k(
10
10
  le
11
- ), xe = C(
11
+ ), xe = k(
12
12
  ce
13
- ), Ae = C(
13
+ ), Ae = k(
14
14
  pe
15
- ), ve = C(
15
+ ), ve = k(
16
16
  ue
17
17
  );
18
18
  async function le({
19
19
  pFrame: c,
20
- sequenceColumnPredicate: t
20
+ sequenceColumnPredicate: n
21
21
  }) {
22
22
  if (!c) return;
23
- const a = (await M().listColumns(c)).filter((i) => t(i)).map(({ spec: i, columnId: p }) => {
23
+ const a = (await M().listColumns(c)).filter((i) => n(i)).map(({ spec: i, columnId: p }) => {
24
24
  var m;
25
25
  return {
26
26
  label: ((m = i.annotations) == null ? void 0 : m["pl7.app/label"]) ?? "Unlabelled column",
@@ -31,11 +31,11 @@ async function le({
31
31
  }
32
32
  async function ce({
33
33
  pFrame: c,
34
- sequenceColumnIds: t
34
+ sequenceColumnIds: n
35
35
  }) {
36
36
  var f, x, w;
37
- if (!c || !t) return;
38
- const d = M(), l = await d.listColumns(c), a = /* @__PURE__ */ new Map(), s = new Map(t.flatMap((r) => {
37
+ if (!c || !n) return;
38
+ const d = M(), l = await d.listColumns(c), a = /* @__PURE__ */ new Map(), s = new Map(n.flatMap((r) => {
39
39
  const y = l.find(({ columnId: u }) => u === r);
40
40
  if (!y)
41
41
  throw new Error(`Couldn't find sequence column (ID: \`${r}\`).`);
@@ -76,15 +76,15 @@ async function ce({
76
76
  }
77
77
  async function pe({
78
78
  pFrame: c,
79
- sequenceColumnIds: t
79
+ sequenceColumnIds: n
80
80
  }) {
81
- if (!c || (t == null ? void 0 : t.length) !== 1) return;
81
+ if (!c || (n == null ? void 0 : n.length) !== 1) return;
82
82
  const l = await M().listColumns(c), a = l.find(
83
- (s) => s.columnId === t[0]
83
+ (s) => s.columnId === n[0]
84
84
  );
85
85
  if (!a)
86
86
  throw new Error(
87
- `Couldn't find sequence column (ID: \`${t[0]}\`).`
87
+ `Couldn't find sequence column (ID: \`${n[0]}\`).`
88
88
  );
89
89
  return l.filter(
90
90
  (s) => {
@@ -104,19 +104,19 @@ async function pe({
104
104
  }
105
105
  async function ue({
106
106
  pframe: c,
107
- sequenceColumnIds: t,
107
+ sequenceColumnIds: n,
108
108
  labelColumnIds: d,
109
109
  markupColumnId: l,
110
110
  selection: a,
111
111
  colorScheme: s,
112
112
  alignmentParams: i
113
113
  }) {
114
- var $, j, z, N;
115
- if (!c || !(t != null && t.length) || !d) return;
116
- const p = M(), m = await p.listColumns(c), f = m.filter((e) => X(e.spec)), x = Y({ selection: a });
114
+ var $, j, N, _;
115
+ if (!c || !(n != null && n.length) || !d) return;
116
+ const p = M(), m = await p.listColumns(c), f = m.filter((e) => Q(e.spec)), x = Y({ selection: a });
117
117
  let w = {
118
118
  type: "inner",
119
- entries: t.map((e) => ({
119
+ entries: n.map((e) => ({
120
120
  type: "column",
121
121
  column: e
122
122
  }))
@@ -141,11 +141,11 @@ async function ue({
141
141
  const r = d.flatMap((e) => e.type !== "column" ? [] : { type: "column", column: e.id });
142
142
  l && r.push({ type: "column", column: l });
143
143
  const y = Array.from(
144
- new Set(t.flatMap((e) => {
145
- const n = m.find(({ columnId: o }) => o === e);
146
- if (!n)
144
+ new Set(n.flatMap((e) => {
145
+ const t = m.find(({ columnId: o }) => o === e);
146
+ if (!t)
147
147
  throw new Error(`Couldn't find sequence column (ID: ${e})`);
148
- return n.spec.axesSpec.map((o) => A(J(o)));
148
+ return t.spec.axesSpec.map((o) => A(J(o)));
149
149
  }))
150
150
  ).sort().map((e) => ({
151
151
  column: { type: "axis", id: D(e) },
@@ -170,27 +170,27 @@ async function ue({
170
170
  );
171
171
  let b = (g == null ? void 0 : g[0].data.data.length) ?? 0, P = !1;
172
172
  b > E && (b = E, P = !0);
173
- const R = t.map((e) => {
174
- const n = g.find(({ spec: o }) => o.id === e);
175
- if (!n)
173
+ const R = n.map((e) => {
174
+ const t = g.find(({ spec: o }) => o.id === e);
175
+ if (!t)
176
176
  throw new Error(`Couldn't find sequence column (ID: \`${e}\`).`);
177
- return n;
177
+ return t;
178
178
  }), V = d.map((e) => {
179
- const n = g.find(({ spec: o }) => {
179
+ const t = g.find(({ spec: o }) => {
180
180
  if (e.type === "axis" && o.type === "axis")
181
181
  return L(e.id, o.id);
182
182
  if (e.type === "column" && o.type === "column")
183
183
  return e.id === o.id;
184
184
  });
185
- if (!n)
185
+ if (!t)
186
186
  throw new Error(`Couldn't find label column (ID: \`${e}\`).`);
187
- return n;
188
- }), k = l && g.find(({ spec: e }) => e.id === l), W = await Promise.all(
187
+ return t;
188
+ }), C = l && g.find(({ spec: e }) => e.id === l), W = await Promise.all(
189
189
  R.map(
190
190
  (e) => ae(
191
191
  Array.from(
192
192
  { length: b },
193
- (n, o) => {
193
+ (t, o) => {
194
194
  var h;
195
195
  return ((h = q(e.data, o, { na: "", absent: "" })) == null ? void 0 : h.toString()) ?? "";
196
196
  }
@@ -198,50 +198,50 @@ async function ue({
198
198
  i
199
199
  )
200
200
  )
201
- ), U = Array.from(
201
+ ), F = Array.from(
202
202
  { length: b },
203
- (e, n) => W.map((o) => o[n])
204
- ), G = R.map(
203
+ (e, t) => W.map((o) => o[t])
204
+ ), X = R.map(
205
205
  (e) => {
206
- var n;
207
- return ((n = e.spec.spec.annotations) == null ? void 0 : n["pl7.app/label"]) ?? "Unlabelled column";
206
+ var t;
207
+ return ((t = e.spec.spec.annotations) == null ? void 0 : t["pl7.app/label"]) ?? "Unlabelled column";
208
208
  }
209
- ), H = Array.from(
209
+ ), G = Array.from(
210
210
  { length: b },
211
- (e, n) => V.map(
211
+ (e, t) => V.map(
212
212
  (o) => {
213
213
  var h;
214
- return ((h = q(o.data, n, { na: "", absent: "" })) == null ? void 0 : h.toString()) ?? "";
214
+ return ((h = q(o.data, t, { na: "", absent: "" })) == null ? void 0 : h.toString()) ?? "";
215
215
  }
216
216
  )
217
- ), v = U.map((e) => e.join(" ")), F = re(v), S = {
217
+ ), v = F.map((e) => e.join(" ")), U = re(v), S = {
218
218
  sequences: v,
219
- sequenceNames: G,
220
- labelsRows: H,
219
+ sequenceNames: X,
220
+ labelsRows: G,
221
221
  exceedsLimit: P,
222
- residueCounts: F
222
+ residueCounts: U
223
223
  };
224
- if (k) {
224
+ if (C) {
225
225
  const e = JSON.parse(
226
- (($ = k.spec.spec.annotations) == null ? void 0 : $["pl7.app/sequence/annotation/mapping"]) ?? "{}"
227
- ), n = Array.from(
226
+ (($ = C.spec.spec.annotations) == null ? void 0 : $["pl7.app/sequence/annotation/mapping"]) ?? "{}"
227
+ ), t = Array.from(
228
228
  { length: b },
229
229
  (o, h) => {
230
- var _;
231
- const K = te(
232
- ((_ = q(k.data, h, { na: "", absent: "" })) == null ? void 0 : _.toString()) ?? ""
230
+ var z;
231
+ const H = ne(
232
+ ((z = q(C.data, h, { na: "", absent: "" })) == null ? void 0 : z.toString()) ?? ""
233
233
  );
234
- return ne(U[h][0], K);
234
+ return te(F[h][0], H);
235
235
  }
236
236
  );
237
- S.markup = { labels: e, data: n };
237
+ S.markup = { labels: e, data: t };
238
238
  }
239
239
  if (s.type === "chemical-properties") {
240
240
  const e = I;
241
241
  S.highlightImage = {
242
242
  blob: await ee({
243
243
  sequences: v,
244
- residueCounts: F,
244
+ residueCounts: U,
245
245
  colorMap: e
246
246
  }),
247
247
  colorMap: e
@@ -250,24 +250,24 @@ async function ue({
250
250
  const e = Object.fromEntries(
251
251
  Object.entries(
252
252
  ((j = S.markup) == null ? void 0 : j.labels) ?? {}
253
- ).map(([n, o], h) => [
254
- n,
253
+ ).map(([t, o], h) => [
254
+ t,
255
255
  { label: o, color: T[h % T.length] }
256
256
  ])
257
257
  );
258
258
  S.highlightImage = {
259
259
  blob: await oe({
260
- markupRows: ((z = S.markup) == null ? void 0 : z.data) ?? [],
260
+ markupRows: ((N = S.markup) == null ? void 0 : N.data) ?? [],
261
261
  colorMap: e,
262
- columnCount: ((N = v.at(0)) == null ? void 0 : N.length) ?? 0
262
+ columnCount: ((_ = v.at(0)) == null ? void 0 : _.length) ?? 0
263
263
  }),
264
264
  colorMap: e
265
265
  };
266
266
  }
267
267
  return S;
268
268
  }
269
- function C(c) {
270
- const t = O(), d = O(!0), l = O();
269
+ function k(c) {
270
+ const n = O(), d = O(!0), l = O();
271
271
  let a;
272
272
  return (s) => (Z(s, async (i, p) => {
273
273
  if (L(i, p)) return;
@@ -275,13 +275,13 @@ function C(c) {
275
275
  try {
276
276
  l.value = void 0, d.value = !0;
277
277
  const f = await c(i);
278
- m === a && (t.value = f);
278
+ m === a && (n.value = f);
279
279
  } catch (f) {
280
280
  console.error(f), m === a && (l.value = se(f));
281
281
  } finally {
282
282
  m === a && (d.value = !1);
283
283
  }
284
- }, { immediate: !0 }), { data: t, isLoading: d, error: l });
284
+ }, { immediate: !0 }), { data: n, isLoading: d, error: l });
285
285
  }
286
286
  export {
287
287
  E as sequenceLimit,
@@ -3,10 +3,10 @@ import { deepClone as N } from "../../lib/util/helpers/dist/index.js";
3
3
  import "../../lib/ui/uikit/dist/index.js";
4
4
  import { getFilterDefault as A } from "./filters_logic.js";
5
5
  import M from "./PlTableFilterEntryV2.vue.js";
6
- import T from "../../lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue.js";
7
- import U from "../../lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js";
8
- import j from "../../lib/ui/uikit/dist/components/PlBtnPrimary/PlBtnPrimary.vue.js";
9
- import E from "../../lib/ui/uikit/dist/components/PlBtnGhost/PlBtnGhost.vue.js";
6
+ import U from "../../lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue.js";
7
+ import j from "../../lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js";
8
+ import E from "../../lib/ui/uikit/dist/components/PlBtnPrimary/PlBtnPrimary.vue.js";
9
+ import T from "../../lib/ui/uikit/dist/components/PlBtnGhost/PlBtnGhost.vue.js";
10
10
  const q = { class: "d-flex flex-column gap-24" }, D = {
11
11
  key: 0,
12
12
  class: "text-subtitle-m",
@@ -46,7 +46,7 @@ const q = { class: "d-flex flex-column gap-24" }, D = {
46
46
  }, F = () => {
47
47
  t.value !== void 0 && l.value && r.setFilter(t.value, l.value), p();
48
48
  };
49
- return (o, e) => (s(), c(u(T), {
49
+ return (o, e) => (s(), c(u(U), {
50
50
  modelValue: d.value,
51
51
  "onUpdate:modelValue": e[2] || (e[2] = (a) => d.value = a),
52
52
  "close-on-outside-click": !1
@@ -55,7 +55,7 @@ const q = { class: "d-flex flex-column gap-24" }, D = {
55
55
  m("Add Filter")
56
56
  ])),
57
57
  actions: i(() => [
58
- n(u(j), {
58
+ n(u(E), {
59
59
  disabled: !l.value,
60
60
  onClick: F
61
61
  }, {
@@ -64,7 +64,7 @@ const q = { class: "d-flex flex-column gap-24" }, D = {
64
64
  ])),
65
65
  _: 1
66
66
  }, 8, ["disabled"]),
67
- n(u(E), {
67
+ n(u(T), {
68
68
  "justify-center": !1,
69
69
  onClick: p
70
70
  }, {
@@ -76,7 +76,7 @@ const q = { class: "d-flex flex-column gap-24" }, D = {
76
76
  ]),
77
77
  default: i(() => [
78
78
  g("div", q, [
79
- n(u(U), {
79
+ n(u(j), {
80
80
  modelValue: t.value,
81
81
  "onUpdate:modelValue": e[0] || (e[0] = (a) => t.value = a),
82
82
  options: C.value,
package/dist/defineApp.js CHANGED
@@ -7,19 +7,19 @@ const p = Symbol("sdk-vue");
7
7
  function P() {
8
8
  return A(p);
9
9
  }
10
- function R(n, c, l = {}) {
11
- let i;
10
+ function R(i, c, l = {}) {
11
+ let n;
12
12
  k();
13
13
  const u = () => {
14
- g(n).loadBlockState().then((t) => {
14
+ g(i).loadBlockState().then((t) => {
15
15
  e.loaded = !0;
16
- const a = j(t, n, l), s = c(a), d = Object.fromEntries(
16
+ const a = j(t, i, l), s = c(a), d = Object.fromEntries(
17
17
  Object.entries(s.routes).map(([r, o]) => {
18
18
  const f = typeof o == "function" ? o() : o;
19
19
  return [r, b(f)];
20
20
  })
21
21
  );
22
- i = Object.assign(a, {
22
+ n = Object.assign(a, {
23
23
  ...s,
24
24
  getRoute(r) {
25
25
  return d[r];
@@ -33,7 +33,7 @@ function R(n, c, l = {}) {
33
33
  error: void 0,
34
34
  // Href to get typed query parameters for a specific route
35
35
  useApp() {
36
- return m(i, "App is not loaded");
36
+ return m(n, "App is not loaded");
37
37
  },
38
38
  // @todo type portability issue with Vue
39
39
  // eslint-disable-next-line @typescript-eslint/no-explicit-any