@vixoniccom/kpi-chart 0.0.2-dev.1 → 0.0.2-dev.10

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.
@@ -0,0 +1,20 @@
1
+ name: Deploy job
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ types: [closed]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ release:
12
+ if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
13
+ uses: Vixonic/github-workflows/.github/workflows/store-release.yml@d8dcbbbb14ef6f9b944ce0a079940fea4d7c9ba5 # main
14
+ with:
15
+ app-name: store-sheets-kpi
16
+ secrets:
17
+ PRIVATE_TOKEN_GITHUB: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
18
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19
+ JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
20
+ EP_JIRA_COMPONENT: ${{ secrets.EP_JIRA_COMPONENT }}
@@ -3,7 +3,7 @@ name: Sonarqube Analysis
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - development
6
+ - main
7
7
  pull_request:
8
8
  types: [opened, synchronize, reopened]
9
9
 
@@ -11,19 +11,19 @@ jobs:
11
11
  sonarqube:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
- - uses: actions/checkout@v4
14
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
15
15
  with:
16
16
  # Disabling shallow clone is recommended for improving relevancy of reporting.
17
17
  fetch-depth: 0
18
18
 
19
19
  - name: SonarQube Scan
20
- uses: sonarsource/sonarqube-scan-action@master
20
+ uses: sonarsource/sonarqube-scan-action@22918119ff8e1ca75a623e15c8296b6ea4fbe28f # v8.2.1
21
21
  env:
22
22
  SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23
23
  SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
24
24
 
25
25
  - name: SonarQube Quality Gate Check
26
- uses: sonarsource/sonarqube-quality-gate-action@master
26
+ uses: sonarsource/sonarqube-quality-gate-action@cf038b0e0cdecfa9e56c198bbb7d21d751d62c3b # v1.2.0
27
27
  timeout-minutes: 5
28
28
  env:
29
29
  SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.2-dev.10](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.9...v0.0.2-dev.10) (2026-08-04)
6
+
7
+ ### [0.0.2-dev.9](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.8...v0.0.2-dev.9) (2026-08-04)
8
+
9
+
10
+ ### Features
11
+
12
+ * VXD-901 Add text formatting options for chart values and labels ([6cc17ad](https://github.com/Vixonic/store-sheets-kpi/commit/6cc17ad7f28337c973589784dfeca4544d3dbf73))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * fixed pipeline ([121e14c](https://github.com/Vixonic/store-sheets-kpi/commit/121e14c5f3f58a0c7c5f24a7a9ca5e44e40b84c2))
18
+
19
+ ### [0.0.2-dev.8](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.7...v0.0.2-dev.8) (2026-03-19)
20
+
21
+ ### [0.0.2-dev.7](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.6...v0.0.2-dev.7) (2026-03-19)
22
+
23
+ ### [0.0.2-dev.6](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.5...v0.0.2-dev.6) (2026-03-19)
24
+
25
+
26
+ ### Features
27
+
28
+ * VXD-866 Adds option to show data labels in charts and removes alphabetical order when generating the chart ([f0b7a37](https://github.com/Vixonic/store-sheets-kpi/commit/f0b7a37d129366ca83e3fd96d612ecb7bb2f8d7d))
29
+
30
+ ### [0.0.2-dev.5](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.4...v0.0.2-dev.5) (2026-03-04)
31
+
32
+ ### [0.0.2-dev.4](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.3...v0.0.2-dev.4) (2026-03-04)
33
+
34
+ ### [0.0.2-dev.3](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.2...v0.0.2-dev.3) (2026-03-04)
35
+
36
+ ### [0.0.2-dev.2](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.1...v0.0.2-dev.2) (2026-03-04)
37
+
5
38
  ### [0.0.2-dev.1](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.0...v0.0.2-dev.1) (2025-09-11)
6
39
 
7
40
 
package/build.zip CHANGED
Binary file
@@ -51,6 +51,18 @@ export const chartGroup = new Group({
51
51
  displayOnFalse: "claro",
52
52
  defaultValue: false,
53
53
  }),
54
+ new Switch({
55
+ id: "showDataLabels",
56
+ label: "Mostrar valores en gráfico",
57
+ displayOnTrue: "activado",
58
+ displayOnFalse: "desactivado",
59
+ defaultValue: false,
60
+ }),
61
+ new TextFormat({
62
+ id: "chartValuesTextFormat",
63
+ label: "Formato valores",
64
+ description: "Formato de texto para los valores de datos del gráfico.",
65
+ }),
54
66
  new Label({ label: "Título" }),
55
67
  new Switch({
56
68
  id: "titleEnabled",
@@ -109,6 +121,11 @@ export const chartGroup = new Group({
109
121
  description: "Tamaño (en px.) del cículo de color en la leyenda.",
110
122
  show: ShowValidations.legendEnabled,
111
123
  }),
124
+ new TextFormat({
125
+ id: "labelTextFormat",
126
+ label: "Formato categorías",
127
+ description: "Formato de texto para las categorías del eje horizontal y del eje vertical.",
128
+ }),
112
129
  new Label({ label: "Eje vertical" }),
113
130
  new Switch({
114
131
  id: "yAxisEnabled",
@@ -113,6 +113,20 @@
113
113
  "displayOnTrue": "oscuro",
114
114
  "displayOnFalse": "claro"
115
115
  },
116
+ {
117
+ "id": "showDataLabels",
118
+ "label": "Mostrar valores en gráfico",
119
+ "type": "switch",
120
+ "defaultValue": false,
121
+ "displayOnTrue": "activado",
122
+ "displayOnFalse": "desactivado"
123
+ },
124
+ {
125
+ "id": "chartValuesTextFormat",
126
+ "label": "Formato valores",
127
+ "type": "text-format",
128
+ "description": "Formato de texto para los valores de datos del gráfico."
129
+ },
116
130
  {
117
131
  "type": "label",
118
132
  "label": "Título"
@@ -192,6 +206,12 @@
192
206
  "type": "number-input",
193
207
  "description": "Tamaño (en px.) del cículo de color en la leyenda."
194
208
  },
209
+ {
210
+ "id": "labelTextFormat",
211
+ "label": "Formato categorías",
212
+ "type": "text-format",
213
+ "description": "Formato de texto para las categorías del eje horizontal y del eje vertical."
214
+ },
195
215
  {
196
216
  "type": "label",
197
217
  "label": "Eje vertical"
package/package.json CHANGED
@@ -8,9 +8,9 @@
8
8
  "author": {
9
9
  "name": "Lorenzo Alfaro Bravo"
10
10
  },
11
- "version": "0.0.2-dev.1",
11
+ "version": "0.0.2-dev.10",
12
12
  "scripts": {
13
- "prepublishOnly": "vixonic-module-packager --mode=build",
13
+ "prepublish": "vixonic-module-packager --mode=build",
14
14
  "watch": "vixonic-module-packager --mode=watch",
15
15
  "run": "vixonic-module-packager --mode=run",
16
16
  "configuration": "vixonic-module-packager --mode generate-configuration",
@@ -28,8 +28,8 @@
28
28
  "devDependencies": {
29
29
  "@types/react": "^17.0.2",
30
30
  "@types/react-dom": "^17.0.11",
31
- "@vixoniccom/module-packager": "^2.13.0",
32
- "@vixoniccom/modules": "^2.23.1",
31
+ "@vixoniccom/module-packager": "^2.14.1",
32
+ "@vixoniccom/modules": "^2.25.0-dev.6",
33
33
  "standard-version": "^9.5.0"
34
34
  }
35
35
  }
package/renovate.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": ["github>Vixonic/renovate-config"]
4
+ }
@@ -1 +1,2 @@
1
- sonar.projectKey=Vixonic_store-sheets-kpi_12e7b95b-fc91-4f7e-a0e7-1dd33cc0de3d
1
+ sonar.projectKey=Vixonic_store-sheets-kpi_12e7b95b-fc91-4f7e-a0e7-1dd33cc0de3d
2
+ sonar.exclusions=.github/**/*
@@ -1,98 +0,0 @@
1
- name: Publish to NPM
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- - main
8
-
9
- jobs:
10
- publish:
11
- # Solo ejecutar si es un push a main/master
12
- if: github.event_name == 'push'
13
- runs-on: ubuntu-latest
14
-
15
- steps:
16
- - name: Checkout code
17
- uses: actions/checkout@v4
18
- with:
19
- fetch-depth: 0
20
-
21
- - name: Setup Node.js 20
22
- uses: actions/setup-node@v4
23
- with:
24
- node-version: '20'
25
- registry-url: 'https://registry.npmjs.org'
26
- scope: '@vixoniccom'
27
-
28
- - name: Configure npm authentication
29
- run: |
30
- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
31
- echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
32
- echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
33
-
34
- - name: Cache node modules
35
- uses: actions/cache@v4
36
- with:
37
- path: ~/.npm
38
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
39
- restore-keys: |
40
- ${{ runner.os }}-node-
41
-
42
- - name: Install dependencies
43
- run: npm ci
44
- env:
45
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46
-
47
- - name: Build package
48
- run: npm run prepublish
49
- env:
50
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51
-
52
- - name: Verify build.zip exists
53
- run: |
54
- if [ ! -f "build.zip" ]; then
55
- echo "❌ Error: build.zip not found after build process"
56
- exit 1
57
- fi
58
- echo "✅ build.zip found successfully"
59
- ls -la build.zip
60
-
61
- - name: Check if version already exists on npm
62
- id: check-version
63
- run: |
64
- PACKAGE_NAME=$(node -p "require('./package.json').name")
65
- PACKAGE_VERSION=$(node -p "require('./package.json').version")
66
-
67
- echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
68
-
69
- if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
70
- echo "version-exists=true" >> $GITHUB_OUTPUT
71
- echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
72
- else
73
- echo "version-exists=false" >> $GITHUB_OUTPUT
74
- echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
75
- fi
76
-
77
- - name: Publish to npm
78
- if: steps.check-version.outputs.version-exists == 'false'
79
- run: |
80
- echo "Publishing to npm..."
81
- npm publish --access public
82
- env:
83
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
84
-
85
- - name: Publication success
86
- if: steps.check-version.outputs.version-exists == 'false'
87
- run: |
88
- PACKAGE_NAME=$(node -p "require('./package.json').name")
89
- PACKAGE_VERSION=$(node -p "require('./package.json').version")
90
- echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
91
- echo "📦 Package includes build.zip with the compiled application"
92
-
93
- - name: Skip publication
94
- if: steps.check-version.outputs.version-exists == 'true'
95
- run: |
96
- PACKAGE_VERSION=$(node -p "require('./package.json').version")
97
- echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
98
- echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"