@sme.up/ketchup 6.3.0 → 6.5.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.
- package/dist/cjs/{f-button-94cb5f35.js → f-button-4e2a0bb6.js} +3 -3
- package/dist/cjs/{f-cell-76830a0d.js → f-cell-1fc8a8b6.js} +5 -5
- package/dist/cjs/{f-chip-68d45fd3.js → f-chip-7867f17b.js} +2 -2
- package/dist/cjs/{f-image-0e71df7e.js → f-image-6b7a6168.js} +1 -1
- package/dist/cjs/{f-paginator-utils-46689c0a.js → f-paginator-utils-b7712403.js} +3 -3
- package/dist/cjs/{f-text-field-b4229cef.js → f-text-field-153e827c.js} +4 -2
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_25.cjs.entry.js +57 -14
- package/dist/cjs/kup-box.cjs.entry.js +30 -18
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
- 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 +28 -18
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-form.cjs.entry.js +16 -8
- 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 +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-7c514a30.js → kup-manager-cfe2f36e.js} +39 -16
- 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-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 +13 -0
- package/dist/collection/assets/form.js +41 -0
- package/dist/collection/components/kup-box/kup-box.js +23 -11
- package/dist/collection/components/kup-button/kup-button-declarations.js +1 -0
- package/dist/collection/components/kup-button/kup-button.js +27 -0
- package/dist/collection/components/kup-card/kup-card.css +20 -0
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +28 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +3 -1
- package/dist/collection/components/kup-echart/kup-echart.js +27 -17
- package/dist/collection/components/kup-form/kup-form-declarations.js +1 -0
- package/dist/collection/components/kup-form/kup-form.css +8 -0
- package/dist/collection/components/kup-form/kup-form.js +31 -2
- package/dist/collection/components/kup-image/assets/svg/azure.svg +1 -0
- package/dist/collection/components/kup-lazy/kup-lazy.css +8 -2
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
- package/dist/collection/f-components/f-button/f-button.js +2 -2
- package/dist/collection/f-components/f-cell/f-cell.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +3 -1
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +7 -6
- package/dist/collection/managers/kup-data/kup-data.js +7 -9
- package/dist/collection/managers/kup-dates/kup-dates.js +14 -0
- package/dist/collection/managers/kup-objects/kup-objects.js +11 -1
- package/dist/collection/utils/filters/filters-rows.js +1 -1
- package/dist/collection/utils/filters/filters-tree-items.js +3 -3
- package/dist/esm/{f-button-cd948e50.js → f-button-a24e43dd.js} +3 -3
- package/dist/esm/{f-cell-474dd282.js → f-cell-ebbb0c06.js} +5 -5
- package/dist/esm/{f-chip-d6f2eb94.js → f-chip-e2c38ba8.js} +2 -2
- package/dist/esm/{f-image-914a03ef.js → f-image-7e02e88f.js} +1 -1
- package/dist/esm/{f-paginator-utils-a4a52732.js → f-paginator-utils-e6d2638f.js} +3 -3
- package/dist/esm/{f-text-field-76341fe3.js → f-text-field-8438a278.js} +4 -2
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_25.entry.js +57 -14
- package/dist/esm/kup-box.entry.js +30 -18
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dash-list.entry.js +1 -1
- package/dist/esm/kup-dash_2.entry.js +1 -1
- 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 +28 -18
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-form.entry.js +16 -8
- 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 +2 -2
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-86f440c7.js → kup-manager-7c27e90e.js} +40 -17
- 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-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/assets/svg/azure.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-cd4fc3fb.js → p-1468bf09.js} +1 -1
- package/dist/ketchup/{p-d2f51e7b.entry.js → p-191096ff.entry.js} +1 -1
- package/dist/ketchup/{p-77aff9c1.entry.js → p-2003a841.entry.js} +1 -1
- package/dist/ketchup/{p-e60a1170.entry.js → p-23111c8d.entry.js} +1 -1
- package/dist/ketchup/{p-bc306a53.entry.js → p-25875aa1.entry.js} +1 -1
- package/dist/ketchup/p-26acb448.js +1 -0
- package/dist/ketchup/{p-cee76b14.entry.js → p-2f009c42.entry.js} +1 -1
- package/dist/ketchup/{p-2f4e6c50.entry.js → p-3138cabb.entry.js} +1 -1
- package/dist/ketchup/{p-8673bd4e.js → p-3decc8e4.js} +1 -1
- package/dist/ketchup/{p-8b55b786.entry.js → p-45415b72.entry.js} +1 -1
- package/dist/ketchup/{p-066f344a.entry.js → p-52590a90.entry.js} +1 -1
- package/dist/ketchup/{p-95f5834b.entry.js → p-5a703573.entry.js} +1 -1
- package/dist/ketchup/{p-c3783b77.entry.js → p-601a50db.entry.js} +1 -1
- package/dist/ketchup/{p-0c6e0647.entry.js → p-69dd11da.entry.js} +1 -1
- package/dist/ketchup/p-753c82d8.js +1 -0
- package/dist/ketchup/p-77600efd.entry.js +9 -0
- package/dist/ketchup/p-88722265.js +1 -0
- package/dist/ketchup/{p-21ea11cb.js → p-9027e5ac.js} +2 -2
- package/dist/ketchup/{p-389fd0bf.js → p-92595296.js} +1 -1
- package/dist/ketchup/{p-151f7c17.entry.js → p-97f28bbd.entry.js} +1 -1
- package/dist/ketchup/{p-b3b65a61.entry.js → p-a782ebd1.entry.js} +1 -1
- package/dist/ketchup/p-aa564df8.entry.js +1 -0
- package/dist/ketchup/p-b131b257.entry.js +1 -0
- package/dist/ketchup/{p-1e9c03b0.entry.js → p-b238f9ea.entry.js} +1 -1
- package/dist/ketchup/{p-359fd90d.entry.js → p-b4f85d34.entry.js} +1 -1
- package/dist/ketchup/{p-df8e6a4d.entry.js → p-b502b91b.entry.js} +1 -1
- package/dist/ketchup/{p-e9a1ba04.entry.js → p-ca98059c.entry.js} +1 -1
- package/dist/ketchup/{p-7cfdf53c.entry.js → p-cc663bad.entry.js} +2 -2
- package/dist/ketchup/{p-cfaea29b.entry.js → p-e0ed3fd7.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +1 -0
- package/dist/types/components/kup-button/kup-button-declarations.d.ts +1 -0
- package/dist/types/components/kup-button/kup-button.d.ts +5 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +1 -0
- package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +1 -0
- package/dist/types/components/kup-form/kup-form.d.ts +5 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +30 -0
- package/dist/types/f-components/f-button/f-button-declarations.d.ts +1 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +2 -2
- package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
- package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/utils/filters/filters-tree-items.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ketchup/p-00e1133d.entry.js +0 -9
- package/dist/ketchup/p-3586f59c.js +0 -1
- package/dist/ketchup/p-853a5178.entry.js +0 -1
- package/dist/ketchup/p-a2c595c4.js +0 -1
- package/dist/ketchup/p-ae91f27e.entry.js +0 -1
- package/dist/ketchup/p-af664379.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,f as i,h as s,H as e,g as o}from"./p-b0b3989b.js";import{k as a,g as c,s as n,j as r,c as h,aw as l,O as u,ax as p,V as d,b}from"./p-
|
|
1
|
+
import{r as t,f as i,h as s,H as e,g as o}from"./p-b0b3989b.js";import{k as a,g as c,s as n,j as r,c as h,aw as l,O as u,ax as p,V as d,b}from"./p-9027e5ac.js";import{F as m}from"./p-6c77a36c.js";import{F as k}from"./p-92595296.js";import{c as g}from"./p-97e8ea42.js";var f,x;!function(t){t.customStyle="Custom style of the component.",t.data="Sets the data that will be used to display different components."}(f||(f={})),function(t){t.BOX="Box",t.BUTTON_LIST="Button List",t.CHART="Chart",t.CHIP="Chip",t.ECHART="Echart",t.DATATABLE="Datatable",t.JSON="JSON",t.TREE="Tree"}(x||(x={}));const y=class{constructor(i){t(this,i),this.display=x.DATATABLE,this.customStyle="",this.data=null,this.dragHandler=null,this.kupManager=a(),this.textArea=null,this.wrapperRef=null}async getProps(t){return c(this,f,t)}async refresh(){i(this)}async setProps(t){n(this,f,t)}comboboxProps(){const t=[];for(const i in x)Object.prototype.hasOwnProperty.call(x,i)&&t.push({id:x[i],selected:!1,value:x[i]});return{data:{"kup-list":{data:t,id:"kup-debug-theme-changer-list"},"kup-text-field":{emitSubmitEventOnEnter:!1,inputType:"text",label:this.kupManager.language.translate(r.VIEW_AS)}},id:"comp-switcher",initialValue:this.display,isSelect:!0,"onKup-combobox-itemclick":t=>{this.display=t.detail.value}}}setContent(){const t=!!(this.data&&this.data.columns&&this.data.columns.length>0),i=[],e={};if(this.display===x.JSON)e.initialValue=this.data?JSON.stringify(this.data,null,2):"",e.textArea=!0,i.push(s("kup-text-field",Object.assign({class:"kup-full-width kup-full-height"},e,{ref:t=>this.textArea=t,"onkup-textfield-input":t=>{try{this.data=JSON.parse(t.detail.value)}catch(t){this.data={columns:[{name:"ERROR",title:"Error"}],rows:[{cells:{ERROR:{value:"Invalid JSON:"+t}}}]}}}})));else if(t)switch(this.display){case x.BOX:e.data=this.data,i.push(s("kup-box",Object.assign({},e)));break;case x.BUTTON_LIST:e.data=this.data,i.push(s("kup-button-list",Object.assign({},e)));break;case x.CHIP:e.data=this.data,i.push(s("kup-chip",Object.assign({},e)));break;case x.CHART:case x.ECHART:e.data=this.data,e.series=[],e.axis=null;for(let t=0;t<this.data.columns.length;t++){const i=this.data.columns[t];i.obj&&this.kupManager.objects.isNumber(i.obj)||null!==e.axis?e.series.push(this.display===x.CHART?{code:i.name,decode:i.title}:i.name):e.axis=i.name}0===e.series.length&&this.kupManager.debug.logMessage(this,"Not enough numerical columns to display a chart!",h.WARNING),e.axis||this.kupManager.debug.logMessage(this,"No axis for the chart!",h.WARNING),i.push(s(this.display===x.CHART?"kup-chart":"kup-echart",Object.assign({},e)));break;case x.DATATABLE:e.data=this.data,e.autoFillMissingCells=!0,i.push(s("kup-data-table",Object.assign({},e)));break;case x.TREE:e.data=this.data,i.push(s("kup-tree",Object.assign({class:"kup-full-width"},e)));break;default:return void this.kupManager.debug.logMessage(this,"Display mode not supported ("+this.display+")!",h.ERROR)}else i.push(s("div",{class:"empty"},s(k,{sizeY:"100px",resource:"move_to_inbox"}),s("div",{class:"empty-text"},this.kupManager.language.translate(r.DROP_YOUR_DATA))));return i}updateData(t){{const i=Object.assign({},this.data),s=t.detail.sourceElement&&t.detail.sourceElement.column?t.detail.sourceElement.column:null,e=t.detail.sourceElement&&t.detail.sourceElement.row?t.detail.sourceElement.row:null;if(s&&s.name?i.columns?this.data.columns.find((t=>t.name===s.name))||i.columns.push(s):i.columns=[s]:this.kupManager.debug.logMessage(this,"Invalid column received.",h.WARNING),e&&(i.rows?i.rows.push(e):i.rows=[e]),this.data=i,this.data&&this.textArea)try{this.textArea.setValue(JSON.stringify(this.data,null,2))}catch(t){this.textArea.setValue("Invalid JSON:"+t)}}}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.rootElement.addEventListener(l,(t=>this.updateData(t))),this.dragHandler=this.rootElement.shadowRoot.querySelector("#drag-handle"),this.kupManager.interact.dialogify(this.rootElement,this.dragHandler),this.kupManager.interact.dropzone(this.wrapperRef,{accept:`[${u}],[${p}]`},{dispatcher:this.rootElement,type:d.MAGICBOX}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return s(e,null,s("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),s("div",{id:g},s("div",{class:"magic-box-wrapper"},s("div",{class:"actions",id:"drag-handle"},s("kup-combobox",Object.assign({},this.comboboxProps())),s("kup-button",{styling:m.FLAT,icon:"delete",label:"Reset","onkup-button-click":()=>{this.data=null}}),s("kup-button",{id:"close-dialog",customStyle:`:host{${b.PRIMARY}: var(${b.TITLE});}`,icon:"clear","onkup-button-click":()=>{this.kupManager.hideMagicBox()}})),s("div",{class:"content",ref:t=>this.wrapperRef=t},this.setContent()))))}disconnectedCallback(){this.kupManager.interact.unregister([this.rootElement,this.wrapperRef]),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}};y.style=":host{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;width:700px}#kup-component,.magic-box-wrapper{height:100%;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-color);box-sizing:border-box;display:flex;flex-direction:column}.actions{align-items:center;background-color:var(--kup-title-background-color);display:inline-flex;height:52px;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;overflow:auto;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";export{y as kup_magic_box}
|
|
@@ -4,6 +4,7 @@ import { KupEventPayload } from '../../types/GenericTypes';
|
|
|
4
4
|
* Used to export every prop in an object.
|
|
5
5
|
*/
|
|
6
6
|
export declare enum KupButtonProps {
|
|
7
|
+
buttonType = "Sets the type of the button.",
|
|
7
8
|
checked = "When set to true, the icon button state will be on.",
|
|
8
9
|
customStyle = "Custom style of the component.",
|
|
9
10
|
disabled = "Defaults at false. When set to true, the component is disabled.",
|
|
@@ -133,6 +133,7 @@ export interface KupCardBuiltInNumeric extends HTMLElement {
|
|
|
133
133
|
export interface KupCardData {
|
|
134
134
|
autocomplete?: GenericObject[];
|
|
135
135
|
button?: GenericObject[];
|
|
136
|
+
cell?: GenericObject[];
|
|
136
137
|
chart?: GenericObject[];
|
|
137
138
|
checkbox?: GenericObject[];
|
|
138
139
|
chip?: GenericObject[];
|
|
@@ -90,3 +90,9 @@ export declare function create14(component: KupCard): VNode;
|
|
|
90
90
|
* @returns {VNode} 15th standard layout virtual node.
|
|
91
91
|
*/
|
|
92
92
|
export declare function create15(component: KupCard): VNode;
|
|
93
|
+
/**
|
|
94
|
+
* 16th standard card layout, it can be used as a key-value grid list.
|
|
95
|
+
* @param {KupCard} component - Card component.
|
|
96
|
+
* @returns {VNode} 16th standard layout virtual node.
|
|
97
|
+
*/
|
|
98
|
+
export declare function create16(component: KupCard): VNode;
|
|
@@ -7,6 +7,7 @@ import { KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-decl
|
|
|
7
7
|
export declare enum KupFormProps {
|
|
8
8
|
customStyle = "Custom style of the component.",
|
|
9
9
|
data = "Actual data of the form.",
|
|
10
|
+
hiddenSubmitButton = "Creates a hidden submit button in order to submit the form with enter.",
|
|
10
11
|
layout = "How the form will arrange its content."
|
|
11
12
|
}
|
|
12
13
|
export interface KupFormData {
|
|
@@ -16,6 +16,11 @@ export declare class KupForm {
|
|
|
16
16
|
* @default null
|
|
17
17
|
*/
|
|
18
18
|
data: KupFormData;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a hidden submit button in order to submit the form with enter.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
hiddenSubmitButton: boolean;
|
|
19
24
|
/**
|
|
20
25
|
* How the form will arrange its content.
|
|
21
26
|
* @default null
|
|
@@ -14,6 +14,7 @@ export declare enum KupTextFieldProps {
|
|
|
14
14
|
helperWhenFocused = "When set, the helper will be shown only when the field is focused.",
|
|
15
15
|
icon = "When set, the text-field will show this icon.",
|
|
16
16
|
initialValue = "Sets the initial value of the component",
|
|
17
|
+
inputMode = "The HTML inputmode of the input element. It has no effect on text areas.",
|
|
17
18
|
inputType = "The HTML type of the input element. It has no effect on text areas.",
|
|
18
19
|
isClearable = "Enables a clear trailing icon.",
|
|
19
20
|
label = "When set, its content will be shown as a label.",
|
|
@@ -62,6 +62,11 @@ export declare class KupTextField {
|
|
|
62
62
|
* @default ""
|
|
63
63
|
*/
|
|
64
64
|
initialValue: string;
|
|
65
|
+
/**
|
|
66
|
+
* The HTML inputmode of the input element.
|
|
67
|
+
* @default null
|
|
68
|
+
*/
|
|
69
|
+
inputMode: string;
|
|
65
70
|
/**
|
|
66
71
|
* The HTML type of the input element. It has no effect on text areas.
|
|
67
72
|
* @default "text"
|
|
@@ -363,6 +363,11 @@ export namespace Components {
|
|
|
363
363
|
"swipeDisabled": boolean;
|
|
364
364
|
}
|
|
365
365
|
interface KupButton {
|
|
366
|
+
/**
|
|
367
|
+
* Sets the type of the button.
|
|
368
|
+
* @default null
|
|
369
|
+
*/
|
|
370
|
+
"buttonType": string;
|
|
366
371
|
/**
|
|
367
372
|
* When set to true, the icon button state will be on.
|
|
368
373
|
* @default false
|
|
@@ -1653,6 +1658,11 @@ export namespace Components {
|
|
|
1653
1658
|
* @returns List of props as object, each key will be a prop.
|
|
1654
1659
|
*/
|
|
1655
1660
|
"getProps": (descriptions?: boolean) => Promise<GenericObject>;
|
|
1661
|
+
/**
|
|
1662
|
+
* Creates a hidden submit button in order to submit the form with enter.
|
|
1663
|
+
* @default false
|
|
1664
|
+
*/
|
|
1665
|
+
"hiddenSubmitButton": boolean;
|
|
1656
1666
|
/**
|
|
1657
1667
|
* How the form will arrange its content.
|
|
1658
1668
|
* @default null
|
|
@@ -2695,6 +2705,11 @@ export namespace Components {
|
|
|
2695
2705
|
* @default ""
|
|
2696
2706
|
*/
|
|
2697
2707
|
"initialValue": string;
|
|
2708
|
+
/**
|
|
2709
|
+
* The HTML inputmode of the input element.
|
|
2710
|
+
* @default null
|
|
2711
|
+
*/
|
|
2712
|
+
"inputMode": string;
|
|
2698
2713
|
/**
|
|
2699
2714
|
* The HTML type of the input element. It has no effect on text areas.
|
|
2700
2715
|
* @default "text"
|
|
@@ -3775,6 +3790,11 @@ declare namespace LocalJSX {
|
|
|
3775
3790
|
"swipeDisabled"?: boolean;
|
|
3776
3791
|
}
|
|
3777
3792
|
interface KupButton {
|
|
3793
|
+
/**
|
|
3794
|
+
* Sets the type of the button.
|
|
3795
|
+
* @default null
|
|
3796
|
+
*/
|
|
3797
|
+
"buttonType"?: string;
|
|
3778
3798
|
/**
|
|
3779
3799
|
* When set to true, the icon button state will be on.
|
|
3780
3800
|
* @default false
|
|
@@ -4835,6 +4855,11 @@ declare namespace LocalJSX {
|
|
|
4835
4855
|
* @default null
|
|
4836
4856
|
*/
|
|
4837
4857
|
"data"?: KupFormData;
|
|
4858
|
+
/**
|
|
4859
|
+
* Creates a hidden submit button in order to submit the form with enter.
|
|
4860
|
+
* @default false
|
|
4861
|
+
*/
|
|
4862
|
+
"hiddenSubmitButton"?: boolean;
|
|
4838
4863
|
/**
|
|
4839
4864
|
* How the form will arrange its content.
|
|
4840
4865
|
* @default null
|
|
@@ -5618,6 +5643,11 @@ declare namespace LocalJSX {
|
|
|
5618
5643
|
* @default ""
|
|
5619
5644
|
*/
|
|
5620
5645
|
"initialValue"?: string;
|
|
5646
|
+
/**
|
|
5647
|
+
* The HTML inputmode of the input element.
|
|
5648
|
+
* @default null
|
|
5649
|
+
*/
|
|
5650
|
+
"inputMode"?: string;
|
|
5621
5651
|
/**
|
|
5622
5652
|
* The HTML type of the input element. It has no effect on text areas.
|
|
5623
5653
|
* @default "text"
|
|
@@ -14,12 +14,12 @@ export declare function findCell(dataset: KupDataDataset, filters: KupDataFindCe
|
|
|
14
14
|
* @param {KupDataColumn} column - Column included in the search. When missing, returns empty array.
|
|
15
15
|
* @returns {ValueDisplayedValue[]} Values of the cells, sorted.
|
|
16
16
|
*/
|
|
17
|
-
export declare function getCellValue(dataset: KupDataDataset, column: KupDataColumn, sorted?: boolean): ValueDisplayedValue[];
|
|
17
|
+
export declare function getCellValue(dataset: KupDataDataset, column: KupDataColumn, sorted?: boolean, univocal?: boolean): ValueDisplayedValue[];
|
|
18
18
|
export declare function addColumnValueFromRow(values: {
|
|
19
19
|
value: string;
|
|
20
20
|
displayedValue?: string;
|
|
21
21
|
obj?: KupObj;
|
|
22
|
-
}[], column: KupDataColumn, cell: KupDataCell): void;
|
|
22
|
+
}[], column: KupDataColumn, cell: KupDataCell, univocal?: boolean): void;
|
|
23
23
|
/**
|
|
24
24
|
* Overrides the given cell attributes for the specified columns.
|
|
25
25
|
* If no columns are provided, the value will be applied to every column of the dataset.
|
|
@@ -10,6 +10,7 @@ export declare class KupData {
|
|
|
10
10
|
cell: {
|
|
11
11
|
find(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataCell[];
|
|
12
12
|
getValue(dataset: KupDataDataset, column: KupDataColumn, sorted?: boolean): ValueDisplayedValue[];
|
|
13
|
+
getUnivocalValue(dataset: KupDataDataset, column: KupDataColumn, sorted?: boolean): ValueDisplayedValue[];
|
|
13
14
|
replace(dataset: KupDataDataset, cell: KupDataCell, columns?: string[]): KupDataCell[];
|
|
14
15
|
getType(cell: KupDataCell, shape?: FCellShapes): FCellTypes;
|
|
15
16
|
};
|
|
@@ -96,6 +96,12 @@ export declare class KupObjects {
|
|
|
96
96
|
* @returns {boolean} True when the object is a number.
|
|
97
97
|
*/
|
|
98
98
|
isNumber(obj: KupObj): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Checks whether the object represents a positive number or not.
|
|
101
|
+
* @param {KupObj} obj - Object to check.
|
|
102
|
+
* @returns {boolean} True when the object is a positive number.
|
|
103
|
+
*/
|
|
104
|
+
isPositiveNumber(obj: KupObj): boolean;
|
|
99
105
|
/**
|
|
100
106
|
* Checks whether the object represents a password or not.
|
|
101
107
|
* @param {KupObj} obj - Object to check.
|
|
@@ -13,7 +13,7 @@ export declare class FiltersTreeItems extends FiltersRows {
|
|
|
13
13
|
isNodeCompliant(node: KupTreeNode, filters?: GenericFilter, globalFilter?: string, isUsingGlobalFilter?: boolean, columns?: KupDataColumn[], columnFilters?: FiltersColumnMenu): boolean;
|
|
14
14
|
private setNodeVisibility;
|
|
15
15
|
private setAllVisible;
|
|
16
|
-
extractColumnValues(rows: Array<KupTreeNode>, column: KupDataColumn, values: ValueDisplayedValue[]): ValueDisplayedValue[];
|
|
16
|
+
extractColumnValues(rows: Array<KupTreeNode>, column: KupDataColumn, values: ValueDisplayedValue[], univocal?: boolean): ValueDisplayedValue[];
|
|
17
17
|
expandCollapseNode(treeNode: KupTreeNode, expandNode?: boolean): void;
|
|
18
18
|
expandCollapseAllNodes(treeNode: KupTreeNode, expandNode?: boolean): void;
|
|
19
19
|
}
|