@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
@@ -0,0 +1,666 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _KupFamilyTree_instances, _KupFamilyTree_clickTimeout, _KupFamilyTree_hold, _KupFamilyTree_currentPanX, _KupFamilyTree_currentPanY, _KupFamilyTree_interactableTouch, _KupFamilyTree_kupManager, _KupFamilyTree_moveCb, _KupFamilyTree_wrapperEl, _KupFamilyTree_buildChildLine, _KupFamilyTree_buildNode, _KupFamilyTree_buildNodes, _KupFamilyTree_createTree, _KupFamilyTree_startPanning, _KupFamilyTree_getEventPath, _KupFamilyTree_getEventDetails, _KupFamilyTree_clickHandler, _KupFamilyTree_contextMenuHandler, _KupFamilyTree_dblClickHandler, _KupFamilyTree_didLoadInteractables, _KupFamilyTree_zoomTree, _KupFamilyTree_autofit;
13
+ import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
14
+ import { FButton } from '../../f-components/f-button/f-button';
15
+ import { FButtonStyling, } from '../../f-components/f-button/f-button-declarations';
16
+ import { KupPointerEventTypes } from '../../managers/kup-interact/kup-interact-declarations';
17
+ import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
18
+ import { kupManagerInstance } from '../../managers/kup-manager/kup-manager';
19
+ import { getProps, setProps } from '../../utils/utils';
20
+ import { componentWrapperId } from '../../variables/GenericVariables';
21
+ import { KupFamilyTreeProps, } from './kup-family-tree-declarations';
22
+ export class KupFamilyTree {
23
+ constructor() {
24
+ _KupFamilyTree_instances.add(this);
25
+ /*-------------------------------------------------*/
26
+ /* P r o p s */
27
+ /*-------------------------------------------------*/
28
+ /**
29
+ * The component's initial render will fit the container.
30
+ * @default true
31
+ */
32
+ this.autofit = true;
33
+ /**
34
+ * Nodes can be expanded/collapsed.
35
+ * @default true
36
+ */
37
+ this.collapsible = true;
38
+ /**
39
+ * Custom style of the component.
40
+ * @default ""
41
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
42
+ */
43
+ this.customStyle = '';
44
+ /**
45
+ * Actual data of the component.
46
+ * @default null
47
+ */
48
+ this.data = null;
49
+ /**
50
+ * Layout of the boxes.
51
+ * @default null
52
+ */
53
+ this.layout = null;
54
+ /*-------------------------------------------------*/
55
+ /* I n t e r n a l V a r i a b l e s */
56
+ /*-------------------------------------------------*/
57
+ _KupFamilyTree_clickTimeout.set(this, []);
58
+ _KupFamilyTree_hold.set(this, false);
59
+ _KupFamilyTree_currentPanX.set(this, 0);
60
+ _KupFamilyTree_currentPanY.set(this, 0);
61
+ _KupFamilyTree_interactableTouch.set(this, []);
62
+ _KupFamilyTree_kupManager.set(this, kupManagerInstance());
63
+ _KupFamilyTree_moveCb.set(this, (e) => {
64
+ const deltaX = e.clientX - __classPrivateFieldGet(this, _KupFamilyTree_currentPanX, "f");
65
+ const deltaY = e.clientY - __classPrivateFieldGet(this, _KupFamilyTree_currentPanY, "f");
66
+ this.rootElement.scrollTop -= deltaY;
67
+ this.rootElement.scrollLeft -= deltaX;
68
+ __classPrivateFieldSet(this, _KupFamilyTree_currentPanX, e.clientX, "f");
69
+ __classPrivateFieldSet(this, _KupFamilyTree_currentPanY, e.clientY, "f");
70
+ });
71
+ _KupFamilyTree_wrapperEl.set(this, null);
72
+ }
73
+ /*-------------------------------------------------*/
74
+ /* P u b l i c M e t h o d s */
75
+ /*-------------------------------------------------*/
76
+ /**
77
+ * Used to retrieve component's props values.
78
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
79
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
80
+ */
81
+ async getProps(descriptions) {
82
+ return getProps(this, KupFamilyTreeProps, descriptions);
83
+ }
84
+ /**
85
+ * This method is used to trigger a new render of the component.
86
+ */
87
+ async refresh() {
88
+ forceUpdate(this);
89
+ }
90
+ /**
91
+ * Sets the props to the component.
92
+ * @param {GenericObject} props - Object containing props that will be set to the component.
93
+ */
94
+ async setProps(props) {
95
+ setProps(this, KupFamilyTreeProps, props);
96
+ }
97
+ /*-------------------------------------------------*/
98
+ /* L i f e c y c l e H o o k s */
99
+ /*-------------------------------------------------*/
100
+ componentWillLoad() {
101
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logLoad(this, false);
102
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.register(this);
103
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.register(this);
104
+ }
105
+ componentDidLoad() {
106
+ __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_didLoadInteractables).call(this);
107
+ if (this.autofit) {
108
+ const parentWidth = __classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").clientWidth;
109
+ const childWidth = __classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").children[0].clientWidth;
110
+ if (childWidth > parentWidth) {
111
+ __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_autofit).call(this, parentWidth, childWidth);
112
+ }
113
+ }
114
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logLoad(this, true);
115
+ }
116
+ componentWillRender() {
117
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logRender(this, false);
118
+ }
119
+ componentDidRender() {
120
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logRender(this, true);
121
+ }
122
+ render() {
123
+ return (h(Host, { onDrag: (e) => e.preventDefault(), onPointerDown: (e) => {
124
+ e.preventDefault();
125
+ __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_startPanning).call(this, e);
126
+ }, onWheel: (e) => {
127
+ e.preventDefault();
128
+ __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_zoomTree).call(this, e);
129
+ } },
130
+ h("style", null, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)),
131
+ h("div", { id: componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
132
+ }
133
+ disconnectedCallback() {
134
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.unregister(this);
135
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.unregister(this);
136
+ }
137
+ static get is() { return "kup-family-tree"; }
138
+ static get encapsulation() { return "shadow"; }
139
+ static get originalStyleUrls() { return {
140
+ "$": ["kup-family-tree.scss"]
141
+ }; }
142
+ static get styleUrls() { return {
143
+ "$": ["kup-family-tree.css"]
144
+ }; }
145
+ static get properties() { return {
146
+ "autofit": {
147
+ "type": "boolean",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "boolean",
151
+ "resolved": "boolean",
152
+ "references": {}
153
+ },
154
+ "required": false,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [{
158
+ "name": "default",
159
+ "text": "true"
160
+ }],
161
+ "text": "The component's initial render will fit the container."
162
+ },
163
+ "attribute": "autofit",
164
+ "reflect": false,
165
+ "defaultValue": "true"
166
+ },
167
+ "collapsible": {
168
+ "type": "boolean",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "boolean",
172
+ "resolved": "boolean",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": false,
177
+ "docs": {
178
+ "tags": [{
179
+ "name": "default",
180
+ "text": "true"
181
+ }],
182
+ "text": "Nodes can be expanded/collapsed."
183
+ },
184
+ "attribute": "collapsible",
185
+ "reflect": false,
186
+ "defaultValue": "true"
187
+ },
188
+ "customStyle": {
189
+ "type": "string",
190
+ "mutable": false,
191
+ "complexType": {
192
+ "original": "string",
193
+ "resolved": "string",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": false,
198
+ "docs": {
199
+ "tags": [{
200
+ "name": "default",
201
+ "text": "\"\""
202
+ }, {
203
+ "name": "see",
204
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
205
+ }],
206
+ "text": "Custom style of the component."
207
+ },
208
+ "attribute": "custom-style",
209
+ "reflect": false,
210
+ "defaultValue": "''"
211
+ },
212
+ "data": {
213
+ "type": "unknown",
214
+ "mutable": false,
215
+ "complexType": {
216
+ "original": "KupFamilyTreeData",
217
+ "resolved": "KupFamilyTreeData",
218
+ "references": {
219
+ "KupFamilyTreeData": {
220
+ "location": "import",
221
+ "path": "./kup-family-tree-declarations"
222
+ }
223
+ }
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [{
229
+ "name": "default",
230
+ "text": "null"
231
+ }],
232
+ "text": "Actual data of the component."
233
+ },
234
+ "defaultValue": "null"
235
+ },
236
+ "layout": {
237
+ "type": "unknown",
238
+ "mutable": false,
239
+ "complexType": {
240
+ "original": "KupBoxLayout",
241
+ "resolved": "KupBoxLayout",
242
+ "references": {
243
+ "KupBoxLayout": {
244
+ "location": "import",
245
+ "path": "../kup-box/kup-box-declarations"
246
+ }
247
+ }
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [{
253
+ "name": "default",
254
+ "text": "null"
255
+ }],
256
+ "text": "Layout of the boxes."
257
+ },
258
+ "defaultValue": "null"
259
+ }
260
+ }; }
261
+ static get events() { return [{
262
+ "method": "kupClick",
263
+ "name": "kup-familytree-click",
264
+ "bubbles": true,
265
+ "cancelable": false,
266
+ "composed": true,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": ""
270
+ },
271
+ "complexType": {
272
+ "original": "KupFamilyTreeEventPayload",
273
+ "resolved": "KupFamilyTreeEventPayload",
274
+ "references": {
275
+ "KupFamilyTreeEventPayload": {
276
+ "location": "import",
277
+ "path": "./kup-family-tree-declarations"
278
+ }
279
+ }
280
+ }
281
+ }, {
282
+ "method": "kupContextMenu",
283
+ "name": "kup-familytree-contextmenu",
284
+ "bubbles": true,
285
+ "cancelable": false,
286
+ "composed": true,
287
+ "docs": {
288
+ "tags": [],
289
+ "text": ""
290
+ },
291
+ "complexType": {
292
+ "original": "KupFamilyTreeEventPayload",
293
+ "resolved": "KupFamilyTreeEventPayload",
294
+ "references": {
295
+ "KupFamilyTreeEventPayload": {
296
+ "location": "import",
297
+ "path": "./kup-family-tree-declarations"
298
+ }
299
+ }
300
+ }
301
+ }, {
302
+ "method": "kupDblClick",
303
+ "name": "kup-familytree-dblclick",
304
+ "bubbles": true,
305
+ "cancelable": false,
306
+ "composed": true,
307
+ "docs": {
308
+ "tags": [],
309
+ "text": ""
310
+ },
311
+ "complexType": {
312
+ "original": "KupFamilyTreeEventPayload",
313
+ "resolved": "KupFamilyTreeEventPayload",
314
+ "references": {
315
+ "KupFamilyTreeEventPayload": {
316
+ "location": "import",
317
+ "path": "./kup-family-tree-declarations"
318
+ }
319
+ }
320
+ }
321
+ }]; }
322
+ static get methods() { return {
323
+ "getProps": {
324
+ "complexType": {
325
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
326
+ "parameters": [{
327
+ "tags": [{
328
+ "name": "param",
329
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
330
+ }],
331
+ "text": "- When provided and true, the result will be the list of props with their description."
332
+ }],
333
+ "references": {
334
+ "Promise": {
335
+ "location": "global"
336
+ },
337
+ "GenericObject": {
338
+ "location": "import",
339
+ "path": "../../types/GenericTypes"
340
+ }
341
+ },
342
+ "return": "Promise<GenericObject>"
343
+ },
344
+ "docs": {
345
+ "text": "Used to retrieve component's props values.",
346
+ "tags": [{
347
+ "name": "param",
348
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
349
+ }, {
350
+ "name": "returns",
351
+ "text": "List of props as object, each key will be a prop."
352
+ }]
353
+ }
354
+ },
355
+ "refresh": {
356
+ "complexType": {
357
+ "signature": "() => Promise<void>",
358
+ "parameters": [],
359
+ "references": {
360
+ "Promise": {
361
+ "location": "global"
362
+ }
363
+ },
364
+ "return": "Promise<void>"
365
+ },
366
+ "docs": {
367
+ "text": "This method is used to trigger a new render of the component.",
368
+ "tags": []
369
+ }
370
+ },
371
+ "setProps": {
372
+ "complexType": {
373
+ "signature": "(props: GenericObject) => Promise<void>",
374
+ "parameters": [{
375
+ "tags": [{
376
+ "name": "param",
377
+ "text": "props - Object containing props that will be set to the component."
378
+ }],
379
+ "text": "- Object containing props that will be set to the component."
380
+ }],
381
+ "references": {
382
+ "Promise": {
383
+ "location": "global"
384
+ },
385
+ "GenericObject": {
386
+ "location": "import",
387
+ "path": "../../types/GenericTypes"
388
+ }
389
+ },
390
+ "return": "Promise<void>"
391
+ },
392
+ "docs": {
393
+ "text": "Sets the props to the component.",
394
+ "tags": [{
395
+ "name": "param",
396
+ "text": "props - Object containing props that will be set to the component."
397
+ }]
398
+ }
399
+ }
400
+ }; }
401
+ static get elementRef() { return "rootElement"; }
402
+ }
403
+ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap(), _KupFamilyTree_currentPanX = new WeakMap(), _KupFamilyTree_currentPanY = new WeakMap(), _KupFamilyTree_interactableTouch = new WeakMap(), _KupFamilyTree_kupManager = new WeakMap(), _KupFamilyTree_moveCb = new WeakMap(), _KupFamilyTree_wrapperEl = new WeakMap(), _KupFamilyTree_instances = new WeakSet(), _KupFamilyTree_buildChildLine = function _KupFamilyTree_buildChildLine(first, last, alone, moreTwo) {
404
+ const content = [];
405
+ content.push(h("td", { class: {
406
+ 'family-tree__line': true,
407
+ 'family-tree__line--right': !first,
408
+ 'family-tree__line--top': !first,
409
+ } },
410
+ h("div", { class: 'family-tree__line--placeholder' })));
411
+ content.push(h("td", { class: {
412
+ 'family-tree__line': true,
413
+ 'family-tree__line--left': first,
414
+ 'family-tree__line--top': (first && !alone) || (moreTwo && !last),
415
+ } },
416
+ h("div", { class: 'family-tree__line--placeholder' })));
417
+ return content;
418
+ }, _KupFamilyTree_buildNode = function _KupFamilyTree_buildNode(node) {
419
+ var _a;
420
+ let children = null;
421
+ let staffChildren = null;
422
+ if (!this.collapsible || (this.collapsible && node.isExpanded)) {
423
+ (_a = node.children) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
424
+ if (child.isStaff) {
425
+ if (!staffChildren) {
426
+ staffChildren = [];
427
+ }
428
+ staffChildren.push(child);
429
+ }
430
+ else {
431
+ if (!children) {
432
+ children = [];
433
+ }
434
+ children.push(child);
435
+ }
436
+ });
437
+ }
438
+ const span1 = children ? children.length * 2 : 1;
439
+ const styleVLine = {
440
+ 'family-tree__line': true,
441
+ 'family-tree__line--placeholder': !!(children || staffChildren),
442
+ 'family-tree__line--vertical': !!(children || staffChildren),
443
+ };
444
+ const data = {
445
+ columns: [
446
+ { name: '*TREECOL', title: 'Fake column' },
447
+ ...this.data.columns,
448
+ ],
449
+ rows: [{ cells: Object.assign({ '*TREECOL': node }, node.cells) }],
450
+ };
451
+ const layout = node.layout || this.layout || null;
452
+ const expandButtonProp = {
453
+ icon: node.isExpanded ? 'remove' : 'plus',
454
+ styling: FButtonStyling.OUTLINED,
455
+ slim: true,
456
+ onClick: () => {
457
+ node.isExpanded = !node.isExpanded;
458
+ this.refresh();
459
+ },
460
+ };
461
+ const box = (h("div", { class: 'family-tree__item' },
462
+ h("div", { class: 'family-tree__item__wrapper' },
463
+ h("kup-box", { class: "kup-borderless kup-paddingless", customStyle: "#kup-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }", data: data, layout: layout }),
464
+ this.collapsible &&
465
+ node.children &&
466
+ node.children.length > 0 ? (h(FButton, Object.assign({}, expandButtonProp))) : undefined)));
467
+ const staffStyle = {
468
+ ['--kup_familytree_staffchildren']: (staffChildren === null || staffChildren === void 0 ? void 0 : staffChildren.length.toString()) || '0',
469
+ };
470
+ //TODO: set data-cell and data-column if needed inside events
471
+ return (h("table", { class: 'family-tree__node' },
472
+ h("tr", null,
473
+ h("td", { "data-row": node, colSpan: span1 }, box)),
474
+ h("tr", null,
475
+ h("td", { colSpan: span1 },
476
+ h("div", { class: styleVLine }))),
477
+ staffChildren
478
+ ? [
479
+ h("tr", null,
480
+ h("td", { colSpan: span1 },
481
+ h("div", { class: Object.assign(Object.assign({}, styleVLine), { 'family-tree__line--staff': true }), style: staffStyle }),
482
+ h("div", { class: "family-tree__node__staff", style: staffStyle }, staffChildren.map((inode) => [
483
+ h("div", { class: "family-tree__node__staff__item" }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)),
484
+ ])))),
485
+ ]
486
+ : null,
487
+ staffChildren && children
488
+ ? [
489
+ h("tr", null,
490
+ h("td", { colSpan: span1 },
491
+ h("div", { class: styleVLine }))),
492
+ h("tr", null,
493
+ h("td", { colSpan: span1 },
494
+ h("div", { class: styleVLine }))),
495
+ ]
496
+ : null,
497
+ children
498
+ ? [
499
+ h("tr", null, children.map((inode) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildChildLine).call(this, children.indexOf(inode) == 0, children.indexOf(inode) ==
500
+ children.length - 1, children.length == 1, children.length > 2))),
501
+ h("tr", null, children.map((inode) => (h("td", { colSpan: 2 }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode))))),
502
+ ]
503
+ : undefined));
504
+ }, _KupFamilyTree_buildNodes = function _KupFamilyTree_buildNodes(nodes) {
505
+ return nodes.map((node) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, node));
506
+ }, _KupFamilyTree_createTree = function _KupFamilyTree_createTree() {
507
+ const emptyData = !this.data || !this.data.rows || !this.data.rows.length;
508
+ return (h("div", { class: "family-tree", onContextMenu: (e) => {
509
+ e.preventDefault();
510
+ }, ref: (el) => (__classPrivateFieldSet(this, _KupFamilyTree_wrapperEl, el, "f")) }, emptyData ? (h("div", null, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))) : (__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodes).call(this, this.data.rows))));
511
+ }, _KupFamilyTree_startPanning = function _KupFamilyTree_startPanning(e) {
512
+ __classPrivateFieldSet(this, _KupFamilyTree_currentPanX, e.clientX, "f");
513
+ __classPrivateFieldSet(this, _KupFamilyTree_currentPanY, e.clientY, "f");
514
+ const endPanning = () => {
515
+ document.removeEventListener('pointermove', __classPrivateFieldGet(this, _KupFamilyTree_moveCb, "f"));
516
+ document.removeEventListener('pointerup', endPanning);
517
+ };
518
+ document.addEventListener('pointermove', __classPrivateFieldGet(this, _KupFamilyTree_moveCb, "f"));
519
+ document.addEventListener('pointerup', endPanning);
520
+ }, _KupFamilyTree_getEventPath = function _KupFamilyTree_getEventPath(currentEl) {
521
+ const path = [];
522
+ while (currentEl &&
523
+ currentEl !== this.rootElement &&
524
+ currentEl !== document.body) {
525
+ path.push(currentEl);
526
+ currentEl = currentEl.parentNode
527
+ ? currentEl.parentNode
528
+ : currentEl.host;
529
+ }
530
+ return path;
531
+ }, _KupFamilyTree_getEventDetails = function _KupFamilyTree_getEventDetails(path, e) {
532
+ let td;
533
+ if (path) {
534
+ for (let i = path.length - 1; i >= 0; i--) {
535
+ let p = path[i];
536
+ if (!p.tagName) {
537
+ continue;
538
+ }
539
+ switch (p.tagName.toUpperCase()) {
540
+ case 'TD': {
541
+ td = p;
542
+ break;
543
+ }
544
+ }
545
+ }
546
+ }
547
+ let cell = null, column = null, row = null;
548
+ if (td) {
549
+ cell = td['data-cell'];
550
+ column = td['data-column'];
551
+ row = td['data-row'];
552
+ }
553
+ return {
554
+ cell: cell ? cell : null,
555
+ column: column ? column : null,
556
+ originalEvent: e,
557
+ row: row ? row : null,
558
+ td: td ? td : null,
559
+ };
560
+ }, _KupFamilyTree_clickHandler = function _KupFamilyTree_clickHandler(e) {
561
+ const details = __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_getEventDetails).call(this, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_getEventPath).call(this, e.target), e);
562
+ return details;
563
+ }, _KupFamilyTree_contextMenuHandler = function _KupFamilyTree_contextMenuHandler(e) {
564
+ const details = __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_getEventDetails).call(this, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_getEventPath).call(this, e.target), e);
565
+ return details;
566
+ }, _KupFamilyTree_dblClickHandler = function _KupFamilyTree_dblClickHandler(e) {
567
+ const details = __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_getEventDetails).call(this, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_getEventPath).call(this, e.target), e);
568
+ return details;
569
+ }, _KupFamilyTree_didLoadInteractables = function _KupFamilyTree_didLoadInteractables() {
570
+ __classPrivateFieldGet(this, _KupFamilyTree_interactableTouch, "f").push(this.rootElement);
571
+ const tapCb = (e) => {
572
+ if (__classPrivateFieldGet(this, _KupFamilyTree_hold, "f")) {
573
+ __classPrivateFieldSet(this, _KupFamilyTree_hold, false, "f");
574
+ return;
575
+ }
576
+ switch (e.button) {
577
+ // left click
578
+ case 0:
579
+ // Note: event must be cloned
580
+ // otherwise inside setTimeout will be exiting the Shadow DOM scope(causing loss of information, including target).
581
+ const clone = {};
582
+ for (const key in e) {
583
+ clone[key] = e[key];
584
+ }
585
+ __classPrivateFieldGet(this, _KupFamilyTree_clickTimeout, "f").push(setTimeout(() => {
586
+ this.kupClick.emit({
587
+ comp: this,
588
+ id: this.rootElement.id,
589
+ details: __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_clickHandler).call(this, clone),
590
+ });
591
+ }, 300));
592
+ break;
593
+ // right click
594
+ case 2:
595
+ this.kupContextMenu.emit({
596
+ comp: this,
597
+ id: this.rootElement.id,
598
+ details: __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_contextMenuHandler).call(this, e),
599
+ });
600
+ break;
601
+ }
602
+ };
603
+ const doubletapCb = (e) => {
604
+ switch (e.button) {
605
+ // left click
606
+ case 0:
607
+ for (let index = 0; index < __classPrivateFieldGet(this, _KupFamilyTree_clickTimeout, "f").length; index++) {
608
+ clearTimeout(__classPrivateFieldGet(this, _KupFamilyTree_clickTimeout, "f")[index]);
609
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logMessage(this, 'Cleared clickHandler timeout(' +
610
+ __classPrivateFieldGet(this, _KupFamilyTree_clickTimeout, "f")[index] +
611
+ ').');
612
+ }
613
+ __classPrivateFieldSet(this, _KupFamilyTree_clickTimeout, [], "f");
614
+ this.kupDblClick.emit({
615
+ comp: this,
616
+ id: this.rootElement.id,
617
+ details: __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_dblClickHandler).call(this, e),
618
+ });
619
+ break;
620
+ }
621
+ };
622
+ const holdCb = (e) => {
623
+ if (e.pointerType === 'pen' || e.pointerType === 'touch') {
624
+ __classPrivateFieldSet(this, _KupFamilyTree_hold, true, "f");
625
+ this.kupContextMenu.emit({
626
+ comp: this,
627
+ id: this.rootElement.id,
628
+ details: __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_contextMenuHandler).call(this, e),
629
+ });
630
+ }
631
+ };
632
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").interact.on(this.rootElement, KupPointerEventTypes.TAP, tapCb);
633
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").interact.on(this.rootElement, KupPointerEventTypes.DOUBLETAP, doubletapCb);
634
+ __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").interact.on(this.rootElement, KupPointerEventTypes.HOLD, holdCb);
635
+ }, _KupFamilyTree_zoomTree = function _KupFamilyTree_zoomTree(event) {
636
+ const current = parseFloat(__classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").style.getPropertyValue('--kup_familytree_scale')) || 1;
637
+ const delta = 0.05;
638
+ let value = event.deltaY > 0 ? current - delta : current + delta;
639
+ if (value < delta) {
640
+ value = delta;
641
+ }
642
+ __classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").style.setProperty('--kup_familytree_scale', value.toFixed(2));
643
+ }, _KupFamilyTree_autofit = function _KupFamilyTree_autofit(parentWidth, childWidth) {
644
+ const multiplierStep = 0.01;
645
+ const minWidth = (85 / 100) * parentWidth;
646
+ const maxWidth = (95 / 100) * parentWidth;
647
+ let multiplier = 1;
648
+ let tooManyAttempts = 2000;
649
+ let tempWidth = childWidth;
650
+ while ((tempWidth < minWidth || tempWidth > maxWidth) &&
651
+ tooManyAttempts > 0 &&
652
+ multiplier > multiplierStep) {
653
+ tooManyAttempts--;
654
+ if (tempWidth < minWidth) {
655
+ multiplier = multiplier + multiplierStep;
656
+ }
657
+ else if (tempWidth > maxWidth) {
658
+ multiplier = multiplier - multiplierStep;
659
+ }
660
+ else {
661
+ tooManyAttempts = 0;
662
+ }
663
+ tempWidth = childWidth * multiplier;
664
+ }
665
+ __classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").style.setProperty('--kup_familytree_scale', multiplier.toFixed(2));
666
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Props of the kup-form component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export var KupFormProps;
6
+ (function (KupFormProps) {
7
+ KupFormProps["customStyle"] = "Custom style of the component.";
8
+ KupFormProps["data"] = "Actual data of the form.";
9
+ KupFormProps["layout"] = "How the form will arrange its content.";
10
+ })(KupFormProps || (KupFormProps = {}));
11
+ export var KupFormLabelAlignment;
12
+ (function (KupFormLabelAlignment) {
13
+ KupFormLabelAlignment["CENTER"] = "center";
14
+ KupFormLabelAlignment["LEFT"] = "left";
15
+ KupFormLabelAlignment["RIGHT"] = "right";
16
+ })(KupFormLabelAlignment || (KupFormLabelAlignment = {}));
17
+ export var KupFormLabelPlacement;
18
+ (function (KupFormLabelPlacement) {
19
+ KupFormLabelPlacement["BOTTOM"] = "bottom";
20
+ KupFormLabelPlacement["LEFT"] = "left";
21
+ KupFormLabelPlacement["HIDDEN"] = "hidden";
22
+ KupFormLabelPlacement["PLACEHOLDER"] = "placeholder";
23
+ KupFormLabelPlacement["RIGHT"] = "right";
24
+ KupFormLabelPlacement["TOP"] = "top";
25
+ })(KupFormLabelPlacement || (KupFormLabelPlacement = {}));