jqgrid_utils 1.35.1 → 1.36.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.
@@ -1,5 +1,8 @@
1
1
  name: Publish Package to npmjs
2
2
  on: push
3
+ permissions:
4
+ id-token: write # Required for OIDC
5
+ contents: read
3
6
  jobs:
4
7
  build:
5
8
  if: github.repository_owner == 'myridia'
@@ -8,16 +11,25 @@ jobs:
8
11
  contents: read
9
12
  id-token: write
10
13
  steps:
11
- - uses: actions/checkout@v4
12
- # Setup .npmrc file to publish to npm
13
- - uses: actions/setup-node@v4
14
- with:
15
- node-version: '22.x'
16
- registry-url: 'https://registry.npmjs.org'
17
- - run: npm install --package-lock-only
18
- - run: npm ci
19
- - run: npm publish --provenance --access public
20
- env:
21
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14
+ - name: Request OIDC token
15
+ id: oidc-token
16
+ uses: actions/github-script@v7
17
+ with:
18
+ script: |
19
+ const token = await core.getIDToken();
20
+ core.info(`OIDC token: ${token.substring(0,20)}...`);
22
21
 
23
-
22
+ - name: checkout
23
+ uses: actions/checkout@v4
24
+ - name: setup
25
+ uses: actions/setup-node@v4
26
+ with:
27
+ node-version: '24.x' # Your node version
28
+ registry-url: 'https://registry.npmjs.org'
29
+ always-auth: true
30
+
31
+ - run: npm install --package-lock-only
32
+ - run: npm ci
33
+ - run: npm run build --if-present
34
+ - run: npm publish --provenance --access public
35
+
package/README.md CHANGED
@@ -28,6 +28,7 @@ A module for Jqgrid_utils
28
28
 
29
29
 
30
30
  * [Jqgrid_utils](#module_Jqgrid_utils)
31
+ * [module.exports#add_class(col_model, field_name, class_name)](#exp_module_Jqgrid_utils--module.exports+add_class) ⏏
31
32
  * [module.exports#_grid_substract_on()](#exp_module_Jqgrid_utils--module.exports+_grid_substract_on) ⏏
32
33
  * [module.exports#grid_substract_on(grid, minuend, subtrahend, difference, no_negative)](#exp_module_Jqgrid_utils--module.exports+grid_substract_on) ⏏
33
34
  * [module.exports#_grid_ratio_on()](#exp_module_Jqgrid_utils--module.exports+_grid_ratio_on) ⏏
@@ -86,6 +87,24 @@ A module for Jqgrid_utils
86
87
  * [module.exports#set_filter(grid, data, fx, append_to)](#exp_module_Jqgrid_utils--module.exports+set_filter) ⏏
87
88
  * [module.exports#_filter()](#exp_module_Jqgrid_utils--module.exports+_filter) ⏏
88
89
 
90
+ <a name="exp_module_Jqgrid_utils--module.exports+add_class"></a>
91
+
92
+ ### module.exports#add\_class(col_model, field_name, class_name) ⏏
93
+ Add a Class to the Model
94
+
95
+ **Kind**: Exported function
96
+
97
+ | Param | Type | Description |
98
+ | --- | --- | --- |
99
+ | col_model | <code>array</code> | grid col_model |
100
+ | field_name | <code>string</code> | column_name |
101
+ | class_name | <code>string</code> | class_name |
102
+
103
+ **Example**
104
+ ```js
105
+ var jqu = new Jqgrid_utils();
106
+ col_model = await jqu.add_class(col_model,field_name,class_name)
107
+ ```
89
108
  <a name="exp_module_Jqgrid_utils--module.exports+_grid_substract_on"></a>
90
109
 
91
110
  ### module.exports#\_grid\_substract\_on() ⏏
package/_README.md CHANGED
@@ -19,5 +19,9 @@ Convenient Functions for free jqGrid
19
19
 
20
20
  ```
21
21
 
22
+ # Documentation
23
+ https://github.com/myridia/jqgrid_utils/blob/main/README.md
24
+
25
+ # Source code:
22
26
  Source: https://github.com/myridia/jqgrid_utils/actions
23
27