@sme.up/ketchup 9.5.0 → 9.5.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.
- package/dist/cjs/{f-button-033ed6d4.js → f-button-b76723c7.js} +1 -1
- package/dist/cjs/{f-cell-ef276797.js → f-cell-0238450e.js} +5 -5
- package/dist/cjs/{f-chip-d4e26a2b.js → f-chip-aad323a5.js} +2 -2
- package/dist/cjs/{f-image-33be7baf.js → f-image-a049cb94.js} +1 -1
- package/dist/cjs/{f-paginator-utils-5a18cc19.js → f-paginator-utils-3c1c8cf4.js} +2 -2
- package/dist/cjs/{f-text-field-f03e97f8.js → f-text-field-d045c000.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-ef4342bb.js} +493 -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 +248 -0
- package/dist/components/kup-autocomplete2.js +776 -546
- package/dist/components/kup-manager.js +493 -365
- package/dist/esm/{f-button-ccde4447.js → f-button-e5a13d96.js} +1 -1
- package/dist/esm/{f-cell-2ad41d52.js → f-cell-44737d32.js} +5 -5
- package/dist/esm/{f-chip-3df1c255.js → f-chip-4ba1fb6c.js} +2 -2
- package/dist/esm/{f-image-5434b351.js → f-image-17dd7557.js} +1 -1
- package/dist/esm/{f-paginator-utils-b90cdd2b.js → f-paginator-utils-c0925f43.js} +2 -2
- package/dist/esm/{f-text-field-f0b81f8b.js → f-text-field-97929753.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-21e2ce65.js} +493 -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-00cc3d95.entry.js +1 -0
- package/dist/ketchup/{p-b104afb6.entry.js → p-04861e0f.entry.js} +1 -1
- package/dist/ketchup/{p-01aaf3e4.entry.js → p-0bdd3eb4.entry.js} +1 -1
- package/dist/ketchup/{p-1a594e06.entry.js → p-15c3d2c4.entry.js} +1 -1
- package/dist/ketchup/{p-5b3d8636.entry.js → p-265c1bac.entry.js} +1 -1
- package/dist/ketchup/{p-c0c65349.entry.js → p-3172b2d6.entry.js} +1 -1
- package/dist/ketchup/{p-788da2d9.entry.js → p-4528e07a.entry.js} +1 -1
- package/dist/ketchup/{p-58798e2d.entry.js → p-4b141cad.entry.js} +1 -1
- package/dist/ketchup/{p-f81d7218.entry.js → p-4dbcd9cf.entry.js} +1 -1
- package/dist/ketchup/{p-ddd25869.entry.js → p-62fe8b61.entry.js} +1 -1
- package/dist/ketchup/{p-6a8fcb02.entry.js → p-65984a13.entry.js} +1 -1
- package/dist/ketchup/{p-190d0bc5.entry.js → p-6e2a9054.entry.js} +1 -1
- package/dist/ketchup/p-7e1d9192.js +29 -0
- package/dist/ketchup/{p-9df95b9f.js → p-859aa987.js} +1 -1
- package/dist/ketchup/{p-a5229d3d.entry.js → p-88efeed0.entry.js} +1 -1
- package/dist/ketchup/p-89f09a1c.entry.js +9 -0
- package/dist/ketchup/{p-6f108540.entry.js → p-91180bd4.entry.js} +1 -1
- package/dist/ketchup/{p-269a1dfe.entry.js → p-9868af74.entry.js} +1 -1
- package/dist/ketchup/{p-eea1ee1b.js → p-9bdc7491.js} +1 -1
- package/dist/ketchup/{p-95b31ede.js → p-9bf00c9c.js} +1 -1
- package/dist/ketchup/{p-11e7be94.js → p-9e68a4c0.js} +1 -1
- package/dist/ketchup/{p-2940b559.entry.js → p-aecf6437.entry.js} +1 -1
- package/dist/ketchup/{p-7e5d8532.entry.js → p-bc0a2875.entry.js} +1 -1
- package/dist/ketchup/{p-1dbfcab5.entry.js → p-da3b5277.entry.js} +1 -1
- package/dist/ketchup/{p-4afe8662.js → p-de755f71.js} +1 -1
- package/dist/ketchup/{p-f0e4e190.js → p-e50650d0.js} +1 -1
- package/dist/ketchup/{p-b857aab2.entry.js → p-ec469a38.entry.js} +1 -1
- package/dist/ketchup/{p-4725191c.entry.js → p-ee382e52.entry.js} +1 -1
- package/dist/ketchup/{p-5fa089cd.entry.js → p-f8069901.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-645d881d.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 i,f as n,h as l,H as a,d as t}from"./p-cd9a4274.js";import{k as e,g as r,s,d}from"./p-39ba3355.js";import{c as o}from"./p-635bb4b3.js";import"./p-c23731ca.js";var p;!function(i){i.columns="The number of columns displayed by the grid, the default behavior is 12.",i.customStyle="Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization",i.singleLine="When set to true, forces the content on a single line."}(p||(p={}));const u=class{constructor(n){i(this,n),this.kupManager=e(),this.columns=12,this.customStyle="",this.singleLine=!1}async getProps(i){return r(this,p,i)}async refresh(){n(this)}async setProps(i){s(this,p,i)}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){const i=this.rootElement.children;if(!i||0===i.length)return void this.kupManager.debug.logMessage(this,"Missing slots, not rendering!",d.WARNING);const n=[];for(let a=0;a<i.length;a++){let t=null;if(this.singleLine)t=l("slot",{name:`${a}`});else{const n=i[a].span||i[a].getAttribute("span")||1;t=l("div",{class:`layout-grid__cell layout-grid__cell--span-${n}`},l("slot",{name:`${a}`}))}n.push(t)}const t={};return this.columns&&12!==this.columns&&(t["--kup_grid_columns"]=this.columns),l(a,{style:t},l("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),l("div",{id:o},l("div",{class:this.singleLine?"flex-layout":"layout-grid"},l("div",{class:this.singleLine?"flex-layout__inner":"layout-grid__inner"},n))))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return t(this)}};u.style=":host{--kup_grid_font_size:var(--kup-grid-font-size, var(--kup-font-size));--kup_grid_gap:var(--kup-grid-gap, 24px);--kup_grid_gap_mobile:var(--kup-grid-gap-mobile, 16px);--kup_grid_padding:var(--kup-grid-padding, 24px);display:block;font-size:var(--kup_grid_font_size);height:100%;width:100%}#kup-component{height:100%;width:100%}.layout-grid{box-sizing:border-box;margin:0px auto;padding:var(--kup_grid_padding)}.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap);grid-template-columns:repeat(var(--kup_grid_columns, 12), minmax(0px, 1fr))}.layout-grid .layout-grid__inner .layout-grid__cell{box-sizing:border-box;display:flex;justify-content:center;margin:0px;width:auto}.layout-grid__cell--span-1{grid-column-end:span 1}.layout-grid__cell--span-2{grid-column-end:span 2}.layout-grid__cell--span-3{grid-column-end:span 3}.layout-grid__cell--span-4{grid-column-end:span 4}.layout-grid__cell--span-5{grid-column-end:span 5}.layout-grid__cell--span-6{grid-column-end:span 6}.layout-grid__cell--span-7{grid-column-end:span 7}.layout-grid__cell--span-8{grid-column-end:span 8}.layout-grid__cell--span-9{grid-column-end:span 9}.layout-grid__cell--span-10{grid-column-end:span 10}.layout-grid__cell--span-11{grid-column-end:span 11}.layout-grid__cell--span-12{grid-column-end:span 12}.layout-grid__cell--span-13{grid-column-end:span 13}.layout-grid__cell--span-14{grid-column-end:span 14}.layout-grid__cell--span-15{grid-column-end:span 15}.layout-grid__cell--span-16{grid-column-end:span 16}.layout-grid__cell--span-17{grid-column-end:span 17}.layout-grid__cell--span-18{grid-column-end:span 18}.layout-grid__cell--span-19{grid-column-end:span 19}.layout-grid__cell--span-20{grid-column-end:span 20}.layout-grid__cell--span-21{grid-column-end:span 21}.layout-grid__cell--span-22{grid-column-end:span 22}.layout-grid__cell--span-23{grid-column-end:span 23}.layout-grid__cell--span-24{grid-column-end:span 24}.flex-layout,.flex-layout__inner{height:100%;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap}.flex-layout__inner{width:auto}.flex-layout__inner *{display:block;margin:0 1.5em}.flex-layout__inner .flex-layout__cell{display:flex}.flex-layout__inner .flex-layout__cell *{justify-content:center;margin:auto}@media (min-width: 600px) and (max-width: 839px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(var(--kup_grid_columns, 8), minmax(0px, 1fr))}}@media (max-width: 599px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(var(--kup_grid_columns, 4), minmax(0px, 1fr))}}:host(.kup-full-width) .flex-layout__inner{width:100%}:host(.kup-full-width) .flex-layout__inner *{margin:auto}:host(.kup-full-width.scalable-cards) .flex-layout__inner{width:100%}:host(.kup-full-width.scalable-cards) .flex-layout__inner *{margin:0;height:100%;width:100%}";export{u as kup_grid}
|
|
@@ -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
|
-
}
|