@bino-bi/bn-template-engine 1.0.0-next.44 → 1.0.0-next.46

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 (174) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/{p-8b28c9bd.entry.js → p-16623e0f.entry.js} +1 -1
  3. package/dist/bn-template-engine/p-17970e07.entry.js +1 -0
  4. package/dist/bn-template-engine/{p-ce764078.entry.js → p-21930d0a.entry.js} +1 -1
  5. package/dist/bn-template-engine/{p-5a64f90f.entry.js → p-46c46067.entry.js} +1 -1
  6. package/dist/bn-template-engine/p-9caa7f46.entry.js +1 -0
  7. package/dist/bn-template-engine/p-B0MEAsAS.js +1 -0
  8. package/dist/bn-template-engine/{p-qpZjVnX5.js → p-BA-fydUt.js} +1 -1
  9. package/dist/bn-template-engine/p-BEGt_7Hr.js +1 -0
  10. package/dist/bn-template-engine/p-BRO1oW7m.js +1 -0
  11. package/dist/bn-template-engine/{p-BjozxTTW.js → p-BnzIfgCq.js} +1 -1
  12. package/dist/bn-template-engine/{p-b0dfc113.entry.js → p-b0d528f2.entry.js} +1 -1
  13. package/dist/cjs/bn-annotation-layer_30.cjs.entry.js +612 -84
  14. package/dist/cjs/bn-grid.cjs.entry.js +161 -34
  15. package/dist/cjs/bn-image.cjs.entry.js +2 -2
  16. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  17. package/dist/cjs/bn-ruleset.cjs.entry.js +2 -2
  18. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  19. package/dist/cjs/bn-text.cjs.entry.js +3 -3
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/{localFrame-U3Qs0psw.js → localFrame-C27GGom1.js} +1 -1
  22. package/dist/cjs/{withBodyObserver-S-FGHpAX.js → withBodyObserver-B78wzw3f.js} +1 -1
  23. package/dist/cjs/{withHasError-BkBrsCpI.js → withHasError-0hW3-4mr.js} +11 -5
  24. package/dist/cjs/{withStyled-BZb6snOx.js → withStyled-D0hrcfE_.js} +25 -1
  25. package/dist/cjs/{withTranslation-FxXGUB3H.js → withTranslation-B4WipL_5.js} +7 -4
  26. package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +33 -2
  27. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +112 -16
  28. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +1 -1
  29. package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +3 -3
  30. package/dist/collection/components/bn-chart-time/bn-chart-time-renderer/bn-chart-time-renderer.js +113 -3
  31. package/dist/collection/components/bn-chart-time/bn-chart-time.js +261 -22
  32. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +221 -12
  33. package/dist/collection/components/bn-chart-time/utils/elements/Axis.js +9 -1
  34. package/dist/collection/components/bn-chart-time/utils/elements/Column.js +10 -4
  35. package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +9 -3
  36. package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
  37. package/dist/collection/components/bn-chart-time/utils/model/DataPoint.js +9 -6
  38. package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +15 -0
  39. package/dist/collection/components/bn-grid/bn-grid.js +118 -24
  40. package/dist/collection/components/bn-grid/utils/cellLayout.js +55 -9
  41. package/dist/collection/components/bn-layout-card/bn-layout-card.js +4 -2
  42. package/dist/collection/components/bn-layout-page/bn-layout-page.js +23 -1
  43. package/dist/collection/components/bn-title/bn-title-renderer/bn-title-renderer.css +10 -0
  44. package/dist/collection/components/bn-title/bn-title-renderer/bn-title-renderer.js +23 -1
  45. package/dist/collection/components/bn-title/bn-title.js +40 -2
  46. package/dist/collection/components/bn-tree/bn-tree.js +4 -1
  47. package/dist/collection/stores/componentStyles.js +9 -3
  48. package/dist/collection/stores/internationalization.js +2 -2
  49. package/dist/collection/utils/DateStringFactory.js +19 -0
  50. package/dist/collection/utils/model/DataFormatDigits.js +4 -2
  51. package/dist/collection/utils/model/VarianceScenario.js +13 -0
  52. package/dist/collection/utils/parentDimensions.js +5 -2
  53. package/dist/collection/utils/validate.js +4 -0
  54. package/dist/components/bn-annotation-layer.js +1 -1
  55. package/dist/components/bn-annotation-list.js +1 -1
  56. package/dist/components/bn-asset.js +1 -1
  57. package/dist/components/bn-body.js +1 -1
  58. package/dist/components/bn-card.js +1 -1
  59. package/dist/components/bn-chart-bubble-renderer.js +1 -1
  60. package/dist/components/bn-chart-bubble.js +1 -1
  61. package/dist/components/bn-chart-bullet-renderer.js +1 -1
  62. package/dist/components/bn-chart-bullet.js +1 -1
  63. package/dist/components/bn-chart-scatter-renderer.js +1 -1
  64. package/dist/components/bn-chart-scatter.js +1 -1
  65. package/dist/components/bn-chart-structure-renderer.js +1 -1
  66. package/dist/components/bn-chart-structure.js +1 -1
  67. package/dist/components/bn-chart-time-renderer.js +1 -1
  68. package/dist/components/bn-chart-time.js +1 -1
  69. package/dist/components/bn-component-style.js +1 -1
  70. package/dist/components/bn-context.js +1 -1
  71. package/dist/components/bn-dataset.js +1 -1
  72. package/dist/components/bn-datasource.js +1 -1
  73. package/dist/components/bn-footer.js +1 -1
  74. package/dist/components/bn-grid.js +1 -1
  75. package/dist/components/bn-image.js +1 -1
  76. package/dist/components/bn-internationalization.js +1 -1
  77. package/dist/components/bn-layout-card.js +1 -1
  78. package/dist/components/bn-layout-page.js +1 -1
  79. package/dist/components/bn-message.js +1 -1
  80. package/dist/components/bn-page.js +1 -1
  81. package/dist/components/bn-ruleset.js +1 -1
  82. package/dist/components/bn-scaling-group.js +1 -1
  83. package/dist/components/bn-table-renderer.js +1 -1
  84. package/dist/components/bn-table.js +1 -1
  85. package/dist/components/bn-text.js +1 -1
  86. package/dist/components/bn-title-renderer.js +1 -1
  87. package/dist/components/bn-title.js +1 -1
  88. package/dist/components/bn-tree.js +1 -1
  89. package/dist/components/p-9X5fVJqR.js +1 -0
  90. package/dist/components/p-B5GRtTLX.js +1 -0
  91. package/dist/components/{p-DJUffGeB.js → p-BKA15uoz.js} +1 -1
  92. package/dist/components/p-BKLq0Pbv.js +1 -0
  93. package/dist/components/p-BKTBdrEA.js +1 -0
  94. package/dist/components/p-Bd8cQiLx.js +1 -0
  95. package/dist/components/{p-CvEdUq8i.js → p-Be0Q3bvf.js} +1 -1
  96. package/dist/components/{p-xIWChKGS.js → p-Bj3RWsEx.js} +1 -1
  97. package/dist/components/{p-B4L069XF.js → p-BoBamuPt.js} +1 -1
  98. package/dist/components/{p-DaOm9YwQ.js → p-BrJZUp-K.js} +1 -1
  99. package/dist/components/{p-CyfGkLMh.js → p-BuWNCnvR.js} +1 -1
  100. package/dist/components/p-C50Ge-4H.js +1 -0
  101. package/dist/components/{p-M2k_I8lv.js → p-CFVoK5Rb.js} +1 -1
  102. package/dist/components/{p-fKJx8WtW.js → p-CgJB5mCu.js} +1 -1
  103. package/dist/components/p-Cxx0YNnl.js +1 -0
  104. package/dist/components/p-D9F5IBFT.js +1 -0
  105. package/dist/components/{p-BfUdaxZ9.js → p-DQFahsnV.js} +1 -1
  106. package/dist/components/p-DROj8gke.js +1 -0
  107. package/dist/components/p-D_Sbhd0L.js +1 -0
  108. package/dist/components/{p-Cel0a6ma.js → p-DbWh9W5D.js} +1 -1
  109. package/dist/components/{p-2eicD9rF.js → p-DkCeSWKR.js} +1 -1
  110. package/dist/components/{p-7ieJFBUk.js → p-DoOSXntC.js} +1 -1
  111. package/dist/components/p-Dxj_pf8s.js +1 -0
  112. package/dist/components/{p-DQl2K2Xl.js → p-DzYhS_9s.js} +1 -1
  113. package/dist/components/{p-B2bvM2Ig.js → p-EQNS13GN.js} +1 -1
  114. package/dist/components/{p-Y9bth2Y_.js → p-G56USTsQ.js} +1 -1
  115. package/dist/components/p-OgFFKehL.js +1 -0
  116. package/dist/components/{p-C2ycO60j.js → p-kvYRImZT.js} +1 -1
  117. package/dist/components/{p-Chuj-LpI.js → p-rEdNIgD8.js} +1 -1
  118. package/dist/components/{p-DwuXVo2h.js → p-uCpFBDF5.js} +1 -1
  119. package/dist/esm/bn-annotation-layer_30.entry.js +612 -84
  120. package/dist/esm/bn-grid.entry.js +161 -34
  121. package/dist/esm/bn-image.entry.js +2 -2
  122. package/dist/esm/bn-internationalization.entry.js +2 -2
  123. package/dist/esm/bn-ruleset.entry.js +2 -2
  124. package/dist/esm/bn-template-engine.js +1 -1
  125. package/dist/esm/bn-text.entry.js +3 -3
  126. package/dist/esm/loader.js +1 -1
  127. package/dist/esm/{localFrame-BNWPPaQa.js → localFrame-CEZ7-hBs.js} +1 -1
  128. package/dist/esm/{withBodyObserver-AHQAUV85.js → withBodyObserver-D9yIMxdr.js} +1 -1
  129. package/dist/esm/{withHasError-B6Lvj9Cq.js → withHasError-UGtkLrYT.js} +11 -5
  130. package/dist/esm/{withStyled-CzzXg64f.js → withStyled-BlMqEIfr.js} +25 -2
  131. package/dist/esm/{withTranslation-Daq2JXkv.js → withTranslation-Bc3bjHTb.js} +7 -4
  132. package/dist/schemas/theme.schema.json +18 -0
  133. package/dist/types/components/bn-annotation-layer/bn-annotation-layer.d.ts +11 -0
  134. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +16 -0
  135. package/dist/types/components/bn-chart-structure/utils/elements/Needle.d.ts +2 -1
  136. package/dist/types/components/bn-chart-time/bn-chart-time-renderer/bn-chart-time-renderer.d.ts +8 -0
  137. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +46 -1
  138. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +37 -0
  139. package/dist/types/components/bn-chart-time/utils/elements/Axis.d.ts +2 -0
  140. package/dist/types/components/bn-chart-time/utils/elements/Needle.d.ts +2 -1
  141. package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
  142. package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +6 -1
  143. package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +6 -0
  144. package/dist/types/components/bn-grid/bn-grid.d.ts +23 -0
  145. package/dist/types/components/bn-grid/utils/cellLayout.d.ts +39 -3
  146. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +3 -1
  147. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +9 -0
  148. package/dist/types/components/bn-title/bn-title-renderer/bn-title-renderer.d.ts +2 -0
  149. package/dist/types/components/bn-title/bn-title.d.ts +10 -0
  150. package/dist/types/components.d.ts +173 -6
  151. package/dist/types/stores/componentStyles.d.ts +8 -0
  152. package/dist/types/utils/DateStringFactory.d.ts +4 -0
  153. package/dist/types/utils/layoutState/types.d.ts +3 -0
  154. package/dist/types/utils/model/VarianceScenario.d.ts +2 -0
  155. package/dist/types/utils/validate.d.ts +2 -0
  156. package/package.json +1 -1
  157. package/dist/bn-template-engine/p-3c4af59a.entry.js +0 -1
  158. package/dist/bn-template-engine/p-D0tNATZq.js +0 -1
  159. package/dist/bn-template-engine/p-DF9sfwBN.js +0 -1
  160. package/dist/bn-template-engine/p-EcC0qLtU.js +0 -1
  161. package/dist/bn-template-engine/p-a4b76176.entry.js +0 -1
  162. package/dist/components/p-1B_s8oPY.js +0 -1
  163. package/dist/components/p-AwH1w8Mu.js +0 -1
  164. package/dist/components/p-BiSytXUy.js +0 -1
  165. package/dist/components/p-C3gYq-HU.js +0 -1
  166. package/dist/components/p-CEf5X8MZ.js +0 -1
  167. package/dist/components/p-CniN8ALm.js +0 -1
  168. package/dist/components/p-D2Epww9R.js +0 -1
  169. package/dist/components/p-D40Am1Ap.js +0 -1
  170. package/dist/components/p-DDvWTgk1.js +0 -1
  171. package/dist/components/p-DjPWZfry.js +0 -1
  172. package/dist/components/p-DnDL1pPc.js +0 -1
  173. package/dist/components/p-sLbQ7yZ1.js +0 -1
  174. /package/dist/components/{p-DD1zlev_.js → p-Dsvjkuy3.js} +0 -0
@@ -61,6 +61,8 @@ export declare class DateStringFactory {
61
61
  setDateLinkFormat(datelink: DateLinkFormat): void;
62
62
  setDateFormat(dateFormat: DateFormat): void;
63
63
  setDateFormatShort(dateFormatShort: DateFormat): void;
64
+ /** Replaces single short patterns and keeps the rest. Call it after `setLocale`. */
65
+ patchDateFormatShort(patterns: Partial<DateFormat>): void;
64
66
  /**
65
67
  * Selects the locale used for Luxon's localized tokens and swaps in the
66
68
  * locale's pattern overrides. An explicit `setDateFormat` /
@@ -130,6 +132,8 @@ export declare class DateStringFactory {
130
132
  private getFormatedMinuteDate;
131
133
  private getFormatedSecondDate;
132
134
  private getFormatedMilliSecondDate;
135
+ /** True when the smart label of this period also names the month or the year that starts with it. */
136
+ isSmartBoundary(date: DateTime, type: DateDistance): boolean;
133
137
  private isFirstInMonth;
134
138
  private isJanuary;
135
139
  private isFirstQuarter;
@@ -169,6 +169,9 @@ export interface GridCellElement extends LayoutElementBase {
169
169
  columnId?: string;
170
170
  /** Slot name for data cells. */
171
171
  slot?: string;
172
+ /** Rows and columns a data cell covers, when more than one. */
173
+ rowSpan?: number;
174
+ columnSpan?: number;
172
175
  /** Header, title or caption text. */
173
176
  label?: string;
174
177
  }
@@ -30,3 +30,5 @@ export declare class VarianceScenario {
30
30
  * tables and charts), `"op"` always acts like `"pos"` and `"opinv"` like `"neg"`.
31
31
  */
32
32
  export declare function resolveSentiment(direction: string, operation: string | null | undefined, signedValues: boolean): string;
33
+ /** The scenarios a list of variances is calculated from, each once, in order. */
34
+ export declare function variancesScenarios(variances: string[]): string[];
@@ -10,6 +10,8 @@ export declare function isBlankInput(value: unknown): boolean;
10
10
  * the Scenarios enum; remaining invalid entries are passed to `validateVariancesList`
11
11
  * for variance format checking (e.g. `d_ac1_pl1_pos`).
12
12
  */
13
+ /** `none` as the scenario list of a chart: draw no scenario, only the variances. */
14
+ export declare function isNoScenarios(value: string | null | undefined): boolean;
13
15
  export declare function validateScenarioList(value: string): string[];
14
16
  /**
15
17
  * Validates variance identifiers in the format `d_<base>_<delta>_<sentiment>` or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bino-bi/bn-template-engine",
3
- "version": "1.0.0-next.44",
3
+ "version": "1.0.0-next.46",
4
4
  "description": "IBCS-compliant web components for business intelligence tables and charts",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",