@lion/ui 0.2.1 → 0.3.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 (272) hide show
  1. package/README.md +23 -72
  2. package/components/button/src/LionButton.js +1 -1
  3. package/components/core/src/SlotMixin.js +3 -2
  4. package/components/core/test/SlotMixin.test.js +1 -1
  5. package/components/core/types/SlotMixinTypes.ts +4 -1
  6. package/components/dialog/test/lion-dialog.test.js +56 -0
  7. package/components/form-core/src/FocusMixin.js +33 -2
  8. package/components/form-core/src/LionField.js +3 -1
  9. package/components/form-core/src/validate/LionValidationFeedback.js +2 -5
  10. package/components/form-core/src/validate/ResultValidator.js +1 -1
  11. package/components/form-core/test/FocusMixin.test.js +33 -0
  12. package/components/form-core/types/validate/ValidateMixinTypes.ts +2 -2
  13. package/components/form-integrations/test/dialog-integrations.test.js +19 -0
  14. package/components/form-integrations/test/form-group-methods.test.js +11 -37
  15. package/components/form-integrations/test/form-integrations.test.js +4 -0
  16. package/components/form-integrations/test/helpers/umbrella-form.js +21 -18
  17. package/components/input-amount/src/LionInputAmount.js +13 -4
  18. package/components/input-amount/test/lion-input-amount.test.js +19 -20
  19. package/components/input-date/src/LionInputDate.js +2 -11
  20. package/components/input-datepicker/src/LionInputDatepicker.js +5 -2
  21. package/components/input-datepicker/test/lion-input-datepicker.test.js +20 -0
  22. package/components/input-file/src/FileHandle.js +98 -0
  23. package/components/input-file/src/LionInputFile.js +892 -0
  24. package/components/input-file/src/LionSelectedFileList.js +232 -0
  25. package/components/input-file/src/localizeNamespaceLoader.js +75 -0
  26. package/components/input-file/src/validators.js +114 -0
  27. package/components/input-file/test/FileValidators.test.js +170 -0
  28. package/components/input-file/test/lion-input-file.test.js +1168 -0
  29. package/components/input-file/test/lion-selected-file-list.test.js +207 -0
  30. package/components/input-file/translations/bg-BG.js +5 -0
  31. package/components/input-file/translations/bg.js +12 -0
  32. package/components/input-file/translations/cs-CZ.js +5 -0
  33. package/components/input-file/translations/cs.js +13 -0
  34. package/components/input-file/translations/de-DE.js +5 -0
  35. package/components/input-file/translations/de.js +12 -0
  36. package/components/input-file/translations/en-AU.js +5 -0
  37. package/components/input-file/translations/en-GB.js +5 -0
  38. package/components/input-file/translations/en-PH.js +5 -0
  39. package/components/input-file/translations/en-US.js +5 -0
  40. package/components/input-file/translations/en.js +12 -0
  41. package/components/input-file/translations/es-ES.js +5 -0
  42. package/components/input-file/translations/es.js +12 -0
  43. package/components/input-file/translations/fr-BE.js +5 -0
  44. package/components/input-file/translations/fr-FR.js +5 -0
  45. package/components/input-file/translations/fr.js +13 -0
  46. package/components/input-file/translations/hu-HU.js +5 -0
  47. package/components/input-file/translations/hu.js +12 -0
  48. package/components/input-file/translations/it-IT.js +5 -0
  49. package/components/input-file/translations/it.js +12 -0
  50. package/components/input-file/translations/nl-BE.js +5 -0
  51. package/components/input-file/translations/nl-NL.js +5 -0
  52. package/components/input-file/translations/nl.js +12 -0
  53. package/components/input-file/translations/pl-PL.js +5 -0
  54. package/components/input-file/translations/pl.js +12 -0
  55. package/components/input-file/translations/ro-RO.js +5 -0
  56. package/components/input-file/translations/ro.js +12 -0
  57. package/components/input-file/translations/ru-RU.js +5 -0
  58. package/components/input-file/translations/ru.js +12 -0
  59. package/components/input-file/translations/sk-SK.js +5 -0
  60. package/components/input-file/translations/sk.js +12 -0
  61. package/components/input-file/translations/uk-UA.js +5 -0
  62. package/components/input-file/translations/uk.js +12 -0
  63. package/components/input-file/translations/zh-CN.js +5 -0
  64. package/components/input-file/translations/zh.js +12 -0
  65. package/components/input-file/types/input-file.d.ts +32 -0
  66. package/components/input-tel-dropdown/src/LionInputTelDropdown.js +1 -4
  67. package/components/localize/src/number/parseNumber.js +7 -1
  68. package/components/localize/test/number/parseNumber.test.js +18 -4
  69. package/custom-elements.json +21949 -17530
  70. package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
  71. package/dist-types/components/core/types/SlotMixinTypes.d.ts +4 -0
  72. package/dist-types/components/core/types/SlotMixinTypes.d.ts.map +1 -1
  73. package/dist-types/components/dialog/test/lion-dialog.test.d.ts.map +1 -1
  74. package/dist-types/components/form-core/src/FocusMixin.d.ts.map +1 -1
  75. package/dist-types/components/form-core/src/LionField.d.ts +2 -1
  76. package/dist-types/components/form-core/src/LionField.d.ts.map +1 -1
  77. package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts +4 -11
  78. package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts.map +1 -1
  79. package/dist-types/components/form-core/src/validate/ResultValidator.d.ts +1 -1
  80. package/dist-types/components/form-core/types/validate/ValidateMixinTypes.d.ts +5 -0
  81. package/dist-types/components/form-core/types/validate/ValidateMixinTypes.d.ts.map +1 -1
  82. package/dist-types/components/form-integrations/test/dialog-integrations.test.d.ts.map +1 -1
  83. package/dist-types/components/form-integrations/test/form-group-methods.test.d.ts +1 -0
  84. package/dist-types/components/form-integrations/test/form-group-methods.test.d.ts.map +1 -1
  85. package/dist-types/components/form-integrations/test/helpers/umbrella-form.d.ts.map +1 -1
  86. package/dist-types/components/input-amount/src/LionInputAmount.d.ts +2 -4
  87. package/dist-types/components/input-amount/src/LionInputAmount.d.ts.map +1 -1
  88. package/dist-types/components/input-amount/test/lion-input-amount.test.d.ts +0 -1
  89. package/dist-types/components/input-amount/test/lion-input-amount.test.d.ts.map +1 -1
  90. package/dist-types/components/input-date/src/LionInputDate.d.ts.map +1 -1
  91. package/dist-types/components/input-datepicker/src/LionInputDatepicker.d.ts +1 -1
  92. package/dist-types/components/input-datepicker/src/LionInputDatepicker.d.ts.map +1 -1
  93. package/dist-types/components/input-file/src/FileHandle.d.ts +55 -0
  94. package/dist-types/components/input-file/src/FileHandle.d.ts.map +1 -0
  95. package/dist-types/components/input-file/src/LionInputFile.d.ts +230 -0
  96. package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -0
  97. package/dist-types/components/input-file/src/LionSelectedFileList.d.ts +69 -0
  98. package/dist-types/components/input-file/src/LionSelectedFileList.d.ts.map +1 -0
  99. package/dist-types/components/input-file/src/localizeNamespaceLoader.d.ts +2 -0
  100. package/dist-types/components/input-file/src/localizeNamespaceLoader.d.ts.map +1 -0
  101. package/dist-types/components/input-file/src/validators.d.ts +58 -0
  102. package/dist-types/components/input-file/src/validators.d.ts.map +1 -0
  103. package/dist-types/components/input-file/test/FileValidators.test.d.ts +2 -0
  104. package/dist-types/components/input-file/test/FileValidators.test.d.ts.map +1 -0
  105. package/dist-types/components/input-file/test/lion-input-file.test.d.ts +5 -0
  106. package/dist-types/components/input-file/test/lion-input-file.test.d.ts.map +1 -0
  107. package/dist-types/components/input-file/test/lion-selected-file-list.test.d.ts +4 -0
  108. package/dist-types/components/input-file/test/lion-selected-file-list.test.d.ts.map +1 -0
  109. package/dist-types/components/input-file/translations/bg-BG.d.ts +13 -0
  110. package/dist-types/components/input-file/translations/bg-BG.d.ts.map +1 -0
  111. package/dist-types/components/input-file/translations/bg.d.ts +13 -0
  112. package/dist-types/components/input-file/translations/bg.d.ts.map +1 -0
  113. package/dist-types/components/input-file/translations/cs-CZ.d.ts +13 -0
  114. package/dist-types/components/input-file/translations/cs-CZ.d.ts.map +1 -0
  115. package/dist-types/components/input-file/translations/cs.d.ts +13 -0
  116. package/dist-types/components/input-file/translations/cs.d.ts.map +1 -0
  117. package/dist-types/components/input-file/translations/de-DE.d.ts +13 -0
  118. package/dist-types/components/input-file/translations/de-DE.d.ts.map +1 -0
  119. package/dist-types/components/input-file/translations/de.d.ts +13 -0
  120. package/dist-types/components/input-file/translations/de.d.ts.map +1 -0
  121. package/dist-types/components/input-file/translations/en-AU.d.ts +13 -0
  122. package/dist-types/components/input-file/translations/en-AU.d.ts.map +1 -0
  123. package/dist-types/components/input-file/translations/en-GB.d.ts +13 -0
  124. package/dist-types/components/input-file/translations/en-GB.d.ts.map +1 -0
  125. package/dist-types/components/input-file/translations/en-PH.d.ts +13 -0
  126. package/dist-types/components/input-file/translations/en-PH.d.ts.map +1 -0
  127. package/dist-types/components/input-file/translations/en-US.d.ts +13 -0
  128. package/dist-types/components/input-file/translations/en-US.d.ts.map +1 -0
  129. package/dist-types/components/input-file/translations/en.d.ts +13 -0
  130. package/dist-types/components/input-file/translations/en.d.ts.map +1 -0
  131. package/dist-types/components/input-file/translations/es-ES.d.ts +13 -0
  132. package/dist-types/components/input-file/translations/es-ES.d.ts.map +1 -0
  133. package/dist-types/components/input-file/translations/es.d.ts +13 -0
  134. package/dist-types/components/input-file/translations/es.d.ts.map +1 -0
  135. package/dist-types/components/input-file/translations/fr-BE.d.ts +13 -0
  136. package/dist-types/components/input-file/translations/fr-BE.d.ts.map +1 -0
  137. package/dist-types/components/input-file/translations/fr-FR.d.ts +13 -0
  138. package/dist-types/components/input-file/translations/fr-FR.d.ts.map +1 -0
  139. package/dist-types/components/input-file/translations/fr.d.ts +13 -0
  140. package/dist-types/components/input-file/translations/fr.d.ts.map +1 -0
  141. package/dist-types/components/input-file/translations/hu-HU.d.ts +13 -0
  142. package/dist-types/components/input-file/translations/hu-HU.d.ts.map +1 -0
  143. package/dist-types/components/input-file/translations/hu.d.ts +13 -0
  144. package/dist-types/components/input-file/translations/hu.d.ts.map +1 -0
  145. package/dist-types/components/input-file/translations/it-IT.d.ts +13 -0
  146. package/dist-types/components/input-file/translations/it-IT.d.ts.map +1 -0
  147. package/dist-types/components/input-file/translations/it.d.ts +13 -0
  148. package/dist-types/components/input-file/translations/it.d.ts.map +1 -0
  149. package/dist-types/components/input-file/translations/nl-BE.d.ts +13 -0
  150. package/dist-types/components/input-file/translations/nl-BE.d.ts.map +1 -0
  151. package/dist-types/components/input-file/translations/nl-NL.d.ts +13 -0
  152. package/dist-types/components/input-file/translations/nl-NL.d.ts.map +1 -0
  153. package/dist-types/components/input-file/translations/nl.d.ts +13 -0
  154. package/dist-types/components/input-file/translations/nl.d.ts.map +1 -0
  155. package/dist-types/components/input-file/translations/pl-PL.d.ts +13 -0
  156. package/dist-types/components/input-file/translations/pl-PL.d.ts.map +1 -0
  157. package/dist-types/components/input-file/translations/pl.d.ts +13 -0
  158. package/dist-types/components/input-file/translations/pl.d.ts.map +1 -0
  159. package/dist-types/components/input-file/translations/ro-RO.d.ts +13 -0
  160. package/dist-types/components/input-file/translations/ro-RO.d.ts.map +1 -0
  161. package/dist-types/components/input-file/translations/ro.d.ts +13 -0
  162. package/dist-types/components/input-file/translations/ro.d.ts.map +1 -0
  163. package/dist-types/components/input-file/translations/ru-RU.d.ts +13 -0
  164. package/dist-types/components/input-file/translations/ru-RU.d.ts.map +1 -0
  165. package/dist-types/components/input-file/translations/ru.d.ts +13 -0
  166. package/dist-types/components/input-file/translations/ru.d.ts.map +1 -0
  167. package/dist-types/components/input-file/translations/sk-SK.d.ts +13 -0
  168. package/dist-types/components/input-file/translations/sk-SK.d.ts.map +1 -0
  169. package/dist-types/components/input-file/translations/sk.d.ts +13 -0
  170. package/dist-types/components/input-file/translations/sk.d.ts.map +1 -0
  171. package/dist-types/components/input-file/translations/uk-UA.d.ts +13 -0
  172. package/dist-types/components/input-file/translations/uk-UA.d.ts.map +1 -0
  173. package/dist-types/components/input-file/translations/uk.d.ts +13 -0
  174. package/dist-types/components/input-file/translations/uk.d.ts.map +1 -0
  175. package/dist-types/components/input-file/translations/zh-CN.d.ts +13 -0
  176. package/dist-types/components/input-file/translations/zh-CN.d.ts.map +1 -0
  177. package/dist-types/components/input-file/translations/zh.d.ts +13 -0
  178. package/dist-types/components/input-file/translations/zh.d.ts.map +1 -0
  179. package/dist-types/components/input-stepper/src/LionInputStepper.d.ts +6 -0
  180. package/dist-types/components/input-stepper/src/LionInputStepper.d.ts.map +1 -1
  181. package/dist-types/components/input-tel-dropdown/src/LionInputTelDropdown.d.ts +0 -1
  182. package/dist-types/components/input-tel-dropdown/src/LionInputTelDropdown.d.ts.map +1 -1
  183. package/dist-types/components/localize/src/number/parseNumber.d.ts.map +1 -1
  184. package/dist-types/exports/define/lion-input-file.d.ts +2 -0
  185. package/dist-types/exports/define/lion-input-file.d.ts.map +1 -0
  186. package/dist-types/exports/define/lion-selected-file-list.d.ts +2 -0
  187. package/dist-types/exports/define/lion-selected-file-list.d.ts.map +1 -0
  188. package/dist-types/exports/input-file.d.ts +4 -0
  189. package/dist-types/exports/input-file.d.ts.map +1 -0
  190. package/dist-types/tsconfig.tsbuildinfo +1 -1
  191. package/docs/components/button/extensions/bootstrap-button.mjs +240 -0
  192. package/docs/components/button/extensions.md +30 -0
  193. package/docs/components/checkbox-group/overview.md +2 -2
  194. package/docs/components/collapsible/overview.md +1 -1
  195. package/docs/components/combobox/{examples.md → extensions.md} +51 -43
  196. package/docs/components/combobox/overview.md +1 -1
  197. package/docs/components/combobox/src/google-combobox/google-combobox.js +4 -1
  198. package/docs/components/combobox/src/md-combobox/md-combobox.js +40 -38
  199. package/docs/components/combobox/src/wa-combobox/wa-combobox.js +204 -209
  200. package/docs/components/combobox/use-cases.md +1 -1
  201. package/docs/components/dialog/overview.md +1 -1
  202. package/docs/components/fieldset/overview.md +5 -5
  203. package/docs/components/form/overview.md +3 -3
  204. package/docs/components/icon/use-cases.md +1 -1
  205. package/docs/components/input/overview.md +1 -1
  206. package/docs/components/input-amount/overview.md +3 -3
  207. package/docs/components/input-amount/use-cases.md +4 -2
  208. package/docs/components/input-date/overview.md +3 -3
  209. package/docs/components/input-datepicker/overview.md +5 -5
  210. package/docs/components/input-datepicker/use-cases.md +11 -0
  211. package/docs/components/input-email/overview.md +2 -2
  212. package/docs/components/input-file/index.md +3 -0
  213. package/docs/components/input-file/overview.md +32 -0
  214. package/docs/components/input-file/use-cases.md +424 -0
  215. package/docs/components/input-iban/overview.md +2 -2
  216. package/docs/components/input-range/overview.md +2 -2
  217. package/docs/components/input-stepper/overview.md +1 -1
  218. package/docs/components/input-tel/overview.md +1 -1
  219. package/docs/components/input-tel/use-cases.md +6 -6
  220. package/docs/components/input-tel-dropdown/{examples.md → extensions.md} +1 -1
  221. package/docs/components/input-tel-dropdown/overview.md +1 -1
  222. package/docs/components/radio-group/overview.md +3 -3
  223. package/docs/components/select-rich/use-cases.md +1 -1
  224. package/docs/components/tabs/examples.md +1 -1
  225. package/docs/fundamentals/index.md +4 -4
  226. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  227. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  228. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  229. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  230. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  231. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  232. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  233. package/docs/fundamentals/rationales/accessibility.md +28 -0
  234. package/docs/fundamentals/systems/core/SlotMixin.md +148 -0
  235. package/docs/fundamentals/systems/core/overview.md +1 -1
  236. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  237. package/docs/fundamentals/systems/form/model-value.md +1 -1
  238. package/docs/fundamentals/systems/form/overview.md +28 -28
  239. package/docs/fundamentals/systems/form/use-cases.md +2 -0
  240. package/docs/fundamentals/systems/form/validate.md +1 -1
  241. package/docs/fundamentals/systems/localize/overview.md +4 -4
  242. package/docs/fundamentals/systems/overlays/_configuration-positioning.md +116 -0
  243. package/docs/fundamentals/systems/overlays/_edge-cases.md +145 -0
  244. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  245. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  246. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  247. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  248. package/docs/fundamentals/tools/singleton-manager/example-complex/index.md +21 -0
  249. package/docs/fundamentals/tools/singleton-manager/example-fail/index.md +19 -0
  250. package/docs/fundamentals/tools/singleton-manager/example-success/index.md +18 -0
  251. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  252. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  253. package/docs/guides/how-to/create-a-form.md +88 -0
  254. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  255. package/docs/guides/index.md +8 -8
  256. package/docs/guides/principles/index.md +5 -5
  257. package/docs/guides/principles/styling.md +1 -1
  258. package/exports/define/lion-input-file.js +3 -0
  259. package/exports/define/lion-selected-file-list.js +3 -0
  260. package/exports/input-file.js +3 -0
  261. package/package.json +3 -2
  262. package/docs/components/combobox/src/google-combobox/assets/googlelogo_color_272x92dp.png +0 -0
  263. package/docs/components/dialog/src/demo-dialog-style.js +0 -3
  264. package/docs/components/select-rich/src/flags.png +0 -0
  265. package/docs/components/select-rich/src/flags@2x.png +0 -0
  266. package/docs/fundamentals/systems/form/assets/FormatMixinDiagram-1.svg +0 -1
  267. package/docs/fundamentals/systems/form/assets/FormatMixinDiagram-2.svg +0 -1
  268. package/docs/fundamentals/systems/form/assets/FormatMixinDiagram-3.svg +0 -84
  269. package/docs/fundamentals/tools/ajax/assets/naga.json +0 -9
  270. package/docs/fundamentals/tools/ajax/assets/pabu.json +0 -9
  271. package/docs/fundamentals/tools/singleton-manager/.gitignore +0 -1
  272. package/docs/override.js +0 -15
@@ -15,164 +15,162 @@ class WaOption extends LionOption {
15
15
  };
16
16
  }
17
17
 
18
- static get styles() {
19
- return [
20
- ...super.styles,
21
- css`
22
- :host {
23
- --background-default: white;
24
- --background-default-active: gray;
25
- --secondary: #777;
26
- --secondary-lighter: #aaa;
27
- --chatlist-icon: #aaa;
28
- background-color: var(--background-default);
29
- cursor: pointer;
30
- color: rgb(74, 74, 74);
31
- padding: 0;
32
- transition: max-height 0.4s ease, opacity 0.3s ease;
33
- max-height: 500px;
34
- }
35
-
36
- :host([checked]) {
37
- background-color: #eee;
38
- }
39
-
40
- :host(:hover) {
41
- background-color: #f6f6f6;
42
- }
43
-
44
- .wa-option {
45
- position: relative;
46
- display: flex;
47
- flex-direction: row;
48
- height: 72px;
49
- pointer-events: all;
50
- }
51
-
52
- .wa-option__image {
53
- display: flex;
54
- flex: none;
55
- align-items: center;
56
- margin-top: -1px;
57
- padding: 0 15px 0 13px;
58
- }
59
-
60
- .wa-option__image-inner {
61
- position: relative;
62
- overflow: hidden;
63
- background-color: var(--avatar-background);
64
- border-radius: 50%;
65
- height: 49px;
66
- width: 49px;
67
- }
68
-
69
- .wa-option__image-inner img,
70
- .wa-option__image-inner svg {
71
- width: 100%;
72
- height: 100%;
73
- }
74
-
75
- .wa-option__image-inner-inner {
76
- position: absolute;
77
- top: 0;
78
- z-index: 1;
79
- display: flex;
80
- align-items: center;
81
- justify-content: center;
82
- width: 100%;
83
- height: 100%;
84
- }
85
-
86
- .wa-option__content {
87
- display: flex;
88
- flex-basis: auto;
89
- flex-direction: column;
90
- flex-grow: 1;
91
- justify-content: center;
92
- min-width: 0;
93
- border-bottom: 1px solid #eee;
94
- padding-right: 15px;
95
- }
96
-
97
- .wa-option__content-row1 {
98
- display: flex;
99
- align-items: center;
100
- line-height: normal;
101
- text-align: left;
102
- }
103
-
104
- .wa-option__content-row1-title {
105
- display: flex;
106
- flex-grow: 1;
107
- overflow: hidden;
108
- color: var(--primary-strong);
109
- font-weight: 400;
110
- font-size: 17px;
111
- line-height: 21px;
112
- }
113
-
114
- .wa-option__content-row1-time {
115
- line-height: 14px;
116
- overflow: hidden;
117
- text-overflow: ellipsis;
118
- white-space: nowrap;
119
- margin-left: 6px;
120
- margin-top: 3px;
121
-
122
- flex: none;
123
- max-width: 100%;
124
- color: var(--secondary-lighter);
125
- font-size: 12px;
126
- line-height: 20px;
127
- }
128
-
129
- .wa-option__content-row2 {
130
- display: flex;
131
- align-items: center;
132
- min-height: 20px;
133
- color: var(--secondary);
134
- font-size: 13px;
135
- line-height: 20px;
136
- margin-top: 2px;
137
- /* color: var(--secondary-stronger); */
138
- }
139
-
140
- .wa-option__content-row2-text {
141
- flex-grow: 1;
142
- overflow: hidden;
143
- font-weight: 400;
144
- font-size: 14px;
145
- line-height: 20px;
146
- white-space: nowrap;
147
- text-overflow: ellipsis;
148
- }
149
-
150
- .wa-option__content-row2-text-inner {
151
- display: flex;
152
- align-items: flex-start;
153
- }
154
-
155
- .wa-option__content-row2-text-inner-icon {
156
- display: none;
157
- flex: none;
158
- color: var(--chatlist-icon);
159
- vertical-align: top;
160
- margin-right: 2px;
161
- }
162
-
163
- :host([is-user-text]) .wa-option__content-row2-text-inner-icon {
164
- display: inline-block;
165
- }
166
-
167
- :host([is-user-text-read]) .wa-option__content-row2-text-inner-icon {
168
- color: lightblue;
169
- }
170
- /*
18
+ static styles = [
19
+ ...super.styles,
20
+ css`
21
+ :host {
22
+ --background-default: white;
23
+ --background-default-active: gray;
24
+ --secondary: #777;
25
+ --secondary-lighter: #aaa;
26
+ --chatlist-icon: #aaa;
27
+ background-color: var(--background-default);
28
+ cursor: pointer;
29
+ color: rgb(74, 74, 74);
30
+ padding: 0;
31
+ transition: max-height 0.4s ease, opacity 0.3s ease;
32
+ max-height: 500px;
33
+ }
34
+
35
+ :host([checked]) {
36
+ background-color: #eee;
37
+ }
38
+
39
+ :host(:hover) {
40
+ background-color: #f6f6f6;
41
+ }
42
+
43
+ .wa-option {
44
+ position: relative;
45
+ display: flex;
46
+ flex-direction: row;
47
+ height: 72px;
48
+ pointer-events: all;
49
+ }
50
+
51
+ .wa-option__image {
52
+ display: flex;
53
+ flex: none;
54
+ align-items: center;
55
+ margin-top: -1px;
56
+ padding: 0 15px 0 13px;
57
+ }
58
+
59
+ .wa-option__image-inner {
60
+ position: relative;
61
+ overflow: hidden;
62
+ background-color: var(--avatar-background);
63
+ border-radius: 50%;
64
+ height: 49px;
65
+ width: 49px;
66
+ }
67
+
68
+ .wa-option__image-inner img,
69
+ .wa-option__image-inner svg {
70
+ width: 100%;
71
+ height: 100%;
72
+ }
73
+
74
+ .wa-option__image-inner-inner {
75
+ position: absolute;
76
+ top: 0;
77
+ z-index: 1;
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ width: 100%;
82
+ height: 100%;
83
+ }
84
+
85
+ .wa-option__content {
86
+ display: flex;
87
+ flex-basis: auto;
88
+ flex-direction: column;
89
+ flex-grow: 1;
90
+ justify-content: center;
91
+ min-width: 0;
92
+ border-bottom: 1px solid #eee;
93
+ padding-right: 15px;
94
+ }
95
+
96
+ .wa-option__content-row1 {
97
+ display: flex;
98
+ align-items: center;
99
+ line-height: normal;
100
+ text-align: left;
101
+ }
102
+
103
+ .wa-option__content-row1-title {
104
+ display: flex;
105
+ flex-grow: 1;
106
+ overflow: hidden;
107
+ color: var(--primary-strong);
108
+ font-weight: 400;
109
+ font-size: 17px;
110
+ line-height: 21px;
111
+ }
112
+
113
+ .wa-option__content-row1-time {
114
+ line-height: 14px;
115
+ overflow: hidden;
116
+ text-overflow: ellipsis;
117
+ white-space: nowrap;
118
+ margin-left: 6px;
119
+ margin-top: 3px;
120
+
121
+ flex: none;
122
+ max-width: 100%;
123
+ color: var(--secondary-lighter);
124
+ font-size: 12px;
125
+ line-height: 20px;
126
+ }
127
+
128
+ .wa-option__content-row2 {
129
+ display: flex;
130
+ align-items: center;
131
+ min-height: 20px;
132
+ color: var(--secondary);
133
+ font-size: 13px;
134
+ line-height: 20px;
135
+ margin-top: 2px;
136
+ /* color: var(--secondary-stronger); */
137
+ }
138
+
139
+ .wa-option__content-row2-text {
140
+ flex-grow: 1;
141
+ overflow: hidden;
142
+ font-weight: 400;
143
+ font-size: 14px;
144
+ line-height: 20px;
145
+ white-space: nowrap;
146
+ text-overflow: ellipsis;
147
+ }
148
+
149
+ .wa-option__content-row2-text-inner {
150
+ display: flex;
151
+ align-items: flex-start;
152
+ }
153
+
154
+ .wa-option__content-row2-text-inner-icon {
155
+ display: none;
156
+ flex: none;
157
+ color: var(--chatlist-icon);
158
+ vertical-align: top;
159
+ margin-right: 2px;
160
+ }
161
+
162
+ :host([is-user-text]) .wa-option__content-row2-text-inner-icon {
163
+ display: inline-block;
164
+ }
165
+
166
+ :host([is-user-text-read]) .wa-option__content-row2-text-inner-icon {
167
+ color: lightblue;
168
+ }
169
+ /*
171
170
  .wa-option__content-row2-menu {
172
171
  } */
173
- `,
174
- ];
175
- }
172
+ `,
173
+ ];
176
174
 
177
175
  render() {
178
176
  return html`<div class="wa-option">
@@ -285,59 +283,56 @@ class WaOption extends LionOption {
285
283
  customElements.define('wa-option', WaOption);
286
284
 
287
285
  class WaCombobox extends LionCombobox {
288
- static get styles() {
289
- return [
290
- ...super.styles,
291
- css`
292
- :host {
293
- font-family: SF Pro Text, SF Pro Icons, system, -apple-system, system-ui,
294
- BlinkMacSystemFont, Helvetica Neue, Helvetica, Lucida Grande, Kohinoor Devanagari,
295
- sans-serif;
296
- }
297
-
298
- .input-group__container {
299
- display: flex;
300
- border-bottom: none;
301
- }
302
-
303
- * > ::slotted([role='listbox']) {
304
- max-height: none;
305
- }
306
-
307
- * > ::slotted([slot='input']) {
308
- font-size: 14px;
309
- }
310
-
311
- .input-group {
312
- padding: 15px;
313
- background: #f6f6f6;
314
- }
315
-
316
- .input-group__prefix {
317
- margin-right: 20px;
318
- color: #999;
319
- display: flex;
320
- }
321
-
322
- .input-group__container {
323
- border-radius: 18px;
324
- background: white;
325
- padding: 7px;
326
- padding-left: 16px;
327
- }
328
-
329
- /** Undo Popper */
330
- #overlay-content-node-wrapper {
331
- position: static !important;
332
- width: auto !important;
333
- transform: none !important;
334
-
335
- /* height: 300px;
286
+ static styles = [
287
+ ...super.styles,
288
+ css`
289
+ :host {
290
+ font-family: SF Pro Text, SF Pro Icons, system, -apple-system, system-ui, BlinkMacSystemFont,
291
+ Helvetica Neue, Helvetica, Lucida Grande, Kohinoor Devanagari, sans-serif;
292
+ }
293
+
294
+ .input-group__container {
295
+ display: flex;
296
+ border-bottom: none;
297
+ }
298
+
299
+ * > ::slotted([role='listbox']) {
300
+ max-height: none;
301
+ }
302
+
303
+ * > ::slotted([slot='input']) {
304
+ font-size: 14px;
305
+ }
306
+
307
+ .input-group {
308
+ padding: 15px;
309
+ background: #f6f6f6;
310
+ }
311
+
312
+ .input-group__prefix {
313
+ margin-right: 20px;
314
+ color: #999;
315
+ display: flex;
316
+ }
317
+
318
+ .input-group__container {
319
+ border-radius: 18px;
320
+ background: white;
321
+ padding: 7px;
322
+ padding-left: 16px;
323
+ }
324
+
325
+ /** Undo Popper */
326
+ #overlay-content-node-wrapper {
327
+ position: static !important;
328
+ width: auto !important;
329
+ transform: none !important;
330
+
331
+ /* height: 300px;
336
332
  overflow: scroll; */
337
- }
338
- `,
339
- ];
340
- }
333
+ }
334
+ `,
335
+ ];
341
336
 
342
337
  get slots() {
343
338
  return {
@@ -360,7 +355,7 @@ class WaCombobox extends LionCombobox {
360
355
  /** @configure OverlayMixin */
361
356
  this.opened = true;
362
357
  /** @configure LionCombobox */
363
- this.showAllOnEmpty = true;
358
+ this.showAllOnEmpty = false;
364
359
  /** @configure LionCombobox */
365
360
  this.rotateKeyboardNavigation = false;
366
361
  }
@@ -433,4 +433,4 @@ export const complexObjectChoiceValue = () => html` <complex-object-combobox
433
433
  ## Listbox compatibility
434
434
 
435
435
  All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
436
- See the [listbox documentation](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/listbox/overview.md) for more information.
436
+ See the [listbox documentation](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/listbox/overview.md) for more information.
@@ -54,6 +54,6 @@ import '@lion/ui/define/lion-dialog.js';
54
54
  ## Changing the configuration
55
55
 
56
56
  You can use the `.config` property on the dialog to change the configuration.
57
- The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/overlays/configuration.md).
57
+ The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/overlays/configuration.md).
58
58
 
59
59
  The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`.
@@ -20,9 +20,9 @@ export const main = () => html`
20
20
 
21
21
  We have three specific fieldset implementations:
22
22
 
23
- - [form](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/form/overview.md)
24
- - [checkbox-group](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/checkbox-group/overview.md)
25
- - [radio-group](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/radio-group/overview.md)
23
+ - [form](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/form/overview.md)
24
+ - [checkbox-group](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/checkbox-group/overview.md)
25
+ - [radio-group](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/radio-group/overview.md)
26
26
 
27
27
  A native fieldset element should always have a legend-element for a11y purposes.
28
28
  However, our fieldset element is not native and should not have a legend-element.
@@ -31,8 +31,8 @@ Our fieldset instead has a label attribute or you can add a label with a div- or
31
31
  ## Features
32
32
 
33
33
  - Easy retrieval of form data based on field names
34
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/interaction-states.md)
35
- - Can have [validate](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
34
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/interaction-states.md)
35
+ - Can have [validate](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
36
36
  - Can disable input fields on fieldset level
37
37
  - Accessible out of the box
38
38
 
@@ -8,7 +8,7 @@ import '@lion/ui/define/lion-form.js';
8
8
  ```
9
9
 
10
10
  A web component that enhances the functionality of the native `form` component.
11
- It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/overview.md).
11
+ It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/overview.md).
12
12
 
13
13
  ```js preview-story
14
14
  export const main = () => html`
@@ -26,11 +26,11 @@ export const main = () => html`
26
26
  - Data synchronization with models
27
27
  - Easy retrieval of form data based on field names
28
28
  - Advanced validation possibilities
29
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/interaction-states.md)
29
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/interaction-states.md)
30
30
  - Registration mechanism for form controls
31
31
  - Accessible out of the box
32
32
 
33
- For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/overview.md).
33
+ For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/overview.md).
34
34
 
35
35
  ## Installation
36
36
 
@@ -26,7 +26,7 @@ icons.addIconResolver('lion', (iconset, name) => {
26
26
  ## Icon sets
27
27
 
28
28
  Icons are displayed using icon sets. These are collections of icons, lazily loaded on demand for performance.
29
- See the [system documentation](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
29
+ See the [system documentation](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
30
30
 
31
31
  ```js preview-story
32
32
  export const iconSets = () => html`
@@ -23,7 +23,7 @@ export const main = () => html`<lion-input label="First Name"></lion-input>`;
23
23
  - **before**: does not have an active use case yet, but the option is in place.
24
24
  - **after**: can be used to show a currency or percentage.
25
25
  - Delegates attributes like `type`, `disabled`, `placeholder` and `readonly` to the native input.
26
- - Can make use of [validation](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/validate.md).
26
+ - Can make use of [validation](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/validate.md).
27
27
 
28
28
  ## Installation
29
29
 
@@ -24,13 +24,13 @@ export const main = () => {
24
24
 
25
25
  ## Features
26
26
 
27
- - Based on our [input](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/input/overview.md)
28
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
27
+ - Based on our [input](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
28
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
29
29
  - Option to show currency as a suffix
30
30
  - Option to override locale to change the formatting and parsing
31
31
  - Option to provide additional format options overrides
32
32
  - Default label in different languages
33
- - Can make use of number specific [validators](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
33
+ - Can make use of number specific [validators](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
34
34
  - IsNumber (default)
35
35
  - MinNumber
36
36
  - MaxNumber
@@ -20,9 +20,9 @@ export const negativeNumber = () => html`
20
20
  `;
21
21
  ```
22
22
 
23
- ## Set currency suffix
23
+ ## Set currency label
24
24
 
25
- You can optionally set a currency suffix with the `currency` attribute.
25
+ You can optionally set a currency label with the `currency` attribute, which is visible in the after slot by default.
26
26
 
27
27
  ```js preview-story
28
28
  export const currencySuffix = () => html`
@@ -30,6 +30,8 @@ export const currencySuffix = () => html`
30
30
  `;
31
31
  ```
32
32
 
33
+ > The slot of the currency label can be overwritten by changing the `_currencyDisplayNodeSlot` protected property, it can be prefix, suffix, before and after.
34
+
33
35
  ## Force locale
34
36
 
35
37
  Locale can be forced for a specific `lion-input-amount`. It will format the amount according to this locale.
@@ -16,11 +16,11 @@ export const main = () => html` <lion-input-date label="Date"></lion-input-date>
16
16
 
17
17
  ## Features
18
18
 
19
- - Based on our [input](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/input/overview.md)
20
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
20
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
21
  - Option to override locale to change the formatting and parsing
22
22
  - Default label in different languages
23
- - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
23
+ - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
24
24
  - IsDate (default)
25
25
  - MinDate
26
26
  - MaxDate
@@ -2,7 +2,7 @@
2
2
 
3
3
  A web component based on the date text input field. Its purpose is to provide a way for users to fill in a date with a datepicker.
4
4
  For an input field with a big range, such as `birthday-input`, a datepicker is not the best choice due to the high variance between possible inputs.
5
- We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/input-date/overview.md) for this.
5
+ We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input-date/overview.md) for this.
6
6
 
7
7
  ```js script
8
8
  import { html } from '@mdjs/mdjs-preview';
@@ -18,11 +18,11 @@ export const main = () => {
18
18
  ## Features
19
19
 
20
20
  - Input field with a datepicker to help to choose a date
21
- - Based on our [input-date](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/input-date/overview.md)
22
- - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/calendar/overview.md) inside the datepicker
23
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
+ - Based on our [input-date](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input-date/overview.md)
22
+ - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/calendar/overview.md) inside the datepicker
23
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
24
24
  - Option to overwrite locale to change the formatting and parsing
25
- - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
25
+ - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
26
26
  - IsDate (default)
27
27
  - MinDate
28
28
  - MaxDate
@@ -76,3 +76,14 @@ export const readOnly = () => html`
76
76
  </lion-input-datepicker>
77
77
  `;
78
78
  ```
79
+
80
+ ## Faulty prefilled
81
+
82
+ Faulty prefilled input will be cleared
83
+
84
+ ```js preview-story
85
+ export const faultyPrefilled = () => html`
86
+ <lion-input-datepicker label="Faulty prefiiled" .modelValue="${new Date('30/01/2022')}">
87
+ </lion-input-datepicker>
88
+ `;
89
+ ```
@@ -15,8 +15,8 @@ export const main = () => {
15
15
 
16
16
  ## Features
17
17
 
18
- - Based on our [input](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/components/input/overview.md)
19
- - Makes use of email [validators](https://github.com/ing-bank/lion/blob/7b2a234c6c05397bc2e2e944c5efbdea08d09d2b/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/components/input/overview.md)
19
+ - Makes use of email [validators](https://github.com/ing-bank/lion/blob/951de3e9b282ce8b8797f9aae890f125f96ee5ce/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
20
20
  - IsEmail (default)
21
21
 
22
22
  ## Installation
@@ -0,0 +1,3 @@
1
+ # Input File ||20
2
+
3
+ -> go to Overview