@progress/kendo-vue-conversational-ui 5.3.0-dev.202409130647 → 5.3.0-develop.1

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,117 +0,0 @@
1
- // @ts-ignore
2
- import * as Vue from 'vue';
3
- var allVue = Vue;
4
- var gh = allVue.h;
5
- var isV3 = allVue.version && allVue.version[0] === '3';
6
- import { AIPromptContent } from '../AIPromptContent.js';
7
- import { AIPromptViewRender } from './AIPromptViewRender.js';
8
- import { moreHorizontalIcon } from '@progress/kendo-svg-icons';
9
- import { PanelBar } from '@progress/kendo-vue-layout';
10
- /**
11
- * Specifies the default values for Commands view Toolbar.
12
- */
13
- export var commandsViewDefaults = {
14
- name: 'commands-view',
15
- buttonIcon: moreHorizontalIcon
16
- };
17
- /**
18
- * @hidden
19
- */
20
- var AIPromptCommandsViewVue2 = {
21
- name: 'KendoAIPromptCommandsView',
22
- props: {
23
- commands: Array
24
- },
25
- // @ts-ignore
26
- setup: !isV3 ? undefined : function () {
27
- var v3 = !!isV3;
28
- return {
29
- v3: v3
30
- };
31
- },
32
- inject: {
33
- kendoAIPrompt: {
34
- default: null
35
- }
36
- },
37
- render: function render(createElement) {
38
- var _this2 = this;
39
- var _this = this;
40
- var h = gh || createElement;
41
- var commands = this.$props.commands;
42
- var onCommandClick = function onCommandClick(event) {
43
- var _a;
44
- var command = event.target;
45
- if (!((_a = command.items) === null || _a === void 0 ? void 0 : _a.length) && _this.kendoAIPrompt.onCommandExecute) {
46
- _this.$emit('commandexecute', command);
47
- _this.kendoAIPrompt.onCommandExecute.call(null, command);
48
- }
49
- };
50
- return (
51
- // @ts-ignore function children
52
- h(AIPromptViewRender, {
53
- name: commandsViewDefaults.name,
54
- attrs: this.v3 ? undefined : {
55
- name: commandsViewDefaults.name
56
- }
57
- }, this.v3 ? function () {
58
- return [
59
- // @ts-ignore function children
60
- h(AIPromptContent, _this2.v3 ? function () {
61
- return [h("div", {
62
- "class": "k-prompt-view"
63
- }, [h(PanelBar, {
64
- onSelect: onCommandClick,
65
- on: _this2.v3 ? undefined : {
66
- "select": onCommandClick
67
- },
68
- items: commands,
69
- attrs: _this2.v3 ? undefined : {
70
- items: commands
71
- }
72
- })])];
73
- } : [h("div", {
74
- "class": "k-prompt-view"
75
- }, [h(PanelBar, {
76
- onSelect: onCommandClick,
77
- on: _this2.v3 ? undefined : {
78
- "select": onCommandClick
79
- },
80
- items: commands,
81
- attrs: _this2.v3 ? undefined : {
82
- items: commands
83
- }
84
- })])])];
85
- } : [h(AIPromptContent, _this2.v3 ? function () {
86
- return [h("div", {
87
- "class": "k-prompt-view"
88
- }, [h(PanelBar, {
89
- onSelect: onCommandClick,
90
- on: _this2.v3 ? undefined : {
91
- "select": onCommandClick
92
- },
93
- items: commands,
94
- attrs: _this2.v3 ? undefined : {
95
- items: commands
96
- }
97
- })])];
98
- } : [h("div", {
99
- "class": "k-prompt-view"
100
- }, [h(PanelBar, {
101
- onSelect: onCommandClick,
102
- on: _this2.v3 ? undefined : {
103
- "select": onCommandClick
104
- },
105
- items: commands,
106
- attrs: _this2.v3 ? undefined : {
107
- items: commands
108
- }
109
- })])])])
110
- );
111
- }
112
- };
113
- /**
114
- * @hidden
115
- */
116
- var AIPromptCommandsView = AIPromptCommandsViewVue2;
117
- export { AIPromptCommandsView, AIPromptCommandsViewVue2 };
@@ -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 };