wcs-core 2.5.4 → 2.6.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 (221) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/component-fc28ed16.js +1074 -0
  4. package/dist/cjs/helpers-d9aaa8c4.js +81 -0
  5. package/dist/cjs/{index-e05c3e1f.js → index-3cb9d725.js} +165 -87
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/{esm/wcs-action-bar_47.entry.js → cjs/lodash-776d6f03.js} +12499 -22628
  8. package/dist/cjs/select-arrow-76ccf86d.js +36 -0
  9. package/dist/cjs/wcs-action-bar.cjs.entry.js +24 -0
  10. package/dist/cjs/wcs-app.cjs.entry.js +2 -2
  11. package/dist/cjs/wcs-badge.cjs.entry.js +27 -0
  12. package/dist/cjs/wcs-button.cjs.entry.js +86 -0
  13. package/dist/cjs/wcs-card-body.cjs.entry.js +19 -0
  14. package/dist/cjs/wcs-card.cjs.entry.js +20 -0
  15. package/dist/cjs/wcs-checkbox.cjs.entry.js +43 -0
  16. package/dist/cjs/wcs-com-nav-category.cjs.entry.js +63 -0
  17. package/dist/cjs/wcs-com-nav-submenu.cjs.entry.js +69 -0
  18. package/dist/cjs/wcs-com-nav.cjs.entry.js +19 -0
  19. package/dist/cjs/wcs-divider.cjs.entry.js +19 -0
  20. package/dist/cjs/wcs-dropdown-item.cjs.entry.js +23 -0
  21. package/dist/cjs/wcs-dropdown.cjs.entry.js +57 -0
  22. package/dist/cjs/wcs-editable-field.cjs.entry.js +225 -0
  23. package/dist/cjs/wcs-error_2.cjs.entry.js +137 -0
  24. package/dist/cjs/wcs-field-content.cjs.entry.js +16 -0
  25. package/dist/cjs/wcs-field-label.cjs.entry.js +16 -0
  26. package/dist/cjs/wcs-field.cjs.entry.js +19 -0
  27. package/dist/cjs/wcs-footer.cjs.entry.js +19 -0
  28. package/dist/cjs/wcs-galactic-menu.cjs.entry.js +1785 -0
  29. package/dist/cjs/wcs-galactic.cjs.entry.js +41 -0
  30. package/dist/cjs/wcs-grid-column.cjs.entry.js +73 -0
  31. package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js +16 -0
  32. package/dist/cjs/wcs-grid-pagination.cjs.entry.js +4 -4
  33. package/dist/cjs/wcs-grid.cjs.entry.js +309 -0
  34. package/dist/cjs/wcs-header.cjs.entry.js +25 -0
  35. package/dist/cjs/wcs-hint.cjs.entry.js +20 -0
  36. package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +114 -0
  37. package/dist/cjs/wcs-icon.cjs.entry.js +2 -2
  38. package/dist/cjs/wcs-input.cjs.entry.js +228 -0
  39. package/dist/cjs/wcs-label.cjs.entry.js +20 -0
  40. package/dist/cjs/wcs-list-item-properties.cjs.entry.js +19 -0
  41. package/dist/cjs/wcs-list-item-property.cjs.entry.js +19 -0
  42. package/dist/cjs/wcs-list-item.cjs.entry.js +23 -0
  43. package/dist/cjs/wcs-mat-icon.cjs.entry.js +73 -0
  44. package/dist/cjs/wcs-modal.cjs.entry.js +45 -0
  45. package/dist/cjs/wcs-nav-item.cjs.entry.js +23 -0
  46. package/dist/cjs/wcs-nav.cjs.entry.js +19 -0
  47. package/dist/cjs/wcs-progress-bar.cjs.entry.js +47 -0
  48. package/dist/cjs/wcs-progress-radial.cjs.entry.js +30 -0
  49. package/dist/cjs/wcs-radio-group.cjs.entry.js +65 -0
  50. package/dist/cjs/wcs-radio.cjs.entry.js +49 -0
  51. package/dist/cjs/wcs-select_2.cjs.entry.js +4916 -0
  52. package/dist/cjs/wcs-spinner.cjs.entry.js +21 -0
  53. package/dist/cjs/wcs-switch.cjs.entry.js +34 -0
  54. package/dist/cjs/wcs-tab.cjs.entry.js +20 -0
  55. package/dist/cjs/wcs-tabs.cjs.entry.js +159 -0
  56. package/dist/cjs/wcs-textarea.cjs.entry.js +224 -0
  57. package/dist/cjs/wcs-tooltip.cjs.entry.js +129 -0
  58. package/dist/cjs/wcs.cjs.js +3 -3
  59. package/dist/collection/collection-manifest.json +3 -2
  60. package/dist/collection/components/button/button.css +79 -75
  61. package/dist/collection/components/button/button.js +23 -11
  62. package/dist/collection/components/com-nav/com-nav.css +1 -2
  63. package/dist/collection/components/com-nav-category/com-nav-category.css +5 -6
  64. package/dist/collection/components/com-nav-category/com-nav-category.js +31 -1
  65. package/dist/collection/components/com-nav-submenu/com-nav-submenu.css +1 -2
  66. package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +21 -1
  67. package/dist/collection/components/footer/footer.css +1 -1
  68. package/dist/collection/components/grid/grid.js +47 -8
  69. package/dist/collection/components/grid-column/grid-column.css +5 -0
  70. package/dist/collection/components/grid-column/grid-column.js +62 -2
  71. package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +45 -0
  72. package/dist/collection/components/grid-pagination/grid-pagination.js +4 -4
  73. package/dist/collection/components/header/header.css +1 -1
  74. package/dist/collection/components/input/input.js +2 -2
  75. package/dist/collection/components/select/select.css +81 -77
  76. package/dist/collection/components/select/select.js +2 -2
  77. package/dist/collection/components/select-option/select-option.css +79 -75
  78. package/dist/collection/components/select-option/select-option.js +6 -7
  79. package/dist/collection/components/tab/tab.js +4 -4
  80. package/dist/collection/components/tabs/tabs.js +1 -1
  81. package/dist/collection/components/textarea/textarea.js +2 -2
  82. package/dist/collection/components/tooltip/tooltip.js +2 -2
  83. package/dist/esm/component-6b4d470f.js +1072 -0
  84. package/dist/esm/helpers-50436c51.js +73 -0
  85. package/dist/esm/{index-c619b1fa.js → index-b982604a.js} +165 -88
  86. package/dist/esm/loader.js +3 -3
  87. package/dist/{cjs/wcs-action-bar_47.cjs.entry.js → esm/lodash-d6d9d079.js} +12610 -22791
  88. package/dist/esm/select-arrow-73ac4016.js +34 -0
  89. package/dist/esm/wcs-action-bar.entry.js +20 -0
  90. package/dist/esm/wcs-app.entry.js +2 -2
  91. package/dist/esm/wcs-badge.entry.js +23 -0
  92. package/dist/esm/wcs-button.entry.js +82 -0
  93. package/dist/esm/wcs-card-body.entry.js +15 -0
  94. package/dist/esm/wcs-card.entry.js +16 -0
  95. package/dist/esm/wcs-checkbox.entry.js +39 -0
  96. package/dist/esm/wcs-com-nav-category.entry.js +59 -0
  97. package/dist/esm/wcs-com-nav-submenu.entry.js +65 -0
  98. package/dist/esm/wcs-com-nav.entry.js +15 -0
  99. package/dist/esm/wcs-divider.entry.js +15 -0
  100. package/dist/esm/wcs-dropdown-item.entry.js +19 -0
  101. package/dist/esm/wcs-dropdown.entry.js +53 -0
  102. package/dist/esm/wcs-editable-field.entry.js +221 -0
  103. package/dist/esm/wcs-error_2.entry.js +132 -0
  104. package/dist/esm/wcs-field-content.entry.js +12 -0
  105. package/dist/esm/wcs-field-label.entry.js +12 -0
  106. package/dist/esm/wcs-field.entry.js +15 -0
  107. package/dist/esm/wcs-footer.entry.js +15 -0
  108. package/dist/esm/wcs-galactic-menu.entry.js +1781 -0
  109. package/dist/esm/wcs-galactic.entry.js +37 -0
  110. package/dist/esm/wcs-grid-column.entry.js +69 -0
  111. package/dist/esm/wcs-grid-custom-cell.entry.js +12 -0
  112. package/dist/esm/wcs-grid-pagination.entry.js +4 -4
  113. package/dist/esm/wcs-grid.entry.js +305 -0
  114. package/dist/esm/wcs-header.entry.js +21 -0
  115. package/dist/esm/wcs-hint.entry.js +16 -0
  116. package/dist/esm/wcs-horizontal-stepper.entry.js +110 -0
  117. package/dist/esm/wcs-icon.entry.js +2 -2
  118. package/dist/esm/wcs-input.entry.js +224 -0
  119. package/dist/esm/wcs-label.entry.js +16 -0
  120. package/dist/esm/wcs-list-item-properties.entry.js +15 -0
  121. package/dist/esm/wcs-list-item-property.entry.js +15 -0
  122. package/dist/esm/wcs-list-item.entry.js +19 -0
  123. package/dist/esm/wcs-mat-icon.entry.js +69 -0
  124. package/dist/esm/wcs-modal.entry.js +41 -0
  125. package/dist/esm/wcs-nav-item.entry.js +19 -0
  126. package/dist/esm/wcs-nav.entry.js +15 -0
  127. package/dist/esm/wcs-progress-bar.entry.js +43 -0
  128. package/dist/esm/wcs-progress-radial.entry.js +26 -0
  129. package/dist/esm/wcs-radio-group.entry.js +61 -0
  130. package/dist/esm/wcs-radio.entry.js +45 -0
  131. package/dist/esm/wcs-select_2.entry.js +4911 -0
  132. package/dist/esm/wcs-spinner.entry.js +17 -0
  133. package/dist/esm/wcs-switch.entry.js +30 -0
  134. package/dist/esm/wcs-tab.entry.js +16 -0
  135. package/dist/esm/wcs-tabs.entry.js +155 -0
  136. package/dist/esm/wcs-textarea.entry.js +220 -0
  137. package/dist/esm/wcs-tooltip.entry.js +125 -0
  138. package/dist/esm/wcs.js +3 -3
  139. package/dist/types/components/button/button.d.ts +7 -3
  140. package/dist/types/components/com-nav-category/com-nav-category.d.ts +7 -0
  141. package/dist/types/components/com-nav-submenu/com-nav-submenu.d.ts +7 -0
  142. package/dist/types/components/grid/grid.d.ts +7 -0
  143. package/dist/types/components/grid-column/grid-column.d.ts +4 -0
  144. package/dist/types/components/grid-custom-cell/grid-custom-cell.d.ts +12 -0
  145. package/dist/types/components/select-option/select-option.d.ts +2 -0
  146. package/dist/types/components.d.ts +43 -0
  147. package/dist/types/stencil-public-runtime.d.ts +183 -182
  148. package/dist/wcs/p-03b2e238.entry.js +1 -0
  149. package/dist/wcs/p-0fbe574e.entry.js +1 -0
  150. package/dist/wcs/p-15008e35.entry.js +1 -0
  151. package/dist/wcs/p-16dfbae8.js +127 -0
  152. package/dist/wcs/p-17c6db7f.entry.js +1 -0
  153. package/dist/wcs/p-1dce7e63.entry.js +1 -0
  154. package/dist/wcs/p-1f5aed36.entry.js +1 -0
  155. package/dist/wcs/p-214236db.entry.js +1 -0
  156. package/dist/wcs/p-26b5c0a3.entry.js +1 -0
  157. package/dist/wcs/p-2e6265dc.entry.js +1 -0
  158. package/dist/wcs/p-356a8e3b.entry.js +1 -0
  159. package/dist/wcs/p-3d10b02a.entry.js +15 -0
  160. package/dist/wcs/p-4338f140.entry.js +1 -0
  161. package/dist/wcs/p-474d6601.entry.js +1 -0
  162. package/dist/wcs/p-55fdc284.entry.js +1 -0
  163. package/dist/wcs/p-5b35b232.entry.js +1 -0
  164. package/dist/wcs/p-600a9cc0.entry.js +1 -0
  165. package/dist/wcs/p-60b51967.entry.js +1 -0
  166. package/dist/wcs/p-62f7ab6d.entry.js +1 -0
  167. package/dist/wcs/p-64523291.entry.js +1 -0
  168. package/dist/wcs/p-65c5ccc5.entry.js +1 -0
  169. package/dist/wcs/p-688fea65.entry.js +1 -0
  170. package/dist/wcs/p-716d5921.entry.js +1 -0
  171. package/dist/wcs/p-7219c04b.js +1 -0
  172. package/dist/wcs/p-8137f075.entry.js +1 -0
  173. package/dist/wcs/p-83f1ad32.js +1 -0
  174. package/dist/wcs/p-8864a491.entry.js +1 -0
  175. package/dist/wcs/p-8f0f9868.entry.js +1 -0
  176. package/dist/wcs/p-91a2de07.entry.js +1 -0
  177. package/dist/wcs/p-94a31f64.entry.js +1 -0
  178. package/dist/wcs/p-979dfd78.entry.js +1 -0
  179. package/dist/wcs/p-9ba52bc4.entry.js +1 -0
  180. package/dist/wcs/p-a1ee1551.entry.js +1 -0
  181. package/dist/wcs/p-a5a1b27c.entry.js +1 -0
  182. package/dist/wcs/p-adef7aaf.js +1 -0
  183. package/dist/wcs/p-af1a5e52.entry.js +1 -0
  184. package/dist/wcs/p-b7184d59.entry.js +1 -0
  185. package/dist/wcs/p-bef44630.entry.js +1 -0
  186. package/dist/wcs/p-d59b4495.entry.js +1 -0
  187. package/dist/wcs/p-db68379f.entry.js +1 -0
  188. package/dist/wcs/p-dbbc3f58.entry.js +1 -0
  189. package/dist/wcs/p-dc817204.entry.js +1 -0
  190. package/dist/wcs/p-dd300dea.entry.js +1 -0
  191. package/dist/wcs/p-e0163de8.entry.js +1 -0
  192. package/dist/wcs/p-e4236d32.entry.js +1 -0
  193. package/dist/wcs/p-e43358e4.entry.js +1 -0
  194. package/dist/wcs/p-e486647c.entry.js +1 -0
  195. package/dist/wcs/p-e9ce507c.entry.js +1 -0
  196. package/dist/wcs/p-ed6e8541.entry.js +1 -0
  197. package/dist/wcs/p-f46e6c3c.js +1 -0
  198. package/dist/wcs/p-f9944bde.entry.js +1 -0
  199. package/dist/wcs/p-fa173947.entry.js +1 -0
  200. package/dist/wcs/p-fb1577b5.entry.js +1 -0
  201. package/dist/wcs/p-febe9ccc.entry.js +1 -0
  202. package/dist/wcs/wcs.esm.js +1 -1
  203. package/loader/index.d.ts +0 -1
  204. package/package.json +22 -20
  205. package/dist/wcs/p-16dca526.entry.js +0 -1
  206. package/dist/wcs/p-4f228fcb.entry.js +0 -134
  207. package/dist/wcs/p-66520e5a.entry.js +0 -1
  208. package/dist/wcs/p-d31287c6.entry.js +0 -1
  209. package/dist/wcs/p-f73f235b.js +0 -1
  210. package/schematics/.gitignore +0 -18
  211. package/schematics/.npmignore +0 -4
  212. package/schematics/collection.json +0 -9
  213. package/schematics/src/ng-add/files/fonts/avenir-black.woff +0 -0
  214. package/schematics/src/ng-add/files/fonts/avenir-book.woff +0 -0
  215. package/schematics/src/ng-add/files/fonts/avenir-lighter.woff +0 -0
  216. package/schematics/src/ng-add/files/fonts/avenir-medium.woff +0 -0
  217. package/schematics/src/ng-add/files/sncf-logo.png +0 -0
  218. package/schematics/src/ng-add/index.d.ts +0 -3
  219. package/schematics/src/ng-add/index.js +0 -119
  220. package/schematics/src/ng-add/index.js.map +0 -1
  221. package/schematics/src/ng-add/schema.json +0 -5
@@ -0,0 +1,17 @@
1
+ import { r as registerInstance } from './index-b982604a.js';
2
+
3
+ const spinnerCss = "@keyframes wcs-spinner-border{to{transform:rotate(360deg)}}@keyframes wcs-spinner-grow{0%{transform:scale(0)}50%{opacity:1}}:host{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border-radius:50%}:host([mode=border]){border:0.25em solid var(--wcs-base);border-right-color:transparent;animation:wcs-spinner-border 0.75s linear infinite}:host([mode=growing]){background-color:var(--wcs-base);opacity:0;animation:wcs-spinner-grow 0.75s linear infinite}";
4
+
5
+ let Spinner = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * Indicates the spinner display mode.
10
+ * Accepted values: `border` or `growing`
11
+ */
12
+ this.mode = 'border';
13
+ }
14
+ };
15
+ Spinner.style = spinnerCss;
16
+
17
+ export { Spinner as wcs_spinner };
@@ -0,0 +1,30 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b982604a.js';
2
+
3
+ const switchCss = ":host{--wcs-switch-background-color-initial:var(--wcs-text-light);--wcs-switch-background-color-final:var(--wcs-primary);--wcs-switch-bullet-color-initial:var(--wcs-switch-background-color-final);--wcs-switch-bullet-color-final:var(--wcs-switch-background-color-initial);display:flex}.wcs-container{position:relative;display:inline-block;width:3rem;height:1.5rem;margin-bottom:0}.wcs-container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.wcs-switch,.text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.wcs-checkmark::before,.wcs-checkmark{position:absolute;transition:all 0.15s ease-out}.wcs-checkmark::before{bottom:0.3125rem;left:0.3125rem;width:0.875rem;height:0.875rem;content:\"\";border-radius:50%;background-color:var(--wcs-switch-bullet-color-initial)}.wcs-checkmark{top:0;right:0;bottom:0;left:0;cursor:pointer;border-radius:0.75rem;background-color:var(--wcs-switch-background-color-initial)}input:not([disabled]):checked+.wcs-checkmark::before,.wcs-container:hover input:not([disabled])+.wcs-checkmark::before,.wcs-container:focus input:not([disabled])+.wcs-checkmark::before{background-color:var(--wcs-switch-bullet-color-final)}input:checked+.wcs-checkmark::before{transform:translateX(24px)}input:not([disabled]):checked+.wcs-checkmark,.wcs-container:hover input:not([disabled])+.wcs-checkmark,.wcs-container:focus input:not([disabled])+.wcs-checkmark{background-color:var(--wcs-switch-background-color-final)}";
4
+
5
+ let Switch = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.wcsChange = createEvent(this, "wcsChange", 7);
9
+ this.switchId = `wcs-switch-${switchIds++}`;
10
+ this.name = this.switchId;
11
+ /**
12
+ * If `true`, the switch is selected.
13
+ */
14
+ this.checked = false;
15
+ }
16
+ toggleChange(_event) {
17
+ this.checked = !this.checked;
18
+ this.wcsChange.emit({
19
+ checked: this.checked
20
+ });
21
+ }
22
+ render() {
23
+ return (h(Host, null, h("label", { htmlFor: this.name, class: "wcs-container" }, h("span", { class: "text" }, h("slot", null)), h("input", { onChange: (evt) => this.toggleChange(evt), checked: this.checked, class: "wcs-switch", type: "checkbox", name: this.name, id: this.name }), h("span", { class: "wcs-checkmark" }))));
24
+ }
25
+ get el() { return getElement(this); }
26
+ };
27
+ let switchIds = 0;
28
+ Switch.style = switchCss;
29
+
30
+ export { Switch as wcs_switch };
@@ -0,0 +1,16 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-b982604a.js';
2
+
3
+ let Tab = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.tabLoaded = createEvent(this, "tabLoaded", 7);
7
+ }
8
+ componentDidLoad() {
9
+ this.tabLoaded.emit();
10
+ }
11
+ render() {
12
+ return (h(Host, { slot: "wcs-tab" }, h("slot", null)));
13
+ }
14
+ };
15
+
16
+ export { Tab as wcs_tab };
@@ -0,0 +1,155 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b982604a.js';
2
+
3
+ const tabsCss = ":host{--wcs-tabs-padding-bottom:16px}:host([align=start]) .wcs-tabs-headers{justify-content:start}:host([align=end]) .wcs-tabs-headers{justify-content:end}:host([align=center]) .wcs-tabs-headers{justify-content:center}.wcs-tabs-headers{padding-top:4px;overflow-x:auto;display:flex;position:relative}:host([gutter]) .wcs-tabs-headers{border-bottom:var(--wcs-tabs-headers-border-bottom)}.wcs-tab-header{padding:8px 24px 16px 0;display:flex;flex-shrink:0;align-items:center;justify-content:center;cursor:pointer;outline:none}.wcs-tab-header span{text-align:center;color:var(--wcs-text-disabled);font-size:1rem;font-weight:400}.wcs-tab-header:focus span,.wcs-tab-header:hover span{color:var(--wcs-primary)}.active span{font-weight:500;color:var(--wcs-primary);position:relative}.active span::after{position:absolute;bottom:calc(var(--wcs-tabs-padding-bottom) * -1);left:0;width:100%;height:0.3125rem;content:\"\";background-color:#0088ce;border-radius:3px}";
4
+
5
+ let Tabs = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.tabChange = createEvent(this, "tabChange", 7);
9
+ /**
10
+ * Tab headers alignment.
11
+ */
12
+ this.align = 'start';
13
+ /**
14
+ * Current selected tab index.
15
+ * Starts at 0.
16
+ */
17
+ this.selectedIndex = 0;
18
+ /**
19
+ * Whether to skip rendering the tabpanel with the content of the selected tab. Use this prop if you plan to
20
+ * separately render the tab content.
21
+ */
22
+ this.headersOnly = false;
23
+ this.headers = [];
24
+ this.currentActiveTabIndex = 0;
25
+ }
26
+ selectedIndexChanged(newValue) {
27
+ this.currentActiveTabIndex = newValue;
28
+ }
29
+ selectedTabkeyChanged(newValue) {
30
+ this.updateCurrentActiveIndexByTabKey(newValue);
31
+ }
32
+ emitActiveTabChange() {
33
+ this.tabChange.emit({
34
+ tabName: this.headers[this.currentActiveTabIndex],
35
+ tabIndex: this.currentActiveTabIndex,
36
+ selectedKey: this.tabs[this.currentActiveTabIndex].itemKey
37
+ });
38
+ }
39
+ updateCurrentActiveIndexByTabKey(newValue) {
40
+ for (let i = 0; i < this.tabs.length; i++) {
41
+ const tab = this.tabs[i];
42
+ if (tab.itemKey === newValue) {
43
+ this.currentActiveTabIndex = i;
44
+ }
45
+ }
46
+ }
47
+ onTabLoaded() {
48
+ this.refreshHeaders();
49
+ }
50
+ componentDidLoad() {
51
+ this.putTabsInCorrectDivIfTheyAreNot();
52
+ this.refreshHeaders();
53
+ if (this.selectedIndex) {
54
+ this.currentActiveTabIndex = this.selectedIndex;
55
+ }
56
+ if (this.selectedKey) {
57
+ this.updateCurrentActiveIndexByTabKey(this.selectedKey);
58
+ }
59
+ }
60
+ // XXX: Firefox < 63
61
+ putTabsInCorrectDivIfTheyAreNot() {
62
+ const tabDiv = this.el.shadowRoot.querySelector('.wcs-tabs');
63
+ if (tabDiv.querySelector('slot') === null) {
64
+ Array.from(this.el.querySelectorAll('wcs-tab'))
65
+ .filter(node => node.parentNode !== tabDiv)
66
+ .forEach(tab => {
67
+ if (tab.parentElement.isEqualNode(this.el)) {
68
+ this.el.removeChild(tab);
69
+ tabDiv.appendChild(tab);
70
+ }
71
+ });
72
+ }
73
+ }
74
+ handleKeyDown(ev, tabIndex) {
75
+ const target = ev.target;
76
+ switch (ev.key) {
77
+ case ' ':
78
+ case 'Enter': {
79
+ this.currentActiveTabIndex = tabIndex;
80
+ this.emitActiveTabChange();
81
+ ev.preventDefault();
82
+ break;
83
+ }
84
+ case 'ArrowLeft': {
85
+ if (target.previousElementSibling
86
+ && target.previousElementSibling.classList.contains('wcs-tab-header')) {
87
+ target.previousElementSibling.focus();
88
+ ev.preventDefault();
89
+ }
90
+ break;
91
+ }
92
+ case 'ArrowRight': {
93
+ if (target.nextElementSibling
94
+ && target.nextElementSibling.classList.contains('wcs-tab-header')) {
95
+ target.nextElementSibling.focus();
96
+ ev.preventDefault();
97
+ }
98
+ break;
99
+ }
100
+ }
101
+ }
102
+ refreshHeaders() {
103
+ this.headers = [];
104
+ this.tabs
105
+ .forEach(x => {
106
+ this.headers.push(x.getAttribute('header'));
107
+ });
108
+ }
109
+ get tabs() {
110
+ const tabsEl = this.el.shadowRoot.querySelector('.wcs-tabs');
111
+ // FIXME: problem with this selector being too greedy in ff < 63
112
+ const tabs = this.el.shadowRoot.querySelectorAll('.wcs-tabs > wcs-tab');
113
+ return tabs.length !== 0
114
+ ? tabs
115
+ : tabsEl.querySelector('slot')
116
+ ? tabsEl.querySelector('slot').assignedElements()
117
+ : [];
118
+ }
119
+ selectTabAndEmitChangeEvent(index) {
120
+ this.currentActiveTabIndex = index;
121
+ this.emitActiveTabChange();
122
+ }
123
+ componentWillUpdate() {
124
+ if (!this.headersOnly) {
125
+ this.updateTabVisibility();
126
+ }
127
+ else {
128
+ this.hideAllTabsContent();
129
+ }
130
+ }
131
+ updateTabVisibility() {
132
+ this.tabs.forEach((el, idx) => {
133
+ if (idx !== this.currentActiveTabIndex) {
134
+ el.setAttribute('style', 'display: none;');
135
+ }
136
+ else {
137
+ el.setAttribute('style', 'display: block;');
138
+ }
139
+ });
140
+ }
141
+ hideAllTabsContent() {
142
+ this.tabs.forEach((el) => el.setAttribute('style', 'display: none;'));
143
+ }
144
+ render() {
145
+ return (h(Host, null, h("div", { class: "wcs-tabs-headers" }, this.headers.map((header, idx) => h("div", { class: 'wcs-tab-header ' + (this.currentActiveTabIndex === idx ? 'active' : ''), onClick: () => this.selectTabAndEmitChangeEvent(idx), onKeyDown: evt => this.handleKeyDown(evt, idx), tabIndex: idx }, h("span", null, header)))), h("div", { class: "wcs-tabs" }, h("slot", { name: "wcs-tab" }))));
146
+ }
147
+ get el() { return getElement(this); }
148
+ static get watchers() { return {
149
+ "selectedIndex": ["selectedIndexChanged"],
150
+ "selectedKey": ["selectedTabkeyChanged"]
151
+ }; }
152
+ };
153
+ Tabs.style = tabsCss;
154
+
155
+ export { Tabs as wcs_tabs };
@@ -0,0 +1,220 @@
1
+ import { r as registerInstance, c as createEvent, a as readTask, h, H as Host, g as getElement } from './index-b982604a.js';
2
+ import { d as debounceEvent, i as inheritAttributes, r as raf, f as findItemLabel } from './helpers-50436c51.js';
3
+
4
+ const textareaCss = ":host{--wcs-textarea-icon-color:var(--wcs-text-medium);--wcs-internal-textarea-border-radius-left:var(--wcs-textarea-border-radius-left, var(--wcs-border-radius));--wcs-internal-textarea-border-radius-right:var(--wcs-textarea-border-radius-right, var(--wcs-border-radius));display:flex;flex-direction:row;width:100%;border-radius:var(--wcs-internal-textarea-border-radius-left) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-left);background-color:var(--wcs-light);border:1px solid var(--wcs-light);background-clip:padding-box}:host ::placeholder{font-weight:400;font-style:italic}:host textarea{overflow:auto;flex:1;width:100%;box-sizing:border-box;min-height:24px;background-color:transparent;font-family:var(--wcs-font-sans-serif);color:var(--wcs-primary);font-weight:var(--wcs-font-weight-form-value) !important;border:none;padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);font-size:1rem;line-height:1.5}:host textarea:focus{box-shadow:none;outline:0}:host wcs-mat-icon{position:relative;margin-top:7px;margin-left:8px;margin-right:-8px}:host([state=error]){border-color:var(--wcs-red) !important}:host(:focus-within){border:solid 1px var(--wcs-primary)}:host(:focus-within) wcs-mat-icon{color:var(--wcs-primary)}";
5
+
6
+ let Textarea = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.wcsChange = createEvent(this, "wcsChange", 7);
10
+ this.wcsInput = createEvent(this, "wcsInput", 7);
11
+ this.wcsBlur = createEvent(this, "wcsBlur", 7);
12
+ this.wcsFocus = createEvent(this, "wcsFocus", 7);
13
+ this.inputId = `wcs-textarea-${textareaIds++}`;
14
+ this.didBlurAfterEdit = false;
15
+ this.inheritedAttributes = {};
16
+ /**
17
+ * This is required for a WebKit bug which requires us to
18
+ * blur and focus an input to properly focus the input in
19
+ * an item with delegatesFocus. It will no longer be needed
20
+ * with iOS 14.
21
+ *
22
+ * @internal
23
+ */
24
+ this.fireFocusEvents = true;
25
+ this.hasFocus = false;
26
+ /**
27
+ * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
28
+ */
29
+ this.autocapitalize = 'none';
30
+ /**
31
+ * This Boolean attribute lets you specify that a form control should have input focus when the page loads.
32
+ */
33
+ this.autofocus = false;
34
+ /**
35
+ * If `true`, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types.
36
+ */
37
+ this.clearOnEdit = false;
38
+ /**
39
+ * Set the amount of time, in milliseconds, to wait to trigger the `wcsChange` event after each keystroke. This also impacts form bindings such as `ngModel` or `v-model`.
40
+ */
41
+ this.debounce = 0;
42
+ /**
43
+ * If `true`, the user cannot interact with the textarea.
44
+ */
45
+ this.disabled = false;
46
+ /**
47
+ * The name of the control, which is submitted with the form data.
48
+ */
49
+ this.name = this.inputId;
50
+ /**
51
+ * If `true`, the user cannot modify the value.
52
+ */
53
+ this.readonly = false;
54
+ /**
55
+ * If `true`, the user must fill in a value before submitting a form.
56
+ */
57
+ this.required = false;
58
+ /**
59
+ * If `true`, the element will have its spelling and grammar checked.
60
+ */
61
+ this.spellcheck = false;
62
+ /**
63
+ * Specifies the state of the input. By default the input is in an initial state but you can set it to 'error' state if the data given by the user is not valid.
64
+ */
65
+ this.state = 'initial';
66
+ /**
67
+ * If `true`, the element height will increase based on the value.
68
+ */
69
+ this.autoGrow = false;
70
+ /**
71
+ * The value of the textarea.
72
+ */
73
+ this.value = '';
74
+ this.onInput = (ev) => {
75
+ if (this.nativeInput) {
76
+ this.value = this.nativeInput.value;
77
+ }
78
+ this.wcsInput.emit(ev);
79
+ };
80
+ this.onFocus = (ev) => {
81
+ this.hasFocus = true;
82
+ this.focusChange();
83
+ if (this.fireFocusEvents) {
84
+ this.wcsFocus.emit(ev);
85
+ }
86
+ };
87
+ this.onBlur = (ev) => {
88
+ this.hasFocus = false;
89
+ this.focusChange();
90
+ if (this.fireFocusEvents) {
91
+ this.wcsBlur.emit(ev);
92
+ }
93
+ };
94
+ this.onKeyDown = () => {
95
+ this.checkClearOnEdit();
96
+ };
97
+ }
98
+ debounceChanged() {
99
+ this.wcsChange = debounceEvent(this.wcsChange, this.debounce);
100
+ }
101
+ /**
102
+ * Update the native input element when the value changes
103
+ */
104
+ valueChanged() {
105
+ const nativeInput = this.nativeInput;
106
+ const value = this.getValue();
107
+ if (nativeInput && nativeInput.value !== value) {
108
+ nativeInput.value = value;
109
+ }
110
+ this.runAutoGrow();
111
+ this.wcsChange.emit({ value });
112
+ }
113
+ connectedCallback() {
114
+ this.debounceChanged();
115
+ {
116
+ document.dispatchEvent(new CustomEvent('wcsInputDidLoad', {
117
+ detail: this.el
118
+ }));
119
+ }
120
+ }
121
+ disconnectedCallback() {
122
+ {
123
+ document.dispatchEvent(new CustomEvent('wcsInputDidUnload', {
124
+ detail: this.el
125
+ }));
126
+ }
127
+ }
128
+ componentWillLoad() {
129
+ this.inheritedAttributes = inheritAttributes(this.el, ['title']);
130
+ }
131
+ componentDidLoad() {
132
+ raf(() => this.runAutoGrow());
133
+ }
134
+ runAutoGrow() {
135
+ const nativeInput = this.nativeInput;
136
+ if (nativeInput && this.autoGrow) {
137
+ readTask(() => {
138
+ nativeInput.style.height = 'auto';
139
+ nativeInput.style.height = nativeInput.scrollHeight + 'px';
140
+ });
141
+ }
142
+ }
143
+ /**
144
+ * This method make the textarea automatically adopt the size of the content without a scroll bar
145
+ */
146
+ async fitContent() {
147
+ raf(() => this.runAutoGrow());
148
+ }
149
+ /**
150
+ * Sets focus on the native `textarea` in `wcs-textarea`. Use this method instead of the global
151
+ * `textarea.focus()`.
152
+ */
153
+ async setFocus() {
154
+ if (this.nativeInput) {
155
+ this.nativeInput.focus();
156
+ }
157
+ }
158
+ /**
159
+ * Sets blur on the native `textarea` in `wcs-textarea`. Use this method instead of the global
160
+ * `textarea.blur()`.
161
+ * @internal
162
+ */
163
+ async setBlur() {
164
+ if (this.nativeInput) {
165
+ this.nativeInput.blur();
166
+ }
167
+ }
168
+ /**
169
+ * Returns the native `<textarea>` element used under the hood.
170
+ */
171
+ getInputElement() {
172
+ // tslint:disable-next-line:no-non-null-assertion
173
+ return Promise.resolve(this.nativeInput);
174
+ }
175
+ /**
176
+ * Check if we need to clear the text input if clearOnEdit is enabled
177
+ */
178
+ checkClearOnEdit() {
179
+ if (!this.clearOnEdit) {
180
+ return;
181
+ }
182
+ // Did the input value change after it was blurred and edited?
183
+ if (this.didBlurAfterEdit && this.hasValue()) {
184
+ // Clear the input
185
+ this.value = '';
186
+ }
187
+ // Reset the flag
188
+ this.didBlurAfterEdit = false;
189
+ }
190
+ focusChange() {
191
+ // If clearOnEdit is enabled and the input blurred but has a value, set a flag
192
+ if (this.clearOnEdit && !this.hasFocus && this.hasValue()) {
193
+ this.didBlurAfterEdit = true;
194
+ }
195
+ }
196
+ hasValue() {
197
+ return this.getValue() !== '';
198
+ }
199
+ getValue() {
200
+ return this.value || '';
201
+ }
202
+ render() {
203
+ const value = this.getValue();
204
+ const labelId = this.inputId + '-lbl';
205
+ const label = findItemLabel(this.el);
206
+ if (label) {
207
+ label.id = labelId;
208
+ }
209
+ return (h(Host, { "aria-disabled": this.disabled ? 'true' : null }, this.icon ? (h("wcs-mat-icon", { icon: this.icon, size: "m" })) : null, h("textarea", Object.assign({ class: "native-textarea", "aria-labelledby": label ? labelId : null, ref: el => this.nativeInput = el, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value)));
210
+ }
211
+ get el() { return getElement(this); }
212
+ static get watchers() { return {
213
+ "debounce": ["debounceChanged"],
214
+ "value": ["valueChanged"]
215
+ }; }
216
+ };
217
+ let textareaIds = 0;
218
+ Textarea.style = textareaCss;
219
+
220
+ export { Textarea as wcs_textarea };
@@ -0,0 +1,125 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b982604a.js';
2
+
3
+ let overlayElement;
4
+ function getOverlay() {
5
+ if (!overlayElement) {
6
+ createOverlay();
7
+ }
8
+ return overlayElement;
9
+ }
10
+ function createOverlay() {
11
+ const existent = document.querySelector('.wcs-overlay');
12
+ overlayElement = existent
13
+ ? existent
14
+ : document.createElement('div');
15
+ overlayElement.classList.add('wcs-overlay');
16
+ document.body.appendChild(overlayElement);
17
+ }
18
+
19
+ let Tooltip = class {
20
+ constructor(hostRef) {
21
+ registerInstance(this, hostRef);
22
+ /**
23
+ * Where the tooltip is going to show relative to the element it's describing.
24
+ */
25
+ this.position = 'bottom';
26
+ }
27
+ componentWillLoad() {
28
+ const target = document.getElementById(this.for);
29
+ if (target === null) {
30
+ throw new Error(`Cannot find element with corresponding id: ${this.for}`);
31
+ }
32
+ this.target = target;
33
+ this.listen('mouseenter', 'show');
34
+ this.listen('focus', 'show');
35
+ this.listen('mouseleave', 'hide');
36
+ this.listen('blur', 'hide');
37
+ this.listen('tap', 'hide');
38
+ }
39
+ listen(eventName, className) {
40
+ this.target.addEventListener(eventName, () => {
41
+ if (className === 'hide') {
42
+ this.content.classList.replace('show', 'hide');
43
+ }
44
+ else {
45
+ this.content.classList.replace('hide', 'show');
46
+ }
47
+ this.updatePosition();
48
+ });
49
+ }
50
+ componentDidRender() {
51
+ const overlay = getOverlay();
52
+ this.content = this.el.shadowRoot.querySelector('.wcs-tooltip-content');
53
+ const nodes = this.el.shadowRoot.querySelector('slot')
54
+ ? this.el.shadowRoot.querySelector('slot').assignedNodes()
55
+ : this.content.querySelectorAll('*');
56
+ nodes.forEach(n => this.content.appendChild(n.cloneNode(true)));
57
+ this.content.remove();
58
+ overlay.appendChild(this.content);
59
+ this.updatePosition();
60
+ }
61
+ updatePosition() {
62
+ // Function taken and adapted from https://github.com/PolymerElements/paper-tooltip/blob/master/paper-tooltip.js
63
+ // Thanks ! :-)
64
+ if (!this.target || !this.content.offsetParent) {
65
+ return;
66
+ }
67
+ const parentRect = this.content.offsetParent.getBoundingClientRect();
68
+ const targetRect = this.target.getBoundingClientRect();
69
+ const thisRect = this.content.getBoundingClientRect();
70
+ const borderWidth = 6;
71
+ const horizontalCenterOffset = (targetRect.width - thisRect.width) / 2;
72
+ const verticalCenterOffset = (targetRect.height - thisRect.height) / 2;
73
+ const targetLeft = targetRect.left - parentRect.left;
74
+ const targetTop = targetRect.top - parentRect.top;
75
+ let tooltipLeft;
76
+ let tooltipTop;
77
+ switch (this.position) {
78
+ case 'top':
79
+ tooltipLeft = targetLeft + horizontalCenterOffset;
80
+ tooltipTop = targetTop - thisRect.height - borderWidth;
81
+ break;
82
+ case 'bottom':
83
+ tooltipLeft = targetLeft + horizontalCenterOffset;
84
+ tooltipTop = targetTop + targetRect.height + borderWidth;
85
+ break;
86
+ case 'left':
87
+ tooltipLeft = targetLeft - thisRect.width - borderWidth;
88
+ tooltipTop = targetTop + verticalCenterOffset;
89
+ break;
90
+ case 'right':
91
+ tooltipLeft = targetLeft + targetRect.width + borderWidth;
92
+ tooltipTop = targetTop + verticalCenterOffset;
93
+ break;
94
+ }
95
+ // Clip to the left/right side.
96
+ if (parentRect.left + tooltipLeft + thisRect.width > window.innerWidth) {
97
+ this.content.style.right = '0px';
98
+ this.content.style.left = 'auto';
99
+ }
100
+ else {
101
+ this.content.style.left = Math.max(0, tooltipLeft) + 'px';
102
+ this.content.style.right = 'auto';
103
+ }
104
+ // Clip the top/bottom side.
105
+ if (parentRect.top + tooltipTop + thisRect.height > window.innerHeight) {
106
+ this.content.style.bottom = (parentRect.height - targetTop) + 'px';
107
+ this.content.style.top = 'auto';
108
+ }
109
+ else {
110
+ this.content.style.top = Math.max(-parentRect.top, tooltipTop) + 'px';
111
+ this.content.style.bottom = 'auto';
112
+ }
113
+ }
114
+ disconnectedCallback() {
115
+ // TODO: this gets called only at the component creation in ff < 63
116
+ // const overlay = getOverlay();
117
+ // overlay.removeChild(this.content);
118
+ }
119
+ render() {
120
+ return (h(Host, null, h("div", { class: "wcs-tooltip-content hide" }, h("slot", null))));
121
+ }
122
+ get el() { return getElement(this); }
123
+ };
124
+
125
+ export { Tooltip as wcs_tooltip };
package/dist/esm/wcs.js CHANGED
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-c619b1fa.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-b982604a.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.6.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["wcs-grid-pagination",[[1,"wcs-grid-pagination",{"availablePageSizes":[16],"currentPage":[2,"current-page"],"pageSize":[2,"page-size"],"itemsCount":[2,"items-count"],"pageCount":[2,"page-count"]}]]],["wcs-app",[[1,"wcs-app"]]],["wcs-icon",[[0,"wcs-icon",{"icon":[1],"size":[1]}]]],["wcs-action-bar_47",[[1,"wcs-editable-field",{"type":[1],"label":[1],"readonly":[4],"value":[1032],"validateFn":[16],"formatFn":[16],"errorMsg":[1,"error-msg"],"currentState":[32],"isError":[32]},[[8,"click","onWindowClickEvent"]]],[1,"wcs-grid",{"serverMode":[4,"server-mode"],"data":[16],"loading":[4],"selectionConfig":[1,"selection-config"],"selectedItems":[8,"selected-items"],"wcsGridPaginationId":[1,"wcs-grid-pagination-id"],"columns":[32],"paginationEl":[32],"rows":[32]},[[0,"wcsSortChange","sortChangeEventHandler"],[0,"wcsGridPaginationChange","paginationChangeEventHandler"],[8,"wcsGridPaginationChange","paginationChangeEventHandlerOutside"]]],[1,"wcs-horizontal-stepper",{"currentStep":[1026,"current-step"],"steps":[16],"mode":[1],"checkOnComplete":[4,"check-on-complete"],"buttonMode":[32],"internalCurrentStep":[32],"previous":[64],"next":[64]}],[1,"wcs-dropdown",{"mode":[1],"shape":[1],"disabled":[4],"expanded":[32]},[[8,"click","onWindowClickEvent"],[0,"wcsDropdownItemClick","dropdownItemClick"]]],[1,"wcs-galactic-menu",{"text":[1],"showPopoverMenu":[32]},[[8,"click","onWindowClickEvent"]]],[1,"wcs-input",{"fireFocusEvents":[4,"fire-focus-events"],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"icon":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"state":[513],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}],[4,"wcs-modal",{"backdrop":[516],"show":[1540],"showCloseButton":[516,"show-close-button"]},[[4,"keydown","onKeyDown"]]],[1,"wcs-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"icon":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"state":[513],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"fitContent":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}],[1,"wcs-action-bar",{"gutter":[4],"hasTabs":[32]}],[1,"wcs-badge",{"shape":[1],"color":[1]}],[1,"wcs-card",{"mode":[1537]}],[1,"wcs-card-body"],[1,"wcs-com-nav",{"appName":[1,"app-name"]}],[1,"wcs-com-nav-category",{"label":[1],"categoryOpen":[32],"close":[64],"open":[64]},[[8,"click","onWindowClickEvent"],[8,"wcsCategoryOpened","onSubmenuOpened"]]],[1,"wcs-com-nav-submenu",{"label":[1],"panelTitle":[1,"panel-title"],"panelDescription":[1,"panel-description"],"menuOpen":[32],"close":[64],"open":[64]},[[8,"click","onWindowClickEvent"],[8,"wcsSubmenuOpened","onSubmenuOpened"]]],[1,"wcs-divider"],[4,"wcs-dropdown-item",null,[[1,"mousedown","onMouseDown"]]],[1,"wcs-field"],[1,"wcs-field-content"],[1,"wcs-field-label"],[1,"wcs-footer"],[1,"wcs-galactic",{"text":[1],"show":[32]}],[1,"wcs-grid-column",{"path":[1],"name":[1],"sort":[4],"sortFn":[16],"formatter":[16],"sortOrder":[1537,"sort-order"],"width":[1]}],[1,"wcs-header"],[1,"wcs-hint",{"small":[1540]}],[1,"wcs-label",{"required":[516]}],[1,"wcs-list-item",{"activated":[1028]}],[1,"wcs-list-item-properties"],[1,"wcs-list-item-property"],[1,"wcs-nav"],[4,"wcs-nav-item",{"text":[513],"href":[1537]}],[1,"wcs-progress-radial",{"size":[2],"showLabel":[4,"show-label"],"value":[2]}],[1,"wcs-radio-group",{"value":[8],"name":[520],"mode":[513]},[[0,"wcsRadioClick","selectedOptionChanged"]]],[1,"wcs-switch",{"name":[1],"checked":[1028]}],[1,"wcs-tab",{"header":[1537],"itemKey":[8,"item-key"]}],[1,"wcs-tabs",{"align":[1537],"selectedIndex":[2,"selected-index"],"selectedKey":[8,"selected-key"],"headersOnly":[4,"headers-only"],"gutter":[4],"headers":[32],"currentActiveTabIndex":[32]},[[0,"tabLoaded","onTabLoaded"]]],[1,"wcs-tooltip",{"for":[513],"position":[513]}],[4,"wcs-select-option",{"disabled":[1540],"selected":[1540],"value":[8],"chipColor":[1,"chip-color"],"chipBackgroundColor":[1,"chip-background-color"],"multiple":[1540]},[[1,"mousedown","onMouseDown"]]],[1,"wcs-error"],[1,"wcs-form-field",{"isError":[1540,"is-error"],"icon":[8],"hasPrefix":[32],"hasSuffix":[32],"spiedElement":[32]}],[1,"wcs-progress-bar",{"small":[1028],"showLabel":[1028,"show-label"],"value":[1026]}],[1,"wcs-radio",{"mode":[513],"value":[1544],"label":[1537],"checked":[1540],"disabled":[1028]}],[1,"wcs-select",{"value":[1032],"placeholder":[1537],"disabled":[1028],"multiple":[516],"chips":[516],"name":[1],"compareWith":[16],"expanded":[32],"hasLoaded":[32],"displayText":[32],"focused":[32],"overlayDirection":[32],"open":[64],"close":[64]},[[1,"mousedown","onMouseDown"],[8,"click","onWindowClickEvent"],[0,"wcsSelectOptionClick","selectedOptionChanged"]]],[1,"wcs-spinner",{"mode":[1537]}],[1,"wcs-button",{"type":[1025],"href":[1],"disabled":[516],"ripple":[4],"shape":[513],"mode":[513]},[[0,"click","onClick"]]],[1,"wcs-checkbox",{"name":[1],"indeterminate":[1540],"checked":[1540],"labelAlignment":[1537,"label-alignment"]}],[1,"wcs-mat-icon",{"icon":[1],"size":[1],"family":[1],"familyFile":[32],"familyClass":[32]}]]]], options);
16
+ return bootstrapLazy([["wcs-editable-field",[[1,"wcs-editable-field",{"type":[1],"label":[1],"readonly":[4],"value":[1032],"validateFn":[16],"formatFn":[16],"errorMsg":[1,"error-msg"],"currentState":[32],"isError":[32]},[[8,"click","onWindowClickEvent"]]]]],["wcs-grid",[[1,"wcs-grid",{"serverMode":[4,"server-mode"],"data":[16],"loading":[4],"selectionConfig":[1,"selection-config"],"selectedItems":[8,"selected-items"],"wcsGridPaginationId":[1,"wcs-grid-pagination-id"],"rowIdPath":[1,"row-id-path"],"columns":[32],"paginationEl":[32],"rows":[32]},[[0,"wcsHiddenChange","onHiddenColumnChange"],[0,"wcsSortChange","sortChangeEventHandler"],[0,"wcsGridPaginationChange","paginationChangeEventHandler"],[8,"wcsGridPaginationChange","paginationChangeEventHandlerOutside"]]]]],["wcs-grid-pagination",[[1,"wcs-grid-pagination",{"availablePageSizes":[16],"currentPage":[2,"current-page"],"pageSize":[2,"page-size"],"itemsCount":[2,"items-count"],"pageCount":[2,"page-count"]}]]],["wcs-horizontal-stepper",[[1,"wcs-horizontal-stepper",{"currentStep":[1026,"current-step"],"steps":[16],"mode":[1],"checkOnComplete":[4,"check-on-complete"],"buttonMode":[32],"internalCurrentStep":[32],"previous":[64],"next":[64]}]]],["wcs-dropdown",[[1,"wcs-dropdown",{"mode":[1],"shape":[1],"disabled":[4],"expanded":[32]},[[8,"click","onWindowClickEvent"],[0,"wcsDropdownItemClick","dropdownItemClick"]]]]],["wcs-galactic-menu",[[1,"wcs-galactic-menu",{"text":[1],"showPopoverMenu":[32]},[[8,"click","onWindowClickEvent"]]]]],["wcs-input",[[1,"wcs-input",{"fireFocusEvents":[4,"fire-focus-events"],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"icon":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"state":[513],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["wcs-modal",[[4,"wcs-modal",{"backdrop":[516],"show":[1540],"showCloseButton":[516,"show-close-button"]},[[4,"keydown","onKeyDown"]]]]],["wcs-textarea",[[1,"wcs-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"icon":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"state":[513],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"fitContent":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["wcs-action-bar",[[1,"wcs-action-bar",{"gutter":[4],"hasTabs":[32]}]]],["wcs-app",[[1,"wcs-app"]]],["wcs-badge",[[1,"wcs-badge",{"shape":[1],"color":[1]}]]],["wcs-card",[[1,"wcs-card",{"mode":[1537]}]]],["wcs-card-body",[[1,"wcs-card-body"]]],["wcs-com-nav",[[1,"wcs-com-nav",{"appName":[1,"app-name"]}]]],["wcs-com-nav-category",[[1,"wcs-com-nav-category",{"label":[1],"categoryOpen":[32],"close":[64],"open":[64]},[[8,"click","onWindowClickEvent"],[8,"wcsCategoryOpened","onSubmenuOpened"]]]]],["wcs-com-nav-submenu",[[1,"wcs-com-nav-submenu",{"label":[1],"panelTitle":[1,"panel-title"],"panelDescription":[1,"panel-description"],"menuOpen":[32],"close":[64],"open":[64]},[[8,"click","onWindowClickEvent"],[8,"wcsSubmenuOpened","onSubmenuOpened"],[0,"wcsCategoryItemClicked","wcsCategoryItemClickedHandler"]]]]],["wcs-divider",[[1,"wcs-divider"]]],["wcs-dropdown-item",[[4,"wcs-dropdown-item",null,[[1,"mousedown","onMouseDown"]]]]],["wcs-field",[[1,"wcs-field"]]],["wcs-field-content",[[1,"wcs-field-content"]]],["wcs-field-label",[[1,"wcs-field-label"]]],["wcs-footer",[[1,"wcs-footer"]]],["wcs-galactic",[[1,"wcs-galactic",{"text":[1],"show":[32]}]]],["wcs-grid-column",[[1,"wcs-grid-column",{"path":[1],"name":[1],"sort":[4],"sortFn":[16],"formatter":[16],"sortOrder":[1537,"sort-order"],"width":[1],"customCells":[4,"custom-cells"],"hidden":[4]}]]],["wcs-grid-custom-cell",[[1,"wcs-grid-custom-cell",{"columnId":[1,"column-id"],"rowId":[8,"row-id"]}]]],["wcs-header",[[1,"wcs-header"]]],["wcs-hint",[[1,"wcs-hint",{"small":[1540]}]]],["wcs-icon",[[0,"wcs-icon",{"icon":[1],"size":[1]}]]],["wcs-label",[[1,"wcs-label",{"required":[516]}]]],["wcs-list-item",[[1,"wcs-list-item",{"activated":[1028]}]]],["wcs-list-item-properties",[[1,"wcs-list-item-properties"]]],["wcs-list-item-property",[[1,"wcs-list-item-property"]]],["wcs-nav",[[1,"wcs-nav"]]],["wcs-nav-item",[[4,"wcs-nav-item",{"text":[513],"href":[1537]}]]],["wcs-progress-radial",[[1,"wcs-progress-radial",{"size":[2],"showLabel":[4,"show-label"],"value":[2]}]]],["wcs-radio-group",[[1,"wcs-radio-group",{"value":[8],"name":[520],"mode":[513]},[[0,"wcsRadioClick","selectedOptionChanged"]]]]],["wcs-switch",[[1,"wcs-switch",{"name":[1],"checked":[1028]}]]],["wcs-tab",[[1,"wcs-tab",{"header":[1537],"itemKey":[8,"item-key"]}]]],["wcs-tabs",[[1,"wcs-tabs",{"align":[1537],"selectedIndex":[2,"selected-index"],"selectedKey":[8,"selected-key"],"headersOnly":[4,"headers-only"],"gutter":[4],"headers":[32],"currentActiveTabIndex":[32]},[[0,"tabLoaded","onTabLoaded"]]]]],["wcs-tooltip",[[1,"wcs-tooltip",{"for":[513],"position":[513]}]]],["wcs-progress-bar",[[1,"wcs-progress-bar",{"small":[1028],"showLabel":[1028,"show-label"],"value":[1026]}]]],["wcs-radio",[[1,"wcs-radio",{"mode":[513],"value":[1544],"label":[1537],"checked":[1540],"disabled":[1028]}]]],["wcs-select_2",[[4,"wcs-select-option",{"disabled":[1540],"selected":[1540],"value":[8],"chipColor":[1,"chip-color"],"chipBackgroundColor":[1,"chip-background-color"],"multiple":[1540]},[[1,"mousedown","onMouseDown"]]],[1,"wcs-select",{"value":[1032],"placeholder":[1537],"disabled":[1028],"multiple":[516],"chips":[516],"name":[1],"compareWith":[16],"expanded":[32],"hasLoaded":[32],"displayText":[32],"focused":[32],"overlayDirection":[32],"open":[64],"close":[64]},[[1,"mousedown","onMouseDown"],[8,"click","onWindowClickEvent"],[0,"wcsSelectOptionClick","selectedOptionChanged"]]]]],["wcs-error_2",[[1,"wcs-error"],[1,"wcs-form-field",{"isError":[1540,"is-error"],"icon":[8],"hasPrefix":[32],"hasSuffix":[32],"spiedElement":[32]}]]],["wcs-spinner",[[1,"wcs-spinner",{"mode":[1537]}]]],["wcs-button",[[1,"wcs-button",{"type":[1025],"href":[1],"disabled":[516],"ripple":[4],"shape":[513],"mode":[513]},[[0,"click","onClick"]]]]],["wcs-checkbox",[[1,"wcs-checkbox",{"name":[1],"indeterminate":[1540],"checked":[1540],"labelAlignment":[1537,"label-alignment"]}]]],["wcs-mat-icon",[[1,"wcs-mat-icon",{"icon":[1],"size":[1],"family":[1],"familyFile":[32],"familyClass":[32]}]]]], options);
17
17
  });
@@ -1,5 +1,6 @@
1
1
  import { ComponentInterface } from '../../stencil-public-runtime';
2
- import { WcsButtonType, WcsButtonMode, WcsButtonShape } from './button-interface';
2
+ import { MDCRipple } from '@material/ripple';
3
+ import { WcsButtonMode, WcsButtonShape, WcsButtonType } from './button-interface';
3
4
  /**
4
5
  * Button component, can also be a link when specifying href.
5
6
  */
@@ -22,6 +23,7 @@ export declare class Button implements ComponentInterface {
22
23
  * Specify wether the button should have a ripple effect or not.
23
24
  */
24
25
  ripple: boolean;
26
+ mdcRipple: MDCRipple;
25
27
  /**
26
28
  * Specify the shape of the button.
27
29
  */
@@ -31,7 +33,9 @@ export declare class Button implements ComponentInterface {
31
33
  */
32
34
  mode: WcsButtonMode;
33
35
  onClick(ev: Event): void;
34
- render(): any;
35
36
  componentDidLoad(): void;
36
- private addRippleEffect;
37
+ private enabledRippleEffect;
38
+ private disabledRippleEffect;
39
+ onRippleChange(): void;
40
+ render(): any;
37
41
  }