@feedmepos/ui-library 1.5.6 → 1.6.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 (22) hide show
  1. package/dist/components/chart/bar/FmBar.vue.d.ts +39 -3
  2. package/dist/components/chart/index.d.ts +50 -0
  3. package/dist/components/chart/line/FmLine.vue.d.ts +42 -3
  4. package/dist/components/chart/pie/FmPie.vue.d.ts +23 -0
  5. package/dist/components/form/text-field/FmTextField.vue.d.ts +1 -1
  6. package/dist/components.d.ts +273 -19
  7. package/dist/federation/FmBar.vue_vue_type_script_setup_true_lang-Bl4sODG-.js +1 -0
  8. package/dist/federation/FmLine.vue_vue_type_script_setup_true_lang-BfUXDVEE.js +1 -0
  9. package/dist/federation/FmPie.vue_vue_type_script_setup_true_lang-DEnVqSIk.js +2 -0
  10. package/dist/federation/{__federation_expose_FmBarChart-WYq8CGXV.js → __federation_expose_FmBarChart-maVOJTjq.js} +1 -1
  11. package/dist/federation/{__federation_expose_FmLineChart-B_THAX96.js → __federation_expose_FmLineChart-BRZZwRvH.js} +1 -1
  12. package/dist/federation/{__federation_expose_FmPieChart-Dzt9QEU_.js → __federation_expose_FmPieChart-Cn0ugDlM.js} +1 -1
  13. package/dist/federation/chartjs-plugin-datalabels.esm-C74bC3XK.js +24 -0
  14. package/dist/federation/feedmepos-ui-components.js +1 -1
  15. package/dist/federation/{index-Ba-bA_O1.js → index-f8xLr9zu.js} +2 -2
  16. package/dist/feedmepos-ui-library.js +9412 -8751
  17. package/dist/feedmepos-ui-library.umd.cjs +36 -30
  18. package/package.json +2 -1
  19. package/dist/federation/FmBar.vue_vue_type_script_setup_true_lang-BiGNhPIQ.js +0 -1
  20. package/dist/federation/FmLine.vue_vue_type_script_setup_true_lang-D-feq6Ni.js +0 -1
  21. package/dist/federation/FmPie.vue_vue_type_script_setup_true_lang-CNra1Yi2.js +0 -2
  22. package/dist/federation/auto-CXNy_eJA.js +0 -18
@@ -1,5 +1,6 @@
1
1
  import type { LegendOptions, TooltipOptions } from 'chart.js';
2
2
  import type { XAxis } from '../../../components/chart/line/FmLine.vue';
3
+ import type { FmChartDataLabelsOptions, FmChartAxisOptions } from '../../../components/chart';
3
4
  export interface BarDataset {
4
5
  label: string;
5
6
  data: number[];
@@ -32,7 +33,7 @@ type FmBarProp = {
32
33
  */
33
34
  transpose?: boolean;
34
35
  /**
35
- * stack chart
36
+ * @deprecated Please use `:xCfg={stacked: false}` and `:yCfg={stacked: false}` from now on.
36
37
  */
37
38
  stacked?: boolean;
38
39
  /**
@@ -40,11 +41,11 @@ type FmBarProp = {
40
41
  */
41
42
  maintainAspectRatio?: boolean;
42
43
  /**
43
- * hide the x axis
44
+ * @deprecated Please use `:xCfg={display: false}` from now on.
44
45
  */
45
46
  hideXAxis?: boolean;
46
47
  /**
47
- * hide the y axis
48
+ * @deprecated Please use `:yCfg={display: false}` from now on.
48
49
  */
49
50
  hideYAxis?: boolean;
50
51
  /**
@@ -56,6 +57,26 @@ type FmBarProp = {
56
57
  * customize tooltip
57
58
  */
58
59
  tooltip?: Partial<TooltipOptions<'bar'>>;
60
+ /**
61
+ * customize datalabels
62
+ */
63
+ datalabels?: Partial<FmChartDataLabelsOptions>;
64
+ /**
65
+ * customize X axis
66
+ */
67
+ xCfg?: Partial<FmChartAxisOptions>;
68
+ /**
69
+ * customize Y axis
70
+ */
71
+ yCfg?: Partial<FmChartAxisOptions>;
72
+ /**
73
+ * custom chart height
74
+ */
75
+ height?: string;
76
+ /**
77
+ * custom chart width
78
+ */
79
+ width?: string;
59
80
  };
60
81
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmBarProp>, {
61
82
  name: undefined;
@@ -67,6 +88,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
67
88
  hideYAxis: undefined;
68
89
  legend: undefined;
69
90
  tooltip: undefined;
91
+ datalabels: undefined;
92
+ xCfg: undefined;
93
+ yCfg: undefined;
94
+ height: undefined;
95
+ width: undefined;
70
96
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmBarProp>, {
71
97
  name: undefined;
72
98
  paragraph: undefined;
@@ -77,9 +103,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
77
103
  hideYAxis: undefined;
78
104
  legend: undefined;
79
105
  tooltip: undefined;
106
+ datalabels: undefined;
107
+ xCfg: undefined;
108
+ yCfg: undefined;
109
+ height: undefined;
110
+ width: undefined;
80
111
  }>>>, {
81
112
  name: string;
82
113
  legend: Partial<LegendOptions<"bar">>;
114
+ width: string;
115
+ height: string;
83
116
  paragraph: string;
84
117
  transpose: boolean;
85
118
  stacked: boolean;
@@ -87,6 +120,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
87
120
  hideXAxis: boolean;
88
121
  hideYAxis: boolean;
89
122
  tooltip: Partial<TooltipOptions<"bar">>;
123
+ datalabels: Partial<FmChartDataLabelsOptions>;
124
+ xCfg: Partial<FmChartAxisOptions>;
125
+ yCfg: Partial<FmChartAxisOptions>;
90
126
  }, {}>, {
91
127
  title?(_: {}): any;
92
128
  }>;
@@ -0,0 +1,50 @@
1
+ export declare enum FmAxisPosition {
2
+ Left = "left",
3
+ Top = "top",
4
+ Right = "right",
5
+ Bottom = "bottom",
6
+ Center = "center"
7
+ }
8
+ declare enum FmAlignPosition {
9
+ Start = "start",
10
+ Center = "center",
11
+ End = "end",
12
+ Left = "left",
13
+ Right = "right",
14
+ Top = "top",
15
+ Bottom = "bottom"
16
+ }
17
+ declare enum FmAnchorPosition {
18
+ Start = "start",
19
+ Center = "center",
20
+ End = "end"
21
+ }
22
+ export interface FmChartDataLabelsOptions {
23
+ display?: boolean;
24
+ align?: FmAlignPosition | `${FmAlignPosition}`;
25
+ anchor?: FmAnchorPosition | `${FmAnchorPosition}`;
26
+ offset?: number;
27
+ rotation?: number;
28
+ font?: {
29
+ size?: number;
30
+ };
31
+ }
32
+ export interface FmChartAxisOptions {
33
+ display?: boolean;
34
+ position?: FmAxisPosition | `${FmAxisPosition}`;
35
+ title?: {
36
+ display?: boolean;
37
+ text?: string;
38
+ };
39
+ grid?: {
40
+ display?: boolean;
41
+ };
42
+ ticks?: {
43
+ display?: boolean;
44
+ font?: {
45
+ size?: number;
46
+ };
47
+ };
48
+ stacked?: boolean;
49
+ }
50
+ export {};
@@ -1,4 +1,5 @@
1
1
  import type { LegendOptions, TooltipOptions } from 'chart.js';
2
+ import type { FmChartAxisOptions, FmChartDataLabelsOptions } from '../../../components/chart';
2
3
  export interface Dataset {
3
4
  label: string;
4
5
  data: number[];
@@ -40,15 +41,15 @@ type FmLineProp = {
40
41
  */
41
42
  stacked?: boolean;
42
43
  /**
43
- * maintain the Aspect ratio so it will always make a sizable chart
44
+ * @deprecated Please use `:xCfg={stacked: false}` and `:yCfg={stacked: false}` from now on.
44
45
  */
45
46
  maintainAspectRatio?: boolean;
46
47
  /**
47
- * hide the x axis
48
+ * @deprecated Please use `:xCfg={display: false}` from now on.
48
49
  */
49
50
  hideXAxis?: boolean;
50
51
  /**
51
- * hide the y axis
52
+ * @deprecated Please use `:yCfg={display: false}` from now on.
52
53
  */
53
54
  hideYAxis?: boolean;
54
55
  /**
@@ -60,6 +61,26 @@ type FmLineProp = {
60
61
  * customize tooltip
61
62
  */
62
63
  tooltip?: Partial<TooltipOptions<'line'>>;
64
+ /**
65
+ * customize datalabels
66
+ */
67
+ datalabels?: Partial<FmChartDataLabelsOptions>;
68
+ /**
69
+ * customize X axis
70
+ */
71
+ xCfg?: Partial<FmChartAxisOptions>;
72
+ /**
73
+ * customize Y axis
74
+ */
75
+ yCfg?: Partial<FmChartAxisOptions>;
76
+ /**
77
+ * custom chart height
78
+ */
79
+ height?: string;
80
+ /**
81
+ * custom chart width
82
+ */
83
+ width?: string;
63
84
  };
64
85
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmLineProp>, {
65
86
  name: undefined;
@@ -67,21 +88,39 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
67
88
  transpose: boolean;
68
89
  hideXAxis: undefined;
69
90
  hideYAxis: undefined;
91
+ xCfg: undefined;
92
+ yCfg: undefined;
70
93
  legend: undefined;
94
+ tooltip: undefined;
95
+ datalabels: undefined;
96
+ height: undefined;
97
+ width: undefined;
71
98
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmLineProp>, {
72
99
  name: undefined;
73
100
  paragraph: undefined;
74
101
  transpose: boolean;
75
102
  hideXAxis: undefined;
76
103
  hideYAxis: undefined;
104
+ xCfg: undefined;
105
+ yCfg: undefined;
77
106
  legend: undefined;
107
+ tooltip: undefined;
108
+ datalabels: undefined;
109
+ height: undefined;
110
+ width: undefined;
78
111
  }>>>, {
79
112
  name: string;
80
113
  legend: Partial<LegendOptions<"line">>;
114
+ width: string;
115
+ height: string;
81
116
  paragraph: string;
82
117
  transpose: boolean;
83
118
  hideXAxis: boolean;
84
119
  hideYAxis: boolean;
120
+ tooltip: Partial<TooltipOptions<"line">>;
121
+ datalabels: Partial<FmChartDataLabelsOptions>;
122
+ xCfg: Partial<FmChartAxisOptions>;
123
+ yCfg: Partial<FmChartAxisOptions>;
85
124
  }, {}>, {
86
125
  title?(_: {}): any;
87
126
  }>;
@@ -1,9 +1,11 @@
1
1
  import type { ChartType, LegendOptions, TooltipOptions } from 'chart.js';
2
+ import type { FmChartDataLabelsOptions } from '../../../components/chart';
2
3
  export interface PieDataset {
3
4
  label: string;
4
5
  data: number[];
5
6
  backgroundColor?: string[] | string;
6
7
  hoverOffset?: number;
8
+ datalabels: FmChartDataLabelsOptions;
7
9
  }
8
10
  type FmPieProp = {
9
11
  /**
@@ -56,6 +58,18 @@ type FmPieProp = {
56
58
  * customize tooltip
57
59
  */
58
60
  tooltip?: TooltipOptions<Extract<ChartType, 'pie' | 'doughnut'>>;
61
+ /**
62
+ * customize datalabels
63
+ */
64
+ datalabels?: Partial<FmChartDataLabelsOptions>;
65
+ /**
66
+ * custom chart height
67
+ */
68
+ height?: string;
69
+ /**
70
+ * custom chart width
71
+ */
72
+ width?: string;
59
73
  };
60
74
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmPieProp>, {
61
75
  name: undefined;
@@ -66,6 +80,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
66
80
  textStyle: string;
67
81
  maintainAspectRatio: boolean;
68
82
  percentage: undefined;
83
+ datalabels: undefined;
84
+ height: undefined;
85
+ width: undefined;
69
86
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmPieProp>, {
70
87
  name: undefined;
71
88
  paragraph: undefined;
@@ -75,13 +92,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
75
92
  textStyle: string;
76
93
  maintainAspectRatio: boolean;
77
94
  percentage: undefined;
95
+ datalabels: undefined;
96
+ height: undefined;
97
+ width: undefined;
78
98
  }>>>, {
79
99
  name: string;
80
100
  legend: Partial<LegendOptions<"pie" | "doughnut">>;
81
101
  text: string;
82
102
  textColor: string;
103
+ width: string;
104
+ height: string;
83
105
  paragraph: string;
84
106
  maintainAspectRatio: boolean;
107
+ datalabels: Partial<FmChartDataLabelsOptions>;
85
108
  textStyle: string;
86
109
  percentage: string;
87
110
  }, {}>, {
@@ -102,13 +102,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
102
102
  helperText: string;
103
103
  helperState: "success" | "warning" | "none" | "error";
104
104
  placeholder: string;
105
+ formatter: (value: string) => string;
105
106
  showValidBorder: boolean;
106
107
  minLength: number;
107
108
  maxLength: number;
108
109
  inputmode: "text" | "numeric" | "search" | "none" | "email" | "password" | "tel" | "url" | "decimal";
109
110
  readonly: boolean;
110
111
  showWordCount: boolean;
111
- formatter: (value: string) => string;
112
112
  shiftDatalist: boolean;
113
113
  datalistMaxHeight: number;
114
114
  datalistZIndex: number;