@sme.up/ketchup 11.0.0-SNAPSHOT-20241125085638 → 11.0.0-SNAPSHOT-20241125095251

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 (155) hide show
  1. package/dist/cjs/ketchup.cjs.js +1 -1
  2. package/dist/cjs/kup-autocomplete_28.cjs.entry.js +38 -38
  3. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
  4. package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
  5. package/dist/cjs/kup-input-panel.cjs.entry.js +18 -6
  6. package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
  7. package/dist/cjs/kup-lazy.cjs.entry.js +11 -11
  8. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  9. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  10. package/dist/cjs/kup-numeric-picker.cjs.entry.js +1 -1
  11. package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
  12. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  13. package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
  14. package/dist/cjs/kup-planner.cjs.entry.js +1 -1
  15. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  16. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
  18. package/dist/cjs/kup-txt.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-typography.cjs.entry.js +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/collection/collection-manifest.json +2 -2
  23. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
  24. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js.map +1 -1
  25. package/dist/collection/components/kup-input-panel/kup-input-panel.css +19 -0
  26. package/dist/collection/components/kup-input-panel/kup-input-panel.js +36 -5
  27. package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
  28. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  29. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  30. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  31. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  32. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  33. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
  34. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  35. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  36. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  37. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  38. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  39. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  40. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  41. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  42. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  43. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  44. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  45. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  46. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  47. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  48. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  49. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  50. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  51. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  52. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  53. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  54. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  55. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  56. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  57. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  58. package/dist/collection/components/kup-typography/kup-typography.js +1 -1
  59. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  60. package/dist/components/custom-task-list-header.js +2 -2
  61. package/dist/components/kup-autocomplete2.js +38 -38
  62. package/dist/components/kup-gantt-calendar2.js +2 -2
  63. package/dist/components/kup-gantt2.js +2 -2
  64. package/dist/components/kup-grid-renderer2.js +3 -3
  65. package/dist/components/kup-horizontal-scroll2.js +5 -5
  66. package/dist/components/kup-input-panel.js +19 -6
  67. package/dist/components/kup-input-panel.js.map +1 -1
  68. package/dist/components/kup-lazy.js +11 -11
  69. package/dist/components/kup-magic-box.js +3 -3
  70. package/dist/components/kup-nav-bar.js +1 -1
  71. package/dist/components/kup-numeric-picker.js +1 -1
  72. package/dist/components/kup-pdf.js +1 -1
  73. package/dist/components/kup-photo-frame.js +2 -2
  74. package/dist/components/kup-planner-renderer2.js +2 -2
  75. package/dist/components/kup-planner.js +1 -1
  76. package/dist/components/kup-probe.js +1 -1
  77. package/dist/components/kup-qlik.js +1 -1
  78. package/dist/components/kup-snackbar.js +1 -1
  79. package/dist/components/kup-standard-tooltip2.js +1 -1
  80. package/dist/components/kup-switcher2.js +1 -1
  81. package/dist/components/kup-task-gantt2.js +2 -2
  82. package/dist/components/kup-task-list-header2.js +7 -7
  83. package/dist/components/kup-task-list-table2.js +1 -1
  84. package/dist/components/kup-task-list2.js +1 -1
  85. package/dist/components/kup-tooltip2.js +1 -1
  86. package/dist/components/kup-txt.js +1 -1
  87. package/dist/components/kup-typography-list.js +1 -1
  88. package/dist/components/kup-typography.js +1 -1
  89. package/dist/components/kup-vertical-scroll2.js +2 -2
  90. package/dist/esm/ketchup.js +1 -1
  91. package/dist/esm/kup-autocomplete_28.entry.js +38 -38
  92. package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
  93. package/dist/esm/kup-gantt_10.entry.js +23 -23
  94. package/dist/esm/kup-input-panel.entry.js +18 -6
  95. package/dist/esm/kup-input-panel.entry.js.map +1 -1
  96. package/dist/esm/kup-lazy.entry.js +11 -11
  97. package/dist/esm/kup-magic-box.entry.js +3 -3
  98. package/dist/esm/kup-nav-bar.entry.js +1 -1
  99. package/dist/esm/kup-numeric-picker.entry.js +1 -1
  100. package/dist/esm/kup-pdf.entry.js +1 -1
  101. package/dist/esm/kup-photo-frame.entry.js +2 -2
  102. package/dist/esm/kup-planner-renderer.entry.js +2 -2
  103. package/dist/esm/kup-planner.entry.js +1 -1
  104. package/dist/esm/kup-probe.entry.js +1 -1
  105. package/dist/esm/kup-qlik.entry.js +1 -1
  106. package/dist/esm/kup-snackbar.entry.js +1 -1
  107. package/dist/esm/kup-txt.entry.js +1 -1
  108. package/dist/esm/kup-typography-list.entry.js +1 -1
  109. package/dist/esm/kup-typography.entry.js +1 -1
  110. package/dist/esm/loader.js +1 -1
  111. package/dist/ketchup/ketchup.esm.js +1 -1
  112. package/dist/ketchup/ketchup.esm.js.map +1 -1
  113. package/dist/ketchup/{p-fc4885fa.entry.js → p-035fe1f8.entry.js} +2 -2
  114. package/dist/ketchup/{p-41144398.entry.js → p-0589de19.entry.js} +2 -2
  115. package/dist/ketchup/{p-ba9e8615.entry.js → p-061f9095.entry.js} +2 -2
  116. package/dist/ketchup/{p-8f7b7f5a.entry.js → p-119de8fb.entry.js} +2 -2
  117. package/dist/ketchup/{p-a2790755.entry.js → p-17cf83c5.entry.js} +2 -2
  118. package/dist/ketchup/{p-5e80c5b1.entry.js → p-26efe39b.entry.js} +2 -2
  119. package/dist/ketchup/{p-a6d83c83.entry.js → p-94099e24.entry.js} +3 -3
  120. package/dist/ketchup/{p-707babd4.entry.js → p-9d894c7c.entry.js} +2 -2
  121. package/dist/ketchup/{p-71034261.entry.js → p-9fa6808d.entry.js} +2 -2
  122. package/dist/ketchup/{p-1b0a93c3.entry.js → p-ae257375.entry.js} +2 -2
  123. package/dist/ketchup/p-b3d9beb7.entry.js +2 -0
  124. package/dist/ketchup/p-b3d9beb7.entry.js.map +1 -0
  125. package/dist/ketchup/{p-28a543b4.entry.js → p-b5fa88c3.entry.js} +2 -2
  126. package/dist/ketchup/{p-cd882c02.entry.js → p-bc5d76c8.entry.js} +2 -2
  127. package/dist/ketchup/{p-6dcf746d.entry.js → p-be1bda43.entry.js} +2 -2
  128. package/dist/ketchup/p-c505f058.entry.js +2 -0
  129. package/dist/ketchup/{p-878030b5.entry.js.map → p-c505f058.entry.js.map} +1 -1
  130. package/dist/ketchup/{p-4e9910f8.entry.js → p-e2b6e9f0.entry.js} +2 -2
  131. package/dist/ketchup/{p-f975d467.entry.js → p-edaf0cb8.entry.js} +2 -2
  132. package/dist/ketchup/{p-d837fe90.entry.js → p-f60a8564.entry.js} +2 -2
  133. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +2 -1
  134. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
  135. package/dist/types/components.d.ts +10 -0
  136. package/package.json +1 -1
  137. package/dist/ketchup/p-02f7124b.entry.js +0 -2
  138. package/dist/ketchup/p-02f7124b.entry.js.map +0 -1
  139. package/dist/ketchup/p-878030b5.entry.js +0 -2
  140. /package/dist/ketchup/{p-fc4885fa.entry.js.map → p-035fe1f8.entry.js.map} +0 -0
  141. /package/dist/ketchup/{p-41144398.entry.js.map → p-0589de19.entry.js.map} +0 -0
  142. /package/dist/ketchup/{p-ba9e8615.entry.js.map → p-061f9095.entry.js.map} +0 -0
  143. /package/dist/ketchup/{p-8f7b7f5a.entry.js.map → p-119de8fb.entry.js.map} +0 -0
  144. /package/dist/ketchup/{p-a2790755.entry.js.map → p-17cf83c5.entry.js.map} +0 -0
  145. /package/dist/ketchup/{p-5e80c5b1.entry.js.map → p-26efe39b.entry.js.map} +0 -0
  146. /package/dist/ketchup/{p-a6d83c83.entry.js.map → p-94099e24.entry.js.map} +0 -0
  147. /package/dist/ketchup/{p-707babd4.entry.js.map → p-9d894c7c.entry.js.map} +0 -0
  148. /package/dist/ketchup/{p-71034261.entry.js.map → p-9fa6808d.entry.js.map} +0 -0
  149. /package/dist/ketchup/{p-1b0a93c3.entry.js.map → p-ae257375.entry.js.map} +0 -0
  150. /package/dist/ketchup/{p-28a543b4.entry.js.map → p-b5fa88c3.entry.js.map} +0 -0
  151. /package/dist/ketchup/{p-cd882c02.entry.js.map → p-bc5d76c8.entry.js.map} +0 -0
  152. /package/dist/ketchup/{p-6dcf746d.entry.js.map → p-be1bda43.entry.js.map} +0 -0
  153. /package/dist/ketchup/{p-4e9910f8.entry.js.map → p-e2b6e9f0.entry.js.map} +0 -0
  154. /package/dist/ketchup/{p-f975d467.entry.js.map → p-edaf0cb8.entry.js.map} +0 -0
  155. /package/dist/ketchup/{p-d837fe90.entry.js.map → p-f60a8564.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"kup-input-panel-declarations.js","sourceRoot":"","sources":["../../../src/components/kup-input-panel/kup-input-panel-declarations.ts"],"names":[],"mappings":"AAkEA,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACtC,6CAAW,CAAA;AACf,CAAC,EAFW,8BAA8B,KAA9B,8BAA8B,QAEzC;AAuFD,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,oEAA8C,CAAA;IAC9C,8DAAwC,CAAA;IACxC,mHAA6F,CAAA;IAC7F,4EAAsD,CAAA;IACtD,sFAAgE,CAAA;AACpE,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B","sourcesContent":["import { GenericObject, KupEventPayload } from '../../components';\nimport {\n KupDataCell,\n KupDataColumn,\n KupDataCommand,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { KupObj } from '../../managers/kup-objects/kup-objects-declarations';\n\nexport interface KupInputPanelSubmit {\n value: KupInputPanelSubmitValue;\n cell?: string;\n}\nexport interface KupInputPanelSubmitValue {\n after: KupInputPanelData;\n before: KupInputPanelData;\n}\n\nexport interface KupInputPanelData {\n columns?: KupDataColumn[];\n rows?: KupInputPanelRow[];\n actions?: KupInputPanelAction[];\n setup?: {\n commands?: Array<KupDataCommand>;\n };\n}\n\nexport interface KupInputPanelAction {\n type?: string;\n fun?: string;\n}\n\nexport interface KupInputPanelColumn {\n name: string;\n title: string;\n visible?: boolean;\n}\n\nexport interface KupInputPanelRow {\n cells?: KupInputPanelRowCells;\n layout?: KupInputPanelLayout;\n}\n\nexport interface KupInputPanelRowCells {\n [key: string]: KupInputPanelCell;\n}\n\nexport interface KupInputPanelCell extends KupDataCell {\n options?: GenericObject | GenericObject[];\n editable?: boolean;\n mandatory?: boolean;\n inputSettings?: GenericObject;\n fun?: string;\n}\n\nexport interface KupInputPanelCellOptions {\n id: string;\n label: string;\n}\n\nexport interface KupInputPanelLayout {\n horizontal?: boolean;\n absolute?: boolean;\n sections?: KupInputPanelLayoutSection[];\n sectionsType?: KupInputPanelLayoutSectionType;\n}\n\nexport enum KupInputPanelLayoutSectionType {\n TAB = 'tab',\n}\n\nexport interface KupInputPanelLayoutSection {\n id?: string;\n title?: string;\n icon?: string;\n content?: KupInputPanelLayoutField[];\n sections?: KupInputPanelLayoutSection[];\n dim?: string;\n horizontal?: boolean;\n gridCols?: number;\n gridRows?: number;\n // Gap is in rem\n gap?: number;\n sectionsType?: KupInputPanelLayoutSectionType;\n // absolute Attributes\n absoluteColumn?: number;\n absoluteWidth?: number;\n absoluteRow?: number;\n absoluteHeight?: number;\n}\n\nexport interface KupInputPanelLayoutField {\n id: string;\n // Span is referred to start\n colSpan?: number;\n colStart?: number;\n colEnd?: number;\n // Span is referred to start\n rowSpan?: number;\n rowStart?: number;\n rowEnd?: number;\n // absolute Attributes\n absoluteColumn?: number;\n absoluteRow?: number;\n absoluteLength?: number;\n}\n\nexport type DataAdapterFn = (\n options: GenericObject,\n fieldLabel: string,\n currentValue: string,\n cell?: KupInputPanelCell,\n id?: string\n) => Object;\n\nexport type InputPanelCells = {\n cells: { cell: KupDataCell; column: KupDataColumn }[];\n row?: KupInputPanelRow;\n};\n\nexport type InputPanelEvent = {\n state: { cell: KupDataCell; column: KupDataColumn }[];\n data: {\n field: string;\n value: number | string | object;\n };\n};\n\nexport type InputPanelOptionsHandler = (\n fun: string,\n inputValue: string,\n currentState: KupInputPanelData,\n cellId: string\n) => Promise<GenericObject>;\n\nexport type InputPanelCheckValidObjCallback = (event: {\n obj: KupObj;\n currentState: KupInputPanelData;\n fun?: string;\n}) => Promise<ValidCheckObjResponse>;\n\nexport interface ValidCheckObjResponse {\n valid: boolean;\n}\n\nexport type InputPanelButtonClickHandler = (event: {\n fun: string;\n cellId: string;\n currentState: KupInputPanelData;\n}) => void;\n\nexport type InputPanelCheckValidValueCallback = (\n currentState: KupInputPanelSubmitValue,\n cellId: string\n) => void;\n\nexport enum KupInputPanelProps {\n customStyle = 'Custom style of the component.',\n data = 'Actual data of the input panel.',\n hiddenSubmitButton = 'Creates a hidden submit button in order to submit the form with enter.',\n submitCb = 'Sets the callback function on submit form',\n optionsHandler = 'Sets the callback function to recieve options',\n}\n\nexport interface KupInputPanelEventHandlerDetails {\n anchor: HTMLElement;\n cell: KupDataCell;\n column: KupDataColumn;\n originalEvent: PointerEvent;\n}\n\nexport interface KupInputPanelClickEventPayload extends KupEventPayload {\n details: KupInputPanelEventHandlerDetails;\n}\n"]}
1
+ {"version":3,"file":"kup-input-panel-declarations.js","sourceRoot":"","sources":["../../../src/components/kup-input-panel/kup-input-panel-declarations.ts"],"names":[],"mappings":"AAkEA,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACtC,6CAAW,CAAA;AACf,CAAC,EAFW,8BAA8B,KAA9B,8BAA8B,QAEzC;AAuFD,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,oEAA8C,CAAA;IAC9C,8DAAwC,CAAA;IACxC,mHAA6F,CAAA;IAC7F,4EAAsD,CAAA;IACtD,sFAAgE,CAAA;IAChE,oIAA8G,CAAA;AAClH,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B","sourcesContent":["import { GenericObject, KupEventPayload } from '../../components';\nimport {\n KupDataCell,\n KupDataColumn,\n KupDataCommand,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { KupObj } from '../../managers/kup-objects/kup-objects-declarations';\n\nexport interface KupInputPanelSubmit {\n value: KupInputPanelSubmitValue;\n cell?: string;\n}\nexport interface KupInputPanelSubmitValue {\n after: KupInputPanelData;\n before: KupInputPanelData;\n}\n\nexport interface KupInputPanelData {\n columns?: KupDataColumn[];\n rows?: KupInputPanelRow[];\n actions?: KupInputPanelAction[];\n setup?: {\n commands?: Array<KupDataCommand>;\n };\n}\n\nexport interface KupInputPanelAction {\n type?: string;\n fun?: string;\n}\n\nexport interface KupInputPanelColumn {\n name: string;\n title: string;\n visible?: boolean;\n}\n\nexport interface KupInputPanelRow {\n cells?: KupInputPanelRowCells;\n layout?: KupInputPanelLayout;\n}\n\nexport interface KupInputPanelRowCells {\n [key: string]: KupInputPanelCell;\n}\n\nexport interface KupInputPanelCell extends KupDataCell {\n options?: GenericObject | GenericObject[];\n editable?: boolean;\n mandatory?: boolean;\n inputSettings?: GenericObject;\n fun?: string;\n}\n\nexport interface KupInputPanelCellOptions {\n id: string;\n label: string;\n}\n\nexport interface KupInputPanelLayout {\n horizontal?: boolean;\n absolute?: boolean;\n sections?: KupInputPanelLayoutSection[];\n sectionsType?: KupInputPanelLayoutSectionType;\n}\n\nexport enum KupInputPanelLayoutSectionType {\n TAB = 'tab',\n}\n\nexport interface KupInputPanelLayoutSection {\n id?: string;\n title?: string;\n icon?: string;\n content?: KupInputPanelLayoutField[];\n sections?: KupInputPanelLayoutSection[];\n dim?: string;\n horizontal?: boolean;\n gridCols?: number;\n gridRows?: number;\n // Gap is in rem\n gap?: number;\n sectionsType?: KupInputPanelLayoutSectionType;\n // absolute Attributes\n absoluteColumn?: number;\n absoluteWidth?: number;\n absoluteRow?: number;\n absoluteHeight?: number;\n}\n\nexport interface KupInputPanelLayoutField {\n id: string;\n // Span is referred to start\n colSpan?: number;\n colStart?: number;\n colEnd?: number;\n // Span is referred to start\n rowSpan?: number;\n rowStart?: number;\n rowEnd?: number;\n // absolute Attributes\n absoluteColumn?: number;\n absoluteRow?: number;\n absoluteLength?: number;\n}\n\nexport type DataAdapterFn = (\n options: GenericObject,\n fieldLabel: string,\n currentValue: string,\n cell?: KupInputPanelCell,\n id?: string\n) => Object;\n\nexport type InputPanelCells = {\n cells: { cell: KupDataCell; column: KupDataColumn }[];\n row?: KupInputPanelRow;\n};\n\nexport type InputPanelEvent = {\n state: { cell: KupDataCell; column: KupDataColumn }[];\n data: {\n field: string;\n value: number | string | object;\n };\n};\n\nexport type InputPanelOptionsHandler = (\n fun: string,\n inputValue: string,\n currentState: KupInputPanelData,\n cellId: string\n) => Promise<GenericObject>;\n\nexport type InputPanelCheckValidObjCallback = (event: {\n obj: KupObj;\n currentState: KupInputPanelData;\n fun?: string;\n}) => Promise<ValidCheckObjResponse>;\n\nexport interface ValidCheckObjResponse {\n valid: boolean;\n}\n\nexport type InputPanelButtonClickHandler = (event: {\n fun: string;\n cellId: string;\n currentState: KupInputPanelData;\n}) => void;\n\nexport type InputPanelCheckValidValueCallback = (\n currentState: KupInputPanelSubmitValue,\n cellId: string\n) => void;\n\nexport enum KupInputPanelProps {\n customStyle = 'Custom style of the component.',\n data = 'Actual data of the input panel.',\n hiddenSubmitButton = 'Creates a hidden submit button in order to submit the form with enter.',\n submitCb = 'Sets the callback function on submit form',\n optionsHandler = 'Sets the callback function to recieve options',\n buttonPosition = 'Manage the position of the buttons related to the input panel content. It is an enumeration',\n}\n\nexport interface KupInputPanelEventHandlerDetails {\n anchor: HTMLElement;\n cell: KupDataCell;\n column: KupDataColumn;\n originalEvent: PointerEvent;\n}\n\nexport interface KupInputPanelClickEventPayload extends KupEventPayload {\n details: KupInputPanelEventHandlerDetails;\n}\n"]}
@@ -156,6 +156,7 @@
156
156
  --kup_input_panel_label_alignment: var(--kup-input-panel-label-alignment);
157
157
  --kup_input_panel_label_width: var(--kup-input-panel-label-width);
158
158
  --kup_input_panel_padding: var(--kup-input-panel-padding, 1em 0);
159
+ --kup_input_panel_padding--inline: var(--kup-input-panel-padding--inline, 0);
159
160
  }
160
161
  :host .input-panel {
161
162
  background: var(--kup_input_panel_background_color);
@@ -171,6 +172,16 @@
171
172
  display: flex;
172
173
  gap: 2rem;
173
174
  }
175
+ :host .input-panel__commands.input-panel__commands--right {
176
+ flex-shrink: 0;
177
+ overflow: hidden;
178
+ }
179
+ :host .input-panel--inline {
180
+ flex: 1;
181
+ overflow-x: auto;
182
+ white-space: nowrap;
183
+ padding: var(--kup_input_panel_padding--inline);
184
+ }
174
185
  :host .input-panel--column {
175
186
  flex-direction: column;
176
187
  }
@@ -189,6 +200,10 @@
189
200
  :host .input-panel__horizontal-section {
190
201
  display: inline-grid;
191
202
  }
203
+ :host .input-panel__section-inline {
204
+ display: inline-block;
205
+ width: max-content;
206
+ }
192
207
  :host .input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control {
193
208
  height: 40px;
194
209
  width: 40px;
@@ -226,4 +241,8 @@
226
241
  }
227
242
  :host .input-panel--absolute .mdc-text-field {
228
243
  height: unset !important;
244
+ }
245
+ :host .input-panel-form--inline {
246
+ display: flex;
247
+ align-items: end;
229
248
  }
@@ -100,6 +100,7 @@ export class KupInputPanel {
100
100
  this.customStyle = '';
101
101
  this.data = null;
102
102
  this.hiddenSubmitButton = false;
103
+ this.buttonPosition = undefined;
103
104
  this.submitCb = null;
104
105
  this.optionsHandler = null;
105
106
  this.customButtonClickHandler = null;
@@ -195,7 +196,7 @@ export class KupInputPanel {
195
196
  h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
196
197
  ]
197
198
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
198
- return (h(Host, { key: '0b29c3e2c24a83ef82f3d2c15a468e386a4b911a' }, h("style", { key: '11db937588ef8530336807aebe8d83046df0ba41' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'fbfd8854ee9e85f57676e46bd7abbb40f1aef21c', id: componentWrapperId }, inputPanelContent)));
199
+ return (h(Host, { key: '50041632fc3d803f7b8701c1dca6dbae7a413796' }, h("style", { key: '7c1f478465b10c318d1bdba68f489e6907b87055' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '56c13788936dbd560b099432d204898b0e10264f', id: componentWrapperId }, inputPanelContent)));
199
200
  }
200
201
  disconnectedCallback() {
201
202
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
@@ -285,6 +286,26 @@ export class KupInputPanel {
285
286
  "reflect": false,
286
287
  "defaultValue": "false"
287
288
  },
289
+ "buttonPosition": {
290
+ "type": "string",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "'CENTER' | 'LEFT' | 'BOTTOM' | 'RIGHT' | 'TOP'",
294
+ "resolved": "\"BOTTOM\" | \"CENTER\" | \"LEFT\" | \"RIGHT\" | \"TOP\"",
295
+ "references": {}
296
+ },
297
+ "required": false,
298
+ "optional": false,
299
+ "docs": {
300
+ "tags": [{
301
+ "name": "default",
302
+ "text": "\"BOTTOM\""
303
+ }],
304
+ "text": "Select the position of the buttons related to the input panel"
305
+ },
306
+ "attribute": "button-position",
307
+ "reflect": false
308
+ },
288
309
  "submitCb": {
289
310
  "type": "unknown",
290
311
  "mutable": false,
@@ -621,13 +642,22 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
621
642
  rowContent = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderGridLayout).call(this, inputPanelCell, layout);
622
643
  }
623
644
  }
645
+ const inputPanelClass = {
646
+ 'input-panel-form': true,
647
+ 'input-panel-form--inline': this.buttonPosition == 'RIGHT',
648
+ };
624
649
  const classObj = {
625
650
  'input-panel': true,
626
651
  'input-panel--column': !horizontal,
627
652
  'input-panel--absolute': layout === null || layout === void 0 ? void 0 : layout.absolute,
653
+ 'input-panel--inline': this.buttonPosition == 'RIGHT',
654
+ };
655
+ const commandsClass = {
656
+ 'input-panel__commands': true,
657
+ [`input-panel__commands--${this.buttonPosition}`]: true,
628
658
  };
629
659
  // We create a form for each row in data
630
- return (h("form", { name: this.rootElement.id, id: this.rootElement.id, class: { 'input-panel-form': true }, ref: (el) => (__classPrivateFieldSet(this, _KupInputPanel_formRef, el, "f")), onSubmit: (e) => {
660
+ return (h("form", { name: this.rootElement.id, id: this.rootElement.id, class: inputPanelClass, ref: (el) => (__classPrivateFieldSet(this, _KupInputPanel_formRef, el, "f")), onSubmit: (e) => {
631
661
  e.preventDefault();
632
662
  this.submitCb({
633
663
  value: {
@@ -637,7 +667,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
637
667
  });
638
668
  }, onContextMenu: (e) => {
639
669
  e.preventDefault();
640
- } }, h("div", { class: classObj, style: styleObj }, rowContent), h("div", { class: "input-panel__commands" }, h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.inputPanelCommands)));
670
+ } }, h("div", { class: classObj, style: styleObj }, rowContent), h("div", { class: commandsClass }, h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.inputPanelCommands)));
641
671
  }, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
642
672
  if (!cell) {
643
673
  return;
@@ -700,14 +730,15 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
700
730
  const sectionRender = __classPrivateFieldGet(this, _KupInputPanel_sectionRenderMap, "f").get(layout.sectionsType);
701
731
  return sectionRender
702
732
  ? sectionRender(inputPanelCell, layout.sections)
703
- : layout.sections.map((section) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderSection).call(this, inputPanelCell, section));
733
+ : layout.sections.map((section) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderSection).call(this, inputPanelCell, section, false));
704
734
  }, _KupInputPanel_renderAbsoluteLayout = function _KupInputPanel_renderAbsoluteLayout(inputPanelCell, layout) {
705
735
  return layout.sections.map((section) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderAbsoluteSection).call(this, inputPanelCell, section));
706
- }, _KupInputPanel_renderSection = function _KupInputPanel_renderSection(cells, section, customLabelRender = false, styleObj = {}) {
736
+ }, _KupInputPanel_renderSection = function _KupInputPanel_renderSection(cells, section, customLabelRender = false, styleObj = {}, layout) {
707
737
  var _a, _b;
708
738
  const classObj = {
709
739
  'input-panel__section': !section.horizontal,
710
740
  'input-panel__horizontal-section': section.horizontal,
741
+ 'input-panel__section-inline': layout === null || layout === void 0 ? void 0 : layout.horizontal,
711
742
  };
712
743
  styleObj.gap = +section.gap > 0 ? `${section.gap}rem` : '1rem';
713
744
  let content = [];