@sme.up/ketchup 11.0.0-SNAPSHOT-20241127101744 → 11.0.0-SNAPSHOT-20241127135309
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-9e9a291e.js → f-cell-7ac77d09.js} +4 -4
- package/dist/cjs/{f-cell-9e9a291e.js.map → f-cell-7ac77d09.js.map} +1 -1
- package/dist/cjs/{f-chip-43fb65b2.js → f-chip-62db6daa.js} +2 -2
- package/dist/cjs/{f-chip-43fb65b2.js.map → f-chip-62db6daa.js.map} +1 -1
- package/dist/cjs/{f-paginator-utils-ada85b68.js → f-paginator-utils-962be84b.js} +2 -2
- package/dist/cjs/{f-paginator-utils-ada85b68.js.map → f-paginator-utils-962be84b.js.map} +1 -1
- package/dist/cjs/{f-text-field-be868b63.js → f-text-field-6731b0c0.js} +2 -2
- package/dist/cjs/{f-text-field-be868b63.js.map → f-text-field-6731b0c0.js.map} +1 -1
- package/dist/cjs/index.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_28.cjs.entry.js +6 -6
- package/dist/cjs/kup-box.cjs.entry.js +6 -6
- 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 +4 -4
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-fd333383.js → kup-data-table-helper-1ce1380e.js} +2 -2
- package/dist/cjs/{kup-data-table-helper-fd333383.js.map → kup-data-table-helper-1ce1380e.js.map} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- 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-image-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-input-panel.cjs.entry.js +4 -4
- 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-a588c6da.js → kup-manager-3278d3e7.js} +35 -35
- package/dist/cjs/{kup-manager-a588c6da.js.map → kup-manager-3278d3e7.js.map} +1 -1
- 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-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +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/collection/managers/kup-theme/kup-theme-declarations.js +2 -2
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js.map +1 -1
- package/dist/components/kup-manager.js +34 -34
- package/dist/components/kup-manager.js.map +1 -1
- package/dist/esm/{f-cell-dc844fda.js → f-cell-283b3f5b.js} +4 -4
- package/dist/esm/{f-cell-dc844fda.js.map → f-cell-283b3f5b.js.map} +1 -1
- package/dist/esm/{f-chip-9103ffc9.js → f-chip-3b07fba5.js} +2 -2
- package/dist/esm/{f-chip-9103ffc9.js.map → f-chip-3b07fba5.js.map} +1 -1
- package/dist/esm/{f-paginator-utils-6edcb9c3.js → f-paginator-utils-67a94ced.js} +2 -2
- package/dist/esm/{f-paginator-utils-6edcb9c3.js.map → f-paginator-utils-67a94ced.js.map} +1 -1
- package/dist/esm/{f-text-field-80930605.js → f-text-field-93c7412d.js} +2 -2
- package/dist/esm/{f-text-field-80930605.js.map → f-text-field-93c7412d.js.map} +1 -1
- package/dist/esm/index.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_28.entry.js +6 -6
- package/dist/esm/kup-box.entry.js +6 -6
- 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 +4 -4
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-995fc188.js → kup-data-table-helper-a2344fed.js} +2 -2
- package/dist/esm/{kup-data-table-helper-995fc188.js.map → kup-data-table-helper-a2344fed.js.map} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- 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-image-list.entry.js +4 -4
- package/dist/esm/kup-input-panel.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-e9b17e17.js → kup-manager-3b90110b.js} +35 -35
- package/dist/esm/{kup-manager-e9b17e17.js.map → kup-manager-3b90110b.js.map} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +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/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-8a540599.entry.js → p-0d44839c.entry.js} +2 -2
- package/dist/ketchup/{p-2acd1e25.js → p-126de847.js} +2 -2
- package/dist/ketchup/{p-02503afe.entry.js → p-1a390165.entry.js} +2 -2
- package/dist/ketchup/{p-0facfbaf.js → p-1d4dac33.js} +2 -2
- package/dist/ketchup/{p-9bae40e3.entry.js → p-219ede32.entry.js} +2 -2
- package/dist/ketchup/{p-76573017.entry.js → p-22459af6.entry.js} +2 -2
- package/dist/ketchup/{p-ff4f5497.entry.js → p-2f521a85.entry.js} +2 -2
- package/dist/ketchup/{p-b44cdd98.entry.js → p-43550140.entry.js} +2 -2
- package/dist/ketchup/{p-b413dbae.entry.js → p-456fea9e.entry.js} +2 -2
- package/dist/ketchup/{p-854b4c27.entry.js → p-4a8b3d06.entry.js} +2 -2
- package/dist/ketchup/{p-043324c6.entry.js → p-57f6ff0a.entry.js} +2 -2
- package/dist/ketchup/{p-4175b5ce.entry.js → p-5838a1b3.entry.js} +2 -2
- package/dist/ketchup/{p-b2e6fcf9.entry.js → p-5a81ac48.entry.js} +2 -2
- package/dist/ketchup/{p-574e970a.entry.js → p-5cebaa3c.entry.js} +2 -2
- package/dist/ketchup/{p-cfb1d74e.entry.js → p-62b80962.entry.js} +2 -2
- package/dist/ketchup/{p-cfee9a84.entry.js → p-76919534.entry.js} +2 -2
- package/dist/ketchup/{p-a3ae1c57.entry.js → p-7b67c327.entry.js} +2 -2
- package/dist/ketchup/p-7f9cc866.js +2 -0
- package/dist/ketchup/{p-df8c4398.js.map → p-7f9cc866.js.map} +1 -1
- package/dist/ketchup/{p-40349e58.entry.js → p-95c9a84b.entry.js} +2 -2
- package/dist/ketchup/{p-c0ded373.entry.js → p-a04dc3b4.entry.js} +2 -2
- package/dist/ketchup/{p-d5ec4d2e.js → p-a732acc2.js} +2 -2
- package/dist/ketchup/{p-b6589b6a.entry.js → p-a836e463.entry.js} +2 -2
- package/dist/ketchup/{p-2a8866bf.entry.js → p-ae91cd5b.entry.js} +2 -2
- package/dist/ketchup/{p-70ea1441.entry.js → p-b8212425.entry.js} +2 -2
- package/dist/ketchup/{p-8a7e8043.entry.js → p-c2aa4406.entry.js} +2 -2
- package/dist/ketchup/{p-836b5606.entry.js → p-ce9d2c4a.entry.js} +2 -2
- package/dist/ketchup/{p-b3bee19d.entry.js → p-dc2c2d58.entry.js} +2 -2
- package/dist/ketchup/{p-87e71fb1.entry.js → p-dd1b11c4.entry.js} +2 -2
- package/dist/ketchup/{p-81876eef.entry.js → p-de66407e.entry.js} +2 -2
- package/dist/ketchup/{p-6b225612.js → p-e40e3a72.js} +2 -2
- package/dist/ketchup/{p-7fc2ece1.entry.js → p-e455bc8e.entry.js} +2 -2
- package/dist/ketchup/{p-c739bb15.entry.js → p-e4ff9d7b.entry.js} +2 -2
- package/dist/ketchup/{p-44a9afa7.entry.js → p-e5d7ffb4.entry.js} +2 -2
- package/dist/ketchup/{p-54f6e4df.js → p-ed30fa84.js} +2 -2
- package/dist/ketchup/{p-54f6e4df.js.map → p-ed30fa84.js.map} +1 -1
- package/dist/ketchup/{p-2deef1fb.entry.js → p-ed9a5426.entry.js} +2 -2
- package/dist/ketchup/{p-badd6e2e.entry.js → p-fa576a4b.entry.js} +2 -2
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +2 -2
- package/package.json +1 -1
- package/dist/ketchup/p-df8c4398.js +0 -2
- /package/dist/ketchup/{p-8a540599.entry.js.map → p-0d44839c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2acd1e25.js.map → p-126de847.js.map} +0 -0
- /package/dist/ketchup/{p-02503afe.entry.js.map → p-1a390165.entry.js.map} +0 -0
- /package/dist/ketchup/{p-0facfbaf.js.map → p-1d4dac33.js.map} +0 -0
- /package/dist/ketchup/{p-9bae40e3.entry.js.map → p-219ede32.entry.js.map} +0 -0
- /package/dist/ketchup/{p-76573017.entry.js.map → p-22459af6.entry.js.map} +0 -0
- /package/dist/ketchup/{p-ff4f5497.entry.js.map → p-2f521a85.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b44cdd98.entry.js.map → p-43550140.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b413dbae.entry.js.map → p-456fea9e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-854b4c27.entry.js.map → p-4a8b3d06.entry.js.map} +0 -0
- /package/dist/ketchup/{p-043324c6.entry.js.map → p-57f6ff0a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4175b5ce.entry.js.map → p-5838a1b3.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b2e6fcf9.entry.js.map → p-5a81ac48.entry.js.map} +0 -0
- /package/dist/ketchup/{p-574e970a.entry.js.map → p-5cebaa3c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-cfb1d74e.entry.js.map → p-62b80962.entry.js.map} +0 -0
- /package/dist/ketchup/{p-cfee9a84.entry.js.map → p-76919534.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a3ae1c57.entry.js.map → p-7b67c327.entry.js.map} +0 -0
- /package/dist/ketchup/{p-40349e58.entry.js.map → p-95c9a84b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c0ded373.entry.js.map → p-a04dc3b4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d5ec4d2e.js.map → p-a732acc2.js.map} +0 -0
- /package/dist/ketchup/{p-b6589b6a.entry.js.map → p-a836e463.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2a8866bf.entry.js.map → p-ae91cd5b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-70ea1441.entry.js.map → p-b8212425.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8a7e8043.entry.js.map → p-c2aa4406.entry.js.map} +0 -0
- /package/dist/ketchup/{p-836b5606.entry.js.map → p-ce9d2c4a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b3bee19d.entry.js.map → p-dc2c2d58.entry.js.map} +0 -0
- /package/dist/ketchup/{p-87e71fb1.entry.js.map → p-dd1b11c4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-81876eef.entry.js.map → p-de66407e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-6b225612.js.map → p-e40e3a72.js.map} +0 -0
- /package/dist/ketchup/{p-7fc2ece1.entry.js.map → p-e455bc8e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c739bb15.entry.js.map → p-e4ff9d7b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-44a9afa7.entry.js.map → p-e5d7ffb4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2deef1fb.entry.js.map → p-ed9a5426.entry.js.map} +0 -0
- /package/dist/ketchup/{p-badd6e2e.entry.js.map → p-fa576a4b.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,f as e,h as i,H as a,d as s}from"./p-d7c15b0e.js";import{k as o,g as n,s as l,h as c,e as p,au as h,O as f,av as r,V as u,d}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,f as e,h as i,H as a,d as s}from"./p-d7c15b0e.js";import{k as o,g as n,s as l,h as c,e as p,au as h,O as f,av as r,V as u,d}from"./p-ed30fa84.js";import{a as g}from"./p-e3062c19.js";import{F as m}from"./p-2b519589.js";import{c as k}from"./p-635bb4b3.js";import"./p-029c7cbe.js";var b;(function(t){t["customStyle"]="Custom style of the component.";t["data"]="Sets the data that will be used to display different components."})(b||(b={}));var x;(function(t){t["BOX"]="Box";t["BUTTON_LIST"]="Button List";t["CHART"]="Chart";t["CHIP"]="Chip";t["ECHART"]="Echart";t["DATATABLE"]="Datatable";t["JSON"]="JSON";t["TREE"]="Tree"})(x||(x={}));const y=".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: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:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);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{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;width:700px}#kup-component,.magic-box-wrapper{height:100%;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-subtle);box-sizing:border-box;display:flex;flex-direction:column}.actions{align-items:center;background-color:var(--kup-title-background-color);display:inline-flex;height:52px;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;overflow:auto;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";const v=y;const w=class{constructor(e){t(this,e);this.dragHandler=null;this.kupManager=o();this.textArea=null;this.wrapperRef=null;this.display=x.DATATABLE;this.customStyle="";this.data=null}async getProps(t){return n(this,b,t)}async refresh(){e(this)}async setProps(t){l(this,b,t)}comboboxProps(){const t=[];for(const e in x){if(Object.prototype.hasOwnProperty.call(x,e)){t.push({id:x[e],selected:false,value:x[e]})}}return{data:{"kup-list":{data:t,id:"kup-debug-theme-changer-list"},"kup-text-field":{emitSubmitEventOnEnter:false,inputType:"text",label:this.kupManager.language.translate(c.VIEW_AS)}},id:"comp-switcher",initialValue:this.display,isSelect:true,["onKup-combobox-itemclick"]:t=>{this.display=t.detail.value}}}setContent(){const t=!!(this.data&&this.data.columns&&this.data.columns.length>0);const e=[];const a={};if(this.display===x.JSON){a.initialValue=this.data?JSON.stringify(this.data,null,2):"";a.textArea=true;e.push(i("kup-text-field",Object.assign({class:"kup-full-width kup-full-height"},a,{ref:t=>this.textArea=t,"onkup-textfield-input":t=>{try{this.data=JSON.parse(t.detail.value)}catch(t){this.data={columns:[{name:"ERROR",title:"Error"}],rows:[{cells:{ERROR:{value:"Invalid JSON:"+t}}}]}}}})))}else if(!t){e.push(i("div",{class:"empty"},i(m,{sizeY:"100px",resource:"move_to_inbox"}),i("div",{class:"empty-text"},this.kupManager.language.translate(c.DROP_YOUR_DATA))))}else{switch(this.display){case x.BOX:a.data=this.data;e.push(i("kup-box",Object.assign({},a)));break;case x.BUTTON_LIST:a.data=this.data;e.push(i("kup-button-list",Object.assign({},a)));break;case x.CHIP:a.data=this.data;e.push(i("kup-chip",Object.assign({},a)));break;case x.CHART:case x.ECHART:a.data=this.data;a["series"]=[];a["axis"]=null;for(let t=0;t<this.data.columns.length;t++){const e=this.data.columns[t];if(e.obj&&this.kupManager.objects.isNumber(e.obj)||a["axis"]!==null){if(this.display===x.CHART){a["series"].push({code:e.name,decode:e.title})}else{a["series"].push(e.name)}}else{a["axis"]=e.name}}if(a["series"].length===0){this.kupManager.debug.logMessage(this,"Not enough numerical columns to display a chart!",p.WARNING)}if(!a["axis"]){this.kupManager.debug.logMessage(this,"No axis for the chart!",p.WARNING)}if(this.display===x.CHART){e.push(i("kup-chart",Object.assign({},a)))}else{e.push(i("kup-echart",Object.assign({},a)))}break;case x.DATATABLE:a.data=this.data;a["autoFillMissingCells"]=true;e.push(i("kup-data-table",Object.assign({},a)));break;case x.TREE:a.data=this.data;e.push(i("kup-tree",Object.assign({class:"kup-full-width"},a)));break;default:this.kupManager.debug.logMessage(this,"Display mode not supported ("+this.display+")!",p.ERROR);return}}return e}updateData(t){{const e=Object.assign({},this.data);const i=t.detail.sourceElement&&t.detail.sourceElement.column?t.detail.sourceElement.column:null;const a=t.detail.sourceElement&&t.detail.sourceElement.row?t.detail.sourceElement.row:null;if(i&&i.name){if(!e.columns){e.columns=[i]}else{const t=this.data.columns.find((t=>t.name===i.name));if(!t){e.columns.push(i)}}}else{this.kupManager.debug.logMessage(this,"Invalid column received.",p.WARNING)}if(a){if(!e.rows){e.rows=[a]}else{e.rows.push(a)}}this.data=e;if(this.data&&this.textArea){try{this.textArea.setValue(JSON.stringify(this.data,null,2))}catch(t){this.textArea.setValue("Invalid JSON:"+t)}}}}componentWillLoad(){this.kupManager.debug.logLoad(this,false);this.kupManager.language.register(this);this.kupManager.theme.register(this)}componentDidLoad(){this.rootElement.addEventListener(h,(t=>this.updateData(t)));this.dragHandler=this.rootElement.shadowRoot.querySelector("#drag-handle");this.kupManager.interact.dialogify(this.rootElement,this.dragHandler);this.kupManager.interact.dropzone(this.wrapperRef,{accept:`[${f}],[${r}]`},{dispatcher:this.rootElement,type:u.MAGICBOX});this.kupManager.debug.logLoad(this,true)}componentWillRender(){this.kupManager.debug.logRender(this,false)}componentDidRender(){this.kupManager.debug.logRender(this,true)}render(){return i(a,{key:"8f04a5029dad9d7d8f3673124a6fb954880719d5"},i("style",{key:"af43ffc44c345efb6982aecac7ffeb7469a1e1ab"},this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{key:"4da32884b8cfaee501fe98de3ad61dbfd40644f1",id:k},i("div",{key:"3ae6ee9f2ee07d1ace113fe223bf45fe907eb1d2",class:"magic-box-wrapper"},i("div",{key:"7331459e7beeecbad1f94907c5dfc37e6fd77221",class:"actions",id:"drag-handle"},i("kup-combobox",Object.assign({key:"cf49975df5a5aa923c031c64ecee9a81ae4ad0bc"},this.comboboxProps())),i("kup-button",{key:"9268ce09ec663aa4e00a82ba0fadef493422d12f",styling:g.FLAT,icon:"delete",label:"Reset","onkup-button-click":()=>{this.data=null}}),i("kup-button",{key:"3724463433b93aa9ae13ae19d67be8fc39c702f6",id:"close-dialog",customStyle:`:host{${d.PRIMARY}: var(${d.TITLE});}`,icon:"clear","onkup-button-click":()=>{this.kupManager.hideMagicBox()}})),i("div",{key:"448858d039c7cd0ea8e756d9ad66af2b3baf5c52",class:"content",ref:t=>this.wrapperRef=t},this.setContent()))))}disconnectedCallback(){this.kupManager.interact.unregister([this.rootElement,this.wrapperRef]);this.kupManager.language.unregister(this);this.kupManager.theme.unregister(this)}get rootElement(){return s(this)}};w.style=v;export{w as kup_magic_box};
|
|
2
|
+
//# sourceMappingURL=p-ed9a5426.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,f as i,h as n,F as a,H as f,d as o}from"./p-d7c15b0e.js";import{k as p,g as s,s as h,h as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,f as i,h as n,F as a,H as f,d as o}from"./p-d7c15b0e.js";import{k as p,g as s,s as h,h as r}from"./p-ed30fa84.js";import{c as l}from"./p-635bb4b3.js";import"./p-029c7cbe.js";var c;(function(t){t["data"]="Data of the component containing url or html"})(c||(c={}));const m=".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: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:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);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{height:100%;width:100%;display:block}#kup-component{height:100%}#kup-component .kup-htm.is-link{height:100%}#kup-component .kup-htm.is-link a{float:left}#kup-component .kup-htm.is-link iframe{min-height:600px;width:100%}";const g=m;var u=undefined&&undefined.__classPrivateFieldGet||function(t,e,i,n){if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?n:i==="a"?n.call(t):n?n.value:e.get(t)};var k;const d=class{constructor(i){t(this,i);this.kupReady=e(this,"kup-htm-ready",6);k.set(this,p());this.data=undefined}async getProps(t){return s(this,c,t)}async refresh(){i(this)}async setProps(t){h(this,c,t)}componentWillLoad(){u(this,k,"f").debug.logLoad(this,false);u(this,k,"f").theme.register(this);u(this,k,"f").language.register(this)}componentDidLoad(){this.kupReady.emit({comp:this,id:this.rootElement.id});u(this,k,"f").debug.logLoad(this,true)}componentWillRender(){u(this,k,"f").debug.logRender(this,false)}componentDidRender(){u(this,k,"f").debug.logRender(this,true)}render(){const t=u(this,k,"f").objects.isLink(this.data.obj);return n(f,{key:"e973cfb80ddc6aba894dd2994b3be82fc93a07bc"},n("style",{key:"cd5f18859b77dfbaa1008cfe37183e18780b8e38"},u(this,k,"f").theme.setKupStyle(this.rootElement)),n("div",{key:"69a912436a0c644bbe0ca38efe2aff60c31b15e4",id:l},n("div",{key:"5e057d8c92cbfd479a57c10c205e96be51475007",class:`kup-htm ${t?"is-link":""}`},t?n(a,null,n("a",{href:this.data.value,target:"_blank",rel:"noopener noreferrer"},u(this,k,"f").language.translate(r.OPEN_IN_NEW_TAB)),n("iframe",{src:this.data.value,frameBorder:"0"})):n("div",{innerHTML:this.data.value}))))}disconnectedCallback(){u(this,k,"f").theme.unregister(this);u(this,k,"f").language.unregister(this)}get rootElement(){return o(this)}};k=new WeakMap;d.style=g;export{d as kup_htm};
|
|
2
|
+
//# sourceMappingURL=p-fa576a4b.entry.js.map
|
|
@@ -204,7 +204,7 @@ export declare enum KupThemeIconValues {
|
|
|
204
204
|
SEARCH = "--kup-search-icon"
|
|
205
205
|
}
|
|
206
206
|
export declare enum KupThemeFonts {
|
|
207
|
-
IBM_PLEX_MONO = "
|
|
208
|
-
IBM_PLEX_SANS = "
|
|
207
|
+
IBM_PLEX_MONO = "IBMPlexMono-Regular",
|
|
208
|
+
IBM_PLEX_SANS = "IBMPlexSans-Regular"
|
|
209
209
|
}
|
|
210
210
|
export declare const KupThemeFontFamilyMap: Record<KupThemeFonts, string>;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./p-d7c15b0e.js";import{ap as t,r as n,a as l,h as o}from"./p-54f6e4df.js";import{F as r}from"./p-10dfd311.js";import{a as i}from"./p-e3062c19.js";var s;(function(e){e["SIMPLE"]="simple";e["FULL"]="full"})(s||(s={}));const a=document.documentElement;const u=u=>{if(!u.perPage){u.perPage=10}const m=Math.ceil(u.max/u.perPage);const b=c(u,m);const h=p(u);const k={"kup-list":{data:b},"kup-text-field":{label:a.ketchup.language.translate(t.PAGE),helper:a.ketchup.language.translate(t.TOTAL)+`: ${m}`,helperWhenFocused:true,inputType:"number",max:m,min:1}};const g={"kup-list":{data:h},"kup-text-field":{label:a.ketchup.language.translate(n.ROWS)+" / "+a.ketchup.language.translate(t.PAGE),helper:a.ketchup.language.translate(n.TOTAL)+`: ${u.max}`,helperWhenFocused:true,inputType:"number",max:u.max,min:1}};return e("div",Object.assign({class:`f-paginator ${u.mode?u.mode:""} ${u.wrapperClass?u.wrapperClass:""}`},u.dataSet,{id:u.id,title:u.title}),u.onLoadMore?e(r,{icon:"plus",onClick:u.onLoadMore,label:a.ketchup.language.translate(o.LOAD_MORE),sizing:l.SMALL,styling:i.FLAT,wrapperClass:"load-more-button kup-neutral"}):null,e("kup-combobox",{class:"rows-selector",data:g,initialValue:u.perPage.toString(),"onkup-combobox-change":u.onRowsChange}),e("kup-combobox",{class:"page-selector",data:k,initialValue:u.currentPage.toString(),"onkup-combobox-change":u.onPageChange}),e("div",{class:"arrow-wrapper"},u.mode!==s.SIMPLE?e(r,{icon:"chevron_left",disabled:f(u),onClick:u.onPrevPage,sizing:l.SMALL,styling:i.FLAT,wrapperClass:"kup-neutral prev-page"}):null,u.mode!==s.SIMPLE?e(r,{icon:"chevron_right",disabled:d(u),onClick:u.onNextPage,sizing:l.SMALL,styling:i.FLAT,wrapperClass:"kup-neutral next-page"}):null))};function c(e,t){const n=[];for(let l=1;l<=t;l++){const t=l==e.currentPage;n.push({id:l.toString(),selected:t,value:l.toString()})}return n}function p(e){const t=[];let n=e.perPage;if(n===0){return t}while(n<e.max){const l=n==e.perPage;t.push({id:n.toString(),selected:l,value:n.toString()});n=n*2}const l=e.max==e.perPage;t.push({id:e.max.toString(),selected:l,value:e.max.toString()});return t}function d(e){return e.currentPage*e.perPage>=e.max}function f(e){return e.currentPage==1}const m=document.documentElement;function b(e,t,n){if(m.ketchup.math.isNumber(e)){const l=Math.ceil(t/n);let o=e;if(o>l){o=l}if(o<1){o=1}return o}return null}function h(e,t){if(m.ketchup.math.isNumber(e)){let n=e;if(n>t){n=t}if(n<1){n=1}return n}return null}export{u as F,b as p,h as r};
|
|
2
|
-
//# sourceMappingURL=p-df8c4398.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|