@sme.up/ketchup 11.0.0-SNAPSHOT-20250520071859 → 11.0.0-SNAPSHOT-20250521130126
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-db3d9348.js → f-cell-24d64a1a.js} +1 -1
- package/dist/cjs/{f-chip-f2d6124b.js → f-chip-811a95bb.js} +10 -1
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +45 -32
- package/dist/cjs/kup-box.cjs.entry.js +2 -2
- package/dist/cjs/kup-calendar.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-input-panel.cjs.entry.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +40 -22
- package/dist/collection/components/kup-tree/kup-tree.js +7 -7
- package/dist/collection/f-components/f-chip/f-chip-declarations.js +1 -0
- package/dist/collection/f-components/f-chip/f-chip.js +8 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +3 -4
- package/dist/components/kup-accordion.js +1 -1
- package/dist/components/kup-activity-timeline.js +1 -1
- 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 +1 -1
- package/dist/components/kup-card-list.js +2 -2
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +2 -2
- package/dist/components/kup-lazy.js +1 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +3 -3
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-object-field.js +1 -1
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-planner.js +1 -1
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- 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 +1 -1
- package/dist/components/kup-typography-list.js +1 -1
- package/dist/components/kup-typography.js +1 -1
- package/dist/components/{p-a6181692.js → p-0e541635.js} +1 -1
- package/dist/components/{p-652331f5.js → p-17c1377b.js} +53 -31
- package/dist/components/{p-4f8f83ed.js → p-20f1807d.js} +1 -1
- package/dist/components/{p-be991ac5.js → p-e0285b06.js} +1 -1
- package/dist/components/{p-8387161b.js → p-e66a1c48.js} +1 -1
- package/dist/esm/{f-cell-69a81706.js → f-cell-3bf5d8cc.js} +1 -1
- package/dist/esm/{f-chip-29242e70.js → f-chip-0264147f.js} +10 -1
- package/dist/esm/kup-autocomplete_29.entry.js +45 -32
- package/dist/esm/kup-box.entry.js +2 -2
- package/dist/esm/kup-calendar.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +2 -2
- package/dist/esm/kup-input-panel.entry.js +2 -2
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-03bd0a3e.entry.js → p-2f988171.entry.js} +1 -1
- package/dist/ketchup/p-45d1929e.js +1 -0
- package/dist/ketchup/{p-94e163ca.entry.js → p-68cf480d.entry.js} +1 -1
- package/dist/ketchup/{p-9f4714fd.js → p-6ce19522.js} +1 -1
- package/dist/ketchup/{p-2bc38560.entry.js → p-965c0398.entry.js} +1 -1
- package/dist/ketchup/{p-eb7881fc.entry.js → p-a2a337ce.entry.js} +1 -1
- package/dist/ketchup/p-c9196041.entry.js +8 -0
- package/dist/ketchup/{p-f1b21c30.entry.js → p-d0ab1b7d.entry.js} +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -1
- package/dist/types/components.d.ts +1 -1
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +3 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -2
- package/package.json +1 -1
- package/dist/ketchup/p-7375d456.js +0 -1
- package/dist/ketchup/p-a8a05ef3.entry.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,f as e,h as s,H as n,d as a}from"./p-710d0a7d.js";import{k as o,i as p,az as
|
|
1
|
+
import{r as t,c as i,f as e,h as s,H as n,d as a}from"./p-710d0a7d.js";import{k as o,i as p,az as h,g as f,s as l,Y as r,aA as c,b as m,aB as d}from"./p-8610d5b5.js";import{c as g}from"./p-635bb4b3.js";import{F as u}from"./p-c4224227.js";import{F as k}from"./p-6ce19522.js";import"./p-1ee561ba.js";import"./p-e3062c19.js";import"./p-3cab6420.js";import"./p-9f9428d1.js";import"./p-45d1929e.js";import"./p-da694791.js";import"./p-e705eb4a.js";var y,x=function(t,i,e,s){if("a"===e&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!s:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?s:"a"===e?s.call(t):s?s.value:i.get(t)};const b=class{constructor(e){t(this,e),this.kupCellSubmitClick=i(this,"kup-cell-submit-click",6),this.kupCellUpload=i(this,"kup-cell-upload",6),y.set(this,o()),this.customStyle="",this.data=null,this.density=p.NONE,this.dragEnabled=!1,this.showSubmit=!1,this.submitPosition=h.right}async addCssClasses(t){if(this.data.cssClass||(this.data.cssClass=""),t)for(let i=0;i<t.length;i++){const e=t[i];this.data.cssClass.indexOf(e)<0&&(this.data.cssClass+=` ${e}`)}this.refresh()}async getProps(t){return f(this,d,t)}async refresh(){e(this)}async removeCssClasses(t){if(this.data.cssClass){if(t)for(let i=0;i<t.length;i++){const e=t[i];this.data.cssClass.indexOf(e)>0&&(this.data.cssClass=this.data.cssClass.replace(new RegExp(e,"g"),""))}this.refresh()}}async setProps(t){l(this,d,t)}didRenderInteractables(){if(this.dragEnabled){const t=()=>({cell:this.data,column:this.generateColumn(),id:this.rootElement.id,multiple:!1,row:this.generateRow()});x(this,y,"f").interact.draggable(this.rootElement.shadowRoot.querySelector("#"+g),{cursorChecker:()=>null},{callback:t},r.BADGE)}}generateColumn(){return{name:"KUPCELL",title:void 0}}generateRow(){const t=this.generateColumn(),i={cells:{}};return i.cells[t.name]=this.data,i}submitClick(t){t.stopPropagation(),this.kupCellSubmitClick.emit({comp:this,id:this.rootElement.id,cell:this.data})}upload(t){t.stopPropagation(),this.kupCellUpload.emit(t.detail)}componentWillLoad(){x(this,y,"f").dates.register(this),x(this,y,"f").debug.logLoad(this,!1),x(this,y,"f").language.register(this),x(this,y,"f").theme.register(this)}componentDidLoad(){x(this,y,"f").debug.logLoad(this,!0)}componentWillRender(){x(this,y,"f").debug.logRender(this,!1)}componentDidRender(){this.didRenderInteractables(),x(this,y,"f").debug.logRender(this,!0)}render(){const t={cell:this.data,column:this.generateColumn(),component:this,density:this.density,editable:this.data.isEditable,renderKup:!0,row:this.generateRow()};return s(n,{key:"b450035080d728f4a9e1b192b14e630b36bf879e","onKup-file-upload-upload":this.upload.bind(this)},s("style",{key:"1e895664baa2c86e300be091908403873b96e7f6"},x(this,y,"f").theme.setKupStyle(this.rootElement)),s("div",{key:"75ada02dbdd167998835d443242285d7253a6316",id:g,style:this.showSubmit?{display:"flex","flex-direction":c(this.submitPosition),"align-items":"center",gap:"0.5rem"}:{}},s(k,Object.assign({key:"12365188d85255679404e8e399dfda9f89d8ac51"},t)),this.showSubmit?s(u,{buttonType:"submit",label:x(this,y,"f").language.translate(m.CONFIRM),wrapperClass:"form__submit",onClick:t=>{this.submitClick(t)}}):null))}disconnectedCallback(){x(this,y,"f").dates.unregister(this),x(this,y,"f").language.unregister(this),x(this,y,"f").theme.unregister(this)}get rootElement(){return a(this)}};y=new WeakMap,b.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{display:block;height:fit-content;width:100%}#kup-component{height:fit-content;width:100%}";export{b as kup_cell}
|
|
@@ -467,7 +467,7 @@ export declare class KupDataTable {
|
|
|
467
467
|
* Opens the column menu of the given column.
|
|
468
468
|
* @param {string} column - Name of the column.
|
|
469
469
|
*/
|
|
470
|
-
openColumnMenu(
|
|
470
|
+
openColumnMenu(columnName: string, wrapperClass: string): Promise<void>;
|
|
471
471
|
/**
|
|
472
472
|
* This method is used to trigger a new render of the component.
|
|
473
473
|
*/
|
|
@@ -1763,7 +1763,7 @@ export namespace Components {
|
|
|
1763
1763
|
* Opens the column menu of the given column.
|
|
1764
1764
|
* @param column - Name of the column.
|
|
1765
1765
|
*/
|
|
1766
|
-
"openColumnMenu": (
|
|
1766
|
+
"openColumnMenu": (columnName: string, wrapperClass: string) => Promise<void>;
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Current selected page set on component load
|
|
1769
1769
|
*/
|
|
@@ -9,9 +9,12 @@ export interface FChipsProps extends FComponent {
|
|
|
9
9
|
displayMode?: ItemsDisplayMode;
|
|
10
10
|
onBlur?: ((chip: KupChipNode, e: FocusEvent) => void)[];
|
|
11
11
|
onClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
|
|
12
|
+
onContextMenu?: ((chip: KupChipNode, e: PointerEvent) => void)[];
|
|
12
13
|
onExpansionClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
|
|
14
|
+
onClearFilterClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
|
|
13
15
|
onFocus?: ((chip: KupChipNode, e: FocusEvent) => void)[];
|
|
14
16
|
onIconClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
|
|
17
|
+
hasFilter?: boolean[];
|
|
15
18
|
primary?: boolean;
|
|
16
19
|
sizing?: FChipSize;
|
|
17
20
|
styling?: FChipStyling;
|
|
@@ -28,10 +28,10 @@ export declare class KupColumnMenu {
|
|
|
28
28
|
*/
|
|
29
29
|
close(card: HTMLKupCardElement): void;
|
|
30
30
|
/**
|
|
31
|
-
* Function called to reposition the column menu card to the appropriate
|
|
31
|
+
* Function called to reposition the column menu card to the appropriate selector.
|
|
32
32
|
* @param {KupDataTable | KupTree} comp - Component using the column menu.
|
|
33
33
|
*/
|
|
34
|
-
reposition(comp: KupDataTable | KupTree, card: HTMLKupCardElement): void;
|
|
34
|
+
reposition(comp: KupDataTable | KupTree, card: HTMLKupCardElement, wrapperSelector: string): void;
|
|
35
35
|
/**
|
|
36
36
|
* Function called by the column menu card to prepare its 'data' prop.
|
|
37
37
|
* @param {KupDataTable | KupTree} comp - Component using the column menu.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./p-710d0a7d.js";import{F as l}from"./p-3cab6420.js";import{I as n,d as i,b as c}from"./p-8610d5b5.js";function r(e,l,i){const{id:c,value:r}=e;if(null==c&&r)return r;if(c&&null==r)return c;switch(l){case n.CODE:return c;case n.DESCRIPTION:return r;case n.CODE_AND_DESC:case n.CODE_AND_DESC_ALIAS:return c&&r?c+i+r:c||r;case n.DESC_AND_CODE:return r&&c?r+i+c:r||c;default:return c}}function s(e,l,i,c,s,t){const a=!!(i&&l&&l.data);let u="",o="",p=null;null!=t&&(p=t.detail.selected),null==p&&null!=e&&a&&(p=function(e,l,i){if(e&&e.data){let c=!1,s=null;for(let t=0;t<e.data.length;t++){let a=r(e.data[t],""==l?n.DESCRIPTION:i," - ");e.data[t].selected=!1,c||a.toString().toLowerCase()!=l.toString().toLowerCase()||(s=e.data[t],s.selected=!0,c=!0)}if(1==c)return s}return function(e,l){if(e&&e.data){let n=!1,i=null;for(let c=0;c<e.data.length;c++)e.data[c].selected=!1,n||e.data[c].id.toString().toLowerCase()!=l.toString().toLowerCase()||(i=e.data[c],i.selected=!0,n=!0);if(1==n)return i;for(let c=0;c<e.data.length;c++)if(e.data[c].value.toString().toLowerCase()==l.toString().toLowerCase()){i=e.data[c],i.selected=!0,n=!0;break}if(1==n)return i}return null}(e,l)}(l,e,s),i.data=[...l.data]),null==p&&null==e&&l&&(p=function(e){if(e.data)for(let l=0;l<e.data.length;l++)if(e.data[l].selected)return e.data[l];return null}(l));let d=null;null==p?(p={id:null==e?"":e,value:null==e?"":e},u=p.id,o=p.id,d=p.id):(u=r(p,c," - "),o=r(p,""==u?n.DESCRIPTION:s," - "),d=r(p,n.CODE," - "));const h=a?l.data.find((e=>e.id===d)):null;return{value:u,displayedValue:o,node:h,exists:!!h}}var t,a,u;!function(e){e.CHOICE="choice",e.FILTER="filter",e.INPUT="input",e.STANDARD="standard"}(t||(t={})),function(e){e.OUTLINED="outlined",e.RAISED="raised"}(a||(a={})),function(e){e.SMALL="small",e.MEDIUM="medium"}(u||(u={}));const o=document.documentElement,p=s=>{s.styling||(s.styling=a.RAISED),s.type||(s.type=t.STANDARD),s.displayMode||(s.displayMode=n.DESCRIPTION);const u=s.type.toLowerCase()===t.CHOICE,p=s.type.toLowerCase()===t.FILTER,d=s.type.toLowerCase()===t.INPUT,h=s.styling.toLowerCase()===a.OUTLINED,f={"chip-set":!0,"chip-set--choice":!!u,"chip-set--filter":!!p,"chip-set--input":!!d,"chip--outlined":!!h,"chip--raised":!h,[`chip--${s.sizing||"extra-small"}`]:!0};return e("div",Object.assign({class:`f-chip ${s.danger?"kup-danger":""} ${s.info?"kup-info":""} ${s.secondary?"kup-secondary":""} ${s.success?"kup-success":""} ${s.warning?"kup-warning":""} ${s.wrapperClass?s.wrapperClass:""} ${s.primary?"kup-primary":""}`},s.dataSet,{id:s.id,title:s.title}),e("div",{class:f,role:"grid"},function(s,t,a,u){const p=[];for(let d=0;s.data&&d<s.data.length;d++){const h=[];function f(n,r){const t=!!(n.children&&n.children.length>0),a=!(!t||!n.isExpanded),u={"--kup_chip_indent_offset":r.toString()},p=s.disabled;if(h.push(e("div",{class:"chip-set__wrapper "+(t&&!a?"chip-set__wrapper--hidden-children":"")},e("div",{class:"chip-set__indent",style:u}),t?e(l,{onClick:s.onExpansionClick&&s.onExpansionClick[d]?s.onExpansionClick[d].bind(s.onExpansionClick[d],n):null,resource:`${i.DROPDOWN}`,sizeX:"16px",sizeY:"16px",title:o.ketchup.language.translate(c.EXPAND)+"/"+o.ketchup.language.translate(c.COLLAPSE)+" (CTRL + Click)",wrapperClass:"dropdown-icon"}):r?e(l,{resource:"blank",sizeX:"16px",sizeY:"16px",wrapperClass:"dropdown-icon"}):null,_(n,p))),a)for(let e=0;e<n.children.length;e++)n.children[e]&&f(n.children[e],r+1)}function _(c,o){let p=`chip ${c.icon&&!c.value?"chip--only-icon":""} ${o&&"chip--disabled"}`,h=[],f="chip__icon chip__icon--leading";(a||t)&&c.checked&&(p+=" chip--selected",a&&(f+=" chip__icon--leading-hidden")),c.icon&&h.push(e(l,Object.assign({},{color:t&&c.checked?"var(--kup_chip_primary_color)":"var(--kup_chip_text_color)",resource:c.icon,placeholderResource:c.placeholderIcon,sizeX:"16px",sizeY:"16px",wrapperClass:f}))),a&&h.push(e("span",{class:"chip__checkmark"},e("svg",{class:"chip__checkmark-svg",viewBox:"-2 -3 30 30"},e("path",{class:"chip__checkmark-path",fill:"none",stroke:"black",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}))));let _=r(c,""==c.value?n.CODE:s.displayMode," - ");return e("div",{class:p,"data-value":c.id,onClick:s.onClick&&s.onClick[d]?s.onClick[d].bind(s.onClick[d],c):null,role:"row",title:c.title?c.title:""},e("span",{class:"chip-set__indent"}),h,e("span",{role:"gridcell"},e("span",{role:"button",tabindex:d,class:"chip__primary-action",value:c.id,checked:c.checked,onBlur:s.onBlur&&s.onBlur[d]?s.onBlur[d].bind(s.onBlur[d],c):null,onFocus:s.onFocus&&s.onFocus[d]?s.onFocus[d].bind(s.onFocus[d],c):null},e("span",{class:"chip__text"},_))),u?e("span",{role:"gridcell"},e("span",{tabindex:"-1",class:`kup-icon chip__icon ${i.CLEAR.replace("--","")}`,onClick:s.onIconClick&&s.onIconClick[d]?s.onIconClick[d].bind(s.onIconClick[d],c):null})):null)}f(s.data[d],0),p.push(e("div",{class:"chip-set__item"},...h))}return p}(s,u,p,d)))};export{t as F,u as a,a as b,s as c,p as d,r as g}
|