@progress/kendo-vue-conversational-ui 5.3.0-dev.202410141143 → 5.3.0-develop.2

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 (97) hide show
  1. package/README.md +27 -34
  2. package/ai-prompt/AIPrompt.js +8 -0
  3. package/ai-prompt/AIPrompt.mjs +83 -0
  4. package/ai-prompt/AIPromptContent.js +8 -0
  5. package/ai-prompt/AIPromptContent.mjs +23 -0
  6. package/ai-prompt/AIPromptExpander.js +8 -0
  7. package/ai-prompt/AIPromptExpander.mjs +51 -0
  8. package/ai-prompt/AIPromptFooter.js +8 -0
  9. package/ai-prompt/AIPromptFooter.mjs +23 -0
  10. package/ai-prompt/AIPromptHeader.js +8 -0
  11. package/ai-prompt/AIPromptHeader.mjs +70 -0
  12. package/ai-prompt/views/AIPromptCommandsView.js +8 -0
  13. package/ai-prompt/views/AIPromptCommandsView.mjs +51 -0
  14. package/ai-prompt/views/AIPromptOutputView.js +8 -0
  15. package/ai-prompt/views/AIPromptOutputView.mjs +170 -0
  16. package/ai-prompt/views/AIPromptView.js +8 -0
  17. package/ai-prompt/views/AIPromptView.mjs +112 -0
  18. package/ai-prompt/views/AIPromptViewRender.js +8 -0
  19. package/ai-prompt/views/AIPromptViewRender.mjs +28 -0
  20. package/dist/cdn/js/kendo-vue-conversational-ui.js +8 -1
  21. package/index.d.mts +378 -0
  22. package/index.d.ts +378 -0
  23. package/index.js +8 -0
  24. package/index.mjs +29 -0
  25. package/messages/main.js +8 -0
  26. package/messages/main.mjs +18 -0
  27. package/package.json +24 -50
  28. package/dist/es/additionalTypes.ts +0 -21
  29. package/dist/es/ai-prompt/AIPrompt.d.ts +0 -122
  30. package/dist/es/ai-prompt/AIPrompt.js +0 -117
  31. package/dist/es/ai-prompt/AIPromptContent.d.ts +0 -47
  32. package/dist/es/ai-prompt/AIPromptContent.js +0 -33
  33. package/dist/es/ai-prompt/AIPromptExpander.d.ts +0 -45
  34. package/dist/es/ai-prompt/AIPromptExpander.js +0 -68
  35. package/dist/es/ai-prompt/AIPromptFooter.d.ts +0 -44
  36. package/dist/es/ai-prompt/AIPromptFooter.js +0 -33
  37. package/dist/es/ai-prompt/AIPromptHeader.d.ts +0 -71
  38. package/dist/es/ai-prompt/AIPromptHeader.js +0 -146
  39. package/dist/es/ai-prompt/views/AIPromptCommandsView.d.ts +0 -86
  40. package/dist/es/ai-prompt/views/AIPromptCommandsView.js +0 -117
  41. package/dist/es/ai-prompt/views/AIPromptOutputView.d.ts +0 -93
  42. package/dist/es/ai-prompt/views/AIPromptOutputView.js +0 -2206
  43. package/dist/es/ai-prompt/views/AIPromptView.d.ts +0 -56
  44. package/dist/es/ai-prompt/views/AIPromptView.js +0 -299
  45. package/dist/es/ai-prompt/views/AIPromptViewRender.d.ts +0 -51
  46. package/dist/es/ai-prompt/views/AIPromptViewRender.js +0 -39
  47. package/dist/es/main.d.ts +0 -8
  48. package/dist/es/main.js +0 -8
  49. package/dist/es/messages/main.d.ts +0 -20
  50. package/dist/es/messages/main.js +0 -21
  51. package/dist/esm/additionalTypes.ts +0 -21
  52. package/dist/esm/ai-prompt/AIPrompt.d.ts +0 -122
  53. package/dist/esm/ai-prompt/AIPrompt.js +0 -117
  54. package/dist/esm/ai-prompt/AIPromptContent.d.ts +0 -47
  55. package/dist/esm/ai-prompt/AIPromptContent.js +0 -33
  56. package/dist/esm/ai-prompt/AIPromptExpander.d.ts +0 -45
  57. package/dist/esm/ai-prompt/AIPromptExpander.js +0 -68
  58. package/dist/esm/ai-prompt/AIPromptFooter.d.ts +0 -44
  59. package/dist/esm/ai-prompt/AIPromptFooter.js +0 -33
  60. package/dist/esm/ai-prompt/AIPromptHeader.d.ts +0 -71
  61. package/dist/esm/ai-prompt/AIPromptHeader.js +0 -146
  62. package/dist/esm/ai-prompt/views/AIPromptCommandsView.d.ts +0 -86
  63. package/dist/esm/ai-prompt/views/AIPromptCommandsView.js +0 -117
  64. package/dist/esm/ai-prompt/views/AIPromptOutputView.d.ts +0 -93
  65. package/dist/esm/ai-prompt/views/AIPromptOutputView.js +0 -2206
  66. package/dist/esm/ai-prompt/views/AIPromptView.d.ts +0 -56
  67. package/dist/esm/ai-prompt/views/AIPromptView.js +0 -299
  68. package/dist/esm/ai-prompt/views/AIPromptViewRender.d.ts +0 -51
  69. package/dist/esm/ai-prompt/views/AIPromptViewRender.js +0 -39
  70. package/dist/esm/main.d.ts +0 -8
  71. package/dist/esm/main.js +0 -8
  72. package/dist/esm/messages/main.d.ts +0 -20
  73. package/dist/esm/messages/main.js +0 -21
  74. package/dist/esm/package.json +0 -3
  75. package/dist/npm/additionalTypes.ts +0 -21
  76. package/dist/npm/ai-prompt/AIPrompt.d.ts +0 -122
  77. package/dist/npm/ai-prompt/AIPrompt.js +0 -124
  78. package/dist/npm/ai-prompt/AIPromptContent.d.ts +0 -47
  79. package/dist/npm/ai-prompt/AIPromptContent.js +0 -40
  80. package/dist/npm/ai-prompt/AIPromptExpander.d.ts +0 -45
  81. package/dist/npm/ai-prompt/AIPromptExpander.js +0 -75
  82. package/dist/npm/ai-prompt/AIPromptFooter.d.ts +0 -44
  83. package/dist/npm/ai-prompt/AIPromptFooter.js +0 -40
  84. package/dist/npm/ai-prompt/AIPromptHeader.d.ts +0 -71
  85. package/dist/npm/ai-prompt/AIPromptHeader.js +0 -153
  86. package/dist/npm/ai-prompt/views/AIPromptCommandsView.d.ts +0 -86
  87. package/dist/npm/ai-prompt/views/AIPromptCommandsView.js +0 -124
  88. package/dist/npm/ai-prompt/views/AIPromptOutputView.d.ts +0 -93
  89. package/dist/npm/ai-prompt/views/AIPromptOutputView.js +0 -2213
  90. package/dist/npm/ai-prompt/views/AIPromptView.d.ts +0 -56
  91. package/dist/npm/ai-prompt/views/AIPromptView.js +0 -306
  92. package/dist/npm/ai-prompt/views/AIPromptViewRender.d.ts +0 -51
  93. package/dist/npm/ai-prompt/views/AIPromptViewRender.js +0 -46
  94. package/dist/npm/main.d.ts +0 -8
  95. package/dist/npm/main.js +0 -24
  96. package/dist/npm/messages/main.d.ts +0 -20
  97. package/dist/npm/messages/main.js +0 -24
@@ -1,86 +0,0 @@
1
- import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
2
- declare type DefaultData<V> = object | ((this: V) => {});
3
- declare type DefaultMethods<V> = {
4
- [key: string]: (this: V, ...args: any[]) => any;
5
- };
6
- import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
7
- import { SVGIcon } from '@progress/kendo-vue-common';
8
- /**
9
- * The props of the AIPromptCommandsView component.
10
- */
11
- export interface AIPromptCommandsViewProps {
12
- /**
13
- * The collection of commands that will be rendered in the Command view.
14
- */
15
- commands?: AIPromptCommandInterface[];
16
- /**
17
- * Fires each time the user clicks over a Command view command. Exposes the selected command as event data.
18
- */
19
- onCommandexecute?: (command: CommandItemInterface) => void;
20
- }
21
- /**
22
- * An interface for the Command view command.
23
- */
24
- export interface AIPromptCommandInterface extends CommandItemInterface {
25
- /**
26
- * Collection with nested commands.
27
- */
28
- children?: CommandItemInterface[];
29
- }
30
- /**
31
- * @hidden
32
- */
33
- interface CommandItemInterface {
34
- /**
35
- * The unique identifier of the command.
36
- */
37
- id: string;
38
- /**
39
- * Specifies the command text.
40
- */
41
- text: string;
42
- /**
43
- * Specifies the name of the SVG icon that will be rendered for the command.
44
- */
45
- svgIcon?: SVGIcon;
46
- }
47
- /**
48
- * Specifies the default values for Commands view Toolbar.
49
- */
50
- export declare const commandsViewDefaults: AIPromptToolbarItemInterface;
51
- /**
52
- * @hidden
53
- */
54
- interface AIPromptCommandsViewState {
55
- }
56
- /**
57
- * @hidden
58
- */
59
- interface AIPromptCommandsViewData {
60
- }
61
- /**
62
- * @hidden
63
- */
64
- export interface AIPromptCommandsViewMethods {
65
- [key: string]: any;
66
- }
67
- /**
68
- * @hidden
69
- */
70
- export interface AIPromptCommandsViewComputed {
71
- [key: string]: any;
72
- }
73
- /**
74
- * @hidden
75
- */
76
- export interface AIPromptCommandsViewAll extends AIPromptCommandsViewMethods, AIPromptCommandsViewState, AIPromptCommandsViewData, AIPromptCommandsViewComputed, Vue2type {
77
- }
78
- /**
79
- * @hidden
80
- */
81
- declare const AIPromptCommandsViewVue2: ComponentOptions<Vue2type, DefaultData<AIPromptCommandsViewData>, DefaultMethods<AIPromptCommandsViewAll>, AIPromptCommandsViewComputed, RecordPropsDefinition<AIPromptCommandsViewProps>>;
82
- /**
83
- * @hidden
84
- */
85
- declare const AIPromptCommandsView: DefineComponent<AIPromptCommandsViewProps, any, AIPromptCommandsViewData, AIPromptCommandsViewComputed, AIPromptCommandsViewMethods, {}, {}, {}, string, AIPromptCommandsViewProps, AIPromptCommandsViewProps, {}>;
86
- export { AIPromptCommandsView, AIPromptCommandsViewVue2 };
@@ -1,124 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AIPromptCommandsViewVue2 = exports.AIPromptCommandsView = exports.commandsViewDefaults = void 0;
7
- // @ts-ignore
8
- var Vue = require("vue");
9
- var allVue = Vue;
10
- var gh = allVue.h;
11
- var isV3 = allVue.version && allVue.version[0] === '3';
12
- var AIPromptContent_1 = require("../AIPromptContent");
13
- var AIPromptViewRender_1 = require("./AIPromptViewRender");
14
- var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
15
- var kendo_vue_layout_1 = require("@progress/kendo-vue-layout");
16
- /**
17
- * Specifies the default values for Commands view Toolbar.
18
- */
19
- exports.commandsViewDefaults = {
20
- name: 'commands-view',
21
- buttonIcon: kendo_svg_icons_1.moreHorizontalIcon
22
- };
23
- /**
24
- * @hidden
25
- */
26
- var AIPromptCommandsViewVue2 = {
27
- name: 'KendoAIPromptCommandsView',
28
- props: {
29
- commands: Array
30
- },
31
- // @ts-ignore
32
- setup: !isV3 ? undefined : function () {
33
- var v3 = !!isV3;
34
- return {
35
- v3: v3
36
- };
37
- },
38
- inject: {
39
- kendoAIPrompt: {
40
- default: null
41
- }
42
- },
43
- render: function render(createElement) {
44
- var _this2 = this;
45
- var _this = this;
46
- var h = gh || createElement;
47
- var commands = this.$props.commands;
48
- var onCommandClick = function onCommandClick(event) {
49
- var _a;
50
- var command = event.target;
51
- if (!((_a = command.items) === null || _a === void 0 ? void 0 : _a.length) && _this.kendoAIPrompt.onCommandExecute) {
52
- _this.$emit('commandexecute', command);
53
- _this.kendoAIPrompt.onCommandExecute.call(null, command);
54
- }
55
- };
56
- return (
57
- // @ts-ignore function children
58
- h(AIPromptViewRender_1.AIPromptViewRender, {
59
- name: exports.commandsViewDefaults.name,
60
- attrs: this.v3 ? undefined : {
61
- name: exports.commandsViewDefaults.name
62
- }
63
- }, this.v3 ? function () {
64
- return [
65
- // @ts-ignore function children
66
- h(AIPromptContent_1.AIPromptContent, _this2.v3 ? function () {
67
- return [h("div", {
68
- "class": "k-prompt-view"
69
- }, [h(kendo_vue_layout_1.PanelBar, {
70
- onSelect: onCommandClick,
71
- on: _this2.v3 ? undefined : {
72
- "select": onCommandClick
73
- },
74
- items: commands,
75
- attrs: _this2.v3 ? undefined : {
76
- items: commands
77
- }
78
- })])];
79
- } : [h("div", {
80
- "class": "k-prompt-view"
81
- }, [h(kendo_vue_layout_1.PanelBar, {
82
- onSelect: onCommandClick,
83
- on: _this2.v3 ? undefined : {
84
- "select": onCommandClick
85
- },
86
- items: commands,
87
- attrs: _this2.v3 ? undefined : {
88
- items: commands
89
- }
90
- })])])];
91
- } : [h(AIPromptContent_1.AIPromptContent, _this2.v3 ? function () {
92
- return [h("div", {
93
- "class": "k-prompt-view"
94
- }, [h(kendo_vue_layout_1.PanelBar, {
95
- onSelect: onCommandClick,
96
- on: _this2.v3 ? undefined : {
97
- "select": onCommandClick
98
- },
99
- items: commands,
100
- attrs: _this2.v3 ? undefined : {
101
- items: commands
102
- }
103
- })])];
104
- } : [h("div", {
105
- "class": "k-prompt-view"
106
- }, [h(kendo_vue_layout_1.PanelBar, {
107
- onSelect: onCommandClick,
108
- on: _this2.v3 ? undefined : {
109
- "select": onCommandClick
110
- },
111
- items: commands,
112
- attrs: _this2.v3 ? undefined : {
113
- items: commands
114
- }
115
- })])])])
116
- );
117
- }
118
- };
119
- exports.AIPromptCommandsViewVue2 = AIPromptCommandsViewVue2;
120
- /**
121
- * @hidden
122
- */
123
- var AIPromptCommandsView = AIPromptCommandsViewVue2;
124
- exports.AIPromptCommandsView = AIPromptCommandsView;
@@ -1,93 +0,0 @@
1
- import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
2
- declare type DefaultData<V> = object | ((this: V) => {});
3
- declare type DefaultMethods<V> = {
4
- [key: string]: (this: V, ...args: any[]) => any;
5
- };
6
- import { AIPromptOutputInterface } from '../AIPrompt';
7
- import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
8
- /**
9
- * The props of the AIPromptOutputView component.
10
- */
11
- export interface AIPromptOutputViewProps {
12
- /**
13
- * The collection of generated prompt outputs that will be rendered in the Output view.
14
- */
15
- outputs?: AIPromptOutputInterface[];
16
- /**
17
- * Represents a template that allows you to define custom Card .It accepts string of a named slot or a render function.
18
- * The custom fields will override the default one.
19
- */
20
- outputCard?: String | Function;
21
- /**
22
- * Specifies if the rating buttons in each card will be rendered.
23
- * By default, rating buttons are not rendered.
24
- *
25
- * @default false
26
- */
27
- showOutputRating?: boolean;
28
- /**
29
- * Fires each time the user clicks Retry button in the card.
30
- */
31
- onRetry?: (output: AIPromptOutputInterface) => void;
32
- /**
33
- * Fires each time the user clicks Copy button in the card.
34
- */
35
- onCopy?: (content: string) => void;
36
- /**
37
- * Fires each time the user clicks a rating button in the card.
38
- */
39
- onRating?: (output: AIPromptOutputInterface, ratingType: AIPromptOutputRating) => void;
40
- }
41
- /**
42
- * Enum option for the output rating
43
- */
44
- export declare enum AIPromptOutputRating {
45
- /**
46
- * Positive output rating
47
- */
48
- positive = "positive",
49
- /**
50
- * Negative output rating
51
- */
52
- negative = "negative"
53
- }
54
- /**
55
- * Specifies the default values for Output view Toolbar.
56
- */
57
- export declare const outputViewDefaults: AIPromptToolbarItemInterface;
58
- /**
59
- * @hidden
60
- */
61
- interface AIPromptOutputViewState {
62
- }
63
- /**
64
- * @hidden
65
- */
66
- interface AIPromptOutputViewData {
67
- }
68
- /**
69
- * @hidden
70
- */
71
- export interface AIPromptOutputViewMethods {
72
- [key: string]: any;
73
- }
74
- /**
75
- * @hidden
76
- */
77
- export interface AIPromptOutputViewComputed {
78
- [key: string]: any;
79
- }
80
- /**
81
- * @hidden
82
- */
83
- export interface AIPromptOutputViewAll extends AIPromptOutputViewMethods, AIPromptOutputViewState, AIPromptOutputViewData, AIPromptOutputViewComputed, Vue2type {
84
- }
85
- /**
86
- * @hidden
87
- */
88
- declare const AIPromptOutputViewVue2: ComponentOptions<Vue2type, DefaultData<AIPromptOutputViewData>, DefaultMethods<AIPromptOutputViewAll>, AIPromptOutputViewComputed, RecordPropsDefinition<AIPromptOutputViewProps>>;
89
- /**
90
- * @hidden
91
- */
92
- declare const AIPromptOutputView: DefineComponent<AIPromptOutputViewProps, any, AIPromptOutputViewData, AIPromptOutputViewComputed, AIPromptOutputViewMethods, {}, {}, {}, string, AIPromptOutputViewProps, AIPromptOutputViewProps, {}>;
93
- export { AIPromptOutputView, AIPromptOutputViewVue2 };