@sme.up/ketchup 10.3.11 → 10.3.13
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-cell-17acbc57.js → f-cell-f47a6278.js} +10 -10
- package/dist/cjs/{f-chip-69c882a5.js → f-chip-36ba0f62.js} +9 -9
- package/dist/cjs/{f-object-field-c4c5df13.js → f-object-field-4d4002b0.js} +2 -2
- package/dist/cjs/{f-paginator-utils-66aa1936.js → f-paginator-utils-adc8b67a.js} +5 -5
- package/dist/cjs/{f-text-field-9832e4ef.js → f-text-field-8c918e34.js} +4 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +80 -85
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-c7046c05.js → kup-data-table-helper-3041bf1b.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +60 -7
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +10 -10
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-863afae7.js → kup-manager-b6d2bca8.js} +9 -9
- 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-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.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 +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/card.js +2 -2
- package/dist/collection/assets/data-table.js +3 -3
- package/dist/collection/assets/form.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +11 -11
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.js +6 -6
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +2 -1
- package/dist/collection/components/kup-combobox/kup-combobox.js +11 -11
- package/dist/collection/components/kup-data-table/kup-data-table.css +15 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +44 -14
- package/dist/collection/components/kup-dialog/kup-dialog.css +2 -0
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +5 -5
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +60 -6
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +5 -5
- package/dist/collection/components/kup-list/kup-list-helper.js +5 -5
- package/dist/collection/components/kup-list/kup-list.js +5 -5
- package/dist/collection/components/kup-tree/kup-tree.css +3 -0
- package/dist/collection/components/kup-tree/kup-tree.js +20 -35
- package/dist/collection/f-components/f-cell/f-cell.js +4 -4
- package/dist/collection/f-components/f-chip/f-chip.js +3 -3
- package/dist/collection/f-components/f-paginator/f-paginator.js +3 -3
- package/dist/collection/f-components/f-text-field/f-text-field.js +3 -1
- package/dist/collection/utils/cell-utils.js +5 -5
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +8 -8
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-decce077.js → p-14a68415.js} +61 -8
- package/dist/components/{p-f3faa212.js → p-215fa5b3.js} +104 -106
- package/dist/components/{p-87285464.js → p-39950988.js} +2 -2
- package/dist/components/{p-944332b6.js → p-61bd9309.js} +2 -2
- package/dist/components/{p-a4f3d24a.js → p-c977ec31.js} +2 -2
- package/dist/components/{p-e39b777a.js → p-dcb752e1.js} +9 -9
- package/dist/esm/{f-cell-1b71c02b.js → f-cell-7bbb7ea5.js} +10 -10
- package/dist/esm/{f-chip-d553e330.js → f-chip-af9b0f73.js} +9 -9
- package/dist/esm/{f-object-field-e6839071.js → f-object-field-a658454f.js} +2 -2
- package/dist/esm/{f-paginator-utils-74a15114.js → f-paginator-utils-a617b644.js} +5 -5
- package/dist/esm/{f-text-field-05735cbc.js → f-text-field-97b4dae7.js} +4 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_30.entry.js +80 -85
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-1d14120b.js → kup-data-table-helper-7139e397.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +60 -7
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +10 -10
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-d7b61781.js → kup-manager-1747a265.js} +9 -9
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.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 +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- 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-ed961274.entry.js → p-02d7c522.entry.js} +1 -1
- package/dist/ketchup/{p-273c4680.entry.js → p-123b4819.entry.js} +1 -1
- package/dist/ketchup/{p-3a9c45ff.entry.js → p-1819ac2b.entry.js} +1 -1
- package/dist/ketchup/p-187ff0f5.entry.js +1 -0
- package/dist/ketchup/{p-d2b66322.entry.js → p-1d88c20c.entry.js} +1 -1
- package/dist/ketchup/{p-3ed784eb.entry.js → p-21fdcbd2.entry.js} +1 -1
- package/dist/ketchup/p-2e1bf103.js +1 -0
- package/dist/ketchup/{p-53570ac4.entry.js → p-333a5660.entry.js} +1 -1
- package/dist/ketchup/{p-79db04f9.entry.js → p-4406115e.entry.js} +1 -1
- package/dist/ketchup/p-53527430.js +1 -0
- package/dist/ketchup/{p-cdd4c014.entry.js → p-54d48d26.entry.js} +1 -1
- package/dist/ketchup/{p-c875e6bb.entry.js → p-5831cb97.entry.js} +1 -1
- package/dist/ketchup/p-590759ae.entry.js +1 -0
- package/dist/ketchup/{p-ebd8a151.entry.js → p-5fd69b6a.entry.js} +1 -1
- package/dist/ketchup/{p-c91a8416.entry.js → p-709fc11e.entry.js} +1 -1
- package/dist/ketchup/{p-5445b692.entry.js → p-777e32f3.entry.js} +1 -1
- package/dist/ketchup/{p-551b95a9.entry.js → p-77af877e.entry.js} +1 -1
- package/dist/ketchup/p-88941874.js +1 -0
- package/dist/ketchup/{p-d09f2ae6.entry.js → p-8a5f4e49.entry.js} +1 -1
- package/dist/ketchup/{p-1f9a5de9.entry.js → p-8bd27a0c.entry.js} +1 -1
- package/dist/ketchup/{p-47023eae.entry.js → p-926656ee.entry.js} +1 -1
- package/dist/ketchup/{p-17f0cc01.js → p-94d1bd32.js} +1 -1
- package/dist/ketchup/p-9cc19888.entry.js +8 -0
- package/dist/ketchup/{p-33699a63.entry.js → p-a6b54555.entry.js} +1 -1
- package/dist/ketchup/{p-da4f1ade.entry.js → p-a8280fd8.entry.js} +1 -1
- package/dist/ketchup/{p-57b060e2.entry.js → p-a867c314.entry.js} +1 -1
- package/dist/ketchup/{p-ab080458.js → p-b4aaaeee.js} +1 -1
- package/dist/ketchup/{p-db78ec98.entry.js → p-ba133dd0.entry.js} +1 -1
- package/dist/ketchup/{p-798483ff.entry.js → p-bdfe32a7.entry.js} +1 -1
- package/dist/ketchup/{p-9ef3e0eb.js → p-d0d694e0.js} +1 -1
- package/dist/ketchup/{p-affac568.entry.js → p-d76ba13e.entry.js} +1 -1
- package/dist/ketchup/{p-0e070e9c.entry.js → p-dc6eae1f.entry.js} +1 -1
- package/dist/ketchup/p-e7369abf.js +1 -0
- package/dist/ketchup/{p-0b674619.entry.js → p-eb8359d5.entry.js} +1 -1
- package/dist/ketchup/{p-ed788afb.entry.js → p-f03d960d.entry.js} +2 -2
- package/dist/ketchup/{p-207f8882.entry.js → p-f1ac9596.entry.js} +1 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +1 -1
- package/dist/types/components/kup-chip/kup-chip.d.ts +1 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +1 -1
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +1 -0
- package/dist/types/components/kup-list/kup-list-helper.d.ts +2 -2
- package/dist/types/components/kup-list/kup-list.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
- package/dist/types/components.d.ts +68 -66
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -1
- package/dist/types/utils/cell-utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ketchup/p-0f97523f.entry.js +0 -1
- package/dist/ketchup/p-13118466.js +0 -1
- package/dist/ketchup/p-1e381f3d.js +0 -1
- package/dist/ketchup/p-5540dd04.entry.js +0 -1
- package/dist/ketchup/p-5c4b3914.js +0 -1
- package/dist/ketchup/p-642fe1a3.js +0 -1
- package/dist/ketchup/p-fde49142.entry.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as n,f as i,h as e,H as a,d as p}from"./p-710d0a7d.js";import{k as o,h as s,g as h,s as l}from"./p-
|
|
1
|
+
import{r as t,c as n,f as i,h as e,H as a,d as p}from"./p-710d0a7d.js";import{k as o,h as s,g as h,s as l}from"./p-94d1bd32.js";import{a as f,F as r}from"./p-cec0955d.js";import{c}from"./p-635bb4b3.js";import"./p-36edcc02.js";var u;!function(t){t.data="prop of the sub compoennt",t.Style="it is the style of the text",t.Border="when true it will appear a border",t.BorderWidth="it is the width of the border",t.Align="text alignment",t.FontBold="when true it will display the bold font",t.FontItalic="when true it will display the italic ( cursive )",t.FontName="it is the name of the font",t.FontSize="it is the size of the font of the text",t.FontULine="when true it will show the underline",t.FontColor="it is the color of the font of the text",t.BackColor="it is the background color of the text",t.Type="it is the type of the font. It is an enum that can take from different variant such as body, heading1, caption and so on"}(u||(u={}));const g=class{constructor(i){t(this,i),this.kupIconClick=n(this,"kup-typographylist-icon-click",6),this.KupClick=n(this,"kup-typographylist-click",6),this.kupManager=o(),this.customStyle="",this.data=[],this.type=f.BODY_COMPACT,this.toolbar=!1}onKupClick(t,n){this.KupClick.emit({comp:this,id:this.rootElement.id,index:t,subIndex:n,obj:this.getObjForEvent(t,n)})}onKupIconClick(t,n){this.kupIconClick.emit({comp:this,id:this.rootElement.id,index:t,node:n})}checkDataset(t){t||(t=[]),t.columns&&(this.kupManager.debug.logMessage(this,"Detected KupDataDataset: converting rows to nodes.",s.WARNING),this.data=this.kupManager.data.row.toNode(this.data))}async getProps(t){return h(this,u,t)}async refresh(){i(this)}async setProps(t){l(this,u,t)}renderTypography(t,n){if(null===t)return this.kupManager.debug.logMessage(this,"Empty data text.",s.WARNING),null;const i=this.prepareDataFromTreeNode(t,n);return i.value?e(r,Object.assign({},{value:i.value,type:i.type,toolbar:i.toolbar})):(this.kupManager.debug.logMessage(this,"Empty text.",s.WARNING),null)}prepareDataFromTreeNode(t,n){const i=null!=t.data?Object.assign({},t.data):{};return null!=this.customStyle&&""!=this.customStyle.trim()&&(i.customStyle=this.customStyle),null==i.value&&(i.value=t.value),i.wrapperClass||(i.wrapperClass=""),null!=this.type&&(i.type=this.type),null!=this.toolbar&&(i.toolbar=this.toolbar),i.id=n.toString(),i}renderTypographys(){if(null==this.data||this.data.length<1)return null;const t=[];for(let n=0;n<this.data.length;n++){let i=null;i=this.renderTypography(this.data[n],n),i&&t.push(i)}return t}getObjForEvent(t,n){let i=Number(t),e=-1;null!=n&&""!=n.trim()&&(e=Number(n));let a=this.data[i];return-1!=e?a.children[e].obj:a.obj}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.checkDataset(this.data),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 t=this.renderTypographys();return e(a,{key:"dfc7f97e2ec1b02bb6fada06eaf886ed0077f0b5"},e("style",{key:"701a165da1e689cd5827aa4d8dfdcc7715e711f3"},this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{key:"5a39d46931703da7d0a5341b4cb0d00660715050",id:c},e("div",{key:"a9c64db46bb31d4aa67140eee1f37ef02c7029c2",class:"typographies-wrapper"},t)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return p(this)}static get watchers(){return{data:["checkDataset"]}}};g.style=".kup-body-compact-01 {\n font-family: var(--kup-font-family);\n font-size: var(--kup-body-compact-01-font-size, 14px);\n line-height: 18px;\n font-weight: 400;\n letter-spacing: 0.16px;\n}\n\n.kup-body-01 {\n font-family: var(--kup-font-family);\n font-size: var(--kup-body-01-font-size, 14px);\n line-height: 20px;\n font-weight: 400;\n letter-spacing: 0.16px;\n}\n\n.kup-code-01 {\n font-family: var(--kup-font-family-monospace);\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n letter-spacing: 0.32px;\n}\n\n.kup-label-01 {\n font-family: var(--kup-font-family);\n font-size: var(--kup-label-01-font-size, 12px);\n line-height: 16px;\n font-weight: 400;\n letter-spacing: 0.32px;\n}\n\n.kup-caption-02 {\n font-family: var(--kup-font-family);\n font-size: 12px;\n line-height: 15px;\n font-weight: 500;\n letter-spacing: 1px;\n}\n\n.kup-caption-01 {\n font-family: var(--kup-font-family);\n font-size: 10px;\n line-height: 13px;\n font-weight: 400;\n letter-spacing: 1px;\n}\n\n.kup-small-label-01 {\n font-family: var(--kup-font-family);\n font-size: 6px;\n line-height: 9px;\n font-weight: 400;\n letter-spacing: 1px;\n}\n\n.kup-heading-compact-01 {\n font-family: var(--kup-font-family);\n font-size: var(--kup-heading-compact-01-font-size, 14px);\n line-height: 18px;\n font-weight: 600;\n letter-spacing: 0.16px;\n}\n\n.kup-heading-01 {\n font-family: var(--kup-font-family);\n font-size: var(--kup-heading-01-font-size, 14px);\n line-height: 20px;\n font-weight: 600;\n letter-spacing: 0.16px;\n}\n\n.kup-heading-02 {\n font-family: var(--kup-font-family);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n letter-spacing: 0;\n}\n\n.kup-heading-03 {\n font-family: var(--kup-font-family);\n font-size: 20px;\n line-height: 28px;\n font-weight: 400;\n letter-spacing: 0;\n}\n\n.kup-heading-04 {\n font-family: var(--kup-font-family);\n font-size: 28px;\n line-height: 36px;\n font-weight: 400;\n letter-spacing: 0;\n}\n\n.kup-heading-05 {\n font-family: var(--kup-font-family);\n font-size: 32px;\n line-height: 40px;\n font-weight: 300;\n letter-spacing: 0;\n}\n\n.kup-heading-06 {\n font-family: var(--kup-font-family);\n font-size: 42px;\n line-height: 50px;\n font-weight: 300;\n letter-spacing: 0;\n}\n\n.kup-heading-07 {\n font-family: var(--kup-font-family);\n font-size: 54px;\n line-height: 64px;\n font-weight: 300;\n letter-spacing: 0;\n}\n\n.kup-heading-08 {\n font-family: var(--kup-font-family);\n font-size: 54px;\n line-height: 64px;\n font-weight: 600;\n letter-spacing: 0;\n}\n\n:host {\n --kup_typographylist_wrapper_gap: var(\n --kup-typographylist-wrapper-gap,\n var(--kup-space-00) ;\n );\n}\n\n.typographies-wrapper {\n display: flex;\n flex-direction: column;\n gap: var(--kup_typographylist_wrapper_gap);\n}\n\n:host {\n display: block;\n}";export{g as kup_typography_list}
|
|
@@ -9,7 +9,8 @@ export declare enum KupAutocompleteProps {
|
|
|
9
9
|
customStyle = "Custom style of the component.",
|
|
10
10
|
data = "Props of the sub-components.",
|
|
11
11
|
disabled = "Defaults at false. When set to true, the component is disabled.",
|
|
12
|
-
|
|
12
|
+
DescrMode = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".",
|
|
13
|
+
ListDescrMode = "Sets how to show the list items of the component. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".",
|
|
13
14
|
initialValue = "Sets the initial value of the component.",
|
|
14
15
|
initialValueDecode = "Sets the initial value decode of the component",
|
|
15
16
|
inputDelay = "Input event emission delay in milliseconds.",
|
|
@@ -40,11 +40,11 @@ export declare class KupAutocomplete {
|
|
|
40
40
|
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
41
41
|
* @default ItemsDisplayMode.DESCRIPTION
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
DescrMode: ItemsDisplayMode;
|
|
44
44
|
/**
|
|
45
45
|
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
ListDescrMode: ItemsDisplayMode;
|
|
48
48
|
/**
|
|
49
49
|
* Set error message
|
|
50
50
|
* @default '''
|
|
@@ -8,7 +8,7 @@ export declare enum KupChipProps {
|
|
|
8
8
|
customStyle = "Custom style of the component.",
|
|
9
9
|
data = "List of elements.",
|
|
10
10
|
disabled = "When true, the chip cannot be edited, nor removed.",
|
|
11
|
-
|
|
11
|
+
DescrMode = "When enabled, the chip will display both the id and description of the data.",
|
|
12
12
|
enableInput = "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).",
|
|
13
13
|
label = "When set, will be shown a label on the chips.",
|
|
14
14
|
sizing = "The size of the chip. Available sizes: small, medium.",
|
|
@@ -30,7 +30,7 @@ export declare class KupChip {
|
|
|
30
30
|
* When enabled, the chip's text will display both the id and description.
|
|
31
31
|
* @default ItemsDisplayMode.DESCRIPTION
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
DescrMode: ItemsDisplayMode;
|
|
34
34
|
/**
|
|
35
35
|
* When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).
|
|
36
36
|
* @default false
|
|
@@ -8,7 +8,8 @@ export declare enum KupComboboxProps {
|
|
|
8
8
|
customStyle = "Custom style of the component.",
|
|
9
9
|
data = "Props of the sub-components (date input text field).",
|
|
10
10
|
disabled = "Defaults at false. When set to true, the component is disabled.",
|
|
11
|
-
|
|
11
|
+
DescrMode = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\".",
|
|
12
|
+
ListDescrMode = "Sets how to show the list items of the component. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".",
|
|
12
13
|
initialValue = "Sets the initial value of the component",
|
|
13
14
|
initialValueDecode = "Sets the initial value decode of the component",
|
|
14
15
|
isClearable = "Enables a clear trailing icon.",
|
|
@@ -29,11 +29,11 @@ export declare class KupCombobox {
|
|
|
29
29
|
/**
|
|
30
30
|
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
DescrMode: ItemsDisplayMode;
|
|
33
33
|
/**
|
|
34
34
|
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
ListDescrMode: ItemsDisplayMode;
|
|
37
37
|
/**
|
|
38
38
|
* Set error message
|
|
39
39
|
* @default '''
|
|
@@ -284,6 +284,10 @@ export declare class KupDataTable {
|
|
|
284
284
|
* List of the visible columns
|
|
285
285
|
*/
|
|
286
286
|
visibleColumns: string[];
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
*/
|
|
290
|
+
pendingRowsToUpdate: KupDataRow[];
|
|
287
291
|
/**
|
|
288
292
|
* When set to true, editable cells will be rendered using input components
|
|
289
293
|
* and an update button will appear below the matrix
|
|
@@ -8,7 +8,7 @@ export declare enum KupDropdownButtonProps {
|
|
|
8
8
|
customStyle = "Custom style of the component.",
|
|
9
9
|
data = "Props of the sub-components.",
|
|
10
10
|
disabled = "Defaults at false. When set to true, the component is disabled.",
|
|
11
|
-
|
|
11
|
+
DescrMode = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".",
|
|
12
12
|
icon = "Defaults at null. When set, the button will show this icon.",
|
|
13
13
|
initialValue = "Sets the initial value of the component.",
|
|
14
14
|
label = "Defaults at null. When set, the button will show this text.",
|
|
@@ -29,7 +29,7 @@ export declare class KupDropdownButton {
|
|
|
29
29
|
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
30
30
|
* @default ItemsDisplayMode.DESCRIPTION
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
DescrMode: ItemsDisplayMode;
|
|
33
33
|
/**
|
|
34
34
|
* Default value is false. When set to true, the arrow dropdown button is the only button displayed.
|
|
35
35
|
* @default false
|
|
@@ -14,6 +14,7 @@ export declare enum KupEchartProps {
|
|
|
14
14
|
data = "The actual data of the chart.",
|
|
15
15
|
legend = "Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.",
|
|
16
16
|
map = "Choose which map you want to view, supported values: \"europe\", \"africa\", \"asia\", \"oceania\", \"america\" and \"world\". It's possible to supply a custom JSON too.",
|
|
17
|
+
multipleYAxes = "Defines which data series must be associated with a secondary Y axis. Accepts a string with the column IDs separated by \"|\".",
|
|
17
18
|
series = "The data series to be displayed. They must be of the same type.",
|
|
18
19
|
showMarks = "Displays the numerical values.",
|
|
19
20
|
sizeX = "The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ItemsDisplayMode, KupListNode, ValueDisplayedValue } from './kup-list-declarations';
|
|
2
2
|
export declare function getIdOfItemByDisplayMode(item: KupListNode, mode: ItemsDisplayMode, separator: string): string;
|
|
3
|
-
export declare function consistencyCheck(idIn: string, listData: Object, listEl: any, selectMode: ItemsDisplayMode,
|
|
3
|
+
export declare function consistencyCheck(idIn: string, listData: Object, listEl: any, selectMode: ItemsDisplayMode, DescrMode: ItemsDisplayMode, e?: CustomEvent): ValueDisplayedValue;
|
|
4
4
|
export declare function getFirstItemSelected(listData: Object): KupListNode;
|
|
5
5
|
export declare function getItemById(listData: Object, id: string, setSelected: boolean): KupListNode;
|
|
6
|
-
export declare function getItemByDisplayMode(listData: Object, id: string,
|
|
6
|
+
export declare function getItemByDisplayMode(listData: Object, id: string, DescrMode: ItemsDisplayMode, setSelected: boolean): KupListNode;
|
|
@@ -33,7 +33,7 @@ export declare class KupList {
|
|
|
33
33
|
* Selects how the items must display their label and how they can be filtered for.
|
|
34
34
|
* @default ItemsDisplayMode.DESCRIPTION
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
DescrMode: ItemsDisplayMode;
|
|
37
37
|
/**
|
|
38
38
|
* Show filter for filter elements in list
|
|
39
39
|
* @default false
|
|
@@ -225,6 +225,15 @@ export namespace Components {
|
|
|
225
225
|
"timeColumn": string;
|
|
226
226
|
}
|
|
227
227
|
interface KupAutocomplete {
|
|
228
|
+
/**
|
|
229
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
230
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
231
|
+
*/
|
|
232
|
+
"DescrMode": ItemsDisplayMode;
|
|
233
|
+
/**
|
|
234
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
235
|
+
*/
|
|
236
|
+
"ListDescrMode": ItemsDisplayMode;
|
|
228
237
|
/**
|
|
229
238
|
* Set alert message
|
|
230
239
|
* @default '''
|
|
@@ -251,11 +260,6 @@ export namespace Components {
|
|
|
251
260
|
* @default false
|
|
252
261
|
*/
|
|
253
262
|
"disabled": boolean;
|
|
254
|
-
/**
|
|
255
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
256
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
257
|
-
*/
|
|
258
|
-
"displayMode": ItemsDisplayMode;
|
|
259
263
|
/**
|
|
260
264
|
* Set error message
|
|
261
265
|
* @default '''
|
|
@@ -311,10 +315,6 @@ export namespace Components {
|
|
|
311
315
|
* @default false
|
|
312
316
|
*/
|
|
313
317
|
"legacyLook": boolean;
|
|
314
|
-
/**
|
|
315
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
316
|
-
*/
|
|
317
|
-
"listDisplayMode": ItemsDisplayMode;
|
|
318
318
|
/**
|
|
319
319
|
* The minimum number of chars to trigger the autocomplete
|
|
320
320
|
* @default 3
|
|
@@ -1220,6 +1220,11 @@ export namespace Components {
|
|
|
1220
1220
|
"setProps": (props: GenericObject) => Promise<void>;
|
|
1221
1221
|
}
|
|
1222
1222
|
interface KupChip {
|
|
1223
|
+
/**
|
|
1224
|
+
* When enabled, the chip's text will display both the id and description.
|
|
1225
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
1226
|
+
*/
|
|
1227
|
+
"DescrMode": ItemsDisplayMode;
|
|
1223
1228
|
/**
|
|
1224
1229
|
* Custom style of the component.
|
|
1225
1230
|
* @default ""
|
|
@@ -1236,11 +1241,6 @@ export namespace Components {
|
|
|
1236
1241
|
* @default false
|
|
1237
1242
|
*/
|
|
1238
1243
|
"disabled": boolean;
|
|
1239
|
-
/**
|
|
1240
|
-
* When enabled, the chip's text will display both the id and description.
|
|
1241
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
1242
|
-
*/
|
|
1243
|
-
"displayMode": ItemsDisplayMode;
|
|
1244
1244
|
/**
|
|
1245
1245
|
* When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).
|
|
1246
1246
|
* @default false
|
|
@@ -1345,6 +1345,14 @@ export namespace Components {
|
|
|
1345
1345
|
"swatchOnly": boolean;
|
|
1346
1346
|
}
|
|
1347
1347
|
interface KupCombobox {
|
|
1348
|
+
/**
|
|
1349
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
1350
|
+
*/
|
|
1351
|
+
"DescrMode": ItemsDisplayMode;
|
|
1352
|
+
/**
|
|
1353
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
1354
|
+
*/
|
|
1355
|
+
"ListDescrMode": ItemsDisplayMode;
|
|
1348
1356
|
/**
|
|
1349
1357
|
* Set alert message
|
|
1350
1358
|
* @default '''
|
|
@@ -1364,10 +1372,6 @@ export namespace Components {
|
|
|
1364
1372
|
* Defaults at false. When set to true, the component is disabled.
|
|
1365
1373
|
*/
|
|
1366
1374
|
"disabled": boolean;
|
|
1367
|
-
/**
|
|
1368
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
1369
|
-
*/
|
|
1370
|
-
"displayMode": ItemsDisplayMode;
|
|
1371
1375
|
/**
|
|
1372
1376
|
* Set error message
|
|
1373
1377
|
* @default '''
|
|
@@ -1421,10 +1425,6 @@ export namespace Components {
|
|
|
1421
1425
|
* @default false
|
|
1422
1426
|
*/
|
|
1423
1427
|
"legacyLook": boolean;
|
|
1424
|
-
/**
|
|
1425
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
1426
|
-
*/
|
|
1427
|
-
"listDisplayMode": ItemsDisplayMode;
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Index of the element to select. When default selects nothing.
|
|
1430
1430
|
*/
|
|
@@ -1783,6 +1783,7 @@ export namespace Components {
|
|
|
1783
1783
|
* Sets the position of the paginator. Available positions: top, bottom or both.
|
|
1784
1784
|
*/
|
|
1785
1785
|
"paginatorPos": PaginatorPos;
|
|
1786
|
+
"pendingRowsToUpdate": KupDataRow[];
|
|
1786
1787
|
/**
|
|
1787
1788
|
* This method is used to trigger a new render of the component.
|
|
1788
1789
|
*/
|
|
@@ -2167,6 +2168,11 @@ export namespace Components {
|
|
|
2167
2168
|
"toggle": () => Promise<void>;
|
|
2168
2169
|
}
|
|
2169
2170
|
interface KupDropdownButton {
|
|
2171
|
+
/**
|
|
2172
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
2173
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
2174
|
+
*/
|
|
2175
|
+
"DescrMode": ItemsDisplayMode;
|
|
2170
2176
|
/**
|
|
2171
2177
|
* Custom style of the component.
|
|
2172
2178
|
* @default ""
|
|
@@ -2183,11 +2189,6 @@ export namespace Components {
|
|
|
2183
2189
|
* @default false
|
|
2184
2190
|
*/
|
|
2185
2191
|
"disabled": boolean;
|
|
2186
|
-
/**
|
|
2187
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
2188
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
2189
|
-
*/
|
|
2190
|
-
"displayMode": ItemsDisplayMode;
|
|
2191
2192
|
/**
|
|
2192
2193
|
* Default value is false. When set to true, the arrow dropdown button is the only button displayed.
|
|
2193
2194
|
* @default false
|
|
@@ -3247,6 +3248,11 @@ export namespace Components {
|
|
|
3247
3248
|
"showPlaceholder": boolean;
|
|
3248
3249
|
}
|
|
3249
3250
|
interface KupList {
|
|
3251
|
+
/**
|
|
3252
|
+
* Selects how the items must display their label and how they can be filtered for.
|
|
3253
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
3254
|
+
*/
|
|
3255
|
+
"DescrMode": ItemsDisplayMode;
|
|
3250
3256
|
/**
|
|
3251
3257
|
* Custom style of the component.
|
|
3252
3258
|
* @default ""
|
|
@@ -3258,11 +3264,6 @@ export namespace Components {
|
|
|
3258
3264
|
* @default []
|
|
3259
3265
|
*/
|
|
3260
3266
|
"data": KupListNode[];
|
|
3261
|
-
/**
|
|
3262
|
-
* Selects how the items must display their label and how they can be filtered for.
|
|
3263
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
3264
|
-
*/
|
|
3265
|
-
"displayMode": ItemsDisplayMode;
|
|
3266
3267
|
/**
|
|
3267
3268
|
* Keeps string for filtering elements when filter mode is active
|
|
3268
3269
|
* @default ''
|
|
@@ -4663,6 +4664,7 @@ export namespace Components {
|
|
|
4663
4664
|
"taskListWidth": number;
|
|
4664
4665
|
}
|
|
4665
4666
|
interface KupTree {
|
|
4667
|
+
"DescrMode": ItemsDisplayMode;
|
|
4666
4668
|
/**
|
|
4667
4669
|
* When enabled, the first level of depth will give an accordion look to nodes.
|
|
4668
4670
|
* @default false
|
|
@@ -4694,7 +4696,6 @@ export namespace Components {
|
|
|
4694
4696
|
* The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.
|
|
4695
4697
|
*/
|
|
4696
4698
|
"density": FCellPadding;
|
|
4697
|
-
"displayMode": ItemsDisplayMode;
|
|
4698
4699
|
/**
|
|
4699
4700
|
* Function that gets invoked when a new set of nodes must be loaded as children of a node. When useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop. 1 - If this prop is set to null, no callback to download data is available: the component will emit an event requiring the parent to load the children of the given node. 2 - If this prop is set to have a callback, then the component will automatically make requests to load children of a given node. After the load has been completed, a different event will be fired to alert the parent of the change.
|
|
4700
4701
|
* @see useDynamicExpansion
|
|
@@ -6484,6 +6485,15 @@ declare namespace LocalJSX {
|
|
|
6484
6485
|
"timeColumn"?: string;
|
|
6485
6486
|
}
|
|
6486
6487
|
interface KupAutocomplete {
|
|
6488
|
+
/**
|
|
6489
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
6490
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
6491
|
+
*/
|
|
6492
|
+
"DescrMode"?: ItemsDisplayMode;
|
|
6493
|
+
/**
|
|
6494
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
6495
|
+
*/
|
|
6496
|
+
"ListDescrMode"?: ItemsDisplayMode;
|
|
6487
6497
|
/**
|
|
6488
6498
|
* Set alert message
|
|
6489
6499
|
* @default '''
|
|
@@ -6510,11 +6520,6 @@ declare namespace LocalJSX {
|
|
|
6510
6520
|
* @default false
|
|
6511
6521
|
*/
|
|
6512
6522
|
"disabled"?: boolean;
|
|
6513
|
-
/**
|
|
6514
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
6515
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
6516
|
-
*/
|
|
6517
|
-
"displayMode"?: ItemsDisplayMode;
|
|
6518
6523
|
/**
|
|
6519
6524
|
* Set error message
|
|
6520
6525
|
* @default '''
|
|
@@ -6559,10 +6564,6 @@ declare namespace LocalJSX {
|
|
|
6559
6564
|
* @default false
|
|
6560
6565
|
*/
|
|
6561
6566
|
"legacyLook"?: boolean;
|
|
6562
|
-
/**
|
|
6563
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
6564
|
-
*/
|
|
6565
|
-
"listDisplayMode"?: ItemsDisplayMode;
|
|
6566
6567
|
/**
|
|
6567
6568
|
* The minimum number of chars to trigger the autocomplete
|
|
6568
6569
|
* @default 3
|
|
@@ -7376,6 +7377,11 @@ declare namespace LocalJSX {
|
|
|
7376
7377
|
"onKup-checkbox-focus"?: (event: KupCheckboxCustomEvent<KupCheckboxEventPayload>) => void;
|
|
7377
7378
|
}
|
|
7378
7379
|
interface KupChip {
|
|
7380
|
+
/**
|
|
7381
|
+
* When enabled, the chip's text will display both the id and description.
|
|
7382
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
7383
|
+
*/
|
|
7384
|
+
"DescrMode"?: ItemsDisplayMode;
|
|
7379
7385
|
/**
|
|
7380
7386
|
* Custom style of the component.
|
|
7381
7387
|
* @default ""
|
|
@@ -7392,11 +7398,6 @@ declare namespace LocalJSX {
|
|
|
7392
7398
|
* @default false
|
|
7393
7399
|
*/
|
|
7394
7400
|
"disabled"?: boolean;
|
|
7395
|
-
/**
|
|
7396
|
-
* When enabled, the chip's text will display both the id and description.
|
|
7397
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
7398
|
-
*/
|
|
7399
|
-
"displayMode"?: ItemsDisplayMode;
|
|
7400
7401
|
/**
|
|
7401
7402
|
* When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).
|
|
7402
7403
|
* @default false
|
|
@@ -7478,6 +7479,14 @@ declare namespace LocalJSX {
|
|
|
7478
7479
|
"swatchOnly"?: boolean;
|
|
7479
7480
|
}
|
|
7480
7481
|
interface KupCombobox {
|
|
7482
|
+
/**
|
|
7483
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
7484
|
+
*/
|
|
7485
|
+
"DescrMode"?: ItemsDisplayMode;
|
|
7486
|
+
/**
|
|
7487
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
7488
|
+
*/
|
|
7489
|
+
"ListDescrMode"?: ItemsDisplayMode;
|
|
7481
7490
|
/**
|
|
7482
7491
|
* Set alert message
|
|
7483
7492
|
* @default '''
|
|
@@ -7497,10 +7506,6 @@ declare namespace LocalJSX {
|
|
|
7497
7506
|
* Defaults at false. When set to true, the component is disabled.
|
|
7498
7507
|
*/
|
|
7499
7508
|
"disabled"?: boolean;
|
|
7500
|
-
/**
|
|
7501
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
7502
|
-
*/
|
|
7503
|
-
"displayMode"?: ItemsDisplayMode;
|
|
7504
7509
|
/**
|
|
7505
7510
|
* Set error message
|
|
7506
7511
|
* @default '''
|
|
@@ -7543,10 +7548,6 @@ declare namespace LocalJSX {
|
|
|
7543
7548
|
* @default false
|
|
7544
7549
|
*/
|
|
7545
7550
|
"legacyLook"?: boolean;
|
|
7546
|
-
/**
|
|
7547
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
7548
|
-
*/
|
|
7549
|
-
"listDisplayMode"?: ItemsDisplayMode;
|
|
7550
7551
|
"onKup-combobox-blur"?: (event: KupComboboxCustomEvent<KupComboboxEventPayload>) => void;
|
|
7551
7552
|
"onKup-combobox-change"?: (event: KupComboboxCustomEvent<KupComboboxEventPayload>) => void;
|
|
7552
7553
|
"onKup-combobox-click"?: (event: KupComboboxCustomEvent<KupComboboxEventPayload>) => void;
|
|
@@ -7881,6 +7882,7 @@ declare namespace LocalJSX {
|
|
|
7881
7882
|
* Sets the position of the paginator. Available positions: top, bottom or both.
|
|
7882
7883
|
*/
|
|
7883
7884
|
"paginatorPos"?: PaginatorPos;
|
|
7885
|
+
"pendingRowsToUpdate"?: KupDataRow[];
|
|
7884
7886
|
/**
|
|
7885
7887
|
* Sets the possibility to remove the selected column.
|
|
7886
7888
|
*/
|
|
@@ -8154,6 +8156,11 @@ declare namespace LocalJSX {
|
|
|
8154
8156
|
"onKup-drawer-ready"?: (event: KupDrawerCustomEvent<KupEventPayload>) => void;
|
|
8155
8157
|
}
|
|
8156
8158
|
interface KupDropdownButton {
|
|
8159
|
+
/**
|
|
8160
|
+
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
8161
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
8162
|
+
*/
|
|
8163
|
+
"DescrMode"?: ItemsDisplayMode;
|
|
8157
8164
|
/**
|
|
8158
8165
|
* Custom style of the component.
|
|
8159
8166
|
* @default ""
|
|
@@ -8170,11 +8177,6 @@ declare namespace LocalJSX {
|
|
|
8170
8177
|
* @default false
|
|
8171
8178
|
*/
|
|
8172
8179
|
"disabled"?: boolean;
|
|
8173
|
-
/**
|
|
8174
|
-
* Sets how to show the selected item value. Suported values: "CodeOnly", "DescOnly", "Both" or "CodeAndDesc" and "DescAndCode".
|
|
8175
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
8176
|
-
*/
|
|
8177
|
-
"displayMode"?: ItemsDisplayMode;
|
|
8178
8180
|
/**
|
|
8179
8181
|
* Default value is false. When set to true, the arrow dropdown button is the only button displayed.
|
|
8180
8182
|
* @default false
|
|
@@ -9031,6 +9033,11 @@ declare namespace LocalJSX {
|
|
|
9031
9033
|
"showPlaceholder"?: boolean;
|
|
9032
9034
|
}
|
|
9033
9035
|
interface KupList {
|
|
9036
|
+
/**
|
|
9037
|
+
* Selects how the items must display their label and how they can be filtered for.
|
|
9038
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
9039
|
+
*/
|
|
9040
|
+
"DescrMode"?: ItemsDisplayMode;
|
|
9034
9041
|
/**
|
|
9035
9042
|
* Custom style of the component.
|
|
9036
9043
|
* @default ""
|
|
@@ -9042,11 +9049,6 @@ declare namespace LocalJSX {
|
|
|
9042
9049
|
* @default []
|
|
9043
9050
|
*/
|
|
9044
9051
|
"data"?: KupListNode[];
|
|
9045
|
-
/**
|
|
9046
|
-
* Selects how the items must display their label and how they can be filtered for.
|
|
9047
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
9048
|
-
*/
|
|
9049
|
-
"displayMode"?: ItemsDisplayMode;
|
|
9050
9052
|
/**
|
|
9051
9053
|
* Keeps string for filtering elements when filter mode is active
|
|
9052
9054
|
* @default ''
|
|
@@ -10235,6 +10237,7 @@ declare namespace LocalJSX {
|
|
|
10235
10237
|
"taskListWidth"?: number;
|
|
10236
10238
|
}
|
|
10237
10239
|
interface KupTree {
|
|
10240
|
+
"DescrMode"?: ItemsDisplayMode;
|
|
10238
10241
|
/**
|
|
10239
10242
|
* When enabled, the first level of depth will give an accordion look to nodes.
|
|
10240
10243
|
* @default false
|
|
@@ -10258,7 +10261,6 @@ declare namespace LocalJSX {
|
|
|
10258
10261
|
* The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.
|
|
10259
10262
|
*/
|
|
10260
10263
|
"density"?: FCellPadding;
|
|
10261
|
-
"displayMode"?: ItemsDisplayMode;
|
|
10262
10264
|
/**
|
|
10263
10265
|
* Function that gets invoked when a new set of nodes must be loaded as children of a node. When useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop. 1 - If this prop is set to null, no callback to download data is available: the component will emit an event requiring the parent to load the children of the given node. 2 - If this prop is set to have a callback, then the component will automatically make requests to load children of a given node. After the load has been completed, a different event will be fired to alert the parent of the change.
|
|
10264
10266
|
* @see useDynamicExpansion
|
|
@@ -6,7 +6,7 @@ import { ItemsDisplayMode } from '../../components';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface FChipsProps extends FComponent {
|
|
8
8
|
data?: KupChipNode[];
|
|
9
|
-
|
|
9
|
+
DescrMode?: ItemsDisplayMode;
|
|
10
10
|
onBlur?: ((chip: KupChipNode, e: FocusEvent) => void)[];
|
|
11
11
|
onClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
|
|
12
12
|
onContextMenu?: ((chip: KupChipNode, e: PointerEvent) => void)[];
|
|
@@ -49,4 +49,4 @@ export declare const submitPositionAdapter: (position: KupCellElementsPosition)
|
|
|
49
49
|
export declare const isForceLowercase: (cell: KupDataCell) => boolean;
|
|
50
50
|
export declare const isForceUppercase: (cell: KupDataCell) => boolean;
|
|
51
51
|
export declare function adaptContentToDisplayMode(cell: KupDataCell, content: unknown, separator: string): unknown;
|
|
52
|
-
export declare function getSizeOfInputElement(data: Object,
|
|
52
|
+
export declare function getSizeOfInputElement(data: Object, DescrMode: ItemsDisplayMode, size: number): number;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,f as e,h as s,H as o,d as i}from"./p-710d0a7d.js";import{F as a}from"./p-ab080458.js";import{k as r,g as n}from"./p-17f0cc01.js";import{c}from"./p-635bb4b3.js";import"./p-ff735e62.js";import"./p-e3062c19.js";import"./p-cc9db65d.js";import"./p-642fe1a3.js";import"./p-36edcc02.js";var f;!function(t){t.customStyle="Custom style of the component.",t.data="Actual data of the component."}(f||(f={}));var d,h=function(t,e,s,o){if("a"===s&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?o:"a"===s?o.call(t):o?o.value:e.get(t)};const p=class{constructor(e){t(this,e),d.set(this,r()),this.inputValue="",this.customStyle="",this.data={}}async getValue(){return this.inputValue}async getProps(t){return n(this,f,t)}async refresh(){e(this)}async setValue(t){this.inputValue=t}componentWillLoad(){h(this,d,"f").debug.logLoad(this,!1),h(this,d,"f").theme.register(this)}componentDidLoad(){h(this,d,"f").debug.logLoad(this,!0)}componentWillRender(){h(this,d,"f").debug.logRender(this,!1)}componentDidRender(){h(this,d,"f").debug.logRender(this,!0)}render(){var t;const e={data:null!==(t=this.data)&&void 0!==t?t:{},inputValue:this.inputValue,onChange:null};return s(o,{key:"5eaf6b26539f0d6301e19077a29419bb91e11629"},s("style",{key:"03944bfc8cd00d94e11aef6ccfc55e7ffe73f741"},h(this,d,"f").theme.setKupStyle(this.rootElement)),s("div",{key:"e0336a46ae9b6b0cce2dbf83498508560414ecca",id:c},s(a,Object.assign({key:"1f82d5ee84dedcf85d67536a2e4667bf51a70485"},e))))}disconnectedCallback(){h(this,d,"f").theme.unregister(this)}get rootElement(){return i(this)}};d=new WeakMap,p.style="";export{p as kup_object_field}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,F as n}from"./p-710d0a7d.js";import{aq as a,ar as o,R as t,ad as c,f as l,ao as i,am as r,al as s,as as u,F as d,ai as p,a as b,at as k,I as v,au as f,av as m,aw as h,ax as g,ay as j,h as O}from"./p-17f0cc01.js";import{F as x}from"./p-ff735e62.js";import{F as w}from"./p-ef3112d4.js";import{F as _,d as y}from"./p-1e381f3d.js";import{F as C}from"./p-cc9db65d.js";import{F as $}from"./p-ab080458.js";import{F}from"./p-642fe1a3.js";var I;!function(e){e.RADIO="radio",e.CHEVRON="chevron"}(I||(I={}));const E=a=>{var o;const t=a.horizontal||"lineDirection"==a.RadLay,c=!!a.columns,l=[],i=a.type||I.RADIO;for(let t=0;t<(null===(o=a.data)||void 0===o?void 0:o.length);t++){const o=a.data[t],c={radio:!0,"radio--checked":!!o.checked,"radio--disabled":!!a.disabled,[`radio--${a.type}`]:!!a.type};l.push(e("div",{class:`form-field \n ${a.leadingLabel?" form-field--align-end":""} ${a.disabled?"radio--disabled":""} ${i===I.CHEVRON?"form--chevron":""}`,onClick:a.onChange?a.onChange.bind(a.onChange,t):null},e("div",{class:c},i===I.RADIO?e("input",{class:"radio__native-control",type:"radio",name:"radio-element",value:o.value,checked:o.checked,disabled:a.disabled,onBlur:a.onBlur,onChange:e=>{a.onChange&&a.onChange(t,e),e.stopPropagation()},onFocus:a.onFocus}):e(n,null,e(C,o.checked?{resource:"check",sizeX:"14px",sizeY:"14px"}:{sizeX:"14px",sizeY:"14px",onClick:e=>{a.onChange&&a.onChange(t,e),e.stopPropagation()}})),i===I.RADIO&&e("div",{class:"radio__background"},e("div",{class:"radio__outer-circle"}),e("div",{class:"radio__inner-circle"}))),e("div",{class:"label-wrapper",onClick:e=>{a.onChange&&a.onChange(t,e),e.stopPropagation()}},i===I.CHEVRON&&e(C,{resource:o.icon,sizeX:"14px",sizeY:"14px"}),e("label",{htmlFor:"radio-element"},o.label?o.label:""),o.shortcutLabel&&e("div",{class:"shortcut"},o.shortcutLabel))))}return e("div",{class:`f-radio radio-wrapper\n ${c?"radio-wrapper-grid":""} ${a.danger?"kup-danger":""} ${a.info?"kup-info":""} ${a.secondary?"kup-secondary":""} ${a.success?"kup-success":""} ${a.warning?"kup-warning":""} ${a.wrapperClass?a.wrapperClass:""} ${t?"kup-horizontal":""}`,style:{"--kup_radio_columns":c?`repeat(${a.columns}, 1fr)`:""}},l)},A=n=>(n.maxValue||(n.maxValue=5),e("div",{class:`f-rating ${n.disabled?"disabled":""} ${n.danger?"kup-danger":""} ${n.info?"kup-info":""} ${n.secondary?"kup-secondary":""} ${n.success?"kup-success":""} ${n.warning?"kup-warning":""} ${n.wrapperClass?n.wrapperClass:""}`},function(n){const a=[];for(let o=1;o<=n.maxValue;o++)a.push(e("span",{class:"rating",onClick:n.onClick?n.onClick.bind(n.onClick,o):null},o<=n.value?"★":"☆"));return a}(n)));var B;!function(e){e.SMALL="small",e.MEDIUM="medium"}(B||(B={}));const D=n=>{n.sizing||(n.sizing=B.MEDIUM),n.sizing.toLowerCase();const a={switch:!0,"switch--checked":n.checked,"switch--disabled":n.disabled,[`switch--${n.sizing}`]:!!n.sizing};return e("div",Object.assign({class:`f-switch ${n.danger?"kup-danger":""} ${n.info?"kup-info":""} ${n.secondary?"kup-secondary":""} ${n.success?"kup-success":""} ${n.warning?"kup-warning":""} ${n.wrapperClass?n.wrapperClass:""}`},n.dataSet,{id:n.id,title:n.title}),e("div",{class:"form-field "+(n.leadingLabel?"form-field--align-end":"")},e("div",{class:a},e("div",{class:"switch__track"}),e("div",{class:"switch__thumb-underlay"},e("div",{class:"switch__thumb"},e("input",{type:"checkbox",class:"switch__native-control",role:"switch",checked:n.checked,disabled:n.disabled,value:n.checked?"on":"off",onBlur:n.onBlur,onChange:n.onChange,onFocus:n.onFocus})))),e("label",{onClick:n.onChange},n.label)))},N={"*BOLD":"font-weight: bold; !important;","*ERROR":"color: white !important; background: red !important;","*UNDERLINE":"text-decoration: underline !important;","*ITALIC":"font-style: italic !important;"};function z(e){let n;switch(e){case"0":n="color: #000000 !important;";break;case"1":n="color: #6C7A89 !important;";break;case"2":n="color: #3A539B !important;";break;case"3":n="color: var(--kup-danger-color-60) !important;";break;case"4":n="color: #C0C0C0 !important;";break;case"5":n="color: #FFFFFF !important;";break;case"6":n="color: var(--kup-success-color-60) !important;";break;case"7":n="color: #9B59B6 !important;";break;default:n=""}return n}function R(e){let n;switch(e){case"1":n="font-weight: bold !important;";break;case"2":n="font-style: italic !important;";break;case"3":n="text-decoration: underline !important;";break;default:n=""}return n}function K(e){let n;switch(e){case"0":n="background: transparent;";break;case"1":n="background: #D5ECF7;";break;case"2":n="background: #59ABE3;";break;case"3":n="background: #446CB3;";break;case"4":n="background: #9B59B6;";break;case"5":n="background: #F1A9A0;";break;case"6":n="background: #E74C3C;";break;case"7":n="background: #CF000F;";break;case"8":n="background: #C0392B;";break;case"9":n="background: #95A5A6;";break;case"A":n="background: #F5D76E;";break;case"B":case"C":n="background: #F7CA18;";break;case"D":n="background: #F39C12;";break;case"E":n="background: #90C695;";break;case"F":n="background: #26A65B;";break;case"G":n="background: #019875;";break;case"H":n="background: #36D7B7;";break;default:n=""}return n}function L(e){let n;switch(e){case"1":n='font-family: "Courier New", Courier, monospace !important;';break;case"2":n='font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif !important;';break;case"3":n="font-family: Arial, Helvetica, sans-serif !important;";break;default:n=""}return n}const M=({text:n,classes:a})=>{const o=function(e){const n=[];let a=null;return function(e,n){const a=/((_G\d{2}[A-Z0-9]\d{2}_|_G\*(BOLD|ERROR|ITALIC|UNDERLINE)_)|_n_)/g;let o,t=0;for(;null!==(o=a.exec(e));)o.index>t&&n.onContent(e.slice(t,o.index)),"_n_"===o[1]?n.onEndTag(o[1]):n.onStartTag(o[2]),t=a.lastIndex;t<e.length&&n.onContent(e.slice(t))}(e,{onStartTag(e){(null==a?void 0:a.tag)&&(a.closed=!0),n.push(a={tag:e,content:""})},onEndTag(e){a?a.tag?(a.closed=!0,a=null):this.onContent(e):n.push(a={content:e})},onContent(e){a?a.content+=e:n.push(a={content:e})}}),a&&a.tag&&(a.closed=!0),n}(n);return e("span",{class:a},o.find((e=>void 0!==e.tag))?function(n){return n.map((n=>{var a,o;const t=function(e){const n=function(e){let n="";if((null==e?void 0:e.match(/\d{2}[A-Z0-9]\d{2}|\*(BOLD|ERROR|ITALIC|UNDERLINE)/))&&(n=N[e],!n)){n="";for(let a=0;a<e.length;a++)switch(a){case 0:n+=z(e.charAt(a));break;case 1:n+=R(e.charAt(a));break;case 2:n+=K(e.charAt(a));break;case 3:n+=L(e.charAt(a))}}return n}(e);return n.split(";").filter((e=>e.trim())).reduce(((e,n)=>{const[a,o]=n.split(":").map((e=>e.trim()));if(a&&o){const n=o.replace(/!important/g,"").trim();e[a.replace(/-([a-z])/g,((e,n)=>n.toUpperCase()))]=n}return e}),{})}(null===(a=n.tag)||void 0===a?void 0:a.replace(/[_]/g,"").slice(1));return n.closed?e("span",{style:t},n.content):e("span",null,`${null!==(o=n.tag)&&void 0!==o?o:""}${n.content}`)}))}(o):n)},T=document.documentElement,V=(n,i)=>{var r,s,k,f,O;const I=n.cell,B=n.column,N=n.row,z=n.shape?n.shape:I.shape?I.shape:B.shape?B.shape:null,R=!T.ketchup.objects.isEmptyKupObj(I.obj);let K=!1;I.hasOwnProperty("isEditable")?K=I.isEditable:B.hasOwnProperty("isEditable")&&(K=B.isEditable),K=K&&n.editable,I.data=null!==(r=X(I,B))&&void 0!==r?r:I.data;const L=n.previousValue!==I.value?I.value:"",V=T.ketchup.data.cell.getType(I,z),G="extra_dense"===n.density?"extra-small":null===(s=I.data)||void 0===s?void 0:s.sizing;let Y=I.cssClass?I.cssClass:(null==B?void 0:B.cssClass)?null==B?void 0:B.cssClass:"";const U={"f-cell":!0,[t.OBJ]:!!R,[V+"-cell"]:!0,[n.wrapperClass]:!!n.wrapperClass,[n.density]:!(!n.density||V===c.BAR),[Y]:!!Y,"c-input-uppercase":g(I),"c-input-lowercase":j(I),"monospace c-pre":null===(k=I.data)||void 0===k?void 0:k.legacyLook};let W=L;I.data&&0!==Object.keys(I.data).length||function(e,n){function a(e){return e.toUpperCase().startsWith("SHAPE;BAR")}function o(e){return e.toUpperCase().startsWith("SHAPE;")}function t(e){return e.toUpperCase().startsWith("BCOLOR;")}function l(e){return e.toUpperCase().startsWith("HEIGHT;")}function i(e){return e.toUpperCase().startsWith("SEP;")||e.toUpperCase().startsWith("DIV;")||e.toUpperCase().startsWith("ARW;")||e.toUpperCase().startsWith("GRID;")}function r(e){const n={},c=e.split("\\\\"),r=[];for(const e of c){if(e){if(i(e))return null;if(o(e)){if(!a(e))return null;{const a=e.split(";");if(3===a.length){const e=a[2].replace(",",".");isNaN(parseFloat(e))||(n.width=`${e}%`)}}}else if(t(e));else if(l(e)){const a=e.substring(7).replace(",",".");isNaN(parseFloat(a))||(n.height=`${a}%`)}else r.push(s(e,n))}return r.length?r:null}function s(e,n){const a=Object.assign({},n),o=e.split(";");if(o.length>=1){const e=/R(\d+)G(\d+)B(\d+)/.exec(o[0]);if(e){const[,n,o,t]=e;isNaN(parseInt(n,10))||isNaN(parseInt(o,10))||isNaN(parseInt(t,10))||(a.color=`rgb(${parseInt(n)},${parseInt(o)},${parseInt(t)})`)}if(o.length>=2){const e=o[1].replace(",",".");isNaN(parseFloat(e))||(a.width=`${e}%`)}}return a}}n.data={};switch(e){case c.CHECKBOX:case c.SWITCH:n.data.checked="1"===n.value;break;case c.BAR:o(n.value)?(n.data.isCanvas=!0,n.data.resource=n.value):n.data.data=function(e){if(!e)return null;const n=e.split("\\\\AND\\"),a=[];for(const e of n){const n=r(e);if(!n)return null;a.push(...n)}return a}(n.value);break;case c.BUTTON:n.data.label=n.value;break;case c.CHART:Object.assign(n.data,{sizeX:"100px",sizeY:"100px",offlineMode:{value:n.value,shape:"pie"}});break;case c.BUTTON_LIST:case c.CHIP:case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:case c.RADIO:(()=>{var e;const a=null===(e=n.value)||void 0===e?void 0:e.split(";");if(""===(null==a?void 0:a[a.length-1].trim())&&a.pop(),a&&a.length){n.data.data=[];for(let e of a)n.data.data.push({id:e,value:e})}})();break;case c.COLOR_PICKER:n.data.initialValue=n.value;break;case c.GAUGE:case c.KNOB:case c.PROGRESS_BAR:case c.RATING:n.data.value=parseInt(n.value);break;case c.ICON:case c.IMAGE:n.data.resource=n.value}}(V,I);const P=Object.assign(Object.assign(Object.assign(Object.assign({},I.data),(null==I?void 0:I.icon)?{resource:I.icon}:{}),(null==I?void 0:I.placeholderIcon)?{placeholderResource:I.placeholderIcon}:{}),G?{sizing:G}:{});K&&a.includes(V)?(I.data.showMarker=null!==(f=I.tooltip)&&void 0!==f&&f,W=function(n,a,o,l,i){var r,s,u,k,f,m,g,j,O,x,y,C,I,A;switch(n){case c.AUTOCOMPLETE:return e("kup-autocomplete",Object.assign({key:l.name+i.row.id,initialValue:o.value,initialValueDecode:o.decode},o.data,{class:le(i)?"kup-full-width":"","onkup-autocomplete-change":e=>te(e,i,n,h.UPDATE),"onkup-autocomplete-input":e=>te(e,i,n,h.INPUT),"onkup-autocomplete-iconclick":e=>te(e,i,n,h.ICON_CLICK),"onKup-autocomplete-blur":e=>te(e,i,n,h.BLUR),"onKup-autocomplete-itemclick":e=>te(e,i,n,h.ITEMCLICK)}));case c.CHECKBOX:return ce(i)&&(a[t.C_CENTERED]=!0),o.shape===d.INPUT_CHECKBOX?e("input",{checked:"on"===o.value.toLowerCase()||"1"===o.value,class:"input-checkbox",onChange:e=>te(e,i,n,h.UPDATE),type:"checkbox",onBlur:e=>te(e,i,n,h.BLUR)}):e(w,Object.assign({},o.data,{onChange:e=>te(e,i,n,h.UPDATE),onBlur:e=>te(e,i,n,h.BLUR)}));case c.CHIP:return e("kup-chip",Object.assign({},o.data,{type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>te(e,i,n,h.UPDATE)}),e("kup-text-field",Object.assign({fullWidth:!0,slot:"field"},o.slotData,{error:o.data.error,"onKup-textfield-blur":e=>te(e,i,n,h.BLUR)})));case c.COLOR_PICKER:return e("kup-color-picker",Object.assign({key:l.name+i.row.id,initialValue:o.value},o.data,{class:le(i)?"kup-full-width":"",disabled:!1,"onkup-colorpicker-change":e=>te(e,i,n,h.UPDATE)}));case c.COMBOBOX:return e("kup-combobox",Object.assign({key:l.name+i.row.id,initialValue:o.value,initialValueDecode:o.decode},o.data,{class:le(i)?"kup-full-width":"","onkup-combobox-change":e=>te(e,i,n,h.UPDATE),"onkup-combobox-input":e=>te(e,i,n,h.INPUT),"onkup-combobox-iconclick":e=>te(e,i,n,h.ICON_CLICK),"onKup-combobox-blur":e=>te(e,i,n,h.BLUR),"onKup-combobox-itemclick":e=>te(e,i,n,h.ITEMCLICK)}));case c.DATE:return e("kup-date-picker",Object.assign({key:l.name+i.row.id,initialValue:o.value},o.data,{class:le(i)?"kup-full-width":"","onkup-datepicker-change":e=>te(e,i,n,h.UPDATE),"onkup-datepicker-input":e=>te(e,i,n,h.INPUT),"onKup-datepicker-blur":e=>te(e,i,n,h.BLUR),"onkup-datepicker-textfieldsubmit":e=>te(e,i,n,h.UPDATE)}));case c.EDITOR:const B=e=>{"Enter"!==e.key||e.ctrlKey?("Enter"===e.key&&e.ctrlKey||/^F[1-9]|F1[0-2]$/.test(e.key))&&te(e,i,n,h.UPDATE):e.stopPropagation()};return e(F,Object.assign({},o.data,{textArea:!0,sizing:b.EXTRA_LARGE,label:l.title,fullWidth:!!le(i),maxLength:o.data.maxLength,value:o.value,onChange:e=>{te(e,i,n,h.UPDATE)},onInput:e=>{var a,t;null===(t=null===(a=o.data)||void 0===a?void 0:a.onInput)||void 0===t||t.call(a,e),te(e,i,n,h.INPUT)},onBlur:e=>te(e,i,n,h.BLUR),onKeyDown:B}));case c.FILE_UPLOAD:return e("kup-file-upload",Object.assign({"onKup-file-upload-change":e=>te(e,i,n,h.UPDATE)},o.data));case c.MULTI_AUTOCOMPLETE:return e("kup-chip",Object.assign({displayMode:null!==(r=o.data.displayMode)&&void 0!==r?r:v.DESCRIPTION},o.data,{label:null!==(u=null===(s=o.slotData)||void 0===s?void 0:s.label)&&void 0!==u?u:"",type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>te(e,i,n,h.UPDATE)}),e("kup-autocomplete",{class:"kup-full-width",slot:"field",displayMode:v.CODE_AND_DESC,sizing:b.EXTRA_SMALL,"onKup-autocomplete-blur":e=>te(e,i,n,h.BLUR),"onkup-autocomplete-input":e=>te(e,i,n,h.INPUT),"onkup-autocomplete-iconclick":e=>te(e,i,n,h.ICON_CLICK),data:null===(k=o.slotData)||void 0===k?void 0:k.data,initialValue:null===(f=o.slotData)||void 0===f?void 0:f.initialValue,showDropDownIcon:null===(m=o.slotData)||void 0===m?void 0:m.showDropDownIcon,style:null===(g=o.slotData)||void 0===g?void 0:g.style,disabled:null===(j=o.slotData)||void 0===j?void 0:j.disabled,id:null===(O=o.slotData)||void 0===O?void 0:O.id,error:o.data.error,showMarker:null!==(x=o.tooltip)&&void 0!==x&&x,listDisplayMode:o.data.listDisplayMode}));case c.MULTI_COMBOBOX:return e("kup-chip",Object.assign({displayMode:null!==(y=o.data.displayMode)&&void 0!==y?y:v.DESCRIPTION},o.data,{type:_.INPUT,enableInput:!0,"onKup-chip-change":e=>te(e,i,n,h.UPDATE)}),e("kup-combobox",Object.assign({class:"kup-full-width",slot:"field",displayMode:v.CODE_AND_DESC,sizing:b.EXTRA_SMALL,"onKup-combobox-blur":e=>te(e,i,n,h.BLUR),"onkup-combobox-input":e=>te(e,i,n,h.INPUT),"onkup-combobox-iconclick":e=>te(e,i,n,h.ICON_CLICK)},o.slotData,{error:o.data.error,showMarker:null!==(C=o.tooltip)&&void 0!==C&&C})));case c.RADIO:return e(E,Object.assign({},o.data,{disabled:!1,onChange:(e,a)=>{const t=o.data.data;for(let n=0;n<t.length;n++){t[n].checked=n===e}te(a,i,n,h.UPDATE)},onBlur:e=>te(e,i,n,h.BLUR)}));case c.RATING:return e("kup-rating",Object.assign({key:l.name+i.row.id},o.data,{disabled:!1,"onkup-rating-click":e=>te(e,i,n,h.UPDATE)}));case c.SWITCH:return e(D,Object.assign({},o.data,{disabled:!1,onChange:e=>te(e,i,n,h.UPDATE),onBlur:e=>te(e,i,n,h.BLUR)}));case c.TIME:return e("kup-time-picker",Object.assign({key:l.name+i.row.id,initialValue:o.value},o.data,{class:le(i)?"kup-full-width":"","onkup-timepicker-change":e=>te(e,i,n,h.UPDATE),"onkup-timepicker-input":e=>te(e,i,n,h.INPUT),"onKup-timepicker-blur":e=>te(e,i,n,h.BLUR)}));case c.OBJECT:return e($,{cell:o,column:i.column,row:i.row,inputValue:o.value,onChange:e=>te(e,i,n,h.UPDATE)});case c.NUMBER:a[t.C_RIGHT_ALIGNED]=!0;case c.LINK:case c.MEMO:case c.STRING:const N=e=>te(e,i,n,h.UPDATE),z=e=>{var a,t;null===(t=null===(a=o.data)||void 0===a?void 0:a.onInput)||void 0===t||t.call(a,e),te(e,i,n,h.INPUT)},R=e=>{var a,t,l;null===(t=null===(a=o.data)||void 0===a?void 0:a.onKeyDown)||void 0===t||t.call(a,e);const r="MEMO"===o.shape||(null===(l=o.data)||void 0===l?void 0:l.maxLength)>=256||n===c.MEMO,s="Enter"===e.key&&e.ctrlKey;r&&"Enter"===e.key&&!e.ctrlKey?e.stopPropagation():(s||/^F[1-9]|F1[0-2]$/.test(e.key))&&te(e,i,n,h.UPDATE)},K=n===c.NUMBER?"number":null;if(o.shape===d.INPUT_FIELD){const a=n===c.NUMBER&&o.value?p(l,o):o.value;return e("input",{class:"input-field",onChange:N,onInput:z,onKeyDown:R,type:K,value:a,maxLength:null!==(A=null===(I=l.cellData)||void 0===I?void 0:I.maxLength)&&void 0!==A?A:-1})}{const a=!!o.shape&&o.shape===d.MEMO||!!n&&n===c.MEMO||o.data.maxLength>=256;return e(F,Object.assign({},o.data,{textArea:a,sizing:o.data.sizing?o.data.sizing:a?b.EXTRA_LARGE:b.SMALL,inputType:K,fullWidth:!!le(i),maxLength:n==c.NUMBER&&(i.column.decimals&&i.column.decimals>0||i.column.group)||i.column.integers&&i.column.integers>0?-1:o.data.maxLength,icon:o.data&&o.data.icon?o.data.icon:o.icon?o.icon:l.icon?l.icon:null,decimals:i.column.decimals,integers:i.column.integers,group:i.column.group,value:o.value,label:l.title,onChange:N,onInput:z,onKeyDown:R,onIconClick:e=>te(e,i,n,h.ICON_CLICK),onBlur:e=>te(e,i,n,h.BLUR)}))}}}(V,U,I,B,n)):I.data&&o.includes(V)?(n.setSizes&&function(e,n,a){switch(e){case c.BAR:n.sizeY||(n.sizeY="26px");break;case c.BUTTON:let e="";n.label&&(e="36px"),a.style?a.style.height||(a.style.minHeight=e):a.style={minHeight:e};break;case c.CHART:n.sizeX||(n.sizeX="100%"),n.sizeY||(n.sizeY="100%");break;case c.CHIP:a.style?a.style.height||(a.style.minHeight="18px"):a.style={minHeight:"18px"};break;case c.RADIO:a.style?a.style.height||(a.style.minHeight="40px"):a.style={minHeight:"40px"}}}(V,P,I),W=n.renderKup?function(n,a,o,l,i,r,s){switch(n){case c.BAR:return o.data?e("div",{style:{height:o.sizeY,width:"100%"}},e(C,Object.assign({},o))):e("kup-image",Object.assign({key:r.name+s.row.id,sizeX:"250px"},o));case c.BUTTON:ce(s)&&(a[t.C_CENTERED]=!0);const u=Object.assign({label:l.value,icon:l.icon,placeholderIcon:l.placeholderIcon,title:r.title},o);return e(x,Object.assign({},u,{onClick:e=>te(e,s,n,h.CLICK)}));case c.BUTTON_LIST:return ce(s)&&(a[t.C_CENTERED]=!0),o["data-storage"]={cell:l,row:i,column:r},e("kup-button-list",Object.assign({key:r.name+s.row.id},o));case c.CHART:return ce(s)&&(a[t.C_CENTERED]=!0),e("kup-chart",Object.assign({key:r.name+s.row.id},o));case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:case c.CHIP:return e(y,Object.assign({},o));case c.COLOR_PICKER:return e("kup-color-picker",Object.assign({key:r.name+s.row.id},o,{class:le(s)?"kup-full-width":"",disabled:!0}));case c.GAUGE:return e("kup-gauge",Object.assign({key:r.name+s.row.id,value:T.ketchup.math.numberifySafe(l.value),"width-component":"280px"},o));case c.KNOB:case c.PROGRESS_BAR:return e("kup-progress-bar",Object.assign({key:r.name+s.row.id},o,{value:T.ketchup.math.numberifySafe(l.value)}));case c.RADIO:return ce(s)&&(a[t.C_CENTERED]=!0),o.disabled=i.readOnly,e(E,Object.assign({},o));case c.RATING:return e(A,Object.assign({},o,{disabled:!0}));case c.OBJECT:return e(F,Object.assign({icon:"table"},o,{disabled:!0}))}}(V,U,P,I,N,B,n):e("span",{class:"cell-"+V+" placeholder"})):(n.setSizes&&function(e,n,a,o){var t;switch(e){case c.CHECKBOX:case c.ICON:n.sizeX||(n.sizeX="18px"),n.sizeY||(n.sizeY="18px"),a.style?a.style.height||(a.style.minHeight=n.sizeY):a.style={minHeight:n.sizeY};break;case c.IMAGE:const e=(null===(t=o.cell)||void 0===t?void 0:t.value)||"",l=e.indexOf(".")>-1||e.indexOf("/")>-1||e.indexOf("\\")>-1;o.component.rootElement.tagName!==u.DATA_TABLE||l||(n.sizeX||n.sizeY?(n.sizeX||(n.sizeX="100%",n.wrapperClass="noWidth"),n.sizeY||(n.sizeY="auto")):(n.sizeX="100%",n.sizeY="64px",n.wrapperClass="noWidth")),o.component.rootElement.tagName===u.BOX?(n.sizeY||(n.sizeY="auto"),void 0===n.fit&&(n.fit=!0)):n.sizeX||(n.sizeX="auto"),n.sizeY||(n.sizeY="64px")}}(V,P,I,n),U[t.INDICATOR_TOPRIGHT]=null!==(O=I.tooltip)&&void 0!==O&&O,W=function(n,a,o,l,i,r,s){switch(n){case c.AUTOCOMPLETE:case c.COMBOBOX:return o&&""!=o?e("div",{class:"f-cell__text"},m(i,o," - ")):o;case c.DATE:case c.DATETIME:case c.TIME:if(o&&""!=o){const n=p(r,i);return e("div",{class:"f-cell__text"},n)}return o;case c.CHECKBOX:return ce(s)&&(l[t.C_CENTERED]=!0),e(C,{resource:a.checked?"check_box":"check_box_outline_blank",sizeX:"18px",sizeY:"18px"});case c.EDITOR:case c.MEMO:return e("div",{innerHTML:i.value});case c.ICON:case c.IMAGE:return ce(s)&&(l[t.C_CENTERED]=!0),a.badgeData&&(l[t.C_PADDED]=!0),e(C,Object.assign({},a));case c.LINK:return e("a",{href:o,target:"_blank"},i.value);case c.NUMBER:if(o&&""!=o){const n=T.ketchup.math.numberifySafe(i.value),a=p(r,i);return!Boolean(i.style&&i.style.color)&&n<0&&(l[t.TEXT_DANGER]=!0),ce(s)&&(l[t.C_RIGHT_ALIGNED]=!0),e("div",{class:"f-cell__text"},a)}return e("div",{class:"f-cell__text"},o);case c.SWITCH:return ce(s)&&(l[t.C_CENTERED]=!0),a.disabled=!0,e(D,Object.assign({},a));case c.LABEL:return e(M,{text:i.value,classes:"f-cell__text"});case c.IMAGE_LIST:const u=i.data.data.find((e=>e.value===i.value))||null;return e("kup-image-list",Object.assign({ripple:!0},i.data,{"onKup-imagelist-click":e=>te(e,s,n,h.UPDATE),activeNode:u}));default:return e("div",{class:"f-cell__text"},i.data.displayMode?m(i,o,"-"):o)}}(V,P,W,U,I,B,n));let Z=null;!K&&(B.icon||I.icon)&&W&&V!=c.BUTTON&&V!=c.BUTTON_LIST&&V!=c.IMAGE&&V!=c.ICON&&(Z=e(C,Object.assign({},{color:`rgba(var(${l.TEXT}-rgb), 0.375)`,resource:I.icon?I.icon:B.icon,placeholderResource:I.placeholderIcon?I.placeholderIcon:B.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"obj-icon"})));let q=null;T.ketchup.debug.isDebug()&&R?q=I.obj.t+"; "+I.obj.p+"; "+I.obj.k+";":null!=I.title&&""!=I.title.trim()&&(q=I.title);let J=null;if(I.info){const n=Object.assign({},I.info);n.color||(n.color=`var(${l.INFO})`),n.icon||(n.icon="info"),J=e(C,Object.assign({},{color:n.color,resource:n.icon,placeholderResource:n.placeholderIcon,sizeX:"1.25em",sizeY:"1.25em",title:n.message?n.message:"",wrapperClass:"cell-info"}))}if(n.component.rootElement.tagName===u.INPUT_PANEL&&I.style){if(I.style.backgroundColor){const e=I.style.backgroundColor;I.style.backgroundColor="",I.style["--kup-textfield-background-color"]=e}if(I.style.color){const e=I.style.color;I.style.color="",I.style["--kup-textfield-color"]=e}}return e("div",{onKeyUp:e=>te(e,n,V,h.KEYUP),class:U,"kup-get-cell-props":()=>n,ref:e=>I.element=e,style:I.style},e("div",{class:"f-cell__content",style:I.styleContent,title:q,onMouseEnter:e=>H(e,n,V),onMouseLeave:e=>S(e)},i&&i.length>0?i:[n.indents,J,Z,W]))},H=(e,n,a)=>{var o;if(n.cellActionIcon){const t=e.currentTarget,l=document.createElement("kup-image");l.resource="more_vert",l.sizeX="16px",l.sizeY="16px",l.tabIndex=0,l.className="f-cell__iconfunction "+(a===c.NUMBER?"left":"right"),(null===(o=n.cellActionIcon)||void 0===o?void 0:o.onClick)&&l.addEventListener("click",n.cellActionIcon.onClick),t.appendChild(l)}},S=e=>{const n=e.currentTarget.querySelector("kup-image");n&&n.remove()},X=(e,n)=>{var a;if(!e)return null;const o=e.options,t=(null===(a=e.data)||void 0===a?void 0:a.hasOwnProperty("label"))?e.data.label:n.title,l=e.value,i=T.ketchup.data.cell.getType(e,e.shape),r=new Map([[c.BUTTON_LIST,W.bind(void 0)],[c.STRING,P.bind(void 0)],[c.RADIO,Z.bind(void 0)],[c.AUTOCOMPLETE,q.bind(void 0)],[c.COMBOBOX,q.bind(void 0)],[c.CHECKBOX,U.bind(void 0)],[c.OBJECT,Y.bind(void 0)],[c.CHIP,G.bind(void 0)],[c.FILE_UPLOAD,J.bind(void 0)]]).get(i);return r?r(o,t,l,e):null},G=(e,n,a,o)=>{var t;return(null===(t=o.data)||void 0===t?void 0:t.data)?Object.assign({},o.data):i(o.value,o.decode)},Y=(e,n,a,o)=>Object.assign(Object.assign({},o.data),{data:{initialValue:a||"",label:n||"",value:a||""}}),U=(e,n,a,o)=>Object.assign(Object.assign({},o.data),{checked:"on"===a||"1"===a,label:n}),W=(e,n,a,o)=>({data:[Object.assign(Object.assign({},o.data),{icon:o.icon,placeholderIcon:o.placeholderIcon,value:a})]}),P=(e,n,a,o)=>{var t;return Object.assign(Object.assign(Object.assign({},o.data),{label:n}),(null===(t=o.data)||void 0===t?void 0:t.maxLength)&&{textArea:o.data.maxLength>=256})},Z=(e,n,a,o)=>{var t,c,l;const i=r(a,e);return Object.assign(Object.assign(Object.assign({},o.data),i),{data:Array.from(new Map([...null!==(c=null===(t=o.data)||void 0===t?void 0:t.data)&&void 0!==c?c:[],...null!==(l=i.data)&&void 0!==l?l:[]].map((e=>[e.value,e]))).values())})},q=(e,n,a,o)=>{if(e){const t=s(a,n,[],o.data);return t.data["kup-list"].data=Q(e,a),o.data?Object.assign(Object.assign({},t),o.data):t}},J=(e,n,a,o)=>Object.assign(Object.assign({},o.data),{pathString:a}),Q=(e,n)=>{const a=oe.get(e.type);return a?a(e,n):e.map((e=>({value:e.label,id:e.id,selected:n===e.id})))},ee=(e,n)=>e.children.map((e=>{var a;return{id:e.content.codice,value:e.content.testo,selected:n===e.content.codice,children:(null===(a=e.children)||void 0===a?void 0:a.length)?ee(e,n):[]}})),ne=(e,n)=>e.children.map((e=>{var a;return{id:e.obj.k,value:e.value,selected:n===e.obj.k,children:(null===(a=e.children)||void 0===a?void 0:a.length)?ne(e,n):[]}})),ae=(e,n)=>e.rows.map((e=>{var a;const o=e.fields||e.cells,[t,c]=Object.keys(o);return{id:o[t].value,value:(null===(a=o[c])||void 0===a?void 0:a.value)||o[t].value,selected:n===o[t].value}})),oe=new Map([["SmeupTreeNode",ee.bind(void 0)],["SmeupDataTree",ne.bind(void 0)],["SmeupTable",ae.bind(void 0)],["SmeupDataTable",ae.bind(void 0)]]);function te(e,n,a,o){var t,l,i,r,s,u,d,b;const k=n.cell,v=n.column,f=n.component,m=n.row;if(o===h.UPDATE){let n=function(e,n){var a;const o=!("INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName);let t=o?e.target.value:e.detail.value;return n===c.CHECKBOX&&o&&(t=e.target.checked?"off":"on"),n===c.DATE&&o&&(t=null===(a=e.detail)||void 0===a?void 0:a.value),n===c.NUMBER&&o&&(t=T.ketchup.math.formattedStringToNumberString(t,"")),t}(e,a);switch(g(k)?n=null==n?void 0:n.toUpperCase():j(k)&&(n=null==n?void 0:n.toLowerCase()),a){case c.AUTOCOMPLETE:k.decode=null===(l=null===(t=e.detail)||void 0===t?void 0:t.node)||void 0===l?void 0:l.value,k.data&&(k.data.initialValue=n,k.data.initialValueDecode=null===(r=null===(i=e.detail)||void 0===i?void 0:i.node)||void 0===r?void 0:r.value);break;case c.COMBOBOX:k.decode=null===(u=null===(s=e.detail)||void 0===s?void 0:s.node)||void 0===u?void 0:u.value;case c.DATE:case c.TIME:k.data&&(k.data.initialValue=n);break;case c.CHECKBOX:case c.SWITCH:n="on"===n.toLowerCase()?"0":"1",k.data&&(k.data.checked="0"!==n);break;case c.RADIO:if(k.data.data){const e=k.data.data.find((e=>e.checked));e&&(n=e.value)}break;case c.CHIP:case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:n=e.detail.stringifiedValues,k.data&&(k.data.data=e.detail.comp.data);break;case c.IMAGE_LIST:const a=e.detail.details.cell.obj;n=(null==a?void 0:a.k)?a.k:e.detail.details.cell.value}k.obj&&(k.obj.k=null==n?void 0:n.toString()),k.value=null==n?void 0:n.toString(),k.displayedValue=null,k.displayedValue=p(v,k)}if(f&&f.rootElement){const n=new CustomEvent(o,{bubbles:!0,cancelable:!0,composed:!0,detail:{comp:f,id:f.rootElement.id,cell:k,column:v,event:e,row:m,type:a,inputValue:(null===(b=null===(d=k.element)||void 0===d?void 0:d.querySelector("input"))||void 0===b?void 0:b.value)||null}});if(f.rootElement.dispatchEvent(n),o===h.UPDATE)try{f.refresh()}catch(e){T.ketchup.debug.logMessage(f,e,O.ERROR)}}}function ce(e){var n;return f.includes(null===(n=e.component)||void 0===n?void 0:n.rootElement.tagName)}function le(e){var n;return k.includes(null===(n=e.component)||void 0===n?void 0:n.rootElement.tagName)}export{V as F,E as a,A as b,B as c,D as d,M as e}
|