@feedmepos/ui-library 1.9.1 → 1.10.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 (24) hide show
  1. package/dist/CHANGELOG.md +6 -2
  2. package/dist/components/chart/bar/FmBar.vue.d.ts +11 -3
  3. package/dist/components/chart/index.d.ts +1 -0
  4. package/dist/components/chart/line/FmLine.vue.d.ts +11 -3
  5. package/dist/components/chart/pie/FmPie.vue.d.ts +8 -2
  6. package/dist/components.d.ts +185 -14738
  7. package/dist/federation/FmBar.vue_vue_type_script_setup_true_lang-5pN05Obl.js +1 -0
  8. package/dist/federation/FmLine.vue_vue_type_script_setup_true_lang-DM2T_vmU.js +1 -0
  9. package/dist/federation/FmPie.vue_vue_type_script_setup_true_lang-Kwfa542q.js +2 -0
  10. package/dist/federation/{__federation_expose_FmBarChart-MNwi1LAk.js → __federation_expose_FmBarChart-BbE-a83H.js} +1 -1
  11. package/dist/federation/{__federation_expose_FmLineChart-Dw-sPaHL.js → __federation_expose_FmLineChart-DeqtHstB.js} +1 -1
  12. package/dist/federation/{__federation_expose_FmPieChart-Cn0ugDlM.js → __federation_expose_FmPieChart-2gp9HYbH.js} +1 -1
  13. package/dist/federation/{__federation_expose_FmStepperField-D7J4LPGQ.js → __federation_expose_FmStepperField-B7zxUxdD.js} +1 -1
  14. package/dist/federation/__federation_expose_FmStepperField-DvN0_6yz.css +1 -0
  15. package/dist/federation/feedmepos-ui-components.js +1 -1
  16. package/dist/federation/{index-DYF6nxjN.js → index-BNfklY5V.js} +2 -2
  17. package/dist/feedmepos-ui-library.js +2482 -2476
  18. package/dist/feedmepos-ui-library.umd.cjs +21 -21
  19. package/dist/style.css +1 -1
  20. package/package.json +1 -1
  21. package/dist/federation/FmBar.vue_vue_type_script_setup_true_lang-BJMELe3q.js +0 -1
  22. package/dist/federation/FmLine.vue_vue_type_script_setup_true_lang-BA9UPDyp.js +0 -1
  23. package/dist/federation/FmPie.vue_vue_type_script_setup_true_lang-DEnVqSIk.js +0 -2
  24. package/dist/federation/__federation_expose_FmStepperField-BcpyFioz.css +0 -1
package/dist/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
- # 1.9.1
1
+ # 1.10.0
2
+
3
+ - `FmBar`, `FmLine`, `FmPie`
4
+ - Add `plugins` prop to support custom Chart.js plugins
5
+
6
+ # 1.9.2
2
7
 
3
8
  - `FmStepperField`
4
9
  - Fix browser default blue focus outline appearing on input element
5
- - Added explicit `:focus` style to override browser defaults
6
10
 
7
11
  # 1.9.0
8
12
 
@@ -1,4 +1,4 @@
1
- import type { LegendOptions, TooltipOptions } from 'chart.js';
1
+ import type { LegendOptions, TooltipOptions, Plugin } from 'chart.js';
2
2
  import type { XAxis } from '../../../components/chart/line/FmLine.vue';
3
3
  import type { FmChartDataLabelsOptions, FmChartAxisOptions } from '../../../components/chart';
4
4
  export interface BarDataset {
@@ -56,7 +56,9 @@ type FmBarProp = {
56
56
  /**
57
57
  * customize tooltip
58
58
  */
59
- tooltip?: Partial<TooltipOptions<'bar'>>;
59
+ tooltip?: Omit<Partial<TooltipOptions<'bar'>>, 'callbacks'> & {
60
+ callbacks?: Partial<TooltipOptions<'bar'>['callbacks']>;
61
+ };
60
62
  /**
61
63
  * customize datalabels
62
64
  */
@@ -69,6 +71,10 @@ type FmBarProp = {
69
71
  * customize Y axis
70
72
  */
71
73
  yCfg?: Partial<FmChartAxisOptions>;
74
+ /**
75
+ * custom chart plugins
76
+ */
77
+ plugins?: Plugin<'bar'>[];
72
78
  /**
73
79
  * custom chart height
74
80
  */
@@ -113,7 +119,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
113
119
  legend: Partial<LegendOptions<"bar">>;
114
120
  width: string;
115
121
  height: string;
116
- tooltip: Partial<TooltipOptions<"bar">>;
122
+ tooltip: Omit<Partial<TooltipOptions<"bar">>, "callbacks"> & {
123
+ callbacks?: Partial<import("chart.js").TooltipCallbacks<"bar", import("chart.js").TooltipModel<"bar">, import("chart.js").TooltipItem<"bar">>> | undefined;
124
+ };
117
125
  paragraph: string;
118
126
  transpose: boolean;
119
127
  stacked: boolean;
@@ -28,6 +28,7 @@ export interface FmChartDataLabelsOptions {
28
28
  font?: {
29
29
  size?: number;
30
30
  };
31
+ color?: string;
31
32
  }
32
33
  export interface FmChartAxisOptions {
33
34
  display?: boolean;
@@ -1,4 +1,4 @@
1
- import type { LegendOptions, TooltipOptions } from 'chart.js';
1
+ import type { LegendOptions, TooltipOptions, Plugin } from 'chart.js';
2
2
  import type { FmChartAxisOptions, FmChartDataLabelsOptions } from '../../../components/chart';
3
3
  export interface Dataset {
4
4
  label: string;
@@ -60,7 +60,9 @@ type FmLineProp = {
60
60
  /**
61
61
  * customize tooltip
62
62
  */
63
- tooltip?: Partial<TooltipOptions<'line'>>;
63
+ tooltip?: Omit<Partial<TooltipOptions<'line'>>, 'callbacks'> & {
64
+ callbacks?: Partial<TooltipOptions<'line'>['callbacks']>;
65
+ };
64
66
  /**
65
67
  * customize datalabels
66
68
  */
@@ -73,6 +75,10 @@ type FmLineProp = {
73
75
  * customize Y axis
74
76
  */
75
77
  yCfg?: Partial<FmChartAxisOptions>;
78
+ /**
79
+ * custom chart plugins
80
+ */
81
+ plugins?: Plugin<'line'>[];
76
82
  /**
77
83
  * custom chart height
78
84
  */
@@ -113,7 +119,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
113
119
  legend: Partial<LegendOptions<"line">>;
114
120
  width: string;
115
121
  height: string;
116
- tooltip: Partial<TooltipOptions<"line">>;
122
+ tooltip: Omit<Partial<TooltipOptions<"line">>, "callbacks"> & {
123
+ callbacks?: Partial<import("chart.js").TooltipCallbacks<"line", import("chart.js").TooltipModel<"line">, import("chart.js").TooltipItem<"line">>> | undefined;
124
+ };
117
125
  paragraph: string;
118
126
  transpose: boolean;
119
127
  hideXAxis: boolean;
@@ -1,4 +1,4 @@
1
- import type { ChartType, LegendOptions, TooltipOptions } from 'chart.js';
1
+ import type { ChartType, LegendOptions, TooltipOptions, Plugin } from 'chart.js';
2
2
  import type { FmChartDataLabelsOptions } from '../../../components/chart';
3
3
  export interface PieDataset {
4
4
  label: string;
@@ -57,7 +57,13 @@ type FmPieProp = {
57
57
  /**
58
58
  * customize tooltip
59
59
  */
60
- tooltip?: TooltipOptions<Extract<ChartType, 'pie' | 'doughnut'>>;
60
+ tooltip?: Omit<TooltipOptions<Extract<ChartType, 'pie' | 'doughnut'>>, 'callbacks'> & {
61
+ callbacks?: TooltipOptions<Extract<ChartType, 'pie' | 'doughnut'>>['callbacks'];
62
+ };
63
+ /**
64
+ * custom chart plugins
65
+ */
66
+ plugins?: Plugin<'pie' | 'doughnut'>[];
61
67
  /**
62
68
  * customize datalabels
63
69
  */