@baloise/ds-core 16.1.0 → 16.2.0-nightly.20240520

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 (220) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/bal-app.js +1 -85
  4. package/components/bal-app2.js +87 -0
  5. package/components/bal-date.js +3 -1
  6. package/components/bal-doc-app.d.ts +11 -0
  7. package/components/bal-doc-app.js +260 -0
  8. package/components/bal-footer.js +7 -2
  9. package/components/bal-input-date2.js +15 -3
  10. package/components/index.js +6 -289
  11. package/components/initialize.js +288 -0
  12. package/components/mask-util.js +3 -0
  13. package/components/scroll.js +1 -1
  14. package/components/tokens.esm.js +1 -1
  15. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  16. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  17. package/dist/baloise-design-system/index.esm.js +1 -1
  18. package/dist/baloise-design-system/{p-74f4b9818b.system.entry.js → p-0da7dd220b.system.entry.js} +1 -1
  19. package/dist/baloise-design-system/{p-9a0640d065.entry.js → p-118ad7cea6.entry.js} +1 -1
  20. package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
  21. package/dist/baloise-design-system/p-16b1404ab3.system.entry.js +1 -0
  22. package/dist/baloise-design-system/{p-bcebf41b74.entry.js → p-1705a9d7e3.entry.js} +1 -1
  23. package/dist/baloise-design-system/p-1876e0cbba.entry.js +1 -0
  24. package/dist/baloise-design-system/p-1a158488.js +1 -0
  25. package/dist/baloise-design-system/{p-8c209ac52b.system.entry.js → p-1b9dff88d5.system.entry.js} +1 -1
  26. package/dist/baloise-design-system/{p-f233fe25.system.js → p-1d351673.system.js} +1 -1
  27. package/dist/baloise-design-system/{p-14ae0709.system.js → p-28ec9e9e.system.js} +1 -1
  28. package/dist/baloise-design-system/{p-10b8686d91.entry.js → p-2a17ba1022.entry.js} +1 -1
  29. package/dist/baloise-design-system/p-317cee9b56.system.entry.js +1 -0
  30. package/dist/baloise-design-system/{p-9dc5cb62e3.system.entry.js → p-3586f88589.system.entry.js} +1 -1
  31. package/dist/baloise-design-system/p-360068a4.system.js +1 -0
  32. package/dist/baloise-design-system/{p-25da216e4f.entry.js → p-360c2a66c6.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-a8022ee701.entry.js → p-3d240c5c81.entry.js} +1 -1
  34. package/dist/baloise-design-system/{p-d919753ed0.system.entry.js → p-3e529f570b.system.entry.js} +1 -1
  35. package/dist/baloise-design-system/p-45e0c0783b.entry.js +1 -0
  36. package/dist/baloise-design-system/p-4afba8511a.system.entry.js +1 -0
  37. package/dist/baloise-design-system/{p-25e0d82e89.system.entry.js → p-5032aab01c.system.entry.js} +1 -1
  38. package/dist/baloise-design-system/p-51c0348938.entry.js +1 -0
  39. package/dist/baloise-design-system/p-53ea832c.system.js +1 -0
  40. package/dist/baloise-design-system/p-54f81c32.js +1 -1
  41. package/dist/baloise-design-system/{p-135c5759c5.entry.js → p-5d21eab970.entry.js} +1 -1
  42. package/dist/baloise-design-system/p-5f26e92f.system.js +1 -0
  43. package/dist/baloise-design-system/{p-f12abda2db.entry.js → p-654fadfb50.entry.js} +1 -1
  44. package/dist/baloise-design-system/p-6648acba05.entry.js +1 -0
  45. package/dist/baloise-design-system/p-6d1b6215.js +1 -0
  46. package/dist/baloise-design-system/{p-58fc8247.js → p-6e0f125e.js} +1 -1
  47. package/dist/baloise-design-system/p-6f4a362824.system.entry.js +1 -0
  48. package/dist/baloise-design-system/{p-ddf9b2a289.entry.js → p-6f51f1584d.entry.js} +1 -1
  49. package/dist/baloise-design-system/p-7291766c.system.js +1 -0
  50. package/dist/baloise-design-system/p-75e3e696.js +1 -0
  51. package/dist/baloise-design-system/{p-cc61fac8.system.js → p-7a6d7f71.system.js} +1 -1
  52. package/dist/baloise-design-system/{p-bb3914c87a.system.entry.js → p-8be56c8563.system.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-a97cbb7dda.entry.js → p-9adfffee09.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-8fe94b9e21.entry.js → p-9d488fa0c0.entry.js} +1 -1
  55. package/dist/baloise-design-system/p-a1112158.js +1 -0
  56. package/dist/baloise-design-system/{p-d16557d133.system.entry.js → p-ad8d3b7af1.system.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-f1b95d78af.system.entry.js → p-ae7da22fd0.system.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-cd8e72d87f.system.entry.js → p-af617c9d1e.system.entry.js} +1 -1
  59. package/dist/baloise-design-system/{p-0fed7a5f26.system.entry.js → p-b69f890d5d.system.entry.js} +1 -1
  60. package/dist/baloise-design-system/p-ba14aa7026.system.entry.js +1 -0
  61. package/dist/baloise-design-system/{p-62b792a34b.system.entry.js → p-c4ebb509e1.system.entry.js} +1 -1
  62. package/dist/baloise-design-system/p-cef24f8c62.entry.js +1 -0
  63. package/dist/baloise-design-system/{p-62ab1f0ae2.system.entry.js → p-d1bc985c0d.system.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-f8974d743d.entry.js → p-d2018cca46.entry.js} +1 -1
  65. package/dist/baloise-design-system/{p-1facd2a3f2.entry.js → p-dc45a57023.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-3128128969.system.entry.js → p-dfd76ae4f5.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-f0b43f1452.system.entry.js → p-e11d20742b.system.entry.js} +1 -1
  68. package/dist/baloise-design-system/p-e8ffddeb.js +1 -0
  69. package/dist/baloise-design-system/{p-4aba4c66ee.entry.js → p-ed7e1e452f.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-60e94f8144.entry.js → p-eeba8d012b.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-013b4c72.system.js → p-f959646a.system.js} +1 -1
  72. package/dist/cjs/app-globals-5fd73c0c.js +7 -0
  73. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  74. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +14 -3
  75. package/dist/cjs/bal-date.cjs.entry.js +2 -1
  76. package/dist/cjs/bal-datepicker.cjs.entry.js +3 -3
  77. package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
  78. package/dist/cjs/bal-footer.cjs.entry.js +7 -2
  79. package/dist/cjs/bal-hint_3.cjs.entry.js +4 -4
  80. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  81. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  82. package/dist/cjs/bal-modal_3.cjs.entry.js +1 -1
  83. package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
  84. package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
  85. package/dist/cjs/{bal-snackbar.cjs.entry.js → bal-notices_3.cjs.entry.js} +67 -0
  86. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  87. package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
  88. package/dist/cjs/bal-progress-bar.cjs.entry.js +3 -3
  89. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  90. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  91. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  92. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  93. package/dist/cjs/{breakpoints.decorator-47fd6060.js → breakpoints.decorator-91a1d9d3.js} +1 -1
  94. package/dist/cjs/{breakpoints.subject-66093c8f.js → breakpoints.subject-e2c841a3.js} +1 -1
  95. package/dist/cjs/{app-globals-ae3a8623.js → global-2562a984.js} +2 -4
  96. package/dist/cjs/index.cjs.js +5 -3
  97. package/dist/cjs/initialize-2a19d091.js +1 -1
  98. package/dist/cjs/loader.cjs.js +3 -2
  99. package/dist/cjs/mask-util-19c28b4a.js +5 -0
  100. package/dist/cjs/{scroll-b839ffe1.js → scroll-5d6ac91d.js} +1 -1
  101. package/dist/cjs/{tokens.esm-bb0ef2db.js → tokens.esm-19e86f58.js} +1 -1
  102. package/dist/collection/collection-manifest.json +9 -16
  103. package/dist/collection/components/bal-date/bal-date.js +21 -2
  104. package/dist/collection/components/bal-footer/bal-footer.css +1 -1
  105. package/dist/collection/components/bal-footer/bal-footer.js +6 -1
  106. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +19 -0
  107. package/dist/collection/components/bal-select/bal-select.js +1 -1
  108. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  109. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +229 -0
  110. package/dist/collection/index.js +1 -0
  111. package/dist/collection/utils/constants/version.constant.js +1 -1
  112. package/dist/collection/utils/mask/__test__/mask-component.mock.js +1 -0
  113. package/dist/collection/utils/mask/context/mask-context.js +1 -0
  114. package/dist/collection/utils/mask/mask-util.js +1 -0
  115. package/dist/collection/utils/mask/mask.js +2 -2
  116. package/dist/collection/utils/mask/types/mask-date.js +10 -1
  117. package/dist/collection/utils/scroll.js +1 -1
  118. package/dist/esm/app-globals-970bab17.js +5 -0
  119. package/dist/esm/bal-carousel_2.entry.js +3 -3
  120. package/dist/esm/bal-date-calendar_2.entry.js +14 -3
  121. package/dist/esm/bal-date.entry.js +2 -1
  122. package/dist/esm/bal-datepicker.entry.js +3 -3
  123. package/dist/esm/bal-doc-app.entry.js +227 -0
  124. package/dist/esm/bal-footer.entry.js +7 -2
  125. package/dist/esm/bal-hint_3.entry.js +4 -4
  126. package/dist/esm/bal-list_8.entry.js +3 -3
  127. package/dist/esm/bal-logo.entry.js +3 -3
  128. package/dist/esm/bal-modal_3.entry.js +1 -1
  129. package/dist/esm/bal-nav_8.entry.js +4 -4
  130. package/dist/esm/bal-navbar_5.entry.js +4 -4
  131. package/dist/esm/{bal-snackbar.entry.js → bal-notices_3.entry.js} +67 -2
  132. package/dist/esm/bal-pagination.entry.js +3 -3
  133. package/dist/esm/bal-popover_2.entry.js +3 -3
  134. package/dist/esm/bal-progress-bar.entry.js +3 -3
  135. package/dist/esm/bal-shape.entry.js +1 -1
  136. package/dist/esm/bal-steps.entry.js +3 -3
  137. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  138. package/dist/esm/baloise-design-system.js +3 -2
  139. package/dist/esm/{breakpoints.decorator-021fbaf0.js → breakpoints.decorator-34f598ad.js} +1 -1
  140. package/dist/esm/{breakpoints.subject-ef464f89.js → breakpoints.subject-8598eef2.js} +1 -1
  141. package/dist/esm/{app-globals-b0dd0fc4.js → global-63f4bcec.js} +2 -4
  142. package/dist/esm/index.js +5 -4
  143. package/dist/esm/initialize-e216cfe4.js +1 -1
  144. package/dist/esm/loader.js +3 -2
  145. package/dist/esm/mask-util-71edc2b8.js +3 -0
  146. package/dist/esm/{scroll-972c7ce5.js → scroll-e341d95b.js} +1 -1
  147. package/dist/esm/{tokens.esm-aab9bd61.js → tokens.esm-276810ce.js} +1 -1
  148. package/dist/esm-es5/app-globals-970bab17.js +1 -0
  149. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  150. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  151. package/dist/esm-es5/bal-date.entry.js +1 -1
  152. package/dist/esm-es5/bal-datepicker.entry.js +1 -1
  153. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  154. package/dist/esm-es5/bal-footer.entry.js +1 -1
  155. package/dist/esm-es5/bal-hint_3.entry.js +1 -1
  156. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  157. package/dist/esm-es5/bal-logo.entry.js +1 -1
  158. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  159. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  160. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  161. package/dist/esm-es5/bal-notices_3.entry.js +1 -0
  162. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  163. package/dist/esm-es5/bal-popover_2.entry.js +1 -1
  164. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  165. package/dist/esm-es5/bal-shape.entry.js +1 -1
  166. package/dist/esm-es5/bal-steps.entry.js +1 -1
  167. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  168. package/dist/esm-es5/baloise-design-system.js +1 -1
  169. package/dist/esm-es5/{breakpoints.decorator-021fbaf0.js → breakpoints.decorator-34f598ad.js} +1 -1
  170. package/dist/esm-es5/{breakpoints.subject-ef464f89.js → breakpoints.subject-8598eef2.js} +1 -1
  171. package/dist/esm-es5/global-63f4bcec.js +1 -0
  172. package/dist/esm-es5/index.js +1 -1
  173. package/dist/esm-es5/initialize-e216cfe4.js +1 -1
  174. package/dist/esm-es5/loader.js +1 -1
  175. package/dist/esm-es5/mask-util-71edc2b8.js +1 -0
  176. package/dist/esm-es5/{scroll-972c7ce5.js → scroll-e341d95b.js} +1 -1
  177. package/dist/html.html-data.json +10 -2
  178. package/dist/types/components/bal-date/bal-date.d.ts +5 -1
  179. package/dist/types/components/bal-footer/bal-footer.d.ts +1 -0
  180. package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +4 -0
  181. package/dist/types/components/bal-select/bal-select.d.ts +1 -1
  182. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  183. package/dist/types/components.d.ts +57 -4
  184. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +81 -0
  185. package/dist/types/index.d.ts +1 -0
  186. package/dist/types/utils/mask/__test__/mask-component.mock.d.ts +1 -0
  187. package/dist/types/utils/mask/component/mask-component-interfaces.d.ts +1 -0
  188. package/dist/types/utils/mask/context/mask-context.d.ts +2 -0
  189. package/dist/types/utils/mask/mask-util.d.ts +1 -0
  190. package/dist/types/utils/mask/mask.d.ts +3 -1
  191. package/dist/types/utils/mask/types/mask-date.d.ts +3 -1
  192. package/package.json +7 -7
  193. package/dist/baloise-design-system/p-06e9a468fc.system.entry.js +0 -1
  194. package/dist/baloise-design-system/p-18e2e391e0.system.entry.js +0 -1
  195. package/dist/baloise-design-system/p-19556c290a.entry.js +0 -1
  196. package/dist/baloise-design-system/p-5951d6c64b.system.entry.js +0 -1
  197. package/dist/baloise-design-system/p-5b571a9fb1.entry.js +0 -1
  198. package/dist/baloise-design-system/p-7c42a363f3.entry.js +0 -1
  199. package/dist/baloise-design-system/p-acb5cea0.system.js +0 -1
  200. package/dist/baloise-design-system/p-b8d99064.js +0 -1
  201. package/dist/baloise-design-system/p-b9f197815f.entry.js +0 -1
  202. package/dist/baloise-design-system/p-bcca1ed3.system.js +0 -1
  203. package/dist/baloise-design-system/p-c0e6e5565c.system.entry.js +0 -1
  204. package/dist/baloise-design-system/p-d02efb178c.entry.js +0 -1
  205. package/dist/baloise-design-system/p-d7a758b3.js +0 -1
  206. package/dist/baloise-design-system/p-dc05800595.system.entry.js +0 -1
  207. package/dist/baloise-design-system/p-e4de708de1.system.entry.js +0 -1
  208. package/dist/baloise-design-system/p-e78a6409.js +0 -1
  209. package/dist/baloise-design-system/p-ffc0bea891.entry.js +0 -1
  210. package/dist/cjs/bal-notices.cjs.entry.js +0 -25
  211. package/dist/cjs/bal-toast.cjs.entry.js +0 -54
  212. package/dist/esm/bal-notices.entry.js +0 -21
  213. package/dist/esm/bal-toast.entry.js +0 -50
  214. package/dist/esm-es5/app-globals-b0dd0fc4.js +0 -1
  215. package/dist/esm-es5/bal-notices.entry.js +0 -1
  216. package/dist/esm-es5/bal-snackbar.entry.js +0 -1
  217. package/dist/esm-es5/bal-toast.entry.js +0 -1
  218. /package/dist/baloise-design-system/{p-7b9c33ba.js → p-127aa24d.js} +0 -0
  219. /package/dist/baloise-design-system/{p-03c136e2.system.js → p-81654295.system.js} +0 -0
  220. /package/dist/esm-es5/{tokens.esm-aab9bd61.js → tokens.esm-276810ce.js} +0 -0
@@ -0,0 +1,229 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import * as balIcons from "../../../../../../icons/src/index";
3
+ import { updateBalIcons } from "../../../utils/config";
4
+ import { balBrowser } from "../../../utils/browser";
5
+ import globalScript from "../../../global";
6
+ /**
7
+ * @internal
8
+ */
9
+ export class DocApp {
10
+ constructor() {
11
+ this.logComponents = '';
12
+ this.logLifecycle = true;
13
+ this.logEvents = true;
14
+ this.logRender = true;
15
+ this.logCustom = true;
16
+ this.stickyFooter = false;
17
+ this.region = undefined;
18
+ this.language = undefined;
19
+ this.animated = true;
20
+ }
21
+ connectedCallback() {
22
+ globalScript();
23
+ updateBalIcons(balIcons);
24
+ }
25
+ componentDidRender() {
26
+ const logConfig = {
27
+ components: this.logComponents
28
+ .split(',')
29
+ .map(c => c.trim())
30
+ .filter(c => c !== ''),
31
+ lifecycle: this.logLifecycle,
32
+ event: this.logEvents,
33
+ render: this.logRender,
34
+ custom: this.logCustom,
35
+ };
36
+ if (balBrowser.hasWindow) {
37
+ if (this.logComponents) {
38
+ ;
39
+ window.BaloiseDesignSystem.config.logger = logConfig;
40
+ }
41
+ if (this.region) {
42
+ ;
43
+ window.BaloiseDesignSystem.config.region = this.region;
44
+ }
45
+ if (this.language) {
46
+ ;
47
+ window.BaloiseDesignSystem.config.language = this.language;
48
+ }
49
+ }
50
+ }
51
+ render() {
52
+ return (h(Host, null, h("bal-app", { animated: this.animated }, h("div", { class: { 'has-sticky-footer': this.stickyFooter } }, h("slot", null)))));
53
+ }
54
+ static get is() { return "bal-doc-app"; }
55
+ static get originalStyleUrls() {
56
+ return {
57
+ "$": ["bal-doc-app.sass"]
58
+ };
59
+ }
60
+ static get styleUrls() {
61
+ return {
62
+ "$": ["bal-doc-app.css"]
63
+ };
64
+ }
65
+ static get properties() {
66
+ return {
67
+ "logComponents": {
68
+ "type": "string",
69
+ "mutable": false,
70
+ "complexType": {
71
+ "original": "string",
72
+ "resolved": "string",
73
+ "references": {}
74
+ },
75
+ "required": false,
76
+ "optional": false,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": ""
80
+ },
81
+ "attribute": "log-components",
82
+ "reflect": false,
83
+ "defaultValue": "''"
84
+ },
85
+ "logLifecycle": {
86
+ "type": "boolean",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "boolean",
90
+ "resolved": "boolean",
91
+ "references": {}
92
+ },
93
+ "required": false,
94
+ "optional": false,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ },
99
+ "attribute": "log-lifecycle",
100
+ "reflect": false,
101
+ "defaultValue": "true"
102
+ },
103
+ "logEvents": {
104
+ "type": "boolean",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "boolean",
108
+ "resolved": "boolean",
109
+ "references": {}
110
+ },
111
+ "required": false,
112
+ "optional": false,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": ""
116
+ },
117
+ "attribute": "log-events",
118
+ "reflect": false,
119
+ "defaultValue": "true"
120
+ },
121
+ "logRender": {
122
+ "type": "boolean",
123
+ "mutable": false,
124
+ "complexType": {
125
+ "original": "boolean",
126
+ "resolved": "boolean",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": false,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": ""
134
+ },
135
+ "attribute": "log-render",
136
+ "reflect": false,
137
+ "defaultValue": "true"
138
+ },
139
+ "logCustom": {
140
+ "type": "boolean",
141
+ "mutable": false,
142
+ "complexType": {
143
+ "original": "boolean",
144
+ "resolved": "boolean",
145
+ "references": {}
146
+ },
147
+ "required": false,
148
+ "optional": false,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": ""
152
+ },
153
+ "attribute": "log-custom",
154
+ "reflect": false,
155
+ "defaultValue": "true"
156
+ },
157
+ "stickyFooter": {
158
+ "type": "boolean",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "boolean",
162
+ "resolved": "boolean",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "attribute": "sticky-footer",
172
+ "reflect": false,
173
+ "defaultValue": "false"
174
+ },
175
+ "region": {
176
+ "type": "string",
177
+ "mutable": false,
178
+ "complexType": {
179
+ "original": "string",
180
+ "resolved": "string",
181
+ "references": {}
182
+ },
183
+ "required": false,
184
+ "optional": true,
185
+ "docs": {
186
+ "tags": [],
187
+ "text": ""
188
+ },
189
+ "attribute": "region",
190
+ "reflect": false
191
+ },
192
+ "language": {
193
+ "type": "string",
194
+ "mutable": false,
195
+ "complexType": {
196
+ "original": "string",
197
+ "resolved": "string",
198
+ "references": {}
199
+ },
200
+ "required": false,
201
+ "optional": true,
202
+ "docs": {
203
+ "tags": [],
204
+ "text": ""
205
+ },
206
+ "attribute": "language",
207
+ "reflect": false
208
+ },
209
+ "animated": {
210
+ "type": "boolean",
211
+ "mutable": false,
212
+ "complexType": {
213
+ "original": "boolean",
214
+ "resolved": "boolean",
215
+ "references": {}
216
+ },
217
+ "required": false,
218
+ "optional": false,
219
+ "docs": {
220
+ "tags": [],
221
+ "text": "Disables all animation inside the bal-app. Can be used for simplify e2e testing."
222
+ },
223
+ "attribute": "animated",
224
+ "reflect": true,
225
+ "defaultValue": "true"
226
+ }
227
+ };
228
+ }
229
+ }
@@ -41,6 +41,7 @@ export { balBreakpoints, balBreakpointSubject, BalBreakpointSubject, BalBreakpoi
41
41
  export { balOrientationSubject, BalOrientationSubject, } from './utils/orientation';
42
42
  export { BalSwipeSubject } from './utils/swipe';
43
43
  export { BalDate } from './utils/date';
44
+ export { INVALID_VALUE } from './utils/mask/mask-util';
44
45
  /**
45
46
  * Controllers
46
47
  */
@@ -1,2 +1,2 @@
1
1
  // generated by .build/version.js
2
- export const VERSION = '16.1.0';
2
+ export const VERSION = '16.2.0-nightly.20240520';
@@ -1,6 +1,7 @@
1
1
  export class MaskComponentMock {
2
2
  constructor() {
3
3
  this.value = undefined;
4
+ this.allowInvalidValue = false;
4
5
  this.inputValue = undefined;
5
6
  this.initialValue = '';
6
7
  this.focused = false;
@@ -7,6 +7,7 @@ export class MaskContext {
7
7
  this._value = this._options.component.nativeInput.value;
8
8
  }
9
9
  this.position = new MaskPosition(this._options);
10
+ this.component = this._options.component;
10
11
  }
11
12
  get target() {
12
13
  if (this._options.component && this._options.component.nativeInput) {
@@ -0,0 +1 @@
1
+ export const INVALID_VALUE = 'INVALID_VALUE';
@@ -81,7 +81,7 @@ export class AbstractMask {
81
81
  context.value = inputValue;
82
82
  context.position.toEnd();
83
83
  }
84
- onParseValue(inputValue) {
84
+ onParseValue(inputValue, options = { allowInvalidValue: false }) {
85
85
  if (inputValue) {
86
86
  return inputValue.trim();
87
87
  }
@@ -146,7 +146,7 @@ export class AbstractMask {
146
146
  }
147
147
  else {
148
148
  this.onBlur(context);
149
- context.submit('blur', this.onParseValue(context.value));
149
+ context.submit('blur', this.onParseValue(context.value, { allowInvalidValue: context.component.allowInvalidValue }));
150
150
  }
151
151
  }
152
152
  }
@@ -3,6 +3,7 @@ import { NUMBER_KEYS } from "../../constants/keys.constant";
3
3
  import { MaskBlock } from "../blocks";
4
4
  import { AbstractMask } from "../mask";
5
5
  import { BalDate } from "../../date";
6
+ import { INVALID_VALUE } from "../mask-util";
6
7
  export class DateMask extends AbstractMask {
7
8
  constructor() {
8
9
  super([
@@ -81,12 +82,15 @@ export class DateMask extends AbstractMask {
81
82
  fi: 'V',
82
83
  };
83
84
  }
84
- onParseValue(inputValue) {
85
+ onParseValue(inputValue, options = { allowInvalidValue: false }) {
85
86
  if (inputValue) {
86
87
  const date = BalDate.fromAnyFormat(this.blocks.getRawValueWithoutMask(inputValue));
87
88
  if (date.isValid) {
88
89
  return date.toISODate();
89
90
  }
91
+ else if (options && options.allowInvalidValue) {
92
+ return INVALID_VALUE;
93
+ }
90
94
  }
91
95
  return '';
92
96
  }
@@ -116,5 +120,10 @@ export class DateMask extends AbstractMask {
116
120
  context.value = formattedDate;
117
121
  }
118
122
  }
123
+ else if (context.component.allowInvalidValue) {
124
+ if (rawValue !== context.value) {
125
+ context.value = rawValue;
126
+ }
127
+ }
119
128
  }
120
129
  }
@@ -60,7 +60,7 @@ export class BalScrollHandler {
60
60
  }
61
61
  }
62
62
  disable() {
63
- if (this.target) {
63
+ if (!this.disabled && this.target) {
64
64
  if (balBrowser.hasWindow && balBrowser.hasDocument) {
65
65
  this.x = window.pageXOffset || document.documentElement.scrollLeft;
66
66
  this.y = window.pageYOffset || document.documentElement.scrollTop;
@@ -0,0 +1,5 @@
1
+ import { g as globalScript } from './global-63f4bcec.js';
2
+
3
+ const globalScripts = globalScript;
4
+
5
+ export { globalScripts as g };
@@ -3,12 +3,12 @@ import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
3
3
  import { l as raf } from './helpers-c201154e.js';
4
4
  import { B as BEM } from './bem-8c7d2eb0.js';
5
5
  import { s as stopEventBubbling } from './form-input-28a08ec5.js';
6
- import { L as ListenToBreakpoints } from './breakpoints.decorator-021fbaf0.js';
6
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-34f598ad.js';
7
7
  import { g as getComputedWidth } from './style-ca1bd202.js';
8
8
  import { L as ListenToMutation } from './mutation.decorator-c7b24839.js';
9
9
  import { L as ListenToSwipe } from './swipe.decorator-9d904794.js';
10
10
  import { L as ListenToResize } from './resize.decorator-f70563b5.js';
11
- import { b as balBreakpoints } from './breakpoints.subject-ef464f89.js';
11
+ import { b as balBreakpoints } from './breakpoints.subject-8598eef2.js';
12
12
  import { d as defaultConfig } from './config.default-7efdc82d.js';
13
13
  import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
14
14
  import { i as inheritAttributes } from './attributes-4fa7040f.js';
@@ -18,7 +18,7 @@ import './config.utils-6ac6c9bd.js';
18
18
  import './listener-04842ae9.js';
19
19
  import './swipe.subject-f1d64e8d.js';
20
20
  import './device-8c6d2881.js';
21
- import './tokens.esm-aab9bd61.js';
21
+ import './tokens.esm-276810ce.js';
22
22
  import './log-dfd1c19f.js';
23
23
 
24
24
  const TabControl = ({ value, items, onControlChange }) => {
@@ -13,6 +13,7 @@ import { i as inheritAttributes } from './attributes-4fa7040f.js';
13
13
  import { c as inputSetFocus, d as inputSetBlur } from './form-input-28a08ec5.js';
14
14
  import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
15
15
  import { N as NUMBER_KEYS } from './keys.constant-0eb059e0.js';
16
+ import { I as INVALID_VALUE } from './mask-util-71edc2b8.js';
16
17
  import './_commonjsHelpers-1c8beb5f.js';
17
18
  import './config.utils-6ac6c9bd.js';
18
19
  import './browser-a8073d92.js';
@@ -548,6 +549,7 @@ class MaskContext {
548
549
  this._value = this._options.component.nativeInput.value;
549
550
  }
550
551
  this.position = new MaskPosition(this._options);
552
+ this.component = this._options.component;
551
553
  }
552
554
  get target() {
553
555
  if (this._options.component && this._options.component.nativeInput) {
@@ -917,7 +919,7 @@ class AbstractMask {
917
919
  context.value = inputValue;
918
920
  context.position.toEnd();
919
921
  }
920
- onParseValue(inputValue) {
922
+ onParseValue(inputValue, options = { allowInvalidValue: false }) {
921
923
  if (inputValue) {
922
924
  return inputValue.trim();
923
925
  }
@@ -982,7 +984,7 @@ class AbstractMask {
982
984
  }
983
985
  else {
984
986
  this.onBlur(context);
985
- context.submit('blur', this.onParseValue(context.value));
987
+ context.submit('blur', this.onParseValue(context.value, { allowInvalidValue: context.component.allowInvalidValue }));
986
988
  }
987
989
  }
988
990
  }
@@ -1172,12 +1174,15 @@ class DateMask extends AbstractMask {
1172
1174
  fi: 'V',
1173
1175
  };
1174
1176
  }
1175
- onParseValue(inputValue) {
1177
+ onParseValue(inputValue, options = { allowInvalidValue: false }) {
1176
1178
  if (inputValue) {
1177
1179
  const date = BalDate.fromAnyFormat(this.blocks.getRawValueWithoutMask(inputValue));
1178
1180
  if (date.isValid) {
1179
1181
  return date.toISODate();
1180
1182
  }
1183
+ else if (options && options.allowInvalidValue) {
1184
+ return INVALID_VALUE;
1185
+ }
1181
1186
  }
1182
1187
  return '';
1183
1188
  }
@@ -1207,6 +1212,11 @@ class DateMask extends AbstractMask {
1207
1212
  context.value = formattedDate;
1208
1213
  }
1209
1214
  }
1215
+ else if (context.component.allowInvalidValue) {
1216
+ if (rawValue !== context.value) {
1217
+ context.value = rawValue;
1218
+ }
1219
+ }
1210
1220
  }
1211
1221
  }
1212
1222
 
@@ -1366,6 +1376,7 @@ const InputDate = class {
1366
1376
  this.hasIconRight = false;
1367
1377
  this.value = undefined;
1368
1378
  this.autoInvalidOff = false;
1379
+ this.allowInvalidValue = false;
1369
1380
  }
1370
1381
  createLogger(log) {
1371
1382
  this.log = log;
@@ -112,6 +112,7 @@ const Date = class {
112
112
  this.maxYearProp = undefined;
113
113
  this.defaultDate = undefined;
114
114
  this.allowedDates = undefined;
115
+ this.allowInvalidValue = false;
115
116
  this.debounce = 0;
116
117
  this.autoInvalidOff = false;
117
118
  }
@@ -283,7 +284,7 @@ const Date = class {
283
284
  const block = BEM.block('date');
284
285
  const blockIcon = block.element('icon');
285
286
  const blockPopup = block.element('popup');
286
- return (h(Host, { id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
287
+ return (h(Host, { id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, allowInvalidValue: this.allowInvalidValue, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
287
288
  }
288
289
  get el() { return getElement(this); }
289
290
  static get watchers() { return {
@@ -12,16 +12,16 @@ import { B as BEM } from './bem-8c7d2eb0.js';
12
12
  import { L as Logger } from './log-dfd1c19f.js';
13
13
  import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
14
14
  import { d as defaultConfig, a as defaultLocale } from './config.default-7efdc82d.js';
15
- import { b as balBreakpoints } from './breakpoints.subject-ef464f89.js';
15
+ import { b as balBreakpoints } from './breakpoints.subject-8598eef2.js';
16
16
  import { g as useBalConfig } from './config.utils-6ac6c9bd.js';
17
- import { L as ListenToBreakpoints } from './breakpoints.decorator-021fbaf0.js';
17
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-34f598ad.js';
18
18
  import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
19
19
  import './browser-a8073d92.js';
20
20
  import './icons.constant-a7885631.js';
21
21
  import './_commonjsHelpers-1c8beb5f.js';
22
22
  import './device-8c6d2881.js';
23
23
  import './listener-04842ae9.js';
24
- import './tokens.esm-aab9bd61.js';
24
+ import './tokens.esm-276810ce.js';
25
25
 
26
26
  /**
27
27
  * @name addDays