wcs-core 2.5.2 → 2.7.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 (259) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +17 -1
  3. package/dist/cjs/component-fc28ed16.js +1074 -0
  4. package/dist/cjs/helpers-6abce594.js +86 -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/popper-6a290c40.js +1731 -0
  9. package/dist/cjs/select-arrow-76ccf86d.js +36 -0
  10. package/dist/cjs/wcs-action-bar.cjs.entry.js +24 -0
  11. package/dist/cjs/wcs-app.cjs.entry.js +2 -2
  12. package/dist/cjs/wcs-badge.cjs.entry.js +27 -0
  13. package/dist/cjs/wcs-button.cjs.entry.js +86 -0
  14. package/dist/cjs/wcs-card-body.cjs.entry.js +19 -0
  15. package/dist/cjs/wcs-card.cjs.entry.js +20 -0
  16. package/dist/cjs/wcs-checkbox.cjs.entry.js +47 -0
  17. package/dist/cjs/wcs-com-nav-category.cjs.entry.js +63 -0
  18. package/dist/cjs/wcs-com-nav-submenu.cjs.entry.js +69 -0
  19. package/dist/cjs/wcs-com-nav.cjs.entry.js +19 -0
  20. package/dist/cjs/wcs-divider.cjs.entry.js +19 -0
  21. package/dist/cjs/wcs-dropdown-divider.cjs.entry.js +19 -0
  22. package/dist/cjs/wcs-dropdown-header.cjs.entry.js +19 -0
  23. package/dist/cjs/wcs-dropdown-item.cjs.entry.js +23 -0
  24. package/dist/cjs/wcs-dropdown.cjs.entry.js +90 -0
  25. package/dist/cjs/wcs-editable-field.cjs.entry.js +225 -0
  26. package/dist/cjs/wcs-error_2.cjs.entry.js +137 -0
  27. package/dist/cjs/wcs-field-content.cjs.entry.js +16 -0
  28. package/dist/cjs/wcs-field-label.cjs.entry.js +16 -0
  29. package/dist/cjs/wcs-field.cjs.entry.js +19 -0
  30. package/dist/cjs/wcs-footer.cjs.entry.js +19 -0
  31. package/dist/cjs/wcs-galactic-menu.cjs.entry.js +58 -0
  32. package/dist/cjs/wcs-galactic.cjs.entry.js +41 -0
  33. package/dist/cjs/wcs-grid-column.cjs.entry.js +77 -0
  34. package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js +16 -0
  35. package/dist/cjs/wcs-grid-pagination.cjs.entry.js +4 -4
  36. package/dist/cjs/wcs-grid.cjs.entry.js +332 -0
  37. package/dist/cjs/wcs-header.cjs.entry.js +25 -0
  38. package/dist/cjs/wcs-hint.cjs.entry.js +20 -0
  39. package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +114 -0
  40. package/dist/cjs/wcs-icon.cjs.entry.js +2 -2
  41. package/dist/cjs/wcs-input.cjs.entry.js +228 -0
  42. package/dist/cjs/wcs-label.cjs.entry.js +20 -0
  43. package/dist/cjs/wcs-list-item-properties.cjs.entry.js +19 -0
  44. package/dist/cjs/wcs-list-item-property.cjs.entry.js +19 -0
  45. package/dist/cjs/wcs-list-item.cjs.entry.js +23 -0
  46. package/dist/cjs/wcs-mat-icon.cjs.entry.js +73 -0
  47. package/dist/cjs/wcs-modal.cjs.entry.js +45 -0
  48. package/dist/cjs/wcs-nav-item.cjs.entry.js +23 -0
  49. package/dist/cjs/wcs-nav.cjs.entry.js +19 -0
  50. package/dist/cjs/wcs-progress-bar.cjs.entry.js +47 -0
  51. package/dist/cjs/wcs-progress-radial.cjs.entry.js +30 -0
  52. package/dist/cjs/wcs-radio-group.cjs.entry.js +65 -0
  53. package/dist/cjs/wcs-radio.cjs.entry.js +49 -0
  54. package/dist/cjs/wcs-select_2.cjs.entry.js +4916 -0
  55. package/dist/cjs/wcs-spinner.cjs.entry.js +21 -0
  56. package/dist/cjs/wcs-switch.cjs.entry.js +42 -0
  57. package/dist/cjs/wcs-tab.cjs.entry.js +20 -0
  58. package/dist/cjs/wcs-tabs.cjs.entry.js +159 -0
  59. package/dist/cjs/wcs-textarea.cjs.entry.js +224 -0
  60. package/dist/cjs/wcs-tooltip.cjs.entry.js +129 -0
  61. package/dist/cjs/wcs.cjs.js +3 -3
  62. package/dist/collection/collection-manifest.json +5 -2
  63. package/dist/collection/components/button/button.css +79 -75
  64. package/dist/collection/components/button/button.js +23 -11
  65. package/dist/collection/components/checkbox/checkbox.css +18 -7
  66. package/dist/collection/components/checkbox/checkbox.js +24 -2
  67. package/dist/collection/components/com-nav/com-nav.css +1 -2
  68. package/dist/collection/components/com-nav-category/com-nav-category.css +5 -6
  69. package/dist/collection/components/com-nav-category/com-nav-category.js +31 -1
  70. package/dist/collection/components/com-nav-submenu/com-nav-submenu.css +1 -2
  71. package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +21 -1
  72. package/dist/collection/components/dropdown/dropdown-interface.js +1 -0
  73. package/dist/collection/components/dropdown/dropdown.css +46 -38
  74. package/dist/collection/components/dropdown/dropdown.js +90 -29
  75. package/dist/collection/components/dropdown-divider/dropdown-divider.css +7 -0
  76. package/dist/collection/components/dropdown-divider/dropdown-divider.js +14 -0
  77. package/dist/collection/components/dropdown-header/dropdown-header.css +8 -0
  78. package/dist/collection/components/dropdown-header/dropdown-header.js +15 -0
  79. package/dist/collection/components/footer/footer.css +1 -1
  80. package/dist/collection/components/form-field/form-field.css +1 -1
  81. package/dist/collection/components/grid/grid.js +75 -13
  82. package/dist/collection/components/grid-column/grid-column.css +5 -0
  83. package/dist/collection/components/grid-column/grid-column.js +69 -3
  84. package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +45 -0
  85. package/dist/collection/components/grid-pagination/grid-pagination.js +4 -4
  86. package/dist/collection/components/header/header.css +1 -1
  87. package/dist/collection/components/input/input.css +48 -0
  88. package/dist/collection/components/input/input.js +40 -4
  89. package/dist/collection/components/radio/radio.component.js +1 -1
  90. package/dist/collection/components/radio/radio.css +18 -4
  91. package/dist/collection/components/radio-group/radio-group.js +7 -2
  92. package/dist/collection/components/select/select.css +81 -77
  93. package/dist/collection/components/select/select.js +2 -2
  94. package/dist/collection/components/select-option/select-option.css +79 -75
  95. package/dist/collection/components/select-option/select-option.js +6 -7
  96. package/dist/collection/components/switch/switch.css +53 -16
  97. package/dist/collection/components/switch/switch.js +55 -6
  98. package/dist/collection/components/tab/tab.js +4 -4
  99. package/dist/collection/components/tabs/tabs.js +1 -1
  100. package/dist/collection/components/textarea/textarea.css +4 -0
  101. package/dist/collection/components/textarea/textarea.js +2 -2
  102. package/dist/collection/components/tooltip/tooltip.js +2 -2
  103. package/dist/collection/utils/helpers.js +4 -0
  104. package/dist/esm/component-6b4d470f.js +1072 -0
  105. package/dist/esm/helpers-e2993152.js +77 -0
  106. package/dist/esm/{index-c619b1fa.js → index-b982604a.js} +165 -88
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/{cjs/wcs-action-bar_47.cjs.entry.js → esm/lodash-d6d9d079.js} +12610 -22791
  109. package/dist/esm/popper-e5fdfb6a.js +1729 -0
  110. package/dist/esm/select-arrow-73ac4016.js +34 -0
  111. package/dist/esm/wcs-action-bar.entry.js +20 -0
  112. package/dist/esm/wcs-app.entry.js +2 -2
  113. package/dist/esm/wcs-badge.entry.js +23 -0
  114. package/dist/esm/wcs-button.entry.js +82 -0
  115. package/dist/esm/wcs-card-body.entry.js +15 -0
  116. package/dist/esm/wcs-card.entry.js +16 -0
  117. package/dist/esm/wcs-checkbox.entry.js +43 -0
  118. package/dist/esm/wcs-com-nav-category.entry.js +59 -0
  119. package/dist/esm/wcs-com-nav-submenu.entry.js +65 -0
  120. package/dist/esm/wcs-com-nav.entry.js +15 -0
  121. package/dist/esm/wcs-divider.entry.js +15 -0
  122. package/dist/esm/wcs-dropdown-divider.entry.js +15 -0
  123. package/dist/esm/wcs-dropdown-header.entry.js +15 -0
  124. package/dist/esm/wcs-dropdown-item.entry.js +19 -0
  125. package/dist/esm/wcs-dropdown.entry.js +86 -0
  126. package/dist/esm/wcs-editable-field.entry.js +221 -0
  127. package/dist/esm/wcs-error_2.entry.js +132 -0
  128. package/dist/esm/wcs-field-content.entry.js +12 -0
  129. package/dist/esm/wcs-field-label.entry.js +12 -0
  130. package/dist/esm/wcs-field.entry.js +15 -0
  131. package/dist/esm/wcs-footer.entry.js +15 -0
  132. package/dist/esm/wcs-galactic-menu.entry.js +54 -0
  133. package/dist/esm/wcs-galactic.entry.js +37 -0
  134. package/dist/esm/wcs-grid-column.entry.js +73 -0
  135. package/dist/esm/wcs-grid-custom-cell.entry.js +12 -0
  136. package/dist/esm/wcs-grid-pagination.entry.js +4 -4
  137. package/dist/esm/wcs-grid.entry.js +328 -0
  138. package/dist/esm/wcs-header.entry.js +21 -0
  139. package/dist/esm/wcs-hint.entry.js +16 -0
  140. package/dist/esm/wcs-horizontal-stepper.entry.js +110 -0
  141. package/dist/esm/wcs-icon.entry.js +2 -2
  142. package/dist/esm/wcs-input.entry.js +224 -0
  143. package/dist/esm/wcs-label.entry.js +16 -0
  144. package/dist/esm/wcs-list-item-properties.entry.js +15 -0
  145. package/dist/esm/wcs-list-item-property.entry.js +15 -0
  146. package/dist/esm/wcs-list-item.entry.js +19 -0
  147. package/dist/esm/wcs-mat-icon.entry.js +69 -0
  148. package/dist/esm/wcs-modal.entry.js +41 -0
  149. package/dist/esm/wcs-nav-item.entry.js +19 -0
  150. package/dist/esm/wcs-nav.entry.js +15 -0
  151. package/dist/esm/wcs-progress-bar.entry.js +43 -0
  152. package/dist/esm/wcs-progress-radial.entry.js +26 -0
  153. package/dist/esm/wcs-radio-group.entry.js +61 -0
  154. package/dist/esm/wcs-radio.entry.js +45 -0
  155. package/dist/esm/wcs-select_2.entry.js +4911 -0
  156. package/dist/esm/wcs-spinner.entry.js +17 -0
  157. package/dist/esm/wcs-switch.entry.js +38 -0
  158. package/dist/esm/wcs-tab.entry.js +16 -0
  159. package/dist/esm/wcs-tabs.entry.js +155 -0
  160. package/dist/esm/wcs-textarea.entry.js +220 -0
  161. package/dist/esm/wcs-tooltip.entry.js +125 -0
  162. package/dist/esm/wcs.js +3 -3
  163. package/dist/types/components/button/button.d.ts +7 -3
  164. package/dist/types/components/checkbox/checkbox.d.ts +4 -0
  165. package/dist/types/components/com-nav-category/com-nav-category.d.ts +7 -0
  166. package/dist/types/components/com-nav-submenu/com-nav-submenu.d.ts +7 -0
  167. package/dist/types/components/dropdown/dropdown-interface.d.ts +1 -0
  168. package/dist/types/components/dropdown/dropdown.d.ts +13 -16
  169. package/dist/types/components/dropdown-divider/dropdown-divider.d.ts +3 -0
  170. package/dist/types/components/dropdown-header/dropdown-header.d.ts +3 -0
  171. package/dist/types/components/grid/grid.d.ts +18 -0
  172. package/dist/types/components/grid-column/grid-column.d.ts +5 -0
  173. package/dist/types/components/grid-custom-cell/grid-custom-cell.d.ts +12 -0
  174. package/dist/types/components/input/input.d.ts +8 -0
  175. package/dist/types/components/radio-group/radio-group-interface.d.ts +1 -0
  176. package/dist/types/components/radio-group/radio-group.d.ts +2 -2
  177. package/dist/types/components/select-option/select-option.d.ts +2 -0
  178. package/dist/types/components/switch/switch-interface.d.ts +1 -0
  179. package/dist/types/components/switch/switch.d.ts +10 -2
  180. package/dist/types/components.d.ts +148 -4
  181. package/dist/types/stencil-public-runtime.d.ts +183 -182
  182. package/dist/types/utils/helpers.d.ts +1 -0
  183. package/dist/wcs/p-03b2e238.entry.js +1 -0
  184. package/dist/wcs/p-15008e35.entry.js +1 -0
  185. package/dist/wcs/p-16dfbae8.js +127 -0
  186. package/dist/wcs/p-17c6db7f.entry.js +1 -0
  187. package/dist/wcs/p-1dce7e63.entry.js +1 -0
  188. package/dist/wcs/p-1f5aed36.entry.js +1 -0
  189. package/dist/wcs/p-214236db.entry.js +1 -0
  190. package/dist/wcs/p-26b5c0a3.entry.js +1 -0
  191. package/dist/wcs/p-2e6265dc.entry.js +1 -0
  192. package/dist/wcs/p-384068f7.entry.js +1 -0
  193. package/dist/wcs/p-41037455.entry.js +1 -0
  194. package/dist/wcs/p-474d6601.entry.js +1 -0
  195. package/dist/wcs/p-55fdc284.entry.js +1 -0
  196. package/dist/wcs/p-57247184.entry.js +1 -0
  197. package/dist/wcs/p-5b35b232.entry.js +1 -0
  198. package/dist/wcs/p-600a9cc0.entry.js +1 -0
  199. package/dist/wcs/p-60b51967.entry.js +1 -0
  200. package/dist/wcs/p-64523291.entry.js +1 -0
  201. package/dist/wcs/p-65c5ccc5.entry.js +1 -0
  202. package/dist/wcs/p-688fea65.entry.js +1 -0
  203. package/dist/wcs/p-716d5921.entry.js +1 -0
  204. package/dist/wcs/p-7206e492.entry.js +1 -0
  205. package/dist/wcs/p-7219c04b.js +1 -0
  206. package/dist/wcs/p-8137f075.entry.js +1 -0
  207. package/dist/wcs/p-8864a491.entry.js +1 -0
  208. package/dist/wcs/p-8c8740e3.entry.js +1 -0
  209. package/dist/wcs/p-91a2de07.entry.js +1 -0
  210. package/dist/wcs/p-94a31f64.entry.js +1 -0
  211. package/dist/wcs/p-979dfd78.entry.js +1 -0
  212. package/dist/wcs/p-9ba52bc4.entry.js +1 -0
  213. package/dist/wcs/p-a1ee1551.entry.js +1 -0
  214. package/dist/wcs/p-a92d369e.entry.js +1 -0
  215. package/dist/wcs/p-a978c1e3.entry.js +1 -0
  216. package/dist/wcs/p-adef7aaf.js +1 -0
  217. package/dist/wcs/p-b5138986.js +1 -0
  218. package/dist/wcs/p-b7184d59.entry.js +1 -0
  219. package/dist/wcs/p-bbf1ef42.entry.js +1 -0
  220. package/dist/wcs/p-c7d6d3e1.entry.js +15 -0
  221. package/dist/wcs/p-cf4d7a83.js +1 -0
  222. package/dist/wcs/p-d7dec082.entry.js +1 -0
  223. package/dist/wcs/p-db68379f.entry.js +1 -0
  224. package/dist/wcs/p-dbbc3f58.entry.js +1 -0
  225. package/dist/wcs/p-dc817204.entry.js +1 -0
  226. package/dist/wcs/p-e0163de8.entry.js +1 -0
  227. package/dist/wcs/p-e4236d32.entry.js +1 -0
  228. package/dist/wcs/p-e43358e4.entry.js +1 -0
  229. package/dist/wcs/p-e65d1c27.entry.js +1 -0
  230. package/dist/wcs/p-e9ce507c.entry.js +1 -0
  231. package/dist/wcs/p-ea3e93e9.entry.js +1 -0
  232. package/dist/wcs/p-ed6e8541.entry.js +1 -0
  233. package/dist/wcs/p-f46e6c3c.js +1 -0
  234. package/dist/wcs/p-f9944bde.entry.js +1 -0
  235. package/dist/wcs/p-fa173947.entry.js +1 -0
  236. package/dist/wcs/p-fb1577b5.entry.js +1 -0
  237. package/dist/wcs/p-fbaf299d.entry.js +1 -0
  238. package/dist/wcs/p-febe9ccc.entry.js +1 -0
  239. package/dist/wcs/p-ff6d0dfd.entry.js +1 -0
  240. package/dist/wcs/wcs.esm.js +1 -1
  241. package/loader/index.d.ts +0 -1
  242. package/package.json +22 -21
  243. package/dist/wcs/p-16dca526.entry.js +0 -1
  244. package/dist/wcs/p-4f228fcb.entry.js +0 -134
  245. package/dist/wcs/p-66520e5a.entry.js +0 -1
  246. package/dist/wcs/p-d31287c6.entry.js +0 -1
  247. package/dist/wcs/p-f73f235b.js +0 -1
  248. package/schematics/.gitignore +0 -18
  249. package/schematics/.npmignore +0 -4
  250. package/schematics/collection.json +0 -9
  251. package/schematics/src/ng-add/files/fonts/avenir-black.woff +0 -0
  252. package/schematics/src/ng-add/files/fonts/avenir-book.woff +0 -0
  253. package/schematics/src/ng-add/files/fonts/avenir-lighter.woff +0 -0
  254. package/schematics/src/ng-add/files/fonts/avenir-medium.woff +0 -0
  255. package/schematics/src/ng-add/files/sncf-logo.png +0 -0
  256. package/schematics/src/ng-add/index.d.ts +0 -3
  257. package/schematics/src/ng-add/index.js +0 -119
  258. package/schematics/src/ng-add/index.js.map +0 -1
  259. package/schematics/src/ng-add/schema.json +0 -5
package/CHANGELOG.md CHANGED
@@ -7,6 +7,64 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ### Added
11
+ for new features.
12
+ ### Changed
13
+ for changes in existing functionality.
14
+ ### Deprecated
15
+ for soon-to-be removed features.
16
+ ### Removed
17
+ for now removed features.
18
+ ### Fixed
19
+ for any bug fixes.
20
+ ### Security
21
+ in case of vulnerabilities.
22
+
23
+ ## [2.7.0] - 2021-12-14
24
+
25
+ ### Added
26
+
27
+ - **dropdown**: add overlay placement attribute
28
+ - **dropdown**: add no-arrow attribute to hide the arrow in dropdown button
29
+ - **angular/formly**: add disabled attribute support for field template options
30
+ - **switch**: add disabled attribute
31
+ - **input**: add `prefixLabel` and `suffixLabel` attributes
32
+
33
+ ### Changed
34
+
35
+ - **dropdown**: use PopperJS for dropdown overlay positioning
36
+ - **form-field**: change `display: inline-flex` to `display: flex`
37
+
38
+ ### Fixed
39
+
40
+ - **dropdown**: Fix disabled attribute that did not work
41
+ - **dropdown**: Dropdown overlay closes when click on another dropdown instance
42
+ - **grid**: initial sort order attribute
43
+ - **input**: add disabled styles
44
+ - **switch**: display label if present
45
+ - **radio** **checkbox**: fix disabled attribute
46
+
47
+ ## [2.6.0] - 2021-11-24
48
+
49
+ ### Added
50
+
51
+ - **grid**: add support for custom cell rendering with slot (`wcs-grid-custom-cell`)
52
+ - **grid**: add support to hide columns
53
+ - **doc**: migrate existing documentation to storybook
54
+
55
+ ### Changed
56
+
57
+ - **stencil**: migrate to v2.10.x
58
+
59
+ ### Fixed
60
+
61
+ - **Communication Navbar**: close navbar when user click on a link (`a`) slotted element in submenu and category
62
+
63
+ ### Removed
64
+
65
+ - **angular schematics**: remove Angular schematics support (`ng add wcs` is no longer supported)
66
+
67
+
10
68
  ## [2.5.1]
11
69
 
12
70
  ### Fixed
package/README.md CHANGED
@@ -25,7 +25,7 @@ Select and select options size behavior, especially with multiple select. As of
25
25
 
26
26
  ## Documentation
27
27
 
28
- There is documentation available at https://sncf.gitlab.io/wcs/develop/. It is only available for the develop branch though as the project remains unreleased.
28
+ There is documentation available at https://sncf.gitlab.io/wcs/master/. It is only available for the develop branch though as the project remains unreleased.
29
29
 
30
30
  For a specific component you can also look under src/components/<the-component-you-want-the-doc-for>/README.md.
31
31
 
@@ -33,6 +33,22 @@ For a specific component you can also look under src/components/<the-component-y
33
33
 
34
34
  There is an example projects under `example` folder for angular.
35
35
 
36
+ Step to start the example project :
37
+ ```shell
38
+ # wcs-core build
39
+ npm install
40
+ npm run build
41
+ # angular build (use --watch option to watch files)
42
+ cd angular
43
+ npm install
44
+ ng build --project wcs-angular
45
+ ng build --project wcs-formly
46
+ # start example
47
+ cd ../example
48
+ npm install
49
+ ng serve
50
+ ```
51
+
36
52
  If you have any question, don't hesitate to fill an issue !
37
53
 
38
54
  ### Install in your project