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.
- package/.github/workflows/npm.yml +24 -12
- package/README.md +19 -0
- package/_README.md +4 -0
- package/dist/jqgrid_utils.js +1 -2074
- package/dist/jqgrid_utils.min.js +1 -0
- package/jqgrid_utils.js +25 -2
- package/make.sh +6 -1
- package/make_doc.sh +4 -2
- package/package.json +4 -9
- package/watch.sh +3 -0
- package/.hgignore +0 -17
|
@@ -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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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() ⏏
|