gnui 1.2.16 → 1.2.17
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/js/gnui.esm.js +48 -19
- package/dist/js/gnui.js +48 -19
- package/dist/js/gnui.min.js +1 -1
- package/dist/styles/default.css +0 -1
- package/dist/styles/gpi.css +0 -1
- package/dist/styles/green24.css +0 -1
- package/dist/styles/insights.css +0 -1
- package/dist/styles/nac.css +0 -1
- package/dist/styles/ztnac.css +0 -1
- package/package.json +2 -2
- package/styleguide/assets/js/gnui.js +48 -19
- package/styleguide/assets/js/gnui.min.js +1 -1
- package/styleguide/assets/styles/default.css +0 -1
- package/styleguide/assets/styles/gpi.css +0 -1
- package/styleguide/assets/styles/green24.css +0 -1
- package/styleguide/assets/styles/insights.css +0 -1
- package/styleguide/assets/styles/nac.css +0 -1
- package/styleguide/assets/styles/ztnac.css +0 -1
- package/styleguide/category/COLOR/index.html +1 -1
- package/styleguide/category/COMPONENT/Alert(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Bignumber/index.html +1 -1
- package/styleguide/category/COMPONENT/Breadcrumb/index.html +1 -1
- package/styleguide/category/COMPONENT/Calendar(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Card/index.html +1 -1
- package/styleguide/category/COMPONENT/Chart(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Datagrid(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Datalist(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Growl(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/JsonView(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Loader(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/MenuButton(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Message(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Modal(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Pagination(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Panel/index.html +1 -1
- package/styleguide/category/COMPONENT/Progressbar(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tab(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tagcloud(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tooltip(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tree(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Button(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Checkbox/index.html +1 -1
- package/styleguide/category/CONTROLS/Colorpicker(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Datepicker(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Dropdown(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/File/index.html +1 -1
- package/styleguide/category/CONTROLS/Form/Control/index.html +1 -1
- package/styleguide/category/CONTROLS/Form/Field/index.html +1 -1
- package/styleguide/category/CONTROLS/Form/Plain/index.html +1 -1
- package/styleguide/category/CONTROLS/Input/index.html +1 -1
- package/styleguide/category/CONTROLS/MultiText(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Picklist(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Radio/index.html +1 -1
- package/styleguide/category/CONTROLS/Select/index.html +1 -1
- package/styleguide/category/CONTROLS/SelectButton(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Slider/index.html +1 -1
- package/styleguide/category/CONTROLS/Switch(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/SyntaxInput(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Textarea/index.html +1 -1
- package/styleguide/category/CONTROLS/Time(js)/index.html +1 -1
- package/styleguide/category/ELEMENTS/Box/index.html +1 -1
- package/styleguide/category/ELEMENTS/Icon/index.html +1 -1
- package/styleguide/category/ELEMENTS/Image/index.html +1 -1
- package/styleguide/category/ELEMENTS/List/index.html +1 -1
- package/styleguide/category/ELEMENTS/Table/index.html +1 -1
- package/styleguide/category/ELEMENTS/Tag/index.html +1 -1
- package/styleguide/category/ELEMENTS/Title/index.html +1 -1
- package/styleguide/category/LAYOUT/Container/index.html +1 -1
- package/styleguide/category/LAYOUT/Grid/index.html +1 -1
- package/styleguide/category/LAYOUT/Splitter(js)/index.html +1 -1
- package/styleguide/category/UTILITY/index.html +1 -1
- package/styleguide/category/Utils/index.html +1 -1
- package/styleguide/color.html +1 -1
- package/styleguide/index.html +1 -1
- package/styleguide/tag/javascript/index.html +1 -1
- package/styleguide/tag/v.0.1.0/index.html +1 -1
package/dist/styles/default.css
CHANGED
|
@@ -14821,7 +14821,6 @@ tag:
|
|
|
14821
14821
|
}
|
|
14822
14822
|
.gn-dropdown.is-open .dropdown-items {
|
|
14823
14823
|
display: block;
|
|
14824
|
-
max-width: 100%;
|
|
14825
14824
|
}
|
|
14826
14825
|
.gn-dropdown.is-top .dropdown-items {
|
|
14827
14826
|
top: auto;
|
package/dist/styles/gpi.css
CHANGED
|
@@ -14852,7 +14852,6 @@ tag:
|
|
|
14852
14852
|
}
|
|
14853
14853
|
.gn-dropdown.is-open .dropdown-items {
|
|
14854
14854
|
display: block;
|
|
14855
|
-
max-width: 100%;
|
|
14856
14855
|
}
|
|
14857
14856
|
.gn-dropdown.is-top .dropdown-items {
|
|
14858
14857
|
top: auto;
|
package/dist/styles/green24.css
CHANGED
|
@@ -15407,7 +15407,6 @@ tag:
|
|
|
15407
15407
|
}
|
|
15408
15408
|
.gn-dropdown.is-open .dropdown-items {
|
|
15409
15409
|
display: block;
|
|
15410
|
-
max-width: 100%;
|
|
15411
15410
|
}
|
|
15412
15411
|
.gn-dropdown.is-top .dropdown-items {
|
|
15413
15412
|
top: auto;
|
package/dist/styles/insights.css
CHANGED
|
@@ -14822,7 +14822,6 @@ tag:
|
|
|
14822
14822
|
}
|
|
14823
14823
|
.gn-dropdown.is-open .dropdown-items {
|
|
14824
14824
|
display: block;
|
|
14825
|
-
max-width: 100%;
|
|
14826
14825
|
}
|
|
14827
14826
|
.gn-dropdown.is-top .dropdown-items {
|
|
14828
14827
|
top: auto;
|
package/dist/styles/nac.css
CHANGED
|
@@ -14860,7 +14860,6 @@ tag:
|
|
|
14860
14860
|
}
|
|
14861
14861
|
.gn-dropdown.is-open .dropdown-items {
|
|
14862
14862
|
display: block;
|
|
14863
|
-
max-width: 100%;
|
|
14864
14863
|
}
|
|
14865
14864
|
.gn-dropdown.is-top .dropdown-items {
|
|
14866
14865
|
top: auto;
|
package/dist/styles/ztnac.css
CHANGED
|
@@ -15408,7 +15408,6 @@ tag:
|
|
|
15408
15408
|
}
|
|
15409
15409
|
.gn-dropdown.is-open .dropdown-items {
|
|
15410
15410
|
display: block;
|
|
15411
|
-
max-width: 100%;
|
|
15412
15411
|
}
|
|
15413
15412
|
.gn-dropdown.is-top .dropdown-items {
|
|
15414
15413
|
top: auto;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.2.
|
|
7
|
+
"version": "1.2.17",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/js/gnui.js",
|
|
10
10
|
"types": "@types/gnui.d.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@fortawesome/free-brands-svg-icons": "6.5.2",
|
|
83
83
|
"@fortawesome/free-solid-svg-icons": "6.5.2",
|
|
84
84
|
"apexcharts": "3.45.0",
|
|
85
|
-
"gnutils": "^1.0.
|
|
85
|
+
"gnutils": "^1.0.2",
|
|
86
86
|
"jsonpath": "1.1.1",
|
|
87
87
|
"prismjs": "1.29.0"
|
|
88
88
|
},
|
|
@@ -14118,15 +14118,15 @@
|
|
|
14118
14118
|
if (!obj || !pathString) {
|
|
14119
14119
|
return "";
|
|
14120
14120
|
}
|
|
14121
|
-
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
return "";
|
|
14121
|
+
const keys = isString(pathString) ? pathString.split(".") : pathString;
|
|
14122
|
+
let current = obj;
|
|
14123
|
+
for (const key of keys) {
|
|
14124
|
+
if (current === void 0 || current === null) {
|
|
14125
|
+
return "";
|
|
14126
|
+
}
|
|
14127
|
+
current = current[key];
|
|
14129
14128
|
}
|
|
14129
|
+
return current !== void 0 ? current : "";
|
|
14130
14130
|
}
|
|
14131
14131
|
function findProperty(obj, predicate) {
|
|
14132
14132
|
let result = [];
|
|
@@ -14265,17 +14265,18 @@
|
|
|
14265
14265
|
return dmustach.test(result) ? interpolateURL(result, source) : result;
|
|
14266
14266
|
}
|
|
14267
14267
|
function interpolateCop(textCondition, data2, parent2, $2) {
|
|
14268
|
-
const onlymustach = /^\{{2}[
|
|
14268
|
+
const onlymustach = /^\{{2}[\w.$\[\]]+\}{2}$/;
|
|
14269
14269
|
if (onlymustach.test(textCondition)) {
|
|
14270
14270
|
const path = textCondition.replace("{{", "").replace("}}", "");
|
|
14271
14271
|
return findValue({ data: data2, parent: parent2, $: $2 }, path);
|
|
14272
14272
|
}
|
|
14273
14273
|
const dmustach = new RegExp(/\{{([^{}]*)}}/gm);
|
|
14274
|
+
const context = { data: data2, parent: parent2, $: $2 };
|
|
14274
14275
|
const result = textCondition.replace(dmustach, (match) => {
|
|
14275
14276
|
const conditionalOp = match.replace(/\{{|\}}/gm, "");
|
|
14276
|
-
return new Function("
|
|
14277
|
+
return new Function("ctx", "const {data, parent, $} = ctx; return " + conditionalOp)(context);
|
|
14277
14278
|
});
|
|
14278
|
-
return dmustach.test(result) ?
|
|
14279
|
+
return dmustach.test(result) ? interpolateCop(result, context.data, context.parent, context.$) : result;
|
|
14279
14280
|
}
|
|
14280
14281
|
function parseBundle(text2, locale) {
|
|
14281
14282
|
let _value = text2;
|
|
@@ -14709,7 +14710,10 @@
|
|
|
14709
14710
|
});
|
|
14710
14711
|
}
|
|
14711
14712
|
function getArgs(args) {
|
|
14712
|
-
return args.reduce(
|
|
14713
|
+
return args.reduce(
|
|
14714
|
+
(args2, arg) => args2.concat.call(args2, isString(arg) && includes(arg, " ") ? arg.trim().split(" ") : arg),
|
|
14715
|
+
[]
|
|
14716
|
+
);
|
|
14713
14717
|
}
|
|
14714
14718
|
var supports = {
|
|
14715
14719
|
get Multiple() {
|
|
@@ -14735,7 +14739,7 @@
|
|
|
14735
14739
|
s = s / 100;
|
|
14736
14740
|
l = l / 100;
|
|
14737
14741
|
const c = (1 - Math.abs(2 * l - 1)) * s, x = c * (1 - Math.abs(h / 60 % 2 - 1)), m = l - c / 2;
|
|
14738
|
-
let r, g, b;
|
|
14742
|
+
let r = 0, g = 0, b = 0;
|
|
14739
14743
|
switch (true) {
|
|
14740
14744
|
case (h > -1 && h < 60):
|
|
14741
14745
|
r = c;
|
|
@@ -15014,7 +15018,14 @@
|
|
|
15014
15018
|
function dateData(locale) {
|
|
15015
15019
|
return ["S", "M", "T", "W", "T", "F", "S"];
|
|
15016
15020
|
}
|
|
15017
|
-
function objToDate({
|
|
15021
|
+
function objToDate({
|
|
15022
|
+
year,
|
|
15023
|
+
month,
|
|
15024
|
+
day,
|
|
15025
|
+
hour,
|
|
15026
|
+
minute,
|
|
15027
|
+
second
|
|
15028
|
+
}) {
|
|
15018
15029
|
if (hour === void 0) {
|
|
15019
15030
|
hour = "00";
|
|
15020
15031
|
}
|
|
@@ -15243,7 +15254,11 @@
|
|
|
15243
15254
|
["left", "top"].forEach((prop) => {
|
|
15244
15255
|
if (prop in coordinates) {
|
|
15245
15256
|
const value = css$1(element, prop);
|
|
15246
|
-
css$1(
|
|
15257
|
+
css$1(
|
|
15258
|
+
element,
|
|
15259
|
+
prop,
|
|
15260
|
+
coordinates[prop] - (currentOffset == null ? void 0 : currentOffset[prop]) + toFloat(pos === "absolute" && value === "auto" ? position(element)[prop] : value)
|
|
15261
|
+
);
|
|
15247
15262
|
}
|
|
15248
15263
|
});
|
|
15249
15264
|
}
|
|
@@ -15366,7 +15381,10 @@
|
|
|
15366
15381
|
}
|
|
15367
15382
|
function after(ref, element) {
|
|
15368
15383
|
ref = $(ref);
|
|
15369
|
-
return insertNodes(
|
|
15384
|
+
return insertNodes(
|
|
15385
|
+
element,
|
|
15386
|
+
(element2) => ref.nextSibling ? before(ref.nextSibling, element2) : append(ref.parentNode, element2)
|
|
15387
|
+
);
|
|
15370
15388
|
}
|
|
15371
15389
|
function insertNodes(element, fn) {
|
|
15372
15390
|
element = isString(element) ? fragment(element) : element;
|
|
@@ -15390,13 +15408,21 @@
|
|
|
15390
15408
|
listener = delegate(targets, selector, listener);
|
|
15391
15409
|
}
|
|
15392
15410
|
useCapture = useCaptureFilter(useCapture);
|
|
15393
|
-
type.split(" ").forEach(
|
|
15411
|
+
type.split(" ").forEach(
|
|
15412
|
+
(type2) => targets.forEach(
|
|
15413
|
+
(target) => target.addEventListener(type2, listener, useCapture)
|
|
15414
|
+
)
|
|
15415
|
+
);
|
|
15394
15416
|
return () => off(targets, type, listener, useCapture);
|
|
15395
15417
|
}
|
|
15396
15418
|
function off(targets, type, listener, useCapture = false) {
|
|
15397
15419
|
useCapture = useCaptureFilter(useCapture);
|
|
15398
15420
|
targets = toEventTargets(targets);
|
|
15399
|
-
type.split(" ").forEach(
|
|
15421
|
+
type.split(" ").forEach(
|
|
15422
|
+
(type2) => targets.forEach(
|
|
15423
|
+
(target) => target.removeEventListener(type2, listener, useCapture)
|
|
15424
|
+
)
|
|
15425
|
+
);
|
|
15400
15426
|
}
|
|
15401
15427
|
function once(...args) {
|
|
15402
15428
|
const [element, type, selector, listener, useCapture, condition] = getArgs2(args);
|
|
@@ -15416,7 +15442,10 @@
|
|
|
15416
15442
|
return off2;
|
|
15417
15443
|
}
|
|
15418
15444
|
function trigger(targets, event, detail2) {
|
|
15419
|
-
return toEventTargets(targets).reduce(
|
|
15445
|
+
return toEventTargets(targets).reduce(
|
|
15446
|
+
(notCanceled, target) => notCanceled && target.dispatchEvent(createEvent(event, true, true, detail2)),
|
|
15447
|
+
true
|
|
15448
|
+
);
|
|
15420
15449
|
}
|
|
15421
15450
|
function createEvent(e, bubbles = true, cancelable = false, detail2) {
|
|
15422
15451
|
if (isString(e)) {
|