@knime/product-features 1.1.2 → 1.2.0

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 (71) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/dataTransfer.css +27 -27
  3. package/dist/dataTransfer.js +32 -139
  4. package/dist/dataTransfer.js.map +1 -1
  5. package/dist/index-B3ql6hun.js +2695 -0
  6. package/dist/index-B3ql6hun.js.map +1 -0
  7. package/dist/nodes.css +119 -0
  8. package/dist/nodes.js +270 -101
  9. package/dist/nodes.js.map +1 -1
  10. package/dist/rfcErrors.css +3 -3
  11. package/dist/rfcErrors.js +2 -2
  12. package/dist/rfcErrors.js.map +1 -1
  13. package/dist/src/dataTransfer/download/ui/types.d.ts +5 -0
  14. package/dist/src/dataTransfer/download/ui/types.d.ts.map +1 -1
  15. package/dist/src/dataTransfer/shared/ui/CollapsiblePanel/CollapsiblePanel.vue.d.ts.map +1 -1
  16. package/dist/src/dataTransfer/shared/ui/CollapsiblePanel/index.d.ts +1 -1
  17. package/dist/src/dataTransfer/shared/ui/CollapsiblePanel/index.d.ts.map +1 -1
  18. package/dist/src/dataTransfer/shared/ui/CollapsiblePanel/types.d.ts +1 -1
  19. package/dist/src/dataTransfer/shared/ui/CollapsiblePanel/types.d.ts.map +1 -1
  20. package/dist/src/dataTransfer/shared/ui/ProgressItem/ProgressItem.vue.d.ts.map +1 -1
  21. package/dist/src/dataTransfer/shared/ui/ProgressItem/index.d.ts +1 -1
  22. package/dist/src/dataTransfer/shared/ui/ProgressItem/index.d.ts.map +1 -1
  23. package/dist/src/dataTransfer/shared/ui/ProgressItem/types.d.ts +1 -1
  24. package/dist/src/dataTransfer/shared/ui/ProgressItem/types.d.ts.map +1 -1
  25. package/dist/src/dataTransfer/upload/ui/types.d.ts +10 -0
  26. package/dist/src/dataTransfer/upload/ui/types.d.ts.map +1 -1
  27. package/dist/src/nodes/NodeDescriptionTabs/types.d.ts +11 -0
  28. package/dist/src/nodes/NodeDescriptionTabs/types.d.ts.map +1 -1
  29. package/dist/src/nodes/NodePreview/NodePreview.vue.d.ts +4 -0
  30. package/dist/src/nodes/NodePreview/NodePreview.vue.d.ts.map +1 -0
  31. package/dist/src/nodes/NodePreview/SVGNodeTorso.vue.d.ts +4 -0
  32. package/dist/src/nodes/NodePreview/SVGNodeTorso.vue.d.ts.map +1 -0
  33. package/dist/src/nodes/NodePreview/constants.d.ts +2 -0
  34. package/dist/src/nodes/NodePreview/constants.d.ts.map +1 -0
  35. package/dist/src/nodes/NodePreview/enums.d.ts +27 -0
  36. package/dist/src/nodes/NodePreview/enums.d.ts.map +1 -0
  37. package/dist/src/nodes/NodePreview/index.d.ts +3 -0
  38. package/dist/src/nodes/NodePreview/index.d.ts.map +1 -0
  39. package/dist/src/nodes/NodePreview/types.d.ts +68 -0
  40. package/dist/src/nodes/NodePreview/types.d.ts.map +1 -0
  41. package/dist/src/nodes/PortIcon/PortIcon.vue.d.ts.map +1 -1
  42. package/dist/src/nodes/PortIcon/SVGPortIcon.vue.d.ts +4 -0
  43. package/dist/src/nodes/PortIcon/SVGPortIcon.vue.d.ts.map +1 -0
  44. package/dist/src/nodes/PortIcon/constants.d.ts +3 -0
  45. package/dist/src/nodes/PortIcon/constants.d.ts.map +1 -0
  46. package/dist/src/nodes/index.d.ts +2 -0
  47. package/dist/src/nodes/index.d.ts.map +1 -1
  48. package/dist/src/rfcErrors/RFCErrorToastTemplate.vue.d.ts +9 -0
  49. package/dist/src/rfcErrors/RFCErrorToastTemplate.vue.d.ts.map +1 -1
  50. package/dist/src/rfcErrors/types.d.ts +5 -0
  51. package/dist/src/rfcErrors/types.d.ts.map +1 -1
  52. package/dist/src/toasts/Toast/types.d.ts +6 -0
  53. package/dist/src/toasts/Toast/types.d.ts.map +1 -1
  54. package/dist/src/toasts/ToastStack/types.d.ts +2 -0
  55. package/dist/src/toasts/ToastStack/types.d.ts.map +1 -1
  56. package/dist/src/versions/CreateVersionForm/types.d.ts +1 -0
  57. package/dist/src/versions/CreateVersionForm/types.d.ts.map +1 -1
  58. package/dist/src/versions/VersionHistory/HistoryEventFooter.vue.d.ts.map +1 -1
  59. package/dist/src/versions/VersionHistory/VersionLabel.vue.d.ts +10 -6
  60. package/dist/src/versions/VersionHistory/VersionLabel.vue.d.ts.map +1 -1
  61. package/dist/src/versions/VersionHistory/types.d.ts +36 -0
  62. package/dist/src/versions/VersionHistory/types.d.ts.map +1 -1
  63. package/dist/toasts.css +13 -13
  64. package/dist/toasts.js +7 -14
  65. package/dist/toasts.js.map +1 -1
  66. package/dist/versions.css +4 -4
  67. package/dist/versions.js +14 -11
  68. package/dist/versions.js.map +1 -1
  69. package/package.json +11 -13
  70. package/dist/format-ra_vlnN7.js +0 -238
  71. package/dist/format-ra_vlnN7.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PortIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/nodes/PortIcon/PortIcon.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AAgI7C,wBAOG"}
1
+ {"version":3,"file":"PortIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/nodes/PortIcon/PortIcon.vue"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AA2D7C,wBAOG"}
@@ -0,0 +1,4 @@
1
+ import { PortIconProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<PortIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PortIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
4
+ //# sourceMappingURL=SVGPortIcon.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SVGPortIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/nodes/PortIcon/SVGPortIcon.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AAoG7C,wBAMG"}
@@ -0,0 +1,3 @@
1
+ export declare const PORT_SIZE = 8;
2
+ export declare const PORT_STROKE_WIDTH = 1.4;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/nodes/PortIcon/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,iBAAiB,MAAM,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export * from './NodeDescriptionTabs';
2
2
  export type * from './NodeDescriptionTabs';
3
+ export * from './NodePreview';
4
+ export type * from './NodePreview';
3
5
  export * from './PortIcon';
4
6
  export type * from './PortIcon';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC;AAE3C,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC;AAE3C,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC"}
@@ -1,7 +1,16 @@
1
1
  import { RFCErrorData } from './types';
2
2
  type Props = {
3
+ /**
4
+ * Toast headline shown in the toast title bar. Not rendered inside this
5
+ * template, but included when serializing the error to the clipboard.
6
+ */
3
7
  headline: string;
8
+ /** Whether to show the "Copy error to clipboard" button. */
4
9
  canCopyToClipboard?: boolean;
10
+ /**
11
+ * Custom serializer for the clipboard payload. Defaults to
12
+ * `serializeRFCErrorData` which formats the full error as text.
13
+ */
5
14
  serializeErrorForClipboard?: (error: RFCErrorData, headline: string, formatDate: (date: Date) => string) => string;
6
15
  } & RFCErrorData;
7
16
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -1 +1 @@
1
- {"version":3,"file":"RFCErrorToastTemplate.vue.d.ts","sourceRoot":"","sources":["../../../src/rfcErrors/RFCErrorToastTemplate.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,0BAA0B,CAAC,EAAE,CAC3B,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,KAC/B,MAAM,CAAC;CACb,GAAG,YAAY,CAAC;;;;;;AAmNjB,wBAQG"}
1
+ {"version":3,"file":"RFCErrorToastTemplate.vue.d.ts","sourceRoot":"","sources":["../../../src/rfcErrors/RFCErrorToastTemplate.vue"],"names":[],"mappings":"AAuJA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,KAAK,KAAK,GAAG;IACX;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAC3B,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,KAC/B,MAAM,CAAC;CACb,GAAG,YAAY,CAAC;;;;;;AAmNjB,wBAQG"}
@@ -4,10 +4,15 @@
4
4
  * https://knime-com.atlassian.net/wiki/spaces/SPECS/pages/4126769212/API+Errors+Problem+Details
5
5
  */
6
6
  export type RFCErrorData = {
7
+ /** Short human-readable summary of the error. */
7
8
  title: string;
9
+ /** HTTP status code associated with the error. */
8
10
  status?: number;
11
+ /** Date/time when the error occurred. */
9
12
  date?: Date;
13
+ /** Additional human-readable detail messages. */
10
14
  details?: string[];
15
+ /** Correlation id for the request that triggered the error. */
11
16
  requestId?: string;
12
17
  /**
13
18
  * Id used to find an error in the Hub logs. Specially relevant
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/rfcErrors/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,QAAS,SAAQ,KAAK;IACjC,IAAI,EAAE,YAAY,CAAC;gBAEP,IAAI,EAAE,YAAY;CAI/B;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/rfcErrors/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,QAAS,SAAQ,KAAK;IACjC,IAAI,EAAE,YAAY,CAAC;gBAEP,IAAI,EAAE,YAAY;CAI/B;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH,CAAC"}
@@ -23,15 +23,18 @@ type ToastButtonWithIcon = {
23
23
  * The icon to be displayed alongside with, or instead of the button text.
24
24
  */
25
25
  icon: KdsIconName;
26
+ /** Accessible label for the button, required when no text is shown. */
26
27
  ariaLabel: string;
27
28
  text?: never;
28
29
  };
29
30
  type ToastButtonWithText = {
31
+ /** Optional icon displayed alongside the button text. */
30
32
  icon?: KdsIconName;
31
33
  /**
32
34
  * The text content to be displayed on the button.
33
35
  */
34
36
  text: string;
37
+ /** Accessible label for the button. Falls back to the text content when omitted. */
35
38
  ariaLabel?: string;
36
39
  };
37
40
  export type ToastButton = BaseToastButton & (ToastButtonWithIcon | ToastButtonWithText);
@@ -48,6 +51,7 @@ export type Toast = {
48
51
  * Message to be displayed.
49
52
  */
50
53
  message?: string;
54
+ /** Action buttons displayed at the bottom of the toast. */
51
55
  buttons?: ToastButton[];
52
56
  /**
53
57
  * Component to be displayed as toast content. Only used for RFC errors
@@ -60,12 +64,14 @@ export type Toast = {
60
64
  * time before all auto-removable toasts are dismissed.
61
65
  */
62
66
  autoRemove?: boolean;
67
+ /** Whether the toast is currently active (visible and animating). */
63
68
  active?: boolean;
64
69
  /**
65
70
  * If set, only one toast with the same key will be in the stack.
66
71
  * If a new toast with the same key is added, it will be dropped.
67
72
  */
68
73
  deduplicationKey?: string;
74
+ /** Arbitrary metadata attached to the toast, available to consumers. */
69
75
  meta?: Record<string, unknown>;
70
76
  /**
71
77
  * If set to false the toast cannot be dismissed by the user.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/toasts/Toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEtE,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,eAAe,GACvC,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,CAAC;AAE9C,MAAM,MAAM,KAAK,GAA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E,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,yDAAyD;IACzD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,eAAe,GACvC,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,CAAC;AAE9C,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qEAAqE;IACrE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export type ToastStackProps = {
2
+ /** Symbol identifying which toast service's toasts to render. `null` renders the global service. */
2
3
  serviceSymbol?: symbol | null;
4
+ /** Property name on the host component to bind the toast service to. */
3
5
  propertyName?: string | null;
4
6
  };
5
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/toasts/ToastStack/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/toasts/ToastStack/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,oGAAoG;IACpG,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export type CreateVersionFormProps = {
2
+ /** Whether the version creation request is currently in flight (disables the form). */
2
3
  isCreationPending?: boolean;
3
4
  };
4
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/versions/CreateVersionForm/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/versions/CreateVersionForm/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,uFAAuF;IACvF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HistoryEventFooter.vue.d.ts","sourceRoot":"","sources":["../../../../src/versions/VersionHistory/HistoryEventFooter.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CACvC,CAAC;;AAyEF,wBAOG"}
1
+ {"version":3,"file":"HistoryEventFooter.vue.d.ts","sourceRoot":"","sources":["../../../../src/versions/VersionHistory/HistoryEventFooter.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CACvC,CAAC;;AAwEF,wBAOG"}
@@ -20,6 +20,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
20
20
  readonly popoverType?: import('@knime/kds-components').KdsPopoverType | undefined;
21
21
  readonly fullWidth?: boolean | undefined;
22
22
  readonly maxInlineSize?: string | undefined;
23
+ readonly stretchInline?: boolean | undefined;
23
24
  readonly content?: string | undefined;
24
25
  readonly placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom"> | undefined;
25
26
  readonly customPlacementPosition?: never | undefined;
@@ -30,6 +31,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
30
31
  readonly popoverType?: import('@knime/kds-components').KdsPopoverType | undefined;
31
32
  readonly fullWidth?: boolean | undefined;
32
33
  readonly maxInlineSize?: string | undefined;
34
+ readonly stretchInline?: boolean | undefined;
33
35
  readonly content?: string | undefined;
34
36
  readonly placement: "custom";
35
37
  readonly customPlacementPosition: {
@@ -55,11 +57,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
55
57
  $options: import('vue').ComponentOptionsBase<Readonly<({
56
58
  modelValue?: boolean;
57
59
  } & {
58
- modelValue?: boolean;
59
60
  role?: import('@knime/kds-components').KdsPopoverRole;
60
61
  popoverType?: import('@knime/kds-components').KdsPopoverType;
61
62
  fullWidth?: boolean;
62
63
  maxInlineSize?: string;
64
+ stretchInline?: boolean;
63
65
  content?: string;
64
66
  } & {
65
67
  placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom">;
@@ -67,11 +69,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
67
69
  }) | ({
68
70
  modelValue?: boolean;
69
71
  } & {
70
- modelValue?: boolean;
71
72
  role?: import('@knime/kds-components').KdsPopoverRole;
72
73
  popoverType?: import('@knime/kds-components').KdsPopoverType;
73
74
  fullWidth?: boolean;
74
75
  maxInlineSize?: string;
76
+ stretchInline?: boolean;
75
77
  content?: string;
76
78
  } & {
77
79
  placement: "custom";
@@ -109,11 +111,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
109
111
  } & Readonly<{}> & Omit<{} & (Readonly<({
110
112
  modelValue?: boolean;
111
113
  } & {
112
- modelValue?: boolean;
113
114
  role?: import('@knime/kds-components').KdsPopoverRole;
114
115
  popoverType?: import('@knime/kds-components').KdsPopoverType;
115
116
  fullWidth?: boolean;
116
117
  maxInlineSize?: string;
118
+ stretchInline?: boolean;
117
119
  content?: string;
118
120
  } & {
119
121
  placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom">;
@@ -121,11 +123,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
121
123
  }) | ({
122
124
  modelValue?: boolean;
123
125
  } & {
124
- modelValue?: boolean;
125
126
  role?: import('@knime/kds-components').KdsPopoverRole;
126
127
  popoverType?: import('@knime/kds-components').KdsPopoverType;
127
128
  fullWidth?: boolean;
128
129
  maxInlineSize?: string;
130
+ stretchInline?: boolean;
129
131
  content?: string;
130
132
  } & {
131
133
  placement: "custom";
@@ -139,8 +141,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
139
141
  anchorStyle: Record<string, string>;
140
142
  popoverId: string;
141
143
  } & {} & import('vue').ComponentCustomProperties & {} & {
142
- $slots: {
143
- default?(_: {}): any;
144
+ $slots: Readonly<{
145
+ default(): unknown;
146
+ }> & {
147
+ default(): unknown;
144
148
  };
145
149
  }) | null;
146
150
  }, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"VersionLabel.vue.d.ts","sourceRoot":"","sources":["../../../../src/versions/VersionHistory/VersionLabel.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,KAAK,WAAW,GAAG,KAAK,CAAC;AAUzB,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwImtlB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhBz1lB,wBAQG"}
1
+ {"version":3,"file":"VersionLabel.vue.d.ts","sourceRoot":"","sources":["../../../../src/versions/VersionHistory/VersionLabel.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,KAAK,WAAW,GAAG,KAAK,CAAC;AAUzB,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwIg5lB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhBthmB,wBAQG"}
@@ -1,28 +1,44 @@
1
1
  import { CURRENT_STATE_VERSION, MOST_RECENT_VERSION } from './constants';
2
2
  export type NamedItemVersion = {
3
+ /** Version number, or one of the sentinel constants `CURRENT_STATE_VERSION` / `MOST_RECENT_VERSION`. */
3
4
  version: number | typeof CURRENT_STATE_VERSION | typeof MOST_RECENT_VERSION;
5
+ /** Human-readable title of the version. */
4
6
  title: string;
7
+ /** Optional description of what changed in this version. */
5
8
  description?: string;
9
+ /** Display name of the author who created the version. */
6
10
  author: string;
11
+ /** Account id of the author who created the version. */
7
12
  authorAccountId?: string;
13
+ /** ISO timestamp when the version was created. */
8
14
  createdOn: string;
9
15
  };
10
16
  export type AssignedLabel = {
17
+ /** Unique identifier of the assigned label. */
11
18
  labelId: string;
19
+ /** Optional message attached to the label assignment. */
12
20
  message?: string;
21
+ /** ISO timestamp when the label was assigned. */
13
22
  createdAt?: string;
23
+ /** Account id of the user who assigned the label. */
14
24
  createdBy?: string;
25
+ /** The label definition. */
15
26
  label: {
27
+ /** Display name of the label. */
16
28
  name: string;
29
+ /** Description of the label. */
17
30
  description: string;
18
31
  };
19
32
  };
33
+ /** Adds avatar information (name + optional image) to a version or savepoint. */
20
34
  export type WithAvatar = {
35
+ /** Avatar data: display name and optional image source URL. */
21
36
  avatar: {
22
37
  name: string;
23
38
  src?: string;
24
39
  };
25
40
  };
41
+ /** Adds label assignments to a version or savepoint. */
26
42
  export type WithLabels = {
27
43
  labels: Array<AssignedLabel>;
28
44
  };
@@ -34,29 +50,49 @@ type ItemChange = {
34
50
  authorAccountId?: string;
35
51
  };
36
52
  export type ItemSavepoint = {
53
+ /** Display name of the author who last edited the savepoint. */
37
54
  author: string;
55
+ /** Account id of the author who last edited the savepoint. */
38
56
  authorAccountId?: string;
57
+ /** ISO timestamp of the last edit. */
39
58
  lastEditedOn: string;
59
+ /** Monotonically increasing savepoint number. */
40
60
  savepointNumber: number;
61
+ /** The version this savepoint belongs to, if it has been versioned. */
41
62
  version?: NamedItemVersion;
63
+ /** UUID of the item version, if versioned. */
42
64
  itemVersionId?: string;
65
+ /** List of changes recorded in this savepoint. */
43
66
  changes: Array<ItemChange>;
44
67
  };
45
68
  export type VersionLimit = {
69
+ /** How many versions have been created so far. */
46
70
  currentUsage: number;
71
+ /** Maximum number of allowed versions. `undefined` means unlimited. */
47
72
  limit?: number;
48
73
  };
49
74
  export type VersionHistoryProps = {
75
+ /** Whether the item has uncommitted/unversioned changes since the last savepoint. */
50
76
  hasUnversionedChanges: boolean;
77
+ /** The unversioned savepoint shown above the version list, or `null` if there is none. */
51
78
  unversionedSavepoint?: (ItemSavepoint & WithAvatar & WithLabels) | null;
79
+ /** The currently selected version, or `null` if nothing is selected. */
52
80
  currentVersion: NamedItemVersion["version"] | null;
81
+ /** Ordered list of named versions with avatar and label data. */
53
82
  versionHistory: Array<NamedItemVersion & WithAvatar & WithLabels>;
83
+ /** Whether older versions are currently being loaded. */
54
84
  loading: boolean;
85
+ /** Whether all versions have been loaded (hides the "load more" button). */
55
86
  hasLoadedAllVersions: boolean;
87
+ /** Whether the current user has admin rights (can delete versions). */
56
88
  hasAdminRights: boolean;
89
+ /** Whether the current user has edit capability (can create/restore versions). */
57
90
  hasEditCapability: boolean;
91
+ /** Version count limits for the current space. */
58
92
  versionLimit?: VersionLimit;
93
+ /** URL to a pricing/upgrade page shown when the version limit is reached. */
59
94
  upgradeUrl?: string;
95
+ /** Whether the item lives in a private space (affects limit messaging). */
60
96
  isPrivate?: boolean;
61
97
  };
62
98
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/versions/VersionHistory/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,GAAG,OAAO,qBAAqB,GAAG,OAAO,mBAAmB,CAAC;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,W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AAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,qFAAqF;IACrF,qBAAqB,EAAE,OAAO,CAAC;IAC/B,0FAA0F;IAC1F,oBAAoB,CAAC,EAAE,CAAC,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC,GAAG,IAAI,CAAC;IACxE,wEAAwE;IACxE,cAAc,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IACnD,iEAAiE;IACjE,cAAc,EAAE,KAAK,CAAC,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;IAClE,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB,4EAA4E;IAC5E,oBAAoB,EAAE,OAAO,CAAC;IAC9B,uEAAuE;IACvE,cAAc,EAAE,OAAO,CAAC;IACxB,kFAAkF;IAClF,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kDAAkD;IAClD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
package/dist/toasts.css CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
  .toast {
3
- &[data-v-9841e244] {
4
- --main-color: var(--dfdf62ea);
5
- --background-color: var(--v6c951376);
6
- --border-color: var(--v1717c890);
3
+ &[data-v-2b8d7fd1] {
4
+ --main-color: var(--f2f3d888);
5
+ --background-color: var(--v42f46fe7);
6
+ --border-color: var(--v248d58a9);
7
7
 
8
8
  position: relative;
9
9
  width: var(--kds-dimension-component-width-25x);
@@ -16,12 +16,12 @@
16
16
  box-shadow: var(--kds-elevation-level-3);
17
17
  transition: all 0.3s;
18
18
  }
19
- & .container[data-v-9841e244] {
19
+ & .container[data-v-2b8d7fd1] {
20
20
  display: flex;
21
21
  flex-direction: row;
22
22
  gap: var(--kds-spacing-container-0-5x);
23
23
  }
24
- & .type-indicator[data-v-9841e244] {
24
+ & .type-indicator[data-v-2b8d7fd1] {
25
25
  display: flex;
26
26
  flex-shrink: 0;
27
27
  flex-direction: column;
@@ -29,37 +29,37 @@
29
29
  color: var(--main-color);
30
30
  }
31
31
  & .content {
32
- &[data-v-9841e244] {
32
+ &[data-v-2b8d7fd1] {
33
33
  display: flex;
34
34
  flex-grow: 1;
35
35
  flex-direction: column;
36
36
  gap: var(--kds-spacing-container-0-5x);
37
37
  max-width: 100%;
38
38
  }
39
- & .headline-wrapper[data-v-9841e244] {
39
+ & .headline-wrapper[data-v-2b8d7fd1] {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  justify-content: space-between;
43
43
  height: var(--kds-dimension-component-height-1-25x);
44
44
  }
45
- & .headline[data-v-9841e244] {
45
+ & .headline[data-v-2b8d7fd1] {
46
46
  font: var(--kds-font-base-title-small-strong);
47
47
  color: var(--kds-color-text-and-icon-neutral);
48
48
  }
49
- & .message[data-v-9841e244] {
49
+ & .message[data-v-2b8d7fd1] {
50
50
  max-height: var(--kds-dimension-component-height-45x);
51
51
  font: var(--kds-font-base-body-small);
52
52
  color: var(--kds-color-text-and-icon-neutral);
53
53
  overflow-wrap: anywhere;
54
54
  white-space: break-spaces;
55
55
  }
56
- & .buttons[data-v-9841e244] {
56
+ & .buttons[data-v-2b8d7fd1] {
57
57
  display: flex;
58
58
  flex-direction: row;
59
59
  gap: var(--kds-spacing-container-0-5x);
60
60
  }
61
61
  }
62
- & .progress-bar[data-v-9841e244] {
62
+ & .progress-bar[data-v-2b8d7fd1] {
63
63
  --progress-bar-transition-duration: 0s;
64
64
  --progress-bar-foreground-color: var(--main-color);
65
65
 
@@ -70,7 +70,7 @@
70
70
  display: none;
71
71
  width: auto;
72
72
  }
73
- &.auto-remove .progress-bar[data-v-9841e244] {
73
+ &.auto-remove .progress-bar[data-v-2b8d7fd1] {
74
74
  display: initial;
75
75
  }
76
76
  }
package/dist/toasts.js CHANGED
@@ -1,19 +1,12 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, useCssVars, ref, inject, onMounted, watch, createElementBlock, normalizeClass, withDirectives, createElementVNode, createVNode, toDisplayString, createCommentVNode, Fragment, createTextVNode, resolveDynamicComponent, renderList, vShow, provide, getCurrentInstance, TransitionGroup, withCtx } from 'vue';
2
2
  import { useWindowFocus, useMouseInElement, useRafFn, useEventBus } from '@vueuse/core';
3
3
  import { KdsLinkButton, KdsButton, KdsIcon, KdsProgressBar } from '@knime/kds-components';
4
+ import { c as capitalize, t as truncateString } from './index-B3ql6hun.js';
4
5
  import { _ as _export_sfc } from './_plugin-vue_export-helper-pcqpp-6-.js';
5
6
  import { cloneDeep } from 'es-toolkit';
6
7
  import { uniqueId } from 'es-toolkit/compat';
7
8
 
8
- import './toasts.css';const capitalize = (input) => input.charAt(0).toUpperCase() + input.substring(1);
9
-
10
- const defaultMaxLength = 160;
11
- const truncateString = (string = "", maxLength = defaultMaxLength) => {
12
- const dots = string.length > maxLength ? "…" : "";
13
- return `${string.substring(0, maxLength - 1)}${dots}`;
14
- };
15
-
16
- const toastType = {
9
+ import './toasts.css';const toastType = {
17
10
  INFO: "info",
18
11
  SUCCESS: "success",
19
12
  WARNING: "warning",
@@ -109,9 +102,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
109
102
  emits: ["remove", "autoRemove"],
110
103
  setup(__props, { emit: __emit }) {
111
104
  useCssVars((_ctx) => ({
112
- "dfdf62ea": mainColor.value,
113
- "v6c951376": backgroundColor.value,
114
- "v1717c890": borderColor.value
105
+ "f2f3d888": mainColor.value,
106
+ "v42f46fe7": backgroundColor.value,
107
+ "v248d58a9": borderColor.value
115
108
  }));
116
109
  const availableHeadline = computed(() => {
117
110
  return __props.headline ? __props.headline : capitalize(__props.type);
@@ -257,7 +250,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
257
250
  "data-test-id": "dismiss",
258
251
  variant: "transparent",
259
252
  size: "xsmall",
260
- title: "Dismiss message",
253
+ tooltip: "Dismiss message",
261
254
  ariaLabel: "Dismiss message",
262
255
  "leading-icon": "x-close",
263
256
  onClick: _cache[0] || (_cache[0] = ($event) => emit("remove"))
@@ -298,7 +291,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
298
291
  }
299
292
  });
300
293
 
301
- const Toast = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-9841e244"]]);
294
+ const Toast = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2b8d7fd1"]]);
302
295
 
303
296
  const defaultToastServiceSymbol = /* @__PURE__ */ Symbol("toast");
304
297
  const defaultGlobalPropertyName = "$toast";