@sme.up/ketchup 9.5.0 → 9.5.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.
- package/dist/cjs/{f-button-033ed6d4.js → f-button-357a3dff.js} +1 -1
- package/dist/cjs/{f-cell-ef276797.js → f-cell-1de0ea69.js} +5 -5
- package/dist/cjs/{f-chip-d4e26a2b.js → f-chip-bd5882a0.js} +2 -2
- package/dist/cjs/{f-image-33be7baf.js → f-image-30531fd0.js} +1 -1
- package/dist/cjs/{f-paginator-utils-5a18cc19.js → f-paginator-utils-ad8a4635.js} +2 -2
- package/dist/cjs/{f-text-field-f03e97f8.js → f-text-field-be758970.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +125 -20
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-f90f1b6d.js → kup-manager-cefb1999.js} +492 -365
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/card.js +46 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +9 -0
- package/dist/collection/components/kup-card/built-in/kup-card-openai.js +74 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +1 -0
- package/dist/collection/components/kup-card/kup-card.css +86 -0
- package/dist/collection/components/kup-card/kup-card.js +6 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +2 -3
- package/dist/collection/components/kup-dialog/kup-dialog.css +3 -3
- package/dist/collection/components/kup-dialog/kup-dialog.js +19 -5
- package/dist/collection/managers/kup-manager/kup-manager.js +6 -123
- package/dist/collection/managers/kup-openai/kup-openai-declarations.js +1 -0
- package/dist/collection/managers/kup-openai/kup-openai.js +247 -0
- package/dist/components/kup-autocomplete2.js +776 -546
- package/dist/components/kup-manager.js +492 -365
- package/dist/esm/{f-button-ccde4447.js → f-button-856a189a.js} +1 -1
- package/dist/esm/{f-cell-2ad41d52.js → f-cell-6324d838.js} +5 -5
- package/dist/esm/{f-chip-3df1c255.js → f-chip-e15fba8a.js} +2 -2
- package/dist/esm/{f-image-5434b351.js → f-image-26b1bc14.js} +1 -1
- package/dist/esm/{f-paginator-utils-b90cdd2b.js → f-paginator-utils-e8f62783.js} +2 -2
- package/dist/esm/{f-text-field-f0b81f8b.js → f-text-field-bbe1f236.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_27.entry.js +125 -20
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +6 -6
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-e33d8d8c.js → kup-manager-8d1df189.js} +492 -365
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-f81d7218.entry.js → p-07bed934.entry.js} +1 -1
- package/dist/ketchup/{p-5b3d8636.entry.js → p-0c124f99.entry.js} +1 -1
- package/dist/ketchup/{p-58798e2d.entry.js → p-0f6cb6e4.entry.js} +1 -1
- package/dist/ketchup/p-177f8008.entry.js +9 -0
- package/dist/ketchup/{p-f0e4e190.js → p-269a9af8.js} +1 -1
- package/dist/ketchup/p-2ab02da0.entry.js +1 -0
- package/dist/ketchup/{p-1a594e06.entry.js → p-3f028a71.entry.js} +1 -1
- package/dist/ketchup/{p-6a8fcb02.entry.js → p-4a18db68.entry.js} +1 -1
- package/dist/ketchup/{p-01aaf3e4.entry.js → p-4eb6d4e8.entry.js} +1 -1
- package/dist/ketchup/{p-eea1ee1b.js → p-63031c77.js} +1 -1
- package/dist/ketchup/{p-4725191c.entry.js → p-753f30d8.entry.js} +1 -1
- package/dist/ketchup/{p-a5229d3d.entry.js → p-8042dcd5.entry.js} +1 -1
- package/dist/ketchup/{p-1dbfcab5.entry.js → p-81c1d557.entry.js} +1 -1
- package/dist/ketchup/p-937a322f.js +29 -0
- package/dist/ketchup/{p-4afe8662.js → p-9ba8f169.js} +1 -1
- package/dist/ketchup/{p-645d881d.entry.js → p-a2d3aec9.entry.js} +1 -1
- package/dist/ketchup/{p-2940b559.entry.js → p-b115e1ec.entry.js} +1 -1
- package/dist/ketchup/{p-11e7be94.js → p-b396d0f8.js} +1 -1
- package/dist/ketchup/{p-7e5d8532.entry.js → p-c12a9759.entry.js} +1 -1
- package/dist/ketchup/{p-190d0bc5.entry.js → p-cadeb53d.entry.js} +1 -1
- package/dist/ketchup/{p-9df95b9f.js → p-caeed3c3.js} +1 -1
- package/dist/ketchup/{p-b104afb6.entry.js → p-d300948a.entry.js} +1 -1
- package/dist/ketchup/{p-95b31ede.js → p-d76cd8d6.js} +1 -1
- package/dist/ketchup/{p-b857aab2.entry.js → p-d9a1e5a4.entry.js} +1 -1
- package/dist/ketchup/{p-788da2d9.entry.js → p-dc370227.entry.js} +1 -1
- package/dist/ketchup/{p-5fa089cd.entry.js → p-f1cae1e1.entry.js} +1 -1
- package/dist/ketchup/{p-269a1dfe.entry.js → p-f417e794.entry.js} +1 -1
- package/dist/ketchup/{p-c0c65349.entry.js → p-f753c13f.entry.js} +1 -1
- package/dist/ketchup/{p-ddd25869.entry.js → p-f7980061.entry.js} +1 -1
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +6 -0
- package/dist/types/components/kup-card/built-in/kup-card-openai.d.ts +3 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +20 -1
- package/dist/types/components.d.ts +0 -86
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +2 -14
- package/dist/types/managers/kup-manager/kup-manager.d.ts +3 -17
- package/dist/types/managers/kup-openai/kup-openai-declarations.d.ts +4 -0
- package/dist/types/managers/kup-openai/kup-openai.d.ts +29 -0
- package/package.json +1 -1
- package/dist/cjs/kup-openai-interface.cjs.entry.js +0 -146
- package/dist/collection/components/kup-openai-interface/kup-openai-interface-declarations.js +0 -11
- package/dist/collection/components/kup-openai-interface/kup-openai-interface.css +0 -64
- package/dist/collection/components/kup-openai-interface/kup-openai-interface.js +0 -340
- package/dist/components/kup-openai-interface.d.ts +0 -11
- package/dist/components/kup-openai-interface.js +0 -301
- package/dist/esm/kup-openai-interface.entry.js +0 -142
- package/dist/ketchup/p-23e4caa1.entry.js +0 -9
- package/dist/ketchup/p-2681d3a2.entry.js +0 -1
- package/dist/ketchup/p-39ba3355.js +0 -29
- package/dist/ketchup/p-6f108540.entry.js +0 -1
- package/dist/types/components/kup-openai-interface/kup-openai-interface-declarations.d.ts +0 -10
- package/dist/types/components/kup-openai-interface/kup-openai-interface.d.ts +0 -59
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,f as s,h as i,H as e,d as h}from"./p-cd9a4274.js";import{k as o,e as n,g as r,s as a,Q as l,l as c}from"./p-39ba3355.js";import{c as p}from"./p-635bb4b3.js";import{F as d}from"./p-eea1ee1b.js";import"./p-c23731ca.js";import"./p-f51dbf68.js";import"./p-4afe8662.js";import"./p-11e7be94.js";import"./p-9df95b9f.js";import"./p-f0e4e190.js";import"./p-c634eb82.js";var m;!function(t){t.customStyle="Custom style of the component.",t.data="The data of the cell.",t.density="The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.",t.dragEnabled="When set to true, the component is draggable."}(m||(m={}));const f=class{constructor(s){t(this,s),this.kupManager=o(),this.customStyle="",this.data=null,this.density=n.NONE,this.dragEnabled=!1}async addCssClasses(t){if(this.data.cssClass||(this.data.cssClass=""),t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)<0&&(this.data.cssClass+=` ${i}`)}this.refresh()}async getProps(t){return r(this,m,t)}async refresh(){s(this)}async removeCssClasses(t){if(this.data.cssClass){if(t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)>0&&(this.data.cssClass=this.data.cssClass.replace(new RegExp(i,"g"),""))}this.refresh()}}async setProps(t){a(this,m,t)}didRenderInteractables(){if(this.dragEnabled){const t=()=>({cell:this.data,column:this.generateColumn(),id:this.rootElement.id,multiple:!1,row:this.generateRow()});this.kupManager.interact.draggable(this.rootElement.shadowRoot.querySelector("#"+p),{cursorChecker:()=>null},{callback:t},l.BADGE)}}generateColumn(){return{name:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:"KUPCELL",title:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:this.kupManager.language.translate(c.EMPTY_OBJECT)}}generateRow(){const t=this.generateColumn(),s={cells:{}};return s.cells[t.name]=this.data,s}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.didRenderInteractables(),this.kupManager.debug.logRender(this,!0)}render(){const t={cell:this.data,column:this.generateColumn(),component:this,density:this.density,editable:this.data.isEditable,renderKup:!0,row:this.generateRow()};return i(e,null,i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:p},i(d,Object.assign({},t))))}disconnectedCallback(){this.kupManager.dates.unregister(this),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return h(this)}};f.style=":host{display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}";export{f as kup_cell}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props of the kup-openai-interface component.
|
|
3
|
-
* Used to export every prop in an object.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum KupOpenAiInterfaceProps {
|
|
6
|
-
customStyle = "Custom style of the component.",
|
|
7
|
-
data = "Sets the data that will be used for OpenAI comunication.",
|
|
8
|
-
dialogTitle = "Sets the dialog title",
|
|
9
|
-
label = "Sets the text area label"
|
|
10
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import type { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
3
|
-
import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
|
|
4
|
-
export declare class KupOpenAiInterface {
|
|
5
|
-
#private;
|
|
6
|
-
/**
|
|
7
|
-
* References the root HTML element of the component (<kup-openai-interface>).
|
|
8
|
-
*/
|
|
9
|
-
rootElement: HTMLElement;
|
|
10
|
-
/**
|
|
11
|
-
* Custom style of the component.
|
|
12
|
-
* @default ""
|
|
13
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
14
|
-
*/
|
|
15
|
-
customStyle: string;
|
|
16
|
-
/**
|
|
17
|
-
* Sets the data that will be used for OpenAI comunication.
|
|
18
|
-
* @default null
|
|
19
|
-
*/
|
|
20
|
-
data: KupDataDataset;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the dialog title
|
|
23
|
-
* @default "Open AI integration"
|
|
24
|
-
*/
|
|
25
|
-
dialogTitle: string;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the text area label
|
|
28
|
-
* @default "Insert natural language request..."
|
|
29
|
-
*/
|
|
30
|
-
label: string;
|
|
31
|
-
private dragHandler;
|
|
32
|
-
private kupManager;
|
|
33
|
-
private textArea;
|
|
34
|
-
private dataTable;
|
|
35
|
-
private button;
|
|
36
|
-
private messages;
|
|
37
|
-
kupReady: EventEmitter<KupEventPayload>;
|
|
38
|
-
/**
|
|
39
|
-
* Used to retrieve component's props values.
|
|
40
|
-
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
41
|
-
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
42
|
-
*/
|
|
43
|
-
getProps(descriptions?: boolean): Promise<GenericObject>;
|
|
44
|
-
/**
|
|
45
|
-
* This method is used to trigger a new render of the component.
|
|
46
|
-
*/
|
|
47
|
-
refresh(): Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Sets the props to the component.
|
|
50
|
-
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
51
|
-
*/
|
|
52
|
-
setProps(props: GenericObject): Promise<void>;
|
|
53
|
-
componentWillLoad(): void;
|
|
54
|
-
componentDidLoad(): void;
|
|
55
|
-
componentWillRender(): void;
|
|
56
|
-
componentDidRender(): void;
|
|
57
|
-
render(): any;
|
|
58
|
-
disconnectedCallback(): void;
|
|
59
|
-
}
|