@sme.up/ketchup 7.2.0 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/cjs/{f-button-1d63db82.js → f-button-5856cd74.js} +1 -1
  2. package/dist/cjs/{f-cell-abc20cee.js → f-cell-9d7a9e97.js} +4 -4
  3. package/dist/cjs/{f-chip-ae40e47a.js → f-chip-675ed121.js} +2 -2
  4. package/dist/cjs/{f-image-c5f5880a.js → f-image-48facc89.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-e8449af2.js → f-paginator-utils-0c1227f6.js} +2 -2
  6. package/dist/cjs/{f-text-field-d200b904.js → f-text-field-3d8e7417.js} +1 -1
  7. package/dist/cjs/ketchup.cjs.js +1 -1
  8. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +52 -48
  10. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  11. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  12. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +13 -4
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
  16. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  18. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
  21. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  23. package/dist/cjs/{kup-manager-bbbe0491.js → kup-manager-22bb9699.js} +3 -4
  24. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  25. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  30. package/dist/cjs/loader.cjs.js +1 -1
  31. package/dist/collection/assets/card.js +10 -0
  32. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +3 -3
  33. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +10 -0
  34. package/dist/collection/components/kup-card/kup-card.css +12 -1
  35. package/dist/collection/components/kup-dash-list/kup-dash-list.js +12 -3
  36. package/dist/collection/components/kup-dialog/kup-dialog.css +1 -0
  37. package/dist/collection/components/kup-form/kup-form.js +24 -0
  38. package/dist/collection/managers/kup-manager/kup-manager.js +3 -4
  39. package/dist/components/kup-autocomplete2.js +2137 -2259
  40. package/dist/components/kup-dash-list.js +12 -3
  41. package/dist/esm/{f-button-a8843fb2.js → f-button-eedbdba1.js} +1 -1
  42. package/dist/esm/{f-cell-aa0acc55.js → f-cell-90a418d2.js} +4 -4
  43. package/dist/esm/{f-chip-4555fb98.js → f-chip-45e7b3f6.js} +2 -2
  44. package/dist/esm/{f-image-fed7623c.js → f-image-3026f0fe.js} +1 -1
  45. package/dist/esm/{f-paginator-utils-8c88fab3.js → f-paginator-utils-6369da7c.js} +2 -2
  46. package/dist/esm/{f-text-field-b74f4b58.js → f-text-field-3b70a6f0.js} +1 -1
  47. package/dist/esm/ketchup.js +1 -1
  48. package/dist/esm/kup-accordion.entry.js +2 -2
  49. package/dist/esm/kup-autocomplete_27.entry.js +52 -48
  50. package/dist/esm/kup-box.entry.js +7 -7
  51. package/dist/esm/kup-calendar.entry.js +4 -4
  52. package/dist/esm/kup-cell.entry.js +5 -5
  53. package/dist/esm/kup-dash-list.entry.js +13 -4
  54. package/dist/esm/kup-dash_2.entry.js +1 -1
  55. package/dist/esm/kup-dashboard.entry.js +4 -4
  56. package/dist/esm/kup-drawer.entry.js +1 -1
  57. package/dist/esm/kup-echart.entry.js +1 -1
  58. package/dist/esm/kup-family-tree.entry.js +3 -3
  59. package/dist/esm/kup-iframe.entry.js +1 -1
  60. package/dist/esm/kup-image-list.entry.js +6 -6
  61. package/dist/esm/kup-lazy.entry.js +1 -1
  62. package/dist/esm/kup-magic-box.entry.js +2 -2
  63. package/dist/esm/{kup-manager-311c87ab.js → kup-manager-cad802b1.js} +3 -4
  64. package/dist/esm/kup-nav-bar.entry.js +1 -1
  65. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  66. package/dist/esm/kup-photo-frame.entry.js +1 -1
  67. package/dist/esm/kup-probe.entry.js +1 -1
  68. package/dist/esm/kup-qlik.entry.js +1 -1
  69. package/dist/esm/kup-snackbar.entry.js +3 -3
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/ketchup/ketchup.esm.js +1 -1
  72. package/dist/ketchup/{p-1d7f90be.entry.js → p-138ac8b9.entry.js} +1 -1
  73. package/dist/ketchup/{p-fb6ee94f.entry.js → p-1ad48de4.entry.js} +1 -1
  74. package/dist/ketchup/{p-5f920acd.entry.js → p-1cd45a72.entry.js} +1 -1
  75. package/dist/ketchup/{p-6ae98bb0.entry.js → p-2217be0a.entry.js} +1 -1
  76. package/dist/ketchup/{p-910249f5.entry.js → p-23288eed.entry.js} +1 -1
  77. package/dist/ketchup/{p-4c0206cf.entry.js → p-263b2c73.entry.js} +1 -1
  78. package/dist/ketchup/{p-028e4c1d.entry.js → p-2d8b5bba.entry.js} +1 -1
  79. package/dist/ketchup/{p-7f9912b1.js → p-32dc31ad.js} +1 -1
  80. package/dist/ketchup/{p-cb28bc8c.js → p-4505a48d.js} +1 -1
  81. package/dist/ketchup/{p-115220b5.entry.js → p-4e68f629.entry.js} +1 -1
  82. package/dist/ketchup/{p-1e5fda58.entry.js → p-73becdb8.entry.js} +1 -1
  83. package/dist/ketchup/{p-06d55b09.entry.js → p-78b093e3.entry.js} +1 -1
  84. package/dist/ketchup/{p-48be0d93.js → p-7bd28eac.js} +1 -1
  85. package/dist/ketchup/{p-17d827e8.entry.js → p-97afbd71.entry.js} +1 -1
  86. package/dist/ketchup/{p-09b2668f.entry.js → p-9f1184cd.entry.js} +1 -1
  87. package/dist/ketchup/{p-7e9f8adf.js → p-a1adab40.js} +1 -1
  88. package/dist/ketchup/p-a7ae0b4d.js +1 -0
  89. package/dist/ketchup/{p-3a0cf42a.entry.js → p-a89f0884.entry.js} +1 -1
  90. package/dist/ketchup/{p-388d18a1.js → p-ae3e0d31.js} +1 -1
  91. package/dist/ketchup/{p-247362de.entry.js → p-b0675bce.entry.js} +1 -1
  92. package/dist/ketchup/{p-bc68a9de.entry.js → p-b1da7902.entry.js} +1 -1
  93. package/dist/ketchup/{p-b67a295b.js → p-b63a5a44.js} +1 -1
  94. package/dist/ketchup/{p-df6617bc.entry.js → p-bb6921bc.entry.js} +1 -1
  95. package/dist/ketchup/{p-a1708266.entry.js → p-c1d8fd43.entry.js} +1 -1
  96. package/dist/ketchup/{p-de9375f7.entry.js → p-d0f4457e.entry.js} +1 -1
  97. package/dist/ketchup/p-eea29062.entry.js +1 -0
  98. package/dist/ketchup/p-fd948af0.entry.js +9 -0
  99. package/dist/ketchup/{p-6dde2079.entry.js → p-fe34fa6e.entry.js} +1 -1
  100. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +1 -1
  101. package/dist/types/components/kup-card/built-in/{kup-card-form.d.ts → kup-card-message-box.d.ts} +1 -1
  102. package/dist/types/components/kup-card/kup-card-declarations.d.ts +6 -8
  103. package/dist/types/components/kup-form/kup-form.d.ts +6 -1
  104. package/dist/types/components.d.ts +8 -0
  105. package/package.json +1 -1
  106. package/dist/collection/components/kup-card/built-in/kup-card-form.js +0 -11
  107. package/dist/ketchup/p-519f4074.js +0 -1
  108. package/dist/ketchup/p-8df0191d.entry.js +0 -9
  109. package/dist/ketchup/p-9174622b.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as s,f as i,h as o,H as a,g as n}from"./p-9dcfbb1e.js";import{k as e,g as r,s as c}from"./p-b67a295b.js";import{c as l}from"./p-97e8ea42.js";import{F as p}from"./p-7e9f8adf.js";import"./p-6c77a36c.js";import"./p-519f4074.js";const h="snackbar";var u;!function(t){t.actionButton="Set of FButton props to set the action button.",t.closeButton="When true, the hide button will be displayed.",t.customStyle="Custom style of the component.",t.text="Sets the textual content of the snackbar.",t.timeout="Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."}(u||(u={}));const b=class{constructor(i){t(this,i),this.kupActionClick=s(this,"kup-snackbar-actionclick",6),this.kupManager=e(),this.visible=!1,this.actionButton=null,this.closeButton=!0,this.customStyle="",this.text="",this.timeout=null}onKupActionClick(){this.hide(),this.kupActionClick.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,u,t)}async hide(){this.visible=!1}async refresh(){i(this)}async setProps(t){c(this,u,t)}async show(){this.visible=!0}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.timeout&&this.visible&&setTimeout((()=>{this.hide()}),this.timeout),this.kupManager.debug.logRender(this,!0)}render(){return o(a,{"kup-visible":this.visible},o("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),o("div",{id:l},o("div",{class:h},o("div",{class:`${h}__text`},this.text),this.actionButton||this.closeButton?o("div",{class:`${h}__buttons`},this.actionButton?o("div",{class:`${h}__action`},o(p,Object.assign({},this.actionButton,{onClick:()=>this.onKupActionClick()}))):null,this.closeButton?o("div",{class:`${h}__close`},o(p,{icon:"close",onClick:()=>this.hide()})):null):null)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}};b.style=":host{animation:snackbar-show 125ms;bottom:0;box-sizing:border-box;display:block;left:0;outline:none;pointer-events:none;position:fixed;transition:opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;width:100%;z-index:calc(var(--kup-navbar-zindex) + 1)}:host(:not([kup-visible])){display:none}#kup-component{display:flex;justify-content:center;height:100%;padding:8px;width:100%}.snackbar{align-items:center;background:var(--kup-navbar-background-color);border-radius:5px;box-shadow:var(--kup-box-shadow);color:var(--kup-navbar-color);display:flex;justify-content:flex-start;max-width:672px;min-height:48px;min-width:344px}.snackbar__text{padding:14px 16px;pointer-events:all;white-space:nowrap}.snackbar__buttons{--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);align-items:center;display:flex;justify-content:flex-end;margin-right:8px;pointer-events:all;width:100%}.snackbar__close{--kup-button-font-size:11px;margin-left:8px;pointer-events:all}@keyframes snackbar-show{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}:host(.kup-top){bottom:unset;top:var(--kup-navbar-height, 0)}";export{b as kup_snackbar}
1
+ import{r as t,c as s,f as i,h as o,H as a,g as n}from"./p-9dcfbb1e.js";import{k as e,g as r,s as c}from"./p-b63a5a44.js";import{c as l}from"./p-97e8ea42.js";import{F as p}from"./p-a1adab40.js";import"./p-6c77a36c.js";import"./p-a7ae0b4d.js";const h="snackbar";var u;!function(t){t.actionButton="Set of FButton props to set the action button.",t.closeButton="When true, the hide button will be displayed.",t.customStyle="Custom style of the component.",t.text="Sets the textual content of the snackbar.",t.timeout="Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."}(u||(u={}));const b=class{constructor(i){t(this,i),this.kupActionClick=s(this,"kup-snackbar-actionclick",6),this.kupManager=e(),this.visible=!1,this.actionButton=null,this.closeButton=!0,this.customStyle="",this.text="",this.timeout=null}onKupActionClick(){this.hide(),this.kupActionClick.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,u,t)}async hide(){this.visible=!1}async refresh(){i(this)}async setProps(t){c(this,u,t)}async show(){this.visible=!0}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.timeout&&this.visible&&setTimeout((()=>{this.hide()}),this.timeout),this.kupManager.debug.logRender(this,!0)}render(){return o(a,{"kup-visible":this.visible},o("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),o("div",{id:l},o("div",{class:h},o("div",{class:`${h}__text`},this.text),this.actionButton||this.closeButton?o("div",{class:`${h}__buttons`},this.actionButton?o("div",{class:`${h}__action`},o(p,Object.assign({},this.actionButton,{onClick:()=>this.onKupActionClick()}))):null,this.closeButton?o("div",{class:`${h}__close`},o(p,{icon:"close",onClick:()=>this.hide()})):null):null)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}};b.style=":host{animation:snackbar-show 125ms;bottom:0;box-sizing:border-box;display:block;left:0;outline:none;pointer-events:none;position:fixed;transition:opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;width:100%;z-index:calc(var(--kup-navbar-zindex) + 1)}:host(:not([kup-visible])){display:none}#kup-component{display:flex;justify-content:center;height:100%;padding:8px;width:100%}.snackbar{align-items:center;background:var(--kup-navbar-background-color);border-radius:5px;box-shadow:var(--kup-box-shadow);color:var(--kup-navbar-color);display:flex;justify-content:flex-start;max-width:672px;min-height:48px;min-width:344px}.snackbar__text{padding:14px 16px;pointer-events:all;white-space:nowrap}.snackbar__buttons{--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);align-items:center;display:flex;justify-content:flex-end;margin-right:8px;pointer-events:all;width:100%}.snackbar__close{--kup-button-font-size:11px;margin-left:8px;pointer-events:all}@keyframes snackbar-show{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}:host(.kup-top){bottom:unset;top:var(--kup-navbar-height, 0)}";export{b as kup_snackbar}
@@ -32,7 +32,7 @@ export declare function create4(component: KupCard): VNode;
32
32
  */
33
33
  export declare function create5(component: KupCard): VNode;
34
34
  /**
35
- * 6th built-in layout, form with submit button.
35
+ * 6th built-in layout, message box with confirm and cancel buttons.
36
36
  * @param {KupCard} component - Card component.
37
37
  * @returns {VNode} 6th built-in layout virtual node.
38
38
  */
@@ -1,3 +1,3 @@
1
1
  import { VNode } from '../../../stencil-public-runtime';
2
2
  import { KupCard } from '../kup-card';
3
- export declare function prepareForm(component: KupCard): VNode[];
3
+ export declare function prepareMessageBox(component: KupCard): VNode[];
@@ -3,7 +3,6 @@ import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
3
3
  import { SourceEvent } from '../kup-date-picker/kup-date-picker-declarations';
4
4
  import Picker from 'vanilla-picker';
5
5
  import { KupDataColumn, KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
6
- import { KupFormData } from '../kup-form/kup-form-declarations';
7
6
  /**
8
7
  * Props of the kup-card component.
9
8
  * Used to export every prop in an object.
@@ -54,13 +53,12 @@ export interface KupCardBuiltInClockOptions {
54
53
  secondsActive?: boolean;
55
54
  }
56
55
  /**
57
- * Options of the built-in form.
56
+ * Options of the built-in message box.
58
57
  */
59
- export interface KupCardFormOptions {
60
- form: KupFormData;
61
- errors: boolean;
62
- cancelCb?: () => void;
63
- submitCb?: () => void;
58
+ export interface KupCardBuiltInMessageBoxOptions {
59
+ cancelCb?: (e: MouseEvent) => unknown;
60
+ confirmCb?: (e: MouseEvent) => unknown;
61
+ text?: string;
64
62
  }
65
63
  /**
66
64
  * Options of the built-in column drop menu.
@@ -155,7 +153,7 @@ export interface KupCardData {
155
153
  image?: GenericObject[];
156
154
  list?: GenericObject[];
157
155
  object?: KupObj[];
158
- options?: KupCardBuiltInCalendarOptions | KupCardBuiltInClockOptions | KupCardColumnDropMenuOptions | KupCardColorPickerOptions | KupCardBuiltInNumericOptions | KupCardFormOptions;
156
+ options?: KupCardBuiltInCalendarOptions | KupCardBuiltInClockOptions | KupCardColumnDropMenuOptions | KupCardColorPickerOptions | KupCardBuiltInNumericOptions | KupCardBuiltInMessageBoxOptions;
159
157
  progressbar?: GenericObject[];
160
158
  switch?: GenericObject[];
161
159
  tabbar?: GenericObject[];
@@ -1,5 +1,6 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  import { KupFormLayout, KupFormData, KupFormLabelPlacement } from './kup-form-declarations';
2
- import { GenericObject } from '../../types/GenericTypes';
3
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
4
  export declare class KupForm {
4
5
  /**
5
6
  * References the root HTML element of the component (<kup-form>).
@@ -62,6 +63,10 @@ export declare class KupForm {
62
63
  * @param {GenericObject} props - Object containing props that will be set to the component.
63
64
  */
64
65
  setProps(props: GenericObject): Promise<void>;
66
+ /**
67
+ * When component load is complete
68
+ */
69
+ kupReady: EventEmitter<KupEventPayload>;
65
70
  private getColumns;
66
71
  private initVisibleColumns;
67
72
  private getRows;
@@ -3309,6 +3309,10 @@ export interface KupFamilyTreeCustomEvent<T> extends CustomEvent<T> {
3309
3309
  detail: T;
3310
3310
  target: HTMLKupFamilyTreeElement;
3311
3311
  }
3312
+ export interface KupFormCustomEvent<T> extends CustomEvent<T> {
3313
+ detail: T;
3314
+ target: HTMLKupFormElement;
3315
+ }
3312
3316
  export interface KupIframeCustomEvent<T> extends CustomEvent<T> {
3313
3317
  detail: T;
3314
3318
  target: HTMLKupIframeElement;
@@ -5144,6 +5148,10 @@ declare namespace LocalJSX {
5144
5148
  * @default null
5145
5149
  */
5146
5150
  "layout"?: KupFormLayout;
5151
+ /**
5152
+ * When component load is complete
5153
+ */
5154
+ "onKup-form-ready"?: (event: KupFormCustomEvent<KupEventPayload>) => void;
5147
5155
  /**
5148
5156
  * Sets the callback function on submit form
5149
5157
  * @default null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "7.2.0",
3
+ "version": "7.3.1",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",
@@ -1,11 +0,0 @@
1
- import { h } from '@stencil/core';
2
- import { FButton } from '../../../f-components/f-button/f-button';
3
- import { FButtonStyling } from '../../../f-components/f-button/f-button-declarations';
4
- const dom = document.documentElement;
5
- export function prepareForm(component) {
6
- const options = component.data.options;
7
- return [
8
- h("kup-form", null),
9
- h("div", { class: "button-wrapper" }, h(FButton, { icon: "clear", label: "Cancel", styling: FButtonStyling.FLAT }), h(FButton, { icon: "check", label: "Confirm" })),
10
- ];
11
- }
@@ -1 +0,0 @@
1
- import{h as t,a as e}from"./p-9dcfbb1e.js";import{b as s}from"./p-b67a295b.js";var i;!function(t){t.BAR="bar"}(i||(i={}));const a=a=>{let r,o;a.resource?a.resource.indexOf(".")>-1||a.resource.indexOf("/")>-1||a.resource.indexOf("\\")>-1?(o={"--kup_image_height":a.sizeY?a.sizeY:"auto","--kup_image_width":a.sizeX?a.sizeX:"100%"},r=t("img",{src:a.resource})):(o={"--kup_image_height":a.sizeY?a.sizeY:"100%","--kup_image_width":a.sizeX?a.sizeX:"100%"},r=function(i){const a={"f-image__icon":!0},r={background:i.color?i.color:`var(${s.ICON})`};if(i.resource.indexOf("--kup")>-1){let t=i.resource.replace("--","");a["kup-icon"]=!0,a[t]=!0}else{const t=e(`./assets/svg/${i.resource}.svg`);r.mask=`url('${t}') no-repeat center`,r.webkitMask=`url('${t}') no-repeat center`}return t("div",{class:a,style:r})}(a)):a.data&&(o={"--kup_image_height":a.sizeY?a.sizeY:"100%","--kup_image_width":a.sizeX?a.sizeX:"100%"},r=function(e){const s=[];let a=0;for(let r=0;r<e.length;r++){let o;e[r].shape||(e[r].shape=i.BAR),e[r].color||(e[r].color="transparent"),e[r].height||(e[r].height="100%"),e[r].width||(e[r].width="100%");const n="step-"+r,c="css-step bottom-aligned",l={backgroundColor:e[r].color,left:a+"%",height:e[r].height,width:e[r].width};a+=parseFloat(e[r].width),o=t("span",{id:n,class:c,style:l}),s.push(o)}return t("div",{class:"f-image__css"},s)}(a.data));const n=[];if(a.badgeData)for(let e=0;e<a.badgeData.length;e++)n.push(t("kup-badge",Object.assign({},a.badgeData[e])));return t("div",Object.assign({class:`f-image ${a.wrapperClass?a.wrapperClass:""} ${a.fit?"kup-fit":""}`},a.dataSet,{id:a.id,style:o,title:a.title,onClick:a.onClick}),r,...n)};export{a as F}