@gitsense/gsc-utils 0.2.36 → 0.2.38
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/dist/gsc-utils.cjs.js +28 -5
- package/dist/gsc-utils.esm.js +28 -5
- package/package.json +1 -1
- package/src/DomUtils.js +8 -5
- package/src/SVGUtils.js +20 -0
package/dist/gsc-utils.cjs.js
CHANGED
|
@@ -13375,13 +13375,13 @@ var FormatterUtils$1 = {
|
|
|
13375
13375
|
|
|
13376
13376
|
/**
|
|
13377
13377
|
* Component: DomUtils Helper Functions
|
|
13378
|
-
* Block-UUID:
|
|
13379
|
-
* Parent-UUID:
|
|
13380
|
-
* Version: 1.3.
|
|
13378
|
+
* Block-UUID: 9a4d426c-b445-4e39-a96f-543e2a6f372c
|
|
13379
|
+
* Parent-UUID: 18b5e5b0-7433-42cb-a76e-58b34850829e
|
|
13380
|
+
* Version: 1.3.3
|
|
13381
13381
|
* Description: Provides helper functions for creating and manipulating DOM elements. Updated to support the 'multiple' attribute for input elements.
|
|
13382
13382
|
* Language: JavaScript
|
|
13383
|
-
* Created-at:
|
|
13384
|
-
* Authors: Gemini 2.5 Pro (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0), GLM-4.6 (v1.2.1), GLM-4.6 (v1.3.0), GLM-4.6 (v1.3.1), GLM-4.7 (v1.3.2)
|
|
13383
|
+
* Created-at: 2026-03-17T17:15:41.151Z
|
|
13384
|
+
* Authors: Gemini 2.5 Pro (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0), GLM-4.6 (v1.2.1), GLM-4.6 (v1.3.0), GLM-4.6 (v1.3.1), GLM-4.7 (v1.3.2), Gemini 2.5 Flash (v1.3.3)
|
|
13385
13385
|
*/
|
|
13386
13386
|
|
|
13387
13387
|
function createElement(type, params) {
|
|
@@ -13550,6 +13550,9 @@ const h$1 = {
|
|
|
13550
13550
|
createDetail: (params) => {
|
|
13551
13551
|
return createElement("details", params);
|
|
13552
13552
|
},
|
|
13553
|
+
createDetails: (params) => {
|
|
13554
|
+
return createElement("details", params);
|
|
13555
|
+
},
|
|
13553
13556
|
createDiv: (params) => {
|
|
13554
13557
|
return createElement("div", params);
|
|
13555
13558
|
},
|
|
@@ -24670,6 +24673,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
24670
24673
|
return this.create(xml, params);
|
|
24671
24674
|
}
|
|
24672
24675
|
|
|
24676
|
+
/**
|
|
24677
|
+
* Generate history24 SVG icon
|
|
24678
|
+
* @param {Object} params - Configuration parameters
|
|
24679
|
+
* @returns {Element} SVG element
|
|
24680
|
+
*/
|
|
24681
|
+
static history24(params) {
|
|
24682
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z"></path><path d="M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z"></path></svg>`;
|
|
24683
|
+
return this.create(xml, params);
|
|
24684
|
+
}
|
|
24685
|
+
|
|
24673
24686
|
/**
|
|
24674
24687
|
* Generate home SVG icon
|
|
24675
24688
|
* @param {Object} params - Configuration parameters
|
|
@@ -25066,6 +25079,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
25066
25079
|
return this.create(xml, params);
|
|
25067
25080
|
}
|
|
25068
25081
|
|
|
25082
|
+
/**
|
|
25083
|
+
* Generate sparkle24 SVG icon
|
|
25084
|
+
* @param {Object} params - Configuration parameters
|
|
25085
|
+
* @returns {Element} SVG element
|
|
25086
|
+
*/
|
|
25087
|
+
static sparkle24(params) {
|
|
25088
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M11.191.565c.275-.754 1.342-.753 1.618 0l1.918 5.238a5.83 5.83 0 0 0 3.47 3.47l5.237 1.918c.755.275.755 1.342 0 1.618l-5.237 1.918a5.83 5.83 0 0 0-3.47 3.47l-1.918 5.237c-.276.755-1.343.755-1.618 0l-1.918-5.237a5.83 5.83 0 0 0-3.47-3.47L.565 12.809c-.753-.276-.754-1.342 0-1.618l5.238-1.918a5.83 5.83 0 0 0 3.47-3.47L11.191.565Zm-.505 5.756a7.336 7.336 0 0 1-4.365 4.365L2.73 12l3.591 1.315a7.333 7.333 0 0 1 4.365 4.365L12 21.269l1.315-3.589a7.33 7.33 0 0 1 4.365-4.365L21.269 12l-3.589-1.314a7.333 7.333 0 0 1-4.365-4.365L12 2.73l-1.314 3.591Z"></path></svg>`;
|
|
25089
|
+
return this.create(xml, params);
|
|
25090
|
+
}
|
|
25091
|
+
|
|
25069
25092
|
/**
|
|
25070
25093
|
* Generate square SVG icon
|
|
25071
25094
|
* @param {Object} params - Configuration parameters
|
package/dist/gsc-utils.esm.js
CHANGED
|
@@ -13373,13 +13373,13 @@ var FormatterUtils$1 = {
|
|
|
13373
13373
|
|
|
13374
13374
|
/**
|
|
13375
13375
|
* Component: DomUtils Helper Functions
|
|
13376
|
-
* Block-UUID:
|
|
13377
|
-
* Parent-UUID:
|
|
13378
|
-
* Version: 1.3.
|
|
13376
|
+
* Block-UUID: 9a4d426c-b445-4e39-a96f-543e2a6f372c
|
|
13377
|
+
* Parent-UUID: 18b5e5b0-7433-42cb-a76e-58b34850829e
|
|
13378
|
+
* Version: 1.3.3
|
|
13379
13379
|
* Description: Provides helper functions for creating and manipulating DOM elements. Updated to support the 'multiple' attribute for input elements.
|
|
13380
13380
|
* Language: JavaScript
|
|
13381
|
-
* Created-at:
|
|
13382
|
-
* Authors: Gemini 2.5 Pro (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0), GLM-4.6 (v1.2.1), GLM-4.6 (v1.3.0), GLM-4.6 (v1.3.1), GLM-4.7 (v1.3.2)
|
|
13381
|
+
* Created-at: 2026-03-17T17:15:41.151Z
|
|
13382
|
+
* Authors: Gemini 2.5 Pro (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0), GLM-4.6 (v1.2.1), GLM-4.6 (v1.3.0), GLM-4.6 (v1.3.1), GLM-4.7 (v1.3.2), Gemini 2.5 Flash (v1.3.3)
|
|
13383
13383
|
*/
|
|
13384
13384
|
|
|
13385
13385
|
function createElement(type, params) {
|
|
@@ -13548,6 +13548,9 @@ const h$1 = {
|
|
|
13548
13548
|
createDetail: (params) => {
|
|
13549
13549
|
return createElement("details", params);
|
|
13550
13550
|
},
|
|
13551
|
+
createDetails: (params) => {
|
|
13552
|
+
return createElement("details", params);
|
|
13553
|
+
},
|
|
13551
13554
|
createDiv: (params) => {
|
|
13552
13555
|
return createElement("div", params);
|
|
13553
13556
|
},
|
|
@@ -24668,6 +24671,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
24668
24671
|
return this.create(xml, params);
|
|
24669
24672
|
}
|
|
24670
24673
|
|
|
24674
|
+
/**
|
|
24675
|
+
* Generate history24 SVG icon
|
|
24676
|
+
* @param {Object} params - Configuration parameters
|
|
24677
|
+
* @returns {Element} SVG element
|
|
24678
|
+
*/
|
|
24679
|
+
static history24(params) {
|
|
24680
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z"></path><path d="M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z"></path></svg>`;
|
|
24681
|
+
return this.create(xml, params);
|
|
24682
|
+
}
|
|
24683
|
+
|
|
24671
24684
|
/**
|
|
24672
24685
|
* Generate home SVG icon
|
|
24673
24686
|
* @param {Object} params - Configuration parameters
|
|
@@ -25064,6 +25077,16 @@ let SVGUtils$1 = class SVGUtils {
|
|
|
25064
25077
|
return this.create(xml, params);
|
|
25065
25078
|
}
|
|
25066
25079
|
|
|
25080
|
+
/**
|
|
25081
|
+
* Generate sparkle24 SVG icon
|
|
25082
|
+
* @param {Object} params - Configuration parameters
|
|
25083
|
+
* @returns {Element} SVG element
|
|
25084
|
+
*/
|
|
25085
|
+
static sparkle24(params) {
|
|
25086
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M11.191.565c.275-.754 1.342-.753 1.618 0l1.918 5.238a5.83 5.83 0 0 0 3.47 3.47l5.237 1.918c.755.275.755 1.342 0 1.618l-5.237 1.918a5.83 5.83 0 0 0-3.47 3.47l-1.918 5.237c-.276.755-1.343.755-1.618 0l-1.918-5.237a5.83 5.83 0 0 0-3.47-3.47L.565 12.809c-.753-.276-.754-1.342 0-1.618l5.238-1.918a5.83 5.83 0 0 0 3.47-3.47L11.191.565Zm-.505 5.756a7.336 7.336 0 0 1-4.365 4.365L2.73 12l3.591 1.315a7.333 7.333 0 0 1 4.365 4.365L12 21.269l1.315-3.589a7.33 7.33 0 0 1 4.365-4.365L21.269 12l-3.589-1.314a7.333 7.333 0 0 1-4.365-4.365L12 2.73l-1.314 3.591Z"></path></svg>`;
|
|
25087
|
+
return this.create(xml, params);
|
|
25088
|
+
}
|
|
25089
|
+
|
|
25067
25090
|
/**
|
|
25068
25091
|
* Generate square SVG icon
|
|
25069
25092
|
* @param {Object} params - Configuration parameters
|
package/package.json
CHANGED
package/src/DomUtils.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Component: DomUtils Helper Functions
|
|
3
|
-
* Block-UUID:
|
|
4
|
-
* Parent-UUID:
|
|
5
|
-
* Version: 1.3.
|
|
3
|
+
* Block-UUID: 9a4d426c-b445-4e39-a96f-543e2a6f372c
|
|
4
|
+
* Parent-UUID: 18b5e5b0-7433-42cb-a76e-58b34850829e
|
|
5
|
+
* Version: 1.3.3
|
|
6
6
|
* Description: Provides helper functions for creating and manipulating DOM elements. Updated to support the 'multiple' attribute for input elements.
|
|
7
7
|
* Language: JavaScript
|
|
8
|
-
* Created-at:
|
|
9
|
-
* Authors: Gemini 2.5 Pro (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0), GLM-4.6 (v1.2.1), GLM-4.6 (v1.3.0), GLM-4.6 (v1.3.1), GLM-4.7 (v1.3.2)
|
|
8
|
+
* Created-at: 2026-03-17T17:15:41.151Z
|
|
9
|
+
* Authors: Gemini 2.5 Pro (v1.0.0), Gemini 2.5 Flash (v1.1.0), Qwen 3 Coder 480B - Cerebras (v1.2.0), GLM-4.6 (v1.2.1), GLM-4.6 (v1.3.0), GLM-4.6 (v1.3.1), GLM-4.7 (v1.3.2), Gemini 2.5 Flash (v1.3.3)
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
|
|
@@ -176,6 +176,9 @@ const h = {
|
|
|
176
176
|
createDetail: (params) => {
|
|
177
177
|
return createElement("details", params);
|
|
178
178
|
},
|
|
179
|
+
createDetails: (params) => {
|
|
180
|
+
return createElement("details", params);
|
|
181
|
+
},
|
|
179
182
|
createDiv: (params) => {
|
|
180
183
|
return createElement("div", params);
|
|
181
184
|
},
|
package/src/SVGUtils.js
CHANGED
|
@@ -800,6 +800,16 @@ class SVGUtils {
|
|
|
800
800
|
return this.create(xml, params);
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Generate history24 SVG icon
|
|
805
|
+
* @param {Object} params - Configuration parameters
|
|
806
|
+
* @returns {Element} SVG element
|
|
807
|
+
*/
|
|
808
|
+
static history24(params) {
|
|
809
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z"></path><path d="M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z"></path></svg>`;
|
|
810
|
+
return this.create(xml, params);
|
|
811
|
+
}
|
|
812
|
+
|
|
803
813
|
/**
|
|
804
814
|
* Generate home SVG icon
|
|
805
815
|
* @param {Object} params - Configuration parameters
|
|
@@ -1196,6 +1206,16 @@ class SVGUtils {
|
|
|
1196
1206
|
return this.create(xml, params);
|
|
1197
1207
|
}
|
|
1198
1208
|
|
|
1209
|
+
/**
|
|
1210
|
+
* Generate sparkle24 SVG icon
|
|
1211
|
+
* @param {Object} params - Configuration parameters
|
|
1212
|
+
* @returns {Element} SVG element
|
|
1213
|
+
*/
|
|
1214
|
+
static sparkle24(params) {
|
|
1215
|
+
const xml = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M11.191.565c.275-.754 1.342-.753 1.618 0l1.918 5.238a5.83 5.83 0 0 0 3.47 3.47l5.237 1.918c.755.275.755 1.342 0 1.618l-5.237 1.918a5.83 5.83 0 0 0-3.47 3.47l-1.918 5.237c-.276.755-1.343.755-1.618 0l-1.918-5.237a5.83 5.83 0 0 0-3.47-3.47L.565 12.809c-.753-.276-.754-1.342 0-1.618l5.238-1.918a5.83 5.83 0 0 0 3.47-3.47L11.191.565Zm-.505 5.756a7.336 7.336 0 0 1-4.365 4.365L2.73 12l3.591 1.315a7.333 7.333 0 0 1 4.365 4.365L12 21.269l1.315-3.589a7.33 7.33 0 0 1 4.365-4.365L21.269 12l-3.589-1.314a7.333 7.333 0 0 1-4.365-4.365L12 2.73l-1.314 3.591Z"></path></svg>`;
|
|
1216
|
+
return this.create(xml, params);
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1199
1219
|
/**
|
|
1200
1220
|
* Generate square SVG icon
|
|
1201
1221
|
* @param {Object} params - Configuration parameters
|