@sme.up/ketchup 4.0.0 → 4.1.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 (186) hide show
  1. package/dist/cjs/{cell-utils-1f89a299.js → cell-utils-841a7769.js} +2 -2
  2. package/dist/cjs/{f-chip-2d58c8f7.js → f-chip-b9f489ff.js} +7 -5
  3. package/dist/cjs/{f-image-5f4f29ca.js → f-image-0c3e6aa7.js} +3 -4
  4. package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
  5. package/dist/cjs/ketchup.cjs.js +3 -3
  6. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  7. package/dist/cjs/kup-autocomplete_29.cjs.entry.js +1014 -1103
  8. package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
  9. package/dist/cjs/kup-dash-list.cjs.entry.js +6 -6
  10. package/dist/cjs/kup-dash_2.cjs.entry.js +106 -62
  11. package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
  12. package/dist/cjs/kup-field.cjs.entry.js +3 -3
  13. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  14. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  15. package/dist/cjs/kup-magic-box.cjs.entry.js +21 -30
  16. package/dist/cjs/{kup-manager-59ad8bdc.js → kup-manager-828bd598.js} +599 -519
  17. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
  18. package/dist/cjs/{kup-objects-59ea949c.js → kup-objects-89f38d6a.js} +7 -29
  19. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  21. package/dist/cjs/loader.cjs.js +3 -3
  22. package/dist/cjs/{utils-2af73538.js → utils-5192ee20.js} +1 -1
  23. package/dist/collection/assets/data-table.js +1 -0
  24. package/dist/collection/collection-manifest.json +2 -3
  25. package/dist/collection/components/kup-accordion/kup-accordion.js +14 -14
  26. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +9 -0
  27. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +20 -23
  28. package/dist/collection/components/kup-badge/kup-badge.js +12 -12
  29. package/dist/collection/components/kup-box/kup-box.css +30 -30
  30. package/dist/collection/components/kup-box/kup-box.js +181 -171
  31. package/dist/collection/components/kup-button/kup-button.css +8 -5
  32. package/dist/collection/components/kup-button/kup-button.js +26 -26
  33. package/dist/collection/components/kup-button-list/kup-button-list.css +8 -5
  34. package/dist/collection/components/kup-button-list/kup-button-list.js +18 -18
  35. package/dist/collection/components/kup-calendar/kup-calendar.css +8 -6
  36. package/dist/collection/components/kup-calendar/kup-calendar.js +30 -30
  37. package/dist/collection/components/kup-card/kup-card-helper.js +2 -1
  38. package/dist/collection/components/kup-card/kup-card.css +20 -1
  39. package/dist/collection/components/kup-card/kup-card.js +26 -26
  40. package/dist/collection/components/kup-chart/kup-chart.js +40 -40
  41. package/dist/collection/components/kup-checkbox/kup-checkbox.js +18 -18
  42. package/dist/collection/components/kup-chip/kup-chip.css +0 -1
  43. package/dist/collection/components/kup-chip/kup-chip.js +14 -14
  44. package/dist/collection/components/kup-color-picker/kup-color-picker.css +6 -9
  45. package/dist/collection/components/kup-color-picker/kup-color-picker.js +32 -40
  46. package/dist/collection/components/kup-combobox/kup-combobox.css +9 -0
  47. package/dist/collection/components/kup-combobox/kup-combobox.js +20 -23
  48. package/dist/collection/components/kup-dash-list/kup-dash-list.js +2 -2
  49. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
  50. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +25 -46
  51. package/dist/collection/components/kup-data-table/kup-data-table.css +83 -87
  52. package/dist/collection/components/kup-data-table/kup-data-table.js +364 -531
  53. package/dist/collection/components/kup-date-picker/kup-date-picker.css +2373 -5
  54. package/dist/collection/components/kup-date-picker/kup-date-picker.js +72 -104
  55. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -8
  56. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +13 -5
  57. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +38 -43
  58. package/dist/collection/components/kup-field/kup-field.js +20 -20
  59. package/dist/collection/components/kup-gauge/kup-gauge.js +16 -16
  60. package/dist/collection/components/kup-grid/kup-grid.css +2 -1
  61. package/dist/collection/components/kup-grid/kup-grid.js +12 -12
  62. package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
  63. package/dist/collection/components/kup-image/kup-image.js +24 -24
  64. package/dist/collection/components/kup-lazy/kup-lazy.js +16 -16
  65. package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
  66. package/dist/collection/components/kup-list/kup-list.css +4 -0
  67. package/dist/collection/components/kup-list/kup-list.js +38 -47
  68. package/dist/collection/components/kup-magic-box/kup-magic-box.css +11 -6
  69. package/dist/collection/components/kup-magic-box/kup-magic-box.js +27 -36
  70. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +10 -10
  71. package/dist/collection/components/kup-paginator/kup-paginator.css +8 -5
  72. package/dist/collection/components/kup-probe/kup-probe.js +8 -8
  73. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +20 -20
  74. package/dist/collection/components/kup-radio/kup-radio.js +16 -16
  75. package/dist/collection/components/kup-rating/kup-rating.js +14 -14
  76. package/dist/collection/components/kup-spinner/kup-spinner.js +22 -22
  77. package/dist/collection/components/kup-switch/kup-switch.js +16 -16
  78. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +12 -12
  79. package/dist/collection/components/kup-text-field/kup-text-field.js +48 -48
  80. package/dist/collection/components/kup-time-picker/kup-time-picker.css +2376 -0
  81. package/dist/collection/components/kup-time-picker/kup-time-picker.js +50 -83
  82. package/dist/collection/components/kup-tooltip/kup-tooltip.js +18 -12
  83. package/dist/collection/components/kup-tree/kup-tree.css +10 -10
  84. package/dist/collection/components/kup-tree/kup-tree.js +96 -66
  85. package/dist/collection/f-components/f-button/f-button.js +4 -2
  86. package/dist/collection/f-components/f-image/f-image.js +1 -2
  87. package/dist/collection/f-components/f-text-field/f-text-field.js +8 -6
  88. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +11 -3
  89. package/dist/collection/utils/kup-debug/kup-debug.js +25 -27
  90. package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +3 -5
  91. package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
  92. package/dist/collection/utils/kup-interact/kup-interact.js +362 -0
  93. package/dist/collection/utils/kup-manager/kup-manager.js +18 -6
  94. package/dist/collection/utils/kup-objects/kup-objects.js +7 -29
  95. package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
  96. package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
  97. package/dist/esm/{cell-utils-cb612463.js → cell-utils-de384721.js} +2 -2
  98. package/dist/esm/{f-chip-125d5dd6.js → f-chip-d585b63e.js} +7 -5
  99. package/dist/esm/{f-image-68b34fab.js → f-image-23548d00.js} +3 -4
  100. package/dist/esm/{index-bf2824a6.js → index-51694018.js} +73 -64
  101. package/dist/esm/ketchup.js +3 -3
  102. package/dist/esm/kup-accordion.entry.js +5 -5
  103. package/dist/esm/kup-autocomplete_29.entry.js +818 -907
  104. package/dist/esm/kup-calendar.entry.js +8 -8
  105. package/dist/esm/kup-dash-list.entry.js +6 -6
  106. package/dist/esm/kup-dash_2.entry.js +106 -62
  107. package/dist/esm/kup-drawer.entry.js +4 -4
  108. package/dist/esm/kup-field.entry.js +3 -3
  109. package/dist/esm/kup-iframe.entry.js +4 -4
  110. package/dist/esm/kup-lazy.entry.js +4 -4
  111. package/dist/esm/kup-magic-box.entry.js +21 -30
  112. package/dist/esm/{kup-manager-e7d7b353.js → kup-manager-583f2815.js} +595 -520
  113. package/dist/esm/kup-nav-bar.entry.js +4 -4
  114. package/dist/esm/{kup-objects-d38d2fa2.js → kup-objects-5968aefd.js} +7 -29
  115. package/dist/esm/kup-probe.entry.js +3 -3
  116. package/dist/esm/kup-qlik.entry.js +3 -3
  117. package/dist/esm/loader.js +3 -3
  118. package/dist/esm/{utils-13dd007a.js → utils-a1dd14c3.js} +1 -1
  119. package/dist/ketchup/ketchup.esm.js +1 -1
  120. package/dist/ketchup/{p-64ea7e37.entry.js → p-0e91c9c9.entry.js} +1 -1
  121. package/dist/ketchup/{p-0320e24e.entry.js → p-0f2b6a24.entry.js} +1 -1
  122. package/dist/ketchup/{p-a5424073.js → p-361d9431.js} +1 -1
  123. package/dist/ketchup/p-565785ce.js +1 -0
  124. package/dist/ketchup/{p-7896031c.entry.js → p-57eb45ac.entry.js} +1 -1
  125. package/dist/ketchup/{p-08c7a092.js → p-6f5d8830.js} +1 -1
  126. package/dist/ketchup/{p-9c858a38.entry.js → p-802d8906.entry.js} +1 -1
  127. package/dist/ketchup/p-850b9e67.entry.js +1 -0
  128. package/dist/ketchup/{p-a12a5690.entry.js → p-88a5787a.entry.js} +1 -1
  129. package/dist/ketchup/p-8ed2b7bf.entry.js +1 -0
  130. package/dist/ketchup/{p-ee89966f.entry.js → p-90a0c2b7.entry.js} +2 -2
  131. package/dist/ketchup/{p-876da4c2.entry.js → p-94c0dd8c.entry.js} +1 -1
  132. package/dist/ketchup/p-9ec3c377.entry.js +45 -0
  133. package/dist/ketchup/p-b30f34d8.js +1 -0
  134. package/dist/ketchup/p-b6a47512.entry.js +1 -0
  135. package/dist/ketchup/p-bfaf8a82.js +1 -0
  136. package/dist/ketchup/{p-940ab57a.entry.js → p-ca0ebdcc.entry.js} +1 -1
  137. package/dist/ketchup/p-d5a3a4ed.js +1 -0
  138. package/dist/ketchup/{p-c7ee1fbc.js → p-ee7b190c.js} +1 -1
  139. package/dist/ketchup/{p-b0724035.entry.js → p-f6b54fa1.entry.js} +1 -1
  140. package/dist/types/components/kup-box/kup-box-declarations.d.ts +11 -2
  141. package/dist/types/components/kup-box/kup-box.d.ts +8 -4
  142. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +0 -1
  143. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +12 -4
  144. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +0 -2
  145. package/dist/types/components/kup-data-table/kup-data-table.d.ts +16 -49
  146. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -14
  147. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +0 -4
  148. package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
  149. package/dist/types/components/kup-list/kup-list.d.ts +2 -3
  150. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
  151. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +7 -11
  152. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
  153. package/dist/types/components/kup-tree/kup-tree.d.ts +3 -0
  154. package/dist/types/components.d.ts +84 -121
  155. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
  156. package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
  157. package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
  158. package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +21 -4
  159. package/dist/types/utils/kup-manager/kup-manager.d.ts +2 -2
  160. package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
  161. package/package.json +3 -3
  162. package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
  163. package/dist/cjs/kup-grid.cjs.entry.js +0 -130
  164. package/dist/collection/assets/images/drag-multiple.js +0 -1
  165. package/dist/collection/components/kup-layout/kup-layout.css +0 -53
  166. package/dist/collection/components/kup-layout/kup-layout.js +0 -156
  167. package/dist/collection/utils/drag-and-drop.js +0 -109
  168. package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
  169. package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
  170. package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
  171. package/dist/esm/kup-grid.entry.js +0 -126
  172. package/dist/ketchup/p-00fe1e3e.js +0 -1
  173. package/dist/ketchup/p-1165f4ea.entry.js +0 -1
  174. package/dist/ketchup/p-170d3cba.js +0 -1
  175. package/dist/ketchup/p-18cb3ba3.js +0 -1
  176. package/dist/ketchup/p-23541a97.entry.js +0 -45
  177. package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
  178. package/dist/ketchup/p-b14e77f0.js +0 -1
  179. package/dist/ketchup/p-d24cfdea.entry.js +0 -1
  180. package/dist/ketchup/p-fcd2fd8f.js +0 -1
  181. package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
  182. package/dist/types/assets/images/drag-multiple.d.ts +0 -1
  183. package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
  184. package/dist/types/utils/drag-and-drop.d.ts +0 -53
  185. package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
  186. package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
@@ -2,11 +2,12 @@ import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop,
2
2
  import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
3
3
  import { isValidFormattedStringTime, formattedStringToCustomUnformattedStringTime, unformattedStringToFormattedStringTime, formatTime, getProps, setProps, } from '../../utils/utils';
4
4
  import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
5
- import { kupDynamicPositionAttribute, } from '../../utils/kup-dynamic-position/kup-dynamic-position-declarations';
6
5
  import { KupTimePickerProps, } from './kup-time-picker-declarations';
7
6
  import { KupDebugCategory } from '../../utils/kup-debug/kup-debug-declarations';
8
7
  import { componentWrapperId } from '../../variables/GenericVariables';
9
8
  import { KupDatesFormats } from '../../utils/kup-dates/kup-dates-declarations';
9
+ import { FTextField } from '../../f-components/f-text-field/f-text-field';
10
+ import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
10
11
  export class KupTimePicker {
11
12
  constructor() {
12
13
  /*-------------------------------------------------*/
@@ -75,7 +76,6 @@ export class KupTimePicker {
75
76
  }
76
77
  onKupTimePickerItemClick(e, value) {
77
78
  if (e != null) {
78
- e.stopPropagation();
79
79
  if (value == null) {
80
80
  value = e.detail.selected.value;
81
81
  }
@@ -92,8 +92,7 @@ export class KupTimePicker {
92
92
  value: this.value,
93
93
  });
94
94
  }
95
- onKupClearIconClick(e) {
96
- e.stopPropagation();
95
+ onKupClearIconClick() {
97
96
  this.setPickerValueSelected('');
98
97
  this.kupChange.emit({
99
98
  comp: this,
@@ -113,29 +112,17 @@ export class KupTimePicker {
113
112
  value: this.value,
114
113
  });
115
114
  }
116
- onKupTextFieldBlur(e) {
117
- const eventValue = e.detail.value;
118
- if (eventValue) {
119
- const newValue = this.getFormattedValue(eventValue);
120
- if (newValue) {
121
- this.setValue(newValue);
122
- }
123
- }
124
- }
125
115
  onKupChange(e) {
126
- e.stopPropagation();
127
- this.refreshPickerValue(e.detail.value, this.kupChange);
116
+ this.refreshPickerValue(e.target.value, this.kupChange);
128
117
  }
129
- onKupClick(e) {
130
- e.stopPropagation();
118
+ onKupClick() {
131
119
  this.kupClick.emit({
132
120
  comp: this,
133
121
  id: this.rootElement.id,
134
122
  value: this.value,
135
123
  });
136
124
  }
137
- onKupFocus(e) {
138
- e.stopPropagation();
125
+ onKupFocus() {
139
126
  this.kupFocus.emit({
140
127
  comp: this,
141
128
  id: this.rootElement.id,
@@ -143,15 +130,12 @@ export class KupTimePicker {
143
130
  });
144
131
  }
145
132
  onKupInput(e) {
146
- e.stopPropagation();
147
- this.refreshPickerValue(e.detail.value, this.kupInput);
133
+ this.refreshPickerValue(e.target.value, this.kupInput);
148
134
  }
149
135
  onKupTextFieldSubmit(e) {
150
- e.stopPropagation();
151
- this.refreshPickerValue(e.detail.value, this.kupTextFieldSubmit);
136
+ this.refreshPickerValue(e.target.value, this.kupTextFieldSubmit);
152
137
  }
153
- onKupIconClick(e) {
154
- e.stopPropagation();
138
+ onKupIconClick() {
155
139
  if (this.isPickerOpened()) {
156
140
  this.closePicker();
157
141
  }
@@ -173,7 +157,6 @@ export class KupTimePicker {
173
157
  this.closePicker();
174
158
  }
175
159
  if (e.key === 'Enter') {
176
- e.stopPropagation();
177
160
  this.onKupTimePickerItemClick(null);
178
161
  }
179
162
  }
@@ -244,7 +227,6 @@ export class KupTimePicker {
244
227
  */
245
228
  async setValue(value) {
246
229
  this.value = value;
247
- this.setTextFieldInitalValue(this.getTimeForOutput());
248
230
  }
249
231
  /*-------------------------------------------------*/
250
232
  /* P r i v a t e M e t h o d s */
@@ -259,7 +241,6 @@ export class KupTimePicker {
259
241
  if (isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
260
242
  this.value = eventDetailValue;
261
243
  newValue = this.value;
262
- this.setTextFieldInitalValue(this.getTimeForOutput());
263
244
  }
264
245
  if (newValue != null) {
265
246
  eventToRaise.emit({
@@ -284,16 +265,10 @@ export class KupTimePicker {
284
265
  return;
285
266
  }
286
267
  this.value = newValue;
287
- this.setTextFieldInitalValue(this.getTimeForOutput());
288
268
  }
289
269
  getPickerValueSelected() {
290
270
  return this.value;
291
271
  }
292
- setTextFieldInitalValue(value) {
293
- if (this.textfieldEl !== undefined) {
294
- this.textfieldEl.setValue(value);
295
- }
296
- }
297
272
  getValueForPickerComponent() {
298
273
  return this.value;
299
274
  }
@@ -302,22 +277,22 @@ export class KupTimePicker {
302
277
  let containerEl = this.pickerContainerEl;
303
278
  this.pickerOpened = true;
304
279
  this.setClockViewActive(true, false, false);
305
- let textFieldWidth = null;
306
280
  if (textfieldEl != null) {
307
- textFieldWidth =
308
- textfieldEl.shadowRoot.querySelector('.mdc-text-field').clientWidth;
309
281
  textfieldEl.classList.add('toggled');
310
- textfieldEl.emitSubmitEventOnEnter = false;
311
282
  }
312
283
  if (containerEl != null) {
313
- this.kupManager.dynamicPosition.start(containerEl);
314
284
  containerEl.classList.add('visible');
315
- let elStyle = containerEl.style;
285
+ const elStyle = containerEl.style;
316
286
  elStyle.height = 'auto';
317
- if (textFieldWidth != null) {
318
- elStyle.minWidth = textFieldWidth + 'px';
319
- }
287
+ elStyle.minWidth = textfieldEl.clientWidth + 'px';
320
288
  }
289
+ this.kupManager.utilities.pointerDownCallbacks.add({
290
+ cb: () => {
291
+ this.closePicker();
292
+ },
293
+ onlyOnce: true,
294
+ el: this.pickerContainerEl,
295
+ });
321
296
  this.refresh();
322
297
  }
323
298
  closePicker() {
@@ -329,7 +304,6 @@ export class KupTimePicker {
329
304
  textfieldEl.emitSubmitEventOnEnter = true;
330
305
  }
331
306
  if (containerEl != null) {
332
- this.kupManager.dynamicPosition.stop(containerEl);
333
307
  containerEl.classList.remove('visible');
334
308
  }
335
309
  }
@@ -342,9 +316,6 @@ export class KupTimePicker {
342
316
  getPickerElId() {
343
317
  return this.pickerEl.id;
344
318
  }
345
- prepTimeTextfield() {
346
- return this.prepTextfield(this.getTimeForOutput());
347
- }
348
319
  prepTextfield(initialValue) {
349
320
  let textfieldData = Object.assign({}, this.data['kup-text-field']);
350
321
  if (!textfieldData['icon']) {
@@ -353,7 +324,7 @@ export class KupTimePicker {
353
324
  if (textfieldData['icon']) {
354
325
  textfieldData['trailingIcon'] = true;
355
326
  }
356
- let comp = (h("kup-text-field", Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', initialValue: initialValue, "onkup-textfield-change": (e) => this.onKupChange(e), "onkup-textfield-click": (e) => this.onKupClick(e), "onkup-textfield-focus": (e) => this.onKupFocus(e), "onkup-textfield-input": (e) => this.onKupInput(e), "onkup-textfield-blur": (e) => this.onKupTextFieldBlur(e), "onkup-textfield-iconclick": (e) => this.onKupIconClick(e), "onkup-textfield-submit": (e) => this.onKupTextFieldSubmit(e), "onkup-textfield-cleariconclick": (e) => this.onKupClearIconClick(e), ref: (el) => (this.textfieldEl = el) })));
327
+ let comp = (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', value: initialValue, onChange: (e) => this.onKupChange(e), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onInput: (e) => this.onKupInput(e), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onClearIconClick: () => this.onKupClearIconClick() }), this.prepTimePicker()));
357
328
  return comp;
358
329
  }
359
330
  isRelatedTargetInThisComponent(e) {
@@ -558,7 +529,7 @@ export class KupTimePicker {
558
529
  else {
559
530
  widget = (h("kup-list", { data: this.createTimeListData(this.value), "is-menu": true, "menu-visible": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list', ref: (el) => (this.pickerEl = el) }));
560
531
  }
561
- return (h("div", { tabindex: "-1", id: "time-picker-div", ref: (el) => (this.pickerContainerEl = el), onBlur: (e) => {
532
+ return (h("div", { id: "time-picker-div", ref: (el) => (this.pickerContainerEl = el), onBlur: (e) => {
562
533
  if (!this.isRelatedTargetInThisComponent(e)) {
563
534
  this.onKupBlur();
564
535
  }
@@ -606,11 +577,6 @@ export class KupTimePicker {
606
577
  let v1 = unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
607
578
  return v1;
608
579
  }
609
- recalcPosition() {
610
- if (this.pickerContainerEl != null && this.textfieldEl != null) {
611
- this.kupManager.dynamicPosition.register(this.pickerContainerEl, this.textfieldEl);
612
- }
613
- }
614
580
  /*-------------------------------------------------*/
615
581
  /* L i f e c y c l e H o o k s */
616
582
  /*-------------------------------------------------*/
@@ -633,6 +599,14 @@ export class KupTimePicker {
633
599
  this.kupManager.debug.logRender(this, false);
634
600
  }
635
601
  componentDidRender() {
602
+ const root = this.rootElement.shadowRoot;
603
+ if (root) {
604
+ const f = root.querySelector('.f-text-field--wrapper');
605
+ if (f) {
606
+ this.textfieldEl = f.querySelector('input');
607
+ FTextFieldMDC(f);
608
+ }
609
+ }
636
610
  if (this.clockVariant) {
637
611
  if (this.hoursActive) {
638
612
  this.switchView(this.hoursEl, this.hoursCircleEl);
@@ -644,7 +618,6 @@ export class KupTimePicker {
644
618
  this.switchView(this.secondsEl, this.secondsCircleEl);
645
619
  }
646
620
  }
647
- this.recalcPosition();
648
621
  this.kupManager.debug.logRender(this, true);
649
622
  }
650
623
  render() {
@@ -661,18 +634,12 @@ export class KupTimePicker {
661
634
  hostClass['kup-full-width'] = true;
662
635
  }
663
636
  const customStyle = this.kupManager.theme.setCustomStyle(this.rootElement);
664
- return (h(Host, { class: hostClass, onBlur: () => this.onKupBlur() },
637
+ return (h(Host, { class: hostClass },
665
638
  customStyle ? h("style", null, customStyle) : null,
666
- h("div", { id: componentWrapperId },
667
- this.prepTimeTextfield(),
668
- this.prepTimePicker())));
639
+ h("div", { id: componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
669
640
  }
670
641
  disconnectedCallback() {
671
642
  this.kupManager.theme.unregister(this);
672
- const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
673
- if (dynamicPositionElements.length > 0) {
674
- this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
675
- }
676
643
  }
677
644
  static get is() { return "kup-time-picker"; }
678
645
  static get encapsulation() { return "shadow"; }
@@ -695,8 +662,8 @@ export class KupTimePicker {
695
662
  "optional": false,
696
663
  "docs": {
697
664
  "tags": [{
698
- "text": "true",
699
- "name": "default"
665
+ "name": "default",
666
+ "text": "true"
700
667
  }],
701
668
  "text": "When set to true, the drop down menu will display a clock."
702
669
  },
@@ -716,11 +683,11 @@ export class KupTimePicker {
716
683
  "optional": false,
717
684
  "docs": {
718
685
  "tags": [{
719
- "text": "\"\"",
720
- "name": "default"
686
+ "name": "default",
687
+ "text": "\"\""
721
688
  }, {
722
- "text": "https ://ketchup.smeup.com/ketchup-showcase/#/customization",
723
- "name": "see"
689
+ "name": "see",
690
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
724
691
  }],
725
692
  "text": "Custom style of the component."
726
693
  },
@@ -744,8 +711,8 @@ export class KupTimePicker {
744
711
  "optional": false,
745
712
  "docs": {
746
713
  "tags": [{
747
- "text": "{}",
748
- "name": "default"
714
+ "name": "default",
715
+ "text": "{}"
749
716
  }],
750
717
  "text": "Props of the sub-components (time input text field)"
751
718
  },
@@ -763,8 +730,8 @@ export class KupTimePicker {
763
730
  "optional": false,
764
731
  "docs": {
765
732
  "tags": [{
766
- "text": "false",
767
- "name": "default"
733
+ "name": "default",
734
+ "text": "false"
768
735
  }],
769
736
  "text": "Defaults at false. When set to true, the component is disabled."
770
737
  },
@@ -784,8 +751,8 @@ export class KupTimePicker {
784
751
  "optional": false,
785
752
  "docs": {
786
753
  "tags": [{
787
- "text": "\"\"",
788
- "name": "default"
754
+ "name": "default",
755
+ "text": "\"\""
789
756
  }],
790
757
  "text": "Sets the initial value of the component."
791
758
  },
@@ -805,8 +772,8 @@ export class KupTimePicker {
805
772
  "optional": false,
806
773
  "docs": {
807
774
  "tags": [{
808
- "text": "false",
809
- "name": "default"
775
+ "name": "default",
776
+ "text": "false"
810
777
  }],
811
778
  "text": "Manage seconds."
812
779
  },
@@ -826,8 +793,8 @@ export class KupTimePicker {
826
793
  "optional": false,
827
794
  "docs": {
828
795
  "tags": [{
829
- "text": "10",
830
- "name": "default"
796
+ "name": "default",
797
+ "text": "10"
831
798
  }],
832
799
  "text": "Minutes step."
833
800
  },
@@ -1026,8 +993,8 @@ export class KupTimePicker {
1026
993
  "signature": "(descriptions?: boolean) => Promise<GenericObject>",
1027
994
  "parameters": [{
1028
995
  "tags": [{
1029
- "text": "descriptions - When provided and true, the result will be the list of props with their description.",
1030
- "name": "param"
996
+ "name": "param",
997
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
1031
998
  }],
1032
999
  "text": "- When provided and true, the result will be the list of props with their description."
1033
1000
  }],
@@ -1106,8 +1073,8 @@ export class KupTimePicker {
1106
1073
  "signature": "(props: GenericObject) => Promise<void>",
1107
1074
  "parameters": [{
1108
1075
  "tags": [{
1109
- "text": "props - Object containing props that will be set to the component.",
1110
- "name": "param"
1076
+ "name": "param",
1077
+ "text": "props - Object containing props that will be set to the component."
1111
1078
  }],
1112
1079
  "text": "- Object containing props that will be set to the component."
1113
1080
  }],
@@ -1,7 +1,7 @@
1
1
  import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
2
2
  import { ViewMode, KupTooltipProps, } from './kup-tooltip-declarations';
3
3
  import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
4
- import { kupDynamicPositionAttribute, KupDynamicPositionPlacement, } from '../../utils/kup-dynamic-position/kup-dynamic-position-declarations';
4
+ import { kupDynamicPositionAttribute, } from '../../utils/kup-dynamic-position/kup-dynamic-position-declarations';
5
5
  import { KupLanguageGeneric } from '../../utils/kup-language/kup-language-declarations';
6
6
  import { KupCardFamily } from '../kup-card/kup-card-declarations';
7
7
  import { getProps, setProps } from '../../utils/utils';
@@ -61,14 +61,21 @@ export class KupTooltip {
61
61
  return;
62
62
  }
63
63
  if (!this.kupManager.dynamicPosition.isRegistered(this.rootElement)) {
64
- this.kupManager.dynamicPosition.register(this.rootElement, this.relatedObject.element, 0, KupDynamicPositionPlacement.AUTO);
64
+ this.kupManager.dynamicPosition.register(this.rootElement, this.relatedObject.element);
65
65
  }
66
66
  else {
67
67
  this.kupManager.dynamicPosition.changeAnchor(this.rootElement, this.relatedObject.element);
68
68
  }
69
+ this.kupManager.utilities.pointerDownCallbacks.add({
70
+ cb: () => {
71
+ this.data = null;
72
+ this.kupManager.dynamicPosition.stop(this.rootElement);
73
+ },
74
+ onlyOnce: true,
75
+ el: this.rootElement,
76
+ });
69
77
  this.kupManager.dynamicPosition.start(this.rootElement);
70
78
  this.visible = true;
71
- this.rootElement.focus();
72
79
  this.startLoadDetail(true);
73
80
  }
74
81
  onTooltipDetailChanged() {
@@ -184,7 +191,6 @@ export class KupTooltip {
184
191
  this.resetAll();
185
192
  return;
186
193
  }
187
- this.rootElement.focus();
188
194
  if (this.isViewModeTooltip()) {
189
195
  this.cellOptions = null;
190
196
  this.kupTooltipLoadDetail.emit({
@@ -671,11 +677,11 @@ export class KupTooltip {
671
677
  "optional": false,
672
678
  "docs": {
673
679
  "tags": [{
674
- "text": "\"\"",
675
- "name": "default"
680
+ "name": "default",
681
+ "text": "\"\""
676
682
  }, {
677
- "text": "https ://ketchup.smeup.com/ketchup-showcase/#/customization",
678
- "name": "see"
683
+ "name": "see",
684
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
679
685
  }],
680
686
  "text": "Custom style of the component."
681
687
  },
@@ -1121,8 +1127,8 @@ export class KupTooltip {
1121
1127
  "signature": "(descriptions?: boolean) => Promise<GenericObject>",
1122
1128
  "parameters": [{
1123
1129
  "tags": [{
1124
- "text": "descriptions - When provided and true, the result will be the list of props with their description.",
1125
- "name": "param"
1130
+ "name": "param",
1131
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
1126
1132
  }],
1127
1133
  "text": "- When provided and true, the result will be the list of props with their description."
1128
1134
  }],
@@ -1153,8 +1159,8 @@ export class KupTooltip {
1153
1159
  "signature": "(props: GenericObject) => Promise<void>",
1154
1160
  "parameters": [{
1155
1161
  "tags": [{
1156
- "text": "props - Object containing props that will be set to the component.",
1157
- "name": "param"
1162
+ "name": "param",
1163
+ "text": "props - Object containing props that will be set to the component."
1158
1164
  }],
1159
1165
  "text": "- Object containing props that will be set to the component."
1160
1166
  }],
@@ -393,8 +393,8 @@
393
393
  }
394
394
 
395
395
  tfoot td {
396
- border-bottom: var(--kup_tree_border-color);
397
- border-right: var(--kup_tree_border-color);
396
+ border-bottom: var(--kup_tree_border);
397
+ border-right: var(--kup_tree_border);
398
398
  box-sizing: border-box;
399
399
  height: 36px;
400
400
  text-align: right;
@@ -406,7 +406,7 @@ tfoot td:hover {
406
406
  }
407
407
  tfoot td:first-of-type {
408
408
  border: none;
409
- border-right: var(--kup_tree_border-color);
409
+ border-right: var(--kup_tree_border);
410
410
  }
411
411
 
412
412
  .hidden span {
@@ -427,8 +427,8 @@ tfoot td:first-of-type {
427
427
  display: table-header-group;
428
428
  }
429
429
  :host([as-accordion]) .wrapper .kup-tree thead tr {
430
- border-left: var(--kup_tree_border-color);
431
- border-right: var(--kup_tree_border-color);
430
+ border-left: var(--kup_tree_border);
431
+ border-right: var(--kup_tree_border);
432
432
  }
433
433
  :host([as-accordion]) .density-dense .first-node {
434
434
  padding: 0.5em 1em;
@@ -463,7 +463,7 @@ tfoot td:first-of-type {
463
463
  :host([as-accordion]) .kup-tree__node--first:first-of-type .first-node {
464
464
  border-top-left-radius: 4px;
465
465
  border-top-right-radius: 4px;
466
- border-top: var(--kup_tree_border-color);
466
+ border-top: var(--kup_tree_border);
467
467
  }
468
468
  :host([as-accordion]) .kup-tree__node--first:last-of-type .first-node {
469
469
  border-bottom-left-radius: 4px;
@@ -471,9 +471,9 @@ tfoot td:first-of-type {
471
471
  }
472
472
  :host([as-accordion]) .kup-tree__node--first .first-node {
473
473
  align-items: center;
474
- border-bottom: var(--kup_tree_border-color);
475
- border-left: var(--kup_tree_border-color);
476
- border-right: var(--kup_tree_border-color);
474
+ border-bottom: var(--kup_tree_border);
475
+ border-left: var(--kup_tree_border);
476
+ border-right: var(--kup_tree_border);
477
477
  box-sizing: border-box;
478
478
  color: var(--kup_tree_color);
479
479
  cursor: pointer;
@@ -505,7 +505,7 @@ tfoot td:first-of-type {
505
505
  transition: transform 0.1s;
506
506
  }
507
507
  :host([as-accordion]) .kup-tree__node:not(.kup-tree__node--first) + .kup-tree__node--first {
508
- border-top: var(--kup_tree_border-color);
508
+ border-top: var(--kup_tree_border);
509
509
  border-top-left-radius: 4px;
510
510
  border-top-right-radius: 4px;
511
511
  }