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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/components/all.d.ts +0 -2
  2. package/components/all.js +0 -3
  3. package/components/bal-app.js +85 -1
  4. package/components/bal-date.js +3 -1
  5. package/components/bal-footer.js +7 -2
  6. package/components/bal-input-date2.js +15 -3
  7. package/components/index.js +290 -5
  8. package/components/mask-util.js +3 -0
  9. package/components/scroll.js +1 -1
  10. package/components/tokens.esm.js +1 -1
  11. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  12. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  13. package/dist/baloise-design-system/index.esm.js +1 -1
  14. package/dist/baloise-design-system/{p-f959646a.system.js → p-013b4c72.system.js} +1 -1
  15. package/dist/baloise-design-system/{p-12e6222708.entry.js → p-14c1efdb08.entry.js} +1 -1
  16. package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
  17. package/dist/baloise-design-system/p-1a158488.js +1 -0
  18. package/dist/baloise-design-system/{p-6655383a97.entry.js → p-1cae0f6215.entry.js} +1 -1
  19. package/dist/baloise-design-system/{p-f233fe25.system.js → p-1d351673.system.js} +1 -1
  20. package/dist/baloise-design-system/{p-d3b7f290c9.entry.js → p-2a0359206a.entry.js} +1 -1
  21. package/dist/baloise-design-system/{p-e9ae0323bf.entry.js → p-2e9f9838d0.entry.js} +1 -1
  22. package/dist/baloise-design-system/{p-c03fa59efc.entry.js → p-35697fd842.entry.js} +1 -1
  23. package/dist/baloise-design-system/{p-9dc5cb62e3.system.entry.js → p-3586f88589.system.entry.js} +1 -1
  24. package/dist/baloise-design-system/{p-13d0473d5c.entry.js → p-3e3240a165.entry.js} +1 -1
  25. package/dist/baloise-design-system/{p-84d97c84.system.js → p-4122160f.system.js} +1 -1
  26. package/dist/baloise-design-system/p-42bff14b.system.js +1 -0
  27. package/dist/baloise-design-system/p-45e0c0783b.entry.js +1 -0
  28. package/dist/baloise-design-system/{p-2624559a.system.js → p-46962c31.system.js} +1 -1
  29. package/dist/baloise-design-system/p-4afba8511a.system.entry.js +1 -0
  30. package/dist/baloise-design-system/{p-b30852e875.system.entry.js → p-4ba5509697.system.entry.js} +1 -1
  31. package/dist/baloise-design-system/p-51c0348938.entry.js +1 -0
  32. package/dist/baloise-design-system/{p-64a06bb628.entry.js → p-53b032957c.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-47a3898e82.system.entry.js → p-542d4ba42e.system.entry.js} +1 -1
  34. package/dist/baloise-design-system/p-54f81c32.js +1 -1
  35. package/dist/baloise-design-system/{p-2f5dca902b.entry.js → p-594ed43172.entry.js} +1 -1
  36. package/dist/baloise-design-system/{p-4232c923c3.system.entry.js → p-5b9789ea9b.system.entry.js} +1 -1
  37. package/dist/baloise-design-system/p-5f26e92f.system.js +1 -0
  38. package/dist/baloise-design-system/{p-195585f39c.entry.js → p-6b62dde878.entry.js} +1 -1
  39. package/dist/baloise-design-system/{p-53cee50940.system.entry.js → p-6cec985f79.system.entry.js} +1 -1
  40. package/dist/baloise-design-system/{p-58fc8247.js → p-6e0f125e.js} +1 -1
  41. package/dist/baloise-design-system/p-6f4a362824.system.entry.js +1 -0
  42. package/dist/baloise-design-system/{p-947b33f7.js → p-71109949.js} +1 -1
  43. package/dist/baloise-design-system/{p-d6aa526659.entry.js → p-7dc6846c06.entry.js} +1 -1
  44. package/dist/baloise-design-system/{p-e945d757c9.system.entry.js → p-7e909d3137.system.entry.js} +1 -1
  45. package/dist/baloise-design-system/{p-86eeae36fa.system.entry.js → p-90aa7db300.system.entry.js} +1 -1
  46. package/dist/baloise-design-system/{p-f4cd3ba2f0.entry.js → p-ae372094d2.entry.js} +1 -1
  47. package/dist/baloise-design-system/{p-4c799e91b1.system.entry.js → p-b1227cb400.system.entry.js} +1 -1
  48. package/dist/baloise-design-system/p-ba14aa7026.system.entry.js +1 -0
  49. package/dist/baloise-design-system/p-bcca1ed3.system.js +1 -0
  50. package/dist/baloise-design-system/{p-dc3bfd6ee9.system.entry.js → p-bff4f2e518.system.entry.js} +1 -1
  51. package/dist/baloise-design-system/{p-3d0159890b.system.entry.js → p-c907685cee.system.entry.js} +1 -1
  52. package/dist/baloise-design-system/p-cef24f8c62.entry.js +1 -0
  53. package/dist/baloise-design-system/{p-67eab4f8cb.system.entry.js → p-d458e5e328.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-1facd2a3f2.entry.js → p-dc45a57023.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-00553c7763.system.entry.js → p-e18c0e64a7.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-4703a74f25.system.entry.js → p-e3ef34506f.system.entry.js} +1 -1
  57. package/dist/baloise-design-system/p-e78a6409.js +1 -0
  58. package/dist/baloise-design-system/{p-c7cd363617.entry.js → p-e7bd7e7c5d.entry.js} +1 -1
  59. package/dist/baloise-design-system/{p-2334f35b62.entry.js → p-e7f7fee312.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-2d830440.js → p-eb10ad25.js} +1 -1
  61. package/dist/baloise-design-system/{p-e68999cd51.system.entry.js → p-f4e7710a45.system.entry.js} +1 -1
  62. package/dist/cjs/{global-2562a984.js → app-globals-ae3a8623.js} +4 -2
  63. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  64. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +14 -3
  65. package/dist/cjs/bal-date.cjs.entry.js +2 -1
  66. package/dist/cjs/bal-datepicker.cjs.entry.js +3 -3
  67. package/dist/cjs/bal-footer.cjs.entry.js +7 -2
  68. package/dist/cjs/bal-hint_3.cjs.entry.js +4 -4
  69. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  70. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  71. package/dist/cjs/bal-modal_3.cjs.entry.js +1 -1
  72. package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
  73. package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
  74. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  75. package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
  76. package/dist/cjs/bal-progress-bar.cjs.entry.js +3 -3
  77. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  78. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  79. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  80. package/dist/cjs/baloise-design-system.cjs.js +2 -3
  81. package/dist/cjs/{breakpoints.decorator-1af22a0b.js → breakpoints.decorator-555e2caf.js} +1 -1
  82. package/dist/cjs/{breakpoints.subject-92d5b596.js → breakpoints.subject-0d00c248.js} +1 -1
  83. package/dist/cjs/index.cjs.js +5 -3
  84. package/dist/cjs/initialize-2a19d091.js +1 -1
  85. package/dist/cjs/loader.cjs.js +2 -3
  86. package/dist/cjs/mask-util-19c28b4a.js +5 -0
  87. package/dist/cjs/{scroll-b839ffe1.js → scroll-5d6ac91d.js} +1 -1
  88. package/dist/cjs/{tokens.esm-c267b8b2.js → tokens.esm-93d7e2f7.js} +1 -1
  89. package/dist/collection/collection-manifest.json +1 -2
  90. package/dist/collection/components/bal-date/bal-date.js +21 -2
  91. package/dist/collection/components/bal-footer/bal-footer.css +1 -1
  92. package/dist/collection/components/bal-footer/bal-footer.js +6 -1
  93. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +19 -0
  94. package/dist/collection/components/bal-select/bal-select.js +1 -1
  95. package/dist/collection/index.js +1 -0
  96. package/dist/collection/utils/constants/version.constant.js +1 -1
  97. package/dist/collection/utils/mask/__test__/mask-component.mock.js +1 -0
  98. package/dist/collection/utils/mask/context/mask-context.js +1 -0
  99. package/dist/collection/utils/mask/mask-util.js +1 -0
  100. package/dist/collection/utils/mask/mask.js +2 -2
  101. package/dist/collection/utils/mask/types/mask-date.js +10 -1
  102. package/dist/collection/utils/scroll.js +1 -1
  103. package/dist/esm/{global-63f4bcec.js → app-globals-b0dd0fc4.js} +4 -2
  104. package/dist/esm/bal-carousel_2.entry.js +3 -3
  105. package/dist/esm/bal-date-calendar_2.entry.js +14 -3
  106. package/dist/esm/bal-date.entry.js +2 -1
  107. package/dist/esm/bal-datepicker.entry.js +3 -3
  108. package/dist/esm/bal-footer.entry.js +7 -2
  109. package/dist/esm/bal-hint_3.entry.js +4 -4
  110. package/dist/esm/bal-list_8.entry.js +3 -3
  111. package/dist/esm/bal-logo.entry.js +3 -3
  112. package/dist/esm/bal-modal_3.entry.js +1 -1
  113. package/dist/esm/bal-nav_8.entry.js +4 -4
  114. package/dist/esm/bal-navbar_5.entry.js +4 -4
  115. package/dist/esm/bal-pagination.entry.js +3 -3
  116. package/dist/esm/bal-popover_2.entry.js +3 -3
  117. package/dist/esm/bal-progress-bar.entry.js +3 -3
  118. package/dist/esm/bal-shape.entry.js +1 -1
  119. package/dist/esm/bal-steps.entry.js +3 -3
  120. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  121. package/dist/esm/baloise-design-system.js +2 -3
  122. package/dist/esm/{breakpoints.decorator-4adc321a.js → breakpoints.decorator-dad33c75.js} +1 -1
  123. package/dist/esm/{breakpoints.subject-a1204db2.js → breakpoints.subject-ba72fe99.js} +1 -1
  124. package/dist/esm/index.js +5 -4
  125. package/dist/esm/initialize-e216cfe4.js +1 -1
  126. package/dist/esm/loader.js +2 -3
  127. package/dist/esm/mask-util-71edc2b8.js +3 -0
  128. package/dist/esm/{scroll-972c7ce5.js → scroll-e341d95b.js} +1 -1
  129. package/dist/esm/{tokens.esm-1091fd9b.js → tokens.esm-366a5b1e.js} +1 -1
  130. package/dist/esm-es5/app-globals-b0dd0fc4.js +1 -0
  131. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  132. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  133. package/dist/esm-es5/bal-date.entry.js +1 -1
  134. package/dist/esm-es5/bal-datepicker.entry.js +1 -1
  135. package/dist/esm-es5/bal-footer.entry.js +1 -1
  136. package/dist/esm-es5/bal-hint_3.entry.js +1 -1
  137. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  138. package/dist/esm-es5/bal-logo.entry.js +1 -1
  139. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  140. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  141. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  142. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  143. package/dist/esm-es5/bal-popover_2.entry.js +1 -1
  144. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  145. package/dist/esm-es5/bal-shape.entry.js +1 -1
  146. package/dist/esm-es5/bal-steps.entry.js +1 -1
  147. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  148. package/dist/esm-es5/baloise-design-system.js +1 -1
  149. package/dist/esm-es5/breakpoints.decorator-dad33c75.js +1 -0
  150. package/dist/esm-es5/{breakpoints.subject-a1204db2.js → breakpoints.subject-ba72fe99.js} +1 -1
  151. package/dist/esm-es5/index.js +1 -1
  152. package/dist/esm-es5/initialize-e216cfe4.js +1 -1
  153. package/dist/esm-es5/loader.js +1 -1
  154. package/dist/esm-es5/mask-util-71edc2b8.js +1 -0
  155. package/dist/esm-es5/{scroll-972c7ce5.js → scroll-e341d95b.js} +1 -1
  156. package/dist/html.html-data.json +10 -2
  157. package/dist/types/components/bal-date/bal-date.d.ts +5 -1
  158. package/dist/types/components/bal-footer/bal-footer.d.ts +1 -0
  159. package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +4 -0
  160. package/dist/types/components/bal-select/bal-select.d.ts +1 -1
  161. package/dist/types/components.d.ts +20 -41
  162. package/dist/types/index.d.ts +1 -0
  163. package/dist/types/utils/mask/__test__/mask-component.mock.d.ts +1 -0
  164. package/dist/types/utils/mask/component/mask-component-interfaces.d.ts +1 -0
  165. package/dist/types/utils/mask/context/mask-context.d.ts +2 -0
  166. package/dist/types/utils/mask/mask-util.d.ts +1 -0
  167. package/dist/types/utils/mask/mask.d.ts +3 -1
  168. package/dist/types/utils/mask/types/mask-date.d.ts +3 -1
  169. package/package.json +7 -7
  170. package/components/bal-app2.js +0 -87
  171. package/components/bal-doc-app.d.ts +0 -11
  172. package/components/bal-doc-app.js +0 -260
  173. package/components/initialize.js +0 -288
  174. package/dist/baloise-design-system/p-06e9a468fc.system.entry.js +0 -1
  175. package/dist/baloise-design-system/p-18e2e391e0.system.entry.js +0 -1
  176. package/dist/baloise-design-system/p-317cee9b56.system.entry.js +0 -1
  177. package/dist/baloise-design-system/p-360068a4.system.js +0 -1
  178. package/dist/baloise-design-system/p-5b571a9fb1.entry.js +0 -1
  179. package/dist/baloise-design-system/p-6648acba05.entry.js +0 -1
  180. package/dist/baloise-design-system/p-6d1b6215.js +0 -1
  181. package/dist/baloise-design-system/p-7291766c.system.js +0 -1
  182. package/dist/baloise-design-system/p-7c42a363f3.entry.js +0 -1
  183. package/dist/baloise-design-system/p-b9f197815f.entry.js +0 -1
  184. package/dist/baloise-design-system/p-e4de708de1.system.entry.js +0 -1
  185. package/dist/baloise-design-system/p-e8ffddeb.js +0 -1
  186. package/dist/baloise-design-system/p-f961ac52.system.js +0 -1
  187. package/dist/cjs/app-globals-5fd73c0c.js +0 -7
  188. package/dist/cjs/bal-doc-app.cjs.entry.js +0 -231
  189. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +0 -1
  190. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +0 -229
  191. package/dist/esm/app-globals-970bab17.js +0 -5
  192. package/dist/esm/bal-doc-app.entry.js +0 -227
  193. package/dist/esm-es5/app-globals-970bab17.js +0 -1
  194. package/dist/esm-es5/bal-doc-app.entry.js +0 -1
  195. package/dist/esm-es5/breakpoints.decorator-4adc321a.js +0 -1
  196. package/dist/esm-es5/global-63f4bcec.js +0 -1
  197. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +0 -21
  198. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +0 -81
  199. /package/dist/baloise-design-system/{p-4ae802f4.system.js → p-448185d8.system.js} +0 -0
  200. /package/dist/baloise-design-system/{p-cf875c54.js → p-5e1cb403.js} +0 -0
  201. /package/dist/esm-es5/{tokens.esm-1091fd9b.js → tokens.esm-366a5b1e.js} +0 -0
@@ -42,7 +42,7 @@ export declare class Date implements ComponentInterface, Loggable, BalAriaFormLi
42
42
  */
43
43
  readonly: boolean;
44
44
  /**
45
- * If `true` there will be on trigger icon visible
45
+ * If `true` there will be no trigger icon visible, so no UX indicator for a picker
46
46
  */
47
47
  freeSolo: boolean;
48
48
  /**
@@ -96,6 +96,10 @@ export declare class Date implements ComponentInterface, Loggable, BalAriaFormLi
96
96
  * Callback to determine which date in the datepicker should be selectable.
97
97
  */
98
98
  allowedDates: BalProps.BalDateCallback | undefined;
99
+ /**
100
+ * If `true`, it returns the string `INVALID_VALUE` within the balChange event if the input provided is not valid.
101
+ */
102
+ allowInvalidValue: boolean;
99
103
  /**
100
104
  * Set the amount of time, in milliseconds, to wait to trigger the `ionChange` event after each keystroke. This also impacts form bindings such as `ngModel` or `v-model`.
101
105
  */
@@ -2,6 +2,7 @@ import { FooterLink, SocialMediaLink } from '@baloise/web-app-utils';
2
2
  import { BalConfigObserver, BalConfigState, BalLanguage, BalRegion } from '../../utils/config';
3
3
  import { Loggable, LogInstance } from '../../utils/log';
4
4
  export declare class Footer implements BalConfigObserver, Loggable {
5
+ private selectEl;
5
6
  links: FooterLink[];
6
7
  socialMediaLinks: SocialMediaLink[];
7
8
  language: BalLanguage;
@@ -83,6 +83,10 @@ export declare class InputDate implements ComponentInterface, Loggable, BalConfi
83
83
  * If `true`, in Angular reactive forms the control will not be set invalid
84
84
  */
85
85
  autoInvalidOff: boolean;
86
+ /**
87
+ * If `true`, it returns the string `INVALID_VALUE` within the balChange event if the input provided is not valid.
88
+ */
89
+ allowInvalidValue: boolean;
86
90
  /**
87
91
  * Emitted when a keyboard key has pressed.
88
92
  */
@@ -50,7 +50,7 @@ export declare class Select implements ComponentInterface, Loggable, BalAriaForm
50
50
  */
51
51
  balTabindex: number;
52
52
  /**
53
- * If `true` there will be on trigger icon visible
53
+ * If `true` there will be no trigger icon visible, so no UX indicator for a popup
54
54
  */
55
55
  freeSolo: boolean;
56
56
  /**
@@ -692,6 +692,10 @@ export namespace Components {
692
692
  "multiline": boolean;
693
693
  }
694
694
  interface BalDate {
695
+ /**
696
+ * If `true`, it returns the string `INVALID_VALUE` within the balChange event if the input provided is not valid.
697
+ */
698
+ "allowInvalidValue": boolean;
695
699
  /**
696
700
  * Callback to determine which date in the datepicker should be selectable.
697
701
  */
@@ -722,7 +726,7 @@ export namespace Components {
722
726
  */
723
727
  "disabled": boolean;
724
728
  /**
725
- * If `true` there will be on trigger icon visible
729
+ * If `true` there will be no trigger icon visible, so no UX indicator for a picker
726
730
  */
727
731
  "freeSolo": boolean;
728
732
  /**
@@ -953,20 +957,6 @@ export namespace Components {
953
957
  */
954
958
  "space": BalProps.BalDividerSpace;
955
959
  }
956
- interface BalDocApp {
957
- /**
958
- * Disables all animation inside the bal-app. Can be used for simplify e2e testing.
959
- */
960
- "animated": boolean;
961
- "language"?: string;
962
- "logComponents": string;
963
- "logCustom": boolean;
964
- "logEvents": boolean;
965
- "logLifecycle": boolean;
966
- "logRender": boolean;
967
- "region"?: string;
968
- "stickyFooter": boolean;
969
- }
970
960
  interface BalDropdown {
971
961
  /**
972
962
  * Indicates whether the value of the control can be automatically completed by the browser.
@@ -1535,6 +1525,10 @@ export namespace Components {
1535
1525
  "value"?: string;
1536
1526
  }
1537
1527
  interface BalInputDate {
1528
+ /**
1529
+ * If `true`, it returns the string `INVALID_VALUE` within the balChange event if the input provided is not valid.
1530
+ */
1531
+ "allowInvalidValue": boolean;
1538
1532
  /**
1539
1533
  * If `true`, in Angular reactive forms the control will not be set invalid
1540
1534
  */
@@ -2723,7 +2717,7 @@ export namespace Components {
2723
2717
  */
2724
2718
  "filter": BalProps.BalSelectFilter;
2725
2719
  /**
2726
- * If `true` there will be on trigger icon visible
2720
+ * If `true` there will be no trigger icon visible, so no UX indicator for a popup
2727
2721
  */
2728
2722
  "freeSolo": boolean;
2729
2723
  /**
@@ -3987,12 +3981,6 @@ declare global {
3987
3981
  prototype: HTMLBalDividerElement;
3988
3982
  new (): HTMLBalDividerElement;
3989
3983
  };
3990
- interface HTMLBalDocAppElement extends Components.BalDocApp, HTMLStencilElement {
3991
- }
3992
- var HTMLBalDocAppElement: {
3993
- prototype: HTMLBalDocAppElement;
3994
- new (): HTMLBalDocAppElement;
3995
- };
3996
3984
  interface HTMLBalDropdownElementEventMap {
3997
3985
  "balChange": BalEvents.BalDropdownChangeDetail;
3998
3986
  "balFocus": BalEvents.BalDropdownFocusDetail;
@@ -4943,7 +4931,6 @@ declare global {
4943
4931
  "bal-date-calendar-cell": HTMLBalDateCalendarCellElement;
4944
4932
  "bal-datepicker": HTMLBalDatepickerElement;
4945
4933
  "bal-divider": HTMLBalDividerElement;
4946
- "bal-doc-app": HTMLBalDocAppElement;
4947
4934
  "bal-dropdown": HTMLBalDropdownElement;
4948
4935
  "bal-field": HTMLBalFieldElement;
4949
4936
  "bal-field-control": HTMLBalFieldControlElement;
@@ -5719,6 +5706,10 @@ declare namespace LocalJSX {
5719
5706
  "onBalFocus"?: (event: BalDataValueCustomEvent<BalEvents.BalDataValueFocusDetail>) => void;
5720
5707
  }
5721
5708
  interface BalDate {
5709
+ /**
5710
+ * If `true`, it returns the string `INVALID_VALUE` within the balChange event if the input provided is not valid.
5711
+ */
5712
+ "allowInvalidValue"?: boolean;
5722
5713
  /**
5723
5714
  * Callback to determine which date in the datepicker should be selectable.
5724
5715
  */
@@ -5744,7 +5735,7 @@ declare namespace LocalJSX {
5744
5735
  */
5745
5736
  "disabled"?: boolean;
5746
5737
  /**
5747
- * If `true` there will be on trigger icon visible
5738
+ * If `true` there will be no trigger icon visible, so no UX indicator for a picker
5748
5739
  */
5749
5740
  "freeSolo"?: boolean;
5750
5741
  /**
@@ -5987,20 +5978,6 @@ declare namespace LocalJSX {
5987
5978
  */
5988
5979
  "space"?: BalProps.BalDividerSpace;
5989
5980
  }
5990
- interface BalDocApp {
5991
- /**
5992
- * Disables all animation inside the bal-app. Can be used for simplify e2e testing.
5993
- */
5994
- "animated"?: boolean;
5995
- "language"?: string;
5996
- "logComponents"?: string;
5997
- "logCustom"?: boolean;
5998
- "logEvents"?: boolean;
5999
- "logLifecycle"?: boolean;
6000
- "logRender"?: boolean;
6001
- "region"?: string;
6002
- "stickyFooter"?: boolean;
6003
- }
6004
5981
  interface BalDropdown {
6005
5982
  /**
6006
5983
  * Indicates whether the value of the control can be automatically completed by the browser.
@@ -6553,6 +6530,10 @@ declare namespace LocalJSX {
6553
6530
  "value"?: string;
6554
6531
  }
6555
6532
  interface BalInputDate {
6533
+ /**
6534
+ * If `true`, it returns the string `INVALID_VALUE` within the balChange event if the input provided is not valid.
6535
+ */
6536
+ "allowInvalidValue"?: boolean;
6556
6537
  /**
6557
6538
  * If `true`, in Angular reactive forms the control will not be set invalid
6558
6539
  */
@@ -7705,7 +7686,7 @@ declare namespace LocalJSX {
7705
7686
  */
7706
7687
  "filter"?: BalProps.BalSelectFilter;
7707
7688
  /**
7708
- * If `true` there will be on trigger icon visible
7689
+ * If `true` there will be no trigger icon visible, so no UX indicator for a popup
7709
7690
  */
7710
7691
  "freeSolo"?: boolean;
7711
7692
  /**
@@ -8497,7 +8478,6 @@ declare namespace LocalJSX {
8497
8478
  "bal-date-calendar-cell": BalDateCalendarCell;
8498
8479
  "bal-datepicker": BalDatepicker;
8499
8480
  "bal-divider": BalDivider;
8500
- "bal-doc-app": BalDocApp;
8501
8481
  "bal-dropdown": BalDropdown;
8502
8482
  "bal-field": BalField;
8503
8483
  "bal-field-control": BalFieldControl;
@@ -8619,7 +8599,6 @@ declare module "@stencil/core" {
8619
8599
  "bal-date-calendar-cell": LocalJSX.BalDateCalendarCell & JSXBase.HTMLAttributes<HTMLBalDateCalendarCellElement>;
8620
8600
  "bal-datepicker": LocalJSX.BalDatepicker & JSXBase.HTMLAttributes<HTMLBalDatepickerElement>;
8621
8601
  "bal-divider": LocalJSX.BalDivider & JSXBase.HTMLAttributes<HTMLBalDividerElement>;
8622
- "bal-doc-app": LocalJSX.BalDocApp & JSXBase.HTMLAttributes<HTMLBalDocAppElement>;
8623
8602
  "bal-dropdown": LocalJSX.BalDropdown & JSXBase.HTMLAttributes<HTMLBalDropdownElement>;
8624
8603
  "bal-field": LocalJSX.BalField & JSXBase.HTMLAttributes<HTMLBalFieldElement>;
8625
8604
  "bal-field-control": LocalJSX.BalFieldControl & JSXBase.HTMLAttributes<HTMLBalFieldControlElement>;
@@ -45,6 +45,7 @@ export { balBreakpoints, balBreakpointSubject, BalBreakpointObserver, BalBreakpo
45
45
  export { BalOrientationObserver, BalOrientationInfo, balOrientationSubject, BalOrientationSubject, } from './utils/orientation';
46
46
  export { BalSwipeObserver, BalSwipeInfo, BalSwipeSubject } from './utils/swipe';
47
47
  export { BalDate } from './utils/date';
48
+ export { INVALID_VALUE } from './utils/mask/mask-util';
48
49
  /**
49
50
  * Controllers
50
51
  */
@@ -1,6 +1,7 @@
1
1
  import { MaskComponent } from '../component';
2
2
  export declare class MaskComponentMock implements MaskComponent {
3
3
  value: string | undefined;
4
+ allowInvalidValue: boolean;
4
5
  inputValue: string | undefined;
5
6
  initialValue: string;
6
7
  focused: boolean;
@@ -26,6 +26,7 @@ export interface MaskComponentAdapterType {
26
26
  }
27
27
  export interface MaskComponent {
28
28
  value: string | undefined;
29
+ allowInvalidValue: boolean;
29
30
  inputValue: string | undefined;
30
31
  initialValue: string;
31
32
  focused: boolean;
@@ -1,9 +1,11 @@
1
+ import { MaskComponent } from '../component';
1
2
  import { MaskContextEvent, MaskContextOptions } from './mask-context-interfaces';
2
3
  import { MaskPosition } from './mask-position';
3
4
  export declare abstract class MaskContext<T = MaskContextEvent> {
4
5
  protected _options: MaskContextOptions<T>;
5
6
  private _value;
6
7
  position: MaskPosition;
8
+ component: MaskComponent;
7
9
  constructor(_options: MaskContextOptions<T>);
8
10
  get target(): HTMLInputElement | undefined;
9
11
  get value(): string;
@@ -0,0 +1 @@
1
+ export declare const INVALID_VALUE = "INVALID_VALUE";
@@ -23,7 +23,9 @@ export declare abstract class AbstractMask implements Mask {
23
23
  onBackspaceDown(context: MaskKeyboardContext, block: MaskBlock, index: number): void;
24
24
  onDeleteDown(context: MaskKeyboardContext, block: MaskBlock, index: number): void;
25
25
  onValueChanged(context: MaskValueChangedContext): void;
26
- onParseValue(inputValue?: string): string;
26
+ onParseValue(inputValue?: string, options?: {
27
+ allowInvalidValue: boolean;
28
+ }): string;
27
29
  onFormatValue(rawValue?: string): string;
28
30
  /**
29
31
  * UTILS
@@ -9,7 +9,9 @@ export declare class DateMask extends AbstractMask {
9
9
  private monthMask;
10
10
  private yearMask;
11
11
  constructor();
12
- onParseValue(inputValue?: string): string;
12
+ onParseValue(inputValue?: string, options?: {
13
+ allowInvalidValue: boolean;
14
+ }): string;
13
15
  onFormatValue(isoDate?: string): string;
14
16
  onPaste(context: MaskClipboardContext, _block: MaskBlock, _index: number): void;
15
17
  onBlur(context: MaskFocusContext): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baloise/ds-core",
3
- "version": "16.1.0-nightly.20240516",
3
+ "version": "16.2.0",
4
4
  "description": "The Baloise Design-System is an open source project for styling awesome web applications that follow the Baloise corporate styling guidelines.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,8 +28,8 @@
28
28
  "bubu": "vitest --ui"
29
29
  },
30
30
  "dependencies": {
31
- "@baloise/ds-styles": "16.1.0-nightly.20240516",
32
- "@baloise/ds-icons": "16.1.0-nightly.20240516",
31
+ "@baloise/ds-styles": "16.2.0",
32
+ "@baloise/ds-icons": "16.2.0",
33
33
  "@baloise/web-app-utils": "3.11.2",
34
34
  "@floating-ui/dom": "~1.6.3",
35
35
  "@popperjs/core": "~2.11.4",
@@ -54,10 +54,10 @@
54
54
  "@baloise/output-target-react": "0.0.0",
55
55
  "@baloise/output-target-vue": "0.0.0",
56
56
  "@baloise/output-target-web": "0.0.0",
57
- "@baloise/ds-css": "16.1.0-nightly.20240516",
58
- "@baloise/ds-maps": "16.1.0-nightly.20240516",
59
- "@baloise/ds-brand-icons": "16.1.0-nightly.20240516",
60
- "@baloise/ds-favicons": "16.1.0-nightly.20240516"
57
+ "@baloise/ds-css": "16.2.0",
58
+ "@baloise/ds-maps": "16.2.0",
59
+ "@baloise/ds-brand-icons": "16.2.0",
60
+ "@baloise/ds-favicons": "16.2.0"
61
61
  },
62
62
  "sideEffects": false
63
63
  }
@@ -1,87 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { _ as __decorate, a as __metadata } from './tslib.es6.js';
3
- import { b as balBrowser } from './browser.js';
4
- import { b as balDevice } from './device.js';
5
- import { h as debounce, k as rIC } from './helpers.js';
6
- import { L as Logger } from './log.js';
7
- import { s as startFocusVisible } from './focus-visible.js';
8
- import { b as updateBalAnimated } from './config.utils.js';
9
-
10
- const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";
11
- const BalAppStyle0 = balAppCss;
12
-
13
- const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
14
- constructor() {
15
- super();
16
- this.__registerHost();
17
- this.debouncedNotify = debounce(() => this.notifyResize(), 100);
18
- this.notifyResize = async () => {
19
- if (balBrowser.hasDocument && balBrowser.hasWindow) {
20
- const doc = document.documentElement;
21
- doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
22
- }
23
- };
24
- this.animated = true;
25
- this.ready = false;
26
- }
27
- createLogger(log) {
28
- this.log = log;
29
- }
30
- connectedCallback() {
31
- updateBalAnimated(this.animated);
32
- if (balBrowser.hasWindow) {
33
- window.addEventListener('resize', this.debouncedNotify);
34
- this.debouncedNotify();
35
- }
36
- }
37
- componentDidLoad() {
38
- rIC(async () => {
39
- this.ready = true;
40
- startFocusVisible();
41
- });
42
- }
43
- disconnectedCallback() {
44
- if (balBrowser.hasWindow) {
45
- window.removeEventListener('resize', this.debouncedNotify);
46
- }
47
- }
48
- async setFocus(elements) {
49
- if (this.focusVisible) {
50
- this.focusVisible.setFocus(elements);
51
- }
52
- }
53
- render() {
54
- return (h(Host, { class: {
55
- 'bal-app': true,
56
- 'bal-app--safari': balBrowser.isSafari,
57
- 'bal-app--touch': balDevice.hasTouchScreen,
58
- } }, h("slot", null)));
59
- }
60
- get el() { return this; }
61
- static get style() { return BalAppStyle0; }
62
- }, [4, "bal-app", {
63
- "animated": [516],
64
- "ready": [1540],
65
- "setFocus": [64]
66
- }]);
67
- __decorate([
68
- Logger('bal-app'),
69
- __metadata("design:type", Function),
70
- __metadata("design:paramtypes", [Function]),
71
- __metadata("design:returntype", void 0)
72
- ], App.prototype, "createLogger", null);
73
- function defineCustomElement() {
74
- if (typeof customElements === "undefined") {
75
- return;
76
- }
77
- const components = ["bal-app"];
78
- components.forEach(tagName => { switch (tagName) {
79
- case "bal-app":
80
- if (!customElements.get(tagName)) {
81
- customElements.define(tagName, App);
82
- }
83
- break;
84
- } });
85
- }
86
-
87
- export { App as A, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../dist/types/components";
2
-
3
- interface BalDocApp extends Components.BalDocApp, HTMLElement {}
4
- export const BalDocApp: {
5
- prototype: BalDocApp;
6
- new (): BalDocApp;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;