@sme.up/ketchup 5.2.1-SNAPSHOT → 6.0.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 (197) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-a78d6fac.js} +2 -2
  3. package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
  4. package/dist/cjs/{f-button-2b9b99b1.js → f-button-ac179257.js} +1 -1
  5. package/dist/cjs/{f-cell-8351cb84.js → f-cell-69294bca.js} +37 -37
  6. package/dist/cjs/{f-chip-df59e1b0.js → f-chip-b00897d7.js} +4 -3
  7. package/dist/cjs/{f-image-12bab3b5.js → f-image-89f25556.js} +1 -1
  8. package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
  9. package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-e1e45ade.js} +1 -1
  10. package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
  11. package/dist/cjs/ketchup.cjs.js +2 -2
  12. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  13. package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1509 -5423
  14. package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17101 -14787
  15. package/dist/cjs/kup-calendar.cjs.entry.js +41 -33
  16. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  17. package/dist/cjs/kup-dash-list.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-drawer.cjs.entry.js +11 -4
  20. package/dist/cjs/kup-field.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-form-editor.cjs.entry.js +404 -0
  22. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  23. package/dist/cjs/kup-image-list.cjs.entry.js +228 -0
  24. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-manager-7a941909.js +16703 -0
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  30. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/{utils-e99921c1.js → utils-6287d878.js} +1 -1
  35. package/dist/collection/assets/card.js +4 -5
  36. package/dist/collection/assets/data-table.js +44 -79
  37. package/dist/collection/assets/form-editor.js +338 -0
  38. package/dist/collection/assets/image-list.js +624 -0
  39. package/dist/collection/assets/index.js +8 -0
  40. package/dist/collection/assets/kupdata.js +0 -3
  41. package/dist/collection/assets/kuptooltip.js +53 -7
  42. package/dist/collection/assets/tree.js +0 -128
  43. package/dist/collection/collection-manifest.json +7 -6
  44. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
  45. package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
  46. package/dist/collection/components/kup-box/kup-box.js +7 -135
  47. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  48. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  49. package/dist/collection/components/kup-card/kup-card.css +26 -8
  50. package/dist/collection/components/kup-card/kup-card.js +1 -2
  51. package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
  52. package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
  53. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
  54. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  55. package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
  56. package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
  57. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
  58. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
  59. package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
  60. package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
  61. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
  62. package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
  63. package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
  64. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
  65. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  66. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  67. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
  68. package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -2
  69. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
  70. package/dist/collection/components/kup-tree/kup-tree.css +10 -3
  71. package/dist/collection/components/kup-tree/kup-tree.js +81 -145
  72. package/dist/collection/f-components/f-cell/f-cell.js +7 -7
  73. package/dist/collection/f-components/f-chip/f-chip.js +2 -1
  74. package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
  75. package/dist/collection/managers/kup-data/kup-data.js +4 -1
  76. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
  77. package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
  78. package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
  79. package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
  80. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
  81. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
  82. package/dist/collection/types/GenericTypes.js +2 -0
  83. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
  84. package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-964da6b5.js} +3 -3
  85. package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
  86. package/dist/esm/{f-button-54a49fd8.js → f-button-871a544b.js} +1 -1
  87. package/dist/esm/{f-cell-d5dac50b.js → f-cell-521ef17a.js} +38 -38
  88. package/dist/esm/{f-chip-a3035b4b.js → f-chip-1dda722f.js} +5 -4
  89. package/dist/esm/{f-image-d32465e3.js → f-image-c468d8ae.js} +1 -1
  90. package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
  91. package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-d6c61c73.js} +1 -1
  92. package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
  93. package/dist/esm/ketchup.js +2 -2
  94. package/dist/esm/kup-accordion.entry.js +5 -5
  95. package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1461 -5373
  96. package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17101 -14788
  97. package/dist/esm/kup-calendar.entry.js +42 -34
  98. package/dist/esm/kup-cell.entry.js +7 -7
  99. package/dist/esm/kup-dash-list.entry.js +3 -3
  100. package/dist/esm/kup-dash_2.entry.js +2 -2
  101. package/dist/esm/kup-drawer.entry.js +11 -4
  102. package/dist/esm/kup-field.entry.js +1 -1
  103. package/dist/esm/kup-form-editor.entry.js +400 -0
  104. package/dist/esm/kup-iframe.entry.js +2 -2
  105. package/dist/esm/kup-image-list.entry.js +224 -0
  106. package/dist/esm/kup-lazy.entry.js +2 -2
  107. package/dist/esm/kup-magic-box.entry.js +3 -3
  108. package/dist/esm/kup-manager-58b075b4.js +16686 -0
  109. package/dist/esm/kup-nav-bar.entry.js +2 -2
  110. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  111. package/dist/esm/kup-photo-frame.entry.js +4 -4
  112. package/dist/esm/kup-probe.entry.js +1 -1
  113. package/dist/esm/kup-qlik.entry.js +1 -1
  114. package/dist/esm/kup-snackbar.entry.js +5 -5
  115. package/dist/esm/loader.js +2 -2
  116. package/dist/esm/polyfills/css-shim.js +1 -1
  117. package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
  118. package/dist/esm/{utils-f24319a0.js → utils-d7e4b3c2.js} +2 -2
  119. package/dist/ketchup/ketchup.esm.js +1 -1
  120. package/dist/ketchup/{p-7a74ad17.js → p-1ae66cc5.js} +1 -1
  121. package/dist/ketchup/{p-e6709c26.entry.js → p-3c11e615.entry.js} +1 -1
  122. package/dist/ketchup/{p-669bde31.js → p-44ec4f03.js} +1 -1
  123. package/dist/ketchup/p-4ffbc3ff.js +1 -0
  124. package/dist/ketchup/p-5264a3e6.entry.js +1 -0
  125. package/dist/ketchup/{p-e8e3c9da.entry.js → p-65974e48.entry.js} +1 -1
  126. package/dist/ketchup/p-65b46587.entry.js +40 -0
  127. package/dist/ketchup/{p-09d708c4.entry.js → p-6dff70f8.entry.js} +1 -1
  128. package/dist/ketchup/{p-34748c91.js → p-7454cb92.js} +1 -1
  129. package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
  130. package/dist/ketchup/p-7eff4eee.js +1 -0
  131. package/dist/ketchup/p-80968627.entry.js +1 -0
  132. package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
  133. package/dist/ketchup/p-8cdf61a4.js +1 -0
  134. package/dist/ketchup/{p-8418e8fa.entry.js → p-954cc340.entry.js} +1 -1
  135. package/dist/ketchup/{p-4173422f.entry.js → p-99e0d768.entry.js} +1 -1
  136. package/dist/ketchup/{p-41741c28.entry.js → p-a0f6e25c.entry.js} +1 -1
  137. package/dist/ketchup/p-a203f78b.js +45 -0
  138. package/dist/ketchup/{p-9a61d8dc.entry.js → p-a615a92b.entry.js} +1 -1
  139. package/dist/ketchup/p-aca0e54b.js +30 -0
  140. package/dist/ketchup/p-b8939a8b.entry.js +1 -0
  141. package/dist/ketchup/p-bfc3bac7.js +1 -0
  142. package/dist/ketchup/p-c5ce8951.entry.js +1 -0
  143. package/dist/ketchup/p-cad1e097.entry.js +9 -0
  144. package/dist/ketchup/{p-bb8844bf.entry.js → p-d2ee56dd.entry.js} +1 -1
  145. package/dist/ketchup/p-db71436b.entry.js +27 -0
  146. package/dist/ketchup/{p-40f97429.js → p-e0035c58.js} +1 -1
  147. package/dist/ketchup/p-e1039cf2.entry.js +1 -0
  148. package/dist/ketchup/{p-44192f30.entry.js → p-ea10176c.entry.js} +1 -1
  149. package/dist/ketchup/{p-67842f1e.entry.js → p-f09f2f98.entry.js} +1 -1
  150. package/dist/ketchup/{p-203d6295.entry.js → p-f71a1675.entry.js} +1 -1
  151. package/dist/ketchup/{p-11e72a8c.entry.js → p-fac1a08b.entry.js} +1 -1
  152. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
  153. package/dist/types/components/kup-box/kup-box.d.ts +0 -22
  154. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
  155. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  156. package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
  157. package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
  158. package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -0
  159. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
  160. package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
  161. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
  162. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
  163. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -5
  164. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -25
  165. package/dist/types/components.d.ts +121 -231
  166. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  167. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
  168. package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
  169. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
  170. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
  171. package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
  172. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
  173. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
  174. package/dist/types/types/GenericTypes.d.ts +2 -0
  175. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
  176. package/package.json +15 -14
  177. package/dist/cjs/kup-manager-5c03da64.js +0 -8795
  178. package/dist/collection/assets/tooltip.js +0 -73
  179. package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
  180. package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
  181. package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
  182. package/dist/collection/utils/helpers.js +0 -38
  183. package/dist/esm/kup-manager-9316a184.js +0 -8778
  184. package/dist/ketchup/p-12773ca8.js +0 -9
  185. package/dist/ketchup/p-44f8da2a.js +0 -1
  186. package/dist/ketchup/p-4f56932b.js +0 -1
  187. package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
  188. package/dist/ketchup/p-7de0d7e1.js +0 -1
  189. package/dist/ketchup/p-96bf19aa.entry.js +0 -1
  190. package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
  191. package/dist/ketchup/p-b6c21223.entry.js +0 -27
  192. package/dist/ketchup/p-c58a2a81.entry.js +0 -1
  193. package/dist/ketchup/p-ca3d585b.entry.js +0 -1
  194. package/dist/ketchup/p-ecb7069b.js +0 -135
  195. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
  196. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
  197. package/dist/types/utils/helpers.d.ts +0 -4
@@ -1,1205 +0,0 @@
1
- import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
2
- import { ViewMode, KupTooltipProps, } from './kup-tooltip-declarations';
3
- import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
4
- import { kupDynamicPositionAttribute, } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
5
- import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
6
- import { KupCardFamily } from '../kup-card/kup-card-declarations';
7
- import { getProps, setProps } from '../../utils/utils';
8
- import { componentWrapperId } from '../../variables/GenericVariables';
9
- export class KupTooltip {
10
- constructor() {
11
- this.visible = false;
12
- /**
13
- * Custom style of the component.
14
- * @default ""
15
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
16
- */
17
- this.customStyle = '';
18
- /**
19
- * Timeout for loadDetail
20
- */
21
- this.detailTimeout = 800;
22
- /**
23
- * Layout used to display the items
24
- */
25
- this.layout = '1';
26
- /**
27
- * Timeout for tooltip
28
- */
29
- this.loadTimeout = 1000;
30
- /**
31
- * Owner of this tooltip
32
- */
33
- this.owner = 'not-set';
34
- /**
35
- * Instance of the KupManager class.
36
- */
37
- this.kupManager = kupManagerInstance();
38
- this.viewMode = ViewMode.TOOLTIP;
39
- this.firstLoad = false;
40
- this._mouseIsOn = false;
41
- this.waitingServerResponse = false;
42
- this.clickCb = null;
43
- }
44
- onElementChanged() {
45
- if (this.relatedObject != null) {
46
- this.loadAll();
47
- }
48
- else {
49
- this.resetAll();
50
- }
51
- }
52
- onDataChanged() {
53
- this.kupManager.removeClickCallback(this.clickCb);
54
- this.waitingServerResponse = false;
55
- if (this.relatedObject == null) {
56
- this.kupManager.dynamicPosition.stop(this.rootElement);
57
- this.onElementChanged();
58
- return;
59
- }
60
- if (this.data == null) {
61
- this.kupManager.dynamicPosition.stop(this.rootElement);
62
- this.relatedObject = null;
63
- return;
64
- }
65
- if (!this.kupManager.dynamicPosition.isRegistered(this.rootElement)) {
66
- this.kupManager.dynamicPosition.register(this.rootElement, this.relatedObject.element);
67
- }
68
- else {
69
- this.kupManager.dynamicPosition.changeAnchor(this.rootElement, this.relatedObject.element);
70
- }
71
- if (!this.clickCb) {
72
- this.clickCb = {
73
- cb: () => {
74
- this.data = null;
75
- this.kupManager.dynamicPosition.stop(this.rootElement);
76
- this.kupManager.removeClickCallback(this.clickCb);
77
- },
78
- el: this.rootElement,
79
- };
80
- }
81
- this.kupManager.addClickCallback(this.clickCb, true);
82
- this.kupManager.dynamicPosition.start(this.rootElement);
83
- this.visible = true;
84
- this.startLoadDetail(true);
85
- }
86
- onTooltipDetailChanged() {
87
- if (this.relatedObject == null) {
88
- this.onElementChanged();
89
- return;
90
- }
91
- if (this.data == null) {
92
- this.relatedObject = null;
93
- return;
94
- }
95
- this.waitingServerResponse = false;
96
- }
97
- // ---- Public methods ----
98
- /**
99
- * This method is used to trigger a new render of the component.
100
- */
101
- async refresh() {
102
- forceUpdate(this);
103
- }
104
- async setTooltipInfo(relatedObject) {
105
- //console.log('tooltip setTooltipInfo');
106
- this.resetAll();
107
- this.relatedObject = relatedObject;
108
- }
109
- async unsetTooltipInfo() {
110
- if (!this.mouseIsOn() && !this.isCardLayout()) {
111
- //console.log('tooltip unsetTooltipInfo');
112
- this.onMouseLeave();
113
- }
114
- else {
115
- //console.log('tooltip unsetTooltipInfo mouseIsoN');
116
- }
117
- }
118
- /**
119
- * Used to retrieve component's props values.
120
- * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
121
- * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
122
- */
123
- async getProps(descriptions) {
124
- return getProps(this, KupTooltipProps, descriptions);
125
- }
126
- /**
127
- * Sets the props to the component.
128
- * @param {GenericObject} props - Object containing props that will be set to the component.
129
- */
130
- async setProps(props) {
131
- setProps(this, KupTooltipProps, props);
132
- }
133
- // ---- Private methods ----
134
- mouseIsOn() {
135
- return this._mouseIsOn || this.waitingServerResponse;
136
- }
137
- hasDetailData() {
138
- return !!this.detailData && !!this.detailData.rows;
139
- }
140
- hasCellOptionsData() {
141
- return this.cellOptions != null;
142
- }
143
- hasActionsData() {
144
- return (this.hasDetailData() &&
145
- !!this.detailData.actions &&
146
- !!this.detailData.actions.command);
147
- }
148
- startLoadDetail(withTimeout) {
149
- if (!this.hasDetail()) {
150
- return;
151
- }
152
- this.waitingServerResponse = true;
153
- // loading detail
154
- var timeoutMs = withTimeout == true ? this.detailTimeout : 0;
155
- this.loadDetailTimeout = setTimeout(() => {
156
- this.loadDetail();
157
- this.firstLoad = true;
158
- }, timeoutMs);
159
- }
160
- resetTimeouts() {
161
- this.resetTooltipTimeout();
162
- this.resetLoadDetailTimeout();
163
- this.resetMouseLeaveTimeout();
164
- }
165
- resetTooltipTimeout() {
166
- if (this.tooltipTimeout) {
167
- clearTimeout(this.tooltipTimeout);
168
- this.tooltipTimeout = null;
169
- }
170
- }
171
- resetLoadDetailTimeout() {
172
- if (this.loadDetailTimeout) {
173
- clearTimeout(this.loadDetailTimeout);
174
- this.loadDetailTimeout = null;
175
- }
176
- }
177
- resetMouseLeaveTimeout() {
178
- if (this.mouseLeaveTimeout) {
179
- clearTimeout(this.mouseLeaveTimeout);
180
- this.mouseLeaveTimeout = null;
181
- }
182
- }
183
- isViewModeTooltip() {
184
- return this.viewMode == ViewMode.TOOLTIP;
185
- }
186
- isViewModeCellOptions() {
187
- return this.viewMode == ViewMode.CELL_OPTIONS;
188
- }
189
- loadDetail() {
190
- this.resetLoadDetailTimeout();
191
- if (this.relatedObject == null) {
192
- this.resetAll();
193
- return;
194
- }
195
- if (this.data == null) {
196
- this.resetAll();
197
- return;
198
- }
199
- if (this.isViewModeTooltip()) {
200
- this.cellOptions = null;
201
- this.kupTooltipLoadDetail.emit({
202
- comp: this,
203
- id: this.rootElement.id,
204
- relatedObject: this.relatedObject,
205
- });
206
- }
207
- else if (this.isViewModeCellOptions()) {
208
- this.detailData = null;
209
- this.kupTooltipLoadCellOptions.emit({
210
- comp: this,
211
- id: this.rootElement.id,
212
- relatedObject: this.relatedObject,
213
- });
214
- }
215
- }
216
- getRows() {
217
- return this.hasDetailData() ? this.detailData.rows : [];
218
- }
219
- getImage() {
220
- if (this.data) {
221
- return this.data.image;
222
- }
223
- return '';
224
- }
225
- getTitle() {
226
- let datatitle = '';
227
- if (this.data) {
228
- datatitle = this.data.title;
229
- }
230
- const title = (h("div", null,
231
- h("div", { class: "title ellipsis", onClick: (event) => this.onDefaultOptionClick(event) }, datatitle),
232
- h("kup-button", { icon: "open-in-new", "onkup-button-click": (event) => this.onDefaultActionClick(event), title: this.kupManager.language.translate(KupLanguageGeneric.OPEN_IN_NEW_TAB) }),
233
- h("kup-button", { icon: "search", "onkup-button-click": (event) => this.onDefaultPreviewClick(event), title: this.kupManager.language.translate(KupLanguageGeneric.INFO) })));
234
- return title;
235
- }
236
- getContent() {
237
- return this.data ? this.data.content : {};
238
- }
239
- getObj() {
240
- const nullObj = { t: '', p: '', k: '', url: '' };
241
- return this.data ? this.data.obj : nullObj;
242
- }
243
- // ---- Listeners ----
244
- loadAll() {
245
- this.resetAll();
246
- this.prepareLoadData();
247
- }
248
- prepareLoadData() {
249
- this.waitingServerResponse = true;
250
- this.tooltipTimeout = setTimeout(() => {
251
- if (this.relatedObject == null) {
252
- return;
253
- }
254
- this.kupTooltipLoadData.emit({
255
- comp: this,
256
- id: this.rootElement.id,
257
- relatedObject: this.relatedObject,
258
- });
259
- }, this.loadTimeout);
260
- }
261
- onActionCommandClick(event, action) {
262
- //console.log("Emit kup-tooltip-actioncommandclick: " + JSON.stringify(action));
263
- // Blocco la propagazione del onkup-button-click per evitare che lo stesso click
264
- // sia gestito da due handler differenti, creando problemi sulla navigazione
265
- event.stopPropagation();
266
- this.kupActionCommandClick.emit({
267
- comp: this,
268
- id: this.rootElement.id,
269
- actionCommand: action,
270
- relatedObject: this.relatedObject,
271
- });
272
- }
273
- onDefaultActionClick(event) {
274
- //Evento di default al click
275
- event.stopPropagation();
276
- this.kupDefaultActionClick.emit({
277
- comp: this,
278
- id: this.rootElement.id,
279
- obj: this.getObj(),
280
- });
281
- }
282
- onDefaultPreviewClick(event) {
283
- //Evento di default al click
284
- event.stopPropagation();
285
- this.kupDefaultPreviewClick.emit({
286
- comp: this,
287
- id: this.rootElement.id,
288
- obj: this.getObj(),
289
- });
290
- }
291
- onDefaultOptionClick(event) {
292
- //Evento di default al click
293
- event.stopPropagation();
294
- this.kupDefaultOptionClick.emit({
295
- comp: this,
296
- id: this.rootElement.id,
297
- obj: this.getObj(),
298
- });
299
- }
300
- onMouseEnter() {
301
- // Cancello il mouseLeaveTimeout così se l'utente
302
- // esce e rientra rimanendo nell'intervallo di 500ms
303
- // il tip non si chiude
304
- this.resetMouseLeaveTimeout();
305
- this._mouseIsOn = true;
306
- }
307
- onMouseLeave() {
308
- this.resetMouseLeaveTimeout();
309
- if (!this.waitingServerResponse) {
310
- let timeout = 800;
311
- this.mouseLeaveTimeout = setTimeout(() => {
312
- this.relatedObject = null;
313
- this.firstLoad = false;
314
- }, timeout);
315
- }
316
- }
317
- onKupTreeNodeExpand(e) {
318
- e.stopPropagation();
319
- if (e.detail.usesDynamicExpansion != true) {
320
- return;
321
- }
322
- if (e.detail.dynamicExpansionRequireChildren != true) {
323
- return;
324
- }
325
- // TreeNode is now expanded -> Fires expanded event
326
- this.kupTreeNodeExpand.emit({
327
- comp: this,
328
- id: this.rootElement.id,
329
- treeNodePath: e.detail.treeNodePath,
330
- treeNode: e.detail.treeNode,
331
- usesDynamicExpansion: e.detail.usesDynamicExpansion,
332
- dynamicExpansionRequireChildren: e.detail.dynamicExpansionRequireChildren,
333
- tree: e.detail.comp,
334
- });
335
- }
336
- onKupTreeNodeSelected(e) {
337
- e.stopPropagation();
338
- this.kupTreeNodeSelected.emit({
339
- comp: this,
340
- id: this.rootElement.id,
341
- treeNodePath: e.detail.treeNodePath,
342
- treeNode: e.detail.treeNode,
343
- columnName: e.detail.columnName,
344
- auto: e.detail.auto,
345
- tree: e.detail.comp,
346
- });
347
- }
348
- onKupTreeNodeButtonClick(e) {
349
- e.stopPropagation();
350
- this.kupTreeNodeButtonClick.emit({
351
- comp: this,
352
- id: this.rootElement.id,
353
- treeNodePath: e.detail.treeNodePath,
354
- treeNode: e.detail.treeNode,
355
- column: e.detail.column,
356
- columnName: e.detail.columnName,
357
- auto: e.detail.auto,
358
- tree: e.detail.comp,
359
- });
360
- }
361
- onKupTreeNodeDblClick(e) {
362
- e.stopPropagation();
363
- this.kupTreeNodeDblClick.emit({
364
- comp: this,
365
- id: this.rootElement.id,
366
- treeNodePath: e.detail.treeNodePath,
367
- treeNode: e.detail.treeNode,
368
- });
369
- }
370
- onKupTreeDynamicMassExpansion(e) {
371
- e.stopPropagation();
372
- this.kupTreeDynamicMassExpansion.emit({
373
- comp: this,
374
- id: this.rootElement.id,
375
- treeNodePath: e.detail.treeNodePath,
376
- treeNode: e.detail.treeNode,
377
- expandAll: e.detail.expandAll,
378
- });
379
- }
380
- resetAll() {
381
- // reset timeouts
382
- this.resetTimeouts();
383
- // reset data
384
- this.data = null;
385
- this.detailData = null;
386
- this.cellOptions = null;
387
- // reset visibility
388
- this.visible = false;
389
- this._mouseIsOn = false;
390
- this.waitingServerResponse = false;
391
- this.viewMode = ViewMode.TOOLTIP;
392
- }
393
- // ---- Render methods ----
394
- getDefaultLayout() {
395
- return [
396
- h("div", { class: "left" },
397
- h("img", { class: "image-container", src: this.getImage() })),
398
- h("div", { class: "right" },
399
- h("h3", null, this.getTitle()),
400
- this.getInfos()),
401
- ];
402
- }
403
- getLayout2() {
404
- return (h("div", null,
405
- h("h3", null, this.getTitle())));
406
- }
407
- getLayout3() {
408
- return [
409
- h("div", null,
410
- h("h4", null, this.getTitle())),
411
- this.getInfos(),
412
- ];
413
- }
414
- getLayout4() {
415
- var info = null;
416
- var listMenu = null;
417
- var content = this.getContent();
418
- if (content) {
419
- info = content[`info1`];
420
- listMenu = content[`listMenu`];
421
- }
422
- if (info || listMenu) {
423
- let htmlMarkup = h("div", { innerHTML: info ? info.value : '' });
424
- return [
425
- h("kup-card", { data: {
426
- list: listMenu ? [listMenu] : [],
427
- text: [info ? info.label : ''],
428
- }, id: "dialog-card-5", layoutNumber: 5, layoutFamily: KupCardFamily.DIALOG, onClick: (e) => e.stopPropagation(), sizeX: "300px", sizeY: "auto" }, htmlMarkup),
429
- ];
430
- }
431
- }
432
- getLayout5() {
433
- var content = this.getContent();
434
- var asBoxData = null;
435
- var listMenuData = null;
436
- if (content) {
437
- var asBoxContent = content[`asBoxContent`];
438
- if (asBoxContent) {
439
- asBoxData = asBoxContent[`data`];
440
- }
441
- var listMenu = content[`listMenu`];
442
- if (listMenu) {
443
- listMenuData = listMenu[`data`];
444
- }
445
- }
446
- var items = [];
447
- if (asBoxData != null) {
448
- items.push(h("kup-box", { data: asBoxData, showSelection: false, showTooltipOnRightClick: false, tooltipEnabled: false, class: "kup-left-aligned kup-top-aligned kup-borderless kup-paddingless" }));
449
- }
450
- if (listMenuData != null) {
451
- items.push(h("kup-list", { data: listMenuData }));
452
- }
453
- return items;
454
- }
455
- getInfos() {
456
- let infos = null;
457
- const content = this.getContent();
458
- if (content) {
459
- infos = [];
460
- for (let i = 1; i <= 2; i++) {
461
- const info = content[`info${i}`];
462
- if (info && info.label && info.value) {
463
- if (info.label != '' && info.value != '') {
464
- infos.push(h("div", null,
465
- h("div", { class: "label ellipsis" }, info.label),
466
- h("div", { class: "value ellipsis" }, info.value)));
467
- }
468
- }
469
- }
470
- }
471
- return infos;
472
- }
473
- hasDetail() {
474
- switch (this.layout) {
475
- case '4': {
476
- return false;
477
- }
478
- case '5': {
479
- return false;
480
- }
481
- default: {
482
- return true;
483
- }
484
- }
485
- }
486
- isCardLayout() {
487
- switch (this.layout) {
488
- case '4': {
489
- return true;
490
- }
491
- default: {
492
- return false;
493
- }
494
- }
495
- }
496
- getCardLayoutContent() {
497
- switch (this.layout) {
498
- case '4': {
499
- return this.getLayout4();
500
- }
501
- default: {
502
- return null;
503
- }
504
- }
505
- }
506
- createTooltip() {
507
- if (this.data == null) {
508
- return null;
509
- }
510
- let mainContent = null;
511
- const mainContentClass = {};
512
- switch (this.layout) {
513
- case '2': {
514
- mainContent = this.getLayout2();
515
- mainContentClass['layout2'] = true;
516
- break;
517
- }
518
- case '3': {
519
- mainContent = this.getLayout3();
520
- mainContentClass['layout3'] = true;
521
- break;
522
- }
523
- case '4': {
524
- /** why are you here??? */
525
- break;
526
- }
527
- case '5': {
528
- /** why are you here??? */
529
- break;
530
- }
531
- default: {
532
- mainContent = this.getDefaultLayout();
533
- break;
534
- }
535
- }
536
- let detailContent = null;
537
- let detailActions = [];
538
- if (this.hasDetailData()) {
539
- detailContent = this.getRows().map((row) => row.cells['label'].value === '' ||
540
- row.cells['value'].value === '' ? (h("span", null)) : (h("div", { class: "detail-row" },
541
- h("div", { class: "detail-row__label ellipsis" }, row.cells['label'].value),
542
- h("div", { class: "detail-row__value ellipsis" }, row.cells['value'].value))));
543
- if (this.hasActionsData()) {
544
- detailActions = this.detailData.actions.command
545
- .slice(0, 5)
546
- .map((action) => (h("div", { class: "detail-actions__box" },
547
- h("kup-button", { title: action.text, icon: action.icon, "onkup-button-click": (event) => this.onActionCommandClick(event, action) }))));
548
- }
549
- }
550
- if (this.hasCellOptionsData()) {
551
- detailContent = [
552
- h("kup-tree", Object.assign({ class: "kup-full-width", showFilter: true }, this.cellOptions.config, this.cellOptions, { tooltipEnabled: false, "onkup-tree-nodecollapse": (e) => e.stopPropagation(), "onkup-tree-nodeexpand": (e) => this.onKupTreeNodeExpand(e), "onkup-tree-nodeselected": (e) => this.onKupTreeNodeSelected(e), "onkup-tree-buttonclick": (e) => this.onKupTreeNodeButtonClick(e), "onkup-tree-didload": (e) => e.stopPropagation(), "onkup-tree-didunload": (e) => e.stopPropagation(), "onkup-tree-nodedblclick": (e) => this.onKupTreeNodeDblClick(e), "onkup-tree-dynamicmassexpansion": (e) => this.onKupTreeDynamicMassExpansion(e) })),
553
- ];
554
- }
555
- if (this.hasDetailData() ||
556
- this.hasCellOptionsData() ||
557
- this.firstLoad) {
558
- detailActions = [
559
- ...detailActions,
560
- h("div", { class: "detail-actions__box" },
561
- h("kup-button", { title: this.getTooltipForShowOptionsButton(), icon: this.getIconForShowOptionsButton(), "onkup-button-click": () => this.onShowRightClickOptions(), onClick: (e) => e.stopPropagation() })),
562
- ];
563
- }
564
- const detailClass = {
565
- visible: this.hasDetailData() || this.hasCellOptionsData(),
566
- [this.viewMode]: true,
567
- 'detail-loaded': this.firstLoad,
568
- };
569
- return [
570
- h("div", { id: "main-content", class: mainContentClass }, mainContent),
571
- h("div", { id: "detail", class: detailClass }, detailContent),
572
- h("div", { id: "detail-actions", hidden: detailActions == null || detailActions.length == 0 }, detailActions),
573
- ];
574
- }
575
- getTooltipForShowOptionsButton() {
576
- if (this.isViewModeTooltip()) {
577
- return this.kupManager.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS);
578
- }
579
- else if (this.isViewModeCellOptions()) {
580
- return this.kupManager.language.translate(KupLanguageGeneric.SHOW_TOOLTIP_INFO);
581
- }
582
- else {
583
- return '???';
584
- }
585
- }
586
- getIconForShowOptionsButton() {
587
- if (this.isViewModeTooltip()) {
588
- return 'menu';
589
- }
590
- else if (this.isViewModeCellOptions()) {
591
- return 'menu';
592
- }
593
- else {
594
- return '???';
595
- }
596
- }
597
- onShowRightClickOptions() {
598
- this.viewMode =
599
- this.viewMode == ViewMode.TOOLTIP
600
- ? ViewMode.CELL_OPTIONS
601
- : ViewMode.TOOLTIP;
602
- this.startLoadDetail(false);
603
- }
604
- //---- Lifecycle hooks ----
605
- componentWillLoad() {
606
- this.kupManager.debug.logLoad(this, false);
607
- this.kupManager.language.register(this);
608
- }
609
- componentDidLoad() {
610
- this.kupManager.debug.logLoad(this, true);
611
- }
612
- componentWillRender() {
613
- this.kupManager.debug.logRender(this, false);
614
- }
615
- componentDidRender() {
616
- this.kupManager.debug.logRender(this, true);
617
- }
618
- render() {
619
- if (this.isCardLayout()) {
620
- return this.getCardLayoutContent();
621
- }
622
- return (h(Host, null,
623
- h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
624
- h("div", { id: componentWrapperId },
625
- h("div", { id: "wrapper", onMouseEnter: (ev) => {
626
- this.onMouseEnter();
627
- ev.stopPropagation();
628
- }, onMouseLeave: (ev) => {
629
- this.onMouseLeave();
630
- ev.stopPropagation();
631
- } },
632
- h("div", { id: "tooltip", hidden: !this.visible, onClick: (e) => e.stopPropagation() }, this.layout == '5'
633
- ? this.getLayout5()
634
- : this.createTooltip())))));
635
- }
636
- disconnectedCallback() {
637
- this.kupManager.language.unregister(this);
638
- const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
639
- if (dynamicPositionElements.length > 0) {
640
- this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
641
- }
642
- }
643
- static get is() { return "kup-tooltip"; }
644
- static get encapsulation() { return "shadow"; }
645
- static get originalStyleUrls() { return {
646
- "$": ["kup-tooltip.scss"]
647
- }; }
648
- static get styleUrls() { return {
649
- "$": ["kup-tooltip.css"]
650
- }; }
651
- static get properties() { return {
652
- "cellOptions": {
653
- "type": "unknown",
654
- "mutable": true,
655
- "complexType": {
656
- "original": "TooltipCellOptions",
657
- "resolved": "TooltipCellOptions",
658
- "references": {
659
- "TooltipCellOptions": {
660
- "location": "import",
661
- "path": "./kup-tooltip-declarations"
662
- }
663
- }
664
- },
665
- "required": false,
666
- "optional": false,
667
- "docs": {
668
- "tags": [],
669
- "text": "Data for cell options"
670
- }
671
- },
672
- "customStyle": {
673
- "type": "string",
674
- "mutable": false,
675
- "complexType": {
676
- "original": "string",
677
- "resolved": "string",
678
- "references": {}
679
- },
680
- "required": false,
681
- "optional": false,
682
- "docs": {
683
- "tags": [{
684
- "name": "default",
685
- "text": "\"\""
686
- }, {
687
- "name": "see",
688
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
689
- }],
690
- "text": "Custom style of the component."
691
- },
692
- "attribute": "custom-style",
693
- "reflect": false,
694
- "defaultValue": "''"
695
- },
696
- "data": {
697
- "type": "unknown",
698
- "mutable": true,
699
- "complexType": {
700
- "original": "TooltipData",
701
- "resolved": "TooltipData",
702
- "references": {
703
- "TooltipData": {
704
- "location": "import",
705
- "path": "./kup-tooltip-declarations"
706
- }
707
- }
708
- },
709
- "required": false,
710
- "optional": false,
711
- "docs": {
712
- "tags": [],
713
- "text": "Data for top section"
714
- }
715
- },
716
- "detailData": {
717
- "type": "unknown",
718
- "mutable": true,
719
- "complexType": {
720
- "original": "TooltipDetailData",
721
- "resolved": "TooltipDetailData",
722
- "references": {
723
- "TooltipDetailData": {
724
- "location": "import",
725
- "path": "./kup-tooltip-declarations"
726
- }
727
- }
728
- },
729
- "required": false,
730
- "optional": false,
731
- "docs": {
732
- "tags": [],
733
- "text": "Data for the detail"
734
- }
735
- },
736
- "detailTimeout": {
737
- "type": "number",
738
- "mutable": false,
739
- "complexType": {
740
- "original": "number",
741
- "resolved": "number",
742
- "references": {}
743
- },
744
- "required": false,
745
- "optional": false,
746
- "docs": {
747
- "tags": [],
748
- "text": "Timeout for loadDetail"
749
- },
750
- "attribute": "detail-timeout",
751
- "reflect": false,
752
- "defaultValue": "800"
753
- },
754
- "layout": {
755
- "type": "string",
756
- "mutable": false,
757
- "complexType": {
758
- "original": "string",
759
- "resolved": "string",
760
- "references": {}
761
- },
762
- "required": false,
763
- "optional": false,
764
- "docs": {
765
- "tags": [],
766
- "text": "Layout used to display the items"
767
- },
768
- "attribute": "layout",
769
- "reflect": false,
770
- "defaultValue": "'1'"
771
- },
772
- "loadTimeout": {
773
- "type": "number",
774
- "mutable": false,
775
- "complexType": {
776
- "original": "number",
777
- "resolved": "number",
778
- "references": {}
779
- },
780
- "required": false,
781
- "optional": false,
782
- "docs": {
783
- "tags": [],
784
- "text": "Timeout for tooltip"
785
- },
786
- "attribute": "load-timeout",
787
- "reflect": false,
788
- "defaultValue": "1000"
789
- },
790
- "owner": {
791
- "type": "string",
792
- "mutable": false,
793
- "complexType": {
794
- "original": "string",
795
- "resolved": "string",
796
- "references": {}
797
- },
798
- "required": false,
799
- "optional": false,
800
- "docs": {
801
- "tags": [],
802
- "text": "Owner of this tooltip"
803
- },
804
- "attribute": "owner",
805
- "reflect": false,
806
- "defaultValue": "'not-set'"
807
- },
808
- "relatedObject": {
809
- "type": "unknown",
810
- "mutable": true,
811
- "complexType": {
812
- "original": "TooltipRelatedObject",
813
- "resolved": "TooltipRelatedObject",
814
- "references": {
815
- "TooltipRelatedObject": {
816
- "location": "import",
817
- "path": "./kup-tooltip-declarations"
818
- }
819
- }
820
- },
821
- "required": false,
822
- "optional": false,
823
- "docs": {
824
- "tags": [],
825
- "text": "Container element for tooltip"
826
- }
827
- }
828
- }; }
829
- static get states() { return {
830
- "visible": {}
831
- }; }
832
- static get events() { return [{
833
- "method": "kupTooltipLoadData",
834
- "name": "kup-tooltip-loaddata",
835
- "bubbles": true,
836
- "cancelable": false,
837
- "composed": true,
838
- "docs": {
839
- "tags": [],
840
- "text": ""
841
- },
842
- "complexType": {
843
- "original": "KupTooltipLoadEventPayload",
844
- "resolved": "KupTooltipLoadEventPayload",
845
- "references": {
846
- "KupTooltipLoadEventPayload": {
847
- "location": "import",
848
- "path": "./kup-tooltip-declarations"
849
- }
850
- }
851
- }
852
- }, {
853
- "method": "kupTooltipLoadDetail",
854
- "name": "kup-tooltip-loaddetail",
855
- "bubbles": true,
856
- "cancelable": false,
857
- "composed": true,
858
- "docs": {
859
- "tags": [],
860
- "text": ""
861
- },
862
- "complexType": {
863
- "original": "KupTooltipLoadEventPayload",
864
- "resolved": "KupTooltipLoadEventPayload",
865
- "references": {
866
- "KupTooltipLoadEventPayload": {
867
- "location": "import",
868
- "path": "./kup-tooltip-declarations"
869
- }
870
- }
871
- }
872
- }, {
873
- "method": "kupTooltipLoadCellOptions",
874
- "name": "kup-tooltip-loadcelloptions",
875
- "bubbles": true,
876
- "cancelable": false,
877
- "composed": true,
878
- "docs": {
879
- "tags": [],
880
- "text": ""
881
- },
882
- "complexType": {
883
- "original": "KupTooltipLoadEventPayload",
884
- "resolved": "KupTooltipLoadEventPayload",
885
- "references": {
886
- "KupTooltipLoadEventPayload": {
887
- "location": "import",
888
- "path": "./kup-tooltip-declarations"
889
- }
890
- }
891
- }
892
- }, {
893
- "method": "kupActionCommandClick",
894
- "name": "kup-tooltip-actioncommandclick",
895
- "bubbles": true,
896
- "cancelable": true,
897
- "composed": true,
898
- "docs": {
899
- "tags": [],
900
- "text": ""
901
- },
902
- "complexType": {
903
- "original": "KupTooltipActionCommandClickEventPayload",
904
- "resolved": "KupTooltipActionCommandClickEventPayload",
905
- "references": {
906
- "KupTooltipActionCommandClickEventPayload": {
907
- "location": "import",
908
- "path": "./kup-tooltip-declarations"
909
- }
910
- }
911
- }
912
- }, {
913
- "method": "kupDefaultActionClick",
914
- "name": "kup-tooltip-defaultactionclick",
915
- "bubbles": true,
916
- "cancelable": true,
917
- "composed": true,
918
- "docs": {
919
- "tags": [],
920
- "text": ""
921
- },
922
- "complexType": {
923
- "original": "KupTooltipDefaultEventPayload",
924
- "resolved": "KupTooltipDefaultEventPayload",
925
- "references": {
926
- "KupTooltipDefaultEventPayload": {
927
- "location": "import",
928
- "path": "./kup-tooltip-declarations"
929
- }
930
- }
931
- }
932
- }, {
933
- "method": "kupDefaultPreviewClick",
934
- "name": "kup-tooltip-defaultpreviewclick",
935
- "bubbles": true,
936
- "cancelable": true,
937
- "composed": true,
938
- "docs": {
939
- "tags": [],
940
- "text": ""
941
- },
942
- "complexType": {
943
- "original": "KupTooltipDefaultEventPayload",
944
- "resolved": "KupTooltipDefaultEventPayload",
945
- "references": {
946
- "KupTooltipDefaultEventPayload": {
947
- "location": "import",
948
- "path": "./kup-tooltip-declarations"
949
- }
950
- }
951
- }
952
- }, {
953
- "method": "kupDefaultOptionClick",
954
- "name": "kup-tooltip-defaultoptionclick",
955
- "bubbles": true,
956
- "cancelable": true,
957
- "composed": true,
958
- "docs": {
959
- "tags": [],
960
- "text": ""
961
- },
962
- "complexType": {
963
- "original": "KupTooltipDefaultEventPayload",
964
- "resolved": "KupTooltipDefaultEventPayload",
965
- "references": {
966
- "KupTooltipDefaultEventPayload": {
967
- "location": "import",
968
- "path": "./kup-tooltip-declarations"
969
- }
970
- }
971
- }
972
- }, {
973
- "method": "kupTreeNodeExpand",
974
- "name": "kup-tooltip-treenodeexpand",
975
- "bubbles": true,
976
- "cancelable": false,
977
- "composed": true,
978
- "docs": {
979
- "tags": [],
980
- "text": ""
981
- },
982
- "complexType": {
983
- "original": "KupTooltipTreeNodeExpandEventPayload",
984
- "resolved": "KupTooltipTreeNodeExpandEventPayload",
985
- "references": {
986
- "KupTooltipTreeNodeExpandEventPayload": {
987
- "location": "import",
988
- "path": "./kup-tooltip-declarations"
989
- }
990
- }
991
- }
992
- }, {
993
- "method": "kupTreeNodeButtonClick",
994
- "name": "kup-tooltip-treenodebuttonclick",
995
- "bubbles": true,
996
- "cancelable": false,
997
- "composed": true,
998
- "docs": {
999
- "tags": [],
1000
- "text": ""
1001
- },
1002
- "complexType": {
1003
- "original": "KupTooltipTreeNodeButtonClickEventPayload",
1004
- "resolved": "KupTooltipTreeNodeButtonClickEventPayload",
1005
- "references": {
1006
- "KupTooltipTreeNodeButtonClickEventPayload": {
1007
- "location": "import",
1008
- "path": "./kup-tooltip-declarations"
1009
- }
1010
- }
1011
- }
1012
- }, {
1013
- "method": "kupTreeNodeSelected",
1014
- "name": "kup-tooltip-treenodeselected",
1015
- "bubbles": true,
1016
- "cancelable": false,
1017
- "composed": true,
1018
- "docs": {
1019
- "tags": [],
1020
- "text": "Fired when a node of the tree has been selected"
1021
- },
1022
- "complexType": {
1023
- "original": "KupTooltipTreeNodeSelectedEventPayload",
1024
- "resolved": "KupTooltipTreeNodeSelectedEventPayload",
1025
- "references": {
1026
- "KupTooltipTreeNodeSelectedEventPayload": {
1027
- "location": "import",
1028
- "path": "./kup-tooltip-declarations"
1029
- }
1030
- }
1031
- }
1032
- }, {
1033
- "method": "kupTreeNodeDblClick",
1034
- "name": "kup-tooltip-treenodedblclick",
1035
- "bubbles": true,
1036
- "cancelable": false,
1037
- "composed": true,
1038
- "docs": {
1039
- "tags": [],
1040
- "text": ""
1041
- },
1042
- "complexType": {
1043
- "original": "KupTooltipTreeNodeDblClickEventPayload",
1044
- "resolved": "KupTooltipTreeNodeDblClickEventPayload",
1045
- "references": {
1046
- "KupTooltipTreeNodeDblClickEventPayload": {
1047
- "location": "import",
1048
- "path": "./kup-tooltip-declarations"
1049
- }
1050
- }
1051
- }
1052
- }, {
1053
- "method": "kupTreeDynamicMassExpansion",
1054
- "name": "kup-tooltip-treedynamicmassexpansion",
1055
- "bubbles": true,
1056
- "cancelable": false,
1057
- "composed": true,
1058
- "docs": {
1059
- "tags": [],
1060
- "text": ""
1061
- },
1062
- "complexType": {
1063
- "original": "KupTooltipTreeDynamicMassExpansionEventPayload",
1064
- "resolved": "KupTooltipTreeDynamicMassExpansionEventPayload",
1065
- "references": {
1066
- "KupTooltipTreeDynamicMassExpansionEventPayload": {
1067
- "location": "import",
1068
- "path": "./kup-tooltip-declarations"
1069
- }
1070
- }
1071
- }
1072
- }]; }
1073
- static get methods() { return {
1074
- "refresh": {
1075
- "complexType": {
1076
- "signature": "() => Promise<void>",
1077
- "parameters": [],
1078
- "references": {
1079
- "Promise": {
1080
- "location": "global"
1081
- }
1082
- },
1083
- "return": "Promise<void>"
1084
- },
1085
- "docs": {
1086
- "text": "This method is used to trigger a new render of the component.",
1087
- "tags": []
1088
- }
1089
- },
1090
- "setTooltipInfo": {
1091
- "complexType": {
1092
- "signature": "(relatedObject: TooltipRelatedObject) => Promise<void>",
1093
- "parameters": [{
1094
- "tags": [],
1095
- "text": ""
1096
- }],
1097
- "references": {
1098
- "Promise": {
1099
- "location": "global"
1100
- },
1101
- "TooltipRelatedObject": {
1102
- "location": "import",
1103
- "path": "./kup-tooltip-declarations"
1104
- }
1105
- },
1106
- "return": "Promise<void>"
1107
- },
1108
- "docs": {
1109
- "text": "",
1110
- "tags": []
1111
- }
1112
- },
1113
- "unsetTooltipInfo": {
1114
- "complexType": {
1115
- "signature": "() => Promise<void>",
1116
- "parameters": [],
1117
- "references": {
1118
- "Promise": {
1119
- "location": "global"
1120
- }
1121
- },
1122
- "return": "Promise<void>"
1123
- },
1124
- "docs": {
1125
- "text": "",
1126
- "tags": []
1127
- }
1128
- },
1129
- "getProps": {
1130
- "complexType": {
1131
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
1132
- "parameters": [{
1133
- "tags": [{
1134
- "name": "param",
1135
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
1136
- }],
1137
- "text": "- When provided and true, the result will be the list of props with their description."
1138
- }],
1139
- "references": {
1140
- "Promise": {
1141
- "location": "global"
1142
- },
1143
- "GenericObject": {
1144
- "location": "import",
1145
- "path": "../../types/GenericTypes"
1146
- }
1147
- },
1148
- "return": "Promise<GenericObject>"
1149
- },
1150
- "docs": {
1151
- "text": "Used to retrieve component's props values.",
1152
- "tags": [{
1153
- "name": "param",
1154
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
1155
- }, {
1156
- "name": "returns",
1157
- "text": "List of props as object, each key will be a prop."
1158
- }]
1159
- }
1160
- },
1161
- "setProps": {
1162
- "complexType": {
1163
- "signature": "(props: GenericObject) => Promise<void>",
1164
- "parameters": [{
1165
- "tags": [{
1166
- "name": "param",
1167
- "text": "props - Object containing props that will be set to the component."
1168
- }],
1169
- "text": "- Object containing props that will be set to the component."
1170
- }],
1171
- "references": {
1172
- "Promise": {
1173
- "location": "global"
1174
- },
1175
- "GenericObject": {
1176
- "location": "import",
1177
- "path": "../../types/GenericTypes"
1178
- }
1179
- },
1180
- "return": "Promise<void>"
1181
- },
1182
- "docs": {
1183
- "text": "Sets the props to the component.",
1184
- "tags": [{
1185
- "name": "param",
1186
- "text": "props - Object containing props that will be set to the component."
1187
- }]
1188
- }
1189
- }
1190
- }; }
1191
- static get elementRef() { return "rootElement"; }
1192
- static get watchers() { return [{
1193
- "propName": "relatedObject",
1194
- "methodName": "onElementChanged"
1195
- }, {
1196
- "propName": "data",
1197
- "methodName": "onDataChanged"
1198
- }, {
1199
- "propName": "cellOptions",
1200
- "methodName": "onTooltipDetailChanged"
1201
- }, {
1202
- "propName": "detailData",
1203
- "methodName": "onTooltipDetailChanged"
1204
- }]; }
1205
- }