@sme.up/ketchup 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/cjs/{cell-utils-a78d6fac.js → cell-utils-fe64a28c.js} +2 -2
  2. package/dist/cjs/{f-button-ac179257.js → f-button-5b69d882.js} +4 -4
  3. package/dist/cjs/f-cell-3a740c48.js +418 -0
  4. package/dist/cjs/f-checkbox-57443ca3.js +29 -0
  5. package/dist/cjs/{f-chip-b00897d7.js → f-chip-02e83f82.js} +3 -3
  6. package/dist/cjs/{f-image-89f25556.js → f-image-2a61ece2.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-09126bdd.js} +5 -5
  8. package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-9ee20a67.js} +3 -3
  9. package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +209 -193
  13. package/dist/cjs/kup-box.cjs.entry.js +1306 -0
  14. package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-cell.cjs.entry.js +10 -9
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
  18. package/dist/cjs/{kup-form-editor.cjs.entry.js → kup-dashboard.cjs.entry.js} +123 -148
  19. package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
  20. package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +53 -1338
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +410 -0
  22. package/dist/cjs/kup-form.cjs.entry.js +480 -0
  23. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-image-list.cjs.entry.js +73 -11
  25. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  27. package/dist/cjs/{kup-manager-7a941909.js → kup-manager-02acbb37.js} +407 -7
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/cjs/{utils-6287d878.js → utils-4b208b48.js} +1 -1
  36. package/dist/collection/assets/dashboard.js +113 -0
  37. package/dist/collection/assets/data-table.js +15 -0
  38. package/dist/collection/assets/family-tree.js +2437 -0
  39. package/dist/collection/assets/form.js +433 -0
  40. package/dist/collection/assets/grid.js +17 -0
  41. package/dist/collection/assets/index.js +14 -6
  42. package/dist/collection/collection-manifest.json +4 -3
  43. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
  44. package/dist/collection/components/kup-box/kup-box.js +13 -2
  45. package/dist/collection/components/kup-button/kup-button.js +1 -0
  46. package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
  47. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
  48. package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +7 -6
  49. package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +148 -149
  50. package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
  51. package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
  52. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
  53. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +12 -0
  54. package/dist/collection/components/kup-family-tree/kup-family-tree.css +101 -0
  55. package/dist/collection/components/kup-family-tree/kup-family-tree.js +666 -0
  56. package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
  57. package/dist/collection/components/kup-form/kup-form.css +99 -0
  58. package/dist/collection/components/kup-form/kup-form.js +647 -0
  59. package/dist/collection/components/kup-grid/kup-grid.js +1 -4
  60. package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
  61. package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
  62. package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
  63. package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
  64. package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
  65. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
  66. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  67. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  68. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
  69. package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
  70. package/dist/collection/components/kup-tree/kup-tree.js +10 -4
  71. package/dist/collection/f-components/f-button/f-button.js +2 -2
  72. package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
  73. package/dist/collection/f-components/f-cell/f-cell.js +34 -114
  74. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
  75. package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
  76. package/dist/collection/managers/kup-data/kup-data.js +109 -1
  77. package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
  78. package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
  79. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
  80. package/dist/collection/types/GenericTypes.js +3 -2
  81. package/dist/esm/{cell-utils-964da6b5.js → cell-utils-cb5d4149.js} +2 -2
  82. package/dist/esm/{f-button-871a544b.js → f-button-fd44ef70.js} +4 -4
  83. package/dist/esm/{f-cell-521ef17a.js → f-cell-7b159a22.js} +48 -283
  84. package/dist/esm/f-checkbox-c51c4a75.js +27 -0
  85. package/dist/esm/{f-chip-1dda722f.js → f-chip-c2e4c522.js} +3 -3
  86. package/dist/esm/{f-image-c468d8ae.js → f-image-2ab4b9aa.js} +2 -2
  87. package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-ef537d82.js} +5 -5
  88. package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-41c575eb.js} +3 -3
  89. package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
  90. package/dist/esm/ketchup.js +3 -3
  91. package/dist/esm/kup-accordion.entry.js +4 -4
  92. package/dist/esm/kup-autocomplete_25.entry.js +199 -183
  93. package/dist/esm/kup-box.entry.js +1302 -0
  94. package/dist/esm/kup-calendar.entry.js +7 -7
  95. package/dist/esm/kup-cell.entry.js +9 -8
  96. package/dist/esm/kup-dash-list.entry.js +4 -4
  97. package/dist/esm/kup-dash_2.entry.js +4 -7
  98. package/dist/esm/{kup-form-editor.entry.js → kup-dashboard.entry.js} +123 -148
  99. package/dist/esm/kup-drawer.entry.js +4 -4
  100. package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +54 -1338
  101. package/dist/esm/kup-family-tree.entry.js +406 -0
  102. package/dist/esm/kup-form.entry.js +476 -0
  103. package/dist/esm/kup-iframe.entry.js +3 -3
  104. package/dist/esm/kup-image-list.entry.js +72 -10
  105. package/dist/esm/kup-lazy.entry.js +4 -4
  106. package/dist/esm/kup-magic-box.entry.js +4 -4
  107. package/dist/esm/{kup-manager-58b075b4.js → kup-manager-22a475e6.js} +404 -8
  108. package/dist/esm/kup-nav-bar.entry.js +3 -3
  109. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  110. package/dist/esm/kup-photo-frame.entry.js +5 -5
  111. package/dist/esm/kup-probe.entry.js +2 -2
  112. package/dist/esm/kup-qlik.entry.js +2 -2
  113. package/dist/esm/kup-snackbar.entry.js +5 -5
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/{utils-d7e4b3c2.js → utils-2c1f4122.js} +1 -1
  116. package/dist/ketchup/ketchup.esm.js +1 -1
  117. package/dist/ketchup/p-06c6cc68.js +1 -0
  118. package/dist/ketchup/{p-3c11e615.entry.js → p-0dacd4bc.entry.js} +1 -1
  119. package/dist/ketchup/{p-fac1a08b.entry.js → p-1959f835.entry.js} +1 -1
  120. package/dist/ketchup/p-1c44dc62.entry.js +1 -0
  121. package/dist/ketchup/{p-f09f2f98.entry.js → p-264b1b19.entry.js} +1 -1
  122. package/dist/ketchup/p-38d7584e.js +1 -0
  123. package/dist/ketchup/{p-f71a1675.entry.js → p-42080355.entry.js} +1 -1
  124. package/dist/ketchup/p-4bc9f98b.entry.js +1 -0
  125. package/dist/ketchup/p-578583db.entry.js +1 -0
  126. package/dist/ketchup/p-5866d507.entry.js +1 -0
  127. package/dist/ketchup/p-61059e9d.entry.js +9 -0
  128. package/dist/ketchup/{p-a615a92b.entry.js → p-664be494.entry.js} +1 -1
  129. package/dist/ketchup/{p-d2ee56dd.entry.js → p-67cd575d.entry.js} +1 -1
  130. package/dist/ketchup/{p-e0035c58.js → p-682a367a.js} +1 -1
  131. package/dist/ketchup/p-6ccf7eb2.entry.js +1 -0
  132. package/dist/ketchup/p-7230ab97.entry.js +1 -0
  133. package/dist/ketchup/p-752b4cef.entry.js +1 -0
  134. package/dist/ketchup/{p-954cc340.entry.js → p-7de3e7ac.entry.js} +1 -1
  135. package/dist/ketchup/p-928c5c36.js +1 -0
  136. package/dist/ketchup/{p-6dff70f8.entry.js → p-9b36497d.entry.js} +1 -1
  137. package/dist/ketchup/{p-99e0d768.entry.js → p-b982d137.entry.js} +1 -1
  138. package/dist/ketchup/{p-8cdf61a4.js → p-c0219e5e.js} +1 -1
  139. package/dist/ketchup/p-c55fd0a7.entry.js +1 -0
  140. package/dist/ketchup/p-cd5cfa7c.js +1 -0
  141. package/dist/ketchup/p-d154b3a0.entry.js +1 -0
  142. package/dist/ketchup/p-d2affb6f.entry.js +27 -0
  143. package/dist/ketchup/p-d3b542b3.js +2 -0
  144. package/dist/ketchup/{p-7454cb92.js → p-d6c12c6c.js} +1 -1
  145. package/dist/ketchup/p-da0eab60.entry.js +1 -0
  146. package/dist/ketchup/{p-7eff4eee.js → p-dc62a30f.js} +1 -1
  147. package/dist/ketchup/p-e9366aaf.entry.js +39 -0
  148. package/dist/ketchup/{p-44ec4f03.js → p-edae3076.js} +1 -1
  149. package/dist/ketchup/p-fc2b1229.js +30 -0
  150. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
  151. package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
  152. package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +12 -9
  153. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +33 -0
  154. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +61 -0
  155. package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
  156. package/dist/types/components/kup-form/kup-form.d.ts +63 -0
  157. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
  158. package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
  159. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  160. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  161. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
  162. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
  163. package/dist/types/components.d.ts +460 -241
  164. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
  165. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  166. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
  167. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
  168. package/dist/types/managers/kup-data/kup-data.d.ts +7 -1
  169. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
  170. package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
  171. package/dist/types/types/GenericTypes.d.ts +3 -2
  172. package/package.json +2 -2
  173. package/dist/cjs/f-cell-69294bca.js +0 -653
  174. package/dist/cjs/kup-field.cjs.entry.js +0 -241
  175. package/dist/collection/assets/form-editor.js +0 -338
  176. package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
  177. package/dist/collection/components/kup-field/kup-field.css +0 -48
  178. package/dist/collection/components/kup-field/kup-field.js +0 -514
  179. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
  180. package/dist/esm/kup-field.entry.js +0 -237
  181. package/dist/ketchup/p-1ae66cc5.js +0 -1
  182. package/dist/ketchup/p-34b74425.js +0 -1
  183. package/dist/ketchup/p-4ffbc3ff.js +0 -1
  184. package/dist/ketchup/p-5264a3e6.entry.js +0 -1
  185. package/dist/ketchup/p-65974e48.entry.js +0 -1
  186. package/dist/ketchup/p-65b46587.entry.js +0 -40
  187. package/dist/ketchup/p-80968627.entry.js +0 -1
  188. package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
  189. package/dist/ketchup/p-aca0e54b.js +0 -30
  190. package/dist/ketchup/p-b8939a8b.entry.js +0 -1
  191. package/dist/ketchup/p-bfc3bac7.js +0 -1
  192. package/dist/ketchup/p-c5ce8951.entry.js +0 -1
  193. package/dist/ketchup/p-cad1e097.entry.js +0 -9
  194. package/dist/ketchup/p-db71436b.entry.js +0 -27
  195. package/dist/ketchup/p-e1039cf2.entry.js +0 -1
  196. package/dist/ketchup/p-ea10176c.entry.js +0 -1
  197. package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
  198. package/dist/types/components/kup-field/kup-field.d.ts +0 -90
@@ -10,7 +10,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
10
10
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
11
  };
12
12
  var _KupImageList_instances, _KupImageList_clickTimeout, _KupImageList_kupManager, _KupImageList_backProps, _KupImageList_topProps, _KupImageList_createItem, _KupImageList_createList;
13
- import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, } from '@stencil/core';
13
+ import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
14
14
  import { MDCRipple } from '@material/ripple';
15
15
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
16
16
  import { KupImageListProps, } from './kup-image-list-declarations';
@@ -22,12 +22,14 @@ import { FButtonStyling, } from '../../f-components/f-button/f-button-declaratio
22
22
  import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
23
23
  import { FCell } from '../../f-components/f-cell/f-cell';
24
24
  import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
25
+ import { KupImageListState } from './kup-image-list-state';
25
26
  export class KupImageList {
26
27
  constructor() {
27
28
  _KupImageList_instances.add(this);
28
29
  /*-------------------------------------------------*/
29
30
  /* S t a t e s */
30
31
  /*-------------------------------------------------*/
32
+ this.state = new KupImageListState();
31
33
  this.currentNode = null;
32
34
  this.navigationBarToggled = false;
33
35
  /*-------------------------------------------------*/
@@ -49,9 +51,18 @@ export class KupImageList {
49
51
  * @default true
50
52
  */
51
53
  this.ripple = true;
54
+ /**
55
+ * An array of integers containing the path to a selected child.\
56
+ */
57
+ this.selectedNode = [];
58
+ this.stateId = '';
52
59
  /*-------------------------------------------------*/
53
60
  /* I n t e r n a l V a r i a b l e s */
54
61
  /*-------------------------------------------------*/
62
+ /**
63
+ * Instance of the KupManager class.
64
+ */
65
+ this.kupManager = kupManagerInstance();
55
66
  _KupImageList_clickTimeout.set(this, []);
56
67
  _KupImageList_kupManager.set(this, kupManagerInstance());
57
68
  _KupImageList_backProps.set(this, {
@@ -75,6 +86,32 @@ export class KupImageList {
75
86
  wrapperClass: 'navigation-bar__top',
76
87
  });
77
88
  }
89
+ initWithPersistedState() {
90
+ if (this.store && this.stateId) {
91
+ const state = this.store.getState(this.stateId);
92
+ if (state != null) {
93
+ this.currentNode =
94
+ this.kupManager.data.node.findByStrTreeNodePath(this.data, state.selectedTreeNodePath);
95
+ }
96
+ }
97
+ }
98
+ persistState() {
99
+ if (this.store && this.stateId) {
100
+ let somethingChanged = false;
101
+ let cNodeRowId = this.currentNode ? this.currentNode.id : '';
102
+ if (!this.kupManager.objects.deepEqual(this.state.selectedTreeNodePath, cNodeRowId)) {
103
+ this.state.selectedTreeNodePath = cNodeRowId;
104
+ somethingChanged = true;
105
+ }
106
+ if (!this.state.load) {
107
+ this.state.load = true;
108
+ return;
109
+ }
110
+ if (somethingChanged) {
111
+ this.store.persistState(this.stateId, this.state);
112
+ }
113
+ }
114
+ }
78
115
  onKupClick(node) {
79
116
  if (node.children && node.children.length > 0) {
80
117
  this.currentNode = node;
@@ -105,6 +142,15 @@ export class KupImageList {
105
142
  });
106
143
  }
107
144
  /*-------------------------------------------------*/
145
+ /* W a t c h e r s */
146
+ /*-------------------------------------------------*/
147
+ selectNode(newData) {
148
+ if (!newData || newData.length == 0) {
149
+ return;
150
+ }
151
+ this.currentNode = this.kupManager.data.node.find(this.data, newData);
152
+ }
153
+ /*-------------------------------------------------*/
108
154
  /* P u b l i c M e t h o d s */
109
155
  /*-------------------------------------------------*/
110
156
  /**
@@ -152,6 +198,9 @@ export class KupImageList {
152
198
  }
153
199
  }
154
200
  }
201
+ // *** Store
202
+ this.persistState();
203
+ // ***
155
204
  __classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logRender(this, true);
156
205
  }
157
206
  render() {
@@ -253,6 +302,65 @@ export class KupImageList {
253
302
  "attribute": "ripple",
254
303
  "reflect": false,
255
304
  "defaultValue": "true"
305
+ },
306
+ "selectedNode": {
307
+ "type": "unknown",
308
+ "mutable": false,
309
+ "complexType": {
310
+ "original": "TreeNodePath",
311
+ "resolved": "number[]",
312
+ "references": {
313
+ "TreeNodePath": {
314
+ "location": "import",
315
+ "path": "../kup-tree/kup-tree-declarations"
316
+ }
317
+ }
318
+ },
319
+ "required": false,
320
+ "optional": false,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": "An array of integers containing the path to a selected child.\\"
324
+ },
325
+ "defaultValue": "[]"
326
+ },
327
+ "stateId": {
328
+ "type": "string",
329
+ "mutable": false,
330
+ "complexType": {
331
+ "original": "string",
332
+ "resolved": "string",
333
+ "references": {}
334
+ },
335
+ "required": false,
336
+ "optional": false,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": ""
340
+ },
341
+ "attribute": "state-id",
342
+ "reflect": false,
343
+ "defaultValue": "''"
344
+ },
345
+ "store": {
346
+ "type": "unknown",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "KupStore",
350
+ "resolved": "KupStore",
351
+ "references": {
352
+ "KupStore": {
353
+ "location": "import",
354
+ "path": "../kup-state/kup-store"
355
+ }
356
+ }
357
+ },
358
+ "required": false,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": ""
363
+ }
256
364
  }
257
365
  }; }
258
366
  static get states() { return {
@@ -400,6 +508,10 @@ export class KupImageList {
400
508
  }
401
509
  }; }
402
510
  static get elementRef() { return "rootElement"; }
511
+ static get watchers() { return [{
512
+ "propName": "selectedNode",
513
+ "methodName": "selectNode"
514
+ }]; }
403
515
  }
404
516
  _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakMap(), _KupImageList_backProps = new WeakMap(), _KupImageList_topProps = new WeakMap(), _KupImageList_instances = new WeakSet(), _KupImageList_createItem = function _KupImageList_createItem(node) {
405
517
  const props = {
@@ -1,20 +1,22 @@
1
1
  /**
2
- * @prop --kup-lazy-hor-alignment: Sets the horizontal alignment of the subcomponent.
3
- * @prop --kup-lazy-ver-alignment: Sets the vertical alignment of the subcomponent.
4
2
  * @prop --kup-lazy-animation-time: Sets the duration of the animation.
3
+ * @prop --kup-lazy-hor-alignment: Sets the horizontal alignment of the subcomponent.
5
4
  * @prop --kup-lazy-placeholder-color: Sets color of the placeholder icon.
5
+ * @prop --kup-lazy-ver-alignment: Sets the vertical alignment of the subcomponent.
6
+ * @prop --kup-lazy-width: Sets the width of the component and subcomponent.
6
7
  */
7
8
  :host {
8
- --kup_lazy_hor_alignment: var(--kup-lazy-hor-alignment, center);
9
- --kup_lazy_ver_alignment: var(--kup-lazy-ver-alignment, center);
10
9
  --kup_lazy_animation_time: var(--kup-lazy-animation-time, 2s);
10
+ --kup_lazy_hor_alignment: var(--kup-lazy-hor-alignment, center);
11
11
  --kup_lazy_placeholder_color: var(
12
12
  --kup-lazy-placeholder-color,
13
13
  var(--kup-icon-color)
14
14
  );
15
+ --kup_lazy_ver_alignment: var(--kup-lazy-ver-alignment, center);
16
+ --kup_lazy_width: var(--kup-lazy-width, 100%);
15
17
  display: block;
16
18
  height: 100%;
17
- width: 100%;
19
+ width: var(--kup_lazy_width);
18
20
  position: relative;
19
21
  }
20
22
 
@@ -23,12 +25,17 @@
23
25
  display: flex;
24
26
  justify-content: var(--kup_lazy_hor_alignment);
25
27
  height: 100%;
26
- width: 100%;
28
+ width: var(--kup_lazy_width);
27
29
  }
28
30
  #kup-component kup-data-table {
29
31
  min-width: 100%;
30
32
  }
31
33
 
34
+ .kup-loaded,
35
+ .kup-to-be-loaded {
36
+ width: var(--kup_lazy_width);
37
+ }
38
+
32
39
  svg {
33
40
  fill: var(--kup_lazy_placeholder_color);
34
41
  animation: shine ease var(--kup_lazy_animation_time) infinite;
@@ -26,15 +26,21 @@ export function consistencyCheck(idIn, listData, listEl, selectMode, displayMode
26
26
  if (selected == null && idIn == null && listData) {
27
27
  selected = getFirstItemSelected(listData);
28
28
  }
29
+ let trueValue = null;
29
30
  if (selected == null) {
30
31
  selected = {
31
32
  id: idIn == null ? '' : idIn,
32
33
  value: idIn == null ? '' : idIn,
33
34
  };
35
+ id = selected.id;
36
+ displayedValue = selected.id;
37
+ trueValue = selected.id;
38
+ }
39
+ else {
40
+ id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
41
+ displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
42
+ trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
34
43
  }
35
- id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
36
- displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
37
- const trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
38
44
  return {
39
45
  value: id,
40
46
  displayedValue: displayedValue,
@@ -7,7 +7,7 @@
7
7
  --kup-photoframe-border,
8
8
  1px inset var(--kup-border-color)
9
9
  );
10
- --kup_photoframe_fade_out_time: var(--kup-photoframe-fade-out-time, 3000ms);
10
+ --kup_photoframe_fade_out_time: var(--kup-photoframe-fade-out-time, 2000ms);
11
11
  border: var(--kup_photoframe_border);
12
12
  display: block;
13
13
  height: 100%;
@@ -35,19 +35,29 @@ img {
35
35
  }
36
36
 
37
37
  .placeholder {
38
- opacity: 1;
38
+ display: none;
39
39
  transition: opacity var(--kup_photoframe_fade_out_time) ease-out;
40
+ will-change: opacity;
40
41
  z-index: 1;
41
42
  }
43
+ .placeholder--loaded {
44
+ display: block;
45
+ }
42
46
  .placeholder--fade-out {
43
47
  opacity: 0;
48
+ position: absolute;
44
49
  }
45
50
 
46
51
  .resource {
52
+ display: none;
47
53
  left: 0;
48
54
  position: absolute;
49
55
  top: 0;
50
- z-index: -1;
56
+ z-index: 0;
57
+ }
58
+ .resource--fade-in {
59
+ display: block;
60
+ position: relative;
51
61
  }
52
62
 
53
63
  /*-------------------------------------------------*/
@@ -139,8 +139,8 @@ export class KupPhotoFrame {
139
139
  });
140
140
  } })),
141
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_resourceEl, "f").classList.add('resource--fade-in');
143
142
  __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").classList.add('placeholder--fade-out');
143
+ __classPrivateFieldGet(this, _KupPhotoFrame_resourceEl, "f").classList.add('resource--fade-in');
144
144
  this.kupPhotoFrameResourceLoad.emit({
145
145
  comp: this,
146
146
  id: this.rootElement.id,
@@ -17,7 +17,10 @@ export var KupTextFieldProps;
17
17
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
18
18
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
19
19
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
20
+ KupTextFieldProps["max"] = "The HTML max attribute specifies the maximum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
20
21
  KupTextFieldProps["maxLength"] = "When set, the helper will display a character counter.";
22
+ KupTextFieldProps["min"] = "The HTML min attribute specifies the minimum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
23
+ KupTextFieldProps["name"] = "The HTML name attribute used for form autocomplete.";
21
24
  KupTextFieldProps["outlined"] = "When set to true, the component will be rendered as an outlined field.";
22
25
  KupTextFieldProps["readOnly"] = "Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.";
23
26
  KupTextFieldProps["step"] = "The HTML step of the input element. It has effect only with number input type.";
@@ -102,6 +102,11 @@ export class KupTextField {
102
102
  * @default null
103
103
  */
104
104
  this.min = null;
105
+ /**
106
+ * The HTML name attribute used for form autocomplete.
107
+ * @default null
108
+ */
109
+ this.name = null;
105
110
  /**
106
111
  * When set to true, the component will be rendered as an outlined field.
107
112
  * @default false
@@ -305,6 +310,7 @@ export class KupTextField {
305
310
  max: this.max,
306
311
  maxLength: this.maxLength,
307
312
  min: this.min,
313
+ name: this.name,
308
314
  outlined: this.outlined,
309
315
  readOnly: this.readOnly,
310
316
  secondary: this.rootElement.classList.contains('kup-secondary')
@@ -689,6 +695,27 @@ export class KupTextField {
689
695
  "reflect": false,
690
696
  "defaultValue": "null"
691
697
  },
698
+ "name": {
699
+ "type": "string",
700
+ "mutable": false,
701
+ "complexType": {
702
+ "original": "string",
703
+ "resolved": "string",
704
+ "references": {}
705
+ },
706
+ "required": false,
707
+ "optional": false,
708
+ "docs": {
709
+ "tags": [{
710
+ "name": "default",
711
+ "text": "null"
712
+ }],
713
+ "text": "The HTML name attribute used for form autocomplete."
714
+ },
715
+ "attribute": "name",
716
+ "reflect": false,
717
+ "defaultValue": "null"
718
+ },
692
719
  "outlined": {
693
720
  "type": "boolean",
694
721
  "mutable": false,
@@ -61,12 +61,6 @@ export class KupTimePicker {
61
61
  * Instance of the KupManager class.
62
62
  */
63
63
  this.kupManager = kupManagerInstance();
64
- this.hoursEl = undefined;
65
- this.minutesEl = undefined;
66
- this.secondsEl = undefined;
67
- this.hoursCircleEl = undefined;
68
- this.minutesCircleEl = undefined;
69
- this.secondsCircleEl = undefined;
70
64
  this.hoursActive = true;
71
65
  this.minutesActive = false;
72
66
  this.secondsActive = false;
@@ -19,6 +19,7 @@ import { KupPointerEventTypes } from '../../managers/kup-interact/kup-interact-d
19
19
  import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
20
20
  import { FCell } from '../../f-components/f-cell/f-cell';
21
21
  import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
22
+ import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
22
23
  export class KupTree {
23
24
  constructor() {
24
25
  /*-------------------------------------------------*/
@@ -188,7 +189,6 @@ export class KupTree {
188
189
  if (this.store && this.stateId) {
189
190
  const state = this.store.getState(this.stateId);
190
191
  if (state != null) {
191
- console.log('Initialize with state for stateId ' + this.stateId, state);
192
192
  this.density = state.density;
193
193
  this.showFilters = state.showFilters;
194
194
  this.showFooter = state.showFooter;
@@ -235,7 +235,6 @@ export class KupTree {
235
235
  return;
236
236
  }
237
237
  if (somethingChanged) {
238
- console.log('Persisting state for stateId ' + this.stateId + ': ', this.state);
239
238
  this.store.persistState(this.stateId, this.state);
240
239
  }
241
240
  }
@@ -544,7 +543,7 @@ export class KupTree {
544
543
  this.closeTotalMenu();
545
544
  this.openTotalMenu(column);
546
545
  }
547
- getEventDetails(path) {
546
+ getEventDetails(path, e) {
548
547
  let isHeader, isBody, isFooter, td, th, tr, filterRemove;
549
548
  if (path) {
550
549
  for (let i = path.length - 1; i >= 0; i--) {
@@ -616,6 +615,7 @@ export class KupTree {
616
615
  cell: cell ? cell : null,
617
616
  column: column ? column : null,
618
617
  filterRemove: filterRemove ? filterRemove : null,
618
+ originalEvent: e,
619
619
  row: row ? row : null,
620
620
  td: td ? td : null,
621
621
  th: th ? th : null,
@@ -624,7 +624,7 @@ export class KupTree {
624
624
  }
625
625
  contextMenuHandler(e) {
626
626
  e.preventDefault();
627
- const details = this.getEventDetails(this.getEventPath(e.target));
627
+ const details = this.getEventDetails(this.getEventPath(e.target), e);
628
628
  if (details.area === 'header') {
629
629
  if (details.th && details.column) {
630
630
  this.openColumnMenu(details.column.name);
@@ -1384,6 +1384,12 @@ export class KupTree {
1384
1384
  }
1385
1385
  }
1386
1386
  }
1387
+ if (root) {
1388
+ const fs = root.querySelectorAll('.f-text-field');
1389
+ for (let index = 0; index < fs.length; index++) {
1390
+ FTextFieldMDC(fs[index]);
1391
+ }
1392
+ }
1387
1393
  if (this.preventXScroll) {
1388
1394
  this.setEllipsis();
1389
1395
  }
@@ -58,7 +58,7 @@ function renderButton(props) {
58
58
  const styleSpinnerContainer = {
59
59
  '--kup_button_spinner_height': propsFImage.sizeY,
60
60
  };
61
- return (h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, type: "button" },
61
+ return (h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, "aria-label": props.title, type: "button" },
62
62
  props.trailingIcon
63
63
  ? [
64
64
  h("span", { class: classLabelObj }, props.label),
@@ -93,7 +93,7 @@ function renderIconButton(props) {
93
93
  const iconOff = props.iconOff
94
94
  ? props.iconOff
95
95
  : props.icon + '_border';
96
- return (h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off' },
96
+ return (h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off', "aria-label": props.title },
97
97
  !props.showSpinner || props.disabled ? (h(FImage, Object.assign({}, propsFImage, { resource: props.toggable && !props.checked ? iconOff : props.icon, wrapperClass: `icon-button__icon kup-icon` }))) : null,
98
98
  props.toggable && !props.showSpinner ? (h(FImage, Object.assign({}, propsFImage, { resource: props.icon, wrapperClass: `icon-button__icon icon-button__icon--on kup-icon` }))) : null,
99
99
  props.showSpinner && !props.disabled ? (h("div", { class: "icon-button__spinner-container" },
@@ -1,5 +1,6 @@
1
1
  import { KupTagNames, } from '../../types/GenericTypes';
2
- export const autoAlignComps = [KupTagNames.DATA_TABLE, KupTagNames.TREE];
2
+ export const autoCenterComps = [KupTagNames.DATA_TABLE, KupTagNames.TREE];
3
+ export const fullWidthFieldsComps = [KupTagNames.DATA_TABLE, KupTagNames.TREE];
3
4
  /**
4
5
  * Supported cell events.
5
6
  */
@@ -88,6 +89,7 @@ export var FCellShapes;
88
89
  FCellShapes["PROGRESS_BAR"] = "PGB";
89
90
  FCellShapes["RADIO"] = "RAD";
90
91
  FCellShapes["RATING"] = "RTG";
92
+ FCellShapes["SWITCH"] = "SWT";
91
93
  FCellShapes["TEXT_FIELD"] = "ITX";
92
94
  })(FCellShapes || (FCellShapes = {}));
93
95
  /**
@@ -117,6 +119,7 @@ export var FCellTypes;
117
119
  FCellTypes["RADIO"] = "radio";
118
120
  FCellTypes["RATING"] = "rating";
119
121
  FCellTypes["STRING"] = "string";
122
+ FCellTypes["SWITCH"] = "switch";
120
123
  FCellTypes["TIME"] = "time";
121
124
  })(FCellTypes || (FCellTypes = {}));
122
125
  export const editableTypes = [
@@ -128,6 +131,7 @@ export const editableTypes = [
128
131
  FCellTypes.NUMBER,
129
132
  FCellTypes.RATING,
130
133
  FCellTypes.STRING,
134
+ FCellTypes.SWITCH,
131
135
  FCellTypes.TIME,
132
136
  ];
133
137
  export const kupTypes = [