@sme.up/ketchup 6.0.0 → 6.2.0

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 (198) hide show
  1. package/dist/cjs/{cell-utils-a78d6fac.js → cell-utils-fe64a28c.js} +2 -2
  2. package/dist/cjs/{f-button-ac179257.js → f-button-5b69d882.js} +4 -4
  3. package/dist/cjs/f-cell-3a740c48.js +418 -0
  4. package/dist/cjs/f-checkbox-57443ca3.js +29 -0
  5. package/dist/cjs/{f-chip-b00897d7.js → f-chip-02e83f82.js} +3 -3
  6. package/dist/cjs/{f-image-89f25556.js → f-image-2a61ece2.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-09126bdd.js} +5 -5
  8. package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-9ee20a67.js} +3 -3
  9. package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +209 -193
  13. package/dist/cjs/kup-box.cjs.entry.js +1306 -0
  14. package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-cell.cjs.entry.js +10 -9
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
  18. package/dist/cjs/{kup-form-editor.cjs.entry.js → kup-dashboard.cjs.entry.js} +123 -148
  19. package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
  20. package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +53 -1338
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +410 -0
  22. package/dist/cjs/kup-form.cjs.entry.js +480 -0
  23. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-image-list.cjs.entry.js +73 -11
  25. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  27. package/dist/cjs/{kup-manager-7a941909.js → kup-manager-02acbb37.js} +407 -7
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/cjs/{utils-6287d878.js → utils-4b208b48.js} +1 -1
  36. package/dist/collection/assets/dashboard.js +113 -0
  37. package/dist/collection/assets/data-table.js +15 -0
  38. package/dist/collection/assets/family-tree.js +2437 -0
  39. package/dist/collection/assets/form.js +433 -0
  40. package/dist/collection/assets/grid.js +17 -0
  41. package/dist/collection/assets/index.js +14 -6
  42. package/dist/collection/collection-manifest.json +4 -3
  43. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
  44. package/dist/collection/components/kup-box/kup-box.js +13 -2
  45. package/dist/collection/components/kup-button/kup-button.js +1 -0
  46. package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
  47. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
  48. package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +7 -6
  49. package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +148 -149
  50. package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
  51. package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
  52. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
  53. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +12 -0
  54. package/dist/collection/components/kup-family-tree/kup-family-tree.css +101 -0
  55. package/dist/collection/components/kup-family-tree/kup-family-tree.js +666 -0
  56. package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
  57. package/dist/collection/components/kup-form/kup-form.css +99 -0
  58. package/dist/collection/components/kup-form/kup-form.js +647 -0
  59. package/dist/collection/components/kup-grid/kup-grid.js +1 -4
  60. package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
  61. package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
  62. package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
  63. package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
  64. package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
  65. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
  66. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  67. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  68. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
  69. package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
  70. package/dist/collection/components/kup-tree/kup-tree.js +10 -4
  71. package/dist/collection/f-components/f-button/f-button.js +2 -2
  72. package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
  73. package/dist/collection/f-components/f-cell/f-cell.js +34 -114
  74. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
  75. package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
  76. package/dist/collection/managers/kup-data/kup-data.js +109 -1
  77. package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
  78. package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
  79. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
  80. package/dist/collection/types/GenericTypes.js +3 -2
  81. package/dist/esm/{cell-utils-964da6b5.js → cell-utils-cb5d4149.js} +2 -2
  82. package/dist/esm/{f-button-871a544b.js → f-button-fd44ef70.js} +4 -4
  83. package/dist/esm/{f-cell-521ef17a.js → f-cell-7b159a22.js} +48 -283
  84. package/dist/esm/f-checkbox-c51c4a75.js +27 -0
  85. package/dist/esm/{f-chip-1dda722f.js → f-chip-c2e4c522.js} +3 -3
  86. package/dist/esm/{f-image-c468d8ae.js → f-image-2ab4b9aa.js} +2 -2
  87. package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-ef537d82.js} +5 -5
  88. package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-41c575eb.js} +3 -3
  89. package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
  90. package/dist/esm/ketchup.js +3 -3
  91. package/dist/esm/kup-accordion.entry.js +4 -4
  92. package/dist/esm/kup-autocomplete_25.entry.js +199 -183
  93. package/dist/esm/kup-box.entry.js +1302 -0
  94. package/dist/esm/kup-calendar.entry.js +7 -7
  95. package/dist/esm/kup-cell.entry.js +9 -8
  96. package/dist/esm/kup-dash-list.entry.js +4 -4
  97. package/dist/esm/kup-dash_2.entry.js +4 -7
  98. package/dist/esm/{kup-form-editor.entry.js → kup-dashboard.entry.js} +123 -148
  99. package/dist/esm/kup-drawer.entry.js +4 -4
  100. package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +54 -1338
  101. package/dist/esm/kup-family-tree.entry.js +406 -0
  102. package/dist/esm/kup-form.entry.js +476 -0
  103. package/dist/esm/kup-iframe.entry.js +3 -3
  104. package/dist/esm/kup-image-list.entry.js +72 -10
  105. package/dist/esm/kup-lazy.entry.js +4 -4
  106. package/dist/esm/kup-magic-box.entry.js +4 -4
  107. package/dist/esm/{kup-manager-58b075b4.js → kup-manager-22a475e6.js} +404 -8
  108. package/dist/esm/kup-nav-bar.entry.js +3 -3
  109. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  110. package/dist/esm/kup-photo-frame.entry.js +5 -5
  111. package/dist/esm/kup-probe.entry.js +2 -2
  112. package/dist/esm/kup-qlik.entry.js +2 -2
  113. package/dist/esm/kup-snackbar.entry.js +5 -5
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/{utils-d7e4b3c2.js → utils-2c1f4122.js} +1 -1
  116. package/dist/ketchup/ketchup.esm.js +1 -1
  117. package/dist/ketchup/p-06c6cc68.js +1 -0
  118. package/dist/ketchup/{p-3c11e615.entry.js → p-0dacd4bc.entry.js} +1 -1
  119. package/dist/ketchup/{p-fac1a08b.entry.js → p-1959f835.entry.js} +1 -1
  120. package/dist/ketchup/p-1c44dc62.entry.js +1 -0
  121. package/dist/ketchup/{p-f09f2f98.entry.js → p-264b1b19.entry.js} +1 -1
  122. package/dist/ketchup/p-38d7584e.js +1 -0
  123. package/dist/ketchup/{p-f71a1675.entry.js → p-42080355.entry.js} +1 -1
  124. package/dist/ketchup/p-4bc9f98b.entry.js +1 -0
  125. package/dist/ketchup/p-578583db.entry.js +1 -0
  126. package/dist/ketchup/p-5866d507.entry.js +1 -0
  127. package/dist/ketchup/p-61059e9d.entry.js +9 -0
  128. package/dist/ketchup/{p-a615a92b.entry.js → p-664be494.entry.js} +1 -1
  129. package/dist/ketchup/{p-d2ee56dd.entry.js → p-67cd575d.entry.js} +1 -1
  130. package/dist/ketchup/{p-e0035c58.js → p-682a367a.js} +1 -1
  131. package/dist/ketchup/p-6ccf7eb2.entry.js +1 -0
  132. package/dist/ketchup/p-7230ab97.entry.js +1 -0
  133. package/dist/ketchup/p-752b4cef.entry.js +1 -0
  134. package/dist/ketchup/{p-954cc340.entry.js → p-7de3e7ac.entry.js} +1 -1
  135. package/dist/ketchup/p-928c5c36.js +1 -0
  136. package/dist/ketchup/{p-6dff70f8.entry.js → p-9b36497d.entry.js} +1 -1
  137. package/dist/ketchup/{p-99e0d768.entry.js → p-b982d137.entry.js} +1 -1
  138. package/dist/ketchup/{p-8cdf61a4.js → p-c0219e5e.js} +1 -1
  139. package/dist/ketchup/p-c55fd0a7.entry.js +1 -0
  140. package/dist/ketchup/p-cd5cfa7c.js +1 -0
  141. package/dist/ketchup/p-d154b3a0.entry.js +1 -0
  142. package/dist/ketchup/p-d2affb6f.entry.js +27 -0
  143. package/dist/ketchup/p-d3b542b3.js +2 -0
  144. package/dist/ketchup/{p-7454cb92.js → p-d6c12c6c.js} +1 -1
  145. package/dist/ketchup/p-da0eab60.entry.js +1 -0
  146. package/dist/ketchup/{p-7eff4eee.js → p-dc62a30f.js} +1 -1
  147. package/dist/ketchup/p-e9366aaf.entry.js +39 -0
  148. package/dist/ketchup/{p-44ec4f03.js → p-edae3076.js} +1 -1
  149. package/dist/ketchup/p-fc2b1229.js +30 -0
  150. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
  151. package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
  152. package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +12 -9
  153. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +33 -0
  154. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +61 -0
  155. package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
  156. package/dist/types/components/kup-form/kup-form.d.ts +63 -0
  157. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
  158. package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
  159. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  160. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  161. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
  162. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
  163. package/dist/types/components.d.ts +460 -241
  164. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
  165. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  166. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
  167. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
  168. package/dist/types/managers/kup-data/kup-data.d.ts +7 -1
  169. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
  170. package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
  171. package/dist/types/types/GenericTypes.d.ts +3 -2
  172. package/package.json +2 -2
  173. package/dist/cjs/f-cell-69294bca.js +0 -653
  174. package/dist/cjs/kup-field.cjs.entry.js +0 -241
  175. package/dist/collection/assets/form-editor.js +0 -338
  176. package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
  177. package/dist/collection/components/kup-field/kup-field.css +0 -48
  178. package/dist/collection/components/kup-field/kup-field.js +0 -514
  179. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
  180. package/dist/esm/kup-field.entry.js +0 -237
  181. package/dist/ketchup/p-1ae66cc5.js +0 -1
  182. package/dist/ketchup/p-34b74425.js +0 -1
  183. package/dist/ketchup/p-4ffbc3ff.js +0 -1
  184. package/dist/ketchup/p-5264a3e6.entry.js +0 -1
  185. package/dist/ketchup/p-65974e48.entry.js +0 -1
  186. package/dist/ketchup/p-65b46587.entry.js +0 -40
  187. package/dist/ketchup/p-80968627.entry.js +0 -1
  188. package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
  189. package/dist/ketchup/p-aca0e54b.js +0 -30
  190. package/dist/ketchup/p-b8939a8b.entry.js +0 -1
  191. package/dist/ketchup/p-bfc3bac7.js +0 -1
  192. package/dist/ketchup/p-c5ce8951.entry.js +0 -1
  193. package/dist/ketchup/p-cad1e097.entry.js +0 -9
  194. package/dist/ketchup/p-db71436b.entry.js +0 -27
  195. package/dist/ketchup/p-e1039cf2.entry.js +0 -1
  196. package/dist/ketchup/p-ea10176c.entry.js +0 -1
  197. package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
  198. package/dist/types/components/kup-field/kup-field.d.ts +0 -90
@@ -3,6 +3,7 @@ import { GenericObject } from '../../types/GenericTypes';
3
3
  import { KupAutocompleteEventPayload, KupAutocompleteIconClickEventPayload } from './kup-autocomplete-declarations';
4
4
  import { ItemsDisplayMode, KupListEventPayload } from '../kup-list/kup-list-declarations';
5
5
  export declare class KupAutocomplete {
6
+ #private;
6
7
  /**
7
8
  * References the root HTML element of the component (<kup-autocomplete>).
8
9
  */
@@ -65,17 +66,6 @@ export declare class KupAutocomplete {
65
66
  * @default true
66
67
  */
67
68
  showDropDownIcon: boolean;
68
- private doConsistencyCheck;
69
- private elStyle;
70
- private listEl;
71
- /**
72
- * Instance of the KupManager class.
73
- */
74
- private kupManager;
75
- private textfieldWrapper;
76
- private textfieldEl;
77
- private clickCb;
78
- private inputTimeout;
79
69
  kupBlur: EventEmitter<KupAutocompleteEventPayload>;
80
70
  kupChange: EventEmitter<KupAutocompleteEventPayload>;
81
71
  kupClick: EventEmitter<KupAutocompleteEventPayload>;
@@ -120,11 +110,6 @@ export declare class KupAutocomplete {
120
110
  * @param {string} value - Value of the component.
121
111
  */
122
112
  setValue(value: string): Promise<void>;
123
- private openList;
124
- private closeList;
125
- private isListOpened;
126
- private consistencyCheck;
127
- private prepList;
128
113
  componentWillLoad(): void;
129
114
  componentDidLoad(): void;
130
115
  componentWillRender(): void;
@@ -1,41 +1,31 @@
1
1
  import { KupEventPayload } from '../../types/GenericTypes';
2
2
  /**
3
- * Props of the kup-form-editor component.
3
+ * Props of the kup-dashboard component.
4
4
  * Used to export every prop in an object.
5
5
  */
6
- export declare enum KupFormEditorProps {
6
+ export declare enum KupDashboardProps {
7
7
  customStyle = "Custom style of the component.",
8
- data = "The data of the component."
8
+ data = "The data of the component.",
9
+ enableDesign = "When set to true, the component is in design mode and it is draggable."
9
10
  }
10
- export interface KupFormEditorEventPayload extends KupEventPayload {
11
+ export interface KupDashboardEventPayload extends KupEventPayload {
11
12
  data: KupForm;
12
13
  }
13
- export declare enum KupFormEditorDragTypes {
14
- Components = "1",
15
- Sections = "2"
16
- }
17
- export declare enum KupFormEditorLabels {
18
- Loaded = "Loaded",
19
- Reset = "Reset",
20
- Save = "Save",
21
- Components = "Components",
22
- Sections = "Sections",
23
- Column = "Column"
14
+ export interface KupDataDashboard extends KupForm {
24
15
  }
25
16
  /**
26
17
  * Extend html element properties for Form Editor
27
18
  */
28
- export interface KupFormEditorElement extends HTMLDivElement {
29
- kupData: KupFormEditorData;
19
+ export interface KupDashboardElement extends HTMLDivElement {
20
+ kupData: KupDashboardData;
30
21
  }
31
22
  /**
32
23
  * Additional kupData for html element.
33
24
  */
34
- export interface KupFormEditorData {
25
+ export interface KupDashboardData {
35
26
  parent?: KupForm | KupSection;
36
27
  form?: KupForm;
37
28
  section?: KupSection;
38
- componnent?: KupComponent;
39
29
  }
40
30
  export interface KupVariableEntity {
41
31
  name: string;
@@ -64,15 +54,7 @@ export interface KupForm extends KupComponentEntity {
64
54
  layout: string;
65
55
  sections: KupSection[];
66
56
  }
67
- export interface KupWidget extends KupComponentEntity {
68
- config?: any;
69
- data?: any;
70
- dynamisms?: KupDynamismEntity[];
71
- options?: any;
72
- }
73
- export declare type KupComponent = KupForm | KupWidget;
74
57
  export interface KupSection extends KupEntity {
75
- components?: KupComponent[];
76
58
  dim?: string;
77
59
  layout?: string;
78
60
  sections?: KupSection[];
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { GenericObject } from '../../types/GenericTypes';
3
- import { KupForm, KupFormEditorElement, KupFormEditorEventPayload, KupSection } from './kup-form-editor-declarations';
4
- export declare class KupFormEditor {
3
+ import { KupForm, KupDashboardElement, KupDashboardEventPayload, KupSection, KupDataDashboard } from './kup-dashboard-declarations';
4
+ export declare class KupDashboard {
5
5
  /**
6
6
  * References the root HTML element of the component (<kup-text-field>).
7
7
  */
@@ -18,17 +18,18 @@ export declare class KupFormEditor {
18
18
  customStyle: string;
19
19
  /**
20
20
  * The data of the component.
21
+ * @default null
22
+ */
23
+ data: KupDataDashboard;
24
+ /**
25
+ * Enable drag & drop of the section.
21
26
  * @default false
22
27
  */
23
- data: KupForm;
28
+ enableDesign: boolean;
24
29
  /**
25
30
  * Instance of the KupManager class.
26
31
  */
27
32
  private kupManager;
28
- /**
29
- * Draggable type of Form (Components or Sections).
30
- */
31
- private dragType;
32
33
  /**
33
34
  * Internal data of the component.
34
35
  */
@@ -37,7 +38,7 @@ export declare class KupFormEditor {
37
38
  * Internal data backup of the component for refresh when changed content by drag&drop.
38
39
  */
39
40
  private internalDataBackup;
40
- kupSave: EventEmitter<KupFormEditorEventPayload>;
41
+ kupSave: EventEmitter<KupDashboardEventPayload>;
41
42
  onKupSave(): void;
42
43
  dataChanged(): void;
43
44
  /**
@@ -55,12 +56,14 @@ export declare class KupFormEditor {
55
56
  * @param {GenericObject} props - Object containing props that will be set to the component.
56
57
  */
57
58
  setProps(props: GenericObject): Promise<void>;
59
+ buildGuid(): string;
58
60
  buildHeader(): any;
59
61
  buildForm(form: KupForm, parent: KupForm | KupSection): any;
60
62
  buildSectionHeader(section: KupSection, parent: KupForm | KupSection): any;
61
63
  buildSection(section: KupSection, parent: KupForm | KupSection): any;
62
64
  didRenderInteractables(): void;
63
- dropped(parent: KupFormEditorElement, child: KupFormEditorElement): void;
65
+ dropped(parent: KupDashboardElement, child: KupDashboardElement): void;
66
+ getGridStyle(entity: KupForm | KupSection): {};
64
67
  resetData(form?: KupForm): void;
65
68
  unregisterInteractables(): void;
66
69
  componentWillLoad(): void;
@@ -0,0 +1,33 @@
1
+ import { KupDataCell, KupDataColumn, KupDataNode } from '../../managers/kup-data/kup-data-declarations';
2
+ import { KupEventPayload } from '../../types/GenericTypes';
3
+ import { KupBoxLayout } from '../kup-box/kup-box-declarations';
4
+ /**
5
+ * Props of the kup-family-tree component.
6
+ * Used to export every prop in an object.
7
+ */
8
+ export declare enum KupFamilyTreeProps {
9
+ autofit = "The component's initial render will fit the container.",
10
+ collapsible = "Nodes can be expanded/collapsed.",
11
+ customStyle = "Custom style of the component.",
12
+ data = "Actual data of the component",
13
+ layout = "Layout of the boxes."
14
+ }
15
+ export interface KupFamilyTreeData {
16
+ columns: KupDataColumn[];
17
+ rows: KupFamilyTreeNode[];
18
+ }
19
+ export interface KupFamilyTreeNode extends KupDataNode {
20
+ children?: KupFamilyTreeNode[];
21
+ isStaff?: boolean;
22
+ layout?: KupBoxLayout;
23
+ }
24
+ export interface KupFamilyTreeEventHandlerDetails {
25
+ cell: KupDataCell;
26
+ column: KupDataColumn;
27
+ originalEvent: PointerEvent;
28
+ row: KupFamilyTreeNode;
29
+ td: HTMLElement;
30
+ }
31
+ export interface KupFamilyTreeEventPayload extends KupEventPayload {
32
+ details: KupFamilyTreeEventHandlerDetails;
33
+ }
@@ -0,0 +1,61 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject } from '../../types/GenericTypes';
3
+ import { KupBoxLayout } from '../kup-box/kup-box-declarations';
4
+ import { KupFamilyTreeData, KupFamilyTreeEventPayload } from './kup-family-tree-declarations';
5
+ export declare class KupFamilyTree {
6
+ #private;
7
+ /**
8
+ * References the root HTML element of the component (<kup-family-tree>).
9
+ */
10
+ rootElement: HTMLElement;
11
+ /**
12
+ * The component's initial render will fit the container.
13
+ * @default true
14
+ */
15
+ autofit: boolean;
16
+ /**
17
+ * Nodes can be expanded/collapsed.
18
+ * @default true
19
+ */
20
+ collapsible: boolean;
21
+ /**
22
+ * Custom style of the component.
23
+ * @default ""
24
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
25
+ */
26
+ customStyle: string;
27
+ /**
28
+ * Actual data of the component.
29
+ * @default null
30
+ */
31
+ data: KupFamilyTreeData;
32
+ /**
33
+ * Layout of the boxes.
34
+ * @default null
35
+ */
36
+ layout: KupBoxLayout;
37
+ kupClick: EventEmitter<KupFamilyTreeEventPayload>;
38
+ kupContextMenu: EventEmitter<KupFamilyTreeEventPayload>;
39
+ kupDblClick: EventEmitter<KupFamilyTreeEventPayload>;
40
+ /**
41
+ * Used to retrieve component's props values.
42
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
43
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
44
+ */
45
+ getProps(descriptions?: boolean): Promise<GenericObject>;
46
+ /**
47
+ * This method is used to trigger a new render of the component.
48
+ */
49
+ refresh(): Promise<void>;
50
+ /**
51
+ * Sets the props to the component.
52
+ * @param {GenericObject} props - Object containing props that will be set to the component.
53
+ */
54
+ setProps(props: GenericObject): Promise<void>;
55
+ componentWillLoad(): void;
56
+ componentDidLoad(): void;
57
+ componentWillRender(): void;
58
+ componentDidRender(): void;
59
+ render(): any;
60
+ disconnectedCallback(): void;
61
+ }
@@ -0,0 +1,60 @@
1
+ import { FCellShapes } from '../../f-components/f-cell/f-cell-declarations';
2
+ import { KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
3
+ /**
4
+ * Props of the kup-form component.
5
+ * Used to export every prop in an object.
6
+ */
7
+ export declare enum KupFormProps {
8
+ customStyle = "Custom style of the component.",
9
+ data = "Actual data of the form.",
10
+ layout = "How the form will arrange its content."
11
+ }
12
+ export interface KupFormData {
13
+ columns?: KupDataColumn[];
14
+ rows?: KupFormRow[];
15
+ }
16
+ export interface KupFormRow extends KupDataRow {
17
+ layout?: KupFormLayout;
18
+ }
19
+ export interface KupFormLayout {
20
+ horizontal?: boolean;
21
+ sections?: KupFormSection[];
22
+ }
23
+ export interface KupFormSection {
24
+ columns?: number;
25
+ content?: KupFormField[];
26
+ dim?: string;
27
+ horizontal?: boolean;
28
+ id?: string;
29
+ label?: KupFormLabel;
30
+ sections?: KupFormSection[];
31
+ style?: {
32
+ [index: string]: string;
33
+ };
34
+ title?: string;
35
+ }
36
+ export interface KupFormField {
37
+ column?: string;
38
+ data?: any;
39
+ label?: string;
40
+ shape?: FCellShapes;
41
+ value?: string;
42
+ }
43
+ export interface KupFormLabel {
44
+ alignment?: KupFormLabelAlignment;
45
+ placement?: KupFormLabelPlacement;
46
+ width?: string;
47
+ }
48
+ export declare enum KupFormLabelAlignment {
49
+ CENTER = "center",
50
+ LEFT = "left",
51
+ RIGHT = "right"
52
+ }
53
+ export declare enum KupFormLabelPlacement {
54
+ BOTTOM = "bottom",
55
+ LEFT = "left",
56
+ HIDDEN = "hidden",
57
+ PLACEHOLDER = "placeholder",
58
+ RIGHT = "right",
59
+ TOP = "top"
60
+ }
@@ -0,0 +1,63 @@
1
+ import { KupFormLayout, KupFormData } from './kup-form-declarations';
2
+ import { GenericObject } from '../../types/GenericTypes';
3
+ export declare class KupForm {
4
+ /**
5
+ * References the root HTML element of the component (<kup-form>).
6
+ */
7
+ rootElement: HTMLElement;
8
+ /**
9
+ * Custom style of the component.
10
+ * @default ""
11
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
12
+ */
13
+ customStyle: string;
14
+ /**
15
+ * Actual data of the form.
16
+ * @default null
17
+ */
18
+ data: KupFormData;
19
+ /**
20
+ * How the form will arrange its content.
21
+ * @default null
22
+ */
23
+ layout: KupFormLayout;
24
+ private kupManager;
25
+ private formLayout;
26
+ private visibleColumns;
27
+ onDataChanged(): void;
28
+ onLayoutChanged(): void;
29
+ /**
30
+ * Used to retrieve component's props values.
31
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
32
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
33
+ */
34
+ getProps(descriptions?: boolean): Promise<GenericObject>;
35
+ /**
36
+ * This method is used to trigger a new render of the component.
37
+ */
38
+ refresh(): Promise<void>;
39
+ /**
40
+ * Sets the focus on an editable table cell.
41
+ * @param {string} column - Name of the column.
42
+ * @param {string} rowId - Id of the row.
43
+ */
44
+ setFocus(column: string, rowId: string): Promise<void>;
45
+ /**
46
+ * Sets the props to the component.
47
+ * @param {GenericObject} props - Object containing props that will be set to the component.
48
+ */
49
+ setProps(props: GenericObject): Promise<void>;
50
+ private getColumns;
51
+ private initVisibleColumns;
52
+ private getRows;
53
+ private checkLayout;
54
+ private renderRow;
55
+ private renderSection;
56
+ private renderFormField;
57
+ componentWillLoad(): void;
58
+ componentDidLoad(): void;
59
+ componentWillRender(): void;
60
+ componentDidRender(): void;
61
+ render(): any;
62
+ disconnectedCallback(): void;
63
+ }
@@ -0,0 +1,6 @@
1
+ import { KupState } from '../kup-state/kup-state';
2
+ export declare class KupImageListState implements KupState {
3
+ selectedTreeNodePath: string;
4
+ load: boolean;
5
+ toDebugString(): string;
6
+ }
@@ -2,14 +2,20 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { GenericObject } from '../../types/GenericTypes';
3
3
  import { KupImageListEventPayload } from './kup-image-list-declarations';
4
4
  import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
5
+ import { KupStore } from '../kup-state/kup-store';
6
+ import { KupImageListState } from './kup-image-list-state';
7
+ import { TreeNodePath } from '../kup-tree/kup-tree-declarations';
5
8
  export declare class KupImageList {
6
9
  #private;
7
10
  /**
8
11
  * References the root HTML element of the component (<kup-image-list>).
9
12
  */
10
13
  rootElement: HTMLElement;
14
+ state: KupImageListState;
11
15
  currentNode: KupDataNode;
12
16
  navigationBarToggled: boolean;
17
+ initWithPersistedState(): void;
18
+ persistState(): void;
13
19
  /**
14
20
  * Custom style of the component.
15
21
  * @default ""
@@ -26,12 +32,23 @@ export declare class KupImageList {
26
32
  * @default true
27
33
  */
28
34
  ripple: boolean;
35
+ /**
36
+ * An array of integers containing the path to a selected child.\
37
+ */
38
+ selectedNode: TreeNodePath;
39
+ stateId: string;
40
+ store: KupStore;
41
+ /**
42
+ * Instance of the KupManager class.
43
+ */
44
+ private kupManager;
29
45
  kupClick: EventEmitter<KupImageListEventPayload>;
30
46
  onKupClick(node: KupDataNode): void;
31
47
  kupContextMenu: EventEmitter<KupImageListEventPayload>;
32
48
  onKupContextMenu(e: MouseEvent, node: KupDataNode): void;
33
49
  kupDblClick: EventEmitter<KupImageListEventPayload>;
34
50
  onKupDblClick(node: KupDataNode): void;
51
+ selectNode(newData: TreeNodePath): void;
35
52
  /**
36
53
  * Used to retrieve component's props values.
37
54
  * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
@@ -17,7 +17,10 @@ export declare enum KupTextFieldProps {
17
17
  isClearable = "Enables a clear trailing icon.",
18
18
  label = "When set, its content will be shown as a label.",
19
19
  leadingLabel = "When set to true, the label will be on the left of the component.",
20
+ max = "The HTML max attribute specifies the maximum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.",
20
21
  maxLength = "When set, the helper will display a character counter.",
22
+ min = "The HTML min attribute specifies the minimum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.",
23
+ name = "The HTML name attribute used for form autocomplete.",
21
24
  outlined = "When set to true, the component will be rendered as an outlined field.",
22
25
  readOnly = "Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.",
23
26
  step = "The HTML step of the input element. It has effect only with number input type.",
@@ -94,6 +94,11 @@ export declare class KupTextField {
94
94
  * @default null
95
95
  */
96
96
  min: number;
97
+ /**
98
+ * The HTML name attribute used for form autocomplete.
99
+ * @default null
100
+ */
101
+ name: string;
97
102
  /**
98
103
  * When set to true, the component will be rendered as an outlined field.
99
104
  * @default false
@@ -47,12 +47,6 @@ export declare class KupTimePicker {
47
47
  * Instance of the KupManager class.
48
48
  */
49
49
  private kupManager;
50
- private hoursEl;
51
- private minutesEl;
52
- private secondsEl;
53
- private hoursCircleEl;
54
- private minutesCircleEl;
55
- private secondsCircleEl;
56
50
  private hoursActive;
57
51
  private minutesActive;
58
52
  private secondsActive;
@@ -1,4 +1,5 @@
1
1
  import { KupDataCell, KupDataColumn, KupDataNode, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
2
+ import type { PointerEvent } from '@interactjs/types/index';
2
3
  import { GenericMap, KupEventPayload } from '../../types/GenericTypes';
3
4
  import { KupCardEventPayload } from '../kup-card/kup-card-declarations';
4
5
  /**
@@ -55,6 +56,7 @@ export interface KupTreeEventHandlerDetails {
55
56
  cell: KupDataCell;
56
57
  column: KupDataColumn;
57
58
  filterRemove: HTMLSpanElement;
59
+ originalEvent: PointerEvent;
58
60
  row: KupDataRow;
59
61
  td: HTMLElement;
60
62
  th: HTMLElement;