@sme.up/ketchup 5.0.0 → 5.1.1

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 (196) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-5b16c180.js} +4 -4
  3. package/dist/cjs/{f-button-dbf3cd3a.js → f-button-3b9f32af.js} +2 -2
  4. package/dist/cjs/{f-cell-93d984ad.js → f-cell-c6ad973a.js} +6 -6
  5. package/dist/cjs/{f-chip-438213eb.js → f-chip-bed86c4a.js} +3 -3
  6. package/dist/cjs/{f-image-21865ab7.js → f-image-08a3d340.js} +2 -2
  7. package/dist/cjs/{index-ab119fad.js → index-8d7bb3be.js} +4 -1
  8. package/dist/cjs/ketchup.cjs.js +3 -3
  9. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +412 -353
  11. package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
  12. package/dist/cjs/kup-cell.cjs.entry.js +8 -8
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
  16. package/dist/cjs/kup-echart.cjs.entry.js +210 -60
  17. package/dist/cjs/kup-field.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  19. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  20. package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
  21. package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-4227f0a2.js} +2804 -2598
  22. package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
  23. package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
  24. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  25. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-snackbar.cjs.entry.js +7 -7
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{utils-a60ab5fa.js → utils-b9df398c.js} +4 -38
  29. package/dist/collection/assets/card.js +30 -30
  30. package/dist/collection/assets/data-table.js +24 -30
  31. package/dist/collection/assets/echart.js +481 -0
  32. package/dist/collection/assets/index.js +79 -79
  33. package/dist/collection/assets/kupdata.js +29 -41
  34. package/dist/collection/assets/list.js +6 -6
  35. package/dist/collection/assets/nav-bar.js +4 -4
  36. package/dist/collection/assets/probe.js +18 -18
  37. package/dist/collection/collection-manifest.json +2 -1
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +5 -5
  39. package/dist/collection/components/kup-box/kup-box.js +9 -9
  40. package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
  41. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  42. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +21 -22
  43. package/dist/collection/components/kup-card/kup-card.js +1 -2
  44. package/dist/collection/components/kup-chip/kup-chip.js +4 -4
  45. package/dist/collection/components/kup-combobox/kup-combobox.js +6 -6
  46. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
  47. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
  48. package/dist/collection/components/kup-data-table/kup-data-table.js +124 -164
  49. package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
  50. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
  51. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
  52. package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
  53. package/dist/collection/components/kup-echart/kup-echart.js +246 -58
  54. package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
  55. package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
  56. package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
  57. package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
  58. package/dist/collection/components/kup-list/kup-list.css +35 -3
  59. package/dist/collection/components/kup-list/kup-list.js +52 -44
  60. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  61. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
  62. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
  63. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
  64. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
  65. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  66. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
  67. package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -10
  68. package/dist/collection/components/kup-tree/kup-tree.js +100 -51
  69. package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
  70. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
  71. package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
  72. package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
  73. package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
  74. package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
  75. package/dist/collection/managers/kup-data/kup-data.js +337 -155
  76. package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
  77. package/dist/collection/managers/kup-debug/kup-debug.js +6 -6
  78. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
  79. package/dist/collection/managers/kup-language/kup-language.js +2 -2
  80. package/dist/collection/managers/kup-manager/kup-manager.js +13 -0
  81. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  82. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  83. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  84. package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
  85. package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
  86. package/dist/collection/utils/cell-utils.js +2 -3
  87. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  88. package/dist/collection/utils/utils.js +3 -74
  89. package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-69f75e2e.js} +4 -4
  90. package/dist/esm/{f-button-9e835467.js → f-button-7e7607d8.js} +2 -2
  91. package/dist/esm/{f-cell-f8bb2e04.js → f-cell-e4d83c27.js} +6 -6
  92. package/dist/esm/{f-chip-953c6915.js → f-chip-51dfefaf.js} +3 -3
  93. package/dist/esm/{f-image-78c5265e.js → f-image-de331954.js} +2 -2
  94. package/dist/esm/{index-78f3699d.js → index-aeec9835.js} +4 -1
  95. package/dist/esm/ketchup.js +3 -3
  96. package/dist/esm/kup-accordion.entry.js +5 -5
  97. package/dist/esm/kup-autocomplete_27.entry.js +412 -353
  98. package/dist/esm/kup-calendar.entry.js +8 -8
  99. package/dist/esm/kup-cell.entry.js +8 -8
  100. package/dist/esm/kup-dash-list.entry.js +5 -5
  101. package/dist/esm/kup-dash_2.entry.js +5 -5
  102. package/dist/esm/kup-drawer.entry.js +8 -5
  103. package/dist/esm/kup-echart.entry.js +210 -60
  104. package/dist/esm/kup-field.entry.js +3 -3
  105. package/dist/esm/kup-iframe.entry.js +4 -4
  106. package/dist/esm/kup-lazy.entry.js +4 -4
  107. package/dist/esm/kup-magic-box.entry.js +7 -7
  108. package/dist/esm/{kup-manager-bba62291.js → kup-manager-0ab94726.js} +2805 -2598
  109. package/dist/esm/kup-nav-bar.entry.js +6 -6
  110. package/dist/esm/kup-photo-frame.entry.js +175 -0
  111. package/dist/esm/kup-probe.entry.js +3 -3
  112. package/dist/esm/kup-qlik.entry.js +3 -3
  113. package/dist/esm/kup-snackbar.entry.js +7 -7
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/{utils-d1569956.js → utils-35c7a90d.js} +5 -37
  116. package/dist/ketchup/assets/svg/instagram.svg +1 -0
  117. package/dist/ketchup/assets/svg/pinterest.svg +1 -0
  118. package/dist/ketchup/assets/svg/reddit.svg +1 -0
  119. package/dist/ketchup/ketchup.esm.js +1 -1
  120. package/dist/ketchup/p-0751aaf6.entry.js +1 -0
  121. package/dist/ketchup/p-10c8d755.js +1 -0
  122. package/dist/ketchup/{p-aa27f9f7.entry.js → p-24df4f29.entry.js} +2 -2
  123. package/dist/ketchup/{p-29800a2e.js → p-2d4f19f4.js} +1 -1
  124. package/dist/ketchup/p-33073f4a.js +1 -0
  125. package/dist/ketchup/p-3445be1e.entry.js +1 -0
  126. package/dist/ketchup/p-3813281b.entry.js +1 -0
  127. package/dist/ketchup/p-4081f5f7.entry.js +1 -0
  128. package/dist/ketchup/p-47b57d97.js +1 -0
  129. package/dist/ketchup/p-5186885c.entry.js +1 -0
  130. package/dist/ketchup/{p-f993f813.js → p-5d190cf5.js} +1 -1
  131. package/dist/ketchup/p-67c64257.entry.js +1 -0
  132. package/dist/ketchup/p-68fc1428.entry.js +1 -0
  133. package/dist/ketchup/p-8be1337b.js +1 -0
  134. package/dist/ketchup/p-8f735633.entry.js +1 -0
  135. package/dist/ketchup/p-96101f09.entry.js +39 -0
  136. package/dist/ketchup/p-9bcda66f.entry.js +1 -0
  137. package/dist/ketchup/p-b5e1dbfa.entry.js +1 -0
  138. package/dist/ketchup/{p-ebf4cf56.js → p-c314b1e6.js} +1 -1
  139. package/dist/ketchup/p-d7af8156.entry.js +1 -0
  140. package/dist/ketchup/p-dbe87a3f.entry.js +143 -0
  141. package/dist/ketchup/p-ee33cbe9.js +9 -0
  142. package/dist/ketchup/p-f250d42b.entry.js +1 -0
  143. package/dist/ketchup/p-f9c41e20.entry.js +1 -0
  144. package/dist/ketchup/p-fea316ab.entry.js +1 -0
  145. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
  146. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +0 -2
  147. package/dist/types/components/kup-data-table/kup-data-table.d.ts +8 -15
  148. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
  149. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
  150. package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
  151. package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
  152. package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
  153. package/dist/types/components/kup-list/kup-list.d.ts +2 -2
  154. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
  155. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
  156. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
  157. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
  158. package/dist/types/components.d.ts +110 -28
  159. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
  160. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
  161. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
  162. package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
  163. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +11 -0
  164. package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
  165. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  166. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  167. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  168. package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
  169. package/dist/types/utils/utils.d.ts +0 -18
  170. package/package.json +2 -2
  171. package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
  172. package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
  173. package/dist/collection/utils/state-utils.js +0 -9
  174. package/dist/ketchup/p-0032a782.entry.js +0 -1
  175. package/dist/ketchup/p-18c4d083.entry.js +0 -1
  176. package/dist/ketchup/p-199c972e.entry.js +0 -1
  177. package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
  178. package/dist/ketchup/p-542279e9.entry.js +0 -1
  179. package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
  180. package/dist/ketchup/p-5c97e7ab.js +0 -1
  181. package/dist/ketchup/p-6817ca85.entry.js +0 -1
  182. package/dist/ketchup/p-76e674ca.entry.js +0 -1
  183. package/dist/ketchup/p-78aa6f1b.js +0 -1
  184. package/dist/ketchup/p-842b66aa.entry.js +0 -1
  185. package/dist/ketchup/p-894981c0.entry.js +0 -143
  186. package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
  187. package/dist/ketchup/p-907c9e11.entry.js +0 -1
  188. package/dist/ketchup/p-9ae9149b.entry.js +0 -1
  189. package/dist/ketchup/p-b0d1bdd8.js +0 -9
  190. package/dist/ketchup/p-e1e4c951.entry.js +0 -1
  191. package/dist/ketchup/p-eba369d9.entry.js +0 -1
  192. package/dist/ketchup/p-ed0b8666.js +0 -1
  193. package/dist/ketchup/p-fa540f82.js +0 -1
  194. package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
  195. package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
  196. package/dist/types/utils/state-utils.d.ts +0 -1
@@ -0,0 +1,382 @@
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 _KupPhotoFrame_intObserver, _KupPhotoFrame_kupManager, _KupPhotoFrame_placeholderEl, _KupPhotoFrame_resourceEl, _KupPhotoFrame_renderResource, _KupPhotoFrame_wrapperEl;
13
+ import { Component, Element, Event, forceUpdate, h, Host, Prop, State, } from '@stencil/core';
14
+ import { Method } from '@stencil/core/internal';
15
+ import { kupManagerInstance } from '../../managers/kup-manager/kup-manager';
16
+ import { getProps, setProps } from '../../utils/utils';
17
+ import { componentWrapperId } from '../../variables/GenericVariables';
18
+ import { KupPhotoFrameProps } from './kup-photo-frame-declarations';
19
+ export class KupPhotoFrame {
20
+ constructor() {
21
+ /*-------------------------------------------------*/
22
+ /* S t a t e s */
23
+ /*-------------------------------------------------*/
24
+ this.isInViewport = false;
25
+ /*-------------------------------------------------*/
26
+ /* P r o p s */
27
+ /*-------------------------------------------------*/
28
+ /**
29
+ * Custom style of the component.
30
+ * @default ""
31
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
32
+ */
33
+ this.customStyle = '';
34
+ /**
35
+ * Html attributes of the picture before the component enters the viewport.
36
+ * @default {}
37
+ */
38
+ this.placeholderAttrs = {};
39
+ /**
40
+ * Html attributes of the picture after the component enters the viewport.
41
+ * @default {}
42
+ */
43
+ this.resourceAttrs = {};
44
+ /**
45
+ * Percentage of the component dimensions entering the viewport (0.1 => 1).
46
+ * @default 0.25
47
+ */
48
+ this.threshold = 0.25;
49
+ /*-------------------------------------------------*/
50
+ /* I n t e r n a l V a r i a b l e s */
51
+ /*-------------------------------------------------*/
52
+ _KupPhotoFrame_intObserver.set(this, null);
53
+ _KupPhotoFrame_kupManager.set(this, kupManagerInstance());
54
+ _KupPhotoFrame_placeholderEl.set(this, null);
55
+ _KupPhotoFrame_resourceEl.set(this, null);
56
+ _KupPhotoFrame_renderResource.set(this, false);
57
+ _KupPhotoFrame_wrapperEl.set(this, null);
58
+ }
59
+ /*-------------------------------------------------*/
60
+ /* P u b l i c M e t h o d s */
61
+ /*-------------------------------------------------*/
62
+ /**
63
+ * Used to retrieve component's props values.
64
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
65
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
66
+ */
67
+ async getProps(descriptions) {
68
+ return getProps(this, KupPhotoFrameProps, descriptions);
69
+ }
70
+ /**
71
+ * This method is used to trigger a new render of the component.
72
+ */
73
+ async refresh() {
74
+ forceUpdate(this);
75
+ }
76
+ /**
77
+ * Sets the props to the component.
78
+ * @param {GenericObject} props - Object containing props that will be set to the component.
79
+ */
80
+ async setProps(props) {
81
+ setProps(this, KupPhotoFrameProps, props);
82
+ }
83
+ /*-------------------------------------------------*/
84
+ /* P r i v a t e M e t h o d s */
85
+ /*-------------------------------------------------*/
86
+ setObserver() {
87
+ let callback = (entries) => {
88
+ entries.forEach((entry) => {
89
+ if (entry.isIntersecting) {
90
+ this.isInViewport = true;
91
+ __classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f").unobserve(this.rootElement);
92
+ }
93
+ });
94
+ };
95
+ let options = {
96
+ threshold: this.threshold,
97
+ };
98
+ __classPrivateFieldSet(this, _KupPhotoFrame_intObserver, new IntersectionObserver(callback, options), "f");
99
+ }
100
+ /*-------------------------------------------------*/
101
+ /* L i f e c y c l e H o o k s */
102
+ /*-------------------------------------------------*/
103
+ componentWillLoad() {
104
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logLoad(this, false);
105
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.register(this);
106
+ this.setObserver();
107
+ }
108
+ componentDidLoad() {
109
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logLoad(this, true);
110
+ }
111
+ componentWillRender() {
112
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logRender(this, false);
113
+ }
114
+ componentDidRender() {
115
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logRender(this, true);
116
+ }
117
+ render() {
118
+ if (this.isInViewport && !__classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f")) {
119
+ __classPrivateFieldSet(this, _KupPhotoFrame_renderResource, true, "f");
120
+ }
121
+ return (h(Host, null,
122
+ h("style", null, __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.setKupStyle(this.rootElement)),
123
+ h("div", { id: componentWrapperId, ref: (el) => {
124
+ __classPrivateFieldSet(this, _KupPhotoFrame_wrapperEl, el, "f");
125
+ } },
126
+ h("img", Object.assign({}, this.placeholderAttrs, { class: "placeholder", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_placeholderEl, el, "f")), onLoad: () => {
127
+ if (__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalWidth >
128
+ __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalHeight) {
129
+ __classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('horizontal');
130
+ }
131
+ else {
132
+ __classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('vertical');
133
+ }
134
+ __classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f").observe(this.rootElement);
135
+ __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").classList.add('placeholder--loaded');
136
+ this.kupPhotoFramePlaceholderLoad.emit({
137
+ comp: this,
138
+ id: this.rootElement.id,
139
+ });
140
+ } })),
141
+ __classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f") ? (h("img", Object.assign({}, this.resourceAttrs, { class: "resource", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_resourceEl, el, "f")), onLoad: () => {
142
+ __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").classList.add('placeholder--fade-out');
143
+ __classPrivateFieldGet(this, _KupPhotoFrame_resourceEl, "f").classList.add('resource--fade-in');
144
+ this.kupPhotoFrameResourceLoad.emit({
145
+ comp: this,
146
+ id: this.rootElement.id,
147
+ });
148
+ } }))) : null)));
149
+ }
150
+ disconnectedCallback() {
151
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.unregister(this);
152
+ __classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f").unobserve(this.rootElement);
153
+ }
154
+ static get is() { return "kup-photo-frame"; }
155
+ static get encapsulation() { return "shadow"; }
156
+ static get originalStyleUrls() { return {
157
+ "$": ["kup-photo-frame.scss"]
158
+ }; }
159
+ static get styleUrls() { return {
160
+ "$": ["kup-photo-frame.css"]
161
+ }; }
162
+ static get properties() { return {
163
+ "customStyle": {
164
+ "type": "string",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "string",
168
+ "resolved": "string",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [{
175
+ "name": "default",
176
+ "text": "\"\""
177
+ }, {
178
+ "name": "see",
179
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
180
+ }],
181
+ "text": "Custom style of the component."
182
+ },
183
+ "attribute": "custom-style",
184
+ "reflect": false,
185
+ "defaultValue": "''"
186
+ },
187
+ "placeholderAttrs": {
188
+ "type": "unknown",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "GenericObject",
192
+ "resolved": "GenericObject",
193
+ "references": {
194
+ "GenericObject": {
195
+ "location": "import",
196
+ "path": "../../types/GenericTypes"
197
+ }
198
+ }
199
+ },
200
+ "required": false,
201
+ "optional": false,
202
+ "docs": {
203
+ "tags": [{
204
+ "name": "default",
205
+ "text": "{}"
206
+ }],
207
+ "text": "Html attributes of the picture before the component enters the viewport."
208
+ },
209
+ "defaultValue": "{}"
210
+ },
211
+ "resourceAttrs": {
212
+ "type": "unknown",
213
+ "mutable": false,
214
+ "complexType": {
215
+ "original": "GenericObject",
216
+ "resolved": "GenericObject",
217
+ "references": {
218
+ "GenericObject": {
219
+ "location": "import",
220
+ "path": "../../types/GenericTypes"
221
+ }
222
+ }
223
+ },
224
+ "required": false,
225
+ "optional": false,
226
+ "docs": {
227
+ "tags": [{
228
+ "name": "default",
229
+ "text": "{}"
230
+ }],
231
+ "text": "Html attributes of the picture after the component enters the viewport."
232
+ },
233
+ "defaultValue": "{}"
234
+ },
235
+ "threshold": {
236
+ "type": "number",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "number",
240
+ "resolved": "number",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [{
247
+ "name": "default",
248
+ "text": "0.25"
249
+ }],
250
+ "text": "Percentage of the component dimensions entering the viewport (0.1 => 1)."
251
+ },
252
+ "attribute": "threshold",
253
+ "reflect": false,
254
+ "defaultValue": "0.25"
255
+ }
256
+ }; }
257
+ static get states() { return {
258
+ "isInViewport": {}
259
+ }; }
260
+ static get events() { return [{
261
+ "method": "kupPhotoFramePlaceholderLoad",
262
+ "name": "kup-photoframe-placeholderload",
263
+ "bubbles": true,
264
+ "cancelable": false,
265
+ "composed": true,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "Triggered when the placeholder is loaded."
269
+ },
270
+ "complexType": {
271
+ "original": "KupEventPayload",
272
+ "resolved": "KupEventPayload",
273
+ "references": {
274
+ "KupEventPayload": {
275
+ "location": "import",
276
+ "path": "../../types/GenericTypes"
277
+ }
278
+ }
279
+ }
280
+ }, {
281
+ "method": "kupPhotoFrameResourceLoad",
282
+ "name": "kup-photoframe-resourceload",
283
+ "bubbles": true,
284
+ "cancelable": false,
285
+ "composed": true,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": "Triggered when the resource is loaded."
289
+ },
290
+ "complexType": {
291
+ "original": "KupEventPayload",
292
+ "resolved": "KupEventPayload",
293
+ "references": {
294
+ "KupEventPayload": {
295
+ "location": "import",
296
+ "path": "../../types/GenericTypes"
297
+ }
298
+ }
299
+ }
300
+ }]; }
301
+ static get methods() { return {
302
+ "getProps": {
303
+ "complexType": {
304
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
305
+ "parameters": [{
306
+ "tags": [{
307
+ "name": "param",
308
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
309
+ }],
310
+ "text": "- When provided and true, the result will be the list of props with their description."
311
+ }],
312
+ "references": {
313
+ "Promise": {
314
+ "location": "global"
315
+ },
316
+ "GenericObject": {
317
+ "location": "import",
318
+ "path": "../../types/GenericTypes"
319
+ }
320
+ },
321
+ "return": "Promise<GenericObject>"
322
+ },
323
+ "docs": {
324
+ "text": "Used to retrieve component's props values.",
325
+ "tags": [{
326
+ "name": "param",
327
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
328
+ }, {
329
+ "name": "returns",
330
+ "text": "List of props as object, each key will be a prop."
331
+ }]
332
+ }
333
+ },
334
+ "refresh": {
335
+ "complexType": {
336
+ "signature": "() => Promise<void>",
337
+ "parameters": [],
338
+ "references": {
339
+ "Promise": {
340
+ "location": "global"
341
+ }
342
+ },
343
+ "return": "Promise<void>"
344
+ },
345
+ "docs": {
346
+ "text": "This method is used to trigger a new render of the component.",
347
+ "tags": []
348
+ }
349
+ },
350
+ "setProps": {
351
+ "complexType": {
352
+ "signature": "(props: GenericObject) => Promise<void>",
353
+ "parameters": [{
354
+ "tags": [{
355
+ "name": "param",
356
+ "text": "props - Object containing props that will be set to the component."
357
+ }],
358
+ "text": "- Object containing props that will be set to the component."
359
+ }],
360
+ "references": {
361
+ "Promise": {
362
+ "location": "global"
363
+ },
364
+ "GenericObject": {
365
+ "location": "import",
366
+ "path": "../../types/GenericTypes"
367
+ }
368
+ },
369
+ "return": "Promise<void>"
370
+ },
371
+ "docs": {
372
+ "text": "Sets the props to the component.",
373
+ "tags": [{
374
+ "name": "param",
375
+ "text": "props - Object containing props that will be set to the component."
376
+ }]
377
+ }
378
+ }
379
+ }; }
380
+ static get elementRef() { return "rootElement"; }
381
+ }
382
+ _KupPhotoFrame_intObserver = new WeakMap(), _KupPhotoFrame_kupManager = new WeakMap(), _KupPhotoFrame_placeholderEl = new WeakMap(), _KupPhotoFrame_resourceEl = new WeakMap(), _KupPhotoFrame_renderResource = new WeakMap(), _KupPhotoFrame_wrapperEl = new WeakMap();
@@ -5,6 +5,7 @@
5
5
  display: block;
6
6
  left: 0;
7
7
  outline: none;
8
+ pointer-events: none;
8
9
  position: fixed;
9
10
  transition: opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;
10
11
  width: 100%;
@@ -37,6 +38,7 @@
37
38
  }
38
39
  .snackbar__text {
39
40
  padding: 14px 16px;
41
+ pointer-events: all;
40
42
  white-space: nowrap;
41
43
  }
42
44
  .snackbar__buttons {
@@ -49,11 +51,13 @@
49
51
  display: flex;
50
52
  justify-content: flex-end;
51
53
  margin-right: 8px;
54
+ pointer-events: all;
52
55
  width: 100%;
53
56
  }
54
57
  .snackbar__close {
55
58
  --kup-button-font-size: 11px;
56
59
  margin-left: 8px;
60
+ pointer-events: all;
57
61
  }
58
62
 
59
63
  @keyframes snackbar-show {
@@ -25,7 +25,6 @@
25
25
  );
26
26
  --kup_tabbar_tab_padding: var(--kup-tabbar-tab-padding, 0 24px);
27
27
  display: block;
28
- font-family: var(--kup_tabbar_font_family);
29
28
  font-size: var(--kup_tabbar_font_size);
30
29
  }
31
30
 
@@ -67,6 +66,7 @@
67
66
  appearance: none;
68
67
  z-index: 1;
69
68
  height: var(--kup_tabbar_height);
69
+ font-family: var(--kup_tabbar_font_family);
70
70
  font-size: 0.875em;
71
71
  font-weight: var(--kup_tabbar_font_weight);
72
72
  letter-spacing: 0.0892857143em;
@@ -78,7 +78,7 @@ export class KupTimePicker {
78
78
  onKupTimePickerItemClick(e, value) {
79
79
  if (e != null) {
80
80
  if (value == null) {
81
- value = e.detail.selected.value;
81
+ value = e.detail.selected.id;
82
82
  }
83
83
  }
84
84
  this.setPickerValueSelected(value);
@@ -366,11 +366,14 @@ export class KupTimePicker {
366
366
  } }));
367
367
  }
368
368
  else {
369
- return (h("kup-list", { ref: (el) => (this.pickerKupEl = el), data: this.createTimeListData(this.value), "is-menu": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list' }));
369
+ return (h("kup-list", { ref: (el) => (this.pickerKupEl = el), data: this.createTimeListData(this.value), "is-menu": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.id), id: this.rootElement.id + '_list' }));
370
370
  }
371
371
  }
372
372
  createTimeListData(value) {
373
- let listData = [];
373
+ const date = new Date();
374
+ const listData = [];
375
+ const totalDayMinutes = 24 * 60;
376
+ const itemsCount = totalDayMinutes / this.timeMinutesStep;
374
377
  let selectedTime;
375
378
  if (value == null || value.trim() == '') {
376
379
  selectedTime = new Date();
@@ -380,9 +383,6 @@ export class KupTimePicker {
380
383
  ? KupDatesFormats.ISO_TIME
381
384
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
382
385
  }
383
- let totalDayMinutes = 24 * 60;
384
- let itemsCount = totalDayMinutes / this.timeMinutesStep;
385
- let date = new Date();
386
386
  date.setHours(0, 0, 0);
387
387
  for (let i = 0; i < itemsCount; i++) {
388
388
  let selected = false;
@@ -390,14 +390,14 @@ export class KupTimePicker {
390
390
  date.getMinutes() == selectedTime.getMinutes()) {
391
391
  selected = true;
392
392
  }
393
- let text = formatTime(date, this.manageSeconds);
394
- let value = formattedStringToCustomUnformattedStringTime(text, this.manageSeconds
393
+ const value = formatTime(date, this.manageSeconds);
394
+ const id = formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
395
395
  ? KupDatesFormats.ISO_TIME
396
396
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
397
397
  let item = {
398
- text: text,
399
- value: value,
398
+ id: id,
400
399
  selected: selected,
400
+ value: value,
401
401
  };
402
402
  listData[listData.length] = item;
403
403
  date.setMinutes(date.getMinutes() + this.timeMinutesStep);