@sme.up/ketchup 11.0.0-SNAPSHOT-20241204091728 → 11.0.0-SNAPSHOT-20241204093112

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 (106) hide show
  1. package/dist/cjs/{f-cell-99beffaa.js → f-cell-dbd52f82.js} +5 -1
  2. package/dist/cjs/f-cell-dbd52f82.js.map +1 -0
  3. package/dist/cjs/kup-autocomplete_28.cjs.entry.js +1 -1
  4. package/dist/cjs/kup-box.cjs.entry.js +1 -1
  5. package/dist/cjs/kup-cell.cjs.entry.js +1 -1
  6. package/dist/cjs/kup-image-list.cjs.entry.js +1 -1
  7. package/dist/cjs/kup-input-panel.cjs.entry.js +6 -4
  8. package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
  9. package/dist/collection/components/kup-input-panel/kup-input-panel.js +5 -3
  10. package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
  11. package/dist/collection/f-components/f-cell/f-cell.js +4 -0
  12. package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
  13. package/dist/components/kup-accordion.js +1 -1
  14. package/dist/components/kup-activity-timeline.js +1 -1
  15. package/dist/components/kup-autocomplete.js +1 -1
  16. package/dist/components/kup-badge.js +1 -1
  17. package/dist/components/kup-box.js +1 -1
  18. package/dist/components/kup-button-list.js +1 -1
  19. package/dist/components/kup-button.js +1 -1
  20. package/dist/components/kup-calendar.js +1 -1
  21. package/dist/components/kup-card-list.js +2 -2
  22. package/dist/components/kup-card.js +1 -1
  23. package/dist/components/kup-cell.js +1 -1
  24. package/dist/components/kup-chart.js +1 -1
  25. package/dist/components/kup-checkbox.js +1 -1
  26. package/dist/components/kup-chip.js +1 -1
  27. package/dist/components/kup-color-picker.js +1 -1
  28. package/dist/components/kup-combobox.js +1 -1
  29. package/dist/components/kup-dashboard.js +1 -1
  30. package/dist/components/kup-data-table.js +1 -1
  31. package/dist/components/kup-date-picker.js +1 -1
  32. package/dist/components/kup-dialog.js +1 -1
  33. package/dist/components/kup-drawer.js +1 -1
  34. package/dist/components/kup-dropdown-button.js +1 -1
  35. package/dist/components/kup-echart.js +1 -1
  36. package/dist/components/kup-editor.js +1 -1
  37. package/dist/components/kup-family-tree.js +2 -2
  38. package/dist/components/kup-form.js +1 -1
  39. package/dist/components/kup-gauge.js +1 -1
  40. package/dist/components/kup-grid.js +1 -1
  41. package/dist/components/kup-htm.js +1 -1
  42. package/dist/components/kup-iframe.js +1 -1
  43. package/dist/components/kup-image-list.js +1 -1
  44. package/dist/components/kup-image.js +1 -1
  45. package/dist/components/kup-input-panel.js +7 -5
  46. package/dist/components/kup-input-panel.js.map +1 -1
  47. package/dist/components/kup-lazy.js +1 -1
  48. package/dist/components/kup-list.js +1 -1
  49. package/dist/components/kup-magic-box.js +3 -3
  50. package/dist/components/kup-nav-bar.js +1 -1
  51. package/dist/components/kup-numeric-picker.js +1 -1
  52. package/dist/components/kup-pdf.js +1 -1
  53. package/dist/components/kup-photo-frame.js +1 -1
  54. package/dist/components/kup-planner.js +1 -1
  55. package/dist/components/kup-probe.js +1 -1
  56. package/dist/components/kup-progress-bar.js +1 -1
  57. package/dist/components/kup-qlik.js +1 -1
  58. package/dist/components/kup-radio.js +1 -1
  59. package/dist/components/kup-rating.js +1 -1
  60. package/dist/components/kup-snackbar.js +1 -1
  61. package/dist/components/kup-spinner.js +1 -1
  62. package/dist/components/kup-switch.js +1 -1
  63. package/dist/components/kup-tab-bar.js +1 -1
  64. package/dist/components/kup-text-field.js +1 -1
  65. package/dist/components/kup-time-picker.js +1 -1
  66. package/dist/components/kup-toolbar.js +1 -1
  67. package/dist/components/kup-tree.js +1 -1
  68. package/dist/components/kup-txt.js +1 -1
  69. package/dist/components/kup-typography-list.js +1 -1
  70. package/dist/components/kup-typography.js +1 -1
  71. package/dist/components/{p-305c601e.js → p-0707faea.js} +5 -1
  72. package/dist/components/p-0707faea.js.map +1 -0
  73. package/dist/components/{p-041b4e77.js → p-38548546.js} +2 -2
  74. package/dist/components/{p-041b4e77.js.map → p-38548546.js.map} +1 -1
  75. package/dist/components/{p-ca75f1f1.js → p-8d00db3c.js} +2 -2
  76. package/dist/components/{p-ca75f1f1.js.map → p-8d00db3c.js.map} +1 -1
  77. package/dist/components/{p-bec9b052.js → p-b3c9cd25.js} +2 -2
  78. package/dist/components/{p-bec9b052.js.map → p-b3c9cd25.js.map} +1 -1
  79. package/dist/components/{p-2f338b48.js → p-c85d72a8.js} +2 -2
  80. package/dist/components/{p-2f338b48.js.map → p-c85d72a8.js.map} +1 -1
  81. package/dist/esm/{f-cell-722848d6.js → f-cell-3992d1cd.js} +5 -1
  82. package/dist/esm/f-cell-3992d1cd.js.map +1 -0
  83. package/dist/esm/kup-autocomplete_28.entry.js +1 -1
  84. package/dist/esm/kup-box.entry.js +1 -1
  85. package/dist/esm/kup-cell.entry.js +1 -1
  86. package/dist/esm/kup-image-list.entry.js +1 -1
  87. package/dist/esm/kup-input-panel.entry.js +6 -4
  88. package/dist/esm/kup-input-panel.entry.js.map +1 -1
  89. package/dist/ketchup/ketchup.esm.js +1 -1
  90. package/dist/ketchup/{p-992ae993.entry.js → p-08a9e442.entry.js} +2 -2
  91. package/dist/ketchup/{p-b13bbd08.entry.js → p-0b87c294.entry.js} +2 -2
  92. package/dist/ketchup/{p-1b4b1e95.js → p-2b5455ee.js} +2 -2
  93. package/dist/ketchup/{p-1b4b1e95.js.map → p-2b5455ee.js.map} +1 -1
  94. package/dist/ketchup/{p-9c210f92.entry.js → p-780f18f5.entry.js} +2 -2
  95. package/dist/ketchup/{p-c88ab499.entry.js → p-98518099.entry.js} +2 -2
  96. package/dist/ketchup/p-98518099.entry.js.map +1 -0
  97. package/dist/ketchup/{p-3500f91c.entry.js → p-d50d7049.entry.js} +2 -2
  98. package/package.json +1 -1
  99. package/dist/cjs/f-cell-99beffaa.js.map +0 -1
  100. package/dist/components/p-305c601e.js.map +0 -1
  101. package/dist/esm/f-cell-722848d6.js.map +0 -1
  102. package/dist/ketchup/p-c88ab499.entry.js.map +0 -1
  103. /package/dist/ketchup/{p-992ae993.entry.js.map → p-08a9e442.entry.js.map} +0 -0
  104. /package/dist/ketchup/{p-b13bbd08.entry.js.map → p-0b87c294.entry.js.map} +0 -0
  105. /package/dist/ketchup/{p-9c210f92.entry.js.map → p-780f18f5.entry.js.map} +0 -0
  106. /package/dist/ketchup/{p-3500f91c.entry.js.map → p-d50d7049.entry.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, f as forceUpdate, h, d as Host } from './p-68313086.js';
2
2
  import { k as kupManagerInstance, g as getProps, s as setProps, r as KupDebugCategory } from './p-34090dba.js';
3
- import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s } from './p-305c601e.js';
3
+ import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s } from './p-0707faea.js';
4
4
 
5
5
  /**
6
6
  * Props of the kup-grid component.
@@ -267,4 +267,4 @@ function defineCustomElement() {
267
267
 
268
268
  export { KupGrid as K, defineCustomElement as d };
269
269
 
270
- //# sourceMappingURL=p-ca75f1f1.js.map
270
+ //# sourceMappingURL=p-8d00db3c.js.map
@@ -1 +1 @@
1
- {"file":"p-ca75f1f1.js","mappings":";;;;AAAA;;;;AAIA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,oGAAoF,CAAA;IACpF,oIAAoH,CAAA;IACpH,qFAAqE,CAAA;AACzE,CAAC,EAJW,YAAY,KAAZ,YAAY;;ACJxB,MAAM,UAAU,GAAG,6zJAA6zJ,CAAC;AACj1J,sBAAe,UAAU;;MCwBZ,OAAO;;;;;;;;;;;QAkCR,eAAU,GAAe,kBAAkB,EAAE,CAAC;uBApB5B,EAAE;2BAME,EAAE;0BAKF,KAAK;;;;;;;;;;IAqBnC,MAAM,QAAQ,CAAC,YAAsB;QACjC,OAAO,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;KACrD;;;;IAKD,MAAM,OAAO;QACT,WAAW,CAAC,IAAI,CAAC,CAAC;KACrB;;;;;IAMD,MAAM,QAAQ,CAAC,KAAoB;QAC/B,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;KACvC;;;;IAMD,iBAAiB;QACb,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACxC;IAED,gBAAgB;QACZ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAC7C;IAED,mBAAmB;QACf,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC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I,IAAC,KAAK,EAAE,KAAK,IACd,iBACK,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAC9B,IAAI,CAAC,WAA2B,CACnC,CACG,EACR,WAAK,EAAE,EAAE,kBAAkB,IACvB,WACI,KAAK,EAAE,IAAI,CAAC,UAAU,GAAG,aAAa,GAAG,aAAa,IAEtD,WACI,KAAK,EACD,IAAI,CAAC,UAAU;kBACT,oBAAoB;kBACpB,oBAAoB,IAG7B,OAAO,CACN,CACJ,CACJ,CACH,EACT;KACL;IAED,oBAAoB;QAChB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/kup-grid/kup-grid-declarations.ts","src/components/kup-grid/kup-grid.scss?tag=kup-grid&encapsulation=shadow","src/components/kup-grid/kup-grid.tsx"],"sourcesContent":["/**\n * Props of the kup-grid component.\n * Used to export every prop in an object.\n */\nexport enum KupGridProps {\n columns = 'The number of columns displayed by the grid, the default behavior is 12.',\n customStyle = 'Custom style of the component. For more information: https://smeup.github.io/ketchup/#/customization',\n singleLine = 'When set to true, forces the content on a single line.',\n}\n","@import 'styles/kup-grid-main.scss';\n@import 'styles/kup-grid-classes.scss';\n","import {\n Component,\n Element,\n forceUpdate,\n Host,\n h,\n Method,\n Prop,\n VNode,\n} from '@stencil/core';\nimport type { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport { KupGridProps } from './kup-grid-declarations';\n\n@Component({\n tag: 'kup-grid',\n styleUrl: 'kup-grid.scss',\n shadow: true,\n})\nexport class KupGrid {\n /**\n * References the root HTML element of the component (<kup-grid>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * The number of columns displayed by the grid, the default behavior is 12.\n * @default 12\n */\n @Prop() columns: number = 12;\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * When set to true, forces the content on a single line.\n * @default false\n */\n @Prop() singleLine: boolean = false;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n private kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupGridProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupGridProps, props);\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.kupManager.debug.logLoad(this, false);\n this.kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.kupManager.debug.logRender(this, true);\n }\n\n render() {\n const slots: HTMLCollection = this.rootElement.children;\n if (!slots || slots.length === 0) {\n this.kupManager.debug.logMessage(\n this,\n 'Missing slots, not rendering!',\n KupDebugCategory.WARNING\n );\n return;\n }\n\n const content: VNode[] = [];\n\n for (let i = 0; i < slots.length; i++) {\n let el: VNode = null;\n\n if (this.singleLine) {\n el = <slot name={`${i}`}></slot>;\n } else {\n const span: number =\n slots[i]['span'] || slots[i].getAttribute('span') || 1;\n el = (\n <div\n class={`layout-grid__cell layout-grid__cell--span-${span}`}\n >\n <slot name={`${i}`}></slot>\n </div>\n );\n }\n content.push(el);\n }\n\n const style: GenericObject = {};\n\n if (this.columns && this.columns !== 12) {\n style['--kup_grid_columns'] = this.columns;\n }\n\n return (\n <Host style={style}>\n <style>\n {this.kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div id={componentWrapperId}>\n <div\n class={this.singleLine ? 'flex-layout' : 'layout-grid'}\n >\n <div\n class={\n this.singleLine\n ? 'flex-layout__inner'\n : 'layout-grid__inner'\n }\n >\n {content}\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n disconnectedCallback() {\n this.kupManager.theme.unregister(this);\n }\n}\n"],"version":3}
1
+ {"file":"p-8d00db3c.js","mappings":";;;;AAAA;;;;AAIA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,oGAAoF,CAAA;IACpF,oIAAoH,CAAA;IACpH,qFAAqE,CAAA;AACzE,CAAC,EAJW,YAAY,KAAZ,YAAY;;ACJxB,MAAM,UAAU,GAAG,6zJAA6zJ,CAAC;AACj1J,sBAAe,UAAU;;MCwBZ,OAAO;;;;;;;;;;;QAkCR,eAAU,GAAe,kBAAkB,EAAE,CAAC;uBApB5B,EAAE;2BAME,EAAE;0BAKF,KAAK;;;;;;;;;;IAqBnC,MAAM,QAAQ,CAAC,YAAsB;QACjC,OAAO,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;KACrD;;;;IAKD,MAAM,OAAO;QACT,WAAW,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CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3D,EAAE,IACE,WACI,KAAK,EAAE,6CAA6C,IAAI,EAAE,IAE1D,YAAM,IAAI,EAAE,GAAG,CAAC,EAAE,GAAS,CACzB,CACT,CAAC;aACL;YACD,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACpB;QAED,MAAM,KAAK,GAAkB,EAAE,CAAC;QAEhC,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,KAAK,EAAE,EAAE;YACrC,KAAK,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SAC9C;QAED,QACI,EAAC,IAAI,IAAC,KAAK,EAAE,KAAK,IACd,iBACK,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAC9B,IAAI,CAAC,WAA2B,CACnC,CACG,EACR,WAAK,EAAE,EAAE,kBAAkB,IACvB,WACI,KAAK,EAAE,IAAI,CAAC,UAAU,GAAG,aAAa,GAAG,aAAa,IAEtD,WACI,KAAK,EACD,IAAI,CAAC,UAAU;kBACT,oBAAoB;kBACpB,oBAAoB,IAG7B,OAAO,CACN,CACJ,CACJ,CACH,EACT;KACL;IAED,oBAAoB;QAChB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/kup-grid/kup-grid-declarations.ts","src/components/kup-grid/kup-grid.scss?tag=kup-grid&encapsulation=shadow","src/components/kup-grid/kup-grid.tsx"],"sourcesContent":["/**\n * Props of the kup-grid component.\n * Used to export every prop in an object.\n */\nexport enum KupGridProps {\n columns = 'The number of columns displayed by the grid, the default behavior is 12.',\n customStyle = 'Custom style of the component. For more information: https://smeup.github.io/ketchup/#/customization',\n singleLine = 'When set to true, forces the content on a single line.',\n}\n","@import 'styles/kup-grid-main.scss';\n@import 'styles/kup-grid-classes.scss';\n","import {\n Component,\n Element,\n forceUpdate,\n Host,\n h,\n Method,\n Prop,\n VNode,\n} from '@stencil/core';\nimport type { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport { KupGridProps } from './kup-grid-declarations';\n\n@Component({\n tag: 'kup-grid',\n styleUrl: 'kup-grid.scss',\n shadow: true,\n})\nexport class KupGrid {\n /**\n * References the root HTML element of the component (<kup-grid>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * The number of columns displayed by the grid, the default behavior is 12.\n * @default 12\n */\n @Prop() columns: number = 12;\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * When set to true, forces the content on a single line.\n * @default false\n */\n @Prop() singleLine: boolean = false;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n private kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupGridProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupGridProps, props);\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.kupManager.debug.logLoad(this, false);\n this.kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.kupManager.debug.logRender(this, true);\n }\n\n render() {\n const slots: HTMLCollection = this.rootElement.children;\n if (!slots || slots.length === 0) {\n this.kupManager.debug.logMessage(\n this,\n 'Missing slots, not rendering!',\n KupDebugCategory.WARNING\n );\n return;\n }\n\n const content: VNode[] = [];\n\n for (let i = 0; i < slots.length; i++) {\n let el: VNode = null;\n\n if (this.singleLine) {\n el = <slot name={`${i}`}></slot>;\n } else {\n const span: number =\n slots[i]['span'] || slots[i].getAttribute('span') || 1;\n el = (\n <div\n class={`layout-grid__cell layout-grid__cell--span-${span}`}\n >\n <slot name={`${i}`}></slot>\n </div>\n );\n }\n content.push(el);\n }\n\n const style: GenericObject = {};\n\n if (this.columns && this.columns !== 12) {\n style['--kup_grid_columns'] = this.columns;\n }\n\n return (\n <Host style={style}>\n <style>\n {this.kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div id={componentWrapperId}>\n <div\n class={this.singleLine ? 'flex-layout' : 'layout-grid'}\n >\n <div\n class={\n this.singleLine\n ? 'flex-layout__inner'\n : 'layout-grid__inner'\n }\n >\n {content}\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n disconnectedCallback() {\n this.kupManager.theme.unregister(this);\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-68313086.js';
2
2
  import { k as kupManagerInstance, g as getProps, s as setProps } from './p-34090dba.js';
3
- import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s } from './p-305c601e.js';
3
+ import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s } from './p-0707faea.js';
4
4
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './p-5882e117.js';
5
5
 
6
6
  var toastuiEditor = {exports: {}};
@@ -46465,4 +46465,4 @@ function defineCustomElement() {
46465
46465
 
46466
46466
  export { KupEditor as K, defineCustomElement as d };
46467
46467
 
46468
- //# sourceMappingURL=p-bec9b052.js.map
46468
+ //# sourceMappingURL=p-b3c9cd25.js.map